/* Shared, quiet surfaces and large controls for the car's browser. */
@font-face { font-family:Inter; src:url('/vendor/inter/InterVariable.woff2') format('woff2'); font-weight:100 900; font-style:normal; font-display:swap; }
:root { --ui-bg:#080b10; --ui-surface:#11161e; --ui-raised:#18202b; --ui-text:#f0f3f7; --ui-muted:#a6b1c1; --ui-line:#29323f; --ui-accent:#c4f1df; --ui-radius:18px; }
.ui-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:48px; padding:10px 18px; border:1px solid var(--ui-line); border-radius:12px; color:var(--ui-text); background:var(--ui-surface); font:inherit; cursor:pointer; text-decoration:none; }
.ui-button:hover { background:var(--ui-raised); border-color:#728094; }
.ui-button.primary { background:var(--ui-accent); border-color:var(--ui-accent); color:#10251c; font-weight:600; }
.ui-button:disabled { opacity:.55; cursor:default; }
.ui-button:focus-visible, .shell-nav a:focus-visible, .location-result:focus-visible { outline:3px solid #9de2ca; outline-offset:4px; }
.shell-header { display:flex; align-items:center; gap:32px; padding:16px 32px; border-bottom:1px solid var(--ui-line); background:var(--ui-bg); }
.shell-brand { color:var(--ui-text); font-weight:700; font-size:17px; letter-spacing:.2em; text-decoration:none; white-space:nowrap; }
.shell-nav { display:flex; align-items:center; gap:8px; flex:1; min-width:0; overflow:auto; }
.shell-nav a { text-decoration:none; color:var(--ui-muted); padding:12px 16px; border-radius:10px; white-space:nowrap; font-size:15px; }
.shell-nav a[aria-current="page"] { color:var(--ui-text); background:var(--ui-raised); }
.shell-nav .shell-settings { margin-left:auto; }
.app-shell { display:flex; flex-direction:column; height:100dvh; grid-template-columns:none; }
.app-shell .shell-header { flex:none; }
.app-shell #view { flex:1; min-height:0; height:auto; width:100%; }
.app-shell #nav { flex-direction:row; gap:8px; overflow:auto; }
.app-shell .nav-item { width:auto; display:flex; flex-direction:row; font-size:15px; letter-spacing:0; text-transform:none; min-height:48px; padding:12px 16px; }
.app-shell .nav-item.active::before { display:none; }
.app-shell .nav-item.active { color:var(--ui-text); background:var(--ui-raised); }
.app-shell .carview-frame { position:relative; left:auto; top:auto; right:auto; bottom:auto; width:100%; height:calc(100dvh - 82px); display:block; }
.app-shell .page { padding-top:30px; }
.cv-bar { min-height:76px; height:auto; gap:16px; flex-wrap:wrap; padding:12px 24px; }
.cv-bar .cv-nav { display:flex; flex-shrink:0; gap:4px; margin:0; }
.cv-bar .cv-nav a { min-height:44px; padding:10px 12px; border-radius:10px; }
.cv-bar .cv-nav a.on { background:#1d2632; border:0; }
.cv-bar .ap-search { min-width:180px; flex:1; }
.cv { display:flex; flex-direction:column; height:100dvh; }
.cv-bar { flex:none; }
.cv-zones,.ap-main { flex:1; min-height:0; }
.cv-zones { overflow:auto; }
.cv-foot { flex:none; min-height:30px; }
.drive-location { margin:16px 18px 0; flex:none; }
.drive-location:empty { display:none; }
.drive-location .location-picker { padding:14px 20px; }
.drive-location { max-height:42dvh; overflow:auto; }
.drive-welcome { padding:24px; margin:18px; border-radius:18px; background:var(--ui-surface); }
.drive-welcome h1 { margin:0 0 12px; font-size:28px; }
.drive-welcome p { color:var(--ui-muted); margin-bottom:20px; }
.drive-welcome .ui-button { margin-right:10px; }
.drive-welcome[hidden] { display:none; }
.cv-zones .w-title { letter-spacing:.05em; }
:root { --dim:#9ba6b6; }
body[data-theme] { --dim:#9ba6b6; }
.w-foot,.cv-foot { font-size:12px; letter-spacing:0; }
.location-picker { border:1px solid var(--ui-line); background:var(--ui-surface); color:var(--ui-text); border-radius:var(--ui-radius); padding:20px 24px; }
.location-summary { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.location-title { display:block; font-size:17px; font-weight:600; }
.location-detail { display:block; margin-top:6px; color:var(--ui-muted); font-size:14px; line-height:1.5; }
.location-actions { display:flex; flex-wrap:wrap; gap:10px; }
.location-message { color:var(--ui-muted); font-size:14px; margin:12px 0 0; }
.location-message:empty { display:none; }
.location-search { margin-top:20px; border-top:1px solid var(--ui-line); padding-top:20px; }
.location-search[hidden] { display:none; }
.location-form, .coordinate-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:16px; }
.location-picker label { display:flex; flex-direction:column; gap:8px; flex:1; font-size:14px; min-width:140px; }
.location-picker input { min-width:0; width:100%; border:1px solid var(--ui-line); border-radius:10px; min-height:48px; padding:10px 14px; background:var(--ui-bg); color:var(--ui-text); font:inherit; box-sizing:border-box; }
.location-results { display:grid; gap:8px; }
.location-result { padding:14px; text-align:left; min-height:48px; border:1px solid var(--ui-line); border-radius:10px; background:var(--ui-bg); color:var(--ui-text); font:inherit; cursor:pointer; }
.location-picker details { margin:16px 0; color:var(--ui-muted); }
.location-picker summary { cursor:pointer; padding:8px 0; }
.coordinate-form { padding-top:12px; }
.location-picker small { color:var(--ui-muted); }
@media(max-width:900px) { .shell-header{gap:18px;padding:12px 20px;flex-wrap:wrap;} .shell-nav{flex-basis:100%;} .shell-nav a{padding:10px 13px;} }
@media(max-width:900px) { .cv-bar .cv-nav{order:5;flex-basis:100%;overflow:auto;} .cv-bar .ap-search{order:6;flex-basis:100%;} .app-shell .carview-frame{height:calc(100dvh - 132px);} }
@media(max-width:900px) { .cv { height:auto; min-height:100dvh; } .drive-location{max-height:none;} }
@media(max-width:600px) { .shell-header{padding:16px;} .shell-nav .shell-settings{margin-left:0;} .location-summary{align-items:stretch;flex-direction:column;} .location-actions .ui-button{flex:1;} .location-picker{padding:18px;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
