body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.dark select, .dark option { color-scheme: dark; }
.dark option { background: #1e1e2e; color: #e2e8f0; }
.council-banner { backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
.dark .council-banner { background: linear-gradient(135deg, #0a1628, #0d2847, #0a3a6e); border: 1px solid rgba(26,108,160,.35); box-shadow: 0 4px 24px rgba(26,108,160,0.15), 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(26,108,160,0.1); }
html:not(.dark) .council-banner { background: linear-gradient(135deg, rgba(236,253,245,.7), rgba(254,249,195,.4), rgba(236,253,245,.5)); border: 1px solid rgba(16,185,129,.15); box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.05); }

/* Liquid glass card */
.glass-card {
  border-radius: 1.25rem;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  transition: box-shadow .3s, border-color .3s;
}
.dark .glass-card {
  background: rgba(255,255,255,.04);
  border: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 8px 32px rgba(0,0,0,.3);
}
html:not(.dark) .glass-card {
  background: rgba(255,255,255,.45);
  border: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 32px rgba(0,0,0,.04);
}

/* Login card — slightly more opaque */
/* The glass card.
 *
 * It was rgba(20,22,35,.85) in dark — 85% opaque is a panel with a blur behind
 * it, not glass, and the artwork it is sitting on never came through. The fill
 * is now the same --glass token the rest of the platform uses (.62 dark / .58
 * light), which is the weight the blur was designed around: enough to carry
 * text, sheer enough that the aurora reads through it.
 *
 * The rim is an inset highlight rather than a border, so the edge catches light
 * the way a pane does instead of drawing a line around it. */
/* The sign-in card's surface — glass, a hairline border, 20px corners — is
   also the page's box: the worked example, the Aether panel and the Meet
   Aether dialog take it through .login-glass, so every box reads as the same
   material. .login-card stays on the card alone: login.js finds the card to
   shake by that class, and the worked example comes first in the page. */
.login-card,
.login-glass {
  border-radius: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: var(--glass-shadow);
}

/* Two columns: the sign-in column runs the full height of the row, and the
   card takes the spare height with its content centred, so the departments
   line ends level with the worked example instead of leaving an empty band
   above the capabilities. The left column still sets the row, so the page is
   no taller; with the email form open the card simply grows. */
@media (min-width: 1024px) {
  .login-aside { align-self: stretch; display: flex; flex-direction: column; }
  .login-aside > .login-card { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
}

/* Input */
.login-input { transition: border-color .2s, box-shadow .2s; }
.login-input:focus { outline:none; border-color: rgba(99,102,241,.5); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

/* Divider */
.divider-line { flex:1; height:1px; }
.dark .divider-line { background: rgba(255,255,255,.08); }
html:not(.dark) .divider-line { background: rgba(0,0,0,.08); }

/* Header gradient per mode */
.dark .header-shadow {
  background: linear-gradient(135deg, #0a1628, #0d2847, #0a3a6e, #1a6ca0, #0d2847) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 12px 40px rgba(0,0,0,0.6), 0 20px 60px rgba(0,0,0,0.4) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html:not(.dark) .header-shadow {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 12px 40px rgba(0,0,0,0.1), 0 20px 60px rgba(0,0,0,0.1) !important;
}

/* Shake animation for login card */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}
.shake { animation: shake 0.6s ease-in-out; }

/* Framework modal */
.framework-modal-card { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
html:not(.dark) .framework-modal-card { background: rgba(255,255,255,0.65); border: 1px solid rgba(0,0,0,0.08); }
.framework-inner-card { backdrop-filter: blur(12px); }
.dark .framework-inner-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
html:not(.dark) .framework-inner-card { background: rgba(255,255,255,0.35); border: 1px solid rgba(0,0,0,0.08); }

/* Changelog timeline */
.changelog-scroll::-webkit-scrollbar { width: 6px; }
.changelog-scroll::-webkit-scrollbar-track { background: transparent; }
.changelog-scroll::-webkit-scrollbar-thumb { background: rgba(156,163,175,0.3); border-radius: 20px; }
.dark .changelog-scroll::-webkit-scrollbar-thumb { background: rgba(75,85,99,0.4); }
.changelog-scroll::-webkit-scrollbar-thumb:hover { background: rgba(156,163,175,0.5); }
.dark .changelog-scroll::-webkit-scrollbar-thumb:hover { background: rgba(75,85,99,0.6); }
.cl-badge-added { background: rgba(16,185,129,0.1); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.dark .cl-badge-added { background: rgba(16,185,129,0.12); color: #34d399; border-color: rgba(16,185,129,0.2); }
.cl-badge-fixed { background: rgba(244,63,94,0.1); color: #e11d48; border: 1px solid rgba(244,63,94,0.2); }
.dark .cl-badge-fixed { background: rgba(244,63,94,0.12); color: #fb7185; border-color: rgba(244,63,94,0.2); }
.cl-badge-changed { background: rgba(59,130,246,0.1); color: #2563eb; border: 1px solid rgba(59,130,246,0.2); }
.dark .cl-badge-changed { background: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.2); }
.cl-badge-security { background: rgba(139,92,246,0.1); color: #7c3aed; border: 1px solid rgba(139,92,246,0.2); }
.dark .cl-badge-security { background: rgba(139,92,246,0.12); color: #a78bfa; border-color: rgba(139,92,246,0.2); }

/* Dashed connector in diagram */
.dash-line { border-top: 2px dashed; }
.dark .dash-line { border-color: rgba(99,130,255,.2); }
html:not(.dark) .dash-line { border-color: rgba(99,130,255,.25); }
