/* G30 build tracker: dark garage look with BMW M stripes. Tokens first, then components. */
:root {
  --bg: #090b0f; --card: #12151c; --card2: #1a1e28; --line: #262b38; --ink: #eef1f7; --muted: #8f98ad; --faint: #5d6579;
  --accent: #2f7cf0; --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--card)); --accent-ink: #fff;
  --m1: #53b1fd; --m2: #1c3f94; --m3: #e4002b;
  --good: #34d399; --good-bg: #0f2e26; --warn: #fbbf24; --warn-bg: #33270a; --bad: #f87171; --bad-bg: #3a1618;
  --r: 18px; --r-sm: 12px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, h4, p { margin: 0; } h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; } h2 { font-size: 19px; font-weight: 750; letter-spacing: -.01em; } h3 { font-size: 16px; font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; } button { cursor: pointer; } a { color: var(--m1); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 14px; } .tiny { font-size: 12.5px; } .bold { font-weight: 700; }
.row { display: flex; gap: var(--s3); align-items: center; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: var(--s4); } .stack-s { display: flex; flex-direction: column; gap: var(--s2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .ico.sm { width: 18px; height: 18px; } .ico.lg { width: 30px; height: 30px; }
[hidden] { display: none !important; }
.mstripe { height: 4px; background: linear-gradient(90deg, var(--m1) 0 33.3%, var(--m2) 33.3% 66.6%, var(--m3) 66.6%); border-radius: 2px; }

/* shell */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s3); padding: calc(var(--safe-t) + 10px) var(--s4) 10px; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; min-width: 0; text-decoration: none; color: var(--ink); } .brand .logo { width: 34px; height: 34px; border-radius: 10px; background: #000; display: grid; place-items: center; flex: none; border: 1px solid var(--line); } .brand .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); } .icon-btn:active, .icon-btn:hover { background: var(--card2); color: var(--ink); }
.body { display: flex; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; }
.main { flex: 1; min-width: 0; padding: var(--s4) var(--s4) calc(108px + var(--safe-b)); }
.page { animation: rise .3s ease both; } @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nav { position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); display: flex; gap: 2px; padding: 6px; background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 24px; }
.nav a { flex: 1; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 650; } .nav a[aria-current="page"] { color: var(--m1); background: var(--accent-soft); }
@media (min-width: 900px) { .nav { position: sticky; top: 74px; align-self: flex-start; flex-direction: column; left: auto; right: auto; bottom: auto; width: 210px; margin: var(--s4) 0 0 var(--s4); border-radius: var(--r); height: fit-content; flex: none; } .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: var(--s3); padding: 0 var(--s4); min-height: 46px; font-size: 15px; border-radius: 14px; } .main { padding: var(--s5) var(--s5) var(--s6); } .body { align-items: flex-start; } }

