:root {
    --edc-green:#2e9b6e;
    --edc-green-lt:#e6f7f0;
    --edc-green-dk:#1a6b4a;
    --edc-teal:#17b4a0;
    --edc-teal-lt:#e0f9f6;
    --edc-yellow:#f9c846;
    --edc-yellow-lt:#fff8e1;
    --edc-coral:#ff7043;
    --edc-coral-lt:#fff0eb;
    --edc-sky:#29b6f6;
    --edc-sky-lt:#e1f5fe;
    --edc-purple:#9c6fda;
    --edc-bg:#f4fbf7;
    --edc-sidebar:#1e4d3a;
    --edc-sidebar-text:#c8ead9;
    --edc-sidebar-hover:rgba(255,255,255,0.10);
    --edc-sidebar-active:rgba(255,255,255,0.18);
    --edc-surface:#ffffff;
    --edc-text:#1a2e25;
    --edc-text-muted:#5a7a6a;
    --edc-border:#d1e9da;
    --edc-topbar:#ffffff;
    --edc-radius:12px;
    --edc-shadow:0 2px 12px rgba(46,155,110,0.10);
    --bg:var(--edc-bg);
    --panel:var(--edc-surface);
    --text:var(--edc-text);
    --muted:var(--edc-text-muted);
    --line:var(--edc-border);
    --accent:var(--edc-green);
    --accent-2:var(--edc-coral);
    --danger:#b42318;
    font-family:'Nunito',sans-serif;
}

  body.dark-mode{
    --edc-bg:#0f1f18;
    --edc-sidebar:#0a140f;
    --edc-sidebar-text:#88c9a8;
    --edc-surface:#152219;
    --edc-text:#c8ead9;
    --edc-text-muted:#6aaa88;
    --edc-border:#1f3a2a;
    --edc-topbar:#111c15;
    --edc-green-lt:#0e2a1c;
    --edc-teal-lt:#0b2420;
    --edc-yellow-lt:#1e1a0a;
    --edc-coral-lt:#2a110a;
    --edc-sky-lt:#0b1e2c;
    --bg:var(--edc-bg);
    --panel:var(--edc-surface);
    --text:var(--edc-text);
    --muted:var(--edc-text-muted);
    --line:var(--edc-border);
  }


* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: var(--accent); text-decoration: none; font-weight: 650; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.review-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
}
.review-table {
  min-width: 1100px;
  background: white;
}
.review-table th {
  background: #e9f3ef;
  color: #0f3f3c;
  text-transform: none;
  font-size: 12px;
}
.review-table td {
  min-height: 54px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--edc-sidebar);
  color: white;
  padding: 18px 12px;
  transition: width .2s ease, transform .2s ease, background .2s ease;
  overflow-x: hidden;
  overflow-y: auto;
}
.sidebar-nav { display: grid; gap: 6px; }
.sidebar-home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .1);
  font-size: 18px;
}
.sidebar-home img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 2px;
}
.sidebar-home span {
  color: white;
  font-weight: 800;
}
.shell {
  margin-left: 240px;
  min-height: 100vh;
  padding: 24px;
  transition: margin-left .2s ease;
}
body.sidebar-icon-only .sidebar {
  width: 74px;
}
body.sidebar-icon-only .shell {
  margin-left: 74px;
}
body.sidebar-icon-only .sidebar .nav-label,
body.sidebar-icon-only .sidebar .section-label,
body.sidebar-icon-only .sidebar .nav-badge {
  opacity: 0;
  width: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
}
body.sidebar-icon-only .sidebar .nav-item {
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}
body.sidebar-icon-only .sidebar .sidebar-home img {
  margin: 0;
}
  .sidebar.collapsed{width:74px}
  .sidebar-brand{
    padding:20px 16px 12px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .sidebar-brand .brand-icon{
    width:36px;height:36px;border-radius:50%;background:var(--edc-green);display:flex;align-items:center;justify-content:center;flex-shrink:0;
  }
  .sidebar-brand .brand-icon svg{width:20px;height:20px;fill:#fff}
  .sidebar-brand .brand-text{
    font-family:'Fredoka One',cursive;font-size:17px;color:#fff;white-space:nowrap;overflow:hidden;
    transition:opacity 0.2s;
  }
  .sidebar.collapsed .brand-text,.sidebar.collapsed .nav-label,.sidebar.collapsed .section-label{opacity:0;width:0;overflow:hidden}
  .section-label{
    font-size:10px;font-weight:700;letter-spacing:0.08em;color:var(--edc-sidebar-text);opacity:0.55;
    padding:16px 16px 6px;text-transform:uppercase;white-space:nowrap;
  }
  .nav-item{
    display:flex;align-items:center;gap:10px;padding:9px 16px;color:var(--edc-sidebar-text);
    text-decoration:none;font-size:14px;font-weight:500;border-radius:8px;margin:1px 8px;
    transition:background 0.15s,color 0.15s,padding 0.2s;cursor:pointer;white-space:nowrap;
    min-height:40px;
  }
  .nav-item:hover{background:var(--edc-sidebar-hover);color:#fff}
  .nav-item.active{background:var(--edc-sidebar-active);color:#fff}
  .nav-item svg{width:18px;height:18px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.8}
  .nav-label{transition:opacity 0.2s}
  .nav-badge{
    margin-left:auto;background:var(--edc-coral);color:#fff;font-size:10px;font-weight:700;
    border-radius:10px;padding:1px 7px;flex-shrink:0;
  }
  /* BREADCRUMB */
  .breadcrumb{
    padding:12px 24px 0;display:flex;align-items:center;gap:6px;
    font-size:13px;color:var(--edc-text-muted);
  }
  .breadcrumb a{color:var(--edc-green);text-decoration:none;font-weight:600}
  .breadcrumb a:hover{text-decoration:underline}
  .breadcrumb svg{width:14px;height:14px;stroke:var(--edc-text-muted);fill:none;stroke-width:2}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 16px;
  background: var(--edc-topbar);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(16, 42, 42, .06);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.userbar, .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.userbar {
  position: relative;
  justify-content: flex-end;
}

  .topbar-toggle{
    background:none;border:none;cursor:pointer;color:var(--edc-text-muted);padding:6px;
    border-radius:8px;display:flex;align-items:center;
  }
  .topbar-toggle:hover{background:var(--edc-green-lt)}
  .topbar-toggle svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2}
  .search-bar{
    flex:1;max-width:380px;display:flex;align-items:center;gap:8px;
    background:var(--edc-bg);border:1px solid var(--edc-border);border-radius:24px;
    padding:7px 16px;
  }
  .search-bar svg{width:16px;height:16px;stroke:var(--edc-text-muted);fill:none;stroke-width:2;flex-shrink:0}
  .search-bar input{
    border:none;background:none;outline:none;font-family:'Nunito',sans-serif;font-size:14px;
    color:var(--edc-text);width:100%;
  }
  .search-bar input::placeholder{color:var(--edc-text-muted)}
  .topbar-right{margin-left:auto;display:flex;align-items:center;gap:10px}
  .dark-toggle{
    background:none;border:1px solid var(--edc-border);border-radius:20px;cursor:pointer;
    display:flex;align-items:center;gap:6px;padding:5px 12px;font-size:13px;font-family:'Nunito',sans-serif;
    color:var(--edc-text-muted);transition:all 0.2s;
  }
  .dark-toggle:hover{border-color:var(--edc-green);color:var(--edc-green)}
  .dark-toggle svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}
  .notif-btn{
    background:none;border:1px solid var(--edc-border);border-radius:8px;
    padding:6px 8px;cursor:pointer;position:relative;color:var(--edc-text-muted);display:flex;
  }
  .notif-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
  .notif-dot{
    width:8px;height:8px;background:var(--edc-coral);border-radius:50%;
    position:absolute;top:4px;right:4px;
  }
  .user-pill{
    display:flex;align-items:center;gap:8px;background:var(--edc-green-lt);
    border:1px solid var(--edc-border);border-radius:20px;padding:5px 14px 5px 6px;
  }
  .user-avatar{
    width:26px;height:26px;border-radius:50%;background:var(--edc-green);
    display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;
  }
  .user-pill span{font-size:13px;font-weight:600;color:var(--edc-green-dk)}


.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
}
.header-logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}
.header-logo span {
  color: var(--text);
  font-weight: 800;
}
.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  background: var(--panel);
}
.sidebar-toggle {
  color: #0f3f3c;
  border-color: #c9d9d4;
  font-size: 18px;
}
.home-toggle {
  width: auto;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  background: #f2f7f5;
  border: 1px solid #d5e4df;
  border-radius: 999px;
  padding: 0 13px 0 6px;
}
.home-toggle img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}
.home-toggle span {
  color: var(--text);
  font-weight: 800;
}
.menu-lines {
  width: 16px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.menu-lines::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  border-top: 2px solid currentColor;
}
.notification-button {
  border-color: #d5e4df;
}
.notification-glyph {
  width: 15px;
  height: 17px;
  border: 2px solid #0f766e;
  border-radius: 10px 10px 7px 7px;
  position: relative;
}
.notification-glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 7px;
  height: 5px;
  border: 2px solid #0f766e;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
}
.notification-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 6px;
  height: 3px;
  background: #0f766e;
  border-radius: 0 0 6px 6px;
  transform: translateX(-50%);
}
.notification-dot {
  position: absolute;
  right: 9px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--accent-2);
  border: 2px solid white;
  border-radius: 50%;
}
.notification-panel {
  position: absolute;
  right: 82px;
  top: calc(100% + 10px);
  z-index: 10;
  width: min(320px, calc(100vw - 48px));
  background: white;
  border: 1px solid #c9d9d4;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(16, 42, 42, .16);
  padding: 12px;
}
.notification-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #0f3f3c;
}
.notification-panel a {
  display: block;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 6px;
  font-weight: 650;
}
.notification-panel a:hover {
  background: #e9f3ef;
}
.profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 11px 5px 6px;
  border: 1px solid #d5e4df;
  border-radius: 999px;
  background: var(--panel);
}
.profile-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f766e;
  position: relative;
}
.profile-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translateX(-50%);
}
.profile-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 15px;
  height: 8px;
  background: white;
  border-radius: 10px 10px 4px 4px;
  transform: translateX(-50%);
}
.profile-pill span:last-child {
  color: var(--text);
  font-weight: 800;
}
.password-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
}
.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #0f766e;
  position: relative;
  flex: 0 0 auto;
}
.theme-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0f766e;
}
.theme-icon[data-mode="dark"] {
  background: #102a2a;
  border-color: #9be3df;
}
.theme-icon[data-mode="dark"]::before {
  inset: -2px 5px -2px -2px;
  background: var(--panel);
}
.theme-icon[data-mode="light"] {
  background: #fff8e1;
  border-color: #f9c846;
}
.theme-icon[data-mode="light"]::before {
  background: #f9c846;
}
.login-help {
  color: var(--muted);
  margin: 0;
}
.welcome-band {
  color: white;
  background: linear-gradient(135deg, #0f766e, #102a2a);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 26px rgba(16, 42, 42, .14);
}
.welcome-band strong {
  display: block;
  font-size: 24px;
}
.welcome-band span {
  color: #dcefed;
}
.welcome-band p {
  margin: 0;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
  white-space: nowrap;
}
.panel, .metric-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric-grid span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.metric-grid strong { font-size: 28px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.setup-members { margin-top: 18px; }
.panel h2 { margin: 0 0 14px; font-size: 18px; }
.actions { margin-bottom: 16px; }
button, .button {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.primary { background: var(--accent); border-color: var(--accent); color: white; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f2ee;
  color: #115e59;
  font-size: 12px;
  font-weight: 700;
}
.messages { margin-bottom: 16px; }
.message { padding: 10px 12px; border-radius: 6px; background: #ecfdf3; color: #05603a; }
.message.error, .error-summary {
  background: #fff4f2;
  border-color: #f4b6ae;
  color: var(--danger);
}
.error-summary {
  margin-bottom: 16px;
}
.error-summary h2 {
  margin-top: 0;
}
.error-list {
  margin: 10px 0 0;
  padding-left: 20px;
}
.error-list li {
  margin: 6px 0;
}
.error-list a {
  color: var(--danger);
  text-decoration: underline;
}
.form-panel { max-width: 860px; }
.form-panel p, .field { display: grid; gap: 6px; margin: 0 0 16px; }
.field-invalid {
  border-left: 4px solid var(--danger);
  background: #fff9f8;
  padding-left: 12px;
}
.gps-status {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #d5e4df;
  border-radius: 6px;
  background: #f2f7f5;
  color: #0f3f3c;
  font-weight: 650;
}
.gps-status[data-state="loading"] {
  background: #fff8e6;
  border-color: #f2d58b;
  color: #7a4b00;
}
.gps-status[data-state="success"] {
  background: #ecfdf3;
  border-color: #9be3b7;
  color: #05603a;
}
.gps-status[data-state="error"] {
  background: #fff4f2;
  border-color: #f4b6ae;
  color: var(--danger);
}
label { font-weight: 700; }
label small { display: block; color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  background: var(--panel);
  color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
.required, .field-error, .error { color: var(--danger); }
.field-error { font-size: 13px; }
.choice { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.choice input { width: auto; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.builder-section { margin-bottom: 16px; }
.section-head, .question-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.section-head p, .question-row span { color: var(--muted); margin: 4px 0 0; display: block; }
.question-row { padding: 12px 0; border-top: 1px solid var(--line); }
.drag { color: var(--muted); cursor: grab; }
.sticky-actions {
  position: sticky;
  bottom: 0;
  background: rgba(246,247,244,.94);
  padding: 12px 0;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(4, 18, 31, .76), rgba(7, 53, 63, .46)),
    url("../img/kilimanjaro-cyber-clouds.png") center / cover no-repeat fixed;
}
.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
}
.login-page::before {
  background:
    radial-gradient(circle at 18% 82%, rgba(41, 182, 246, .22), transparent 24%),
    radial-gradient(circle at 80% 72%, rgba(23, 180, 160, .20), transparent 28%),
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .18) 19%, transparent 20%, transparent 58%, rgba(41, 182, 246, .12) 59%, transparent 60%);
  mix-blend-mode: screen;
  animation: cyberCloudDrift 22s linear infinite;
}
.login-page::after {
  background:
    repeating-linear-gradient(100deg, transparent 0 48px, rgba(132, 230, 255, .12) 49px, transparent 50px),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(1, 11, 22, .34) 80%);
  opacity: .62;
  animation: horizonPulse 8s ease-in-out infinite alternate;
}
.login-panel {
  width: min(420px, calc(100vw - 32px));
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(195, 241, 238, .70);
  box-shadow: 0 28px 80px rgba(0, 21, 36, .44), inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
  padding: 28px;
  border-radius: 8px;
  display: grid;
  gap: 14px;
}
.login-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  justify-self: center;
  background: white;
  border: 1px solid rgba(15, 118, 110, .22);
  box-shadow: 0 12px 28px rgba(15, 118, 110, .24);
}
.comment { border-top: 1px solid var(--line); padding-top: 12px; }
.collaborator-footer {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid #c9d9d4;
  border-radius: 10px;
  background: #e9f3ef;
  display: grid;
  gap: 18px;
  box-shadow: 0 14px 30px rgba(16, 42, 42, .08);
}
.collaborator-footer .footer-label {
  color: #0f3f3c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.collaborator-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 16px;
  align-items: center;
}
.logo-card {
  min-height: 86px;
  background: white;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(16, 42, 42, .14);
}
.logo-card img {
  display: block;
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.logo-card-wide {
  min-width: 160px;
}
.logo-card-xl {
  grid-column: span 2;
}
.logo-card-xl img {
  max-height: 64px;
}
.footer-ribbon {
  color: white;
  background: linear-gradient(135deg, #0f766e, #102a2a);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.footer-ribbon::before,
.footer-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  border-top: 34px solid rgba(255, 255, 255, .14);
  border-bottom: 34px solid rgba(255, 255, 255, .14);
}
.footer-ribbon::before {
  left: -1px;
  border-right: 22px solid transparent;
}
.footer-ribbon::after {
  right: -1px;
  border-left: 22px solid transparent;
}
.footer-ribbon strong,
.footer-ribbon p,
.footer-ribbon nav {
  position: relative;
  z-index: 1;
}
.footer-ribbon strong { display: block; }
.footer-ribbon p {
  color: #dcefed;
  margin: 4px 0 0;
}
.footer-ribbon nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-ribbon a {
  color: white;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  padding: 7px 10px;
}
.info-panel {
  max-width: 980px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.info-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: white;
  padding: 4px;
}
.info-panel h2 { margin-top: 0; }

@keyframes cyberCloudDrift {
  from { transform: translate3d(-2%, 1%, 0) scale(1.02); }
  to { transform: translate3d(2%, -1%, 0) scale(1.06); }
}

@keyframes horizonPulse {
  from { opacity: .42; transform: scale(1); }
  to { opacity: .72; transform: scale(1.025); }
}

@media (max-width: 960px) {
  .sidebar { position: static; width: auto; }
  body.sidebar-collapsed .sidebar { display: none; }
  body.sidebar-collapsed .shell { margin-left: 0; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { margin-left: 0; padding: 16px; }
  .metric-grid, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .metric-grid, .dashboard-grid, .split { grid-template-columns: 1fr; }
  .topbar, .section-head, .question-row { align-items: flex-start; flex-direction: column; }
  .topbar-left { width: 100%; }
  .userbar { width: 100%; }
  .header-logo { flex: 1; }
  .home-toggle { flex: 1; }
  .notification-panel { left: 0; right: auto; top: calc(100% + 10px); }
  .welcome-band { align-items: flex-start; flex-direction: column; }
  .welcome-band p { white-space: normal; }
  .collaborator-footer { padding: 16px; }
  .collaborator-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .logo-card { min-height: 76px; padding: 10px; }
  .logo-card img { max-height: 46px; }
  .logo-card-xl { grid-column: 1 / -1; }
  .footer-ribbon { align-items: flex-start; flex-direction: column; }
  .info-panel { grid-template-columns: 1fr; }
}
