:root {
  font-family: "DM Sans", sans-serif;
  color: #18252c;
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #18252c;
  --muted: #586970;
  --line: #d8e2e5;
  --paper: #ffffff;
  --green: #146b5c;
  --mint: #d9eee8;
  --coral: #d5654b;
  --gold: #e4a934;
  --canvas: #f2f6f7;
}

body { background: var(--canvas); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; width: 230px; flex-direction: column; overflow-y: auto; padding: 32px 22px 24px; background: #fffefa; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px 12px 12px 4px; background: var(--green); color: white; font: 800 19px Manrope, sans-serif; }
.brand-light { color: #54746c; font-weight: 500; }
.nav-label, .eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; }
.nav-label { margin: 52px 0 12px 12px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #52636a; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease; }
.nav-link:hover, .nav-link.active { background: var(--mint); color: var(--green); }
.nav-link.active { font-weight: 700; }
.nav-icon { display: inline-grid; width: 18px; place-items: center; font-size: 17px; }
.sidebar-bottom { display: grid; gap: 16px; margin-top: auto; }
.sidebar-usage-guide { width: 100%; margin-top: 18px; padding: 10px 12px; border: 1px solid #e4e8df; border-radius: 6px; background: #f7f8f3; color: #405849; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.usage-guide-dialog[open] { display: grid; gap: 14px; }
.usage-guide-dialog .dialog-heading { margin: 0; }
.usage-guide-dialog p { margin: 0; color: #59665b; font-size: 13px; line-height: 1.65; }
.sidebar-note { display: flex; align-items: center; gap: 9px; color: #7c857c; font-size: 12px; }
.note-dot, .online-dot { width: 8px; height: 8px; border-radius: 50%; background: #72a581; }
.text-button { justify-self: start; padding: 0; border: 0; background: none; color: #8b9389; font-size: 12px; cursor: pointer; }
.text-button:hover { color: var(--ink); }

.main-content { max-width: 1510px; margin-left: 230px; padding: 0 48px 56px; }
.market-ticker { position:sticky; top:0; z-index:3; max-width:100%; overflow:hidden; border-bottom:1px solid var(--line); background:var(--paper); color:var(--ink); }
.market-ticker-track { display:flex; width:max-content; animation:market-ticker-scroll 38s linear infinite; }
.market-ticker-group { display:flex; flex:none; align-items:center; }
.market-ticker-item { display:flex; min-height:44px; align-items:center; gap:7px; padding:5px 22px; white-space:nowrap; font-size:12px; font-variant-numeric:tabular-nums; }
.market-ticker-item + .market-ticker-item { border-left:1px solid var(--line); }
.market-ticker-label { color:var(--green); font-weight:700; }
.market-ticker-item strong { font-size:13px; }
.market-ticker-change { font-size:10px; font-weight:700; font-variant-numeric:tabular-nums; }
.market-ticker-item[data-trend="up"] .market-ticker-change { color:var(--green); }
.market-ticker-item[data-trend="down"] .market-ticker-change { color:#b23a3a; }
.market-ticker-item[data-trend="flat"] .market-ticker-change { color:var(--muted); }
.market-ticker-item small { color:var(--muted); font-size:10px; }
@media (hover:hover) and (pointer:fine) { .market-ticker:hover .market-ticker-track, .market-ticker:focus-within .market-ticker-track { animation-play-state:paused; } }
@keyframes market-ticker-scroll { to { transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce) { .market-ticker { overflow-x:auto; } .market-ticker-track { animation:none; } .market-ticker-group[aria-hidden="true"] { display:none; } }
.tools-section-nav { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 18px; }
.tools-section-nav a { padding:7px 10px; border:1px solid var(--line); border-radius:6px; color:#52636a; font-size:11px; text-decoration:none; }
.tools-section-nav a:hover { background:var(--mint); color:var(--green); }
.topbar { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 16px; }
.date-stack { display: grid; gap: 4px; min-width: 0; }
.date-label { color: #34464d; font-size: 12px; font-weight: 700; }
.live-clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: #146b5c; font-variant-numeric: tabular-nums; }
.live-clock time { font-size: 15px; font-weight: 700; }
.live-clock span { color: #34464d; font-size: 11px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.voice-output-control { display:inline-flex; min-width:38px; min-height:36px; align-items:center; justify-content:center; gap:5px; padding:0 7px; border:1px solid var(--line); border-radius:7px; color:var(--green); cursor:pointer; }
.voice-output-control input { width:16px; height:16px; margin:0; accent-color:var(--green); cursor:pointer; }
.voice-output-control span[aria-hidden] { font-size:14px; }
.language-picker select { height: 36px; padding: 0 8px; border: 0; outline-color: var(--green); background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.button:hover, .icon-button:hover, .send-button:hover { transform: translateY(-1px); }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { background: #f4f8f8; }
.button-dark { background: var(--green); color: white; }
.button-dark:hover { background: #0d5549; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f8ddd4; color: #873d2d; font-size: 14px; font-weight: 700; cursor: pointer; }

.greeting-band { position: relative; display: flex; min-height: 206px; align-items: center; justify-content: space-between; overflow: hidden; padding: 34px 42px; border-radius: 8px; background: var(--mint); animation: arrive .45s ease both; }
.greeting-band::after { position: absolute; top: -68px; right: 80px; width: 250px; height: 250px; border: 1px solid rgba(20, 107, 92, .16); border-radius: 50%; content: ""; }
.greeting-copy { position: relative; z-index: 1; max-width: 580px; }
.greeting-copy .eyebrow { color: #65836e; }
.greeting-band h1 { margin: 12px 0 8px; font: 600 32px Manrope, sans-serif; letter-spacing: 0; }
.greeting-text { max-width: 460px; margin: 0; color: #627166; font-size: 14px; line-height: 1.65; }
.greeting-attribution { max-width: 560px; margin: 5px 0 0; color: #708077; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.voice-button { position: relative; z-index: 1; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(53, 93, 73, .22); border-radius: 50%; background: rgba(255,255,255,.54); color: var(--green); font-size: 20px; cursor: pointer; }
.sun-stamp { position: absolute; right: 105px; bottom: -31px; color: rgba(225, 160, 70, .52); font-size: 190px; line-height: 1; }
.weather-panel { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); align-items: center; gap: 12px 24px; margin-top: 16px; padding: 15px 18px; border: 1px solid #e2e7dd; border-radius: 7px; background: #fffefa; }
.weather-panel-heading { display: flex; align-items: center; gap: 10px; }
.weather-panel-heading h2 { margin: 4px 0 0; font: 700 15px Manrope, sans-serif; }
.weather-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f8edcf; color: #a47d32; font-size: 20px; }
.weather-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.weather-city-label { min-width: 0; grid-column: 1 / -1; }
.weather-city-label input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #e1e5dd; border-radius: 6px; outline-color: #759780; background: white; color: var(--ink); font-size: 11px; }
.weather-form .button { min-height: 34px; padding: 0 10px; font-size: 10px; white-space: nowrap; }
.weather-result { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid #edf0e9; }
.weather-reading { display: grid; gap: 2px; }
.weather-reading strong { color: #3e5847; font: 700 21px Manrope, sans-serif; }
.weather-reading span, .weather-updated { color: #46575e; font-size: 11px; }
.weather-day-extremes { display: flex; gap: 16px; }
.weather-day-extremes > div { display: grid; gap: 3px; }
.weather-day-extremes span { color: #46575e; font-size: 10px; }
.weather-day-extremes strong { color: #465a49; font: 700 14px Manrope, sans-serif; }
.weather-advice { margin: 0; color: #273c42; font-size: 12px; line-height: 1.55; }
.weather-weekly { grid-column: 1 / -1; min-width: 0; padding-top: 10px; border-top: 1px solid #edf0e9; }
.weather-weekly h3 { margin: 0 0 8px; color: #687468; font-size: 10px; font-weight: 700; }
.weather-forecast-list { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 6px; margin: 0; padding: 0 0 6px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.weather-forecast-list li { display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 112px; padding: 8px 6px; border-radius: 6px; background: #f6f8f3; text-align: center; }
.weather-forecast-parts { display: grid; width: 100%; gap: 5px; margin-top: 3px; }
.weather-forecast-part { display: grid; grid-template-columns: 1fr; gap: 2px; padding-top: 4px; border-top: 1px solid #e4e9df; }
.weather-forecast-part > span:first-child { color: #46575e; font-size: 10px; }
.weather-forecast-part > span:last-child { color: #273c42; font-size: 10px; line-height: 1.4; }
.weather-forecast-day { color: #34464d; font-size: 10px; }
.weather-forecast-icon { color: #a47d32; font-size: 15px; line-height: 1; }
.weather-forecast-range { display: flex; gap: 6px; align-items: baseline; font-size: 10px; }
.weather-forecast-range strong { color: #405849; }
.weather-forecast-range span { color: #46575e; }
.weather-status { grid-column: 1 / -1; min-height: 0; margin: 0; color: #34464d; font-size: 11px; }
.weather-status:empty { display: none; }
.weather-privacy { grid-column: 1 / -1; margin: 0; color: #46575e; font-size: 10px; line-height: 1.5; }
.weather-updated { text-align: right; white-space: nowrap; }
 .market-panel { container-type:inline-size; display:grid; gap:14px; margin-top:14px; padding:16px 18px; border:1px solid #e2e7dd; border-radius:7px; background:#fffefa; }
.market-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.market-heading h2 { margin:4px 0 0; font:700 16px Manrope,sans-serif; }
.market-heading .eyebrow { margin:0; color:#788278; font-size:10px; }
.market-heading .button { min-height:36px; }
.market-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.market-controls { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.market-controls label { display:flex; flex-direction:column; gap:6px; flex:1 1 160px; min-width:0; font-size:12px; }
.market-controls select { width:100%; min-width:0; min-height:38px; }
.market-controls .market-live-control { flex-direction:row; align-items:center; align-self:center; }
.market-live-control input { width:18px; height:18px; flex:none; }
.market-crypto-section { grid-column:1/-1; }
.market-grid[data-single="true"] { grid-template-columns:minmax(0,1fr); }
.market-data-section[hidden] { display:none; }
.market-data-section li { min-width:0; overflow-wrap:anywhere; }
.market-panel { min-width:0; max-width:100%; }
.market-heading > div { min-width:0; }
.market-heading h2 { overflow-wrap:anywhere; }
.market-index-list { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.market-index-list li { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,0.8fr); gap:5px 12px; padding:10px 0; border-bottom:1px solid var(--line); color:var(--ink); font-size:12px; line-height:1.5; }
.market-index-list strong { text-align:right; font-size:13px; font-variant-numeric:tabular-nums; }
.market-index-list small { grid-column:1/-1; color:var(--muted); font-size:10px; }
.market-controls select { font-size:12px; overflow:hidden; text-overflow:ellipsis; }
.market-data-section { min-width:0; padding-top:10px; border-top:1px solid #edf0e9; }
.market-data-section h3 { margin:0 0 10px; color:#53645a; font-size:11px; font-weight:700; }
.market-fx-list { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.market-fx-list li { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px solid #edf0e9; color:#46575e; font-size:12px; }
.market-fx-list li:first-child { border-top:0; }
.market-fx-list strong { color:#30483a; font:700 12px Manrope,sans-serif; }
.market-gold-price { margin:0 0 8px; color:#3e5847; font:700 25px Manrope,sans-serif; }
.market-meta, .market-status, .market-disclosure { margin:0; color:#68766d; font-size:10px; line-height:1.5; }
.market-disclosure { padding-top:10px; border-top:1px solid #edf0e9; }
.market-status:empty { display:none; }
.home-assistant-quick { display:grid; grid-template-columns:minmax(0, .7fr) minmax(0, 1fr); align-items:center; gap:16px; margin-top:14px; padding:15px 18px; border-top:1px solid var(--line); }
.home-assistant-quick h2 { margin:4px 0 0; font:700 16px Manrope,sans-serif; }
.home-assistant-quick-form { display:flex; min-width:0; gap:8px; }
.home-assistant-quick-form input { flex:1; min-width:0; height:40px; padding:0 12px; border:1px solid #d8e2e5; border-radius:7px; background:#fff; color:var(--ink); font-size:12px; }
.writing-workspace, .spreadsheet-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; min-width:0; }
.writing-assist-trigger { justify-self:start; }
.writing-signature { display:grid; gap:8px; padding:12px 0; border-top:1px solid var(--line); }
.signature-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.signature-heading h3 { margin:0; font:700 14px Manrope,sans-serif; }
.writing-signature .button, .signature-dialog .workspace-actions > .button { width:auto; min-width:0; min-height:44px; padding:8px 12px; white-space:normal; line-height:1.3; }
.signature-preview { display:block; max-width:220px; max-height:80px; object-fit:contain; object-position:left center; background:white; }
.signature-dialog { width:min(94vw,560px); }
.signature-canvas { display:block; width:100%; height:auto; aspect-ratio:3 / 1; background:white; border:1px solid var(--line); border-radius:4px; touch-action:none; }
.signature-upload.workspace-file-button { display:inline-flex; width:auto; min-width:0; min-height:40px; align-items:center; gap:8px; margin:12px 0; padding:8px 12px; overflow-wrap:anywhere; }
.file-input-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
.workspace-file-button { position:relative; cursor:pointer; }
.workspace-file-button:focus-within { outline:2px solid var(--green); outline-offset:2px; }
.workspace-file-row { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:8px; }
.file-selected-name { min-width:0; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
@media (max-width:650px) { .signature-dialog .workspace-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .signature-dialog .workspace-actions > .button { width:100%; min-height:48px; } }
#pdfWorkspace > label { display:grid; min-width:0; gap:6px; }
#pdfFileInput { width:100%; min-width:0; max-width:100%; }
.workspace-toolbar, .workspace-actions { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:8px; }
.writing-workspace .workspace-actions > .button, .writing-workspace .workspace-toolbar > .button, .spreadsheet-workspace .workspace-toolbar > .button, .writing-workspace > .section-heading > .button, .spreadsheet-workspace > .section-heading > .button { width:auto; min-width:0; min-height:44px; padding:8px 12px; line-height:1.3; white-space:normal; overflow-wrap:anywhere; }
@media (max-width:650px) {
  .writing-workspace .workspace-actions, .spreadsheet-workspace > .workspace-toolbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
  .writing-workspace .workspace-actions > .button, .spreadsheet-workspace .workspace-toolbar > .button { display:flex; width:100%; min-height:48px; font-size:13px; }
  .spreadsheet-workspace > .workspace-toolbar > .workspace-document-picker, .spreadsheet-workspace > .workspace-toolbar > .workspace-title-field { grid-column:1 / -1; }
}
.workspace-toolbar label { display:grid; min-width:0; gap:4px; color:var(--muted); font-size:11px; }
.workspace-document-picker { flex:1 1 150px; }
.workspace-type-picker { flex:1 1 130px; }
.workspace-title-field { flex:2 1 220px; }
.workspace-toolbar input, .workspace-toolbar select, .workspace-assist-prompt input { width:100%; min-width:0; height:40px; padding:0 10px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); font:inherit; font-size:13px; }
.writing-format-button { min-width:40px; padding-inline:10px; }
.writing-document-editor, .writing-assist-suggestion { display:block; width:100%; min-width:0; min-height:340px; padding:14px; border:1px solid var(--line); border-radius:7px; outline-color:var(--green); background:var(--paper); color:var(--ink); font:14px/1.65 "DM Sans", sans-serif; resize:vertical; white-space:pre-wrap; }
.writing-assist-prompt { display:grid; max-width:620px; gap:6px; color:var(--muted); font-size:11px; }
.writing-assist-panel { display:grid; min-width:0; gap:10px; padding:12px 0; border-top:1px solid var(--line); }
.writing-assist-panel h3 { margin:0; color:var(--ink); font:700 14px Manrope,sans-serif; }
.writing-assist-suggestion { min-height:180px; }
.spreadsheet-grid { max-width:100%; min-width:0; overflow:auto; border:1px solid var(--line); border-radius:6px; background:var(--paper); overscroll-behavior-x:contain; }
.spreadsheet-search { display:grid; gap:5px; max-width:420px; color:var(--muted); font-size:12px; }
.spreadsheet-search input { width:100%; min-width:0; min-height:44px; padding:0 10px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); font:inherit; font-size:14px; }
.spreadsheet-summary, .spreadsheet-fill { min-width:0; padding:12px 0; border-top:1px solid var(--line); }
.spreadsheet-summary h3, .spreadsheet-fill h3 { margin:0 0 10px; font:700 14px Manrope,sans-serif; }
.spreadsheet-summary .workspace-toolbar label, .spreadsheet-fill .workspace-toolbar label { flex:1 1 145px; }
.spreadsheet-summary .workspace-toolbar > .button, .spreadsheet-fill .workspace-toolbar > .button { width:auto; min-width:0; min-height:44px; padding:8px 12px; white-space:normal; }
.spreadsheet-summary-result { max-width:100%; overflow:auto; margin-top:10px; }
.spreadsheet-summary-result table { width:100%; border-collapse:collapse; font-size:12px; }
.spreadsheet-summary-result th, .spreadsheet-summary-result td { padding:8px; border-bottom:1px solid var(--line); text-align:left; overflow-wrap:anywhere; }
.spreadsheet-grid table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; color:var(--ink); font-size:12px; }
.spreadsheet-grid th, .spreadsheet-grid td { min-width:112px; padding:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.spreadsheet-grid td[data-threshold-highlight="true"] { background:rgba(228,169,52,.24); }
.spreadsheet-grid th { position:sticky; top:0; z-index:1; height:30px; background:var(--surface-accent,#edf2ef); color:var(--muted); font-size:11px; font-weight:700; text-align:center; }
.spreadsheet-grid th:first-child { left:0; z-index:2; min-width:38px; width:38px; }
.spreadsheet-grid td:first-child { position:sticky; left:0; z-index:1; min-width:38px; width:38px; background:var(--surface-accent,#edf2ef); color:var(--muted); text-align:center; }
.spreadsheet-cell { display:grid; min-height:54px; grid-template-rows:minmax(30px,auto) minmax(18px,auto); }
.spreadsheet-cell input { width:100%; min-width:0; height:32px; padding:5px 7px; border:0; outline:2px solid transparent; outline-offset:-2px; background:transparent; color:var(--ink); font:12px/1.35 "DM Sans",sans-serif; }
.spreadsheet-cell input:focus { z-index:1; outline-color:var(--green); background:var(--paper); }
.spreadsheet-cell output { min-height:18px; padding:0 7px 4px; color:var(--muted); font:10px/1.3 ui-monospace,monospace; overflow-wrap:anywhere; }
.spreadsheet-cell output:empty { display:none; }
.tools-view-heading { margin:0 0 22px; font:700 22px Manrope,sans-serif; }
.dashboard-grid[data-active-view="tools"] { grid-template-columns:minmax(0, 1fr); }
.dashboard-grid[data-active-view="assistant"] { grid-template-columns:minmax(0, 1fr); max-width:940px; margin-inline:auto; }
.dashboard-grid[data-active-view="assistant"] .assistant-column { grid-column:1; }
.dashboard-grid[data-active-view="assistant"] .chat-messages { min-height:320px; max-height:min(58vh, 620px); }
@container (max-width: 700px) { .market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .market-index-section { grid-column:1/-1; } }
@container (max-width: 560px) {
  .market-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; align-items:end; }
  .market-controls label { min-width:0; overflow-wrap:anywhere; }
  .market-controls .market-live-control { grid-column:1/-1; justify-self:start; }
}
@container (max-width: 440px) { .market-grid { grid-template-columns:minmax(0,1fr); } .market-index-section { grid-column:auto; } .market-heading { align-items:flex-start; flex-direction:column; } .market-heading .button { width:100%; } }
@container (max-width: 560px) {
  .weather-result { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .weather-reading { grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 4px; }
  .weather-reading > * { min-width: 0; overflow-wrap: anywhere; }
  .weather-day-extremes { flex-wrap: wrap; }
  .weather-updated { text-align: left; }
}

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; margin-top: 34px; }
.main-column, .assistant-column { min-width: 0; }
.section-block { padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading h2, .companion-header h2, .dialog-heading h2 { margin: 5px 0 0; font: 700 18px Manrope, sans-serif; letter-spacing: 0; }
.progress-label { color: #899289; font-size: 11px; }
.quick-add { display: flex; gap: 8px; margin-bottom: 10px; }
.quick-add input, .chat-form input, .reminder-dialog input, .travel-date-label input { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #e1e5dd; border-radius: 7px; outline-color: #759780; background: var(--paper); color: var(--ink); font-size: 12px; }
.quick-add input { flex: 1; }
.quick-add input::placeholder, .chat-form input::placeholder, .reminder-dialog input::placeholder { color: #a0a79e; }
.icon-button { display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid #dce2d9; border-radius: 7px; background: #fffefa; cursor: pointer; transition: transform .16s ease; }
.add-task-button { background: var(--green); color: white; font-size: 23px; }
.task-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.task-row { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 10px; border-radius: 6px; transition: background .16s ease; }
.task-row:hover { background: rgba(255, 254, 250, .74); }
.task-check { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--green); cursor: pointer; }
.task-name { flex: 1; color: #424d44; font-size: 13px; }
.task-row.done .task-name { color: #9ba39b; text-decoration: line-through; }
.task-kind { color: #929a91; font-size: 10px; }
.empty-state { padding: 15px 10px; color: #929a91; font-size: 12px; }
.reminder-section { padding-top: 26px; }
.text-action { padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.text-action span:first-child { font-size: 18px; vertical-align: -1px; }
.reminder-list { display: grid; gap: 8px; }
.reminder-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #e8ebe4; border-radius: 7px; background: rgba(255,254,250,.75); }
.reminder-item.reminder-alarm-active { border-color:#c94c42; box-shadow:inset 3px 0 #c94c42; }
.reminder-item > .reminder-actions { grid-column:2/-1; display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
.reminder-actions .button { min-height:34px; padding:0 10px; font-size:11px; }
.reminder-actions .reminder-done { border-color:#5b8064; color:#315d3b; }
.reminder-actions .reminder-remove { margin-left:auto; }
.reminder-status { text-align:right; }
.reminder-weekdays { min-width:0; margin:0; padding:8px; border:1px solid #dfe4dc; border-radius:7px; }
.reminder-weekday-options { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.reminder-weekday-options label { display:grid; justify-items:center; gap:4px; min-width:0; padding:5px 2px; border:1px solid #e3e8e2; border-radius:6px; font-size:10px; }
.reminder-weekday-options input { width:16px; height:16px; accent-color:var(--green); }
.reminder-reliability-note { margin:0; }
.reminder-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 7px; background: #f8e9d4; color: #99642a; font-size: 16px; }
.reminder-icon.meeting { background: #e5eaf4; color: #5e7094; }
.reminder-icon.personal { background: #e5eee3; color: #55745c; }
.reminder-icon.medicine { background:#e9e9d7; color:#5f6634; }
.reminder-copy { min-width: 0; }
.reminder-copy strong { display: block; overflow: hidden; color: #39443b; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.reminder-copy span { display: block; margin-top: 4px; color: #8b948a; font-size: 10px; }
.reminder-empty { padding: 18px 14px; border: 1px dashed #dfe4dc; border-radius: 7px; color: #8b948a; font-size: 12px; }
.reminder-status { color: #849084; font-size: 10px; }
.travel-section { padding-top: 26px; border-bottom: 0; }
.travel-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f8e5dd; color: #b56a51; font-size: 19px; }
.flight-search { margin-bottom: 20px; padding: 16px; border: 1px solid #e5e9e1; border-radius: 7px; background: rgba(255,254,250,.72); }
.flight-search > .eyebrow { margin-bottom: 13px; }
.flight-search-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flight-search-form label { display: grid; min-width: 0; gap: 5px; color: #788278; font-size: 10px; }
.flight-search-form input { width: 100%; min-width: 0; height: 38px; padding: 0 9px; border: 1px solid #e1e5dd; border-radius: 6px; outline-color: #759780; background: white; color: var(--ink); font-size: 11px; }
.flight-search-form input::placeholder { color: #a0a79e; }
.flight-search-form .airline-field { grid-column: 1 / -1; }
.flight-submit { grid-column: 1 / -1; }
.flight-results { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e7ebe4; }
.flight-results p { flex: 1 1 100%; margin: 0; color: #536054; font-size: 11px; line-height: 1.5; }
.flight-results a { color: var(--green); font-size: 11px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.transit-search { margin-bottom: 18px; padding: 16px; border: 1px solid #e5e9e1; border-radius: 7px; background: rgba(255,254,250,.72); }
.transit-search > .eyebrow { margin-bottom: 13px; }
.transit-form { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; }
.transit-form > label { display: grid; min-width: 0; gap: 5px; color: #788278; font-size: 10px; }
.transit-form > label input { width: 100%; min-width: 0; height: 38px; padding: 0 9px; border: 1px solid #e1e5dd; border-radius: 6px; outline-color: #759780; background: white; color: var(--ink); font-size: 11px; }
.transit-modes { display: flex; min-width: 0; grid-column: 1 / -1; margin: 0; padding: 3px; gap: 3px; border: 1px solid #e1e5dd; border-radius: 7px; background: #f4f5ef; }
.transit-modes label { position: relative; flex: 1; cursor: pointer; }
.transit-modes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.transit-modes span { display: grid; min-height: 32px; place-items: center; padding: 0 6px; border-radius: 5px; color: #727c72; font-size: 10px; }
.transit-modes input:checked + span { background: white; color: var(--green); box-shadow: 0 1px 3px rgba(32,40,34,.12); font-weight: 700; }
.transit-modes input:focus-visible + span { outline: 2px solid #759780; outline-offset: 2px; }
.transit-form > .button { grid-column: 1 / -1; }
.travel-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, .8fr) auto auto; align-items: end; gap: 10px; }
.upload-control { display: flex; min-width: 0; min-height: 42px; align-items: center; gap: 9px; padding: 0 10px; overflow: hidden; border: 1px dashed #cdd6cb; border-radius: 7px; background: #fffefa; color: #667267; font-size: 11px; cursor: pointer; }
.upload-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.upload-symbol { color: var(--green); font-size: 20px; }
.travel-date-label { display: grid; gap: 5px; color: #788278; font-size: 10px; }
.travel-date-label input { width: 100%; height: 42px; padding: 0 8px; font-size: 11px; }
.trip-reminder-toggle { display: flex; align-items: center; gap: 7px; color: #6f796f; font-size: 10px; }
.trip-reminder-toggle input { accent-color: var(--green); }
.travel-form .button { min-height: 42px; padding: 0 12px; white-space: nowrap; font-size: 10px; }
.privacy-note { margin: 9px 0 0; color: #909990; font-size: 10px; }
.trip-list { display: grid; gap: 9px; margin-top: 13px; }
.trip-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 7px; background: #fffefa; }
.trip-preview { width: 52px; height: 48px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; background: #edf0e9; }
.ticket-photo-upload { display: grid; min-width: 0; gap: 6px; }
.ticket-photo-source-controls { display: flex; min-width: 0; gap: 7px; }
.ticket-photo-source-controls .upload-control, .ticket-photo-source-controls .ticket-gallery-button { min-width: 0; flex: 1 1 0; }
.ticket-gallery-button { position: relative; min-height: 42px; overflow: hidden; white-space: nowrap; }
.ticket-gallery-button input, .photo-source-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ticket-selection-preview { width: 100%; height: 72px; border: 1px solid #d8e2e5; border-radius: 5px; object-fit: contain; background: #f6f8f3; }
.trip-copy { min-width: 0; }
.trip-copy strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.trip-copy span { display: block; margin-top: 4px; color: #858f85; font-size: 10px; }
.lesson-section, .astrology-section { padding-top: 26px; }
.lesson-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 9px; margin-bottom: 12px; }
.lesson-form label { display: grid; min-width: 0; gap: 5px; color: #788278; font-size: 10px; }
.lesson-form input, .lesson-form select { width: 100%; min-width: 0; height: 40px; padding: 0 8px; border: 1px solid #e1e5dd; border-radius: 6px; outline-color: #759780; background: #fffefa; color: var(--ink); font-size: 11px; }
.lesson-form .lesson-name, .lesson-form .lesson-room { grid-column: span 2; }
.lesson-form .button { min-height: 40px; padding: 0 11px; white-space: nowrap; font-size: 10px; }
.lesson-list { display: grid; gap: 6px; }
.lesson-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 11px; padding: 9px 10px; border-left: 2px solid #81a68a; background: rgba(255,254,250,.75); }
.lesson-time { color: var(--green); font: 700 12px Manrope, sans-serif; }
.lesson-details { min-width: 0; }
.lesson-details strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-details span { display: block; margin-top: 3px; color: #858f85; font-size: 10px; }
.lesson-empty { padding: 14px 10px; color: #929a91; font-size: 12px; }
.finance-section { container-type: inline-size; padding-top: 26px; }
.photo-notes-section { padding-top: 26px; }
.photo-note-form { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: end; gap: 9px; }
.photo-note-form label { display: grid; min-width: 0; gap: 5px; color: #788278; font-size: 10px; }
.photo-note-form input { width: 100%; min-width: 0; height: 40px; padding: 0 9px; border: 1px solid #e1e5dd; border-radius: 6px; background: #fffefa; color: var(--ink); font-size: 11px; }
.photo-note-form .photo-file-field, .receipt-control { display: grid; min-width: 0; gap: 7px; }
.photo-source-heading, .receipt-heading { color: #788278; font-size: 10px; font-weight: 600; }
.photo-source-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.photo-source-button { position: relative; min-width: 0; min-height: 40px; overflow: hidden; }
.photo-source-button input { padding: 0; border: 0; }
.photo-note-form .photo-source-button { display: inline-flex; width: auto; min-height: 38px; align-items: center; justify-content: center; padding: 0 9px; color: var(--ink); font-size: 10px; cursor: pointer; }
.photo-note-form .button { min-height: 40px; white-space: nowrap; font-size: 10px; }
.photo-note-form > button, .photo-note-form > #photoAnalysisStatus { grid-column: 1 / -1; justify-self: start; }
.photo-note-form > #photoAnalysisStatus { margin: 0; }
.photo-note-preview { grid-column: 1 / -1; width: min(100%, 320px); max-height: 180px; border: 1px solid #e1e5dd; border-radius: 6px; object-fit: contain; background: #f6f8f3; }
.photo-note-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-note-card { overflow: hidden; border: 1px solid #e5e9e1; border-radius: 6px; background: #fffefa; }
.photo-note-card > button { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.photo-note-card img { display: block; width: 100%; height: 120px; object-fit: cover; background: #edf0e9; }
.photo-note-card strong { display: block; padding: 8px 9px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.photo-reminder-dialog > p { color: #687369; font-size: 13px; }
.photo-question-title { font-weight: 700; }
.photo-reminder-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.finance-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.finance-form label { display: grid; min-width: 0; gap: 6px; color: #59685d; font-size: 11px; font-weight: 600; }
.finance-form input, .finance-form select { width: 100%; min-width: 0; height: 44px; padding: 0 10px; border: 1px solid #d8e0d8; border-radius: 6px; outline-color: #759780; background: #fffefa; color: var(--ink); font-size: 12px; }
.finance-form input:focus, .finance-form select:focus { border-color: #759780; box-shadow: 0 0 0 3px rgba(74, 125, 91, .12); }
.finance-description, .receipt-control { grid-column: 1 / -1; }
.finance-submit { grid-column: 1 / -1; justify-self: start; min-width: 180px; min-height: 44px; padding: 0 16px; white-space: nowrap; font-size: 12px; }
.receipt-control { grid-column: 1 / -1; }
.receipt-hint { color: #909990; font-size: 10px; }
.receipt-preview { width: 56px; height: 56px; align-self: end; border: 1px solid #e1e5dd; border-radius: 5px; object-fit: cover; }
.receipt-dialog { position: relative; width: min(760px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 48px 12px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; }
.receipt-dialog::backdrop { background: rgba(24, 34, 27, .58); }
.receipt-dialog form { position: absolute; top: 8px; right: 8px; }
.receipt-dialog img { display: block; width: 100%; max-height: calc(100dvh - 100px); object-fit: contain; }
.finance-receipt-button { padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 10px; text-decoration: underline; cursor: pointer; }
.finance-list { display: grid; gap: 7px; margin-top: 14px; }
.finance-empty { padding: 14px 10px; border: 1px dashed #dfe4dc; border-radius: 6px; color: #929a91; font-size: 12px; }
.finance-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 12px; border: 1px solid #e8ebe4; border-radius: 6px; background: rgba(255,254,250,.75); }
.finance-copy { min-width: 0; }
.finance-copy strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.finance-copy span { display: block; margin-top: 4px; color: #858f85; font-size: 10px; }
.finance-amount { white-space: nowrap; color: #445448; font: 700 12px Manrope, sans-serif; }
.finance-paid { display: flex !important; align-items: center; gap: 6px !important; white-space: nowrap; }
.finance-paid input { width: 15px; height: 15px; accent-color: var(--green); }
.finance-item.is-paid .finance-copy strong { color: #8b948a; text-decoration: line-through; }
@container (min-width: 660px) {
  .finance-form { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .finance-description { grid-column: span 2; }
  .finance-type, .finance-vendor { grid-column: span 1; }
  .finance-amount, .finance-currency, .finance-date, .finance-frequency { grid-column: span 1; }
  .receipt-control { grid-column: 1 / span 3; }
  .finance-submit { grid-column: 4; justify-self: stretch; min-width: 0; }
}
.astrology-section { container-type: inline-size; padding-top: 26px; }
.saved-chart-picker, .astrology-form label { display: grid; min-width: 0; gap: 6px; color: #788278; font-size: 10px; }
.saved-chart-picker { width: min(100%, 360px); margin-bottom: 12px; }
.saved-chart-picker select, .astrology-form select { width: 100%; min-width: 0; height: 40px; padding: 0 9px; border: 1px solid #e1e5dd; border-radius: 6px; outline-color: #759780; background: #fffefa; color: var(--ink); font-size: 11px; }
.astrology-form .chart-subject-field { grid-column: 1 / -1; }
.astrology-form .chart-person-name { grid-column: 1 / -1; }
.astrology-form .birth-date-field small, .astrology-form .birth-time-field small, .astrology-form .birth-place small { color: #858f85; font-size: 10px; line-height: 1.4; }
.astrology-form .birth-date-field .form-error { color: #ad523d; }
#birthDateError { min-height: 14px; }
#birthDateError[hidden] { display: block !important; visibility: hidden; }
.astrology-form .birth-share-field { display: flex; grid-column: 1 / -1; align-items: flex-start; gap: 8px; color: #58665a; line-height: 1.5; }
.astrology-form .birth-share-field input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--green); }
.astro-modes { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; padding: 3px; border: 1px solid #e4e8df; border-radius: 7px; background: #f1f3ed; }
.astro-mode { min-height: 32px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #748074; font: inherit; font-size: 10px; cursor: pointer; }
.astro-mode.active { background: #fffefa; color: var(--green); box-shadow: 0 1px 3px rgba(32,40,34,.12); font-weight: 700; }
.tarot-panel { display:grid; gap:12px; margin:0 0 16px; }
.tarot-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tarot-panel-heading h3 { margin:2px 0 0; color:var(--ink); font:700 16px Manrope,sans-serif; }
.tarot-mark { display:grid; width:36px; aspect-ratio:1; place-items:center; border-radius:50%; background:#eee8d8; color:#8a7040; font-size:20px; }
.tarot-disclaimer { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.tarot-form { display:grid; gap:9px; }
.tarot-form label { display:grid; min-width:0; gap:5px; color:var(--muted); font-size:11px; }
.tarot-form textarea { width:100%; min-height:76px; resize:vertical; padding:10px; border:1px solid var(--border-strong); border-radius:6px; background:var(--field-bg); color:var(--ink); font:inherit; font-size:13px; }
.tarot-form-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; }
.tarot-form-actions select { min-width:0; height:40px; padding:0 9px; border:1px solid var(--border-strong); border-radius:6px; background:var(--field-bg); color:var(--ink); font:inherit; font-size:12px; }
.tarot-form-actions button { min-height:40px; }
.tarot-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(52px,1fr)); gap:7px; }
.tarot-card-back { display:grid; min-width:0; aspect-ratio:.68; place-items:center; padding:4px; border:1px solid #bca66c; border-radius:6px; background:#29443f; color:#e4d3a0; box-shadow:0 2px 6px rgba(0,0,0,.14); font:700 18px Manrope,sans-serif; cursor:pointer; }
.tarot-card-back--0 { background-color:#29443f; background-image:repeating-linear-gradient(45deg,transparent 0 6px,rgba(228,211,160,.12) 6px 7px); }
.tarot-card-back--1 { background-color:#36514b; background-image:repeating-linear-gradient(135deg,transparent 0 7px,rgba(228,211,160,.15) 7px 8px); }
.tarot-card-back--2 { background-color:#414844; background-image:radial-gradient(rgba(228,211,160,.22) 1px,transparent 1.5px); background-size:8px 8px; }
.tarot-card-back--3 { background-color:#304c55; background-image:repeating-linear-gradient(90deg,transparent 0 7px,rgba(205,221,208,.16) 7px 8px); }
.tarot-card-back--4 { background-color:#4e4636; background-image:repeating-linear-gradient(0deg,transparent 0 7px,rgba(228,211,160,.14) 7px 8px); }
.tarot-card-back--5 { background-color:#3e4b40; background-image:repeating-linear-gradient(45deg,transparent 0 9px,rgba(205,221,208,.15) 9px 10px),repeating-linear-gradient(-45deg,transparent 0 9px,rgba(205,221,208,.1) 9px 10px); }
.tarot-card-back--6 { background-color:#4a3e43; background-image:radial-gradient(ellipse at center,rgba(228,211,160,.17) 0 1px,transparent 2px); background-size:10px 10px; }
.tarot-card-back--7 { background-color:#3c4855; background-image:repeating-linear-gradient(0deg,transparent 0 10px,rgba(205,221,208,.14) 10px 11px),repeating-linear-gradient(90deg,transparent 0 10px,rgba(205,221,208,.1) 10px 11px); }
.tarot-card-back:hover:not(:disabled) { transform:translateY(-2px); background:#35554d; }
.tarot-card-back:focus-visible { outline:2px solid #d5bd79; outline-offset:2px; }
.tarot-card-back:disabled { opacity:.48; cursor:default; }
.tarot-selected-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:10px; }
.tarot-selected-cards:empty { display:none; }
.tarot-card { display:grid; min-width:0; min-height:220px; grid-template-rows:auto 1fr auto; gap:12px; padding:12px; border:1px solid #c9b989; border-radius:7px; background:linear-gradient(155deg,#fffdf5,#f1ead8); color:#403b31; box-shadow:0 2px 7px rgba(49,43,29,.1); }
.tarot-card.is-revealing { animation:tarot-card-flip .38s ease-out both; }
@keyframes tarot-card-flip { from { opacity:.45; transform:perspective(700px) rotateY(88deg); } to { opacity:1; transform:perspective(700px) rotateY(0); } }
.tarot-card.is-reversed .tarot-card-face { transform:rotate(180deg); }
.tarot-card-position { color:#74694e; font-size:10px; font-weight:700; }
.tarot-card-face { display:grid; place-items:center; align-content:center; gap:12px; text-align:center; }
.tarot-card-symbol { color:#897447; font-size:38px; line-height:1; }
.tarot-card-name { font:700 14px Manrope,sans-serif; line-height:1.35; }
.tarot-card-orientation { padding-top:8px; border-top:1px solid #ded4b9; color:#6f654f; font-size:10px; text-align:center; }
.tarot-reading-actions { display:flex; flex-wrap:wrap; gap:8px; }
.tarot-interpretation { padding:13px; border-left:3px solid #9a8050; background:#f4f0e5; color:#4a463d; font-size:13px; line-height:1.65; white-space:pre-wrap; }
.support-report-dialog { width:min(520px, calc(100vw - 28px)); max-height:min(88vh, 760px); overflow:auto; }
.support-report-dialog form { display:grid; gap:12px; }
.support-report-dialog label:not(.support-report-consent) { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.support-report-dialog select, .support-report-dialog input[type="email"], .support-report-dialog textarea { width:100%; min-width:0; border:1px solid var(--border-strong); border-radius:6px; background:var(--field-bg); color:var(--ink); font:inherit; font-size:14px; }
.support-report-dialog select, .support-report-dialog input[type="email"] { min-height:42px; padding:0 10px; }
.support-report-dialog textarea { min-height:132px; padding:10px; resize:vertical; }
.support-report-consent { display:flex; align-items:flex-start; gap:9px; color:var(--ink); font-size:12px; line-height:1.5; }
.support-report-consent input { flex:0 0 auto; width:17px; height:17px; margin:1px 0 0; accent-color:var(--green); }
.support-report-dialog #submitSupportReportButton { width:100%; min-height:44px; }
.chart-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.chart-points span { display: flex; gap: 6px; color: #737e73; font-size: 10px; }
.chart-points b { color: #465a49; }
.astrology-output { margin-top: 12px; }
.astro-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f7edcf; color: #a07b2d; font-size: 18px; }
.astrology-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.astrology-form label { display: grid; min-width: 0; gap: 5px; color: #788278; font-size: 10px; }
.astrology-form .chart-subject-field, .astrology-form .birth-place, .astrology-form .birth-share-field, .astrology-form .button { grid-column: 1 / -1; }
.astrology-form input { width: 100%; min-width: 0; height: 44px; padding: 0 11px; border: 1px solid #e1e5dd; border-radius: 6px; outline-color: #759780; background: #fffefa; color: var(--ink); font-size: 13px; }
.astrology-form input[aria-invalid="true"] { border-color: #ad523d; }
.astrology-form .button { min-height: 44px; padding: 0 12px; white-space: normal; font-size: 11px; }
.astrology-form .button { width: 100%; }
.astrology-result { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 14px; margin: 0; padding: 15px; border-left: 3px solid #c5a34c; background: #f7f3e6; }
.astrology-glyph { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #e9dfbd; color: #7c672f; font: 600 23px Manrope, sans-serif; }
.astrology-result .eyebrow { color: #9b8041; }
.astrology-result h3 { margin: 4px 0 7px; font: 700 16px Manrope, sans-serif; }
.horoscope-copy { margin: 0; color: #665c43; font-size: 12px; line-height: 1.6; }
.astrology-read-aloud { min-height: 34px; margin-top: 10px; padding: 0 10px; font-size: 10px; }
.birth-chart-result { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid #e2e7dd; border-radius: 7px; background: #fffefa; }
.birth-chart-result > .privacy-note { margin: 0; }
.natal-wheel-section { display: grid; justify-items: center; gap: 8px; padding: 8px 0 14px; border-bottom: 1px solid #edf0e9; }
.natal-wheel-section h3 { justify-self: start; }
.natal-wheel { display: block; width: min(100%, 520px); height: auto; aspect-ratio: 1; overflow: visible; }
.natal-wheel-sign { fill: #516253; font: 600 10px Manrope, sans-serif; }
.natal-wheel-house-line { stroke: #dbe1db; stroke-width: .8; }
.natal-wheel-house-number { fill: #7b887b; font: 9px Manrope, sans-serif; }
.natal-wheel-planet-symbol { fill: #33483a; font: 12px sans-serif; }
.natal-wheel-angle { stroke: #536d59; stroke-width: 1.8; }
.natal-wheel-ascendant { stroke: #bd7444; }
.natal-wheel-midheaven { stroke: #507e9b; }
.natal-wheel-angle-label { fill: #405246; font: 700 9px Manrope, sans-serif; }
.natal-wheel-legend { max-width: 520px; margin: 0; color: #737e73; font-size: 10px; line-height: 1.5; }
.birth-chart-meta { color: #737e73; font-size: 10px; line-height: 1.5; }
.birth-chart-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chart-house-meanings-section { padding-top: 10px; border-top: 1px solid #edf0e9; }
.chart-house-meanings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; padding: 0; list-style: none; counter-reset: house-meaning; }
.chart-house-meanings li { min-width: 0; padding: 10px 0; border-bottom: 1px solid #edf0e9; counter-increment: house-meaning; }
.chart-house-meanings h4 { margin: 0 0 4px; color: #405246; font: 700 11px Manrope, sans-serif; }
.chart-house-meanings li > p { margin: 0; color: #58665a; font-size: 11px; line-height: 1.5; }
.chart-house-meanings .chart-house-personalized { margin-bottom: 8px; color: #34483a; font-weight: 600; }
.chart-house-general-label { display: block; margin-bottom: 2px; color: #858f85; font-size: 9px; }
.chart-house-meanings .chart-house-general-theme { color: #737e73; font-size: 10px; }
.birth-chart-result h3 { margin: 0 0 7px; color: #465a49; font: 700 12px Manrope, sans-serif; }
.birth-chart-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.birth-chart-list li { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid #edf0e9; color: #58665a; font-size: 10px; line-height: 1.45; }
.birth-chart-list li span:last-child { text-align: right; }
.birth-chart-aspects-section { padding-top: 8px; border-top: 1px solid #edf0e9; }
.birth-chart-aspects-section .birth-chart-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.chart-reading { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #edf0e9; }
.chart-reading-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.chart-reading-heading h3 { margin: 0; }
.chart-read-aloud { display: inline-flex; align-items: center; gap: 7px; color: #58665a; font-size: 11px; }
.chart-read-aloud input { width: 16px; height: 16px; accent-color: var(--green); }
.chart-reading-disclaimer { margin: 0; color: #737e73; font-size: 10px; line-height: 1.5; }
.chart-interpretation { padding: 14px; border-left: 3px solid #759780; background: #f3f6f1; color: #344238; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.chart-reading-sources { color: var(--muted); font-size: 11px; line-height: 1.5; }
.chart-reading-sources h4 { margin: 0 0 4px; font-size: inherit; font-weight: 650; }
.chart-reading-sources ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding-left: 18px; }
.chart-reading-sources a { color: var(--green); overflow-wrap: anywhere; }
.chart-reading .button { justify-self: start; }
.chart-interpret-read-aloud { min-height: 38px; font-size: 11px; }

@container (max-width: 560px) {
  .tarot-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .tarot-selected-cards { grid-template-columns: minmax(0, 1fr); }
  .astrology-form { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .birth-chart-columns { grid-template-columns: minmax(0, 1fr); }
  .chart-house-meanings { grid-template-columns: minmax(0, 1fr); }
  .birth-chart-aspects-section .birth-chart-list { grid-template-columns: minmax(0, 1fr); }
  .astrology-form .chart-subject-field, .astrology-form .chart-person-name, .astrology-form .birth-date-field, .astrology-form .birth-time-field, .astrology-form .birth-place, .astrology-form .birth-share-field, .astrology-form .button { grid-column: 1; }
  .astrology-form label { font-size: 11px; }
  .astrology-form input, .astrology-form select { min-height: 44px; font-size: 14px; }
  .astrology-form label small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-card.is-revealing { animation:none; }
}

.assistant-column { display: grid; align-content: start; gap: 20px; }
.companion-panel { padding: 18px; border: 1px solid #e3e7dd; border-radius: 8px; background: #fffefa; }
.companion-header { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #edf0e9; }
.companion-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px 13px 13px 4px; background: #dfece1; color: var(--green); font: 800 18px Manrope, sans-serif; }
.companion-header .eyebrow { font-size: 9px; }
.companion-header h2 { margin-top: 3px; font-size: 15px; }
.online-dot { margin-left: auto; }
.assistant-mode-status { max-width: 112px; margin-left: auto; color: #848e84; font-size: 9px; line-height: 1.35; text-align: right; }
.assistant-mode-status.is-local-ai { color: var(--green); font-weight: 700; }
.chat-messages { display: flex; min-height: 226px; max-height: 340px; flex-direction: column; align-items: flex-start; gap: 10px; overflow: auto; padding: 15px 0; }
.chat-bubble { max-width: 92%; padding: 10px 12px; border-radius: 4px 11px 11px 11px; background: #edf3ed; color: #435248; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-bubble.user { align-self: flex-end; border-radius: 11px 4px 11px 11px; background: #f8e8df; color: #66483e; }
.chat-action-link { display: inline-block; margin-top: 8px; color: #315f42; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.research-save-button { border:0; padding:0; background:transparent; font:inherit; cursor:pointer; }
.research-save-button:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.chat-sources { display: block; margin-top: 7px; color: #647165; font-size: 10px; line-height: 1.5; }
.chat-feedback { display: flex; gap: 4px; margin-top: 7px; }
.chat-feedback-button { display: grid; width: 28px; height: 26px; place-items: center; border: 1px solid #dfe6de; border-radius: 5px; background: #fffefa; color: #536357; font-size: 13px; cursor: pointer; }
.chat-feedback-button.is-selected { border-color: #557d61; background: #e9f1e9; color: #315f42; }
.chat-time { display: block; margin-top: 4px; color: #929b91; font-size: 9px; }
.chat-form { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid #edf0e9; }
.chat-form input { flex: 1; height: 38px; border-color: transparent; background: #f5f6f1; }
.voice-input-button { width: 36px; height: 36px; color: var(--green); }
.stop-speech-button { width: 36px; height: 36px; color: #a63c34; border-color: #dca39e; background: #fff3f1; }
.stop-speech-button:hover { background: #f9dedb; }
.send-button { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 7px; background: var(--green); color: white; font-size: 19px; cursor: pointer; transition: transform .16s ease; }
.voice-status { min-height: 13px; margin: 5px 0 0; color: #859085; font-size: 10px; }
.emergency-entry { display: flex; justify-content: flex-end; margin-top: 12px; }
.emergency-entry .button { min-height: 44px; gap: 9px; padding: 0 16px; border: 2px solid #a8322b; background: #fff2f0; color: #8f261f; font-size: 14px; font-weight: 800; box-shadow: 0 2px 8px rgba(143, 38, 31, .12); }
.emergency-entry .button::before { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #a8322b; color: #fff; content: "!"; font-size: 15px; line-height: 1; }
.emergency-dialog { display: grid; gap: 14px; }
.emergency-dialog h2 { font-size: 20px; }
.emergency-copy { margin: 0; color: #657166; font-size: 12px; line-height: 1.6; }
.emergency-dialog label { color: #455348; font-size: 12px; }
.emergency-dialog select { padding: 0 10px; }
.emergency-call-options { display:grid; gap:9px; }
.emergency-call-option { display:grid; justify-items:start; gap:4px; }
.emergency-call-link { width: 100%; min-height: 44px; justify-content:center; }
.emergency-source { color: #536c58; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.documents-tools { margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0e9; }
.documents-tools summary { color: #546456; font-size: 11px; font-weight: 700; cursor: pointer; }
.documents-note { margin: 7px 0; color: #778177; font-size: 10px; line-height: 1.5; }
.documents-context-toggle { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #536054; font-size: 10px; }
.documents-context-toggle input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--green); }
.documents-upload-row { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:8px; }
.documents-upload-row .file-selected-name { flex:1 1 120px; }
.documents-upload-row .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.document-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; color: #667167; font-size: 10px; }
.document-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.document-list li span { min-width: 0; overflow-wrap: anywhere; }
.document-remove { border: 0; background: transparent; color: #963f36; font-size: 10px; text-decoration: underline; cursor: pointer; }
.idea-panel { position: relative; padding: 18px; overflow: hidden; border-radius: 8px; background: #f8e4d8; }
.idea-panel::after { position: absolute; top: -18px; right: -13px; width: 76px; height: 76px; border: 1px solid rgba(180, 104, 77, .25); border-radius: 50%; content: ""; }
.idea-panel .eyebrow { color: #ac725c; }
.idea-panel > p:nth-child(2) { position: relative; z-index: 1; max-width: 240px; margin: 12px 0; color: #65483e; font: 600 15px/1.55 Manrope, sans-serif; }
.idea-speak { padding: 4px 0; border: 0; background: transparent; color: #935a45; font-size: 11px; font-weight: 700; cursor: pointer; }
.idea-speak span { margin-left: 4px; }

.reminder-dialog { width: min(480px, calc(100vw - 28px)); padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; color: var(--ink); box-shadow: 0 18px 60px rgba(28,39,30,.18); }
.reminder-dialog:not([open]) { display: none; }
.reminder-dialog::backdrop { background: rgba(24, 34, 27, .38); backdrop-filter: blur(3px); }
.reminder-dialog form { display: grid; gap: 16px; }
.voice-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.voice-name-field, .voice-preview-row { grid-column: 1 / -1; }
.voice-preview-row { display: grid; justify-items: start; gap: 6px; }
.voice-preview-row .privacy-footnote { margin: 0; }
.color-theme-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.color-theme-picker legend { margin-bottom: 8px; color: #6f796f; font-size: 11px; font-weight: 600; }
.color-theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.color-theme-option { position: relative; display: grid; min-width: 0; justify-items: center; gap: 7px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 11px; cursor: pointer; }
.color-theme-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.color-theme-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.color-theme-option input:focus-visible + .theme-swatch { outline: 3px solid var(--green); outline-offset: 3px; }
.theme-swatch { display: block; width: 38px; height: 24px; border-radius: 5px; background: var(--swatch-accent); box-shadow: inset 0 -8px 0 var(--swatch-soft); }
.theme-swatch-forest { --swatch-accent: #146b5c; --swatch-soft: #d9eee8; }
.theme-swatch-ocean { --swatch-accent: #286b8a; --swatch-soft: #dceef4; }
.theme-swatch-terracotta { --swatch-accent: #111111; --swatch-soft: #ededed; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.close-button { font-size: 22px; }
.reminder-dialog label { display: grid; gap: 7px; color: #6f796f; font-size: 11px; font-weight: 600; }
.reminder-dialog .profile-toggle { display: flex; align-items: center; gap: 9px; }
.profile-toggle input { width: 16px; height: 16px; accent-color: var(--green); }
.privacy-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(780px, calc(100dvh - 28px)); overflow: auto; }
.privacy-dialog form { display: grid; gap: 12px; }
.privacy-intro, .privacy-footnote { margin: 0; color: #778177; font-size: 11px; line-height: 1.55; }
.sync-settings { padding: 10px 12px; border: 1px solid #e5e9e1; border-radius: 6px; background: #f8faf6; }
.sync-settings summary { color: #344238; font-size: 11px; font-weight: 700; cursor: pointer; }
.sync-settings > *:not(summary) { margin-top: 9px; }
.sync-settings label { display: grid; gap: 6px; color: #59665b; font-size: 10px; }
.sync-settings input { width: 100%; min-width: 0; padding: 0 8px; font: 10px/1.4 ui-monospace, monospace; }
.sync-settings .sync-recovery-code { height: auto; min-height: 42px; padding: 8px; overflow-wrap: anywhere; white-space: normal; }
.sync-settings .button { width: 100%; min-height: 34px; font-size: 10px; }
.sync-connect-form { display: grid; gap: 8px; }
.sync-settings { min-width: 0; }
.sync-recovery-code { overflow-wrap: anywhere; }
.privacy-required, .privacy-option { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #e5e9e1; border-radius: 6px; background: #fffefa; }
.privacy-required { background: #f2f5ef; }
.privacy-required > div, .privacy-option > span { min-width: 0; flex: 1; }
.privacy-required strong, .privacy-option strong { display: block; color: #344238; font-size: 11px; }
.privacy-required p { margin: 4px 0 0; color: #788278; font-size: 10px; line-height: 1.45; }
.privacy-option small { display: block; margin-top: 4px; color: #788278; font-size: 10px; line-height: 1.45; }
.privacy-option input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.learned-memory-management { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.learned-memory-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learned-memory-actions .button { min-height: 34px; font-size: 10px; }
.learned-memory-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.learned-memory-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 10px; padding: 9px; border: 1px solid #e6eae3; border-radius: 5px; background: #fffefa; color: #465448; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.learned-memory-list li small { color: #808980; font-size: 9px; text-transform: capitalize; }
.learned-memory-list li button { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.privacy-lock { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #dfece1; color: var(--green); }
.always-on { flex: 0 0 auto; color: #758474; font-size: 9px; }
.privacy-actions { display: flex; justify-content: space-between; gap: 9px; padding-top: 4px; }
.privacy-actions .button { min-height: 40px; font-size: 11px; }
.reminder-dialog input, .reminder-dialog select, .reminder-dialog textarea { width: 100%; height: 42px; border: 1px solid #e1e5dd; border-radius: 7px; outline-color: #759780; background: white; color: var(--ink); font-size: 12px; }
.reminder-dialog textarea.feedback-correction-field { min-height: 120px; height: auto; padding: 10px; resize: vertical; line-height: 1.5; }
.dialog-fields { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.dialog-fields select { padding: 0 9px; }
.form-error { min-height: 14px; margin: 0; color: #ad523d; font-size: 11px; }
.dialog-submit { width: 100%; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: min(360px, calc(100vw - 36px)); padding: 12px 16px; transform: translateY(12px); border-radius: 7px; background: var(--ink); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.auth-screen { display: grid; min-height: 100vh; place-items: center; padding: 22px; background: #f4f5ef; }
.auth-box { width: min(430px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.auth-box .brand-mark { margin-bottom: 24px; }
.auth-box h1 { margin: 10px 0; font: 700 27px Manrope, sans-serif; }
.auth-box .muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-actions { display: grid; gap: 10px; margin-top: 22px; }
.auth-recovery-toggle { margin-top: 12px; }
.account-recovery-form { display: grid; gap: 10px; margin-top: 12px; }
.account-recovery-form label { display: grid; gap: 6px; color: #59665b; font-size: 11px; }
.account-recovery-form input, .recovery-code-field { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #dfe5dc; border-radius: 6px; background: white; color: #26362c; font: 12px ui-monospace, monospace; }
.recovery-code-dialog[open] { display: grid; gap: 12px; }
.recovery-code-dialog .dialog-heading { margin: 0; }
.recovery-code-dialog h2 { font-size: 19px; }
.recovery-code-field { height: auto; min-height: 46px; padding: 10px; overflow-wrap: anywhere; }
.auth-language { display: block; margin: 18px 0 10px; }
.auth-language select { height: 38px; padding: 0 9px; border: 1px solid #e1e5dd; border-radius: 6px; background: white; color: var(--ink); font-size: 12px; }
.age-gate { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 13px 0; color: #657065; font-size: 11px; }
.age-gate span span { display: block; font-weight: 600; }
.age-gate small { display: block; margin-top: 4px; color: #8b948a; font-size: 10px; }
.age-gate input { width: 145px; height: 38px; padding: 0 7px; border: 1px solid #dfe4dc; border-radius: 6px; background: white; color: var(--ink); font-size: 11px; }
.button-primary { min-height: 44px; background: var(--green); color: white; }
.status-message { min-height: 20px; color: #865a46; font-size: 12px; }

@keyframes arrive { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1120px) {
  .sidebar { width: 190px; padding-inline: 16px; }
  .main-content { margin-left: 190px; padding-inline: 30px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 25px; }
  .travel-form { grid-template-columns: minmax(0, 1fr) auto; }
  .ticket-photo-upload, .travel-date-label, .travel-form .button { grid-column: 1 / -1; }
  .ticket-photo-source-controls .ticket-gallery-button, .receipt-control .photo-source-button { width: auto; min-height: 40px; flex: 1 1 0; padding: 0 9px; font-size: 10px; }
  .ticket-photo-source-controls .ticket-gallery-button span, .receipt-control .photo-source-button span { font-size: 10px; }
}
@media (max-width: 820px) {
  .market-ticker { top:var(--market-ticker-nav-height, 62px); }
  .sidebar { position: sticky; inset: 0 0 auto; width: auto; height: 62px; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { display: flex; gap: 3px; }
  .nav-link { min-height: 36px; gap: 6px; padding: 0 9px; font-size: 11px; }
  .nav-icon { font-size: 14px; }
  .sidebar-usage-guide { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; margin: 0 0 0 6px; padding: 0; border-radius: 6px; font-size: 0; }
  .sidebar-usage-guide::before { content: "?"; font-size: 14px; }
  .main-content { margin: 0; padding: 0 25px 40px; }
  .topbar { min-height: 70px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; }
}
@media (max-width: 650px) {
  .sidebar { height: 58px; padding: 0 12px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  .primary-nav { gap: 1px; }
  .primary-nav { max-width: 72vw; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-link { min-height: 34px; gap: 4px; padding: 0 7px; font-size: 10px; }
  .nav-icon { display: none; }
  .main-content { padding: 0 16px 32px; }
  .topbar { min-height: 62px; }
  .date-label { max-width: 130px; font-size: 10px; }
  .live-clock { gap: 4px; }
  .live-clock time { font-size: 13px; }
  .live-clock span { font-size: 9px; }
  .topbar-actions { gap: 5px; }
  .voice-output-control { min-width:32px; min-height:32px; padding:0 4px; }
  .button-outline { width: 36px; min-height: 36px; padding: 0; font-size: 0; }
  .button-outline span:first-child { font-size: 14px; }
  .avatar { width: 30px; height: 30px; }
  .greeting-band { min-height: 178px; padding: 25px 22px; }
  .greeting-band h1 { max-width: 245px; font-size: 27px; }
  .greeting-text { max-width: 270px; font-size: 12px; }
  .sun-stamp { right: 35px; font-size: 148px; }
  .voice-button { width: 38px; height: 38px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 27px; }
  .tools-section-nav { flex-wrap:nowrap; margin:0 -16px 14px; padding:0 16px 6px; overflow-x:auto; scrollbar-width:thin; }
  .tools-section-nav a { flex:0 0 auto; }
  .home-assistant-quick { grid-template-columns:1fr; gap:10px; padding-inline:4px; }
  .dashboard-grid[data-active-view="assistant"] .chat-messages { min-height:260px; max-height:54vh; }
  .weather-panel { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .weather-result { grid-template-columns: 1fr; gap: 7px; }
  .weather-updated { text-align: left; }
  .assistant-column { grid-row: 1; }
  .companion-panel { padding: 15px; }
  .chat-messages { min-height: 138px; max-height: 220px; }
  .idea-panel { display: none; }
  .section-heading h2 { font-size: 17px; }
  .task-row { min-height: 43px; }
  .travel-form { grid-template-columns: minmax(0, 1fr) auto; }
  .ticket-photo-upload, .travel-date-label, .travel-form .button { grid-column: 1 / -1; }
  .astrology-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .astrology-form .chart-subject-field, .astrology-form .chart-person-name, .astrology-form .birth-place, .astrology-form .birth-share-field, .astrology-form .button { grid-column: 1; }
}
@media (max-width: 390px) {
  .brand-light { display: none; }
  .nav-link { padding-inline: 5px; font-size: 9px; }
  .date-label { max-width: 106px; }
  .greeting-band { padding-inline: 17px; }
  .greeting-band h1 { font-size: 24px; }
  .travel-form { grid-template-columns: minmax(0, 1fr); }
  .ticket-photo-upload, .travel-date-label, .travel-form .button { grid-column: 1; }
  .flight-search { padding: 13px; }
  .flight-search-form { grid-template-columns: 1fr; }
  .flight-search-form .airline-field, .flight-submit { grid-column: auto; }
  .astrology-form { grid-template-columns: minmax(0, 1fr); }
  .transit-form { grid-template-columns: 1fr; }
  .transit-modes, .transit-form > .button { grid-column: auto; }
  .transit-modes span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 650px) {
  .privacy-dialog { padding: 18px; }
  .privacy-actions { flex-direction: column-reverse; }
  .lesson-form { grid-template-columns: 1fr 1fr; }
  .lesson-form .lesson-name, .lesson-form .lesson-room, .lesson-form .button { grid-column: 1 / -1; }
  .finance-form { grid-template-columns: 1fr 1fr; }
  .finance-description, .finance-form .button { grid-column: 1 / -1; }
  .photo-note-form { grid-template-columns: 1fr 1fr; }
  .photo-title-field, .photo-file-field, .photo-note-form .button, .photo-note-preview { grid-column: 1 / -1; }
  .photo-note-form > #analyzePhotoButton { justify-self:stretch; width:100%; }
  .receipt-control { grid-column: 1 / -1; }
  .receipt-preview { grid-column: 1 / -1; }
  .finance-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .finance-paid { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .sidebar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand guide" "nav nav"; align-content:start; align-items:center; gap:4px 8px; width:auto; height:auto; min-height:0; padding:8px 12px 0; }
  .brand { grid-area:brand; min-width:0; }
  .sidebar-usage-guide { grid-area:guide; margin:0; }
  .primary-nav { position:static; grid-area:nav; display:flex; width:100%; max-width:none; min-height:52px; align-items:stretch; gap:2px; overflow-x:auto; padding:2px 0 6px; border:0; background:transparent; box-shadow:none; overscroll-behavior-x:contain; scrollbar-width:none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-link { display:flex; min-width:0; min-height:44px; flex:1 1 0; flex-direction:column; justify-content:center; gap:3px; padding:4px 2px; border-radius:7px; font-size:10px; line-height:1.15; text-align:center; white-space:normal; }
  .nav-icon { display: inline-grid; width: auto; font-size: 17px; line-height: 1; }
  .main-content { padding: 0 16px 32px; }
  .weather-form { grid-template-columns: minmax(0, 1fr); }
  .weather-form .button { width: 100%; min-height: 44px; grid-column: 1 / -1; padding: 0 12px; font-size: 14px; white-space: normal; }
  .topbar-actions { gap: 7px; }
  .topbar-actions > .button-outline { width: auto; min-width: 42px; min-height: 42px; padding: 0 10px; font-size: 12px; }
  .topbar-actions > .button-outline span:first-child { font-size: 15px; }
  .avatar { width: 42px; height: 42px; }
  .date-label, .live-clock span, .eyebrow { font-size: 11px; }
  .greeting-text { font-size: 14px; }
  .voice-button { width: 44px; height: 44px; }
  .weather-panel { gap: 12px; padding: 16px; }
  .companion-panel { min-width: 0; padding: 16px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading .eyebrow, .progress-label, .weather-reading span, .weather-updated, .weather-day-extremes span, .weather-forecast-day, .weather-forecast-part > span, .weather-status, .weather-privacy, .task-kind, .reminder-copy span, .reminder-status, .privacy-note, .flight-search-form label, .transit-form > label, .travel-date-label, .lesson-form label, .photo-note-form label, .finance-form label, .astrology-form label { font-size: 12px; }
  .task-name, .empty-state, .reminder-empty, .weather-advice, .trip-copy span, .lesson-details span { font-size: 14px; }
  .task-row { min-height: 48px; }
  .button { min-height: 44px; font-size: 14px; }
  .button-outline { min-height: 44px; padding: 0 13px; font-size: 14px; }
  .quick-add input, .chat-form input, .reminder-dialog input, .travel-date-label input, .weather-city-label input, .flight-search-form input, .transit-form > label input, .lesson-form input, .lesson-form select, .photo-note-form input, .finance-form input, .finance-form select, .astrology-form input, .astrology-form select { font-size: 16px; }
  .reminder-dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; }
  .privacy-dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top)); padding: 16px; }
  .privacy-option, .privacy-required { gap: 10px; padding: 13px 12px; }
  .privacy-option strong, .privacy-required strong { font-size: 13px; }
  .privacy-option small, .privacy-required p, .privacy-intro, .privacy-footnote { font-size: 12px; }
}

@media (max-width: 390px) {
  .brand-light { display: inline; }
  .nav-link { min-width: 0; flex: 1 1 0; padding-inline: 1px; font-size: 10px; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar-actions { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: space-between; }
}

@media (max-width: 650px) {
  .astrology-read-aloud, .chart-reading > .button { width: 100%; min-height: 44px; justify-self: stretch; padding: 8px 12px; font-size: 14px; line-height: 1.35; white-space: normal; }
  .chart-reading-heading { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .chart-read-aloud { display: flex; width: 100%; min-width: 0; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  .chart-read-aloud input { display: block; width: 22px; min-width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; }
  .chart-read-aloud span { min-width: 0; }
}

@media (max-width: 650px) {
  .date-label { color: #18252c; font-size: 14px; font-weight: 800; }
  .live-clock { color: #0d5b4d; }
  .live-clock span { color: #273c42; font-size: 13px; font-weight: 700; }
  .weather-reading span, .weather-updated, .weather-day-extremes span, .weather-forecast-day, .weather-forecast-part > span:first-child, .weather-status, .weather-privacy { color: #34464d; font-size: 13px; }
  .weather-forecast-part > span:last-child { color: #273c42; font-size: 12px; }
  .weather-advice { color: #182c32; font-size: 15px; font-weight: 500; line-height: 1.6; }
  .emergency-entry { justify-content: stretch; margin-top: 14px; }
  .emergency-entry .button { width: 100%; min-height: 54px; justify-content: center; font-size: 16px; }
  .emergency-entry .button::before { width: 26px; height: 26px; font-size: 17px; }
  .nav-label, .eyebrow { font-size: 12px; }
  .date-label, .live-clock span, .progress-label, .weather-reading span, .weather-updated, .weather-day-extremes span, .weather-forecast-day, .weather-forecast-part > span, .weather-status, .weather-privacy, .task-kind, .reminder-copy span, .reminder-status, .privacy-note, .flight-search-form label, .transit-form > label, .travel-date-label, .lesson-form label, .photo-note-form label, .finance-form label, .astrology-form label { font-size: 13px; line-height: 1.45; }
  .weather-panel-heading h2 { font-size: 18px; }
  .weather-reading strong { font-size: 24px; }
  .weather-advice, .empty-state, .reminder-empty, .task-name, .trip-copy span, .lesson-details span { font-size: 15px; line-height: 1.55; }
  .section-heading h2, .companion-header h2 { font-size: 21px; line-height: 1.3; }
  .chat-bubble { font-size: 15px; line-height: 1.65; }
  .chat-sources, .chat-time, .voice-status, .assistant-mode-status { font-size: 12px; line-height: 1.5; }
  .companion-header .eyebrow { font-size: 12px; }
}

:root[data-color-theme="forest"] {
  color-scheme: dark;
  color: #edf5f2;
  background: #10191d;
  --app-bg: #10191d;
  --sidebar-bg: #162327;
  --surface: #1a282c;
  --surface-raised: #1c2a2e;
  --surface-accent: #1b3733;
  --nav-active-bg: #24463f;
  --nav-active-ink: #83e0c2;
  --primary-button: #16836e;
  --primary-button-hover: #1b9b80;
  --primary-button-ink: #ffffff;
  --border-strong: #34494c;
  --field-bg: #111d20;
  --ink: #edf5f2;
  --muted: #a9bcbb;
  --line: #34494c;
  --paper: #1c2a2e;
  --green: #55c8a6;
  --mint: #213c39;
  --coral: #ff987b;
  --gold: #f2c66f;
}

:root[data-color-theme="ocean"] {
  color-scheme: dark;
  color: #eaf5fa;
  background: #0c1721;
  --canvas: #0c1721;
  --app-bg: #0c1721;
  --sidebar-bg: #12222e;
  --surface: #172b37;
  --surface-raised: #1c3340;
  --surface-accent: #1b3b4b;
  --nav-active-bg: #1c4053;
  --nav-active-ink: #8bd5f1;
  --primary-button: #287c9f;
  --primary-button-hover: #3594b9;
  --primary-button-ink: #ffffff;
  --border-strong: #345363;
  --field-bg: #0f202a;
  --ink: #eaf5fa;
  --muted: #a8c0cb;
  --line: #345363;
  --paper: #172b37;
  --green: #65b9dc;
  --mint: #1b3b4b;
  --coral: #ff9a80;
  --gold: #f2c66f;
}

:root[data-color-theme="terracotta"] {
  color-scheme: dark;
  color: #f5f5f5;
  background: #090909;
  --canvas: #090909;
  --app-bg: #090909;
  --sidebar-bg: #111111;
  --surface: #191919;
  --surface-raised: #222222;
  --surface-accent: #303030;
  --nav-active-bg: #383838;
  --nav-active-ink: #ffffff;
  --primary-button: #f2f2f2;
  --primary-button-hover: #d8d8d8;
  --primary-button-ink: #111111;
  --border-strong: #424242;
  --field-bg: #151515;
  --ink: #e6e6e6;
  --muted: #b4b4b4;
  --line: #424242;
  --paper: #191919;
  --green: #c4c4c4;
  --mint: #292929;
  --coral: #b8b8b8;
  --gold: #c8c8c8;
}

#privacyDialog .privacy-option > input[type="checkbox"] {
  display: block;
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
  accent-color: #55c8a6;
}

#privacyDialog .privacy-option > span { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
#privacyDialog .privacy-actions { min-width: 0; }
#privacyDialog .privacy-actions .button { width: 100%; min-width: 0; min-height: 44px; padding: 0 13px; font-size: 14px; white-space: normal; }

body { background: var(--app-bg); color: var(--ink); }
.sidebar { background: var(--sidebar-bg); border-color: var(--border-strong); }
.brand, .date-label, .live-clock, .weather-panel-heading h2, .section-heading h2, .companion-header h2, .dialog-heading h2 { color: var(--ink); }
.brand-light, .nav-link, .sidebar-note, .text-button, .date-label, .live-clock span { color: #b3c5c3; }
.date-stack .date-label { color: #f2f7f5; }
.date-stack .live-clock span { color: #c9d8d5; }
.nav-link:hover, .nav-link.active { background: var(--nav-active-bg); color: var(--nav-active-ink); }
.sidebar-usage-guide { border-color: var(--border-strong); background: var(--surface); color: var(--nav-active-ink); }
.main-content { color: var(--ink); }
.language-picker select { color: #e6f0ed; }
.button-outline { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.button-outline:hover { background: #263a3d; }
.voice-input-button { border-color:var(--border-strong); background:var(--surface-raised); color:var(--green); }
.button-dark, .button-primary, .send-button, .add-task-button { background: var(--primary-button); color: var(--primary-button-ink); }
.button-dark:hover, .button-primary:hover, .send-button:hover, .add-task-button:hover { background: var(--primary-button-hover); }
.avatar { background: #4a302e; color: #ffc1aa; }
.greeting-band { background: var(--surface-accent); }
.greeting-copy .eyebrow { color: #8bd7bc; }
.greeting-band h1 { color: #f3f8f6; }
.greeting-text { color: #c3d9d2; }
.greeting-band::after { border-color: rgba(119, 218, 188, .2); }
.sun-stamp { color: rgba(242, 198, 111, .3); }
.voice-button { border-color: #50766c; background: #26443e; color: #9ce7ca; }
.weather-panel, .companion-panel, .birth-chart-result { border-color: var(--border-strong); background: var(--surface); }
.market-panel { border-color:var(--border-strong); background:var(--surface); }
.market-data-section, .market-disclosure, .market-fx-list li { border-color:#34494c; }
.market-data-section h3, .market-meta, .market-status, .market-disclosure, .market-fx-list li { color:#b2c4c1; }
.market-fx-list strong, .market-gold-price, .market-heading h2 { color:#edf5f2; }
.weather-panel-heading h2, .weather-reading strong, .weather-day-extremes strong, .weather-forecast-range strong { color: #edf5f2; }
.weather-icon, .astro-symbol { background: #493d26; color: #f2c66f; }
.weather-city-label input, .quick-add input, .chat-form input, .reminder-dialog input, .reminder-dialog select, .reminder-dialog textarea, .travel-date-label input, .flight-search-form input, .transit-form > label input, .lesson-form input, .lesson-form select, .photo-note-form input, .finance-form input, .finance-form select, .astrology-form input, .astrology-form select, .auth-language select, .age-gate input, .account-recovery-form input, .recovery-code-field {
  border-color: #40575a;
  background: var(--field-bg);
  color: var(--ink);
}
.weather-city-label input::placeholder, .quick-add input::placeholder, .chat-form input::placeholder, .reminder-dialog input::placeholder { color: #91a7a5; }
.weather-reading span, .weather-updated, .weather-day-extremes span, .weather-forecast-day, .weather-forecast-part > span:first-child, .weather-status, .weather-privacy { color: #b2c4c1; }
.weather-forecast-list li { background: #223235; }
.weather-forecast-part { border-color: #405356; }
.weather-forecast-part > span:last-child, .weather-advice { color: #d2e1dd; }
.section-block { border-color: #34494c; }
.task-row:hover { background: #203235; }
.task-name, .reminder-copy strong, .finance-copy strong, .trip-copy strong, .lesson-details strong { color: #e5efec; }
.task-kind, .progress-label, .empty-state, .trip-copy span, .lesson-details span { color: #a9bcbb; }
.reminder-item, .finance-item, .trip-item, .lesson-item, .flight-search, .transit-search, .photo-note-card, .reminder-empty, .finance-empty, .birth-chart-result, .learned-memory-list li { border-color: var(--border-strong); background: var(--surface-raised); color: var(--ink); }
.reminder-icon.personal { background: #24443d; color: #8fe0c2; }
.reminder-icon.meeting { background: #293b52; color: #aec8ef; }
.reminder-icon:not(.personal):not(.meeting) { background: #493a2a; color: #f0c17a; }
.travel-symbol { background: #4a302e; color: #ffad91; }
.transit-modes { border-color: #40575a; background: #152326; }
.astro-modes { border-color: var(--border-strong); background: var(--field-bg); }
.saved-chart-picker select { border-color: var(--border-strong); background: var(--field-bg); color: var(--ink); }
.transit-modes span, .astro-mode { color: #b2c4c1; }
.transit-modes input:checked + span, .astro-mode.active { background: var(--nav-active-bg); color: var(--nav-active-ink); box-shadow: none; }
.upload-control { border-color: #516568; background: #1c2a2e; color: #c3d3d0; }
.lesson-item { border-left-color: #55c8a6; }
.lesson-time, .text-action, .upload-symbol, .chart-read-aloud { color: #86dfbf; }
.finance-amount { color: #e5efec; }
.astrology-result { border-left-color: var(--gold); background: var(--surface-accent); }
.astrology-glyph { background: #4a4028; color: #f2d387; }
.astrology-result .eyebrow { color: #f0cd7d; }
.astrology-result h3, .birth-chart-result h3 { color: #f1e1b7; }
.horoscope-copy, .birth-chart-meta, .birth-chart-list li, .chart-house-meanings li > p { color: #cfddda; }
.chart-house-meanings h4, .chart-house-meanings .chart-house-personalized { color: #e6f2ed; }
.chart-house-general-label, .chart-house-meanings .chart-house-general-theme { color: #afc1be; }
.natal-wheel-background { fill: #142126; stroke: #789397; stroke-width: 2.5; }
.natal-wheel-sector { fill-opacity: .34; stroke: #668084; stroke-width: 1.8; }
.natal-wheel-sector:nth-of-type(3n) { fill-opacity: .46; }
.natal-wheel-inner-ring { stroke: #d4e2df; stroke-width: 2.2; }
.natal-wheel-house-line { stroke: #91aaa9; stroke-width: 1.5; }
.natal-wheel-core { fill: #1c2c31; stroke: #a7bfbb; stroke-width: 1.8; }
.natal-wheel-sign { fill: #ffffff; font: 700 15px Manrope, sans-serif; paint-order: stroke; stroke: #142126; stroke-width: 2.6px; stroke-linejoin: round; }
.natal-wheel-house-number { fill: #ffffff; font: 700 14px Manrope, sans-serif; paint-order: stroke; stroke: #1c2c31; stroke-width: 2px; stroke-linejoin: round; }
.natal-wheel-planet-marker { fill: #111c20; stroke: #f2c66f; stroke-width: 2; }
.natal-wheel-planet-symbol { fill: #ffffff; font: 700 15px sans-serif; }
.natal-wheel-aspect-line { stroke-width: 2.2; stroke-opacity: .95; }
.natal-wheel-angle { stroke: #8ce8c6; stroke-width: 3; }
.natal-wheel-ascendant { stroke: #ff9a7e; }
.natal-wheel-midheaven { stroke: #87c8ff; }
.natal-wheel-angle-label { fill: #ffffff; font: 800 13px Manrope, sans-serif; paint-order: stroke; stroke: #142126; stroke-width: 2.5px; stroke-linejoin: round; }
.natal-wheel-center { fill: #f2c66f; }
.natal-wheel-house-line, .birth-chart-list li, .natal-wheel-section { border-color: #3b5053; }
.natal-wheel-legend, .chart-reading-disclaimer { color: #afc1be; }
.chart-interpretation { border-left-color: var(--green); background: var(--surface-accent); color: var(--ink); }
.companion-header { border-color: #34494c; }
.companion-avatar { background: #25443d; color: #8fe0c2; }
.assistant-mode-status, .voice-status { color: #afc1be; }
.assistant-mode-status.is-local-ai { color: #8fe0c2; }
.chat-messages, .chat-form { border-color: #34494c; }
.chat-bubble { background: #263b39; color: #e3f0eb; }
.chat-bubble.user { background: #49322f; color: #ffd0bd; }
.chat-action-link { color: #8fe0c2; }
.chat-sources { color: #b7cac5; }
.chat-feedback-button { border-color: #40575a; background: #1c2a2e; color: #d7e5e1; }
.chat-feedback-button.is-selected { border-color: #55c8a6; background: #24483e; color: #a3edd1; }
.chat-time { color: #a2b5b2; }
.emergency-entry .button { border-color: #ff806d; background: #492624; color: #ffd0c4; box-shadow: 0 2px 12px rgba(255, 128, 109, .18); }
.emergency-entry .button::before { background: #e6534a; color: #fff; }
.reminder-dialog, .auth-box { border-color: #3a5053; background: #1a282c; color: #edf5f2; }
.icon-button.close-button { border: 1px solid #89aaa5; background: #30484a; color: #fff; font-size: 25px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px #1a282c; }
.icon-button.close-button:hover { border-color: #b8eee0; background: #42615d; color: #fff; }
.icon-button.close-button:focus-visible { outline: 3px solid #f2c66f; outline-offset: 3px; }
.reminder-dialog::backdrop, .receipt-dialog::backdrop { background: rgba(3, 10, 12, .72); }
.reminder-dialog label, .account-recovery-form label, .emergency-dialog label { color: #cfddda; }
.privacy-intro, .privacy-footnote { color: #b2c4c1; }
.sync-settings { border-color: #3b5053; background: #202f33; }
.sync-settings summary, .privacy-required strong, .privacy-option strong { color: #e7f1ee; }
.sync-settings label { color: #c5d5d1; }
.privacy-required, .privacy-option { border-color: #3b5053; background: #1d2c30; }
.privacy-required { background: #243633; }
.privacy-required p, .privacy-option small { color: #b3c5c2; }
.privacy-lock { background: #295047; color: #a0ebce; }
.always-on { color: #c0d0cd; }
.learned-memory-list li { color: #dbe9e5; }
.learned-memory-list li small { color: #b2c4c1; }
.account-recovery-form input, .recovery-code-field { border-color: #40575a; background: #111d20; color: #edf5f2; }
.auth-screen { background: #10191d; }
.auth-box .muted, .age-gate, .account-recovery-form label { color: #c0d0cd; }

:root[data-color-theme="terracotta"] .date-label,
:root[data-color-theme="terracotta"] .live-clock,
:root[data-color-theme="terracotta"] .live-clock span,
:root[data-color-theme="terracotta"] .weather-reading strong,
:root[data-color-theme="terracotta"] .weather-reading span,
:root[data-color-theme="terracotta"] .weather-updated,
:root[data-color-theme="terracotta"] .weather-advice,
:root[data-color-theme="terracotta"] .weather-day-extremes strong,
:root[data-color-theme="terracotta"] .weather-day-extremes span,
:root[data-color-theme="terracotta"] .weather-forecast-day,
:root[data-color-theme="terracotta"] .weather-forecast-part > span,
:root[data-color-theme="terracotta"] .weather-status,
:root[data-color-theme="terracotta"] .weather-privacy,
:root[data-color-theme="terracotta"] .task-name,
:root[data-color-theme="terracotta"] .reminder-copy strong,
:root[data-color-theme="terracotta"] .finance-copy strong,
:root[data-color-theme="terracotta"] .trip-copy strong,
:root[data-color-theme="terracotta"] .lesson-details strong,
:root[data-color-theme="terracotta"] .nav-link,
:root[data-color-theme="terracotta"] .chat-bubble,
:root[data-color-theme="terracotta"] .chat-action-link,
:root[data-color-theme="terracotta"] .section-heading h2,
:root[data-color-theme="terracotta"] .companion-header h2,
:root[data-color-theme="terracotta"] .dialog-heading h2,
:root[data-color-theme="terracotta"] .greeting-band h1,
:root[data-color-theme="terracotta"] .greeting-text,
:root[data-color-theme="terracotta"] .greeting-copy .eyebrow,
:root[data-color-theme="terracotta"] .weather-icon,
:root[data-color-theme="terracotta"] .astro-symbol,
:root[data-color-theme="terracotta"] .astrology-result h3,
:root[data-color-theme="terracotta"] .birth-chart-result h3,
:root[data-color-theme="terracotta"] .astrology-result .eyebrow,
:root[data-color-theme="terracotta"] .lesson-time,
:root[data-color-theme="terracotta"] .text-action,
:root[data-color-theme="terracotta"] .upload-symbol,
:root[data-color-theme="terracotta"] .chart-read-aloud,
:root[data-color-theme="terracotta"] .chat-feedback-button.is-selected {
  color:var(--ink);
}
:root[data-color-theme="terracotta"] .sidebar-usage-guide,
:root[data-color-theme="terracotta"] .greeting-band,
:root[data-color-theme="terracotta"] .voice-button,
:root[data-color-theme="terracotta"] .weather-panel,
:root[data-color-theme="terracotta"] .companion-panel,
:root[data-color-theme="terracotta"] .weather-forecast-list li,
:root[data-color-theme="terracotta"] .reminder-item,
:root[data-color-theme="terracotta"] .finance-item,
:root[data-color-theme="terracotta"] .trip-item,
:root[data-color-theme="terracotta"] .lesson-item,
:root[data-color-theme="terracotta"] .flight-search,
:root[data-color-theme="terracotta"] .transit-search,
:root[data-color-theme="terracotta"] .photo-note-card,
:root[data-color-theme="terracotta"] .astrology-result,
:root[data-color-theme="terracotta"] .birth-chart-result,
:root[data-color-theme="terracotta"] .chart-interpretation,
:root[data-color-theme="terracotta"] .chat-bubble,
:root[data-color-theme="terracotta"] .chat-bubble.user,
:root[data-color-theme="terracotta"] .nav-link:hover,
:root[data-color-theme="terracotta"] .nav-link.active,
:root[data-color-theme="terracotta"] .astro-mode.active,
:root[data-color-theme="terracotta"] .transit-modes input:checked + span {
  background:var(--surface-raised);
  color:var(--ink);
  border-color:var(--border-strong);
}
:root[data-color-theme="terracotta"] .button-dark,
:root[data-color-theme="terracotta"] .button-primary,
:root[data-color-theme="terracotta"] .send-button,
:root[data-color-theme="terracotta"] .add-task-button {
  color:var(--primary-button-ink);
}
:root[data-color-theme="terracotta"] .button-dark:hover,
:root[data-color-theme="terracotta"] .button-primary:hover,
:root[data-color-theme="terracotta"] .send-button:hover,
:root[data-color-theme="terracotta"] .add-task-button:hover {
  color:var(--primary-button-ink);
}
:root[data-color-theme="terracotta"] .avatar,
:root[data-color-theme="terracotta"] .weather-icon,
:root[data-color-theme="terracotta"] .astro-symbol,
:root[data-color-theme="terracotta"] .astrology-glyph,
:root[data-color-theme="terracotta"] .reminder-icon,
:root[data-color-theme="terracotta"] .travel-symbol,
:root[data-color-theme="terracotta"] .companion-avatar,
:root[data-color-theme="terracotta"] .emergency-entry .button,
:root[data-color-theme="terracotta"] .emergency-entry .button::before {
  background:#303030;
  color:var(--ink);
}
:root[data-color-theme="terracotta"] .button-outline:hover { background:#292929; }
:root[data-color-theme="terracotta"] .weather-forecast-icon,
:root[data-color-theme="terracotta"] .note-dot,
:root[data-color-theme="terracotta"] .online-dot,
:root[data-color-theme="terracotta"] .assistant-mode-status.is-local-ai,
:root[data-color-theme="terracotta"] .age-gate small,
:root[data-color-theme="terracotta"] .auth-recovery-toggle,
:root[data-color-theme="terracotta"] .status-message {
  color:var(--muted);
}
:root[data-color-theme="terracotta"] .note-dot,
:root[data-color-theme="terracotta"] .online-dot { background:#a0a0a0; }
:root[data-color-theme="terracotta"] .sun-stamp { color:rgba(220,220,220,.16); }
:root[data-color-theme="terracotta"] :focus-visible { outline-color:#bdbdbd; }
:root[data-color-theme="terracotta"] .toast { background:#e5e5e5; color:#181818; }
.age-gate small, .auth-recovery-toggle { color: #a8cfc1; }
.status-message { color: #ffd19a; }
.toast { background: #e5efec; color: #18252c; }

.birth-chart-meta { color: #d9e7e3; font-size: 14px; line-height: 1.65; }
.birth-chart-result h3 { color: #f4f8f6; font-size: 18px; line-height: 1.35; }
.birth-chart-list li { color: #edf5f2; font-size: 14px; line-height: 1.55; }
.birth-chart-list li span:last-child { color: #dce9e5; }
.chart-house-meanings li { border-color: #405356; }
.chart-house-meanings h4 { color: #f2f7f5; font-size: 15px; line-height: 1.4; }
.chart-house-meanings li > p, .chart-house-meanings .chart-house-personalized { color: #e1ece9; font-size: 14px; line-height: 1.6; }
.chart-house-general-label { color: #b8cac6; font-size: 12px; line-height: 1.45; }
.chart-house-meanings .chart-house-general-theme { color: #d2e1dc; font-size: 14px; line-height: 1.6; }
.natal-wheel-legend { color: #d6e4df; font-size: 14px; line-height: 1.65; }
.chart-reading-disclaimer { color: #c7d8d3; font-size: 13px; line-height: 1.6; }
.chart-interpretation { color: #f0f6f3; font-size: 16px; line-height: 1.75; }

@media (max-width: 650px) {
  .primary-nav { border-color:transparent; background:transparent; box-shadow:none; }
  .weather-panel, .companion-panel { background: #1a282c; }
  .birth-chart-meta { font-size: 14px; }
  .birth-chart-result h3 { font-size: 19px; }
  .birth-chart-list li { font-size: 15px; line-height: 1.6; }
  .chart-house-meanings h4 { font-size: 16px; }
  .chart-house-meanings li > p, .chart-house-meanings .chart-house-personalized, .chart-house-meanings .chart-house-general-theme { font-size: 15px; line-height: 1.65; }
  .chart-house-general-label { font-size: 13px; }
  .natal-wheel-legend { font-size: 14px; }
  .chart-reading-disclaimer { font-size: 13px; }
  .chart-interpretation { font-size: 16px; }
}