/* ==========================================================================
   GSB Bilgi İşlem — Design System v2 ("Obsidian / Lime")
   Hand-written, framework-free. Dark is default; light via [data-theme="light"].
   Palette rule: NO purple / violet / indigo / blue / cyan anywhere.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --bg: #0b0c0e; --bg-rgb: 11,12,14; --panel: #131519; --panel-2: #1a1c21;
  --glass-a: rgba(255,255,255,.055); --glass-b: rgba(255,255,255,.018); --glass-strong: rgba(20,22,26,.9);
  --edge: rgba(255,255,255,.17);
  --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.12); --line-3: rgba(255,255,255,.2);
  --fill: rgba(255,255,255,.035); --fill-2: rgba(255,255,255,.065); --fill-3: rgba(255,255,255,.1);
  --input: rgba(0,0,0,.3); --input-shadow: inset 0 1px 2px rgba(0,0,0,.45);
  --text: #eeede8; --text-2: #b9b7af; --muted: #8a8880; --faint: #5f5e58;
  --lime: #c8f23c; --lime-hi: #e2ff7d; --lime-lo: #a6d11d; --ink: #10150a;
  --accent: #c8f23c; --accent-rgb: 200,242,60;
  --accent-2: #ffab3d; --a2-rgb: 255,171,61;
  --ok: #3ddc97; --ok-rgb: 61,220,151;
  --warn: #f5c451; --warn-rgb: 245,196,81;
  --danger: #ff5d5d; --danger-rgb: 255,93,93; --danger-ink: #220505;
  --rose: #ff8fa8; --rose-rgb: 255,143,168;
  --info: #dcd8cc; --info-rgb: 220,216,204;
  --r-lg: 20px; --r-xl: 24px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(0,0,0,.85);
  --hi: inset 0 1px 0 rgba(255,255,255,.07);
  --grid-line: rgba(255,255,255,.035); --orb-op: .2; --scroll: rgba(255,255,255,.13);
  --th-bg: rgba(17,18,21,.92); --bar-bg: rgba(11,12,14,.62);
  --side-bg: linear-gradient(180deg, rgba(21,23,27,.78), rgba(12,13,15,.78));
  --sidebar-w: 264px; --topbar-h: 64px;
  --ease: cubic-bezier(.2,.8,.2,1); --t: .18s var(--ease);
  accent-color: var(--accent); color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3f1ea; --bg-rgb: 243,241,234; --panel: #fbfaf6; --panel-2: #fff;
  --glass-a: rgba(255,255,255,.82); --glass-b: rgba(255,255,255,.55); --glass-strong: rgba(252,251,247,.96);
  --edge: #fff;
  --line: rgba(40,34,20,.09); --line-2: rgba(40,34,20,.14); --line-3: rgba(40,34,20,.24);
  --fill: rgba(40,34,20,.035); --fill-2: rgba(40,34,20,.06); --fill-3: rgba(40,34,20,.1);
  --input: rgba(255,255,255,.9); --input-shadow: inset 0 1px 2px rgba(60,50,20,.08);
  --text: #1b1a16; --text-2: #46443d; --muted: #6f6c62; --faint: #9c988c;
  --accent: #5f7f00; --accent-rgb: 95,127,0;
  --accent-2: #c26a00; --a2-rgb: 194,106,0;
  --ok: #12875a; --ok-rgb: 18,135,90;
  --warn: #a67600; --warn-rgb: 166,118,0;
  --danger: #d23b3b; --danger-rgb: 210,59,59; --danger-ink: #fff;
  --rose: #c44a69; --rose-rgb: 196,74,105;
  --info: #57534a; --info-rgb: 87,83,74;
  --shadow: 0 1px 2px rgba(60,50,20,.07), 0 14px 34px -16px rgba(60,50,20,.22);
  --shadow-lg: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(60,50,20,.35);
  --hi: inset 0 1px 0 rgba(255,255,255,.9);
  --grid-line: rgba(40,34,20,.055); --orb-op: .32; --scroll: rgba(40,34,20,.18);
  --th-bg: rgba(248,246,240,.95); --bar-bg: rgba(243,241,234,.72);
  --side-bg: linear-gradient(180deg, rgba(251,250,245,.82), rgba(244,242,235,.82));
  color-scheme: light;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
.content a:not([class]):hover { text-decoration: underline; text-underline-offset: 3px; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--fill-2); padding: 1px 6px; border-radius: 6px; }
small { font-size: 12.5px; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb),.85); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
/* Lucide: <i class="ico"> becomes <svg class="lucide ico"> */
.ico { width: 18px; height: 18px; flex: none; stroke-width: 1.75; vertical-align: -.22em; }
i.ico { display: inline-block; }
.ico-sm { width: 14px; height: 14px; }
.ico-lg { width: 22px; height: 22px; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- 3. Ambient background --------------------------------------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb-op); will-change: transform; }
.orb-a { width: 56vmax; height: 56vmax; top: -22vmax; right: -14vmax; background: radial-gradient(circle at 40% 40%, rgba(200,242,60,.9), rgba(200,242,60,0) 62%); animation: drift-a 38s ease-in-out infinite alternate; }
.orb-b { width: 48vmax; height: 48vmax; bottom: -24vmax; left: -10vmax; background: radial-gradient(circle at 60% 50%, rgba(255,171,61,.85), rgba(255,171,61,0) 62%); animation: drift-b 46s ease-in-out infinite alternate; opacity: calc(var(--orb-op) * .8); }
.grid-fx {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--grid-line) 1px, transparent 1.5px), linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px, 96px 96px, 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 10%, transparent 75%);
}
@keyframes drift-a { to { transform: translate3d(-12vmax,10vmax,0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(14vmax,-8vmax,0) scale(.92); } }

/* ---------- 4. App shell ------------------------------------------------- */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar-w); display: flex; flex-direction: column; padding: 18px 14px 14px; background: var(--side-bg); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; color: var(--text); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--lime); background: linear-gradient(160deg, #22252a, #0b0c0e 70%); border: 1px solid rgba(200,242,60,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 4px rgba(200,242,60,.05), 0 8px 24px -6px rgba(200,242,60,.45); }
.brand-mark svg { width: 24px; height: 24px; filter: drop-shadow(0 0 5px rgba(200,242,60,.65)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px 12px; }
.nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 7px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; margin-bottom: 2px; border-radius: 12px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: background var(--t), color var(--t), box-shadow var(--t); }
.nav-item > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item .ico { color: var(--muted); transition: color var(--t); }
.nav-item:hover { background: var(--fill-2); color: var(--text); }
.nav-item:hover .ico { color: var(--text-2); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(var(--accent-rgb),.17), rgba(var(--accent-rgb),.045) 70%, rgba(var(--accent-rgb),.02)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.2), 0 0 26px -10px rgba(var(--accent-rgb),.55); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb),.9); }
.nav-item.active .ico { color: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb),.55)); }
.nav-badge { font-style: normal; font: 600 11px/1 var(--mono); min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb),.13); border: 1px solid rgba(var(--accent-rgb),.25); }
.nav-badge.warn { color: var(--accent-2); background: rgba(var(--a2-rgb),.13); border-color: rgba(var(--a2-rgb),.3); }
.sidebar-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.sys-pill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.sys-pill code { margin-left: auto; background: none; padding: 0; font-size: 11px; color: var(--faint); }
.pulse, .live-dot { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb),.8); }
.pulse::after, .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--ok-rgb),.7); animation: ping 2s var(--ease) infinite; }
.live-dot.warn { background: var(--warn); --ok-rgb: var(--warn-rgb); }
.live-dot.danger { background: var(--danger); --ok-rgb: var(--danger-rgb); }
.live-dot.accent { background: var(--accent); --ok-rgb: var(--accent-rgb); }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.sidebar-scrim { display: none; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; min-height: 100dvh; min-width: 0; display: flex; flex-direction: column; overflow-x: clip; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: var(--topbar-h); padding: 0 clamp(16px,2.6vw,36px); background: var(--bar-bg); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--line); }
.topbar [data-sidebar-toggle] { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--text); }
.crumbs > span:not(.crumb-sep) { color: var(--text); font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.crumb-sep { color: var(--faint); }
.cmdk-trigger { display: flex; align-items: center; gap: 10px; flex: 0 1 300px; min-width: 0; height: 38px; padding: 0 6px 0 12px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line-2); background: var(--fill); color: var(--muted); font-size: 13.5px; text-align: left; box-shadow: var(--hi); transition: border-color var(--t), background var(--t), color var(--t); }
.cmdk-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-trigger:hover { border-color: var(--line-3); background: var(--fill-2); color: var(--text-2); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.dot-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; font: 600 10px/1 var(--mono); color: var(--danger-ink); background: var(--danger); border: 2px solid var(--bg); box-shadow: 0 0 12px rgba(var(--danger-rgb),.6); }
.user-chip { display: flex; align-items: center; gap: 10px; height: 42px; padding: 3px 10px 3px 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--fill); color: var(--text); text-align: left; box-shadow: var(--hi); transition: background var(--t), border-color var(--t); }
.user-chip:hover { background: var(--fill-2); border-color: var(--line-2); }
.user-chip > .ico { color: var(--muted); }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; max-width: 160px; }
.user-meta b, .user-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta b { font-size: 13px; font-weight: 600; }
.user-meta small { font-size: 11.5px; color: var(--muted); }
.content { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 28px clamp(16px,2.6vw,36px) 56px; animation: rise .4s var(--ease) both; }
.content > * + * { margin-top: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.tabbar { display: none; }

/* ---------- 5. Page head & layout --------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.page-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; color: var(--accent); background: linear-gradient(160deg, rgba(var(--accent-rgb),.2), rgba(var(--accent-rgb),.04)); border: 1px solid rgba(var(--accent-rgb),.28); box-shadow: var(--hi), 0 10px 30px -12px rgba(var(--accent-rgb),.6); }
.page-icon .ico { width: 22px; height: 22px; }
.page-title { font-size: clamp(22px,2.1vw,28px); font-weight: 680; letter-spacing: -.03em; margin: 0; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- 6. Glass surfaces ------------------------------------------- */
.card, .stat, .hero-panel, .auth-card, .drive-item, .hero-metrics > div { position: relative; background: linear-gradient(180deg, var(--glass-a), var(--glass-b)); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hi), var(--shadow); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
/* bright top edge = gradient border via mask */
.card::before, .stat::before, .hero-panel::before, .auth-card::before, .drive-item::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(180deg, var(--edge), rgba(255,255,255,0) 38%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card { min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 22px; min-height: 58px; border-bottom: 1px solid var(--line); }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.card-title .ico { color: var(--accent); }
.card-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 22px; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(0,0,0,.06); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-flush { padding: 0; overflow: hidden; }
.card-glow { border-color: rgba(var(--accent-rgb),.3); background: radial-gradient(120% 70% at 50% -10%, rgba(var(--accent-rgb),.13), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); box-shadow: var(--hi), 0 0 0 1px rgba(var(--accent-rgb),.08), 0 24px 60px -24px rgba(var(--accent-rgb),.45); }
.card-hover, a.card, .card[href] { display: block; color: inherit; text-decoration: none; transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.card-hover:hover, a.card:hover, .card[href]:hover { transform: translateY(-2px); border-color: var(--line-3); box-shadow: var(--hi), 0 26px 50px -22px rgba(0,0,0,.75); }
.card > .timeline, .card > .kv { padding: 18px 22px; }

/* ---------- 7. Stats & dashboard ---------------------------------------- */
.stat { --tone: var(--text-2); --tone-rgb: var(--info-rgb); display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "label icon" "value icon" "meta meta"; gap: 4px 14px; padding: 18px 20px 16px; overflow: hidden; background: radial-gradient(110% 90% at 100% 0%, rgba(var(--tone-rgb),.13), transparent 58%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); transition: transform var(--t), border-color var(--t); }
.stat::after { content: ""; position: absolute; left: 20px; right: 55%; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--tone), transparent); opacity: .55; }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover, .stat.card-hover:hover { transform: translateY(-2px); border-color: var(--line-3); }
.stat-icon { grid-area: icon; align-self: start; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--tone); background: rgba(var(--tone-rgb),.1); border: 1px solid rgba(var(--tone-rgb),.22); box-shadow: var(--hi), 0 0 24px -8px rgba(var(--tone-rgb),.6); }
.stat-icon .ico { width: 20px; height: 20px; }
.stat-label { grid-area: label; font-size: 12px; font-weight: 550; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.stat-value { grid-area: value; font: 500 clamp(26px,2.3vw,34px)/1.1 var(--mono); letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value small { font-size: .5em; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.stat-meta { grid-area: meta; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.up, .down { display: inline-flex; align-items: center; gap: 3px; font: 600 12px var(--mono); }
.up { color: var(--ok); }
.down { color: var(--danger); }
.stat-accent { --tone: var(--accent); --tone-rgb: var(--accent-rgb); }
.stat-warn { --tone: var(--accent-2); --tone-rgb: var(--a2-rgb); }
.stat-danger { --tone: var(--danger); --tone-rgb: var(--danger-rgb); }
.stat-ok { --tone: var(--ok); --tone-rgb: var(--ok-rgb); }

.hero-panel { padding: clamp(20px,2.4vw,30px); overflow: hidden; border-radius: var(--r-xl); background: radial-gradient(60% 120% at 0% 0%, rgba(var(--accent-rgb),.14), transparent 60%), radial-gradient(50% 100% at 100% 100%, rgba(var(--a2-rgb),.1), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); }
.hero-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.06) 45%, transparent 55%); background-size: 250% 100%; animation: sheen 9s ease-in-out infinite; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h2 { font-size: clamp(22px,2.4vw,32px); letter-spacing: -.035em; margin-bottom: 6px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
@keyframes sheen { 0%, 60% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* Gauge: .gauge > svg(circle.track + circle.bar[pathLength=100]) + .gauge-value + .gauge-label */
.gauge { --size: 150px; --tone: var(--accent); --tone-rgb: var(--accent-rgb); position: relative; flex: none; width: var(--size); height: var(--size); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.gauge circle { fill: none; stroke-width: 9; }
.gauge .track, .gauge-track { stroke: var(--fill-3); }
.gauge .bar, .gauge-bar { stroke: var(--tone); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--tone-rgb),.6)); transition: stroke-dashoffset 1s var(--ease); }
.gauge-value { position: relative; font: 500 calc(var(--size) * .19)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.gauge-label { position: relative; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gauge-sm { --size: 96px; }
.gauge-lg { --size: 200px; }
.gauge-warn { --tone: var(--accent-2); --tone-rgb: var(--a2-rgb); }
.gauge-danger { --tone: var(--danger); --tone-rgb: var(--danger-rgb); }
.gauge-ok { --tone: var(--ok); --tone-rgb: var(--ok-rgb); }

/* Chart: put <linearGradient id="gsb-area"><stop class="stop-a" offset="0"/><stop class="stop-b" offset="1"/></linearGradient> in the svg defs */
.chart { position: relative; width: 100%; height: 220px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .stop-a { stop-color: var(--accent); stop-opacity: .34; }
.chart .stop-b { stop-color: var(--accent); stop-opacity: 0; }
.chart path.area { stroke: none; fill: rgba(var(--accent-rgb),.12); fill: url(#gsb-area) rgba(var(--accent-rgb),.12); }
.chart path.area.alt { fill: rgba(var(--a2-rgb),.1); }
.chart path.line { fill: none; stroke: var(--accent); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb),.5)); }
.chart path.line.alt { stroke: var(--accent-2); filter: drop-shadow(0 0 6px rgba(var(--a2-rgb),.45)); }
.chart .grid-line { stroke: var(--line); stroke-width: 1px; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart .axis-label { font: 10px var(--mono); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .point { fill: var(--bg); stroke: var(--accent); stroke-width: 2px; }
.chart .bar-rect { fill: rgba(var(--accent-rgb),.7); }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend span::before { content: ""; width: 10px; height: 3px; border-radius: 2px; background: var(--c, var(--accent)); }

.metric-list { list-style: none; margin: 0; padding: 0; }
.metric-list > li, .metric-list > .metric { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 6px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.metric-list > :last-child { border-bottom: 0; }
.metric-list > * > :first-child { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-list b, .metric-list .mono, .metric-value { font-family: var(--mono); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.metric-list .progress { grid-column: 1 / -1; height: 4px; }
.spark { display: inline-block; vertical-align: middle; width: 96px; height: 32px; color: var(--accent); overflow: visible; }
.spark path, .spark polyline { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark path.area { fill: currentColor; fill-opacity: .12; stroke: none; }

/* ---------- 8. Buttons --------------------------------------------------- */
.btn { --spin: var(--text); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--fill-2); color: var(--text); font: 600 14px/1 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none; box-shadow: var(--hi); transition: background var(--t), border-color var(--t), box-shadow var(--t), transform .12s var(--ease), filter var(--t), color var(--t); }
.btn .ico { width: 17px; height: 17px; }
.btn:hover { background: var(--fill-3); border-color: var(--line-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { --spin: var(--ink); color: var(--ink); border-color: rgba(0,0,0,.18); background: linear-gradient(180deg, var(--lime-hi), var(--lime) 48%, var(--lime-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.3), 0 8px 22px -8px rgba(200,242,60,.6); }
.btn-primary:hover { border-color: rgba(0,0,0,.18); background: linear-gradient(180deg, #ecffa3, #d3fa52 48%, #b1dc22); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.3), 0 10px 34px -6px rgba(200,242,60,.75); }
.btn-ghost { background: var(--fill); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--fill-2); }
.btn-danger { --spin: var(--danger-ink); color: var(--danger-ink); border-color: rgba(0,0,0,.18); background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%) var(--danger); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 22px -8px rgba(var(--danger-rgb),.6); }
.btn-danger:hover { filter: brightness(1.06); border-color: rgba(0,0,0,.18); background-color: var(--danger); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -6px rgba(var(--danger-rgb),.7); }
.btn-soft { --spin: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb),.1); border-color: rgba(var(--accent-rgb),.24); }
.btn-soft:hover { background: rgba(var(--accent-rgb),.17); border-color: rgba(var(--accent-rgb),.4); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn-sm .ico { width: 15px; height: 15px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; opacity: .9; }
.btn.is-loading > *, .btn-icon.is-loading > * { visibility: hidden; }
.btn.is-loading::after, .btn-icon.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--spin); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-icon { --spin: var(--text); position: relative; flex: none; width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--fill); color: var(--text-2); box-shadow: var(--hi); text-decoration: none; transition: background var(--t), color var(--t), border-color var(--t), transform .12s var(--ease); }
.btn-icon:hover { background: var(--fill-2); color: var(--text); border-color: var(--line-2); }
.btn-icon:active { transform: scale(.96); }
.btn-icon.btn-sm { width: 32px; height: 32px; padding: 0; border-radius: 10px; }
.btn-icon.btn-sm .ico { width: 16px; height: 16px; }
.btn-icon.danger:hover { color: var(--danger); border-color: rgba(var(--danger-rgb),.35); background: rgba(var(--danger-rgb),.08); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 550; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-group { display: inline-flex; }
.btn-group > .btn, .btn-group > .btn-icon { border-radius: 0; }
.btn-group > :first-child { border-radius: 12px 0 0 12px; }
.btn-group > :last-child { border-radius: 0 12px 12px 0; }
.btn-group > * + * { margin-left: -1px; }
.btn-group > .active { position: relative; z-index: 1; color: var(--accent); background: rgba(var(--accent-rgb),.14); border-color: rgba(var(--accent-rgb),.3); }

/* ---------- 9. Forms ----------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; min-width: 0; }
.field > span:first-child { font-size: 13px; font-weight: 550; color: var(--text-2); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background-color: var(--input); color: var(--text); font-size: 14px; box-shadow: var(--input-shadow); outline: none; -webkit-appearance: none; appearance: none; transition: border-color var(--t), box-shadow var(--t), background-color var(--t); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(var(--accent-rgb),.65); box-shadow: var(--input-shadow), 0 0 0 4px rgba(var(--accent-rgb),.15); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }
.input[aria-invalid="true"], .is-invalid { border-color: rgba(var(--danger-rgb),.6) !important; }
.input[aria-invalid="true"]:focus, .is-invalid:focus { box-shadow: var(--input-shadow), 0 0 0 4px rgba(var(--danger-rgb),.15) !important; }
.input.mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; }
.textarea { height: auto; min-height: 110px; padding: 11px 14px; line-height: 1.55; resize: vertical; }
.select { padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23908e86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.select[multiple] { height: auto; padding: 8px; background-image: none; }
.select option, .select optgroup { background: var(--panel); color: var(--text); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--panel-2) inset; transition: background-color 9999s ease 0s; }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: 12.5px; font-weight: 500; }
.field-error::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hint { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.hint .ico { width: 15px; height: 15px; color: var(--faint); }
.form-grid, .form-grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid > .full, .form-grid-3 > .full { grid-column: 1 / -1; }
.input-icon { position: relative; display: flex; align-items: center; min-width: 0; }
.input-icon > .ico { position: absolute; left: 13px; top: 50%; margin-top: -9px; z-index: 1; color: var(--muted); pointer-events: none; transition: color var(--t); }
.input-icon > .input { padding-left: 40px; }
.input-icon > .input:not(:last-child) { padding-right: 46px; }
.input-icon:focus-within > .ico { color: var(--accent); }
.input-addon { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); transition: background var(--t), color var(--t); }
.input-addon:hover { background: var(--fill-2); color: var(--text); }
.input-addon .ico { width: 17px; height: 17px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); user-select: none; }
.check input { -webkit-appearance: none; appearance: none; flex: none; margin: 0; width: 18px; height: 18px; border-radius: 6px; cursor: pointer; border: 1.5px solid var(--line-3); background: var(--input) center / 12px no-repeat; box-shadow: var(--input-shadow); transition: background-color var(--t), border-color var(--t), box-shadow var(--t); }
.check input:hover { border-color: rgba(var(--accent-rgb),.6); }
.check input:checked { border-color: var(--lime); background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310150a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); box-shadow: 0 0 12px -2px rgba(200,242,60,.6); }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.2); }
.check input:checked + span { color: var(--text); }
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; font-size: 14px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch > span { position: relative; display: inline-flex; align-items: center; min-height: 22px; padding-left: 38px; }
.switch > span:not(:empty) { padding-left: 50px; }
.switch > span::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -11px; width: 38px; height: 22px; border-radius: 99px; background: var(--fill-3); border: 1px solid var(--line-2); box-shadow: var(--input-shadow); transition: background var(--t), border-color var(--t), box-shadow var(--t); }
.switch > span::after { content: ""; position: absolute; left: 3px; top: 50%; margin-top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .22s var(--ease), background var(--t); }
.switch input:checked + span { color: var(--text); }
.switch input:checked + span::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 14px -2px rgba(200,242,60,.6); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--ink); }
.switch input:focus-visible + span::before { box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.22); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.toolbar .field { margin: 0; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.search { flex: 1 1 240px; max-width: 380px; }
.search .input { width: 100% !important; }

/* ---------- 10. Tables --------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll { max-height: 70vh; overflow: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { position: sticky; top: 0; z-index: 2; padding: 11px 16px; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--th-bg); border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody td { transition: background var(--t); }
.table tbody tr:hover td { background: rgba(var(--accent-rgb),.035); }
.table th:first-child, .table td:first-child { padding-left: 22px; }
.table th:last-child, .table td:last-child { padding-right: 22px; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table td.num { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.table td.actions { text-align: right; white-space: nowrap; width: 1%; }
.table td.actions > * + * { margin-left: 6px; }
.table td.actions form { display: inline; }
.table tr.is-muted td { opacity: .5; }
.table a:not(.btn):not(.btn-icon) { color: var(--text); font-weight: 550; }
.table a:not(.btn):not(.btn-icon):hover { color: var(--accent); }
.table small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- 11. Badges, chips, dots, kbd -------------------------------- */
.badge { --b: var(--muted); --b-rgb: var(--info-rgb); display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: middle; color: var(--b); background: rgba(var(--b-rgb),.1); border: 1px solid rgba(var(--b-rgb),.22); }
.badge .ico { width: 12px; height: 12px; }
.badge-ok { --b: var(--ok); --b-rgb: var(--ok-rgb); }
.badge-warn { --b: var(--accent-2); --b-rgb: var(--a2-rgb); }
.badge-danger { --b: var(--danger); --b-rgb: var(--danger-rgb); }
.badge-info { --b: var(--info); --b-rgb: var(--info-rgb); }
.badge-muted { background: var(--fill); border-color: var(--line); }
.badge-accent { --b: var(--accent); --b-rgb: var(--accent-rgb); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; text-decoration: none; background: var(--fill-2); border: 1px solid var(--line); transition: background var(--t), color var(--t), border-color var(--t); }
.chip .ico { width: 14px; height: 14px; }
a.chip:hover, button.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip.active { color: var(--accent); background: rgba(var(--accent-rgb),.12); border-color: rgba(var(--accent-rgb),.3); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.dot-ok { background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb),.7); }
.dot-warn { background: var(--warn); box-shadow: 0 0 8px rgba(var(--warn-rgb),.7); }
.dot-danger { background: var(--danger); box-shadow: 0 0 8px rgba(var(--danger-rgb),.7); }
.dot-accent { background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb),.7); }
.kbd, kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; font: 500 11px/1 var(--mono); color: var(--muted); white-space: nowrap; background: var(--fill-2); border: 1px solid var(--line-2); border-bottom-width: 2px; }

/* ---------- 12. Alerts & tabs ------------------------------------------- */
.alert { --b: var(--info); --b-rgb: var(--info-rgb); display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--text); background: rgba(var(--b-rgb),.07); border: 1px solid rgba(var(--b-rgb),.22); }
.alert > .ico { color: var(--b); margin-top: 1px; }
.alert > span { flex: 1; min-width: 0; }
.alert-ok { --b: var(--ok); --b-rgb: var(--ok-rgb); }
.alert-warn { --b: var(--warn); --b-rgb: var(--warn-rgb); }
.alert-danger { --b: var(--danger); --b-rgb: var(--danger-rgb); }
.alert-info > .ico { color: var(--accent); }
.content > .alert { margin-bottom: 0; }
.tabs { display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); box-shadow: var(--hi); }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font-size: 13.5px; font-weight: 550; color: var(--muted); white-space: nowrap; text-decoration: none; transition: background var(--t), color var(--t); }
.tab .ico { width: 16px; height: 16px; }
.tab:hover { color: var(--text); background: var(--fill-2); }
.tab.active { color: var(--text); background: var(--fill-3); box-shadow: var(--hi), 0 1px 3px rgba(0,0,0,.25); }
.tab.active .ico { color: var(--accent); }
.tab .badge { height: 18px; padding: 0 6px; font-size: 10.5px; }

/* ---------- 13. Dropdowns & notifications ------------------------------- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: var(--hi), var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
.dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu.left { right: auto; left: 0; transform-origin: top left; }
.dropdown-menu > a, .dropdown-menu > button, .dropdown-menu > form > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font-size: 13.5px; font-weight: 500; color: var(--text-2); text-align: left; text-decoration: none; transition: background var(--t), color var(--t); }
.dropdown-menu > a:hover, .dropdown-menu > button:hover, .dropdown-menu > form > button:hover { background: var(--fill-2); color: var(--text); }
.dropdown-menu > a .ico, .dropdown-menu > button .ico, .dropdown-menu > form > button .ico { width: 16px; height: 16px; color: var(--muted); }
.dropdown-menu .danger { color: var(--danger) !important; }
.dropdown-menu form { margin: 0; }
.dropdown-menu hr { margin: 6px 4px; }
.dropdown-wide { width: 370px; padding: 0; }
.dropdown-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dropdown-head b { font-size: 14px; }
.notif-list { max-height: 400px; overflow-y: auto; padding: 6px; }
.notif { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; padding: 10px 12px 10px 24px; border-radius: 12px; color: var(--text-2); text-decoration: none; transition: background var(--t); }
.notif:hover { background: var(--fill-2); }
.notif b { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif span { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif time { grid-column: 2; grid-row: 1; font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
.notif.unread b { color: var(--text); }
.notif.unread::before { content: ""; position: absolute; left: 10px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb),.8); }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; color: var(--muted); font-size: 13px; }
.notif-empty .ico { width: 24px; height: 24px; color: var(--faint); }

/* ---------- 14. Avatars & progress -------------------------------------- */
.avatar { --av: 34px; --t1: #dcff70; --t2: #a8d41f; flex: none; width: var(--av); height: var(--av); display: inline-grid; place-items: center; border-radius: 50%; font: 650 calc(var(--av) * .38)/1 var(--font); letter-spacing: -.02em; color: #12140c; text-transform: uppercase; user-select: none; background: linear-gradient(140deg, var(--t1), var(--t2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 6px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.25); }
.tone-lime { --t1: #dcff70; --t2: #a8d41f; }
.tone-amber { --t1: #ffc56e; --t2: #f08f1c; }
.tone-coral { --t1: #ff9a85; --t2: #ff5d5d; }
.tone-mint { --t1: #7ff0bd; --t2: #2fbf80; }
.tone-sand { --t1: #f7e2a6; --t2: #e3b543; }
.tone-rose { --t1: #ffb3c4; --t2: #f0708f; }
.avatar-sm { --av: 28px; }
.avatar-lg { --av: 48px; }
.avatar-xl { --av: 80px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 4px var(--bg), 0 0 0 5px rgba(var(--accent-rgb),.35), 0 16px 40px -12px rgba(var(--accent-rgb),.5); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.progress { position: relative; height: 6px; border-radius: 99px; overflow: hidden; background: var(--fill-3); box-shadow: inset 0 1px 1px rgba(0,0,0,.2); }
.progress > span { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--accent-rgb),.55), var(--accent)); box-shadow: 0 0 12px rgba(var(--accent-rgb),.55); transition: width .6s var(--ease); }
.progress-warn > span { background: linear-gradient(90deg, rgba(var(--a2-rgb),.55), var(--accent-2)); box-shadow: 0 0 12px rgba(var(--a2-rgb),.5); }
.progress-danger > span { background: linear-gradient(90deg, rgba(var(--danger-rgb),.55), var(--danger)); box-shadow: 0 0 12px rgba(var(--danger-rgb),.5); }
.progress-ok > span { background: linear-gradient(90deg, rgba(var(--ok-rgb),.55), var(--ok)); box-shadow: 0 0 12px rgba(var(--ok-rgb),.5); }
.progress.indeterminate > span { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* ---------- 15. Empty, pager, timeline, kv, profile --------------------- */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 20px; color: var(--text-2); background: linear-gradient(160deg, var(--fill-3), var(--fill)); border: 1px solid var(--line-2); box-shadow: var(--hi), 0 14px 36px -14px rgba(var(--accent-rgb),.35); }
.empty-icon .ico { width: 28px; height: 28px; }
.empty h3 { margin: 16px 0 6px; font-size: 16px; color: var(--text); }
.empty p { margin: 0 auto; max-width: 380px; font-size: 13.5px; }
.empty-action { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 16px; }
.pager-item { min-width: 36px; height: 36px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 10px; font: 500 13px/1 var(--mono); color: var(--text-2); text-decoration: none; background: var(--fill); border: 1px solid var(--line); transition: background var(--t), color var(--t), border-color var(--t); }
.pager-item:hover { color: var(--text); border-color: var(--line-3); background: var(--fill-2); }
.pager-item.active { color: var(--ink); background: var(--lime); border-color: transparent; font-weight: 600; box-shadow: 0 0 18px -4px rgba(200,242,60,.65); }
.pager-gap { padding: 0 4px; color: var(--faint); font-family: var(--mono); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 2px; width: 1px; background: linear-gradient(var(--line-2), var(--line)); }
.timeline > li > div { min-width: 0; }
.tl-dot { --d: var(--accent); --d-rgb: var(--accent-rgb); flex: none; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--d); box-shadow: 0 0 0 3px rgba(var(--d-rgb),.15), 0 0 10px rgba(var(--d-rgb),.5); }
.tl-ok .tl-dot { --d: var(--ok); --d-rgb: var(--ok-rgb); }
.tl-warn .tl-dot { --d: var(--warn); --d-rgb: var(--warn-rgb); }
.tl-danger .tl-dot { --d: var(--danger); --d-rgb: var(--danger-rgb); }
.timeline b { display: block; font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere; }
.timeline small { display: block; margin-top: 2px; font: 12px var(--mono); color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0,1fr); gap: 11px 18px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--text); overflow-wrap: anywhere; }
.profile-card { overflow: hidden; }
.profile-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 22px 22px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 0%, rgba(var(--accent-rgb),.13), transparent 70%); }
.profile-top h2 { margin: 16px 0 2px; font-size: 19px; }
.profile-top p { margin: 0 0 12px; font: 13px var(--mono); }

/* ---------- 16. Modal & command palette --------------------------------- */
dialog.modal { padding: 0; margin: auto; border: 0; color: var(--text); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border-radius: 22px; overflow: hidden; background: var(--glass-strong); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow-lg); }
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in .24s var(--ease); }
dialog.modal > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
dialog.modal::backdrop { background: rgba(5,6,7,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s ease; }
[data-theme="light"] dialog.modal::backdrop { background: rgba(40,34,20,.3); }
.modal-sm { width: min(420px, calc(100vw - 32px)) !important; }
.modal-lg { width: min(880px, calc(100vw - 32px)) !important; }
.modal-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.modal-head h3 .ico { color: var(--accent); }
.modal-body { flex: 1 1 auto; min-height: 0; padding: 22px; overflow-y: auto; }
.modal-body > :last-child { margin-bottom: 0; }
.modal-foot { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(0,0,0,.1); }
.confirm-body { text-align: center; padding: 30px 24px 22px; }
.confirm-body p { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.confirm-icon { width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 18px; color: var(--accent); background: rgba(var(--accent-rgb),.1); border: 1px solid rgba(var(--accent-rgb),.25); box-shadow: 0 0 34px -8px rgba(var(--accent-rgb),.55); }
.confirm-icon.danger { color: var(--danger); background: rgba(var(--danger-rgb),.1); border-color: rgba(var(--danger-rgb),.28); box-shadow: 0 0 34px -8px rgba(var(--danger-rgb),.55); }
.confirm-icon .ico { width: 26px; height: 26px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
dialog.modal.cmdk { margin: 12vh auto auto; width: min(620px, calc(100vw - 24px)); max-height: 76vh; border-radius: 20px; }
.cmdk-search { flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); }
.cmdk-search > .ico { width: 20px; height: 20px; color: var(--accent); }
.cmdk-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 16px; }
.cmdk-search input::placeholder { color: var(--faint); }
.cmdk-list { padding: 8px; overflow-y: auto; max-height: min(440px, 60vh); }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-size: 14px; text-decoration: none; transition: background .1s, color .1s; }
.cmdk-item > .ico:first-child { color: var(--muted); }
.cmdk-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item:hover { background: var(--fill-2); color: var(--text); }
.cmdk-item.active { color: var(--text); background: rgba(var(--accent-rgb),.1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.2); }
.cmdk-item.active > .ico:first-child { color: var(--accent); }
.cmdk-enter { margin-left: auto; opacity: 0; color: var(--muted); }
.cmdk-item.active .cmdk-enter { opacity: .8; }
.cmdk-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- 17. Toasts --------------------------------------------------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast { --b: var(--accent); --b-rgb: var(--accent-rgb); position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 10px 12px 16px; border-radius: 14px; overflow: hidden; pointer-events: auto; font-size: 13.5px; color: var(--text); background: var(--glass-strong); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--hi), 0 18px 44px -14px rgba(0,0,0,.6), 0 0 30px -14px rgba(var(--b-rgb),.6); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--b); box-shadow: 0 0 10px rgba(var(--b-rgb),.8); }
.toast > .ico { color: var(--b); }
.toast > span { flex: 1; min-width: 0; line-height: 1.4; }
.toast-ok { --b: var(--ok); --b-rgb: var(--ok-rgb); }
.toast-warn { --b: var(--warn); --b-rgb: var(--warn-rgb); }
.toast-danger { --b: var(--danger); --b-rgb: var(--danger-rgb); }
.toast-x { flex: none; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 18px; line-height: 1; }
.toast-x:hover { background: var(--fill-2); color: var(--text); }

