/* Veyra v135 — editorial botanical polish layer (visual only). */
:root { --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
body { font-feature-settings: "kern", "liga"; }
h1, h2, .page-heading h1, .today-date-heading h1, .brand__text { font-family: var(--font-display); font-weight: 600; letter-spacing: -.018em; }
h3 { letter-spacing: -.012em; }
.card h2, .card h3, .session-card h2, .settings-card h2 { font-family: var(--font-display); font-weight: 600; }

/* Field */
.app-shell { background:
  radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--gold-bright) 9%, transparent) 0, transparent 55%),
  radial-gradient(90% 50% at 0% 100%, color-mix(in srgb, var(--accent) 6%, transparent) 0, transparent 60%),
  var(--bg); }

/* Frosted header */
.app-header { background: color-mix(in srgb, var(--bg) 74%, transparent); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--hairline); box-shadow: 0 1px 0 var(--sheen) inset; padding-top: calc(var(--space-2) + env(safe-area-inset-top)); padding-bottom: var(--space-2); }
.brand { gap: .65rem; }
.brand__mark { width: 36px; height: 36px; padding: 1px; border: 1px solid color-mix(in srgb, var(--gold-bright) 45%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-bright) 10%, transparent), var(--shadow-sm); }
.brand__text { font-size: 1.32rem; letter-spacing: .01em; }
@media (min-width: 400px) { .brand__tagline { display: block; max-width: 46%; text-align: right; font-family: var(--font-display); font-style: italic; font-size: .82rem; line-height: 1.3; color: var(--text-muted); } }

/* Sculpted bottom nav */
.bottom-nav { background: var(--nav-bg); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-top: 1px solid var(--hairline); box-shadow: 0 1px 0 var(--sheen) inset, 0 -10px 30px -12px rgb(0 0 0 / .12); }
.nav-item { min-height: 54px; position: relative; letter-spacing: .02em; transition: color var(--motion-base) var(--ease-standard), background var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }
.nav-item:active { transform: scale(.97); }
.nav-item svg { stroke-width: 1.6; }
.nav-item.is-active { color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 85%, transparent); box-shadow: inset 0 1px 0 var(--sheen), 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
.nav-item.is-active svg { stroke-width: 1.9; }
.nav-item.is-active::before { content: ""; position: absolute; top: 4px; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--gold-bright); }

/* Cards */
.card { border-color: var(--hairline); border-radius: var(--radius-card); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-elevated) 60%, var(--surface)) 0, var(--surface) 100%); box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-sm); }
.eyebrow { color: var(--gold); font-size: .7rem; letter-spacing: .16em; font-weight: 650; }
.page-heading h1 { letter-spacing: -.02em; }
.page-heading__lead { font-family: var(--font-display); font-style: italic; }
.session-card__time { background: linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 70%, var(--surface))); box-shadow: inset 0 1px 0 var(--sheen), 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
.today-date-nav { border-color: var(--hairline); background: var(--surface-elevated); box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-sm); }

/* Buttons */
.button { border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white) 0, var(--accent) 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 2px rgb(0 0 0 / .12), 0 6px 16px -6px color-mix(in srgb, var(--accent) 55%, transparent); letter-spacing: .01em; }
.button--secondary { background: var(--surface-elevated); color: var(--text); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--sheen), 0 1px 2px rgb(0 0 0 / .05); }
.button:active:not(:disabled), .icon-button:active { transform: scale(.985); }
.pill { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); letter-spacing: .02em; }

/* Inputs & writing surfaces */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea, .select-control { font-size: max(16px, 1rem); }
textarea { background: var(--surface-elevated); border-color: var(--border); border-radius: 16px; box-shadow: inset 0 1px 2px rgb(0 0 0 / .03); line-height: 1.7; }
textarea:focus, input:focus, select:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); outline: none; }
.select-control { border-color: var(--border); box-shadow: inset 0 1px 0 var(--sheen); }

/* Overlays */
.dialog-panel, .sheet-panel { border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-lg, var(--shadow-md)); }
.sheet-panel { border-bottom: 0; }
.toast { border-color: var(--hairline); border-radius: 14px; background: color-mix(in srgb, var(--surface-elevated) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-md); }
.update-banner { background: color-mix(in srgb, var(--surface-elevated) 86%, transparent); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-top: 1px solid var(--hairline); }
.update-banner__text strong { font-family: var(--font-display); }

@media (prefers-reduced-motion: reduce) { .nav-item, .button { transition: none; } }
/* Small-phone containment for Trust Center (fixes 4px overflow at 320px) */
.trust-center { grid-template-columns: minmax(0, 1fr); }
.trust-status-grid > *, .trust-sync-grid > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .trust-status-grid, .trust-sync-grid { grid-template-columns: minmax(0, 1fr); } }

/* v136 — calm Today top + Capture pill ergonomics */
.today-heading { padding-top: var(--space-2); margin-bottom: var(--space-4); }
.today-date-jump-row { margin-top: var(--space-2); }
.today-date-jump-row .field-label { margin: 0; }
.today-date-jump { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.today-favorite-slot .favorite-controls { margin-top: var(--space-1, 4px); }
.today-backup-nudge-slot > .card + .card { display: none; }
.quick-capture-fab { transition: opacity .2s ease, transform .2s ease; }
html[data-typing="on"] .quick-capture-fab, html[data-keyboard="open"] .quick-capture-fab { opacity: 0; pointer-events: none; transform: translateY(12px); visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.app-main .screen__content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
html { scroll-padding-top: calc(76px + env(safe-area-inset-top)); scroll-padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.app-main textarea, .app-main [contenteditable] { scroll-margin-top: calc(84px + env(safe-area-inset-top)); scroll-margin-bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .quick-capture-fab { transition: none; } }
