/* Darkwave Staff Panel — black + electric blue */
:root {
  --bg: #05070b; --bg2: #080c12; --panel: #0b1119; --panel2: #0f1722; --panel3: #131d2b;
  --line: #19232f; --line2: #243247; --text: #e8eef7; --muted: #8b9ab0; --faint: #5b6a80;
  --blue: #2d8cff; --blue2: #5eb0ff; --blue-d: #1a6dff; --glow: rgba(45, 140, 255, .32);
  --green: #34d399; --red: #ff5c70; --amber: #fbbf24; --violet: #a78bfa;
  --r: 14px; --r-sm: 9px;
  --font: Inter, "SF Pro Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 14.5px/1.55 var(--font); color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -10%, rgba(45, 140, 255, .14), transparent 60%),
    radial-gradient(700px 480px at 100% 0%, rgba(94, 176, 255, .07), transparent 60%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
body::before { /* faint grid */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(120, 160, 220, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 220, .035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%);
}
#app { position: relative; z-index: 1; min-height: 100vh; }
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 650; } h2 { font-size: 17px; font-weight: 620; } h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .mono { font-family: var(--mono); }
.noscript { padding: 24px; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; border-radius: 6px; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 14px var(--glow)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 16px; letter-spacing: .16em; font-weight: 700; }
.logo-text span { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue2); margin-top: 4px; }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-wrap.wide { max-width: 520px; }
.auth .logo { justify-content: center; margin-bottom: 26px; }
.card {
  background: linear-gradient(180deg, rgba(19, 29, 43, .72), rgba(11, 17, 25, .92)); border: 1px solid var(--line2);
  border-radius: var(--r); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.auth .card { padding: 30px 28px 26px; position: relative; }
.auth .card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.auth h1 { font-size: 21px; } .auth .sub { color: var(--muted); margin: 6px 0 22px; font-size: 14px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--faint); display: flex; justify-content: center; gap: 6px; align-items: center; }
.auth-foot .ico { width: 14px; height: 14px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .lbl { font-size: 12.5px; font-weight: 560; color: #b8c4d6; }
.hint { font-size: 12px; color: var(--faint); }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=url], textarea, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); font: inherit;
  padding: 11px 13px; border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: #31435f; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--glow); background: #060a10; }
