/* =====================================================================
   KYU CONNECT — Design System Final Year Project 2026
   Display: Plus Jakarta Sans · Body: Inter · Data: JetBrains Mono
   ===================================================================== */

:root {
    /* --- Core palette -------------------------------------------------
       Deep slate ink as the institutional anchor, a confident azure as
       the interactive accent, and a warm brass reserved exclusively for
       verification / pinned status so it always reads as "significant".
    */
    --ink-900:  #0A1120;
    --ink-800:  #111C2E;
    --ink-700:  #1B2A41;
    --ink-600:  #2C3E58;
    --ink-500:  #4A5F7A;
    --ink-400:  #6E819B;
    --ink-300:  #97A6BB;
    --ink-200:  #C3CDDA;

    --azure:      #2563EB;
    --azure-dark: #1D4ED8;
    --azure-soft: #EFF4FF;
    --azure-ring: rgba(37, 99, 235, .16);

    --brass:      #B98900;
    --brass-soft: #FFF6E0;

    --crit:       #DC2626;
    --crit-soft:  #FEF0F0;
    --crit-dark:  #B91C1C;
    --warn:       #D97706;
    --warn-soft:  #FEF6E9;
    --good:       #059669;
    --good-soft:  #ECFAF4;
    --violet:     #7C3AED;

    --canvas:   #F6F8FB;
    --surface:  #FFFFFF;
    --surface-2:#FBFCFE;
    --line:     #E6EBF2;
    --line-2:   #D5DDE8;

    --r-xs: 8px;
    --r-sm: 10px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --sh-xs: 0 1px 2px rgba(10,17,32,.05);
    --sh-sm: 0 2px 8px rgba(10,17,32,.06);
    --sh:    0 6px 20px rgba(10,17,32,.08);
    --sh-lg: 0 18px 44px rgba(10,17,32,.16);

    --f-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --f-body:    'Inter', -apple-system, sans-serif;
    --f-mono:    'JetBrains Mono', ui-monospace, monospace;

    --topbar-h: 68px;
    --ticker-h: 38px;
    --shell-max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--f-body);
    background: var(--canvas);
    color: var(--ink-800);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.has-chrome { padding-top: var(--topbar-h); }
body.has-chrome.has-ticker { padding-top: calc(var(--topbar-h) + var(--ticker-h)); }

h1,h2,h3,h4,h5,.display {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: -0.021em;
    color: var(--ink-900);
    margin: 0 0 .4em;
    line-height: 1.22;
}
p { margin: 0 0 1em; }
a { color: var(--azure); text-decoration: none; transition: color .15s; }
a:hover { color: var(--azure-dark); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
:focus-visible { outline: 2.5px solid var(--azure); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--azure); color: #fff; }
img { max-width: 100%; display: block; }
hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--f-display); font-weight: 600; font-size: 14px;
    padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; white-space: nowrap; transition: all .16s ease; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-700); color: #fff; }
.btn-accent { background: var(--azure); color: #fff; box-shadow: 0 3px 12px var(--azure-ring); }
.btn-accent:hover { background: var(--azure-dark); color: #fff; }
.btn-danger { background: var(--crit); color: #fff; }
.btn-danger:hover { background: var(--crit-dark); color: #fff; }
.btn-good { background: var(--good); color: #fff; }
.btn-good:hover { filter: brightness(.94); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink-800); }
.btn-outline:hover { border-color: var(--ink-600); background: var(--surface-2); color: var(--ink-900); }
.btn-danger-outline { background: transparent; border-color: rgba(220,38,38,.4); color: var(--crit); }
.btn-danger-outline:hover { background: var(--crit-soft); border-color: var(--crit); color: var(--crit); }
.btn-ghost { background: transparent; color: var(--ink-500); }
.btn-ghost:hover { background: rgba(10,17,32,.05); color: var(--ink-900); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

/* ============================ TICKER ============================ */
.ticker {
    position: fixed; inset: 0 0 auto 0; height: var(--ticker-h);
    background: linear-gradient(90deg, var(--crit-dark), var(--crit));
    color: #fff; z-index: 1100; display: flex; align-items: center; overflow: hidden;
    font-size: 13px;
}
.ticker-tag {
    flex: none; display: flex; align-items: center; gap: 7px; height: 100%;
    padding: 0 16px; background: rgba(0,0,0,.22); font-family: var(--f-display);
    font-weight: 700; font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
}
.ticker-pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.35; transform:scale(.65);} }
.ticker-view { flex: 1; overflow: hidden; height: 100%; position: relative; }
.ticker-run {
    position: absolute; height: 100%; display: flex; align-items: center; gap: 54px;
    white-space: nowrap; padding-left: 100%; animation: run 38s linear infinite;
}
.ticker:hover .ticker-run { animation-play-state: paused; }
@keyframes run { from { transform: translateX(0);} to { transform: translateX(-100%);} }
.ticker-run a { color: #fff; }
.ticker-run a:hover { text-decoration: underline; }
.ticker-run b { font-weight: 700; }

/* ============================ TOPBAR ============================ */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
    background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line); z-index: 1050;
}
.has-ticker .topbar { top: var(--ticker-h); }
.topbar-in {
    max-width: var(--shell-max); height: 100%; margin: 0 auto; padding: 0 22px;
    display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--ink-900) url('../img/logo-mark.png') center / 72% no-repeat;
    color: #fff; display: grid; place-items: center; font-size: 0;
    box-shadow: 0 3px 10px rgba(10,17,32,.24); position: relative; overflow: hidden;
}
.brand-txt { line-height: 1.15; }
.brand-txt strong { font-family: var(--f-display); font-weight: 800; font-size: 17.5px; color: var(--ink-900); letter-spacing: -.03em; display:block; }
.brand-txt span { font-size: 10.5px; color: var(--ink-400); font-weight: 500; letter-spacing: .01em; }

.search-wrap { flex:0 1 460px; width: 100%; max-width: 460px; position: relative; margin: 0 auto;}
.search-wrap input {
    width: 100%; height: 42px; border: 1px solid var(--line-2); background: var(--canvas);
    border-radius: 999px; padding: 0 16px 0 42px; font-size: 14px; font-family: var(--f-body);
    color: var(--ink-800); transition: all .16s;
}
.search-wrap input::placeholder { color: var(--ink-300); }
.search-wrap input:focus { outline: none; background: #fff; border-color: var(--azure); box-shadow: 0 0 0 4px var(--azure-ring); }
.search-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-300); font-size: 15px; pointer-events: none; }

