:root { --red:#e71f28; --navy:#2e2c73; --ink:#1c1c22; --grey:#6b6b76; --line:#e3e3ea; --bg:#f6f6f9; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background:var(--bg); color:var(--ink); }
.hidden { display:none !important; }
#topbar { display:flex; justify-content:space-between; align-items:center; background:#fff; border-bottom:3px solid var(--red); padding:10px 16px; position:sticky; top:0; z-index:5; }
.brand { font-weight:800; font-size:20px; letter-spacing:.3px; display:flex; align-items:center; gap:12px; }
.brand-red { color:var(--red); } .brand-navy { color:var(--navy); }
/* Platform mark left, company logo centered (Mido, Nov 17, 2026). The
   RepairStoreHub mark disappears entirely on mobile — company only. */
.hubMark { display:flex; align-items:center; gap:7px; font-weight:800; font-size:14px; color:var(--navy); white-space:nowrap; }
.hubMark img { height:26px; display:block; }
.hubMark .hubRed { color:var(--red); }
.hubStack { display:flex; flex-direction:column; line-height:1.2; }
.hubTag { font-size:9.5px; font-weight:600; color:#8a8f98; letter-spacing:.5px; }
.brandCenter { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }
.brandCenter img { max-width:min(280px, 30vw); object-fit:contain; }
@media (max-width: 640px) { .hubMark { display:none !important; } }
.top-right { display:flex; gap:10px; align-items:center; font-size:14px; }
main { max-width:980px; margin:0 auto; padding:18px 14px 60px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:14px; }
h1 { font-size:24px; margin:6px 0 14px; } h2 { font-size:19px; margin:4px 0 12px; color:var(--navy); }
.btn { background:var(--navy); color:#fff; border:0; border-radius:9px; padding:11px 18px; font-size:16px; cursor:pointer; }
.btn:hover { filter:brightness(1.12); }
.btn.red { background:var(--red); } .btn.ghost { background:#fff; color:var(--navy); border:1.5px solid var(--navy); }
.btn.small { padding:7px 12px; font-size:14px; }
.btn:disabled { opacity:.45; cursor:not-allowed; }
input, select, textarea { width:100%; padding:11px; border:1.5px solid var(--line); border-radius:9px; font-size:16px; margin-bottom:10px; background:#fff; }
label { font-size:13px; color:var(--grey); display:block; margin-bottom:4px; }
/* Home tiles — the Muse layout Mido asked for (Nov 17, 2026): big centered
   icon tiles in rows of 3, then an "Everything else" grid of small tiles. */
.tiles { display:grid; grid-template-columns:1fr; gap:12px; margin-top:12px; }
@media (min-width:640px) { .tiles { grid-template-columns:repeat(3,1fr); } }
.tiles.small { grid-template-columns:repeat(3,1fr); }
@media (min-width:640px) { .tiles.small { grid-template-columns:repeat(4,1fr); } }
.tile { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:104px; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:16px 10px; font-size:18px; font-weight:700; cursor:pointer; text-align:center; color:var(--ink); }
.tile:active { transform:scale(0.98); }
.tile .tic { font-size:36px; line-height:1.15; }
.tile .sub { display:block; font-size:12px; font-weight:400; color:var(--grey); }
.tile.red { background:var(--red); border-color:var(--red); color:#fff; }
.tile.red .sub { color:#fff; }
.tile.navy { background:var(--navy); border-color:var(--navy); color:#fff; }
.tile.navy .sub { color:#fff; }
.tiles.small .tile { font-size:15px; padding:12px 6px; }
.tiles.small .tile .tic { font-size:30px; }
.sectitle { font-size:20px; font-weight:800; margin:24px 0 0; }
.err { background:#fdecec; border:1px solid #f3b6b6; color:#8c1414; border-radius:9px; padding:10px 12px; margin-bottom:12px; font-size:14px; }
.ok { background:#e9f7ec; border:1px solid #a9d8b2; color:#14541f; border-radius:9px; padding:10px 12px; margin-bottom:12px; font-size:14px; }
.row { display:flex; gap:10px; } .row > * { flex:1; }
table { width:100%; border-collapse:collapse; font-size:15px; }
th { text-align:left; color:var(--grey); font-size:12.5px; text-transform:uppercase; letter-spacing:.4px; padding:6px 8px; border-bottom:2px solid var(--line); }
td { padding:8px; border-bottom:1px solid var(--line); }
.right { text-align:right; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.chip { border:1.5px solid var(--navy); color:var(--navy); background:#fff; border-radius:999px; padding:7px 14px; font-size:14px; cursor:pointer; }
.chip.on { background:var(--navy); color:#fff; }
.pill { display:inline-block; border-radius:999px; padding:2px 10px; font-size:12.5px; font-weight:700; background:#eef; color:var(--navy); }
.mut { color:var(--grey); font-size:13.5px; }
.pinwrap { max-width:360px; margin:40px auto; text-align:center; }
.pinwrap input#pin { text-align:center; font-size:30px; letter-spacing:12px; }
.formfields { text-align:left; }
.big { font-size:20px; font-weight:800; }
a.link { color:var(--navy); cursor:pointer; text-decoration:underline; }
.checkline { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
.checkline input[type=checkbox] { width:22px; height:22px; margin:0; flex:none; }
.checkline .price { width:110px; margin:0; }

/* Receipt (feature 57) + DYMO label (feature 45) print views */
.receipt { background:#fff; color:#000; max-width:820px; margin:0 auto; padding:28px 34px; font-family:Georgia,'Times New Roman',serif; }
.receipt h1 { text-align:center; font-size:26px; margin:0 0 14px; }
.receipt .rhead { display:flex; justify-content:space-between; gap:20px; }
.receipt .rlogo { font-family:Arial,sans-serif; font-weight:900; font-size:19px; line-height:1.1; }
.receipt .rlogo .rd { color:#e71f28; } .receipt .rlogo .nv { color:#2e2c73; }
.receipt table { width:100%; border-collapse:collapse; margin-top:12px; }
.receipt th, .receipt td { border:1px solid #999; padding:5px 8px; font-size:14px; text-align:left; }
.receipt th { background:#eee; }
.receipt .terms { margin-top:16px; font-size:12.5px; line-height:1.45; white-space:pre-line; }
.receipt .sig { margin-top:26px; font-size:14px; }
.dymo-label { background:#fff; color:#000; width:2.25in; height:1.25in; padding:0.07in 0.09in; box-sizing:border-box; font-family:Arial,sans-serif; overflow:hidden; border:1px dashed #bbb; }
.dymo-label .dl-store { font-weight:900; font-size:12.5px; white-space:nowrap; overflow:hidden; }
.dymo-label .dl-ticket { font-weight:900; font-size:25px; line-height:1.05; }
.dymo-label .dl-name { font-size:12px; font-weight:700; white-space:nowrap; overflow:hidden; }
.dymo-label .dl-dev { font-size:11px; white-space:nowrap; overflow:hidden; }
.dymo-label .dl-prob { font-size:9.5px; line-height:1.15; }
@media print {
  #topbar, .noprint { display:none !important; }
  body { background:#fff; }
  #app { max-width:none; padding:0; }
  .receipt { padding:0; }
  .dymo-label { border:none; }
}

.chk { display:inline-flex; align-items:center; gap:6px; font-size:14px; color:var(--ink); margin:2px 10px 2px 0; }
.chk input { width:auto; margin:0; }
/* Repair wizard — Muse-style stepped flow with box pickers (Nov 17, 2026) */
.pickgrid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:14px; }
@media (min-width:640px) { .pickgrid { grid-template-columns:repeat(3,1fr); } }
.tile.picked { background:var(--red); border-color:var(--red); color:#fff; }
.tile.picked .sub { color:#fff; }
.stepbar { display:flex; gap:4px; margin-top:8px; }
.stepbar span { height:8px; flex:1; border-radius:99px; background:var(--line); }
.stepbar span.on { background:var(--red); }
.wiznav { display:flex; gap:10px; margin-top:18px; }
.wiznav .btn { flex:1; padding:14px; font-size:16px; }
.mtile { display:flex; align-items:center; gap:10px; min-height:72px; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:10px 12px; font-size:15.5px; font-weight:700; cursor:pointer; text-align:left; color:var(--ink); width:100%; }
.mtile:active { transform:scale(0.98); }
.mtile.picked { background:var(--red); border-color:var(--red); color:#fff; }
.mtile svg { flex:none; }
