/* My Garage — customer portal. Builds on /app.css tokens. */
body.garage { background: var(--bg); }
.g-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.g-wrap { max-width: 820px; margin: 0 auto; padding: 0 16px 120px; }
.g-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.g-h1 { margin: 0; font-size: clamp(32px, 7vw, 48px); font-weight: 900; font-stretch: 112%; text-transform: uppercase; line-height: .95; letter-spacing: -0.01em; }
.g-h2 { margin: 30px 0 12px; font-size: 20px; font-weight: 900; font-stretch: 100%; text-transform: uppercase; letter-spacing: .01em; }
.g-h3 { margin: 0; font-size: 18px; font-weight: 800; }
.g-sub { margin: 0; color: #C7CDD6; }

/* header */
.g-top { background: var(--ink); color: #fff; }
.g-top .bar { max-width: 820px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #fff; }
.g-brand img { display: block; width: 120px; height: auto; background: #fff; border-radius: 6px; padding: 3px 5px; }
.g-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.g-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #1C2433; color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.g-chip-wa { background: #128C4A; }
.g-chip-ghost { background: none; border: 1px solid #2B3647; color: #C7CDD6; }
.g-requesting { background: #EEF4FF; border: 1px solid #C9DAF8; color: #0A0F1A; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 0 0 12px; }
.g-noaccount { margin: 14px 0 0; }
  .g-short { display: none; }
@media (max-width: 480px) { .g-long { display: none; } .g-short { display: inline; } .g-chip { min-height: 34px; padding: 0 10px; font-size: 12px; } }
.g-brand b { font-size: 19px; font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: .01em; }
.g-brand span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.g-top .out { background: none; border: 1px solid #2B3647; color: #C7CDD6; border-radius: 999px; min-height: 38px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.g-hero { max-width: 820px; margin: 0 auto; padding: 18px 16px 34px; display: flex; flex-direction: column; gap: 10px; }
.g-accent-rule { height: 4px; background: var(--accent); }

/* sign in */
.g-auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--ink); }
.g-auth .panel { display: flex; align-items: center; justify-content: center; padding: 24px 16px 60px; }
.g-auth .card { width: min(460px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 16px; border-radius: 20px; }
.g-auth .lede { margin: 0; color: var(--muted); }
.g-perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.g-perks li { display: flex; gap: 10px; }
.g-perks li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: 7px; border-radius: 99px; background: var(--accent); }
.g-code { letter-spacing: .5em; font-size: 26px !important; font-weight: 800 !important; text-align: center; font-family: 'IBM Plex Mono', monospace; }
.g-btn-lg { min-height: 52px; font-size: 16px; width: 100%; }
.g-test { background: #FFF1E9; color: #7A2400; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.g-link { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

/* vehicle card */
.g-car { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: -18px; box-shadow: 0 10px 30px rgba(10, 15, 26, .06); }
.g-car + .g-car { margin-top: 18px; }
.g-car-head { padding: 20px 20px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.g-car-head h2 { margin: 0; font-size: 26px; font-weight: 900; font-stretch: 100%; line-height: 1.05; }
.g-car-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* repair tracker */
.g-live { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.g-live .now { font-size: 22px; font-weight: 900; }
.g-live p { margin: 0; color: #C7CDD6; font-size: 15px; }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.g-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 700; color: #7E8A9C; }
.g-steps li::before { content: ''; height: 6px; border-radius: 99px; background: #2B3647; }
.g-steps li.done::before { background: #4A7BD0; }
.g-steps li.done { color: #C7CDD6; }
.g-steps li.on::before { background: var(--accent); }
.g-steps li.on { color: #fff; }
.g-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #FFF1E9; border-radius: 14px; padding: 14px 16px; }
.g-cta b { font-size: 16px; }

/* health */
.g-health { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-health div { border-radius: 14px; padding: 12px; text-align: center; background: var(--bg); }
.g-health b { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; }
.g-health .u b { color: var(--urgent); }
.g-health .w b { color: var(--watch); }
.g-health .g b { color: var(--good); }
.g-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.g-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.g-list li:first-child { border-top: 0; }
.g-list a.row-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-decoration: none; color: inherit; }
.g-list .t { font-weight: 700; }
.g-list .s { font-size: 13.5px; color: var(--muted); }
.g-next { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-dark); }
.g-next b { font-size: 17px; }
.g-sec-t { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.g-empty { background: #fff; border: 1px dashed var(--line-2); border-radius: 20px; padding: 32px 20px; text-align: center; margin-top: -18px; }

/* visit / estimate */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.jobcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.jobcard .price { font-size: 24px; font-weight: 900; }
.jobcard details { font-size: 14px; color: var(--muted); }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.decide button { min-height: 50px; border-radius: 12px; border: 2px solid var(--line-2); background: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.decide button.on.yes { background: var(--good); border-color: var(--good); color: #fff; }
.decide button.on.no { background: #EEF0F3; border-color: var(--ink-2); }
.find { display: grid; gap: 10px; }
.find .item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.g-paybar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(10, 15, 26, .08); z-index: 5; }
.g-paybar .inner { max-width: 820px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.g-paybar .total { font-size: 24px; font-weight: 900; }
.g-invoice table { width: 100%; border-collapse: collapse; font-size: 15px; }
.g-invoice td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.g-invoice td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.g-invoice tr.job td { font-weight: 800; border-top: 2px solid var(--line-2); padding-top: 14px; }
.g-invoice tr.sum td { font-weight: 800; }
.g-invoice tr.grand td { font-size: 20px; font-weight: 900; border-top: 2px solid var(--ink); }
.g-back { display: inline-flex; align-items: center; gap: 6px; color: #C7CDD6; text-decoration: none; font-weight: 700; font-size: 14px; }

@media (max-width: 560px) {
  .g-steps { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .g-car-head h2 { font-size: 22px; }
  .g-car-head, .g-car-body { padding-left: 16px; padding-right: 16px; }
}

@media print {
  .g-top, .no-print, .g-paybar { display: none !important; }
  .g-wrap { padding: 0; }
  .g-car, .card { box-shadow: none; border: 0; margin: 0; }
  .print-head { display: block !important; margin-bottom: 18px; }
}
.print-head { display: none; }

/* accounts, offer, forms */
.g-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; }
.g-tabs a { text-align: center; padding: 10px 8px; border-radius: 999px; font-weight: 800; color: var(--muted); text-decoration: none; }
.g-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(10, 15, 26, .12); }
.g-promo { display: flex; flex-direction: column; gap: 4px; background: #FFF1E9; border: 2px dashed var(--accent); border-radius: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.g-promo-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.g-promo-row b { font-size: 17px; }
.g-promo s, .g-svc s { color: var(--muted); font-weight: 700; }
.g-promo strong { font-size: 24px; font-weight: 900; color: var(--good); letter-spacing: .02em; }
.g-promo-card { margin: -18px 0 18px; box-shadow: 0 10px 30px rgba(10, 15, 26, .06); }
.g-promo-card .small { font-weight: 800; color: #9A2E00; }
.g-form { padding: 20px; margin-top: -18px; }
.grid3 { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 10px; }
label.check { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; }
label.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.g-services { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.g-svc { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.g-svc:has(input:checked) { border-color: var(--accent); background: #FFF8F4; }
.g-svc input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.g-svc .n { font-weight: 700; }
.g-svc .p { font-weight: 800; white-space: nowrap; }
.g-svc strong { color: var(--good); }
.btn.g-ghost { background: transparent; border-color: #2B3647; color: #fff; }
.g-requests { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; margin: -18px 0 18px; }
.g-promo-card + .g-requests { margin-top: 0; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
.g-promo-card + .g-car, .g-requests + .g-car { margin-top: 0; }
label.field input, label.field select, label.field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
