/* =========================================================
   Advocacy – clean SaaS theme (Renza-inspired) + micro-interactions
   ========================================================= */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --border: #e8ebf0;
  --divider: #f1f3f6;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff4ff;
  --primary-text: #1d4ed8;
  --navy: #0b1437;

  --like: #0284c7;    --like-bg: #e0f2fe;
  --comment: #7c3aed; --comment-bg: #f3e8ff;
  --share: #16a34a;   --share-bg: #dcfce7;
  --post: #ea580c;    --post-bg: #ffedd5;

  --gold: #eab308; --silver: #94a3b8; --bronze: #c2703d;
  --green: #16a34a; --green-bg: #e8f8ee;
  --red: #dc2626; --red-bg: #fdecec;
  --amber: #d97706; --amber-bg: #fef3c7;

  --r: 14px;
  --r-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --nav-w: 256px;
  --top-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', 'Heebo', system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
}
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; }
em { font-style: normal; color: var(--text-3); font-weight: 400; }
bdi { unicode-bidi: isolate; }
::selection { background: #dbe7ff; }

.ms {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1; display: inline-block; white-space: nowrap;
  font-feature-settings: 'liga'; user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400;
  transition: transform .25s var(--spring);
}
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400; }

/* ---------- Motion primitives ---------- */
.reveal { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, .45); } 100% { box-shadow: 0 0 0 8px rgba(234, 88, 12, 0); } }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.swapping { animation: swapIn .45s var(--ease) both; }

/* Spotlight that follows the cursor (set by JS: --mx / --my) */
.spot { position: relative; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .06), transparent 45%);
  transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }

/* Ripple (JS adds .ripple span) */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .18; pointer-events: none; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* =================== Sidebar =================== */
.sidenav {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--nav-w); z-index: 30;
  display: flex; flex-direction: column; gap: 18px; padding: 20px 16px;
  background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff;
  display: grid; place-items: center; transition: transform .4s var(--spring);
}
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand-mark .ms { font-size: 20px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.side-search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text-3); transition: border-color .2s, box-shadow .2s;
}
.side-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.side-search input { border: 0; background: none; height: 36px; padding: 0; flex: 1; min-width: 0; box-shadow: none !important; font-size: 13.5px; }
.side-search kbd { font: 500 11px 'Inter'; color: var(--text-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
#tabs { position: relative; display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 12px; font-weight: 500; color: var(--text-3); padding: 12px 10px 6px; }
.nav-indicator {
  position: absolute; left: 0; right: 0; height: 40px; border-radius: var(--r-sm); background: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25); transition: transform .35s var(--spring), height .2s; z-index: 0; pointer-events: none;
}
#tabs button {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2);
  font: inherit; font-weight: 500; cursor: pointer; text-align: left; transition: color .25s, background .2s;
}
#tabs button:hover:not(.active) { background: var(--surface-2); color: var(--text); }
#tabs button:hover:not(.active) .ms { transform: translateX(2px) rotate(-6deg); }
#tabs button.active { color: #fff; }
.nav-count { margin-left: auto; font-size: 11.5px; font-weight: 600; background: var(--divider); color: var(--text-2); border-radius: 10px; padding: 1px 8px; transition: background .25s, color .25s; }
#tabs button.active .nav-count { background: rgba(255,255,255,.22); color: #fff; }
.nav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--post); animation: pulse-dot 1.4s infinite; }
.nav-foot { margin-top: auto; border: 1px solid var(--border); border-radius: var(--r); padding: 14px; background: var(--surface-2); }
.legend-title { font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 10px; }
.legend { display: grid; gap: 8px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.legend-row b { margin-left: auto; color: var(--text); font-weight: 600; }

/* =================== Top bar =================== */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); margin-left: var(--nav-w);
  display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.menu-toggle { display: none; }
