/* Hallmark v2.0.0 · theme: existing Eros · shape: app screen · scope: app · genre: modern-minimal · surface: absolute · signature: Eros avatars and Grey’s daily conversations · redesign: polish */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V; keep the workspace shell and carry its original avatar and controls into sign-in. */
/* Hallmark · answered F24 · the Grey OS dialog uses the existing hairline edge without an elevation shadow. */
:root {
  --paper: #fff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --faint: #f7f7f7;
  --selected: #f0f0f0;
  --line: #e9e9e9;
  --field: #909090;
  --blue: #419dfa;
  --blue-soft: #d4e7ff;
  --coral: #f75555;
  --coral-soft: #fde3df;
  --gold: #ffbf00;
  --gold-soft: #fff2c6;
  --brown: #b2774c;
  --brown-soft: #f3d7c4;
  --gray: #8c8c8c;
  --gray-soft: #e3e3e3;
  --focus: #346fb3;
  --error: #a12f33;
  --shadow: #00000012;
  --overlay: #1a1a1a42;
  --agent-avatar-face-ink: #34322d;
  --agent-avatar-face-contrast: #fff;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: Georgia, serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --sidebar-width: 300px;
  --color-accent-ink: var(--paper);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 16px var(--font-body);
}
body { height: 100dvh; }
button, input, textarea { font: inherit; color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
:where(button, a, input, textarea, h1):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; font-weight: 550; }
h2 { text-wrap: balance; }
svg { width: 20px; height: 20px; display: block; flex: none; }
[hidden] { display: none !important; }
[data-icon] { display: inline-flex; }
::selection { color: var(--ink); background: var(--blue-soft); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-shell {
  height: 100dvh;
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: max(var(--space-6), env(safe-area-inset-top)) var(--space-2) max(var(--space-4), env(safe-area-inset-bottom));
  background: var(--paper);
}
.wordmark {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin: 0 var(--space-4) var(--space-6);
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -1px;
  width: fit-content;
}
.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  background: var(--ink);
  color: var(--color-accent-ink);
}
.brand-os {
  font: 500 14px var(--font-body);
  color: var(--muted);
  letter-spacing: 0;
  padding-left: var(--space-1);
}
.utility-nav { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-button, .space-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  text-decoration: none;
  font-size: 14px;
}
.nav-button { min-height: 44px; padding: 0 var(--space-4); border-radius: 10px; }
.nav-button svg { width: 18px; height: 18px; }
.nav-button.selected, .space-button.selected, .subthread a[aria-current] { background: var(--selected); }
.spaces-heading { font-size: 12px; color: var(--muted); margin: var(--space-7) var(--space-4) var(--space-3); }
.space-button { min-height: 68px; padding: var(--space-3) var(--space-4); border-radius: 12px; }
.space-copy { min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.space-name { font-size: 14px; font-weight: 500; }
.space-preview {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 13px;
}
.subthread {
  margin: var(--space-1) var(--space-4) var(--space-2) var(--space-9);
  padding: 0 0 0 var(--space-3);
  list-style: none;
  border-left: 1px solid var(--line);
}
.subthread a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: var(--space-2);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 7px;
}
.sidebar-bottom { margin-top: auto; padding: var(--space-6) var(--space-2) 0; }
.connection-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.connection-button span:last-child { margin-left: auto; }
.connection-button svg { width: 16px; height: 16px; }
.profile { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-2) 0; }
.user-initial {
  background: var(--selected);
  color: var(--muted);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.profile > div { display: flex; flex-direction: column; gap: var(--space-1); }
.profile strong { font-size: 13px; font-weight: 500; }
.profile > div > span { color: var(--muted); font-size: 12px; }

.avatar { width: 40px; height: 40px; display: inline-block; flex: none; color: var(--gray); }
.avatar svg { width: 100%; height: 100%; overflow: visible; }
.avatar.blue { color: var(--blue); }
.avatar.coral { color: var(--coral); }
.avatar.gold { color: var(--gold); }
.avatar.brown { color: var(--brown); }
.avatar.small { width: 24px; height: 24px; }
.avatar.large { width: 48px; height: 48px; }
.avatar.hero { width: 52px; height: 52px; }

main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.main-header {
  min-height: calc(52px + env(safe-area-inset-top));
  flex: none;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) max(var(--space-6), env(safe-area-inset-right)) 0 max(var(--space-6), env(safe-area-inset-left));
  gap: var(--space-3);
}
#view-identity { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; gap: var(--space-4); align-items: center; font-size: 12px; color: var(--muted); }
.preview-label { white-space: nowrap; padding: var(--space-1) var(--space-2); background: var(--faint); border-radius: 6px; }
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 13px;
  min-height: 36px;
  padding: var(--space-2);
  border-radius: 7px;
}
.quiet-button svg { width: 16px; height: 16px; }