input::placeholder, textarea::placeholder { color: #46556a; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.codebox { text-align: center; font: 600 28px/1 var(--mono); letter-spacing: .5em; padding: 16px 10px 16px calc(10px + .5em); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; }
.check input { appearance: none; width: 18px; height: 18px; flex: none; margin: 1px 0 0; border: 1.5px solid #3a4c68; border-radius: 5px; background: var(--bg2); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check input:disabled { opacity: .45; cursor: not-allowed; }
.alert { padding: 11px 13px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 16px; border: 1px solid; display: flex; gap: 10px; }
.alert.err { background: rgba(255, 92, 112, .08); border-color: rgba(255, 92, 112, .35); color: #ffb3bd; }
.alert.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .3); color: #f5d68a; }
.alert.info { background: rgba(45, 140, 255, .08); border-color: rgba(45, 140, 255, .32); color: #a9d0ff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 580; font-size: 14px; cursor: pointer;
  padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel3); color: var(--text); transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #3b5272; background: #172335; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #3b98ff, #1a6dff); border-color: #4aa0ff; color: #fff; box-shadow: 0 6px 22px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:hover { background: linear-gradient(180deg, #55a6ff, #2476ff); }
.btn.danger { color: #ff9aa8; border-color: rgba(255, 92, 112, .35); background: rgba(255, 92, 112, .06); }
.btn.danger:hover { background: rgba(255, 92, 112, .14); border-color: rgba(255, 92, 112, .6); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.block { width: 100%; padding: 12px 16px; }
.btn .ico { width: 16px; height: 16px; }
.spin { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; color: var(--blue2); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px;
  background: linear-gradient(180deg, rgba(8, 12, 18, .92), rgba(5, 7, 11, .96)); border-right: 1px solid var(--line); overflow-y: auto;
}
.side .logo { padding: 0 8px 22px; }
.nav-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 8px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #aab7ca; font-weight: 520; position: relative; margin-bottom: 2px; transition: .12s;
}
.nav a:hover { background: rgba(255, 255, 255, .035); color: var(--text); text-decoration: none; }
.nav a.on { background: linear-gradient(90deg, rgba(45, 140, 255, .18), rgba(45, 140, 255, .04)); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.nav .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 10px var(--c, var(--blue)); margin: 0 4.5px; flex: none; }
.nav a span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 10px; }
.me .who { min-width: 0; flex: 1; line-height: 1.25; } .me b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { color: var(--faint); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 650; font-size: 13px; color: #cfe4ff; background: linear-gradient(135deg, #17345d, #0d1e38); border: 1px solid #25497c; }
.avatar.lg { width: 48px; height: 48px; font-size: 17px; border-radius: 13px; }
.side-actions { display: flex; gap: 6px; margin-top: 8px; }
.side-actions .btn { flex: 1; padding: 8px 10px; font-size: 13px; }
.main { min-width: 0; padding: 34px clamp(18px, 3.4vw, 48px) 60px; max-width: 1320px; width: 100%; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.crumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue2); font-weight: 600; margin-bottom: 8px; display: block; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- panels / grids ---------- */
.panel { padding: 20px; } .panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.g-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 22px; }
.g-areas { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g-2 { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stat { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.stat .n { font-size: 30px; font-weight: 680; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.stat.warn .n { color: var(--amber); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 140, 255, .16), transparent 70%); }
.area-card { display: block; padding: 20px; position: relative; overflow: hidden; color: inherit; transition: .18s; }
.area-card:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, #243247); box-shadow: 0 18px 40px -22px var(--c); }
.area-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent 80%); }
.area-card .badge-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #0b1119); border: 1px solid color-mix(in srgb, var(--c) 35%, #0b1119); margin-bottom: 14px; }
.area-card h3 { font-size: 16px; margin-bottom: 5px; } .area-card p { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.area-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.go { color: var(--c); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); background: rgba(255, 255, 255, .02); white-space: nowrap; }
.pill.blue { color: #9ccaff; border-color: rgba(45, 140, 255, .4); background: rgba(45, 140, 255, .1); }
.pill.green { color: #7ee8bf; border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.pill.red { color: #ff9aa8; border-color: rgba(255, 92, 112, .35); background: rgba(255, 92, 112, .08); }
.pill.amber { color: #f5d68a; border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.pill.violet { color: #cdbdff; border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .1); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 9px 2px 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 11%, #0b1119); border: 1px solid color-mix(in srgb, var(--c) 30%, #0b1119); color: color-mix(in srgb, var(--c) 70%, #fff); margin: 2px 4px 2px 0; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .big { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: rgba(45, 140, 255, .1); border: 1px solid rgba(45, 140, 255, .3); color: var(--blue2); }
.empty .big .ico { width: 24px; height: 24px; } .empty h3 { color: var(--text); font-size: 16px; margin-bottom: 6px; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid rgba(25, 35, 47, .7); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; transition: background .12s; } tbody tr.click:hover { background: rgba(45, 140, 255, .06); }
.usercell { display: flex; align-items: center; gap: 12px; min-width: 190px; } .usercell b { display: block; font-weight: 600; } .usercell small { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 380px; }
.tag-off { opacity: .55; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- notices ---------- */
.notice { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); position: relative; }
.notice.pinned { border-color: rgba(45, 140, 255, .45); background: linear-gradient(180deg, rgba(45, 140, 255, .09), rgba(45, 140, 255, .02)); }
.notice h3 { font-size: 15px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.notice .body { white-space: pre-wrap; overflow-wrap: anywhere; color: #c5d0e0; margin: 6px 0 10px; }
.notice .meta { font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice .acts { display: flex; gap: 4px; }
.iconbtn { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; transition: .12s; }
.iconbtn:hover { color: var(--text); background: rgba(255, 255, 255, .06); } .iconbtn.danger:hover { color: var(--red); background: rgba(255, 92, 112, .1); } .iconbtn.on { color: var(--blue2); }
.linklist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); margin-bottom: 8px; background: rgba(255, 255, 255, .015); overflow-wrap: anywhere; }
.linklist a:hover { border-color: var(--blue); text-decoration: none; background: rgba(45, 140, 255, .07); }
.linklist .row { display: flex; gap: 6px; align-items: center; } .linklist .row a { flex: 1; margin: 0; }
.member { display: flex; align-items: center; gap: 10px; padding: 7px 0; } .member .avatar { width: 30px; height: 30px; font-size: 11.5px; border-radius: 9px; }
.member b { font-weight: 560; font-size: 13.5px; display: block; line-height: 1.2; } .member small { color: var(--faint); font-size: 12px; }
.inline-form { margin-bottom: 18px; padding: 16px; border: 1px dashed #2c3d58; border-radius: 12px; background: rgba(45, 140, 255, .035); }
.inline-form .field { margin-bottom: 12px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 8, .72); backdrop-filter: blur(5px); animation: fade .15s; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: rise .18s; background: linear-gradient(180deg, #111b29, #0a1018); }
.modal.wide { max-width: 720px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 12px; }
.modal-b { padding: 22px; overflow-y: auto; } .modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sect { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); } .sect > .lbl { display: block; margin-bottom: 10px; }
.access-grid { border: 1px solid var(--line2); border-radius: 11px; overflow: hidden; }
.access-row { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.access-row:last-child { border-bottom: 0; } .access-row select { padding: 7px 28px 7px 10px; font-size: 13px; } .access-row select:disabled { opacity: .35; }
.access-row .nm { display: flex; align-items: center; gap: 10px; } .access-row .nm .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; }
.cred { background: #060a10; border: 1px solid var(--line2); border-radius: 11px; padding: 4px 16px; margin: 14px 0; }
.cred div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); } .cred div:last-child { border: 0; }
.cred span { color: var(--faint); font-size: 12.5px; } .cred code { font: 600 15px var(--mono); color: #cfe4ff; overflow-wrap: anywhere; text-align: right; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.codes code { font: 600 14.5px var(--mono); letter-spacing: .06em; padding: 10px 12px; text-align: center; background: #060a10; border: 1px solid var(--line2); border-radius: 9px; color: #cfe4ff; }
.qrbox { display: flex; gap: 20px; align-items: center; margin: 14px 0 18px; flex-wrap: wrap; justify-content: center; }
.qrbox img { width: 188px; height: 188px; border-radius: 12px; background: #fff; padding: 0; box-shadow: 0 0 0 1px var(--line2), 0 0 40px -10px var(--glow); }
.secret { font: 600 14px var(--mono); letter-spacing: .08em; background: #060a10; border: 1px solid var(--line2); border-radius: 9px; padding: 9px 12px; word-break: break-all; color: #cfe4ff; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; color: var(--muted); font-size: 13.5px; }
.steps li { counter-increment: s; display: flex; gap: 10px; } .steps li::before { content: counter(s); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--blue2); border: 1px solid rgba(45, 140, 255, .5); background: rgba(45, 140, 255, .1); margin-top: 1px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .sw { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; background: var(--c); padding: 0; } .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--c); }
input[type=color] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line2); border-radius: 8px; background: none; cursor: pointer; }
.dept { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); } .dept:last-child { border: 0; }
.dept .badge-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #0b1119); border: 1px solid color-mix(in srgb, var(--c) 35%, #0b1119); flex: none; }
.dept .info { flex: 1; min-width: 0; } .dept .info b { display: block; } .dept .info small { color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; } .feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: baseline; } .feed li:last-child { border: 0; }
.feed time { color: var(--faint); font-size: 12px; margin-left: auto; white-space: nowrap; }
.feed .act { font-weight: 560; } .feed .tg { color: var(--muted); }
.adot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue)); flex: none; position: relative; top: -1px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 14px; } .kv dt { color: var(--faint); } .kv dd { margin: 0; }

