/* Global design foundations: docs/DESIGN_SYSTEM.md */
:root {
  --progress-height:8px;
  color-scheme:light;
  --brand:#0064ff;
  --brand-hover:#0053d8;
  --navy:#0b2454;
  --sky:#8ab8ff;
  --blue-soft:#eaf2ff;
  --background:#f5f7fb;
  --surface:#fff;
  --text:#162b4c;
  --muted:#64748b;
  --border:#e4eaf3;
  --danger:#b33a45;
  --warning:#90621e;
  --warning-soft:#fff6e7;
  --radius-card:20px;
  --radius-control:12px;
  --shadow:0 6px 24px rgb(11 36 84 / 4%);
  --focus:0 0 0 3px rgb(0 100 255 / 23%);
  --robot-screen:#050d20;
  --robot-light:#d6f6ff;
  --robot-frame:#dce6f5;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --space-10:40px;
  --space-12:48px;
  font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  font-synthesis:none
}

* {
  box-sizing:border-box
}

html { scroll-padding-top:110px; overflow-x:clip; }

body {
  margin:0;
  background:var(--background);
  color:var(--text);
  font-size:14px;
  line-height:1.5
}

button,input,textarea,select {
  font:inherit
}

button {
  cursor:pointer
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--brand);
  outline-offset:3px
}

button:disabled {
  cursor:wait;
  opacity:.6
}

button,input,select,textarea {
  transition:background .16s,border-color .16s,box-shadow .16s
}

h1,h2,h3,p {
  margin:0
}

h1,h2,h3 {
  color:var(--navy);
  line-height:1.25
}

h1 {
  font-size:clamp(30px,4.4vw,44px);
  letter-spacing:-.045em;
  font-weight:720
}

h2 {
  font-size:24px;
  letter-spacing:-.035em
}

h3 {
  font-size:16px;
  letter-spacing:-.015em;
  font-weight:650
}

small,.muted {
  color:var(--muted)
}

strong,.stat-value,.money,.calendar-day {
  font-variant-numeric:tabular-nums
}

.hidden,[hidden] {
  display:none!important
}

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

.icon {
  width:20px;
  height:20px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}

.app-shell {
  width:min(1160px,calc(100% - 64px));
  min-width:0;
  margin:0 auto
}

.topbar {
  position:sticky;
  top:0;
  z-index:20;
  background:var(--background);
  min-height:94px;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--border)
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
  text-decoration:none;
  color:var(--navy)
}

.brand-logo {
  width:46px;
  height:46px;
  object-fit:contain;
  box-sizing:border-box;
  padding:4px;
  border-radius:12px;
  background:white
}

.brand-copy {
  display:grid;
  min-width:0
}

.brand-copy strong {
  font-size:22px;
  letter-spacing:-.04em;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.brand-copy span {
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.topbar-end {
  display:flex;
  align-items:center;
  gap:20px;
  flex:0 0 auto;
  min-width:0
}

.topbar-date {
  font-size:12px;
  color:var(--muted)
}

.status-pill {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  font-size:11px;
  color:var(--muted)
}

.dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--brand)
}

.dot.offline {
  background:var(--warning)
}

.eyebrow,.section-kicker {
  color:var(--brand);
  font-size:10px;
  font-weight:750;
  letter-spacing:.15em;
  text-transform:uppercase
}

.hero {
  display:grid;
  justify-items:center;
  text-align:center;
  padding:40px 0 36px
}

.hero h1 {
  margin-top:10px
}

.hero-copy {
  color:var(--muted);
  margin-top:10px;
  font-size:14px
}

.mic-button {
  position:relative;
  width:78px;
  height:78px;
  display:grid;
  place-content:center;
  justify-items:center;
  margin:25px 0 39px;
  border:0;
  border-radius:50%;
  background:var(--brand);
  color:white;
  box-shadow:0 8px 22px rgb(0 100 255 / 19%)
}

.mic-button:hover {
  background:var(--brand-hover)
}

.mic-button>svg {
  width:29px;
  height:29px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}

.mic-button>span:last-child {
  position:absolute;
  top:calc(100% + 10px);
  width:230px;
  left:50%;
  transform:translateX(-50%);
  color:var(--muted);
  font-size:11px;
  font-weight:600
}

.pulse {
  display:none;
  position:absolute;
  inset:-8px;
  border:1px solid rgb(0 100 255 / 20%);
  border-radius:50%;
  animation:pulse 1.8s infinite ease-out
}

.pulse-two {
  animation-delay:.6s
}

.mic-button.listening .pulse {
  display:block
}

@keyframes pulse {
  from {
    transform:scale(.92);
    opacity:1
  }
  to {
    transform:scale(1.25);
    opacity:0
  }
}

.command-form {
  width:min(690px,100%);
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 10px 9px 18px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow)
}

.command-form:focus-within {
  border-color:var(--sky);
  box-shadow:var(--focus)
}

.command-form textarea {
  width:100%;
  border:0;
  outline:0;
  resize:none;
  height:64px;
  min-height:64px;
  max-height:64px;
  min-width:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:11px 0;
  background:transparent;
  color:var(--text);
  font-size:13px;
  line-height:1.5
}

.command-form textarea::placeholder {
  color:var(--muted)
}

.send-button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  flex-shrink:0;
  border:0;
  border-radius:var(--radius-control);
  background:var(--brand);
  color:white
}

.send-button:hover {
  background:var(--brand-hover)
}

.send-button svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}

.suggestions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:12px
}

.suggestion {
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:999px;
  background:transparent;
  padding:7px 12px;
  font-size:11px
}

.suggestion:hover {
  color:var(--brand);
  border-color:var(--sky);
  background:var(--blue-soft)
}

.speech-feedback {
  width:min(690px,100%);
  margin:0 0 16px;
  padding:12px 16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-control);
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}

.speech-feedback .text-button {
  margin-top:6px
}

.button,.text-button,.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  border:1px solid transparent;
  border-radius:var(--radius-control);
  padding:10px 16px;
  font-weight:600;
  font-size:12px;
  text-decoration:none
}

.button.primary {
  color:white;
  background:var(--brand)
}

.button.primary:hover {
  background:var(--brand-hover)
}

.button.secondary {
  border-color:var(--border);
  color:var(--text);
  background:var(--surface)
}

.button.secondary:hover,.button.ghost:hover,.icon-button:hover {
  background:var(--blue-soft);
  border-color:var(--sky)
}

.button.ghost,.icon-button {
  background:transparent;
  color:var(--muted)
}

.text-button {
  background:transparent;
  color:var(--brand);
  padding:6px 0;
  min-height:32px
}

.text-button:hover {
  text-decoration:underline
}

.icon-button {
  width:40px;
  min-height:40px;
  padding:8px
}

.button .icon {
  width:16px;
  height:16px
}

.workspace {
  padding-bottom:44px
}

.workspace-intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:0 0 16px
}

.workspace-intro h2 {
  font-size:18px;
  letter-spacing:-.02em
}

.workspace-intro p {
  color:var(--muted);
  font-size:12px;
  margin-top:4px
}

.tabs {
  display:flex;
  gap:6px;
  width:100%;
  padding:6px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#edf1f7;
  margin-bottom:28px
}

.tab {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex:1;
  padding:13px 16px;
  min-height:48px;
  border:1px solid transparent;
  border-radius:11px;
  color:var(--muted);
  background:transparent;
  font-weight:600;
  font-size:13px
}

.tab[aria-selected="true"] {
  color:var(--brand);
  background:var(--surface);
  border-color:var(--border);
  box-shadow:0 2px 6px rgb(11 36 84 / 3%)
}

.tab:hover {
  color:var(--brand)
}

.tab .icon {
  width:18px;
  height:18px
}

.panel-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:20px
}

.panel-header p {
  margin-top:5px;
  color:var(--muted);
  font-size:12px
}

.panel-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px
}

.card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow);
  padding:24px;
  min-width:0
}

.card-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px
}

.card-title {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0
}

.card-title>.icon {
  color:var(--brand);
  width:19px;
  height:19px
}

.card-subtitle {
  color:var(--muted);
  font-size:12px;
  margin-top:4px
}

.count,.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--brand);
  padding:4px 9px;
  font-size:10px;
  font-weight:650;
  white-space:nowrap
}

.badge.neutral {
  background:var(--background);
  color:var(--muted)
}

.badge.warning {
  background:var(--warning-soft);
  color:var(--warning)
}

.schedule-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:20px;
  align-items:start
}

.stack {
  display:grid;
  gap:20px;
  min-width:0
}

.agenda-row {
  display:grid;
  grid-template-columns:54px 1fr auto;
  align-items:start;
  gap:12px;
  padding:18px 0;
  border-top:1px solid var(--border)
}

.agenda-row:first-child {
  border-top:0;
  padding-top:4px
}

.agenda-row:last-child {
  padding-bottom:0
}

.agenda-time {
  color:var(--brand);
  font-size:13px;
  font-weight:650;
  font-variant-numeric:tabular-nums
}

.item-copy {
  display:grid;
  gap:4px;
  min-width:0
}

.item-copy strong {
  font-size:13px;
  font-weight:600;
  overflow-wrap:anywhere
}

.agenda-icon { display:inline-grid; place-items:center; width:24px; height:24px; margin-right:7px; vertical-align:-7px; border-radius:8px; background:var(--blue-soft); color:var(--brand); }
.agenda-icon .icon { width:14px; height:14px; }

.item-copy small {
  font-size:11px
}

.empty {
  display:grid;
  justify-items:center;
  align-content:center;
  text-align:center;
  min-height:150px;
  padding:20px;
  gap:8px
}

.empty-icon {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  background:var(--blue-soft);
  color:var(--brand);
  border-radius:14px;
  margin-bottom:3px
}

.empty strong {
  font-size:13px;
  font-weight:600
}

.empty p {
  color:var(--muted);
  font-size:12px;
  max-width:300px
}

.calendar-heading {
  display:flex;
  gap:4px;
  align-items:center
}

.calendar-heading h3 {
  flex:1;
  text-transform:capitalize
}

.calendar-heading .icon-button {
  width:36px;
  min-height:40px;
  padding:5px
}

.calendar-week,.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr))
}

.calendar-week {
  margin:18px 0 8px;
  text-align:center;
  color:var(--muted);
  font-size:10px
}

.calendar-grid {
  gap:4px
}

.calendar-day {
  position:relative;
  min-width:0;
  height:44px;
  border:1px solid transparent;
  border-radius:10px;
  color:var(--text);
  background:transparent;
  font-size:12px
}

.calendar-day:hover {
  background:var(--blue-soft)
}

.calendar-day.outside {
  color:#8998ac
}

.calendar-day.today {
  border-color:var(--sky);
  color:var(--brand);
  font-weight:750
}

.calendar-day[aria-pressed="true"] {
  background:var(--brand);
  color:white;
  border-color:var(--brand)
}

.calendar-day.has-event::after {
  content:'';
  position:absolute;
  bottom:5px;
  left:calc(50% - 2px);
  width:4px;
  height:4px;
  background:var(--brand);
  border-radius:50%
}

.calendar-day[aria-pressed="true"]::after {
  background:white
}

.calendar-footer {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  margin-top:14px;
  color:var(--muted);
  font-size:10px
}

.calendar-key {
  display:inline-flex;
  gap:6px;
  align-items:center
}

.calendar-key::before {
  content:'';
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--brand)
}

.selected-agenda {
  border-top:1px solid var(--border);
  margin-top:16px;
  padding-top:18px
}

.selected-agenda h3 {
  font-size:13px;
  margin-bottom:12px
}

.selected-agenda .empty {
  min-height:80px;
  padding:8px
}

.selected-agenda .empty-icon {
  display:none
}

.stat-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px
}

.stat-card {
  padding:22px
}

.stat-label {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  color:var(--muted);
  font-size:12px
}

.stat-label .icon {
  width:17px;
  height:17px;
  color:var(--brand)
}

.stat-value {
  display:block;
  margin-top:14px;
  font-size:clamp(22px,2.7vw,30px);
  letter-spacing:-.045em;
  color:var(--navy);
  line-height:1.25;
  overflow-wrap:anywhere
}

.stat-card small {
  display:block;
  font-size:10px;
  margin-top:7px
}

.card.emphasis {
  background:var(--navy);
  border-color:var(--navy)
}

.emphasis h3,.emphasis .stat-value,.emphasis .stat-label {
  color:white
}

.emphasis .stat-label .icon {
  color:var(--sky)
}

.emphasis small {
  color:#b7c7df
}

.chart-grid {
  display:grid;
  grid-template-columns:1.45fr 1fr;
  gap:20px;
  margin-bottom:20px
}

.chart-wrap {
  width:100%;
  overflow:hidden
}

.cash-chart {
  width:100%;
  height:auto;
  display:block;
  margin-top:8px
}

.chart-gridline {
  stroke:var(--border);
  stroke-width:1
}

.chart-zero {
  stroke:#a1aebf;
  stroke-width:1
}

.chart-income {
  fill:var(--brand)
}

.chart-expense {
  fill:var(--navy)
}

.chart-balance {
  fill:var(--sky)
}

.chart-label {
  fill:var(--muted);
  font-size:10px;
  font-family:inherit
}

.legend {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:10px
}

.legend span {
  display:inline-flex;
  align-items:center;
  gap:6px
}

.legend i {
  width:7px;
  height:7px;
  border-radius:2px;
  background:var(--brand)
}

.legend .expense {
  background:var(--navy)
}

.legend .balance {
  background:var(--sky)
}

.chart-note {
  color:var(--muted);
  font-size:10px;
  margin-top:12px
}

.donut-wrap {
  position:relative;
  width:152px;
  height:152px;
  margin:8px auto 16px
}

.donut-wrap svg {
  width:100%;
  height:100%;
  transform:rotate(-90deg)
}

.donut-center {
  position:absolute;
  inset:0;
  display:grid;
  align-content:center;
  justify-items:center
}

.donut-center strong {
  color:var(--navy);
  font-size:20px;
  letter-spacing:-.035em
}

.donut-center small {
  font-size:10px
}

.category-list {
  display:grid;
  gap:9px
}

.category-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:11px
}

.category-row span {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--muted)
}

.category-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  flex-shrink:0
}

.filter-group {
  display:flex;
  padding:3px;
  gap:3px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--background)
}

.filter-button {
  border:0;
  border-radius:7px;
  padding:7px 12px;
  color:var(--muted);
  background:transparent;
  font-size:11px;
  min-height:32px
}

.filter-button[aria-pressed="true"] {
  background:var(--surface);
  color:var(--brand);
  box-shadow:0 1px 4px rgb(11 36 84 / 6%);
  font-weight:650
}

.transaction-row {
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:16px 0;
  border-top:1px solid var(--border)
}

.transaction-row:first-child {
  border-top:0
}

.item-icon {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  background:var(--blue-soft);
  color:var(--brand);
  border-radius:11px
}

.item-icon.expense {
  color:var(--navy);
  background:var(--background)
}

.money {
  font-size:13px;
  font-weight:650;
  text-align:right
}

.transaction-delete { font-size:11px; }

.money.income {
  color:var(--brand)
}

.money.expense {
  color:var(--navy)
}

.goal-summary {
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:16px;
  margin-bottom:20px
}

.goal-overall {
  display:flex;
  align-items:center;
  gap:22px
}

.goal-overall p {
  color:var(--muted);
  font-size:11px;
  margin-top:6px
}

.progress-ring {
  width:88px;
  height:88px;
  flex-shrink:0;
  position:relative
}

.progress-ring svg {
  width:100%;
  height:100%;
  transform:rotate(-90deg)
}

.progress-ring strong {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--brand);
  font-size:22px;
  letter-spacing:-.04em
}

.goal-list {
  display:grid;
  gap:14px
}

.goal-card {
  padding:22px 24px
}

.goal-top {
  display:flex;
  align-items:flex-start;
  gap:14px
}

.goal-check {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex-shrink:0;
  border:1.5px solid var(--border);
  background:var(--surface);
  color:transparent;
  border-radius:50%
}

.goal-check:hover {
  border-color:var(--brand)
}

.goal-check[aria-checked="true"] {
  background:var(--brand);
  border-color:var(--brand);
  color:white
}

.goal-content {
  flex:1;
  min-width:0
}

.goal-title-line {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between
}

.goal-title-line h3 {
  overflow-wrap:anywhere
}

.goal-meta {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:7px;
  color:var(--muted);
  font-size:11px
}

.goal-progress-line {
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:11px;
  margin-top:18px
}

.progress-track {
  height:var(--progress-height);
  width:100%;
  border-radius:999px;
  background:var(--blue-soft);
  overflow:hidden;
  margin-top:8px
}

.progress-fill {
  height:100%;
  width:var(--progress,0%);
  border-radius:inherit;
  background:var(--brand)
}

.goal-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:10px
}

.goal-footer small {
  font-size:10px
}

.goal-footer .text-button {
  font-size:11px
}

.draft-card {
  margin:0 auto 28px;
  max-width:760px
}

.draft-heading,.draft-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}

.draft-heading h2 {
  font-size:20px;
  margin-top:6px
}

.type-badge {
  padding:5px 10px;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--brand);
  font-size:11px;
  font-weight:650
}

.draft-details {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:20px 0
}

.detail {
  display:grid;
  gap:5px;
  background:var(--background);
  padding:14px;
  border-radius:var(--radius-control)
}

.detail span {
  font-size:11px;
  color:var(--muted)
}

.detail strong {
  font-size:13px;
  overflow-wrap:anywhere
}

.draft-warning,.form-error {
  padding:12px;
  color:var(--danger);
  background:#fff2f3;
  border-radius:var(--radius-control);
  font-size:12px
}

.draft-actions {
  justify-content:flex-end;
  margin-top:18px
}

.field {
  display:grid;
  gap:7px;
  min-width:0
}

.field>label {
  color:var(--text);
  font-size:12px;
  font-weight:600
}

.input {
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-control);
  color:var(--text);
  background:var(--surface)
}

.input:hover {
  border-color:var(--sky)
}

.input:focus {
  border-color:var(--brand)
}

.field small {
  font-size:11px
}

.month-input {
  width:166px;
  min-height:44px;
  padding:8px 10px;
  font-size:12px
}

.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}

.field.full {
  grid-column:1 / -1
}

.field-label { color:var(--text); font-size:12px; font-weight:600; }
.activity-icon-picker { display:flex; flex-wrap:wrap; gap:8px; }
.activity-icon-option { display:grid; place-items:center; width:42px; height:42px; padding:0; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--muted); }
.activity-icon-option:hover,.activity-icon-option:focus-visible,.activity-icon-option[aria-checked="true"] { border-color:var(--brand); color:var(--brand); box-shadow:var(--focus); }
.activity-icon-option .icon { width:19px; height:19px; }
.icon-bank-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; }
.icon-bank-actions .field-hint { color:var(--muted); font-size:11px; }
.icon-bank { margin-top:10px; padding:12px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--background); }
.icon-bank>label { display:block; color:var(--text); font-size:12px; font-weight:600; margin-bottom:6px; }
.icon-bank-search { width:100%; }
.icon-bank-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(66px,1fr)); gap:6px; max-height:210px; overflow-y:auto; margin-top:10px; padding:2px; }
.icon-bank-option { display:grid; place-items:center; gap:4px; min-width:0; min-height:58px; padding:6px 3px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--muted); }
.icon-bank-option:hover,.icon-bank-option:focus-visible,.icon-bank-option[aria-checked="true"] { border-color:var(--brand); color:var(--brand); box-shadow:var(--focus); }
.icon-bank-option .icon { width:20px; height:20px; }
.icon-bank-option span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.icon-bank-empty { margin-top:10px; color:var(--muted); font-size:11px; }

.dialog {
  width:min(520px,calc(100% - 32px));
  max-height:calc(100dvh - 48px);
  padding:0;
  border:1px solid var(--border);
  border-radius:var(--radius-card);
  color:var(--text);
  background:var(--surface);
  box-shadow:0 24px 80px rgb(11 36 84 / 20%)
}

.dialog::backdrop {
  background:rgb(11 36 84 / 32%);
  backdrop-filter:blur(3px)
}

.dialog-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:24px 24px 18px;
  border-bottom:1px solid var(--border)
}

.dialog-header h2 {
  font-size:21px
}

