:root { --bg:#0F1012; --panel:#17181B; --line:#2A2C30; --text:#F4F5F7; --dim:#AEB1B7; --quiet:#8D9096; --accent:#00C8ED; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 640px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 18px 60px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; min-height: 44px; }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; margin: 6px 0 6px; }
h2 { font-size: 19px; margin: 0; }
.sub, small, .note { color: var(--quiet); }
small { display: block; font-size: 12px; }
.card { background: var(--panel); border: 1px solid #222428; border-radius: 20px; padding: 16px 18px; margin: 12px 0; }
.card.dev, .card.link { cursor: pointer; }
.card.ask { background: #0E2A33; border-color: #0A5F70; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 4px; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.row.between { justify-content: space-between; margin-top: 0; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.small { font-size: 13px; color: var(--dim); margin-top: 6px; }
.now { margin-top: 10px; color: var(--dim); font-size: 14px; }
.now b { color: var(--text); }
.badge { background: var(--accent); color: #001; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; }
.chev { font-size: 26px; color: var(--quiet); }
.bar { height: 8px; border-radius: 4px; background: #2A2C30; margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #FFD43B; }
button { font: inherit; font-weight: 700; border: 0; border-radius: 22px; padding: 11px 20px; background: #fff; color: #0F1012; cursor: pointer; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.dark { background: #FF5A4E; color: #fff; }
button.back { background: none; color: var(--accent); padding: 8px 0; font-weight: 600; }
button:disabled { opacity: 0.35; }
.chip { padding: 7px 13px; font-size: 13px; background: transparent; color: var(--dim); border: 1px solid var(--line); }
.chip.on { background: #2E3035; color: var(--text); border-color: transparent; }
.field, .item, .switch { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #222428; }
.rows .field:last-child, .list .item:last-child { border-bottom: 0; }
.switch { border: 0; padding: 4px 0; }
input[type=number], input[type=time], select { font: inherit; color: var(--text); background: #222428; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; min-width: 120px; text-align: right; }
input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--accent); flex-shrink: 0; }
.search { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 11px 16px; margin-top: 14px; }
.list { padding-top: 4px; padding-bottom: 4px; }
textarea { width: 100%; height: 110px; font: 13px ui-monospace, monospace; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.empty { padding-top: 80px; }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #fff; color: #0F1012; font-weight: 700; padding: 10px 20px; border-radius: 22px; opacity: 0; transition: .25s; pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.kh { margin: 24px 0 10px; }
:root { --accent: #FF9A57; }
.ask .eyebrow, .eyebrow { color: var(--accent); }
.card.ask { background: #33201A; border-color: #6B3A26; }
header.brand { margin: 10px 0 14px; }
header.brand img { width: 56px; height: 56px; border-radius: 14px; }
header.brand h1 { font-size: 28px; margin: 0; }
.card.start { background: linear-gradient(160deg, #241815, #17181B); border-color: #3A2A22; }
.step { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #262729; }
.step .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 14px; background: #2A2C30; color: var(--text); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step.done .num { background: var(--accent); color: #2A1712; }
.step.done b { color: var(--dim); text-decoration: line-through; text-decoration-color: #555; }
.step.done .small { display: none; }
button.mini { padding: 6px 14px; font-size: 13px; margin-top: 8px; }
.role { color: var(--accent); font-weight: 700; }
.kid { font-size: 11px; font-weight: 800; color: #2A1712; background: var(--accent); padding: 1px 7px; border-radius: 8px; }
.badge { background: var(--accent); }
.item.link { cursor: pointer; }
.card.next { background: #2A1C15; border-color: #5A3424; }
input[type=radio] { width: 22px; height: 22px; accent-color: var(--accent); flex-shrink: 0; }
.av { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; background: linear-gradient(140deg, #FFB37A, #FF7A45); color: #2A1712; font-weight: 900; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; margin-right: 4px; }
img.av { object-fit: cover; padding: 0; background: #fff; }
.avs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 6px 0 12px; }
.avs img { width: 100%; aspect-ratio: 1; border-radius: 16px; border: 3px solid transparent; cursor: pointer; }
.avs img.on { border-color: var(--accent); }
.avs img.round, img.av.round { border-radius: 50%; }
.qr { background: #fff; border-radius: 20px; padding: 14px; width: 280px; margin: 20px 0; }
.qr svg { display: block; width: 100%; height: auto; }
ol.small { padding-left: 20px; line-height: 1.7; }
/* Form controls look the same on Windows, Mac, iPhone and iPad: dark, one width, no spinners. */
:root { color-scheme: dark; }
.field input[type=number], .field input[type=time], .field select { flex: 0 0 104px; width: 104px; min-width: 0; height: 36px; padding: 0 10px; background-color: #222428; color: var(--text); border: 1px solid var(--line); border-radius: 12px; font: inherit; text-align: right; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23AEB1B7' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; text-align-last: right; }
.field select option { background: #222428; color: var(--text); }
.field input[type=number] { -moz-appearance: textfield; }
.field input[type=number]::-webkit-outer-spin-button, .field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=time]::-webkit-calendar-picker-indicator { filter: invert(0.75); cursor: pointer; }
.field > span { flex: 1; min-width: 0; }
.field select { flex-basis: 128px; width: 128px; padding-right: 28px; background-position: right 10px center; }
.field input[type=number] { flex-basis: 84px; width: 84px; text-align: center; }
.field input[type=time] { flex-basis: 112px; width: 112px; }
