html:has(body[data-surface="workspace"]),
body[data-surface="workspace"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --sidebar: #0a0a0a;
  --sidebar-text: #f5f5f7;
  --sidebar-muted: #a1a1a6;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-selected: #1c1c20;
  --list-bg: #f5f5f7;
  --detail-bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --separator: rgba(0, 0, 0, 0.08);
  --separator-strong: rgba(0, 0, 0, 0.14);
  --accent: #4d9bff;
  --accent-strong: #297fe8;
  --accent-fill: rgba(77, 155, 255, 0.12);
  --fill: rgba(0, 0, 0, 0.04);
  --fill-strong: rgba(0, 0, 0, 0.07);
  --check: #1cbf5e;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.1);
  --dock-height: 58px;
  --dock-inset: 12px;
  --dock-space: calc(var(--dock-inset) + var(--dock-height) + env(safe-area-inset-bottom) + 10px);
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"]:has(body[data-surface="workspace"]),
html[data-theme="dark"] body[data-surface="workspace"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --sidebar: #0a0a0a;
  --sidebar-text: #f5f5f7;
  --sidebar-muted: #a1a1a6;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-selected: #1c1c20;
  --list-bg: #131316;
  --detail-bg: #0a0a0a;
  --surface: #131316;
  --surface-strong: #1c1c20;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --separator: rgba(255, 255, 255, 0.09);
  --separator-strong: rgba(255, 255, 255, 0.14);
  --accent: #4d9bff;
  --accent-strong: #75b1ff;
  --accent-fill: rgba(77, 155, 255, 0.14);
  --fill: rgba(255, 255, 255, 0.045);
  --fill-strong: rgba(255, 255, 255, 0.075);
  --check: #1cbf5e;
  --shadow: none;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"]:has(body[data-surface="workspace"]),
  html[data-theme="system"] body[data-surface="workspace"] {
    color-scheme: dark;
    --bg: #0a0a0a;
    --sidebar: #0a0a0a;
    --sidebar-text: #f5f5f7;
    --sidebar-muted: #a1a1a6;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-selected: #1c1c20;
    --list-bg: #131316;
    --detail-bg: #0a0a0a;
    --surface: #131316;
    --surface-strong: #1c1c20;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --separator: rgba(255, 255, 255, 0.09);
    --separator-strong: rgba(255, 255, 255, 0.14);
    --accent: #4d9bff;
    --accent-strong: #75b1ff;
    --accent-fill: rgba(77, 155, 255, 0.14);
    --fill: rgba(255, 255, 255, 0.045);
    --fill-strong: rgba(255, 255, 255, 0.075);
    --check: #1cbf5e;
    --shadow: none;
  }
}

body[data-surface="workspace"],
body[data-surface="workspace"] .workspace,
.workspace-root {
  background: var(--bg);
  color: var(--text);
}

body[data-surface="workspace"] :focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 66%, transparent);
  outline-offset: 2px;
}

.workspace,
.workspace-root {
  min-height: 100vh;
  min-height: 100dvh;
}