.top-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.top-icon {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent;
    background: transparent; color: var(--ink-600); display: grid; place-items: center;
    font-size: 18px; cursor: pointer; position: relative; transition: all .15s;
}
.top-icon:hover { background: var(--canvas); color: var(--ink-900); }
.top-icon .pip {
    position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--crit); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
    display: grid; place-items: center; border: 2px solid var(--surface); font-family: var(--f-body);
}
.top-user { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border: none; background: transparent; border-radius: 999px; cursor: pointer; transition: background .15s; }
.top-user:hover { background: var(--canvas); }

/* Avatars */
.av { border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center;
      font-family: var(--f-display); font-weight: 700; color: #fff; background: var(--ink-600);
      overflow: hidden; letter-spacing: -.02em; }
.av-xs { width: 26px; height: 26px; font-size: 10.5px; }
.av-sm { width: 34px; height: 34px; font-size: 12.5px; }
.av-md { width: 42px; height: 42px; font-size: 15px; }
.av-lg { width: 60px; height: 60px; font-size: 21px; }
.av-xl { width: 108px; height: 108px; font-size: 38px; border: 4px solid var(--surface); }
.av img { width: 100%; height: 100%; object-fit: cover; }

/* Verification badge (blue tick) */
.tick { display: inline-flex; vertical-align: middle; margin-left: 4px; flex: none; }
.tick svg { width: 15px; height: 15px; display: block; }
.tick-official svg { fill: var(--azure); }
.tick-department svg { fill: var(--violet); }
.tick-staff svg { fill: var(--good); }
.tick-student svg { fill: var(--ink-400); }
.tick-lg svg { width: 20px; height: 20px; }

/* Dropdowns */
.pop {
    position: absolute; top: calc(100% + 10px); right: 0; width: 360px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-lg); z-index: 1200; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .16s ease;
}
.pop.open { opacity: 1; visibility: visible; transform: translateY(0); }
.pop-hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.pop-hd h4 { margin: 0; font-size: 14.5px; }
.pop-hd a { font-size: 12.5px; font-weight: 600; }
.pop-body { max-height: 380px; overflow-y: auto; }
.pop-ft { padding: 11px; border-top: 1px solid var(--line); text-align: center; }
.pop-menu { padding: 6px; }
.pop-menu a, .pop-menu button {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
    border-radius: var(--r-sm); font-size: 14px; color: var(--ink-800); background: none;
    border: none; cursor: pointer; text-align: left; font-family: var(--f-body);
}
.pop-menu a:hover, .pop-menu button:hover { background: var(--canvas); color: var(--ink-900); }
.pop-menu i { width: 18px; font-size: 16px; color: var(--ink-400); }
.pop-menu .danger { color: var(--crit); }
.pop-menu .danger i { color: var(--crit); }
.pop-sep { height: 1px; background: var(--line); margin: 6px 0; }
.pop-id { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 11px; align-items: center; }

