@font-face{font-family:'Bebas Neue';src:url(fonts/bebas-neue-latin-400-normal.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Public Sans';src:url(fonts/public-sans-latin-400-normal.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Public Sans';src:url(fonts/public-sans-latin-500-normal.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Public Sans';src:url(fonts/public-sans-latin-600-normal.woff2) format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Public Sans';src:url(fonts/public-sans-latin-700-normal.woff2) format('woff2');font-weight:700;font-display:swap}
/* Bill's Garage — design tokens pulled from the Figma "IOT project" hifi page */
:root {
  --bg: #000;
  --card: #383838;
  --surface: #1f1f1f;
  --sheet: #1c1c1c;
  --btn: #4a4a4a;
  --text: #fff;
  --muted: #b0b0b0;
  --faint: #8a8a8a;
  --green: #12ff54;
  --yellow: #ffc61a;
  --red: #ff2d2d;
  --pink: #ffcccc;
  --r: 12px;
  --pill: 99px;
  --title: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top: max(16px, env(safe-area-inset-top));
  --bottom: max(16px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #0b0b0b; color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.35; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; display: block; }

#app { max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--bg); position: relative; overflow-x: clip; }
/* overflow-x: clip (not hidden) so sticky headers keep working */
@media (min-width: 600px) { #app { box-shadow: 0 0 0 1px #1a1a1a; } }

.screen { padding: calc(var(--top) + 12px) 16px calc(var(--bottom) + 24px); display: flex; flex-direction: column; gap: 16px; min-height: 100dvh; animation: in .22s ease-out; }
.screen.has-nav { padding-bottom: calc(var(--bottom) + 110px); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .sheet, .stagger > * { animation: none !important; } }

/* ---------- headers ---------- */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.hdr .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h-title { font-family: var(--title); font-size: 32px; line-height: 1; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-title.sm { font-size: 30px; }
.h-actions { display: flex; gap: 8px; }
.rbtn { width: 36px; height: 36px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; flex: none; }
.rbtn.light { background: #fff; color: #000; }
.rbtn.lg { width: 44px; height: 44px; }
.rbtn.sm { width: 28px; height: 28px; }
.rbtn:active { transform: scale(.94); }
.title-btn { display: flex; align-items: center; gap: 6px; min-width: 0; }

.fixed-top { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: calc(-1 * (var(--top) + 12px)) -16px 0; padding: calc(var(--top) + 12px) 16px 6px; display: flex; flex-direction: column; gap: 10px; }
.fixed-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; background: linear-gradient(#000, rgba(0,0,0,0)); pointer-events: none; }

/* ---------- type ---------- */
.sec-title { font-size: 20px; font-weight: 600; margin: 4px 0 -4px; display: flex; justify-content: space-between; align-items: baseline; }
.sec-title .link { font-size: 14px; font-weight: 400; color: var(--muted); }
.headline { font-size: 22px; font-weight: 600; margin: 0; }
.big-title { font-family: var(--title); font-size: 44px; line-height: .95; margin: 0; text-transform: uppercase; }
.note { color: var(--muted); font-size: 14px; margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.bebas { font-family: var(--title); letter-spacing: .3px; }

/* ---------- machine cards ---------- */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 160px; height: 186px; border-radius: 14px; overflow: hidden; position: relative; background: #4a4a4a; scroll-snap-align: start; text-align: left; display: block; }
.mcard.large { flex: none; width: 100%; height: 186px; }
.mcard .photo { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); background: radial-gradient(120% 90% at 50% 25%, #5a5a5a, #3a3a3a); }

.mcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); }
.mcard .info { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.mcard .name { font-family: var(--title); font-size: 21px; line-height: 1; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .reading { position: absolute; top: 10px; right: 10px; font-size: 12px; background: rgba(0,0,0,.6); padding: 4px 9px; border-radius: var(--pill); }
.mcard.add { background: var(--surface); flex-basis: 120px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1.5px dashed #444; }
.mcard.add .rbtn { margin: 0 auto 10px; }
.chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: var(--pill); background: var(--surface); border: 1px solid #fff; font-size: 14px; white-space: nowrap; flex: none; }
.chip.warn { border-color: var(--yellow); }
.chip.over { border-color: var(--red); }
.chip.ok { border-color: #fff; }
.chip.ghost { border-color: #555; color: var(--muted); }

/* ---------- maintenance rows ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.mrow { background: var(--card); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; }
.mrow .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.mrow .mname { font-family: var(--title); font-size: 20px; line-height: 1; text-transform: uppercase; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .acts { display: flex; gap: 8px; align-items: center; }
.mrow .mid { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mrow .desc { font-size: 15px; }
.mrow .meta { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.logs { background: #fff; color: #000; font-weight: 600; font-size: 12px; border-radius: var(--pill); padding: 5px 12px; }
.bar { height: 6px; border-radius: 3px; background: #000; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.bar.warn > i { background: var(--yellow); }
.bar.over > i { background: var(--red); }

.mrow.urgent { background: linear-gradient(135deg, #8f1417 0%, #3d0d0f 100%); box-shadow: inset 0 0 0 1px rgba(255,82,82,.4); gap: 12px; }
.mrow.urgent .desc { color: var(--pink); }
.mrow .bigacts { display: flex; gap: 10px; align-items: center; }
.logl { flex: 1; height: 36px; background: #fff; color: #000; border-radius: var(--pill); font-weight: 600; font-size: 13px; }
.mrow.compact .mname { text-align: left; }

.card { background: var(--card); border-radius: var(--r); padding: 14px; }
.card.dark { background: var(--surface); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.tight { gap: 4px; }
.grow { flex: 1; min-width: 0; }

/* nudge / info cards */
.nudge { background: var(--surface); border: 1px solid #333; border-radius: var(--r); padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.nudge .ibox { width: 40px; height: 40px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; flex: none; }
.nudge.warn .ibox { background: rgba(255,198,26,.18); color: var(--yellow); }
.nudge.alert .ibox { background: rgba(255,45,45,.18); color: var(--red); }
.nudge .t { font-weight: 600; }
.nudge .d { color: var(--muted); font-size: 13px; }

/* ---------- tabs ---------- */
.tabs { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.tabs button { color: var(--muted); font-size: 15px; }
.tabs button.on { color: #fff; font-size: 20px; font-weight: 600; }
.tabs .rbtn { margin-left: auto; }

/* ---------- buttons ---------- */
.btn { height: 52px; border-radius: var(--pill); width: 100%; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.primary { background: #fff; color: #000; }
.btn.secondary { background: var(--card); color: #fff; }
.btn.danger { background: rgba(255,45,45,.15); color: #ff6b6b; }
.btn.text { height: 36px; color: var(--muted); font-weight: 400; font-size: 15px; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .4; }
.dashed { border: 1.5px dashed #555; border-radius: var(--r); height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; width: 100%; }
.spacer { flex: 1; }
.actions-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 8px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); }
.inp { background: var(--card); border: 0; border-radius: var(--r); height: 46px; padding: 0 14px; width: 100%; outline: none; }
.inp::placeholder { color: var(--faint); }
textarea.inp { height: 150px; padding: 14px; resize: vertical; line-height: 1.4; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.inp:focus { box-shadow: inset 0 0 0 1.5px #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.seg { display: flex; background: var(--surface); border-radius: var(--pill); padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 38px; border-radius: var(--pill); color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.on { background: #fff; color: #000; }

.trow { background: var(--card); border-radius: var(--r); padding: 12px 14px; display: flex; align-items: center; gap: 12px; min-height: 60px; text-align: left; width: 100%; }
.trow .t { font-weight: 600; font-size: 16px; }
.trow .d { color: var(--muted); font-size: 13px; }
.switch { width: 52px; height: 32px; border-radius: 99px; background: var(--btn); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }
.check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #888; flex: none; display: grid; place-items: center; }
.check.on { background: var(--green); border-color: var(--green); color: #000; }

.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--btn); }
.steps i.on { background: #fff; }

/* ---------- list rows (history, settings) ---------- */
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: var(--r); text-align: left; width: 100%; }
.lrow .ibox { width: 36px; height: 36px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; flex: none; }
.lrow .t { font-weight: 600; }
.lrow .d { color: var(--muted); font-size: 13px; }
.lrow .v { font-size: 14px; color: var(--muted); white-space: nowrap; }
.group { display: flex; flex-direction: column; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.notecard { background: var(--card); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.notecard .when { color: var(--muted); font-size: 12px; }
.pill-tag { font-size: 12px; font-weight: 600; background: var(--btn); padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; }
.pill-tag.green { background: rgba(18,255,84,.15); color: var(--green); }
.pill-tag.yellow { background: rgba(255,198,26,.15); color: var(--yellow); }
.pill-tag.red { background: rgba(255,45,45,.18); color: #ff6b6b; }

.empty { text-align: center; color: var(--muted); padding: 28px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ibox { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: #fff; }

/* ---------- bottom nav ---------- */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 30; display: flex; justify-content: space-around; padding: 10px 28px var(--bottom); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.92) 35%, #000); }
.nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--faint); width: 80px; padding-top: 8px; }
.nav button.on { color: #fff; }

/* ---------- add menu (FAB) ---------- */
.fabmenu { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72); display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 14px; padding: 0 calc(16px + max(0px, (100vw - 430px) / 2)) calc(var(--bottom) + 90px); animation: fade .15s; }
.fabmenu .it { display: flex; align-items: center; gap: 10px; animation: pop .22s cubic-bezier(.2,1.4,.5,1) both; }
.fabmenu .it span { background: var(--card); padding: 8px 14px; border-radius: var(--pill); font-weight: 600; }
.fabmenu .it .rbtn { background: #222; border: 1.5px solid #fff; width: 48px; height: 48px; }
.fabmenu .close { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 430px; background: var(--sheet); border-radius: 28px 28px 0 0; padding: 12px 16px calc(var(--bottom) + 18px); display: flex; flex-direction: column; gap: 16px; max-height: 92dvh; overflow-y: auto; box-shadow: 0 -8px 24px rgba(0,0,0,.5); animation: up .28s cubic-bezier(.2,.9,.3,1); }
.sheet .handle { width: 40px; height: 5px; border-radius: 3px; background: #666; margin: 0 auto; flex: none; }
.sheet .h-title { font-size: 30px; }
@keyframes up { from { transform: translateY(100%); } }

.numpad-display { font-family: var(--title); font-size: 56px; text-align: center; padding: 4px 0; letter-spacing: 1px; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button { height: 56px; border-radius: var(--r); background: var(--card); font-size: 24px; font-weight: 600; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 96px); z-index: 90; background: #fff; color: #000; border-radius: var(--pill); padding: 12px 18px; font-weight: 600; display: flex; gap: 14px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: up2 .25s; max-width: 92vw; }
.toast button { text-decoration: underline; font-weight: 700; }
@keyframes up2 { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- task detail ---------- */
.photo-hero { height: 170px; border-radius: 14px; overflow: hidden; position: relative; background: radial-gradient(120% 90% at 50% 25%, #5a5a5a, #3a3a3a); display: grid; place-items: center; color: rgba(255,255,255,.55); }

.linkrow { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.need { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.need + .need { border-top: 1px solid #444; }
.smallbtn { background: var(--btn); border-radius: var(--pill); padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---------- receipt capture ---------- */
.viewfinder { height: 300px; border-radius: 24px; border: 1px solid #444; background: #1a1a1a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; overflow: hidden; position: relative; }

.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #222; flex: none; }
/* user photos sit on top of the line-art placeholder and fade in once loaded */
img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s; background: #2a2a2a; }
img.ph.contain { object-fit: contain; background: #111; }
img.ph.ready, img.thumb.ready { opacity: 1; }
img.thumb { opacity: 0; transition: opacity .18s; }

/* ---------- onboarding ---------- */
.hero { height: 361px; border-radius: 24px; overflow: hidden; position: relative; background: #4a4a4a; flex: none; }
.hero .lineup { position: absolute; top: -428px; left: 0; width: 1229px; height: 1229px; background-size: cover; animation: pan 9s ease-in-out .6s forwards; }
@keyframes pan {
  0% { transform: translateX(0); } 11% { transform: translateX(-207px); } 17% { transform: translateX(-207px); }
  28% { transform: translateX(-398px); } 34% { transform: translateX(-398px); } 45% { transform: translateX(-625px); }
  51% { transform: translateX(-625px); } 62% { transform: translateX(-803px); } 68% { transform: translateX(-803px); }
  79%, 100% { transform: translateX(-868px); }
}
.hero .iconlane { position: absolute; inset: 0; display: flex; align-items: center; }
.hero .iconlane .track { display: flex; gap: 46px; padding-left: 60px; color: rgba(255,255,255,.75); animation: lane 18s linear infinite; }
@keyframes lane { to { transform: translateX(-50%); } }
.hero .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35)); }
.hero .label { position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: var(--pill); font-weight: 600; font-size: 14px; }
.stagger > * { animation: rise .6s cubic-bezier(.2,.8,.3,1) both; }
.stagger > *:nth-child(2) { animation-delay: .12s; } .stagger > *:nth-child(3) { animation-delay: .24s; }
.stagger > *:nth-child(4) { animation-delay: .36s; } .stagger > *:nth-child(5) { animation-delay: .48s; }
.stagger > *:nth-child(6) { animation-delay: .6s; } .stagger > *:nth-child(7) { animation-delay: .72s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.success { width: 88px; height: 88px; border-radius: 50%; background: var(--green); color: #000; display: grid; place-items: center; margin: 0 auto; animation: bounce .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes bounce { from { transform: scale(0); } }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; flex: 1; }

/* category picker */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat { background: var(--card); border-radius: var(--r); padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; color: #ddd; min-height: 96px; }
.cat svg { color: #fff; }
.cat.on { box-shadow: inset 0 0 0 2px #fff; }
.grouplabel { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: -6px; }

/* print report */
@media print {
  body, #app { background: #fff !important; color: #000 !important; max-width: none; box-shadow: none; }
  .nav, .no-print, .toast { display: none !important; }
  .screen { padding: 0; min-height: 0; animation: none; }
  .card, .lrow { background: #fff !important; border: 1px solid #ccc; color: #000; }
  .muted, .lrow .d, .lrow .v { color: #444 !important; }
}
.flip { transform: scaleX(-1); }

/* ---------- sticky bits ---------- */
.hdr.sticky { position: sticky; top: 0; z-index: 25; background: var(--bg); margin: calc(-1 * (var(--top) + 12px)) -16px 0; padding: calc(var(--top) + 12px) 16px 10px; }
.hdr.sticky::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(#000, rgba(0,0,0,0)); pointer-events: none; }
.tabs.sticky { position: sticky; top: calc(var(--top) + 58px); z-index: 24; background: var(--bg); margin: 0 -16px; padding: 8px 16px; }
.tabs.sticky::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(#000, rgba(0,0,0,0)); pointer-events: none; }
.screen > .actions-bottom { position: sticky; bottom: 0; z-index: 15; margin: auto -16px calc(-1 * (var(--bottom) + 24px)); padding: 18px 16px calc(var(--bottom) + 16px); background: linear-gradient(rgba(0,0,0,0), #000 18px); }
.sheet > .hdr { position: sticky; top: -12px; z-index: 5; background: var(--sheet); margin: 0 -16px; padding: 8px 16px; }
.sheet-actions { position: sticky; bottom: calc(-1 * (var(--bottom) + 18px)); z-index: 5; background: var(--sheet); margin: 0 -16px calc(-1 * (var(--bottom) + 18px)); padding: 10px 16px calc(var(--bottom) + 18px); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -12px 12px -4px var(--sheet); }
.sheet .handle { margin-bottom: -4px; }

/* ---------- quick-pick chips ---------- */
.picks { display: flex; gap: 6px; flex-wrap: wrap; }
.pick { height: 32px; padding: 0 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid #444; font-size: 13px; font-weight: 600; color: #ddd; }
.pick.on { background: #fff; color: #000; border-color: #fff; }
.preview { background: var(--surface); border-radius: var(--r); padding: 10px 14px; font-size: 14px; color: var(--muted); }
.preview b { color: #fff; }

/* schedule card on item page */
.sched { display: flex; flex-direction: column; gap: 8px; }
.sched .lrow .v { color: #fff; font-weight: 600; }
.sched .lrow .go { color: var(--muted); }

/* install tutorial */
.istep { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: var(--r); padding: 14px; }
.istep .n { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; font-weight: 700; display: grid; place-items: center; flex: none; }
.istep .t { font-weight: 600; }
.istep .d { color: var(--muted); font-size: 14px; margin-top: 2px; }
.istep .demo { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: #2b2b2b; border-radius: 10px; padding: 7px 11px; font-size: 14px; color: #4da3ff; }
.istep .demo.plain { color: #fff; }
.callout { border: 1px solid #5a4a12; background: rgba(255,198,26,.08); border-radius: var(--r); padding: 12px 14px; font-size: 14px; color: #f2dc9a; }
.callout b { color: var(--yellow); }

/* import */
.maprow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; align-items: center; }
.maprow > span { font-size: 14px; }
.tbl { overflow-x: auto; border-radius: var(--r); background: var(--surface); }
.tbl table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.tbl td, .tbl th { padding: 7px 9px; border-bottom: 1px solid #2c2c2c; white-space: nowrap; text-align: left; }
.tbl th { color: var(--muted); font-weight: 600; }

/* backup card */
.mrow.backup .chip { border-color: var(--yellow); }

/* credit */
.credit { display: block; text-align: center; color: var(--faint); font-size: 13px; padding: 6px 0 2px; text-decoration: none; }
.credit b { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
