:root {
  color-scheme: light;
  --bg: #f3f6fc; --surface: #fff; --surface-alt: #f7f9fd; --surface-hover: #eef4ff;
  --text: #152540; --muted: #51647e; --faint: #667992; --line: #dce5f2;
  --accent: #2d62de; --accent-strong: #204dbb; --accent-soft: #e8efff; --focus: #4584ef;
  --nav: #0c162a; --nav-deep: #0a1324; --nav-text: #b8c8de; --nav-active: #203967;
  --hero: #101f3d; --hero-end: #172e59; --hero-glow: #2862ba;
  --good: #12845e; --warn: #9a5802; --danger: #bc2e44; --shadow: 0 2px 5px #20396809, 0 8px 25px #233c6d08;
  --radius: 15px; --sidebar: 242px;
  font: 16px/1.5 "Segoe UI Variable", "Inter", "Segoe UI", system-ui, sans-serif;
}
:root[data-palette="aurora"] { --accent:#007b77; --accent-strong:#006561; --accent-soft:#d7f5ee; --focus:#1d9c93; --nav:#092528; --nav-deep:#081e24; --nav-active:#13504e; --hero:#0a2933; --hero-end:#114849; --hero-glow:#157d73; }
:root[data-palette="nebula"] { --accent:#7046ca; --accent-strong:#5736a5; --accent-soft:#f0eaff; --focus:#8c68eb; --nav:#1b1732; --nav-deep:#151029; --nav-active:#3d2c6a; --hero:#261c46; --hero-end:#3e2e75; --hero-glow:#6550bb; }
:root[data-palette="ice"] { --accent:#16779c; --accent-strong:#105e7d; --accent-soft:#dff3fc; --focus:#35acd4; --nav:#0b2535; --nav-deep:#0c1a28; --nav-active:#1d4a67; --hero:#102c43; --hero-end:#144b65; --hero-glow:#248fb1; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#0d1525; --surface:#131f34; --surface-alt:#192740; --surface-hover:#223451; --text:#e9f1fd; --muted:#a9bbd4; --faint:#91a7c4; --line:#2b3c59; --accent-soft:#22395d; --focus:#82b0ff; --good:#64d6a8; --warn:#f4bd73; --danger:#ff8d9e; --shadow:0 5px 20px #0002; }
:root[data-theme="dark"][data-palette="aurora"] { --accent-soft:#1b4544; --focus:#66d9c8; }
:root[data-theme="dark"][data-palette="nebula"] { --accent-soft:#342858; --focus:#c3a9ff; }
:root[data-theme="dark"][data-palette="ice"] { --accent-soft:#1b4060; --focus:#8ad9fa; }
*, *::before, *::after { box-sizing:border-box; }
html,body { margin:0; min-width:0; min-height:100%; }
body { color:var(--text); background:var(--bg); }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.55; }
a { color:var(--accent-strong); text-decoration:none; }
[data-theme="dark"] a:not(.btn) { color:var(--focus); }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
[hidden] { display:none !important; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(1.65rem,3vw,2.25rem); line-height:1.13; letter-spacing:-.037em; font-weight:750; }
h2 { font-size:1.14rem; letter-spacing:-.017em; line-height:1.3; }
h3 { font-size:1rem; font-weight:680; line-height:1.3; }
input[type="checkbox"] { accent-color:var(--accent); width:1rem; height:1rem; margin:0; flex:none; }
svg.icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.icon.small { width:16px; height:16px; }
.icon.large { width:26px; height:26px; }
.muted { color:var(--muted); }
.small { font-size:.875rem; }
.micro { font-size:.79rem; }
.mono { font: .875rem/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; overflow-wrap:anywhere; }
.strong { font-weight:680; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.row { display:flex; align-items:center; gap:10px; }
.row.wrap { flex-wrap:wrap; }
.stack { display:grid; gap:14px; }
.spread { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.truncate { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.btn { display:inline-flex; gap:8px; min-height:40px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:9px; padding:7px 13px; font-size:.875rem; font-weight:650; line-height:1.3; white-space:nowrap; background:var(--surface); color:var(--text); }
.btn:hover { background:var(--surface-hover); }
.btn.primary { color:#fff; background:var(--accent); border-color:var(--accent); box-shadow:0 2px 8px color-mix(in srgb,var(--accent) 24%,transparent); }
.btn.primary:hover { background:var(--accent-strong); border-color:var(--accent-strong); }
.btn.subtle { background:transparent; border-color:transparent; color:var(--muted); }
.btn.subtle:hover { color:var(--text); background:var(--surface-hover); }
.btn.danger { border-color:color-mix(in srgb,var(--danger) 45%,var(--line)); color:var(--danger); }
.btn.icon-btn { padding:0; width:38px; min-height:38px; flex:none; }
.btn[aria-pressed="true"] { border-color:transparent; background:var(--accent-soft); color:var(--accent-strong); }
[data-theme="dark"] .btn[aria-pressed="true"] { color:var(--focus); }
input:not([type="checkbox"],[type="file"]),select,textarea { min-width:0; max-width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); line-height:1.35; }
input::placeholder,textarea::placeholder { color:var(--faint); opacity:1; }
select { appearance:none; padding-right:2.3rem; background:var(--surface) url("/icons/chevron.svg") no-repeat right .65rem center / 1rem 1rem; }
textarea { min-height:104px; resize:vertical; }
label.field { display:grid; gap:6px; color:var(--text); font-size:.875rem; font-weight:630; min-width:0; }
label.field :is(input,select,textarea) { width:100%; font-weight:400; font-size:1rem; }
label.check { display:flex; align-items:center; gap:9px; font-size:.9rem; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.field-error { color:var(--danger); font-size:.9rem; overflow-wrap:anywhere; }
.notice { background:var(--accent-soft); border:1px solid var(--line); border-radius:10px; color:var(--text); padding:11px 13px; font-size:.9rem; overflow-wrap:anywhere; }
.notice.warning { border-color:color-mix(in srgb,var(--warn) 35%,var(--line)); color:var(--warn); background:color-mix(in srgb,var(--warn) 6%,var(--surface)); }
.notice.error { border-color:color-mix(in srgb,var(--danger) 35%,var(--line)); color:var(--danger); background:color-mix(in srgb,var(--danger) 6%,var(--surface)); }
.status { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; font-size:.85rem; font-weight:660; color:var(--muted); }
.status i { background:var(--good); width:7px; height:7px; border-radius:50%; flex:none; }
.status.offline i { background:#e49d58; }
.logo { display:inline-grid; align-items:center; justify-items:start; gap:6px; min-width:0; color:inherit; }
.logo-mark { display:inline-flex; align-items:center; gap:12px; min-width:0; }
.logo img { width:42px; height:42px; flex:none; }
.logo b { display:block; font-size:1.12rem; letter-spacing:.09em; line-height:1.16; }
.developer-credit { display:block; color:inherit; font-size:.7rem; font-weight:650; letter-spacing:.025em; opacity:.8; }
.boot,.standalone { min-height:100dvh; display:grid; place-content:center; justify-items:center; gap:14px; padding:22px; }
.boot { color:var(--muted); }
.offline-panel { padding:32px; display:grid; justify-items:start; gap:17px; max-width:490px; }

.app-shell { min-height:100dvh; display:grid; grid-template-columns:var(--sidebar) minmax(0,1fr); }
.sidebar { height:100dvh; position:sticky; top:0; color:#edf5ff; border-right:1px solid #ffffff08; background:linear-gradient(168deg,var(--nav) 0%,var(--nav-deep) 83%); display:flex; flex-direction:column; z-index:15; }
.sidebar .logo { display:grid; min-height:83px; padding:12px 17px; color:#f6faff; margin-bottom:4px; }
.sidebar .logo img { width:40px; height:40px; }
.side-nav { flex:1; overflow:auto; overscroll-behavior:contain; padding:0 12px 13px; scrollbar-color:#4b648c7a transparent; scrollbar-width:thin; }
.nav-heading { color:#a5b9d5; font-size:.74rem; font-weight:720; text-transform:uppercase; letter-spacing:.09em; padding:10px 10px 4px; }
.nav-item { width:100%; display:flex; align-items:center; gap:10px; padding:5px 10px; min-height:32px; margin:1px 0; border:1px solid transparent; text-align:left; border-radius:8px; color:var(--nav-text); background:transparent; font-size:.875rem; font-weight:580; }
.nav-item .icon { width:17px; height:17px; opacity:.94; }
.nav-item:is(:hover,:focus-visible) { color:white; background:#ffffff0c; }
.nav-item[aria-current="page"] { color:#fbfdff; background:var(--nav-active); border-color:#84bdff29; box-shadow:inset 2px 0 #71afff; }
.sidebar-bottom { margin:0 12px 13px; padding:12px; border:1px solid #c1d7ff25; border-radius:10px; background:#a5c8ff0b; font-size:.8rem; color:var(--nav-text); }
.sidebar-bottom b { color:#e9f3ff; font-weight:650; }
.sidebar-bottom progress { margin:7px 0 3px; height:5px; --track:#244164; --fill:#69b3ff; }
.side-shade { display:none; }
.workspace { min-width:0; }
.topbar { height:68px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 25px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.top-title { flex:1; min-width:0; font-size:.875rem; font-weight:650; color:var(--muted); }
.top-title .icon { color:var(--faint); }
.top-search { flex:2.65; max-width:520px; min-width:0; display:flex; gap:9px; align-items:center; padding:0 6px 0 12px; min-height:42px; border:1px solid var(--line); border-radius:10px; background:var(--surface-alt); color:var(--faint); }
.top-search:focus-within { border-color:var(--focus); }
.top-search input { flex:1; padding:6px 0; width:100%; min-width:0; background:transparent; outline:none; border:0; font-size:.91rem; }
.top-search kbd { font:600 .73rem/1.3 inherit; font-size:.73rem; border:1px solid var(--line); padding:3px 5px; border-radius:5px; white-space:nowrap; }
.top-search .icon-btn { min-height:32px; width:32px; }
.header-tools { flex:1; justify-content:flex-end; gap:6px; }
.avatar { width:35px; height:35px; border-radius:50%; background:var(--accent-soft); border:1px solid color-mix(in srgb,var(--focus) 30%,var(--line)); color:var(--text); font-size:.79rem; font-weight:780; flex:none; }
.mobile-menu { display:none; }
.page { padding:25px 28px 36px; margin:0 auto; max-width:1720px; display:grid; gap:20px; }
[data-background="grid"] .workspace { background-image:linear-gradient(90deg,color-mix(in srgb,var(--focus) 8%,transparent) 1px,transparent 1px),linear-gradient(color-mix(in srgb,var(--focus) 8%,transparent) 1px,transparent 1px); background-size:28px 28px; }
[data-background="waves"] .workspace { background-image:radial-gradient(ellipse at 90% 0,color-mix(in srgb,var(--focus) 13%,transparent),transparent 36%); }
.page-heading { display:grid; gap:7px; min-width:0; }
.page-heading p { color:var(--muted); font-size:.92rem; }
.panel { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); min-width:0; }
.panel.pad { padding:17px 18px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:14px 17px; }
.panel-head h2 { display:flex; align-items:center; gap:8px; }
.panel-head .btn { min-height:34px; }
.hero { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; align-items:stretch; min-height:214px; padding:26px 30px; background:radial-gradient(ellipse at 75% 54%,var(--hero-glow),transparent 61%),linear-gradient(112deg,var(--hero),var(--hero-end)); border:1px solid #71aaff47; border-radius:17px; color:#f5faff; box-shadow:0 9px 22px #142b5330; }
.hero::before,.gate-art::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.8; background-image:radial-gradient(circle at 76% 57%,#629cfe19 0 1px,transparent 2px), linear-gradient(125deg,transparent 45%,#a6d8ff13 55%,transparent 74%); background-size:16px 16px,auto; mask-image:linear-gradient(100deg,transparent 28%,#000 100%); }
[data-background="grid"] :is(.hero,.gate-art)::before { background-image:linear-gradient(90deg,#b5d9ff24 1px,transparent 1px),linear-gradient(#b5d9ff24 1px,transparent 1px); background-size:26px 26px; }
[data-background="plain"] :is(.hero,.gate-art)::before { display:none; }
.hero-copy { position:relative; z-index:1; max-width:76%; display:grid; align-content:center; justify-items:start; gap:10px; }
.hero-copy .status { color:#d7ebff; font-size:.77rem; letter-spacing:.08em; text-transform:uppercase; }
.hero-copy .status i { background:#62e6a7; box-shadow:0 0 10px #62e6a76b; }
.hero-copy p { color:#d1e1f7; font-size:.95rem; }
.hero-copy .row { margin-top:7px; }
.hero .btn.primary { background:#e9f4ff; color:#142f56; border-color:#ffffffa3; box-shadow:0 2px 10px #00112531; }
.hero .btn.primary:hover { background:#fff; }
.hero .btn.secondary { background:#ffffff12; color:#eaf5ff; border-color:#d2e7ff51; }
.hero .btn.secondary:hover { background:#ffffff25; }
.hero-art { position:absolute; width:min(52%,555px); height:118%; object-fit:contain; right:-.5%; top:-8%; z-index:0; pointer-events:none; opacity:.96; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.metric { border:1px solid var(--line); border-radius:13px; padding:13px 14px; display:flex; align-items:center; gap:11px; min-width:0; background:var(--surface); box-shadow:var(--shadow); }
.metric strong { display:block; font-size:clamp(1.06rem,2vw,1.32rem); letter-spacing:-.03em; line-height:1.23; overflow-wrap:anywhere; }
.metric span:not(.glyph) { color:var(--muted); font-size:.8rem; white-space:normal; }
.glyph { width:39px; height:39px; border-radius:10px; display:inline-grid; place-items:center; flex:none; color:var(--accent-strong); background:var(--accent-soft); }
[data-theme="dark"] .glyph { color:var(--focus); }
.glyph.b { background:#e8f0ff; color:#3161ca; }.glyph.t { background:#def5ed; color:#187b60; }.glyph.p { background:#f0eaff; color:#7951c7; }.glyph.o { background:#fff0d9; color:#9a5d09; }.glyph.r { background:#fce8f0; color:#a84269; }.glyph.c { background:#e0f4fc; color:#196f94; }.glyph.g { background:#eef1f6; color:#4c6783; }
[data-theme="dark"] .glyph.b { background:#233e67; color:#b2ceff; }[data-theme="dark"] .glyph.t { background:#1e453d; color:#9be3c9; }[data-theme="dark"] .glyph.p { background:#392d59; color:#d1b8ff; }[data-theme="dark"] .glyph.o { background:#4b382b; color:#ffc381; }[data-theme="dark"] .glyph.r { background:#512b45; color:#ffc5d9; }[data-theme="dark"] .glyph.c { background:#1b4060; color:#a4e2ff; }[data-theme="dark"] .glyph.g { background:#2a3751; color:#c2d3eb; }
.categories { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:9px; }
.category-card { display:grid; justify-items:start; gap:8px; min-width:0; text-align:left; color:var(--text); border:1px solid var(--line); border-radius:11px; padding:10px; background:var(--surface); box-shadow:var(--shadow); }
.category-card:hover { border-color:var(--focus); background:var(--surface-hover); }
.category-card b { display:block; font-size:.875rem; overflow-wrap:anywhere; }
.category-card small { display:block; color:var(--muted); font-size:.78rem; }
.category-card .glyph { width:34px; height:34px; }
.category-card .icon { width:17px; height:17px; }
.home-grid { display:grid; grid-template-columns:minmax(0,2.1fr) minmax(230px,1fr); gap:14px; align-items:start; }
.section-title { margin-bottom:10px; }
.capacity { padding:15px 17px 18px; display:grid; gap:10px; }
progress { width:100%; height:9px; display:block; appearance:none; border:0; border-radius:6px; --track:var(--line); --fill:var(--accent); background:var(--track); }
progress::-webkit-progress-bar { border-radius:inherit; background:var(--track); }
progress::-webkit-progress-value { border-radius:inherit; background:var(--fill); }
progress::-moz-progress-bar { border-radius:inherit; background:var(--fill); }
.activity-list { display:grid; gap:0; padding:0 16px 9px; }
.activity-item { padding:9px 0; display:flex; align-items:center; min-width:0; gap:9px; border-top:1px solid var(--line); font-size:.86rem; }
.activity-item .icon { color:var(--muted); width:17px; height:17px; }

.toolbar { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.toolbar .end { margin-left:auto; flex-wrap:wrap; }
.segmented { display:inline-flex; gap:2px; border:1px solid var(--line); border-radius:9px; padding:2px; background:var(--surface); }
.segmented .btn { border:0; min-height:31px; width:33px; border-radius:6px; }
.breadcrumbs { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.87rem; flex-wrap:wrap; }
.breadcrumbs .btn { min-height:29px; padding:3px 7px; }
.breadcrumbs .icon { width:15px; height:15px; }
.selection-bar { border:1px solid color-mix(in srgb,var(--focus) 55%,var(--line)); background:var(--accent-soft); border-radius:10px; padding:6px 8px 6px 12px; }
.selection-bar .btn { min-height:33px; }
.file-table { width:100%; border-collapse:collapse; text-align:left; font-size:.9rem; table-layout:fixed; }
.file-table th { font-size:.79rem; font-weight:680; color:var(--muted); padding:9px 9px; background:var(--surface-alt); white-space:nowrap; }
.file-table td { padding:8px 9px; border-top:1px solid var(--line); color:var(--muted); }
.file-table :is(td,th):first-child { width:39px; padding-left:13px; }
.file-table :is(td,th):last-child { width:57px; padding-right:13px; text-align:right; }
.file-table .date-col { width:24%; min-width:95px; }
.file-table .size-col { width:15%; min-width:74px; }
.file-table .type-col { width:14%; min-width:55px; }
.file-table tr[data-id]:hover,.file-table tr.selected { background:var(--surface-hover); }
.file-table .name-btn { text-align:left; padding:0; border:0; background:transparent; color:var(--text); display:flex; align-items:center; gap:9px; min-width:0; max-width:100%; font:inherit; font-weight:640; }
.file-table .glyph { width:32px; height:32px; border-radius:8px; }
.file-table .glyph .icon { width:17px;height:17px; }
.file-table .file-star { color:#b57927; }
.table-box { overflow:hidden; }
.files-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:10px; padding:12px; }
.file-card { border:1px solid var(--line); border-radius:11px; min-height:130px; padding:9px; display:grid; grid-template-rows:auto 1fr auto; gap:6px; align-items:center; min-width:0; }
.file-card.selected,.file-card:hover { border-color:var(--focus); background:var(--surface-hover); }
.file-card .name-btn { min-width:0; color:var(--text); border:0; background:transparent; display:grid; gap:7px; text-align:left; font-weight:660; padding:0; }
.file-card .glyph { width:43px;height:43px; }
.file-card .btn { min-height:27px; height:27px; width:28px; }
.empty { padding:29px 16px; text-align:center; display:grid; justify-items:center; gap:8px; color:var(--muted); }
.empty .glyph { width:45px; height:45px; }
.empty h3 { color:var(--text); }
.empty .btn { margin-top:5px; }
.dragging { outline:3px dashed var(--focus); outline-offset:-5px; }
.pager { padding:9px 12px; border-top:1px solid var(--line); }

.list-row { display:flex; flex-wrap:wrap; gap:12px; padding:12px 15px; align-items:center; }
.list-row + .list-row { border-top:1px solid var(--line); }
.list-row .grow { flex:1 0 134px; min-width:0; }
.list-row .label { font-weight:660; overflow-wrap:anywhere; }
.list-row .actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.list-row .actions .btn { min-height:33px; }
.tag { padding:3px 7px; font-size:.77rem; background:var(--surface-alt); border:1px solid var(--line); border-radius:7px; color:var(--muted); white-space:nowrap; }
.tag.ok { color:var(--good); }.tag.warn { color:var(--warn); }.tag.bad { color:var(--danger); }
.transfer-progress { margin-top:6px; display:grid; gap:5px; }
.quick-grid,.plugin-grid,.settings-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); align-items:start; gap:13px; }
.quick-card,.plugin-card { display:grid; gap:9px; }
.quick-card pre { margin:0; max-height:126px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text); }
.swatches { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.swatch { display:grid; justify-items:center; gap:5px; min-width:0; padding:8px 3px; border:1px solid var(--line); border-radius:9px; background:var(--surface-alt); color:var(--text); font-size:.79rem; font-weight:650; }
.swatch i { display:block; width:24px; height:24px; border-radius:50%; border:1px solid #36476735; }
.swatch[data-value="ocean"] i { background:linear-gradient(135deg,#68bdff,#2d62de 55%,#172e59); }.swatch[data-value="aurora"] i { background:linear-gradient(135deg,#78ead5,#007b77 55%,#114849); }.swatch[data-value="nebula"] i { background:linear-gradient(135deg,#c7a7ff,#7046ca 55%,#3e2e75); }.swatch[data-value="ice"] i { background:linear-gradient(135deg,#a8edfb,#16779c 55%,#144b65); }
.swatch[aria-pressed="true"] { border-color:var(--focus); background:var(--accent-soft); }
.data-grid { display:grid; gap:9px; margin:0; }
.data-grid div { display:grid; grid-template-columns:minmax(90px,1fr) 2.1fr; gap:12px; padding:5px 0; border-bottom:1px solid var(--line); }
.data-grid dt { color:var(--muted); font-size:.89rem; }.data-grid dd { margin:0; overflow-wrap:anywhere; font-weight:560; font-size:.9rem; }
.tabbar { display:flex; gap:5px; flex-wrap:wrap; }
.bar-row { display:grid; grid-template-columns:minmax(90px,130px) minmax(30px,1fr) minmax(52px,auto); gap:9px; align-items:center; font-size:.88rem; color:var(--muted); }

.auth-screen {
  background:linear-gradient(145deg, var(--nav-deep), var(--hero-end));
  background:
    radial-gradient(ellipse at 12% 4%, color-mix(in srgb, var(--hero-glow) 72%, transparent), transparent 58%),
    radial-gradient(ellipse at 97% 100%, color-mix(in srgb, var(--focus) 45%, transparent), transparent 54%),
    linear-gradient(145deg, var(--nav-deep), var(--hero) 52%, var(--hero-end));
}
.gate { width:min(1050px,100%); display:grid; grid-template-columns:1.18fr 1fr; min-height:565px; border-radius:21px; overflow:hidden; border:1px solid color-mix(in srgb,var(--focus) 60%,var(--hero-end)); box-shadow:0 24px 65px color-mix(in srgb,var(--nav-deep) 62%,transparent); background:var(--surface); }
.gate-art { padding:31px; position:relative; isolation:isolate; color:#f6fbff; background:radial-gradient(ellipse at 59% 49%,var(--hero-glow),transparent 63%),linear-gradient(145deg,var(--nav-deep),var(--hero-end)); display:flex; flex-direction:column; justify-content:space-between; gap:19px; }
.gate-art > img { width:115%; max-width:640px; height:auto; margin:-12% -8% -8%; z-index:-1; }
.gate-art b { font-weight:730; }.gate-art p { color:#cee3ff; font-size:.95rem; }
.gate-art .logo { align-self:flex-start; }
.gate-art .status { color:#d3e7ff; margin-top:8px; }.gate-art .status i { background:#63e1a0; }
.gate-content {
  display:grid; align-content:center; gap:17px; padding:clamp(23px,4vw,47px); min-width:0;
  background:linear-gradient(153deg,var(--surface) 30%,color-mix(in srgb,var(--surface) 65%,var(--accent-soft)));
}
.gate-content .stack { gap:11px; }
.gate-content h1 { font-size:clamp(1.55rem,3vw,2.08rem); }
.gate-content input { border-color:color-mix(in srgb,var(--muted) 64%,var(--line)); }
.gate-content .btn.primary { min-height:44px; margin-top:3px; background:linear-gradient(112deg,var(--accent),var(--accent-strong)); }
.gate-content .btn.primary:hover { background:var(--accent-strong); }
.gate-content .gate-links { display:flex; gap:7px 13px; flex-wrap:wrap; font-size:.875rem; }
.gate-links button { padding:0; border:0; background:none; color:var(--accent-strong); font-weight:650; }
[data-theme="dark"] .gate-links button { color:var(--focus); }
.shared { width:min(720px,100%); }
.shared .panel-head { border-bottom:1px solid var(--line); }
.shared .logo { margin-bottom:12px; }
.shared .panel.pad { display:grid; gap:14px; }
.demo-banner { color:var(--muted); font-size:.88rem; }

dialog { margin:auto; padding:0; width:min(510px,calc(100% - 24px)); max-height:calc(100dvh - 26px); border:1px solid var(--line); border-radius:15px; box-shadow:0 20px 80px #0005; color:var(--text); background:var(--surface); overflow:auto; }
dialog.wide { width:min(900px,calc(100% - 24px)); }
dialog::backdrop { background:#091326a7; }
.dialog-head { padding:13px 16px; display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px solid var(--line); }
.dialog-head h2 { overflow-wrap:anywhere; }
.dialog-content { padding:15px 16px 16px; display:grid; gap:12px; }
.dialog-foot { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:5px; }
.preview-box { min-height:160px; max-height:66dvh; overflow:auto; border:1px solid var(--line); background:var(--surface-alt); border-radius:10px; display:grid; place-items:center; }
.preview-box > :is(img,video) { display:block; max-width:100%; max-height:64dvh; object-fit:contain; }
.preview-box audio { width:min(520px,95%); }
.preview-box pre { width:100%; padding:12px; white-space:pre-wrap; overflow-wrap:anywhere; margin:0; }
.qr-image { display:block; width:min(238px,100%); height:auto; justify-self:center; background:#fff; border-radius:8px; }
.popup { position:fixed; z-index:25; min-width:182px; max-width:min(310px,calc(100vw - 16px)); max-height:min(515px,80dvh); overflow:auto; padding:5px; background:var(--surface); border:1px solid var(--line); border-radius:10px; color:var(--text); box-shadow:0 12px 34px #13265138; }
.popup button { display:flex; align-items:center; gap:9px; text-align:left; padding:7px 8px; width:100%; background:transparent; border:0; border-radius:6px; color:var(--text); font-size:.875rem; }
.popup button:hover,.popup button:focus-visible { background:var(--surface-hover); }
.popup button.danger { color:var(--danger); }
.popup .icon { width:17px;height:17px; }
.toasts { position:fixed; z-index:40; bottom:18px; right:18px; width:min(370px,calc(100vw - 36px)); display:grid; gap:7px; pointer-events:none; }
.toast { pointer-events:auto; color:var(--text); background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--good); border-radius:10px; box-shadow:0 7px 26px #0b224f38; padding:9px 11px; display:flex; align-items:center; gap:9px; overflow-wrap:anywhere; font-size:.9rem; }
.toast.error { border-left-color:var(--danger); }
.toast .icon { color:var(--good); }.toast.error .icon { color:var(--danger); }
.float-queue { position:fixed; right:19px; bottom:19px; z-index:12; }
.float-queue:has(button[hidden]) { display:none; }
.toasts:not(:empty) ~ .float-queue { bottom:76px; }

@media (min-width:1500px) { :root { --sidebar:254px; }.page { padding:27px 33px 42px; }.hero { min-height:232px; } }
@media (max-width:1180px) { :root { --sidebar:217px; }.page { padding:20px; }.topbar { padding:0 19px; }.categories { grid-template-columns:repeat(4,minmax(0,1fr)); }.home-grid { grid-template-columns:minmax(0,1.6fr) minmax(210px,1fr); } }
@media (max-width:960px) { .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.home-grid { grid-template-columns:minmax(0,1fr); }.header-tools .status { display:none; }.hero-copy { max-width:87%; }.hero-art { opacity:.72; right:-4%; }.top-title .icon { display:none; } }
@media (max-width:780px) {
  .app-shell { display:block; }.sidebar { position:fixed; bottom:0; left:0; top:0; width:min(265px,86vw); transform:translateX(-105%); visibility:hidden; transition:transform .18s ease; }
  .app-shell.nav-open .sidebar { transform:none; visibility:visible; }.app-shell.nav-open .side-shade { display:block; position:fixed; z-index:14; inset:0; background:#0814258a; border:0; }
  .mobile-menu { display:inline-flex; }.top-title { display:none; }.topbar { height:61px; gap:8px; padding:0 12px; }.top-search { flex:1; max-width:none; }.header-tools { flex:0 0 auto; gap:3px; }.page { padding:15px 13px 27px; gap:14px; }
  .hero { min-height:200px; padding:20px; }.hero-copy { max-width:88%; }.hero-art { width:64%; opacity:.58; right:-11%; top:-3%; }.gate-art { padding:23px; }
}
@media (max-width:560px) {
  .page { padding-inline:10px; }.topbar { padding-inline:7px; gap:4px; }.header-tools .theme-toggle,.header-tools .notification-btn,.top-search kbd { display:none; }
  .top-search { gap:5px; padding-left:7px; }.top-search > .icon { width:17px; }.top-search .icon-btn { width:28px; }.topbar .mobile-menu { width:34px; }
  .category-card { padding:8px; gap:6px; }.categories { grid-template-columns:repeat(3,minmax(0,1fr)); }.category-card b { font-size:.8rem; }
  .metrics { gap:7px; }.metric { padding:8px; gap:7px; }.metric .glyph { width:33px; height:33px; }.hero { padding:17px 14px; }.hero-copy { max-width:100%; }.hero-copy p { font-size:.88rem; }
  .hero-art { opacity:.3; right:-12%; width:77%; }.hero .btn { min-height:37px; padding:7px 10px; }
  .file-table .type-col,.file-table .date-col { display:none; }.file-table .size-col { width:22%; }.file-table :is(td,th):last-child { width:42px; padding-right:4px; }.file-table :is(td,th):first-child { width:32px; padding-left:8px; }
  .file-table td { padding:6px; }.file-table .name-btn { gap:6px; }.file-table .glyph { width:28px; height:28px; }.toolbar { gap:6px; }.toolbar .end { margin-left:0; }
  .gate { grid-template-columns:1fr; min-height:0; }.standalone { padding:12px; }.gate-art { min-height:158px; padding:16px; overflow:hidden; }
  .gate-art > img { position:absolute; width:62%; max-height:65%; height:100%; right:-6%; top:-4%; margin:0; object-fit:contain; object-position:top right; opacity:.48; }
  .gate-art .status { margin-top:3px; }.gate-content { padding:21px 16px; gap:13px; }
  .panel.pad { padding:12px; }.field-grid { grid-template-columns:1fr; }.file-card { min-height:117px; }.files-grid { grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); }.dialog-content { padding:12px; }.dialog-head { padding:9px 12px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