.workspace-root {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.glass-nav { display: none; }

.brand {
  color: inherit;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-dot { color: var(--accent); }

.main {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 108px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 14px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  grid-template-areas:
    "start spacer actions"
    "title title title";
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--separator);
  background: color-mix(in srgb, var(--list-bg) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 4;
}

.topbar-copy { grid-area: title; min-width: 0; }

.workspace-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.topbar .workspace-eyebrow { display: none; }

.topbar h1,
.surface-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-btn,
.account-chip,
.topbar-add,
.nav-btn,
.tab-btn,
.account-btn,
.dock-add {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.back-btn,
.topbar > .account-chip,
.topbar-add {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
}

.back-btn { grid-area: start; color: var(--text-2); }
.back-btn:hover { color: var(--text); background: var(--fill); }

.back-btn svg,
.topbar-add svg { width: 22px; height: 22px; }

.topbar > .account-chip {
  grid-area: start;
  overflow: hidden;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.topbar-actions { grid-area: actions; display: flex; justify-content: flex-end; }

.topbar-add {
  border: 1px solid var(--separator-strong);
  color: var(--accent);
  background: var(--surface);
}

.topbar-add:hover { background: var(--fill-strong); }
.topbar-add:disabled { opacity: 0.42; cursor: default; }

.avatar img,
.account-chip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.panes {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: grid;
}

.pane-resizer { display: none; }

.list-pane,
.detail-pane,
.list-surface {
  min-width: 0;
  min-height: 0;
}

.list-pane,
.detail-pane,
.list-surface {
  display: flex;
  flex-direction: column;
}

.list-pane { background: var(--list-bg); }
.detail-pane { display: none; background: var(--detail-bg); }

.list-surface { display: none; flex: 1; }
.list-surface.is-active { display: flex; }

.workspace-root.is-detail .list-pane { display: none; }
.workspace-root.is-detail .detail-pane { display: flex; }
.workspace-root.is-detail .account-chip { display: none; }
.workspace-root[data-section="account"] .list-pane { overflow: auto; }

.surface-header { display: none; }

.status {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 40;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 9px 13px;
  border: 1px solid var(--separator-strong);
  border-radius: 9px;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.35;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.status:empty { display: none; }

.list-scroll,
.chat-thread,
.detail-pane {
  scrollbar-color: var(--separator-strong) transparent;
  scrollbar-width: thin;
}

.list-scroll,
.chat-thread {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.list-scroll { padding: 6px 14px var(--dock-space); }

.detail-pane {
  overflow: auto;
  padding: 22px 20px var(--dock-space);
}

.detail-pane:has(.chat-thread) {
  overflow: hidden;
  padding: 0;
}

.group {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 10px 7px;
}

.group-heading h2,
.group > h2,
.comments > h2 {
  margin: 0;
  padding: 13px 10px 7px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.group-heading h2 { padding: 0; }
.group-heading > span { color: var(--text-3); font-size: 11px; }

.row {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
  transition: background 0.11s ease;
}

.row:hover { background: var(--fill); }
.row.is-selected { background: var(--accent-fill); }
.row.is-fresh { animation: row-arrive 0.22s var(--ease-out); }

@keyframes row-arrive {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

.row-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-open,
.row-edit-target {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.row-edit-target { cursor: text; }
.row-edit-target:hover .row-title { color: var(--accent); }

.row-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }

.row-title,
.row-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 560;
}

.row-sub,
.row-time,
.bubble-meta,
.empty { color: var(--text-2); }

.row-sub { font-size: 11px; line-height: 1.35; }
.row.is-done .row-title { color: var(--text-3); text-decoration: line-through; }

.row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-accessories {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.row-more,
.thread-info {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--text-3);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease;
}

.row:hover .row-more,
.row.is-selected .row-more,
.row-more:focus-visible,
.thread-info { opacity: 1; }

.row-more:hover,
.thread-info:hover { color: var(--text); background: var(--fill-strong); }
.row-more svg,
.thread-info svg { width: 17px; height: 17px; }

.row-details:hover,
.row-details:focus-visible { color: var(--accent); background: var(--accent-fill); }

.check {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--text-3) 74%, transparent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s ease, background 0.12s ease;
}

.check:hover { border-color: var(--check); }
.check:active { transform: scale(0.9); }

.check.is-on {
  border-color: var(--check);
  background: var(--check);
  box-shadow: inset 0 0 0 4px var(--list-bg);
}

.detail-pane .check.is-on { box-shadow: inset 0 0 0 4px var(--detail-bg); }
.check.large { width: 25px; height: 25px; }
.check.is-locked { opacity: 0.42; cursor: default; }

.todo-inline-editor {
  min-width: 0;
  width: 100%;
  display: block;
  padding: 3px 5px;
  margin: -3px -5px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  outline: none;
  cursor: text;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
}

.todo-goal-pill,
.category-pill,
.pill {
  --pill: var(--cat-other);
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 6px;
  border-radius: 5px;
  color: color-mix(in srgb, var(--pill) 76%, var(--text));
  background: color-mix(in srgb, var(--pill) 10%, transparent);
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.todo-goal-pill.cat-health,
.category-pill.cat-health { --pill: var(--cat-health); }
.todo-goal-pill.cat-career,
.category-pill.cat-career { --pill: var(--cat-career); }
.todo-goal-pill.cat-finance,
.category-pill.cat-finance { --pill: var(--cat-finance); }
.todo-goal-pill.cat-learning,
.category-pill.cat-learning { --pill: var(--cat-learning); }
.todo-goal-pill.cat-relationships,
.category-pill.cat-relationships { --pill: var(--cat-relationships); }
.todo-goal-pill.cat-personal,
.category-pill.cat-personal { --pill: var(--cat-personal); }
.todo-goal-pill.cat-mindfulness,
.category-pill.cat-mindfulness { --pill: var(--cat-mindfulness); }
.todo-goal-pill.cat-creative,
.category-pill.cat-creative { --pill: var(--cat-creative); }

.shared-mark {
  width: 13px;
  height: 13px;
  position: relative;
  display: inline-block;
  opacity: 0.7;
}

.shared-mark::before,
.shared-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}

.shared-mark::before { left: 1px; top: 2px; }
.shared-mark::after { right: 0; bottom: 1px; box-shadow: -6px 2px 0 -1px var(--text-3); }

.filters {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 4px 20px 8px;
  padding: 3px;
  align-self: flex-start;
  border-radius: 8px;
  background: var(--fill);
}

.filter-chip {
  min-height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--text-2);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.filter-chip:hover { color: var(--text); }

.filter-chip.is-on {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(48, 40, 34, 0.08);
}

.disclosure { margin-top: -8px; }

.disclosure summary {
  min-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 1px;
  border-right: 1.4px solid var(--text-3);
  border-bottom: 1.4px solid var(--text-3);
  transform: rotate(-45deg);
}
.disclosure[open] summary::before { transform: rotate(45deg); }
.disclosure summary span:first-child { flex: 1; }

.empty {
  margin: 0;
  padding: 18px 10px;
  font-size: 13px;
  line-height: 1.55;
}

.primary-group > .empty { padding: 32px 10px; }

.banner {
  margin: 14px 20px 6px;
  padding: 11px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--text-2);
  background: var(--accent-fill);
  font-size: 12px;
  line-height: 1.45;
}

.list-composer,
.composer {
  display: flex;
  gap: 8px;
}

.list-composer {
  margin-top: auto;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--separator);
  background: color-mix(in srgb, var(--list-bg) 92%, transparent);
}

.composer input,
.message-composer input {
  min-width: 0;
  flex: 1;
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid var(--separator-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.composer input::placeholder { color: var(--text-3); }
.composer input:focus { border-color: color-mix(in srgb, var(--accent) 58%, var(--separator)); }

.composer > button {
  min-height: 39px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 650;
  cursor: pointer;
}

.composer > button:hover { background: var(--accent-strong); }

.composer-note {
  margin-top: auto;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--separator);
}

.goal-row { cursor: pointer; }

.goal-icon,
.chat-avatar,
.message-avatar,
.chip-avatar,
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.goal-icon {
  --goal-color: var(--cat-other);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--goal-color);
  background: color-mix(in srgb, var(--goal-color) 11%, transparent);
}

.goal-icon svg { width: 17px; height: 17px; }
.goal-icon.cat-health { --goal-color: var(--cat-health); }
.goal-icon.cat-career { --goal-color: var(--cat-career); }
.goal-icon.cat-finance { --goal-color: var(--cat-finance); }
.goal-icon.cat-learning { --goal-color: var(--cat-learning); }
.goal-icon.cat-relationships { --goal-color: var(--cat-relationships); }
.goal-icon.cat-personal { --goal-color: var(--cat-personal); }
.goal-icon.cat-mindfulness { --goal-color: var(--cat-mindfulness); }
.goal-icon.cat-creative { --goal-color: var(--cat-creative); }

.goal-progress { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 11px; }

.goal-progress-track {
  width: 52px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--fill-strong);
}

.goal-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.goal-needs-action { color: var(--accent); font-size: 11px; }

.row-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(-45deg);
  margin-right: 3px;
}

.row-title-line { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.row-title-line .row-title { min-width: 0; flex: 1; }
.row-time { flex: 0 0 auto; font-size: 10px; }

.chat-avatar {
  --chat-color: var(--cat-other);
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: color-mix(in srgb, var(--chat-color) 74%, var(--text));
  background: color-mix(in srgb, var(--chat-color) 12%, transparent);
  font-size: 12px;
  font-weight: 720;
}

.chat-avatar.large { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; }
.chat-avatar.cat-health { --chat-color: var(--cat-health); }
.chat-avatar.cat-career { --chat-color: var(--cat-career); }
.chat-avatar.cat-finance { --chat-color: var(--cat-finance); }
.chat-avatar.cat-learning { --chat-color: var(--cat-learning); }
.chat-avatar.cat-relationships { --chat-color: var(--cat-relationships); }
.chat-avatar.cat-personal { --chat-color: var(--cat-personal); }
.chat-avatar.cat-mindfulness { --chat-color: var(--cat-mindfulness); }
.chat-avatar.cat-creative { --chat-color: var(--cat-creative); }

.unread {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.detail-card {
  width: min(760px, 100%);
  max-width: none;
  margin: 18px 0 10px;
  padding: 0 8px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--separator);
}

.detail-card h2 {
  margin: -2px 0 7px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.detail-title-copy { min-width: 0; flex: 1; }

.detail-title-button,
.detail-title-editor {
  width: 100%;
  margin: -2px 0 7px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.detail-title-button { cursor: text; }
.detail-title-button:hover { color: var(--accent); }

.detail-title-editor {
  display: block;
  min-height: 1.12em;
  padding: 3px 5px;
  margin: -5px -5px 4px;
  border-radius: 6px;
  outline: none;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: text;
}

.detail-card .row-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  white-space: normal;
}

.dot.large {
  --dot-color: var(--cat-other);
  width: 12px;
  height: 12px;
  margin: 7px 5px 0;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot-color);
}

.dot.cat-health { --dot-color: var(--cat-health); }
.dot.cat-career { --dot-color: var(--cat-career); }
.dot.cat-finance { --dot-color: var(--cat-finance); }
.dot.cat-learning { --dot-color: var(--cat-learning); }
.dot.cat-relationships { --dot-color: var(--cat-relationships); }
.dot.cat-personal { --dot-color: var(--cat-personal); }
.dot.cat-mindfulness { --dot-color: var(--cat-mindfulness); }
.dot.cat-creative { --dot-color: var(--cat-creative); }

.detail-body,
.detail-pane > .chips,
.detail-pane > .detail-properties,
.detail-pane > .link-row,
.detail-pane > .group,
.detail-pane > .composer,
.detail-pane > .empty {
  width: min(760px, 100%);
  margin-right: 0;
  margin-left: 0;
}

.detail-body {
  padding: 16px 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.detail-properties {
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 0 8px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.detail-property {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.detail-property > span,
.add-goal-field > span {
  color: var(--text-2);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.add-goal-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--separator-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  cursor: pointer;
}

.add-goal-field select:focus { border-color: var(--accent); }

.goal-picker { position: relative; }

.goal-picker-trigger {
  width: 100%;
  min-height: 50px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--separator-strong);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.goal-picker-trigger:hover { background: color-mix(in srgb, var(--surface) 94%, var(--accent)); }
.goal-picker-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-fill);
}
.goal-picker-trigger:disabled { opacity: 0.62; cursor: default; }

.goal-picker-leading,
.goal-option-icon {
  --goal-color: var(--cat-other);
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--goal-color);
  background: color-mix(in srgb, var(--goal-color) 13%, transparent);
}

.goal-picker-leading {
  width: 28px;
  height: 28px;
}

.goal-picker-leading::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.goal-picker-leading.is-empty { color: var(--text-3); background: var(--fill); }
.goal-picker-leading.is-empty::after { width: 9px; height: 1.5px; border: 0; border-radius: 2px; background: currentColor; }

.goal-picker-leading.cat-health,
.goal-option-icon.cat-health { --goal-color: var(--cat-health); }
.goal-picker-leading.cat-career,
.goal-option-icon.cat-career { --goal-color: var(--cat-career); }
.goal-picker-leading.cat-finance,
.goal-option-icon.cat-finance { --goal-color: var(--cat-finance); }
.goal-picker-leading.cat-learning,
.goal-option-icon.cat-learning { --goal-color: var(--cat-learning); }
.goal-picker-leading.cat-relationships,
.goal-option-icon.cat-relationships { --goal-color: var(--cat-relationships); }
.goal-picker-leading.cat-personal,
.goal-option-icon.cat-personal { --goal-color: var(--cat-personal); }
.goal-picker-leading.cat-mindfulness,
.goal-option-icon.cat-mindfulness { --goal-color: var(--cat-mindfulness); }
.goal-picker-leading.cat-creative,
.goal-option-icon.cat-creative { --goal-color: var(--cat-creative); }

.goal-picker-value,
.goal-option-copy { min-width: 0; display: grid; gap: 2px; }
.goal-picker-value strong,
.goal-option-copy strong { overflow: hidden; font-size: 12px; line-height: 1.25; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.goal-picker-value small,
.goal-option-copy small { overflow: hidden; color: var(--text-2); font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }

.goal-picker-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.12s ease;
}
.goal-picker-trigger[aria-expanded="true"] .goal-picker-chevron { transform: translateY(2px) rotate(225deg); }

.goal-picker-popover {
  position: absolute;
  z-index: 24;
  top: calc(100% + 7px);
  left: 0;
  width: min(420px, calc(100vw - 64px));
  max-height: min(390px, calc(100vh - 220px));
  padding: 6px;
  overflow: auto;
  border: 1px solid var(--separator-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.goal-picker-heading {
  padding: 7px 8px 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-3);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.goal-picker-heading strong { color: var(--text-2); font-weight: 720; }

.goal-picker-option {
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.goal-picker-option:hover,
.goal-picker-option:focus-visible { background: var(--fill); }
.goal-picker-option.is-selected { background: var(--accent-fill); }

.goal-option-icon { width: 28px; height: 28px; }
.goal-option-icon:not(.is-empty)::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.goal-option-icon.is-empty { color: var(--text-3); background: var(--fill); font-size: 13px; }
.goal-option-check { color: var(--accent); font-size: 13px; opacity: 0; }
.goal-picker-option.is-selected .goal-option-check { opacity: 1; }

.property-open {
  min-height: 50px;
  padding: 0 11px;
  border: 1px solid var(--separator-strong);
  border-radius: 8px;
  color: var(--text-2);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.property-open:hover { color: var(--text); background: var(--fill); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 8px 4px;
}

.chip {
  min-height: 27px;
  padding: 3px 8px 3px 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  color: var(--text-2);
  background: var(--fill);
  font-size: 11px;
}

.chip-avatar {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  color: var(--text);
  background: var(--fill-strong);
  font-size: 9px;
  font-weight: 720;
}

.chip-role { color: var(--text-3); font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }

.link-row {
  min-height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.link-row:hover { background: var(--fill); }
.link-row span { color: var(--text-2); font-size: 12px; }

.detail-pane > .goal-chat-card { width: min(560px, 100%); }

.goal-chat-card {
  min-height: 64px;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid var(--separator-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-fill));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.goal-chat-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--separator));
  background: var(--accent-fill);
}

.goal-chat-card:active { transform: translateY(1px); }

.goal-chat-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent) !important;
  background: var(--accent-fill);
}

.goal-chat-icon svg { width: 19px; height: 19px; }

.goal-chat-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.goal-chat-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
}

.goal-chat-copy small {
  overflow: hidden;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-chat-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 680;
}

.goal-chat-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.comments { display: grid; gap: 6px; padding: 4px 8px; }

.comment {
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--fill);
}

.comment.mine { margin-left: auto; background: var(--accent-fill); }
.comment p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.bubble-meta { font-size: 10px; }

.detail-pane > .composer:not(.message-composer) { padding: 8px; }

.empty-panel {
  width: min(420px, 100%);
  margin: auto 0;
  padding: 44px 8px;
  color: var(--text-2);
}

.empty-panel strong {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
}

.empty-panel p:last-child { margin: 0; font-size: 14px; line-height: 1.55; }
.desktop-only { display: none; }

.thread-header {
  min-height: 66px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--separator);
  background: color-mix(in srgb, var(--detail-bg) 94%, transparent);
}