.dialog-header p {
  color:var(--muted);
  font-size:12px;
  margin-top:6px
}

.dialog-body {
  padding:24px
}

.dialog-footer {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:18px 24px;
  border-top:1px solid var(--border)
}

.form-error {
  margin-top:16px
}

.toast {
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  max-width:calc(100% - 32px);
  z-index:100;
  padding:12px 18px;
  border-radius:var(--radius-control);
  background:var(--navy);
  color:white;
  box-shadow:var(--shadow);
  font-size:12px
}

footer {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  padding:22px 0 28px;
  border-top:1px solid var(--border);
  font-size:11px;
  color:var(--muted)
}

.footer-brand {
  font-weight:650;
  color:var(--navy)
}

@media(max-width:900px) {
  .app-shell {
    width:calc(100% - 40px)
  }
  .schedule-grid {
    grid-template-columns:1fr 1fr;
    gap:16px
  }
  .chart-grid {
    grid-template-columns:1.2fr 1fr;
    gap:16px
  }
  .card {
    padding:20px
  }
  .goal-summary {
    grid-template-columns:1fr 1fr
  }
  .goal-overall {
    grid-column:1 / -1
  }
  .topbar-date {
    display:none
  }
}

@media(max-width:640px) {
  .app-shell {
    width:calc(100% - 32px)
  }
  .topbar {
    min-height:78px
  }
  .brand-logo {
    width:40px;
    height:40px
  }
  .brand-copy strong {
    font-size:20px
  }
  .status-pill {
    font-size:10px;
    padding:6px 8px
  }
  .hero {
    padding:30px 0
  }
  .hero-copy {
    max-width:300px;
    font-size:12px;
    line-height:1.7
  }
  .suggestions {
    gap:6px
  }
  .suggestion {
    font-size:10px;
    padding:7px 9px
  }
  .command-form {
    padding-left:12px
  }
  .command-form textarea {
    font-size:12px
  }
  .workspace-intro {
    align-items:flex-end
  }
  .workspace-intro h2 {
    font-size:16px
  }
  .workspace-intro p {
    font-size:11px
  }
  .workspace-intro .text-button {
    max-width:100px;
    font-size:11px;
    text-align:right
  }
  .tabs {
    gap:3px;
    padding:4px;
    margin-bottom:24px
  }
  .tab {
    padding:11px 6px;
    gap:6px;
    font-size:11px
  }
  .tab .icon {
    width:16px;
    height:16px
  }
  .panel-header h2 {
    font-size:22px
  }
  .panel-header {
    gap:14px
  }
  .panel-actions {
    width:100%;
    justify-content:space-between
  }
  .panel-actions .button {
    margin-left:auto
  }
  .schedule-grid,.chart-grid {
    grid-template-columns:1fr
  }
  .stat-grid {
    grid-template-columns:1fr 1fr;
    gap:12px
  }
  .stat-grid .emphasis {
    grid-column:1 / -1
  }
  .stat-card {
    padding:18px
  }
  .stat-value {
    font-size:24px
  }
  .card-header {
    flex-wrap:wrap
  }
  .agenda-row {
    gap:9px;
    grid-template-columns:48px minmax(0,1fr) auto
  }
  .agenda-row .badge {
    padding:3px 6px;
    font-size:9px
  }
  .goal-summary {
    gap:12px
  }
  .goal-title-line {
    flex-wrap:wrap;
    gap:7px
  }
  .goal-card {
    padding:20px 16px
  }
  .goal-top {
    gap:10px
  }
  .goal-footer {
    align-items:flex-start
  }
  .transaction-row {
    gap:9px;
    grid-template-columns:32px minmax(0,1fr) auto
  }
  .transaction-row .item-icon {
    width:32px;
    height:32px
  }
  .money {
    font-size:12px
  }
  .filter-button {
    padding:8px 10px
  }
  .draft-details {
    grid-template-columns:1fr
  }
  .draft-heading {
    align-items:flex-start
  }
  .dialog-header,.dialog-body {
    padding:20px
  }
  .dialog-footer {
    padding:16px 20px
  }
  .form-grid {
    gap:16px
  }
}

/* v0.6 global themes, landscape companion layout, and shared preference controls. */
:root {
  --tabs-bg:#edf1f7;
  --surface-raised:#fff;
  --hero-glow:rgb(0 100 255 / 8%);
  --robot-frame-a:#f0f5fd;
  --robot-frame-b:#dce6f5;
  --theme-accent-2:#55c8ff;
  --card-border-width:1px
}

html[data-theme="studio"] {
  color-scheme:light;
  --brand:#8257e6; --brand-hover:#6c43cf; --navy:#3d2869; --sky:#bd9cff;
  --blue-soft:#eee6ff; --background:#e8dcff; --surface:#f8f3ff; --surface-raised:#fff;
  --text:#3c2f58; --muted:#75668f; --border:#d5c4f2; --danger:#b33d72;
  --warning:#916119; --warning-soft:#fff2d8; --radius-card:28px; --radius-control:16px;
  --shadow:0 16px 36px rgb(83 49 150 / 16%),inset 0 1px 0 rgb(255 255 255 / 80%);
  --focus:0 0 0 4px rgb(130 87 230 / 25%); --robot-screen:#2d2147;
  --robot-light:#9cf7ed; --robot-frame:#e9ddff; --tabs-bg:#d9caf5;
  --hero-glow:rgb(130 87 230 / 22%); --robot-frame-a:#fbf7ff; --robot-frame-b:#c9b5ef;
  --theme-accent-2:#54d5d1; --card-border-width:2px
}

html[data-theme="terminal"] {
  color-scheme:dark;
  --brand:#8cff72; --brand-hover:#b1ff9e; --navy:#d6ffd0; --sky:#36d9c4;
  --blue-soft:#10271e; --background:#07100d; --surface:#0b1713; --surface-raised:#102019;
  --text:#d2f7dd; --muted:#83ab93; --border:#275640; --danger:#ff7285;
  --warning:#ffd166; --warning-soft:#332b12; --radius-card:6px; --radius-control:4px;
  --shadow:0 0 0 1px rgb(140 255 114 / 10%),0 0 24px rgb(54 217 196 / 8%);
  --focus:0 0 0 3px rgb(140 255 114 / 28%); --robot-screen:#010604;
  --robot-light:#8cff72; --robot-frame:#132a20; --tabs-bg:#06100c;
  --hero-glow:rgb(140 255 114 / 13%); --robot-frame-a:#162f24; --robot-frame-b:#08130e;
  --theme-accent-2:#36d9c4; --card-border-width:1px;
  font-family:"Cascadia Mono","Consolas",monospace
}

html[data-theme="sunset"] {
  color-scheme:light;
  --brand:#e4553f; --brand-hover:#c54131; --navy:#50243d; --sky:#f5a58f;
  --blue-soft:#fff0e6; --background:#fff7e9; --surface:#fffdf7; --surface-raised:#fff9ef;
  --text:#4a2f38; --muted:#8b6b6b; --border:#ecd9c8; --danger:#b5344f;
  --warning:#9a5d12; --warning-soft:#fff2d1; --radius-card:30px 18px 30px 18px;
  --radius-control:18px 10px 18px 10px; --shadow:0 12px 30px rgb(122 65 50 / 10%);
  --focus:0 0 0 4px rgb(228 85 63 / 20%); --robot-screen:#351c31;
  --robot-light:#ffd6a3; --robot-frame:#f4c9b8; --tabs-bg:#f9e5d5;
  --hero-glow:rgb(228 85 63 / 14%); --robot-frame-a:#fff0df; --robot-frame-b:#efb7aa;
  --theme-accent-2:#9a5a9f; --card-border-width:1px
}

body {
  background-color:var(--background);
  background-image:radial-gradient(circle at 22% 8%,var(--hero-glow),transparent 32%)
}
html[data-theme="terminal"] body {
  background-image:linear-gradient(rgb(140 255 114 / 2%) 1px,transparent 1px),linear-gradient(90deg,rgb(54 217 196 / 2%) 1px,transparent 1px);
  background-size:24px 24px
}
.card,.dialog { border-width:var(--card-border-width); background:var(--surface); }
.tabs { background:var(--tabs-bg); }
.robot-housing { background:linear-gradient(145deg,var(--robot-frame-a),var(--robot-frame-b)); }
.brand-logo { background:var(--surface-raised); }

.hero { display:block; padding:36px 0 42px; text-align:left; }
.hero-layout { display:grid; grid-template-columns:minmax(340px,.9fr) minmax(460px,1.2fr); gap:clamp(36px,6vw,76px); align-items:start; }
.hero-robot { display:grid; justify-items:center; text-align:center; position:sticky; top:126px; min-width:0; padding-top:16px; }
.hero-chat { min-width:0; padding-top:8px; position:relative; }
.conversation-tail { position:absolute; width:44px; height:56px; left:-42px; top:42%; z-index:1; overflow:visible; pointer-events:none; }
.conversation-tail path { fill:var(--surface); stroke:var(--border); stroke-width:1.2; }
.hero-chat .conversation { width:100%; height:clamp(520px,calc(100svh - 170px),600px); margin-top:0; }
.hero-chat .assistant-note { width:100%; }
.hero-robot .robot-companion { width:min(330px,78vw); }
.hero-robot h1 { font-size:clamp(34px,4vw,50px); }