/* ============================ SHELL ============================ */
.shell {
    max-width: var(--shell-max); margin: 0 auto; padding: 24px 22px 100px;
    display: grid; grid-template-columns: 252px minmax(0,1fr) 322px; gap: 26px; align-items: start;
}
.shell.narrow { grid-template-columns: 252px minmax(0,1fr); }
.shell.solo { grid-template-columns: minmax(0,1fr); max-width: 860px; }
.side { position: sticky; top: calc(var(--topbar-h) + 24px); }
.has-ticker .side { top: calc(var(--topbar-h) + var(--ticker-h) + 24px); }

/* Independent per-column scrolling on desktop: the nav sidebar, main content,
   and (where present) trends rail each scroll within their own track instead
   of the whole page moving together. Applies to every non-solo shell, so the
   admin control-centre nav (long list of sections) no longer drags the whole
   page down when you scroll it. */
@media (min-width: 992px) {
    .shell:not(.solo) {
        height: calc(100vh - var(--topbar-h));
        padding-bottom: 24px;
        overflow: hidden;
        align-items: stretch;
    }
    .has-ticker .shell:not(.solo) {
        height: calc(100vh - var(--topbar-h) - var(--ticker-h));
    }
    .shell:not(.solo) > .side,
    .shell:not(.solo) > main {
        position: static;
        top: auto;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;      /* Firefox */
        -ms-overflow-style: none;   /* legacy Edge/IE */
    }
    .shell:not(.solo) > .side::-webkit-scrollbar,
    .shell:not(.solo) > main::-webkit-scrollbar { display: none; /* Chrome/Safari/Edge */ }
}

/* Left nav */
.nav-group { margin-bottom: 22px; }
.nav-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-300); padding: 0 12px; margin-bottom: 8px; }
.nav-item {
    display: flex; align-items: center; gap: 13px; padding: 10px 13px; border-radius: var(--r);
    color: var(--ink-600); font-weight: 500; font-size: 14.5px; margin-bottom: 2px;
    transition: all .14s; position: relative;
}
.nav-item i { width: 21px; font-size: 18px; text-align: center; color: var(--ink-400); transition: color .14s; }
.nav-item:hover { background: var(--surface); color: var(--ink-900); box-shadow: var(--sh-xs); }
.nav-item:hover i { color: var(--ink-700); }
.nav-item.on { background: var(--ink-900); color: #fff; font-weight: 600; box-shadow: var(--sh-sm); }
.nav-item.on i { color: #fff; }
.nav-item .n-count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--crit); color: #fff; padding: 1px 7px; border-radius: 999px; font-family: var(--f-body); }
.nav-item.on .n-count { background: rgba(255,255,255,.22); }

.side-post { margin-top: 6px; }

/* ============================ CARDS ============================ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.card-hd { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-hd h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.card-hd h3 i { color: var(--ink-400); }
.card-bd { padding: 20px; }
.card-ft { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card + .card { margin-top: 18px; }

/* ============================ FEED ============================ */
.feed-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.feed-top h1 { font-size: 25px; margin: 0 0 3px; }
.feed-top p { margin: 0; color: var(--ink-400); font-size: 13.5px; }

.tabs { display: flex; gap: 4px; background: var(--surface); padding: 5px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--sh-xs); overflow-x: auto; }
.tab { padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-500); white-space: nowrap; transition: all .15s; }
.tab:hover { color: var(--ink-900); background: var(--canvas); }
.tab.on { background: var(--ink-900); color: #fff; }

.composer { display: flex; gap: 13px; align-items: center; padding: 16px 18px; margin-bottom: 18px; cursor: pointer; transition: box-shadow .15s; }
.composer:hover { box-shadow: var(--sh-sm); }
.composer-fake { flex: 1; height: 42px; display: flex; align-items: center; padding: 0 18px; background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-300); font-size: 14px; }

/* Alert card */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 16px; box-shadow: var(--sh-xs); transition: box-shadow .18s, transform .18s; overflow: hidden; position: relative; }
.post:hover { box-shadow: var(--sh); }
.post.crit { border-color: rgba(220,38,38,.3); background: linear-gradient(180deg, var(--crit-soft) 0%, var(--surface) 90px); }
.post.pin { border-color: rgba(185,137,0,.4); }
.post-bd { padding: 18px 20px 14px; }
.post-hd { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.post-who { min-width: 0; flex: 1; }
.post-name { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-family: var(--f-display); font-weight: 700; font-size: 14.5px; color: var(--ink-900); line-height: 1.3; }
.post-name a { color: inherit; }
.post-name a:hover { text-decoration: underline; }
.post-sub { font-size: 12.5px; color: var(--ink-400); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-200); }
.role-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); background: var(--canvas); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); }

.chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 11px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .01em; }
.chip i { font-size: 12px; }
.chip-crit { background: var(--crit-soft); color: var(--crit); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-info { background: var(--azure-soft); color: var(--azure-dark); }
.chip-pin  { background: var(--brass-soft); color: var(--brass); }
.chip-live { background: var(--crit); color: #fff; }
.chip-live .lv { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }

.post-title { font-size: 18px; margin: 0 0 7px; line-height: 1.32; }
.post-title a { color: var(--ink-900); }
.post-title a:hover { color: var(--azure); }
.post-text { color: var(--ink-500); font-size: 14.5px; margin: 0 0 12px; }
.post-meta-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-400); margin-bottom: 12px; }
.post-meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.post-img { border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 12px; max-height: 380px; object-fit: cover; width: 100%; }

.post-acts { display: flex; align-items: center; border-top: 1px solid var(--line); padding: 5px 10px; gap: 2px; }
.act {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-sm);
    background: none; border: none; cursor: pointer; color: var(--ink-400);
    font-size: 13px; font-weight: 600; font-family: var(--f-body); transition: all .14s;
}
.act i { font-size: 16px; }
.act:hover { background: var(--canvas); color: var(--ink-800); }
.act.on-like { color: var(--crit); }
.act.on-like:hover { background: var(--crit-soft); }
.act.on-save { color: var(--brass); }
.act.push { margin-left: auto; }

.ack-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: var(--crit-soft); border: 1px solid rgba(220,38,38,.25); border-left: 3px solid var(--crit);
    border-radius: var(--r-sm); padding: 11px 15px; margin-bottom: 12px;
}
.ack-bar p { margin: 0; font-size: 13px; color: var(--crit-dark); font-weight: 600; }

/* ============================ RIGHT RAIL ============================ */
.rail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); margin-bottom: 18px; overflow: hidden; }
.rail-hd { padding: 15px 18px 11px; display: flex; align-items: center; justify-content: space-between; }
.rail-hd h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.rail-hd h4 i { color: var(--ink-400); font-size: 15px; }
.rail-hd a { font-size: 12px; font-weight: 600; }

.trend { display: block; padding: 11px 18px; border-top: 1px solid var(--line); transition: background .14s; }
.trend:hover { background: var(--canvas); }
.trend-top { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-400); margin-bottom: 2px; }
.trend-cat { font-weight: 600; }
.trend-rank { font-family: var(--f-mono); font-weight: 700; color: var(--ink-200); font-size: 13px; }
.trend-title { font-family: var(--f-display); font-weight: 600; font-size: 13.8px; color: var(--ink-900); line-height: 1.35; margin-bottom: 3px; }
.trend-stat { font-size: 11.5px; color: var(--ink-400); font-family: var(--f-mono); }