.thread-copy { min-width: 0; flex: 1; }
.thread-copy h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.thread-copy p { margin: 2px 0 0; color: var(--text-2); font-size: 11px; }

.chat-thread {
  padding: 24px clamp(18px, 4vw, 48px) 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.chat-thread > :first-child { margin-top: auto; }
.chat-thread.is-loading { overflow: hidden; }

.chat-loading {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding-bottom: 4px;
}

.chat-skeleton-message {
  width: min(380px, 72%);
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.chat-skeleton-message.mine { width: min(310px, 64%); align-self: flex-end; flex-direction: row-reverse; }

.chat-skeleton-avatar {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--fill-strong);
}

.chat-skeleton-copy { width: 100%; display: grid; gap: 6px; }
.chat-skeleton-copy.medium { width: 82%; }
.chat-skeleton-copy.short { width: 68%; justify-self: end; }
.chat-skeleton-copy span {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--fill) 20%, var(--fill-strong) 46%, var(--fill) 72%);
  background-size: 240% 100%;
  animation: skeleton-drift 1.4s ease-in-out infinite;
}
.chat-skeleton-copy span:first-child { width: 42%; height: 7px; border-radius: 3px; }
.chat-skeleton-copy span:last-child { width: 100%; height: 38px; border-radius: 4px 11px 11px 11px; }
.chat-skeleton-message.mine .chat-skeleton-copy span:first-child { margin-left: auto; }
.chat-skeleton-message.mine .chat-skeleton-copy span:last-child { border-radius: 11px 4px 11px 11px; background-color: var(--accent-fill); }