/* ---------- 18. Auth & error pages -------------------------------------- */
body.blank { overflow-x: clip; }
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(440px,.88fr); }
.auth-single { grid-template-columns: 1fr; }
.auth-hero { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(40px,6vw,96px); border-right: 1px solid var(--line); background: radial-gradient(70% 60% at 20% 20%, rgba(var(--accent-rgb),.1), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.auth-hero::after { content: ""; position: absolute; right: -18%; bottom: -22%; width: 70%; aspect-ratio: 1; pointer-events: none; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 9.5 16 4l10 5.5v13L16 28 6 22.5z' fill='none' stroke='%23c8f23c' stroke-opacity='.18' stroke-width='.25'/%3E%3Cpath d='M16 4v24M6 9.5l20 13M26 9.5l-20 13' stroke='%23c8f23c' stroke-opacity='.1' stroke-width='.15'/%3E%3C/svg%3E") center / contain no-repeat; animation: float 14s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-18px) rotate(4deg); } }
.auth-hero-inner { position: relative; z-index: 1; max-width: 580px; }
.brand-lg { padding: 0; }
.brand-lg .brand-mark { width: 52px; height: 52px; border-radius: 15px; }
.brand-lg .brand-mark svg { width: 30px; height: 30px; }
.brand-lg .brand-text b { font-size: 19px; }
.hero-title { margin: 44px 0 18px; font-size: clamp(42px,5.2vw,72px); font-weight: 680; line-height: 1.02; letter-spacing: -.045em; }
.hero-title em { font-style: normal; color: transparent; background: linear-gradient(95deg, var(--lime) 0%, #ecff9c 45%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 24px rgba(200,242,60,.25)); }
[data-theme="light"] .hero-title em { background-image: linear-gradient(95deg, #5f7f00, #7ea20b 45%, #c26a00); filter: none; }
.hero-sub { max-width: 470px; margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 38px 0 26px; }
.hero-metrics > div { padding: 14px 16px; border-radius: 16px; }
.hero-metrics b { display: block; font: 500 22px/1.2 var(--mono); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-metrics span { font-size: 12px; color: var(--muted); }
.hero-term { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 38px 18px 16px; border-radius: 16px; font: 13px/1.6 var(--mono); color: #c9c7bf; background: linear-gradient(180deg, rgba(22,24,27,.92), rgba(10,11,13,.95)); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 50px -24px rgba(0,0,0,.8); }
.hero-term::before { content: ""; position: absolute; left: 16px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #ff5d5d; box-shadow: 16px 0 0 #f5c451, 32px 0 0 #3ddc97; }
.hero-term code { background: none; padding: 0; font-size: inherit; color: inherit; white-space: pre; }
.hero-term code:last-child::after { content: "\258D"; margin-left: 6px; color: var(--lime); animation: blink 1.1s steps(1) infinite; }
.t-ok { color: #3ddc97; text-shadow: 0 0 8px rgba(61,220,151,.6); }
.t-dim { color: #6d6b64; }
@keyframes blink { 50% { opacity: 0; } }
.auth-panel { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px 32px 30px; border-radius: var(--r-xl); box-shadow: var(--hi), 0 40px 90px -40px rgba(0,0,0,.8); }
.auth-card-wide { max-width: 640px; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { margin: 10px 0 6px; font-size: 27px; letter-spacing: -.035em; }
.auth-head h1:first-child { margin-top: 0; }
.auth-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-card .btn-block { margin-top: 8px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); text-align: center; }
.auth-foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.auth-foot a:hover { color: var(--accent); }
.auth-copy { margin: 0; font: 11.5px var(--mono); color: var(--faint); text-align: center; }
.error-page { min-height: calc(100dvh - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
body.blank .error-page { min-height: 100vh; min-height: 100dvh; }
.error-code { font: 600 clamp(110px,22vw,220px)/.9 var(--mono); letter-spacing: -.07em; color: transparent; background: linear-gradient(180deg, var(--lime) 10%, rgba(255,171,61,.55) 60%, rgba(255,171,61,0) 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 40px rgba(200,242,60,.22)); }
[data-theme="light"] .error-code { background-image: linear-gradient(180deg, #5f7f00 10%, rgba(194,106,0,.6) 60%, rgba(194,106,0,.05)); filter: none; }
.error-page h1 { margin: 18px 0 8px; font-size: 26px; }
.error-page p { max-width: 440px; margin: 0; color: var(--muted); }
.error-actions { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 19. Drive ---------------------------------------------------- */
.drive-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 22px; align-items: start; }
.drive-side { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drive-side > .btn { margin-bottom: 12px; }
.drive-side a:not(.btn) { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background var(--t), color var(--t); }
.drive-side a:not(.btn) .ico { width: 17px; height: 17px; color: var(--muted); }
.drive-side a:not(.btn):hover { background: var(--fill-2); color: var(--text); }
.drive-side a.active { color: var(--text); background: rgba(var(--accent-rgb),.12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.2); }
.drive-side a.active .ico { color: var(--accent); }
.drive-quota { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--fill); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.drive-quota b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.drive-quota .progress { margin: 9px 0 7px; }
.drive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; }
.drive-item { display: flex; flex-direction: column; min-width: 0; padding: 9px 9px 11px; border-radius: 18px; color: var(--text); text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t); }
.drive-item:hover { transform: translateY(-3px); border-color: var(--line-3); box-shadow: var(--hi), 0 22px 40px -20px rgba(0,0,0,.75); }
.drive-item:focus-visible { outline-offset: 3px; }
.drive-thumb { position: relative; aspect-ratio: 1 / 1; margin-bottom: 10px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--fill); border: 1px solid var(--line); }
.drive-thumb img, .drive-thumb video { width: 100%; height: 100%; object-fit: cover; }
.drive-thumb > .ico { width: 40px; height: 40px; color: var(--muted); }
.drive-thumb .file-icon { width: 58px; height: 58px; border-radius: 17px; }
.drive-thumb .file-icon .ico { width: 28px; height: 28px; }
.drive-name { padding: 0 3px; font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-meta { padding: 0 3px; margin-top: 2px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.drive-item.selected { border-color: rgba(var(--accent-rgb),.7); background: linear-gradient(180deg, rgba(var(--accent-rgb),.12), rgba(var(--accent-rgb),.03)); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.5), 0 0 34px -8px rgba(var(--accent-rgb),.55); }
.drive-item.selected::after { content: ""; position: absolute; top: 15px; left: 15px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310150a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 0 0 2px var(--bg), 0 0 14px rgba(200,242,60,.7); }
.drive-item.dragover { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.5); }
.drive-item.is-cut { opacity: .45; }
/* list view: .drive-list > .drive-item | .drive-row */
.drive-list { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass-a), var(--glass-b)); }
.drive-row { display: flex; color: var(--text); text-decoration: none; }
.drive-list > .drive-item, .drive-list > .drive-row { flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.drive-list > .drive-item::before, .drive-list > .drive-item.selected::after { display: none; }
.drive-list > :last-child { border-bottom: 0; }
.drive-list > .drive-item:hover, .drive-list > .drive-row:hover { transform: none; box-shadow: none; background: rgba(var(--accent-rgb),.04); }
.drive-list > .drive-item.selected { background: rgba(var(--accent-rgb),.1); box-shadow: inset 3px 0 0 var(--accent); }
.drive-list .drive-thumb { flex: none; width: 40px; height: 40px; aspect-ratio: auto; margin: 0; border-radius: 11px; }
.drive-list .drive-thumb .file-icon { width: 40px; height: 40px; border: 0; border-radius: 11px; }
.drive-list .drive-thumb .file-icon .ico { width: 20px; height: 20px; }
.drive-list .drive-name { flex: 1; min-width: 0; }
.drive-list .drive-meta { flex: none; margin: 0; font: 12px var(--mono); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 20px; text-align: center; border-radius: 20px; color: var(--text-2); font-size: 13.5px; border: 1.5px dashed rgba(var(--accent-rgb),.4); background: rgba(var(--accent-rgb),.03); transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.dropzone > .ico { width: 32px; height: 32px; color: var(--accent); }
.dropzone b { color: var(--text); }
.dropzone.dragover { border-color: var(--accent); border-style: solid; background: rgba(var(--accent-rgb),.1); box-shadow: inset 0 0 0 4px rgba(var(--accent-rgb),.08), 0 0 44px -12px rgba(var(--accent-rgb),.6); }
.dropzone-overlay { position: fixed; inset: 12px; z-index: 150; display: grid; place-items: center; text-align: center; border-radius: 28px; border: 2px dashed var(--accent); background: rgba(var(--bg-rgb),.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 20px; font-weight: 600; color: var(--text); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s var(--ease), visibility .18s; }
.dropzone-overlay .ico { display: block; width: 48px; height: 48px; margin: 0 auto 12px; color: var(--accent); filter: drop-shadow(0 0 14px rgba(var(--accent-rgb),.7)); }
.dropzone-overlay.dragover, .dropzone-overlay.active, .dropzone-overlay.show { opacity: 1; visibility: visible; }
.upload-panel { position: fixed; right: 20px; bottom: 20px; z-index: 120; width: min(390px, calc(100vw - 32px)); overflow: hidden; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--hi), var(--shadow-lg); animation: modal-in .24s var(--ease); }
.upload-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.upload-head > :first-child { flex: 1; min-width: 0; }
.upload-list { max-height: 300px; overflow-y: auto; }
.upload-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.upload-row:last-child { border-bottom: 0; }
.upload-row > :first-child, .upload-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row .status { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.upload-row .progress { grid-column: 1 / -1; height: 4px; }
.upload-row.done .status { color: var(--ok); }
.upload-row.done .progress > span { background: var(--ok); box-shadow: 0 0 10px rgba(var(--ok-rgb),.5); }
.upload-row.error .status { color: var(--danger); }
.upload-row.error .progress > span { background: var(--danger); box-shadow: none; }
.breadcrumb-path { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; font-size: 14px; }
.breadcrumb-path a, .breadcrumb-path span { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 5px 8px; border-radius: 9px; color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-path a:hover { background: var(--fill-2); color: var(--text); }
.breadcrumb-path a.dragover { background: rgba(var(--accent-rgb),.15); color: var(--accent); }
.breadcrumb-path > :last-child { color: var(--text); font-weight: 620; }
.breadcrumb-path .sep, .breadcrumb-path > .ico { width: 14px; height: 14px; padding: 0; color: var(--faint); }
.file-icon { --fi: var(--text-2); --fi-rgb: var(--info-rgb); flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--fi); background: rgba(var(--fi-rgb),.11); border: 1px solid rgba(var(--fi-rgb),.22); }
.file-icon .ico { width: 20px; height: 20px; }
.fi-image { --fi: var(--accent-2); --fi-rgb: var(--a2-rgb); }
.fi-pdf { --fi: var(--danger); --fi-rgb: var(--danger-rgb); }
.fi-doc { --fi: var(--warn); --fi-rgb: var(--warn-rgb); }
.fi-sheet { --fi: var(--ok); --fi-rgb: var(--ok-rgb); }
.fi-video { --fi: var(--rose); --fi-rgb: var(--rose-rgb); }
.fi-archive { --fi: var(--muted); --fi-rgb: var(--info-rgb); }
.fi-folder { --fi: var(--accent); --fi-rgb: var(--accent-rgb); box-shadow: 0 0 22px -8px rgba(var(--accent-rgb),.55); }
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 58px; height: 58px; padding: 0; display: grid; place-items: center; border-radius: 19px; color: var(--ink); border: 1px solid rgba(0,0,0,.18); background: linear-gradient(180deg, var(--lime-hi), var(--lime) 50%, var(--lime-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 14px 34px -8px rgba(200,242,60,.65), 0 4px 10px rgba(0,0,0,.35); transition: transform var(--t), box-shadow var(--t); }
.fab .ico { width: 24px; height: 24px; }
.fab:hover { transform: translateY(-2px) scale(1.03); }
.fab:active { transform: scale(.96); }

/* ---------- 20. Tickets / kanban ---------------------------------------- */
.kanban { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.kanban-col { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; background: var(--fill); border: 1px solid var(--line); transition: border-color var(--t), background var(--t); }
.kanban-col > h4, .kanban-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px 6px; font-size: 13px; font-weight: 620; }
.kanban-count { margin-left: auto; padding: 2px 8px; border-radius: 99px; font: 500 11.5px var(--mono); color: var(--muted); background: var(--fill-2); }
.kanban-col.dragover { border-color: rgba(var(--accent-rgb),.5); border-style: dashed; background: rgba(var(--accent-rgb),.04); }
.kanban-card { display: block; padding: 12px 14px; border-radius: 14px; color: var(--text); text-decoration: none; cursor: grab; background: linear-gradient(180deg, var(--glass-a), var(--glass-b)); border: 1px solid var(--line-2); box-shadow: var(--hi), 0 6px 16px -10px rgba(0,0,0,.6); transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.kanban-card:hover { transform: translateY(-2px); border-color: var(--line-3); }
.kanban-card.dragging { opacity: .5; cursor: grabbing; }
.kanban-card b { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.kanban-card small { color: var(--muted); }
.priority-low, .priority-normal, .priority-high, .priority-urgent { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.priority-low::before, .priority-normal::before, .priority-high::before, .priority-urgent::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--p); box-shadow: 0 0 8px var(--p); }
.priority-low { --p: var(--faint); }
.priority-normal { --p: var(--warn); }
.priority-high { --p: var(--accent-2); }
.priority-urgent { --p: var(--danger); }
.priority-urgent::before { animation: blink 1.2s ease-in-out infinite; }
.status-open, .status-in_progress, .status-waiting, .status-resolved, .status-closed { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; white-space: nowrap; vertical-align: middle; font-size: 11.5px; font-weight: 600; line-height: 1; color: var(--s); background: rgba(var(--s-rgb),.1); border: 1px solid rgba(var(--s-rgb),.24); }
.status-open::before, .status-in_progress::before, .status-waiting::before, .status-resolved::before, .status-closed::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open { --s: var(--accent); --s-rgb: var(--accent-rgb); }
.status-in_progress { --s: var(--accent-2); --s-rgb: var(--a2-rgb); }
.status-waiting { --s: var(--warn); --s-rgb: var(--warn-rgb); }
.status-resolved { --s: var(--ok); --s-rgb: var(--ok-rgb); }
.status-closed { --s: var(--muted); --s-rgb: var(--info-rgb); }

/* ---------- 20b. Ops modules: kanban v2, toner, dashboard, users/roles -- */
/* Kanban: .kanban > section.kanban-col[data-status] > header.kanban-col-head + .kanban-list > a.kanban-card */
.kanban-col { --kc: var(--muted); }
.kanban-col[data-status="open"] { --kc: var(--accent); }
.kanban-col[data-status="in_progress"] { --kc: var(--accent-2); }
.kanban-col[data-status="waiting"] { --kc: var(--warn); }
.kanban-col[data-status="resolved"] { --kc: var(--ok); }
.kanban-col-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px 6px; font-size: 13px; font-weight: 620; }
.kanban-col-head::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--kc); box-shadow: 0 0 8px var(--kc); }
.kanban-col-head > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-list { display: flex; flex-direction: column; gap: 10px; min-height: 64px; }
.kanban-col.drop-over { border-color: rgba(var(--accent-rgb),.55); border-style: dashed; background: rgba(var(--accent-rgb),.05); box-shadow: 0 0 30px -12px rgba(var(--accent-rgb),.5); }
.kanban-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font: 11.5px var(--mono); color: var(--muted); }
.kanban-card-title { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.kanban-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.kanban-card-foot > .avatar { margin-left: auto; }
.kanban-empty { padding: 18px 12px; text-align: center; font-size: 12.5px; color: var(--faint); border: 1px dashed var(--line-2); border-radius: 12px; }
.prio-dot { --p: var(--muted); display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; background: var(--p); box-shadow: 0 0 8px var(--p); }
.prio-low { --p: var(--faint); }
.prio-normal { --p: var(--warn); }
.prio-high { --p: var(--accent-2); }
.prio-urgent { --p: var(--danger); }
.prio-dot.prio-urgent { animation: blink 1.2s ease-in-out infinite; }

/* Toner (rings stay neutral grey for every letter: no cyan/magenta) */
.ink-ring { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; border: 3px solid var(--line-3); background: var(--fill); box-shadow: var(--hi), inset 0 0 0 1px var(--line); font: 600 13px/1 var(--mono); color: var(--text-2); }
.toner-stock { font: 500 28px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.toner-stock.is-warn, .toner-stock.warn { color: var(--accent-2); }
.toner-stock.is-low, .toner-stock.low, .toner-stock.danger { color: var(--danger); }

/* Chips */
.chip-warn { color: var(--accent-2); background: rgba(var(--a2-rgb),.1); border-color: rgba(var(--a2-rgb),.28); }
.chip-ok { color: var(--ok); background: rgba(var(--ok-rgb),.1); border-color: rgba(var(--ok-rgb),.28); }
.chip-danger { color: var(--danger); background: rgba(var(--danger-rgb),.1); border-color: rgba(var(--danger-rgb),.28); }
button.chip { cursor: pointer; }

/* Public portal (reuses .auth-*) */
body.page-portal .auth-card { max-width: 580px; }
body.page-portal .auth-panel { padding-top: 48px; padding-bottom: 48px; }

/* Dashboard hero */
.hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }
.hero-main > :first-child { min-width: 0; }
.hero-greet { margin: 0 0 6px; font-size: clamp(26px,3vw,40px); font-weight: 680; line-height: 1.08; letter-spacing: -.04em; }
.hero-greet em { font-style: normal; color: transparent; background: linear-gradient(95deg, var(--lime), #ecff9c 50%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .hero-greet em { background-image: linear-gradient(95deg, #5f7f00, #7ea20b 50%, #c26a00); }
.hero-date { font: 12.5px var(--mono); color: var(--muted); letter-spacing: .02em; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Telemetry card: chart | gauges | metric-list */
.telemetry-body { display: grid; grid-template-columns: minmax(0,1.6fr) auto minmax(220px,.9fr); align-items: center; gap: 24px; padding: 22px; }
.telemetry-chart { position: relative; min-width: 0; }
.telemetry-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.telemetry-legend span { display: inline-flex; align-items: center; }
i.lg { display: inline-block; flex: none; width: 10px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: var(--accent); }
i.lg-accent { background: var(--accent); box-shadow: 0 0 6px rgba(var(--accent-rgb),.6); }
i.lg-amber { background: var(--accent-2); box-shadow: 0 0 6px rgba(var(--a2-rgb),.6); }
i.lg-mint { background: var(--ok); box-shadow: 0 0 6px rgba(var(--ok-rgb),.6); }
.telemetry-gauges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.telemetry-gauges .gauge { --size: 104px; }
.chart-svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart-svg .area { stroke: none; fill: rgba(var(--accent-rgb),.12); fill: url(#gsb-area) rgba(var(--accent-rgb),.12); }
.chart-svg .line { fill: none; stroke: var(--accent); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb),.5)); }
.chart-svg .line.alt, .chart-svg .line.amber { stroke: var(--accent-2); filter: drop-shadow(0 0 6px rgba(var(--a2-rgb),.45)); }
.chart-svg .line.mint { stroke: var(--ok); filter: drop-shadow(0 0 6px rgba(var(--ok-rgb),.45)); }
.chart-svg .grid-line { stroke: var(--line); stroke-width: 1px; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-svg .axis-label { font: 10px var(--mono); fill: var(--muted); }
.chart-svg .stop-a { stop-color: var(--accent); stop-opacity: .34; }
.chart-svg .stop-b { stop-color: var(--accent); stop-opacity: 0; }
.end-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2px; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb),.9)); }
.chart-tip { position: absolute; left: 0; top: 0; z-index: 5; padding: 7px 10px; border-radius: 10px; pointer-events: none; white-space: nowrap; font: 12px/1.35 var(--mono); color: var(--text); background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity .15s var(--ease); }
.chart-tip.show, .chart-tip.in, .chart-tip.visible { opacity: 1; }
.chart-tip b { color: var(--accent); font-weight: 600; }
.chart-tip small { display: block; color: var(--muted); font-size: 11px; }
.chart-empty { display: grid; place-items: center; height: 220px; text-align: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }

/* Feed & compact timeline */
.feed { list-style: none; margin: 0; padding: 6px 8px; }
.feed > li > a, .feed-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); text-decoration: none; transition: background var(--t); }
.feed > li > a:hover { background: var(--fill-2); }
.feed-main { flex: 1; min-width: 0; }
.feed-main b, .feed-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-main b { font-size: 13.5px; font-weight: 550; color: var(--text); }
.feed-main small { font-size: 12px; color: var(--muted); }
.timeline-compact > li { padding-bottom: 12px; }
.timeline-compact b { font-size: 13px; }
.timeline-compact small { font-size: 11.5px; }
.timeline-compact .tl-dot { width: 9px; height: 9px; margin-top: 5px; }
.timeline-compact > li:not(:last-child)::before { left: 4px; top: 16px; }

/* Misc */
.danger-zone { border-color: rgba(var(--danger-rgb),.35); background: radial-gradient(100% 80% at 100% 0%, rgba(var(--danger-rgb),.08), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); }
.danger-zone .card-title .ico { color: var(--danger); }
.wrap { flex-wrap: wrap; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; margin: 0; font-size: 13.5px; }
.kv-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv-grid dt { font-size: 12px; color: var(--muted); }
.kv-grid dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* Permission overrides */
.perm-override { display: flex; flex-direction: column; gap: 14px; }
.perm-group { overflow: hidden; border-radius: 16px; background: var(--fill); border: 1px solid var(--line); }
.perm-group-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; font-weight: 620; background: var(--fill-2); border-bottom: 1px solid var(--line); }
.perm-group-head .ico { color: var(--accent); }
.perm-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); transition: background var(--t); }
.perm-row:last-child { border-bottom: 0; }
.perm-row:hover { background: var(--fill); }
.perm-row.role-has { background: rgba(var(--accent-rgb),.035); }
.perm-label { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.perm-label span { font-size: 13.5px; color: var(--text); }
.perm-label code { padding: 0; background: none; font-size: 11px; color: var(--muted); }
.role-state { font: 11.5px var(--mono); color: var(--faint); white-space: nowrap; }
.perm-row.role-has .role-state, .role-state.on { color: var(--ok); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--input); border: 1px solid var(--line-2); box-shadow: var(--input-shadow); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 550; color: var(--muted); white-space: nowrap; transition: background var(--t), color var(--t), box-shadow var(--t); }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { color: var(--text); background: var(--fill-3); box-shadow: var(--hi), 0 1px 3px rgba(0,0,0,.25); }
.seg input:focus-visible + span { outline: 2px solid rgba(var(--accent-rgb),.85); outline-offset: 1px; }
.seg-allow input:checked + span, .seg input.seg-allow:checked + span { color: var(--ok); background: rgba(var(--ok-rgb),.14); box-shadow: inset 0 0 0 1px rgba(var(--ok-rgb),.35); }
.seg-deny input:checked + span, .seg input.seg-deny:checked + span { color: var(--danger); background: rgba(var(--danger-rgb),.14); box-shadow: inset 0 0 0 1px rgba(var(--danger-rgb),.35); }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }

/* Roles */
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.role-card { --t1: var(--muted); --t2: var(--faint); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow: hidden; border-radius: var(--r-lg); background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--t2) 14%, transparent), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); border: 1px solid var(--line); box-shadow: var(--hi), var(--shadow); transition: transform var(--t), border-color var(--t); }
.role-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--t1), var(--t2), transparent); opacity: .8; }
.role-card:hover { transform: translateY(-2px); border-color: var(--line-3); }
.role-card-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.role-card-top h3 { margin: 0; font-size: 15px; }
.role-card-top > div { min-width: 0; }
.role-swatch { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #12140c; background: linear-gradient(140deg, var(--t1), var(--t2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 20px -8px var(--t2); }
.role-swatch .ico { width: 19px; height: 19px; }
.role-card-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.role-card-meta b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.role-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.perm-matrix th:first-child, .perm-matrix td:first-child { position: sticky; left: 0; z-index: 3; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
.perm-matrix thead th:first-child { z-index: 4; background: var(--th-bg); }
.perm-matrix th:not(:first-child), .perm-matrix td:not(:first-child) { text-align: center; }
.perm-matrix tr.matrix-group td { padding-top: 9px; padding-bottom: 9px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.perm-matrix tr.matrix-group:hover td { background: var(--panel-2); }
.role-th { white-space: nowrap; }
.role-th::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: linear-gradient(140deg, var(--t1, var(--muted)), var(--t2, var(--faint))); }
.check.check-only { gap: 0; vertical-align: middle; }
.check.is-locked, .check input:disabled { cursor: not-allowed; }
.check.is-locked input, .check input:disabled { opacity: .5; }
.check.is-locked input:checked { background-color: var(--muted); border-color: var(--muted); box-shadow: none; }

@media (max-width: 1280px) {
  .telemetry-body { grid-template-columns: minmax(0,1fr) auto; }
  .telemetry-body > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .telemetry-body { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 18px; }
  .telemetry-gauges .gauge { --size: 92px; }
  .kv-grid { grid-template-columns: minmax(0,1fr); }
  .hero-actions { width: 100%; }
  .hero-actions > .btn { flex: 1 1 auto; }
  .seg { width: 100%; }
  .seg label { flex: 1; }
  .seg span { width: 100%; justify-content: center; }
  .role-cards { grid-template-columns: minmax(0,1fr); }
}

/* ---------- 21. Utilities ----------------------------------------------- */
.muted { color: var(--muted) !important; }
.text-ok { color: var(--ok) !important; }
.text-warn { color: var(--accent-2) !important; }
.text-danger { color: var(--danger) !important; }
.text-accent { color: var(--accent) !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.small { font-size: 12.5px; }
.center { text-align: center; }
.right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.w-100 { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.only-mobile, .print-only { display: none !important; }

/* ---------- 22. Responsive ---------------------------------------------- */
@media (max-width: 1280px) {
  .grid.g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-105%); background: var(--glass-strong); padding-bottom: calc(14px + env(safe-area-inset-bottom)); transition: transform .3s var(--ease), box-shadow .3s; }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { transform: none; box-shadow: 30px 0 80px -20px rgba(0,0,0,.7); }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(5,6,7,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .topbar [data-sidebar-toggle] { display: inline-grid !important; }
  .grid.g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.g-3 > .span-2, .grid.g-3 > .span-3 { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .drive-layout { grid-template-columns: 200px minmax(0,1fr); }
}
@media (max-width: 768px) {
  :root { --topbar-h: 58px; }
  body { font-size: 14px; }
  .only-mobile { display: revert !important; }
  .btn-icon.only-mobile { display: inline-grid !important; }
  .hide-mobile { display: none !important; }
  .topbar { gap: 8px; height: calc(var(--topbar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; }
  .crumbs > :not(:last-child) { display: none; }
  .crumbs > :last-child { font-size: 15px; font-weight: 620; }
  .cmdk-trigger { flex: none; width: 38px; padding: 0; justify-content: center; }
  .cmdk-trigger span, .cmdk-trigger kbd { display: none; }
  .top-actions { gap: 6px; }
  .user-chip { height: 40px; padding: 3px; }
  .user-meta, .user-chip > .ico { display: none; }
  .dropdown-wide { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 6px); width: auto; }
  .content { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .content > * + * { margin-top: 16px; }
  .page-head { align-items: flex-start; }
  .page-head-main { gap: 12px; }
  .page-icon { width: 42px; height: 42px; border-radius: 13px; }
  .page-actions { width: 100%; }
  .page-actions > .btn { flex: 1 1 auto; }
  .grid, .stack { gap: 14px; }
  .grid.g-2, .grid.g-3, .grid.g-4, .form-grid, .form-grid-3 { grid-template-columns: minmax(0,1fr); }
  .span-2, .span-3, .grid.g-3 > .span-2, .grid.g-3 > .span-3 { grid-column: auto; }
  .card-head { padding: 14px 16px; min-height: 52px; }
  .card-body { padding: 16px; }
  .card-foot { padding: 12px 16px; }
  .card > .timeline, .card > .kv { padding: 16px; }
  .table th:first-child, .table td:first-child { padding-left: 16px; }
  .table th:last-child, .table td:last-child { padding-right: 16px; }
  .toolbar > * { flex: 1 1 140px; }
  .toolbar .input, .toolbar .select { min-width: 0; width: 100%; }
  .toolbar .search { flex-basis: 100%; max-width: none; }
  .input, .select, .textarea, .cmdk-search input { font-size: 16px; } /* iOS zoom guard */
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--bar-bg); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.5); }
  .tab-item { position: relative; min-width: 0; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 14px; background: none; color: var(--muted); font-size: 10.5px; font-weight: 550; text-decoration: none; transition: color var(--t), background var(--t); }
  .tab-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab-item .ico { width: 21px; height: 21px; }
  .tab-item:active { background: var(--fill-2); }
  .tab-item.active { color: var(--accent); }
  .tab-item.active .ico { filter: drop-shadow(0 0 8px rgba(var(--accent-rgb),.7)); }
  .tab-item.active::before { content: ""; position: absolute; top: -7px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb),.9); }
  .toasts { top: calc(12px + env(safe-area-inset-top)); bottom: auto; left: 16px; right: 16px; width: auto; align-items: stretch; flex-direction: column-reverse; }
  .toast { transform: translateY(-14px) scale(.97); }
  .toast.in { transform: none; }
  .fab { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .upload-panel { left: 16px; right: 16px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .drive-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .drive-side { position: static; flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .drive-side::-webkit-scrollbar { display: none; }
  .drive-side a:not(.btn) { flex: none; border: 1px solid var(--line); background: var(--fill); }
  .drive-side > .btn { flex: none; margin: 0; }
  .drive-quota { flex: none; min-width: 200px; margin: 0; }
  .drive-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
  .breadcrumb-path a, .breadcrumb-path span { max-width: 140px; }
  .kanban-col { flex-basis: 82vw; }
  .hero-metrics { grid-template-columns: 1fr; }
  .auth-panel { justify-content: flex-start; padding: max(10vh, 32px) 16px calc(24px + env(safe-area-inset-bottom)); }
  .auth-card { padding: 26px 20px 22px; border-radius: 22px; }
  .auth-head h1 { font-size: 24px; }
}
@media (max-width: 640px) {
  dialog.modal { width: 100% !important; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  dialog.modal[open] { animation: sheet-in .3s var(--ease); }
  dialog.modal:not(.cmdk)::before { content: ""; flex: none; align-self: center; width: 40px; height: 4px; margin: 8px 0 -2px; border-radius: 4px; background: var(--line-3); }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal-foot > .btn { flex: 1 1 0; }
  dialog.modal.cmdk { width: calc(100vw - 20px) !important; max-height: 80dvh; margin: calc(10px + env(safe-area-inset-top)) auto auto; border-radius: 18px; }
  dialog.modal.cmdk[open] { animation: modal-in .22s var(--ease); }
  .stat { padding: 16px; }
  .kv dd { text-align: left; }
}
@media (min-width: 1600px) {
  .content { padding-top: 34px; }
  .grid { gap: 22px; }
}

/* ---------- 23. Motion & print ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .orb, .hero-panel::after, .auth-hero::after { animation: none !important; }
}
@media print {
  .sidebar, .sidebar-scrim, .topbar, .tabbar, .ambient, .toasts, .fab, .upload-panel, .dropzone-overlay, .page-actions, .no-print { display: none !important; }
  .print-only { display: block !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 12px; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; animation: none; }
  .card, .stat, .hero-panel, .drive-item, .kanban-card, .drive-list { background: #fff !important; color: #000; box-shadow: none !important; border: 1px solid #ccc !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; break-inside: avoid; }
  .card::before, .stat::before, .stat::after, .hero-panel::before, .hero-panel::after { display: none !important; }
  .table th { position: static; background: #f3f3f3 !important; color: #000; }
  .table td { color: #000; border-color: #ddd; }
  .muted, .page-sub, .stat-label { color: #555 !important; }
  .stat-value, .page-title { color: #000 !important; }
  a { color: #000 !important; }
  .badge, [class^="status-"] { color: #000 !important; background: none !important; border: 1px solid #999 !important; }
}

/* =====================================================================
   24. Modül ekleri — dashboard telemetri, akış listeleri, yetki ekranları, kanban
   ===================================================================== */
.hero-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-main { min-width: 0; }
.hero-greet { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; }
.hero-greet em, .hero-title em { font-style: normal; background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-date { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-warn { color: var(--accent-2); background: rgba(var(--a2-rgb), .1); border-color: rgba(var(--a2-rgb), .3); }
.page-dashboard .grid { margin-bottom: 20px; }
.page-dashboard .telemetry { margin-bottom: 20px; }

.telemetry-body { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(220px, .9fr); gap: 26px; align-items: center; }
.telemetry-chart { min-width: 0; }
.telemetry-chart .chart { height: 200px; }
.telemetry-gauges { display: flex; gap: 6px; }
.telemetry .gauge { --size: 128px; }
.telemetry .gauge svg { transform: none; }
.telemetry-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.telemetry-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
.lg-accent { background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), .7); }
.lg-amber { background: var(--accent-2); }
.lg-mint { background: var(--ok); }
.chart-svg { display: block; }
.chart .end-dot { filter: drop-shadow(0 0 6px currentColor); }
.chart-tip { position: absolute; top: 6px; z-index: 3; min-width: 120px; padding: 8px 10px; border-radius: 10px; pointer-events: none; opacity: 0; transition: opacity .15s; background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px; }
.chart-tip b { font-family: var(--mono); }
.chart-tip span { display: flex; align-items: center; gap: 6px; color: var(--text-2); margin-top: 3px; }
.chart-tip i { width: 8px; height: 8px; border-radius: 50%; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
@media (max-width: 1180px) {
  .telemetry-body { grid-template-columns: 1fr; }
  .telemetry-gauges { justify-content: space-around; }
}
@media (max-width: 640px) {
  .telemetry .gauge { --size: 98px; }
  .telemetry .gauge-label { font-size: 9.5px; letter-spacing: .06em; }
}

.feed { list-style: none; margin: 0; padding: 6px 10px 10px; }
.feed > li > a, .feed .feed-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: inherit; text-decoration: none; transition: background var(--t); }
.feed > li > a:hover { background: var(--fill-2); }
.feed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-main b { font-size: 13.5px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-main small { color: var(--muted); font-size: 12px; }
.timeline-compact > li { padding-bottom: 12px; }
.danger-zone { border-color: rgba(var(--danger-rgb), .25); }
.danger-zone .card-title .ico { color: var(--danger); }
.row.wrap { flex-wrap: wrap; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }

/* Kullanıcıya özel yetki ekranı */
.perm-override { display: grid; gap: 14px; }
.perm-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.perm-group-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--fill); border-bottom: 1px solid var(--line); font-size: 13px; }
.perm-group-head .ico { color: var(--accent); width: 16px; height: 16px; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.perm-row:last-child { border-bottom: 0; }
.perm-label { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.perm-label span { font-size: 13.5px; }
.perm-label code { font-size: 11px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--input); border: 1px solid var(--line-2); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 550; color: var(--muted); transition: background var(--t), color var(--t); white-space: nowrap; }
.seg input:checked + .seg-inherit { background: var(--fill-3); color: var(--text); }
.seg input:checked + .seg-allow { background: rgba(var(--ok-rgb), .16); color: var(--ok); }
.seg input:checked + .seg-deny { background: rgba(var(--danger-rgb), .16); color: var(--danger); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.role-state { font-style: normal; font-family: var(--mono); opacity: .7; }
.perm-row.role-has .role-state { color: var(--ok); opacity: 1; }

/* Roller */
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 20px; }
.role-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.role-card p { margin: 0; font-size: 13px; }
.role-card-top { display: flex; align-items: center; gap: 12px; }
.role-card-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.role-card-top small { font-size: 11px; }
.role-swatch { width: 12px; height: 34px; border-radius: 6px; background: var(--tone, var(--accent)); box-shadow: 0 0 16px -2px var(--tone, var(--accent)); }
.role-card-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; }
.role-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.role-card-actions { display: flex; gap: 6px; margin-top: auto; }
.tone-lime { --tone: var(--accent); }
.tone-amber { --tone: var(--accent-2); }
.tone-mint { --tone: var(--ok); }
.tone-coral { --tone: var(--danger); }
.tone-sand { --tone: var(--warn); }
.tone-rose { --tone: var(--rose); }
.role-th { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.role-th::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--accent)); }
.perm-matrix td:first-child, .perm-matrix th:first-child { position: sticky; left: 0; z-index: 1; background: var(--th-bg); min-width: 230px; }
.perm-matrix tr.matrix-group td { background: var(--fill-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.perm-matrix tr.matrix-group .ico { width: 14px; height: 14px; color: var(--accent); vertical-align: -2px; }
.check-only { gap: 0; }
.check.is-locked { opacity: .55; cursor: not-allowed; }

/* Talep öncelik noktaları */
.prio-dot, .dot.priority-low, .dot.priority-normal, .dot.priority-high, .dot.priority-urgent { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.prio-low, .dot.priority-low { background: var(--faint); }
.prio-normal, .dot.priority-normal { background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb), .6); }
.prio-high, .dot.priority-high { background: var(--accent-2); box-shadow: 0 0 8px rgba(var(--a2-rgb), .7); }
.prio-urgent, .dot.priority-urgent { background: var(--danger); box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .2), 0 0 10px rgba(var(--danger-rgb), .8); }

/* Kanban (talep panosu) */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.kanban-col { scroll-snap-align: start; display: flex; flex-direction: column; min-height: 260px; border-radius: var(--r-lg); background: var(--fill); border: 1px dashed var(--line-2); transition: border-color var(--t), background var(--t); }
.kanban-col.drop-over, .kanban-col.dragover { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .05); }
.kanban-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.kanban-count { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); padding: 2px 8px; border-radius: 99px; background: var(--fill-2); }
.kanban-list { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.kanban-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; color: inherit; text-decoration: none; background: linear-gradient(180deg, var(--glass-a), var(--glass-b)); border: 1px solid var(--line); box-shadow: var(--hi), var(--shadow); cursor: grab; transition: transform var(--t), border-color var(--t); }
.kanban-card:hover { transform: translateY(-2px); border-color: var(--line-3); }
.kanban-card.dragging { opacity: .5; transform: rotate(2deg); }
.kanban-card-top, .kanban-card-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.kanban-card-foot { justify-content: space-between; }
.kanban-card-title { font-size: 14px; font-weight: 560; line-height: 1.35; overflow-wrap: anywhere; }
.kanban-empty { padding: 20px 10px; text-align: center; color: var(--faint); font-size: 12.5px; }

/* Toner */
.ink-ring { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-3); font: 600 11px var(--mono); color: var(--text-2); background: var(--fill); }
.toner-stock { font: 500 34px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* ===== 25. Drive, paylaşım & portal ===== */
/* App shell: .drive.drive-app > aside.drive-side + section.drive-main (+ fixed: fab, overlay, upload panel) */
.drive { position: relative; min-width: 0; }
.drive-app { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 22px; align-items: start; }
.drive-nav { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drive-nav-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-nav-item.active { font-weight: 600; }
.drive-admin { gap: 8px; margin: 12px 0 0; padding: 12px; border-radius: 16px; background: var(--fill); border: 1px solid var(--line); }
.drive-admin > span:first-child { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drive-admin > span .ico { color: var(--accent); }
.drive-admin .select { height: 38px; font-size: 13px; border-radius: 10px; }

/* Main column: head + toolbar share one row when they fit; everything else is full width */
.drive-main { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 16px 14px; min-width: 0; }
.drive-main > * { flex: 1 1 100%; min-width: 0; }
.drive-main > .drive-head { flex: 0 1 auto; max-width: 100%; }
.drive-main > .drive-toolbar { flex: 1 1 540px; }
.drive-main > .alert { margin: 0; }
.drive-head { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.drive-head .breadcrumb-path { flex: 0 1 auto; min-width: 0; font-size: 15px; }
.drive-head .chip { flex: none; }
.breadcrumb-path b { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-path .crumb-sep { display: inline-flex; padding: 0; max-width: none; color: var(--faint); }
.breadcrumb-path .crumb-sep .ico { width: 14px; height: 14px; }

.drive-toolbar { gap: 8px; }
.drive-toolbar .input, .drive-toolbar .select { height: 40px; }
.drive-toolbar > .drive-search { flex: 1 1 200px; max-width: 420px; }
.drive-sort { flex: none; margin: 0; }
.drive-sort .select { min-width: 190px; }
.drive-view-toggle { flex: none; }
.drive-view-toggle > .btn-icon { width: 40px; height: 40px; color: var(--muted); }
.drive-view-toggle > .btn-icon.active { color: var(--accent); }
.drive-upload-menu .dropdown-menu { left: 0; right: auto; transform-origin: top left; }
.drive-upload-menu .dropdown-menu > label { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background var(--t), color var(--t); }
.drive-upload-menu .dropdown-menu > label:hover { background: var(--fill-2); color: var(--text); }
.drive-upload-menu .dropdown-menu > label .ico { width: 16px; height: 16px; color: var(--muted); }
.drive-upload-menu .dropdown-menu > label:hover .ico { color: var(--accent); }
.drive-scope { gap: 8px; }

/* Selection bar (sticky under the topbar) */
.bulk-bar { position: sticky; top: calc(var(--topbar-h) + 12px); z-index: 25; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 16px; background: var(--glass-strong); border: 1px solid rgba(var(--accent-rgb),.32); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: var(--hi), var(--shadow), 0 0 32px -14px rgba(var(--accent-rgb),.6); animation: modal-in .2s var(--ease); }
.bulk-bar > b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.bulk-bar [data-bulk-count] { font-family: var(--mono); color: var(--accent); }
.bulk-bar > .btn-icon { width: 32px; height: 32px; border-radius: 10px; }
.bulk-bar > .btn-icon .ico { width: 16px; height: 16px; }

.drive-body { min-width: 0; min-height: 200px; }
.drive-body > .empty { border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: var(--fill); }

/* Grid items: check (top-left), more (top-right), thumb, info */
.drive-check { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.drive-check input { -webkit-appearance: none; appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 7px; cursor: pointer; border: 1.5px solid var(--line-3); background: var(--glass-strong) center / 12px no-repeat; box-shadow: var(--hi), 0 2px 6px rgba(0,0,0,.25); transition: background-color var(--t), border-color var(--t), box-shadow var(--t); }
.drive-check input:hover { border-color: rgba(var(--accent-rgb),.7); }
.drive-check input:checked, .drive-check input:indeterminate { border-color: var(--lime); background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310150a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); box-shadow: 0 0 12px -2px rgba(200,242,60,.65); }
.drive-check input:indeterminate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310150a' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.drive-check input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.25); }
.drive-more { z-index: 3; width: 32px; height: 32px; border-radius: 10px; }
.drive-more .ico { width: 16px; height: 16px; }
.drive-more::after { content: ""; position: absolute; inset: -6px; } /* 44px hit area */
.drive-grid .drive-check { position: absolute; top: 15px; left: 15px; z-index: 3; }
.drive-grid .drive-check::after { content: ""; position: absolute; inset: -10px; }
.drive-grid .drive-more { position: absolute; top: 13px; right: 13px; background: var(--glass-strong); border-color: var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.drive-grid .drive-item.selected::after { display: none; } /* the checkbox shows the state */
.drive-grid .drive-check, .drive-grid .drive-more { transition: opacity var(--t), transform var(--t); }
@media (hover: hover) {
  .drive-grid .drive-item:not(:hover):not(:focus-within):not(.selected) .drive-more { opacity: 0; }
  .drive-app:not(.has-selection) .drive-grid .drive-item:not(:hover):not(:focus-within) .drive-check { opacity: 0; }
}
@media (hover: none) {
  .drive-app:not(.has-selection) .drive-grid .drive-check { visibility: hidden; }
  .drive-item:hover { transform: none; }
}
.drive-thumb .drive-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drive-thumb.has-thumb { background: var(--panel-2); }
.drive-item.is-folder .drive-thumb { background: radial-gradient(80% 80% at 50% 30%, rgba(var(--accent-rgb),.08), transparent 70%), var(--fill); }
.drive-item.is-trashed .drive-thumb { filter: grayscale(1); opacity: .7; }
.drive-info { min-width: 0; }
.drive-info .drive-meta { display: flex; align-items: center; gap: 4px; }
.drive-info .drive-meta > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.drive-badge { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: var(--muted); background: var(--fill-2); border: 1px solid var(--line); vertical-align: middle; }
.drive-badge .ico { width: 11px; height: 11px; }
.drive-badge-star { color: var(--accent-2); background: rgba(var(--a2-rgb),.12); border-color: rgba(var(--a2-rgb),.28); }
.drive-badge-star .ico { fill: currentColor; }
.file-icon-sm { width: 34px; height: 34px; border-radius: 10px; }
.file-icon-sm .ico { width: 17px; height: 17px; }
.fi-audio { --fi: var(--rose); --fi-rgb: var(--rose-rgb); }
.fi-slide { --fi: var(--accent-2); --fi-rgb: var(--a2-rgb); }
.fi-code, .fi-text { --fi: var(--ok); --fi-rgb: var(--ok-rgb); }

/* List view: .drive-list.table-wrap > table > tr.drive-item (reset the grid-card styles on <tr>) */
.drive-list.table-wrap { display: block; overflow-x: auto; box-shadow: var(--hi), var(--shadow); }
.drive-list tr.drive-item { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.drive-list tr.drive-item::before, .drive-list tr.drive-item::after { display: none; }
.drive-list tr.drive-item:hover { transform: none; box-shadow: none; }
.drive-list tr.drive-item.selected td { background: rgba(var(--accent-rgb),.1); }
.drive-list tr.drive-item.selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.drive-list tr.drive-item.is-trashed .drive-row-link { opacity: .7; }
.drive-list .table td { padding-top: 8px; padding-bottom: 8px; }
.drive-list .drive-check-cell { width: 1%; padding-right: 4px; }
.drive-row-name { width: 100%; max-width: 0; }
.drive-row-link { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: var(--text); text-decoration: none; }
.drive-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 0 1 auto; }
.drive-row-text .drive-name { padding: 0; font-size: 13.5px; }
.drive-row-text small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.drive-row-link .drive-badge { margin-left: -4px; }
.drive-row-link .drive-badge + .drive-badge { margin-left: -8px; }
.drive-list .drive-more { border-color: transparent; background: none; box-shadow: none; }
.drive-list tr:hover .drive-more, .drive-list .drive-more:focus-visible { border-color: var(--line); background: var(--fill); }

/* Drop overlay: JS toggles [hidden], so visibility must follow it */
.dropzone-overlay:not([hidden]) { opacity: 1; visibility: visible; }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 48px; border-radius: 26px; background: var(--glass-strong); border: 1px solid rgba(var(--accent-rgb),.3); box-shadow: var(--hi), var(--shadow-lg), 0 0 60px -20px rgba(var(--accent-rgb),.6); animation: modal-in .2s var(--ease); }
.dropzone-inner b { font-size: 20px; letter-spacing: -.02em; }
.dropzone-inner span { font-size: 14px; font-weight: 400; color: var(--muted); }
.drive-app.has-selection .fab { display: none !important; }
.drive-app:has(.upload-panel:not([hidden])) .fab { display: none !important; } /* separate: no :has() support must not drop the rule above */

/* Upload progress panel: floating card, one .upload-item per file */
.upload-panel.has-error { border-color: rgba(var(--danger-rgb),.4); }
.upload-panel.is-done:not(.has-error) [data-up-title] { color: var(--ok); }
.upload-panel.has-error [data-up-title] { color: var(--danger); }
.upload-head .btn-icon { width: 32px; height: 32px; border-radius: 10px; }
.upload-head .btn-icon .ico { width: 16px; height: 16px; }
.upload-head [data-up-toggle] .ico { transition: transform var(--t); }
.upload-panel.collapsed [data-up-toggle] .ico { transform: rotate(180deg); }
.upload-panel.collapsed .upload-head { border-bottom: 0; }
.upload-item { padding: 10px 12px 12px 14px; border-bottom: 1px solid var(--line); transition: opacity var(--t), background var(--t); }
.upload-item:last-child { border-bottom: 0; }
.upload-item > .upload-row { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
.upload-item .file-icon { width: 34px; height: 34px; border-radius: 10px; }
.upload-item .file-icon .ico { width: 17px; height: 17px; }
.upload-item .btn-icon { width: 30px; height: 30px; border-radius: 9px; }
.upload-item .btn-icon .ico { width: 15px; height: 15px; }
.upload-info { display: flex; flex-direction: column; gap: 1px; }
.upload-info b { font-size: 13px; font-weight: 550; }
.upload-info small { font: 11px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item > .progress { height: 4px; margin: 8px 0 0 44px; }
.upload-item.is-done > .progress > span { background: var(--ok); box-shadow: 0 0 10px rgba(var(--ok-rgb),.5); }
.upload-item.is-error { background: rgba(var(--danger-rgb),.05); }
.upload-item.is-error > .progress > span { background: var(--danger); box-shadow: none; }
.upload-item.is-cancelled { opacity: .55; }
.upload-item.is-cancelled > .progress > span { background: var(--faint); box-shadow: none; }

/* Context menu (appended to <body>); .is-sheet = bottom sheet chosen by JS */
.context-menu { position: fixed; z-index: 171; min-width: 230px; max-width: min(300px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; padding: 6px; border-radius: 16px; color: var(--text); background: var(--glass-strong); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); box-shadow: var(--hi), var(--shadow-lg); transform-origin: top left; animation: ctx-in .14s var(--ease); }
.context-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.context-head .file-icon { width: 30px; height: 30px; border-radius: 9px; }
.context-head .file-icon .ico { width: 15px; height: 15px; }
.context-head b { min-width: 0; font-weight: 600; }
.context-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background var(--t), color var(--t); }
.context-menu button .ico { width: 16px; height: 16px; color: var(--muted); }
.context-menu button:hover, .context-menu button:focus-visible { background: var(--fill-2); color: var(--text); outline: none; }
.context-menu button:hover .ico, .context-menu button:focus-visible .ico { color: var(--accent); }
.context-menu button.text-danger .ico { color: currentColor; }
.context-menu button.text-danger:hover, .context-menu button.text-danger:focus-visible { background: rgba(var(--danger-rgb),.1); }
.context-menu hr { margin: 5px 4px; border-top-color: var(--line); }
.context-scrim { position: fixed; inset: 0; z-index: 170; background: rgba(5,6,7,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease; }
[data-theme="light"] .context-scrim { background: rgba(40,34,20,.28); }
.context-menu.is-sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 82dvh; padding: 6px 10px calc(12px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; border-bottom: 0; animation: sheet-in .28s var(--ease); }
.context-menu.is-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 4px auto 8px; border-radius: 4px; background: var(--line-3); }
.context-menu.is-sheet .context-head { padding: 4px 8px 12px; font-size: 15px; }
.context-menu.is-sheet .context-head .file-icon { width: 38px; height: 38px; border-radius: 11px; }
.context-menu.is-sheet button { min-height: 48px; gap: 14px; padding: 10px 12px; font-size: 15px; border-radius: 12px; }
.context-menu.is-sheet button .ico { width: 20px; height: 20px; }
@keyframes ctx-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* Move dialog */
.move-path { gap: 2px; padding: 6px 8px; margin-bottom: 12px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); }
.move-path .link-btn { padding: 5px 8px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.move-path .link-btn:hover { background: var(--fill-2); color: var(--text); text-decoration: none; }
.move-list { display: flex; flex-direction: column; gap: 2px; max-height: min(46vh, 380px); min-height: 120px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); }
.move-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 11px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; text-align: left; transition: background var(--t), color var(--t); }
.move-item .file-icon { width: 32px; height: 32px; border-radius: 9px; }
.move-item .file-icon .ico { width: 16px; height: 16px; }
.move-item > .truncate { flex: 0 1 auto; }
.move-item > .ico:last-child { color: var(--faint); transition: transform var(--t), color var(--t); }
.move-item:hover:not(:disabled) { background: var(--fill-2); color: var(--text); }
.move-item:hover:not(:disabled) > .ico:last-child { color: var(--accent); transform: translateX(2px); }
.move-item:focus-visible { outline-offset: -2px; }
.move-item.is-disabled, .move-item:disabled { opacity: .45; cursor: not-allowed; }
.move-item small { flex: none; font-size: 11.5px; }
.move-section { display: flex; align-items: center; gap: 6px; padding: 12px 10px 6px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.move-section:first-child { margin-top: 0; border-top: 0; padding-top: 6px; }
.move-empty, .move-loading { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 28px 12px; font-size: 13px; text-align: center; }
.ico.spin { animation: spin .8s linear infinite; }

/* Share dialog */
.share-add { gap: 8px; flex-wrap: nowrap; }
.share-add .select { flex: none; width: auto; min-width: 170px; }
.share-results { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); }
.share-results:empty { display: none; }
.share-results > p { margin: 0; padding: 10px; font-size: 13px; text-align: center; }
.share-result { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 11px; background: none; color: var(--text); text-align: left; transition: background var(--t); }
.share-result > .ico:last-child { color: var(--accent); }
.share-result:hover, .share-result:focus-visible { background: rgba(var(--accent-rgb),.08); outline: none; }
.share-title { margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.share-members { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); }
.share-members > .muted:only-child, .share-members > .alert { margin: 0; padding: 14px; }
.share-member { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--line); }
.share-member:last-child { border-bottom: 0; }
.share-member > .badge { flex: none; }
.share-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
.share-who b { font-size: 13.5px; font-weight: 550; }
.share-who small { font-size: 12px; }
.share-none { margin: 0; padding: 14px; font-size: 13px; text-align: center; border-top: 1px dashed var(--line); }
.select-sm { width: auto; height: 34px; padding: 0 30px 0 10px; border-radius: 10px; font-size: 13px; background-position: right 8px center; background-size: 14px; }

/* Link dialog */
.link-form { gap: 0 14px; }
.link-form .field { margin-bottom: 12px; }
#drive-link-modal .card-title { margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.modal-body.stack > .alert { margin: 0; }
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-list > p, .link-list > .muted:only-child { margin: 0; padding: 14px; font-size: 13px; text-align: center; border-radius: 14px; border: 1px dashed var(--line-2); }
.link-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); transition: opacity var(--t); }
.link-row.is-muted { opacity: .55; }
.link-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.link-main code { display: block; padding: 4px 8px; border-radius: 8px; font-size: 12px; color: var(--text); background: var(--input); border: 1px solid var(--line); }
.link-main small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; }
.link-main .badge { height: 19px; padding: 0 7px; font-size: 10.5px; }
.link-actions { flex: none; gap: 6px; flex-wrap: nowrap; }
.link-actions .btn-icon { width: 32px; height: 32px; border-radius: 10px; }
.link-actions .btn-icon .ico { width: 16px; height: 16px; }
.link-actions [data-link-revoke]:hover { color: var(--danger); border-color: rgba(var(--danger-rgb),.35); background: rgba(var(--danger-rgb),.08); }