.main-layout { min-height: 0; display: flex; flex: 1; }
.workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.content { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-7) var(--space-7) var(--space-5); scrollbar-width: thin; }
.day-content { max-width: 810px; margin: 0 auto; }
.greeting { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-7); }
.greeting h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.6px; margin-bottom: var(--space-2); }
.greeting p, .day-content > p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.day-content > .row-action { margin-top: var(--space-3); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.section-head h2 { font-size: 15px; }
.section-head span { font-size: 12px; color: var(--muted); }
.priority-list { margin-bottom: var(--space-7); }
.priority-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}
.priority-row:last-child { border-bottom: 1px solid var(--line); }
.row-symbol { color: var(--muted); }
.priority-row h3 { font-size: 15px; margin-bottom: var(--space-1); line-height: 1.5; }
.priority-row p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.row-controls { display: flex; gap: var(--space-2); }
.row-action { font-size: 12px; border: 1px solid var(--field); border-radius: 8px; min-height: 36px; padding: var(--space-2) var(--space-3); }

.context-panel {
  width: 260px;
  flex: none;
  background: var(--faint);
  border-left: 1px solid var(--line);
  padding: var(--space-6);
  overflow-y: auto;
}
.context-panel h2 { font-size: 14px; margin-bottom: var(--space-5); }
.context-panel h3 { font-size: 13px; margin-bottom: var(--space-2); }
.context-panel p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.context-section { padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.context-section:last-child { border-bottom: 0; }
.context-section .avatar { margin-bottom: var(--space-3); }
.source-row { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-4) 0; }
.source-row svg { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.source-row div { display: flex; flex-direction: column; gap: var(--space-1); }
.source-row strong { font-size: 12px; font-weight: 500; }
.source-row span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.text-link { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; padding: var(--space-2) 0; text-align: left; border-radius: 4px; }

.composer-area {
  padding: var(--space-3) max(var(--space-6), env(safe-area-inset-right)) max(var(--space-4), env(safe-area-inset-bottom)) max(var(--space-6), env(safe-area-inset-left));
  flex: none;
  background: var(--paper);
}
.prompt-chips { display: flex; gap: var(--space-2); margin: 0 auto var(--space-3); max-width: 1152px; flex-wrap: wrap; }
.prompt-chips :is(button, a) {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
#composer {
  border: 1px solid var(--field);
  border-radius: 24px;
  padding: var(--space-2);
  max-width: 1152px;
  margin: 0 auto;
  box-shadow: 0 4px 12px var(--shadow);
}
#message-input {
  border: 0;
  background: transparent;
  resize: none;
  display: block;
  width: 100%;
  min-height: 36px;
  max-height: min(216px, 28dvh);
  padding: 6px var(--space-3);
  font-size: 16px;
  line-height: 24px;
  border-radius: 12px;
  caret-color: var(--ink);
}
#message-input::placeholder { color: var(--muted); }
#message-input:focus-visible { outline-offset: -1px; }
#composer:has([aria-invalid="true"]) { border-color: var(--error); }
.composer-tools { display: flex; align-items: center; padding: 0 var(--space-1); gap: var(--space-2); }
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  flex: none;
}
.icon-button svg { width: 18px; height: 18px; }
.assistant-label { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: 12px; min-width: 0; }
.assistant-label .avatar { width: 20px; height: 20px; }
.assistant-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-end { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.send-button, .primary-button { background: var(--ink); color: var(--color-accent-ink); }
.send-button { height: 36px; width: 36px; border-radius: 50%; display: grid; place-items: center; }
.primary-button { min-height: 36px; padding: var(--space-2) var(--space-4); border-radius: 999px; font-size: 13px; }
.composer-note, .composer-error { font-size: 11px; color: var(--muted); text-align: center; min-height: 1lh; line-height: 1.5; margin-top: var(--space-2); }
.composer-error, .dialog-error { color: var(--error); }

.thread { max-width: 1152px; width: 100%; margin: 0 auto; }
.user-message { display: flex; flex-direction: column; align-items: flex-end; margin: 0 0 var(--space-4) var(--space-8); }
.assistant-message { margin: 0 var(--space-8) var(--space-4) 0; }
.message-author { display: flex; align-items: center; gap: var(--space-2); font-size: 12px; color: var(--muted); margin-bottom: var(--space-2); }
.user-bubble, .assistant-bubble {
  width: fit-content;
  max-width: min(640px, 100%);
  padding: 10px var(--space-3);
  font-size: 16px;
  line-height: 1.5;
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.user-bubble { background: var(--selected); white-space: pre-wrap; }
.assistant-bubble { background: var(--blue-soft); }
.assistant-bubble.coral { background: var(--coral-soft); }
.assistant-bubble.gold { background: var(--gold-soft); }
.assistant-bubble.gray { background: var(--gray-soft); }
.assistant-bubble.brown { background: var(--brown-soft); }
.prose p + p { margin-top: var(--space-3); }
.prose pre { overflow-x: auto; }
.message-meta { font-size: 12px; line-height: 16px; color: var(--muted); padding-top: var(--space-1); }
.reply-status { font-size: 13px; color: var(--muted); padding: var(--space-2) 0; }
.welcome-chat { padding-top: var(--space-8); max-width: 580px; margin: 0 auto; }
.welcome-chat h2 { font-size: 27px; margin: var(--space-5) 0 var(--space-3); letter-spacing: -.5px; }
.welcome-chat p { font-size: 15px; color: var(--muted); line-height: 1.7; }

dialog {
  width: 540px;
  max-width: calc(100% - var(--space-7));
  max-height: calc(100dvh - max(64px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: var(--space-6);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: var(--overlay); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.dialog-top h2 { font-size: 19px; }
#dialog-body p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: var(--space-3); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 13px; margin-bottom: var(--space-2); padding: 0; }
.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  border-radius: 8px;
  padding: var(--space-2);
  font-size: 13px;
  cursor: pointer;
}
.radio-option input { accent-color: var(--ink); margin: 0; }
.radio-option:has(input:checked) { background: var(--selected); }
.radio-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.avatar-options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.avatar-options .radio-option { flex-direction: column; min-width: 64px; }
.dialog-footer { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.dialog-error { margin-top: var(--space-3); font-size: 13px; }
.mobile-menu, .nav-scrim { display: none; }

@media (hover: hover) {
  button:not(:disabled):hover, .nav-button:hover, .space-button:hover, .subthread a:hover, .prompt-chips a:hover { background: var(--selected); }
  .send-button:not(:disabled):hover, .primary-button:not(:disabled):hover { background: var(--muted); }
}
@media (min-width: 1680px) {
  .app-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 280px; }
  .context-panel { width: 230px; padding: var(--space-5); }
  .content { padding: var(--space-6); }
  .priority-row { grid-template-columns: 24px minmax(0, 1fr); }
  .row-controls { grid-column: 2; justify-self: start; }
  .greeting h2 { font-size: 24px; }
}
@media (max-width: 1000px) {
  .context-panel, #header-context { display: none; }
}
@media (max-width: 720px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .menu-open .sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 88%);
    padding-left: max(var(--space-2), env(safe-area-inset-left));
    z-index: 5;
  }
  .menu-open .nav-scrim { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 4; }
  .mobile-menu { display: inline-flex; }
  .main-header {
    padding-inline: max(var(--space-2), env(safe-area-inset-left)) max(var(--space-2), env(safe-area-inset-right));
    justify-content: flex-start;
    gap: var(--space-1);
  }
  .header-actions { margin-left: auto; gap: var(--space-1); }
  #view-identity { gap: var(--space-1); }
  h1 { font-size: 14px; }
  .preview-label { font-size: 11px; }
  #new-chat { width: 44px; height: 44px; padding: 0; }
  .new-chat-label { display: none; }
  .content {
    padding: var(--space-6) max(var(--space-4), env(safe-area-inset-right)) var(--space-6) max(var(--space-4), env(safe-area-inset-left));
  }
  .composer-area {
    padding: var(--space-2) max(var(--space-3), env(safe-area-inset-right)) max(var(--space-3), env(safe-area-inset-bottom)) max(var(--space-3), env(safe-area-inset-left));
  }
  .icon-button, .send-button { width: 44px; height: 44px; }
  .quiet-button, .prompt-chips :is(button, a), .row-action, .subthread a, .primary-button { min-height: 44px; }
  .greeting { gap: var(--space-3); margin-bottom: var(--space-6); }
  .greeting h2 { font-size: 23px; }
  .greeting p { font-size: 13px; }
  .greeting .avatar { width: 40px; height: 40px; }
  .priority-row { padding: var(--space-4) 0; }
  .priority-row h3 { font-size: 14px; }
  .assistant-label { font-size: 11px; }
  .user-message { margin-left: var(--space-4); }
  .assistant-message { margin-right: 0; }
  .assistant-bubble, .user-bubble { font-size: 15px; }
}
@media (max-width: 390px) {
  .main-header:has(.avatar-edit) .preview-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  button:active { transform: none; }
}

.entry-screen {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: var(--space-6);
}
.entry-panel { width: 100%; max-width: 360px; margin-inline: auto; }
.entry-panel .wordmark { margin: 0 0 var(--space-8); }
.entry-avatar { margin-bottom: var(--space-4); }
.entry-panel h1 { font-size: 27px; line-height: 1.25; white-space: normal; }
.entry-status, .entry-error { font-size: 14px; line-height: 1.5; }
.entry-status { color: var(--muted); margin: var(--space-2) 0 var(--space-5); }
.entry-status:empty { margin-bottom: var(--space-3); }
#auth-form { display: grid; gap: var(--space-4); }
#auth-form label { display: block; font-size: 14px; margin-bottom: var(--space-2); }
#auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--paper);
  padding: var(--space-2) var(--space-3);
}
#auth-form input:focus-visible { outline-offset: -3px; }
#auth-form input[aria-invalid="true"] { border-color: var(--error); }
.entry-error { min-height: 1lh; color: var(--error); }
.entry-panel :is(.primary-button, .quiet-button, .row-action), #sign-out { min-height: 44px; }
.connection-state {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--faint);
  color: var(--muted);
  font-size: 13px;
}
.history-more { margin-bottom: var(--space-4); }
@media (hover: hover) {
  #auth-form input:not(:focus):hover { background: var(--faint); }
}