.chat-message { max-width: min(620px, 86%); display: flex; align-items: flex-start; gap: 9px; }
.chat-message.mine { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  color: var(--text-2);
  background: var(--fill-strong);
  font-size: 9px;
  font-weight: 720;
}

.message-content { min-width: 0; }
.message-content .bubble-meta { display: flex; gap: 8px; margin: 0 3px 4px; }
.chat-message.mine .bubble-meta { justify-content: flex-end; }
.bubble-meta strong { color: var(--text-2); font-weight: 650; }

.message-bubble {
  padding: 9px 11px;
  border-radius: 4px 11px 11px 11px;
  background: var(--fill-strong);
}

.chat-message.mine .message-bubble { border-radius: 11px 4px 11px 11px; background: var(--accent-fill); }
.message-bubble p { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }

.chat-empty {
  margin: auto;
  padding: 38px 24px;
  color: var(--text-2);
  text-align: center;
}

.chat-empty strong { display: block; color: var(--text); font-size: 20px; }
.chat-empty p { max-width: 320px; margin: 7px auto 0; font-size: 13px; line-height: 1.5; }

.chat-compose-shell {
  padding: 9px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--separator);
  background: color-mix(in srgb, var(--detail-bg) 96%, transparent);
}

.chat-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 0 1px 8px; }

