/* ==========================================================================
   EMAN EMAN — Team Space design system
   Konsep: "Mango on Ink" — sidebar ink gelap dengan aksen mango (#FFCC00),
   kanvas kerja hangat (terang) / gelap pekat (gelap), kartu bersudut besar,
   bayangan lembut, gerak halus (hormati prefers-reduced-motion).
   ========================================================================== */

:root {
  --ink: #17181C;
  --ink-2: #1F2026;
  --ink-3: #2A2B33;
  --mango: #FFCC00;
  --mango-deep: #E6B800;
  --mango-soft: rgba(255, 204, 0, .14);
  --green: #0E6B5C;
  --green-soft: rgba(14, 107, 92, .12);
  --red: #D6453D;
  --red-soft: rgba(214, 69, 61, .12);
  --blue: #3B6FE0;
  --violet: #7A5AF8;

  /* tema terang (default) */
  --bg: #F5F4EF;
  --bg-grad: radial-gradient(1200px 500px at 85% -10%, rgba(255, 204, 0, .16), transparent 60%);
  --surface: #FFFFFF;
  --surface-2: #FAF9F5;
  --line: #E7E5DC;
  --text: #1B1D24;
  --muted: #6B7280;
  --accent-text: #8A6A00;       /* mango yang terbaca di atas putih */
  --shadow-sm: 0 1px 2px rgba(23, 24, 28, .05), 0 1px 1px rgba(23, 24, 28, .03);
  --shadow-md: 0 8px 24px -8px rgba(23, 24, 28, .12), 0 2px 6px rgba(23, 24, 28, .05);
  --shadow-lg: 0 24px 60px -20px rgba(23, 24, 28, .28), 0 8px 20px -8px rgba(23, 24, 28, .12);
  --ring: 0 0 0 3px rgba(255, 204, 0, .45);

  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 268px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0E0F12;
  --bg-grad: radial-gradient(1100px 520px at 85% -10%, rgba(255, 204, 0, .10), transparent 60%);
  --surface: #17181C;
  --surface-2: #1D1F25;
  --line: rgba(255, 255, 255, .08);
  --text: #F2F2EE;
  --muted: #9A9DA8;
  --accent-text: #FFCC00;
  --mango-soft: rgba(255, 204, 0, .12);
  --green-soft: rgba(52, 211, 180, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 8px 20px -8px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.55;
  color: var(--text); background: var(--bg); background-image: var(--bg-grad); background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
::selection { background: var(--mango); color: var(--ink); }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.scrim { display: none; } /* hanya dipakai di mobile (lihat media query) */

.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 22px 16px 16px; color: #D9DAE0;
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(255, 204, 0, .13), transparent 60%),
    linear-gradient(180deg, #1B1C21 0%, #131418 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #FFD633, #FFCC00); color: var(--ink);
  font-weight: 800; letter-spacing: -.02em; font-size: 15px;
  box-shadow: 0 6px 18px -4px rgba(255, 204, 0, .55), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.brand-name { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.01em; line-height: 1.1; }
.brand-name em { font-style: normal; color: var(--mango); }
.brand-sub { font-size: 11px; color: #8A8D98; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }

.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6D707C; padding: 14px 12px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: #B5B8C2;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--mango-soft); color: var(--mango); }
.nav a.active::before {
  content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--mango); box-shadow: 0 0 14px rgba(255, 204, 0, .7);
}
.nav a.locked { opacity: .42; }
.nav a .tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #9A9DA8; letter-spacing: .04em; }

.sidebar-foot { margin-top: auto; padding-top: 14px; }
.me-card {
  display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06);
}
.me-card .who { min-width: 0; line-height: 1.25; }
.me-card .who b { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who span { font-size: 11.5px; color: #8A8D98; }

/* ---------- Avatar ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, #5B6CFF, #8A5CFF);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.avatar.t0 { background: linear-gradient(135deg, #FF8A4C, #FF4D6D); }
.avatar.t1 { background: linear-gradient(135deg, #20C997, #0E6B5C); }
.avatar.t2 { background: linear-gradient(135deg, #5B8CFF, #3B4EE0); }
.avatar.t3 { background: linear-gradient(135deg, #B07CFF, #7A3FE0); }
.avatar.t4 { background: linear-gradient(135deg, #FFB347, #E8851C); }
.avatar.t5 { background: linear-gradient(135deg, #3CC8E0, #1C7FB8); }
.avatar.lg { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }

/* ---------- Main + topbar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px 32px; background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--mango) 55%, var(--line)); }
.burger { display: none; }
.cmd-btn {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 14px; min-width: 240px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  box-shadow: var(--shadow-sm); font-size: 13.5px; transition: border-color .2s, box-shadow .2s;
}
.cmd-btn:hover { border-color: color-mix(in srgb, var(--mango) 55%, var(--line)); box-shadow: var(--shadow-md); }
.kbd { margin-left: auto; font-family: var(--font-mono); font-size: 11px; padding: 2px 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.session-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 7px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.session-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.session-chip.warn .dot { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }

.content { padding: 30px 32px 64px; width: 100%; max-width: 1280px; margin: 0 auto; }

/* ---------- Cards & primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-title h2 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.005em; }
.section-title span { font-size: 12.5px; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.badge.mango { background: var(--mango-soft); border-color: transparent; color: var(--accent-text); }
.badge.green { background: var(--green-soft); border-color: transparent; color: var(--green); }
:root[data-theme="dark"] .badge.green { color: #4ADEC0; }
.badge.red { background: var(--red-soft); border-color: transparent; color: var(--red); }
.badge.ink { background: var(--ink); border-color: transparent; color: var(--mango); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px;
  border-radius: 13px; border: 1px solid transparent; font-weight: 700; font-size: 14px; letter-spacing: .005em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary { background: linear-gradient(180deg, #FFD633, #FFCC00); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(255, 204, 0, .75), inset 0 -2px 0 rgba(0, 0, 0, .1); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(255, 204, 0, .85), inset 0 -2px 0 rgba(0, 0, 0, .1); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--mango) 55%, var(--line)); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 34px 36px; color: #fff;
  background:
    radial-gradient(520px 260px at 92% 0%, rgba(255, 204, 0, .38), transparent 65%),
    radial-gradient(380px 220px at 0% 110%, rgba(14, 107, 92, .45), transparent 65%),
    linear-gradient(135deg, #1C1D23, #121317);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .06);
}
.hero::after { /* grid halus */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mango); }
.hero h2 { margin: 8px 0 6px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.hero h2 em { font-style: normal; background: linear-gradient(90deg, #FFE066, #FFCC00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: #B9BCC7; max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-meta .badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); color: #E6E7EC; }
.hero-meta .badge.mango { background: rgba(255, 204, 0, .16); color: var(--mango); border-color: transparent; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat { padding: 18px 20px; }
.stat .k { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--mango-soft); color: var(--accent-text); }

/* ---------- Module cards ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.module {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.module::before { /* kilau mango saat hover */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px 120px at 100% 0%, rgba(255, 204, 0, .22), transparent 70%);
}
.module:not(.is-locked):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--mango) 50%, var(--line)); }
.module:not(.is-locked):hover::before { opacity: 1; }
.module .m-ico {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(135deg, #FFD633, #FFCC00); box-shadow: 0 8px 18px -8px rgba(255, 204, 0, .8), inset 0 -2px 0 rgba(0, 0, 0, .1);
}
.module .m-ico .ic { width: 24px; height: 24px; }
.module h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.module p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.module .m-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module.is-locked { opacity: .62; }
.module.is-locked .m-ico { background: var(--surface-2); color: var(--muted); box-shadow: none; border: 1px solid var(--line); }

/* ---------- Activity ---------- */
.feed { list-style: none; margin: 0; padding: 6px 0; }
.feed li { display: flex; gap: 14px; padding: 14px 22px; position: relative; }
.feed li + li { border-top: 1px dashed var(--line); }
.feed .f-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); flex: none; }
.feed .f-ico.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.feed .f-ico.warn { background: var(--red-soft); color: var(--red); border-color: transparent; }
.feed .f-main { min-width: 0; flex: 1; }
.feed .f-main b { font-weight: 700; }
.feed .f-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.empty { padding: 36px 22px; text-align: center; color: var(--muted); }