.who { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-top: 1px solid var(--line); }
.who:hover { background: var(--canvas); }
.who-txt { min-width: 0; flex: 1; }
.who-name { display: flex; align-items: center; font-family: var(--f-display); font-weight: 700; font-size: 13.5px; color: var(--ink-900); }
.who-sub { font-size: 12px; color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hot { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.hot-ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--crit-soft); color: var(--crit); font-size: 15px; flex: none; }
.hot-name { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.hot-num { font-size: 12.5px; color: var(--ink-400); font-family: var(--f-mono); }

.mini-stat { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-top: 1px solid var(--line); }
.mini-stat .k { font-size: 13px; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.mini-stat .k .sw { width: 8px; height: 8px; border-radius: 50%; }
.mini-stat .v { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink-900); }

/* ============================ AUTH ============================ */
.auth { height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
.auth-art {
    position: relative; overflow: hidden; padding: 52px 56px; display: flex; flex-direction: column;
    justify-content: center;
    background: linear-gradient(155deg, var(--ink-900) 0%, var(--ink-700) 55%, #16305C 100%);
    color: #fff;
}
.auth-art::before {
    content:''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.42), transparent 68%);
    top: -170px; right: -190px;
}
.auth-art::after {
    content:''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(185,137,0,.24), transparent 66%);
    bottom: -180px; left: -140px;
}
.auth-art > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.auth-brand .brand-mark { background-color: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); box-shadow: none; }
.auth-brand strong { color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -.03em; display: block; }
.auth-brand span { font-size: 11px; color: rgba(255,255,255,.6); }
.auth-art h2 { color: #fff; font-size: 38px; line-height: 1.14; margin: 0 0 16px; letter-spacing: -.033em; }
.auth-art h2 em { font-style: normal; color: #7FA9FF; }
.auth-art .lede { color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 430px; margin-bottom: 34px; }
.auth-feats { display: grid; gap: 15px; margin-bottom: 40px; }
.auth-feat { display: flex; gap: 13px; align-items: flex-start; }
.auth-feat-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; font-size: 16px; color: #fff; flex: none; }
.auth-feat h5 { color: #fff; font-size: 14px; margin: 0 0 2px; }
.auth-feat p { color: rgba(255,255,255,.6); font-size: 13px; margin: 0; }
.auth-nums { display: flex; gap: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.auth-num strong { display: block; font-family: var(--f-display); font-size: 25px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.auth-num span { font-size: 12px; color: rgba(255,255,255,.55); }

/* The left panel must never scroll or get clipped — on shorter viewports it
   scales itself down instead, so everything (including the stats row at the
   bottom) always stays fully visible within 100vh. */
@media (max-height: 820px) {
    .auth-art { padding: 30px 44px; }
    .auth-art h2 { font-size: 28px; margin-bottom: 10px; }
    .auth-art .lede { font-size: 14px; margin-bottom: 20px; }
    .auth-feats { gap: 10px; margin-bottom: 20px; }
    .auth-feat-ic { width: 32px; height: 32px; font-size: 14px; }
    .auth-feat h5 { font-size: 13px; }
    .auth-feat p { display: none; }
    .auth-nums { padding-top: 14px; gap: 24px; }
    .auth-num strong { font-size: 20px; }
}
@media (max-height: 680px) {
    .auth-art { padding: 20px 36px; }
    .auth-art h2 { font-size: 22px; }
    .auth-art .lede { display: none; }
    .auth-feats { margin-bottom: 12px; }
}

.auth-pane {
    /* align-items:center + overflow:auto is a known trap: when content is
       taller than the pane, centering pushes part of it above scrollTop:0,
       which is unreachable (you can't scroll negative) — it just renders
       cut off with no way to reach it. flex-start + vertical padding gives
       the same centered look when content fits, and stays fully reachable
       when it doesn't. */
    position: relative; display: flex; align-items: flex-start; justify-content: center;
    padding: 44px 40px;
    background: var(--surface); overflow-y: auto; height: 100%;
    scrollbar-width: none; -ms-overflow-style: none;
}
.auth-form { margin: auto 0; }
.auth-pane::-webkit-scrollbar { display: none; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form .eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azure); margin-bottom: 9px; }
.auth-form h1 { font-size: 28px; margin-bottom: 7px; }
.auth-form .sub { color: var(--ink-400); font-size: 14.5px; margin-bottom: 28px; }
.auth-alt { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-400); }
.auth-alt a { font-weight: 600; }
.auth-back { position: absolute; top: 26px; right: 30px; font-size: 13px; color: var(--ink-400); font-weight: 600; z-index: 2; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
    display: block; text-align: center; padding: 8px 6px; border: 1.5px solid var(--line-2);
    border-radius: var(--r); cursor: pointer; transition: all .16s; background: var(--surface);
}
.seg label i { display: block; font-size: 21px; margin-bottom: 6px; color: var(--ink-400); }
.seg label strong { display: block; font-family: var(--f-display); font-size: 14px; color: var(--ink-800); }
.seg label small { font-size: 11.5px; color: var(--ink-400); }
.seg input:checked + label { border-color: var(--azure); background: var(--azure-soft); box-shadow: 0 0 0 3px var(--azure-ring); }
.seg input:checked + label i, .seg input:checked + label strong { color: var(--azure-dark); }

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.step { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.step.done { background: var(--azure); }

.otp-row { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-row input {
    width: 52px; height: 60px; text-align: center; font-family: var(--f-mono); font-size: 23px;
    font-weight: 700; border: 1.5px solid var(--line-2); border-radius: var(--r); color: var(--ink-900);
}
.otp-row input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px var(--azure-ring); }

/* ============================ FORMS ============================ */
.field { margin-bottom: 17px; }
.field label, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.inp, input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=datetime-local], input[type=number], select, textarea {
    width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
    padding: 11px 14px; font-size: 14.5px; font-family: var(--f-body); color: var(--ink-900); transition: all .16s;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236E819B'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }
.inp:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px var(--azure-ring); }
.inp:disabled, input:disabled { background: var(--canvas); color: var(--ink-400); cursor: not-allowed; }
.hint { font-size: 12.5px; color: var(--ink-400); margin-top: 6px; }
.hint.err { color: var(--crit); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.inp-group { position: relative; }
.inp-group .inp-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-300); font-size: 15px; pointer-events: none; }
.inp-group input { padding-left: 40px; }
.inp-group .inp-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--ink-400); cursor: pointer; padding: 7px; font-size: 15px; }
.inp-group .inp-prefix {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--ink-600); font-weight: 700; font-size: 14px; font-family: var(--f-mono); pointer-events: none;
}
.inp-group.tel input { padding-left: 58px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-600); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--azure); flex: none; }

