/* CarWay: tokens from DESIGN.md. Soft cards, big rounded numbers, quiet colour. Light and dark. Motion is JS springs. */
:root {
	--bg: #F5F6F8; --card: #fff; --card-2: #F0F2F5; --ink: #0E1116; --ink-2: #5E6570; --line: rgb(14 17 22 / .07); --fill: #EBEDF0;
	--accent: #0B7A75; --accent-soft: rgb(11 122 117 / .1); --on-accent: #fff; --soon: #966200; --over: #C62F35; --ok: #1F8A4C;
	--shadow: 0 1px 2px rgb(14 17 22 / .04), 0 8px 24px -12px rgb(14 17 22 / .14);
	--glass: rgb(255 255 255 / .74); --glass-shadow: 0 8px 30px -10px rgb(14 17 22 / .25), 0 0 0 .5px rgb(14 17 22 / .06);
	--num: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
	--side: 20px; --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #000; --card: #141416; --card-2: #1E1E21; --ink: #F4F4F6; --ink-2: #8E939B; --line: rgb(255 255 255 / .08); --fill: #26262A;
		--accent: #2BB5A9; --accent-soft: rgb(43 181 169 / .15); --on-accent: #00211E; --soon: #FFC24D; --over: #FF6369; --ok: #4ADE80;
		--shadow: none; --glass: rgb(28 28 30 / .72); --glass-shadow: 0 8px 30px -10px rgb(0 0 0 / .6), 0 0 0 .5px rgb(255 255 255 / .1);
		color-scheme: dark;
	}
}
@media (max-width: 360px) { :root { --side: 16px; } }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--ink); overscroll-behavior: none; }
body { font: 17px/1.3 -apple-system, "SF Pro Text", system-ui, Roboto, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: inherit; touch-action: manipulation; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
img { -webkit-user-drag: none; user-select: none; }
#app { height: 100%; transform-origin: 50% 0; overflow: hidden; background: var(--bg); position: relative; }
.mut { color: var(--ink-2); } .small { font-size: 13px; } .center { text-align: center; } .acc { color: var(--accent); } .strong { font-weight: 600; }
.ok { color: var(--ok); } .soon { color: var(--soon); } .over { color: var(--over); }

/* glyphs and emoji icons */
svg.g { width: 22px; height: 22px; flex: none; }
svg.g.chev { width: 18px; height: 18px; color: var(--ink-2); opacity: .55; }
svg.g.mutg { color: var(--ink-2); width: 18px; height: 18px; }
svg.g.acc { color: var(--accent); }
.emo { width: 38px; height: 38px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; flex: none; }
.emo img { width: 22px; height: 22px; }
.emo.xs { width: 30px; height: 30px; background: var(--accent-soft); } .emo.xs img { width: 19px; height: 19px; }
.emo.sm { width: 38px; height: 38px; }
.emo.lg { width: 46px; height: 46px; } .emo.lg img { width: 27px; height: 27px; }
.emo.xl { width: 52px; height: 52px; background: none; } .emo.xl img { width: 46px; height: 46px; }

/* page chrome */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: calc(44px + var(--safe-t)); padding-top: var(--safe-t); display: grid; place-items: center; pointer-events: none;
	background: color-mix(in srgb, var(--bg) calc(var(--k, 0) * 78%), transparent);
	-webkit-backdrop-filter: blur(calc(var(--k, 0) * 30px)) saturate(1.8); backdrop-filter: blur(calc(var(--k, 0) * 30px)) saturate(1.8); }
