/* Global design foundations: docs/DESIGN_SYSTEM.md */
@font-face{font-family:Poppins;src:url('/assets/fonts/poppins-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/fonts/poppins-medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/fonts/poppins-semibold.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/fonts/poppins-bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/fonts/poppins-extrabold.ttf') format('truetype');font-style:normal;font-weight:800;font-display:swap}
@font-face{font-family:Poppins;src:url('/assets/fonts/poppins-italic.ttf') format('truetype');font-style:italic;font-weight:400;font-display:swap}
:root {
  --font-body:Poppins,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  --font-weight-heading:700;
  --font-weight-card:600;
  --font-weight-label:600;
  --font-weight-meta:500;
  --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;
  --radius-inset:16px;
  --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:var(--font-body);
  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-inset);
  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-inset);
  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);
  border-radius:var(--radius-inset)
}

.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;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));
  gap:14px
}

.goal-card {
  padding:22px 24px;
  min-width:0;
  max-width:380px
}

.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-inset)
}

.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-inset);
  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-inset);
  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-inset); 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:var(--font-body)
}

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; }
.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 { transition:transform 160ms cubic-bezier(.23,1,.32,1),filter 160ms cubic-bezier(.23,1,.32,1),color 160ms; }
.physical-mic.listening,.physical-mic[data-pressed="true"] { color:var(--brand); transform:rotate(-5deg) translateY(-9px) scale(1.18); filter:drop-shadow(0 0 18px 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-inset); 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-inset); 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; }
  .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-inset); 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-inset); }
.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-inset); 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-inset); 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-inset); 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-inset); }
.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); }
.toast { background:var(--toast-bg); color:var(--toast-text); border:1px solid var(--border); }
.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; }
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); --toast-bg:var(--surface-raised); --toast-text:var(--text); }
.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 .24s ease-out 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-visible .trend-dot{stroke:var(--text);stroke-width:4;opacity:1;}
@keyframes chart-reveal {from {opacity:0;} to {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;}
@media(max-width:700px){.time-scene .city-layer:is([data-phase=night],[data-phase=midnight]) .celestial-rise{left:12px}.time-scene .city-layer:is([data-phase=night],[data-phase=midnight]) .city-moon{width:48px}}
.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){
  html{scroll-padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 .hero-robot .robot-companion[data-style=monitor-hands]{width:90px!important}
 .robot-companion[data-style=monitor-hands] .monitor-arms{display:none!important}
 .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-inset);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)}
.robot-companion[data-style=monitor-hands] .physical-mic[data-pressed=true],
.robot-companion[data-style=monitor-hands] .physical-mic.listening{transform:rotate(-4deg) translateY(-9px) scale(1.18)}
.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-inset);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-inset)}
@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-inset)}
.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-inset);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-editor,.time-picker{padding:12px;border:1px solid var(--border);border-radius:var(--radius-inset);background:var(--surface-raised);color:var(--text)}
.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)}
.category-editor{min-width:0;width:100%;margin-top:8px}.category-editor label{color:var(--text);font-size:14px}.category-editor .input{width:100%;min-width:0;min-height:44px}.category-editor .field-control-actions .button{min-height:44px}
@media(max-width:450px){.form-grid>.field.mobile-full{grid-column:1/-1}}
.chat-statement-action{align-self:flex-start;min-height:44px;padding:8px 4px;text-align:left;color:var(--brand);font-weight:600}
.statement-ocr-label{display:block;margin:12px 0 8px;font-weight:600;color:var(--text)}
.statement-ocr-text{display:block;width:100%;min-height:220px;max-height:45dvh;padding:12px 14px;resize:vertical;line-height:1.55;white-space:pre-wrap}
.statement-row-fields{grid-column:2/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.statement-row-fields label{display:grid;gap:5px;min-width:0;font-size:12px;color:var(--text)}
.statement-row-fields .input{width:100%;min-width:0;min-height:44px}
@media(max-width:600px){.statement-row-fields{grid-column:1/-1;grid-template-columns:1fr}}

.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-inset);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-inset);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}
.dialog-welcome{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;border-radius:24px;overflow:hidden;background:var(--surface);color:var(--text)}
.dialog-welcome .dialog-header{padding:22px 24px 18px;border-bottom:1px solid var(--border)}
.dialog-welcome .dialog-header h2{font-size:24px;line-height:1.2}
.dialog-welcome .dialog-header p{font-size:14px;line-height:1.45}
.dialog-welcome .welcome-heading{display:flex;align-items:flex-start;gap:12px;min-width:0}
.dialog-welcome .welcome-heading>div{min-width:0}
.dialog-welcome .welcome-logo{width:48px;height:48px;flex:none;object-fit:contain;border-radius:13px;background:#fff}
.dialog-welcome .dialog-body{padding:18px 24px;overflow-y:auto;overscroll-behavior:contain}
.dialog-welcome .dialog-footer{padding:12px 24px 20px;border-top:1px solid var(--border)}
.dialog-welcome .dialog-footer .button{width:100%;min-height:44px}
.dialog-welcome #accountSignedOut>.setting-help{display:none}
.dialog-welcome .account-brand{display:none}
.dialog-welcome .account-form .input{min-height:44px;font-size:16px}
.dialog-welcome .account-mode button{font-size:14px}
.dialog-welcome #accountStatus{margin:12px 0 0;min-height:1.4em}
.dialog-welcome :focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:480px){.dialog-welcome .dialog-header{padding:18px 18px 14px}.dialog-welcome .dialog-body{padding:14px 18px}.dialog-welcome .dialog-footer{padding:10px 18px 16px}}
.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-inset);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}
  .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-inset);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}
.download-progress-group{display:grid;gap:8px;min-width:0}
.download-progress{display:block;width:100%;height:var(--progress-height);accent-color:var(--brand)}
.download-progress[hidden]{display:none}
.native-download-card .button[aria-disabled="true"]{opacity:.65;cursor:wait}
@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:0;box-shadow:none;background:var(--bg-1,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 (prefers-reduced-motion:reduce){.physical-mic{transition:color 160ms,filter 160ms}.physical-mic.listening,.physical-mic[data-pressed="true"],.robot-companion[data-style=monitor-hands] .physical-mic:is(.listening,[data-pressed=true]){transform:rotate(-8deg)}}

@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 .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-inset);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:1;pointer-events:auto;z-index:10;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}
.native-popup-actions{display:flex;align-items:center;gap:8px}.native-popup-actions .text-button{min-height:44px;font-size:12px}
[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{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] .hero-chat,[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))}
}

/* 0.32: shared compact composer, navigation, and floating conversation. */
.conversation-footer .command-form{align-items:center;gap:4px;padding:2px 3px;border-radius:16px}
.command-form textarea{box-sizing:border-box;height:44px;min-height:44px;max-height:110px;padding:11px 0;line-height:22px;overflow:auto;scrollbar-width:none;align-self:center}
.command-form textarea::-webkit-scrollbar{display:none}
.command-form #chooseAttachment,.command-form .send-button{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:0;align-self:center}
.command-form #chooseAttachment .icon{width:18px;height:18px}
@media(max-width:600px){
 .conversation{padding:12px}.conversation-header{margin-bottom:8px}.conversation-footer{padding-top:6px;margin-top:6px}
 .command-form textarea{font-size:16px;line-height:22px;padding:11px 0}
 .workspace{padding:12px}.workspace-heading{gap:8px;margin-bottom:8px}
 .main-tabs{border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;padding:0;gap:2px}
 .main-tabs>.tab{min-height:44px;padding:0 9px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:11px;gap:5px;flex:none}
 .main-tabs>.tab.active,.main-tabs>.tab[aria-selected="true"]{background:transparent;box-shadow:inset 0 -2px var(--brand);color:var(--brand)}
 .main-tabs>.tab .icon{width:15px;height:15px}.main-tabs .add-tab{width:44px;min-width:44px;border:0;border-radius:0;box-shadow:none;background:transparent}
 html.time-aware .workspace>.tabs,.workspace>.tabs{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;margin-bottom:10px;gap:2px}
 html.time-aware .tabs>.tab-add,.tabs>.tab-add{width:44px;min-width:44px;height:44px;min-height:44px;border:0;border-radius:0;box-shadow:none;background:transparent}
}
html[data-native-popup],html[data-native-popup] body{background:transparent!important;min-height:0!important;height:auto!important;overflow:hidden!important}
[data-native-popup] body{border-radius:18px;background:var(--surface)!important}
[data-native-popup] .native-popup-bar{height:44px;box-sizing:border-box;padding:0 8px 0 14px;font-size:14px;border-bottom:1px solid var(--border);position:static}
[data-native-popup] .native-popup-bar .icon-button{width:44px;height:44px;min-height:44px}
[data-native-popup] .robot-companion,[data-native-popup] .hero-intro,[data-native-popup] .robot-stage,[data-native-popup] .robot-column,[data-native-popup] .hero-copy,[data-native-popup] .conversation-header,[data-native-popup] .workspace,[data-native-popup] .daily-space{display:none!important}
[data-native-popup] .hero,[data-native-popup] .hero-layout{display:block!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important}
[data-native-popup] .hero-chat{padding:8px!important;width:100%!important;box-sizing:border-box}
[data-native-popup] .conversation{padding:0!important;min-height:0!important;max-height:360px;overflow:auto;border:0;border-radius:0;box-shadow:none;background:var(--surface)}
[data-native-popup] .chat-messages{min-height:0!important;max-height:190px;overflow:auto!important;padding:0!important;gap:8px}
[data-native-popup] .chat-messages:empty{display:none}
[data-native-popup] .conversation-footer{padding:4px 0 0;margin:0;border:0}
[data-native-popup] .chat-attachment-panel{padding:8px;gap:8px;margin-bottom:6px;grid-template-columns:48px minmax(0,1fr)}
[data-native-popup] .chat-attachment-preview{width:48px;height:48px}
html[data-native-popup] .dialog{margin:8px auto;max-height:calc(100dvh - 16px);width:calc(100% - 16px);max-width:calc(100% - 16px);overflow:hidden}
[data-native-popup] .dialog[open]{display:flex;flex-direction:column}
[data-native-popup] .dialog>.dialog-header,[data-native-popup] .dialog .dialog-footer{flex:none;padding:8px 12px}
[data-native-popup] .dialog-header h2{font-size:16px}
[data-native-popup] .dialog>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
[data-native-popup] .dialog .dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 12px}

[data-native-popup] .hero-robot,[data-native-popup] .conversation>.card-header{display:none!important}
[data-native-popup] #chatScroll{min-height:0!important;max-height:220px!important;overflow:auto!important;margin:0;padding:0}
[data-native-popup] .hero-chat{margin:0!important;min-height:0!important}

/* Task shortcut variant: same tokens, one result rather than a miniature app. */
.document-progress{width:100%;height:4px;accent-color:var(--brand);display:block;margin:10px 0 4px;border:0;border-radius:4px}
.document-progress[hidden],.task-panel{display:none}
html[data-native-popup] body{background:transparent!important}
[data-native-popup] .app-shell,[data-native-popup] .hero,[data-native-popup] .native-popup-actions .text-button{display:none!important}
[data-native-popup] .native-popup-bar{border-radius:18px 18px 0 0;background:var(--surface)}
[data-native-popup] .native-popup-bar .icon-button{font-size:22px}
[data-native-popup] .dialog::backdrop{background:transparent;backdrop-filter:none}
[data-native-popup] .task-panel{display:flex;flex-direction:column;background:var(--surface);color:var(--text);border-radius:0 0 18px 18px;overflow:hidden}
.quick-body{padding:12px;min-height:72px;max-height:calc(100dvh - 112px);overflow:auto;overscroll-behavior:contain}
.quick-toolbar{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;border-top:1px solid var(--border);padding:5px 8px;flex:none}
.quick-toolbar button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;background:transparent;color:var(--brand);font:600 12px var(--font-body,system-ui);border-radius:10px;cursor:pointer}
.quick-toolbar button:hover,.quick-toolbar button:focus-visible{background:var(--blue-soft)}
.quick-toolbar .icon{width:18px;height:18px}
.quick-summary{display:flex;gap:10px;align-items:center}.quick-summary>img{width:48px;height:56px;object-fit:cover;border-radius:8px;flex:none}.quick-summary>div{min-width:0;flex:1}
.quick-summary strong{display:block;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.quick-total{display:block;font-size:22px;line-height:1.4}.quick-summary small{font-size:11px;color:var(--muted)}
.quick-summary>.icon-button{width:36px;min-width:36px;height:44px;padding:8px;align-self:flex-start}
.quick-result{font-size:12px;color:var(--muted);line-height:1.45;display:flex;align-items:center;gap:6px;margin:10px 0 0}
.quick-result[data-saved=true]{color:var(--brand);font-weight:700}.quick-result .icon{width:16px;height:16px}
.quick-document-actions,.quick-editor-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}.quick-document-actions:empty{display:none}
.quick-editor .form-grid{gap:8px}.quick-editor .input{font-size:16px;min-height:44px;padding:8px 10px}.quick-editor details{margin:8px 0}.quick-editor summary{font-size:12px;color:var(--brand);padding:8px 0;cursor:pointer}.quick-save-error{font-size:12px;color:var(--danger);margin:0}
.quick-editor [hidden],#quickDocument[hidden],#quickConversation[hidden]{display:none}
.quick-prompt{font-size:14px;margin:4px 0 12px;font-weight:600}#quickStatus{font-size:12px;line-height:1.45;color:var(--muted);margin:0 0 8px}#quickStatus:empty{display:none}
.quick-question{font-size:12px;color:var(--muted);margin:0 0 6px}#quickAnswer{font-size:14px;line-height:1.5;margin:0 0 10px;white-space:pre-wrap}
#quickCommand{display:flex;align-items:center;gap:4px}#quickInput{min-width:0;flex:1;min-height:44px;font-size:16px;padding:8px 10px}#quickCommand button{width:44px;height:44px;flex:none;color:var(--brand)}
#quickDraft .chat-draft{margin:0;padding:8px 0;border:0}#quickDraft .draft-details{font-size:12px}