/* ---------- Members ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.member { padding: 20px; display: flex; gap: 14px; align-items: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member .avatar { position: relative; }
.member .presence { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--surface); background: #9CA3AF; }
.member .presence.on { background: #22C55E; }
.member b { display: block; font-size: 15px; line-height: 1.25; }
.member .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.member .mail { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 6px; overflow-wrap: anywhere; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px; padding: 13px 16px; border-radius: 14px;
  background: var(--ink); color: #F2F2EE; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg);
  animation: toast-in .45s var(--ease) both; font-weight: 600; font-size: 13.5px;
}
.toast .t-ico { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(34, 197, 94, .18); color: #4ADE80; flex: none; }
.toast.error .t-ico { background: rgba(214, 69, 61, .2); color: #FF8A80; }
.toast.out { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(10, 11, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmdk.open { display: flex; animation: fade .18s ease both; }
.cmdk-box { width: 100%; max-width: 560px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .28s var(--ease) both; }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-input input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--text); }
.cmdk-list { max-height: 340px; overflow: auto; padding: 8px; }
.cmdk-group { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; width: 100%; background: none; border: 0; text-align: left; }
.cmdk-item .ci { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.cmdk-item small { margin-left: auto; color: var(--muted); font-weight: 600; }
.cmdk-item[aria-selected="true"] { background: var(--mango-soft); }
.cmdk-item[aria-selected="true"] .ci { background: var(--mango); color: var(--ink); border-color: transparent; }
.cmdk-empty { padding: 28px; text-align: center; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- Reveal ---------- */
.reveal { animation: reveal .7s var(--ease) both; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; } .reveal.d4 { animation-delay: .24s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Login
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  background:
    radial-gradient(640px 420px at 85% 8%, rgba(255, 204, 0, .34), transparent 62%),
    radial-gradient(520px 380px at 0% 100%, rgba(14, 107, 92, .55), transparent 62%),
    linear-gradient(145deg, #1C1D23, #0F1013);
}
.auth-art::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 70% 25%, #000, transparent 72%); mask-image: radial-gradient(circle at 70% 25%, #000, transparent 72%); }
.auth-art > * { position: relative; z-index: 1; }
.orb { position: absolute !important; border-radius: 50%; filter: blur(2px); pointer-events: none; animation: float 9s ease-in-out infinite; }
.orb.o1 { width: 220px; height: 220px; right: -60px; top: 22%; background: radial-gradient(circle at 30% 30%, rgba(255, 224, 102, .9), rgba(255, 204, 0, .15) 60%, transparent 70%); }
.orb.o2 { width: 120px; height: 120px; right: 22%; bottom: 14%; background: radial-gradient(circle at 30% 30%, rgba(52, 211, 180, .6), rgba(14, 107, 92, .1) 60%, transparent 70%); animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.auth-art .headline { margin: auto 0 0; }
.auth-art h1 { margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.auth-art h1 em { font-style: normal; background: linear-gradient(90deg, #FFE066, #FFCC00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art .lead { margin: 0; max-width: 460px; color: #B9BCC7; font-size: 16px; }
.auth-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; max-width: 460px; }
.auth-points li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: #E6E7EC; }
.auth-points .p-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 204, 0, .14); color: var(--mango); border: 1px solid rgba(255, 204, 0, .2); }
.auth-art .foot { margin-top: 44px; font-size: 12.5px; color: #8A8D98; display: flex; align-items: center; gap: 8px; }

.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 38px 34px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.auth-card .lock { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, #FFD633, #FFCC00); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 204, 0, .9); }
.auth-card h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { margin: 6px 0 24px; color: var(--muted); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.input-wrap { position: relative; }
.input-wrap > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input {
  width: 100%; height: 48px; padding: 0 14px 0 44px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { outline: 0; border-color: var(--mango); box-shadow: var(--ring); background: var(--surface); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 10px; }
.eye:hover { color: var(--text); background: var(--surface); }
.input.has-eye { padding-right: 48px; }
.caps-warn { display: none; align-items: center; gap: 8px; margin: -6px 0 14px; font-size: 12.5px; font-weight: 600; color: #B45309; }
.caps-warn.show { display: flex; }
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; background: var(--red-soft); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(23, 24, 28, .25); border-top-color: var(--ink); animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: block; } .btn.loading .lbl { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-note { margin-top: 22px; display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; }
.auth-top { position: fixed; top: 18px; right: 18px; z-index: 5; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmd-btn { min-width: 0; } .cmd-btn .lbl-txt, .cmd-btn .kbd { display: none; } .cmd-btn { padding: 0; width: 40px; flex: none; justify-content: center; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-102%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 11, 14, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .burger { display: grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 56px; }
  .hero { padding: 26px 22px; border-radius: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px 34px; min-height: 0; }
  .auth-art .headline { margin-top: 28px; }
  .auth-points, .auth-art .foot, .orb { display: none; }
  .auth-card { padding: 30px 22px; }
  .session-chip .lbl-txt { display: none; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px; } .stat .v { font-size: 24px; } .toasts { left: 14px; right: 14px; } .toast { max-width: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