.nav-title { font-weight: 600; font-size: 17px; opacity: var(--k, 0); }
.screen { height: 100%; overflow-y: auto; overflow-x: hidden; padding: calc(8px + var(--safe-t)) var(--side) calc(124px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.body { will-change: transform; max-width: 600px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 22px; min-height: 44px; }
.head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 14px; }
.lt { font-size: 34px; font-weight: 750; letter-spacing: -.5px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); }
.round svg { width: 21px; height: 21px; }
.pill { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px 14px 6px 6px; box-shadow: var(--shadow); font-weight: 600; min-height: 44px; max-width: 75%; }
.pill > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill svg { width: 16px; height: 16px; color: var(--ink-2); }
h3 { font-size: 20px; font-weight: 700; margin: 28px 2px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.h3-link { font-size: 15px; font-weight: 500; color: var(--accent); padding: 4px 0 4px 12px; min-height: 32px; }

/* hero: plate and the rolling odometer */
.hero { margin: 0 2px 24px; }
.plate { display: inline-flex; font: 600 12px var(--num); letter-spacing: .6px; color: var(--ink-2); border: 1.5px solid var(--line); border-radius: 7px; padding: 2px 8px; margin-bottom: 10px; }
.plate.big { font-size: 26px; padding: 6px 16px; border-width: 2px; border-radius: 10px; color: var(--ink); background: var(--card); }
.plate.ph { opacity: .35; }
.plate-prev { display: flex; justify-content: center; margin: 4px 0 18px; }
.odo-btn { display: block; border-radius: 14px; }
.odo { display: flex; align-items: baseline; gap: 8px; }
.digits { display: flex; font: 650 60px/1 var(--num); letter-spacing: -1.5px; }
.drum { height: 1em; overflow: hidden; display: inline-block; }
.strip { display: flex; flex-direction: column; will-change: transform; }
.strip span { height: 1em; display: block; text-align: center; font-variant-numeric: tabular-nums; }
.sep { display: inline-block; }
.odo .unit { font: 600 20px var(--num); color: var(--ink-2); }
.cap { font-size: 14px; color: var(--ink-2); margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.cap i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* cards */
.card { display: block; width: 100%; background: var(--card); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); text-align: left; }
.lab { font-size: 13px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lab img { width: 16px; height: 16px; }
.next-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.next h4 { font-size: 20px; font-weight: 700; }
.next .left { font: 600 15px var(--num); color: var(--ink-2); margin-top: 1px; }
.next .left.soon { color: var(--soon); } .next .left.over { color: var(--over); }
.bar { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.next .bar { margin: 14px 0 6px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar i.soon { background: var(--soon); } .bar i.over { background: var(--over); }
.barcap { display: flex; justify-content: space-between; gap: 10px; font: 500 12px var(--num); color: var(--ink-2); margin-top: 6px; }
.also { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; display: flex; flex-direction: column; }
.also-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; min-height: 40px; width: 100%; }
.tag { font: 600 13px var(--num); border-radius: 999px; padding: 3px 9px; color: var(--ink-2); background: var(--fill); }
.tag.soon { color: var(--soon); background: color-mix(in srgb, var(--soon) 14%, transparent); }
.tag.over { color: var(--over); background: color-mix(in srgb, var(--over) 12%, transparent); }
.tag.unknown { color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.w { display: flex; flex-direction: column; }
.w b { display: block; font: 650 26px/1.1 var(--num); margin-top: 12px; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.3; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: auto; padding-top: 10px; box-sizing: content-box; }
.spark i { flex: 1; border-radius: 3px; background: var(--accent-soft); min-height: 3px; }
.spark i:last-child { background: var(--accent); }

/* lists: a card of rows */
.group { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.group + .group { margin-top: 12px; }
.group.pad { padding: 14px; }
.group.mt { margin-top: 12px; }
.group-gap { height: 4px; }
.sub { font-size: 13px; color: var(--ink-2); font-weight: 600; margin: 20px 6px 8px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; position: relative; text-align: left; }
.row + .row::before, .field + .field::before, .mrow + .mrow::before { content: ""; position: absolute; top: 0; right: 16px; left: 66px; height: 1px; background: var(--line); }
.field + .field::before, .mrow + .mrow::before { left: 16px; }
.row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .t b { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t small { font-size: 13px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r { text-align: right; font: 600 15px var(--num); white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.row .r small { font: 500 13px var(--num); color: var(--ink-2); }
.row.static { cursor: default; }
.row.solo { background: var(--card); border-radius: 20px; margin-top: 12px; box-shadow: var(--shadow); }
.row.danger { color: var(--over); } .row.danger .t b { font-weight: 500; }
.mrow { display: flex; align-items: center; width: 100%; min-height: 50px; padding: 0 16px; font-size: 17px; position: relative; }
.mrow span { flex: 1; } .mrow.acc { color: var(--accent); }

/* book timeline */
.month { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 20px 4px 10px; }
.month span + span { font-family: var(--num); }
.day { display: flex; gap: 12px; margin-bottom: 12px; }
.dt { width: 40px; text-align: center; flex: none; padding-top: 12px; }
.dt b { display: block; font: 650 22px/1 var(--num); } .dt small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.day .group { flex: 1; min-width: 0; margin: 0; }

/* form fields */
.field { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; position: relative; width: 100%; }
.field .fl { flex: 1 0 auto; max-width: 55%; display: flex; flex-direction: column; }
.field .fl small { font-size: 12px; color: var(--ink-2); }
.field input:not([type=checkbox]), .field select { flex: 1 1 auto; min-width: 0; border: 0; background: none; text-align: right; font: 500 17px var(--num); padding: 13px 0; outline: none; }
.field input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 60%, transparent); font-family: -apple-system, system-ui, sans-serif; font-weight: 400; }
.field input[type=date], .field input[type=time] { -webkit-appearance: none; appearance: none; min-height: 34px; display: flex; justify-content: flex-end; }
.field input::-webkit-date-and-time-value { text-align: right; }
.field .unit { color: var(--ink-2); font: 500 15px var(--num); }
.field .v { font: 500 17px var(--num); text-align: right; } .field .v.small { font-size: 13px; font-family: inherit; }
.field .v.ok { color: var(--ok); }
.field.stack { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 14px; }
.field.stack .fl { max-width: none; font-size: 14px; color: var(--ink-2); font-weight: 600; }
button.field { font-size: 17px; gap: 8px; } button.field svg { width: 20px; height: 20px; }
.field.acc { color: var(--accent); } .field.danger { color: var(--over); }
.field.sw { cursor: pointer; }
.field.sw input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--fill); position: relative; flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 0 0 .5px rgb(0 0 0 / .04);
	transition: transform .4s linear(0, .2 6%, .58 15%, .86 24%, 1.03 34%, 1.07 41%, 1.04 52%, 1 62%, .99 75%, 1); }
.field.sw input:checked + .switch { background: var(--accent); }
.field.sw input:checked + .switch::after { transform: translateX(20px); }
.field.sw input:focus-visible + .switch { outline: 2.5px solid var(--accent); outline-offset: 2px; }
textarea.note { width: 100%; border: 0; background: none; padding: 14px 16px; resize: vertical; outline: none; font-size: 17px; line-height: 1.35; display: block; }
.note-v { white-space: pre-wrap; line-height: 1.4; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 20px; color: var(--ink-2); }

/* segmented control with a spring thumb */
.seg { display: grid; grid-template-columns: repeat(var(--n), 1fr); background: var(--fill); border-radius: 12px; padding: 3px; position: relative; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 9px; background: var(--card); box-shadow: 0 3px 8px rgb(0 0 0 / .1), 0 0 0 .5px rgb(0 0 0 / .04); }
.seg button { position: relative; z-index: 1; font-size: 14px; font-weight: 600; padding: 7px 2px; min-height: 36px; text-align: center; border-radius: 9px; }
.seg.wide { margin: 0 0 4px; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; min-height: 38px; box-shadow: var(--shadow); white-space: nowrap; }
.chip[aria-pressed=true] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chips.pick .chip { background: var(--card-2); box-shadow: none; font-weight: 500; font-size: 15px; }
.chips.pick .chip[aria-pressed=true] { background: var(--accent); color: var(--on-accent); }
.chip-in { border: 0; background: var(--card-2); border-radius: 999px; padding: 8px 14px; width: 110px; font-size: 15px; outline: none; }
.chip.big { padding: 6px 14px 6px 6px; min-height: 42px; font-size: 15px; }
.chip.big img { width: 28px; height: 28px; }
.chips.quick { margin: 0 0 18px; }
.chips.filters, .chips.cars { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--side)) 8px; padding: 4px var(--side) 10px; scrollbar-width: none; }
.chips.filters::-webkit-scrollbar, .chips.cars::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.hscroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.hscroll .chips { flex-wrap: nowrap; }

/* search */
.search { display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 14px; height: 44px; padding: 0 12px; color: var(--ink-2); margin-bottom: 12px; }
.search svg { width: 18px; height: 18px; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); min-width: 0; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 18px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; }
.btn:disabled { opacity: .55; }
.btn.inline { width: auto; padding: 0 24px; margin: 18px auto 0; }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn-s { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 15px; min-height: 36px; }
.btn-s svg { width: 16px; height: 16px; }
.link { color: var(--accent); font-size: 17px; padding: 12px; display: block; width: 100%; }
.link.center { text-align: center; }
.sh-act { color: var(--accent); font-size: 17px; font-weight: 600; padding: 10px 4px; min-height: 44px; }

/* tab bar and Log button: floating glass */
.tabbar { position: absolute; left: var(--side); right: calc(var(--side) + 76px); bottom: calc(14px + var(--safe-b)); height: 62px; border-radius: 31px; z-index: 6; display: flex; justify-content: space-around; align-items: center;
	background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: var(--glass-shadow); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); min-width: 64px; min-height: 52px; justify-content: center; }
