:root {
  --brand: #1a73e8;
  --brand-ink: #0b57d0;
  --brand-soft: #e8f0fe;
  --accent: #f9ab00;
  --ok: #1e8e3e;
  --ok-soft: #e6f4ea;
  --warn: #b06000;
  --warn-soft: #fef7e0;
  --bad: #d93025;
  --bad-soft: #fce8e6;
  --violet: #8430ce;
  --violet-soft: #f3e8fd;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #8a93a3;
  --line: #e5e8ef;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, .14);
  --hero-1: #1a73e8;
  --hero-2: #5b3df5;
  --radius: 16px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8ab4f8; --brand-ink: #aecbfa; --brand-soft: #1c2b45;
    --ok: #81c995; --ok-soft: #16301f; --warn: #fdd663; --warn-soft: #3a2f0f;
    --bad: #f28b82; --bad-soft: #3c1a18; --violet: #d7aefb; --violet-soft: #2e1d42;
    --bg: #0d1117; --surface: #161b24; --surface-2: #1d2430; --ink: #e8ecf3; --ink-2: #aab3c2; --ink-3: #727d8f; --line: #262f3d;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
    --hero-1: #1652b8; --hero-2: #3b2aa8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #8ab4f8; --brand-ink: #aecbfa; --brand-soft: #1c2b45;
  --ok: #81c995; --ok-soft: #16301f; --warn: #fdd663; --warn-soft: #3a2f0f;
  --bad: #f28b82; --bad-soft: #3c1a18; --violet: #d7aefb; --violet-soft: #2e1d42;
  --bg: #0d1117; --surface: #161b24; --surface-2: #1d2430; --ink: #e8ecf3; --ink-2: #aab3c2; --ink-3: #727d8f; --line: #262f3d;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  --hero-1: #1652b8; --hero-2: #3b2aa8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; }
dd, .jc-org, .mini-list, .board-card { overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.fine { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; transition: transform .1s, background .15s, border-color .15s; }
.btn:hover { text-decoration: none; border-color: var(--brand); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0b1220; } }
.btn.primary:hover { filter: brightness(1.08); }
.btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; }
.btn.light { background: #fff; color: #1a3a8a; border-color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; font-size: 16px; color: var(--ink-2); transition: all .15s; flex: none; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: 13px; }
.pill { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px); }
.pill:hover { background: rgba(255,255,255,.25); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px; }
.logo i { width: 4px; background: #fff; border-radius: 2px; animation: sig 2.4s ease-in-out infinite; }
.logo i:nth-child(1) { height: 30%; } .logo i:nth-child(2) { height: 60%; animation-delay: .2s; } .logo i:nth-child(3) { height: 100%; animation-delay: .4s; }
@keyframes sig { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav-ico { font-size: 14px; }
.nav-badge { background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.nav-dot { width: 7px; height: 7px; background: var(--bad); border-radius: 50%; position: absolute; top: 7px; right: 7px; box-shadow: 0 0 0 2px var(--surface); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 50%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.streak-chip { display: flex; align-items: center; gap: 5px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; border: 1px solid var(--line); }
.streak-chip:hover { text-decoration: none; border-color: var(--accent); }
.flame { filter: grayscale(1); opacity: .5; }
.flame.lit { filter: none; opacity: 1; animation: flick 1.2s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scale(1.15) rotate(-6deg); } }
.streak-chip .xp { color: var(--ink-3); font-size: 12px; padding-left: 6px; border-left: 1px solid var(--line); }

/* ---------- ticker ---------- */
.ticker { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); background: var(--surface); height: 36px; overflow: hidden; font-size: 13px; }
.ticker-label { flex: none; background: var(--bad); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .08em; height: 100%; display: flex; align-items: center; padding: 0 12px 0 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 22px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 36px; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.ticker-move a:hover { color: var(--brand); }
.ticker-move i { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; }
.tk-open { background: var(--ok-soft); color: var(--ok); } .tk-upcoming { background: var(--violet-soft); color: var(--violet); }
.tk-admit { background: var(--warn-soft); color: var(--warn); } .tk-closed { background: var(--surface-2); color: var(--ink-3); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move, .logo i, .flame.lit, .hero-bg span { animation: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; margin: 20px -16px 0; padding: 0 16px; }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; border-radius: 24px; overflow: hidden; padding: 44px 40px; color: #fff; background: linear-gradient(120deg, var(--hero-1), var(--hero-2)); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; max-width: 1240px; margin: 0 auto; border-radius: 24px; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; animation: float 14s ease-in-out infinite alternate; }
.hero-bg span:nth-child(1) { width: 320px; height: 320px; background: #3dd5f3; top: -120px; right: 10%; }
.hero-bg span:nth-child(2) { width: 260px; height: 260px; background: #f9ab00; bottom: -140px; left: 30%; opacity: .3; animation-delay: -5s; }
.hero-bg span:nth-child(3) { width: 200px; height: 200px; background: #ff6fb5; top: 30%; right: -60px; opacity: .3; animation-delay: -9s; }
@keyframes float { to { transform: translate(-40px, 30px) scale(1.15); } }
.hero-inner > * { position: relative; z-index: 3; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.hl { background: linear-gradient(90deg, #ffe082, #ffb74d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { opacity: .9; max-width: 560px; margin: 12px 0 20px; font-size: 16px; }
.search { display: flex; flex-direction: row; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 0 14px; box-shadow: var(--shadow-lg); }
.search.big { height: 54px; max-width: 600px; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 16px; min-width: 0; height: 100%; }
.search kbd { font-family: inherit; font-size: 12px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--ink-3); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { text-align: left; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 18px; color: #fff; backdrop-filter: blur(6px); transition: transform .15s, background .15s; }
.stat:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
.stat b { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; opacity: .85; }

/* ---------- banners & engage ---------- */
.fresh-banner { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-radius: 14px; background: linear-gradient(90deg, #0f9d58, #1a73e8); color: #fff; animation: slidein .5s ease; }
.fb-actions { display: flex; gap: 8px; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.engage-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.engage-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.engage-card div { flex: 1; min-width: 0; }
.engage-card b { display: block; font-size: 15px; }
.engage-card div span { font-size: 13px; color: var(--ink-3); }
.ec-ico { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.quiz-card .ec-ico { background: var(--warn-soft); } .profile-card .ec-ico { background: var(--ok-soft); } .tools-card .ec-ico { background: var(--violet-soft); }
.quiz-card:not(.done) { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.ec-cta { font-weight: 700; color: var(--brand); font-size: 13px; white-space: nowrap; }

.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 4px; scrollbar-width: thin; }
.cat-tile { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 140px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: all .15s; }
.cat-tile:hover, .cat-tile.active { border-color: var(--brand); background: var(--brand-soft); }
.ct-ico { font-size: 22px; }
.ct-name { font-size: 13px; font-weight: 600; line-height: 1.25; min-height: 32px; }
.ct-n { font-size: 12px; color: var(--ink-3); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 20px; margin: 20px 0 40px; align-items: start; }
.layout.single { grid-template-columns: 1fr; max-width: 800px; margin-inline: auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.filters { position: sticky; top: 108px; max-height: calc(100vh - 124px); overflow: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h2 { margin: 0; }
.filters h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.switch { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 14px; font-weight: 500; }
.switch small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { flex: none; width: 36px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.mini-cta { display: block; margin: 10px 0 2px; padding: 9px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 13px; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list button { display: flex; justify-content: space-between; gap: 8px; text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.cat-list button span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-list button:hover { background: var(--surface-2); }
.cat-list button.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }

.tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.tab { white-space: nowrap; flex: none; border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tab:hover { border-color: var(--brand); }
.tab.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.sort { margin-left: auto; width: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.results-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; margin: 4px 2px 10px; }
.chip-x { border: 0; background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.notice { background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px; }

/* ---------- job card ---------- */
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.job-card.closed { opacity: .78; }
.job-card.closed:hover { opacity: 1; }
.job-card.open::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ok); }
.job-card.upcoming::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet); }
.jc-top { display: flex; gap: 14px; align-items: flex-start; }
.avatar { --h: 210; flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: hsl(var(--h) 65% 38%); background: hsl(var(--h) 80% 94%); letter-spacing: -.02em; }
.avatar.long { font-size: 12px; }
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; } .avatar.sm.long { font-size: 8px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; } .avatar.lg.long { font-size: 16px; }
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 80% 78%); background: hsl(var(--h) 40% 20%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: hsl(var(--h) 80% 78%); background: hsl(var(--h) 40% 20%); } }
.jc-head { flex: 1; min-width: 0; }
.jc-head h3 { font-size: 17px; font-weight: 700; }
.jc-head h3 a { color: var(--ink); }
.jc-org { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.jc-org .cat { white-space: nowrap; }
.jc-actions { display: flex; gap: 6px; flex: none; }
.jc-actions .icon-btn.on:first-child { color: var(--accent); border-color: var(--accent); background: var(--warn-soft); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.new { background: var(--brand-soft); color: var(--brand-ink); }
.badge.fresh { background: linear-gradient(90deg, #0f9d58, #1a73e8); color: #fff; }
.badge.admit { background: var(--warn-soft); color: var(--warn); }
.badge.elig-yes { background: var(--ok-soft); color: var(--ok); }
.badge.elig-maybe { background: var(--warn-soft); color: var(--warn); }
.badge.elig-no { background: var(--bad-soft); color: var(--bad); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.jc-meta { font-size: 12px; color: var(--ink-3); }
.deadline { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.deadline.open { color: var(--ok); } .deadline.urgent { color: var(--bad); } .deadline.closed { color: var(--ink-3); } .deadline.upcoming { color: var(--violet); }
.bar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ok), var(--accent), var(--bad)); background-size: 300px 100%; }
.bar.lg { width: 100%; height: 8px; margin-top: 12px; }
.job-card.compact { padding: 14px; }
.job-card.compact h3 { font-size: 15px; }
.job-card.compact .avatar { width: 38px; height: 38px; }

/* ---------- side ---------- */
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 108px; }
.tg { background: linear-gradient(135deg, #229ed9, #1a73e8); color: #fff; border: 0; display: flex; flex-direction: column; gap: 4px; }
.tg:hover { text-decoration: none; filter: brightness(1.05); }
.tg span { font-size: 13px; opacity: .9; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list a { flex: 1; min-width: 0; color: var(--ink); }
.mini-list a:hover { text-decoration: none; }
.mini-list a:hover b { color: var(--brand); }
.mini-list b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list span { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.days { flex: none; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); }
.days.hot { background: var(--bad-soft); color: var(--bad); }
.stage-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stage-pill { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 10px; background: var(--surface-2); color: var(--ink); }
.stage-pill:hover { text-decoration: none; background: var(--brand-soft); }
.stage-pill b { font-size: 16px; } .stage-pill small { font-size: 9px; color: var(--ink-3); text-align: center; line-height: 1.1; }
.stage-pill.zero { opacity: .5; }
.org-list { list-style: none; margin: 0; padding: 0; }
.org-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.org-list li:first-child { border-top: 0; }
.org-name { flex: 1; min-width: 0; text-align: left; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.org-list .n { font-size: 12px; color: var(--ink-3); }
.follow { flex: none; border: 1px solid var(--brand); color: var(--brand); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.follow.on { background: var(--brand); color: var(--surface); }

/* ---------- empty / skeleton ---------- */
.empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty > div { font-size: 40px; }
.empty b { display: block; font-size: 18px; margin: 8px 0 4px; }
.empty p { color: var(--ink-3); margin: 0 0 16px; }
.empty.page { margin: 40px auto; max-width: 480px; }
.empty-inline { color: var(--ink-3); padding: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
.sk { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; margin: 10px 0; }
.sk-title { height: 40px; width: 70%; background-color: rgba(255,255,255,.2); }
.sk-search { height: 54px; max-width: 600px; }
.sk-line.short { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- pages ---------- */
.page-head { margin: 28px 0 18px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.page-head p { color: var(--ink-2); margin: 6px 0 0; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.count { font-size: 12px; background: var(--surface-2); color: var(--ink-2); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* detail */
.detail { margin: 20px 0 40px; }
.back { display: inline-block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.detail-head { padding: 24px; }
.dh-top { display: flex; gap: 18px; align-items: flex-start; }
.dh-top h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 8px 0 6px; }
.dh-org { color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.countdown { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; }
.countdown.urgent { background: var(--bad-soft); } .countdown.open { background: var(--ok-soft); } .countdown.upcoming { background: var(--violet-soft); }
.cd-num { font-size: 40px; font-weight: 800; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.countdown.urgent .cd-num { color: var(--bad); } .countdown.open .cd-num { color: var(--ok); } .countdown.upcoming .cd-num { color: var(--violet); }
.cd-num small { font-size: 14px; font-weight: 600; }
.cd-num.txt { font-size: 20px; }
.cd-dates { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.countdown .bar { grid-column: 1 / -1; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.cta-row.center { justify-content: center; } .cta-row.end { justify-content: flex-end; }
.dropdown { position: relative; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 230px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--ink); font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin-top: 18px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 18px; }
.lead { margin: 0; color: var(--ink-2); font-size: 15px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.kv dt { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 3px 0 0; font-weight: 600; font-size: 14px; }
.source { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.source .muted { width: 100%; font-size: 12px; }
.elig-panel.lvl-yes { border-color: var(--ok); } .elig-panel.lvl-no { border-color: var(--bad); } .elig-panel.lvl-maybe { border-color: var(--accent); }
.elig-verdict { font-weight: 800; font-size: 17px; }
.lvl-yes .elig-verdict { color: var(--ok); } .lvl-no .elig-verdict { color: var(--bad); } .lvl-maybe .elig-verdict { color: var(--warn); }
.reasons { margin: 8px 0 12px; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.stage-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.stage-picker button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stage-picker button.on { background: var(--brand); border-color: var(--brand); color: var(--surface); }
textarea { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); resize: vertical; font-size: 14px; }
.similar { margin-top: 28px; }
.similar h2 { font-size: 18px; margin-bottom: 12px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.similar-grid .job-card { margin: 0; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 24, .5); backdrop-filter: blur(3px); }
.sheet-card { position: relative; background: var(--surface); border-radius: 20px; padding: 24px; width: min(420px, 100%); box-shadow: var(--shadow-lg); animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-card h2 { font-size: 18px; margin-bottom: 16px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share { border: 0; border-radius: 12px; padding: 14px 8px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; }
.share:hover { text-decoration: none; filter: brightness(1.08); }
.share.wa { background: #25d366; } .share.tgm { background: #229ed9; } .share.cp { background: var(--ink); color: var(--surface); }
.share-pre { background: var(--surface-2); padding: 12px; border-radius: 10px; white-space: pre-wrap; font-family: inherit; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--surface); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; z-index: 200; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* compare */
.compare-tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 18px; padding: 10px 12px; max-width: calc(100% - 32px); }
.compare-tray[hidden] { display: none; }
.tray-items { display: flex; gap: 8px; overflow-x: auto; }
.tray-item { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 10px; padding: 4px 6px 4px 4px; font-size: 12px; font-weight: 600; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-item button { border: 0; background: none; color: var(--ink-3); padding: 0 2px; }
.tray-actions { display: flex; gap: 6px; flex: none; }
.compare-wrap { overflow-x: auto; padding: 0; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.compare thead th { background: var(--surface-2); }
.compare thead th a { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); }
.compare thead th .link { margin-top: 6px; font-size: 12px; }
.compare tbody th { color: var(--ink-3); font-weight: 600; font-size: 12px; width: 140px; }

/* tracker */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 30px; }
.board-col { background: var(--surface-2); border-radius: var(--radius); padding: 12px; min-height: 200px; }
.board-col h2 { font-size: 14px; margin: 2px 4px 12px; display: flex; gap: 6px; align-items: center; }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.board-card a { color: var(--ink); display: block; }
.board-card a b { display: block; font-size: 14px; }
.board-card a span { font-size: 12px; color: var(--ink-3); }
.board-card .deadline { font-size: 12px; margin-top: 8px; }
.board-card .note { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; background: var(--surface-2); padding: 6px 8px; border-radius: 8px; }
.move { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 10px; }
.move button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.move button.fwd { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.board-empty { text-align: center; color: var(--ink-3); padding: 20px; }

/* calendar */
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav b { min-width: 150px; text-align: center; }
.legend { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 0; overflow: hidden; background: var(--line); }
.cal-h { background: var(--surface-2); text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 8px 0; }
.cal-cell { background: var(--surface); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.pad { background: var(--surface-2); }
.cal-cell.past { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
.cal-cell.past .cal-d { color: var(--ink-3); }
.cal-d { font-size: 12px; font-weight: 700; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-cell.today .cal-d { background: var(--brand); color: var(--surface); }
.cal-ev { display: block; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { text-decoration: none; filter: brightness(.95); }
.cal-ev.last { background: var(--bad-soft); color: var(--bad); }
.cal-ev.notified { background: var(--brand-soft); color: var(--brand-ink); }
.cal-ev.mine { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-ev.mine::before { content: '⭐'; margin-right: 2px; }
.legend .cal-ev { display: inline-block; }
.cal-more { font-size: 11px; color: var(--ink-3); padding-left: 6px; }
.cal-agenda { margin: 18px 0 40px; }
.agenda-d { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-weight: 800; display: grid; place-items: center; }

/* quiz */
.quiz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 28px 0 14px; }
.quiz-head h1 { font-size: 30px; font-weight: 800; }
.quiz-head p { color: var(--ink-2); margin: 4px 0 0; }
.quiz-stats { display: flex; gap: 10px; }
.quiz-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; text-align: center; min-width: 76px; }
.quiz-stats b { display: block; font-size: 20px; }
.quiz-stats span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.week { display: flex; gap: 8px; margin-bottom: 18px; }
.wk { flex: 1; max-width: 70px; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--surface); border: 1px solid var(--line); }
.wk span { display: block; font-size: 11px; color: var(--ink-3); }
.wk b { font-size: 15px; }
.wk.hit { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.wk.now { outline: 2px solid var(--brand); outline-offset: 1px; }
.quiz-q { max-width: 720px; padding: 26px; }
.q-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.q-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); }
.q-progress span.cur { background: var(--brand); }
.q-progress span.r { background: var(--ok); } .q-progress span.w { background: var(--bad); }
.topic { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.quiz-q h2 { font-size: 21px; margin: 8px 0 20px; line-height: 1.35; }
.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px 14px; font-size: 15px; font-weight: 600; transition: all .15s; }
.opt:not(:disabled):hover { border-color: var(--brand); background: var(--brand-soft); }
.opt-l { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.opt.correct { border-color: var(--ok); background: var(--ok-soft); animation: pop .25s; }
.opt.correct .opt-l { background: var(--ok); color: #fff; }
.opt.incorrect { border-color: var(--bad); background: var(--bad-soft); animation: shake .3s; }
.opt.incorrect .opt-l { background: var(--bad); color: #fff; }
.opt.dim { opacity: .5; }
.opt:disabled { cursor: default; color: var(--ink); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.quiz-done { text-align: center; max-width: 720px; padding: 32px 24px; }
.score-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 360deg), var(--surface-2) 0); position: relative; }
.score-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-ring b { position: relative; font-size: 28px; }
.grid-emoji { font-size: 26px; letter-spacing: 4px; margin: 10px 0; }
.review { max-width: 720px; display: grid; gap: 10px; margin: 16px 0 40px; }
.rv { padding: 14px 16px; border-left: 4px solid var(--ok); }
.rv.wrong { border-left-color: var(--bad); }
.rv p { margin: 4px 0; font-size: 14px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

body[data-page="quiz"] #app > * { max-width: 760px; margin-left: auto; margin-right: auto; }

/* tools & forms */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 40px; }
.tool-wide { grid-column: 1 / -1; }
.tool-icon { font-size: 28px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 10px; }
.tool h2 { font-size: 18px; margin-bottom: 4px; }
.tool > p { margin: 0 0 14px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label small { font-weight: 400; color: var(--ink-3); }
input[type="date"], input[type="number"], input[type="text"], input:not([type]), select, input[type="file"] { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.tool-out { background: var(--surface-2); border-radius: 12px; padding: 16px; }
.big-num { font-size: 30px; font-weight: 800; line-height: 1.1; }
.big-num small { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.mini-table th, .mini-table td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini-table th { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.breakdown { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 12px; font-size: 14px; }
.breakdown span { color: var(--ink-2); }
.breakdown .sum { border-top: 1px solid var(--line); padding-top: 6px; color: var(--ink); font-weight: 800; }
.photo-out { display: flex; gap: 20px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 16px; min-height: 120px; flex-wrap: wrap; }
.drop-hint { color: var(--ink-3); width: 100%; text-align: center; }
.ph-preview { border: 1px solid var(--line); border-radius: 6px; background: #fff; max-width: 100%; height: auto; }
.ok { color: var(--ok); font-weight: 700; } .warn { color: var(--bad); font-weight: 700; }
.profile-form { max-width: 760px; padding: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.check { flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-weight: 500; color: var(--ink); background: var(--surface); }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.check.inline { display: inline-flex; margin-bottom: 4px; }
.fy-section { margin-bottom: 28px; }
.fy-section h2 { font-size: 19px; display: flex; gap: 8px; align-items: center; }
.fy-section > p { margin: 4px 0 12px; }
.fy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
.fy-list .job-card { margin: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; margin-top: 30px; font-size: 13px; color: var(--ink-2); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.footer-inner p { margin: 6px 0 0; max-width: 520px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-inner > .muted { grid-column: 1 / -1; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .play { display: none; }
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0 -16px; padding: 0 16px; }
  html { scroll-padding-top: 160px; }
  .filters, .side { top: 150px; }
}
@media (max-width: 1120px) {
  .layout { grid-template-columns: 230px minmax(0, 1fr); }
  .side { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 30px 22px; }
  .engage { grid-template-columns: 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > * { min-width: 0; }
  .filters { position: static; max-height: none; }
  .filters .cat-list { display: none; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .fy-list { grid-template-columns: minmax(0, 1fr); }
  .side, .filters { scroll-margin-top: 150px; }
  .filters, .side { top: auto; }
  html { scroll-padding-top: 150px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .hero { margin: 12px -16px 0; padding: 0; }
  .hero-inner, .hero-bg { border-radius: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 12px; } .stat b { font-size: 24px; }
  .streak-chip .xp { display: none; }
  .jc-top { gap: 10px; }
  .avatar { width: 40px; height: 40px; }
  .jc-actions .icon-btn:not(:first-child) { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs .sort { flex: none; width: auto; }
  .kv { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: 1fr; }
  .calendar { font-size: 11px; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .cal-ev::before { font-size: 0 !important; }
  .legend .cal-ev { font-size: 11px; height: auto; padding: 2px 6px; }
  .cal-more { display: none; }
  .cal-nav { width: 100%; justify-content: space-between; }
  .cal-nav b { min-width: 0; }
  .detail-head { padding: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .compare-tray { flex-direction: column; align-items: stretch; gap: 8px; }
  .tray-actions { justify-content: flex-end; }
}

/* =========================================================
   Motion
   ========================================================= */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

#app.page-in { animation: pageIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }

.reveal { opacity: 0; transform: translateY(18px) scale(.985); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.job-card.closed.reveal.in { opacity: .78; }
.job-card.closed.reveal.in:hover { opacity: 1; }

/* hero */
.caret { display: inline-block; width: 3px; height: .9em; margin-left: 3px; vertical-align: -0.08em; background: #ffd27a; border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.floaty { position: absolute; left: var(--x); bottom: -40px; font-size: 22px; font-style: normal; opacity: 0; filter: saturate(.8); animation: floatUp var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: .35; }
  85% { opacity: .25; }
  100% { transform: translateY(-460px) rotate(25deg); opacity: 0; }
}
.hero-copy > * { animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
.hl { background-size: 200% 100%; animation: shine 4s linear infinite; background-image: linear-gradient(90deg, #ffe082, #ffb74d, #fff3c4, #ffe082); }
@keyframes shine { to { background-position: -200% 0; } }
.search.big { transition: box-shadow .25s, transform .25s; }
.search.big:focus-within { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), var(--shadow-lg); }

/* cursor-following glow */
.job-card, .engage-card, .topic-card, .cat-tile, .stat { position: relative; overflow: hidden; }
.job-card::after, .engage-card::after, .topic-card::after, .cat-tile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
}
.stat::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 70%); }
.job-card:hover::after, .engage-card:hover::after, .topic-card:hover::after, .cat-tile:hover::after, .stat:hover::after { opacity: 1; }
.engage-card .ec-ico, .cat-tile .ct-ico, .topic-card .tc-ico { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.engage-card:hover .ec-ico, .cat-tile:hover .ct-ico, .topic-card:hover .tc-ico { transform: scale(1.15) rotate(-6deg); }
.ec-cta { transition: transform .2s; }
.engage-card:hover .ec-cta { transform: translateX(4px); }

/* ripple */
.btn, .opt, .tab, .chip, .stage-picker button, .cat-tile, .topic-card { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* pop + sparks */
.pop { animation: popIn .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes popIn { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.spark { position: fixed; z-index: 400; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); pointer-events: none; animation: spark .55s ease-out forwards; }
.spark:nth-child(odd) { background: var(--brand); }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* bars grow in */
.bar span, .tc-bar span { transform-origin: left; animation: grow 1s cubic-bezier(.2, .7, .2, 1) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }

/* urgent deadline pulse */
.deadline.urgent > span:first-child { animation: urgent 1.6s ease-in-out infinite; }
@keyframes urgent { 50% { opacity: .55; } }

.ticker-label { animation: liveGlow 2s ease-in-out infinite; }
@keyframes liveGlow { 50% { filter: brightness(1.25); } }

/* quiz */
.score-ring { animation: ring 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ring { from { --p: 0; } }
.grid-emoji { animation: heroIn .6s .4s both; }
.quiz-q .options .opt { animation: heroIn .4s both; }
.quiz-q .options .opt:nth-child(2) { animation-delay: .05s; } .quiz-q .options .opt:nth-child(3) { animation-delay: .1s; } .quiz-q .options .opt:nth-child(4) { animation-delay: .15s; }
.quiz-q .options .opt:disabled { animation: none; }
.quiz-q .options .opt.correct { animation: correctPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes correctPop { 50% { transform: scale(1.03); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 25%, transparent); } }
.quiz-q.shake { animation: shake .35s; }
.explain { animation: heroIn .35s both; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* =========================================================
   Practice & current affairs
   ========================================================= */
.learn-tabs { display: flex; gap: 6px; margin: 22px 0 0; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.learn-tabs a { position: relative; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.learn-tabs a:hover { text-decoration: none; background: var(--surface-2); }
.learn-tabs a.active { background: var(--brand); color: var(--surface); }
.nav-dot.inline { position: static; display: inline-block; margin-left: 6px; vertical-align: middle; }

.practice-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.topic-section { margin: 22px 0; }
.topic-section h2 { font-size: 18px; margin-bottom: 12px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.topic-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.tc-ico { font-size: 22px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); font-weight: 800; color: var(--brand-ink); }
.tc-name { font-weight: 700; font-size: 15px; }
.tc-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.lv { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-3); }
.lv.lv1 { background: var(--brand-soft); color: var(--brand-ink); } .lv.lv2 { background: var(--warn-soft); color: var(--warn); }
.lv.lv3 { background: var(--ok-soft); color: var(--ok); } .lv.lv4 { background: linear-gradient(90deg, #f9ab00, #ff7043); color: #fff; }
.tc-bar { width: 100%; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.tc-bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--ok)); }

.session-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 12px; max-width: 760px; }
.sess-meta { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; font-size: 14px; }
.quiz-q.session { max-width: 760px; }
.explain { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border-left: 4px solid var(--ok); background: var(--ok-soft); }
.explain.bad { border-left-color: var(--bad); background: var(--bad-soft); }
.explain p { margin: 6px 0 0; color: var(--ink); font-size: 14px; }
.src { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; }
.hint { font-size: 12px; margin: 14px 0 0; }
.small { font-size: 13px; }
.topic-break { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 10px 0 4px; }
.topic-break span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
body[data-page="practice"] .quiz-done, body[data-page="current"] .quiz-done { margin-top: 18px; }

.month-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.chip small { font-weight: 500; font-size: 11px; color: var(--ink-3); }
.chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.ca-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface)); }
.ca-hero h2 { font-size: 19px; margin: 6px 0 4px; }
.ca-hero .cta-row { margin: 0; }
.ca-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 18px 0 40px; }
.fact p { margin: 6px 0 0; font-size: 14px; }

@media (max-width: 600px) {
  .learn-tabs { width: 100%; border-radius: 14px; }
  .learn-tabs a { padding: 7px 12px; font-size: 13px; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic-card { padding: 12px; }
  .ca-facts { grid-template-columns: minmax(0, 1fr); }
  .practice-cta .btn { width: 100%; justify-content: center; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .floaty { display: none; }
}

/* =========================================================
   Tools v2
   ========================================================= */
.tool-title { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.tool-title .tool-icon { margin: 0; flex: none; }
.tool-title p { margin: 4px 0 0; font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.photo-controls { display: flex; flex-direction: column; gap: 12px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; color: var(--ink); }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-ico { font-size: 30px; }
.drop.compact { padding: 12px; flex-direction: row; gap: 10px; }
.drop.compact .drop-ico { font-size: 20px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow); }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.photo-stage { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.stage-box { padding: 14px; border-radius: 14px; width: 100%; display: grid; place-items: center;
  background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); }
#ph-canvas { border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: grab; touch-action: none; box-shadow: var(--shadow); max-width: 100%; height: auto; }
#ph-canvas.dragging { cursor: grabbing; }
.photo-out { width: 100%; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; min-height: 0; display: block; }
.out-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.out-row p { margin: 4px 0 0; }
.tips { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); }
.tips summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.tips ul { margin: 10px 0 2px; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.tips li { margin: 4px 0; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.pill-s { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pill-s:hover { border-color: var(--brand); }
.pill-s.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.mini-table .row-ok td:last-child { color: var(--ok); font-weight: 800; }
.mini-table .row-no td { color: var(--ink-3); }
.mini-table .row-no td:last-child { color: var(--bad); font-weight: 800; }
.tool .form-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* =========================================================
   Study sheets, solutions, shortcuts
   ========================================================= */
.topic-card { color: var(--ink); }
.topic-card:hover { text-decoration: none; }
.topic-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; margin-top: 4px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface)); }
.tc-ico.big { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.th-copy { flex: 1; min-width: 200px; }
.th-copy h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 4px 0; }
.th-copy p { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topic-hero .cta-row { margin: 0; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.note-card { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); }
.note-card h3 { font-size: 14px; margin-bottom: 8px; }
.note-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.note-card li { margin: 6px 0; }
.note-card.formulas { border-top: 3px solid var(--brand); }
.note-card.tricks { border-top: 3px solid var(--accent); }
.note-card.traps { border-top: 3px solid var(--bad); }
.example { margin-bottom: 40px; }
.ex-q { margin: 0 0 10px; font-size: 16px; }
.ex-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-bottom: 14px; }
.ex-opts span { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.ex-opts span.right { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.sol h3, .explain h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 10px 0 4px; }
.steps { margin: 4px 0 0; padding-left: 22px; font-size: 14px; color: var(--ink); }
.steps li { margin: 4px 0; padding-left: 2px; }
.steps li::marker { color: var(--brand); font-weight: 800; }
.shortcut { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); border-left: 4px solid var(--accent); animation: heroIn .4s .1s both; }
.shortcut b { font-size: 14px; }
.shortcut p { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.quiz-q .tips .notes-grid { grid-template-columns: minmax(0, 1fr); margin: 10px 0 4px; }
.quiz-q .tips .note-card { padding: 12px 14px; }
.rv-sol { margin-top: 6px; }
.rv-sol summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--brand); }
.rv-sol .shortcut { animation: none; }

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .notes-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Guides (blog), About, Privacy
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 6px 0 40px; }
.blog-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; position: relative; overflow: hidden; }
.blog-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.blog-card h2 { font-size: 17px; line-height: 1.3; }
.blog-card p { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .muted { margin-top: auto; }
a.chip { color: var(--ink); }
a.chip:hover { text-decoration: none; border-color: var(--brand); }

.article { max-width: 780px; margin: 24px auto 40px; }
.article header { margin: 8px 0 22px; }
.article header h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; }
.article .lead { font-size: 17px; color: var(--ink-2); margin: 0 0 8px; }
.md, .prose { font-size: 16px; line-height: 1.75; color: var(--ink); }
.md h2, .prose h2 { font-size: 22px; margin: 34px 0 10px; }
.md h3 { font-size: 18px; margin: 26px 0 8px; }
.md h4 { font-size: 16px; margin: 20px 0 6px; }
.md p, .prose p { margin: 0 0 14px; }
.md ul, .md ol, .prose ul { padding-left: 22px; margin: 0 0 16px; }
.md li, .prose li { margin: 6px 0; }
.md a { font-weight: 600; }
.md blockquote { margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.md code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.md-table { overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.md-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; min-width: 520px; }
.md-table th { background: var(--surface-2); text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.md-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table tr:last-child td { border-bottom: 0; }
.md-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.article-cta { margin: 30px 0; }
.article-cta p { margin: 4px 0 0; }
.related h2 { font-size: 20px; margin: 10px 0 12px; }
.prose .notice { margin: 16px 0 8px; }
.principles { list-style: none; padding: 0 !important; }
.principles li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }

.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-content: start; }

/* Pre-rendered content (shown before JS takes over, and to crawlers) */
#app[data-prerendered] ul { padding-left: 20px; }
#app[data-prerendered] li { margin: 4px 0; }
#app[data-prerendered] > h2 { margin: 22px 0 8px; font-size: 18px; }

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .md, .prose { font-size: 15px; }
}

/* Telegram call-to-action in the hero */
.tg-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 700; font-size: 14px;
  backdrop-filter: blur(6px); transition: background .2s, transform .2s; animation: heroIn .7s .4s cubic-bezier(.2, .7, .2, 1) both; }
.tg-cta:hover { text-decoration: none; background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.tg-ico { width: 28px; height: 28px; border-radius: 50%; background: #229ed9; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 0 rgba(34, 158, 217, .6); animation: tgPulse 2.4s infinite; }
@keyframes tgPulse { 70% { box-shadow: 0 0 0 10px rgba(34, 158, 217, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0); } }
@media (max-width: 600px) { .tg-cta { font-size: 13px; white-space: normal; } }

.hero-copy, .hero-stats { min-width: 0; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }

/* Hero: latest updates feed (replaces the stat tiles) */
.hero-updates { min-width: 0; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; padding: 16px; backdrop-filter: blur(8px); color: #fff; animation: heroIn .7s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hu-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.hu-head b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.hu-head span { font-size: 12px; opacity: .8; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: liveDot 1.8s infinite; }
@keyframes liveDot { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero-updates ul { list-style: none; margin: 0; padding: 0; }
.hero-updates li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-updates li a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; color: #fff; transition: background .15s; }
.hero-updates li a:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }
.hero-updates li { animation: heroIn .5s both; }
.hero-updates li:nth-child(2) { animation-delay: .06s; } .hero-updates li:nth-child(3) { animation-delay: .12s; }
.hero-updates li:nth-child(4) { animation-delay: .18s; } .hero-updates li:nth-child(5) { animation-delay: .24s; } .hero-updates li:nth-child(6) { animation-delay: .3s; }
.hu-tag { flex: none; width: 74px; text-align: center; font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 0; border-radius: 6px; background: rgba(255, 255, 255, .2); }
.hu-tag.open { background: #34d399; color: #053b2a; }
.hu-tag.urgent { background: #f87171; color: #450a0a; }
.hu-tag.admit { background: #fbbf24; color: #3b2600; }
.hu-tag.upcoming { background: #c4b5fd; color: #2e1065; }
.hu-tag.closed { background: rgba(255, 255, 255, .22); color: #fff; }
.hu-text { min-width: 0; display: flex; flex-direction: column; }
.hu-text b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hu-text small { font-size: 11px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hu-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hu-chip { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.hu-chip:hover { background: rgba(255, 255, 255, .22); }
.hu-chip.all { margin-left: auto; background: #fff; color: #1a3a8a; border-color: #fff; }

/* Results header with sort control */
.results-meta { flex-wrap: wrap; }
.sort-wrap { margin-left: auto; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sort-wrap .sort { margin: 0; width: auto; min-width: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 7px 34px 7px 14px; border-radius: 999px; border: 1px solid var(--line); background-color: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; transition: border-color .15s; }
.sort-wrap .sort:hover, .sort-wrap .sort:focus { border-color: var(--brand); outline: none; }
.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }

@media (max-width: 600px) {
  .hu-tag { width: 64px; }
  .hu-chip.all { margin-left: 0; }
  .sort-wrap span { display: none; }
}

/* Tab counts */
.tab { display: inline-flex; align-items: center; gap: 6px; }
.tab-n { font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); text-align: center; }
.tab.active .tab-n { background: color-mix(in srgb, var(--surface) 25%, transparent); color: inherit; }
.tab.is-empty:not(.active) { opacity: .55; }

/* Sort: sidebar panel on wide screens, inline select when the sidebar drops below results */
.sort-panel h2 { margin-bottom: 10px; }
.sort-options { display: flex; flex-direction: column; gap: 4px; }
.sort-opt { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid transparent; background: none; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .15s, border-color .15s; }
.sort-opt::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border-color .15s, box-shadow .15s; }
.sort-opt:hover { background: var(--surface-2); }
.sort-opt.on { background: var(--brand-soft); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.sort-opt.on::before { border-color: var(--brand); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--brand); }
.sort-wrap { display: none; }
@media (max-width: 1120px) {
  .sort-panel { display: none; }
  .sort-wrap { display: flex; }
}
.tabs { gap: 5px; }
.tabs .tab { padding: 6px 10px 6px 12px; gap: 5px; }
.tab-n { min-width: 18px; padding: 0 5px; }
