* { box-sizing: border-box; }
body { margin: 0; color: var(--grove-ink); font: 16px/1.5 system-ui, sans-serif; }
button, select, textarea { font: inherit; }
button, .button { cursor: pointer; touch-action: manipulation; }
button, .button, select, textarea { border: 2px solid var(--grove-outline); border-radius: 20px; background: var(--grove-panel); color: var(--grove-ink); }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--grove-accent); outline-offset: 3px; }
button, .button { min-height: 48px; font-weight: 750; padding: 12px 16px; }
a { color: var(--grove-accent); }
[hidden] { display: none !important; }
.app { max-width: 780px; min-height: 100dvh; margin: auto; display: flex; flex-direction: column; }
.uat-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: var(--grove-soft); color: var(--grove-ink); font-size: 13px; text-align: center; }
.uat-banner strong { border: 1px solid currentColor; border-radius: 7px; padding: 1px 7px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--grove-divider); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; text-decoration: none; font-size: clamp(18px, 4.4vw, 25px); font-weight: 800; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.icon-button { padding: 10px; border: 0; background: transparent; }
.sos { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; color: white; background: #b8202a; font-size: 15px; }
main { flex: 1; padding: 20px 16px 28px; }
main:focus { outline: none; }
h1 { font-size: clamp(25px, 5vw, 34px); line-height: 1.2; margin: 0 0 20px; }
h2 { font-size: 20px; line-height: 1.3; }
.hero { position: relative; height: clamp(240px, 36dvh, 350px); overflow: hidden; border-radius: 26px; color: white; margin-bottom: 18px; }
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; padding: 24px; background: linear-gradient(90deg, #071b10c9, #071b1020); }
.hero p { margin: 0 0 8px; font-weight: 600; overflow-wrap: anywhere; }
.hero h1 { margin: 0; font-size: clamp(34px, 7vw, 48px); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 132px; text-align: center; background: var(--grove-soft); border-color: transparent; }
.tile strong { font-weight: 750; line-height: 1.35; }
.tile [data-icon] { width: 30px; height: 30px; }
.primary, .button { background: var(--grove-accent); border-color: var(--grove-accent); color: var(--grove-on-accent); }
.tile.is-selected, .row.is-selected { background: var(--grove-accent); border-color: var(--grove-accent); color: var(--grove-on-accent); }
.row { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; min-height: 66px; margin: 10px 0; }
.row > span:nth-child(2) { flex: 1; }
.rows { border: 2px solid var(--grove-divider); border-radius: 22px; overflow: hidden; margin-bottom: 20px; }
.rows .row { margin: 0; border: 0; border-radius: 0; background: transparent; }
.rows .row + .row { border-top: 1px solid var(--grove-divider); }
.rows .row.is-selected { background: var(--grove-accent); color: var(--grove-on-accent); }
[data-icon] { display: inline-flex; flex-shrink: 0; width: 24px; height: 24px; }
[data-icon] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.small { font-size: 13px; color: var(--grove-muted); text-align: center; }
.call-image { width: 100%; height: clamp(180px, 30dvh, 280px); object-fit: cover; border-radius: 24px; margin-bottom: 12px; }
.private-link { display: block; text-align: center; padding: 16px; font-weight: 650; }
.notice { text-align: center; border: 1px solid var(--grove-divider); border-radius: 24px; padding: 24px 18px; margin: 24px 0; }
.notice h2 { margin-top: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
label { display: block; font-weight: 700; margin: 16px 0 8px; }
select, textarea { width: 100%; padding: 12px; }
textarea { resize: vertical; margin-bottom: 12px; }
.status { margin: 0; padding: 0 16px; }
.status:not(:empty) { padding-bottom: 16px; }
.bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: sticky; bottom: 0; padding: 8px 6px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--grove-divider); background: var(--grove-surface); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 8px 4px; border: 0; background: transparent; border-radius: 16px; font-size: 13px; }
.bottom-nav [aria-current='page'] { background: var(--grove-soft); color: var(--grove-accent); }
#settings, .quiet-message-dialog { width: min(calc(100vw - 24px), 540px); max-height: calc(100dvh - 24px); overflow: auto; padding: 22px; border: 2px solid var(--grove-outline); border-radius: 26px; background: var(--grove-surface); color: var(--grove-ink); }
dialog::backdrop { background: #071b1070; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-top h2 { margin: 0; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 22px; height: 22px; }
.quiet-message-dialog p { font-size: clamp(26px, 6vw, 40px); overflow-wrap: anywhere; white-space: pre-wrap; }
html[data-wmh-large-text='true'] { font-size: 20px; }
html[data-wmh-large-text='true'] body { font-size: 1rem; }
html[data-wmh-large-text='true'] .bottom-nav button { font-size: 15px; }
@media (max-width: 370px) { .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; } .brand { gap: 7px; font-size: 17px; } .brand img { width: 28px; height: 28px; } main { padding: 16px 12px 24px; } .tiles { gap: 10px; } .tile { padding: 12px 8px; } }
@media (min-width: 800px) { .app { border-left: 1px solid var(--grove-divider); border-right: 1px solid var(--grove-divider); } main { padding: 24px; } }