/* Birds Eye View uses the Eros shell, tokens and original avatars. */
.main-layout.is-overview .context-panel { display: none; }
.main-layout.is-overview .content { background: var(--faint); padding: var(--space-7); }
.overview { max-width: 1180px; margin: 0 auto; min-width: 0; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-5); }
.overview-heading h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: var(--space-2); }
.overview-heading p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.overview-filters { display: flex; align-items: center; gap: var(--space-1); padding: var(--space-1); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); flex: none; }
.overview-filters a { min-height: 36px; padding: var(--space-2) var(--space-3); display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 6px; font-size: 13px; color: var(--muted); }
.overview-filters a[aria-current] { background: var(--selected); color: var(--ink); font-weight: 500; }
.overview-example-notice { display: flex; gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0 var(--space-5); font-size: 12px; line-height: 1.5; }
.overview-example-notice strong { flex: none; font-weight: 550; }
.overview-example-notice span { color: var(--muted); }
.overview-coverage { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: var(--space-5); }
.overview-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.overview-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: var(--space-6); overflow-wrap: anywhere; }
.overview-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); min-height: 26px; }
.overview-card h2 { font-size: 15px; line-height: 1.4; }
.overview-card-head h2 { text-wrap: initial; }
.overview-text-action { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0; white-space: normal; }
.overview-attention { grid-column: span 8; display: flex; flex-direction: column; }
.overview-attention-list { list-style: none; margin: 0; padding: 0; }
.overview-attention-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.overview-row-icon { color: var(--muted); padding-top: 1px; }
.overview-row-icon svg { width: 18px; height: 18px; }
.overview-row-copy > a { display: inline-block; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.overview-row-copy p { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: var(--space-1); }
.overview-meta { display: inline-block; font-size: 11px; line-height: 1.5; color: var(--muted); }
.overview-row-copy .overview-meta { margin-top: var(--space-1); }
.overview-when { font-size: 11px; line-height: 1.5; color: var(--muted); padding-top: var(--space-1); white-space: nowrap; }
.overview-card-foot { font-size: 11px; color: var(--muted); line-height: 1.5; padding-top: var(--space-3); border-top: 1px solid var(--line); margin-top: auto; }
.overview-empty { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-3); padding: var(--space-6) 0 var(--space-7); }
.overview-empty > svg { color: var(--muted); }
.overview-empty strong { font-size: 16px; font-weight: 500; }
.overview-empty p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 45ch; }
.overview-work { grid-column: span 4; }
.overview-chart-title { font-size: 12px; color: var(--muted); margin-bottom: var(--space-6); }
.overview-bars { font-variant-numeric: tabular-nums; }
.overview-bar-row { margin-bottom: var(--space-5); }
.overview-bar-row > div:first-child { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; font-size: 13px; margin-bottom: var(--space-2); }
.overview-bar-row strong { font-size: 18px; font-weight: 500; }
.overview-bar-track { height: 12px; background: var(--faint); border-left: 1px solid var(--field); }
.overview-bar-fill { display: block; height: 100%; width: var(--bar-size); background: var(--gray); border-radius: 0 2px 2px 0; }
.overview-bar-fill.family { background: var(--blue); }
.overview-bar-axis { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--space-2); }
.overview-chart-note { margin-top: var(--space-6); font-size: 12px; line-height: 1.6; color: var(--muted); }
.overview-chart-note strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: var(--space-1); }
.overview-timeline { grid-column: 1 / -1; }
.overview-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.overview-day { min-width: 0; padding: 0 var(--space-3) var(--space-1); border-left: 1px solid var(--line); min-height: 120px; }
.overview-day:first-child { padding-left: 0; border-left: 0; }
.overview-day:last-child { padding-right: 0; }
.overview-day time { display: flex; flex-direction: column; gap: var(--space-1); font-variant-numeric: tabular-nums; margin-bottom: var(--space-4); }
.overview-day time span { font-size: 11px; color: var(--muted); }
.overview-day time strong { font-size: 21px; font-weight: 500; line-height: 1.3; }
.overview-day:first-child time strong { color: var(--ink); }
.overview-commitment { border-left: 2px solid var(--gray); padding-left: var(--space-2); margin-bottom: var(--space-3); }
.overview-commitment.family { border-color: var(--blue); }
.overview-commitment span { display: block; font-size: 11px; color: var(--muted); margin-bottom: var(--space-1); font-variant-numeric: tabular-nums; }
.overview-commitment a { display: block; font-size: 12px; line-height: 1.45; text-decoration: none; }
.overview-day-empty { color: var(--muted); font-size: 11px; }
.overview-timeline-note { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.5; }
.overview-space { grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; }
.overview-space .avatar { margin-bottom: var(--space-4); }
.overview-space h2 { margin-bottom: var(--space-1); }
.overview-space p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.overview-space-link { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: var(--space-2); min-height: 44px; margin-top: var(--space-5); border-top: 1px solid var(--line); padding-top: var(--space-3); font-size: 12px; text-decoration: none; }
.overview-space-link svg { width: 14px; height: 14px; color: var(--muted); }
.overview-notes { grid-column: span 6; }
.overview:not([data-filter="all"]) .overview-notes { grid-column: span 9; }
.overview-note-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.overview-note-list h3 { font-size: 13px; font-weight: 500; margin-bottom: var(--space-1); }
.overview-note-list p, .overview-note-intro { font-size: 12px; color: var(--muted); line-height: 1.6; }
.overview-note-intro { margin-bottom: var(--space-5); }
.overview-source-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.overview-source-map > div { border-top: 3px solid var(--line); padding-top: var(--space-2); }
.overview-source-map > div[data-source-state="connected"] { border-color: var(--blue); }
.overview-source-map > div[data-source-state="unavailable"] { border-color: var(--gray-soft); }
.overview-source-map dt { font-size: 11px; margin-bottom: var(--space-1); }
.overview-source-map dd { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
@media (hover: hover) {
  .overview a:hover, .overview button:hover { color: var(--ink); }
  .overview-row-copy > a:hover, .overview-commitment a:hover, .overview-space-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .overview-filters a:hover { background: var(--faint); text-decoration: none; }
}
@media (max-width: 1180px) {
  .overview-heading { align-items: flex-start; flex-direction: column; gap: var(--space-4); }
  .overview-card { padding: var(--space-5); }
  .overview-attention { grid-column: span 7; }
  .overview-work { grid-column: span 5; }
  .overview-space { grid-column: span 6; }
  .overview-notes, .overview:not([data-filter="all"]) .overview-notes { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .overview-attention, .overview-work { grid-column: 1 / -1; }
  .overview-week { grid-template-columns: 1fr; }
  .overview-day, .overview-day:first-child, .overview-day:last-child { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-left: 0; border-top: 1px solid var(--line); min-height: 0; align-items: start; }
  .overview-day time { margin-bottom: 0; }
  .overview-commitment { margin-bottom: 0; }
  .overview-commitment a { font-size: 13px; }
  .overview-day-empty { padding-top: var(--space-1); }
}
@media (max-width: 720px) {
  .main-layout.is-overview .content { padding: var(--space-6) var(--space-4) max(var(--space-6), env(safe-area-inset-bottom)); }
  .overview-heading h2 { font-size: 23px; }
  .overview-filters { width: 100%; }
  .overview-filters a { flex: 1; min-width: 0; min-height: 40px; padding: var(--space-2); }
  .overview-example-notice { display: block; }
  .overview-example-notice strong { display: block; margin-bottom: var(--space-1); }
  .overview-card { padding: var(--space-5); }
  .overview-space { grid-column: 1 / -1; }
  .overview-attention-row { grid-template-columns: 20px minmax(0, 1fr); }
  .overview-when { grid-column: 2; padding: 0; margin-top: calc(-1 * var(--space-2)); }
  .overview-note-list { grid-template-columns: 1fr; gap: var(--space-3); }
  .overview-source-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
}

.overview-week-chart { margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.overview-week-chart figcaption { font-size: 11px; color: var(--muted); margin-bottom: var(--space-3); }
.overview-week-chart svg { display: block; width: 100%; height: auto; max-height: 115px; overflow: visible; font-variant-numeric: tabular-nums; }
.overview-chart-rule { stroke: var(--line); stroke-width: 1; }
.overview-chart-label { fill: var(--muted); font-size: 11px; }
.overview-week-bar { fill: var(--gray); }
.overview-week-chart g:first-of-type .overview-week-bar { fill: var(--blue); }