/* Minimal companion controls retain accessible names without duplicated labels. */
.quick-toolbar{grid-template-columns:repeat(5,1fr);padding:4px 8px}
.quick-toolbar .icon{width:20px;height:20px}
.quick-body{min-height:0}
#quickCommand[hidden],#quickMic[hidden]{display:none}
#quickCommand{margin-top:8px}
#quickMic{display:flex;align-items:center;justify-content:center;gap:12px;min-height:72px;color:var(--brand);font-size:12px}
#quickMic button{border-radius:50%;background:var(--blue-soft);color:var(--brand);box-shadow:0 0 0 6px color-mix(in srgb,var(--brand) 12%,transparent)}
.quick-document-actions .icon-button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:10px}
.quick-document-actions .primary{background:var(--brand);color:var(--on-brand,#fff)}
[data-native-popup] .native-popup-bar{min-height:44px;padding:0 12px;align-items:center}
[data-native-popup] .native-popup-actions .icon-button{border:0;background:transparent;min-width:44px;width:44px;height:44px;padding:0}

/* One stable task surface; native sizing waits for this frame before revealing it. */
.quick-toolbar{grid-template-columns:repeat(4,1fr)}
#quickImport[hidden]{display:none}
[data-native-popup][data-popup-mode=photo] #quickPanel{height:calc(100dvh - 44px);border-radius:0 0 18px 18px}
[data-native-popup][data-popup-mode=photo] .quick-body{flex:1;min-height:0;max-height:none}
.quick-summary>.icon{width:48px;height:56px;flex:none;color:var(--muted)}
.quick-result{align-items:flex-start}
[data-native-popup][data-popup-mode=voice] .native-popup-bar,
[data-native-popup][data-popup-mode=voice] .quick-toolbar,
[data-native-popup][data-popup-mode=voice] #quickCommand{display:none!important}
[data-native-popup][data-popup-mode=voice] #quickPanel{border-radius:18px;height:64px}
[data-native-popup][data-popup-mode=voice] .quick-body{padding:0;max-height:none;overflow:hidden}
[data-native-popup][data-popup-mode=voice] #quickMic{height:64px;min-height:64px;margin:0}
#quickMic .quick-voice-label{max-width:140px;font-size:13px;font-weight:650;line-height:1.3;color:var(--text)}
[data-native-popup][data-popup-mode=voice] #quickPanel{height:76px}
[data-native-popup][data-popup-mode=voice] #quickMic{height:76px;min-height:76px;justify-content:flex-start;padding-inline:18px}
/* The transparent Android window supplies the outer crop. Keep the body clear
   so the round voice surface and microphone are not cut by a second mask. */
[data-native-popup][data-popup-mode=voice] #quickPanel{overflow:hidden;isolation:isolate;border-radius:18px}
[data-native-popup][data-popup-mode=voice] #quickMic button{box-sizing:border-box;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%}
#quickMic[data-processing=true] button{opacity:.65}
.quick-spinner{display:block;width:22px;height:22px;border:3px solid color-mix(in srgb,var(--brand) 22%,transparent);border-top-color:var(--brand);border-radius:50%;animation:quick-rotate .8s linear infinite}
@keyframes quick-rotate{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.quick-spinner{animation:none;border-top-color:transparent}}
.transaction-row.transaction-revealed{outline:2px solid var(--brand);outline-offset:2px;border-radius:12px;background:var(--blue-soft)}

/* Shared compact chat navigation and editable schedule preview. */
.conversation .card-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap}
.conversation .card-title{min-width:0}
.conversation .card-title h2{white-space:nowrap}
.conversation-view-tabs{display:flex;flex:none;align-items:center;gap:2px;padding:3px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-soft);white-space:nowrap}
.conversation-view-tabs button{min-height:44px;padding:8px 10px;border:0;border-radius:calc(var(--radius-control) - 4px);background:transparent;color:var(--muted);font:600 12px var(--font-body,system-ui);white-space:nowrap}
.conversation-view-tabs button[aria-selected=true]{background:var(--surface);color:var(--brand);box-shadow:0 1px 4px rgb(11 36 84 / 10%)}
.conversation-view-tabs button:focus-visible,.chat-history-item:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.chat-history{min-height:0;max-height:320px;overflow-y:auto;overscroll-behavior:contain;padding:4px 0}
.chat-history[hidden],.chat-scroll[hidden]{display:none!important}
.chat-history-item{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:9px 10px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:left}
.chat-history-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.chat-history-item small{color:var(--muted);white-space:nowrap;font-size:11px}
.conversation[data-view=history] .conversation-footer{display:none}
.draft-schedule-time{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%}
.draft-schedule-time .field{min-width:0;font-size:12px}
.draft-schedule-time .input{width:100%;min-width:0;min-height:44px;font-size:16px;color:var(--text);background:var(--surface)}
.draft-schedule-time+.text-button{justify-self:start;min-height:44px}
.attachment-preview{display:block;max-width:100%;max-height:min(68dvh,720px);margin:auto;object-fit:contain;border-radius:var(--radius-control)}
.attachment-preview-pdf{width:100%;height:min(68dvh,720px);border:0;border-radius:var(--radius-control)}
@media(max-width:700px){
 .conversation .card-header{align-items:center;padding:8px 0;gap:6px}
 .conversation .card-title h2{font-size:15px}
 .conversation-view-tabs button{min-height:44px;padding:7px 8px;font-size:11px}
 .conversation .chat-scroll{max-height:320px!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
 .chat-history{max-height:320px}
 .agenda-row{grid-template-columns:44px minmax(0,1fr)!important;gap:4px 10px!important;align-items:start!important}
 .agenda-row .agenda-actions{grid-column:1!important;grid-row:1 / span 3!important;flex-direction:column!important;align-self:start}
 .agenda-row .agenda-time{grid-column:2!important;grid-row:1!important;font-size:12px}
 .agenda-row .item-copy{grid-column:2!important;grid-row:2!important;min-width:0;align-self:start!important}
 .agenda-row>.badge{grid-column:2!important;grid-row:3!important}
 .agenda-row>.deadline{grid-column:1/-1!important;grid-row:4!important}
 .agenda-icon{width:18px;height:18px;vertical-align:-3px;margin-right:4px}
 .agenda-icon .icon{width:14px;height:14px}
}
@media(max-width:380px){.conversation .card-title .dot{display:none}.conversation .card-title h2{font-size:13px}.conversation-view-tabs button{padding-inline:6px;font-size:10px}}

/* Shared 0.37 density and motion: the same rhythm applies to lists, cards and dialogs. */
:root{--motion-fast:180ms;--motion-view:220ms;--row-gap:8px;--row-pad:10px}
:is(.card,.dialog,.tabs,.setting-row,.compact-data-row,.chat-history-item){transition:background-color var(--motion-fast) ease,border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,opacity var(--motion-fast) ease,transform var(--motion-view) cubic-bezier(.2,.8,.2,1)}
:is(.button,.icon-button,.filter-button,.conversation-view-tabs button):active{transform:scale(.97)}
.dialog[open]{animation:cenbot-dialog-enter var(--motion-view) cubic-bezier(.2,.8,.2,1) both}
@keyframes cenbot-dialog-enter{from{opacity:.35;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.settings-utility{gap:12px}.settings-utility .status-pill{flex:none;max-width:55%;min-height:44px}.settings-utility .header-download{flex:none;width:44px;min-width:44px;max-width:44px;min-height:44px;padding:0;justify-content:center}.settings-utility .header-download-label{display:none}
.finance-cash-card{margin:0 0 14px;padding:16px}.finance-cash-card .card-header{margin-bottom:6px}.finance-cash-card .legend{margin-block:4px}.finance-cash-card .trend-chart{max-height:160px}
#financeReports{margin-top:12px}#financeReports .chart-grid{display:block}#financeReports .chart-grid>.card{margin:0}#financeCategoryFilters{margin-bottom:10px}
.transaction-row.compact-data-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:var(--row-gap);padding:var(--row-pad) 0;align-items:center;min-width:0}
.transaction-row .item-copy{min-width:0;display:grid;gap:2px}.transaction-row .item-copy strong{font-size:13px;line-height:1.3;overflow-wrap:anywhere}.transaction-row .item-copy small{font-size:11px;line-height:1.25;color:var(--muted)}
.transaction-row .item-copy [data-attachment]{display:inline-flex;align-items:center;gap:4px;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;min-height:32px}.transaction-row .item-copy [data-attachment] .icon{flex:none}
.transaction-side{display:flex;align-items:center;gap:4px;min-width:0}.transaction-side .money{white-space:nowrap;font-size:13px}.transaction-side .transaction-delete{width:44px;height:44px;min-width:44px;grid-column:auto!important;padding:10px}.transaction-side .transaction-delete .icon{width:18px;height:18px}
.detail-dialog[open]{position:fixed;inset:0;margin:auto!important;max-height:min(80dvh,780px)!important;overflow:hidden}.detail-dialog .dialog-body{overflow:auto;overscroll-behavior:contain}.detail-dialog .attachment-preview{max-height:min(54dvh,560px)}.detail-dialog .attachment-preview-pdf{height:min(54dvh,560px)}
@media(max-width:700px){
 .hero-chat .conversation,.conversation{display:flex;flex-direction:column;height:clamp(220px,32dvh,280px)!important;min-height:0!important;max-height:280px!important;overflow:hidden!important}
 .conversation .card-header,.conversation .conversation-footer{flex:none}.conversation .chat-scroll{flex:1;max-height:none!important;min-height:0!important;overflow-y:auto!important}.conversation .chat-history{flex:1;max-height:none;min-height:0;overflow-y:auto}
 .finance-cash-card{padding:12px}.finance-cash-card .trend-chart{max-height:130px}
 .transaction-row.compact-data-row{grid-template-columns:32px minmax(0,1fr) auto!important;gap:8px;padding:9px 0}.transaction-row .item-icon{width:32px;height:32px}.transaction-side{flex-direction:column;align-items:flex-end;gap:0}.transaction-side .money{font-size:12px}.transaction-side .transaction-delete{height:36px;min-height:36px}
 .settings-utility{align-items:center}.settings-utility .status-pill{max-width:52%}
}
html[data-ui-motion=off] .dialog[open]{animation:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .dialog[open]{animation:none}html:not([data-ui-motion=full]) :is(.card,.dialog,.tabs,.setting-row,.compact-data-row,.chat-history-item){transition:none}}

/* 0.38: one quieter density scale for daily work across all sections. */
:root{--ui-gap:12px;--ui-card-pad:16px;--ui-control-visual:38px;--radius-card:16px;--shadow:0 3px 16px rgb(11 36 84 / 4%)}
html.time-aware[data-theme=orbit]{--brand:#0064ff;--brand-hover:#0053d8;--sky:#8ab8ff}
html.time-aware[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]){--brand:#8ab8ff;--brand-hover:#b7d2ff;--on-brand:#0b2454}
.card{padding:var(--ui-card-pad)}
.card-header{margin-bottom:12px}
.panel-header{margin-bottom:14px;gap:10px}
.panel-header h2{font-size:22px}
.workspace-intro{margin-bottom:12px}
.tabs{margin-bottom:16px}
.schedule-grid,.stack,.chart-grid,.stat-grid,.goal-summary,.home-grid,.module-grid,.shopping-session-grid{gap:var(--ui-gap)}
.stat-grid{margin-bottom:14px}
.stat-card{padding:var(--ui-card-pad)}
.stat-value{margin-top:8px;font-size:clamp(20px,2.2vw,26px)}
.stat-card small{margin-top:4px}
.conversation-view-tabs{background:transparent;border-color:var(--border)}
.conversation-view-tabs button[aria-selected=true]{box-shadow:none}
.button,.tab,.filter-button,.view-tabs>button,.section-switch>button{letter-spacing:0}
.module-card,.shopping-session-card{min-height:108px}
.overview-card{gap:8px}
.quick-summary strong,.item-copy strong{line-height:1.35}

@media(min-width:901px){
  .hero{padding:24px 0 28px}
  .hero-layout{grid-template-columns:minmax(280px,.82fr) minmax(440px,1.18fr);gap:clamp(24px,4vw,52px)}
  .hero-robot{top:106px;padding-top:4px}
  .hero-robot h1{font-size:clamp(30px,3vw,38px)}
  .hero-robot .robot-companion{width:min(220px,76%);margin-top:12px}
  .hero-chat{padding-top:0}
  .hero-chat .conversation{height:clamp(340px,52svh,440px)}
}
@media(min-width:701px) and (max-width:900px){
  .hero{padding:24px 0}
  .hero-layout{grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:20px}
  .hero-robot{padding-top:2px}
  .hero-robot h1{font-size:30px}
  .hero-robot .robot-companion{width:180px;margin-top:12px}
  .hero-chat .conversation{height:400px}
}

@media(max-width:700px){
  :root{--ui-gap:10px;--ui-card-pad:12px}
  .app-shell{padding-inline:12px}
  .topbar{width:calc(100% + 24px);margin-inline:-12px;padding-inline:12px;min-height:58px}
  .brand-copy{display:grid}.brand-copy strong{font-size:17px}
  .hero,html.time-aware:is([data-time-scene=night],[data-time-scene=midnight]) .hero{padding:12px 0}
  .hero-layout{gap:10px}
  .hero-robot{display:grid;grid-template-columns:minmax(0,1fr) 112px;grid-template-rows:auto auto 1fr;align-items:center;justify-items:start;text-align:left;min-height:118px;padding:0 4px}
  .hero-robot .eyebrow{grid-column:1;grid-row:1;align-self:end;font-size:10px;letter-spacing:.08em}
  .hero-robot h1{grid-column:1;grid-row:2;margin:2px 0 0;font-size:clamp(20px,5.8vw,23px);line-height:1.18}
  .hero-robot .robot-companion{grid-column:2;grid-row:1 / span 3;align-self:center;justify-self:center;width:104px;margin:0}
  .hero-robot .robot-antenna{height:10px}
  .hero-robot .robot-housing{padding:5px 5px 0;border-radius:14px}
  .hero-robot .robot-stage{border-radius:9px}
  .hero-robot .robot-chin{height:14px;gap:2px}.hero-robot .robot-chin span{font-size:5px}.hero-robot .robot-chin i{width:9px;height:2px}.hero-robot .robot-chin b{width:4px;height:4px}
  .hero-robot .robot-neck{height:7px}.hero-robot .robot-base{height:9px}.hero-robot .robot-base i{width:6px}
  .hero-robot .mic-cable{display:none}
  .hero-robot .robot-microphone{right:-5px;bottom:-5px;width:44px;height:44px;transform:none;pointer-events:none}
  .hero-robot .physical-mic{right:0;bottom:0;width:44px;height:44px;transform:none;filter:none}
  .hero-robot .mic-grille{top:3px;left:12px;width:20px;height:20px;padding:3px;gap:2px;border-width:1px}
  .hero-robot .mic-grille i{height:1px}
  .hero-robot .mic-handle{top:21px;left:19px;width:8px;height:20px;border-width:1px;border-radius:3px 3px 6px 6px}
  .hero-robot .robot-state,.hero-robot .robot-deadline-notice{grid-column:1;max-width:100%;font-size:11px}
  .hero-robot .robot-quick-actions{grid-column:1;grid-row:3;margin:6px 0 0}
  .hero-robot .robot-quick-actions .button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:20px}
  .hero-robot .fullscreen-label{display:none}
  .hero-chat .conversation,.conversation{height:248px!important;min-height:0!important;max-height:248px!important;padding:12px!important;border-radius:16px}
  .conversation .card-header{padding:0;margin-bottom:6px}
  .conversation .card-title h2{font-size:14px}
  .conversation-view-tabs{padding:2px;gap:0}
  .conversation-view-tabs button{min-height:44px;padding:6px 8px;font-size:11px}
  .chat-empty{min-height:0;height:100%;padding:8px}.chat-empty strong{font-size:12px}
  .conversation .chat-scroll{flex:1;min-height:0!important;max-height:none!important;overflow-y:auto!important}
  .conversation .chat-history{flex:1;min-height:0;max-height:none;overflow-y:auto}
  .conversation-footer{flex:none;margin-top:6px;padding-top:6px}
  .conversation-footer .command-form{min-height:48px;padding:2px 3px 2px 6px}
  .command-form textarea{height:44px;min-height:44px;max-height:44px;padding:10px 0;font-size:16px;line-height:24px}
  .send-button,#chooseAttachment{width:44px;min-width:44px;height:44px;min-height:44px}
  .workspace{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;margin:0 0 22px}
  .workspace>.workspace-intro{margin:0 0 8px}
  .workspace-intro h2{font-size:18px}
  .workspace-date{min-height:44px;padding:6px 9px}
  .workspace>.tabs,html.time-aware .workspace>.tabs{margin:0 0 12px;padding:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;gap:2px}
  .main-tabs{gap:0}
  .main-tabs>.tab{min-height:44px;padding:0 9px;font-size:11px}
  .tabs>.tab-add{min-height:44px;height:44px}
  .panel-header{margin-bottom:10px;gap:8px}
  .panel-header h2{font-size:19px}
  .card{padding:var(--ui-card-pad);border-radius:15px}
  .card-header{margin-bottom:10px}
  .stat-card{padding:12px}
  .stat-grid{gap:8px;margin-top:10px;margin-bottom:12px}
  .stat-label{font-size:11px}
  .stat-value{font-size:clamp(16px,4.6vw,20px);margin-top:7px}
  .stat-card small{font-size:10px;line-height:1.35}
  .focus-card{padding:12px}
  .focus-content:has(.focus-clock){grid-template-columns:76px minmax(0,1fr);gap:10px}
  .focus-clock{padding-right:8px}
  .focus-card .focus-time{font-size:28px;margin:4px 0}
  .focus-info h3{font-size:16px}
  .focus-info .row-actions{display:flex;flex-wrap:wrap;gap:5px}
  .focus-info .row-actions .button{width:auto;min-height:44px;padding:8px 10px;font-size:11px}
  .overview-card,.compact-card-grid>.card,.module-card,.shopping-session-card{padding:11px;gap:6px}
  .module-card,.shopping-session-card{min-height:92px}
  .time-scene{opacity:.65}
  .time-scene .city-layer:is([data-phase=night],[data-phase=midnight]) .celestial-rise{left:auto;right:8px;top:72px;opacity:.4}
}
@media(max-width:350px){
  .hero-robot{grid-template-columns:minmax(0,1fr) 104px}
  .hero-robot .robot-companion{width:96px}
  .conversation-view-tabs button{padding-inline:6px;font-size:10px}
  .brand-copy{display:grid}
  .main-tabs>.tab{flex:0 0 33.333%;min-width:0;max-width:33.333%;padding-inline:4px;overflow:hidden;text-overflow:ellipsis}
  .main-tabs>.tab .icon{display:none}
}

/* 0.39 — shared calm surfaces, readable hierarchy, and the expressive Orb. */
:root{--ui-card-pad:18px;--ui-gap:14px;--radius-card:20px;--radius-control:12px;--shadow:0 4px 20px rgb(16 42 68 / 4%)}
html.time-aware[data-theme=orbit]{--background:#f2f7f8;--surface:#fff;--surface-raised:#fff;--surface-soft:#edf4f5;--header-bg:#f2f7f8;--text:#203345;--navy:#142b3e;--muted:#617482;--border:#dce7eb;--blue-soft:#e9f1ff;--tabs-bg:#eaf1f4;--on-brand:#fff}
html.time-aware[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]){--background:#131c28;--surface:#1c2938;--surface-raised:#233344;--surface-soft:#192533;--header-bg:#131c28;--text:#e6edf5;--navy:#f4f8ff;--muted:#a4b6c8;--border:#324456;--blue-soft:#283e57;--tabs-bg:#192533;--on-brand:#102537}
html[data-theme=orbit] .time-scene{display:none}
body{font-size:15px}
.app-shell{width:min(1120px,100% - 48px)}
.topbar,html.time-aware .topbar{min-height:72px;border:0;background:var(--background);box-shadow:none}
.brand-copy strong{font-size:21px}.brand-logo{width:40px;height:40px;border-radius:12px}.brand-copy>span{display:none}
.card{border:1px solid var(--border);box-shadow:var(--shadow)}
.card-header h3,.card-title h3{font-size:17px}
.card-subtitle,.panel-header p,.item-copy small,.stat-card small,.quick-summary small{font-size:12px;line-height:1.45}
.item-copy strong,.transaction-row .item-copy strong,.chat-history-item strong{font-size:14px;line-height:1.45}
.transaction-row .item-copy small,.transaction-row .item-copy [data-attachment]{font-size:12px;line-height:1.4}
.transaction-side .money{font-size:14px}.transaction-row.compact-data-row{padding-block:12px}
.button,.button.compact,.filter-button,.view-tabs>button,.section-switch>button{font-size:13px;min-height:44px}
.button.primary,.send-button{box-shadow:0 3px 8px color-mix(in srgb,var(--brand) 14%,transparent)}
.icon-button{width:44px;min-height:44px}.button .icon{width:18px;height:18px}
.count,.badge{font-size:12px;padding:4px 9px}
.empty strong,.quiet-empty,.chat-empty strong{font-size:14px}.empty p{font-size:13px}
.hero{padding:18px 0 24px!important}
.hero-robot{position:relative;top:auto!important;border-radius:24px;padding:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--sky) 22%,var(--surface)),color-mix(in srgb,#86d7c1 22%,var(--surface)));overflow:visible}
.hero-robot h1{font-size:28px;letter-spacing:-.04em}.hero-robot .eyebrow{font-size:12px;letter-spacing:.06em}
.hero-robot .robot-companion{width:176px;margin:12px auto 0}
.hero-chat .conversation{border-radius:24px;box-shadow:none}
.conversation .card-title h2{font-size:16px}.conversation .card-title .dot{display:none}
.conversation-view-tabs{border:0;background:var(--surface-soft);border-radius:10px;padding:3px}
.conversation-view-tabs button{font-size:12px;padding-inline:10px;border-radius:8px}
.conversation .chat-message p{font-size:14px;line-height:1.55}.conversation .chat-message>strong{font-size:12px}
.command-form{background:var(--surface-soft)!important;border-color:var(--border)!important;box-shadow:none;border-radius:14px}
.command-form:focus-within{border-color:var(--brand)!important;box-shadow:var(--focus)}
.workspace-intro h2{font-size:22px}.workspace-date{font-size:12px;border:0!important;background:transparent!important;color:var(--muted)!important}
.workspace>.tabs,html.time-aware .workspace>.tabs{border:0;border-radius:14px;background:var(--surface-soft);padding:4px;margin-bottom:18px;box-shadow:none;gap:4px}
.main-tabs>.tab{font-size:13px;min-height:44px;padding-inline:12px;border-radius:10px}
.main-tabs>.tab[aria-selected=true]{background:var(--surface);color:var(--brand);box-shadow:0 2px 5px rgb(16 42 68 / 5%);border-color:transparent}
.main-tabs>.tab[aria-selected=true]::after{display:none}
.stat-label{font-size:14px}.stat-value{font-size:clamp(23px,2.6vw,30px);font-weight:700;letter-spacing:-.04em}
.stat-card{position:relative;overflow:hidden;min-height:124px}
.stat-card .stat-label>.icon{width:28px;height:28px;padding:5px;border-radius:9px;background:var(--surface-soft)}
.finance-cash-card{padding:18px;margin-bottom:14px}.finance-cash-card .trend-chart{max-height:180px}
.calendar-week{font-size:12px}.calendar-day{font-size:14px}
.legacy-character-controls,#characterSearch,label[for=characterSearch]{display:none!important}
.character-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-width:420px;max-height:none;overflow:visible;gap:12px;padding:8px 0}
.character-choice{font-size:14px;padding:12px;border-radius:16px;gap:6px}
.character-choice svg{max-height:104px}.character-choice[aria-checked=true]{border:2px solid var(--brand);background:var(--blue-soft)}
#floatingCenbotSettings :is(label[for=floatingStyle],#floatingStyle,label[for=floatingHideDelay],#floatingHideDelay),#floatingCenbotSettings .setting-row:has(#floatingAutoHide){display:none!important}
.robot-companion[data-character-preset=orb] :is(.robot-antenna,.robot-chin,.robot-neck,.robot-base,.robot-microphone,.mic-cable,.monitor-arms){display:none!important}
.robot-companion[data-character-preset=orb] .robot-housing{padding:0!important;border:0;border-radius:50%;background:transparent!important;box-shadow:0 16px 28px rgb(0 100 255 / 14%)}
.robot-stage[data-character-preset=orb]:not(.immersive){aspect-ratio:1;border-radius:47% 53% 49% 51%;background:radial-gradient(circle at 28% 22%,#d7fff1 0,#82dbc9 17%,#489bea 57%,#0064ff 100%);box-shadow:inset 4px 5px 12px #ffffff70,inset -6px -12px 20px #0649b94d}
.robot-stage[data-character-preset=orb] .face-cenbot{color:#102447}
.robot-stage[data-character-preset=orb] .robot-face::after{content:none}
.robot-stage[data-character-preset=orb]:not(.immersive) .face-features{width:86%;height:86%;transform:translateY(4%)}
.robot-stage[data-character-preset=orb][data-state=listening]{outline:3px solid var(--brand);outline-offset:6px}
.robot-stage[data-character-preset=orb]:is([data-state=thinking],[data-state=preparing])::after{content:'';position:absolute;inset:6px;border:2px solid transparent;border-top-color:#ffffffcc;border-radius:50%;animation:quick-rotate 1.1s linear infinite;pointer-events:none}
.robot-stage[data-character-preset=orb].immersive{background:var(--background)!important}
.robot-stage[data-character-preset=orb].immersive .robot-face{background:radial-gradient(circle at 28% 22%,#d7fff1,#82dbc9 17%,#489bea 57%,#0064ff)!important;border-radius:50%;aspect-ratio:1;width:min(80vw,70dvh);height:auto;max-height:100%;place-self:center;box-shadow:none}
@media(min-width:701px){.hero-layout{grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:18px;align-items:stretch}.hero-chat .conversation{height:360px}.hero-robot{display:flex;flex-direction:column;align-items:center;justify-content:center}.hero-robot .robot-quick-actions{margin-top:12px}}
@media(max-width:700px){
 :root{--ui-card-pad:16px;--ui-gap:12px}
 .app-shell{width:100%;padding-inline:16px}
 .topbar,html.time-aware .topbar{width:calc(100% + 32px);margin-inline:-16px;padding-inline:16px;min-height:64px}
 .brand-copy strong{font-size:20px}.brand-logo{width:36px;height:36px}
 .hero{padding:8px 0 20px!important}.hero-layout{gap:12px}
 .hero-robot{min-height:118px;padding:14px 18px;grid-template-columns:minmax(0,1fr) 96px;grid-template-rows:auto auto;gap:4px 8px;border-radius:20px}
 .hero-robot .eyebrow{font-size:12px;grid-row:1}.hero-robot h1{font-size:24px;grid-row:2;align-self:start;line-height:1.15;margin:0}
 .hero-robot .robot-companion{width:90px;grid-column:2;grid-row:1 / span 2;margin:0}
 .hero-robot .robot-quick-actions{position:absolute;right:8px;bottom:4px;margin:0;z-index:2}.hero-robot .robot-quick-actions .button{width:32px;min-width:32px;height:32px;min-height:32px;font-size:16px;background:transparent;border:0}
 .hero-chat .conversation,.conversation{height:264px!important;max-height:264px!important;padding:14px!important;border-radius:20px}
 .conversation .card-title h2{font-size:15px}.conversation-view-tabs button{font-size:12px;padding-inline:9px}
 .chat-empty strong{font-size:14px}.conversation .chat-message p{font-size:14px}.conversation .chat-message>strong{font-size:12px}
 .workspace>.workspace-intro{margin-bottom:12px}.workspace-intro h2{font-size:21px}
 .workspace>.tabs,html.time-aware .workspace>.tabs{padding:4px;margin-bottom:16px;border-radius:14px;gap:2px}
 .main-tabs>.tab{font-size:13px;padding:0 10px;min-width:max-content;flex:0 0 auto;max-width:none}.main-tabs>.tab .icon{display:block;width:18px;height:18px}
 .panel-header h2{font-size:22px}.panel-header p{font-size:13px}
 .card,.stat-card{border-radius:18px;padding:16px}.card-header{margin-bottom:12px}
 .stat-grid{gap:10px}.stat-card{min-height:120px}.stat-label{font-size:13px}.stat-value{font-size:clamp(21px,5.8vw,26px)}.stat-card small{font-size:12px}
 .transaction-side .money{font-size:14px}.transaction-row .item-copy strong{font-size:14px}.transaction-row .item-copy small,.transaction-row .item-copy [data-attachment]{font-size:12px}
 .finance-cash-card{padding:16px}.finance-cash-card .trend-chart{max-height:160px}
 .focus-info h3{font-size:18px}.focus-info .row-actions .button{font-size:13px}.focus-card{padding:16px}
 .overview-card,.compact-card-grid>.card,.module-card,.shopping-session-card{padding:14px}.module-card,.shopping-session-card{min-height:104px}
 .card-title h3,.card-header h3{font-size:17px}
}
@media(max-width:350px){
 .app-shell{padding-inline:12px}.topbar,html.time-aware .topbar{width:calc(100% + 24px);margin-inline:-12px;padding-inline:12px}
 .hero-robot{padding:14px;grid-template-columns:minmax(0,1fr) 80px}.hero-robot .robot-companion{width:78px}.hero-robot h1{font-size:22px}
 .conversation .card-header{gap:4px}.conversation .card-title h2{font-size:14px}.conversation-view-tabs button{padding-inline:6px;font-size:11px}
 .stat-grid{grid-template-columns:1fr}.transaction-row.compact-data-row{grid-template-columns:28px minmax(0,1fr)!important}.transaction-side{grid-column:2;flex-direction:row;justify-content:space-between}
}
html[data-ui-motion=off] .robot-stage[data-character-preset=orb]::after{animation:none}
@media(prefers-reduced-motion:reduce){.robot-stage[data-character-preset=orb]::after{animation:none}}

.desktop-companion-page{margin:0;background:transparent!important;overflow:hidden;user-select:none}
.desktop-companion{--pet-gutter:16px;--pet-size:96px;--pet-options-width:44px;position:fixed;inset:0;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;padding:8px var(--pet-gutter) 34px;gap:8px}
.desktop-orb{--orb-level:0;position:relative;width:96px;height:96px;min-height:96px;flex:none;border:0;border-radius:47% 53% 49% 51%;background:radial-gradient(circle at 28% 22%,#d7fff1,#82dbc9 17%,#489bea 57%,#0064ff);box-shadow:inset 3px 4px 9px #ffffff70,inset -5px -8px 16px #0649b94d,0 7px 16px #0649b926;cursor:pointer;touch-action:none;transition:transform 180ms,border-radius 180ms}
.desktop-orb:hover{transform:translateY(-3px)}.desktop-orb:active{transform:scale(.95)}.desktop-orb:focus-visible{outline:3px solid #0064ff;outline-offset:4px}
.desktop-orb svg{display:block;width:100%;height:100%;overflow:visible}.orb-eyes{fill:#102447}.orb-mouth{fill:none;stroke:#102447;stroke-width:3;stroke-linecap:round;transform-origin:50px 64px}
.orb-thinking{fill:none;stroke:transparent;stroke-width:2;stroke-dasharray:40 236;transform-origin:center}
.desktop-orb:is([data-state=thinking],[data-state=preparing]) .orb-thinking{stroke:#fff;animation:quick-rotate 1s linear infinite}
.desktop-orb[data-state=listening]{box-shadow:0 0 0 4px #0064ff33,inset 3px 4px 9px #ffffff70}.desktop-orb[data-state=listening] .orb-eyes{transform:translateY(-2px)}
.desktop-orb[data-state=speaking] .orb-mouth{fill:#102447;stroke-width:4;transform:scaleY(calc(1 + var(--orb-level) * 3))}
.desktop-orb[data-state=error]{outline:2px solid #b33a45;outline-offset:4px}
/* The floating desktop pet uses the same blue monitor silhouette as the hero. */
.desktop-orb[data-character=cenbot]{background:transparent;border-radius:22px;box-shadow:none;filter:drop-shadow(0 8px 12px rgb(3 25 77 / 28%));transition:transform 220ms cubic-bezier(.2,.8,.2,1),filter 220ms ease}
.desktop-orb[data-character=cenbot]:hover{transform:translateY(-4px) rotate(-3deg)}
.desktop-orb[data-character=cenbot].is-dragging{transform:scale(1.08) rotate(-6deg);filter:drop-shadow(0 15px 18px rgb(3 25 77 / 36%))}
.desktop-orb[data-character=cenbot] .orb-eyes{fill:#8dc2ff;transform-origin:60px 55px}
.desktop-orb[data-character=cenbot] .orb-mouth{stroke:#8dc2ff;transform-origin:60px 69px}
.desktop-orb[data-character=cenbot].is-blinking .orb-eyes{animation:pet-blink 170ms ease-in-out both}
.desktop-orb[data-character=cenbot][data-state=speaking] .orb-mouth{transform:scaleY(calc(1 + var(--orb-level) * 2.4))}
.desktop-orb[data-character=cenbot][data-state=listening]{filter:drop-shadow(0 0 12px #8eafff)}
.desktop-orb[data-character=cenbot][data-state=listening]::after{content:"";position:absolute;inset:5px;border:3px solid #9ec4ff;border-radius:24px;box-shadow:0 0 0 5px #90b2ff30;animation:pet-listening 1.2s ease-in-out infinite;pointer-events:none}
.desktop-orb[data-character=cenbot]:is([data-state=thinking],[data-state=preparing]) .orb-thinking{stroke:#a9cbff}
.companion-message{align-self:flex-end;width:min(264px,100%);box-sizing:border-box;margin-right:0;border-radius:18px;background:#f9f8ff}
.companion-message[hidden],.companion-menu[hidden]{display:none}
@keyframes pet-blink{50%{transform:scaleY(.08)}100%{transform:scaleY(1)}}
@keyframes pet-listening{50%{opacity:.45;transform:scale(1.06)}}
html[data-ui-motion=off] .desktop-orb[data-character=cenbot]::after,html[data-ui-motion=off] .desktop-orb[data-character=cenbot].is-blinking .orb-eyes{animation:none}
@media(prefers-reduced-motion:reduce){.desktop-orb[data-character=cenbot]::after,.desktop-orb[data-character=cenbot].is-blinking .orb-eyes{animation:none!important}}
/* Shared date and daily-activity accents for the in-app and floating monitor. */
.robot-companion>.pet-activity,.robot-companion>.pet-outfit,.desktop-orb>.pet-activity,.desktop-orb>.pet-outfit{position:absolute;z-index:6;display:none;pointer-events:none}
:is(.robot-companion,.desktop-orb)[data-pet-activity=sleep]>.pet-activity,
:is(.robot-companion,.desktop-orb)[data-pet-activity=meal]>.pet-activity{display:block;left:0;right:0;bottom:0;width:100%;height:40%;filter:drop-shadow(0 3px 4px #09245555)}
:is(.robot-companion,.desktop-orb)[data-pet-activity=sleep] .orb-eyes{transform:scaleY(.1)}
.desktop-orb[data-pet-activity=sleep] .orb-eyes{animation:none!important;transform:scaleY(.12)!important;transform-origin:60px 55px}
:is(.robot-companion,.desktop-orb)[data-pet-activity=work]>.pet-activity{display:block;left:0;right:0;bottom:0;width:100%;height:100%;filter:drop-shadow(0 3px 4px #09245555)}
.pet-work-sprite{position:absolute;inset:0;display:block;background:url('/assets/cenbot-typing-sprite.png') 0 0 / 200% 200% no-repeat;animation:pet-typing 3.6s steps(1,end) infinite}
:is(.robot-companion,.desktop-orb)[data-pet-activity=work]>.pet-outfit{display:none}
.desktop-orb[data-character=cenbot][data-pet-activity=work]>svg{opacity:0}
.robot-companion[data-pet-activity=work] :is(.robot-antenna,.robot-housing,.robot-neck,.robot-base){opacity:0}
@keyframes pet-typing{0%,24%{background-position:0 0}25%,49%{background-position:100% 0}50%,74%{background-position:0 100%}75%,100%{background-position:100% 100%}}
.pet-meal-scene,.pet-sleep-scene{position:absolute;inset:0}
.pet-meal-bowl{position:absolute;left:29%;bottom:3%;width:42%;height:42%;border:2px solid #e9f6ff;border-radius:3px 3px 50% 50%;background:linear-gradient(#e6f4ff 0 18%,#6e9fe3 20%);box-shadow:0 3px 5px #11346755}
.pet-meal-spoon{position:absolute;left:64%;bottom:31%;width:4px;height:35%;border-radius:4px;background:#d9ecff;transform-origin:bottom;animation:pet-eat 2.8s ease-in-out infinite}
.pet-sleep-blanket{position:absolute;left:7%;right:7%;bottom:3%;height:68%;border:2px solid #dcefff;border-radius:45% 45% 18px 18px;background:linear-gradient(135deg,#a7c5f9,#5c8fdc);box-shadow:0 4px 8px #0a367348}
@keyframes pet-eat{15%,45%{transform:rotate(-18deg)}30%,60%,100%{transform:rotate(3deg)}}
.desktop-orb[data-character=cenbot][data-state=idle]:not(.is-blinking) .orb-eyes{animation:pet-natural-blink 6.2s ease-in-out infinite}
.desktop-orb[data-character=cenbot] .orb-eyes{translate:var(--pet-look-x,0px) var(--pet-look-y,0px);transition:translate 180ms ease-out}
.desktop-orb[data-character=cenbot][data-state=idle]{animation:none}
@keyframes pet-natural-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.08)}}
@keyframes pet-breathe{50%{transform:translateY(-2px)}}
:is(.robot-companion,.desktop-orb)[data-pet-outfit=independence]>.pet-outfit{display:block;left:18%;top:51%;width:23px;height:15px;border-radius:3px;background:linear-gradient(#ee3340 0 50%,#fff 50% 100%);border:1px solid #fff;box-shadow:0 2px 5px #09245555;transform:rotate(-8deg)}
:is(.robot-companion,.desktop-orb)[data-pet-outfit=ramadan]>.pet-outfit{display:block;left:30%;top:-8px;width:40%;height:20px;border-radius:14px 14px 4px 4px;background:#151927;border:2px solid #bbd1f0;box-shadow:0 3px 6px #09245555}
.desktop-orb[data-character=cenbot][data-state=speaking] .orb-mouth{fill:none}
html[data-ui-motion=off] :is(.robot-companion,.desktop-orb)>.pet-activity{animation:none}
html[data-ui-motion=off] :is(.robot-companion,.desktop-orb) .pet-work-sprite,
html[data-ui-motion=off] .desktop-orb[data-character=cenbot] .orb-eyes,
html[data-ui-motion=off] .desktop-orb[data-character=cenbot]{animation:none}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) :is(.robot-companion,.desktop-orb) .pet-work-sprite,html:not([data-ui-motion=full]) .desktop-orb[data-character=cenbot] .orb-eyes,html:not([data-ui-motion=full]) .desktop-orb[data-character=cenbot]{animation:none!important}}
.companion-options{position:absolute;bottom:6px;right:calc(var(--pet-gutter) + (var(--pet-size) - var(--pet-options-width))/2);width:var(--pet-options-width);height:24px;border:0;border-radius:20px;background:#fff;color:#203345;font-size:24px;line-height:18px;opacity:.9}
.companion-menu,.companion-message{align-self:stretch;background:#fff;color:#203345;border:1px solid #dce7eb;border-radius:14px;padding:10px 12px;box-shadow:0 4px 12px #10244714;font-size:13px;line-height:1.4}
.companion-message{position:relative;padding-right:34px;max-height:90px;overflow:auto}.companion-message p{overflow-wrap:anywhere}.companion-message>button{position:absolute;top:2px;right:2px;width:30px;height:30px;border:0;background:transparent;font-size:20px;color:#617482}
.companion-menu{display:flex;gap:6px}.companion-menu button{border:0;background:#edf4f5;color:#203345;border-radius:8px;min-height:40px;padding:6px 9px;font:600 12px var(--font-body);flex:1}
html[data-ui-motion=off] .desktop-orb,html[data-ui-motion=off] .orb-thinking{animation:none;transition:none}
@media(prefers-reduced-motion:reduce){.desktop-orb,.orb-thinking{animation:none!important;transition:none!important}}

/* 0.40 — shared human avatar and a denser daily canvas. */
.theme-picker,.theme-picker.theme-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.theme-picker>button{min-height:76px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:9px 6px;text-align:center}
.theme-picker>button .theme-preview{width:42px;height:28px;border-radius:10px;background:linear-gradient(120deg,#eaf6f3 50%,#1b2a3c 50%);border:1px solid var(--border)}
.theme-picker>button[data-theme=frost] .theme-preview{background:#f4f8fb}
.theme-picker>button[data-theme=graphite] .theme-preview{background:#1b2a3c}
.theme-picker>button>span{font-size:13px}
.theme-picker .theme-more{grid-column:1/-1;min-width:0;margin-top:2px}
.theme-picker .theme-more>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--brand);font-size:13px;font-weight:650;list-style:none}
.theme-picker .theme-more>summary::after{content:'⌄';font-size:18px;margin-left:6px;transition:transform .2s}
.theme-picker .theme-more[open]>summary::after{transform:rotate(180deg)}
.theme-picker .theme-more>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.theme-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.theme-more-grid button{min-height:52px;display:flex;align-items:center;flex-direction:row;gap:8px;padding:8px}
.theme-more-grid .theme-preview{width:32px;height:32px;flex:none}
.theme-more-grid .theme-preview>*{display:none}
.finance-cash-card .chart-wrap:has(.quiet-empty){min-height:0;height:auto;padding-block:5px}
.finance-cash-card .chart-wrap{overflow:visible}
.finance-cash-card .card-header{align-items:flex-start;gap:12px;flex-wrap:wrap}
.finance-chart-views{display:flex;max-width:100%;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.finance-chart-views button{min-height:40px;padding-inline:12px;flex:none}
.finance-ratio{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);align-items:center;gap:24px;padding:12px 4px}
.finance-ratio-ring{width:min(100%,210px);aspect-ratio:1;border-radius:50%;justify-self:center;-webkit-mask-image:radial-gradient(circle,transparent 0 57%,#000 58% 100%);mask-image:radial-gradient(circle,transparent 0 57%,#000 58% 100%)}
.finance-flow-chart{max-width:980px;margin:4px auto 0;display:grid;gap:18px;animation:finance-data-reveal 260ms cubic-bezier(.23,1,.32,1) both}
@keyframes finance-data-reveal{from{opacity:.55}to{opacity:1}}
.finance-flow-totals{display:flex;gap:12px;flex-wrap:wrap}
.finance-flow-totals>span{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);font-size:13px;color:var(--muted)}
.finance-flow-totals strong{color:var(--text);font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-flow-totals i,.legend .income,.legend .expense{display:inline-block;width:9px;height:9px;flex:none;border-radius:50%;background:var(--brand)}
.finance-flow-totals i.expense,.legend .expense{background:#f0ac63}
.finance-flow-stage{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;height:236px;min-width:0}
.finance-flow-axis{height:calc(100% - 30px);display:flex;flex-direction:column;justify-content:space-between;text-align:right;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-flow-plot{position:relative;display:grid;grid-template-columns:repeat(var(--week-count),minmax(0,1fr));height:100%;padding-inline:12px;min-width:0}
.finance-flow-gridline{position:absolute;left:0;right:0;height:1px;background:var(--border);pointer-events:none}
.finance-flow-gridline.top{top:0}.finance-flow-gridline.middle{top:calc((100% - 30px)/2)}.finance-flow-gridline.bottom{bottom:30px}
.finance-flow-week{position:relative;z-index:1;display:grid;grid-template-rows:minmax(0,1fr) 30px;min-width:0;outline:0}
.finance-flow-week:focus-visible{outline:2px solid var(--brand);outline-offset:1px;border-radius:8px}
.finance-flow-pair{height:100%;display:flex;align-items:end;justify-content:center;gap:7px;padding-inline:3px}
.finance-flow-bar{display:block;width:clamp(10px,2vw,28px);height:var(--bar-height);min-height:0;border-radius:7px 7px 2px 2px;background:var(--brand)}
.finance-flow-bar.expense{background:#f0ac63}
.finance-flow-week-label{align-self:end;text-align:center;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-flow-tooltip{display:none;position:absolute;z-index:3;top:8px;left:50%;transform:translateX(-50%);padding:7px 9px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);color:var(--text);font-size:11px;line-height:1.4;white-space:nowrap;pointer-events:none}
.finance-flow-week:is(:hover,:focus-visible) .finance-flow-tooltip{display:block}
.finance-flow-week:first-of-type .finance-flow-tooltip{left:0;transform:none}
.finance-flow-week:last-of-type .finance-flow-tooltip{left:auto;right:0;transform:none}
.finance-composition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;animation:finance-data-reveal 260ms cubic-bezier(.23,1,.32,1) both}
.finance-composition-panel{min-width:0;padding:16px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface-soft)}
.finance-composition-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}
.finance-composition-heading h4{margin:0;font-size:15px;color:var(--text)}
.finance-composition-heading strong{font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-composition-panel .finance-ratio{grid-template-columns:minmax(96px,140px) minmax(0,1fr);gap:14px;padding:0}
.finance-composition-panel .finance-ratio-ring{width:min(100%,140px)}
.finance-composition-panel .finance-ratio-list{gap:5px}
.finance-composition-panel .finance-ratio-list li{font-size:12px}
.finance-composition-panel .finance-ratio-list small{font-size:11px}
.legend .income,.legend .expense{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--brand)}
.legend .expense{background:#f0ac63}
.finance-ratio-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;min-width:0}
.finance-ratio-list li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:5px 9px;min-width:0}
.finance-ratio-list i{width:10px;height:10px;border-radius:50%}
.finance-ratio-list span{font-weight:600;overflow-wrap:anywhere}
.finance-ratio-list strong{font-variant-numeric:tabular-nums}
.finance-ratio-list small{grid-column:2 / -1;color:var(--muted)}
@media(max-width:760px){.finance-composition-grid{grid-template-columns:1fr}.finance-flow-stage{height:210px}.finance-flow-totals>span{flex:1 1 0;display:grid;grid-template-columns:9px minmax(0,1fr);gap:2px 7px}.finance-flow-totals strong{grid-column:2}}
@media(max-width:480px){.finance-ratio{grid-template-columns:116px minmax(0,1fr);gap:14px;padding:8px 0}.finance-ratio-ring{width:116px}.finance-ratio-list{grid-template-columns:1fr;gap:8px}.finance-ratio-list li{align-content:start;gap:2px 5px}.finance-ratio-list span{font-size:12px}.finance-ratio-list small{font-size:11px}.finance-flow-stage{grid-template-columns:54px minmax(0,1fr);gap:6px;height:194px}.finance-flow-axis{font-size:10px}.finance-flow-pair{gap:4px}.finance-flow-bar{width:clamp(8px,2.7vw,15px)}.finance-flow-week-label{font-size:10px}.finance-composition-panel{padding:12px}.finance-composition-panel .finance-ratio{grid-template-columns:100px minmax(0,1fr);gap:10px}.finance-composition-panel .finance-ratio-ring{width:100px}}
@media(max-width:340px){.finance-ratio{grid-template-columns:104px minmax(0,1fr);gap:10px}.finance-ratio-ring{width:104px}.finance-composition-panel .finance-ratio{grid-template-columns:92px minmax(0,1fr)}.finance-composition-panel .finance-ratio-ring{width:92px}}

/* One month selector for finance and goals, including mobile navigation. */
.month-control{display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:3px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);white-space:nowrap}
.month-control button{border:0;background:transparent;color:var(--text);cursor:pointer;min-height:36px}
.month-control .month-step{width:34px;border-radius:10px;font-size:24px;line-height:1}
.month-control .month-current{min-width:118px;padding:4px 8px;font:inherit;font-weight:600}
.month-control button:hover{background:var(--surface-soft)}
.month-control button:focus-visible,.month-dialog button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.month-dialog{width:min(360px,calc(100vw - 24px));padding:0;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);color:var(--text);box-shadow:var(--shadow-lg)}
.month-dialog[open]{position:fixed;inset:0;margin:auto!important;max-height:min(80dvh,500px)}
.month-dialog::backdrop{background:rgba(0,0,0,.48)}
.month-dialog .dialog-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border)}
.month-dialog .dialog-header h2{margin:0;font-size:20px}
.month-dialog-body{padding:18px 20px 22px}
.month-year{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.month-year button{width:40px;height:40px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface-soft);color:var(--text);font-size:22px;cursor:pointer}
.month-dialog .dialog-header .icon-button{font-size:24px}
.month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.month-grid button{min-height:44px;padding:8px;border:1px solid var(--border);border-radius:var(--radius-inset);background:var(--surface);color:var(--text);cursor:pointer}
.month-grid button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.month-grid button:hover:not([aria-pressed=true]){background:var(--surface-soft)}
.statement-intro,.statement-review{display:grid;gap:12px}
.statement-intro p,.statement-review-note{margin:0;color:var(--muted);line-height:1.5}
.statement-review{max-height:min(55dvh,480px);overflow:auto;gap:8px}
.statement-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:12px;border:1px solid var(--border);border-radius:var(--radius-inset);background:var(--surface-soft)}
.statement-row>input[type=checkbox]{width:18px;height:18px;accent-color:var(--brand)}
.statement-row-copy{display:grid;gap:3px;min-width:0}
.statement-row-copy strong{overflow-wrap:anywhere}
.statement-row-copy small{color:var(--muted)}
.statement-amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.statement-row>select{grid-column:2/-1;min-height:40px;width:100%}
.statement-row.is-duplicate{opacity:.65}
@media(max-width:480px){.statement-row{grid-template-columns:20px minmax(0,1fr)}.statement-amount{grid-column:2;justify-self:start}.statement-row>select{grid-column:2}}
@media(max-width:700px){#panel-finance>.panel-header .panel-actions,#panel-goals>.panel-header .panel-actions{display:flex;flex-wrap:wrap;gap:8px}.month-control{order:-1}}
html[data-ui-motion=off] :is(.finance-flow-chart,.finance-composition-grid){animation:none}
@media(prefers-reduced-motion:reduce){:is(.finance-flow-chart,.finance-composition-grid){animation:none}}

/* Scroll remains available by touch, wheel and keyboard without a visible rail. */
html,body,*{scrollbar-width:none!important;scrollbar-gutter:auto!important}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.finance-accounts,.finance-installments{margin-block:14px;padding:16px}
.finance-accounts .card-header,.finance-installments .card-header{gap:12px;align-items:center}
.finance-accounts .card-header .button,.finance-installments .card-header .button{flex:none}
.finance-holdings{display:grid;gap:2px;padding:12px 0 14px;border-bottom:1px solid var(--border)}
.finance-holdings>span,.finance-installment-total span{font-size:13px;color:var(--muted)}
.finance-holdings>strong,.finance-installment-total strong{font-size:clamp(22px,4vw,30px);line-height:1.2;letter-spacing:-.035em;color:var(--navy);font-variant-numeric:tabular-nums}
.finance-holdings>small{color:var(--muted);font-size:12px}
.finance-account-list,.finance-installment-list{display:grid}
.finance-account-row{width:100%;border:0;border-bottom:1px solid var(--border);background:none;color:var(--text);display:grid;grid-template-columns:40px minmax(0,1fr) auto 18px;align-items:center;gap:10px;text-align:left;padding:10px 0;min-height:60px}
.finance-account-row:last-child{border-bottom:0}
.finance-account-row:hover{background:color-mix(in srgb,var(--brand) 4%,transparent)}
.finance-account-logo{width:38px;height:38px;border-radius:12px;background:var(--blue-soft);color:var(--brand);font-size:12px;font-weight:800;display:grid;place-items:center;overflow:hidden}
.finance-account-logo img{width:100%;height:100%;object-fit:contain}
.finance-account-copy{min-width:0;display:grid;gap:2px}
.finance-account-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.finance-account-copy small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.finance-account-row b{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.finance-account-row>.icon{width:16px;height:16px;color:var(--muted)}
.finance-installment-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0 12px;border-bottom:1px solid var(--border)}
.finance-installment-total strong{font-size:20px}
.finance-installment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 0;border-bottom:1px solid var(--border)}
.finance-installment-row:last-child{border-bottom:0}
.finance-installment-row>div:first-child{display:grid;gap:3px;min-width:0}
.finance-installment-row>div:first-child strong{font-size:14px;overflow-wrap:anywhere}
.finance-installment-row small{font-size:12px;color:var(--muted)}
.finance-installment-row>b{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.finance-installment-row progress{grid-column:1/-1;width:100%;height:6px;accent-color:var(--brand)}
.finance-installment-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:8px}
.finance-installment-actions .button{min-height:40px}
@media(max-width:380px){.finance-account-row{grid-template-columns:36px minmax(0,1fr) auto;gap:8px}.finance-account-row>.icon{display:none}.finance-account-row b{font-size:12px}.finance-accounts,.finance-installments{padding:12px}}
@media(min-width:701px){
 .hero-layout{width:100%!important;max-width:none!important;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);gap:18px}
 .hero-robot{min-height:360px}
 .hero-chat .conversation{height:360px}
 .hero-robot .robot-companion[data-character-preset=human]{width:200px}
}
.character-gallery{grid-template-columns:repeat(3,minmax(0,1fr));max-width:520px}
.character-choice{min-width:0;overflow:hidden;text-align:center}
.character-human-preview{display:block;width:100%;height:104px;object-fit:contain;object-position:center bottom;border-radius:10px;background:linear-gradient(145deg,#e7f8f3,#e8f1ff)}
.character-choice span{font-size:13px;line-height:1.2}
.human-avatar{display:none;position:absolute;inset:0;pointer-events:none;overflow:visible}
.human-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.human-avatar .human-speaking{opacity:0}
.desktop-human{display:none;position:absolute;inset:0;pointer-events:none}
.desktop-human img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.desktop-human .human-speaking{opacity:0}
.desktop-orb[data-character=human]{background:transparent;border-radius:24px;box-shadow:none}
.desktop-orb[data-character=human]>svg{display:none}
.desktop-orb[data-character=human] .desktop-human{display:block}
.desktop-orb[data-character=human][data-state=speaking] .human-speaking{animation:human-mouth .38s steps(1,end) infinite}
.desktop-orb[data-character=human][data-state=idle] .desktop-human{animation:human-breathe 4.5s ease-in-out infinite}
.desktop-orb[data-character=human][data-state=listening]{box-shadow:0 0 0 3px #0064ff66}
.desktop-orb[data-character=human]:is([data-state=thinking],[data-state=preparing])::after{content:'';position:absolute;inset:3px;border:2px solid transparent;border-top-color:#0064ff;border-radius:50%;animation:quick-rotate 1.1s linear infinite}
.robot-companion[data-character-preset=human] :is(.robot-antenna,.robot-chin,.robot-neck,.robot-base,.robot-microphone,.mic-cable,.monitor-arms){display:none!important}
.robot-companion[data-character-preset=human] .robot-housing{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible}
.robot-stage[data-character-preset=human]{aspect-ratio:1.05;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
.robot-stage[data-character-preset=human] .robot-face{position:relative;width:100%;height:100%;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible}
.robot-stage[data-character-preset=human] .robot-face::after,.robot-stage[data-character-preset=human] .face-features{display:none!important}
.robot-stage[data-character-preset=human] .human-avatar{display:block}
.robot-stage[data-character-preset=human][data-state=idle] .human-avatar{animation:human-breathe 4.5s ease-in-out infinite}
.robot-stage[data-character-preset=human][data-state=listening] .human-avatar{transform:scale(1.045)}
.robot-stage[data-character-preset=human][data-state=listening] .robot-face{outline:3px solid color-mix(in srgb,var(--brand) 48%,transparent);outline-offset:2px;border-radius:50%!important}
.robot-stage[data-character-preset=human]:is([data-state=thinking],[data-state=preparing])::after{content:'';position:absolute;inset:-5px;border:2px solid transparent;border-top-color:var(--brand);border-radius:50%;animation:quick-rotate 1.1s linear infinite;pointer-events:none}
.robot-stage[data-character-preset=human][data-state=speaking] .human-speaking{animation:human-mouth .38s steps(1,end) infinite}
.robot-stage[data-character-preset=human][data-state=speaking] .human-avatar{animation:human-nod .8s ease-in-out infinite}
.robot-stage[data-character-preset=human][data-state=error] .robot-face{outline:2px solid var(--danger);border-radius:50%!important}
.robot-stage[data-character-preset=human].immersive{background:var(--background)!important}
.robot-stage[data-character-preset=human].immersive .robot-face{width:min(82vw,66dvh);height:min(82vw,66dvh);place-self:center}
@keyframes human-breathe{50%{transform:translateY(-2px) scale(1.012)}}
@keyframes human-mouth{0%,49%{opacity:0}50%,89%{opacity:1}90%,100%{opacity:0}}
@keyframes human-nod{50%{transform:translateY(2px) rotate(.5deg)}}
html[data-ui-motion=off] .robot-stage[data-character-preset=human] .human-avatar,html[data-ui-motion=off] .robot-stage[data-character-preset=human] .human-speaking{animation:none!important}
html[data-ui-motion=off] .desktop-orb[data-character=human] .desktop-human,html[data-ui-motion=off] .desktop-orb[data-character=human] .human-speaking{animation:none!important}
html[data-ui-motion=off] :is(.robot-stage[data-character-preset=human],.desktop-orb[data-character=human])[data-state=speaking] .human-speaking{opacity:1}
@media(prefers-reduced-motion:reduce){.robot-stage[data-character-preset=human] .human-avatar,.robot-stage[data-character-preset=human] .human-speaking,.robot-stage[data-character-preset=human]::after,.desktop-orb[data-character=human] .desktop-human,.desktop-orb[data-character=human] .human-speaking,.desktop-orb[data-character=human]::after{animation:none!important}}
@media(prefers-reduced-motion:reduce){:is(.robot-stage[data-character-preset=human],.desktop-orb[data-character=human])[data-state=speaking] .human-speaking{opacity:1}}

/* Empty conversation keeps capture close to the daily workspace. */
.conversation .chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted)}
.conversation .chat-empty strong{color:var(--text)}
.conversation .chat-empty span{font-size:13px;line-height:1.4}
@media(max-width:700px){
 .hero{padding-bottom:14px!important}
 .hero-robot{background:linear-gradient(126deg,color-mix(in srgb,var(--brand) 11%,var(--surface)),color-mix(in srgb,#65c6ae 20%,var(--surface)));border:1px solid color-mix(in srgb,var(--brand) 12%,var(--border));box-shadow:none}
 .hero-robot .robot-quick-actions{right:auto;left:8px;bottom:0}
 .hero-robot .robot-quick-actions .button{width:44px;min-width:44px;height:44px;min-height:44px}
 .hero-robot .robot-microphone{display:none!important}
 .hero-robot .robot-companion[data-character-preset=human]{width:108px}
 .hero-robot:has(.robot-companion[data-character-preset=human]){min-height:132px}
  .conversation .card-header{margin-bottom:3px}
 .conversation .chat-scroll{min-height:0!important}
 .workspace-intro{align-items:center}
 .workspace-intro h2{font-size:22px;letter-spacing:-.035em}
 .workspace>.tabs,html.time-aware .workspace>.tabs{background:transparent;border-bottom:1px solid var(--border);border-radius:0;padding:0;margin-bottom:17px;gap:2px}
 .main-tabs>.tab{border-radius:0;background:transparent;box-shadow:none!important;position:relative;padding-inline:11px}
 .main-tabs>.tab[aria-selected=true]{background:transparent;box-shadow:none;color:var(--brand)}
 .main-tabs>.tab[aria-selected=true]::after{display:block;content:'';position:absolute;left:10px;right:10px;bottom:0;height:2px;background:var(--brand);border-radius:2px}
 .panel-header p{max-width:34ch}
}
@media(max-width:350px){.character-gallery{gap:6px}.character-choice{padding:7px}.character-human-preview{height:80px}.character-choice span{font-size:12px}.conversation-view-tabs button{font-size:11px}}

/* One flat, quiet palette for all four visible times of day. */
html.time-aware[data-theme=orbit]{--background:#f5f8fa;--surface:#fff;--surface-raised:#fff;--surface-soft:#edf3f6;--header-bg:#f5f8fa;--text:#203345;--navy:#142b3e;--muted:#617482;--border:#dce7eb;--blue-soft:#e9f1ff;--tabs-bg:#eaf1f4;--on-brand:#fff;--brand:#0064ff;--hero-surface:#eaf2f8}
html.time-aware[data-theme=orbit]:is([data-time-scene=dawn],[data-time-scene=morning]){--background:#f8f8f2;--surface:#fffefa;--surface-soft:#eef4ed;--header-bg:#f8f8f2;--border:#dfe8df;--hero-surface:#e7f3ee}
html.time-aware[data-theme=orbit][data-time-scene=day]{--background:#f1f7fb;--surface:#fff;--surface-soft:#ebf3f8;--header-bg:#f1f7fb;--border:#d9e6ee;--hero-surface:#deeffb}
html.time-aware[data-theme=orbit]:is([data-time-scene=afternoon],[data-time-scene=sunset]){--background:#fbf6ef;--surface:#fffefa;--surface-soft:#f6eee4;--header-bg:#fbf6ef;--border:#eadfce;--hero-surface:#f7e9d7}
html.time-aware[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]){color-scheme:dark;--background:#151e2b;--surface:#1f2c3b;--surface-raised:#273649;--surface-soft:#1a2736;--header-bg:#151e2b;--text:#e6edf5;--navy:#f4f8ff;--muted:#b5c3d2;--border:#35475a;--blue-soft:#293f5c;--tabs-bg:#1a2736;--brand:#9cc8ff;--brand-hover:#c3ddff;--on-brand:#102537;--hero-surface:#273b52}
html[data-theme=orbit] .time-scene{display:block;opacity:1}
html[data-theme=orbit] .city-layer{background:var(--background)}
html[data-theme=orbit] .city-layer :is(.city-skyline,.city-stars,.city-cloud,.celestial-rise){display:none}
html[data-theme=orbit] body{background:var(--background);transition:background-color 420ms cubic-bezier(.2,.8,.2,1)}
html[data-theme=orbit] .hero-robot{background:var(--hero-surface);border:1px solid var(--border);box-shadow:none;transition:background-color 420ms cubic-bezier(.2,.8,.2,1),border-color 420ms cubic-bezier(.2,.8,.2,1)}
html[data-theme=orbit] .card,html[data-theme=orbit] :is(.button.primary,.send-button){box-shadow:none}
html[data-ui-motion=off][data-theme=orbit] :is(body,.hero-robot){transition:none}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full])[data-theme=orbit] :is(body,.hero-robot){transition:none}}
/* One restrained sky motif per time of day; it never competes with the greeting. */
.sky-accent{display:none;position:absolute;right:18px;top:18px;width:94px;height:70px;pointer-events:none;z-index:0}
html.time-aware[data-theme=orbit] .sky-accent{display:block}
html[data-theme=orbit] .hero-robot>:not(.sky-accent){z-index:1}
.sky-disc{position:absolute;top:14px;left:31px;width:30px;height:30px;border-radius:50%;background:#e6bd79;animation:sky-float 9s ease-in-out infinite alternate}
.sky-horizon{position:absolute;left:9px;right:8px;bottom:8px;height:1px;background:color-mix(in srgb,var(--text) 24%,transparent)}
.sky-star{display:none;position:absolute;width:5px;height:5px;border-radius:50%;background:#e5f1ff;animation:sky-drift 7s ease-in-out infinite alternate}
.sky-star:nth-child(3){top:8px;left:12px;animation-delay:-2s}
.sky-star:nth-child(4){top:40px;left:74px;width:4px;height:4px;animation-delay:-4s}
.sky-star:nth-child(5){top:5px;left:78px;width:3px;height:3px;animation-delay:-1s}
html[data-theme=orbit]:is([data-time-scene=dawn],[data-time-scene=morning]) .sky-disc{background:#f1c981;outline:6px solid #f7e4b7}
html[data-theme=orbit][data-time-scene=dawn] .sky-disc{top:27px}
html[data-theme=orbit][data-time-scene=day] .sky-disc{background:#edbd67;outline:6px solid #f7dca5}
html[data-theme=orbit][data-time-scene=afternoon] .sky-disc{top:22px;background:#e4ad76;outline:5px solid #f4ddb7}
html[data-theme=orbit][data-time-scene=sunset] .sky-disc{top:31px;background:#d98468;outline:5px solid #f0c3a9}
html[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]) .sky-disc{top:13px;left:32px;background:#e9f2ff;box-shadow:inset -10px 0 0 var(--hero-surface);outline:none}
html[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]) .sky-star{display:block}
html[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]) .sky-horizon{display:none}
@keyframes sky-float{to{transform:translate3d(0,-4px,0)}}
@keyframes sky-drift{to{transform:translate3d(5px,-3px,0);opacity:.58}}
@media(max-width:700px){.sky-accent{left:16px;right:auto;top:10px;width:112px;height:58px;opacity:1}.sky-disc{left:33px;top:10px;width:28px;height:28px}.sky-horizon{left:0;right:5px;bottom:4px}html[data-theme=orbit][data-time-scene=dawn] .sky-disc{top:20px}html[data-theme=orbit][data-time-scene=afternoon] .sky-disc{top:17px}html[data-theme=orbit][data-time-scene=sunset] .sky-disc{top:25px}html[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]) .sky-disc{left:34px;top:10px}.sky-star:nth-child(3){left:7px}.sky-star:nth-child(4){left:83px}.sky-star:nth-child(5){left:92px}}
@media(max-width:700px){html[data-theme=orbit] .hero-robot{min-height:168px}}
html[data-ui-motion=off] .sky-accent *{animation:none!important}
@media(prefers-reduced-motion:reduce){.sky-accent *{animation:none!important}}
html[data-theme=orbit] .topbar{background:transparent}
.hero-robot #heroTitle{font-size:clamp(25px,3.2vw,34px);line-height:1.15;letter-spacing:-.045em}
.conversation .card-title{display:none}
.conversation-view-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:2px;border:0;background:var(--surface-soft);padding:3px}
.conversation-view-tabs button{font-size:13px;font-weight:650;min-height:42px;transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,transform var(--motion-fast) ease}
.conversation .chat-empty{display:none}
.panel-header p{display:none}
.overview-card>small,.stat-card>small{display:none}
.overview-card{gap:4px;min-height:86px;justify-content:center}
.overview-card>strong{font-size:18px;line-height:1.3}
.overview-label{font-size:14px;color:var(--text)}
.home-overview{margin-top:12px;border-top:1px solid var(--border)}
.home-overview>summary{display:flex;align-items:center;min-height:44px;width:max-content;max-width:100%;padding:8px 2px;color:var(--muted);font-size:14px;font-weight:650;cursor:pointer;list-style:none}
.home-overview>summary::-webkit-details-marker{display:none}
.home-overview>summary::after{content:'⌄';margin-left:9px;color:var(--brand);font-size:18px;line-height:1;transition:transform var(--motion-fast) ease}
.home-overview[open]>summary::after{transform:rotate(180deg)}
.home-overview>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
.focus-card.is-empty{padding:18px 20px}
.workspace:has(#panel-home:not([hidden])){height:auto;min-height:0;overflow:visible}
.workspace:has(#panel-home:not([hidden]))>#panel-home{flex:0 0 auto;overflow:visible;scrollbar-gutter:auto;padding-bottom:8px}
.focus-card.is-empty .focus-content{display:block}
.focus-card.is-empty .focus-info{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.focus-card.is-empty .focus-info h3{font-size:18px;margin:0}
.focus-card.is-empty .row-actions{margin:0}
.today-indicators{margin-block:18px}
.schedule-grid .stack>.card:has(.quiet-empty){padding:14px 16px}
.schedule-grid .stack>.card:has(.quiet-empty) .card-header{margin-bottom:0}
.schedule-grid .stack .quiet-empty{padding:5px 0;color:var(--muted);font-size:14px}
.button,.icon-button,.tab,.filter-button,.card,.conversation-view-tabs button{transition:background-color var(--motion-fast) ease,border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,color var(--motion-fast) ease,opacity var(--motion-fast) ease,transform var(--motion-view) cubic-bezier(.2,.8,.2,1)}
.button:active,.icon-button:active,.tab:active,.filter-button:active{transform:scale(.96)}
html[data-ui-motion=off] :is(.button,.icon-button,.tab,.filter-button,.card,.conversation-view-tabs button){transition:none}
@media(min-width:701px){
  .hero-layout{align-items:stretch}
  .hero-robot{min-height:250px}
  .hero-robot .robot-companion{width:142px}
  .hero-chat{display:flex;align-items:center}
}
@media(max-width:700px){
  .app-shell{padding-inline:16px}
  .topbar,html.time-aware .topbar{min-height:58px}
  .hero{padding:8px 0 16px!important}
  .hero-layout{gap:10px}
  .hero-robot{min-height:106px;padding:12px 16px;grid-template-columns:minmax(0,1fr) 92px;border-radius:18px}
  .hero-robot #heroTitle{grid-column:1;grid-row:1 / span 2;align-self:center;font-size:clamp(20px,5.8vw,24px);max-width:none;white-space:nowrap}
  .hero-robot .robot-companion{width:86px;grid-column:2;grid-row:1 / span 2}
  .hero-robot .robot-quick-actions{bottom:2px;left:2px}
  .hero-chat .conversation,.conversation{padding:10px!important;border-radius:18px}
  .conversation .card-header{padding:0;margin:0 0 6px}
  .conversation-view-tabs button{font-size:13px;min-height:42px}
  .conversation-footer{margin:0;padding:0}
  .conversation-footer .command-form{min-height:48px}
  .workspace>.workspace-intro{margin-bottom:6px}
  .workspace-intro h2{font-size:20px}
  .workspace>.tabs,html.time-aware .workspace>.tabs{margin-bottom:10px}
  .panel-header h2{font-size:20px}
  .focus-card.is-empty{padding:14px 16px}
  .focus-card.is-empty .focus-info h3{font-size:16px}
  .focus-card.is-empty .row-actions .button{font-size:13px}
  .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
  .overview-card{padding:12px;min-height:74px}
  .overview-card>strong{font-size:15px;overflow-wrap:anywhere}
  .overview-label{font-size:14px}
}
@media(max-width:350px){.hero-robot{grid-template-columns:minmax(0,1fr) 70px}.hero-robot #heroTitle{font-size:19px}.hero-robot .robot-companion{width:70px}.conversation-view-tabs button{font-size:12px}.focus-card.is-empty .focus-info{align-items:flex-start}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace .main-tabs>.tab{flex:0 0 33.333333%;min-width:0;max-width:33.333333%;padding-inline:2px;font-size:11px}.workspace .main-tabs>.tab .icon{display:none}.workspace .main-tabs>.tab-add .icon{display:block}}
@media(max-width:700px){body> .app-shell>footer{display:none}}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) :is(.button,.icon-button,.tab,.filter-button,.card,.conversation-view-tabs button){transition:none}}

/* Shared conversation shapes on every screen. */
#conversation{border-radius:18px}
#conversation .conversation-view-tabs,#conversation .command-form{border-radius:12px}
#conversation .conversation-view-tabs{padding:2px}
#conversation .conversation-view-tabs button{min-height:44px;border-radius:10px}

/* Shared type roles: one family, distinct hierarchy, consistent weight and rhythm. */
:is(.brand-copy strong,.hero-robot #heroTitle,.workspace-intro h2,.panel-header h2,.focus-card .focus-info h3,#conversation .conversation-view-tabs button,#commandInput,.workspace-intro .workspace-date,.main-tabs>.tab,.focus-card .row-actions .button,.home-overview>summary){font-family:var(--font-body)}
.brand-copy strong{font-weight:var(--font-weight-heading);letter-spacing:-.025em;line-height:1.2}
.hero-robot #heroTitle{font-weight:var(--font-weight-heading);letter-spacing:-.03em;line-height:1.15}
@media(max-width:700px){.hero-robot #heroTitle{font-size:clamp(19px,6vw,24px)}}
:is(.workspace-intro h2,.panel-header h2){font-weight:var(--font-weight-heading);letter-spacing:-.025em;line-height:1.25}
.focus-card .focus-info h3{font-weight:var(--font-weight-card);letter-spacing:-.015em;line-height:1.3}
:is(#conversation .conversation-view-tabs button,.main-tabs>.tab,.focus-card .row-actions .button){font-weight:var(--font-weight-label);letter-spacing:0;line-height:1.35}
:is(.workspace-intro .workspace-date,.home-overview>summary){font-weight:var(--font-weight-meta);letter-spacing:0;line-height:1.4}
#commandInput{font-weight:400;letter-spacing:0;line-height:1.4}

/* 0.42: one local type family and a readable shared form hierarchy. */
html,body,button,input,select,textarea,option{font-family:var(--font-body)}
.dialog-header p:empty{display:none}
.field>label,.field-label,.account-logo-picker>legend{font-size:14px;font-weight:600;line-height:1.35}
.field .input,.dialog .input{font-size:16px;line-height:1.4}
.field small{font-size:12px;line-height:1.4;color:var(--muted)}
.dialog-header h2{font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.025em}
.dialog-header p{font-size:13px;line-height:1.4}
.account-logo-picker{border:0;margin:0;padding:0;min-width:0}
.account-logo-picker>legend{padding:0;margin-bottom:8px;color:var(--text)}
.account-logo-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.account-logo-choice{position:relative;display:grid;justify-items:center;align-content:center;gap:5px;min-width:0;min-height:72px;padding:7px 4px;border:1px solid var(--border);border-radius:var(--radius-inset);background:var(--surface);color:var(--text);font:500 12px/1.2 var(--font-body);text-align:center;cursor:pointer}
.account-logo-choice[hidden]{display:none}
.account-logo-choice>span:last-child{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-logo-choice:has(input:checked),.account-logo-upload[data-selected=true]{border-color:var(--brand);background:var(--blue-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.account-logo-choice:has(input:focus-visible),.account-logo-choice:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.account-logo-choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px}
.account-brand-mark{display:grid;place-items:center;width:100%;height:100%;border-radius:10px;background:var(--blue-soft);color:var(--brand);font:700 11px/1 var(--font-body);letter-spacing:-.02em;overflow:hidden}
.account-brand-mark img{width:100%;height:100%;object-fit:contain}
.account-brand-mark.has-brand-image{background:#fff;color:inherit;padding:3px;box-shadow:inset 0 0 0 1px rgb(11 36 84 / 8%)}
.account-logo-choice .account-brand-mark{width:54px;height:32px;border-radius:9px;font-size:13px}
.account-brand-initial{background:var(--surface-soft);color:var(--muted)}
.account-brand-bca{background:#0756a4;color:#fff}.account-brand-bri{background:#07508f;color:#fff}
.account-brand-bni{background:#e87722;color:#fff}.account-brand-mandiri{background:#123b71;color:#ffd837;font-size:18px}
.account-brand-btn{background:#075eae;color:#fff}.account-brand-gopay{background:#00a9e0;color:#fff}
.account-brand-dana{background:#118ee9;color:#fff}.account-brand-ovo{background:#6041a9;color:#fff}
.account-brand-shopeepay{background:#ee5b2c;color:#fff}.account-brand-custom{background:var(--surface-soft);color:var(--brand);font-size:22px!important}
.finance-account-logo:has(.account-brand-mark){background:transparent}
.finance-account-logo .account-brand-mark{width:38px;height:38px}
.hero-layout svg:not(.face-features):not(.mic-cable):not(.robot-anger-steam):not(.monitor-arms){max-width:44px;max-height:44px}
.hero-chat .conversation{min-width:0;overflow:hidden;isolation:isolate}
.hero-robot .face-features{max-width:100%;overflow:hidden}
.hero-chat .conversation .send-button svg{width:20px;height:20px;max-width:20px;max-height:20px}
.shopping-session-grid{grid-template-columns:repeat(auto-fill,minmax(220px,260px))}
@media(min-width:701px){html[data-theme] .shopping-session-card{gap:8px;padding:12px}}
@media(max-width:700px){.shopping-session-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.account-logo-options{grid-template-columns:repeat(3,minmax(0,1fr))}.account-logo-choice{min-height:68px}.dialog .dialog-body{padding-inline:16px}}

/* 0.43 — one category canvas and one visual rhythm across modules. */
:root{--radius-card:18px;--ui-card-pad:18px;--ui-gap:14px}
html[data-active-tab]:not([data-active-tab=home]) .hero{display:none}
html[data-active-tab]:not([data-active-tab=home]) .workspace-intro{display:none}
.card,.hero-robot,#conversation{border-radius:var(--radius-card)}
.panel-header{margin-bottom:14px}
.panel-header h2{font-size:22px;line-height:1.25}
.card-header h3,.card-title h3{font-size:17px;line-height:1.3}
.quiet-empty{font-size:14px;line-height:1.5}
.stat-card{min-height:96px}
.goal-overall p:empty{display:none}
#panel-goals[data-empty=true] :is(.goal-summary,#goalFilters){display:none}
#panel-goals[data-empty=true]>.card-header{display:none}
.finance-cash-card:has(.chart-wrap .quiet-empty) .chart-wrap{height:auto;min-height:0;padding:0}
.finance-cash-card:has(.chart-wrap .quiet-empty) .quiet-empty{margin:0;padding:6px 0 0}
.finance-cash-card .chart-note:empty{display:none}
.alarm-readiness.card{padding:14px 16px;margin:0 0 6px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}
.alarm-readiness #alarmReadyStatus{margin:0;color:var(--text);font-size:14px;font-weight:600;line-height:1.4}
.alarm-readiness .button{white-space:nowrap}
.alarm-help{margin:0 0 14px}
.alarm-help>summary{font-size:14px;min-height:44px}
.alarm-help>p{margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.5}
.alarm-list>.quiet-empty{margin:0;padding:6px 0}
#settingsDialog .dialog-header p,#characterPresetHelp{display:none}
#settingsDialog .settings-section{gap:12px}
#settingsDialog .settings-section :is(.setting-block,.setting-row){border:1px solid var(--border);border-radius:var(--radius-card,18px);background:var(--surface-soft);padding:16px}
#settingsDialog .settings-section :is(.setting-block>strong,.setting-block>label,.setting-row strong){font-size:14px;font-weight:600}
#settingsDialog .setting-help{font-size:13px;line-height:1.45}
#settingsDialog .settings-tabs button{font-size:12px}
/* Shared feature and settings primitives; all tabs use the same card anatomy. */
.feature-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#healthModules.feature-card-grid,#goalModules.feature-card-grid,#panel-more .extra-grid.feature-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1200px){.feature-card-grid,#healthModules.feature-card-grid,#goalModules.feature-card-grid,#panel-more .extra-grid.feature-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.feature-card-grid,#healthModules.feature-card-grid,#goalModules.feature-card-grid,#panel-more .extra-grid.feature-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.feature-card-grid,#healthModules.feature-card-grid,#goalModules.feature-card-grid,#panel-more .extra-grid.feature-card-grid{grid-template-columns:1fr}}
#settingsDialog .settings-section :is(.setting-block,.setting-row)>label{display:block;position:static;margin:0 0 8px;line-height:1.4}
#settingsDialog .settings-section .setting-block>label+.input{display:block;width:100%;margin-top:8px}
#settingsDialog .settings-section :is(.setting-block,.setting-row)>.input{min-height:44px;border-radius:var(--radius-control,12px)}
#settingsDialog .setting-row:has(>label){display:grid;grid-template-columns:1fr;align-items:start;gap:4px}
#settingsDialog .setting-row:has(>label)>label{margin:0}
#settingsDialog .setting-row:has(>label)>.input{width:100%;min-width:0}
#settingsDialog .settings-section :is(.setting-block,.setting-row):focus-within{border-color:var(--brand)}
#settingsDialog .setting-help{margin:0;line-height:1.5}
.finance-sync-status{margin:0 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-control,12px);background:var(--surface-soft);color:var(--muted);font-size:13px}
.finance-flow-bar{transform-origin:center bottom;animation:finance-bar-rise 560ms cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--week-index,0) * 55ms)}
.finance-flow-bar.expense{animation-delay:calc(var(--week-index,0) * 55ms + 80ms)}
@keyframes finance-bar-rise{from{opacity:.35;transform:scaleY(.08)}to{opacity:1;transform:scaleY(1)}}
.finance-ratio-ring{animation:finance-ring-reveal 540ms cubic-bezier(.2,.7,.2,1) both}
@keyframes finance-ring-reveal{from{opacity:.5;transform:scale(.94) rotate(-12deg)}to{opacity:1;transform:scale(1) rotate(0)}}
html[data-ui-motion=off] .finance-flow-bar,html[data-ui-motion=off] .finance-ratio-ring{animation:none}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .finance-flow-bar,html:not([data-ui-motion=full]) .finance-ratio-ring{animation:none}}
#panel-more .panel-header #openMenuSettings{display:none}
#panel-more .extra-grid{gap:10px}
#panel-more .extra-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:72px;padding:12px 14px}
#panel-more .extra-card>div{min-width:0}
#panel-more .extra-card h3{margin:0;font-size:15px;line-height:1.3}
#panel-more .extra-card :is(.section-kicker,p){display:none}
#panel-more #cycleCard .section-kicker{display:block;font-size:11px}
#panel-more .extra-card>.button{grid-column:3;align-self:center;justify-self:end;min-height:44px;padding-inline:12px}
#panel-more .extra-card>.icon,#panel-more .extra-card>.extra-icon{width:36px;height:36px;padding:8px;border-radius:10px;background:var(--surface-soft);color:var(--brand)}
#panel-more .extra-card>.extra-icon .icon{width:20px;height:20px}
#healthModules{gap:10px}
#healthModules .module-card{min-width:0;min-height:96px;padding:14px}
#healthModules .module-card small{display:none}
#healthModules .module-card strong{font-size:15px;line-height:1.3}
.feature-entry-form>[data-feature-save]{justify-self:end;min-width:120px}
.attachment-field{display:grid;gap:8px;min-width:0}
.attachment-field>.field-label{font-size:14px;font-weight:600;line-height:1.35}
.attachment-picker{position:relative;display:flex!important;align-items:center;gap:10px;min-width:0;min-height:44px;padding:4px 10px 4px 4px;border:1px solid var(--border);border-radius:var(--radius-inset);background:var(--surface);cursor:pointer}
.attachment-picker:focus-within{outline:2px solid var(--brand);outline-offset:2px}
.attachment-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.attachment-picker-action{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:36px;padding:6px 12px;border-radius:9px;background:var(--blue-soft);color:var(--brand);font-size:13px;font-weight:600}
.attachment-picker-count{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px}
.attachment-field>small{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
@media(min-width:701px){html[data-active-tab]:not([data-active-tab=home]) .workspace{height:auto;max-height:min(880px,calc(100dvh - 112px));min-height:0;overflow:hidden}html[data-active-tab]:not([data-active-tab=home]) .workspace>[role=tabpanel]{flex:1 1 auto}}
@media(max-width:700px){
 :root{--ui-card-pad:16px;--ui-gap:12px}
 .panel-header h2{font-size:20px}
 .stat-card{min-height:92px}
 .main-tabs{scroll-snap-type:x mandatory;scroll-behavior:smooth;gap:0;scroll-padding-inline:0}
 .main-tabs>.tab{box-sizing:border-box;flex:0 0 33.333333%;min-width:0;max-width:33.333333%;padding:0 3px;justify-content:center;overflow:hidden;text-overflow:clip;white-space:nowrap;font-size:clamp(11px,3.1vw,12px);scroll-snap-align:start}
 .main-tabs>.tab .icon{display:none}
 .workspace .main-tabs>.tab[aria-selected=true]::after{left:6px;right:6px}
 .alarm-readiness.card{padding:12px 14px;gap:10px;flex-direction:row;align-items:center;flex-wrap:wrap}
 .alarm-readiness .button{margin-left:auto}
}
@media(max-width:350px){.workspace .main-tabs>.tab{flex:0 0 33.333333%;min-width:0;max-width:33.333333%;padding-inline:2px;font-size:11px}.finance-chart-views button{padding-inline:8px}.alarm-readiness .button{width:100%;margin-left:0}}
html[data-ui-motion=off] .main-tabs{scroll-behavior:auto}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .main-tabs{scroll-behavior:auto}}

/* 0.44: chat and history share one stable card; only their contents scroll. */
html:not([data-native-popup]) #conversation{
  height:300px!important;
  min-height:0!important;
  max-height:300px!important;
  padding:18px!important;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface);
  overflow:hidden;
}
html:not([data-native-popup]) #conversation .card-header{flex:none;margin:0 0 12px;padding:0}
html:not([data-native-popup]) #conversation .chat-scroll,
html:not([data-native-popup]) #conversation .chat-history{
  flex:1 1 auto;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden;
  overscroll-behavior:contain;
}
html:not([data-native-popup]) #conversation .conversation-footer{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  min-height:0;
  max-height:65%;
  overflow:hidden;
}
html:not([data-native-popup]) #conversation[data-view=history] .conversation-footer{display:none}
html:not([data-native-popup]) #conversation .chat-attachment-panel{min-height:0;overflow-y:auto}
html:not([data-native-popup]) #conversation .command-form{flex:none}
html:not([data-native-popup]) #conversation .conversation-view-tabs{position:relative;isolation:isolate}
html:not([data-native-popup]) #conversation .conversation-view-tabs::before{
  content:"";
  position:absolute;
  inset:2px auto 2px 2px;
  width:calc(50% - 2px);
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 1px 4px rgb(11 36 84 / 10%);
  pointer-events:none;
  transform:translateX(0);
  transition:transform var(--motion-view) cubic-bezier(.2,.8,.2,1);
}
html:not([data-native-popup]) #conversation[data-view=history] .conversation-view-tabs::before{transform:translateX(100%)}
html:not([data-native-popup]) #conversation .conversation-view-tabs button{position:relative;z-index:1}
html:not([data-native-popup]) #conversation .conversation-view-tabs button[aria-selected=true]{background:transparent;box-shadow:none}
@media(max-width:700px){
  html:not([data-native-popup]) #conversation{height:184px!important;max-height:184px!important;padding:12px!important}
  html:not([data-native-popup]) #conversation .card-header{margin-bottom:10px}
  html:not([data-native-popup]) #conversation .command-form{border:1px solid var(--border);background:var(--surface-soft)}
}
/* Photo review expands the chat card instead of clipping its actions. */
html:not([data-native-popup]) #conversation:has(.chat-attachment-panel:not([hidden])){height:auto!important;max-height:none!important;min-height:300px!important}
html:not([data-native-popup]) #conversation:has(.chat-attachment-panel:not([hidden])) .conversation-footer{max-height:none;overflow:visible}
html:not([data-native-popup]) #conversation .chat-attachment-panel{box-sizing:border-box;min-width:0;overflow:visible}
html:not([data-native-popup]) #conversation .chat-attachment-panel{border-radius:18px}
@media(max-width:700px){html:not([data-native-popup]) #conversation{height:232px!important;max-height:232px!important}}
html:not([data-native-popup]) #conversation .chat-attachment-actions{min-width:0}
html:not([data-native-popup]) #conversation .chat-attachment-actions .button{min-width:0;white-space:normal;line-height:1.2}
@media(max-width:340px){html:not([data-native-popup]) #conversation .chat-attachment-actions{grid-template-columns:repeat(2,minmax(0,1fr))}html:not([data-native-popup]) #conversation .chat-attachment-actions>:last-child{grid-column:1/-1}}

/* Shared bounded photo viewer: the image keeps its proportions and the actions stay visible. */
.detail-dialog-attachment[open]{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px)!important;border-radius:24px}
.detail-dialog-attachment .dialog-header{min-width:0}
.detail-dialog-attachment .dialog-header h2{font-size:clamp(16px,4vw,22px);line-height:1.25;overflow-wrap:anywhere}
.detail-dialog-attachment .dialog-body{display:grid;place-items:center;min-height:0;padding:12px!important;overflow:auto}
.detail-dialog-attachment .attachment-preview{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 190px);aspect-ratio:auto;object-fit:contain;border-radius:12px!important}
.detail-dialog-attachment .attachment-preview-pdf{max-height:calc(100dvh - 190px)}
.detail-dialog-attachment .dialog-footer{position:relative}

/* Compact native review uses the same field geometry as every Cenbot form. */
[data-native-popup] #quickPanel,[data-native-popup] .quick-body,[data-native-popup] #quickDocument,[data-native-popup] .quick-editor{box-sizing:border-box;min-width:0}
[data-native-popup] #quickReceiptForm{min-width:0;overflow:visible}
[data-native-popup] #quickReceiptForm .form-grid{display:grid;grid-template-columns:minmax(0,1fr)}
[data-native-popup] #quickReceiptForm .field{min-width:0}
[data-native-popup] #quickReceiptForm :is(input.input,select.input,textarea.input){box-sizing:border-box;width:100%;min-width:0;border-radius:14px!important}
[data-native-popup] #quickReceiptForm textarea.input{height:auto;min-height:96px;max-height:180px;padding:12px 14px;resize:vertical;line-height:1.45}
[data-native-popup] #quickReceiptForm details{min-width:0}
html[data-ui-motion=off] #conversation .conversation-view-tabs::before{transition:none}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) #conversation .conversation-view-tabs::before{transition:none}}

/* Shared stat cards show the carried balance beside the current month's flow. */
#panel-finance .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#panel-finance .stat-card{min-width:0;min-height:104px;padding:16px 18px}
#panel-finance .stat-card.emphasis{background:var(--hero-surface);border-color:var(--border)}
#panel-finance .stat-card.emphasis :is(.stat-label,.stat-value){background:transparent;color:var(--navy)}
#panel-finance .stat-card.emphasis .stat-label .icon{color:var(--brand)}
#panel-finance .stat-card .stat-label>.icon{width:20px;height:20px;padding:0;background:transparent}
#panel-finance .stat-card .stat-value{margin-top:12px;font-size:clamp(19px,2.5vw,28px);line-height:1.2}
#panel-finance .stat-card.emphasis .stat-value{font-size:clamp(25px,3vw,34px)}
#panel-finance #totalAccountsCaption{display:block;color:var(--muted);font-size:12px;line-height:1.4}
@media(max-width:700px){
  #panel-finance .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #panel-finance .stat-card.emphasis{grid-column:auto;min-height:94px}
  #panel-finance .stat-card{min-height:94px;padding:14px}
  #panel-finance .stat-card .stat-value{font-size:clamp(16px,4.8vw,23px)}
  #panel-finance .stat-card.emphasis .stat-value{font-size:clamp(18px,5vw,24px)}
}
@media(max-width:350px){#panel-finance .stat-grid{grid-template-columns:1fr}}

/* Global mobile destinations share the same panels as desktop tabs. */
.mobile-primary-nav,.mobile-more-destinations{display:none}
html[data-native-popup] .mobile-primary-nav{display:none!important}
.trend-chart .chart-label{display:none}
.trend-axis{display:flex;justify-content:space-between;margin:-2px 9.3% 0;color:var(--muted);font:500 12px/1.2 var(--font-body);font-variant-numeric:tabular-nums}
@media(max-width:700px){
  .app-shell{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  .workspace>.tabs{display:none!important}
  .mobile-primary-nav{position:fixed;inset:auto 0 0;z-index:90;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;min-height:calc(64px + env(safe-area-inset-bottom,0px));padding:5px max(8px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));border-top:1px solid var(--border);background:var(--surface);box-shadow:0 -8px 24px rgb(11 36 84 / 6%)}
  .mobile-primary-nav[data-motion-switch]{isolation:isolate}
  .mobile-primary-nav[data-motion-switch]::before{content:"";position:absolute;top:0;left:0;z-index:0;pointer-events:none;width:var(--switch-width);height:var(--switch-height);transform:translate3d(var(--switch-x),var(--switch-y),0);border-radius:10px;background:var(--blue-soft);transition:transform 220ms cubic-bezier(.23,1,.32,1),width 220ms cubic-bezier(.23,1,.32,1),height 220ms cubic-bezier(.23,1,.32,1)}
  .mobile-primary-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:52px;padding:5px 2px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:600 12px/1.2 var(--font-body);cursor:pointer;touch-action:manipulation;user-select:none;transition:color .2s ease,background-color .2s ease}
  .mobile-primary-nav button .icon{width:20px;height:20px;flex:none}
  .mobile-primary-nav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-primary-nav button[aria-current=page]{color:var(--brand);background:var(--blue-soft)}
  .mobile-primary-nav[data-motion-switch] button[aria-current=page]{background:transparent}
  .mobile-primary-nav button:active{background:var(--blue-soft)}
  .mobile-primary-nav button:focus-visible,.mobile-more-destination:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
  .mobile-more-destinations:not([hidden]){display:grid;gap:2px;margin-bottom:14px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);padding:4px}
  .mobile-more-destination{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 12px;border:0;border-radius:12px;background:transparent;color:var(--text);font:600 14px/1.35 var(--font-body);text-align:left;cursor:pointer;touch-action:manipulation}
  .mobile-more-destination+.mobile-more-destination{border-top:1px solid var(--border);border-radius:0}
  .mobile-more-destination .icon{width:20px;height:20px;flex:none;color:var(--brand)}
  .mobile-more-destination span{flex:1}
  .mobile-more-destination:active{background:var(--surface-soft)}
  .workspace{height:auto!important;max-height:none!important;overflow:visible!important}
  .workspace>[role=tabpanel]{overflow:visible!important;max-height:none!important;flex:auto!important}
}
@media(max-width:350px){.mobile-primary-nav button{font-size:11px;letter-spacing:-.02em}}
@media(max-width:700px) and (hover:hover) and (pointer:fine){.mobile-more-destination:hover,.mobile-primary-nav button:hover{background:var(--blue-soft)}}
html[data-ui-motion=off] .mobile-primary-nav button{transition:none}
html[data-ui-motion=off] .mobile-primary-nav[data-motion-switch]::before{transition:none}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .mobile-primary-nav button{transition:none}}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .mobile-primary-nav[data-motion-switch]::before{transition:none}}

/* Home has a different layout. Keep the chrome anchored and let the workspace
   travel to its new position while its contents exchange in a fade-through. */
@keyframes cenbot-route-out{to{opacity:0;transform:translateY(-8px)}}
@keyframes cenbot-route-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes cenbot-nav-out{to{opacity:0}}
@keyframes cenbot-nav-in{from{opacity:0}to{opacity:1}}
html[data-ui-motion=full][data-route-transition] .topbar{view-transition-name:cenbot-header}
html[data-theme=atelier][data-ui-motion=full][data-route-transition] .workspace{view-transition-name:cenbot-workspace}
html[data-theme=atelier][data-ui-motion=full][data-route-transition] .workspace>[role=tabpanel]:not([hidden]){view-transition-name:cenbot-panel}
html[data-theme=atelier][data-ui-motion=full][data-route-transition]::view-transition-old(cenbot-workspace),html[data-theme=atelier][data-ui-motion=full][data-route-transition]::view-transition-new(cenbot-workspace){animation-duration:320ms;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
html[data-theme=atelier][data-ui-motion=full][data-route-transition]::view-transition-old(cenbot-panel){animation:140ms ease-out both cenbot-nav-out}
html[data-theme=atelier][data-ui-motion=full][data-route-transition]::view-transition-new(cenbot-panel){animation:280ms 80ms ease-out both cenbot-nav-in}
html[data-ui-motion=full][data-route-transition] .hero{view-transition-name:cenbot-hero}
@media(max-width:700px){html[data-ui-motion=full][data-route-transition] .mobile-primary-nav{view-transition-name:cenbot-mobile-nav}}
html[data-ui-motion=full][data-route-transition]::view-transition-old(root){animation:160ms cubic-bezier(.23,1,.32,1) both cenbot-route-out}
html[data-ui-motion=full][data-route-transition]::view-transition-new(root){animation:260ms 110ms cubic-bezier(.23,1,.32,1) both cenbot-route-in}
html[data-ui-motion=full][data-route-transition]::view-transition-old(cenbot-header),html[data-ui-motion=full][data-route-transition]::view-transition-new(cenbot-header){animation:none}
html[data-ui-motion=full][data-route-transition]::view-transition-old(cenbot-hero){animation:210ms cubic-bezier(.23,1,.32,1) both cenbot-route-out}
html[data-ui-motion=full][data-route-transition]::view-transition-new(cenbot-hero){animation:300ms 60ms cubic-bezier(.23,1,.32,1) both cenbot-route-in}
html[data-ui-motion=full][data-route-transition]::view-transition-old(cenbot-mobile-nav){animation:150ms cubic-bezier(.23,1,.32,1) both cenbot-nav-out}
html[data-ui-motion=full][data-route-transition]::view-transition-new(cenbot-mobile-nav){animation:220ms 80ms cubic-bezier(.23,1,.32,1) both cenbot-nav-in}
html[data-ui-motion=full][data-theme-switching]::view-transition-old(root){animation:260ms cubic-bezier(.23,1,.32,1) both cenbot-nav-out}
html[data-ui-motion=full][data-theme-switching]::view-transition-new(root){animation:420ms cubic-bezier(.23,1,.32,1) both cenbot-nav-in}

/* Shared time-of-day scene and control hierarchy. The illustration is decorative; text and actions stay above it. */
html.time-aware[data-theme=orbit]{
  --background:#edf7f5;--surface:#fff;--surface-raised:#fff;--surface-soft:#e8f2f0;--tabs-bg:#e5efed;
  --text:#193847;--navy:#142f3f;--muted:#526e78;--border:#cadfdf;--hero-surface:#bce6df;
  --scene-top:#d4f4ed;--scene-bottom:#87c9c1;--scene-text:#123846;--scene-far:#72b4b1;--scene-near:#367f88;
  --scene-sun:#fff0bd;--chat-control:#f1f6f7;--chat-control-border:#b8ced4;
}
html.time-aware[data-theme=orbit][data-time-scene=morning]{--background:#edf7f5;--surface:#fff;--surface-soft:#e8f2f0;--tabs-bg:#e5efed;--border:#cadfdf}
html.time-aware[data-theme=orbit][data-time-scene=dawn]{
  --background:#f5f7f1;--surface-soft:#eef2e9;--tabs-bg:#e9eee6;--border:#d8e5d8;
  --scene-top:#e8f2e2;--scene-bottom:#a5d6c5;--scene-far:#8dbbb4;--scene-near:#548d8c;--scene-sun:#ffe5aa;
}
html.time-aware[data-theme=orbit][data-time-scene=day]{
  --background:#ebf6fb;--surface-soft:#e8f2f7;--tabs-bg:#e6f0f6;--border:#cbdfea;--hero-surface:#a6dfed;
  --scene-top:#c9f0f7;--scene-bottom:#75c9df;--scene-text:#143951;--scene-far:#6caecb;--scene-near:#30779f;
  --scene-sun:#fff2b5;--chat-control:#f0f6f9;--chat-control-border:#b9d1df;
}
html.time-aware[data-theme=orbit]:is([data-time-scene=afternoon],[data-time-scene=sunset]){
  --background:#fff5ec;--surface:#fffefa;--surface-soft:#f8eee5;--tabs-bg:#f4e8dd;--border:#ead8c6;--hero-surface:#f5c9a0;
  --text:#49392f;--navy:#3d2d2a;--muted:#76665c;--scene-top:#f9d1ab;--scene-bottom:#eda467;
  --scene-text:#422d2e;--scene-far:#d98a69;--scene-near:#9a5c58;--scene-sun:#fff0ac;
  --chat-control:#fbf4ed;--chat-control-border:#ddc8b7;
}
html.time-aware[data-theme=orbit][data-time-scene=sunset]{--scene-top:#f7ba87;--scene-bottom:#e88863;--scene-far:#c46f60;--scene-near:#7f4d56}
html.time-aware[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]){
  --background:#141e31;--surface:#22324a;--surface-raised:#30435f;--surface-soft:#1b2a41;--tabs-bg:#182740;
  --text:#f0f5fa;--navy:#fff;--muted:#b8cad9;--border:#425874;--blue-soft:#2c4566;--hero-surface:#273b5e;
  --brand:#a9d0ff;--brand-hover:#c8e0ff;--on-brand:#102844;--scene-top:#344b80;--scene-bottom:#1c2d51;
  --scene-text:#fff;--scene-far:#233d68;--scene-near:#152a4b;--scene-sun:#eaf4ff;
  --chat-control:#30445f;--chat-control-border:#5b718d;
}
html.time-aware[data-theme=orbit][data-time-scene=midnight]{--scene-top:#263765;--scene-bottom:#15223f}
html.time-aware[data-theme=orbit] .hero-robot{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(160deg,var(--scene-top),var(--scene-bottom));border-color:color-mix(in srgb,var(--scene-near) 28%,var(--border));
  color:var(--scene-text);transition:background-color 420ms ease,border-color 220ms ease;
}
html.time-aware[data-theme=orbit] .hero-robot #heroTitle{color:var(--scene-text);text-shadow:0 1px 0 rgb(255 255 255 / 12%)}
html.time-aware[data-theme=orbit] .hero-robot .robot-quick-actions .button{color:var(--scene-text)}
html.time-aware[data-theme=orbit] .sky-accent{display:block;position:absolute;inset:0;width:auto;height:auto;opacity:1;z-index:0;overflow:hidden}
html.time-aware[data-theme=orbit] .hero-robot>:not(.sky-accent){z-index:1}
html.time-aware[data-theme=orbit] .sky-disc{display:block;top:17%;left:57%;width:58px;height:58px;background:var(--scene-sun);box-shadow:0 0 0 9px rgb(255 246 202 / 22%);outline:0;animation:scene-orbit 9s ease-in-out infinite alternate}
html.time-aware[data-theme=orbit][data-time-scene=dawn] .sky-disc{top:37%}
html.time-aware[data-theme=orbit]:is([data-time-scene=afternoon],[data-time-scene=sunset]) .sky-disc{top:36%;left:61%}
html.time-aware[data-theme=orbit] .hero-layout .hero-robot .sky-moon{display:none;position:absolute;top:12%;left:56%;width:58px;height:58px;max-width:none;max-height:none;fill:#f2f6ff;filter:drop-shadow(0 0 10px rgb(221 233 255 / 20%));animation:scene-orbit 9s ease-in-out infinite alternate}
html.time-aware[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]) .sky-disc{display:none}
html.time-aware[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]) .hero-layout .hero-robot .sky-moon{display:block}
html.time-aware[data-theme=orbit] .hero-layout .hero-robot .sky-city{display:block;position:absolute;left:0;bottom:0;width:100%;height:66%;max-width:none;max-height:none;opacity:.82}
html.time-aware[data-theme=orbit] .sky-city-far{fill:var(--scene-far)}
html.time-aware[data-theme=orbit] .sky-city-near{fill:var(--scene-near)}
html.time-aware[data-theme=orbit] .sky-star{display:none;width:5px;height:5px;border-radius:1px;background:#f8fbff;transform:rotate(45deg);animation:scene-twinkle 6s ease-in-out infinite alternate}
html.time-aware[data-theme=orbit]:is([data-time-scene=night],[data-time-scene=midnight]) .sky-star{display:block}
html.time-aware[data-theme=orbit] .sky-star:nth-of-type(1){top:15%;left:20%;animation-delay:-1s}
html.time-aware[data-theme=orbit] .sky-star:nth-of-type(2){top:31%;left:43%;width:4px;height:4px;animation-delay:-3s}
html.time-aware[data-theme=orbit] .sky-star:nth-of-type(3){top:12%;left:82%;animation-delay:-5s}
html.time-aware[data-theme=orbit] .sky-star:nth-of-type(4){top:41%;left:75%;width:3px;height:3px;animation-delay:-2s}
@media(min-width:701px){
  html.time-aware[data-theme=orbit] .hero-layout .hero-robot .sky-disc,
  html.time-aware[data-theme=orbit] .hero-layout .hero-robot .sky-moon{left:auto;right:15px;top:16px}
  html.time-aware[data-theme=orbit] .sky-star:nth-of-type(1){top:7%;left:19%}
  html.time-aware[data-theme=orbit] .sky-star:nth-of-type(2){top:8%;left:50%}
  html.time-aware[data-theme=orbit] .sky-star:nth-of-type(3){top:6%;left:76%}
  html.time-aware[data-theme=orbit] .sky-star:nth-of-type(4){top:40%;left:90%}
}
@keyframes scene-orbit{to{transform:translate3d(0,-7px,0)}}
@keyframes scene-twinkle{to{opacity:.38;transform:translate3d(3px,-2px,0) rotate(45deg)}}

/* The same card, tab, field, and action anatomy applies to each time palette. */
html[data-theme=orbit] .card{border:1px solid var(--border);background:var(--surface)}
html[data-theme=orbit] #conversation{background:var(--surface);border-color:var(--border);box-shadow:0 8px 22px rgb(16 45 67 / 8%)}
html[data-theme=orbit] #conversation .conversation-view-tabs{background:var(--tabs-bg);border:1px solid var(--border)}
html[data-theme=orbit] #conversation .conversation-view-tabs::before{background:var(--surface);box-shadow:0 1px 5px rgb(16 45 67 / 13%)}
html[data-theme=orbit] #conversation .command-form{background:var(--chat-control)!important;border:1px solid var(--chat-control-border)!important}
html[data-theme=orbit] #conversation .command-form:focus-within{border-color:var(--brand)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
html[data-theme=orbit] #conversation .send-button{background:var(--brand);color:var(--on-brand);border-radius:10px}
html[data-theme=orbit] :is(.button.primary,.mobile-primary-nav button[aria-current=page]){box-shadow:none}
@media(max-width:700px){
  html.time-aware[data-theme=orbit] .hero-robot{min-height:146px}
  html.time-aware[data-theme=orbit] .sky-city{height:60%;opacity:.68}
  html.time-aware[data-theme=orbit] .sky-disc,html.time-aware[data-theme=orbit] .sky-moon{left:53%;width:46px;height:46px}
  html.time-aware[data-theme=orbit] .sky-star:nth-of-type(1){left:45%}
  html.time-aware[data-theme=orbit] .sky-star:nth-of-type(2){left:68%}
  html.time-aware[data-theme=orbit] .sky-star:nth-of-type(3){left:87%}
  html[data-theme=orbit] #conversation .card-header{margin-bottom:12px}
  html[data-theme=orbit] #conversation .conversation-footer .command-form{min-height:48px}
}
html[data-ui-motion=off] .sky-accent *,html[data-ui-motion=gentle] .sky-accent *{animation:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) .sky-accent *{animation:none!important}}

/* One sliding selection surface for settings, module subtabs, and segmented filters. */
:is(.view-tabs,.settings-tabs,.filter-group)[data-motion-switch]{position:relative;isolation:isolate}
:is(.view-tabs,.settings-tabs,.filter-group)[data-motion-switch]::before{
  content:"";position:absolute;top:0;left:0;z-index:0;pointer-events:none;
  width:var(--switch-width);height:var(--switch-height);
  transform:translate3d(var(--switch-x),var(--switch-y),0);
  border-radius:calc(var(--radius-control) - 3px);background:var(--surface);
  box-shadow:0 1px 5px rgb(11 36 84 / 9%);
  transition:transform 220ms cubic-bezier(.23,1,.32,1),width 220ms cubic-bezier(.23,1,.32,1),height 220ms cubic-bezier(.23,1,.32,1)
}
.settings-tabs[data-motion-switch]::before{background:var(--blue-soft)}
:is(.view-tabs,.settings-tabs,.filter-group)[data-motion-switch]>button{position:relative;z-index:1}
:is(.view-tabs,.settings-tabs,.filter-group)[data-motion-switch]>button:is([aria-selected=true],[aria-pressed=true],[aria-checked=true]){background:transparent;box-shadow:none}
:is(.view-tabs,.settings-tabs,.filter-group)[data-motion-switch]>button:is([aria-selected=true],[aria-pressed=true],[aria-checked=true]){color:var(--brand)}
html[data-ui-motion=off] :is(.view-tabs,.settings-tabs,.filter-group)[data-motion-switch]::before{transition:none}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full]) :is(.view-tabs,.settings-tabs,.filter-group)[data-motion-switch]::before{transition:none}}

/* A sticky header must cover content while the page scrolls in every time theme. */
html[data-theme=orbit] .topbar{background:var(--header-bg)}
/* Touch does not leave a full-panel or brand outline behind after a dialog closes. */
html[data-input-mode=pointer] :is(.brand,.workspace>[role=tabpanel],.view-tabs>button,.mobile-primary-nav>button):focus-visible{outline:none}

/* Atelier is an opt-in palette on the existing global component system. */
@property --at-bg-1{syntax:"<color>";inherits:true;initial-value:#f4f1fa}
@property --at-bg-2{syntax:"<color>";inherits:true;initial-value:#fbf7ee}
@property --at-bg-3{syntax:"<color>";inherits:true;initial-value:#fff0c8}
@property --at-glow{syntax:"<color>";inherits:true;initial-value:#fffdf5}
@property --at-surface{syntax:"<color>";inherits:true;initial-value:#ffffff}
@property --at-surface-soft{syntax:"<color>";inherits:true;initial-value:#f6f2f3}
@property --at-ink{syntax:"<color>";inherits:true;initial-value:#242128}
@property --at-muted{syntax:"<color>";inherits:true;initial-value:#645e68}
@property --at-edge{syntax:"<color>";inherits:true;initial-value:#ddd4dd}
@property --at-card-a{syntax:"<color>";inherits:true;initial-value:#e9daf9}
@property --at-card-b{syntax:"<color>";inherits:true;initial-value:#ffe6b4}
html[data-theme=atelier]{
  color-scheme:light;
  --at-bg-1:#ece4f7;--at-bg-2:#f5edf4;--at-bg-3:#fbf0e3;--at-glow:#fff;
  --at-surface:#fffefa;--at-surface-soft:#f6f0f5;--at-ink:#242128;--at-muted:#625b67;--at-edge:#d9ccdd;
  --at-card-a:#d7c4f3;--at-card-b:#f7dcad;
  --brand:#075df0;--brand-hover:#004bcc;--on-brand:#fff;--navy:var(--at-ink);--text:var(--at-ink);
  --muted:var(--at-muted);--background:var(--at-bg-2);--surface:var(--at-surface);--surface-raised:var(--at-surface);
  --surface-soft:var(--at-surface-soft);--header-bg:var(--at-surface);--border:var(--at-edge);
  --blue-soft:#e9edff;--tabs-bg:var(--at-surface-soft);--hero-surface:var(--at-card-a);
  --radius-card:24px;--radius-control:16px;--shadow:0 2px 8px rgb(59 37 74 / 5%),0 14px 32px rgb(59 37 74 / 5%);
  --focus:0 0 0 3px rgb(7 93 240 / 24%);--danger:#b84656;--warning:#88581f;--warning-soft:#fff0d5;
  --at-theme-duration:1600ms;--at-ease:cubic-bezier(.2,0,0,1)
}
html[data-theme=atelier][data-daypart=siang]{
  --at-bg-1:#f4f1fa;--at-bg-2:#fbf7ee;--at-bg-3:#fff0c8;--at-glow:#fffdf5;
  --at-surface:#fffefa;--at-surface-soft:#f6f1e7;--at-ink:#24221e;--at-muted:#615c54;--at-edge:#ded6c8;
  --at-card-a:#eee1fa;--at-card-b:#f8df9d
}
html[data-theme=atelier][data-daypart=sore]{
  --at-bg-1:#f1dfe8;--at-bg-2:#f7decf;--at-bg-3:#f5d1a7;--at-glow:#ffe9d2;
  --at-surface:#fffaf5;--at-surface-soft:#f8ebe4;--at-ink:#2b2226;--at-muted:#6c565b;--at-edge:#e3c9c2;
  --at-card-a:#e8c5dc;--at-card-b:#f3cb8e
}
html[data-theme=atelier][data-daypart=malam]{
  color-scheme:dark;
  --at-bg-1:#171519;--at-bg-2:#211d22;--at-bg-3:#302724;--at-glow:#655048;
  --at-surface:#29252b;--at-surface-soft:#342e35;--at-ink:#f6f1ef;--at-muted:#c0b5bb;--at-edge:#554a53;
  --at-card-a:#443746;--at-card-b:#5b463d;
  --brand:#91bcff;--brand-hover:#bdd6ff;--on-brand:#0b2345;--blue-soft:#3b3653;
  --danger:#ffacb5;--warning:#f6d498;--warning-soft:#4b3933;
  --shadow:inset 0 1px 0 rgb(255 255 255 / 6%),0 12px 28px rgb(0 0 0 / 10%)
}
html[data-theme=atelier][data-atelier-transition=manual]{--at-theme-duration:600ms}
html[data-theme=atelier][data-atelier-ready=true]{
  transition:--at-bg-1 var(--at-theme-duration) var(--at-ease),--at-bg-2 var(--at-theme-duration) var(--at-ease),
    --at-bg-3 var(--at-theme-duration) var(--at-ease),--at-glow var(--at-theme-duration) var(--at-ease),
    --at-surface var(--at-theme-duration) var(--at-ease),--at-surface-soft var(--at-theme-duration) var(--at-ease),
    --at-ink var(--at-theme-duration) var(--at-ease),--at-muted var(--at-theme-duration) var(--at-ease),
    --at-edge var(--at-theme-duration) var(--at-ease),--at-card-a var(--at-theme-duration) var(--at-ease),
    --at-card-b var(--at-theme-duration) var(--at-ease)
}
html[data-theme=atelier] body{background:var(--at-bg-2)}
html[data-theme=atelier] .time-scene{
  display:block;min-height:100lvh;
  background:radial-gradient(ellipse 60% 48% at 82% 8%,color-mix(in srgb,var(--at-glow) 56%,transparent),transparent 85%),
    linear-gradient(180deg,var(--at-bg-1),var(--at-bg-2) 48%,var(--at-bg-3));
}
html[data-theme=atelier] :is(.topbar,.mobile-primary-nav){background:color-mix(in srgb,var(--at-surface) 94%,transparent);border-color:var(--border)}
html[data-theme=atelier] .topbar{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
html[data-theme=atelier] .brand-logo{background:#fff}
html[data-theme=atelier] :is(.card,#conversation,.dialog){background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}
html[data-theme=atelier] .workspace{background:transparent;border:0;box-shadow:none;padding-inline:0}
html[data-theme=atelier] .workspace>.tabs{background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--border);border-radius:999px;padding:4px}
html[data-theme=atelier] .main-tabs>.tab,html[data-theme=atelier] .tabs>.tab-add{border-radius:999px}
html[data-theme=atelier] .main-tabs>.tab[aria-selected=true]{background:#242128;color:#fff;box-shadow:none}
html[data-theme=atelier][data-daypart=malam] .main-tabs>.tab[aria-selected=true]{background:#e9c66f;color:#211b21}
html[data-theme=atelier] .hero-robot{
  overflow:hidden;border:1px solid var(--border);border-radius:28px;
  background:linear-gradient(150deg,var(--at-card-a),var(--at-card-b));box-shadow:var(--shadow)
}
html[data-theme=atelier] .hero-robot #heroTitle{color:var(--at-ink);font-weight:500;letter-spacing:-.035em}
html[data-theme=atelier] .sky-accent{display:block;left:auto;right:14px;top:12px;width:54px;height:54px;opacity:.72}
html[data-theme=atelier] .sky-city{display:none!important}
html[data-theme=atelier] .sky-disc{left:13px;top:10px;width:27px;height:27px;background:#f5d279;outline:7px solid rgb(255 242 192 / 28%)}
html[data-theme=atelier] .sky-moon{display:none!important}
html[data-theme=atelier][data-daypart=malam] .sky-disc{background:#f1e6cd;box-shadow:inset -11px 0 0 var(--at-card-a);outline:none}
html[data-theme=atelier][data-daypart=malam] .sky-star{display:block}
html[data-theme=atelier] :is(.conversation-view-tabs,.view-tabs,.filter-group){border-color:var(--border)}
html[data-theme=atelier] #conversation .conversation-view-tabs{background:var(--surface-soft);border:1px solid var(--border);border-radius:999px}
html[data-theme=atelier] #conversation .conversation-view-tabs::before{background:var(--surface);border-radius:999px}
html[data-theme=atelier] #conversation .conversation-view-tabs button{border-radius:999px}
html[data-theme=atelier] :is(.input,.command-form){background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:var(--radius-control)}
html[data-theme=atelier] :is(.button.primary,.send-button){background:var(--brand);color:var(--on-brand);box-shadow:none}
html[data-theme=atelier] :is(.button,.icon-button,.filter-button){border-radius:999px}
html[data-theme=atelier] .stat-card.emphasis{background:linear-gradient(145deg,var(--at-card-a),var(--at-card-b));border-color:var(--border)}
html[data-theme=atelier] .stat-card.emphasis :is(.stat-label,.stat-value,small){background:transparent;color:var(--at-ink)}
html[data-theme=atelier] :is(.chat-message,.agenda-row,.shopping-history-row){border-color:var(--border)}
html[data-theme=atelier] :is(.settings-tabs,.dialog-header,.dialog-footer){background:var(--surface);border-color:var(--border)}
html[data-theme=atelier] :is(.calendar-day[aria-selected=true],.calendar-day[aria-current=date]){border-radius:var(--radius-inset)}
html[data-theme=atelier][data-daypart=malam] .calendar-day[aria-selected=true]{background:#e9c66f;color:#211b21}
html[data-theme=atelier] .theme-picker>button[data-theme=atelier] .theme-preview{background:linear-gradient(135deg,#d7c4f3 8%,#f5dcae 86%);border-color:#bdaac2}
.atelier-time-control{display:grid;gap:10px;margin-top:14px}
.atelier-time-control>strong{font-size:14px;font-weight:600}
.atelier-time-options{display:flex;flex-wrap:wrap;gap:8px}
.atelier-time-options button{min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font:600 13px/1.3 var(--font-body)}
.atelier-time-options button[aria-checked=true]{border-color:var(--brand);background:var(--blue-soft);color:var(--brand)}
.atelier-time-options button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:700px){
  .theme-picker,.theme-picker.theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-theme=atelier] .mobile-primary-nav{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:auto;min-height:62px;border:1px solid var(--border);border-radius:999px;padding:5px 7px;box-shadow:0 10px 30px rgb(38 28 45 / 16%);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  html[data-theme=atelier] .mobile-primary-nav button{min-height:50px;border-radius:999px}
  html[data-theme=atelier] .mobile-primary-nav[data-motion-switch]::before{border-radius:999px;background:var(--blue-soft)}
  html[data-theme=atelier] .workspace{padding-bottom:10px}
  html[data-theme=atelier] .hero-robot{border-radius:24px}
  html[data-theme=atelier] #conversation{border-radius:24px}
}
@media(max-width:350px){.atelier-time-options button{padding-inline:10px;font-size:12px}}

/* Shared segmented-control geometry, used by every module. */
:is(.view-tabs,.settings-tabs,.filter-group[role="group"],.filter-group[role="radiogroup"]){
  --segment-padding:4px;--segment-radius:20px;
  box-sizing:border-box;max-width:100%;padding:var(--segment-padding);gap:0;
  border:1px solid var(--border);border-radius:var(--segment-radius);background:var(--tabs-bg);
}
:is(.view-tabs,.settings-tabs,.filter-group[role="group"],.filter-group[role="radiogroup"])>button{
  box-sizing:border-box;min-width:0;min-height:44px;padding:8px 12px;
  border:0;border-radius:calc(var(--segment-radius) - var(--segment-padding));
  background:transparent;color:var(--muted);font-size:13px;line-height:1.25;
}
:is(.view-tabs,.settings-tabs,.filter-group[role="group"],.filter-group[role="radiogroup"])[data-motion-switch]::before{
  border-radius:calc(var(--segment-radius) - var(--segment-padding));
}
.footer-tab-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 16px}
.footer-tab-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:8px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-raised);color:var(--text);font:600 13px/1.3 var(--font-body);text-align:left;cursor:pointer}
.footer-tab-option[aria-pressed="true"]{border-color:var(--brand);background:var(--blue-soft)}
.footer-tab-option:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.footer-tab-check{font-size:18px;line-height:1;color:var(--brand)}

/* Shared settings actions and statement status anatomy. */
#settingsDialog .setting-subsection{display:grid;gap:12px;min-width:0;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
#settingsDialog .setting-subsection>strong{font-size:14px;font-weight:600;line-height:1.4}
#settingsDialog .setting-subsection>p{margin:-8px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
#settingsDialog .setting-subsection .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
#settingsDialog .setting-subsection .field{min-width:0}
#settingsDialog .setting-subsection .input{width:100%;min-width:0}
.setting-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;background:none;border:0;padding:0}
.setting-actions>.button{min-height:44px}
@media(max-width:540px){#settingsDialog .setting-subsection .form-grid{grid-template-columns:1fr}.setting-actions>.button{flex:1 1 140px}}

/* Shared application lock: one accessible card for setup, unlock and changes. */
html[data-app-lock] { overflow:hidden; }
html[data-app-lock] .app-shell,
html[data-app-lock] .time-scene,
html[data-app-lock] #nativeTitlebar,
html[data-app-lock] #nativeFullscreenExit,
html[data-app-lock] #toast,
html[data-app-lock] body > dialog:not(#appLockScreen):not(#accountPinScreen) { visibility:hidden; pointer-events:none; }
.app-lock-screen:not([hidden]) { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; width:100%; max-width:none; height:100%; max-height:none; margin:0; border:0; overflow:auto; padding:24px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)); background:var(--background); }
.app-lock-card { width:min(100%,420px); display:grid; gap:16px; padding:clamp(22px,5vw,34px); text-align:left; }
.app-lock-card>img { border-radius:var(--radius-control); }
.app-lock-card h2 { font-size:clamp(22px,5vw,28px); }
.app-lock-card>p { color:var(--muted); }
.app-lock-form { display:grid; gap:14px; }
.app-lock-form .field { display:grid; gap:7px; }
.app-lock-form .field[hidden],.app-lock-device-option[hidden] { display:none; }
.app-lock-form .button,.app-lock-card>.button { width:100%; min-height:48px; }
.app-lock-device-option { display:flex; align-items:center; gap:10px; line-height:1.4; }
.app-lock-device-option input { width:18px; height:18px; accent-color:var(--brand); }
.app-lock-form .form-error:empty { display:none; }
.pin-progress{width:100%;height:var(--progress-height);accent-color:var(--brand);border-radius:var(--radius-control)}
.pin-progress[hidden]{display:none}
.app-lock-settings>small { display:block; margin-top:10px; color:var(--muted); }

/* Goal checklist uses the same card, progress and form tokens as numeric goals. */
.goal-checklist-card { display:grid; gap:12px; }
.goal-view-all{justify-self:start;min-height:44px}
.goal-details-dialog{width:min(680px,calc(100vw - 24px));max-width:680px;max-height:calc(100dvh - 24px)}
.goal-details-list{gap:8px;margin-top:16px}
.goal-details-list .goal-step{min-height:48px;padding:10px 12px}
.goal-checklist-card .goal-title-line h3 { font-size:17px; }
.goal-checklist-count { color:var(--muted); font-size:13px; }
.goal-checklist { display:grid; gap:4px; margin:2px 0 0; padding:0; list-style:none; }
.goal-step { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:7px 8px; border:0; border-radius:var(--radius-inset); background:transparent; color:var(--text); text-align:left; }
.goal-step:hover { background:var(--blue-soft); }
.goal-step-box { display:grid; flex:none; place-items:center; width:24px; height:24px; border:1.5px solid var(--border); border-radius:7px; color:transparent; }
.goal-step-box .icon { width:16px; height:16px; }
.goal-step[aria-checked="true"] .goal-step-box { border-color:var(--brand); background:var(--brand); color:#fff; }
.goal-step[aria-checked="true"]>span:last-child { color:var(--muted); text-decoration:line-through; }
/* Shared day navigation follows the same header action anatomy as month controls. */
.period-actions { flex-wrap:nowrap; }
.period-actions>.button { flex:none; white-space:nowrap; }
.panel-date-control { display:inline-grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; flex:0 1 300px; min-width:0; min-height:44px; padding:3px; border:1px solid var(--border); border-radius:var(--radius-control); background:var(--surface); }
.panel-date-control .icon-button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:var(--radius-inset); background:transparent; color:var(--text); }
.panel-date-control .icon-button:hover { background:var(--surface-soft); }
.panel-date-control .input.themed-picker-trigger { width:100%; min-width:0; min-height:44px; padding:8px; border:0; border-radius:var(--radius-inset); background:transparent; font-weight:600; }
.panel-date-control .input.themed-picker-trigger:hover { background:var(--surface-soft); }
.todo-add { padding-bottom:16px; border-bottom:1px solid var(--border); }
.todo-add-row { display:flex; gap:10px; }
.todo-add-row .input { flex:1; min-width:0; font-size:16px; }
.todo-add-row .button { flex:none; min-height:44px; }
#todoStatus { margin:8px 0 0; color:var(--muted); font-size:13px; }
#todoStatus:empty { display:none; }
.todo-board .card-header { margin-bottom:14px; }
.todo-board h4 { margin:16px 0 8px; color:var(--muted); font-size:13px; font-weight:700; }
.todo-list { gap:0; }
.todo-row { display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:center; gap:4px; min-width:0; border-top:1px solid var(--border); }
.todo-row .goal-step { min-width:0; min-height:52px; border-radius:var(--radius-inset); cursor:pointer; }
.todo-row-title { min-width:0; overflow-wrap:anywhere; }
.todo-row .icon-button { width:44px; height:44px; }
@media(max-width:700px){.period-actions{flex-wrap:wrap}.panel-date-control{flex:1 1 100%;max-width:100%}}
@media(max-width:540px){.todo-add-row .button{padding-inline:12px}}
@media(max-width:540px){.goal-checklist-card{padding:18px}.goal-checklist-card .goal-title-line{align-items:flex-start}}
.statement-match{font-size:12px;font-weight:600;line-height:1.4;color:var(--brand)}
.statement-row[data-statement-status=review] .statement-match{color:var(--warning,var(--text))}
.statement-row[data-statement-status=matched]{opacity:.7}
.statement-row[data-statement-status=matched] .statement-match{color:var(--muted)}
.statement-row:focus-within{border-color:var(--brand)}

/* One page background runs under the draggable native controls. */
html[data-native-desktop] .native-titlebar{background:transparent;border:0;box-shadow:none}
html[data-native-fullscreen] .native-titlebar{display:none}
html[data-native-fullscreen] .topbar{top:0}
.native-fullscreen-exit{display:none}
html[data-native-fullscreen] .native-fullscreen-exit{position:fixed;top:12px;right:12px;z-index:100;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font:600 12px var(--font-body);box-shadow:var(--shadow-card);cursor:pointer}
html[data-native-fullscreen] .native-fullscreen-exit:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* Sleep is a closed-eye pose with a nearby cue, never an object on the stand. */
:is(.robot-companion,.desktop-orb)[data-pet-activity=sleep]>.pet-activity{inset:0;width:100%;height:100%;filter:none}
.pet-sleep-scene{position:absolute;top:3%;right:4%;bottom:auto;left:auto;width:auto;height:auto;display:flex;align-items:baseline;gap:1px;color:var(--robot-light,#9ec4ff);font:700 clamp(12px,1.6vw,18px)/1 var(--font-body);text-shadow:0 2px 6px #09245588}
.pet-sleep-scene span:first-child{font-size:.75em;translate:0 -5px}
.pet-sleep-scene span:last-child{font-size:.55em;translate:0 -9px}
.robot-companion[data-pet-activity=sleep] .robot-eye{transform:scaleY(.12);transform-origin:center;transition:transform 400ms ease}
.desktop-orb[data-pet-activity=sleep] .orb-eyes{transform:scaleY(.12)!important}
html[data-ui-motion=off] .robot-companion[data-pet-activity=sleep] .robot-eye{transition:none}
.extra-card[hidden]{display:none!important}
.extra-catalog-title{margin:20px 2px 10px;font:600 17px/1.3 var(--font-body);color:var(--text)}
.mobile-more-destinations:not([hidden]){display:grid;gap:8px;margin:8px 0 16px}
.mobile-more-destination{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--border);border-radius:16px;background:var(--surface-raised);color:var(--text);font:600 14px/1.3 var(--font-body);text-align:left;cursor:pointer}
.mobile-more-destination .icon{width:20px;height:20px;flex:none;color:var(--brand)}
.mobile-more-destination span{flex:1}
.mobile-more-destination:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.more-download-action{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin-top:18px;padding:10px 14px;border:1px solid var(--border);border-radius:16px;background:var(--surface-raised);color:var(--text);font:600 14px/1.3 var(--font-body);text-align:left;cursor:pointer}
.more-download-action .icon{width:20px;height:20px;flex:none;color:var(--brand)}
.more-download-action .icon:last-child{margin-left:auto}
.more-download-action:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:700px){.mobile-primary-nav>.desktop-extra-destination{display:none!important}}
@media(max-width:700px){.mobile-primary-nav{grid-template-columns:repeat(var(--footer-count,5),minmax(0,1fr))}}
html[data-ui-motion=off][data-theme=atelier],html[data-ui-motion=off][data-theme=atelier] .time-scene{transition:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-ui-motion=full])[data-theme=atelier]{--at-theme-duration:300ms}html:not([data-ui-motion=full])[data-theme=atelier] .sky-accent *{animation:none!important}}

/* Shared themed select and date controls; the native source keeps form values. */
.themed-picker-source{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;clip-path:inset(50%)!important;pointer-events:none!important}
.input.themed-picker-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.themed-picker-trigger:hover{border-color:var(--brand)}
.themed-picker-trigger:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.themed-picker-trigger:disabled{opacity:.55;cursor:not-allowed}
.themed-picker-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.themed-picker-empty .themed-picker-value{color:var(--muted)}
.themed-picker-chevron,.themed-picker-calendar{flex:none;color:var(--muted);font-size:20px;line-height:1}
.themed-picker-calendar{font-size:19px}
.themed-picker-dialog{width:min(380px,calc(100vw - 16px));max-height:min(620px,calc(100dvh - 24px));padding:0;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface);color:var(--text);box-shadow:0 24px 70px rgb(0 0 0 / .24)}
.themed-picker-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.themed-picker-dialog::backdrop{background:rgb(0 0 0 / .42);backdrop-filter:blur(3px)}
.themed-picker-head{display:flex;flex:none;align-items:center;gap:4px;min-height:60px;padding:10px 14px 10px 18px;border-bottom:1px solid var(--border)}
.themed-picker-head strong{flex:1;min-width:0;font-size:16px;line-height:1.35}
.themed-picker-manage{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:var(--radius-control);background:transparent;color:var(--muted);cursor:pointer}
.themed-picker-manage[aria-pressed=true]{background:var(--blue-soft);color:var(--brand)}
.themed-picker-manage .icon,.themed-choice-action .icon{width:18px;height:18px}
.themed-picker-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:var(--radius-control);background:transparent;color:var(--muted);font:400 27px/1 var(--font-body);cursor:pointer}
.themed-picker-close:hover,.themed-picker-manage:hover{background:var(--surface-raised);color:var(--text)}
.themed-picker-close:focus-visible,.themed-picker-manage:focus-visible,.themed-picker-option:focus-visible,.themed-calendar button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.themed-picker-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:10px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
.themed-picker-options{display:grid;gap:3px}
.themed-picker-option{display:block;width:100%;min-height:44px;padding:10px 14px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--text);font:500 14px/1.4 var(--font-body);text-align:left;cursor:pointer}
.themed-picker-option:hover{background:var(--surface-raised)}
.themed-picker-option[aria-pressed=true]{border-color:var(--brand);background:var(--blue-soft);font-weight:700}
.themed-picker-option:disabled{color:var(--muted);opacity:.55;cursor:not-allowed}
.themed-picker-option:focus-visible,.themed-choice-action:focus-visible,.themed-choice-add:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--brand)}
.themed-choice-manager{display:grid;gap:10px;min-width:0}
.themed-choice-list{display:grid;gap:4px;min-width:0;padding:2px}
.themed-choice-row{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;align-items:center;min-width:0;border-radius:var(--radius-inset)}
.themed-choice-row.is-managing{grid-template-columns:minmax(0,1fr) repeat(4,44px)}
.themed-choice-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px 8px 10px 12px;font-size:14px;font-weight:600}
.themed-choice-row .themed-picker-option{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.themed-choice-action{display:grid;place-items:center;width:44px;min-height:44px;padding:6px;border:0;border-radius:var(--radius-control);background:transparent;color:var(--muted);font:600 18px/1 var(--font-body);cursor:pointer}
.themed-choice-action:hover{background:var(--surface-raised);color:var(--text)}
.themed-choice-action:disabled{opacity:.3;cursor:not-allowed}
.themed-choice-action[data-action=hapus]{color:var(--danger)}
.themed-choice-add{width:100%;min-height:44px}
.themed-choice-editor,.themed-choice-confirm{display:grid;gap:10px;padding:14px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface-raised)}
.themed-choice-editor[hidden],.themed-choice-confirm[hidden]{display:none}
.themed-choice-confirm p{margin:0;color:var(--text);font-size:14px;line-height:1.45}
.themed-choice-confirm [data-confirm-delete]{background:var(--danger);color:#fff}
.themed-choice-confirm [data-confirm-delete]:hover{filter:brightness(.92)}
.themed-choice-editor label{display:grid;gap:7px;font-size:14px;font-weight:600;color:var(--text)}
.themed-choice-editor .input{width:100%;min-width:0;min-height:44px;border-radius:var(--radius-control)}
.themed-choice-error{min-height:0;margin:0;color:var(--danger);font-size:12px}
.themed-choice-error:empty{display:none}
.themed-choice-status{margin:0;color:var(--danger);font-size:12px}
.themed-choice-status:empty{display:none}
.themed-choice-actions{display:flex;justify-content:flex-end;gap:8px}
.themed-choice-actions .button{min-height:44px}
.transaction-side .transaction-edit{width:44px;height:44px;min-width:44px;padding:10px;color:var(--muted)}
.transaction-side .transaction-edit:hover{color:var(--text);background:var(--surface-raised)}
.goal-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.themed-calendar{display:grid;gap:10px}
.themed-calendar-nav{display:grid;grid-template-columns:44px 44px minmax(0,1fr) 44px 44px;align-items:center;gap:2px}
.themed-calendar-nav strong{overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.themed-calendar-nav button,.themed-calendar-actions button{min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--text);font:600 18px/1 var(--font-body);cursor:pointer}
.themed-calendar-nav button:hover,.themed-calendar-actions button:hover{background:var(--surface-raised)}
.themed-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.themed-calendar-weekday{display:grid;place-items:center;min-height:30px;color:var(--muted);font-size:11px}
.themed-calendar-grid button{min-width:0;min-height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--text);font:500 13px/1 var(--font-body);cursor:pointer}
.themed-calendar-grid button:hover{background:var(--surface-raised)}
.themed-calendar-grid button[aria-pressed=true]{background:var(--brand);color:var(--on-brand);font-weight:700}
.themed-calendar-grid button:disabled{color:var(--muted);opacity:.35;cursor:not-allowed}
.themed-calendar-actions{display:flex;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid var(--border)}
.themed-calendar-actions button{padding:0 12px;font-size:13px;color:var(--brand)}
.themed-calendar-actions button:disabled{opacity:.4;cursor:not-allowed}
html[data-theme=atelier] :is(.feature-entry-form,.dialog,.settings-section) .themed-picker-trigger{border-radius:16px;background:var(--surface-3);color:var(--text-1)}
html[data-theme=atelier] #settingsDialog .setting-row .themed-picker-trigger{flex:1 1 auto}
@media(max-width:360px){.themed-picker-head{padding-left:14px}.themed-picker-body{padding:8px}.themed-calendar-nav{grid-template-columns:40px 40px minmax(0,1fr) 40px 40px}.themed-calendar-nav button{min-height:44px}}
.goal-step-editor{display:grid;gap:8px;margin-top:8px}
.goal-step-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}
.goal-step-row:first-child{grid-template-columns:44px minmax(0,1fr)}
.goal-step-draft-hit{position:relative;display:grid;place-items:center;width:44px;height:44px;cursor:pointer}
.goal-step-draft-check{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.goal-step-draft-hit span{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid var(--border);border-radius:7px;color:transparent;pointer-events:none}
.goal-step-draft-check:checked+span{border-color:var(--brand);background:var(--brand);color:#fff}
.goal-step-draft-check:focus-visible+span{outline:2px solid var(--brand);outline-offset:3px}
.goal-step-row .input{width:100%;min-width:0;min-height:44px}
.goal-step-remove{width:44px;height:44px;border:1px solid var(--border);border-radius:var(--radius-control,14px);background:var(--surface-2,var(--surface));color:var(--text-1,var(--text));font-size:22px;line-height:1;cursor:pointer}
.goal-step-remove:hover{background:var(--surface-3,var(--blue-soft))}
.goal-step-remove:focus-visible{outline:2px solid var(--accent,var(--brand));outline-offset:2px}
.goal-step-add{margin-top:8px;min-height:44px;justify-self:start}

/* One motion scale for the desktop companion and other anchored panels. */
:root{--motion-panel:240ms;--motion-entrance:280ms;--motion-ease-out:cubic-bezier(.23,1,.32,1)}
.desktop-companion-page .desktop-companion{opacity:0;transform:translateY(8px) scale(.97);transition:opacity var(--motion-entrance) var(--motion-ease-out),transform var(--motion-entrance) var(--motion-ease-out)}
html[data-companion-ready=true] .desktop-companion{opacity:1;transform:none}
.desktop-companion-page .companion-menu{display:grid;gap:10px;align-self:flex-end;width:min(268px,100%);box-sizing:border-box;padding:14px;border:1px solid var(--border,#dce7eb);border-radius:18px;background:var(--surface,#fff);color:var(--text,#203345);box-shadow:0 18px 36px rgb(14 30 53 / 18%);opacity:0;transform:translateY(8px) scale(.95);transform-origin:85% 100%;pointer-events:none;transition:opacity var(--motion-panel) var(--motion-ease-out),transform var(--motion-panel) var(--motion-ease-out)}
.desktop-companion-page .companion-menu[data-open=true]{opacity:1;transform:none;pointer-events:auto}
.desktop-companion-page .companion-menu[hidden]{display:none}
.companion-chat-head{display:flex;align-items:center;gap:9px;min-width:0}
.companion-chat-head>div{display:grid;gap:1px;min-width:0;flex:1}
.companion-chat-head strong{font-size:13px;line-height:1.2}
.companion-chat-head small{font-size:11px;color:var(--muted,#617482)}
.companion-chat-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:11px;background:#edf4ff;color:#1d5ee5;font-size:17px;font-weight:800}
.companion-chat-hint{margin:0;color:var(--muted,#617482);font-size:12px;line-height:1.4}
.companion-chat-form{display:flex;align-items:center;gap:4px;min-height:46px;padding:3px 4px 3px 12px;border:1px solid var(--border,#dce7eb);border-radius:16px;background:var(--surface,#fff)}
.companion-chat-form:focus-within{border-color:var(--brand,#2f71e8);box-shadow:0 0 0 3px rgb(47 113 232 / 13%)}
.companion-chat-form input{min-width:0;width:100%;height:38px;padding:0;border:0;outline:0;background:transparent;color:var(--text,#203345);font:500 12px var(--font-body)}
.companion-chat-form input:focus-visible{outline:0;box-shadow:none}
.companion-chat-form input::placeholder{color:var(--muted,#617482)}
.companion-chat-send,.companion-chat-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:13px;background:transparent;color:var(--text,#203345);cursor:pointer}
.companion-chat-send{width:38px;height:38px;border-radius:12px;background:var(--brand,#2f71e8);color:#fff}
.desktop-companion-page .companion-menu .companion-chat-icon{flex:0 0 44px;width:44px;min-height:44px;height:44px;padding:0;border-radius:13px;background:transparent;color:var(--text,#203345)}
.desktop-companion-page .companion-menu .companion-chat-send{flex:0 0 38px;width:38px;min-height:38px;height:38px;padding:0;border-radius:12px;background:var(--brand,#2f71e8);color:#fff}
.companion-chat-icon svg,.companion-chat-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.companion-chat-actions{display:flex;align-items:center;gap:5px;padding-top:5px;border-top:1px solid var(--border,#dce7eb)}
.companion-chat-actions .companion-chat-icon:last-child{margin-left:auto}
.companion-chat-icon:focus-visible,.companion-chat-send:focus-visible,.companion-options:focus-visible{outline:2px solid var(--brand,#2f71e8);outline-offset:2px}
.desktop-companion-page .companion-options{display:grid;place-items:center;line-height:1;font-size:23px}
.desktop-orb[data-character=cenbot][data-menu-open=true] .orb-eyes{animation:none!important}
@media(hover:hover) and (pointer:fine){.companion-chat-icon:hover{background:var(--blue-soft,#eaf1ff)}.companion-chat-send:hover{filter:brightness(1.06)}}
@media(prefers-reduced-motion:reduce){.desktop-companion-page .desktop-companion{transform:none;transition:opacity 180ms var(--motion-ease-out)}.desktop-companion-page .companion-menu{transform:none;transition:opacity 180ms var(--motion-ease-out)}}
html[data-ui-motion=off] .desktop-companion-page .desktop-companion,html[data-ui-motion=off] .desktop-companion-page .companion-menu{transition:none;transform:none}

/* Shared finance rows and category detail behavior. */
.transaction-actions{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.finance-ratio-list li{display:block}
.finance-category-button{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:5px 9px;width:100%;min-height:44px;padding:5px 7px;border:1px solid transparent;border-radius:var(--radius-inset);background:transparent;color:var(--text);text-align:left;font:inherit;cursor:pointer}
.finance-category-button:hover{background:var(--surface-soft);border-color:var(--border)}
.finance-category-button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.finance-category-button small{grid-column:2 / -1;color:var(--muted)}
.category-breakdown-row .finance-category-button{grid-template-columns:minmax(0,1fr) auto;min-height:44px}
.category-breakdown-row .finance-category-button small{grid-column:1 / -1}
.category-transaction-list{display:grid;gap:0}
.category-transaction-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 0;border-bottom:1px solid var(--border)}
.category-transaction-row:last-child{border-bottom:0}
.category-transaction-row>span{display:grid;gap:2px;min-width:0}
.category-transaction-row strong{overflow-wrap:anywhere}
.category-transaction-row small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.category-transaction-row b{flex:none;font-variant-numeric:tabular-nums}
.theme-picker>button[data-theme=orbit] .theme-preview{background:radial-gradient(circle at 26% 39%,#fff1bc 0 5px,transparent 5.5px),radial-gradient(circle at 76% 56%,#d9e9ff 0 4px,transparent 4.5px),linear-gradient(115deg,#f0dbb1,#90afd3 52%,#263b68);border-color:var(--border)}
@media(max-width:700px){
 .transaction-row.compact-data-row{grid-template-columns:32px minmax(0,1fr) auto!important;align-items:start;gap:8px;padding:12px 0}
 .transaction-row .item-icon{margin-top:4px}
 .transaction-side{grid-column:3;display:grid;justify-items:end;gap:2px;min-width:max-content}
 .transaction-side .money{font-size:12px;line-height:1.45}
 .transaction-actions{display:flex;gap:0}
 .transaction-actions .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:12px}
 .category-transaction-row{align-items:flex-start}
 .category-transaction-row b{font-size:12px}
}
@media(max-width:350px){.transaction-row.compact-data-row{grid-template-columns:28px minmax(0,1fr) auto!important}.transaction-side{grid-column:3;justify-content:initial}}
