@import url('/fonts.css');
@import url('/brand/tokens.css');

:root {
 --bg: #f6f7f2;
 --paper: #fffefa;
 --ink: #172e25;
 --muted: #516356;
 --green: var(--jr-brand-pine);
 --line: #dce3d8;
 --soft: #eaf1e6;
 --warm: #f8edcc;
 --radius: 24px;
 --frame: 760px;
 --edge: clamp(16px, 5vw, 32px);
 --dock-space: calc(112px + env(safe-area-inset-bottom));
 font-family: var(--jr-font);
 font-size: 16px;
 font-synthesis: none;
 color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-padding-bottom: var(--dock-space); }
body { margin: 0; background: var(--bg); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(2rem, 7.5vw, 3.25rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); letter-spacing: -.045em; line-height: 1.2; }
h3 { font-size: 1.18rem; letter-spacing: -.035em; }
p { line-height: 1.5; }
small { font-size: .76rem; }
a { color: var(--green); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8b550c; outline-offset: 3px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.icon { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.brand img { display: block; width: 128px; height: auto; }
.eyebrow { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.boot { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }

.button, .icon-button, .text-button {
 display: inline-flex; align-items: center; justify-content: center; gap: 7px;
 min-height: 46px; border: 1px solid transparent; border-radius: 14px;
 font-size: .88rem; font-weight: 680; text-decoration: none;
 transition: background-color .16s, transform .16s;
}
.button { padding: 9px 15px; }
.button .icon, .text-button .icon { width: 17px; height: 17px; }
.button:active, .icon-button:active, .voice-trigger:active { transform: translateY(1px); }
.primary { background: var(--green); color: #fff; }
.secondary, .icon-button { background: var(--paper); color: var(--green); border-color: var(--line); }
.icon-button { width: 46px; padding: 0; flex: none; }
.text-button { background: transparent; padding: 6px 0; color: var(--green); }
.danger { color: #a14432; }
@media (hover: hover) {
 .primary:hover { background: #142f24; }
 .secondary:hover, .icon-button:hover { background: var(--soft); }
 .text-button:hover { text-decoration: underline; }
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; font-size: .84rem; font-weight: 680; }
.field input, .field textarea, .field select, .time-input input {
 width: 100%; min-width: 0; min-height: 48px; padding: 10px 13px; border-radius: 13px;
 background: #fff; border: 1px solid #ced9cc; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #627466; }
.inline-error { color: #9a3c2b; font-size: .85rem; margin: 10px 0; }
.inline-error:empty, .shopping-status:empty, .admin-status:empty, .voice-feedback:empty { display: none; }

.login-screen {
 min-height: 100svh; padding: max(24px, env(safe-area-inset-top)) var(--edge) max(24px, env(safe-area-inset-bottom));
 display: grid; place-items: center;
 background: radial-gradient(ellipse at 50% 24%, #e8efe1, transparent 70%);
}
.login-panel {
 width: min(100%, 414px); padding: clamp(22px, 6vw, 36px);
 background: var(--paper); border: 1px solid var(--line); border-radius: 30px;
 box-shadow: 0 18px 52px #1833260e;
}
.login-panel > .brand { margin-bottom: 26px; }
.account-login h1 { font-size: clamp(1.9rem, 7.8vw, 2.6rem); }
.account-login > .muted { font-size: .92rem; margin: 10px 0 25px; }
.account-login input[name="pin"] { letter-spacing: .2em; }
.account-login > .button { width: 100%; justify-content: space-between; min-height: 52px; margin-top: 6px; }

.app-frame { width: min(100%, var(--frame)); margin: 0 auto; padding: env(safe-area-inset-top) var(--edge) var(--dock-space); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 76px; }
.header-account, .user-chip { display: flex; align-items: center; gap: 7px; min-width: 0; }
.user-chip { padding: 4px 9px 4px 4px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); }
.avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 50%; background: var(--soft); color: var(--green); font-weight: 700; font-size: .78rem; }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 680; }
.logout-button { border-radius: 50%; background: transparent; }
.logout-button .icon { width: 18px; height: 18px; }

.theme-pillbox { --accent: #e2eedc; --accent-light: #f0f5ed; --accent-line: #d3e3cd; --accent-deep: #325a39; }
.theme-shopping { --accent: #f8e9ad; --accent-light: #fcf5dc; --accent-line: #ebddae; --accent-deep: #614b12; }
.theme-home { --accent: #204639; --accent-line: #204639; --accent-deep: #e0edda; color: #fffefa; }
.area-hero {
 min-height: 164px; position: relative; isolation: isolate; overflow: hidden;
 display: flex; align-items: center; justify-content: space-between; gap: 12px;
 padding: clamp(19px, 4.7vw, 32px); border: 1px solid var(--accent-line);
 border-radius: clamp(23px, 5.8vw, 34px); background: var(--accent);
}
.area-hero::before, .area-hero::after {
 content: ''; position: absolute; z-index: -1; right: -40px; bottom: -118px; width: 244px; height: 244px;
 border: 1px solid currentColor; border-radius: 50%; opacity: .13; pointer-events: none;
}
.area-hero::after { right: -60px; bottom: -138px; width: 284px; height: 284px; }
.area-hero p { margin-top: 8px; max-width: 32ch; font-size: .9rem; color: var(--accent-deep); }
.hero-copy { min-width: 0; }
.hero-label {
 display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px;
 padding: 4px 9px; background: #fff8; border-radius: 99px; font-size: .72rem;
 font-weight: 700; color: var(--accent-deep);
}
.hero-label .icon { width: 13px; height: 13px; }
.hero-badge { width: clamp(52px, 16vw, 84px); height: auto; flex: none; transform: rotate(7deg); filter: drop-shadow(0 8px 10px #23453722); }
.area-hero.theme-home { min-height: 206px; }
.area-hero .hero-date { margin: 0 0 13px; font-size: .67rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.home-symbol { width: clamp(64px, 22vw, 138px); height: auto; transform: rotate(9deg); flex: none; }

.section-heading, .page-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.today-date { color: var(--muted); font-size: .75rem; font-weight: 700; }
.today-date { text-align: right; }
.page-heading p { color: var(--muted); font-size: .88rem; margin-top: 5px; }
.page-heading .button { flex: none; }
.home-areas { margin-top: 24px; }
.area-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.area-card {
 display: grid; grid-template-rows: auto 1fr auto; min-height: 210px; gap: 13px;
 padding: clamp(13px, 3.6vw, 22px); background: var(--accent-light);
 border: 1px solid var(--accent-line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
 transition: border-color .16s, transform .16s;
}
.area-card-top, .area-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.area-card-top span { color: var(--accent-deep); font-size: .67rem; font-weight: 720; text-align: right; }
.area-card-top img { width: clamp(33px, 10vw, 52px); height: auto; flex: none; }
.area-card h3 { font-size: clamp(1.08rem, 4.5vw, 1.5rem); line-height: 1.13; }
.area-card p { color: var(--muted); font-size: .78rem; margin-top: 6px; }
.area-card-bottom { color: var(--accent-deep); font-size: .75rem; font-weight: 700; }
.area-arrow { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); }
.area-arrow .icon { width: 16px; height: 16px; }
@media (hover: hover) {
 .area-card:hover { transform: translateY(-2px); border-color: var(--accent-deep); }
}

.app-dock {
 position: fixed; z-index: 10; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
 width: min(calc(100% - 24px), 408px); display: flex; align-items: center; gap: 9px;
}
.dock-nav {
 flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px;
 padding: 5px; border: 1px solid #dce3d9; border-radius: 26px;
 background: #fffefaee; box-shadow: 0 8px 35px #17392a19; backdrop-filter: blur(14px);
}
.dock-nav a {
 display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 51px;
 border-radius: 20px; color: var(--muted); font-weight: 650; font-size: .73rem; text-decoration: none;
}
.dock-nav a[aria-current], .dock-nav a:hover { background: var(--soft); color: var(--green); }
.dock-nav .icon { width: 20px; height: 20px; }
.voice-trigger {
 display: grid; place-items: center; flex: none; width: 62px; height: 62px; border-radius: 24px; border: 1px solid #e5c34e;
 background: var(--jr-brand-lemon); color: #243622; box-shadow: 0 8px 30px #574d1e26;
}
.voice-trigger .icon { width: 26px; height: 26px; }

.view-nav {
 display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px;
 padding: 4px; margin: 12px 0 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
}
.view-nav button {
 position: relative; min-width: 0; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 6px;
 padding: 4px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: .83rem; font-weight: 680;
}
.view-nav button[aria-current], .view-nav button:hover { background: var(--soft); color: var(--green); }
.view-nav .icon { width: 17px; height: 17px; }
.nav-badge, .count-badge {
 display: inline-grid; place-items: center; border-radius: 100px; min-width: 23px; min-height: 23px;
 padding: 1px 5px; color: var(--green); background: var(--soft); font-weight: 700; font-size: .73rem;
}
.nav-badge { background: var(--warm); color: #614b12; }
.area-progress {
 display: grid; gap: 12px; padding: 15px 17px; margin-bottom: 13px;
 border: 1px solid var(--accent-line); background: var(--accent-light); border-radius: 20px;
}
.progress-copy { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.progress-copy strong { font-size: .96rem; }
.progress-copy > span { color: var(--accent-deep); font-size: .74rem; text-align: right; }
progress { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 9px; overflow: hidden; background: var(--accent); color: #4b7851; }
progress::-webkit-progress-bar { background: var(--accent); }
progress::-webkit-progress-value { background: #4b7851; border-radius: 9px; }
progress::-moz-progress-bar { background: #4b7851; border-radius: 9px; }

.agenda, .compartments, .editor-grid { display: grid; gap: 11px; }
.agenda-card, .med-card, .edit-card, .refill-card, .empty-state, .account-panel,
.shopping-row, .history-row, .recorded-doses {
 min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.agenda-card, .med-card, .edit-card, .refill-card, .account-panel { padding: clamp(15px, 4vw, 23px); }
.agenda-meta, .agenda-actions, .card-top, .refill-action, .refill-top, .refill-bottom, .edit-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agenda-meta { margin-bottom: 9px; }
.agenda-time, .comp-number, .refill-icon, .shopping-row-icon {
 display: inline-flex; align-items: center; justify-content: center; gap: 5px;
 background: var(--soft); color: var(--green); font-weight: 700; border-radius: 11px;
}
.agenda-time { padding: 4px 8px; font-size: .78rem; }
.agenda-time .icon { width: 15px; height: 15px; }
.agenda-position, .comp-label { font-size: .71rem; color: var(--muted); text-align: right; }
.agenda-card h2, .med-card h3, .recorded-row strong, .history-med strong { overflow-wrap: anywhere; }
.agenda-dose, .agenda-notes, .med-dose, .med-notes, .box-schedule { color: var(--muted); margin-top: 4px; font-size: .87rem; overflow-wrap: anywhere; }
.agenda-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 14px; }
.agenda-actions > .button { flex: 1; white-space: nowrap; }
.day-complete { display: flex; gap: 7px; align-items: center; color: var(--green); padding: 10px 0; font-size: .88rem; }
.recorded-doses, .account-panel { margin-top: 16px; }
.recorded-doses > summary, .account-panel > summary {
 display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px;
 padding: 9px 15px; cursor: pointer; font-weight: 700; list-style: none;
}
.recorded-doses > summary::-webkit-details-marker, .account-panel > summary::-webkit-details-marker { display: none; }
.recorded-doses > summary span { display: flex; gap: 7px; align-items: center; }
details[open] > summary > .icon { transform: rotate(180deg); }
.recorded-list { padding: 0 13px 9px; }
.recorded-row, .history-row {
 display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px;
}
.recorded-row { border-top: 1px solid var(--line); }
.recorded-row p, .history-row p, .recorded-time, .history-time, .history-state small { color: var(--muted); font-size: .76rem; }
.recorded-row button { flex: none; }
.status { display: inline-block; border-radius: 8px; background: var(--soft); color: var(--green); font-weight: 700; font-size: .72rem; padding: 3px 6px; }
.status.skipped { background: #f9e9d9; color: #804f24; }
.status.unrecorded { background: #eef0eb; color: var(--muted); }
.empty-state { text-align: center; padding: 28px 18px; border-style: dashed; }
.empty-state > .icon { color: #4c7350; width: 33px; height: 33px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: .86rem; max-width: 40ch; margin: 6px auto 13px; }
.card-top { justify-content: flex-start; margin-bottom: 12px; }
.comp-number, .refill-icon, .shopping-row-icon { flex: none; width: 37px; height: 37px; font-size: .85rem; }
.box-schedule { display: flex; align-items: center; gap: 6px; }
.box-schedule .icon { width: 16px; height: 16px; }
.refill-action { margin-top: 12px; border-top: 1px solid var(--line); }
.refill-pending { color: #7f4d26; }
.empty-card { border-style: dashed; }
.notice { display: flex; align-items: flex-start; gap: 8px; padding: 13px; margin-bottom: 13px; border-radius: 14px; background: var(--warm); color: #6b4c19; font-size: .83rem; line-height: 1.5; }
.notice.neutral { background: var(--soft); color: var(--green); }
.notice .icon { width: 18px; height: 18px; }
.history-group { margin: 14px 0; }
.history-date { font-size: .87rem; text-transform: capitalize; margin-bottom: 8px; }
.history-row { padding: 12px; margin-bottom: 7px; border-radius: 16px; }
.history-med { flex: 1; min-width: 0; }
.history-state { text-align: right; }
.history-state small { display: block; margin-top: 3px; }
.load-more { display: flex; justify-content: center; }
.edit-header { margin-bottom: 12px; }
.edit-header h2 { display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.move-actions, .time-fields, .time-input, .editor-footer, .admin-pin, .account-actions { display: flex; align-items: center; gap: 7px; }
.time-fields, .admin-pin, .account-actions { flex-wrap: wrap; }
.time-input input { width: 110px; }
.remove-time { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: var(--soft); }
.remove-time .icon { width: 16px; height: 16px; }
.time-label { font-size: .84rem; font-weight: 680; margin-bottom: 7px; }
.edit-card .text-button { margin-bottom: 8px; }
.editor-footer { justify-content: flex-end; margin-top: 15px; }
.refill-card { margin-bottom: 10px; }
.refill-top { align-items: flex-start; }
.refill-top h2 { margin-top: 6px; overflow-wrap: anywhere; }
.refill-top p, .refill-notice { font-size: .82rem; color: var(--muted); }
.refill-bottom { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.refill-bottom .button { flex: none; }
.account-panel { padding: 0 12px; }
.account-panel > summary { padding-inline: 4px; }
.account-panel > summary::after { content: '+'; color: var(--green); font-size: 1.2rem; }
.account-panel[open] > summary::after { content: '−'; }
.admin-user { border-top: 1px solid var(--line); padding: 13px 4px; }
.admin-pin { align-items: end; margin: 10px 0; }
.admin-pin .field { flex: 1 1 135px; margin: 0; }
.admin-status, .shopping-status { font-size: .84rem; color: var(--green); margin: 8px 0; }

.theme-shopping.area-progress { margin-top: 13px; }
.shopping-form { display: flex; align-items: end; gap: 8px; }
.shopping-form .field { flex: 1; margin: 0; }
.shopping-form .button { min-height: 48px; flex: none; }
.shopping-section { margin-top: 18px; }
.shopping-section ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.shopping-section ul.recorded-list { padding: 0 9px 9px; }
.shopping-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 17px; }
.shopping-row-icon { background: var(--warm); color: #684f16; }
.shopping-row-icon .icon { width: 17px; height: 17px; }
.shopping-row-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shopping-row-copy small { display: block; color: var(--muted); margin-top: 3px; }
.shopping-row .button { flex: none; padding-inline: 9px; font-size: .77rem; }
.shopping-empty { color: var(--muted); padding: 15px; background: var(--paper); border: 1px dashed var(--line); border-radius: 16px; font-size: .87rem; }

dialog {
 width: min(calc(100% - 28px), 460px); max-height: calc(100dvh - 32px); padding: 0;
 border: 1px solid var(--line); border-radius: 25px; background: var(--paper); color: var(--ink);
 box-shadow: 0 20px 75px #112a2640; overflow: auto; overscroll-behavior: contain;
}
dialog::backdrop { background: #122d246b; backdrop-filter: blur(3px); }
.dialog-content, .voice-inner { padding: clamp(15px, 4vw, 25px); }
.dialog-content h2 { margin-top: 6px; }
.dialog-content p { font-size: .9rem; color: var(--muted); margin-top: 10px; white-space: pre-line; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 12px; }
.voice-sheet { width: min(calc(100% - 20px), 460px); margin: auto auto max(10px, env(safe-area-inset-bottom)); }
.voice-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voice-header h2 { font-size: 1rem; letter-spacing: -.02em; }
.voice-header .icon-button { border: 0; background: transparent; }
.voice-transcript { width: fit-content; max-width: 94%; margin: 12px 0 18px auto; padding: 9px 13px; border-radius: 17px 17px 4px 17px; background: var(--soft); font-size: .88rem; overflow-wrap: anywhere; }
.voice-capture { display: grid; justify-items: center; gap: 14px; margin: 24px auto 6px; text-align: center; }
.voice-mic { position: relative; display: grid; place-items: center; width: 80px; height: 80px; padding: 0; border: 0; border-radius: 50%; background: var(--green); color: #fffefa; isolation: isolate; }
.voice-mic .icon { width: 29px; height: 29px; }
.voice-mic::after { content: ''; position: absolute; z-index: -1; inset: -8px; border: 1px solid var(--line); border-radius: 50%; }
.voice-status { color: var(--muted); font-size: .85rem; max-width: 35ch; }
.voice-sheet[data-state="listening"] .voice-mic { background: var(--jr-brand-lemon); color: var(--green); }
.voice-sheet[data-state="listening"] .voice-mic::after { border-color: #d6ba50; animation: voice-pulse 1.5s ease-in-out infinite; }
.voice-sheet[data-state="thinking"] .voice-mic::after { animation: voice-pulse 1.5s ease-in-out infinite; }
.voice-sheet[data-state="listening"] .voice-status { color: var(--green); font-size: 1.05rem; font-weight: 650; }
.voice-sheet[data-state="result"] .voice-mic, .voice-sheet[data-state="writing"] .voice-mic,
.voice-sheet[data-state="error"] .voice-mic, .voice-sheet[data-state="saving"] .voice-mic { width: 48px; height: 48px; }
.voice-sheet[data-state="result"] .voice-mic .icon, .voice-sheet[data-state="writing"] .voice-mic .icon,
.voice-sheet[data-state="error"] .voice-mic .icon, .voice-sheet[data-state="saving"] .voice-mic .icon { width: 21px; height: 21px; }
.voice-write { display: flex; margin: 0 auto; font-size: .82rem; }
.voice-input { display: flex; align-items: center; gap: 5px; margin: 16px 0 5px; padding: 4px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.voice-input input { flex: 1; min-width: 0; min-height: 46px; padding: 8px; border: 0; border-radius: 12px; background: transparent; font-size: 1rem; }
.voice-input .primary { background: var(--green); color: #fff; border-color: var(--green); }
.voice-reply { margin-bottom: 10px; font-size: 1.35rem; font-weight: 650; line-height: 1.3; letter-spacing: -.03em; overflow-wrap: anywhere; }
.voice-result { padding: 8px 0; overflow-wrap: anywhere; }
.voice-result:not(:has(*)) { display: none; }
.voice-result + .voice-result { border-top: 1px solid var(--line); }
.voice-plan-reply { font-size: .94rem; font-weight: 650; }
.voice-detail { color: var(--muted); font-size: .85rem; }
.voice-result ul { font-size: .86rem; line-height: 1.6; margin: 4px 0; padding-left: 19px; }
.voice-result .button { margin-top: 7px; }
.voice-choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 6px 0 0; margin: 0; }
.voice-choices legend { font-size: .77rem; color: var(--muted); padding: 0; }
.voice-choices label { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 14px; font-size: .93rem; cursor: pointer; background: var(--paper); }
.voice-choices label:has(:checked) { border-color: var(--green); background: var(--soft); }
.voice-choices input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.voice-decisions { display: flex; gap: 8px; margin-top: 16px; }
.voice-decisions .button { flex: 1; min-height: 49px; }
.voice-outcome { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: .88rem; margin: 9px 0; overflow-wrap: anywhere; }
.voice-outcome small { display: block; color: var(--muted); margin-top: 3px; }
.voice-results > .button { margin-top: 10px; }
.voice-privacy { margin-top: 4px; color: var(--muted); font-size: .73rem; }
.voice-privacy summary { display: flex; justify-content: center; align-items: center; min-height: 44px; cursor: pointer; list-style: none; }
.voice-privacy summary::-webkit-details-marker { display: none; }
.voice-privacy p { margin-top: 2px; }
@keyframes voice-pulse { 50% { transform: scale(1.08); opacity: .35; } }
#toast {
 position: fixed; z-index: 20; bottom: var(--dock-space); left: 50%; transform: translateX(-50%);
 width: max-content; max-width: calc(100% - 32px); border-radius: 14px; padding: 11px 15px;
 opacity: 0; pointer-events: none; background: var(--green); color: #fff; font-size: .85rem; text-align: center;
 transition: opacity .16s;
}
#toast.visible { opacity: 1; }

@media (min-width: 600px) {
 .app-header { min-height: 84px; }
 .area-hero { min-height: 182px; }
 .area-hero.theme-home { min-height: 225px; }
 .agenda, .compartments, .editor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .view-nav { margin-bottom: 25px; }
}
@media (max-width: 479px) {
 .view-nav button { flex-direction: column; gap: 4px; min-height: 51px; font-size: .72rem; }
 .nav-badge { position: absolute; top: 2px; right: max(1px, calc(50% - 28px)); min-height: 16px; min-width: 16px; font-size: .63rem; padding-inline: 3px; }
}
@media (max-width: 350px) {
 .app-header .brand img { width: 108px; }
 .area-hero { padding: 15px; gap: 7px; }
 .home-symbol, .hero-badge { width: 46px; }
 .area-card { border-radius: 19px; }
 .area-card-bottom { font-size: .69rem; }
 .area-arrow { width: 27px; height: 27px; }
 .shopping-row-icon, .shopping-row .button .icon { display: none; }
 .shopping-form .button { padding-inline: 8px; }
 .shopping-form .button .icon { display: none; }
 .box-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { transition: none !important; animation: none !important; }
}

.push-panel { margin: 24px 0; padding: 20px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 24px; }
.push-panel h2 { font-size: 1.15rem; margin-bottom: 10px; }
.push-panel p { font-size: .88rem; line-height: 1.5; margin: 8px 0; }
.push-preferences { border: 0; padding: 8px 0; margin: 0; display: grid; gap: 4px; }
.push-preferences label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: .9rem; cursor: pointer; }
.push-preferences input { width: 19px; height: 19px; flex: none; accent-color: var(--green); }
.push-panel .account-actions { margin-top: 10px; flex-wrap: wrap; }
.refill-notice { margin-bottom: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 430px) {
 .app-header .brand img { width: 110px; }
 .header-account { gap: 4px; flex: 1; justify-content: flex-end; }
 .header-account .user-chip { min-width: 0; max-width: 106px; padding-right: 6px; }
 .header-account .icon-button { width: 42px; min-height: 44px; }
}