.chat-suggestions button {
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid var(--separator);
  border-radius: 99px;
  color: var(--text-2);
  background: var(--surface);
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.chat-suggestions button:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--separator)); background: var(--accent-fill); }
.message-composer {
  min-height: 50px;
  padding: 4px 4px 4px 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--separator-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.message-composer:focus-within {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--separator));
  box-shadow: 0 0 0 3px var(--accent-fill), 0 7px 22px rgba(0, 0, 0, 0.07);
}

.message-composer input,
.message-composer input:focus {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

body[data-surface="workspace"] .message-composer input:focus-visible { outline: none; }

.composer-send {
  width: 40px;
  height: 40px;
  min-height: 40px !important;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border-radius: 10px !important;
}

.composer-send svg { width: 18px; height: 18px; }

.account-page {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 48px 24px var(--dock-space);
}

.settings-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 2px 28px;
}

.avatar,
.settings-avatar {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 720;
}

.avatar.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; overflow: hidden; }
.settings-profile-copy { min-width: 0; }
.settings-profile h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.settings-profile p { margin: 3px 0 0; }

.settings-group {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: 11px;
  background: var(--surface);
}

.settings-row {
  min-height: 46px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--separator);
  font-size: 13px;
}

.settings-row:last-child { border-bottom: 0; }
.settings-row > span { color: var(--text-2); }
.settings-row > strong { font-weight: 600; }
.settings-row-stack { align-items: flex-start; display: grid; }
.settings-row h3 { margin: 0; font-size: 13px; }
.settings-row p { margin: 3px 0 0; color: var(--text-2); font-size: 11px; }

