:root {
  --bg: #0e1014;
  --bg-soft: #13161c;
  --panel: #171b22;
  --panel-2: #1d222b;
  --panel-3: #232935;
  --border: #262c37;
  --border-soft: #1f242e;
  --text: #e6eaf2;
  --text-dim: #aab2c2;
  --muted: #7e879b;
  --accent: #4f8cff;
  --accent-dim: #2f6ae0;
  --violet: #8b6cff;
  --ok: #3ecf8e;
  --warn: #f5a524;
  --danger: #ff5f56;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #374054; }

/* ---------- login ---------- */
.login-mask {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(1000px 600px at 50% -10%, #1b2233 0%, var(--bg) 60%);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  width: 340px; padding: 32px 28px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.login-logo { color: var(--accent); display: flex; }
.login-card h1 { margin: 0; font-size: 20px; letter-spacing: .5px; }
.login-sub { margin: 0; color: var(--muted); font-size: 13px; }
.login-tip { margin: 0; min-height: 18px; color: var(--danger); font-size: 12.5px; }

/* ---------- layout ---------- */
.app { display: flex; flex-direction: column; height: 100%; }

.topbar {
  height: 54px; flex: 0 0 54px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.brand-mark { color: var(--accent); display: flex; }
.brand-name { font-weight: 600; letter-spacing: .4px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: 13.5px; transition: .15s;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--panel-3); color: #fff; }
.nav-item .ni { display: flex; }
.top-right { display: flex; align-items: center; gap: 10px; }
.disk-chip {
  font-size: 12px; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border-soft);
  padding: 4px 9px; border-radius: 20px; font-variant-numeric: tabular-nums;
}
.main { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.view { height: 100%; overflow: auto; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13.5px; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--panel-3); border-color: #333b49; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent-dim); border-color: var(--accent-dim); color: #fff; }
.btn.primary:hover { background: #3b78f0; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(255, 95, 86, .12); border-color: rgba(255, 95, 86, .4); }
.btn.ghost { background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn.icon { width: 34px; padding: 0; }
.btn.icon.sm { width: 28px; }

.input, .select, textarea.input {
  height: 34px; padding: 0 11px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; outline: none; font-family: inherit; width: 100%;
}
textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--accent); }
.select { width: auto; cursor: pointer; }
.input::placeholder { color: #5d6678; }

.chk { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.toolbar .spacer { flex: 1; }
.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: 13px; min-width: 0; }
.crumb {
  padding: 4px 8px; border-radius: 6px; color: var(--text-dim); cursor: pointer; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crumb:hover { background: var(--panel-2); color: #fff; }
.crumb.current { color: #fff; font-weight: 500; cursor: default; }
.crumb-sep { color: #4b5364; }

.search-box { position: relative; display: flex; align-items: center; }
.search-box .si { position: absolute; left: 9px; color: var(--muted); display: flex; pointer-events: none; }
.search-box .input { padding-left: 30px; width: 220px; }

/* ---------- file list ---------- */
.file-wrap { padding: 0 16px 60px; }
.file-head, .file-row {
  display: grid; grid-template-columns: 30px 1fr 110px 150px 96px;
  align-items: center; gap: 10px;
}
.file-head {
  padding: 8px 10px; color: var(--muted); font-size: 12px;
  border-bottom: 1px solid var(--border-soft); position: sticky; top: 57px;
  background: var(--bg); z-index: 4;
}
.file-head span:nth-child(3), .file-head span:nth-child(4) { cursor: pointer; user-select: none; }
.file-head span:nth-child(3):hover, .file-head span:nth-child(4):hover { color: var(--text); }
.file-row {
  padding: 7px 10px; border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  cursor: pointer; transition: background .12s;
}
.file-row:hover { background: var(--panel-2); }
.file-row.selected { background: rgba(79, 140, 255, .12); }
.file-row.dragging { opacity: .5; }
.fname { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ficon { display: flex; flex-shrink: 0; }
.fname span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize, .ftime { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fact { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: .12s; }
.file-row:hover .fact { opacity: 1; }

.grid-view {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; padding: 14px 2px;
}
.grid-item {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 14px 10px 10px; text-align: center; cursor: pointer; position: relative; transition: .15s;
}
.grid-item:hover { border-color: #374054; background: var(--panel-2); }
.grid-item.selected { border-color: var(--accent); background: rgba(79, 140, 255, .1); }
.grid-item .gi { display: flex; justify-content: center; margin-bottom: 8px; }
.grid-item .gname {
  font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grid-item .gmeta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.grid-item .gchk { position: absolute; top: 7px; left: 8px; }

.empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- upload ---------- */
.upload-panel {
  position: fixed; right: 18px; bottom: 18px; width: 320px; z-index: 60;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.upload-panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px solid var(--border-soft); font-size: 13px;
}
.upload-list { max-height: 240px; overflow: auto; padding: 8px 12px 12px; }
.upload-item { margin-bottom: 9px; }
.upload-item .un { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 5px; background: var(--panel-3); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .2s; }

.drop-hint {
  position: fixed; inset: 12px; z-index: 90; pointer-events: none;
  border: 2px dashed var(--accent); border-radius: 14px;
  background: rgba(79, 140, 255, .08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}

/* ---------- modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 120; background: rgba(6, 8, 12, .72);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 88vh; display: flex; flex-direction: column;
  min-width: 320px; max-width: 92vw;
}
.modal header {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft); font-size: 14px;
}
.modal header .mt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal .body { padding: 14px; overflow: auto; flex: 1; min-height: 0; }
.modal footer {
  padding: 12px 14px; border-top: 1px solid var(--border-soft);
  display: flex; gap: 8px; justify-content: flex-end;
}
.modal.wide { width: 1000px; }
.modal.mid { width: 620px; }

/* ---------- preview ---------- */
.pv-image { text-align: center; }
.pv-image img { max-width: 100%; max-height: 72vh; border-radius: 6px; }
.pv-media { width: 880px; max-width: 100%; }
.pv-media video, .pv-media audio { width: 100%; border-radius: 6px; background: #000; }
.pv-text textarea {
  width: 100%; min-height: 46vh; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 12px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; resize: vertical; outline: none;
}
.pv-text textarea:focus { border-color: var(--accent); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { word-break: break-all; }

/* ---------- toast ---------- */
.toast-root {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: var(--panel-3); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 16px; font-size: 13px; box-shadow: var(--shadow);
  animation: toast-in .18s ease;
}
.toast.ok { border-color: rgba(62, 207, 142, .45); color: #b9f2d8; }
.toast.err { border-color: rgba(255, 95, 86, .45); color: #ffc9c5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* ---------- AI ---------- */
.ai-wrap { display: flex; height: 100%; min-height: 0; }
.ai-side {
  width: 236px; flex: 0 0 236px; border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; background: var(--bg-soft);
}
.ai-side .side-top { padding: 12px; border-bottom: 1px solid var(--border-soft); }
.ai-conv-list { flex: 1; overflow: auto; padding: 8px; }
.conv-item {
  padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--text-dim);
}
.conv-item:hover { background: var(--panel-2); }
.conv-item.active { background: var(--panel-3); color: #fff; }
.conv-item .ct { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item .cd { display: none; color: var(--muted); }
.conv-item:hover .cd { display: flex; }

.ai-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ai-top {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  border-bottom: 1px solid var(--border-soft); font-size: 13px;
}
.ai-top .model-tag {
  background: var(--panel-2); border: 1px solid var(--border-soft);
  border-radius: 20px; padding: 3px 10px; color: var(--text-dim); font-size: 12px;
}
.ai-top .model-tag.warn { border-color: rgba(245, 165, 36, .5); color: #ffd79a; }
.ai-msgs { flex: 1; overflow: auto; padding: 18px 0 8px; }
.ai-inner { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.msg { margin-bottom: 22px; }
.msg .who {
  font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.msg.user .who { color: var(--text-dim); }
.bubble {
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere;
}
.msg.user .bubble { background: var(--panel-2); }
.msg.assistant .bubble { border-color: var(--border); }
.bubble.reasoning { color: var(--muted); font-size: 12.5px; background: transparent; border-style: dashed; }
.cursor {
  display: inline-block; width: 7px; height: 15px; background: var(--accent);
  vertical-align: -2px; animation: blink 1s steps(2, start) infinite; margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.ai-att { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.ai-att img {
  max-height: 130px; max-width: 220px; border-radius: 6px; border: 1px solid var(--border);
}

.composer { border-top: 1px solid var(--border-soft); padding: 12px 16px 16px; background: var(--bg); }
.composer-inner { max-width: 860px; margin: 0 auto; }
.composer-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; transition: .15s;
}
.composer-box:focus-within { border-color: var(--accent); }
.composer-box textarea {
  width: 100%; background: transparent; border: 0; outline: none; resize: none;
  color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.6;
  max-height: 220px; min-height: 26px; display: block;
}
.composer-att { display: flex; gap: 8px; padding: 4px 2px 8px; flex-wrap: wrap; }
.composer-att .thumb { position: relative; }
.composer-att img { height: 62px; border-radius: 6px; border: 1px solid var(--border); }
.composer-att .rm {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--panel-3); border: 1px solid var(--border); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px;
}
.composer-att .rm:hover { color: var(--danger); }
.composer-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hint { color: var(--muted); font-size: 12px; }

/* ---------- markdown ---------- */
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 0 0 10px; }
.md h1, .md h2, .md h3, .md h4 { margin: 16px 0 8px; line-height: 1.35; }
.md h1 { font-size: 19px; } .md h2 { font-size: 17px; } .md h3 { font-size: 15px; } .md h4 { font-size: 14px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md blockquote {
  margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--border);
  color: var(--text-dim); background: rgba(255, 255, 255, .02);
}
.md code.inline {
  background: var(--panel-3); padding: 1.5px 5px; border-radius: 4px;
  font-family: var(--mono); font-size: 12.5px;
}
.md pre {
  margin: 0 0 12px; background: #0b0d12; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.md pre .pre-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px; background: var(--panel-2); border-bottom: 1px solid var(--border-soft);
  font-size: 11.5px; color: var(--muted);
}
.md pre .copy { cursor: pointer; color: var(--muted); }
.md pre .copy:hover { color: var(--text); }
.md pre code {
  display: block; padding: 11px 12px; overflow: auto; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.65; white-space: pre;
}
.md table { border-collapse: collapse; margin: 0 0 12px; font-size: 13px; display: block; overflow: auto; }
.md th, .md td { border: 1px solid var(--border); padding: 5px 10px; }
.md th { background: var(--panel-2); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.md a { color: var(--accent); }

/* ---------- games ---------- */
.games-wrap { padding: 18px 16px 40px; max-width: 1180px; margin: 0 auto; }
.section-title { font-size: 13px; color: var(--muted); margin: 4px 0 12px; letter-spacing: .5px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.game-card {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 16px; cursor: pointer; transition: .15s;
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card .gc-ico {
  width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b4a8f, #6b3fa0); color: #fff; margin-bottom: 10px;
}
.game-card h3 { margin: 0 0 4px; font-size: 15px; }
.game-card p { margin: 0; color: var(--muted); font-size: 12.5px; }

.lb { margin-top: 26px; }
.lb table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lb th, .lb td { padding: 7px 10px; border-bottom: 1px solid var(--border-soft); text-align: left; }
.lb th { color: var(--muted); font-weight: 500; font-size: 12px; }
.lb td.rank { width: 46px; color: var(--muted); }
.lb tr.me td { color: var(--ok); }

.game-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.game-hud {
  display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; flex-wrap: wrap; justify-content: center;
}
.game-hud b { color: #fff; font-size: 15px; }
.game-canvas { background: #0b0d12; border: 1px solid var(--border); border-radius: 8px; display: block; }
.game-help { color: var(--muted); font-size: 12.5px; text-align: center; }
.game-over {
  position: absolute; inset: 0; background: rgba(8, 10, 14, .82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border-radius: 8px;
}
.stage-box { position: relative; }

.board2048 {
  display: grid; grid-template-columns: repeat(4, 72px); grid-auto-rows: 72px; gap: 8px;
  background: #14181f; padding: 8px; border-radius: 8px; border: 1px solid var(--border);
}
.cell2048 {
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 26px; background: #222833; color: #cfd6e4;
}
.cell2048.v2 { background: #2b3240; } .cell2048.v4 { background: #33405a; }
.cell2048.v8 { background: #3f5a8a; color: #fff; } .cell2048.v16 { background: #4a6fae; color: #fff; }
.cell2048.v32 { background: #5a7fd0; color: #fff; } .cell2048.v64 { background: #6f6ff0; color: #fff; }
.cell2048.v128 { background: #8a5cf0; color: #fff; font-size: 22px; }
.cell2048.v256 { background: #a44ce0; color: #fff; font-size: 22px; }
.cell2048.v512 { background: #c33fd0; color: #fff; font-size: 22px; }
.cell2048.v1024 { background: #e0358f; color: #fff; font-size: 19px; }
.cell2048.v2048 { background: #f5a524; color: #241a05; font-size: 19px; }
.cell2048.pop { animation: pop .12s ease; }
@keyframes pop { from { transform: scale(.86); } to { transform: scale(1); } }

.ms-grid { display: inline-grid; gap: 2px; background: #0b0d12; padding: 6px; border-radius: 8px; border: 1px solid var(--border); }
.ms-cell {
  width: 26px; height: 26px; border-radius: 3px; background: #262d3a; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  user-select: none; color: #cfd6e4;
}
.ms-cell:hover { background: #313a4b; }
.ms-cell.open { background: #171b22; cursor: default; }
.ms-cell.open:hover { background: #171b22; }
.ms-cell.boom { background: var(--danger); color: #fff; }
.ms-cell.flag { color: var(--warn); }
.ms-cell.n1 { color: #6ea8ff; } .ms-cell.n2 { color: #3ecf8e; } .ms-cell.n3 { color: #ff7b72; }
.ms-cell.n4 { color: #b18cff; } .ms-cell.n5 { color: #f5a524; } .ms-cell.n6 { color: #4fd6d6; }
.ms-cell.n7 { color: #cfd6e4; } .ms-cell.n8 { color: #8b93a7; }

.mem-grid { display: grid; grid-template-columns: repeat(4, 78px); grid-auto-rows: 78px; gap: 10px; }
.mem-cell {
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s;
  background: linear-gradient(135deg, #2b3550, #3a2d55); border: 1px solid var(--border);
}
.mem-cell.flipped { background: var(--panel-2); cursor: default; }
.mem-cell.matched { background: rgba(62, 207, 142, .16); border-color: rgba(62, 207, 142, .5); cursor: default; }
.mem-cell svg { width: 34px; height: 34px; }

/* ---------- settings ---------- */
.settings-wrap { max-width: 720px; margin: 0 auto; padding: 22px 16px 60px; }
.panel {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px;
}
.panel h3 { margin: 0 0 4px; font-size: 15px; }
.panel .desc { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 5px; }
.row { display: flex; gap: 10px; align-items: center; }
.row .grow { flex: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat {
  background: var(--panel-2); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 11px 13px;
}
.stat .sv { font-size: 17px; font-weight: 600; }
.stat .sl { font-size: 12px; color: var(--muted); }

@media (max-width: 820px) {
  .ai-side { display: none; }
  .file-head, .file-row { grid-template-columns: 26px 1fr 90px; }
  .file-head span:nth-child(4), .file-head span:nth-child(5),
  .ftime, .fact { display: none; }
  .nav-item span:last-child { display: none; }
  .brand { min-width: 0; }
}
