.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: var(--space-5); }
/* Every card gets comfortable inner spacing by default. Panels that need
   their own rhythm (e.g. .preferences-card, .goal-card) override this in
   later stylesheets; compact-cards mode shrinks it via [data-compact-cards]. */
.eyebrow { margin-bottom: var(--space-2); color: var(--gold); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 var(--space-3); border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap; }
.button, .icon-button { min-height: 44px; border-radius: var(--radius-md); background: var(--accent); color: var(--surface-elevated); transition: transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.button { padding: var(--space-3) var(--space-5); font-weight: var(--weight-semibold); }.button--secondary { border: 1px solid var(--border); background: var(--surface-elevated); color: var(--text); }.button:disabled { opacity: .58; cursor: wait; }.icon-button { width: 44px; display: inline-grid; place-items: center; }.button:active:not(:disabled), .icon-button:active { transform: scale(.98); }.select-control { width: 100%; min-height: 48px; padding: 0 2.5rem 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); background: var(--surface-elevated); font-size: 1rem; }.field-label { display: inline-block; margin-bottom: var(--space-2); color: var(--text-secondary); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.section-expander__heading{position:relative;padding-right:3rem}.section-expander__toggle{position:absolute;right:0;top:50%;width:44px;height:44px;display:grid;place-items:center;transform:translateY(-50%);border-radius:50%;color:var(--text-secondary);background:transparent;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.section-expander__toggle:hover{background:var(--surface-elevated);color:var(--text)}.section-expander__caret{display:block;font-size:1.35rem;line-height:1;transform:rotate(180deg);transition:transform var(--motion-base) var(--ease-standard)}.section-expander.is-collapsed .section-expander__caret{transform:rotate(0deg)}.section-expander__body{display:grid;gap:inherit}.section-expander__body[hidden]{display:none!important}.section-expander.is-collapsed{padding-bottom:var(--space-3)}html[data-motion="reduced"] .section-expander__caret{transition:none}
.bottom-nav { position: fixed; z-index: var(--z-nav); left: 0; right: 0; bottom: 0; padding: var(--space-2) max(var(--space-3), env(safe-area-inset-right)) calc(var(--space-2) + env(safe-area-inset-bottom)) max(var(--space-3), env(safe-area-inset-left)); background: var(--nav-bg); border-top: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard); }.bottom-nav__inner { width: min(100%, 720px); margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-1); }.nav-item { min-width: 0; min-height: 56px; padding: var(--space-2); display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: var(--radius-lg); color: var(--text-muted); background: transparent; font-size: .72rem; font-weight: var(--weight-semibold); transition: color var(--motion-base) var(--ease-standard), background var(--motion-base) var(--ease-standard); touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }.nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.nav-item.is-active { color: var(--accent); background: var(--accent-soft); }.empty-state { min-height: 360px; padding: var(--space-8) var(--space-6); display: grid; align-content: center; justify-items: start; }.empty-state__icon { width: 52px; height: 52px; margin-bottom: var(--space-6); display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--gold); background: var(--surface-elevated); font-size: var(--text-lg); font-weight: var(--weight-bold); }.empty-state h1 { margin-bottom: var(--space-4); max-width: 14ch; font-size: var(--text-2xl); }.empty-state p:last-child { margin-bottom: 0; max-width: 42rem; color: var(--text-secondary); }.status-list { display: grid; gap: var(--space-2); margin-block: var(--space-4); }.status-row { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-elevated); color: var(--text-secondary); }.status-row strong { color: var(--text); font-size: var(--text-sm); }.install-help { margin-top: var(--space-4); border-top: 1px solid var(--border); padding-top: var(--space-4); color: var(--text-secondary); }.install-help summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--text); font-weight: var(--weight-semibold); }.install-help ol { margin: var(--space-2) 0 0; padding-left: 1.25rem; }.install-help li + li { margin-top: var(--space-2); }.update-banner { position: fixed; z-index: calc(var(--z-nav) + 1); left: 0; right: 0; bottom: 0; min-height: var(--update-bar-height); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) max(var(--space-4), env(safe-area-inset-right)) calc(var(--space-2) + env(safe-area-inset-bottom)) max(var(--space-4), env(safe-area-inset-left)); background: var(--surface-elevated); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgb(0 0 0 / .08); }.update-banner[hidden] { display: none; }.update-banner__text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.update-banner__text strong { color: var(--text); font-weight: var(--weight-semibold); }.update-banner__actions { flex: 0 0 auto; display: flex; gap: var(--space-2); }.update-banner__actions .button { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }.toast-region { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); width: min(calc(100% - 2rem), 420px); transform: translateX(-50%); display: grid; gap: var(--space-2); pointer-events: none; }.toast { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-elevated); box-shadow: var(--shadow-md); color: var(--text); font-size: var(--text-sm); pointer-events: auto; }.toast[data-type="success"] { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }.toast[data-type="warning"] { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }.toast[data-type="error"] { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }.overlay-backdrop { position: fixed; z-index: var(--z-overlay); inset: 0; display: grid; place-items: center; padding: max(var(--space-5), env(safe-area-inset-top)) max(var(--space-5), env(safe-area-inset-right)) max(var(--space-5), env(safe-area-inset-bottom)) max(var(--space-5), env(safe-area-inset-left)); background: var(--scrim); }.dialog-panel { width: min(100%, 520px); max-height: min(80dvh, calc(var(--veyra-viewport-height, 100dvh) - var(--space-6))); overflow: auto; padding: var(--space-6); border-radius: var(--radius-card); background: var(--surface-elevated); box-shadow: var(--shadow-md); }.dialog-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }.sheet-backdrop { position: fixed; z-index: var(--z-overlay); inset: 0; display: grid; align-items: end; background: var(--scrim); }.sheet-panel { width: 100%; max-height: 84dvh; overflow: auto; padding: var(--space-6) max(var(--space-5), env(safe-area-inset-right)) calc(var(--space-6) + env(safe-area-inset-bottom)) max(var(--space-5), env(safe-area-inset-left)); border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--surface-elevated); box-shadow: var(--shadow-md); }.save-status { margin-left: auto; display: grid; justify-items: end; gap: 1px; color: var(--text-secondary); font-size: var(--text-xs); }.save-status[hidden] { display: none; }.save-status__primary { font-weight: var(--weight-semibold); }.save-status[data-status="saved"] .save-status__primary { color: var(--success); }.save-status[data-status="error"] .save-status__primary { color: var(--danger); }.save-status__secondary { color: var(--text-muted); font-size: .68rem; }.recovery-review { display: grid; gap: var(--space-5); margin-top: var(--space-4); }.recovery-review__item { display: grid; gap: var(--space-2); }.recovery-review__item h3 { font-size: var(--text-md); }.recovery-review__item pre { margin: 0 0 var(--space-3); padding: var(--space-3); white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font: inherit; line-height: 1.55; }.recovery-review__note { color: var(--warning); font-size: var(--text-sm); }.dev-persistence-card { margin-bottom: var(--space-5); padding: var(--space-6); border-style: dashed; }.dev-persistence-textarea { width: 100%; min-height: 180px; resize: vertical; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-elevated); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.6; }.dev-persistence-controls { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }.dev-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); font-size: var(--text-sm); }.dev-toggle input { width: 20px; height: 20px; }.revision-list { display: grid; gap: var(--space-4); margin-top: var(--space-4); }.revision-list__item { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }.revision-list__item p { margin-block: var(--space-2) var(--space-3); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-secondary); } html[data-update-available="true"] { scroll-padding-bottom: calc(164px + var(--update-bar-height) + env(safe-area-inset-bottom)); }html[data-update-available="true"] .bottom-nav { bottom: calc(var(--update-bar-height) + env(safe-area-inset-bottom)); }html[data-update-available="true"] .app-shell { padding-bottom: calc(88px + var(--update-bar-height) + env(safe-area-inset-bottom)); }html[data-update-available="true"] .toast-region { bottom: calc(84px + var(--update-bar-height) + env(safe-area-inset-bottom)); }
html { --update-bar-height: 60px; overscroll-behavior-y: none; scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
body { min-height: var(--veyra-viewport-height, 100dvh); }
input, textarea, select, button, summary, a { -webkit-tap-highlight-color: transparent; }
input, textarea, select { scroll-margin-block: 20vh calc(112px + env(safe-area-inset-bottom)); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 72%, white); outline-offset: 3px; }
html[data-network="offline"] .bottom-nav { border-top-color: color-mix(in srgb, var(--warning) 28%, var(--border)); }
html[data-pwa-display="standalone"] .bottom-nav { padding-bottom: max(calc(var(--space-2) + env(safe-area-inset-bottom)), 14px); }
html[data-pwa-display="standalone"] .app-header { -webkit-user-select: none; user-select: none; }
html[data-keyboard="open"] .bottom-nav { transform: translateY(110%); opacity: 0; pointer-events: none; }
html[data-keyboard="open"] .app-shell { padding-bottom: var(--space-6); }
html[data-keyboard="open"] .update-banner { display: none; }html[data-keyboard="open"] .toast-region { bottom: max(var(--space-3), env(safe-area-inset-bottom)); }
html[data-keyboard="open"] .sheet-panel { max-height: calc(var(--veyra-viewport-height, 100dvh) - var(--space-4)); }
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
@media (display-mode: standalone) { .toast-region { bottom: calc(92px + env(safe-area-inset-bottom)); } html[data-update-available="true"] .toast-region { bottom: calc(92px + var(--update-bar-height) + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .nav-item { grid-auto-flow: column; justify-content: center; justify-items: initial; gap: var(--space-2); font-size: var(--text-sm); } }
@media (max-width: 599px) { .brand__tagline { display: none !important; } .save-status__secondary { display: none; } .update-banner__text span { display: none; }.update-banner__actions .button { padding-inline: var(--space-3); } .sheet-panel { max-height: min(88dvh, var(--veyra-viewport-height, 88dvh)); } }
@media (max-width: 360px) { .bottom-nav { padding-left: max(var(--space-1), env(safe-area-inset-left)); padding-right: max(var(--space-1), env(safe-area-inset-right)); } .bottom-nav__inner { gap: 0; } .nav-item { min-height: 52px; padding-inline: 2px; font-size: .66rem; } .nav-item svg { width: 20px; height: 20px; } .toast-region { width: calc(100% - .75rem); } .dialog-panel { padding: var(--space-4); } }
@media (orientation: landscape) and (max-height: 520px) { .bottom-nav { padding-top: var(--space-1); padding-bottom: max(var(--space-1), env(safe-area-inset-bottom)); } .nav-item { min-height: 46px; grid-auto-flow: column; justify-content: center; gap: var(--space-2); padding-block: var(--space-1); } .nav-item svg { width: 19px; height: 19px; } .toast-region { bottom: calc(60px + env(safe-area-inset-bottom)); }html[data-update-available="true"] .toast-region { bottom: calc(60px + var(--update-bar-height) + env(safe-area-inset-bottom)); } .sheet-panel { max-height: calc(var(--veyra-viewport-height, 100dvh) - var(--space-2)); } }
@media (hover: none) { .section-expander__toggle:hover { background: transparent; color: var(--text-secondary); } }