.sw { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw .track { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; cursor: pointer; transition: background .2s; }
.sw .track::before { content:''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.sw input:checked + .track { background: var(--azure); }
.sw input:checked + .track::before { transform: translateX(19px); }

.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pref:last-child { border-bottom: none; }
.pref-k { display: flex; align-items: center; gap: 11px; }
.pref-k .ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 15px; flex: none; }
.pref-k strong { display: block; font-size: 14px; font-family: var(--f-display); color: var(--ink-900); }
.pref-k small { font-size: 12.5px; color: var(--ink-400); }

/* ============================ FLASH / ALERTS ============================ */
.flash { display: flex; gap: 11px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r); font-size: 13.8px; margin-bottom: 17px; border: 1px solid transparent; }
.flash i { font-size: 17px; flex: none; margin-top: 1px; }
.flash-err  { background: var(--crit-soft); color: var(--crit-dark); border-color: rgba(220,38,38,.2); }
.flash-ok   { background: var(--good-soft); color: var(--good); border-color: rgba(5,150,105,.2); }
.flash-info { background: var(--azure-soft); color: var(--azure-dark); border-color: rgba(37,99,235,.18); }
.flash-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(217,119,6,.22); }
.flash p { margin: 0; }
.flash strong { font-weight: 700; }

/* ============================ STATS ============================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 19px; box-shadow: var(--sh-xs); position: relative; overflow: hidden; transition: all .18s;
}
.stat:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.stat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #fff; }
.stat-delta { font-size: 11.5px; font-weight: 700; font-family: var(--f-mono); padding: 3px 8px; border-radius: 999px; }
.stat-delta.up { background: var(--good-soft); color: var(--good); }
.stat-delta.down { background: var(--crit-soft); color: var(--crit); }
.stat-delta.flat { background: var(--canvas); color: var(--ink-400); }
.stat-v { font-family: var(--f-display); font-size: 29px; font-weight: 800; color: var(--ink-900); letter-spacing: -.035em; line-height: 1; margin-bottom: 5px; }
.stat-k { font-size: 12.8px; color: var(--ink-400); font-weight: 500; }
.stat-bar { height: 3px; background: var(--line); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; border-radius: 999px; }

/* ============================ TABLES ============================ */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.tbl th {
    text-align: left; padding: 11px 18px; background: var(--surface-2); color: var(--ink-400);
    font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .u-cell { display: flex; align-items: center; gap: 11px; }
.tbl .u-cell .u-name { font-weight: 600; color: var(--ink-900); display: flex; align-items: center; }
.tbl .u-cell .u-mail { font-size: 12px; color: var(--ink-400); }
.tbl .acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; white-space: nowrap; }
.pill::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok, .pill-active, .pill-published, .pill-verified, .pill-resolved { background: var(--good-soft); color: var(--good); }
.pill-pending, .pill-new, .pill-under_review, .pill-locked { background: var(--warn-soft); color: var(--warn); }
.pill-rejected, .pill-suspended, .pill-blocked, .pill-dismissed { background: var(--crit-soft); color: var(--crit); }
.pill-expired, .pill-none { background: var(--canvas); color: var(--ink-400); }
.pill-info { background: var(--azure-soft); color: var(--azure-dark); }

/* ============================ PAGE CHROME ============================ */
.page-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-hd h1 { font-size: 26px; margin: 0 0 4px; }
.page-hd .lede { color: var(--ink-400); font-size: 14px; margin: 0; }
.crumb { font-size: 12.5px; color: var(--ink-300); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.crumb a { color: var(--ink-400); font-weight: 500; }
.crumb i { font-size: 10px; }

.empty { text-align: center; padding: 56px 24px; }
.empty-ic { width: 62px; height: 62px; border-radius: 50%; background: var(--canvas); display: grid; place-items: center; margin: 0 auto 16px; font-size: 26px; color: var(--ink-300); }
.empty h4 { margin-bottom: 6px; font-size: 16px; }
.empty p { color: var(--ink-400); font-size: 13.8px; margin: 0 auto 16px; max-width: 340px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 11px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink-500); }
.pager a:hover { border-color: var(--ink-400); color: var(--ink-900); }
.pager .on { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* ============================ PROFILE ============================ */
.prof-cover { height: 190px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(125deg, var(--ink-800), var(--ink-600) 55%, #1E4B8F); position: relative; overflow: hidden; }
.prof-cover img { width: 100%; height: 100%; object-fit: cover; }
.prof-cover::after { content:''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.4), transparent 70%); top: -160px; right: -110px; }
.prof-hd { padding: 0 26px 22px; position: relative; }
.prof-av { margin-top: -56px; margin-bottom: 14px; position: relative; z-index: 1; box-shadow: var(--sh); }
.prof-name { display: flex; align-items: center; font-size: 23px; margin: 0 0 3px; }
.prof-handle { color: var(--ink-400); font-size: 14px; font-family: var(--f-mono); margin-bottom: 12px; }
.prof-bio { font-size: 14.5px; color: var(--ink-600); max-width: 560px; margin-bottom: 14px; }
.prof-facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-400); margin-bottom: 16px; }
.prof-facts span { display: inline-flex; align-items: center; gap: 6px; }
.prof-nums { display: flex; gap: 26px; }
.prof-num strong { font-family: var(--f-display); font-weight: 800; font-size: 17px; color: var(--ink-900); }
.prof-num span { font-size: 13px; color: var(--ink-400); }
.prof-tabs { display: flex; gap: 2px; border-top: 1px solid var(--line); padding: 0 16px; }
.prof-tab { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ink-400); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.prof-tab:hover { color: var(--ink-900); }
.prof-tab.on { color: var(--ink-900); border-bottom-color: var(--azure); }

