/* Homeowner approval page (#/approve/<token>) - minimal, large-type, mobile first. */
body.approve-mode > header, body.approve-mode #offline-pill, body.approve-mode .cloud-pill { display: none !important; }
body.approve-mode { background: var(--bg); }
body.approve-mode > main { display: block !important; max-width: 640px; margin: 0 auto; padding: 0; }
.ap-page { padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: 18px; line-height: 1.45; color: var(--ink); }
.ap-card { background: var(--surface); border-radius: 16px; padding: 1.25rem; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.ap-kicker { margin: 0 0 .25rem; color: var(--muted); font-size: .95rem; }
.ap-card h1 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 .75rem; }
.ap-desc { white-space: pre-wrap; margin: 0 0 1rem; }
.ap-facts { display: grid; gap: .5rem; margin: 0 0 1rem; }
.ap-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: var(--bg); border-radius: 10px; }
.ap-facts dt { color: var(--muted); } .ap-facts dd { margin: 0; font-weight: 700; text-align: right; }
.ap-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.ap-photos:empty { display: none; }
.ap-photos figure { margin: 0; } .ap-photos img { width: 100%; border-radius: 10px; display: block; } .ap-photos figcaption { font-size: .85rem; color: var(--muted); }
.ap-form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.ap-form input, .ap-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.25rem; padding: .8rem; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 12px; }
.ap-form textarea { margin-top: .75rem; }
.ap-actions { display: grid; gap: .6rem; margin: .75rem 0; }
.ap-btn { font: inherit; font-weight: 700; font-size: 1.2rem; min-height: 56px; border: 0; border-radius: 14px; padding: .6rem 1rem; color: #fff; background: var(--brand); cursor: pointer; width: 100%; }
.ap-btn.approve { background: #1b873f; } .ap-btn.decline { background: #b42318; } .ap-btn.ask { background: var(--info); }
.ap-btn:disabled { opacity: .55; }
.ap-error { color: #b42318; font-weight: 700; min-height: 1.2em; margin: .5rem 0; }
.ap-fine { color: var(--muted); font-size: .88rem; margin: .5rem 0; }
.ap-banner { padding: .9rem 1rem; border-radius: 12px; font-weight: 700; margin-bottom: 1rem; background: var(--surface-3); color: var(--ink); }
.ap-banner small { display: block; font-weight: 400; margin-top: .25rem; }
.ap-banner.approved { background: #d6f5df; color: #0b5d2a; } .ap-banner.declined { background: #fde0dd; color: #8a1c13; } .ap-banner.question { background: #dce8fb; color: #174a99; }
.ap-loading { text-align: center; color: var(--muted); padding: 3rem 0; }
@media (min-width: 640px) { .ap-actions { grid-template-columns: repeat(3, 1fr); } }
/* cloud UI in the main app */
.cloud-pill { margin-left: .5rem; cursor: pointer; }
.cloud-pill.ok { background: #d6f5df; color: #0b5d2a; } .cloud-pill.busy { background: #dce8fb; color: #174a99; }
.cloud-pill.bad { background: #fde0dd; color: #8a1c13; } .cloud-pill.off { background: #e4e7eb; color: var(--brand); }
.cloud-progress { height: 6px; background: #e4e7eb; border-radius: 4px; overflow: hidden; margin-top: .4rem; } .cloud-progress > div { height: 100%; background: var(--info); transition: width .2s; }
.approval-box { border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .8rem; margin-top: .5rem; background: var(--surface-2); }
.approval-box .linkbox { width: 100%; box-sizing: border-box; font-family: monospace; font-size: .85rem; }
