/* KB&G Enterprise. Navy chrome from the KB&G logo, white content, one accent. Dark mode is a near-black charcoal with a hint of navy. */
:root {
  --chrome-0: #07112a;
  --chrome-1: #0a1733;
  --chrome-2: #0e1f42;
  --chrome-hover: rgba(255, 255, 255, .06);
  --chrome-active: rgba(255, 255, 255, .11);
  --chrome-text: #e8edf6;
  --chrome-muted: #8d9bb6;
  --chrome-border: rgba(255, 255, 255, .08);

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --surface-3: #e6e9ef;
  --text: #101828;
  --muted: #5d6779;
  --faint: #8b94a5;
  --border: #e3e6ec;
  --border-strong: #cfd5df;
  --accent: #1f4fd1;
  --accent-hover: #1a43b5;
  --accent-soft: #eaf0fe;
  --red: #c8102e;
  --red-soft: #fdecee;
  --green: #15803d;
  --amber: #b45309;
  --amber-soft: #fdf3e2;
  --gold: #b8901f;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --shadow-lg: 0 16px 48px rgba(7, 17, 42, .24), 0 2px 8px rgba(7, 17, 42, .08);
  --radius: 8px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --serif: "Trajan Pro", "Cinzel", Georgia, "Times New Roman", serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --chrome-0: #060e22;
  --chrome-1: #08132c;
  --chrome-2: #0b1938;
  --chrome-hover: rgba(255, 255, 255, .06);
  --chrome-active: rgba(91, 130, 240, .22);
  --chrome-text: #e6ebf5;
  --chrome-muted: #8597bb;
  --chrome-border: rgba(255, 255, 255, .07);

  --bg: #0e1219;
  --surface: #151a23;
  --surface-2: #1b212c;
  --surface-3: #242b38;
  --text: #e6e9ef;
  --muted: #a0a8b8;
  --faint: #6f7889;
  --border: #232a36;
  --border-strong: #323b4b;
  --accent: #6b8ff5;
  --accent-hover: #2a5ae0;
  --accent-soft: #14244d;
  --accent-strong: #1f4fd1;
  --red: #f0505e;
  --red-soft: #3a161c;
  --green: #3fbf6f;
  --amber: #f0a43a;
  --amber-soft: #33260f;
  --gold: #d9b24a;
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--chrome-1); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
::selection { background: rgba(31, 79, 209, .2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120, 135, 160, .32); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(120, 135, 160, .5); }
::-webkit-scrollbar-track { background: transparent; }

/* icons */
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -3px; }
.i.muted { color: var(--faint); }

/* ---------- title bar (Windows draws its controls on the right) ---------- */
#titlebar {
  height: 36px; display: flex; align-items: center; gap: 16px; padding: 0 12px;
  background: var(--chrome-0); color: var(--chrome-text); -webkit-app-region: drag; user-select: none;
  border-bottom: 1px solid var(--chrome-border);
}
.tb-brand { display: flex; align-items: center; gap: 8px; min-width: 210px; }
.tb-brand img { width: 18px; height: 18px; border-radius: 4px; }
.tb-mark { font: 700 14px var(--serif); letter-spacing: .4px; color: #e3e8f0; }
.tb-mark b { color: #e0334f; }
.tb-name { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--chrome-muted); }
.tb-search {
  -webkit-app-region: no-drag; flex: 0 1 480px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--chrome-border); border-radius: 6px; padding: 0 8px 0 10px; height: 26px;
  color: var(--chrome-muted); transition: background .15s, border-color .15s;
}
.tb-search:focus-within { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.tb-search .i { width: 14px; height: 14px; }
.tb-search { cursor: pointer; font: inherit; text-align: left; }
.tb-search:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }
.tb-search span { flex: 1; font-size: 12.5px; }
.tb-search kbd { font: 11px var(--font); color: var(--chrome-muted); border: 1px solid var(--chrome-border); border-radius: 4px; padding: 0 5px; }
.tb-spacer { width: 140px; flex-shrink: 0; }

#root { height: calc(100% - 36px); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 68px 248px 1fr; height: 100%; }
.shell.with-members { grid-template-columns: 68px 248px 1fr 232px; }

.rail { background: var(--chrome-1); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; border-right: 1px solid var(--chrome-border); }
.rail-item {
  position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; padding: 0;
  background: none; color: var(--chrome-text); cursor: pointer; border: 0; transition: transform .12s;
}
.rail-item:hover { transform: translateY(-1px); }
.rail-item::before {
  content: ''; position: absolute; left: -12px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0;
  background: #fff; transform: translateY(-50%); transition: height .15s;
}
.rail-item:hover::before { height: 16px; }
.rail-item.active::before { height: 32px; }
.rail-item.active .emb, .rail-item.active .rail-logo { box-shadow: 0 0 0 2px var(--chrome-1), 0 0 0 4px rgba(255, 255, 255, .85); }
.rail-logo { width: 44px; height: 44px; border-radius: 12px; display: block; }
.rail-sep { width: 28px; height: 1px; background: var(--chrome-border); margin: 2px 0; }
.rail-badge {
  position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font: 600 11px/18px var(--font); text-align: center; border: 2px solid var(--chrome-1); box-sizing: content-box;
}
.rail-add { border: 1px dashed rgba(255, 255, 255, .22); color: var(--chrome-muted); }
.rail-add:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.rail-add .i { width: 18px; height: 18px; }