.upload-drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; cursor: pointer; transition: all .16s; background: var(--surface-2); }
.upload-drop:hover { border-color: var(--azure); background: var(--azure-soft); }
.upload-drop i { font-size: 26px; color: var(--ink-300); display: block; margin-bottom: 8px; }
.upload-drop p { margin: 0; font-size: 13.5px; color: var(--ink-500); }
.upload-drop small { font-size: 12px; color: var(--ink-300); }

/* ============================ NOTIFICATIONS ============================ */
.notif { display: flex; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--line); transition: background .14s; position: relative; }
.notif:last-child { border-bottom: none; }
.notif:hover { background: var(--surface-2); }
.notif.new { background: var(--azure-soft); }
.notif.new::before { content:''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--azure); }
.notif-ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; font-size: 16px; flex: none; }
.notif-bd { min-width: 0; flex: 1; }
.notif-bd .t { font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; line-height: 1.4; }
.notif-bd .m { font-size: 13px; color: var(--ink-500); margin-bottom: 3px; }
.notif-bd .w { font-size: 11.5px; color: var(--ink-300); font-family: var(--f-mono); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--azure); flex: none; align-self: center; }

/* ============================ FOOTER ============================ */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 40px; }
.site-footer-in {
    max-width: var(--shell-max); margin: 0 auto; padding: 40px 22px 28px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.site-footer-brand p { margin: 12px 0 0; font-size: 13px; color: var(--ink-400); max-width: 320px; line-height: 1.55; }
.site-footer-col h5 { margin: 0 0 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-300); }
.site-footer-col { display: flex; flex-direction: column; }
.site-footer-col a { display: block; font-size: 13.5px; color: var(--ink-500); padding: 5px 0; }
.site-footer-col a:hover { color: var(--ink-900); }
.site-footer-bar {
    max-width: var(--shell-max); margin: 0 auto; padding: 16px 22px;
    border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: 12px; color: var(--ink-300);
}