.appearance-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: var(--fill);
}

.appearance-option {
  min-height: 50px;
  padding: 6px 12px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 6px;
  color: var(--text-2);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.appearance-option svg { width: 18px; height: 18px; }
.appearance-option.is-on { color: var(--text); background: var(--surface-strong); box-shadow: 0 1px 3px rgba(48, 40, 34, 0.08); }

.settings-note { margin: 20px 2px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.account-actions :is(.primary-link, .secondary-button) {
  min-height: 39px;
  border-radius: 8px;
  font-size: 13px;
}

.account-actions .primary-link { color: #fff; background: var(--accent); }
.account-actions .secondary-button { border: 1px solid var(--separator-strong); color: var(--text); background: var(--surface); }

.list-skeleton { min-height: 0; flex: 1; overflow: hidden; }
.skeleton-filters { display: flex; gap: 5px; padding: 4px 20px 12px; }
.skeleton-filters span { width: 54px; height: 28px; border-radius: 7px; }
.skeleton-filters span:nth-child(2) { width: 75px; }
.skeleton-filters span:nth-child(3) { width: 43px; }
.skeleton-scroll { padding: 10px 24px; }
.skeleton-heading { width: 72px; height: 8px; margin: 0 0 13px; border-radius: 3px; }
.skeleton-row { min-height: 55px; display: flex; align-items: center; gap: 11px; }
.skeleton-circle { width: 20px; height: 20px; border-radius: 50%; }
.skeleton-copy { flex: 1; display: grid; gap: 6px; }
.skeleton-line { height: 9px; border-radius: 3px; }
.skeleton-title { width: 67%; }
.skeleton-subtitle { width: 42%; height: 7px; }

.skeleton-filters span,
.skeleton-heading,
.skeleton-circle,
.skeleton-line {
  background: linear-gradient(90deg, var(--fill) 20%, var(--fill-strong) 46%, var(--fill) 72%);
  background-size: 240% 100%;
  animation: skeleton-drift 1.4s ease-in-out infinite;
}

@keyframes skeleton-drift { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.dock-scrim {
  position: fixed;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--dock-space) + 18px);
  pointer-events: none;
  background: linear-gradient(transparent, color-mix(in srgb, var(--list-bg) 94%, transparent) 48%);
}

.dock {
  position: fixed;
  z-index: 12;
  left: var(--dock-inset);
  right: var(--dock-inset);
  bottom: calc(var(--dock-inset) + env(safe-area-inset-bottom));
}

.dock-tabs {
  position: relative;
  min-height: var(--dock-height);
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--separator-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 30px rgba(48, 40, 34, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 10px;
  background: var(--fill-strong);
  pointer-events: none;
  transition: transform 0.16s ease-out, width 0.16s ease-out;
}

.tab-btn {
  z-index: 1;
  min-width: 0;
  min-height: 50px;
  padding: 6px 3px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--text-3);
}

.tab-btn.is-selected { color: var(--accent); }
.tab-btn svg { width: 20px; height: 20px; }
.tab-btn span:last-child { font-size: 9px; font-weight: 650; }

.badge {
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: var(--accent);
  font-size: 9px;
  font-weight: 750;
}

.tab-btn .badge { position: absolute; top: 4px; right: calc(50% - 18px); }

.add-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  padding: 12px 12px calc(var(--dock-space) + 4px);
}

.add-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(34, 29, 26, 0.36);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.add-sheet {
  position: relative;
  width: min(500px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--separator-strong);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  animation: sheet-up 0.18s var(--ease-out);
}

@keyframes sheet-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.add-sheet-header {
  padding: 18px 18px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.add-sheet-header .workspace-eyebrow { margin-bottom: 5px; }

.add-sheet-header strong {
  display: block;
  font-size: 23px;
  letter-spacing: 0;
}

.add-sheet-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--text-2);
  background: var(--fill);
  font-size: 19px;
  cursor: pointer;
}