/* Preview dialog */
.preview-title { display: flex; flex-direction: column; gap: 1px; }
.preview-title h3 { display: block; font-size: 15px; }
.preview-title small { font: 11.5px var(--mono); font-variant-numeric: tabular-nums; }
.preview-body { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 12px; min-height: 260px; padding: 16px; background: rgba(0,0,0,.28); }
[data-theme="light"] .preview-body { background: var(--fill-2); }
.preview-media { border-radius: 12px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.8); }
.preview-frame { border-radius: 12px; background: #fff; }
.preview-body > .hint { justify-content: center; margin: 0; }
.preview-audio { padding: 28px 12px; }
.preview-audio .file-icon, .preview-none .file-icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; }
.preview-audio .file-icon .ico, .preview-none .file-icon .ico { width: 32px; height: 32px; }
.preview-text { width: 100%; padding: 16px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); background: var(--input); border: 1px solid var(--line); box-shadow: var(--input-shadow); }
.preview-none { padding: 36px 16px; }
.preview-nav { justify-content: space-between; }
.preview-nav .btn:disabled { opacity: .35; }

/* Roles: permission matrix card */
.perm-matrix-card .card-actions .search { flex: 0 1 260px; }
.perm-matrix-card .card-actions .input { height: 38px; }
.perm-matrix-card > .table-wrap { max-height: min(70vh, 760px); overflow: auto; }
.perm-matrix-card .perm-matrix td { padding-top: 9px; padding-bottom: 9px; }
.perm-matrix-card .card-foot > .muted { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }

/* Public share page (blank layout) */
.share-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: calc(clamp(24px,7vh,72px) + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.share-top { display: flex; justify-content: center; width: 100%; }
.share-brand { padding: 0; }
.share-card { width: 100%; max-width: 640px; border-radius: var(--r-xl); box-shadow: var(--hi), 0 40px 90px -40px rgba(0,0,0,.8); animation: rise .4s var(--ease) both; }
.share-card > .card-body { padding: clamp(20px,3vw,30px); }
.share-card .page-head-main > .file-icon { width: 52px; height: 52px; border-radius: 15px; }
.share-card .page-head-main > .file-icon .ico { width: 24px; height: 24px; }
.share-card .hint { justify-content: center; margin: 0; }
.share-card > .card-foot.hint { justify-content: flex-start; margin: 0; }
.share-lock { max-width: 440px; }
.share-folder { max-width: 880px; overflow: hidden; }
.share-folder .card-title > div { display: flex; flex-direction: column; min-width: 0; }
.share-folder .card-title small { font-size: 12px; font-weight: 400; }
.share-name { overflow-wrap: anywhere; }
h1.share-name { font-size: clamp(19px,2.4vw,25px); line-height: 1.25; }
b.share-name { display: block; }
.share-preview { display: grid; place-items: center; min-height: 120px; overflow: hidden; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
[data-theme="light"] .share-preview { background: var(--fill-2); }
.share-preview:has(audio) { min-height: 0; padding: 18px; }
.share-path { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--fill); }
.share-table td:first-child { width: 100%; max-width: 0; }
.share-table td { padding-top: 8px; padding-bottom: 8px; }
.share-thumb { border: 1px solid var(--line); }
.share-foot { margin-top: auto; }

/* Public ticket portal (blank layout, reuses .auth-*) */
.portal-card { background: radial-gradient(110% 50% at 50% 0%, rgba(var(--accent-rgb),.08), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); }
.portal-card .auth-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.portal-card .btn-lg { margin-top: 4px; }
.portal-card .field > span small { font-weight: 400; }
.portal-shell .auth-head h1 { display: flex; align-items: center; gap: 10px; }
.portal-shell .auth-head h1 .ico { width: 26px; height: 26px; color: var(--ok); }
.portal-shell .auth-card > * + .card, .portal-shell .auth-card > form + .card { margin-top: 18px; }
.portal-shell .card-glow .stat-value { margin: 4px 0 12px; }

/* ≤1024: one column; drive-side becomes the horizontal scroller */
@media (max-width: 1024px) {
  .drive-app { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .drive-side { position: static; flex-direction: row; align-items: stretch; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .drive-side::-webkit-scrollbar { display: none; }
  .drive-nav { flex: none; flex-direction: row; gap: 6px; }
  .drive-side a:not(.btn) { flex: none; border: 1px solid var(--line); background: var(--fill); }
  .drive-admin { flex: none; flex-direction: row; align-items: center; margin: 0; padding: 0 4px 0 12px; }
  .drive-admin .select { width: 220px; }
  .drive-quota { flex: none; min-width: 200px; margin: 0; padding: 8px 14px; }
  .drive-quota .progress { margin: 6px 0 4px; }
  .portal-shell .auth-hero { display: flex; justify-content: center; padding: calc(28px + env(safe-area-inset-top)) 16px 0; border: 0; background: none; }
  .portal-shell .auth-hero::after, .portal-shell .hero-title, .portal-shell .hero-sub, .portal-shell .hero-metrics, .portal-shell .hero-term { display: none; }
  .portal-shell .brand-lg .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  body .portal-shell .auth-panel { justify-content: flex-start; padding-top: 22px; } /* beats body.page-portal .auth-panel */
}
@media (max-width: 768px) {
  .fab.only-mobile { display: grid !important; } /* `revert` would make the label inline/block */
  .drive-toolbar > * { flex: 0 0 auto; }
  .drive-toolbar > .drive-upload-menu { order: 1; flex: 1 1 auto; }
  .drive-upload-menu > .btn { width: 100%; }
  .drive-toolbar > [data-drive-action] { order: 2; }
  .drive-toolbar > .drive-view-toggle { order: 3; margin-left: auto; }
  .drive-toolbar > .spacer { order: 4; flex: 0 0 100%; height: 0; margin: -4px 0; }
  .drive-toolbar > .drive-search { order: 5; flex: 1 1 0; max-width: none; }
  .drive-toolbar > .drive-sort { order: 6; flex: 0 0 150px; }
  .drive-sort .select { min-width: 0; }
  .drive-main > .drive-head { flex-basis: 100%; }
  .bulk-bar { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 95; }
  .bulk-bar .btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .bulk-bar .btn { width: 40px; height: 40px; padding: 0; }
  .drive-app.has-selection .drive-body { padding-bottom: 64px; }
}

/* ≤640 phones: 44px targets, bottom-docked upload panel, fullscreen preview */
@media (max-width: 640px) {
  .drive-side a:not(.btn) { height: 44px; }
  .drive-admin .select { height: 44px; }
  .drive-toolbar .btn, .drive-toolbar .input, .drive-toolbar .select { height: 44px; }
  .drive-toolbar > [data-drive-action].btn-soft { width: 44px; padding: 0; }
  .drive-upload-menu > .btn { font-size: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.14), 0 10px 26px -8px rgba(200,242,60,.65); }
  .drive-upload-menu .dropdown-menu { right: 0; min-width: 0; }
  .drive-upload-menu .dropdown-menu > label { min-height: 44px; font-size: 15px; }
  .drive-view-toggle > .btn-icon { width: 44px; height: 44px; }
  .drive-toolbar > .drive-sort { flex-basis: 132px; }
  .bulk-bar { gap: 6px; padding: 6px; }
  .bulk-bar > .btn-icon, .bulk-bar .btn { width: 44px; height: 44px; border-radius: 12px; }
  .drive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .drive-item { padding: 7px 7px 9px; border-radius: 16px; }
  .drive-grid .drive-check { top: 12px; left: 12px; }
  .drive-grid .drive-more { top: 10px; right: 10px; width: 34px; height: 34px; }
  .drive-grid .drive-more::after { inset: -5px; }
  .drive-list .drive-check::after { content: ""; position: absolute; inset: -10px; }
  .drive-list .drive-check { position: relative; }
  .drive-list .drive-row-link { min-height: 48px; }
  .upload-panel { left: 0; right: 0; width: auto; bottom: calc(64px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-bottom: 0; animation: sheet-in .28s var(--ease); }
  .upload-list { max-height: 42dvh; }
  .upload-head { padding: 8px 8px 8px 16px; }
  .upload-head .btn-icon, .upload-item .btn-icon { width: 44px; height: 44px; border-radius: 12px; }
  .upload-item { padding: 8px 8px 12px 14px; }
  .context-menu:not(.is-sheet) button { min-height: 44px; }
  .move-item, .share-result { min-height: 52px; }
  .share-add { flex-wrap: wrap; }
  .share-add .select { flex: 1 1 100%; }
  .share-member { flex-wrap: wrap; }
  .share-member .btn-icon, .link-actions .btn-icon { width: 44px; height: 44px; border-radius: 12px; }
  .select-sm { height: 44px; font-size: 16px; }
  .link-row { flex-wrap: wrap; }
  .link-actions { width: 100%; justify-content: flex-end; }
  .link-actions .btn { height: 44px; flex: 1; }
  dialog.modal.drive-preview { width: 100% !important; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; animation: modal-in .22s var(--ease); }
  dialog.modal.drive-preview::before { display: none; }
  .drive-preview .modal-head { padding: calc(10px + env(safe-area-inset-top)) 8px 10px 16px; }
  .drive-preview .modal-head .btn-icon { width: 44px; height: 44px; }
  .preview-body { flex: 1 1 auto; padding: 8px; background: rgba(0,0,0,.45); }
  .preview-nav .btn { height: 44px; flex: 0 1 auto !important; }
  .perm-matrix-card .card-actions { width: 100%; }
  .perm-matrix-card .card-actions .search { flex: 1 1 100%; max-width: none; }
  .perm-matrix-card .card-actions > .btn { flex: 1 1 auto; }
  .share-shell { gap: 16px; padding-top: calc(20px + env(safe-area-inset-top)); padding-left: 12px; padding-right: 12px; }
  .share-folder .card-actions { width: 100%; }
  .share-folder .card-actions > .btn { flex: 1; height: 44px; }
  .share-table .btn-sm { min-width: 44px; height: 40px; }
}
@media print {
  .context-menu, .context-scrim, .bulk-bar, .drive-toolbar, .drive-check, .drive-more, .drive-side { display: none !important; }
  .drive-app { grid-template-columns: minmax(0,1fr); }
}

/* ===== 26. Okuyucu, toner terminali & küçük düzeltmeler ===== */
.card > .toolbar, .card > form.toolbar { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.kv dd { overflow-wrap: anywhere; }

/* --- kamera okuyucu --- */
.scan-modal { width: min(560px, calc(100vw - 24px)); }
.scan-stage { position: relative; margin: 0 20px; border-radius: 18px; overflow: hidden; background: #050605; aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px var(--line-2); }
#gsb-scan-region { position: absolute; inset: 0; }
#gsb-scan-region video { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
#gsb-scan-region img, #gsb-scan-region > div:not([id]) { display: none !important; }
#gsb-scan-region #qr-shaded-region { border-color: transparent !important; }
.scan-frame { position: absolute; inset: 19% 9%; pointer-events: none; }
.scan-frame span { position: absolute; width: 28px; height: 28px; border: 3px solid var(--lime); filter: drop-shadow(0 0 8px rgba(200,242,60,.6)); }
.scan-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scan-frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.scan-frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scan-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.scan-laser { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--lime), transparent); box-shadow: 0 0 14px 2px rgba(200,242,60,.55); animation: scanLaser 2.2s ease-in-out infinite; }
@keyframes scanLaser { 0%, 100% { top: 8%; } 50% { top: 92%; } }
.scan-status { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.62); backdrop-filter: blur(8px); color: #eeede8; font-size: 12.5px; text-align: center; font-family: var(--mono); }
.scan-status.bad { background: rgba(120,20,20,.75); }
.scan-status[hidden] { display: none; }
.scan-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(200,242,60,.45), transparent 70%); }
.scan-flash.on { animation: scanFlash .5s ease-out; }
@keyframes scanFlash { from { opacity: 1; } to { opacity: 0; } }
.scan-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 12px 20px 0; }
.scan-tools .btn.active { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.4); }
.scan-manual { display: flex; gap: 8px; padding: 12px 20px 20px; }
.scan-manual .input-icon { flex: 1; }
.scan-manual .input-icon .ico, .term-code .input-icon .ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.scan-manual .input, .term-code .input { padding-left: 38px; width: 100%; }
@media (max-width: 640px) {
  .scan-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .scan-stage { margin: 0 12px; aspect-ratio: 3 / 4; }
  .scan-tools, .scan-manual { padding-left: 12px; padding-right: 12px; }
}

