/* Novexora Ops — one stylesheet, no build step.
   Phone first, widening to a sidebar layout on a real screen. Light and dark both
   defined as tokens so nothing is hard-coded to one of them. */

:root {
  color-scheme: light dark;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: #e2e6ec;
  --line-strong: #cfd6df;
  --text: #171c23;
  --text-dim: #5d6773;
  --text-faint: #8a939f;

  --accent: #3b5bdb;
  --accent-soft: #e7ecfd;
  --accent-text: #ffffff;

  --green: #2f9e60;
  --green-soft: #e3f5ea;
  --amber: #b7791f;
  --amber-soft: #fdf1dc;
  --red: #d13b3b;
  --red-soft: #fce8e8;
  --indigo: #4c6ef5;
  --indigo-soft: #e8ecfe;
  --slate: #5d6773;
  --slate-soft: #eceff3;
  --sand: #a1762f;
  --sand-soft: #f7efe1;
  --violet: #7a4fd0;
  --violet-soft: #f0e9fc;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 20, 26, .06), 0 4px 14px rgba(16, 20, 26, .05);
  --tap: 44px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --surface: #171c22;
    --surface-2: #1e242c;
    --line: #262d36;
    --line-strong: #333c47;
    --text: #e8ecf1;
    --text-dim: #9aa5b2;
    --text-faint: #6f7b89;

    --accent: #6683f0;
    --accent-soft: #1e2740;
    --accent-text: #0d1117;

    --green: #4cbb7f;  --green-soft: #172b21;
    --amber: #d9a441;  --amber-soft: #2c2415;
    --red: #e46a6a;    --red-soft: #2e1b1b;
    --indigo: #7b93f7; --indigo-soft: #1c2440;
    --slate: #9aa5b2;  --slate-soft: #212832;
    --sand: #c69a53;   --sand-soft: #2a2317;
    --violet: #a684ea; --violet-soft: #241c36;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 640; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.0625rem; }
h3 { font-size: .9375rem; }
p { margin: 0; }

.icon { width: 20px; height: 20px; display: block; flex: none; }
.icon-lg { width: 32px; height: 32px; }
.icon-dim { opacity: .45; }

.muted { color: var(--text-dim); }
.tiny { font-size: .75rem; }
.danger { color: var(--red); }
.struck { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; }

.clamp-1, .clamp-2 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }

/* ---------- boot ---------- */

.boot {
  min-height: 100dvh;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  color: var(--text-dim);
}

/* ---------- shell ---------- */

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

.sidebar { display: none; }

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* Room for the tab bar, plus whatever the phone's own gesture area takes. */
  padding-bottom: calc(64px + var(--safe-bottom));
}

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 640; color: var(--text); }
.brand .icon { color: var(--accent); }
.topbar-end { display: flex; align-items: center; gap: 10px; }

.conn { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.conn.is-on { background: var(--green); }
.conn.is-off { background: var(--amber); }

.avatar-btn {
  border: 0; background: none; padding: 2px; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-dim);
}
.avatar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.outlet { flex: 1; min-width: 0; }

/* ---------- tab bar (phone) ---------- */

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}

.tab-link {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: grid; justify-items: center; gap: 2px;
  padding: 8px 4px; min-height: var(--tap);
  color: var(--text-faint); font-size: .6875rem; font-weight: 550;
}
.tab-link.is-active { color: var(--accent); }
.tab-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-icon { position: relative; display: block; }

.badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center;
}
.badge-dot { position: absolute; top: -6px; left: 11px; }

/* ---------- screens ---------- */

.screen {
  padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 900px;
}
.screen-narrow { max-width: 560px; }

.screen-head { display: flex; flex-direction: column; gap: 6px; }
.screen-head .btn { align-self: flex-start; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 4px;
}

.lead { color: var(--text-dim); }
.hint { color: var(--text-faint); font-size: .8125rem; }
.divider-label {
  color: var(--text-faint); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-top: 8px;
}

/* ---------- surfaces ---------- */

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.panel { display: flex; flex-direction: column; gap: 10px; }
/* Its own display, not only a direction. This is used both as a modifier on .panel and
   on plain divs inside one, and without display:flex the second case silently laid its
   children out as inline text — "1 of 1 tasks done100%". */
