:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #030913;
  --panel: #081426;
  --panel-2: #0d2039;
  --line: #294561;
  --text: #f8fafc;
  --muted: #b8c4d3;
  --accent: #b51d22;
  --accent-dark: #69090c;
  --brand-blue: #0969cf;
  --brand-blue-dark: #043b82;
  --brand-silver: #d7dde4;
  --brand-gold: #efbd2f;
  --success: #34d399;
  --danger: #e00000;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; background: radial-gradient(circle at top, #102d50 0, var(--bg) 42rem); color: var(--text); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; border: 0; border-radius: .7rem; padding: .7rem 1rem; cursor: pointer; font-weight: 750; }
button { background: linear-gradient(135deg, #c6282c, #810b0f); color: #fff; box-shadow: 0 7px 18px rgba(181,29,34,.24); }
button.secondary { background: #14375d; color: var(--text); box-shadow: none; }
button.danger { background: #7f1d1d; color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: .65rem; padding: .75rem; background: #0d1422; color: var(--text); }
textarea { min-height: 7rem; resize: vertical; }
label { display: grid; gap: .4rem; color: var(--muted); font-weight: 650; }
a { color: #66adff; }
.skip-link { position: fixed; left: -100vw; top: .5rem; z-index: 10; background: #fff; color: #000; padding: .5rem; }
.skip-link:focus { left: .5rem; }
.shell { min-width: 0; min-height: 100vh; padding-bottom: 5.5rem; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem max(1rem, calc((100vw - 72rem) / 2)); background: rgba(7,11,18,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; min-width: 0; align-items: center; gap: .7rem; font-weight: 900; letter-spacing: .02em; }
.topbar-actions { min-width: 0; flex: 0 1 auto; flex-wrap: nowrap; justify-content: flex-end; }
.user-label { min-width: 0; max-width: clamp(9rem, 18vw, 18rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.development-only { margin: 0; padding: .7rem; border: 1px dashed var(--brand-blue); border-radius: .6rem; color: #cfe5ff; background: #071a31; }
.content { width: min(72rem, 100%); min-width: 0; margin: auto; padding: 1.25rem 1rem 3rem; }
.hero { padding: 1.5rem; border: 1px solid #244f7c; background: linear-gradient(135deg, #071a31, #081426 65%); border-radius: 1rem; margin-bottom: 1rem; }
.hero h1, .section-title { margin: 0 0 .5rem; }
.screen-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 12rem; overflow: hidden; margin-bottom: 1rem; padding: clamp(1.2rem, 4vw, 2.3rem); border: 1px solid #315b84; border-radius: 1.1rem; background: radial-gradient(circle at 90% 20%, rgba(20,119,230,.25), transparent 30%), linear-gradient(125deg, #030b17, #0d2848); }
.screen-hero.has-art { grid-template-columns: minmax(0, 1.35fr) minmax(10rem, .65fr); }
.screen-hero::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--brand-blue), #f8fafc 50%, var(--accent)); }
.screen-hero-copy { position: relative; z-index: 1; }
.screen-hero h1 { max-width: 18ch; margin: .25rem 0 .6rem; font-size: clamp(2rem, 5vw, 3.7rem); line-height: .98; letter-spacing: -.04em; }
.screen-hero-copy > p:last-child { max-width: 43rem; color: #c2cddd; line-height: 1.6; }
.screen-hero-art { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 9rem; }
.screen-hero-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(14,100,218,.18); filter: blur(24px); }
.screen-hero-art img { position: relative; width: min(100%, 14rem); max-height: 12rem; object-fit: contain; filter: drop-shadow(0 15px 18px rgba(0,0,0,.45)); }
.hero-home { min-height: 19rem; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 85% 20%, rgba(181,29,34,.2), transparent 28%), linear-gradient(135deg, #071a31, #081426 65%); }
.hero-home h1 { max-width: 18ch; font-size: clamp(2rem, 7vw, 4.4rem); line-height: .98; letter-spacing: -.045em; }
.hero-home p:not(.eyebrow) { max-width: 45rem; font-size: 1.08rem; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.home-masthead { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(14rem, .82fr); gap: 1.5rem; align-items: center; min-height: 25rem; overflow: hidden; margin-bottom: 1rem; padding: clamp(1.3rem, 4vw, 3rem); border: 1px solid #315b84; border-radius: 1.2rem; background: radial-gradient(circle at 82% 45%, rgba(20,119,230,.32), transparent 30%), linear-gradient(125deg, #020912 5%, #0b2441 58%, #040913); }
.home-masthead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 28px, rgba(255,255,255,.025) 29px 30px); mask-image: linear-gradient(to right, transparent, #000); }
.home-masthead-copy { position: relative; z-index: 1; }
.home-masthead h1 { max-width: 13ch; margin: .4rem 0 1rem; font-size: clamp(2.35rem, 6vw, 4.9rem); line-height: .94; letter-spacing: -.052em; text-transform: uppercase; }
.home-masthead-copy > p:not(.eyebrow) { max-width: 39rem; color: #c6d0df; font-size: 1.08rem; }
.home-brand-stage { position: relative; display: grid; place-items: center; min-height: 18rem; }
.brand-glow { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: rgba(16,102,220,.22); filter: blur(30px); }
.home-brand-logo { position: relative; z-index: 2; width: min(100%, 22rem); height: auto; object-fit: contain; filter: drop-shadow(0 20px 20px rgba(0,0,0,.5)); }
.tool-orbit { position: absolute; z-index: 3; width: min(92%, 24rem); aspect-ratio: 1; border: 1px solid rgba(68,162,255,.28); border-radius: 50%; pointer-events: none; }
.tool { position: absolute; display: block; width: 3.5rem; filter: drop-shadow(0 5px 5px rgba(0,0,0,.82)) drop-shadow(0 0 7px rgba(80,164,255,.38)); }
.tool img { display: block; width: 100%; height: auto; object-fit: contain; }
.tool-wrench { top: -7%; left: calc(50% - 1.75rem); }
.tool-ratchet { right: -7%; bottom: 21%; }
.tool-driver { left: -7%; bottom: 21%; }
.mechanic-feature { display: grid; grid-template-columns: minmax(17rem, .82fr) minmax(0, 1.18fr); overflow: hidden; margin-bottom: clamp(2rem, 6vw, 4.5rem); border: 1px solid #315b84; border-radius: 1.2rem; background: linear-gradient(135deg, #071426, #0d2848); }
.mechanic-photo-wrap { position: relative; min-height: 27rem; overflow: hidden; }
.mechanic-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,11,18,.72), transparent 44%); }
.mechanic-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transform: scale(1.015); }
.mechanic-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(1.4rem, 5vw, 3.5rem); }
.mechanic-copy h2 { margin: .2rem 0 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.mechanic-copy > p:not(.eyebrow):not(.mechanic-name) { max-width: 38rem; color: var(--muted); line-height: 1.7; }
.mechanic-name { margin: .7rem 0 0; color: #fff; font-size: 1.15rem; font-weight: 850; }
.section-heading { margin: 0 0 1rem; }
.section-heading h2 { margin: .2rem 0 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.action-cards { margin-bottom: clamp(2rem, 5vw, 4rem); }
.action-card { position: relative; overflow: hidden; min-height: 15rem; display: flex; flex-direction: column; align-items: flex-start; }
.action-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.07), transparent 65%); transform: translateX(-120%); }
.action-card button { margin-top: auto; }
.action-number { color: var(--accent); font-weight: 950; letter-spacing: .12em; }
.navigation-help { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #315b84; border-left: .35rem solid var(--accent); border-radius: 1rem; background: linear-gradient(100deg, #071a31, #081426); }
.navigation-help h2 { margin: .2rem 0 .4rem; }
.navigation-help p { margin: .35rem 0; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: rgba(8,20,38,.94); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; box-shadow: 0 16px 35px rgba(0,0,0,.24); }
.card h2, .card h3 { margin-top: 0; }
.form-grid { display: grid; gap: .9rem; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-column { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.money { font-variant-numeric: tabular-nums; font-size: 1.2rem; font-weight: 850; color: var(--brand-gold); }
.status { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .55rem; text-transform: capitalize; color: var(--muted); }
.notice { padding: .8rem 1rem; border-radius: .7rem; background: #172033; border-left: .3rem solid var(--accent); margin-bottom: 1rem; }
.notice.error { border-color: var(--danger); }
.notice.success { border-color: var(--success); }
.bottom-nav { position: fixed; inset: auto 0 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(7,11,18,.97); border-top: 1px solid var(--line); padding: .45rem max(.35rem, calc((100vw - 45rem) / 2)); }
.bottom-nav button { background: transparent; color: var(--muted); border-radius: .5rem; padding: .55rem .25rem; font-size: .78rem; }
.bottom-nav button.active { color: #fff; background: #173d68; box-shadow: inset 0 -3px var(--accent); }
.login { width: min(30rem, calc(100% - 2rem)); margin: 8vh auto; }
.login .brand { justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.signin-brand { display: flex; justify-content: center; margin: 0 auto 1rem; }
.signin-logo { display: block; width: min(21rem, 86vw); height: auto; max-height: 16rem; object-fit: contain; }
.auth-card { display: grid; gap: 1rem; }
.auth-card h1, .auth-card > p { margin: 0; }
.auth-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; align-items: stretch; }
.auth-options > :last-child { grid-column: 1 / -1; }
.auth-link { appearance: none; width: auto; min-height: 44px; padding: .45rem .2rem; border: 0; background: transparent; color: #8ec5ff; text-decoration: underline; text-underline-offset: .18em; box-shadow: none; }
.auth-link:hover, .auth-link:focus-visible { color: #fff; background: rgba(34,86,139,.35); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .7rem; }
.summary > div { background: #0d1422; border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; }
.summary strong { display: block; font-size: 1.35rem; color: var(--brand-gold); }
.estimate-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin: 0 0 1rem; }
.estimate-step { position: relative; display: grid; justify-items: center; gap: .35rem; min-width: 0; color: var(--muted); text-align: center; font-size: .78rem; }
.estimate-step::before { content: ""; position: absolute; top: 1rem; left: calc(-50% + 1rem); right: calc(50% + 1rem); height: .22rem; background: #243247; }
.estimate-step:first-child::before { display: none; }
.estimate-step > span { position: relative; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid #40506b; border-radius: 50%; background: var(--panel); font-weight: 900; }
.estimate-step.complete::before, .estimate-step.complete > span { border-color: var(--brand-blue); background-color: var(--brand-blue-dark); color: #fff; }
.estimate-step.complete::before { background: var(--brand-blue); }
.estimate-step.current > span { outline: 3px solid rgba(52,211,153,.28); border-color: var(--success); }
.estimate-instructions p { max-width: 68rem; line-height: 1.6; }
.quote-notice { border-left-color: var(--brand-gold); }
.quote-required { color: var(--brand-gold); }
.estimate-total-note { margin-bottom: 0; line-height: 1.55; }
.estimate-line { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.estimate-line > :not(.money):not(button) { grid-column: 1; }
.estimate-line > .money, .estimate-line > button { grid-column: 2; }
.service-selection-help { margin: 0; padding: .75rem; border-left: .25rem solid var(--brand-blue); background: #0d1422; border-radius: .45rem; color: var(--muted); }
.repair-tracker { overflow: hidden; }
.repair-tracker-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.repair-tracker-heading h2 { margin: .15rem 0 .35rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.repair-tracker-heading p { margin: .25rem 0; color: var(--muted); }
.repair-tracker progress { width: 100%; height: 1rem; margin: 1.1rem 0; accent-color: var(--success); }
.repair-stages { display: grid; grid-template-columns: repeat(9, minmax(6.5rem, 1fr)); gap: .45rem; margin: 0; padding: .4rem 0 .7rem; overflow-x: auto; list-style: none; }
.repair-stages li { display: grid; justify-items: center; gap: .35rem; min-width: 0; color: #718096; text-align: center; font-size: .72rem; }
.repair-stages li > span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid #40506b; border-radius: 50%; background: #0d1422; font-weight: 900; }
.repair-stages li.complete { color: var(--muted); }
.repair-stages li.complete > span { border-color: var(--brand-blue); background: var(--brand-blue-dark); color: #fff; }
.repair-stages li.current { color: #fff; }
.repair-stages li.current > span { border-color: var(--success); outline: 3px solid rgba(52,211,153,.25); color: var(--success); }
.repair-history { display: grid; gap: .7rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.repair-history h3 { margin: 0; }
.repair-history > div { display: grid; grid-template-columns: minmax(10rem, auto) 1fr; gap: .2rem 1rem; padding: .7rem; border-radius: .6rem; background: #0d1422; }
.repair-history time { color: var(--muted); font-size: .85rem; }
.repair-history p { grid-column: 1 / -1; margin: .25rem 0 0; }
.list { display: grid; gap: .7rem; }
.list-item { display: grid; gap: .35rem; padding: .9rem; border-radius: .75rem; background: #0d1422; border: 1px solid var(--line); }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: .35rem; padding: 2rem 1rem; border: 1px dashed #40506b; border-radius: .9rem; background: rgba(13,20,34,.72); text-align: center; }
.empty-state-mark { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid #5c6b84; border-radius: 50%; color: var(--accent); font-size: 1.3rem; }
.empty-state p { max-width: 32rem; margin: 0; color: var(--muted); }
.loading-state { display: grid; justify-items: center; gap: .8rem; min-height: 20rem; align-content: center; color: var(--muted); }
.loading-mark { width: 2.4rem; height: 2.4rem; border: .22rem solid #26344b; border-top-color: var(--accent); border-radius: 50%; }
.interactive-card { position: relative; }
.checkbox { display: flex; align-items: center; gap: .6rem; }
.checkbox input { width: 1.15rem; height: 1.15rem; }
.desktop-nav { display: none; gap: .4rem; }
.desktop-nav button { background: transparent; color: var(--muted); }
.desktop-nav button.active { color: #fff; background: #173d68; box-shadow: inset 0 -3px var(--accent); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .8rem; }
.hub-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: .25rem .8rem; text-align: left; background: linear-gradient(145deg, #172033, #0d1422); color: var(--text); border: 1px solid var(--line); padding: 1.1rem; }
.hub-card:hover, .hub-card:focus-visible { border-color: var(--accent); }
.hub-card strong { font-size: 1.08rem; }
.hub-card > span:last-child { grid-column: 2; color: var(--muted); font-weight: 500; }
.route-number { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; border-radius: .55rem; background: #163c66; color: #fff; border-bottom: 2px solid var(--accent); font-weight: 900; }
.faq-list, .timeline { display: grid; gap: .8rem; }
details summary { cursor: pointer; font-weight: 800; }
details[open] summary { color: var(--accent); margin-bottom: .7rem; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: end; }
.guide-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.time-meter { height: .6rem; background: #070b12; border-radius: 999px; overflow: hidden; }
.time-meter span { display: block; width: var(--progress); height: 100%; background: linear-gradient(90deg, var(--brand-blue), var(--accent)); }
.button-link { display: inline-flex; min-height: 44px; align-items: center; padding: .65rem .8rem; border: 1px solid var(--accent-dark); border-radius: .65rem; text-decoration: none; font-weight: 750; }
.actions.vertical { align-items: stretch; flex-direction: column; }
.vendor-card { align-content: start; }
.vendor-card button { margin-top: auto; }
.vendor-detail-grid address { color: var(--text); font-style: normal; line-height: 1.7; margin-bottom: .8rem; }
.detail-list { display: grid; gap: .75rem; margin: 0; }
.detail-list div { display: grid; gap: .2rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.detail-list dd { margin: 0; font-weight: 700; }
.stars { color: #fbbf24; font-size: 1.15rem; font-weight: 900; }
.star-field { border: 0; padding: 0; margin: 0; }
.star-field legend { margin-bottom: .35rem; font-weight: 750; }
.star-options { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.star-options input { position: absolute; opacity: 0; pointer-events: none; }
.star-options label { cursor: pointer; color: #667085; font-size: 2rem; line-height: 1; padding: .15rem; }
.star-options label:hover, .star-options label:hover ~ label,
.star-options input:checked ~ label { color: #fbbf24; }
.star-options input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: .2rem; }
.rating-value { display: block; margin-top: .35rem; color: #fbbf24; font-size: .85rem; font-weight: 800; }
.review-card { display: flex; flex-direction: column; }
.review-card .muted { margin-top: .3rem; }
.privacy-banner { display: grid; gap: .3rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid #065f46; border-radius: 1rem; background: rgba(6,78,59,.32); }
.privacy-banner strong { color: var(--success); }
.chat-panel { display: grid; gap: 1rem; }
.messages { display: grid; gap: .7rem; max-height: 32rem; overflow: auto; padding: .2rem; }
.message { width: min(80%, 38rem); padding: .8rem; border-radius: .8rem; background: #0d1422; border: 1px solid var(--line); }
.message.mine { justify-self: end; background: #12375e; border-color: #2f6ca5; }
.message p { margin: .35rem 0; white-space: pre-wrap; }
.mechanic-audio audio { width: 100%; }
.mechanic-copy p { line-height: 1.7; }
.mechanic-copy p:first-child { margin-top: 0; }
.mechanic-copy p:last-child { margin-bottom: 0; font-weight: 700; }
.message time { color: var(--muted); font-size: .75rem; }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: end; }
.chat-compose textarea { min-height: 4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.legal-placeholder { margin-top: 1rem; padding: .9rem; border: 1px dashed #f59e0b; border-radius: .75rem; background: rgba(146,64,14,.16); }
.legal-placeholder strong { color: #fbbf24; }
.legal-placeholder p { margin-bottom: 0; }
.site-footer { padding: 1rem 1.5rem 5.5rem; border-top: 1px solid var(--border); }
.policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.25rem; font-size: .9rem; }
.policy-links a { color: #93c5fd; }
.login > .policy-links { margin: .25rem auto 2rem; }
.signature-pad { min-width: 0; padding: 1rem; border: 1px solid #3b587d; border-radius: .85rem; background: rgba(5,14,27,.55); }
.signature-pad legend { padding: 0 .4rem; font-weight: 800; }
.signature-pad canvas { display: block; width: 100%; height: 12rem; margin-top: .75rem; border: 2px solid #7d91ad; border-radius: .65rem; background: #f8fafc; cursor: crosshair; touch-action: none; }
.signature-pad canvas:focus { outline: 3px solid rgba(78,151,255,.55); outline-offset: 3px; }
.signature-pad .actions { margin-top: .5rem; }
.card-thumb { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: .75rem; border: 1px solid var(--line); }
.list-thumb { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: .55rem; }
.navigation-help audio { display: block; width: min(100%, 30rem); margin-top: .75rem; }
.admin-edit-list { display: grid; gap: .75rem; margin-top: 1rem; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1rem; }
.asset-card { margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); overflow-wrap: anywhere; }
.asset-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; background: #0b0f16; }
.asset-card figcaption { margin-top: .5rem; font-size: .85rem; }
.service-admin-form, .appointment-admin-form { align-items: end; }
.admin-edit { display: grid; grid-template-columns: repeat(4, minmax(8rem, 1fr)); gap: .65rem; align-items: end; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: #0d1422; }
.admin-edit .wide { grid-column: span 2; }
.admin-create { margin-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.compact-list { max-height: 24rem; overflow: auto; margin-bottom: 1rem; }
.owner-guide li { margin: .65rem 0; line-height: 1.55; }

@media (min-width: 1050px) {
  .shell { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; }
  .content { padding-top: 2rem; }
}

@media (max-width: 820px) {
  .home-masthead { grid-template-columns: 1fr; }
  .home-brand-stage { grid-row: 1; min-height: 17rem; }
  .home-brand-logo { width: min(82%, 19rem); }
  .tool-orbit { width: min(82%, 21rem); }
  .tool { width: 3.2rem; }
  .tool-wrench { left: calc(50% - 1.6rem); }
  .screen-hero.has-art { grid-template-columns: minmax(0, 1.2fr) minmax(8rem, .8fr); }
  .admin-edit { grid-template-columns: repeat(2, minmax(8rem, 1fr)); }
}

@media (max-width: 560px) {
  .two, .three { grid-template-columns: 1fr; }
  .topbar { gap: .5rem; padding: .65rem .7rem; }
  .topbar .brand { max-width: 28vw; font-size: .82rem; line-height: 1.1; }
  .topbar-actions { gap: .35rem; }
  .topbar .user-label { display: block; max-width: 34vw; font-size: .72rem; }
  .topbar #sign-out { padding: .55rem .65rem; }
  .bottom-nav button { min-width: 0; overflow-wrap: anywhere; line-height: 1.1; }
  .hero { padding: 1.1rem; }
  .search-row, .chat-compose { grid-template-columns: 1fr; }
  .message { width: 92%; }
  .home-masthead { grid-template-columns: 1fr; min-height: auto; padding: 1.1rem; }
  .home-brand-stage { grid-row: 1; min-height: 13rem; }
  .home-brand-logo { width: min(82%, 15rem); }
  .tool-orbit { width: min(76vw, 17rem); }
  .tool { width: 2.7rem; }
  .tool-wrench { left: calc(50% - 1.35rem); }
  .home-masthead h1 { font-size: clamp(2.15rem, 12vw, 3.4rem); }
  .mechanic-feature { grid-template-columns: 1fr; }
  .mechanic-photo-wrap { min-height: 23rem; }
  .navigation-help { align-items: flex-start; flex-direction: column; }
  .screen-hero, .screen-hero.has-art { grid-template-columns: 1fr; padding: 1rem; }
  .screen-hero-art { grid-row: 1; min-height: 10rem; }
  .screen-hero-art img { width: min(70vw, 13rem); max-height: 10rem; }
  .cards > .card { border-left: .22rem solid #294d7e; }
  .card { padding: 1rem; }
  .admin-edit { grid-template-columns: 1fr; }
  .admin-edit .wide { grid-column: auto; }
  .signature-pad canvas { height: 10rem; }
  .auth-options { grid-template-columns: 1fr; }
  .auth-options > :last-child { grid-column: auto; }
  .estimate-progress { overflow-x: auto; grid-template-columns: repeat(4, minmax(6.5rem, 1fr)); padding-bottom: .35rem; }
  .estimate-line { grid-template-columns: 1fr; }
  .estimate-line > :not(.money):not(button), .estimate-line > .money, .estimate-line > button { grid-column: 1; }
  .repair-tracker-heading { flex-direction: column; }
  .repair-history > div { grid-template-columns: 1fr; }
  .repair-history p { grid-column: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .18s ease, border-color .18s ease; }
  .card:hover { transform: translateY(-2px); border-color: #5c6b84; }
  .home-brand-logo { animation: mission-float 5.5s ease-in-out infinite; }
  .tool-orbit { animation: tool-orbit 18s linear infinite; }
  .tool { animation: tool-upright 18s linear infinite reverse, tool-pulse 2.8s ease-in-out infinite alternate; }
  .mechanic-photo { transition: transform .7s ease; }
  .mechanic-feature:hover .mechanic-photo { transform: scale(1.045); }
  .action-card:hover::after { animation: card-sweep .75s ease-out; }
  .screen-hero-art img { animation: hero-art-enter .45s ease-out both; }
  .interactive-card { transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
  .interactive-card:hover { transform: translateY(-3px); border-color: #56749f; background-color: #152138; }
  .loading-mark { animation: loading-spin .8s linear infinite; }
}

@keyframes mission-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes tool-orbit { to { transform: rotate(360deg); } }
@keyframes tool-upright { to { transform: rotate(360deg); } }
@keyframes tool-pulse { from { filter: drop-shadow(0 5px 5px rgba(0,0,0,.82)) drop-shadow(0 0 4px rgba(80,164,255,.24)); } to { filter: drop-shadow(0 5px 5px rgba(0,0,0,.82)) drop-shadow(0 0 11px rgba(80,164,255,.58)); } }
@keyframes card-sweep { to { transform: translateX(120%); } }
@keyframes hero-art-enter { from { opacity: 0; transform: scale(.92) translateY(5px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes loading-spin { to { transform: rotate(360deg); } }