/* --- topbar okut düğmesi --- */
.topbar [data-scan-global] .ico { color: var(--accent); }

/* --- toner terminali --- */
.terminal { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.term-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.term-scan { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.term-scan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.term-scan-btn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; cursor: pointer; text-align: left; font: inherit; color: var(--text);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),.04)); border: 1px solid rgba(var(--accent-rgb),.32); box-shadow: var(--hi); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.term-scan-btn:hover { transform: translateY(-1px); border-color: rgba(var(--accent-rgb),.6); box-shadow: var(--hi), 0 10px 30px -12px rgba(var(--accent-rgb),.5); }
.term-scan-btn b { display: block; font-size: 15px; }
.term-scan-btn small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.term-scan-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: var(--ink); box-shadow: 0 0 22px -4px rgba(var(--accent-rgb),.7); }
.term-scan-ico .ico { width: 22px; height: 22px; }
.term-ai-btn { background: linear-gradient(135deg, rgba(255,171,61,.16), rgba(255,171,61,.04)); border-color: rgba(255,171,61,.35); }
.term-ai-btn .term-scan-ico { background: var(--accent-2); color: #1d1204; box-shadow: 0 0 22px -4px rgba(255,171,61,.7); }
.term-ai-btn:hover { border-color: rgba(255,171,61,.65); box-shadow: var(--hi), 0 10px 30px -12px rgba(255,171,61,.5); }
.term-code { display: flex; gap: 8px; }
.term-code .input-icon { flex: 1; }
.term-code .input { height: 46px; font-size: 15px; }
.term-code .btn { height: 46px; }
.term-result:empty { display: none; }
.term-result.pop > * { animation: termPop .28s var(--ease); }
@keyframes termPop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

.term-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--fill); border: 1px solid var(--line-2); }
.term-card.ok { border-color: rgba(var(--ok-rgb),.35); background: linear-gradient(180deg, rgba(var(--ok-rgb),.07), var(--fill)); }
.term-card.warn { border-color: rgba(var(--warn-rgb),.4); background: linear-gradient(180deg, rgba(var(--warn-rgb),.08), var(--fill)); }
.term-card.ai { border-color: rgba(255,171,61,.4); background: linear-gradient(180deg, rgba(255,171,61,.08), var(--fill)); }
.term-card.danger { border-color: rgba(var(--danger-rgb),.4); color: var(--danger); flex-direction: row; align-items: center; }
.term-card.loading { flex-direction: row; align-items: center; gap: 14px; }
.term-card.loading small, .tc-head small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc-head > div { min-width: 0; }
.tc-head b { font-size: 15px; }
.tc-code { font-size: 20px !important; letter-spacing: .02em; }
.tc-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--fill-3); color: var(--warn); }
.tc-ico.ai { background: rgba(255,171,61,.18); color: var(--accent-2); }
.tc-stock { text-align: right; flex: none; }
.tc-stock b { display: block; font-size: 26px; line-height: 1; }
.tc-stock small { color: var(--muted); font-size: 11.5px; }
.tc-stock.state-danger b { color: var(--danger); } .tc-stock.state-warn b { color: var(--warn); } .tc-stock.state-ok b { color: var(--ok); }
.tc-sec { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.tc-label, .tc-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.tc-label .ico, .tc-meta .ico, .tc-sec > .ico { width: 15px; height: 15px; color: var(--muted); }
.tc-note { margin: 0; font-size: 13px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: var(--fill-2); }
.tc-conf { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.tc-conf .progress { flex: 1; margin: 0; }
.tc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-added { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 600; }
.tc-added .ico { width: 16px; height: 16px; }
.tc-link { display: flex; gap: 8px; }
.tc-link .select { flex: 1; min-width: 0; }
.tc-form { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.tc-form .field { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { font-size: 12px; }
.chips-soft .chip { background: transparent; border-style: dashed; }
.select-sm { height: 34px; font-size: 13px; }
.spinner { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--fill-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ink { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font: 700 12px/1 var(--mono); color: #fff; background: #1d1f1a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ink-cyan { background: #0f9fb0; } .ink-magenta { background: #c4237f; } .ink-yellow { background: #e9c814; color: #1b1a10; }
.ink-black { background: #26281f; }

.term-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 14px; max-height: 520px; overflow: auto; }
.term-list-empty { padding: 24px; text-align: center; grid-column: 1 / -1; }
.term-tile { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--fill); border: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--text); text-align: left; transition: border-color var(--t), background var(--t), transform var(--t); min-width: 0; }
.term-tile:hover:not(:disabled) { border-color: rgba(var(--accent-rgb),.45); background: var(--fill-2); transform: translateY(-1px); }
.term-tile:disabled { opacity: .45; cursor: not-allowed; }
.term-tile.in-cart { border-color: rgba(var(--accent-rgb),.55); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.25); }
.tt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tt-main small { color: var(--muted); font-size: 11.5px; }
.tt-stock { font-size: 17px; font-weight: 700; }
.term-tile.state-danger .tt-stock { color: var(--danger); } .term-tile.state-warn .tt-stock { color: var(--warn); }
.tt-badge { position: absolute; top: -7px; right: -5px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; }
.card-actions .input-icon.input-sm .ico { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--muted); }
.card-actions .input-icon.input-sm .input { height: 34px; padding-left: 32px; width: 220px; font-size: 13px; }

/* sepet */
.term-cart { position: sticky; top: calc(var(--topbar-h, 64px) + 18px); max-height: calc(100vh - var(--topbar-h, 64px) - 36px); display: flex; flex-direction: column; overflow: hidden; }
.term-cart > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.term-mode { margin: 12px 16px 0; display: flex; }
.term-mode label { flex: 1; }
.term-mode span { width: 100%; justify-content: center; height: 34px; }
.term-mode input[value="out"]:checked + span { color: var(--ink); background: var(--accent); box-shadow: 0 0 16px -4px rgba(var(--accent-rgb),.7); }
.term-mode input[value="in"]:checked + span { color: #1d1204; background: var(--accent-2); box-shadow: 0 0 16px -4px rgba(255,171,61,.7); }
.cart-items { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0; flex: 1 1 auto; }
.cart-items:empty { display: none; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); }
.cart-item.over { border-color: rgba(var(--danger-rgb),.5); background: rgba(var(--danger-rgb),.06); }
.cart-item.bump { animation: cartBump .45s var(--ease); }
@keyframes cartBump { 0% { background: rgba(var(--accent-rgb),.25); } 100% { background: var(--fill); } }
.ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-main small { color: var(--muted); font-size: 11.5px; }
.stepper { display: inline-flex; align-items: center; border-radius: 10px; background: var(--input); border: 1px solid var(--line-2); overflow: hidden; flex: none; }
.stepper button { width: 30px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.stepper button:hover { background: var(--fill-2); color: var(--text); }
.stepper button .ico { width: 14px; height: 14px; }
.stepper input { width: 40px; height: 32px; border: 0; background: transparent; color: var(--text); text-align: center; font-size: 14px; font-weight: 700; outline: none; }
.ci-del { flex: none; width: 28px; height: 28px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 22px; text-align: center; color: var(--muted); }
.cart-empty .ico { width: 34px; height: 34px; color: var(--faint); }
.cart-empty b { color: var(--text-2); }
.cart-empty small { font-size: 12.5px; max-width: 260px; }
.cart-empty[hidden] { display: none; }
.cart-fields { padding: 12px 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; flex: none; }
.cart-fields [hidden] { display: none !important; }
.cart-opts { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; font-size: 13px; }
.cart-foot { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: none; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb),.04)); }
.term-cart.mode-in .cart-foot { background: linear-gradient(180deg, transparent, rgba(255,171,61,.05)); }
.term-cart.mode-in [data-cart-submit] { background: var(--accent-2); color: #1d1204; box-shadow: 0 8px 26px -10px rgba(255,171,61,.8); }
.cart-total { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.cart-total b { font-size: 26px; line-height: 1; }
.cart-fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--ink); box-shadow: 0 10px 30px -6px rgba(var(--accent-rgb),.7); cursor: pointer; place-items: center; }
.cart-fab .ico { width: 24px; height: 24px; }
.cart-fab span { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 1180px) {
  .terminal { grid-template-columns: 1fr; }
  .term-cart { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 768px) {
  .cart-fab.only-mobile { display: grid !important; }
  .term-list { grid-template-columns: 1fr; max-height: 420px; }
  .term-scan { padding: 14px; }
  .card-actions .input-icon.input-sm .input { width: 150px; }
  .stepper button { width: 38px; height: 40px; } .stepper input { height: 40px; }
}

/* ayarlar sekmeleri */
.settings-tabs { margin-bottom: 18px; display: inline-flex; flex-wrap: wrap; }
.settings-tabs .tab { position: relative; }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); margin-left: 4px; }
.tab-dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb),.8); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; padding: 4px 0; }
.stack-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack-col > .card { margin: 0; }
.small { font-size: 12.5px; }
.small p { margin: 0 0 8px; }
form.inline { display: inline; }

