:root { color-scheme: light; font-family: system-ui, sans-serif; color: #152b36; background: #f1f5f5; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 920px; padding: 20px 16px 48px; margin: auto; }
h1 { font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
p { margin: 12px 0; }
.eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .13em; color: #28635b; }
.card { background: white; border: 1px solid #ccd9da; border-radius: 18px; padding: 20px; margin: 16px 0; min-width: 0; }
.row, .buttons, .form-row, .recovery { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row { justify-content: space-between; }
.buttons > button { flex: 1 1 auto; }
button, input, select, .recovery a { font: inherit; min-height: 44px; min-width: 44px; max-width: 100%; border-radius: 10px; }
button { cursor: pointer; border: 1px solid #54766f; padding: 10px 14px; color: #174e43; background: #e9f5f0; font-weight: 650; overflow-wrap: anywhere; }
button:hover { background: #d6ece4; }
button:disabled { opacity: .6; cursor: wait; }
input, select { display: block; border: 1px solid #627780; background: white; padding: 10px; width: 100%; }
.form-row input { flex: 1 1 110px; width: 110px; }
label { display: block; margin: 16px 0 6px; font-weight: 600; }
:focus-visible { outline: 3px solid #0067c0; outline-offset: 3px; }
.danger { background: #a62c35; color: white; border-color: #a62c35; }
.danger:hover { background: #82212a; }
.full { width: 100%; margin-top: 12px; }
.muted { color: #526670; font-size: .9rem; }
.error { color: #9a1625; font-weight: 600; }
.error:empty { display: none; }
.badge { display: inline-block; border-radius: 8px; padding: 6px 10px; background: #e8edef; font-weight: 650; }
.badge[data-state="applied"], .badge[data-state="online"] { background: #d6f0df; color: #195235; }
.badge[data-state="pending"] { background: #fff0c6; color: #694900; }
.badge[data-state="delivered"] { background: #dceafa; color: #164d85; }
.badge[data-state="failed"] { background: #ffe0e1; color: #941e2a; }
.badge[data-state="expired"] { background: #ece4f3; color: #603875; }
.budget { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.ring { --progress: 0%; flex: 0 0 140px; width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(#258772 var(--progress), #e4efeb 0); display: grid; place-items: center; }
.ring > div { background: white; border-radius: 50%; width: 116px; height: 116px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ring strong { font-size: 1.25rem; }
dl { margin: 0; flex: 1 1 100px; }
dt { font-size: .85rem; color: #526670; }
dd { margin: 0 0 8px; font-weight: 700; }
dialog { width: min(440px, calc(100% - 32px)); border: 1px solid #9badb2; border-radius: 16px; padding: 24px; }
dialog::backdrop { background: #142b36aa; }
.sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 560px); max-height: 85dvh; overflow-y: auto; border-radius: 18px 18px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.sheet > button { margin-top: 16px; }
ol { padding-left: 22px; }
li { margin: 12px 0; }
.skip { position: absolute; top: -80px; background: white; padding: 12px; }
.skip:focus { top: 0; }
[hidden] { display: none !important; }
#notice, #pair-result { overflow-wrap: anywhere; }
@media (min-width: 760px) { #dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .card { margin: 0; } #dashboard > .card { height: 100%; } #pairing { margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