.tab svg { width: 23px; height: 23px; } .tab[aria-current=true] { color: var(--ink); }
.fab { position: absolute; right: var(--side); bottom: calc(14px + var(--safe-b)); width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; z-index: 6;
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.fab svg { width: 27px; height: 27px; stroke-width: 2.6; }

/* spend */
.total { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 26px 0 22px; }
.total-l { font: 600 14px var(--num); color: var(--ink-2); }
.total-n { font: 650 52px/1.05 var(--num); letter-spacing: -1px; }
.total .mut { font-size: 14px; margin-top: 4px; }
.bars { padding: 8px 0; }
.bar-row { display: flex; gap: 12px; align-items: center; padding: 10px 16px; }
.bar-main { flex: 1; min-width: 0; }
.bar-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 7px; }
.bar-top b { font: 600 15px var(--num); }
.bar-row .bar { height: 6px; }

/* empty states */
.empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h2 { font-size: 24px; letter-spacing: -.3px; } .empty p { max-width: 300px; line-height: 1.4; }
.empty-img { width: 104px; height: 104px; margin-bottom: 8px; }
.empty.small { padding: 24px; }

/* sheet */
body.sheet-open #app { overflow: hidden; }
.sheet-layer { position: fixed; inset: 0; z-index: 20; }
.scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .3); opacity: 0; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; top: calc(12px + var(--safe-t)); background: var(--bg); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; overflow: hidden; will-change: transform; max-width: 640px; margin: 0 auto; }
.sheet:not(.tall) { top: auto; min-height: 50%; max-height: calc(100% - 60px); }
.grab-zone { padding: 0 12px; touch-action: none; cursor: grab; flex: none; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); margin: 8px auto 2px; }
.sh { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; }
.sh-left { color: var(--accent); font-size: 17px; display: flex; align-items: center; gap: 2px; padding: 0 6px; min-height: 44px; justify-self: start; }
.sh-left svg { width: 22px; height: 22px; margin-left: -4px; }
.sh-left.x { width: 34px; height: 34px; min-height: 0; border-radius: 50%; background: var(--fill); color: var(--ink-2); justify-content: center; padding: 0; margin-left: 6px; }
.sh-left.x svg { width: 17px; height: 17px; margin: 0; stroke-width: 2.6; }
.sh-right { justify-self: end; padding-right: 8px; }
.steps { display: flex; gap: 5px; } .steps i { width: 22px; height: 4px; border-radius: 2px; background: var(--fill); } .steps i.on { background: var(--accent); }
.pages { position: relative; flex: 1; overflow: hidden; }
.page { position: absolute; inset: 0; overflow-y: auto; padding: 0 var(--side) 28px; overscroll-behavior: contain; will-change: transform; }
.sheet-foot { flex: none; padding: 10px var(--side) calc(14px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); }
.sheet-foot[hidden] { display: none; }
.q { font-size: 30px; font-weight: 700; margin: 10px 2px 18px; letter-spacing: -.3px; line-height: 1.12; }
.q.center { text-align: center; margin-bottom: 4px; }
.title-row { display: flex; align-items: center; gap: 12px; margin: 10px 2px 16px; } .title-row .q { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat { background: var(--card); border-radius: 22px; padding: 16px 6px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.15; min-height: 116px; box-shadow: var(--shadow); }
.same { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--accent-soft); color: var(--accent); border-radius: 16px; padding: 12px 14px; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.same small { font-weight: 500; color: var(--ink-2); margin-left: auto; }
.same svg { width: 18px; height: 18px; }

/* photos and sound */
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.ph { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; position: relative; background: var(--fill); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; } .ph img.missing { opacity: 0; }
.photos.view { margin-top: 12px; } .photos.view .ph { width: calc((100% - 16px) / 3); height: auto; aspect-ratio: 1; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; display: grid; place-items: center; }
.ph-x svg { width: 14px; height: 14px; } .ph-x.inline { position: static; background: var(--fill); color: var(--ink-2); }
.ph-add { width: 84px; height: 84px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); color: var(--accent); font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.ph-add.wide { width: 100%; height: 56px; flex-direction: row; font-size: 17px; }
.rec { display: flex; flex-direction: column; gap: 8px; }
.rec-on { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 10px 12px; font-weight: 600; }
.rec-on .btn-s { margin-left: auto; background: var(--fill); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--over); animation: blink 1s steps(2) infinite; }
.rec-t { font: 500 15px var(--num); color: var(--ink-2); }
@keyframes blink { 50% { opacity: .3; } }
.clip { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 8px 10px; }
.group.pad .clip { background: var(--card-2); }
.clip span { flex: 1; }
.play { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.play svg { width: 16px; height: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .92); display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lb-x { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .15); color: #fff; display: grid; place-items: center; }

/* saved: the stamp */
.done { display: flex; flex-direction: column; align-items: center; padding: 28px 0 6px; }
.stamp-big { color: var(--accent); border: 3.5px solid var(--accent); border-radius: 16px; padding: 8px 24px 6px; display: flex; flex-direction: column; align-items: center; transform: rotate(-6deg); margin-bottom: 24px; }
.stamp-big span { font: 800 40px/1 var(--num); letter-spacing: 3px; }
.stamp-big small { font: 700 13px var(--num); letter-spacing: 1px; margin-top: 3px; }
.done p { margin-bottom: 6px; }

/* colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .2); }
.swatch[aria-checked=true] { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--accent); }

/* toast */
.toast { position: fixed; left: 50%; top: calc(10px + var(--safe-t)); z-index: 50; background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
	box-shadow: var(--glass-shadow); border-radius: 999px; padding: 12px 18px; font-size: 15px; font-weight: 600; max-width: calc(100% - 32px); text-align: center; transform: translate(-50%, -80px); }
.toast.bad { color: var(--over); }

/* welcome and sign-in */
.welcome { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(40px + var(--safe-t)) 24px calc(32px + var(--safe-b)); max-width: 480px; margin: 0 auto; overflow-y: auto; height: 100%; }
.hero-w, .welcome .hero { text-align: center; margin-bottom: 30px; }
.hero-car { width: 112px; height: 112px; }
.welcome .hero h1 { font-size: 36px; font-weight: 750; letter-spacing: -.5px; margin-top: 8px; }
.welcome .hero p { color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.auth { display: flex; flex-direction: column; gap: 14px; }
.auth h2 { font-size: 22px; }
.code-in { width: 100%; border: 0; background: none; padding: 16px; font: 600 17px var(--num); letter-spacing: 1px; outline: none; text-transform: uppercase; }
.code { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.code span { font: 700 18px var(--num); letter-spacing: 1.5px; text-align: center; padding: 7px 0; background: var(--card-2); border-radius: 10px; }
.row2 { display: flex; gap: 10px; } .row2 .btn { flex: 1; }
.err { color: var(--over); text-align: center; }

@media (hover: hover) { .row:hover, .mrow:hover { background: color-mix(in srgb, var(--ink) 3%, var(--card)); } }
@media (min-width: 700px) { .tabbar { left: 50%; right: auto; width: 300px; translate: -190px 0; } .fab { left: 50%; right: auto; translate: 130px 0; } }