.crumbs { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 13.5px; }
.crumbs .ms { font-size: 18px; }
.crumbs b { color: var(--text); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--post-bg); color: var(--post); font-size: 12.5px; font-weight: 600; cursor: pointer; animation: pop .3s var(--spring); }
.live-pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--post); animation: pulse-dot 1.4s infinite; }
.org-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.org-logo { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.org-chip b { display: block; font-size: 13px; line-height: 1.2; }
.org-chip small { color: var(--text-3); font-size: 11.5px; }
.icon-btn {
  position: relative; overflow: hidden; width: 36px; height: 36px; border-radius: var(--r-sm); border: 0; background: none; color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.icon-btn:hover { background: var(--divider); color: var(--text); }
.icon-btn:active { transform: scale(.92); }

/* =================== Main =================== */
main { margin-left: var(--nav-w); padding: 28px 32px 80px; max-width: calc(1320px + var(--nav-w)); }
.tab { display: none; }
.tab.active { display: block; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; animation: rise .4s var(--ease) both; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.page-sub { margin: 4px 0 0; color: var(--text-2); }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* =================== Cards =================== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-xs); min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head.padded { padding: 18px 20px 14px; margin: 0; }
.card-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--divider); color: var(--text-2); font-size: 12px; font-weight: 600; }
.hint { color: var(--text-2); margin: 0 0 12px; font-size: 13.5px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid2.tight { gap: 16px 20px; }
.grid2 h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

details.more { padding: 0; }
details.more > summary {
  list-style: none; cursor: pointer; padding: 14px 20px; font-weight: 500; color: var(--text-2);
  display: flex; align-items: center; gap: 10px; transition: color .15s;
}
details.more > summary:hover { color: var(--text); }
details.more > summary::-webkit-details-marker { display: none; }
details.more .chev { margin-left: auto; transition: transform .3s var(--ease); }
details.more[open] .chev { transform: rotate(180deg); }
details.more[open] > summary { border-bottom: 1px solid var(--divider); }
details.more > :not(summary) { padding: 18px 20px 20px; animation: fade .3s both; }
details.more > .hint { padding-bottom: 0; }

/* =================== Buttons & inputs =================== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .2s, transform .15s var(--spring), color .15s;
}
.btn .ms { font-size: 18px; }
.btn:hover .ms { transform: scale(1.12); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255,255,255,.12); }
.btn.primary:hover { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(37, 99, 235, .3); }
.btn.outline { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.btn.outline:hover { border-color: #d5dae2; background: var(--surface-2); }
.btn.icon-only { width: 38px; padding: 0; }
.btn.icon-only:hover .ms { transform: rotate(180deg); }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.danger:hover { background: #fbdcdc; }
.btn.file { position: relative; }
.link { background: none; border: 0; padding: 6px 8px; border-radius: 8px; color: var(--primary-text); font: inherit; font-weight: 500; font-size: 13px; cursor: pointer; transition: background .15s; }
.link:hover { background: var(--primary-soft); }

input, select, textarea {
  font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0 12px; height: 40px; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; width: 100%; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #d5dae2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.field.grow { flex: 1; min-width: 180px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 14px; }
.add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.add-row.end { justify-content: flex-end; margin-top: 18px; }
.status-line { font-size: 13.5px; color: var(--text-2); }
.status-line .ok { color: var(--green); font-weight: 600; }
.status-line .err { color: var(--red); }
.search {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-3);
  transition: border-color .15s, box-shadow .15s, width .3s var(--ease);
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); color: var(--primary); }
.search input { border: 0; background: none; height: 34px; padding: 0 2px; width: 240px; box-shadow: none !important; }
.search.sm input { width: 150px; transition: width .3s var(--ease); }
.search.sm:focus-within input { width: 200px; }
.danger-zone { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--border); }

/* =================== Action icons / chips =================== */
.act { --c: var(--primary); --bg: var(--primary-soft); }
.act.like { --c: var(--like); --bg: var(--like-bg); }
.act.comment { --c: var(--comment); --bg: var(--comment-bg); }
.act.share { --c: var(--share); --bg: var(--share-bg); }
.act.shareWithPost { --c: var(--post); --bg: var(--post-bg); }
.act-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; background: var(--bg); color: var(--c); }
.act-icon .ms { font-variation-settings: 'FILL' 1, 'wght' 400; font-size: 18px; }
.act-icon.sm { width: 24px; height: 24px; border-radius: 7px; }
.act-icon.sm .ms { font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px;
  font-size: 12px; font-weight: 500; background: var(--bg, var(--divider)); color: var(--c, var(--text-2)); white-space: nowrap;
}
.chip .ms { font-size: 14px; }
.chip.ok { --bg: var(--green-bg); --c: var(--green); }
.chip.fail { --bg: var(--red-bg); --c: var(--red); }
.chip.warn { --bg: var(--amber-bg); --c: var(--amber); }
.chip.run { --bg: var(--primary-soft); --c: var(--primary-text); }
.chip.run .ms { animation: spin 1.2s linear infinite; }
.chip.neutral { --bg: var(--divider); --c: var(--text-2); }
a.chip:hover { text-decoration: none; filter: brightness(.97); }
.pts-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-text); font-weight: 600; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 600; animation: pop .4s var(--spring) both .5s; }
.trend.up { background: var(--green-bg); color: var(--green); }
.trend.down { background: var(--red-bg); color: var(--red); }
.trend.flat { background: var(--divider); color: var(--text-3); }
.trend .ms { font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* =================== Avatars =================== */
.avatar {
  --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative;
  display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: calc(var(--s) * .36);
}
.avatar img, .avatar .ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.avatar .ini { background: var(--av, var(--primary)); }
.avatar .badge-act { position: absolute; bottom: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; border: 2px solid #fff; }
.avatar .badge-act .ms { font-size: 11px; font-variation-settings: 'FILL' 1; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { --s: 26px; border: 2px solid #fff; margin-left: -7px; transition: transform .2s var(--spring), margin .2s var(--ease); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack:hover .avatar { margin-left: -2px; }
.avatar-stack .avatar:hover { transform: translateY(-3px) scale(1.1); z-index: 2; }
.avatar-stack .more { width: 26px; height: 26px; border-radius: 50%; background: var(--divider); color: var(--text-2); font-size: 10.5px; display: grid; place-items: center; margin-left: -7px; border: 2px solid #fff; font-weight: 600; }

/* =================== Month switch =================== */
.month-switch { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px; box-shadow: var(--shadow-xs); }
.month-switch .icon-btn { width: 32px; height: 32px; border-radius: 8px; }
.month-switch .icon-btn:hover .ms { transform: translateX(-2px); }
.month-switch .icon-btn + .month-pill + .icon-btn:hover .ms { transform: translateX(2px); }
.month-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; min-width: 132px; justify-content: center; }
.month-pill:hover { background: var(--surface-2); }
.month-pill .ms { font-size: 17px; color: var(--text-3); }
.month-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; }
.month-pill input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* =================== Stat cards (Renza style) =================== */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px;
  transition: transform .25s var(--spring), box-shadow .25s, border-color .25s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ea; }
.stat-top { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; font-weight: 600; font-size: 13.5px; }
.stat-top .act-icon { width: 26px; height: 26px; border-radius: 8px; }
.stat-top .act-icon .ms { font-size: 15px; }
.stat:hover .stat-top .act-icon .ms { transform: scale(1.15) rotate(-8deg); }
.stat-worth { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.stat-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-val { font-size: 26px; font-weight: 600; letter-spacing: -.5px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-cap { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.stat.total .stat-top .act-icon { background: var(--primary-soft); color: var(--primary); }
.stat.total .stat-val { color: var(--primary); }

/* =================== Podium =================== */
.participation { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.participation .bar { width: 120px; height: 6px; border-radius: 3px; background: var(--divider); overflow: hidden; }
.participation .bar span { display: block; height: 100%; background: var(--primary); border-radius: 3px; transform-origin: left; animation: barIn 1s var(--ease) both .3s; }
.participation b { color: var(--text); }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 16px; max-width: 760px; margin: 6px auto 0; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.pod.p1 { order: 2; } .pod.p2 { order: 1; } .pod.p3 { order: 3; }
.pod.p1 { --ring: var(--gold); --tint: #fefbea; } .pod.p2 { --ring: var(--silver); --tint: #f6f8fb; } .pod.p3 { --ring: var(--bronze); --tint: #fdf5ef; }
.pod-person { display: flex; flex-direction: column; align-items: center; padding-bottom: 12px; animation: rise .5s var(--ease) both; }
.pod.p1 .pod-person { animation-delay: .3s; } .pod.p2 .pod-person { animation-delay: .15s; } .pod.p3 .pod-person { animation-delay: .22s; }
.pod .avatar { --s: 72px; transition: transform .35s var(--spring); }
.pod.p1 .avatar { --s: 92px; }
.pod:hover .avatar { transform: translateY(-4px) scale(1.04); }
.pod .avatar::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--ring); }
.crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); color: var(--gold); }
.crown .ms { font-size: 26px; font-variation-settings: 'FILL' 1; animation: float 2.8s ease-in-out infinite; }
.pod-name { font-weight: 600; font-size: 15px; margin-top: 12px; }
.pod-dept { color: var(--text-3); font-size: 12.5px; }
.pod-pts { margin-top: 6px; font-weight: 700; font-size: 18px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.pod-pts small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.pod-block {
  width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: center;
  font-size: 28px; font-weight: 700; color: var(--ring);
  background: linear-gradient(180deg, var(--tint), var(--surface)); border: 1px solid var(--border); border-bottom: 0; border-top: 3px solid var(--ring);
  transform-origin: bottom; animation: grow .7s var(--ease) both;
}
@keyframes grow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.pod.p1 .pod-block { height: 110px; }
.pod.p2 .pod-block { height: 80px; animation-delay: .08s; }
.pod.p3 .pod-block { height: 60px; animation-delay: .16s; }
.pod-empty { text-align: center; color: var(--text-2); padding: 20px; grid-column: 1 / -1; }

/* =================== Leaderboard (table style) =================== */
.table-head { display: grid; align-items: center; gap: 12px; margin: 0 14px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--text-2); }
.lb-grid { grid-template-columns: 36px minmax(150px, 1.1fr) 1.2fr 64px; }
.right { text-align: right; }
.lb { display: flex; flex-direction: column; padding: 6px 14px 14px; }
.lb-row {
  position: relative; display: grid; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer;
  border-bottom: 1px solid var(--divider); transition: background .15s, transform .2s var(--spring);
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.lb-row::after { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--primary); transform: scaleY(0); transition: transform .2s var(--ease); }
.lb-row:hover { background: var(--surface-2); }
.lb-row:hover::after { transform: scaleY(1); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.zero { opacity: .55; }
.rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; color: var(--text-2); background: var(--divider); }
.rank.r1 { background: #fef6d8; color: #a16207; } .rank.r2 { background: #eef1f5; color: #475569; } .rank.r3 { background: #fbede3; color: #9a4f1f; }
.lb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-who > div { min-width: 0; }
.lb-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-dept { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--divider); }
.lb-bar span { height: 100%; background: var(--c); transform-origin: left; animation: barIn .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms + .15s); }
.lb-meta { display: flex; gap: 10px; margin-top: 5px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.lb-meta i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.lb-meta i .ms { font-size: 13px; color: var(--c); font-variation-settings: 'FILL' 1; }
.lb-pts { text-align: right; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }

/* =================== Feed =================== */
.feed { max-height: 600px; overflow: auto; padding: 0 10px 10px; }
.feed-item {
  display: flex; gap: 12px; padding: 12px 10px; border-radius: var(--r-sm); cursor: pointer; border-bottom: 1px solid var(--divider);
  transition: background .15s; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: var(--surface-2); }
.feed-item:hover .feed-thumb { transform: scale(1.05); }
.feed-body { flex: 1; min-width: 0; }
.feed-line { font-size: 13.5px; color: var(--text-2); }
.feed-line b { font-weight: 600; color: var(--text); }
.feed-quote { margin-top: 3px; font-size: 13px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-time { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.feed-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--divider); transition: transform .3s var(--ease); }
.feed-empty { text-align: center; padding: 34px 10px; color: var(--text-2); }
.feed-empty .ms { font-size: 36px; color: var(--text-3); display: block; margin-bottom: 4px; }

/* =================== Post cards =================== */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.post {
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); color: inherit;
  display: flex; flex-direction: column; transition: transform .25s var(--spring), box-shadow .25s, border-color .25s;
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: #dfe3ea; }
.post-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef2f9, #f6f7fb); overflow: hidden; }
.post-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-media img { transform: scale(1.05); }
.post-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.post-media .ph .ms { font-size: 36px; }
.post-media .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.post-media .play .ms { font-size: 26px; color: #fff; background: rgba(15, 23, 42, .55); border-radius: 50%; padding: 8px; font-variation-settings: 'FILL' 1; }
.post-date { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255,255,255,.95); border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 600; }
.post-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-text { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-stats { display: flex; gap: 12px; color: var(--text-2); font-size: 12.5px; }
.post-stats span { display: inline-flex; align-items: center; gap: 4px; }
.post-stats .ms { font-size: 15px; }
.post-engaged { font-size: 11.5px; color: var(--text-3); }

/* =================== Drawer =================== */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .3); backdrop-filter: blur(2px); z-index: 50; animation: fade .2s both; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(540px, 100vw); z-index: 51;
  background: var(--bg); box-shadow: var(--shadow-lg); overflow-y: auto;
  transform: translateX(105%); transition: transform .45s var(--ease);
}
.drawer.open { transform: none; }
.drawer-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.18); color: #fff; }
.drawer-close:hover { background: rgba(255,255,255,.3); color: #fff; }
.drawer-close:hover .ms { transform: rotate(90deg); }
.dr-cover { height: 112px; background: linear-gradient(120deg, var(--navy), #1e3a8a 60%, var(--primary)); position: relative; overflow: hidden; }
.dr-cover::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 18px 18px; }
.dr-head { padding: 0 24px; margin-top: -48px; position: relative; display: flex; align-items: flex-end; gap: 14px; }
.dr-head .avatar { --s: 96px; border: 4px solid var(--bg); border-radius: 50%; animation: pop .45s var(--spring) both .1s; }
.dr-rank { margin-bottom: 8px; }
.dr-info { padding: 12px 24px 0; }
.dr-name { font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.dr-title { color: var(--text-2); }
.dr-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dr-section { padding: 20px 24px 0; }
.dr-section h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-3); margin-bottom: 10px; }
.dr-score { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.dr-score-num { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--primary); font-variant-numeric: tabular-nums; }
.dr-score b { font-weight: 600; }
.dr-score-label { color: var(--text-2); font-size: 12.5px; }
.formula { display: grid; gap: 8px; margin-top: 10px; }
.formula-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; transition: transform .2s var(--spring); }
.formula-row:hover { transform: translateX(3px); }
.formula-row .fx { font-size: 13.5px; }
.formula-row .fx b { font-weight: 600; }
.formula-row .fx small { color: var(--text-3); }
.fx-bar { height: 5px; border-radius: 3px; background: var(--divider); margin-top: 6px; overflow: hidden; }
.fx-bar span { display: block; height: 100%; background: var(--c); border-radius: 3px; transform-origin: left; animation: barIn .8s var(--ease) both .2s; }
.fx-total { font-weight: 700; font-size: 16px; color: var(--c); font-variant-numeric: tabular-nums; }
.formula-row.off { opacity: .45; }
.timeline { display: flex; flex-direction: column; gap: 10px; padding-bottom: 30px; }
.tl-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px;
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + .15s); transition: box-shadow .2s, border-color .2s;
}
.tl-item:hover { box-shadow: var(--shadow); border-color: #dfe3ea; }
.tl-top { display: flex; align-items: center; gap: 10px; }
.tl-what { flex: 1; min-width: 0; }
.tl-what b { display: block; font-weight: 600; font-size: 13.5px; }
.tl-what small { color: var(--text-3); }
.tl-quote { margin: 12px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 13.5px; border-left: 3px solid var(--c); }
.tl-post { display: flex; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid var(--divider); border-radius: var(--r-sm); color: inherit; transition: background .15s, border-color .15s; }
.tl-post:hover { background: var(--surface-2); text-decoration: none; border-color: var(--border); }
.tl-post:hover .tl-post-label .ms { transform: translate(2px, -2px); }
.tl-post img, .tl-post .ph { width: 80px; height: 58px; border-radius: 8px; object-fit: cover; flex: none; }
.tl-post .ph { background: var(--divider); display: grid; place-items: center; color: var(--text-3); }
.tl-post-text { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-post-label { font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; }
.tl-post-label .ms { font-size: 13px; }
.dr-empty { text-align: center; padding: 30px 10px; color: var(--text-2); }
.dr-empty .ms { font-size: 40px; color: var(--text-3); display: block; margin-bottom: 6px; }

/* =================== Employees =================== */
.add-card { display: flex; gap: 18px; align-items: flex-start; }
.add-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.add-card:hover .add-icon .ms { transform: scale(1.15) rotate(-6deg); }
.add-body { flex: 1; min-width: 0; }
.add-body h2 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.add-row input { min-width: 200px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.toolbar h2 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary-text); margin-bottom: 14px; font-weight: 500; animation: rise .3s var(--ease); }
.banner .ms { animation: spin 1.4s linear infinite; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.emp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 16px 16px; text-align: center; overflow: hidden;
  transition: transform .25s var(--spring), box-shadow .25s, border-color .25s;
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.emp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ea; }
.emp-card > * { position: relative; }
.emp-card .avatar { --s: 68px; margin: 0 auto; transition: transform .35s var(--spring); }
.emp-card:hover .avatar { transform: scale(1.06); }
.emp-name { font-weight: 600; font-size: 15px; margin-top: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-title { color: var(--text-2); font-size: 12.5px; min-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emp-company { color: var(--text-3); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 2px; min-height: 19px; }
.emp-company .ms { font-size: 14px; }
.emp-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; min-height: 24px; }
.emp-actions { position: absolute !important; top: 8px; right: 8px; display: flex; gap: 2px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease); }
.emp-card:hover .emp-actions, .emp-card:focus-within .emp-actions { opacity: 1; transform: none; }
.emp-actions .icon-btn { width: 30px; height: 30px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.emp-actions .icon-btn .ms { font-size: 16px; }
.emp-actions .icon-btn.del:hover { color: var(--red); background: var(--red-bg); border-color: transparent; }
.emp-li { position: absolute !important; bottom: 12px; right: 12px; color: #0a66c2; opacity: .55; transition: opacity .2s, transform .2s var(--spring); }
.emp-li:hover { opacity: 1; transform: scale(1.15); }
.emp-li svg { width: 16px; height: 16px; display: block; }
.empty-card { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--text-2); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r); }
.empty-card .ms { font-size: 36px; color: var(--text-3); display: block; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, #eef1f5 0, #f8f9fb 40%, #eef1f5 80%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: 6px; }

/* =================== Hall of Fame =================== */
.launch {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 34px;
  padding: 28px 32px; border-radius: 18px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--navy) 0%, #142466 55%, #1e3a8a 100%);
}
.launch::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.launch > * { position: relative; z-index: 1; }
.launch-radar { position: relative; width: 150px; height: 150px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: radial-gradient(circle, transparent 0 32%, rgba(255,255,255,.06) 33% 34%, transparent 35% 64%, rgba(255,255,255,.06) 65% 66%, transparent 67%); }
.launch-radar .ping { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(147, 197, 253, .6); animation: ping 2.6s ease-out infinite; }
.launch-radar .ping.d2 { animation-delay: .87s; } .launch-radar .ping.d3 { animation-delay: 1.73s; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.launch-radar .sweep { position: absolute; inset: 4px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(96, 165, 250, .5), transparent 25%); animation: spin 3.2s linear infinite; }
.launch-radar .core { position: absolute; inset: 47px; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 0 24px rgba(96, 165, 250, .5); }
.launch-radar .core .ms { font-size: 30px; }
.launch-body { flex: 1; min-width: 0; }
.launch-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); padding: 3px 10px; border-radius: 20px; color: #bfdbfe; }
.launch-kicker .ms { font-size: 15px; }
.launch h2 { font-size: 24px; font-weight: 700; margin: 10px 0 6px; letter-spacing: -.4px; }
.launch p { margin: 0; color: #c7d2fe; max-width: 600px; font-size: 13.5px; }
.launch-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.launch-stat { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 5px 10px; border-radius: 8px; font-size: 12.5px; color: #dbeafe; }
.launch-stat b { color: #fff; font-weight: 600; }
.launch-stat .ms { font-size: 16px; color: #93c5fd; }
.launch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.month-pill.on-dark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; height: 42px; padding: 0 14px; }
.month-pill.on-dark:hover { background: rgba(255,255,255,.14); }
.month-pill.on-dark .ms { color: #93c5fd; }
.launch-btn { height: 42px; padding: 0 18px; background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.launch-btn .ms { color: var(--primary); }
.launch-btn:hover { background: #f1f5ff; }
.launch-btn:hover .ms { transform: translate(2px, -2px) rotate(-8deg); }
.launch-btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .12), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 65% { left: -50%; } 100% { left: 130%; } }
.launch-msg { margin-top: 12px; font-size: 13.5px; color: #bfdbfe; }
.launch-msg .err { color: #fecaca; font-weight: 500; }

.live { background: var(--surface); border: 1px solid #c7d7fe; border-radius: var(--r); padding: 16px 20px; margin-bottom: 18px; animation: rise .4s var(--ease) both; box-shadow: 0 0 0 4px rgba(37, 99, 235, .05); }
.live-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.live-head > div { flex: 1; min-width: 0; }
.live-head b { font-size: 15px; font-weight: 600; }
.live-head small { color: var(--text-2); display: block; }
.scan-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bg, var(--primary-soft)); color: var(--c, var(--primary)); }
.live-head .scan-ico .ms { animation: spin 1.4s linear infinite; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-3); transition: all .3s var(--ease); }
.step .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--divider); flex: none; transition: background .3s, transform .3s var(--spring); }
.step .dot .ms { font-size: 15px; }
.step.done { color: var(--green); background: var(--green-bg); border-color: #c9eed6; }
.step.done .dot { background: var(--green); color: #fff; animation: pop .35s var(--spring); }
.step.active { color: var(--primary-text); background: var(--primary-soft); border-color: #cddcfe; }
.step.active .dot { background: var(--primary); color: #fff; }
.step.active .dot .ms { animation: spin 1.3s linear infinite; }
.live-bar { height: 6px; border-radius: 3px; background: var(--divider); overflow: hidden; margin-top: 14px; position: relative; }
.live-bar span { position: absolute; top: 0; bottom: 0; left: 0; background: var(--primary); border-radius: 3px; transition: width .8s var(--ease); overflow: hidden; }
.live-bar span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); background-size: 200px 100%; animation: shimmer 1.4s infinite linear; }
.live.failed { border-color: #f6caca; box-shadow: 0 0 0 4px rgba(220, 38, 38, .04); }
.live.failed .scan-ico { --bg: var(--red-bg); --c: var(--red); }
.live.failed .scan-ico .ms { animation: none; }

.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-bottom: 18px; }
.season {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  transition: transform .25s var(--spring), box-shadow .25s, border-color .25s;
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.season:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ea; }
.season-top { position: relative; padding: 14px 16px 0; height: 192px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--divider); }
.season.latest .season-top { background: linear-gradient(180deg, #f3f7ff, var(--surface)); }
.season.failed .season-top { background: linear-gradient(180deg, #fdf6f6, var(--surface)); }
.season-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 2; }
.season-title b { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.season-title b .ms { color: var(--gold); font-size: 19px; }
.season.failed .season-title b .ms { color: var(--red); }
.season-tags { display: flex; gap: 6px; }
.season-tag { font-size: 11px; font-weight: 600; background: var(--divider); color: var(--text-2); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.season-tag.blue { background: var(--primary-soft); color: var(--primary-text); }
.mini-podium { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 8px; padding: 0 22px; }
.mp { display: flex; flex-direction: column; align-items: center; min-width: 0; cursor: pointer; }
.mp.r1 { order: 2; --ring: var(--gold); --tint: #fefbea; } .mp.r2 { order: 1; --ring: var(--silver); --tint: #f3f5f8; } .mp.r3 { order: 3; --ring: var(--bronze); --tint: #fdf3eb; }
.mp .avatar { --s: 44px; transition: transform .3s var(--spring); }
.mp.r1 .avatar { --s: 54px; }
.mp:hover .avatar { transform: translateY(-3px) scale(1.06); }
.mp .avatar::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2.5px solid var(--ring); }
.mp-crown { color: var(--gold); height: 20px; }
.mp-crown .ms { font-size: 20px; font-variation-settings: 'FILL' 1; animation: float 2.8s ease-in-out infinite; }
.mp-name { font-size: 12px; font-weight: 600; margin-top: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-pts { font-size: 11px; color: var(--text-3); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.mp-block { width: 100%; border-radius: 8px 8px 0 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--ring); background: var(--tint); border-top: 2.5px solid var(--ring); }
.mp.r1 .mp-block { height: 40px; } .mp.r2 .mp-block { height: 28px; } .mp.r3 .mp-block { height: 20px; }
.mp.empty { opacity: .4; cursor: default; }
.season-none { position: absolute; inset: 44px 0 0; display: grid; place-content: center; text-align: center; font-size: 13px; color: var(--text-2); padding: 0 20px; }
.season-none .ms { font-size: 32px; display: block; margin: 0 auto 6px; color: var(--text-3); }
.season-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--divider); }
.season-stat { text-align: center; padding: 11px 4px; }
.season-stat + .season-stat { border-left: 1px solid var(--divider); }
.season-stat b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.season-stat small { color: var(--text-3); font-size: 11.5px; }
.season-foot { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 14px; }
.season-foot .meta { flex: 1; font-size: 12px; color: var(--text-3); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-foot .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.season-foot .btn .ms { font-size: 16px; }
.season-foot .btn:hover .ms.arrow { transform: translateX(3px); }
.season-foot .icon-btn { width: 32px; height: 32px; }
.season-foot .icon-btn.del:hover { color: var(--red); background: var(--red-bg); }

/* =================== Manual =================== */
.manual-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.type-picker { display: flex; gap: 6px; }
.type-opt {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font: inherit; font-weight: 500; font-size: 13px; color: var(--text-2);
  transition: all .2s var(--spring);
}
.type-opt .ms { color: var(--c); font-variation-settings: 'FILL' 1; font-size: 17px; }
.type-opt:hover { border-color: #d5dae2; }
.type-opt:hover .ms { transform: scale(1.15) rotate(-8deg); }
.type-opt.sel { background: var(--bg); border-color: var(--c); color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 12%, transparent); }
.stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); height: 40px; }
.stepper input { width: 48px; border: 0; text-align: center; background: none; height: 38px; padding: 0; box-shadow: none !important; -moz-appearance: textfield; font-weight: 600; }
.stepper input::-webkit-inner-spin-button { display: none; }
.stepper button { width: 34px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--text-2); display: grid; place-items: center; transition: background .15s, color .15s; }
.stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.stepper button:active .ms { transform: scale(.8); }
.entry-list { display: grid; gap: 8px; }
.entry { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 16px; animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); transition: border-color .2s, box-shadow .2s; }
.entry:hover { border-color: #dfe3ea; box-shadow: var(--shadow); }
.entry-main { flex: 1; min-width: 0; }
.entry-main b { font-weight: 600; }
.entry-main small { display: block; color: var(--text-3); }

/* =================== Settings =================== */
.weights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.weight { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; background: var(--surface-2); transition: border-color .2s, transform .25s var(--spring), background .2s; }
.weight:hover { border-color: var(--c); transform: translateY(-2px); background: var(--surface); }
.weight-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.weight:hover .act-icon .ms { transform: scale(1.15) rotate(-8deg); }
.weight .stepper { justify-content: space-between; }
.weight .stepper input { font-size: 17px; color: var(--c); flex: 1; }
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.status-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--r); padding: 14px; }
.status-item b { display: block; font-weight: 600; }
.status-item small { color: var(--text-2); }
.status-item.ok { --bg: var(--green-bg); --c: var(--green); }
.status-item.bad { --bg: var(--red-bg); --c: var(--red); }

/* =================== Empty / modal / toast =================== */
.empty-state { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); animation: rise .4s var(--ease) both; }
.empty-art { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; animation: float 3s ease-in-out infinite; }
.empty-art .ms { font-size: 32px; }
.empty-state h2 { font-size: 18px; font-weight: 600; }
.empty-state p { color: var(--text-2); margin: 6px 0 18px; }
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); display: grid; place-items: center; z-index: 60; padding: 16px; animation: fade .2s both; }
.modal-box { background: var(--surface); border-radius: 16px; padding: 24px; width: min(620px, 100%); max-height: 85vh; overflow: auto; position: relative; box-shadow: var(--shadow-lg); animation: pop .3s var(--spring) both; }
.modal-box h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; padding-right: 40px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-close:hover .ms { transform: rotate(90deg); }
.log-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.log-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--divider); border-radius: var(--r-sm); font-size: 13px; }
.toast {
  position: fixed; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 10px;
  background: var(--text); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  z-index: 70; max-width: min(460px, 90vw); font-weight: 500; animation: toastIn .4s var(--spring) both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.toast .ms { color: #4ade80; font-variation-settings: 'FILL' 1; }
.toast.error .ms { color: #f87171; }

/* =================== Responsive =================== */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .weights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .sidenav { transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidenav { transform: none; }
  .topbar { margin-left: 0; padding: 0 16px; }
  .menu-toggle { display: grid; }
  .org-chip div { display: none; }
  .org-chip { padding: 4px; }
  main { margin-left: 0; padding: 20px 16px 60px; }
  .grid2, .status-grid { grid-template-columns: 1fr; }
  .launch { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .seasons { grid-template-columns: 1fr; }
  .podium { gap: 8px; }
  .pod .avatar { --s: 54px; } .pod.p1 .avatar { --s: 68px; }
  .lb-grid { grid-template-columns: 32px 1fr 56px; }
  .lb-grid > :nth-child(3) { display: none; }
  .add-card { flex-direction: column; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 16px; }
  .search input { width: 150px; }
  .type-picker { flex-wrap: wrap; }
  .page-actions .btn:not(.primary):not(.icon-only) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =================== Print =================== */
@media print {
  .sidenav, .topbar, .page-actions, .search, details.more, .drawer, .drawer-backdrop { display: none !important; }
  main { margin: 0; padding: 0; }
  .tab { display: none !important; }
  #tab-dashboard { display: block !important; }
  .card, .stat { box-shadow: none; break-inside: avoid; }
  * { animation: none !important; }
}

/* =================== New action types =================== */
.act.originalPost { --c: #db2777; --bg: #fce7f3; }
.act.brandedCover { --c: #0d9488; --bg: #ccfbf1; }
.act.profilePhoto { --c: #4f46e5; --bg: #e0e7ff; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

/* =================== Profile branding =================== */
.brand-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.brand-item {
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface);
  transition: transform .25s var(--spring), box-shadow .25s, border-color .25s;
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.brand-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #dfe3ea; }
.brand-cover { position: relative; aspect-ratio: 4 / 1; background: linear-gradient(135deg, #eef2f9, #f6f7fb); overflow: hidden; }
.brand-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.brand-item:hover .brand-cover img { transform: scale(1.04); }
.brand-cover .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.brand-cover .match {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.95); color: var(--text-2); box-shadow: var(--shadow-xs);
}
.brand-cover .match .ms { font-size: 14px; }
.brand-cover .match.yes { color: var(--green); }
.brand-cover .match.no { color: var(--text-3); }
.brand-body { display: flex; align-items: center; gap: 10px; padding: 0 12px 12px; margin-top: -18px; position: relative; }
.brand-body .avatar { border: 3px solid var(--surface); border-radius: 50%; }
.brand-who { flex: 1; min-width: 0; padding-top: 18px; }
.brand-who b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-who small { color: var(--text-3); font-size: 12px; display: flex; gap: 8px; }
.brand-who small .ok { color: var(--green); }
.brand-actions { display: flex; gap: 2px; padding-top: 18px; }
.brand-actions .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.brand-actions .icon-btn .ms { font-size: 18px; }
.notice {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 14px;
  background: var(--amber-bg); color: #92400e; font-size: 13.5px; animation: rise .3s var(--ease);
}
.notice.info { background: var(--primary-soft); color: var(--primary-text); }
.notice .ms { font-size: 19px; }
.notice .btn { margin-left: auto; height: 32px; }

/* Official covers (settings) */
.cover-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cover-upload input { flex: 1; min-width: 220px; }
.cover-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.cover-ref { position: relative; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; animation: pop .35s var(--spring) both; }
.cover-ref img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; display: block; }
.cover-ref div { padding: 8px 10px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
.cover-ref .icon-btn { position: absolute; right: 4px; bottom: 2px; width: 30px; height: 30px; }
.cover-ref .icon-btn:hover { color: var(--red); background: var(--red-bg); }
.cover-empty { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; padding: 14px; border: 1px dashed var(--border); border-radius: var(--r-sm); text-align: center; }

/* Timeline: profile bonus visuals */
.tl-cover { margin-top: 10px; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 1; background: var(--divider); }
.tl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #db2777; background: #fce7f3; border-radius: 5px; padding: 1px 6px; margin-left: 6px; }
.brand-more { grid-column: 1 / -1; justify-self: center; }

/* =================== Branding: bulk selection =================== */
.bulk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 48px;
  padding: 7px 10px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); transition: background .25s, border-color .25s, box-shadow .25s;
}
.bulk-bar.active { background: var(--primary-soft); border-color: #c7d7fe; box-shadow: 0 0 0 3px rgba(37, 99, 235, .06); animation: pop .25s var(--spring); }
.bulk-count { font-size: 13.5px; color: var(--primary-text); }
.bulk-count b { font-weight: 700; }
.bulk-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bulk-actions .btn { height: 34px; }
.bulk-hint { margin-left: auto; }
.btn.approve { background: var(--green); color: #fff; }
.btn.approve:hover { background: #15803d; box-shadow: 0 4px 12px rgba(22, 163, 74, .3); }
.btn.reject { background: var(--surface); color: var(--red); border-color: #f6caca; }
.btn.reject:hover { background: var(--red-bg); }

/* segmented filter */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px;
  background: none; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s;
}
.seg button span { font-size: 11px; color: var(--text-3); background: var(--divider); border-radius: 6px; padding: 0 6px; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); background: var(--surface-2); }
.seg button.on { background: var(--primary); color: #fff; }
.seg button.on span { background: rgba(255,255,255,.22); color: #fff; }

/* custom checkbox */
.cbx { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; cursor: pointer; flex: none; }
.cbx input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cbx .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cbd2dc; background: var(--surface);
  display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s, transform .2s var(--spring);
}
.cbx .box .ms { font-size: 15px; font-variation-settings: 'wght' 600; transform: scale(0); transition: transform .2s var(--spring); }
.cbx:hover .box { border-color: var(--primary); }
.cbx input:checked + .box { background: var(--primary); border-color: var(--primary); }
.cbx input:checked + .box .ms { transform: scale(1); }
.cbx input:disabled + .box { opacity: .4; }
.cbx.on-img { position: absolute; top: 8px; left: 8px; z-index: 2; }
.cbx.on-img .box { box-shadow: 0 1px 3px rgba(15, 23, 42, .25); }

/* selectable cards */
.brand-item.selectable { cursor: pointer; user-select: none; }
.brand-item .cbx.on-img { opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--spring); }
.brand-item.selectable:hover .cbx.on-img, .brand-item.selected .cbx.on-img, .brand-grid:has(.selected) .cbx.on-img { opacity: 1; transform: none; }
.brand-item.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.brand-item.selected .brand-cover img { filter: brightness(.92); }

/* ✓ / ✗ per card */
.brand-actions .icon-btn { border: 1px solid var(--border); background: var(--surface); }
.brand-actions .icon-btn.yes:hover { color: var(--green); border-color: #bfe8cd; background: var(--green-bg); }
.brand-actions .icon-btn.no:hover { color: var(--red); border-color: #f6caca; background: var(--red-bg); }
.brand-actions .icon-btn.yes.on { background: var(--green); border-color: var(--green); color: #fff; }
.brand-actions .icon-btn.no.on { background: var(--red); border-color: var(--red); color: #fff; }
.brand-actions .icon-btn .ms { font-variation-settings: 'wght' 600; }
.brand-actions .icon-btn:active .ms { transform: scale(.8); }

/* =================== Login =================== */
/* While checking the session, hide the app (prevents a flash of the dashboard) */
body.booting .sidenav, body.booting .topbar, body.booting main { visibility: hidden; }
body.locked { overflow: hidden; }
body.locked .sidenav, body.locked .topbar, body.locked main { visibility: hidden; }

.login {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface); animation: fade .35s both;
}
.login.leaving { animation: loginOut .55s var(--ease) forwards; }
@keyframes loginOut { to { opacity: 0; transform: scale(1.02); filter: blur(4px); visibility: hidden; } }

/* left: brand / illustration */
.login-art {
  position: relative; overflow: hidden; color: #fff; padding: 36px 44px; display: flex; flex-direction: column;
  background: radial-gradient(circle at 70% 30%, rgba(96, 165, 250, .22), transparent 45%), linear-gradient(140deg, #0b1437 0%, #142466 55%, #1e3a8a 100%);
}
.login-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  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: 32px 32px; mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 75%);
}
.login-art > * { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.login-brand .brand-mark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.art-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 320px; }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(147, 197, 253, .22); }
.art-ring.r1 { width: 180px; height: 180px; }
.art-ring.r2 { width: 300px; height: 300px; border-style: dashed; animation: spin 60s linear infinite; }
.art-ring.r3 { width: 430px; height: 430px; opacity: .6; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 18px 40px rgba(2, 6, 23, .35);
  animation: floatCard 6s ease-in-out infinite, cardIn .7s var(--spring) both;
}
.float-card small { display: block; color: var(--text-3); font-size: 11.5px; }
.float-card b { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.fc-icon .ms { font-size: 20px; }
.fc-icon.gold { background: #fef6d8; color: #ca8a04; }
.fc-icon.blue { background: var(--like-bg); color: var(--like); }
.fc-icon.green { background: var(--green-bg); color: var(--green); }
.fc-pill { margin-left: 4px; font-size: 11.5px; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; }
.fc-top { top: 10%; left: 50%; margin-left: -110px; animation-delay: 0s, .15s; }
.fc-left { top: 44%; left: 4%; animation-delay: -2s, .3s; }
.fc-right { top: 36%; right: 4%; animation-delay: -4s, .45s; }
.fc-bottom { bottom: 8%; left: 30%; animation-delay: -1s, .6s; }
.fc-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.fc-bars span { width: 7px; height: var(--h); border-radius: 3px; background: linear-gradient(180deg, #60a5fa, var(--primary)); transform-origin: bottom; animation: barUp 1s var(--ease) both; }
.fc-bars span:nth-child(2) { animation-delay: .1s; } .fc-bars span:nth-child(3) { animation-delay: .2s; } .fc-bars span:nth-child(4) { animation-delay: .3s; } .fc-bars span:nth-child(5) { animation-delay: .4s; }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes floatCard { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.login-quote h2 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.25; max-width: 440px; }
.login-quote p { margin: 10px 0 0; color: #c7d2fe; max-width: 420px; }

/* right: form */
.login-panel { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.login-card {
  width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 34px 32px 26px; box-shadow: var(--shadow-lg); animation: cardIn .6s var(--spring) both .1s;
}
.login-card.shake { animation: shake .45s var(--ease); }
@keyframes shake { 15%, 55% { transform: translateX(-8px); } 35%, 75% { transform: translateX(8px); } 90% { transform: translateX(-3px); } }
.brand-mark.lg { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.brand-mark.lg .ms { font-size: 24px; }
.login-card h1 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.login-sub { color: var(--text-2); margin: 4px 0 24px; }
.login-field { display: block; margin-bottom: 14px; }
.login-field > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ms { position: absolute; left: 12px; color: var(--text-3); font-size: 19px; pointer-events: none; transition: color .2s; }
.input-wrap input { width: 100%; height: 46px; padding-left: 40px; padding-right: 44px; font-size: 14.5px; border-radius: 11px; }
.input-wrap:focus-within > .ms { color: var(--primary); }
.eye { position: absolute; right: 6px; width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; color: var(--text-3); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.eye:hover { background: var(--divider); color: var(--text); }
.eye .ms { font-size: 19px; }
.caps { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--amber); margin: -6px 0 12px; animation: rise .25s var(--ease); }
.caps .ms { font-size: 16px; }
.remember { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; margin: 6px 0 18px; user-select: none; }
.login-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-size: 13.5px; font-weight: 500; margin-bottom: 14px; animation: rise .25s var(--ease); }
.login-error .ms { font-size: 18px; }
.login-btn { width: 100%; height: 46px; font-size: 15px; border-radius: 11px; }
.login-btn .lb-arrow { transition: transform .25s var(--spring); }
.login-btn:hover .lb-arrow { transform: translateX(4px); }
.login-btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.login-btn.loading .lb-text, .login-btn.loading .lb-arrow { display: none; }
.login-btn.loading .spinner { display: block; }
.login-btn.success { background: var(--green); }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; font-size: 12px; color: var(--text-3); }
.login-foot .ms { font-size: 15px; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
.lb-more { align-self: center; margin-top: 12px; }