/* ---------- toast ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 36px); }
.toast { padding: 12px 16px; border-radius: 11px; background: #111c2b; border: 1px solid var(--line2); box-shadow: 0 16px 40px -12px #000; display: flex; gap: 10px; align-items: center; animation: rise .2s; font-size: 13.5px; max-width: 380px; }
.toast.ok { border-color: rgba(52, 211, 153, .5); } .toast.ok .ico { color: var(--green); } .toast.bad { border-color: rgba(255, 92, 112, .5); } .toast.bad .ico { color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 980px) { .g-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; width: 286px; background: #05070b; transform: translateX(-102%); transition: transform .22s; box-shadow: 30px 0 60px -20px #000; }
  .shell.open .side { transform: none; }
  .shell.open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 30; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; position: sticky; top: 0; z-index: 20; background: rgba(5, 7, 11, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar .logo-mark { width: 30px; height: 30px; } .topbar .logo-text b { font-size: 14px; }
  .main { padding-top: 22px; }
  h1 { font-size: 22px; }
}
@media (max-width: 520px) {
  .g-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px; } .stat .n { font-size: 26px; } .stat .l { font-size: 12px; }
  .auth .card { padding: 24px 18px 20px; } .codes { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; }
  .access-row { grid-template-columns: 1fr; gap: 8px; } .modal-h, .modal-b, .modal-f { padding-left: 16px; padding-right: 16px; }
  .codebox { font-size: 24px; letter-spacing: .35em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