.panel-row {
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

.grid { display: grid; gap: 12px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.feed { display: flex; flex-direction: column; gap: 12px; }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-foot {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  color: var(--text-dim); font-size: .8125rem;
}

.project-card {
  display: flex; flex-direction: column; gap: 10px;
  text-align: left; cursor: pointer; width: 100%; font: inherit; color: inherit;
}
.project-card:hover { border-color: var(--line-strong); }

.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; }

/* ---------- rows ---------- */

.row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; min-height: var(--tap);
}
button.row { cursor: pointer; }
button.row:hover { border-color: var(--line-strong); }
.row-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--text-dim); flex: none; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.row-title { font-weight: 570; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-note { color: var(--text-dim); font-size: .8125rem; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

.task-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 12px; min-height: var(--tap);
}
.task-row.is-done .task-title { text-decoration: line-through; color: var(--text-faint); }
.task-main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.task-title { font-weight: 550; }
.task-meta { color: var(--text-dim); font-size: .8125rem; }

.check-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.check-row.is-done > span { text-decoration: line-through; color: var(--text-faint); }
.check { width: 20px; height: 20px; accent-color: var(--accent); flex: none; cursor: pointer; }

/* ---------- pills, chips, avatars ---------- */

.pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 620; white-space: nowrap;
}
.pill-green  { background: var(--green-soft);  color: var(--green); }
.pill-amber  { background: var(--amber-soft);  color: var(--amber); }
.pill-red    { background: var(--red-soft);    color: var(--red); }
.pill-slate  { background: var(--slate-soft);  color: var(--slate); }
.pill-indigo { background: var(--indigo-soft); color: var(--indigo); }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: .8125rem; font-weight: 680; letter-spacing: .02em;
}
.avatar-sm { width: 28px; height: 28px; font-size: .6875rem; }
.tone-red    { background: var(--red-soft);    color: var(--red); }
.tone-amber  { background: var(--amber-soft);  color: var(--amber); }
.tone-indigo { background: var(--indigo-soft); color: var(--indigo); }
.tone-green  { background: var(--green-soft);  color: var(--green); }
.tone-sand   { background: var(--sand-soft);   color: var(--sand); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-slate  { background: var(--slate-soft);  color: var(--slate); }

.avatar-wrap { position: relative; flex: none; display: block; }
.presence {
  position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--text-faint);
}
.presence-online { background: var(--green); }
.presence-away { background: var(--amber); }

.people-row { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: .875rem; min-height: 40px;
}
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chip input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--surface-2); color: var(--text);
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-quiet { background: var(--surface); border-color: var(--line); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 570; color: var(--accent);
}
.link.back { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 2px; color: var(--text-dim); }

.icon-btn {
  display: grid; place-items: center; flex: none;
  width: var(--tap); height: var(--tap);
  background: none; border: 0; border-radius: var(--radius-sm);
  color: var(--text-dim); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.danger:hover { background: var(--red-soft); color: var(--red); }

/* ---------- forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 570; font-size: .875rem; }
.field-hint { color: var(--text-faint); font-size: .8125rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.input {
  width: 100%; min-height: var(--tap); padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit;
}
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 88px; }

.form-error {
  color: var(--red); background: var(--red-soft);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: .875rem;
}

.switch-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; cursor: pointer; min-height: var(--tap);
}
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.switch-main { display: flex; flex-direction: column; gap: 2px; }
.switch-title { font-weight: 550; }
.switch-note { color: var(--text-dim); font-size: .8125rem; }

.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-btn {
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font: inherit; font-weight: 600; color: var(--text-dim); cursor: pointer;
}
.kind-btn.is-chosen { border-color: transparent; }
.kind-btn.kind-fyi.is-chosen     { background: var(--slate-soft);  color: var(--slate); }
.kind-btn.kind-win.is-chosen     { background: var(--green-soft);  color: var(--green); }
.kind-btn.kind-risk.is-chosen    { background: var(--amber-soft);  color: var(--amber); }
.kind-btn.kind-blocker.is-chosen { background: var(--red-soft);    color: var(--red); }

/* ---------- updates ---------- */

.update-card { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--line); }
.update-card.kind-win     { border-left-color: var(--green); }
.update-card.kind-risk    { border-left-color: var(--amber); }
.update-card.kind-blocker { border-left-color: var(--red); }