/* cards, buttons, forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); } .card.flat { background: transparent; }
.sect { display: flex; align-items: center; justify-content: space-between; margin: var(--s5) 2px var(--s3); gap: var(--s3); } .sect:first-child { margin-top: 0; } .sect h2 { font-size: 17px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; } .page-head p { color: var(--muted); }
.grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; } @media (min-width: 640px) { .grid.c2, .grid.c3 { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 980px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.tiles { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); } @media (min-width: 760px) { .tiles.t3 { grid-template-columns: repeat(3, 1fr); } .tiles.t4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); display: flex; flex-direction: column; gap: 2px; } .tile .num { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .tile .lab { font-size: 13.5px; color: var(--muted); font-weight: 600; } .tile.good .num { color: var(--good); } .tile.accent .num { color: var(--m1); }
.btn { min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card2); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); text-decoration: none; transition: transform .12s, background .15s; white-space: nowrap; } .btn:active { transform: scale(.97); } .btn:hover { background: #222736; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { background: #4a8cf3; } .btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--m1); } .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn.danger { color: var(--bad); }
.btn.sm { min-height: 40px; padding: 0 var(--s4); font-size: 14.5px; border-radius: 12px; } .btn.lg { min-height: 56px; width: 100%; font-size: 17px; } .btn[disabled] { opacity: .5; pointer-events: none; }
.chip { min-height: 38px; padding: 0 var(--s4); border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips { display: flex; gap: var(--s2); overflow-x: auto; padding: 2px 2px var(--s2); margin: 0 -2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--card2); color: var(--muted); white-space: nowrap; } .pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.accent { background: var(--accent-soft); color: var(--m1); }
label.lab { display: block; font-weight: 700; font-size: 13.5px; color: var(--muted); margin: var(--s3) 0 6px; }
input[type=text], input[type=password], input[type=url], input[type=date], input[type=number], input[type=search], textarea, select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #0d1016; color: var(--ink); font-size: 16px; outline: none; } input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); } textarea { resize: vertical; min-height: 84px; }
.search { position: relative; } .search .ico { position: absolute; left: 14px; top: 13px; color: var(--faint); } .search input { padding-left: 44px; }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 3px; gap: 3px; margin-bottom: var(--s4); overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; } .seg a, .seg button { flex: 1 0 auto; min-height: 40px; padding: 0 var(--s4); border: 0; background: transparent; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap; } .seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--card2); color: var(--m1); }
.bar { height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); width: 0; transition: width .6s; } .bar.good i { background: var(--good); }
.err { color: var(--bad); font-size: 14.5px; min-height: 20px; }
.fab { position: fixed; right: 18px; bottom: calc(92px + var(--safe-b)); z-index: 24; width: 58px; height: 58px; border-radius: 20px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(47, 124, 240, .7); } @media (min-width: 900px) { .fab { bottom: 28px; right: 28px; } }

/* parts */
.part { display: flex; gap: var(--s3); align-items: flex-start; width: 100%; text-align: left; padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: inherit; } .part:active { background: var(--card2); }
.part .ph { width: 56px; height: 56px; border-radius: 12px; background: var(--card2); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--faint); } .part .ph img { width: 100%; height: 100%; object-fit: cover; }
.part h3 { font-size: 16px; line-height: 1.3; } .part .price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.prio-1 { color: var(--bad); } .prio-2 { color: var(--warn); } .prio-3 { color: var(--muted); }
.totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-bottom: var(--s4); } @media (min-width: 640px) { .totals { grid-template-columns: repeat(4, 1fr); } }

/* plan */
.phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); } .phase.done { opacity: .75; } .phase.in_progress { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.titem { display: flex; gap: var(--s3); align-items: center; min-height: 46px; } .tick { width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--faint); background: transparent; display: grid; place-items: center; color: transparent; flex: none; padding: 0; } .tick.on { background: var(--good); border-color: var(--good); color: #06281e; } .tick .ico { width: 18px; height: 18px; stroke-width: 3; }
.titem.done span.t { color: var(--muted); text-decoration: line-through; }
.tl { position: relative; padding-left: 26px; } .tl::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl .ev { position: relative; padding: 0 0 var(--s4); } .tl .ev::before { content: ""; position: absolute; left: -24px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--faint); border: 3px solid var(--bg); } .tl .ev.done::before { background: var(--good); } .tl .ev.in_progress::before { background: var(--accent); } .tl .ev.photo::before { background: var(--m1); } .tl .ev.part::before { background: var(--warn); } .tl .ev.today::before { background: var(--m3); }
.tl .ev .when { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* photos */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; } @media (min-width: 700px) { .pgrid { grid-template-columns: repeat(5, 1fr); gap: 6px; } } @media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(6, 1fr); } }
.pth { position: relative; aspect-ratio: 1; background: var(--card2); border: 0; padding: 0; overflow: hidden; border-radius: 6px; display: block; } .pth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pth .badge { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fbbf24; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; } .pth .sel { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); display: grid; place-items: center; } .pth.picked { outline: 3px solid var(--accent); outline-offset: -3px; } .pth.picked .sel { background: var(--accent); }
.daysep { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--muted); margin: var(--s3) 2px 2px; letter-spacing: .03em; }
.albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); } @media (min-width: 700px) { .albums { grid-template-columns: repeat(4, 1fr); } }
.album { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 0; color: inherit; } .album .cv { aspect-ratio: 4/3; background: var(--card2); display: grid; place-items: center; color: var(--faint); } .album .cv img { width: 100%; height: 100%; object-fit: cover; } .album .meta { padding: 10px 12px; }
.viewer { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; flex-direction: column; animation: fade .2s both; } @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.viewer .vtop { display: flex; align-items: center; gap: var(--s2); padding: calc(var(--safe-t) + 8px) var(--s3) 8px; color: #fff; } .viewer .vimg { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; touch-action: pan-y pinch-zoom; } .viewer img.big { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer .vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(0,0,0,.35); color: #fff; border-radius: 12px; display: grid; place-items: center; } .viewer .vnav.l { left: 6px; } .viewer .vnav.r { right: 6px; }
.viewer .vbar { padding: var(--s3) var(--s3) calc(var(--s3) + var(--safe-b)); background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.4)); } .viewer .vactions { display: flex; gap: var(--s2); overflow-x: auto; padding-top: var(--s2); scrollbar-width: none; } .viewer .vactions::-webkit-scrollbar { display: none; } .viewer .vactions .btn { flex: none; }
.mockbanner { display: inline-flex; align-items: center; gap: 6px; background: var(--warn-bg); color: var(--warn); font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-size: 14.5px; } .notice.info { background: var(--accent-soft); color: var(--m1); }