.robot-microphone { position:absolute; right:-20px; bottom:-30px; width:150px; height:100px; z-index:3; pointer-events:none; }
.mic-cable { position:absolute; inset:0; z-index:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.mic-cable path { fill:none; stroke:var(--muted); stroke-width:3; stroke-linecap:round; opacity:.75; }
.physical-mic { position:absolute; right:9px; bottom:8px; z-index:1; width:58px; height:92px; padding:0; border:0; background:transparent; color:var(--text); pointer-events:auto; transform:rotate(-12deg); filter:drop-shadow(0 7px 8px rgb(11 36 84 / 18%)); touch-action:none; user-select:none; }
.mic-grille { position:absolute; top:0; left:8px; width:42px; height:42px; display:grid; align-content:center; gap:4px; padding:8px; border:2px solid currentColor; border-radius:50%; background:var(--surface-raised); }
.mic-grille i { display:block; height:2px; border-radius:2px; background:currentColor; opacity:.65; }
.mic-handle { position:absolute; top:37px; left:22px; width:15px; height:48px; border:2px solid currentColor; border-radius:4px 4px 10px 10px; background:var(--brand); }
.mic-connector { position:absolute; left:50%; bottom:0; width:0; height:0; }
.mic-hold-label { position:absolute; right:-8px; bottom:-16px; width:120px; color:var(--muted); font-size:10px; font-weight:650; text-align:center; }
.physical-mic:hover,.physical-mic:focus-visible { color:var(--brand); }
.physical-mic.listening,.physical-mic[data-pressed="true"] { color:var(--brand); transform:rotate(-8deg) translateY(-3px) scale(1.05); filter:drop-shadow(0 0 12px var(--sky)); }
.robot-microphone[data-mic-style="retro"] .mic-grille { border-radius:8px; width:46px; height:48px; background:var(--robot-frame); }
.robot-microphone[data-mic-style="retro"] .mic-handle { width:20px; left:21px; border-radius:2px; background:var(--navy); }
.robot-microphone[data-mic-style="pod"] .physical-mic { height:72px; transform:rotate(0); }
.robot-microphone[data-mic-style="pod"] .mic-grille { width:52px; height:52px; left:3px; border-radius:22px; background:var(--brand); color:white; }
.robot-microphone[data-mic-style="pod"] .mic-handle { top:48px; left:26px; width:6px; height:21px; background:var(--text); }
.robot-microphone[data-mic-style="handset"] .mic-grille { width:32px; height:56px; left:13px; border-radius:18px 18px 8px 8px; }
.robot-microphone[data-mic-style="handset"] .mic-handle { top:51px; left:18px; width:22px; height:35px; border-radius:6px 6px 14px 14px; background:var(--theme-accent-2); }
.robot-companion[data-style="face"] .robot-microphone { right:-72px; }

.settings-tabs { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; padding:8px 28px; border-bottom:1px solid var(--border); background:var(--surface); }
.settings-tabs button { min-height:42px; border:1px solid transparent; border-radius:var(--radius-control); background:transparent; color:var(--muted); font-weight:650; font-size:12px; }
.settings-tabs button[aria-selected="true"] { color:var(--brand); background:var(--blue-soft); border-color:var(--border); }
.dialog-settings .settings-body { padding-block:12px; }
.settings-section { padding-block:8px; }
.settings-section+.settings-section { border:0; }
.setting-block { padding:12px 0; }
.status-pill { border:1px solid var(--border); cursor:pointer; font:inherit; }
.account-mode { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; margin:12px 0; padding:4px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface); }
.account-mode button { min-height:44px; border:1px solid transparent; border-radius:calc(var(--radius-control) - 4px); background:transparent; color:var(--muted); font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.account-mode button[aria-pressed="true"] { color:var(--brand); border-color:var(--border); background:var(--blue-soft); box-shadow:var(--focus); }
.account-mode button:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.account-form { display:grid; gap:12px; }
.account-form .button { justify-self:start; }
.account-card { display:grid; gap:10px; padding:16px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--surface-soft); }
.account-card strong { font-size:16px; overflow-wrap:anywhere; }
.account-card p { margin:0; color:var(--muted); font-size:12px; }
.setting-block>strong,.setting-block label strong { display:block; font-size:14px; font-weight:650; }
.setting-block>p { color:var(--muted); font-size:12px; margin:3px 0 10px; }
.setting-block>small { display:block; color:var(--muted); font-size:11px; margin-top:7px; }
.inline-field { display:flex; align-items:center; gap:8px; }
.inline-field .input { flex:1; min-width:0; }
.theme-picker { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:10px; }
.theme-picker button { display:grid; grid-template-columns:34px 1fr; align-items:center; gap:10px; min-height:54px; padding:8px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface); color:var(--text); text-align:left; font-size:12px; font-weight:650; }
.theme-picker button[aria-checked="true"],.face-picker button[aria-checked="true"],#voiceModes button[aria-checked="true"] { border-color:var(--brand); box-shadow:var(--focus); color:var(--brand); }
.theme-picker i { width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,#0064ff,#d6f6ff); }
.theme-picker [data-theme="studio"] i { background:linear-gradient(135deg,#8257e6,#9cf7ed); box-shadow:inset 4px 4px 8px #fff8; }
.theme-picker [data-theme="terminal"] i { border-radius:3px; background:repeating-linear-gradient(0deg,#06100c,#06100c 4px,#8cff72 5px); }
.theme-picker [data-theme="sunset"] i { border-radius:16px 8px 16px 8px; background:linear-gradient(135deg,#e4553f,#ffd6a3 55%,#9a5a9f); }
.face-picker { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; margin-top:10px; }
.face-picker button { min-width:0; min-height:64px; display:grid; place-items:center; gap:1px; padding:6px 3px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface); color:var(--text); }
.face-picker i { font-style:normal; font-size:17px; letter-spacing:1px; }
.face-picker span { font-size:9px; color:var(--muted); }
#voiceModes { display:grid; grid-template-columns:repeat(3,1fr); margin-top:10px; }
#voiceModes button { min-height:48px; padding:8px; border:1px solid var(--border); background:var(--surface); color:var(--text); font-size:11px; font-weight:650; }
#microphoneDevice { width:100%; margin-top:10px; }

.extra-note { margin-bottom:18px; padding:18px 20px; color:var(--muted); }
.extra-note strong { color:var(--text); display:block; margin-bottom:4px; }
.extra-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.extra-card { display:grid; grid-template-columns:48px 1fr; gap:14px; align-items:start; min-height:190px; }
.extra-card>.button { grid-column:2; justify-self:start; align-self:end; }
.extra-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:16px; background:var(--blue-soft); color:var(--brand); }
.extra-icon .icon { width:25px; height:25px; }
.extra-card h3 { margin:5px 0 6px; }
.extra-card p { color:var(--muted); font-size:12px; }
.feature-tab-card { display:flex; align-items:flex-start; gap:16px; min-height:150px; }
.feature-tab-card h3 { margin:5px 0 6px; }
.feature-tab-card p { color:var(--muted); font-size:12px; }
.ideas-card { background:linear-gradient(145deg,var(--surface),var(--blue-soft)); }

@media(max-width:899px) {
  .hero { text-align:center; padding-top:28px; }
  .hero-layout { grid-template-columns:1fr; gap:28px; }
  .hero-robot { position:static; padding-top:0; }
  .hero-chat { padding-top:0; }
  .conversation-tail { width:30px; height:40px; left:calc(50% - 15px); top:-25px; transform:rotate(90deg); }
  .hero-chat .conversation { width:min(690px,100%); height:clamp(440px,68svh,600px); margin-inline:auto; text-align:left; }
  .hero-chat .assistant-note { margin-inline:auto; }
}

@media(max-width:640px) {
  .hero-robot .robot-companion { width:min(262px,72vw); }
  .robot-microphone { right:-58px; bottom:-16px; transform:scale(.83); transform-origin:left bottom; }
  .robot-companion[data-style="face"] .robot-microphone { right:-52px; }
  .settings-tabs { padding:7px 12px; gap:2px; }
  .settings-tabs button { font-size:10px; padding-inline:4px; }
  .face-picker { grid-template-columns:repeat(5,1fr); gap:4px; }
  .face-picker button { min-height:57px; }
  .face-picker i { font-size:13px; }
  .face-picker span { font-size:8px; }
  .theme-picker { grid-template-columns:1fr 1fr; }
  #voiceModes { grid-template-columns:1fr; }
  .inline-field { align-items:stretch; flex-direction:column; }
  .inline-field .button { align-self:flex-start; }
  .extra-grid { grid-template-columns:1fr; }
  .extra-card { min-height:0; }
  .tabs { gap:2px; }
  .tab { padding-inline:3px; font-size:10px; }
}

@media(max-width:370px) {
  .tab {
    flex-direction:column;
    gap:4px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .transaction-row {
    grid-template-columns:28px minmax(0,1fr)
  }
  .transaction-row .money {
    grid-column:2;
    text-align:left
  }
}

/* The cable starts at the monitor's rear port and visibly meets the microphone grille. */
.robot-housing::after { content:none; }
.robot-housing { z-index:1; }
.robot-microphone { z-index:3; }

/* Each catalog entry has its own silhouette layer while the face remains smoothly animated. */
.character-art { opacity:.44; }
.character-art [data-art="head"] { stroke-width:4; }
.character-art [data-art="ear-left"],.character-art [data-art="ear-right"],.character-art [data-art="detail"] { stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }

.menu-order { display:grid; gap:6px; margin:10px 0 14px; }
.menu-order-item { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:42px; padding:7px 10px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface-raised); font-size:12px; font-weight:650; }
.menu-order-item>span:last-child { display:flex; gap:3px; }
.menu-order-item button { width:30px; height:30px; padding:0; border:1px solid var(--border); border-radius:9px; color:var(--muted); background:var(--surface); }
.menu-order-item button:disabled { opacity:.35; cursor:not-allowed; }
.menu-order-item button:not(:disabled):hover,.menu-order-item button:not(:disabled):focus-visible { color:var(--brand); border-color:var(--brand); }

@media(max-width:640px) {
  .mic-cable path { stroke-width:3.5; }
}

@media(prefers-reduced-motion:reduce) {
  html:not([data-ui-motion="full"]) *,html:not([data-ui-motion="full"]) *::before,html:not([data-ui-motion="full"]) *::after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}

/* Shared animated companion and conversation components. */
.hero { padding-top:28px; }
.robot-companion { width:min(276px,78vw); margin-top:24px; position:relative; }
.robot-housing { padding:12px 12px 0; border:1px solid #becde2; border-radius:22px; background:linear-gradient(145deg,#f0f5fd,var(--robot-frame)); box-shadow:inset 0 2px 0 #fff,0 12px 28px rgb(11 36 84 / 12%); position:relative; }
.robot-stage { --voice-level:0; position:relative; aspect-ratio:1.55; background:var(--robot-screen); border-radius:14px; overflow:hidden; box-shadow:inset 0 0 0 2px #14274b; }
.robot-face { border:0; background:transparent; color:var(--robot-light); width:100%; height:100%; display:grid; place-items:center; position:relative; padding:0; }
.robot-face::after { content:''; position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(transparent 0 3px,rgb(138 184 255 / 3%) 3px 4px); }
.robot-chin { height:30px; display:flex; gap:6px; align-items:center; padding:0 3px; }
.robot-chin span { font-size:8px; font-weight:750; color:var(--navy); margin-right:auto; }
.robot-chin i { width:25px; height:3px; border-radius:3px; background:#a1b3cc; }
.robot-chin b { width:7px; height:7px; background:var(--brand); border-radius:50%; }
.robot-antenna { width:4px; height:18px; background:#b8c9e0; margin-left:75%; position:relative; }
.robot-antenna i { width:10px; height:10px; border-radius:50%; background:var(--brand); position:absolute; top:-5px; left:-3px; }
.robot-neck { width:25px; height:17px; background:linear-gradient(90deg,#becde2,#ebf1fa,#becde2); margin:auto; }
.robot-base { height:16px; width:48%; margin:auto; border-radius:12px 12px 5px 5px; border:1px solid #c0d0e6; background:var(--robot-frame); display:flex; justify-content:center; align-items:center; gap:4px; }
.robot-base i { width:13px; height:2px; background:#94aac7; }
.robot-companion[data-style=face] .robot-antenna,.robot-companion[data-style=face] .robot-chin,.robot-companion[data-style=face] .robot-neck,.robot-companion[data-style=face] .robot-base { display:none; }
.robot-companion[data-style=face] .robot-housing { padding:0; border:0; background:transparent; border-radius:20px; }
.robot-companion[data-style=face] .robot-stage { border-radius:20px; }
.robot-state { color:var(--muted); font-size:12px; margin-top:14px; min-height:20px; }
.robot-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:12px; }
.button.compact { min-height:44px; padding:9px 13px; font-size:12px; }
.robot-controls .filter-button { min-height:40px; }
.robot-controls .button[aria-pressed=false] { color:var(--muted); }
.hero .mic-button { width:54px; height:54px; margin:20px 0 36px; }
.hero .mic-button>svg { width:24px; height:24px; }
.robot-stage.immersive { position:fixed; inset:0; width:100%; height:100dvh; aspect-ratio:auto; border-radius:0; z-index:10000; box-shadow:none; }
html[data-robot-fullscreen], html[data-robot-fullscreen] body { overflow:hidden!important; overscroll-behavior:none; }
html[data-robot-fullscreen] body > :not(.immersive) { visibility:hidden; }
.robot-stage.immersive .robot-face:focus-visible { outline-offset:-8px; }
.robot-exit { position:absolute; top:max(20px,env(safe-area-inset-top)); right:max(20px,env(safe-area-inset-right)); z-index:2; min-height:44px; padding:10px 16px; border:1px solid #355177; border-radius:var(--radius-control); color:var(--robot-light); background:#102340; opacity:0; transition:opacity .2s; }
.robot-exit:focus-visible,.robot-stage.show-controls .robot-exit { opacity:1; }
.assistant-note { font-size:11px; color:var(--muted); margin:14px 0 0; max-width:90%; }
.conversation { width:min(690px,100%); height:clamp(320px,55svh,440px); display:flex; flex-direction:column; text-align:left; margin-top:20px; overflow:hidden; }
.conversation h2 { font-size:16px; letter-spacing:-.015em; }
.conversation .card-header { margin-bottom:12px; flex:none; }
.chat-scroll { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; overflow-anchor:none; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:var(--sky) transparent; padding:2px 6px 2px 2px; }
.chat-scroll:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; border-radius:var(--radius-control); }
.chat-messages { display:flex; flex-direction:column; gap:14px; }
.chat-message { flex:none; padding:12px 15px; border-radius:var(--radius-control); max-width:94%; min-width:0; align-self:flex-start; background:var(--background); }
.chat-message[data-role=user] { align-self:flex-end; background:var(--blue-soft); }
.chat-message strong { display:block; font-size:10px; margin-bottom:4px; color:var(--muted); }
.chat-message p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; font-size:13px; }
.conversation-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.conversation-footer { flex:none; max-height:45%; overflow-y:auto; overscroll-behavior:contain; }
.assistant-error { background:var(--warning-soft); color:var(--warning); padding:12px; margin-top:14px; border-radius:var(--radius-control); font-size:12px; }
.voice-feedback { font-size:11px; color:var(--muted); margin-top:10px; }
.voice-feedback:empty { display:none; }
@media(max-width:640px) {
  .hero { padding-top:26px; }
  .robot-companion { width:230px; margin-top:22px; }
  .robot-controls { gap:6px; }
  .robot-controls .button.compact { padding:8px 10px; font-size:11px; }
  .robot-controls .filter-button { font-size:11px; }
  .conversation-actions .button { flex-grow:1; }
}

/* Shared character expressions and settings. */
.character-picker { margin-top:10px; }
.character-picker .filter-button { min-height:44px; padding-inline:18px; }
.robot-companion[data-character=karen] .robot-housing { border:3px solid #213e97; border-radius:12px 20px 20px 12px; background:linear-gradient(100deg,#537ee7,#82a8f4); padding:14px 20px 0 13px; box-shadow:inset -9px 0 0 #517bdd,4px 5px 0 #25499f,0 12px 24px rgb(11 36 84 / 12%); }
.robot-companion[data-character=karen] .robot-chin span { color:#152f73; }
.robot-companion[data-character=karen] .robot-chin b { background:#c4f273; }
.robot-companion[data-character=karen] .robot-antenna { background:#8385a4; height:20px; }
.robot-companion[data-character=karen] .robot-antenna i { background:#7485b9; }
.robot-companion[data-character=karen] .robot-neck { height:34px; width:19px; background:linear-gradient(90deg,#839baa,#cad5d8,#839baa); }
.robot-companion[data-character=karen] .robot-base { background:#87a8e5; border-color:#385aa4; }
.robot-companion[data-style=face][data-character=karen] .robot-housing { padding:0; border:0; background:transparent; box-shadow:none; }
.robot-stage[data-character=karen] { --robot-light:#c4f273; --robot-screen:#050b0e; border-radius:10px; }
.robot-stage.immersive[data-character=karen] { border-radius:0; }
.setting-badge { display:inline-block; flex:none; font-size:11px; border-radius:999px; padding:2px 8px; background:var(--background); color:var(--muted); font-weight:500; }
.setting-badge[data-active=true] { color:var(--brand); background:var(--blue-soft); }
.setting-row { display:flex; align-items:center; gap:16px; padding:14px 0; border-top:1px solid var(--border); }
.setting-row>div:not(.filter-group) { flex:1; min-width:0; }
.setting-row strong { display:block; font-size:14px; font-weight:600; }
.setting-row p,.setting-help { color:var(--muted); font-size:12px; line-height:1.6; }
.setting-status { color:var(--navy); padding-top:4px; font-size:11px; }
.setting-help { margin-top:6px; }
.setting-switch { flex:none; width:48px; height:44px; border:0; background:transparent; position:relative; padding:0; }
.setting-switch::before { content:''; position:absolute; inset:9px 0; border-radius:20px; background:#b3c2d7; transition:background .2s; }
.setting-switch span { position:absolute; height:20px; width:20px; top:12px; left:3px; border-radius:50%; background:white; box-shadow:0 1px 4px rgb(11 36 84 / 15%); transition:transform .2s; }
.setting-switch[aria-checked=true]::before { background:var(--brand); }
.setting-switch[aria-checked=true] span { transform:translateX(22px); }




/* The face renderer interpolates SVG geometry independently of OS UI-motion settings. */
.face-features { display:block; width:100%; height:100%; overflow:visible; }
.face-cenbot { color:var(--robot-light); }
.face-cenbot .robot-eye,.face-cenbot .robot-mouth { fill:currentColor; stroke:none; }
.face-karen { color:#c4f273; }
.face-karen .robot-eye,.face-karen .robot-mouth { fill:var(--robot-screen); stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.face-karen .robot-brow,.face-karen .robot-lid { fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; }
.face-karen .robot-pupil { fill:currentColor; }
.robot-stage[data-state=error] .face-cenbot { color:#ffd399; }
.robot-stage.immersive .face-features { width:min(140vw,1320px); height:min(104vh,1000px); max-width:none; }

/* Shared settings variant of the global dialog. */
.settings-trigger { flex:none; width:44px; height:44px; min-width:44px; min-height:44px; color:var(--muted); }
.settings-trigger:hover { color:var(--brand); background:var(--blue-soft); }
.dialog-settings { width:min(560px,calc(100% - 24px)); max-width:calc(100% - 24px); max-height:calc(100dvh - 24px); overflow:hidden; }
.dialog-settings[open] { display:flex; flex-direction:column; }
.dialog-settings .dialog-header,.dialog-settings .dialog-footer { flex:none; }
.dialog-settings .dialog-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-block:8px; }
.settings-section { padding-block:20px; }
.settings-section+.settings-section { border-top:1px solid var(--border); }
.settings-section h3 { font-size:16px; margin-bottom:8px; }
.settings-section .setting-row { border:0; justify-content:space-between; flex-wrap:wrap; padding:10px 0; }
.setting-row>strong { flex:1; min-width:100px; }
.setting-row>.button { flex:none; }
.settings-section .character-picker { margin:0; }
.settings-section .filter-button { min-height:44px; }
.setting-status-line { display:flex; align-items:baseline; gap:8px; }
.setting-status-line .setting-status { flex:1; }
.settings-section .setting-status { font-size:12px; }
.settings-section .setting-status:empty { display:none; }
.settings-section .speech-feedback { margin:16px 0 0; padding:12px; background:var(--background); text-align:left; }
.speech-notice { margin:8px 0 0; max-width:640px; color:var(--muted); font-size:12px; line-height:1.7; }
.speech-notice .text-button { min-height:44px; padding:4px 6px; font-size:12px; }
@media(max-width:600px) {
  .topbar-end { gap:8px; }
  .settings-section .setting-row { gap:8px; }
  .settings-section .character-picker .filter-button { padding-inline:12px; }
}

/* Keep the header usable at narrow browser widths and higher zoom levels. */
@media(max-width:420px) {
  .topbar { gap:8px; }
  .topbar-end { gap:4px; }
  .status-pill { width:28px; height:28px; padding:0; justify-content:center; }
  .status-pill #connectionText { display:none; }
  .settings-trigger { width:40px; min-width:40px; height:40px; min-height:40px; }
  .brand-logo { width:36px; height:36px; padding:3px; }
  .brand-copy strong { font-size:18px; }
  .brand-copy span { font-size:10px; }
}

@media(max-width:340px) {
  .brand-copy span { display:none; }
}

/* One conversation surface: messages, task preview, and composer. */
.robot-quick-actions { margin-top:12px; }
.conversation { height:clamp(440px,68svh,600px); }
.conversation-footer { max-height:none; overflow:visible; border-top:1px solid var(--border); margin-top:12px; padding-top:12px; }
.conversation-footer .command-form { width:100%; gap:8px; padding:6px 8px 6px 12px; box-shadow:none; }
.command-form .composer-mic { width:44px; height:44px; min-width:44px; margin:0; border-radius:var(--radius-control); background:var(--blue-soft); color:var(--brand); box-shadow:none; }
.command-form .composer-mic:hover,.command-form .composer-mic.listening { color:white; background:var(--brand); }
.command-form .composer-mic>svg { width:22px; height:22px; }
.command-form .composer-mic .pulse { display:none; }
.conversation .conversation-actions { margin-top:8px; }
.conversation:not([data-has-messages=true]) .conversation-actions,.conversation[data-has-messages=true] .suggestions { display:none; }
.conversation .suggestions { gap:6px; margin-top:8px; }
.conversation .suggestion { font-size:10px; padding:6px 8px; }
.chat-empty { min-height:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:24px; text-align:center; color:var(--navy); }
.chat-empty p { margin-top:8px; color:var(--muted); font-size:12px; }
.chat-scroll { overflow-y:scroll; }
.chat-scroll::-webkit-scrollbar { width:8px; }
.chat-scroll::-webkit-scrollbar-thumb { background:var(--sky); border-radius:8px; min-height:24px; }
.chat-scroll::-webkit-scrollbar-track { background:var(--background); border-radius:8px; }
.chat-scroll::-webkit-scrollbar-button { display:none; width:0; height:0; }
.chat-draft { padding:16px; margin-top:14px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface); }
.chat-draft .draft-details { margin:12px 0; gap:8px; }
.chat-draft .detail { padding:10px; }
.chat-draft .draft-heading { gap:8px; flex-wrap:wrap; }
.chat-draft .draft-actions { margin-top:12px; }
.conversation-footer .speech-notice { margin:0 0 6px; max-height:60px; overflow-y:auto; font-size:11px; }
.alarm-readiness { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.alarm-readiness h3 { margin-bottom:6px; }
.alarm-readiness p { color:var(--muted); font-size:12px; }
.alarm-readiness .button { flex:none; }
.alarm-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.alarm-card { display:flex; align-items:center; gap:16px; }
.alarm-card .alarm-copy { min-width:0; flex:1; }
.alarm-card h3 { overflow-wrap:anywhere; margin:6px 0; }
.alarm-time { font-size:32px; font-weight:650; color:var(--navy); font-variant-numeric:tabular-nums; line-height:1.2; }
.alarm-meta { color:var(--muted); font-size:12px; }
.alarm-actions { display:flex; flex-direction:column; align-items:center; gap:8px; }
.alarm-call { text-align:center; }
.alarm-call>.icon { width:48px; height:48px; color:var(--brand); margin-bottom:16px; }
.alarm-call .alarm-time { margin-bottom:16px; }
.alarm-call #alarmCallStatus { font-size:13px; color:var(--muted); line-height:1.6; }
.dialog-alarm .dialog-header h2 { margin-top:6px; overflow-wrap:anywhere; }
@media(max-width:640px) {
  .conversation { padding:16px; }
  .conversation .conversation-actions .button { flex-grow:0; }
  .conversation-footer .command-form { gap:6px; padding-left:10px; }
  .tabs { gap:3px; }
  .tab { min-width:0; flex-direction:column; gap:4px; padding:8px 4px; font-size:11px; }
  .alarm-list { grid-template-columns:1fr; }
  .alarm-readiness { align-items:flex-start; flex-direction:column; gap:12px; }
  .chat-draft { padding:12px; }
}

/* Final cascade for shared theme surfaces. */
.dialog-settings{width:min(680px,calc(100% - 24px))}
.settings-section+.settings-section{border-top:0}
.robot-companion:not([data-character="karen"]) .robot-housing{background:linear-gradient(145deg,var(--robot-frame-a),var(--robot-frame-b))}
html[data-theme="studio"] .button.primary,html[data-theme="studio"] .send-button{box-shadow:inset 0 2px 0 rgb(255 255 255 / 30%),0 8px 18px rgb(130 87 230 / 22%)}
html[data-theme="terminal"] .card,html[data-theme="terminal"] .dialog,html[data-theme="terminal"] .tabs{background-image:linear-gradient(rgb(140 255 114 / 2%) 1px,transparent 1px);background-size:100% 4px}
html[data-theme="sunset"] .tab[aria-selected="true"],html[data-theme="sunset"] .button.primary{transform:rotate(-.25deg)}

/* Conversation balloons sit after the shared message rule so their shape is consistent in every theme. */
.tab-add { flex:0 0 58px; width:58px; height:58px; min-height:58px; max-height:58px; padding:0; display:grid; place-items:center; align-self:center; }
.tab-add [data-icon] { width:20px; height:20px; }
.chat-message { position:relative; border:1px solid var(--border); border-radius:18px 18px 18px 6px; box-shadow:0 4px 12px rgb(11 36 84 / 5%); }
.chat-message::after { content:""; position:absolute; left:-8px; bottom:11px; width:14px; height:14px; background:var(--background); border-left:1px solid var(--border); border-bottom:1px solid var(--border); transform:rotate(45deg); }
.chat-message[data-role="user"] { border-radius:18px 18px 6px 18px; }
.chat-message[data-role="user"]::after { left:auto; right:-8px; background:var(--blue-soft); border:0; border-right:1px solid var(--border); border-top:1px solid var(--border); transform:rotate(45deg); }

/* Keep the hierarchy quiet: headings and controls carry the meaning. */
.hero-copy { color:var(--muted); font-size:12px; }
.workspace-intro p,.panel-header p,.assistant-note { display:none; }
.settings-body .setting-row p,.settings-body .setting-block > p { display:none; }

/* Face presets use one recognisable monitor silhouette so the choices are easy to scan. */
.face-picker button { grid-template-rows:42px auto; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.face-picker button:hover { transform:translateY(-1px); }
.face-preview { display:block; width:64px; height:46px; color:var(--robot-light); }
.face-preview svg { display:block; width:100%; height:100%; overflow:visible; }
.face-preview-frame { fill:var(--robot-frame-a); stroke:var(--border); stroke-width:2; }
.face-preview-screen { fill:var(--robot-screen); stroke:color-mix(in srgb, var(--robot-screen) 70%, var(--text)); stroke-width:1.5; }
.face-preview-eye,.face-preview-mouth { fill:var(--robot-light); stroke:var(--robot-light); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.face-preview-stand { fill:none; stroke:var(--border); stroke-width:2; stroke-linecap:round; }
.face-picker button[aria-checked="true"] .face-preview-frame { stroke:var(--brand); }
.face-picker button[aria-checked="true"] .face-preview-screen { filter:drop-shadow(0 2px 3px rgb(0 0 0 / 16%)); }
.fitness-tools { margin:14px 0 16px; padding:14px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--background); }
.fitness-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:10px; }
.fitness-fields label { display:grid; gap:6px; color:var(--muted); font-size:11px; }
.fitness-fields .input { width:100%; }
.fitness-result { min-height:18px; margin:8px 0 0; color:var(--navy); font-size:12px; }
@media(max-width:560px) { .fitness-fields { grid-template-columns:1fr; } }
@supports not (color:color-mix(in srgb, white, black)) {
  .face-preview-screen { stroke:var(--text); }
}

/* Shared optional-feature forms and the shopping list surface. */
.feature-entry-form { display:grid; gap:12px; margin-top:16px; max-width:620px; }
.feature-entry-field { display:grid; gap:6px; color:var(--text); font-size:12px; font-weight:600; }
.feature-entry-field .input { width:100%; }
.feature-entry-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.feature-history-wrap { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.feature-history-wrap h4 { margin:0 0 8px; font-size:12px; color:var(--muted); font-weight:650; }
.feature-history { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.feature-history li { display:flex; justify-content:space-between; gap:12px; padding:9px 11px; border-radius:10px; background:var(--background); font-size:12px; }
.feature-history li strong { overflow-wrap:anywhere; }
.feature-history li small,.feature-history-empty { color:var(--muted); font-size:11px; }
.shopping-overview { display:grid; grid-template-columns:1.25fr 1fr; gap:16px; margin-bottom:16px; }
.shopping-budget-card,.shopping-summary-card,.shopping-list-card { min-width:0; }
.shopping-budget-form { display:grid; gap:7px; color:var(--muted); font-size:11px; }
.shopping-budget-form .inline-field { align-items:stretch; }
.shopping-budget-form .inline-field .input { min-width:0; }
.shopping-progress { height:var(--progress-height); margin-top:16px; border-radius:999px; overflow:hidden; background:var(--blue-soft); }
.shopping-progress>div { width:0; height:100%; border-radius:inherit; background:var(--brand); transition:width .2s ease; }
.shopping-budget-line { display:flex; justify-content:space-between; gap:12px; margin-top:10px; color:var(--muted); font-size:11px; }
.shopping-budget-line strong { color:var(--text); }
.shopping-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.shopping-stats div { display:grid; gap:4px; min-width:0; }
.shopping-stats strong { color:var(--navy); font-size:16px; overflow-wrap:anywhere; }
.shopping-stats small { color:var(--muted); font-size:10px; }
.shopping-items { display:grid; }
.shopping-item { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 0; border-top:1px solid var(--border); }
.shopping-item:first-child { border-top:0; padding-top:0; }
.shopping-item:last-child { padding-bottom:0; }
.shopping-check { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--border); border-radius:11px; color:transparent; background:var(--surface); }
.shopping-check:hover,.shopping-check[aria-checked=true] { color:white; border-color:var(--brand); background:var(--brand); }
.shopping-check .icon { width:18px; height:18px; }
.shopping-item-copy { display:grid; gap:5px; min-width:0; }
.shopping-item-title,.shopping-item-meta { display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; }
.shopping-item-title strong { overflow-wrap:anywhere; }
.shopping-item-meta { color:var(--muted); font-size:11px; }
.shopping-item-meta strong { color:var(--navy); margin-left:auto; }
.shopping-item-copy>small { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.shopping-item-actions { display:flex; align-items:center; gap:8px; }
.shopping-item-actions .text-button { min-height:32px; padding-inline:4px; }
.danger-text { color:var(--danger); }
.shopping-item.is-done .shopping-item-title strong { color:var(--muted); text-decoration:line-through; }
.shopping-item.is-done .shopping-item-meta strong { color:var(--muted); }
.shopping-empty { min-height:160px; }
.shopping-empty>.icon { width:38px; height:38px; color:var(--brand); }
@media(max-width:640px) {
  .feature-entry-grid,.shopping-overview { grid-template-columns:1fr; }
  .shopping-item { grid-template-columns:40px minmax(0,1fr); align-items:start; }
  .shopping-item-actions { grid-column:2; }
  .shopping-item-meta strong { margin-left:0; }
  .shopping-budget-line { flex-wrap:wrap; }
}

/* Shopping plans share one schedule, budget, grouped items and settlement surface. */
.shopping-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
.shopping-plan-form { display:grid; gap:12px; }
.shopping-plan-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.shopping-plan-fields label,.shopping-status-label { display:grid; gap:6px; color:var(--muted); font-size:11px; }
.shopping-plan-fields .input { width:100%; }
.shopping-schedule-note { margin-top:12px; color:var(--muted); font-size:11px; }
.shopping-list-summary { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:-4px 0 16px; color:var(--muted); font-size:11px; }
.shopping-list-summary strong { margin-left:auto; color:var(--navy); font-size:18px; }
.shopping-category + .shopping-category { margin-top:20px; }
.shopping-category-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.shopping-category-heading h4 { margin:0; color:var(--navy); font-size:13px; }
.shopping-category-heading span { color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.shopping-item-actions { align-items:end; flex-wrap:wrap; justify-content:flex-end; }
.shopping-status-label { min-width:132px; }
.shopping-status { min-height:36px; padding:7px 28px 7px 9px; font-size:11px; }
.shopping-complete-card { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:16px; }
.shopping-complete-card h3 { margin-bottom:4px; }
.shopping-complete-card p { color:var(--muted); font-size:12px; }
.shopping-complete-card .button { flex:none; }
.shopping-complete-card .button:disabled { cursor:not-allowed; }
@media(max-width:640px) {
  .shopping-overview { grid-template-columns:1fr; }
  .shopping-plan-fields { grid-template-columns:1fr; }
  .shopping-list-summary strong { width:100%; margin-left:0; }
  .shopping-complete-card { align-items:stretch; flex-direction:column; gap:12px; }
  .shopping-complete-card .button { width:100%; }
  .shopping-status-label { min-width:0; width:100%; }
}

/* Shopping plans: one schedule and budget per store or purpose. */
.shopping-plans-nav { display:flex; align-items:stretch; gap:10px; margin:0 0 16px; padding:4px; overflow-x:auto; border:1px solid var(--border); border-radius:16px; background:var(--surface-soft); scrollbar-width:thin; }
.shopping-plan-tab { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto; align-items:center; gap:2px 8px; min-width:150px; min-height:58px; padding:10px 14px; border:1px solid transparent; border-radius:12px; color:var(--muted); background:transparent; text-align:left; white-space:nowrap; }
.shopping-plan-tab:hover { color:var(--text); background:var(--surface); }
.shopping-plan-tab:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.shopping-plan-tab.is-active { color:var(--brand); border-color:var(--brand); background:var(--surface); box-shadow:0 2px 8px rgb(15 35 80 / 8%); }
.shopping-plan-tab>span { grid-row:1 / span 2; display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:var(--blue-soft); color:var(--brand); }
.shopping-plan-tab strong { overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.shopping-plan-tab small { color:var(--muted); font-size:10px; }
.shopping-plan-tab.shopping-plan-add { display:flex; align-items:center; justify-content:center; gap:7px; min-width:132px; border-style:dashed; }
.shopping-plan-tab.shopping-plan-add .icon { width:17px; height:17px; }
.shopping-plans-empty { min-height:220px; margin-top:8px; }
.shopping-plans-empty .button { margin-top:12px; }
.shopping-plan-shell { display:grid; gap:16px; }
.shopping-plan-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:4px 2px 0; }
.shopping-plan-header h3 { margin:3px 0 3px; color:var(--navy); font-size:22px; }
.shopping-plan-header p { margin:0; color:var(--muted); font-size:12px; }
.shopping-plan-header .panel-actions { align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.shopping-plan-header .button .icon { width:15px; height:15px; }
.shopping-plan-header .danger-text { color:var(--danger); }
.shopping-plan-shell .shopping-overview { margin-bottom:0; }
.shopping-plan-shell .shopping-complete-card { margin-top:0; }
.shopping-plan-shell .shopping-item-meta span { overflow-wrap:anywhere; }
.shopping-plan-title-line { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.shopping-plan-title-line h3 { margin-bottom:0; }
.shopping-history { margin-top:20px; }
.shopping-history .card-header { margin-bottom:8px; }
.shopping-history-list { display:grid; gap:0; }
.shopping-history-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:12px 0; border-top:1px solid var(--border); }
.shopping-history-row:first-child { border-top:0; }
.shopping-history-copy { display:grid; gap:4px; min-width:0; }
.shopping-history-copy strong { overflow-wrap:anywhere; }
.shopping-history-copy small,.shopping-history-amount { color:var(--muted); font-size:11px; }
.shopping-history-amount { color:var(--navy); font-size:13px; white-space:nowrap; }
.shopping-history-empty { padding:12px 0 4px; color:var(--muted); font-size:12px; }
.agenda-subtitle { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.agenda-more { margin-top:5px; color:var(--muted); font-size:11px; }
.agenda-more summary { width:max-content; cursor:pointer; color:var(--brand); }
.agenda-more p { margin:5px 0 4px; color:var(--text); white-space:pre-wrap; }
.agenda-more ul { margin:4px 0 0 16px; padding:0; }
@media (max-width: 680px) {
  .shopping-plans-nav { margin-inline:-4px; }
  .shopping-plan-tab { min-width:132px; padding-inline:10px; }
  .shopping-plan-header { flex-direction:column; }
  .shopping-plan-header .panel-actions { width:100%; justify-content:flex-start; }
  .shopping-plan-header .panel-actions .button { flex:1; }
  .shopping-history-row { grid-template-columns:minmax(0,1fr) auto; }
  .shopping-history-row .button { grid-column:1 / -1; width:100%; }
}

/* Keep the page frame anchored to the viewport at every browser width.
   The header lives inside this frame, so a fixed/intrinsic child can no longer
   push the brand off-screen when the browser is narrow or zoomed in. */
.app-shell {
  width:100%;
  /* 1160px content width plus the 32px outer gutters. */
  max-width:1224px;
  margin-inline:auto;
  padding-inline:32px;
}
html,body {
  width:100%;
  min-width:0;
  max-width:100%;
}
body { overflow-x:hidden; }
.topbar { width:100%; }
@media(max-width:640px) {
  .app-shell { padding-inline:16px; }
}
@media(max-width:340px) {
  .app-shell { padding-inline:12px; }
}
@media(max-width:900px) {
  .app-shell {
    width:100vw;
    max-width:100vw;
    margin-left:0!important;
    margin-right:0!important;
    padding-inline:16px;
  }
  .topbar { width:100%; margin-left:0; }
}
@media(min-width:901px) {
  /* Let the sticky header span the viewport while keeping its contents on
     the same 1160px reading grid as the rest of the desktop layout. */
  .topbar {
    width:100vw;
    margin-left:calc(50% - 50vw);
    padding-inline:max(32px,calc((100vw - 1160px) / 2));
  }
}

/* Shared motion and compact record surfaces. */
:root { --on-brand:#fff; --motion-fast:180ms; --motion-view:380ms; }
button,a,input,textarea,select { transition:background-color .25s,border-color .25s,color .25s,box-shadow .25s,transform var(--motion-fast); }
button:not(:disabled):active { transform:scale(.96); }
button:not(:disabled):hover { filter:brightness(1.025); }
.card,.dialog,.topbar,.tabs,.view-tabs { transition:border-color .65s,box-shadow .3s; }
.row-actions { display:flex; align-items:center; gap:2px; flex:none; }
.row-action { width:44px; height:44px; min-width:44px; padding:12px; border-radius:var(--radius-control); color:var(--muted); background:transparent; }
.row-action .icon { width:18px; height:18px; }
.row-action:hover { color:var(--brand); background:var(--blue-soft); }
.row-action.danger-text:hover { color:var(--danger); background:var(--warning-soft); }
.view-tabs { display:flex; gap:8px; border-bottom:1px solid var(--border); margin-bottom:20px; }
.view-tabs>button { display:flex; align-items:center; gap:8px; min-height:48px; border:0; border-bottom:3px solid transparent; padding:8px 16px 12px; background:transparent; color:var(--muted); font-weight:600; }
.view-tabs>button[aria-selected=true] { color:var(--brand); border-bottom-color:var(--brand); }
.view-tabs .icon { width:18px; height:18px; }
.view-tabs .count { color:inherit; }
.agenda-row { grid-template-columns:88px 46px minmax(0,1fr) auto; gap:10px; align-items:center; }
.agenda-row .agenda-actions { grid-column:1; grid-row:1; }
.agenda-row .agenda-time { grid-column:2; grid-row:1; }
.agenda-row .item-copy { grid-column:3; grid-row:1; }
.agenda-row>.badge { grid-column:4; grid-row:1; }
.agenda-subtitle { margin-left:30px; font-size:12px; }
.detail-dialog { width:min(600px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:0; }
.detail-dialog[open] { display:flex; flex-direction:column; }
.detail-dialog .dialog-body { min-height:0; overflow:auto; }
.detail-dialog .dialog-header,.detail-dialog .dialog-footer { flex:none; }
.detail-dialog .dialog-header>div { min-width:0; }
.detail-dialog h2,.detail-dialog p,.record-summary dd { overflow-wrap:anywhere; }
.record-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0; }
.record-summary dt { color:var(--muted); font-size:12px; margin-bottom:5px; }
.record-summary dd { color:var(--navy); margin:0; font-size:15px; font-weight:600; }
.record-section { margin-top:24px; }
.record-section h3 { margin-bottom:8px; }
.record-section p { white-space:pre-wrap; }
.document-list { list-style:none; display:grid; gap:12px; margin:0; padding:0; }
.document-list li { display:flex; align-items:center; gap:10px; overflow-wrap:anywhere; }
.document-list .icon { width:18px; height:18px; flex:none; }
.document-list a { color:var(--brand); }
.receipt-items { margin-top:24px; }
.receipt-row { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--border); padding:14px 0; }
.receipt-row>div { min-width:0; }
.receipt-row strong { overflow-wrap:anywhere; }
.receipt-row small { display:block; color:var(--muted); margin-top:4px; }
.receipt-row>strong { flex:none; font-size:13px; }
.shopping-plan-shell { display:block; }
.shopping-plan-header { gap:16px; padding:0 0 20px; align-items:center; }
.shopping-plan-header h3 { font-size:22px; }
.shopping-plan-title-line { gap:8px; }
.shopping-when { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.shopping-when>.icon { width:16px; height:16px; }
.shopping-budget-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:18px 20px; margin:0 0 24px; background:var(--background); border-radius:var(--radius-control); }
.shopping-budget-summary dt { color:var(--muted); font-size:12px; margin-bottom:4px; }
.shopping-budget-summary dd { color:var(--navy); font-size:18px; font-weight:650; margin:0; overflow-wrap:anywhere; }
.shopping-budget-summary dd.danger-text { color:var(--danger); }
.shopping-plan-shell .shopping-item { grid-template-columns:40px minmax(0,1fr) auto 140px 88px; gap:12px; padding:12px 0; }
.shopping-item-copy small { display:block; margin-top:4px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.shopping-item-price { font-size:13px; white-space:nowrap; }
.shopping-plan-shell .shopping-status { width:100%; min-height:44px; }
.shopping-checkout { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--border); margin:20px 0 0; padding:20px 0 0; }
.shopping-checkout>div { display:grid; gap:2px; }
.shopping-checkout span { color:var(--muted); font-size:12px; }
.shopping-checkout strong { color:var(--navy); font-size:24px; }
.shopping-plans-nav { background:var(--tabs-bg); padding:6px; gap:6px; }
.shopping-plan-tab { min-width:150px; }
.shopping-plan-tab[aria-selected=true] { background:var(--surface); }
.shopping-history-list { padding-block:8px; }
.shopping-history-row { grid-template-columns:44px minmax(0,1fr) auto auto; gap:14px; padding:18px 0; }
.shopping-history-copy strong { font-size:16px; color:var(--navy); }
.shopping-history-copy small { font-size:12px; }
.shopping-history-amount { font-size:16px; }
.history-empty>.icon,.shopping-plans-empty>.icon { width:34px; height:34px; color:var(--brand); margin-bottom:12px; }
.history-empty { min-height:240px; }
#uiMotion { width:auto; min-width:130px; }
body { overflow-x:clip; }
.settings-trigger { width:44px; height:44px; min-width:44px; min-height:44px; }
.settings-trigger:active { transform:none; }
.toast { background:var(--navy); color:var(--surface); }
.draft-warning,.form-error { background:var(--warning-soft); }
html.time-aware .workspace { position:relative; }
html.time-aware .workspace::before { content:''; position:absolute; z-index:-1; inset:-16px -24px -20px; border-radius:var(--radius-card); background:var(--background); opacity:.92; pointer-events:none; }

/* Time-aware city: all surfaces use the same phase palette. */
html.time-aware {
  --background:#e7f5f4; --surface:#fcffff; --surface-raised:#fff; --surface-soft:#e0efee; --tabs-bg:#e1efee;
  --text:#173d48; --navy:#113341; --muted:#506b73; --border:#c9dedd; --brand:#065cc4; --brand-hover:#074c9b; --blue-soft:#e4eeff;
  --hero-glow:transparent; --shadow:0 12px 32px rgb(25 70 80 / 7%);
}
html.time-aware[data-time-scene=dawn] { --background:#fff2e3; --surface:#fffcf8; --surface-raised:#fff; --surface-soft:#f8e7d7; --tabs-bg:#f1e2d4; --navy:#54382c; --text:#4f3d34; --muted:#7c6252; --border:#e8d4c2; --blue-soft:#f2e8de; }
html.time-aware[data-time-scene=day] { --background:#e5f3ff; --surface:#fbfdff; --surface-soft:#daebf9; --tabs-bg:#dcebf5; --text:#193b59; --navy:#103355; --muted:#526c84; --border:#c4dced; --blue-soft:#e1edff; }
html.time-aware[data-time-scene=afternoon] { --background:#f2efdc; --surface:#fffef5; --surface-soft:#e7e8d7; --tabs-bg:#e5e6d8; --text:#3d4431; --navy:#303c2a; --muted:#647053; --border:#d9ddc7; --blue-soft:#e7eee0; }
html.time-aware[data-time-scene=sunset] { --background:#f7e6d4; --surface:#fff9f2; --surface-raised:#fffcf8; --surface-soft:#f3dec9; --tabs-bg:#ecd6c3; --text:#563a34; --navy:#472c34; --muted:#805b51; --border:#e8cbb6; --blue-soft:#f1e4df; --brand:#974b25; --brand-hover:#7d3b1c; }
html.time-aware:is([data-time-scene=night],[data-time-scene=midnight]) {
  color-scheme:dark; --background:#202940; --surface:#242d47; --surface-raised:#2d3854; --surface-soft:#1e263d; --tabs-bg:#1b233a;
  --text:#e1e9fc; --navy:#f2f4ff; --muted:#b2c2df; --border:#42516b; --brand:#9cc8ff; --brand-hover:#c5e0ff; --sky:#80b4ee; --blue-soft:#304369;
  --on-brand:#10223e; --danger:#ff9ca6; --warning:#ffdb9e; --warning-soft:#463728; --robot-frame-a:#637595; --robot-frame-b:#364768; --robot-frame:#415275;
  --shadow:0 12px 32px rgb(0 0 0 / 16%);
}
html.time-aware[data-time-scene=midnight] { --background:#13182c; --surface:#1c2239; --surface-raised:#292e4a; --surface-soft:#181e34; --tabs-bg:#11192c; --navy:#f0efff; --text:#deddf2; --muted:#b6b8d6; --border:#3c4263; --brand:#b4b9ff; --brand-hover:#d2d5ff; --blue-soft:#343857; }
html.time-aware body { background:var(--background); }
html.time-aware .topbar { background:var(--surface); border-color:var(--border); }
html.time-aware .button.primary,html.time-aware .send-button { color:var(--on-brand); background:var(--brand); }
html.time-aware .brand-logo { background:#fff; }
html.time-aware .input,html.time-aware .command-form { background:var(--surface-raised); color:var(--text); border-color:var(--border); }
html.time-aware .chat-message { background:var(--background); color:var(--text); }
html.time-aware .chat-message[data-role=user] { background:var(--blue-soft); }
html.time-aware .shopping-history-copy strong { color:var(--navy); }
body { position:relative; isolation:isolate; }
.app-shell { position:relative; z-index:1; }
.time-scene { position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.city-layer { position:absolute; inset:0; overflow:hidden; --sky-top:#a9dfde; --sky-bottom:#d9f0e6; --building-a:#377988; --building-b:#4f98a2; --building-c:#245c73; --window:#9edbd2; --window-lit:#d6f4d9; background:linear-gradient(180deg,var(--sky-top),var(--sky-bottom)); }
.city-layer[data-phase=dawn] { --sky-top:#edb6b5; --sky-bottom:#ffe2a9; --building-a:#9c6e81; --building-b:#b18995; --building-c:#705c79; --window:#ecb6a1; --window-lit:#ffe5ab; }
.city-layer[data-phase=day] { --sky-top:#6ec4e0; --sky-bottom:#d5edfd; --building-a:#3b7db6; --building-b:#65a4ca; --building-c:#275c94; --window:#8cc9e4; --window-lit:#caebf1; }
.city-layer[data-phase=afternoon] { --sky-top:#b5cabe; --sky-bottom:#f0e8b6; --building-a:#608c8b; --building-b:#809f95; --building-c:#426c77; --window:#b9d3b0; --window-lit:#f0e7b0; }
.city-layer[data-phase=sunset] { --sky-top:#d5784a; --sky-bottom:#efc36d; --building-a:#a3594c; --building-b:#cc815b; --building-c:#6c454e; --window:#d78d61; --window-lit:#f4c373; }
.city-layer[data-phase=night] { --sky-top:#273663; --sky-bottom:#637d9d; --building-a:#243451; --building-b:#3a5272; --building-c:#18243f; --window:#466086; --window-lit:#efd8a4; }
.city-layer[data-phase=midnight] { --sky-top:#15142f; --sky-bottom:#3e476f; --building-a:#242746; --building-b:#383f62; --building-c:#141b31; --window:#454d75; --window-lit:#b7bae4; }
.city-skyline { position:absolute; width:100%; height:clamp(260px,56vh,600px); bottom:0; left:0; opacity:.7; }
.city-back { fill:var(--building-b); opacity:.25; }
.city-building { transform-box:fill-box; transform-origin:center bottom; animation:building-rise 1400ms cubic-bezier(.16,1,.3,1) var(--building-delay) backwards; }
.building-body,.building-roof { fill:var(--building-a); }
.building-1 .building-body,.building-1 .building-roof { fill:var(--building-b); }
.building-2 .building-body,.building-2 .building-roof { fill:var(--building-c); }
.building-side { fill:#152638; opacity:.12; }
.building-antenna { stroke:var(--building-c); stroke-width:4px; }
.city-window { fill:var(--window); opacity:.28; }
.city-window.is-lit { fill:var(--window-lit); opacity:.55; }
.city-layer:is([data-phase=night],[data-phase=midnight]) .city-window.is-lit { animation:window-glow 8s ease-in-out infinite alternate; }
.city-layer[data-phase=midnight] .city-window.is-lit { opacity:.35; animation-duration:12s; }
.city-haze { position:absolute; inset:0; background:linear-gradient(180deg,transparent 30%,transparent 60%,var(--sky-bottom) 110%); }
.celestial-rise { position:absolute; top:15vh; left:12%; animation:celestial-rise 1800ms cubic-bezier(.16,1,.3,1) backwards; }
.celestial-drift { animation:celestial-float 12s ease-in-out infinite alternate; }
.city-sun { width:clamp(75px,11vw,160px); aspect-ratio:1; border-radius:50%; background:#fff0ac; box-shadow:0 0 0 18px #fff0ac18,0 0 70px 20px #fff3ab45; }
.city-moon { width:clamp(64px,9vw,125px); fill:#e9eeff; filter:drop-shadow(0 0 22px #b4ceff88); }
.city-layer[data-phase=dawn] .celestial-rise { top:42vh; left:78%; }
.city-layer[data-phase=day] .celestial-rise { top:12vh; left:84%; }
.city-layer[data-phase=afternoon] .celestial-rise { top:27vh; left:80%; }
.city-layer[data-phase=sunset] .celestial-rise { top:43vh; left:79%; }
.city-layer[data-phase=sunset] .city-sun { background:#ffdd87; }
.city-layer[data-phase=night] .celestial-rise { top:19vh; left:82%; }
.city-layer[data-phase=midnight] .celestial-rise { top:13vh; left:15%; }
.city-cloud { position:absolute; width:130px; height:20px; border-radius:50% 50% 16px 16px; background:#fff9; animation:city-cloud-drift 28s ease-in-out infinite alternate; }
.city-cloud::before,.city-cloud::after { content:''; position:absolute; border-radius:50%; background:inherit; bottom:5px; width:45px; height:30px; left:24px; }
.city-cloud::after { left:60px; width:48px; height:44px; }
.cloud-one { top:36vh; left:6%; }
.cloud-two { top:62vh; right:3%; scale:.7; animation-delay:-8s; }
.cloud-three { top:17vh; left:53%; scale:.5; animation-delay:-17s; }
.city-layer:is([data-phase=night],[data-phase=midnight]) .city-cloud { opacity:.12; }
.city-stars { position:absolute; inset:0; display:none; animation:stars-drift 40s ease-in-out infinite alternate; }
.city-layer:is([data-phase=night],[data-phase=midnight]) .city-stars { display:block; }
.city-stars i { position:absolute; width:3px; height:3px; background:#fff; border-radius:50%; animation:star-glimmer 5s ease-in-out var(--star-delay) infinite alternate; }
.city-stars i:nth-child(5n) { width:8px; height:8px; clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.celestial-drift,.city-cloud,.city-stars,.city-stars i,.city-layer:is([data-phase=night],[data-phase=midnight]) .city-window.is-lit { animation:none; }
@keyframes building-rise { from { transform:translateY(115%); opacity:.1; } to { transform:translateY(0); opacity:1; } }
@keyframes celestial-rise { from { transform:translateY(140px) scale(.7); opacity:0; } to { transform:translateY(0) scale(1); opacity:1; } }
@keyframes celestial-float { from { transform:translateY(0) rotate(-3deg); } to { transform:translateY(-16px) rotate(3deg); } }
@keyframes city-cloud-drift { from { transform:translateX(-28px); } to { transform:translateX(36px); } }
@keyframes stars-drift { to { transform:translate(12px,8px); } }
@keyframes star-glimmer { from { opacity:.25; scale:.75; } to { opacity:.9; scale:1.15; } }
@keyframes window-glow { from { opacity:.3; } to { opacity:.8; } }
html[data-ui-motion=gentle] .time-scene *,html[data-ui-motion=off] .time-scene * { animation:none!important; }
html[data-ui-motion=off] *,html[data-ui-motion=off] *::before,html[data-ui-motion=off] *::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
html[data-ui-motion=gentle] button:active { transform:none; }
@media(max-width:700px) {
  .topbar { width:calc(100% + 32px); margin-left:-16px; padding-inline:16px; }
  .agenda-row { grid-template-columns:44px 42px minmax(0,1fr); gap:8px; }
  .agenda-row .agenda-actions { flex-direction:column; gap:0; grid-row:1 / span 2; }
  .agenda-row>.badge { grid-column:3; grid-row:2; justify-self:start; }
  .agenda-row .item-copy { align-self:center; }
  .shopping-plan-header { flex-direction:column; align-items:stretch; gap:14px; }
  .shopping-plan-header>.button { align-self:flex-start; }
  .shopping-budget-summary { padding:14px 12px; gap:10px; }
  .shopping-budget-summary dd { font-size:14px; }
  .shopping-budget-summary dt { font-size:11px; }
  .shopping-plan-shell .shopping-item { grid-template-columns:36px minmax(0,1fr) auto; gap:8px; }
  .shopping-item-price { grid-column:3; grid-row:1; font-size:12px; }
  .shopping-plan-shell .shopping-status { grid-column:2; grid-row:2; }
  .shopping-plan-shell .shopping-item>.row-actions { grid-column:3; grid-row:2; }
  .shopping-item-copy small { font-size:11px; }
  .shopping-history-row { grid-template-columns:44px minmax(0,1fr) auto; gap:8px; }
  .shopping-history-row>.button { grid-column:2 / -1; width:auto; justify-self:start; }
  .shopping-history-copy strong,.shopping-history-amount { font-size:14px; }
  .record-summary { grid-template-columns:1fr; }
  .city-skyline { height:40vh; min-height:240px; }
  .city-cloud { scale:.6; }
  .shopping-checkout strong { font-size:21px; }
}

@media(max-width:899px) {
  .time-scene .city-layer[data-phase] .celestial-rise { top:max(230px,35vh); left:auto; right:2%; }
  .time-scene .city-layer:is([data-phase=dawn],[data-phase=sunset]) .celestial-rise { top:max(290px,45vh); }
}

/* Release 0.11: shared components, global variants, and responsive containment. */
:root { --emphasis-bg:#113453; --emphasis-text:#fff; --header-bg:var(--surface); }
.stat-card.emphasis,.stat-card.emphasis .stat-label,.stat-card.emphasis .stat-value,.stat-card.emphasis small { background:var(--emphasis-bg);color:var(--emphasis-text); }
.view-tabs,.section-switch { display:flex;align-items:center;gap:4px;padding:4px;width:fit-content;max-width:100%;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--tabs-bg);margin:0 0 20px; }
.view-tabs button,.section-switch button { min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:calc(var(--radius-control) - 3px);padding:8px 16px;background:transparent;color:var(--muted);white-space:nowrap; }
.view-tabs button[aria-selected=true],.section-switch button[aria-selected=true] { background:var(--surface);color:var(--brand);box-shadow:0 2px 8px #1023400c; }
.view-tabs button::after { content:none; }
.count:empty,.count-badge:empty { display:none; }
.tabs { display:flex;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;justify-content:flex-start;flex-wrap:nowrap; }
.tabs>.tab { flex:0 0 auto;min-width:100px;white-space:nowrap;flex-direction:row;padding:12px 18px; }
.tabs>.tab-add { min-width:54px;flex:0 0 54px;position:sticky;right:0;z-index:3;background:var(--surface);margin-left:auto;box-shadow:-8px 0 12px var(--tabs-bg); }
.quiet-empty { padding:24px 0;color:var(--muted);font-size:13px; }
.completed-group>summary,.report-disclosure>summary { cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:650;color:var(--muted); }
.completed-group>summary::before,.report-disclosure>summary::before {content:'▸';}.completed-group[open]>summary::before,.report-disclosure[open]>summary::before{content:'▾';}
.agenda-row.is-complete .item-copy strong { text-decoration:line-through;color:var(--muted); }
.agenda-row .badge:empty {display:none;}.agenda-row .agenda-actions{gap:2px;}
.report-disclosure { margin-top:24px; }.trend-chart{display:block;width:100%;height:auto;max-height:260px;overflow:visible;}
.trend-line {stroke-linecap:round;stroke-linejoin:round;animation:chart-reveal 1s ease both;}.trend-point{outline:none;cursor:crosshair;}.trend-tip{opacity:0;transition:opacity .15s;pointer-events:none;font-size:10px;}.trend-point:hover .trend-tip,.trend-point:focus .trend-tip{opacity:1;}.trend-dot{opacity:.6;}.trend-point:focus .trend-dot{stroke:var(--surface);stroke-width:3;opacity:1;}
@keyframes chart-reveal {from {clip-path:inset(0 100% 0 0);opacity:.3;} to {clip-path:inset(0);opacity:1;}}
.alarm-readiness {padding:8px 0 20px;margin-bottom:8px;border-bottom:1px solid var(--border);}.alarm-readiness .setting-help{max-width:540px;font-size:11px;}.alarm-list{display:flex;flex-direction:column;}.alarm-card{box-shadow:none;padding:18px 22px;}.alarm-copy{display:grid;grid-template-columns:100px 1fr;column-gap:16px;align-items:center;}.alarm-copy .alarm-time{grid-row:1/3;}.alarm-copy .badge{width:fit-content;}.alarm-copy h3{font-size:14px;}.alarm-actions{flex-direction:row;}.alarm-list>.card>.empty{min-height:0;padding:20px;}
.fullscreen-nameplate {display:none;}.fullscreen-frame-toggle {right:auto;left:20px;}
.robot-stage.immersive[data-fullscreen-frame=monitor] {padding:clamp(12px,3vw,36px);padding-bottom:clamp(42px,7vh,68px);border:2px solid #a5bddd;border-radius:22px;background:linear-gradient(145deg,var(--robot-frame-a),var(--robot-frame-b));box-shadow:inset 0 2px 1px #ffffff80;}
.robot-stage.immersive[data-fullscreen-frame=monitor] .robot-face {border-radius:18px;background:var(--robot-screen);box-shadow:0 0 0 2px #182847;overflow:hidden;}
.robot-stage.immersive[data-fullscreen-frame=monitor] .fullscreen-nameplate{display:block;position:absolute;bottom:16px;left:40px;color:#0b2454;font-size:12px;font-weight:700;letter-spacing:4px;}
.robot-stage.immersive .face-features{width:100%;height:100%;max-width:1320px;max-height:100%;}
html.time-aware[data-time-scene=dawn]{--header-bg:#edcfcc;}html.time-aware[data-time-scene=morning]{--header-bg:#aedcda;}html.time-aware[data-time-scene=day]{--header-bg:#a9d8ef;}html.time-aware[data-time-scene=afternoon]{--header-bg:#c7d5c6;}html.time-aware[data-time-scene=sunset]{--header-bg:#e6b58f;}html.time-aware[data-time-scene=night]{--header-bg:#263354;}html.time-aware[data-time-scene=midnight]{--header-bg:#1b2039;}
html .topbar,html.time-aware .topbar{background:var(--header-bg);}
html.time-aware:is([data-time-scene=night],[data-time-scene=midnight]) .hero {padding-top:100px;}
.time-scene .city-layer:is([data-phase=night],[data-phase=midnight]) .celestial-rise {top:110px;left:28px;right:auto;}
.city-stars i {width:2px;height:2px;}.city-stars i:nth-child(5n){width:4px;height:4px;}.city-stars i:nth-child(11n){width:1px;height:1px;}
html[data-theme=glass]{--brand:#3f51d6;--brand-hover:#2938ac;--background:#c2d8fc;--surface:#eef7ffee;--surface-raised:#fff;--navy:#273a79;--text:#23375e;--muted:#53618a;--border:#ffffffac;--blue-soft:#d9e4ff;--tabs-bg:#d5e4f6;--header-bg:#c3d9f3;--radius-card:30px;--radius-control:18px;--shadow:0 14px 30px #4b6ec625,inset 0 2px 1px #fff;--robot-frame-a:#cbdcfc;--robot-frame-b:#7193e9;}
html[data-theme=glass] body{background-image:radial-gradient(at 10% 35%,#7158ff55,transparent 45%),radial-gradient(at 85% 15%,#fff9,transparent 40%);}.theme-picker [data-theme=glass] i{background:linear-gradient(135deg,#677bff,#d6f4ff);}
html[data-theme=lavender]{--brand:#6d49bf;--brand-hover:#513298;--background:#ddd4f2;--surface:#faf8ff;--surface-raised:#fff;--navy:#403066;--text:#453961;--muted:#716185;--border:#eee6ff;--blue-soft:#eae1fd;--tabs-bg:#cfc3e9;--header-bg:#d8ccec;--radius-card:28px;--radius-control:16px;--shadow:10px 12px 25px #9483b63c,-5px -5px 16px #ffffff78;--robot-frame-a:#f0eaff;--robot-frame-b:#b69fdf;}
html[data-theme=lavender] .button.primary{box-shadow:inset 0 2px 2px #ffffff55,0 6px 12px #65438933;}.theme-picker [data-theme=lavender] i{background:linear-gradient(140deg,#c5b0ef,#faf6ff);}
html[data-theme=violet],html[data-theme=cosmic]{color-scheme:dark;--brand:#b9aaff;--brand-hover:#dbd3ff;--on-brand:#231845;--background:#211e43;--surface:#302656f5;--surface-raised:#3d3168;--navy:#f5eeff;--text:#e6ddf6;--muted:#c2b5dd;--border:#65517f;--blue-soft:#4e3a78;--tabs-bg:#292043;--header-bg:#30264d;--radius-card:26px;--radius-control:22px;--shadow:inset 0 1px 0 #bfa4ff40,0 12px 32px #08041330;--robot-screen:#14102d;--robot-light:#d2bfff;--robot-frame-a:#8870b3;--robot-frame-b:#46356c;--emphasis-bg:#443060;--emphasis-text:#fff;}
html[data-theme=violet] body{background-image:radial-gradient(at 75% 35%,#733d8755,transparent 55%),radial-gradient(at 15% 90%,#21577a60,transparent 50%);}.theme-picker [data-theme=violet] i{background:linear-gradient(135deg,#1b2448,#7746a7);}
html[data-theme=graphite]{color-scheme:dark;--brand:#a3c8ff;--brand-hover:#d0e3ff;--on-brand:#152a48;--background:#16191e;--surface:#25292f;--surface-raised:#30353d;--navy:#f0f3f8;--text:#e2e8ef;--muted:#aeb9c8;--border:#3b424b;--blue-soft:#344358;--tabs-bg:#1c2026;--header-bg:#20242a;--radius-card:16px;--radius-control:10px;--shadow:0 5px 14px #0002;--robot-frame-a:#737f8d;--robot-frame-b:#39404b;--emphasis-bg:#344d70;--emphasis-text:#fff;}
html[data-theme=graphite] .card{padding:20px;}html[data-theme=graphite] body{background-image:none;}.theme-picker [data-theme=graphite] i{background:linear-gradient(135deg,#292c31,#749dce);}
html[data-theme=frost]{--brand:#215fb5;--brand-hover:#174480;--background:#edf2f8;--surface:#fff;--surface-raised:#f5f8fc;--navy:#243c58;--text:#30465d;--muted:#63758a;--border:#ccd7e3;--blue-soft:#ddeaff;--tabs-bg:#e2eaf3;--header-bg:#dbe7f5;--radius-card:14px;--radius-control:10px;--shadow:0 2px 4px #23375308;--robot-frame-a:#ecf4ff;--robot-frame-b:#96b8e2;}
html[data-theme=frost] body{background-image:none;}.theme-picker [data-theme=frost] i{background:linear-gradient(135deg,#fff,#96b8e2);}
html[data-theme=cosmic]{--background:#171d38;--surface:#302951f0;--header-bg:#24263e;--radius-card:32px;--radius-control:24px;--shadow:0 15px 35px #0003,inset 0 1px 0 #d5b9ff50;}
html[data-theme=cosmic] body{background-image:radial-gradient(circle at 75% 70%,#684da666,transparent 60%);}.theme-picker [data-theme=cosmic] i{background:radial-gradient(circle at 30% 20%,#fff 1px,transparent 2px),linear-gradient(140deg,#151c3a,#875daf);}
.theme-decoration{display:none;position:fixed;inset:0;pointer-events:none;z-index:0;}html[data-theme=cosmic] .theme-decoration{display:block;background-image:radial-gradient(#e9e5ffbb 1px,transparent 1px),radial-gradient(#a9c5ff88 1px,transparent 1px);background-size:63px 67px,101px 97px;background-position:0 0,30px 27px;animation:star-glimmer 12s ease infinite alternate;}.cosmic-house{position:absolute;width:200px;right:1%;bottom:3%;opacity:.65;}
@media(max-width:700px){.tabs>.tab{min-width:88px;padding:10px 12px;font-size:12px;}.tabs>.tab-add{min-width:48px;flex-basis:48px;}.alarm-copy{grid-template-columns:76px 1fr;gap:8px;}.alarm-time{font-size:27px;}.alarm-actions{flex-direction:column;}.alarm-card{padding:14px;}.view-tabs{margin-bottom:16px;}.view-tabs button{padding:8px 12px;}html.time-aware:is([data-time-scene=night],[data-time-scene=midnight]) .hero{padding-top:80px;}.time-scene .city-layer:is([data-phase=night],[data-phase=midnight]) .celestial-rise{top:90px;left:18px;}.cosmic-house{width:120px;}}

.home-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;}.focus-card h3{font-size:28px;margin:16px 0 10px;}.focus-card p{color:var(--muted);margin-bottom:22px;}.home-agenda{display:flex;align-items:center;gap:16px;width:100%;min-height:60px;text-align:left;background:none;border:0;border-bottom:1px solid var(--border);color:var(--text);}.home-agenda time{color:var(--brand);}.home-agenda strong{flex:1;}.module-grid,.shopping-session-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:20px;}.module-card,.shopping-session-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;color:var(--text);text-align:left;min-height:150px;cursor:pointer;}.module-card>svg,.shopping-session-card>span{color:var(--brand);}.module-card small,.shopping-session-card small{color:var(--muted);}.shopping-plan-shell .shopping-item{grid-template-columns:36px minmax(0,1fr) auto auto auto;}.shopping-item .badge{font-size:11px;}.shopping-budget-summary{grid-template-columns:repeat(3,minmax(0,1fr));}.feature-tab-card{display:block;}.feature-tab-card>.extra-icon{display:none;}.feature-panel-copy{max-width:650px;}.feature-panel-copy h3{margin-bottom:18px;}#goalModules{margin-top:24px;}#healthContent .panel-header{margin-top:12px;}
@media(max-width:700px){.home-grid{grid-template-columns:1fr;}.module-grid,.shopping-session-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.module-card,.shopping-session-card{min-height:135px;padding:16px;}.shopping-plan-shell .shopping-item{grid-template-columns:36px minmax(0,1fr) auto;}.shopping-item>.icon-button{grid-column:3;grid-row:2;}.shopping-item>.badge{grid-column:2;grid-row:2;}.focus-card h3{font-size:23px;}}

/* Screen gestures share the face's own motion and interruption state. */
.robot-gestures { color:var(--robot-light);pointer-events:none }
.robot-hand { transform-box:view-box;transition:transform .6s ease,opacity .4s;opacity:0 }
.screen-palm { transform-box:view-box;transform-origin:0 0;transform:rotate(-12deg) }
.robot-guitar,.robot-notes { opacity:0;transition:opacity .4s }
[data-gesture=wave] .hand-left { opacity:1 }
[data-gesture=wave] .hand-left .screen-palm { animation:cenbot-wave .9s ease-in-out infinite }
[data-gesture=guitar] .robot-guitar { opacity:1 }
[data-gesture=guitar] .robot-hand { opacity:0 }
[data-gesture=guitar] .guitar-strum { transform-origin:107px 184px;animation:cenbot-strum .6s ease-in-out infinite alternate }
[data-gesture=whistle] .robot-notes { opacity:.9;animation:cenbot-note 2s ease-in-out infinite }
[data-state=listening] .robot-hand,[data-state=speaking] .robot-hand,[data-state=preparing] .robot-hand { transform:rotate(0);opacity:0 }
@keyframes cenbot-wave { 0%,100%{transform:rotate(-6deg)}50%{transform:rotate(-18deg)} }
@keyframes cenbot-strum { from{transform:rotate(-8deg)}to{transform:rotate(10deg)} }
@keyframes cenbot-note { 0%{transform:translate(0,8px);opacity:0}30%,70%{opacity:.85}100%{transform:translate(14px,-16px);opacity:0} }
[data-paused=true] .robot-gestures * { animation:none!important }
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .robot-gestures *{animation:none!important;transition:none!important}}

.feature-history{max-height:360px;overflow:auto}.feature-history li{display:flex;align-items:center;justify-content:space-between;gap:12px}.feature-history li>div{min-width:0;overflow-wrap:anywhere}.feature-history small{display:block}.feature-entry-form label{display:grid;gap:8px}.feature-entry-form{gap:16px}.shopping-session-card{text-align:left}.record-summary dd{overflow-wrap:anywhere;white-space:pre-wrap}

/* Bounded primary navigation: the add control never overlays the selected tab. */
.tabs {display:flex;flex-wrap:nowrap;overflow:hidden;gap:6px;max-width:100%;min-width:0}
.main-tabs {display:flex;flex:1;gap:6px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scroll-padding-inline:4px}
.main-tabs>.tab {flex:1 0 auto;min-width:100px;max-width:none;white-space:normal;padding:12px 16px;min-height:56px}
.tabs>.tab-add {position:static;flex:0 0 48px;margin:0;min-width:48px;align-self:stretch}
.shopping-plan-shell .shopping-item {grid-template-columns:36px minmax(0,1fr) auto 44px;align-items:center;min-height:72px}
.shopping-item>.icon-button {grid-column:4;grid-row:1;min-width:44px;min-height:44px}
.shopping-item>.badge {grid-column:2;grid-row:2;justify-self:start}
.shopping-item-price {grid-column:3;grid-row:1}
.shopping-item.is-done .shopping-item-copy>strong{text-decoration:line-through;color:var(--muted)}
@media(max-width:700px){
 .main-tabs>.tab{min-width:104px;flex-direction:column;gap:5px;padding:10px 12px;font-size:11px}
 .shopping-plan-shell .shopping-item{grid-template-columns:36px minmax(0,1fr) 44px;gap:6px;padding:14px 0}
 .shopping-item>.icon-button{grid-column:3;grid-row:1 / span 2}
 .shopping-item-price{grid-column:2;grid-row:2;justify-self:start}
 .shopping-item>.badge{grid-column:2;grid-row:3}
 .shopping-budget-summary{grid-template-columns:1fr 1fr;gap:12px}.shopping-budget-summary>div:last-child{grid-column:1 / -1;padding-top:10px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
}

/* Global 0.12: bounded detail columns and compact source summaries. */
:root{--detail-main-width:760px;--detail-summary-width:300px;--form-content-width:680px}
.detail-layout{display:grid;grid-template-columns:minmax(0,var(--detail-main-width)) minmax(230px,var(--detail-summary-width));gap:24px;align-items:start}
.detail-main,.detail-summary{min-width:0}
.detail-summary{background:var(--blue-soft);border:1px solid var(--border);border-radius:var(--radius-control);padding:20px}
.feature-panel-copy{width:100%;max-width:var(--form-content-width)}
.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:20px}
.overview-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:10px;color:var(--text);min-width:0;padding:20px;cursor:pointer}
.overview-label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--muted)}
.overview-label svg{width:20px;height:20px;color:var(--brand)}
.overview-card>strong{font-size:22px;color:var(--navy);font-variant-numeric:tabular-nums}
.overview-card small{color:var(--muted);overflow-wrap:anywhere}
.overview-card progress{margin-top:auto}
progress{appearance:none;border:0;border-radius:99px;width:100%;height:var(--progress-height);background:var(--border);overflow:hidden;accent-color:var(--brand)}
progress::-webkit-progress-bar{background:var(--border);border-radius:99px}
progress::-webkit-progress-value{background:var(--brand);border-radius:99px}
.focus-time{display:block;font-size:clamp(40px,5vw,56px);font-weight:750;line-height:1.1;letter-spacing:-2px;margin:14px 0 8px;font-variant-numeric:tabular-nums;color:var(--navy)}
.focus-countdown{display:block;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--brand);margin-bottom:18px}
.danger-text{color:var(--danger)}
.shopping-plan-shell{max-width:1120px;margin-inline:auto}
.shopping-plan-header{margin-bottom:24px}
.shopping-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.shopping-list-heading span{font-size:12px;color:var(--muted)}
.shopping-plan-shell h4{margin:0;font-size:15px}
.shopping-plan-shell .shopping-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto 88px;gap:10px;align-items:center;padding:16px 0}
.shopping-item-copy small{line-height:1.6}
.shopping-item .row-actions{gap:0}
.shopping-price-button{border:0;border-radius:var(--radius-control);padding:10px;min-height:44px;color:var(--brand);background:var(--blue-soft);font:inherit;font-size:13px;font-weight:650;white-space:nowrap}
.shopping-add-bottom{width:100%;justify-content:center;margin-top:16px;min-height:48px}
.budget-total{display:block;font-size:26px;line-height:1.3;margin:12px 0 20px;color:var(--navy);font-variant-numeric:tabular-nums}
.cost-lines{display:grid;gap:14px;margin:0 0 20px}.cost-lines>div{display:flex;justify-content:space-between;gap:12px}.cost-lines dt{font-size:13px;color:var(--muted)}.cost-lines dd{margin:0;font-weight:650;font-size:14px}
.budget-status{font-size:13px;font-weight:650;margin:10px 0 16px}
.shopping-costs>small{display:block;margin-bottom:14px}
.shopping-costs>.button{width:100%;justify-content:center}
.is-over-budget{border-color:var(--danger)}.is-over-budget .budget-status{color:var(--danger)}.is-over-budget progress::-webkit-progress-value{background:var(--danger)}
.shopping-checkout{margin-top:24px}
.robot-stage.immersive[data-fullscreen-frame=monitor]{background:var(--fullscreen-housing,linear-gradient(145deg,#93c5fd,#2563eb));border-color:var(--fullscreen-border,#2563eb)}
.theme-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
.theme-picker button{display:flex;flex-direction:column;gap:10px;padding:10px;min-width:0;width:100%;height:auto;white-space:normal;text-align:left}
.theme-picker button>span{font-size:13px;font-weight:650}
.theme-picker .theme-preview{position:relative;display:block;width:100%;height:106px;border-radius:10px;overflow:hidden;background:var(--preview-bg,#b2dee6);border:1px solid #ffffff44;color:var(--preview-ink,#2751b1)}
.theme-preview b{position:absolute;display:block;border-radius:6px;background:var(--preview-card,#ffffffc9)}
.theme-preview .preview-sky{width:30px;height:30px;top:9px;right:13px;border-radius:50%;background:#ffe6a2;box-shadow:0 0 18px #ffeca780}
.theme-preview .preview-card{left:10px;top:18px;width:42%;height:34px;padding:6px;box-shadow:0 3px 9px #0001}
.preview-card em{display:block;height:4px;background:currentColor;opacity:.6;margin:3px 0;border-radius:2px}
.preview-card em:last-child{width:65%;opacity:.25}
.theme-preview .preview-chart{bottom:10px;left:10px;right:10px;height:35px;padding:2px 8px}.preview-chart svg{width:100%;height:100%}
[data-theme=glass] .theme-preview{--preview-bg:linear-gradient(135deg,#accfff,#5643f5);--preview-card:#effbffcc}
[data-theme=lavender] .theme-preview{--preview-bg:linear-gradient(135deg,#e0dcff,#9a7ce3);--preview-card:#ffffffcf;--preview-ink:#7558a7}
[data-theme=violet] .theme-preview{--preview-bg:linear-gradient(135deg,#101d34,#592b8a);--preview-card:#66579991;--preview-ink:#dcc2ff}
[data-theme=graphite] .theme-preview{--preview-bg:#1b1f26;--preview-card:#393e46;--preview-ink:#8fc0ff}
[data-theme=frost] .theme-preview{--preview-bg:linear-gradient(150deg,#d7eaff,#f0f5fb);--preview-card:#fff;--preview-ink:#5889cc}
[data-theme=cosmic] .theme-preview{--preview-bg:radial-gradient(circle at 75% 25%,#9181bf 0,transparent 25%),linear-gradient(#18152f,#5c3485);--preview-card:#6c519980;--preview-ink:#e1c7ff}
[data-theme=cosmic] .preview-sky,[data-theme=violet] .preview-sky{background:#f0e9ff;box-shadow:0 0 18px #e7d8ff88}
@media(max-width:800px){.detail-layout{grid-template-columns:1fr}.detail-summary{grid-row:1}.shopping-costs{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.shopping-costs .cost-lines,.shopping-costs progress,.shopping-costs .budget-status,.shopping-costs>small{grid-column:1/-1}.shopping-costs .budget-total{margin:0;text-align:right;font-size:22px}.shopping-costs>.button{grid-column:1/-1}.shopping-plan-shell .shopping-item{grid-template-columns:34px minmax(0,1fr) 44px;gap:6px}.shopping-item .shopping-price-button{grid-column:2;grid-row:2;justify-self:start}.shopping-plan-shell .shopping-item>.row-actions{grid-column:3;grid-row:1/3;flex-direction:column}.shopping-item-copy{grid-column:2}.shopping-check{grid-row:1/3;align-self:start}.theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-card{padding:16px}.overview-card>strong{font-size:18px}.overview-label{font-size:12px}}
@media(max-width:360px){.overview-grid{grid-template-columns:1fr}.shopping-costs{padding:14px}.shopping-costs .budget-total{font-size:18px}}

.feature-tab-card{max-width:calc(var(--form-content-width) + 48px);margin-inline:auto}

/* Global deadline component: the same time scale and urgency in every feature. */
:root{--deadline-start:var(--brand);--deadline-middle:#c58a2d;--deadline-end:var(--danger)}
.deadline{display:grid;gap:8px;min-width:0;width:100%;margin-top:16px;text-align:left;font-variant-numeric:tabular-nums;color:var(--text)}
.deadline-heading,.deadline-caption{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;font-size:12px;line-height:1.5}
.deadline-heading>span{font-weight:650;overflow-wrap:anywhere}.deadline-heading time{white-space:nowrap;font-size:11px;color:var(--muted)}
.deadline-caption>span{font-weight:600}.deadline-caption small{color:var(--muted);font-size:11px;white-space:nowrap}
.deadline-track{height:var(--progress-height);border-radius:99px;overflow:hidden;background:var(--border);position:relative}
.deadline-track::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--deadline-start) 0%,var(--deadline-start) 50%,var(--deadline-middle) 78%,var(--deadline-end) 100%);opacity:.14}
.deadline-track>span{display:block;height:100%;border-radius:99px;background:var(--deadline-start);transition:width .8s linear,background-color .5s}
.deadline[data-deadline-state=near] .deadline-track>span{background:linear-gradient(90deg,var(--deadline-start),var(--deadline-middle) 65%,var(--deadline-end))}
.deadline[data-deadline-state=near] [data-deadline-label]{color:var(--text)}
.deadline[data-deadline-state=late] .deadline-track>span{background:linear-gradient(90deg,var(--deadline-middle),var(--deadline-end))}
.deadline[data-deadline-state=late] [data-deadline-label]{color:var(--danger)}
.deadline[data-deadline-state=complete] .deadline-track>span{background:var(--muted);opacity:.6}
.deadline[data-deadline-state=complete] .deadline-caption{color:var(--muted)}
.agenda-row>.deadline{grid-column:1/-1;margin-top:4px;padding-bottom:4px}
.goal-content>.deadline{margin-block:18px}
.shopping-costs>.deadline{grid-column:1/-1;border-top:1px solid var(--border);padding-top:16px}
.alarm-copy>.deadline{max-width:440px}
.alarm-card .alarm-copy{min-width:0;flex:1}
.overview-card{justify-content:flex-start}.overview-card>.deadline{margin-top:auto;padding-top:8px}
.overview-card .achievement{margin-top:8px;display:grid;grid-template-columns:1fr auto;gap:8px;font-size:11px;color:var(--muted)}
.achievement progress{grid-row:2;grid-column:1/-1}.achievement small{grid-column:2;grid-row:1}
.home-grid{grid-template-columns:1fr;align-items:start}.home-grid.has-next{grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}
.focus-card{padding:24px}.focus-content{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr);gap:24px;align-items:center}
.focus-clock{border-right:1px solid var(--border);padding-right:24px}.focus-clock small{font-size:12px;color:var(--muted)}
.focus-card .focus-time{font-size:clamp(40px,5vw,60px);margin:12px 0 6px}.focus-info h3{margin:0 0 6px;font-size:26px;overflow-wrap:anywhere}.focus-info p{margin:0 0 18px}.focus-info .row-actions{flex-wrap:wrap}
.focus-card>.deadline{margin-top:22px;border-top:1px solid var(--border);padding-top:18px}.focus-card .deadline-caption{font-size:14px}
#conflictChangeTime{margin-top:8px}#dialogError:not(.hidden)+#conflictChangeTime{display:inline-flex}
@media(max-width:900px){.home-grid.has-next{grid-template-columns:1fr}.focus-content{grid-template-columns:minmax(130px,.6fr) minmax(0,1.4fr)}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.focus-card{padding:20px}.focus-content{gap:16px;grid-template-columns:110px minmax(0,1fr)}.focus-clock{padding-right:12px}.focus-card .focus-time{font-size:40px}.focus-info h3{font-size:20px}.focus-info p{margin-bottom:12px;font-size:12px}.focus-info .button{padding:10px;font-size:12px}.deadline-heading,.deadline-caption{flex-wrap:wrap;gap:2px 8px}.overview-card>.deadline .deadline-heading time{white-space:normal}.overview-card .deadline-caption small{white-space:normal}.agenda-row>.deadline{padding-left:0}.alarm-copy>.deadline{width:100%}}
@media(max-width:360px){.overview-grid{grid-template-columns:1fr}.focus-content{grid-template-columns:100px minmax(0,1fr);gap:12px}.focus-card .focus-time{font-size:36px}}
html[data-ui-motion=off] .deadline-track>span{transition:none}

/* Shared compact collections: cards keep a useful width instead of stretching. */
:root{--compact-card-width:280px}
.compact-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,var(--compact-card-width)));gap:16px;align-items:start;justify-content:start}
.compact-card-grid>.card{min-width:0;min-height:0;padding:20px;gap:8px;align-self:start;overflow-wrap:anywhere}
.compact-card-grid>.card>strong{font-size:15px;line-height:1.45}
.compact-card-grid>.card>small{font-size:12px;line-height:1.5}
@media(max-width:600px){.compact-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-card-grid>.card{padding:16px}}
@media(max-width:380px){.compact-card-grid{grid-template-columns:minmax(0,1fr)}}

/* Second monitor frame: articulated housing arms and the original, wireless mic. */
.monitor-arms{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:4}
.monitor-arm path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.monitor-arm .arm-outline{stroke:var(--arm-edge);stroke-width:14px}
.monitor-arm .arm-inset{stroke:var(--arm-shell);stroke-width:9px}
.monitor-arm .arm-joint{fill:var(--arm-shell);stroke:var(--arm-edge);stroke-width:2px}
.monitor-palm path,.monitor-grip rect{fill:var(--arm-light);stroke:var(--arm-edge);stroke-width:1.5px}
.monitor-grip path{stroke:var(--arm-edge);stroke-width:1px;opacity:.5}
.robot-companion[data-style=monitor-hands] .monitor-arms{display:block}
.robot-companion[data-style=monitor-hands] .mic-cable,
.robot-companion[data-style=monitor-hands] .mic-connector,
.robot-companion[data-style=monitor-hands] .robot-hand,
.robot-companion[data-style=monitor-hands] .robot-guitar{display:none}
.hero-robot .robot-companion[data-style=monitor-hands]{width:min(286px,calc(100vw - 116px))}
.robot-companion[data-style=monitor-hands] .robot-microphone{right:auto;bottom:auto;width:58px;height:100px;transform:none}
.robot-companion[data-style=monitor-hands] .physical-mic{right:0;bottom:0;transform:rotate(-8deg);transition:filter .2s,color .2s}
.robot-companion[data-style=monitor-hands] .physical-mic[data-pressed=true],
.robot-companion[data-style=monitor-hands] .physical-mic.listening{transform:rotate(-8deg)}
.robot-companion[data-style=monitor-hands] .mic-hold-label{right:6px;bottom:-31px;width:78px;line-height:1.4}
.robot-companion:has(.robot-stage.immersive) .monitor-arms{display:none}
#robotStyles{flex-wrap:wrap}

/* A deadline is a temporary signal, independent of the chosen character/theme. */
.deadline-heat{position:absolute;inset:0 0 auto;height:35%;border-radius:inherit;background:linear-gradient(to bottom,var(--danger),color-mix(in srgb,var(--danger) 45%,transparent) 28%,transparent 100%);opacity:0;pointer-events:none;z-index:3;transition:opacity .65s}
.robot-companion[data-deadline-level=near] .deadline-heat{opacity:.6}
.robot-companion[data-deadline-level=late] .deadline-heat{opacity:.95}
.fullscreen-deadline-heat{display:none}
.robot-stage.immersive[data-fullscreen-frame=monitor]>.fullscreen-deadline-heat{display:block}
.robot-anger-steam{position:absolute;top:-40px;left:24%;width:90px;height:38px;overflow:visible;pointer-events:none;opacity:0;color:var(--danger);transition:opacity .5s}
.robot-anger-steam path,.robot-anger-mark path{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.robot-anger-mark{color:var(--danger);opacity:0;transition:opacity .5s}
.robot-companion:is([data-deadline-level=near],[data-deadline-level=late]) .robot-anger-steam,
.robot-stage:is([data-deadline-level=near],[data-deadline-level=late]) .robot-anger-mark{opacity:1}
.robot-companion:is([data-deadline-level=near],[data-deadline-level=late]) .robot-anger-steam{animation:anger-steam 2.4s ease-in-out infinite}
@keyframes anger-steam{50%{transform:translateY(-5px)}}
.robot-companion:has([data-paused=true]) .robot-anger-steam,html[data-ui-motion=off] .robot-anger-steam{animation:none}
html[data-ui-motion=off] .deadline-heat,html[data-ui-motion=off] .robot-anger-mark{transition:none}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .robot-anger-steam{animation:none}}

.main-tabs{scrollbar-width:none}.main-tabs::-webkit-scrollbar{display:none}
.menu-scroll{flex:0 0 44px;align-self:center;color:var(--brand);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-control)}
.menu-scroll:disabled{opacity:.35;cursor:default}
.schedule-navigation{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:20px}
.schedule-date-control{display:flex;gap:12px;align-items:center;font-size:12px}.schedule-date-control .input{width:auto}
.past-date-list{display:flex;gap:8px;flex-wrap:wrap;width:100%;max-height:120px;overflow:auto}
#panel-schedule[data-schedule-view=history] .schedule-grid>.stack{display:none}
#panel-schedule[data-schedule-view=history] .schedule-grid{grid-template-columns:minmax(0,760px)}
.focus-info .row-actions{gap:8px}
.filter-group[role=radiogroup]{padding:4px;gap:4px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--blue-soft);display:flex;flex-wrap:wrap}
.filter-group[role=radiogroup]>button{flex:1;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:calc(var(--radius-control) - 3px);background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:650}
.filter-group[role=radiogroup]>button[aria-checked=true]{background:var(--surface);border-color:var(--border);color:var(--brand);box-shadow:0 2px 5px rgb(0 0 0 / 5%)}
.filter-group[role=radiogroup]>button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
#characterPreset{display:none}
#characterSearch{margin-block:12px}
.character-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:360px;overflow:auto;padding:4px;scrollbar-width:thin}
.character-choice{display:grid;gap:8px;padding:8px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font:inherit;font-size:12px;min-width:0}
.character-choice svg{width:100%;height:auto;border-radius:8px}.character-choice span{overflow-wrap:anywhere;line-height:1.35}
.character-choice[aria-checked=true]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:var(--blue-soft)}
.character-choice:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:600px){.character-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-date-control{width:100%}.main-tabs>.tab{min-width:90px}.menu-scroll{flex-basis:36px;min-width:36px;width:36px;min-height:44px}}

/* The active menu owns its scroll; workspace navigation stays outside it. */
.workspace{height:max(280px,min(880px,calc(100dvh - 112px)));display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:20px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--background)}
html.time-aware .workspace::before{content:none}
.workspace>.workspace-intro,.workspace>.tabs{flex:0 0 auto}
.workspace>[role=tabpanel]{flex:1 1 0;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:4px 8px 24px 2px;scroll-padding-block:12px}
.workspace>[role=tabpanel]:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:var(--radius-control)}
@media(max-width:600px){.workspace{height:max(280px,calc(100dvh - 100px));padding:14px}.workspace>[role=tabpanel]{padding-right:4px;padding-bottom:20px}}

/* One scrollbar palette for page, panels, dialogs, galleries, and inputs. */
:root{--scroll-track:var(--surface);--scroll-thumb:color-mix(in srgb,var(--brand) 40%,var(--border));--scroll-thumb-hover:color-mix(in srgb,var(--brand) 75%,var(--border));--scroll-size:9px}
*{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)!important}
@supports selector(::-webkit-scrollbar){
 *{scrollbar-width:auto!important;scrollbar-color:auto!important}
 :root ::-webkit-scrollbar,html::-webkit-scrollbar{width:var(--scroll-size);height:var(--scroll-size)}
 :root ::-webkit-scrollbar-track,html::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:99px}
 :root ::-webkit-scrollbar-thumb,html::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid var(--scroll-track);border-radius:99px;min-height:32px;min-width:32px}
 :root ::-webkit-scrollbar-thumb:hover,html::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover)}
 :root ::-webkit-scrollbar-button,html::-webkit-scrollbar-button{display:none;width:0;height:0}
 :root ::-webkit-scrollbar-corner,html::-webkit-scrollbar-corner{background:var(--scroll-track)}
 .main-tabs{scrollbar-width:none!important}.main-tabs::-webkit-scrollbar{display:none}
}
@media(max-width:600px){:root{--scroll-size:7px}}

.today-indicators{margin-block:20px 24px}.today-indicators>.panel-header{margin-bottom:12px}.today-indicators h3{font-size:15px}.today-indicators small{font-size:12px;color:var(--muted)}
.agenda-indicator-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,260px));gap:10px}
.agenda-indicator{padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0;text-align:left;color:var(--text);cursor:pointer;border-radius:var(--radius-control)}
.agenda-indicator.is-focus{border-color:var(--brand)}
.agenda-indicator-top{display:flex;justify-content:space-between;align-items:center;gap:6px}.agenda-indicator time{font-size:16px;font-weight:700;color:var(--brand)}
.agenda-indicator [data-agenda-status]{font-size:11px;color:var(--muted)}
.agenda-indicator>strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.agenda-indicator>.deadline{margin-top:auto;display:block;padding-top:4px}.agenda-indicator .deadline-track{height:var(--progress-height)}
.agenda-indicator .deadline-heading,.agenda-indicator .deadline-caption{display:none}
.agenda-indicator[data-agenda-completed=true]>strong{color:var(--muted)}
@media(max-width:600px){.agenda-indicator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-indicator-top{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:360px){.agenda-indicator-grid{grid-template-columns:1fr}}
.robot-alert-brow{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;opacity:0;transition:opacity .4s}
.robot-stage:is([data-deadline-level=near],[data-deadline-level=late]) .robot-alert-brow{opacity:1}
.robot-deadline-notice{font-size:12px;line-height:1.5;font-weight:650;color:var(--text);background:var(--surface);border:1px solid color-mix(in srgb,var(--danger) 45%,var(--border));border-radius:var(--radius-control);max-width:320px;padding:8px 12px;margin:8px auto;overflow-wrap:anywhere}
html[data-ui-motion=off] .robot-alert-brow{transition:none}

/* Shared category and 24-hour controls */
.category-add{justify-self:start;text-align:left;min-height:44px}.category-editor,.time-picker{padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.category-editor[hidden],.time-picker[hidden]{display:none}.category-editor label,.time-picker label{display:grid;gap:6px;font-size:12px;color:var(--muted)}
.field-control-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.time-control{display:flex;align-items:center;gap:4px;min-width:0}.time-control>.input{min-width:0;flex:1}.time-control>.icon-button{flex:none;font-size:24px}.time-picker-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.time-picker input{min-width:0;width:100%}.time-picker small,.category-editor small{color:var(--danger)}

.deadline[data-deadline-state="future"] .deadline-track>span{background:var(--brand)}

.field{align-content:start}

.category-total{display:grid;gap:5px;margin:18px 0}.category-total strong{font-size:24px}.category-total small{color:var(--muted)}.category-breakdown{display:grid;gap:18px}.category-breakdown-row>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;font-size:12px}.category-breakdown-row progress{width:100%;height:var(--progress-height);margin-top:8px;accent-color:var(--brand)}.category-breakdown-row small{color:var(--muted)}.category-breakdown-row span{overflow-wrap:anywhere}.fullscreen-speech-status{display:none}.immersive .fullscreen-speech-status{display:block;position:absolute;bottom:max(80px,calc(env(safe-area-inset-bottom) + 64px));left:10%;right:10%;z-index:6;margin:0;text-align:center;color:var(--robot-light);font-size:14px;pointer-events:none;text-wrap:balance}
@media (pointer:coarse), (max-width:700px) {
  .robot-stage.immersive .robot-exit { opacity:1; top:max(12px,env(safe-area-inset-top)); }
  .robot-stage.immersive[data-fullscreen-frame=monitor] { padding-top:max(64px,calc(env(safe-area-inset-top) + 56px)); padding-bottom:max(48px,calc(env(safe-area-inset-bottom) + 36px)); border-radius:0; }
}

/* Local cloud connection setup uses the same card, fields and buttons. */
.cloud-setup-page{min-height:100dvh;display:grid;place-items:center;padding:24px}.cloud-setup-shell{width:min(620px,100%);display:grid;gap:20px}.cloud-setup-shell>.brand{width:max-content;max-width:100%}.cloud-setup-card{display:grid;gap:12px}.cloud-setup-card h1{font-size:clamp(28px,6vw,40px)}.cloud-setup-card>p{color:var(--muted)}.cloud-setup-form{display:grid;gap:18px;margin-top:8px}.cloud-setup-form .field{display:grid;gap:7px}.cloud-setup-form label{font-weight:650}.cloud-setup-form small{color:var(--muted)}.cloud-setup-form .row-actions{justify-content:flex-end;flex-wrap:wrap}@media(max-width:600px){.cloud-setup-page{padding:12px}.cloud-setup-card{padding:20px}.cloud-setup-form .row-actions>*{flex:1}}

.chat-attachment-panel{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px;border:1px solid color-mix(in srgb,var(--brand) 32%,var(--border));border-radius:var(--radius-control);background:var(--surface-raised);margin-bottom:10px;box-shadow:0 5px 18px rgb(11 36 84 / 8%)}.chat-attachment-panel[hidden]{display:none}.chat-attachment-preview{grid-row:1;display:grid;place-items:center;width:72px;height:72px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);color:var(--brand)}.chat-attachment-preview img{width:100%;height:100%;object-fit:cover}.chat-attachment-preview .icon{width:28px;height:28px}.chat-attachment-copy{display:grid;align-content:center;gap:3px;min-width:0}.chat-attachment-panel strong{font-size:13px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-attachment-panel p{font-size:11.5px;line-height:1.45;color:var(--muted);margin:2px 0 0}.chat-attachment-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:7px}.chat-attachment-actions .button{justify-content:center;min-height:40px}.chat-attachment-panel[data-state=reading]{background:var(--blue-soft)}.chat-attachment-panel[data-state=reading] .chat-attachment-preview .icon{animation:attachment-pulse 1.2s ease-in-out infinite}.chat-attachment-panel[data-state=ready]{border-color:var(--brand)}.chat-attachment-panel[data-state=error]{border-color:var(--danger);background:color-mix(in srgb,var(--danger) 8%,var(--surface-raised))}.chat-attachment-panel[data-state=error] #chatAttachmentStatus{color:var(--danger);font-weight:650}.chat-attachment-panel[data-state=needs-account]{background:var(--warning-soft)}@keyframes attachment-pulse{50%{opacity:.45;transform:scale(.9)}}#chooseAttachment{flex:none}.command-form textarea{min-width:0}

/* Cenbot 0.22: clear account action and one install surface for every device. */
.status-pill{min-height:44px;padding:6px 12px 6px 7px;color:var(--brand);font-weight:700;cursor:pointer}
.status-pill>img{width:30px;height:30px;object-fit:contain;border-radius:9px;background:#fff}
.status-pill>.dot{width:5px;height:5px}
.account-brand{display:flex;align-items:center;gap:12px;padding:14px;margin:12px 0;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-soft)}
.account-brand img{width:56px;height:56px;object-fit:contain;border-radius:14px;background:#fff}
.account-brand>div{display:grid;gap:3px;min-width:0}.account-brand strong{font-size:18px;color:var(--navy)}.account-brand span{font-size:12px;color:var(--muted)}
.account-form .account-submit{width:100%;min-height:54px;justify-content:center;font-size:14px}
.account-submit img{width:30px;height:30px;object-fit:contain;border-radius:8px;background:#fff}
.account-forgot{justify-self:end;margin-top:-5px}.account-back{justify-self:center!important}
.download-center{margin:32px 0 48px;padding:28px}
.download-intro{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px}
.download-logo{width:72px;height:72px;object-fit:contain;border-radius:18px;background:#fff}
.download-intro h2{margin:5px 0 6px;font-size:24px;color:var(--navy)}.download-intro p,.install-status{color:var(--muted);font-size:12px;line-height:1.65}
.install-button{min-width:156px}.install-status{margin:18px 0 12px;padding-top:16px;border-top:1px solid var(--border)}
.platform-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.platform-card{display:grid;gap:5px;min-width:0;padding:14px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-soft)}
.platform-card strong{font-size:13px;color:var(--navy)}.platform-card span{font-size:10px;line-height:1.5;color:var(--muted)}

@media(max-width:700px){
  html,body{max-width:100%;overflow-x:hidden}
  .app-shell{width:calc(100% - 24px)}
  .topbar{min-height:78px;gap:7px;padding-top:env(safe-area-inset-top)}
  .topbar-date{display:none}
  .brand{gap:8px;flex:1 1 auto}
  .brand-logo{width:48px;height:48px;padding:4px;border-radius:13px}
  .brand-copy strong{font-size:20px}.brand-copy span{font-size:10px}
  .topbar-end{gap:5px;flex:0 0 auto}
  .status-pill{width:auto;height:44px;padding:5px 9px;gap:6px;justify-content:center;white-space:nowrap}
  .status-pill>img{display:none}.status-pill>.dot{display:none}.status-pill #connectionText{display:inline;font-size:11px}
  .settings-trigger{width:44px;min-width:44px;height:44px;min-height:44px}
  .hero,html.time-aware:is([data-time-scene=night],[data-time-scene=midnight]) .hero{padding:24px 0 32px}
  .hero-layout{gap:24px;width:100%}.hero-robot,.hero-chat{min-width:0;width:100%}
  .hero h1{font-size:clamp(30px,9vw,40px)}
  .hero-robot .robot-companion{width:min(236px,calc(100vw - 106px));margin:16px auto 0}
  .robot-microphone{right:-48px;bottom:-12px;transform:scale(.74);transform-origin:left bottom}
  .robot-companion[data-style=face] .robot-microphone{right:-44px}
  .robot-state{margin-top:10px}.robot-quick-actions{margin-top:8px}
  .conversation-tail{top:-23px}
  .hero-chat .conversation,.conversation{height:min(540px,72dvh);min-height:470px;padding:18px;border-radius:20px}
  .conversation .card-header{margin-bottom:8px}.conversation h2{font-size:17px}
  .chat-scroll{padding-right:3px}.chat-empty{padding:18px}.chat-message{max-width:96%;padding:11px 13px}
  .conversation-footer{margin-top:8px;padding-top:8px}.conversation-footer .command-form{padding:5px 6px 5px 9px}
  .command-form textarea{height:56px;min-height:56px;max-height:56px;padding:8px 0}
  .suggestions{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding-bottom:4px}.suggestion{flex:0 0 auto}
  .conversation-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.conversation-actions .button{width:100%}
  .workspace{height:auto;min-height:0;display:block;overflow:visible;padding:16px;margin:0 0 24px;border-radius:20px}
  .workspace>.workspace-intro{margin-bottom:12px}.workspace-intro h2{font-size:18px}
  .workspace>.tabs{margin-bottom:22px;padding:5px;border-radius:14px}
  .workspace>[role=tabpanel]{height:auto;min-height:0;overflow:visible;padding:2px 0 18px;scrollbar-gutter:auto}
  .main-tabs>.tab{min-width:98px;min-height:54px;padding:9px 10px;font-size:11px}
  .menu-scroll{flex-basis:38px;min-width:38px;width:38px}.tabs>.tab-add{flex-basis:46px;min-width:46px}
  .card{padding:18px;border-radius:18px}
  .panel-header{align-items:flex-start;gap:12px}.panel-actions{width:100%;align-items:stretch}.panel-actions>.button{flex:1}
  .home-grid,.home-grid.has-next,.schedule-grid,.chart-grid,.goal-summary,.stat-grid,.module-grid,.shopping-session-grid{grid-template-columns:1fr}
  .stat-grid .emphasis{grid-column:auto}
  .focus-card{padding:18px}.focus-content{grid-template-columns:1fr;gap:16px;align-items:start}
  .focus-clock{border-right:0;border-bottom:1px solid var(--border);padding:0 0 15px}.focus-card .focus-time{font-size:44px}
  .focus-info h3{font-size:22px}.focus-info .row-actions{display:grid;grid-template-columns:1fr}.focus-info .button{width:100%}
  .overview-grid,.compact-card-grid,.agenda-indicator-grid{grid-template-columns:1fr}
  .overview-card,.compact-card-grid>.card{padding:16px}.overview-card>strong{font-size:20px}
  .goal-overall{align-items:flex-start}.goal-summary>.card{min-height:0}
  .agenda-row{grid-template-columns:44px minmax(0,1fr) auto}.transaction-row{grid-template-columns:32px minmax(0,1fr) auto}
  .download-center{margin:24px 0 34px;padding:18px}
  .download-intro{grid-template-columns:58px minmax(0,1fr);gap:12px}.download-logo{width:58px;height:58px;border-radius:15px}
  .download-intro h2{font-size:20px}.download-intro .install-button{grid-column:1/-1;width:100%}
  .platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dialog-settings{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 40px)}
  .settings-tabs{overflow-x:auto;justify-content:flex-start}.settings-tabs button{flex:0 0 auto;min-width:72px;padding-inline:10px}
  .account-brand{padding:12px;margin-inline:0}.account-brand img{width:48px;height:48px}.account-brand strong{font-size:16px}
}

@media(max-width:430px){
  .brand-copy span{display:none}
  .status-pill #connectionText{max-width:96px;overflow:hidden;text-overflow:ellipsis}
  .platform-grid{grid-template-columns:1fr}
  .filter-group{max-width:100%;overflow-x:auto}
  .dialog-header,.dialog-body{padding:17px}.dialog-footer{padding:14px 17px}
}

@media(max-width:350px){
  .brand-copy{display:none}.status-pill #connectionText{max-width:86px}.app-shell{width:calc(100% - 16px)}
}

/* Cenbot 0.23: native app downloads live in the shared header dialog. */
.header-download{min-height:44px;flex:none;gap:7px;padding:9px 13px;white-space:nowrap;color:var(--brand)}
.header-download .icon{width:18px;height:18px}
.dialog-download{width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 32px)}
.download-dialog-body{display:grid;gap:18px;overflow-y:auto;overscroll-behavior:contain}
.download-brand{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-soft)}
.download-brand img{width:58px;height:58px;flex:none;object-fit:contain;border-radius:14px;background:#fff}
.download-brand div{display:grid;gap:4px;min-width:0}.download-brand strong{font-size:17px;color:var(--navy)}.download-brand span{font-size:12px;line-height:1.55;color:var(--muted)}
.native-download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.native-download-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:12px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface-raised)}
.download-platform-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--blue-soft);color:var(--brand);font-size:17px;font-weight:800}
.native-download-card>div{min-width:0}.native-download-card h3{font-size:16px}.native-download-card p{min-height:38px;margin:5px 0;color:var(--muted);font-size:12px;line-height:1.55}.download-file-type{display:block;color:var(--muted);font-size:11px;font-weight:650}
.native-download-card .button{grid-column:1/-1;width:100%;justify-content:center;margin-top:3px;text-decoration:none}
.download-status{margin:0;color:var(--muted);font-size:12px}
@media(max-width:820px){.header-download-label{display:none}.header-download{width:44px;min-width:44px;padding:0;justify-content:center}}
@media(max-width:600px){.dialog-download{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.native-download-grid{grid-template-columns:1fr}.download-brand{align-items:flex-start}.native-download-card p{min-height:0}}
@media(max-width:430px){.topbar-end{gap:3px}.status-pill{padding-inline:7px}.header-download,.settings-trigger{width:40px;min-width:40px;height:40px;min-height:40px}.native-download-card{padding:14px}}

/* Cenbot 0.25: themed native chrome and compact mobile surfaces. */
.native-titlebar{display:none}
html[data-native-desktop] .native-titlebar{position:sticky;top:0;z-index:60;display:flex;align-items:center;width:100%;height:38px;border-bottom:1px solid var(--border);background:var(--header-bg);color:var(--text);user-select:none}
.native-titlebar-brand{display:flex;align-items:center;gap:7px;padding-left:12px;font-size:12px;font-weight:650;pointer-events:none}
.native-titlebar-brand img{width:20px;height:20px;border-radius:6px;background:#fff;object-fit:contain}
.native-titlebar-drag{align-self:stretch;flex:1;min-width:40px}
.native-window-actions{display:flex;align-self:stretch}
.native-window-actions button{display:grid;place-items:center;width:46px;height:38px;padding:0;border:0;border-radius:0;background:transparent;color:currentColor}
.native-window-actions button:hover,.native-window-actions button:focus-visible{background:var(--blue-soft);outline-offset:-3px}
.native-window-actions button[data-native-window=close]:hover,.native-window-actions button[data-native-window=close]:focus-visible{background:var(--danger);color:#fff}
.native-window-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.2}
html[data-native-desktop] .topbar{top:38px}

.overview-card,.agenda-indicator,.module-card,.shopping-session-card{content-visibility:auto;contain-intrinsic-size:120px}

@media(max-width:700px){
  body{font-size:13px}
  .app-shell{width:calc(100% - 20px);padding-bottom:max(18px,env(safe-area-inset-bottom))}
  .topbar{min-height:68px;padding-top:env(safe-area-inset-top);gap:6px}
  .brand{gap:7px}.brand-logo{width:40px;height:40px;padding:3px;border-radius:11px}.brand-copy strong{font-size:18px}
  .topbar-end{gap:3px}.status-pill{height:40px;min-height:40px;padding:4px 7px}.status-pill #connectionText{font-size:10px;max-width:86px}
  .header-download,.settings-trigger{width:44px;min-width:44px;height:44px;min-height:44px}
  .hero,html.time-aware:is([data-time-scene=night],[data-time-scene=midnight]) .hero{padding:16px 0 22px}
  .hero-layout{gap:18px}.hero h1,.hero-robot h1{font-size:clamp(27px,8vw,34px)}
  .hero-robot .robot-companion{width:min(200px,calc(100vw - 132px));margin-top:12px}
  .robot-microphone{right:-50px;bottom:-14px;transform:scale(.68)}
  .robot-state{margin-top:7px;font-size:10px}.robot-quick-actions{margin-top:6px}.robot-quick-actions .button{min-height:40px;padding:8px 12px}
  .hero-chat .conversation,.conversation{height:min(430px,62dvh);min-height:390px;padding:14px;border-radius:18px}
  .conversation .card-header{margin-bottom:5px}.conversation h2{font-size:16px}.chat-empty{padding:12px}.chat-empty strong{font-size:14px}.chat-empty p{font-size:11px}
  .conversation-footer{margin-top:6px;padding-top:6px}.conversation-footer .command-form{padding:4px 5px 4px 8px}.command-form textarea{height:48px;min-height:48px;max-height:48px;font-size:12px}.send-button{width:44px;height:44px}
  .suggestions{margin-top:7px}.suggestion{padding:6px 9px;font-size:10px}
  .workspace{padding:12px;margin-bottom:18px;border-radius:18px}.workspace>.workspace-intro{margin-bottom:9px}.workspace-intro h2{font-size:17px}
  .workspace>.tabs{margin-bottom:14px;padding:4px}.main-tabs>.tab{min-width:88px;min-height:48px;padding:7px 8px}.menu-scroll{flex-basis:36px;min-width:36px;width:36px}.tabs>.tab-add{flex-basis:44px;min-width:44px}
  .workspace>[role=tabpanel]{padding-bottom:10px}.panel-header{gap:8px;margin-bottom:12px}.panel-header h2{font-size:20px}.panel-header h3{font-size:15px}
  .card{padding:14px;border-radius:16px}
  .home-grid{gap:10px}.focus-card{padding:14px}.focus-content{display:grid;grid-template-columns:1fr;gap:10px}.focus-content:has(.focus-clock){grid-template-columns:88px minmax(0,1fr);align-items:center}.focus-clock{padding:0 10px 0 0;border-right:1px solid var(--border);border-bottom:0}.focus-card .focus-time{font-size:32px;margin:5px 0}.focus-info h3{font-size:18px}.focus-info p{font-size:11px;margin-bottom:9px}.focus-info .row-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:6px}.focus-info .button{min-height:42px;padding:8px;font-size:11px}
  .today-indicators{margin-top:16px}.agenda-indicator-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.agenda-indicator{padding:12px;min-height:0}
  .overview-grid,.compact-card-grid,.module-grid,.shopping-session-grid,.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
  .overview-card,.compact-card-grid>.card,.module-card,.shopping-session-card{min-height:0;padding:12px;gap:6px}.overview-label{gap:6px;font-size:11px}.overview-label svg{width:16px;height:16px}.overview-card>strong{font-size:16px;line-height:1.25}.overview-card small{font-size:10px;line-height:1.4}
  .goal-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.goal-summary>.goal-overall{grid-column:1/-1}.stat-grid .emphasis{grid-column:1/-1}
  .dialog::backdrop{backdrop-filter:none}
  .dialog{margin:max(28px,env(safe-area-inset-top)) auto max(8px,env(safe-area-inset-bottom));max-height:calc(100dvh - 40px)}
  .dialog-settings{width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 40px)}
  .settings-tabs{display:flex;flex:none;min-height:50px;overflow-x:auto;overflow-y:hidden;padding:5px 10px;gap:4px;scrollbar-width:none}.settings-tabs::-webkit-scrollbar{display:none}.settings-tabs button{flex:0 0 auto;min-width:68px;min-height:40px;padding:7px 10px;font-size:11px}
  .dialog-settings .dialog-body{padding:10px 14px}.settings-section{padding-block:10px}.settings-section h3{font-size:15px}.setting-block{padding:9px 0}
  .theme-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.theme-picker button{padding:7px;gap:6px}.theme-picker .theme-preview{height:72px}.theme-picker button>span{font-size:11px}
  .time-scene *,.theme-decoration{animation:none!important}.city-cloud:nth-of-type(n+3),.city-stars i:nth-child(n+37){display:none}
}

@media(max-width:350px){
  .overview-grid,.compact-card-grid,.module-grid,.shopping-session-grid,.stat-grid,.agenda-indicator-grid{grid-template-columns:1fr}
}

html[data-native-mobile] .dialog{margin:max(34px,env(safe-area-inset-top)) auto max(8px,env(safe-area-inset-bottom));max-height:calc(100dvh - 46px)}
html[data-native-mobile] .dialog-settings{max-height:calc(100dvh - 46px)}

/* Cenbot 0.28: one mobile page scroll, compact conversation and swipe navigation. */
#chooseAttachment .icon{width:18px;height:18px}
.robot-companion,.physical-mic,.mic-hold-label{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.physical-mic{touch-action:none;overscroll-behavior:none}
.mic-hold-label{pointer-events:none}
.physical-mic[data-pressed=true] .mic-grille,.physical-mic.listening .mic-grille{border-color:var(--sky);background:var(--brand);color:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 22%,transparent),0 0 22px color-mix(in srgb,var(--sky) 50%,transparent)}
.robot-companion:has(.physical-mic[data-pressed=true]) .robot-housing{filter:drop-shadow(0 0 10px color-mix(in srgb,var(--sky) 70%,transparent))}
.robot-companion:has(.physical-mic[data-pressed=true]) .mic-hold-label{color:var(--brand);font-weight:800}

@media(max-width:700px){
  html{width:100%;max-width:100%;overflow-x:clip;overflow-y:auto;scrollbar-width:none!important}
  body{width:100%;min-width:0;max-width:100%;overflow-x:clip;overflow-y:visible;overscroll-behavior-y:auto}
  html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0}
  .app-shell{width:100%;max-width:100%;padding-inline:8px}
  main,.hero,.hero-layout,.hero-robot,.hero-chat,.workspace,.conversation{min-width:0;max-width:100%}
  .topbar{width:100%;min-height:62px;margin-inline:0;padding-inline:8px}
  .brand-logo{width:38px;height:38px}.brand-copy strong{font-size:17px}
  .status-pill{height:40px;min-height:40px}.header-download,.settings-trigger{width:44px;min-width:44px;height:44px;min-height:44px}
  .hero,html.time-aware:is([data-time-scene=night],[data-time-scene=midnight]) .hero{padding:12px 0 18px}
  .hero-layout{gap:14px}.hero h1,.hero-robot h1{font-size:clamp(25px,7.6vw,32px)}
  .hero-robot .robot-companion{width:min(184px,calc(100vw - 142px));margin-top:8px}
  .robot-state{margin-top:5px}.robot-quick-actions{margin-top:5px}
  .hero-chat .conversation,.conversation{height:auto;min-height:0;overflow:visible;padding:12px;border-radius:16px}
  .conversation-tail{top:-20px}.conversation .card-header{margin-bottom:4px}.conversation h2{font-size:15px}
  .chat-scroll{flex:none;overflow:visible!important;padding:0}.chat-empty{min-height:108px;padding:16px 8px}.chat-empty strong{font-size:13px}.chat-empty p{font-size:10.5px}
  .chat-message{max-width:96%;padding:9px 11px;font-size:11.5px}.chat-messages{gap:7px}
  .conversation-footer{margin-top:5px;padding-top:5px}.conversation-footer .command-form{gap:5px;padding:4px 5px}
  .command-form textarea{height:44px;min-height:44px;max-height:44px;padding:7px 0;font-size:11.5px;line-height:1.35}
  .send-button,#chooseAttachment{width:40px;min-width:40px;height:40px;min-height:40px}
  .conversation-actions{gap:6px;margin-top:7px}.conversation-actions .button{min-height:38px;padding:7px 9px;font-size:10.5px}
  .chat-attachment-panel{grid-template-columns:62px minmax(0,1fr);gap:9px;padding:9px}.chat-attachment-preview{width:62px;height:62px}.chat-attachment-actions{gap:5px}.chat-attachment-actions .button{padding:7px 8px;font-size:10.5px}.chat-attachment-panel strong{font-size:12px}.chat-attachment-panel p{font-size:10.5px}
  .workspace{width:100%;padding:10px;margin-bottom:14px;border-radius:16px}
  .workspace>.workspace-intro{margin-bottom:8px}.workspace-intro h2{font-size:16px}
  .workspace>.tabs{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;margin-bottom:12px;padding:4px;border-radius:13px}
  .workspace .menu-scroll{display:none!important}
  .main-tabs{width:100%;gap:5px;overflow-x:auto;overscroll-behavior-inline:contain;touch-action:pan-x pan-y;scroll-snap-type:x proximity;scroll-padding-inline:1px}
  .main-tabs>.tab{flex:0 0 auto;min-width:104px;min-height:48px;flex-direction:row;gap:6px;padding:7px 10px;white-space:nowrap;font-size:10.5px;scroll-snap-align:start}
  .main-tabs>.tab .icon{width:16px;height:16px}
  .tabs>.tab-add{grid-column:2;min-width:44px;width:44px;min-height:48px;height:48px;padding:0}
  .workspace>[role=tabpanel]{padding:0 0 8px}
  .panel-header{gap:7px;margin-bottom:10px}.panel-header h2{font-size:19px}.panel-header h3{font-size:14px}
  .card{padding:12px;border-radius:15px}
  .home-grid{gap:8px}.focus-card{padding:12px}.focus-info h3{font-size:17px}
  .overview-grid,.compact-card-grid,.module-grid,.shopping-session-grid,.stat-grid{gap:7px;margin-top:11px}
  .overview-card,.compact-card-grid>.card,.module-card,.shopping-session-card{padding:10px;gap:5px}
  .overview-card>strong{font-size:15px}.overview-card small{font-size:9.5px}
}

@media(max-width:350px){
  .app-shell{width:100%;padding-inline:6px}
  .main-tabs>.tab{min-width:96px;padding-inline:8px}
}

/* Compact calendar entry and contextual conversation controls. */
.workspace>.workspace-intro{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.workspace-date{min-height:44px;gap:8px;font-size:12px;white-space:nowrap}
.workspace-date .icon{width:16px;height:16px}
.schedule-calendar{scroll-margin-top:120px;border-top:3px solid var(--brand)}
.schedule-calendar .calendar-heading{padding-bottom:12px;border-bottom:1px solid var(--border);margin-bottom:12px}
.schedule-calendar .calendar-heading h3{font-size:18px}
.conversation #replayVoice:disabled{display:none}
.conversation-actions:not(:has(button:not(.hidden):not(:disabled))){display:none}
.chat-message[data-streaming=true]{border-color:var(--brand)}
@media(max-width:700px){.workspace-date{padding:6px 10px;font-size:11px}.schedule-calendar{scroll-margin-top:88px}}

/* 0.30 shared density and contained fullscreen geometry. */
.robot-stage.immersive {display:flex;flex-direction:column;min-height:0;max-height:100dvh;box-sizing:border-box;}
.robot-stage.immersive .robot-face {position:relative;inset:auto;display:grid;place-items:center;flex:1;min-height:0;width:100%;height:100%;overflow:hidden;padding:0;}
.robot-stage.immersive .face-features {position:absolute;inset:0;margin:auto;width:100%;height:100%;max-width:100%;max-height:100%;transform:none;object-fit:contain;}
.robot-stage.immersive .fullscreen-speech-status {font-size:12px;bottom:max(54px,calc(env(safe-area-inset-bottom) + 44px));left:12%;right:12%;}
@media (orientation:landscape) and (max-height:600px) {
 .robot-stage.immersive[data-fullscreen-frame=monitor] {padding:52px 14px 30px;}
 .robot-stage.immersive .robot-face {padding-bottom:24px;}
 .robot-stage.immersive .face-features {height:calc(100% - 36px);top:-24px;}
 .robot-stage.immersive .fullscreen-speech-status {bottom:36px;font-size:11px;}
 .robot-stage.immersive .fullscreen-nameplate {bottom:8px;font-size:10px;}
 .robot-stage.immersive .robot-exit {top:6px;padding:8px 12px;}
}
.settings-section {display:grid;gap:10px;padding-block:12px;}
.settings-section[hidden] {display:none;}
.setting-block,.setting-row {margin:0;padding:12px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-soft,var(--blue-soft));}
.setting-block>strong,.setting-block>label,.setting-row strong {display:block;font-size:13px;font-weight:700;line-height:1.4;color:var(--text);}
.setting-block p,.setting-block small,.setting-row p {font-size:12px;line-height:1.5;margin:5px 0 8px;color:var(--muted);}
.setting-block .inline-field {display:flex;gap:8px;align-items:center;}
.setting-block .inline-field .input {min-width:0;flex:1;}
.dialog-header {padding:16px 18px;}
.dialog-header h2 {font-size:20px;line-height:1.25;}
.dialog-header p {font-size:12px;margin:6px 0 0;}
.dialog-body {padding:14px 18px;}
.dialog-footer {padding:12px 18px;gap:8px;}
.field {gap:5px;}.field>label {font-size:12px;}.form-grid {gap:12px;}
@media(max-width:700px){
 .card,.workspace {padding:12px;}
 .card h2,.workspace h2 {font-size:17px;}
 .card h3,.workspace h3 {font-size:15px;}
 .button {font-size:12px;padding:9px 12px;min-height:44px;}
 .dialog-body .input {min-height:44px;padding:9px 11px;}
 .setting-block,.setting-row {padding:10px;}
 .dialog-settings .dialog-body {padding:0 12px;}
 .dialog-header,.dialog-footer {padding:12px;}
 .setting-block .button {flex-shrink:0;}
 .chat-message {font-size:13px;padding:10px 12px;}
 .hero {padding-block:18px;gap:16px;}
 .hero h1 {font-size:clamp(26px,7vw,34px);}
 .robot-companion {width:min(64vw,250px);}
 .chat-empty {min-height:90px;padding:20px 10px;}
}

@media(max-width:700px){.shopping-plan-header{margin-bottom:12px;padding-bottom:10px}.detail-layout{gap:12px}.shopping-costs{padding:12px;gap:8px}.shopping-costs .budget-total{font-size:22px}.shopping-costs .cost-lines{margin:8px 0}.shopping-costs .deadline-card{margin-top:10px;padding-top:10px}.shopping-item{padding:10px 0;gap:8px}.shopping-item-copy strong{font-size:13px}.shopping-item-copy small{font-size:11px}.shopping-list-heading{margin:8px 0}.shopping-plan-title-line h3{font-size:18px}.shopping-when{font-size:11px}.settings-section .setting-row{border:1px solid var(--border);padding:10px;}}

/* Shared density and readable input sizes, including all settings categories. */
.settings-section .setting-row,.settings-section .setting-block{border:1px solid var(--border);border-radius:var(--radius-control,12px);padding:12px;margin:0;background:var(--surface-soft)}
.setting-status:empty,.setting-help:empty{display:none}
.robot-stage.immersive .fullscreen-nameplate{display:none}
@media(max-width:700px){
 .command-form textarea{font-size:16px;line-height:1.35}
 .overview-card small{font-size:11px}
 .today-empty{min-height:0;padding-block:16px}
 .settings-section .setting-row,.settings-section .setting-block{padding:10px}
 .setting-block .setting-block{background:var(--surface);border-radius:10px}
}

.settings-section .filter-group[role=radiogroup]{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:6px}
.settings-section .filter-group[role=radiogroup]>button{min-width:0;min-height:44px;padding:8px;font-size:12px}
.settings-section .inline-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.settings-section .inline-field>.input{min-width:0;width:100%}
.robot-stage.immersive{padding:12px!important;display:grid;grid-template-rows:minmax(0,1fr);gap:12px;overflow:hidden}
.robot-stage.immersive .robot-face{min-height:0;height:100%;padding:0!important}
.robot-stage.immersive .face-features{inset:0!important;top:0!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;margin:auto;transform:none!important}
.robot-stage.immersive .fullscreen-frame-toggle{display:none!important}
#robotStage.immersive .fullscreen-nameplate{display:none!important}
.robot-stage.immersive .robot-exit{opacity:0;pointer-events:none;min-width:44px;min-height:44px;padding:8px;top:12px;right:12px}
.robot-stage.immersive.show-controls #exitRobot,.robot-stage.immersive #exitRobot:focus-visible{opacity:1;pointer-events:auto}
.robot-stage.immersive.has-context{grid-template-rows:minmax(0,1fr) minmax(0,42%)}
.immersive-panel{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;border-radius:var(--radius-control,14px);background:var(--surface);color:var(--text);border:1px solid var(--border);padding:12px}
.immersive-panel[hidden]{display:none}
.robot-stage.immersive.has-standby{background:var(--standby-bg)!important;grid-template-rows:minmax(0,1fr) minmax(0,50%);border-color:var(--standby-bg);--robot-light:var(--standby-accent)}
.has-standby .robot-face{background:transparent!important;border:0!important;box-shadow:none!important}
.standby-panel{color:var(--standby-accent);min-height:0;overflow:auto;text-align:center;padding:12px;align-self:center;width:100%;max-height:100%;font-variant-numeric:tabular-nums}
.standby-panel[hidden]{display:none}.standby-time{font-size:clamp(42px,9vw,100px);font-weight:700;line-height:1.1}
.native-popup-bar{display:none}
[data-native-popup] .native-popup-bar{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background:var(--surface);position:sticky;top:0;z-index:40}
[data-native-popup] .site-header,[data-native-popup] .app-header,[data-native-popup] .workspace,[data-native-popup] .site-footer,[data-native-popup] .hero-heading,[data-native-popup] .robot-quick-actions,[data-native-popup] .conversation-tail{display:none!important}
[data-native-popup] .hero{display:flex;flex-direction:column;padding:8px;gap:8px}
[data-native-popup] .hero h1,[data-native-popup] .hero .eyebrow{display:none}
[data-native-popup] .robot-companion{width:130px}
[data-native-popup] .app-shell{width:100%;max-width:none;padding:0}
[data-native-popup] .conversation-wrap,[data-native-popup] .conversation{width:100%;min-height:0;margin:0}
[data-native-popup] .chat-empty{display:none}
[data-native-popup] .topbar,[data-native-popup] .footer,[data-native-popup] .time-scene{display:none!important}
[data-native-popup] .app-shell>footer{display:none!important}
[data-native-popup] .hero-layout{display:flex;flex-direction:column;gap:8px;width:100%}
.standby-panel p{font-size:14px;margin:8px 0}.standby-panel h2{font-size:16px}
.standby-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;max-width:310px;margin:10px auto;font-size:13px}.standby-calendar span,.standby-calendar b{padding:5px}.standby-calendar [aria-current]{background:var(--standby-accent);color:var(--standby-bg);border-radius:50%}
.standby-panel ul{list-style:none;padding:0;margin:8px 0}.standby-panel li{display:flex;gap:12px;text-align:left;padding:8px 0;border-bottom:1px solid currentColor;font-size:14px}.standby-panel li time{font-weight:bold;flex-shrink:0}
.standby-analog{width:min(140px,22vh);fill:none;stroke:currentColor;stroke-width:3}.standby-analog path{transform-origin:50px 50px;stroke-linecap:round}
@media(orientation:landscape){.robot-stage.immersive.has-standby{grid-template-columns:minmax(0,1fr) minmax(0,44%);grid-template-rows:minmax(0,1fr)}.standby-time{font-size:clamp(40px,12vh,90px)}}
.immersive-panel .chat-draft{margin:0;padding:0;border:0;background:none}
.immersive-panel h2{font-size:18px;margin:4px 0}.immersive-panel .draft-details{font-size:13px;gap:8px;margin-block:8px}
.immersive-panel .draft-actions{margin-top:10px}.immersive-panel .section-kicker{font-size:10px}
.robot-stage.immersive.has-context .fullscreen-speech-status{bottom:auto;top:8px;margin:0;pointer-events:none}
@media(orientation:landscape){.robot-stage.immersive.has-context{grid-template-columns:minmax(0,1fr) minmax(240px,38%);grid-template-rows:minmax(0,1fr)}.immersive-panel{max-height:100%}}
@media(max-width:700px){.quiet-empty{padding:12px 0;margin:8px 0;font-size:12px}}

/* 0.31: compact shared controls, without reducing touch targets. */
#voiceModes {grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px;padding:3px;gap:4px}
#voiceModes button {min-height:44px;padding:8px;font-size:12px}
.floating-shortcut img {width:24px;height:24px;object-fit:contain}
.floating-shortcut {display:inline-flex;align-items:center;justify-content:center;gap:8px}
.floating-shortcut[hidden] {display:none}
#floatingCenbotSettings {order:-1}
#floatingCenbotSettings p {display:block;font-size:12px;line-height:1.4;margin:6px 0;color:var(--muted)}
@media(max-width:700px){
 .tabs {padding:3px;gap:4px;border-radius:12px}
 .main-tabs {gap:2px;scrollbar-width:none}
 .main-tabs>.tab {flex:0 0 auto;min-width:0;min-height:44px;padding:8px 11px;flex-direction:row;gap:6px;white-space:nowrap;font-size:12px;border-radius:9px}
 .main-tabs>.tab .icon {width:16px;height:16px}
 .tabs>.tab-add {flex:0 0 44px;min-width:44px;min-height:44px;padding:8px;border-radius:9px}
 .settings-section {gap:8px}
 #voiceModes {grid-template-columns:repeat(2,minmax(0,1fr))}
}