.update-head { display: flex; align-items: center; gap: 10px; }
.update-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.update-name { font-weight: 600; }
.update-note { color: var(--text-dim); font-size: .8125rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.update-body { white-space: pre-wrap; overflow-wrap: anywhere; }

.files { display: flex; flex-direction: column; gap: 6px; }
.file-row { display: flex; align-items: center; gap: 4px; }
.file {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; min-height: var(--tap);
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.file:hover { border-color: var(--line-strong); }
.file-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none; }
.file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-note { color: var(--text-dim); font-size: .75rem; }

/* ---------- chat ---------- */

.screen-chat {
  padding: 0; gap: 0; max-width: none;
  height: calc(100dvh - 57px - 64px - var(--safe-bottom));
  display: flex; flex-direction: column;
}
.chat-head { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-title h1 { font-size: 1.125rem; }

.thread {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 16px; display: flex; flex-direction: column; gap: 4px;
}
.day-divider { text-align: center; margin: 12px 0 8px; }
.day-divider span {
  background: var(--surface-2); color: var(--text-dim);
  padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
}

.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row.mine { flex-direction: row-reverse; }
.bubble-row.grouped { margin-top: -2px; }
.bubble-gutter { width: 28px; flex: none; }

.bubble {
  max-width: min(78%, 560px);
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.bubble-row.mine .bubble { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.bubble.is-pending { opacity: .6; }
.bubble-author { font-size: .75rem; font-weight: 650; color: var(--text-dim); }
.bubble-text { white-space: pre-wrap; }
.bubble-file { display: flex; align-items: center; gap: 6px; font-size: .8125rem; opacity: .85; }
.bubble-time { font-size: .6875rem; opacity: .6; align-self: flex-end; }

.composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--line); background: var(--surface);
}
.composer-input {
  flex: 1; resize: none; max-height: 160px;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 20px;
  background: var(--bg); color: var(--text); font: inherit;
}
.composer-input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.composer-send { min-width: var(--tap); padding: 0; border-radius: 50%; }

.chat-row.is-unread .row-title { font-weight: 700; }

/* ---------- calendar ---------- */

.day-group { display: flex; flex-direction: column; gap: 8px; }
.day-heading { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.event-row { align-items: stretch; }
.event-time {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; padding-right: 10px; border-right: 1px solid var(--line); flex: none;
}
.rsvp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-row .btn { flex: 1; min-width: 110px; }

.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

.milestones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.milestone { display: flex; align-items: center; gap: 10px; }
.milestone-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.milestone-done .milestone-dot { background: var(--green); }
.milestone-current .milestone-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.milestone-title { flex: 1; }
.milestone-date { font-size: .8125rem; }

.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.activity li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }

/* ---------- sign in ---------- */

.signin { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.signin-card {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow);
}
.signin-mark {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.signin-note { color: var(--text-dim); }
.signin-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }

/* ---------- empty, toast, dialog ---------- */

.empty {
  display: grid; justify-items: center; gap: 6px;
  padding: 36px 20px; text-align: center; color: var(--text-dim);
}
.empty .icon { color: var(--text-faint); }
.empty-title { font-weight: 600; color: var(--text); }
.empty-note { font-size: .875rem; }

.toasts {
  position: fixed; z-index: 60;
  left: 50%; transform: translateX(-50%);
  bottom: calc(76px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: min(92vw, 420px); pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: .875rem; font-weight: 550; box-shadow: var(--shadow);
  animation: rise .2s ease-out;
}
.toast-error { background: var(--red); color: #fff; }
.toast.leaving { opacity: 0; transition: opacity .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.backdrop {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 13, 17, .5); backdrop-filter: blur(2px);
}
.dialog {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow);
}
.dialog p { color: var(--text-dim); font-size: .9375rem; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .shell { grid-template-columns: 236px 1fr; }

  .sidebar {
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 0; height: 100dvh;
    padding: 20px 12px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .sidebar .brand { padding: 0 10px; font-size: 1.0625rem; }
  .sidebar-links { display: flex; flex-direction: column; gap: 2px; }

  .side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    background: none; border: 0; cursor: pointer;
    font: inherit; font-weight: 550; color: var(--text-dim); text-align: left;
  }
  .side-link:hover { background: var(--surface-2); color: var(--text); }
  .side-link.is-active { background: var(--accent-soft); color: var(--accent); }
  .side-link .nav-label { font-size: .9375rem; }
  .side-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

  .tabbar { display: none; }
  .main { padding-bottom: 0; }
  .brand-compact { display: none; }
  .topbar { justify-content: flex-end; padding: 12px 24px; }

  .screen { padding: 24px; gap: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  .screen-chat { height: calc(100dvh - 61px); }
  .composer { padding-bottom: 12px; }
  .toasts { bottom: 24px; }

  .screen-head {
    flex-direction: row; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
  }
  .screen-head > .head-row,
  .screen-head > .link.back { flex-basis: 100%; }
}