/* before / after slider */
.cmp { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r); background: #000; user-select: none; touch-action: pan-y; cursor: ew-resize; } .cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp .after { clip-path: inset(0 0 0 50%); } .cmp .line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.6); pointer-events: none; } .cmp .knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.5); pointer-events: none; }
.cmp .tag { position: absolute; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; padding: 4px 10px; border-radius: 99px; pointer-events: none; } .cmp .tag.b { left: 10px; } .cmp .tag.a { right: 10px; }
.cmp:focus-visible { outline: 3px solid var(--accent); }

/* mock-ups */
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); } @media (min-width: 700px) { .mods { grid-template-columns: repeat(4, 1fr); } }
.mod { text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: var(--s4); color: inherit; display: flex; flex-direction: column; gap: 6px; min-height: 96px; } .mod[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); } .mod .ico { color: var(--m1); }
.canvaswrap { position: relative; width: 100%; background: #000; border-radius: var(--r); overflow: hidden; touch-action: none; } .canvaswrap canvas { display: block; width: 100%; height: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; } .swatch { width: 40px; height: 40px; border-radius: 12px; border: 3px solid transparent; } .swatch[aria-pressed="true"] { border-color: #fff; }

/* sheets, toast, misc */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; animation: fade .2s both; }
.sheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: var(--s4) var(--s4) calc(var(--s5) + var(--safe-b)); animation: slide .28s cubic-bezier(.2,.8,.2,1) both; } @keyframes slide { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto var(--s4); } .sheet .head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); } .sheet .head h2 { font-size: 21px; }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(640px, 94vw); border-radius: 26px; transform: translate(-50%, -50%); animation: fade .25s both; max-height: 88dvh; } }
#toast { position: fixed; z-index: 90; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translate(-50%, 20px); background: #fff; color: #111; padding: 12px 20px; border-radius: 16px; font-weight: 650; opacity: 0; pointer-events: none; transition: all .3s; max-width: 90vw; text-align: center; } #toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--bad); color: #1a0505; }
.empty { text-align: center; padding: var(--s6) var(--s4); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: var(--s3); } .empty .ring-ico { width: 64px; height: 64px; border-radius: 22px; background: var(--accent-soft); color: var(--m1); display: grid; place-items: center; } .empty h3 { color: var(--ink); font-size: 18px; } .empty p { max-width: 34ch; }
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shim 1.3s linear infinite; } @keyframes shim { to { background-position: -200% 0; } }
.hero { position: relative; border-radius: 26px; overflow: hidden; background: #000; min-height: 230px; display: flex; align-items: flex-end; } .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; } .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.05) 70%); } .hero .in { position: relative; z-index: 1; padding: var(--s5) var(--s4) var(--s4); width: 100%; } .hero h1 { font-size: 30px; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: var(--s4); background: radial-gradient(800px 400px at 20% -10%, rgba(47,124,240,.25), transparent), radial-gradient(600px 400px at 100% 0%, rgba(228,0,43,.14), transparent), var(--bg); } .login .box { width: min(380px, 100%); text-align: center; } .login input { text-align: center; font-size: 28px; letter-spacing: 10px; min-height: 64px; }
.sharebody { max-width: 980px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s6); } .sharebody .foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: var(--s6); }
.lightbox { cursor: zoom-in; }
.dtable { width: 100%; border-collapse: collapse; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; transition-duration: .001s !important; } }