/* ===================== 27. Gelişmiş toner yönetimi ===================== */
.toner-tabs { margin: 0 0 18px; }
.brand-chips { margin: 0 0 14px; }
.brand-chips .chip span { color: var(--faint); font-size: 11px; }
.brand-chips .chip.active span { color: inherit; opacity: .7; }
.toner-filter { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toner-filter .check { white-space: nowrap; font-size: 13px; }
.grow { flex: 1 1 auto; min-width: 0; }
.toolbar .input-icon.grow { min-width: 220px; }
.toolbar .input-icon.grow .input { width: 100%; }
.seg-link { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 550; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background var(--t), color var(--t); }
.seg-link:hover { color: var(--text); }
.seg-link.on { color: var(--text); background: var(--fill-3); box-shadow: var(--hi), 0 1px 3px rgba(0,0,0,.25); }
.seg-link .ico { width: 15px; height: 15px; }
.chip-sm { height: 22px; padding: 0 8px; font-size: 11.5px; gap: 5px; }
.chip-sm .ico { width: 12px; height: 12px; }
a.chip:hover { color: var(--text); border-color: var(--line-3); }
.ink-xs { width: 18px; height: 18px; border-radius: 5px; font-size: 9.5px; }
.ink-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 26px -10px rgba(0,0,0,.6); }
.toner-cell { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }
.toner-cell > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.toner-cell small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
a.toner-cell:hover b { color: var(--accent); }
.cell-2 { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.printer-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 340px; }
.printer-chips.wrap { max-width: none; gap: 6px; }
.printer-chips .chip b { color: var(--text); margin-left: 2px; }
.stock-col { min-width: 180px; }
.stock-cell { display: flex; align-items: center; gap: 12px; }
.stock-num { font-size: 20px; font-weight: 600; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.stock-bar { flex: 1; min-width: 90px; display: flex; flex-direction: column; gap: 4px; }
.stock-bar small { font-size: 11px; }
tr.is-inactive > td, .tcard.is-inactive { opacity: .55; }
.pm-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--fill-2); border: 1px solid var(--line); color: var(--text-2); }
.pm-ico .ico { width: 17px; height: 17px; }