.add-kinds { display: flex; gap: 3px; margin: 0 18px 13px; padding: 3px; width: max-content; border-radius: 8px; background: var(--fill); }
.add-kinds .filter-chip { min-width: 64px; }
.add-field { display: block; padding: 0 18px 18px; }

.add-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--separator-strong);
  border-radius: 9px;
  color: var(--text);
  background: var(--detail-bg);
  outline: none;
  font-size: 16px;
}

.add-field input::placeholder { color: var(--text-3); }
.add-field input:focus { border-color: var(--accent); }

.add-goal-field {
  margin: -4px 18px 18px;
  display: grid;
  gap: 5px;
}

.add-actions {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--separator);
}

.add-cancel,
.add-submit {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
}

.add-cancel { border: 1px solid var(--separator-strong); color: var(--text); background: transparent; }
.add-submit { border: 0; color: #fff; background: var(--accent); }
.add-submit:hover { background: var(--accent-strong); }

.chat-alert {
  position: fixed;
  z-index: 45;
  top: 14px;
  right: 14px;
  width: min(340px, calc(100vw - 28px));
  display: flex;
  align-items: stretch;
  border: 1px solid var(--separator-strong);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-alert-main { min-width: 0; flex: 1; padding: 11px; display: flex; gap: 9px; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.chat-alert-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-fill); }
.chat-alert-icon svg { width: 17px; height: 17px; }
.chat-alert-copy { min-width: 0; display: grid; gap: 2px; }
.chat-alert-copy strong { font-size: 12px; }
.chat-alert-copy span { overflow: hidden; color: var(--text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chat-alert-close { width: 36px; border: 0; color: var(--text-3); background: transparent; cursor: pointer; }

@media (max-width: 859px) {
  .list-composer,
  .list-surface > .composer-note { display: none; }
  .detail-pane > .composer,
  .detail-pane > .composer-note { padding-bottom: var(--dock-space); }
  .detail-pane { padding-bottom: var(--dock-space); }
  .detail-pane:has(.chat-thread) { padding-bottom: 0; }
  .row-more { opacity: 1; }
}

@media (min-width: 860px) {
  .workspace-root { --dock-space: 18px; }
  .topbar,
  .dock,
  .dock-scrim { display: none; }
  .glass-nav {
    min-height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--separator);
    background: var(--sidebar);
    color: var(--sidebar-text);
  }
  .glass-tabs { display: flex; align-self: stretch; gap: 4px; }
  .glass-tabs .glass-indicator { display: none; }
  .nav-btn { min-height: 62px; padding: 0 12px; display: flex; align-items: center; gap: 7px; color: var(--sidebar-muted); font-size: 12px; }
  .nav-btn:hover { color: var(--sidebar-text); }
  .nav-btn.is-selected { color: var(--sidebar-text); box-shadow: inset 0 -2px 0 var(--accent); }
  .nav-btn svg { width: 18px; height: 18px; }
  .glass-nav-end { display: flex; align-items: center; gap: 8px; }
  .glass-nav .dock-add { min-height: 34px; padding: 0 11px; display: flex; align-items: center; gap: 5px; border-radius: 8px; color: #fff; background: var(--accent); }
  .sidebar-add-label { display: inline; font-size: 12px; font-weight: 650; }
  .account-btn { width: 34px; height: 34px; padding: 1px; border-radius: 9px; }
  .account-btn.is-selected { background: var(--sidebar-selected); }
  .panes { grid-template-columns: var(--list-width, 380px) 1px minmax(0, 1fr); }
  .pane-resizer {
    position: relative;
    z-index: 7;
    display: block;
    width: 1px;
    min-width: 1px;
    padding: 0;
    border: 0;
    background: var(--separator);
    cursor: col-resize;
    touch-action: none;
  }
  .pane-resizer::after {
    content: "";
    position: absolute;
    inset: 0 -4px;
  }
  .pane-resizer:hover,
  .pane-resizer:focus-visible,
  .workspace-root.is-resizing .pane-resizer.is-active { background: var(--accent); }
  .pane-resizer:focus-visible { outline-offset: 2px; }
  .sidebar-resizer { display: none; }
  .workspace-root.is-resizing,
  .workspace-root.is-resizing * { cursor: col-resize !important; user-select: none !important; }
  .detail-pane,
  .workspace-root.is-detail .detail-pane,
  .workspace-root:not(.is-detail) .detail-pane { display: flex; }
  .workspace-root.is-detail .list-pane,
  .workspace-root:not(.is-detail) .list-pane { display: flex; }
  .surface-header { display: block; flex: 0 0 auto; padding: 28px 24px 13px; }
  .surface-header h1 { font-size: 31px; }
  .surface-header .workspace-eyebrow { margin-bottom: 6px; }
  .list-scroll { padding-right: 18px; padding-left: 18px; }
  .filters { margin-right: 24px; margin-left: 24px; }
  .desktop-only { display: block; }
  .workspace-root[data-section="account"] .panes { grid-template-columns: 1fr; }
  .workspace-root[data-section="account"] .list-resizer { display: none; }
  .workspace-root[data-section="account"] .detail-pane { display: none; }
  .workspace-root[data-section="account"] .list-pane { border-right: 0; background: var(--detail-bg); }
  .add-layer { place-items: center; padding: 24px; }
  .add-sheet { width: min(520px, calc(100vw - 48px)); }
}

@media (min-width: 1024px) {
  .workspace-root {
    display: grid;
    grid-template-columns: var(--sidebar-width, 204px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .glass-nav {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    padding: 24px 12px 14px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-right: 1px solid rgba(255, 255, 255, 0.045);
    border-bottom: 0;
  }
  .sidebar-resizer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--sidebar-width, 204px) - 1px);
    z-index: 20;
    display: block;
  }
  .glass-nav .brand { padding: 0 10px; }
  .glass-tabs { margin-top: 25px; flex-direction: column; align-self: stretch; gap: 3px; }
  .nav-btn { width: 100%; min-height: 40px; padding: 0 10px; border-radius: 8px; justify-content: flex-start; }
  .nav-btn:hover { background: var(--sidebar-hover); }
  .nav-btn.is-selected { background: var(--sidebar-selected); box-shadow: none; }
  .nav-btn.is-selected [data-icon] { color: var(--accent); }
  .nav-btn .badge { margin-left: auto; }
  .glass-nav-end { margin-top: auto; display: grid; grid-template-columns: 1fr 36px; gap: 7px; }
  .glass-nav .dock-add { min-width: 0; min-height: 36px; justify-content: center; }
  .account-btn { width: 36px; height: 36px; }
  .main { grid-column: 2; grid-row: 1; height: 100vh; height: 100dvh; overflow: hidden; }
  .panes { height: 100%; grid-template-columns: var(--list-width, 390px) 1px minmax(0, 1fr); }
}

@media (min-width: 1440px) {
  .workspace-root { grid-template-columns: var(--sidebar-width, 216px) minmax(0, 1fr); }
  .panes { grid-template-columns: var(--list-width, 420px) 1px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