/* ============================ MOBILE ============================ */
.tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar-in { display: flex; align-items: flex-end; justify-content: space-around; max-width: 520px; margin: 0 auto; }
.mtab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--ink-300); font-size: 10px; font-weight: 600; position: relative; }
.mtab i {
    font-size: 21px; width: 34px; height: 34px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: background .16s, color .16s, box-shadow .16s;
}
.mtab.on { color: var(--ink-900); }
.mtab.on i { background: var(--ink-900); color: #fff; box-shadow: 0 5px 14px rgba(10,17,32,.32); }
.mtab:active i { background: var(--ink-700); color: #fff; }
.mtab .mpip { position: absolute; top: 2px; right: 50%; margin-right: -16px; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); border: 1.5px solid #fff; }
.mfab { width: 50px; height: 50px; border-radius: 17px; background: var(--ink-900); color: #fff; display: grid; place-items: center; font-size: 22px; margin-top: -20px; box-shadow: 0 6px 18px rgba(10,17,32,.34); }
.mfab:hover { color: #fff; }

.mobile-only { display: none; }

@media (max-width: 1180px) {
    .shell { grid-template-columns: 236px minmax(0,1fr); }
    .side-right { display: none; }
}
@media (max-width: 991px) {
    .shell, .shell.narrow { grid-template-columns: minmax(0,1fr); max-width: 720px; }
    .side-left { display: none; }
    .search-wrap { display: none; }
    .tabbar { display: block; }
    body.has-chrome { padding-bottom: 78px; }
    .site-footer-in { grid-template-columns: 1fr 1fr; }
    .site-footer-brand { grid-column: 1 / -1; }
    .stats { grid-template-columns: repeat(2,1fr); }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-pane { padding: 30px 22px 60px; align-items: flex-start; }
    .mobile-only { display: block; }
    .desktop-only { display: none !important; }
    .brand-txt span { display: none; }
}
@media (max-width: 640px) {
    .shell { padding: 16px 14px 100px; }
    .topbar-in { padding: 0 14px; gap: 10px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2,1fr); gap: 11px; }
    .stat { padding: 15px; border-radius: var(--r); }
    .stat-v { font-size: 23px; }
    .post-bd { padding: 15px 16px 12px; }
    .post-title { font-size: 16.5px; }
    .card-bd { padding: 16px; }
    .card-hd { padding: 14px 16px; }
    .feed-top h1 { font-size: 21px; }
    .brand-txt strong { font-size: 16px; }
    .act { padding: 8px 10px; font-size: 12.5px; }
    .auth-form h1 { font-size: 24px; }
    .otp-row input { width: 44px; height: 52px; font-size: 20px; }
    .prof-cover { height: 130px; border-radius: 0; }
    .prof-hd { padding: 0 18px 18px; }
    .seg { grid-template-columns: 1fr; }
    .site-footer-in { grid-template-columns: 1fr; padding: 28px 18px 20px; gap: 22px; }
    .site-footer-bar { flex-direction: column; padding: 14px 18px; }
}

/* Utilities */
.f { display: flex; } .fc { flex-direction: column; } .ac { align-items: center; }
.jb { justify-content: space-between; } .je { justify-content: flex-end; } .jc { justify-content: center; }
.wrap { flex-wrap: wrap; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.muted { color: var(--ink-400); } .small { font-size: 12.8px; } .tiny { font-size: 11.5px; }
.tc { text-align: center; } .tr { text-align: right; } .w100 { width: 100%; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ============================ MODALS ============================ */
.modal-back { position: fixed; inset: 0; background: rgba(10,17,32,.55); backdrop-filter: blur(3px);
    z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-back.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 540px;
    box-shadow: var(--sh-lg); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
    animation: pop-in .18s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-hd { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-hd h3 { margin: 0; font-size: 17px; }
.modal-bd { padding: 22px; overflow-y: auto; }
.modal-ft { padding: 15px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }
.modal-x { background: none; border: none; font-size: 20px; color: var(--ink-400); cursor: pointer; line-height: 1; padding: 4px; }
.modal-x:hover { color: var(--ink-900); }
.modal-lg { max-width: 780px; }

/* ---- Confirm dialog (replaces window.confirm) ---- */
.confirm-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; font-size: 23px; }
.confirm-ic.warn { background: var(--warn-soft); color: var(--warn); }
.confirm-ic.danger { background: var(--crit-soft); color: var(--crit); }
.confirm-title { font-family: var(--f-display); font-weight: 700; font-size: 16.5px; color: var(--ink-900); margin: 0 0 6px; }
.confirm-text { font-size: 13.8px; color: var(--ink-500); margin: 0; line-height: 1.55; }

/* ---- Global loading overlay ---- */
.kyu-loader { position: fixed; inset: 0; z-index: 3000; background: rgba(246,248,251,.72); backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.kyu-loader.open { display: flex; }
.kyu-loader-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--ink-900); animation: kyu-spin .7s linear infinite; }
.kyu-loader-text { font-size: 13px; font-weight: 600; color: var(--ink-600); }
@keyframes kyu-spin { to { transform: rotate(360deg); } }

.bulk-bar { display: none; align-items: center; gap: 12px; padding: 12px 18px; background: var(--ink-900); color: #fff; border-radius: var(--r); margin-bottom: 14px; flex-wrap: wrap; }
.bulk-bar #bulkCount { font-weight: 700; font-size: 13.5px; }

.perm-grid { display: grid; gap: 20px; }
.perm-block { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.perm-block-hd { padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.perm-row:last-child { border-bottom: none; }
.perm-row strong { display: block; font-size: 13.8px; font-family: var(--f-display); color: var(--ink-900); }
.perm-row small { font-size: 12.3px; color: var(--ink-400); }

.strip { display: flex; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.strip a { padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--ink-400); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.strip a:hover { color: var(--ink-900); }
.strip a.on { color: var(--ink-900); border-bottom-color: var(--azure); }

.chart-box { position: relative; height: 260px; }
.chart-box-sm { position: relative; height: 190px; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.8px; }
.kv:last-child { border-bottom: none; }
.kv dt { color: var(--ink-400); margin: 0; }
.kv dd { margin: 0; font-weight: 600; color: var(--ink-900); text-align: right; }

/* ---- FAQ accordion (plain <details>/<summary>, no JS needed) ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    padding: 15px 0; font-weight: 600; font-family: var(--f-display); color: var(--ink-900);
    font-size: 14.5px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--ink-300); flex: none; font-size: 15px; }
.faq-item summary .faq-ic-open { display: none; }
.faq-item[open] summary .faq-ic-closed { display: none; }
.faq-item[open] summary .faq-ic-open { display: inline; }
.faq-item p { padding: 0 0 16px; margin: 0; color: var(--ink-600); font-size: 13.8px; line-height: 1.6; }

.tl-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: none; }
.tl-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--canvas); color: var(--ink-500); display: grid; place-items: center; font-size: 14px; flex: none; }
.tl-bd { min-width: 0; flex: 1; }
.tl-bd .t { font-size: 13.8px; color: var(--ink-800); }
.tl-bd .w { font-size: 11.5px; color: var(--ink-300); font-family: var(--f-mono); }