.toner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; padding: 16px; }
.tcard { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; background: linear-gradient(180deg, var(--glass-a), var(--glass-b)); border: 1px solid var(--line-2); box-shadow: var(--hi); transition: border-color var(--t), transform var(--t); }
.tcard:hover { border-color: var(--line-3); transform: translateY(-1px); }
.tcard.state-danger { border-color: rgba(var(--danger-rgb),.4); box-shadow: var(--hi), 0 0 0 1px rgba(var(--danger-rgb),.12), 0 12px 30px -16px rgba(var(--danger-rgb),.5); }
.tcard-main { display: flex; flex-direction: column; gap: 10px; padding: 14px 15px; color: inherit; text-decoration: none; flex: 1; }
.tcard-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tcard-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tcard-id b { font-size: 15px; }
.tcard-id small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-stock { display: flex; align-items: baseline; gap: 8px; }
.tcard-num { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.tcard.state-danger .tcard-num { color: var(--danger); } .tcard.state-warn .tcard-num { color: var(--accent-2); }
.tcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.tcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tcard-printers { display: flex; flex-wrap: wrap; gap: 4px; }
.tcard-foot { display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 15px; border-top: 1px solid var(--line); }
.tcard-tags { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; }

.toner-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.toner-hero > .card { margin: 0; padding: 22px; }
.th-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.th-code { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.th-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.toner-hero .kv-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; }
.kv-grid .span-all { grid-column: 1 / -1; }
.kv-grid .span-all dd { display: flex; flex-wrap: wrap; gap: 6px; }
.th-stock { display: flex; flex-direction: column; gap: 12px; background: radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb),.1), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); }
.th-stock.state-danger { background: radial-gradient(120% 80% at 100% 0%, rgba(var(--danger-rgb),.14), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); }
.th-stock.state-warn { background: radial-gradient(120% 80% at 100% 0%, rgba(var(--a2-rgb),.13), transparent 60%), linear-gradient(180deg, var(--glass-a), var(--glass-b)); }
.th-gauge { display: flex; align-items: baseline; gap: 10px; }
.th-num { font-size: clamp(52px, 6vw, 76px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.th-stock.state-danger .th-num { color: var(--danger); } .th-stock.state-warn .th-num { color: var(--accent-2); }
.progress-lg { height: 10px; }
.th-scale { display: flex; justify-content: space-between; margin-top: -4px; }
.th-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.th-metrics > div { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 13px; background: var(--fill); border: 1px solid var(--line); min-width: 0; }
.th-metrics small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.th-metrics b { font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-metrics span { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-last { margin: 0; }

.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-out, .mb-out { background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb),.55)); }
.lg-in, .mb-in { background: linear-gradient(180deg, var(--accent-2), rgba(var(--a2-rgb),.45)); }
.mbars { display: flex; align-items: stretch; gap: 6px; height: 210px; padding-top: 18px; }
.mbar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mbar small { font-size: 11px; color: var(--muted); }
.mbar-cols { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line-2); }
.mbar-cols span { position: relative; width: 40%; max-width: 18px; border-radius: 5px 5px 1px 1px; transition: height .6s var(--ease); }
.mbar-cols span em { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 3px; font: 600 10.5px var(--mono); font-style: normal; color: var(--text-2); }
.mbar:hover .mbar-cols { background: var(--fill); border-radius: 6px 6px 0 0; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hbars li { display: flex; flex-direction: column; gap: 5px; }
.hb-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.hbars small { font-size: 11.5px; }

.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin: 0 0 16px; }
.pick-group { display: contents; }
.pick-group > b { grid-column: 1 / -1; margin: 8px 0 0; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pick-group:first-child > b { margin-top: 0; }
.pick { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 11px; background: var(--fill); border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; min-width: 0; transition: border-color var(--t), background var(--t); }
.pick:hover { border-color: var(--line-3); }
.pick input { flex: none; width: 16px; height: 16px; accent-color: var(--lime); }
.pick > span { min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pick:has(input:checked) { border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.08); }
.pick-scroll { grid-template-columns: 1fr; max-height: 280px; overflow: auto; margin-top: 8px; padding-right: 4px; }
.modal-delete { padding: 0 22px 16px; margin-top: -6px; }
.modal-delete[hidden] { display: none; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.danger-zone { border-color: rgba(var(--danger-rgb),.25); }
.danger-zone .card-body { padding: 16px 22px; }
.mini-stats { margin-bottom: 18px; }
.mini-stats .stat { padding: 14px 18px 12px; grid-template-areas: "label" "value"; grid-template-columns: 1fr; }
.mini-stats .stat-value { font-size: 24px; }
.count-col { width: 140px; }
.count-col .input { width: 110px; height: 36px; }
.text-ok { color: var(--ok) !important; }

@media (max-width: 1100px) {
  .toner-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .toner-tabs { width: 100%; }
  .toner-filter { padding: 12px; }
  .toner-filter .select { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .toolbar .input-icon.grow { min-width: 100%; }
  .toner-grid { grid-template-columns: 1fr; padding: 12px; }
  .stock-col { min-width: 120px; }
  .stock-bar small { display: none; }
  .toner-cell small { max-width: 150px; }
  .toner-hero > .card { padding: 16px; }
  .toner-hero .kv-grid { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .th-code { font-size: 22px; }
  .mbars { height: 170px; gap: 3px; }
  .mbar small { font-size: 9.5px; }
  .mbar-cols span em { display: none; }
  .pick-list { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .mini-stats .stat { padding: 10px 12px; }
  .mini-stats .stat-value { font-size: 18px; }
}
@media print {
  .toner-tabs, .toner-filter, .brand-chips, .actions { display: none !important; }
  .count-col .input { border: 1px solid #999; }
}
@media (max-width: 768px) {
  .grid.toner-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .toner-kpis .stat { padding: 12px 14px 10px; grid-template-areas: "label" "value" "meta"; grid-template-columns: 1fr; }
  .toner-kpis .stat-icon { display: none; }
  .toner-kpis .stat-label { font-size: 10.5px; }
  .toner-kpis .stat-value { font-size: 22px; }
  .toner-kpis .stat-meta { font-size: 11.5px; margin-top: 4px; }
}

/* ================= 28. Tutanak ================= */
.tut-kpis { margin-bottom: 16px; }
.tut-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.tut-quick-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; transition: border-color .15s, background .15s, transform .15s; }
.tut-quick-item .ico { color: var(--accent); flex: none; }
.tut-quick-item:hover { border-color: rgba(var(--accent-rgb),.45); background: rgba(var(--accent-rgb),.07); transform: translateY(-1px); }
.tut-type { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sig-dots { display: inline-flex; gap: 4px; }
.sig-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.sig-dots i.on { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 6px rgba(var(--ok-rgb),.6); }

/* oluşturma */
.tut-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tut-type-opt { position: relative; cursor: pointer; }
.tut-type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tut-type-opt > span { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--fill); font-size: 12.5px; line-height: 1.3; height: 100%; transition: border-color .15s, background .15s, box-shadow .15s; }
.tut-type-opt > span .ico { color: var(--muted); }
.tut-type-opt:hover > span { border-color: var(--line-3); }
.tut-type-opt input:checked + span { border-color: rgba(var(--accent-rgb),.6); background: rgba(var(--accent-rgb),.09); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
.tut-type-opt input:checked + span .ico { color: var(--accent); }
.tut-type-opt input:focus-visible + span { outline: 2px solid rgba(var(--accent-rgb),.85); outline-offset: 2px; }
.tut-party + .tut-party { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.tut-party h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.tut-party summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
details.tut-party[open] summary { margin-bottom: 12px; }
.tut-items td { vertical-align: top; }
.tut-items td:first-child { min-width: 260px; }
.tut-items .input { min-width: 90px; }
.tut-items .tut-note { margin-top: 6px; height: 32px; font-size: 12.5px; }
.tut-qty { display: flex; gap: 6px; }
.tut-qty .input { min-width: 0; }
.tut-qty .input[type=number] { width: 76px; }
.tut-qty .input:not([type=number]) { width: 76px; }
.tut-search { position: relative; width: min(380px, 60vw); }
.tut-search-res { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 340px; overflow: auto; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.tut-sr { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.tut-sr:hover, .tut-sr:focus-visible { background: var(--fill-2); }
.tut-sr .ico { color: var(--accent); margin-top: 2px; flex: none; }
.tut-sr small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tut-sr-empty { padding: 12px; color: var(--muted); font-size: 13px; }

/* detay */
.tut-view { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; margin-top: 14px; }
.tut-paper-wrap { min-width: 0; overflow: auto; border-radius: 18px; border: 1px solid var(--line-2); background: #d9d7cf; padding: 18px; }
.tut-paper .doc-sheet { box-shadow: 0 6px 30px rgba(0,0,0,.18); border-radius: 4px; }
.tut-side { position: sticky; top: 84px; }
.tut-sigs { display: flex; flex-direction: column; gap: 10px; }
.tut-sig-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--fill); }
.tut-sig-row.is-signed { border-color: rgba(var(--ok-rgb),.35); background: rgba(var(--ok-rgb),.06); }
.tut-sig-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--fill-2); color: var(--muted); }
.is-signed .tut-sig-ico { background: rgba(var(--ok-rgb),.15); color: var(--ok); }
.tut-sig-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tut-sig-txt small:first-child { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tut-sig-txt b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-remote { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.tut-remote p { margin: 0 0 8px; font-size: 12.5px; }
.tut-hash { font-size: 11.5px; word-break: break-all; }
.tut-assets { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.tut-legal { font-size: 12px; margin: 10px 0 0; }

/* imza pedi */
.sig-pad { position: relative; height: 220px; border-radius: 14px; background: #fff; border: 1px solid var(--line-3); overflow: hidden; touch-action: none; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sig-pad-hint { position: absolute; left: 0; right: 0; top: 42%; text-align: center; color: #9b9a92; font-size: 13px; pointer-events: none; transition: opacity .2s; padding: 0 12px; }
.sig-pad.has-ink .sig-pad-hint { opacity: 0; }
.sig-pad-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1.5px dashed #c9c7bd; pointer-events: none; }

/* herkese açık sayfalar */
body.pub-page { overflow-y: auto; }
.pub-wrap { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
.pub-card { padding: 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pub-card h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pub-card .check { margin-top: 12px; }
.pub-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pub-brand .brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb),.7); align-self: center; }
.pub-brand small { color: var(--muted); }
.pub-status { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); }
.pub-status > .ico { width: 30px; height: 30px; flex: none; }
.pub-status b { font-size: 16px; }
.pub-status p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.pub-status.good { border-color: rgba(var(--ok-rgb),.4); background: rgba(var(--ok-rgb),.08); } .pub-status.good > .ico { color: var(--ok); }
.pub-status.wait { border-color: rgba(var(--warn-rgb),.4); background: rgba(var(--warn-rgb),.08); } .pub-status.wait > .ico { color: var(--warn); }
.pub-status.bad { border-color: rgba(var(--danger-rgb),.4); background: rgba(var(--danger-rgb),.08); } .pub-status.bad > .ico { color: var(--danger); }
.pub-kv { margin-top: 16px; }
.pub-paper { overflow: auto; border-radius: 14px; }
.pub-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 14px 0 0; }
.ok-txt { color: var(--ok); }

@media (max-width: 1100px) {
  .tut-view { grid-template-columns: 1fr; }
  .tut-side { position: static; }
}
@media (max-width: 768px) {
  .tut-paper-wrap { padding: 8px; border-radius: 14px; }
  .tut-search { width: 100%; }
  .tut-types, .tut-quick { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tut-items thead { display: none; }
  .tut-items, .tut-items tbody, .tut-items tr, .tut-items td { display: block; width: 100%; }
  .tut-items tr { padding: 12px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tut-items td { padding: 0 !important; border: 0 !important; min-width: 0 !important; }
  .tut-items td:first-child { grid-column: 1 / -1; }
  .tut-items td.actions { grid-column: 1 / -1; text-align: right; }
  .sig-pad { height: 200px; }
  .pub-card { padding: 16px; }
}
@media print {
  body.pub-page .pub-card, body.pub-page .pub-actions, body.pub-page .ambient { display: none !important; }
  body.pub-page .pub-wrap { padding: 0; max-width: none; }
}

/* 28b. Ayarlar: belge logosu */
.doc-head-set { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.doc-logo-prev { flex: none; width: 84px; height: 84px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; padding: 8px; color: #9b9a92; }
.doc-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.doc-head-set .stack { flex: 1; min-width: 0; }
.tc-autofill { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: var(--text-2); background: rgba(var(--accent-rgb),.08); border: 1px solid rgba(var(--accent-rgb),.25); }
.tc-autofill .ico { color: var(--accent); flex: none; }