/* company emblems: a tile in the company color with a line icon, or an uploaded logo */
.emb {
  --c: #1e3a8a;
  width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; flex-shrink: 0; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 82%, #ffffff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 72%, #000000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .15);
}
.emb .i { width: 22px; height: 22px; stroke-width: 1.6; }
.emb.img { background: #fff; }
.emb.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emb.md { width: 34px; height: 34px; border-radius: 9px; }
.emb.md .i { width: 18px; height: 18px; }
.emb.sm { width: 26px; height: 26px; border-radius: 7px; }
.emb.sm .i { width: 15px; height: 15px; }
.emb.xs { width: 20px; height: 20px; border-radius: 5px; box-shadow: none; }
.emb.xs .i { width: 12px; height: 12px; stroke-width: 2; }

.sidebar { background: var(--chrome-2); color: var(--chrome-text); display: flex; flex-direction: column; min-width: 0; }
.sb-head { padding: 16px 16px 14px; border-bottom: 1px solid var(--chrome-border); }
.sb-head h2 { margin: 0; font: 600 15px/1.3 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.sb-head p { margin: 3px 0 0; font-size: 12px; color: var(--chrome-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 10px 8px 16px; }
.sb-section { margin-top: 18px; }
.sb-section-head {
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--chrome-muted);
}
.sb-section-head button { background: none; border: 0; color: var(--chrome-muted); cursor: pointer; padding: 2px; border-radius: 4px; display: grid; }
.sb-section-head button:hover { color: #fff; background: var(--chrome-hover); }
.sb-section-head .i { width: 14px; height: 14px; }
.sb-item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px; border-radius: 6px; border: 0;
  background: none; color: var(--chrome-muted); cursor: pointer; text-align: left; font-size: 13.5px; transition: background .1s, color .1s;
}
.sb-item:hover { background: var(--chrome-hover); color: var(--chrome-text); }
.sb-item.active { background: var(--chrome-active); color: #fff; }
.sb-item.unread { color: #fff; font-weight: 600; }
.sb-item .sb-ico { width: 20px; display: grid; place-items: center; flex-shrink: 0; }
.sb-item .sb-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-item .sb-count { font-size: 11.5px; color: var(--chrome-muted); font-variant-numeric: tabular-nums; }
.sb-item .sb-badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; text-align: center; padding: 0 5px; border-radius: 9px; line-height: 18px; }
.sb-item .lock { display: grid; opacity: .6; }
.sb-item .lock .i { width: 13px; height: 13px; }

.me-panel { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: rgba(0, 0, 0, .14); border-top: 1px solid var(--chrome-border); }
.me-panel .me-text { flex: 1; min-width: 0; }
.me-panel .me-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-panel .me-role { font-size: 11.5px; color: var(--chrome-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { background: none; border: 0; color: var(--chrome-muted); cursor: pointer; width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--chrome-hover); color: #fff; }

/* ---------- avatars ---------- */
.av {
  position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; user-select: none;
}
.av.sm { width: 26px; height: 26px; font-size: 10.5px; }
.av.xs { width: 20px; height: 20px; font-size: 8.5px; }
.av.lg { width: 52px; height: 52px; font-size: 18px; }
.av .i { width: 55%; height: 55%; stroke-width: 1.75; }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #7b8698; border: 2px solid var(--chrome-2); }
.av.sm .dot { width: 8px; height: 8px; }
.av .dot.on { background: #22c55e; }
.av.ai-claude { background: #c4643f; }
.av.ai-gpt { background: #0f766e; }
.av.ai-local { background: #4f46e5; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2, var(--text)); margin-right: 6px; }
.tag.green { background: #dcfce7; color: #166534; }
.tag.red { background: #fee2e2; color: #991b1b; }
.av.sys { background: none; border-radius: 9px; overflow: hidden; }
.av.sys img { width: 100%; height: 100%; display: block; }
.av.team { background: #475569; }

/* ---------- main area ---------- */
.main { background: var(--bg); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.main-head {
  display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 52px; flex-shrink: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.main-head .mh-title { font: 600 15px var(--font-display); letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.main-head .mh-title .muted { color: var(--faint); }
.main-head .mh-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 90px; border-left: 1px solid var(--border); padding-left: 12px; }
.main-head .mh-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; align-items: center; }
.main-body { flex: 1; overflow-y: auto; min-height: 0; }
.pad { padding: 28px 32px; }

/* buttons, inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 500; font-size: 13px; white-space: nowrap;
  transition: background .1s, border-color .1s, box-shadow .1s; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.primary { background: var(--accent-strong, var(--accent)); border-color: var(--accent-strong, var(--accent)); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: #f1b8c1; }
.btn.ai .i { color: var(--accent); }
.btn.gold .i { color: var(--gold); }
.btn.icon { width: 32px; padding: 0; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.sm.icon { width: 28px; padding: 0; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 15px; border-radius: 8px; }
/* Settings → Claude Code: one button, then three numbered steps */
.connect-card { max-width: 560px; }
.connect-steps { display: flex; flex-direction: column; gap: 14px; }
.connect-step { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.connect-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-strong, var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.connect-steps details .codebox { margin: 6px 0; }
details.card > summary { cursor: pointer; }
.btn:disabled { opacity: .55; cursor: default; }
.input, .select, .textarea {
  width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); outline: 0;
  transition: border-color .1s, box-shadow .1s;
}
.textarea { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 11.5px; font-weight: 500;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; border: 1px solid transparent;
}
.chip .i { width: 12px; height: 12px; stroke-width: 2; }
.chip.urgent { background: var(--red-soft); color: var(--red); }
.chip.high { background: var(--amber-soft); color: var(--amber); }
.chip.medium, .chip.low { background: transparent; border-color: var(--border); }
.chip.late { background: var(--red-soft); color: var(--red); }
.chip.h { background: var(--accent-soft); color: var(--accent); }
.chip-x { display: inline-grid; color: var(--faint); margin-left: 2px; cursor: pointer; }
.chip-x:hover { color: var(--red); }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin: 0 6px; vertical-align: middle; }
.pinned { display: inline-grid; color: var(--faint); }
.pinned .i { width: 13px; height: 13px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 12px; border-radius: 5px; cursor: pointer; font-weight: 500; font-size: 13px; color: var(--muted); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card h3 { margin: 0 0 12px; font: 600 13.5px var(--font-display); display: flex; align-items: center; gap: 8px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--muted); padding: 44px 24px; }
.empty .big { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); color: var(--faint); display: grid; place-items: center; margin-bottom: 8px; }
.empty .big .i { width: 22px; height: 22px; }
.empty b { color: var(--text); font-weight: 600; }
.empty span { font-size: 13px; max-width: 420px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.messages { flex: 1; overflow-y: auto; padding: 12px 0 8px; min-height: 0; }
.msg { display: flex; gap: 12px; padding: 3px 20px; position: relative; }
.msg:hover { background: var(--surface-2); }
.msg.first { margin-top: 14px; padding-top: 4px; }
.msg .av { margin-top: 2px; }
.msg .gutter { width: 36px; flex-shrink: 0; font-size: 10.5px; color: transparent; text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.msg:hover .gutter { color: var(--faint); }
.msg-body { flex: 1; min-width: 0; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.msg-name { font-weight: 600; }
.msg-time { font-size: 11.5px; color: var(--faint); }
.role-tag { font-size: 10.5px; font-weight: 600; padding: 0 5px; border-radius: 3px; line-height: 16px; background: var(--surface-3); color: var(--muted); }
.role-tag.cofounder { background: #0e1f42; color: #fff; }
.role-tag.ai { background: var(--accent-soft); color: var(--accent); }
.role-tag.manager { background: #e2f3ef; color: #0f766e; }
:root[data-theme="dark"] .role-tag.cofounder { background: #284270; }
.msg-text { word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.55; }
.msg-text p { margin: 0 0 4px; }
.msg-text p:last-child { margin-bottom: 0; }
.msg-text ul, .msg-text ol { margin: 4px 0; padding-left: 20px; }
.msg-text li { margin: 1px 0; }
.msg-text code { font: 12.5px var(--mono); background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.msg-text pre { background: #0b1733; color: #dbe5fb; padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.msg-text pre code { background: none; padding: 0; color: inherit; }
.msg-text blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.msg-text h1, .msg-text h2, .msg-text h3 { font: 600 14.5px var(--font-display); margin: 10px 0 4px; }
.msg-text .mention { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.msg-text .mention.me { background: var(--amber-soft); color: var(--amber); }
.msg.system .msg-text { color: var(--muted); }
.msg.mentions-me { background: rgba(217, 119, 6, .06); box-shadow: inset 2px 0 0 var(--amber); }
.msg-edited { font-size: 11px; color: var(--faint); }
.msg-actions {
  position: absolute; right: 20px; top: -16px; display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow); padding: 2px; z-index: 2;
}
.msg:hover .msg-actions { display: flex; }
.msg-actions button { border: 0; background: none; cursor: pointer; width: 30px; height: 28px; border-radius: 6px; color: var(--muted); display: grid; place-items: center; }
.msg-actions button:hover { background: var(--surface-2); color: var(--text); }
.react-pop { position: fixed; z-index: 95; display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); }
.react-pop button { width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 18px; }
.react-pop button:hover { background: var(--surface-2); }
.reactions { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.reaction { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 0 8px; cursor: pointer; font-size: 12px; height: 24px; color: var(--muted); }
.reaction:hover { border-color: var(--border-strong); }
.reaction.mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ai-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.ai-actions span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: #ecfbf1; color: var(--green); border-radius: 4px; padding: 1px 7px; }
.ai-actions span .i { width: 12px; height: 12px; stroke-width: 2.25; }
.ai-actions strong { font-weight: 600; }
:root[data-theme="dark"] .ai-actions span { background: #0f3324; color: #6ee7a6; }
.share-card { margin-top: 6px; border: 1px solid var(--border); border-left: 3px solid #c4643f; border-radius: 8px; background: var(--surface); max-width: 720px; overflow: hidden; }
.share-card.chatgpt { border-left-color: #0f766e; }
.share-card.other, .share-card.note { border-left-color: var(--accent); }
.share-card header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 600; border-bottom: 1px solid var(--border); }
.share-card .share-content { padding: 8px 12px; max-height: 180px; overflow: hidden; position: relative; }
.share-card .share-content.open { max-height: none; }
.share-card .share-content:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--surface)); }
.share-card footer { display: flex; gap: 6px; padding: 6px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.src { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; color: #fff; background: var(--accent); }
.src.claude { background: #c4643f; }
.src.chatgpt { background: #0f766e; }
.src.agent { background: #4338ca; }
.src.note { background: #475569; }
.typing { height: 22px; padding: 0 20px; font-size: 12px; color: var(--muted); }
.typing .dots i { display: inline-block; width: 4px; height: 4px; margin-right: 2px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; vertical-align: middle; }
.typing .dots i:nth-child(2) { animation-delay: .2s; }
.typing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { padding: 0 20px 18px; flex-shrink: 0; position: relative; }
.composer-box { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-sm); transition: border-color .1s, box-shadow .1s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; background: none; padding: 12px 14px 4px; max-height: 240px; min-height: 44px; line-height: 1.5; }
.composer-tools { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px; }
.composer-tools .hint { font-size: 11.5px; color: var(--faint); margin-left: auto; }
.ai-pill { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; height: 26px; padding: 0 8px; cursor: pointer; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.ai-pill:hover { border-color: var(--border-strong); color: var(--text); }
.ai-pill .i { width: 14px; height: 14px; }
.ai-pill .glyph-claude { color: #c4643f; display: grid; }
.ai-pill .glyph-gpt { color: #0f766e; display: grid; }
.mention-pop { position: absolute; bottom: 100%; left: 20px; width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; z-index: 5; }
.mention-pop button { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; text-align: left; }
.mention-pop button.on, .mention-pop button:hover { background: var(--accent-soft); }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 20px 20px 4px; color: var(--faint); font-size: 11.5px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.load-older { display: flex; margin: 0 auto 8px; }

/* members panel */
.members { background: var(--surface); border-left: 1px solid var(--border); overflow-y: auto; padding: 14px 10px; }
.members h4 { margin: 16px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); display: flex; gap: 6px; }
.members h4:first-child { margin-top: 4px; }
.member { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; }
.member:hover { background: var(--surface-2); }
.member .av .dot { border-color: var(--surface); }
.member.off { opacity: .5; }
.member-name { font-weight: 500; font-size: 13px; }
.member-title { font-size: 11.5px; color: var(--muted); }

/* ---------- tasker board ---------- */
.board { display: flex; gap: 12px; padding: 18px 20px; height: 100%; overflow-x: auto; align-items: flex-start; }
.col { width: 284px; flex-shrink: 0; background: var(--surface-2); border-radius: 10px; display: flex; flex-direction: column; max-height: 100%; border: 1px solid var(--border); }
.col.drop { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 600; font-size: 13px; }
.col-head .ph-dot { width: 8px; height: 8px; border-radius: 50%; }
.col-head .count { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.col-head .chip { margin-left: auto; }
.col-body { padding: 2px 8px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .1s, box-shadow .1s; }
.tcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.tcard.dragging { opacity: .4; }
.tcard.done .tcard-title { text-decoration: line-through; color: var(--muted); }
.tcard-title { font-weight: 500; line-height: 1.4; }
.tcard-foot { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.tcard-foot:empty { display: none; }
.tcard-foot .av { margin-left: auto; }
.quick-add { display: flex; margin: 0 8px 8px; }
.quick-add input { flex: 1; border: 1px solid transparent; background: transparent; border-radius: 6px; height: 32px; padding: 0 10px; outline: 0; color: var(--muted); }
.quick-add input::placeholder { color: var(--faint); }
.quick-add input:hover { background: var(--surface-3); }
.quick-add input:focus { border-color: var(--accent); background: var(--surface); color: var(--text); }

/* ---------- drawer, modal, toast ---------- */
.scrim { position: fixed; inset: 36px 0 0 0; background: rgba(7, 17, 42, .32); z-index: 40; animation: fade .15s; }
.drawer {
  position: fixed; top: 36px; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--surface); z-index: 41;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; border-left: 1px solid var(--border);
}
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--border); }
.drawer-head input { font: 600 18px var(--font-display); letter-spacing: -.01em; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; margin-left: -7px; background: none; outline: 0; width: 100%; }
.drawer-head input:hover { border-color: var(--border); }
.drawer-head input:focus { border-color: var(--accent); }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.crumbs .i { width: 12px; height: 12px; color: var(--faint); }
.crumbs a { color: var(--muted); cursor: pointer; }
.crumbs .chip { margin-left: 6px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; background: var(--surface-2); }
.close-x { border: 0; background: none; cursor: pointer; color: var(--muted); width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; }
.close-x:hover { background: var(--surface-2); color: var(--text); }
.close-x .i { width: 18px; height: 18px; }
.fields { display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; align-items: center; margin-bottom: 20px; }
.fields > span { font-size: 12.5px; color: var(--muted); }
.sect-title { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 8px; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.check-row input[type=checkbox] { width: 16px; height: 16px; }
.check-row .x { margin-left: auto; opacity: 0; border: 0; background: none; cursor: pointer; color: var(--faint); display: grid; }
.check-row .x .i { width: 14px; height: 14px; }
.check-row:hover .x { opacity: 1; }
.check-row.done span { text-decoration: line-through; color: var(--muted); }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-body { background: var(--surface-2); border-radius: 8px; padding: 6px 10px; flex: 1; }

.modal-wrap { position: fixed; inset: 36px 0 0 0; display: grid; place-items: center; z-index: 50; background: rgba(7, 17, 42, .45); animation: fade .15s; padding: 20px; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: min(520px, 100%); max-height: calc(100vh - 80px); display: flex; flex-direction: column; animation: pop .16s ease-out; border: 1px solid var(--border); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.modal-head h3 { margin: 0; font: 600 16px var(--font-display); letter-spacing: -.01em; flex: 1; display: flex; align-items: center; gap: 8px; }
.modal-body { padding: 16px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 20px 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes pop { from { transform: scale(.98); opacity: 0; } }

#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { background: var(--chrome-1); color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-lg); max-width: 380px; animation: pop .18s; border-left: 3px solid var(--accent); font-size: 13px; }
.toast.err { border-left-color: #f04861; }
.toast.ok { border-left-color: #22c55e; }

.confetti { position: absolute; top: -10px; width: 7px; height: 12px; border-radius: 2px; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { top: 110%; transform: rotate(720deg) translateX(40px); } }

/* ---------- dashboard ---------- */
.hero { margin-bottom: 24px; }
.hero h1 { margin: 0; font: 600 24px var(--font-display); letter-spacing: -.02em; }
.hero p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cos { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 1250px) { .grid.three { grid-template-columns: 1fr 1fr; } }
.section-title { font: 600 14px var(--font-display); margin: 28px 0 12px; }
.rings { display: flex; justify-content: space-around; gap: 8px; }
.ring { text-align: center; }
.ring svg { display: block; margin: 0 auto 6px; }
.ring b { display: block; font-size: 13px; font-weight: 600; }
.ring small { color: var(--muted); }
.co-tile { padding: 16px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.co-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.co-tile .co-name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.co-tile .co-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-tile .co-role { color: var(--muted); font-size: 12px; margin: 4px 0 14px 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-stats { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.co-stats b { display: block; font: 600 18px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.co-stats .late b { color: var(--red); }
.bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.list-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover .lr-title { color: var(--accent); }
.list-row input[type=checkbox] { width: 16px; height: 16px; }
.lr-title { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.briefing { max-height: 420px; overflow-y: auto; }

/* goals */
.goal { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.goal:last-child { border-bottom: 0; }
.goal.done .goal-title { text-decoration: line-through; color: var(--muted); }
.goal input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.goal-title { font-weight: 500; }
.goal-meta { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; margin-top: 2px; }
.goal-meta .i { width: 13px; height: 13px; }
.goal-prog { width: 230px; display: flex; align-items: center; gap: 6px; }
.goal-prog .bar { flex: 1; margin: 0; height: 6px; border-radius: 3px; }
.goal-prog .num { font-size: 12px; font-weight: 600; width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
.goal-prog button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--muted); }
.goal-prog button:hover { color: var(--text); background: var(--surface-2); }
.period-nav { display: flex; align-items: center; gap: 6px; }
.period-nav .btn { width: 28px; padding: 0; }
.period-nav b { min-width: 150px; text-align: center; font-weight: 600; }

/* brain */
.brain-card { padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .12s, box-shadow .12s; }
.brain-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.brain-card h4 { margin: 0; font: 600 14.5px var(--font-display); }
.brain-card .excerpt { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.md-doc { line-height: 1.65; }
.md-doc pre { background: #0b1733; color: #dbe5fb; padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.md-doc code { font: 12.5px var(--mono); }

/* AI lab */
.lab { display: grid; grid-template-columns: 248px 1fr; height: 100%; min-height: 0; }
.lab-threads { border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; padding: 12px 8px; }
.lab-thread { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.lab-thread span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: 13px; }
.lab-thread small { color: var(--faint); font-size: 11.5px; }
.lab-thread:hover { background: var(--surface-2); }
.lab-thread.on { background: var(--accent-soft); }
.lab-thread.on span { color: var(--accent); }
.lab-chat { display: flex; flex-direction: column; min-height: 0; }
.bubble-row { display: flex; gap: 12px; padding: 10px 24px; max-width: 920px; }
.bubble-row.me { flex-direction: row-reverse; margin-left: auto; }
.bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-sm); min-width: 0; }
.bubble-row.me .bubble { background: var(--accent); color: #fff; border-color: var(--accent); }
.bubble-row.me .bubble .msg-text code { background: rgba(255, 255, 255, .2); }
.bubble-tools { display: flex; gap: 6px; margin-top: 6px; }
.lab-welcome { max-width: 620px; margin: 56px auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lab-welcome .big { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); margin-bottom: 14px; }
.lab-welcome .big.ai-claude { background: #c4643f; color: #fff; }
.lab-welcome .big.ai-gpt { background: #0f766e; color: #fff; }
.lab-welcome .big.ai-local { background: #4f46e5; color: #fff; }
.lab-welcome .big .i { width: 26px; height: 26px; }
.lab-welcome h2 { margin: 0 0 6px; font: 600 19px var(--font-display); letter-spacing: -.01em; }
.lab-welcome p { margin: 0; }
.lab-welcome .ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; text-align: left; width: 100%; }
.lab-welcome .ideas button { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px 14px; cursor: pointer; text-align: left; color: var(--text); box-shadow: var(--shadow-sm); }
.lab-welcome .ideas button:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

/* settings */
.settings { display: grid; grid-template-columns: 228px 1fr; height: 100%; min-height: 0; }
.settings-nav { background: var(--surface); border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 0 10px; height: 34px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--muted); }
.settings-nav button:hover { background: var(--surface-2); color: var(--text); }
.settings-nav button.on { background: var(--accent-soft); color: var(--accent); }
.settings-nav .signout { margin-top: auto; color: var(--red); }
.settings-nav .signout:hover { background: var(--red-soft); color: var(--red); }
.settings-body { overflow-y: auto; padding: 28px 36px; }
.settings-body h2 { margin: 0 0 4px; font: 600 20px var(--font-display); letter-spacing: -.01em; }
.settings-body > p { margin: 0 0 20px; color: var(--muted); max-width: 720px; }
.settings-body .card { margin-bottom: 16px; }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px; border-bottom: 1px solid var(--border); }
table.tbl td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
.codebox { font: 12.5px var(--mono); background: #0b1733; color: #dbe5fb; padding: 10px 12px; border-radius: 8px; word-break: break-all; user-select: all; }
.invite-code { font: 600 24px var(--mono); letter-spacing: 3px; text-align: center; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; user-select: all; }
.swatches { display: flex; gap: 6px; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 2px var(--text); }
.co-form { display: grid; grid-template-columns: 120px 1fr; gap: 4px 24px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.co-form-id { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 22px; }
.co-form-logo { display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 100%; }
.co-form-fields { display: grid; grid-template-columns: 1fr 96px 180px; gap: 0 12px; }
.co-form-fields .wide { grid-column: span 2; }
.co-form-fields .field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.co-form-fields .field.wide:last-child { grid-column: 1 / -1; }
.input.color { padding: 3px; cursor: pointer; width: 64px; }
.co-form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.emb.lg { width: 72px; height: 72px; border-radius: 18px; }
.emb.lg .i { width: 34px; height: 34px; stroke-width: 1.5; }
.emblem-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.emblem-pick { width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.emblem-pick:hover { background: var(--surface-2); color: var(--text); }
.emblem-pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.emblem-row label.btn { cursor: pointer; }

/* ---------- auth screens ---------- */
.auth { height: 100%; display: grid; place-items: center; background: radial-gradient(ellipse at 50% -10%, #193774 0%, #08142f 55%, #040b1c 100%); }
.auth-card { width: 400px; background: #fff; border-radius: 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .45); overflow: hidden; color: #101828; }
/* #101624 is the background of the logo image itself, so the picture blends into the header. */
.auth-logo { text-align: center; padding: 18px 24px 20px; background: #101624; }
.auth-logo img { display: block; width: 260px; max-width: 100%; height: auto; margin: 0 auto 6px; }
.auth-logo .sub { letter-spacing: 7px; padding-left: 7px; font-size: 11px; color: #c4cfe2; }
.auth-card > h2, .auth-card > p, .auth-card > form, .auth-card > .auth-switch { margin-left: 28px; margin-right: 28px; }
.auth-card > h2 { margin-top: 24px; margin-bottom: 4px; font: 600 18px var(--font-display); }
.auth-card > p { margin-top: 0; margin-bottom: 16px; color: #5d6779; font-size: 13px; }
.auth-card .input { background: #fff; color: #101828; border-color: #cfd5df; }
.auth-card .btn.primary { width: 100%; height: 38px; margin-top: 4px; background: #1f4fd1; border-color: #1f4fd1; }
.auth-switch { text-align: center; margin-top: 14px; margin-bottom: 4px; font-size: 13px; color: #5d6779; }
.auth-card > .auth-switch:last-child { margin-bottom: 24px; }
.auth-switch a { cursor: pointer; font-weight: 600; color: #1f4fd1; }
.auth-err { color: var(--red); font-size: 13px; min-height: 18px; margin-bottom: 4px; }

/* ---------- startup screen ---------- */
#boot-ui { position: fixed; inset: 0; z-index: 101; display: none; background: #101624; transition: opacity .45s; }
#boot-ui.out { opacity: 0; }
.boot-center { margin: auto; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.boot-center.show { opacity: 1; transform: none; }
.boot-logo { display: block; width: 420px; max-width: 80vw; height: auto; margin: 0 auto 8px; }
.boot-sub { font: 600 14px var(--font); letter-spacing: 9px; padding-left: 9px; color: #dbe4f3; }
.boot-bar { width: 160px; height: 2px; margin: 34px auto 0; border-radius: 2px; background: rgba(219, 228, 243, .15); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; background: #dbe4f3; border-radius: 2px; animation: boot-bar 1.1s ease-in-out infinite; }
@keyframes boot-bar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* ---------- navigation ---------- */
.crumb { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 3px 6px; margin-left: -6px; border-radius: 5px; cursor: pointer; color: var(--muted); font: 500 14px var(--font); }
.crumb:hover { background: var(--surface-2); color: var(--text); }
.crumb-sep { width: 14px; height: 14px; color: var(--faint); }
.crumb-mid { color: var(--muted); font: 500 14px var(--font); }
.mh-title .emb.xs { margin-right: 2px; }
.sb-section-head .sb-toggle { display: flex; align-items: center; gap: 4px; padding: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.sb-section-head .sb-toggle:hover { background: none; color: #fff; }
.sb-toggle .chev { width: 12px; height: 12px; stroke-width: 2.25; transform: rotate(90deg); transition: transform .15s; }
.sb-section.closed .sb-toggle .chev { transform: none; }
.sb-scroll > .sb-item:first-child { margin-bottom: 4px; }
.rail-tip { position: fixed; z-index: 96; transform: translateY(-50%); background: #020814; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; box-shadow: var(--shadow-lg); pointer-events: none; opacity: 0; transition: opacity .1s; white-space: nowrap; }
.rail-tip.on { opacity: 1; }

/* quick switcher */
.modal-wrap.switcher { place-items: start center; padding-top: 12vh; }
.switcher-modal { width: min(620px, 100%); overflow: hidden; }
.switcher-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.switcher-input .i { width: 18px; height: 18px; color: var(--faint); }
.switcher-input input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; }
.switcher-input kbd { font: 11px var(--font); color: var(--faint); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.switcher-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.sw-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--text); }
.sw-item > .i { color: var(--muted); }
.sw-item.on { background: var(--accent-soft); }
.sw-label { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.sw-sub { color: var(--faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.sw-type { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }

/* dashboard and company overview */
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.day-group + .day-group { margin-top: 16px; }
.day-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); display: flex; gap: 6px; margin-bottom: 2px; }
.day-label span { color: var(--muted); }
.co-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.co-hero h1 { margin: 0; font: 600 24px var(--font-display); letter-spacing: -.02em; }
.co-hero p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font: 600 22px var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.bad b { color: var(--red); }
.tasker-row { padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.tasker-row:first-of-type { padding-top: 4px; }
.tasker-row:last-child { border-bottom: 0; padding-bottom: 0; }
.tasker-row:hover .lr-title { color: var(--accent); }
.phase-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; margin: 8px 0 6px; background: var(--surface-3); }
.phase-bar i { display: block; }
.phase-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.phase-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.recent-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.recent-row:last-child { border-bottom: 0; }
.recent-row b { font-weight: 600; white-space: nowrap; }
.recent-text { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-row:hover .recent-text { color: var(--text); }
@media (max-width: 1150px) { .dash-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* knowledge */
.know-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.know-bar .input { width: 280px; margin-left: auto; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 500; }
.filter-chip:hover { color: var(--text); }
.filter-chip.on { background: var(--chrome-2); border-color: var(--chrome-2); color: #fff; }
.filter-chip .emb.xs { width: 18px; height: 18px; border-radius: 5px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1150px) { .grid.two { grid-template-columns: 1fr; } }

/* inside a company there's no sidebar: the overview is the navigation */
.shell.no-side { grid-template-columns: 68px 1fr; }
.shell.no-side.with-members { grid-template-columns: 68px 1fr 232px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 10px; }
.rail-icon { width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--chrome-muted); display: grid; place-items: center; cursor: pointer; }
.rail-icon:hover { background: var(--chrome-hover); color: #fff; }
.rail-icon .i { width: 20px; height: 20px; }
.rail-me { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.rail-me .av .dot { border-color: var(--chrome-1); }
.pad.narrow { max-width: 1180px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tasker-row .row .i:last-child { width: 14px; height: 14px; }
.chat-peek { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.chat-peek:last-child { border-bottom: 0; }
.chat-peek > div { min-width: 0; }
.chat-peek-text { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-peek:hover .chat-peek-text { color: var(--text); }
.dot-new { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* dark mode details */
:root[data-theme="dark"] .role-tag.manager { background: #12352f; color: #5eead4; }
:root[data-theme="dark"] .btn.danger:hover { border-color: #6b2630; }
:root[data-theme="dark"] .msg.mentions-me { background: rgba(240, 164, 58, .07); }
:root[data-theme="dark"] .filter-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
:root[data-theme="dark"] .emb.img { background: #1b212c; }

/* dark mode: navy accents */
:root[data-theme="dark"] .bubble-row.me .bubble { background: var(--accent-strong); border-color: var(--accent-strong); }
:root[data-theme="dark"] .seg button.on { background: var(--accent-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(107, 143, 245, .35); }
:root[data-theme="dark"] .card { border-color: #222b3c; }
:root[data-theme="dark"] .main-head { background: #10172a; border-bottom-color: #1b2540; }
:root[data-theme="dark"] .stat b { color: #f2f5fb; }
:root[data-theme="dark"] .bar i, :root[data-theme="dark"] .phase-bar { box-shadow: none; }
:root[data-theme="dark"] .composer-box:focus-within, :root[data-theme="dark"] .input:focus, :root[data-theme="dark"] .select:focus, :root[data-theme="dark"] .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 79, 209, .3); }

.rail-icon { position: relative; }
.rail-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--chrome-1); }

/* Files: the Files page, uploads in progress, and files in chat */
.file-list { overflow: hidden; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.file-row:first-child { border-top: 0; }
.file-row:hover { background: var(--surface-2); }
.file-ico { width: 38px; height: 38px; flex: none; border-radius: 8px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; overflow: hidden; }
.file-ico img { width: 100%; height: 100%; object-fit: cover; }
.file-main { flex: 1; min-width: 0; }
.file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.drop-hint { text-align: center; margin-top: 12px; }
[data-drop].dragging { outline: 2px dashed var(--accent); outline-offset: -8px; background: var(--accent-soft); }
.upload-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.upload-row .bar { grid-column: 1 / -1; margin-top: 2px; }
.composer #uploads .upload-row { margin-bottom: 6px; }
.staged-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 8px 0; }
.staged { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; padding: 4px 4px 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font-size: 12.5px; }
.staged .i { width: 14px; height: 14px; flex: none; color: var(--muted); }
.staged button { border: 0; background: none; color: var(--faint); cursor: pointer; display: grid; padding: 2px; border-radius: 4px; }
.staged button:hover { color: var(--red); background: var(--red-soft); }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.msg-file { display: flex; align-items: center; gap: 10px; width: 360px; max-width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.msg-file > .i { width: 22px; height: 22px; flex: none; color: var(--accent); }
.msg-file.gone { opacity: .6; }
.msg-pic { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); max-width: 360px; }
.msg-pic img { display: block; max-width: 100%; max-height: 280px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drive-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.file-row.folder { cursor: pointer; }
.file-row.folder .file-ico { color: var(--accent); background: var(--accent-soft); }
.mh-title .crumb .i { width: 14px; height: 14px; }
.stat.link { cursor: pointer; }
.stat.link:hover { border-color: var(--accent); }
.mh-sub a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); }

/* ---------- phones ---------- */
.mh-menu { display: none; }
@media (max-width: 760px) {
  #titlebar { gap: 10px; padding: 0 10px; padding-top: env(safe-area-inset-top); height: calc(44px + env(safe-area-inset-top)); }
  #root { height: calc(100% - 44px - env(safe-area-inset-top)); }
  .tb-brand { min-width: 0; }
  .tb-name, .tb-spacer, .tb-search kbd, .tb-search span { display: none; }
  .tb-search { margin-left: auto; width: 40px; justify-content: center; }
  .shell, .shell.with-members, .shell.no-side, .shell.no-side.with-members { grid-template-columns: 56px 1fr; position: relative; }
  .members { display: none; }
  .sidebar { position: absolute; z-index: 30; top: 0; bottom: 0; left: 56px; width: min(280px, 80vw); visibility: hidden; transform: translateX(-12px); opacity: 0; transition: transform .2s, opacity .2s, visibility .2s; box-shadow: var(--shadow-lg); }
  .shell.side-open .sidebar { visibility: visible; transform: none; opacity: 1; }
  .shell:not(.no-side) .main { grid-column: 2; grid-row: 1; }
  .mh-menu { display: inline-grid; }
  .rail { gap: 6px; padding: 8px 0; }
  .rail-logo, .rail-icon { width: 40px; height: 40px; }
  .main-head { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .main-head .mh-sub { display: none; }
  .main-head .mh-title { white-space: normal; flex: 1; min-width: 0; }
  .main-head .mh-actions { flex-wrap: wrap; margin-left: 0; width: 100%; }
  .main-head .mh-actions .btn { height: 32px; padding: 0 10px; }
  .pad { padding: 16px 14px; }
  .board { padding: 12px; }
  .col { width: 82vw; }
  .msg { padding: 3px 12px; gap: 10px; }
  .composer { padding: 0 10px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .composer-tools .hint { display: none; }
  .composer-tools { flex-wrap: wrap; }
  .modal-wrap { padding: 10px; inset: 44px 0 0 0; }
  .drawer { top: 44px; width: 100vw; }
  .auth-card { width: min(400px, 92vw); }
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  .file-row { flex-wrap: wrap; }
  .file-row .file-main { flex-basis: calc(100% - 52px); }
  .drive-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .drive-tabs .filter-chip { flex-shrink: 0; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; }
  .filter-chips .filter-chip { flex-shrink: 0; }
  .msg-file, .msg-pic { width: 100%; }
  /* Grid columns may shrink below their content's width; long titles get an ellipsis instead of widening the page. */
  .dash-grid, .grid, .grid.two, .grid.three, .grid.cos { grid-template-columns: minmax(0, 1fr) !important; }
  /* Task rows: the name gets its own line, the labels wrap underneath. */
  .list-row { min-width: 0; flex-wrap: wrap; row-gap: 4px; }
  .list-row .lr-title { flex: 1 1 calc(100% - 40px); min-width: 0; white-space: normal; }
  .rings { flex-wrap: wrap; justify-content: space-around; }
}

/* ---------- mail ---------- */
.mail-wrap { display: grid; grid-template-columns: 190px minmax(260px, 380px) 1fr; flex: 1; min-height: 0; }
.mail-folders { border-right: 1px solid var(--border); padding: 10px 8px; overflow-y: auto; background: var(--surface); }
.mail-folder { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--muted); font: 500 13px var(--font); text-align: left; }
.mail-folder span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-folder b { font-size: 11px; background: var(--accent); color: #fff; border-radius: 9px; padding: 0 6px; }
.mail-folder:hover { background: var(--surface-2); color: var(--text); }
.mail-folder.on { background: var(--accent-soft); color: var(--accent); }
.mail-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.mail-search { padding: 10px; border-bottom: 1px solid var(--border); }
#mail-list { overflow-y: auto; flex: 1; }
.mail-row { padding: 9px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.mail-row:hover { background: var(--surface-2); }
.mail-row.on { background: var(--accent-soft); }
.mail-row-top { display: flex; gap: 8px; }
.mail-from { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mail-date { font-size: 12px; color: var(--faint); flex-shrink: 0; }
.mail-subj { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.mail-row.unread .mail-from, .mail-row.unread .mail-subj { font-weight: 600; color: var(--text); }
.mail-row.unread { box-shadow: inset 3px 0 0 var(--accent); }
.mail-read { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.mail-read-head { padding: 14px 18px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mail-read-head h2 { margin: 0 0 6px; font: 600 18px var(--font-display); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.mail-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mail-atts a.staged { color: var(--text); text-decoration: none; }
.mail-pics { margin-top: 10px; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mail-frame { flex: 1; width: 100%; border: 0; background: #fff; min-height: 300px; }
.mail-back { display: none; margin-bottom: 6px; }
.mail-adv { margin: 4px 0 10px; }
.mail-adv summary { cursor: pointer; margin-bottom: 8px; }
.mail-compose textarea { width: 100%; min-height: 220px; }
@media (max-width: 1100px) { .mail-wrap { grid-template-columns: minmax(240px, 340px) 1fr; } .mail-folders { grid-column: 1 / -1; display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 6px 8px; } .mail-folder { width: auto; flex-shrink: 0; } }
@media (max-width: 760px) {
  .mail-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .mail-wrap .mail-read { display: none; }
  .mail-wrap.reading .mail-list, .mail-wrap.reading .mail-folders { display: none; }
  .mail-wrap.reading .mail-read { display: flex; grid-row: 1 / -1; }
  .mail-back { display: inline-grid; }
}

/* ---------- shared storage (the Drive) ---------- */
.st-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: #16a34a; padding: 0 10px; height: 30px; border-radius: 15px; background: rgba(22, 163, 74, .1); }
.st-online i, .st-ok i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }
.st-ok { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.st-hero { display: grid; grid-template-columns: 260px 1fr; align-items: center; padding: 18px 22px; margin-bottom: 22px; }
.st-hero-id { display: flex; align-items: center; gap: 14px; padding-right: 22px; border-right: 1px solid var(--border); }
.st-hero-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.st-hero-ico .i { width: 24px; height: 24px; }
.st-hero-use { padding-left: 22px; }
.st-hero-num { font-size: 13px; color: var(--muted); }
.st-hero-num b { font: 600 18px var(--font-display); color: var(--text); margin-right: 2px; }
.st-bar { height: 7px; margin: 8px 0 6px; border-radius: 4px; }
.st-bar i { border-radius: 4px; background: linear-gradient(90deg, var(--accent), #3b82f6); }
.st-drives { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; margin-bottom: 22px; overflow-x: auto; padding: 2px 2px 6px; }
.st-drive { text-align: left; padding: 14px; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, box-shadow .12s; }
.st-drive:hover { border-color: var(--border-strong); }
.st-drive.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); background: var(--accent-soft); }
.st-drive-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.st-drive-top > div { min-width: 0; }
.st-drive-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); flex-shrink: 0; }
.st-drive-ico .i { width: 18px; height: 18px; }
.st-drive .st-bar { height: 5px; margin: 8px 0 0; }
.st-browser { overflow: hidden; }
.st-browser-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.st-title { flex: 1; min-width: 160px; }
.st-title b { font: 600 17px var(--font-display); }
.st-crumbs { color: var(--muted); }
.st-crumbs a { cursor: pointer; color: var(--accent); }
.st-search .input { width: 240px; height: 34px; }
.st-view button .i { width: 15px; height: 15px; }
.st-ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; color: var(--muted); overflow: hidden; }
.st-ico.folder { color: var(--accent); }
.st-ico img { width: 100%; height: 100%; object-fit: cover; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); cursor: pointer; user-select: none; white-space: nowrap; }
.st-table th.on { color: var(--text); }
.st-table th .st-arrow { width: 13px; height: 13px; margin-left: 4px; }
.st-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.st-row:hover { background: var(--surface-2); }
.st-row.folder { cursor: pointer; }
.st-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-nm { display: flex; flex-direction: column; min-width: 0; gap: 2px; align-items: flex-start; }
.st-nm .file-name { max-width: 420px; }
.st-mod, .st-size, .st-owner { white-space: nowrap; color: var(--muted); }
.st-acts { text-align: right; white-space: nowrap; width: 1%; }
.st-acts .btn { margin-left: 2px; }
@media (hover: hover) { .st-row .st-acts > * { opacity: 0; transition: opacity .1s; } .st-row:hover .st-acts > * { opacity: 1; } }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.st-tile { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface); min-width: 0; }
.st-tile.folder { cursor: pointer; }
.st-tile:hover { border-color: var(--border-strong); }
.st-thumb { height: 96px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); margin-bottom: 8px; overflow: hidden; }
.st-thumb.folder { color: var(--accent); background: var(--accent-soft); }
.st-thumb .i { width: 30px; height: 30px; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-tile-acts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px; }
.st-foot { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 12px; color: var(--muted); background: var(--surface-2); }
@media (max-width: 900px) { .st-hero { grid-template-columns: 1fr; gap: 14px; } .st-hero-id { border-right: 0; padding-right: 0; } .st-hero-use { padding-left: 0; } .st-mod, .st-owner, th.st-mod, th.st-owner { display: none; } }
@media (max-width: 760px) { .st-search { width: 100%; order: 3; } .st-search .input { width: 100%; } .st-drives { grid-auto-columns: 62vw; } .st-size, th.st-size { display: none; } .st-nm .file-name { max-width: 40vw; } .st-table td, .st-table th { padding: 8px; } .st-acts { white-space: normal; width: 86px; min-width: 86px; } .st-acts .btn { margin: 1px; } .st-acts .btn.icon { width: 30px; height: 30px; } }
