/* One shared surface system for the retained local application. Photo crops remain in premium.css. */
html{scrollbar-width:thin;scrollbar-color:var(--line) var(--bg)}
body{background:var(--bg);color:var(--text);font:var(--font-base)/var(--line-body) var(--font-ui)}
main{max-width:none;width:100%;margin:0;padding:0;min-height:100dvh}
svg{stroke-width:var(--icon-stroke)}
button,input,select,summary{font-family:var(--font-ui)}
button,a,input,select,summary{touch-action:manipulation}
button,a,summary{transition:background-color .15s,border-color .15s,color .15s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--interactive);outline-offset:3px;box-shadow:var(--focus-ring)}
button:disabled,select:disabled,input:disabled{opacity:.45;cursor:not-allowed;filter:none;box-shadow:none}
button:active:not(:disabled),summary:active{filter:brightness(.93)}
a{color:var(--brand-cyan)}
.site-header{min-height:98px;padding:var(--space-4) var(--space-6);display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);background:#0b1013;border-bottom:1px solid var(--line-soft)}
.original-brand{display:flex;align-items:center;flex-shrink:0;margin:0;padding:0;overflow:visible;line-height:0;min-width:0}
.original-brand img{display:block;width:240px;max-width:100%;height:auto;aspect-ratio:449/118;object-fit:contain;filter:none;mix-blend-mode:normal;border:0;background:transparent}
.menu-toggle{display:none}
.language-control{display:flex;align-items:center;direction:ltr;gap:var(--space-2);padding:var(--space-1) var(--space-2);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-inset);min-height:44px;flex-shrink:0;box-shadow:none}
.language-globe{width:21px;height:21px;color:var(--muted)}
.language-buttons{display:flex;gap:var(--space-1)}
.language-buttons button{border:0!important;border-radius:var(--radius-sm);background:transparent;min-height:34px;min-width:43px;padding:5px 11px;font-size:var(--font-small);color:var(--muted);line-height:1.4}
.language-buttons button:hover{background:var(--hover-bg);color:var(--text)}
.language-buttons button.is-active{color:var(--brand-cyan);background:var(--active-bg);font-weight:var(--weight-bold)}
.language-buttons button.is-active:after{display:none}
.native-language{display:none!important}
.app-shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);gap:0;align-items:start;min-height:calc(100dvh - 98px)}
.sidebar{position:sticky;top:var(--space-4);width:auto;max-width:none;height:auto;min-height:0;max-height:calc(100dvh - 32px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;border:0;border-radius:0;padding:var(--space-6) var(--space-3);background:transparent;box-shadow:none;backdrop-filter:none}
.sidebar-label{display:block;margin:0 var(--space-3) var(--space-3);color:var(--subtle);font-size:11px;letter-spacing:.8px;font-weight:var(--weight-medium)}
#primaryNav,#mobileNav{display:flex;flex-direction:column;gap:var(--space-1);overflow:visible;padding:0}
.nav-button{display:flex;align-items:center;gap:var(--space-3);position:relative;width:100%;min-width:0;max-width:none;height:58px;min-height:58px;padding:var(--space-2) var(--space-3);flex:initial;border:0;border-radius:var(--radius-sm);color:var(--muted);background:transparent;box-shadow:none;text-align:start}
.nav-button svg{width:var(--icon-size);height:var(--icon-size);flex:0 0 var(--icon-size);color:var(--subtle);stroke-width:var(--icon-stroke)}
.nav-button>span{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-width:0}
.nav-button strong{font-size:14px;line-height:1.45;font-weight:var(--weight-medium);overflow-wrap:anywhere;color:inherit}
.nav-button small{display:inline-block;width:fit-content;font-size:9px;line-height:1.4;padding:1px 6px;border-radius:4px;border:1px solid var(--line);background:var(--panel2);color:var(--muted)}
.nav-button:hover{background:var(--panel2);color:var(--text)}
.nav-button[aria-current=page]{background:var(--active-bg);border:0;box-shadow:none;color:var(--text)}
.nav-button[aria-current=page]:before{content:'';position:absolute;inset-inline-start:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--brand-cyan)}
.nav-button[aria-current=page] svg{color:var(--brand-cyan)}
.nav-button[aria-current=page] strong{color:var(--text)}
.app-content{min-width:0;border-inline-start:1px solid var(--line-soft)}
.premium-topbar{display:block;height:auto;min-height:0;padding:var(--space-6) var(--space-6) 0;border:0;background:transparent}
.premium-topbar .context-bar{display:flex;align-items:center;width:100%;height:auto;min-height:72px;max-width:none;gap:var(--space-3);margin:0;padding:var(--space-3) var(--space-4);background:var(--panel);border:1px solid var(--line-soft);border-radius:var(--radius-md);box-shadow:none}
.context-emblem{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:0;background:var(--surface-inset);border-radius:var(--radius-sm);color:var(--subtle)}
.context-emblem svg{width:28px;height:28px;stroke-width:var(--icon-stroke)}
.context-bar>div:nth-child(2){min-width:0;flex:1}
.context-bar .small-label{display:none}
.context-bar b{font-size:16px;font-weight:var(--weight-bold);line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.context-bar small{display:block;font-size:11px;line-height:1.7;max-width:none;white-space:normal;overflow-wrap:anywhere;color:var(--muted)}
.context-bar .text-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);max-width:none;min-height:40px;padding:var(--space-2) var(--space-3);flex-shrink:0;white-space:nowrap;font-size:var(--font-small);background:var(--surface-inset);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--brand-cyan)}
.context-bar .text-button svg{width:18px;height:18px;flex-shrink:0}
.context-bar .text-button:hover{background:var(--hover-bg);border-color:var(--brand-cyan)}
.premium-page-heading,.premium-page-heading:not([data-active-panel=guide]):not([data-active-panel=service]){height:auto;min-height:116px;padding:var(--space-6);display:flex;align-items:center;background:transparent;overflow:visible;isolation:auto;scroll-margin-top:var(--space-4)}
.premium-page-heading:before,.premium-page-heading[data-active-panel=guide]:before,.premium-page-heading[data-active-panel=service]:before,.artwork-label{display:none!important}
.premium-heading-text{max-width:100%;margin:0;min-width:0}
.premium-title-row{display:flex;align-items:center;gap:var(--space-3)}
.premium-title-row h1{font-size:clamp(26px,2.2vw,34px);line-height:1.5;letter-spacing:0;margin:0;font-weight:var(--weight-bold);overflow-wrap:anywhere}
.premium-title-row svg{display:block;width:32px;height:32px;color:var(--brand-cyan);stroke-width:var(--icon-stroke)}
.premium-heading-text>p,html[dir=ltr] .premium-heading-text>p{font-size:14px;line-height:1.7;color:var(--muted);margin:var(--space-1) 0 0;max-width:none}
.app-content>[data-panel]{padding:0 var(--space-6) var(--space-6);scroll-margin-top:var(--space-4)}
.panel-heading{display:none}
.card{padding:var(--space-6);border:1px solid var(--line-soft);border-radius:var(--radius-lg);background:var(--panel);box-shadow:none;min-width:0}
h2{font-size:21px;line-height:1.5;font-weight:var(--weight-bold)}
h3{line-height:1.6;font-weight:var(--weight-medium)}
.section-heading{margin-bottom:var(--space-4);gap:var(--space-3);align-items:center}
.section-heading>div{gap:var(--space-2);min-width:0}
.step{font-size:11px;min-width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:var(--radius-sm);background:var(--surface-inset);color:var(--brand-cyan)}
.hint{font-size:var(--font-small);line-height:var(--line-body);color:var(--muted);margin:var(--space-2) 0 var(--space-4)}
.text-button{background:transparent;color:var(--brand-cyan);border:1px solid transparent;border-radius:var(--radius-sm);min-height:40px;padding:6px var(--space-3);font-size:var(--font-small)}
.text-button:hover{background:var(--hover-bg)}
.vehicle-card .vehicle-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4)}
.vehicle-fields .field,.vehicle-fields label{min-width:0}
.vehicle-fields label>span,.ecu-controls label>span{display:block;margin-bottom:var(--space-2);font-size:var(--font-small);color:var(--text);font-weight:var(--weight-medium)}
input,select{display:block;width:100%;min-height:var(--control-height);padding:10px var(--space-3);background:var(--surface-inset);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--text);font-size:15px;box-shadow:none}
input::placeholder{color:var(--subtle);opacity:1}
input:focus,select:focus{border-color:var(--brand-cyan);box-shadow:none}
.vehicle-short-note{margin-top:var(--space-4);margin-bottom:var(--space-3);font-size:var(--font-caption);color:var(--subtle)}
.vehicle-notes{margin:0 0 var(--space-4);padding:var(--space-3) 0 0;border-top:1px solid var(--line-soft)}
.vehicle-notes>summary{cursor:pointer;width:fit-content;padding:5px 0;font-size:var(--font-small);color:var(--brand-cyan);border-radius:4px}
.vehicle-notes>div{padding-top:var(--space-2);max-width:950px}
.vehicle-notes .hint{margin:var(--space-2) 0;font-size:var(--font-caption)}
.vehicle-summary{margin-top:var(--space-4);padding:var(--space-3) var(--space-4);background:var(--surface-inset);border:0;border-radius:var(--radius-md)}
.small-label{font-size:var(--font-caption);color:var(--subtle)}
.vehicle-summary b{font-size:14px;line-height:1.8;font-weight:var(--weight-medium);unicode-bidi:plaintext}
.vehicle-actions{margin-top:var(--space-5);gap:var(--space-3)}
.primary,.open-section,.support-link,.ecu-open{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:44px;padding:10px var(--space-4);font-size:var(--font-small);line-height:1.5;border:1px solid var(--brand-cyan);border-radius:var(--radius-sm);background:var(--brand-cyan);color:#07181d;font-weight:var(--weight-bold);box-shadow:none;text-decoration:none;cursor:pointer}
.primary:hover,.open-section:hover,.support-link:hover,.ecu-open:hover{background:#92f1fc;border-color:#92f1fc;filter:none}
.primary svg,.open-section svg{width:19px;height:19px;stroke-width:var(--icon-stroke);flex-shrink:0}
.secondary,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:44px;padding:10px var(--space-4);font-size:var(--font-small);line-height:1.5;background:var(--panel2);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--text);font-weight:var(--weight-medium);box-shadow:none}
.secondary:hover,.icon-button:hover{background:var(--hover-bg);border-color:var(--subtle)}
.notice,.app-content #panel-guide>.notice{background:var(--panel2);border:1px solid var(--line-soft);border-radius:var(--radius-md);color:var(--muted);font-size:var(--font-small);line-height:var(--line-body);padding:var(--space-3) var(--space-4);margin:0 0 var(--space-4)}
.notice.warning{background:var(--warning-bg);border-color:var(--warning-line);color:var(--warn);font-size:var(--font-small)}
.notice.error{background:var(--error-bg);border-color:var(--error-line);color:var(--danger)}
.notice p{margin:var(--space-1) 0 0;font-size:var(--font-caption)}
.reference-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4)}
.reference-card.premium-reference-card{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--panel);box-shadow:none;overflow:visible;min-width:0;display:flex;flex-direction:column}
.premium-art{aspect-ratio:400/184;border-radius:15px 15px 0 0;background-color:var(--surface-inset);width:100%;overflow:hidden;position:relative}
.premium-art>img{height:100%;width:100%;object-fit:cover;filter:none}
.premium-art:after{background:linear-gradient(transparent 65%,var(--panel) 100%)}
.premium-reference-card .reference-content{padding:0 var(--space-5) var(--space-5);margin-top:0;display:flex;flex:1;flex-direction:column}
.premium-card-heading{display:flex;align-items:center;gap:var(--space-2);min-height:0;margin:0 0 var(--space-2)}
.premium-card-heading svg{width:27px;height:27px;flex:0 0 27px;color:var(--brand-cyan);stroke-width:var(--icon-stroke)}
.premium-card-heading h3{font-size:22px;line-height:1.5;min-height:0;margin:0;color:var(--text);font-weight:var(--weight-bold);overflow-wrap:anywhere}
.premium-reference-card .reference-note{font-size:var(--font-small);line-height:1.8;color:var(--muted);min-height:46px;margin:0 0 var(--space-4);flex:1}
.premium-card-actions{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:var(--space-2);min-height:44px}
.premium-card-actions>.open-section{flex:1 1 auto;padding-inline:var(--space-3);min-height:42px;font-size:12px}
.external-refs{position:relative;flex:1 1 auto;max-width:100%}
.external-refs>summary{display:flex;align-items:center;justify-content:center;gap:var(--space-2);list-style:none;white-space:normal;min-height:42px;padding:9px var(--space-3);border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--panel2);color:var(--text);font-size:12px;line-height:1.5;cursor:pointer}
.external-refs>summary svg{width:17px;height:17px;flex-shrink:0;color:var(--subtle);stroke-width:var(--icon-stroke)}
.external-refs>summary:hover,.external-refs[open]>summary{background:var(--hover-bg);border-color:var(--brand-cyan)}
.external-refs>.premium-reference-links{position:absolute;inset-inline-end:0;bottom:50px;z-index:25;width:280px;max-width:calc(100vw - 64px);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--panel2);box-shadow:0 8px 25px #0006}
.premium-reference-links .reference-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.premium-reference-links .reference-actions a,.ecu-link{display:flex;align-items:center;justify-content:center;min-height:42px;padding:var(--space-2) var(--space-3);background:var(--surface-inset);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--brand-cyan);font-size:var(--font-caption);text-decoration:none;line-height:1.5}
.premium-reference-links .reference-actions a[data-provider=youtube]{border-color:var(--line)}
.premium-reference-links .reference-actions a:hover,.ecu-link:hover{background:var(--hover-bg);border-color:var(--brand-cyan)}
.premium-reference-links .direct-site-actions{margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--line-soft)}
.premium-reference-links .reference-lock,.premium-reference-links .direct-site-note{font-size:11px;line-height:1.8;color:var(--muted)}
.diagnostic-panel .workspace{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);gap:var(--space-4);align-items:start}
.diagnostic-panel .result-card{min-height:490px}
.diagnostic-panel .empty{min-height:350px}
.categories{gap:var(--space-2);margin:var(--space-4) 0}
.category{background:var(--surface-inset);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:none;padding:var(--space-2) var(--space-1);gap:var(--space-1)}
.category>img{height:60px;max-width:100px;object-fit:contain;opacity:.9}
.category>strong{font-size:23px;color:var(--tone)}
.category>span{font-size:10px;color:var(--muted);line-height:1.5}
.category:hover{background:var(--panel2);border-color:var(--tone)}
.category[aria-pressed=true]{background:var(--panel2);border-color:var(--tone);box-shadow:inset 0 -2px var(--tone)}
.search-row{gap:var(--space-2)}
.search-row input{font-size:22px;letter-spacing:1.5px;font-weight:var(--weight-bold)}
.search-row .primary{padding-inline:var(--space-4);gap:var(--space-2)}
.search-card>.database{display:inline-flex;flex-direction:row;align-items:center;gap:var(--space-2);margin:0 0 var(--space-3);padding:5px var(--space-2);background:var(--surface-inset);border:0;border-radius:var(--radius-sm);white-space:normal}
.search-card>.database strong{font-size:14px;color:var(--brand-cyan)}
.search-card>.database span{font-size:11px;color:var(--muted)}
.category-results{border:1px solid var(--line-soft);border-radius:var(--radius-md);padding:var(--space-3);margin:var(--space-4) 0;background:var(--surface-inset)}
.category-results h3{color:var(--muted);font-size:var(--font-small)}
.category-results .hint{margin-bottom:0;font-size:var(--font-caption)}
.examples,.category-matches{gap:var(--space-2);color:var(--subtle)}
.examples button,.category-matches button{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel2);color:var(--text);min-height:36px;font-size:var(--font-caption);padding:5px var(--space-3)}
.examples button:hover,.category-matches button:hover{border-color:var(--brand-cyan);background:var(--hover-bg)}
.pill{border:1px solid var(--line);background:var(--surface-inset);color:var(--muted);padding:4px var(--space-2);font-size:10px;border-radius:6px}
.result-top{border-color:var(--line-soft);gap:var(--space-3);padding:var(--space-2) 0 var(--space-4);margin-bottom:var(--space-4);flex-wrap:wrap}
.result-code{font-size:32px;color:var(--tone,var(--brand-cyan));letter-spacing:1px}
.result-category{font-size:var(--font-small);color:var(--muted)}
.result-label{font-size:var(--font-caption);color:var(--subtle);margin:var(--space-4) 0 var(--space-2)}
.definition{font-size:22px;line-height:1.8;color:var(--text);overflow-wrap:anywhere;margin-bottom:var(--space-4)}
.recognition-note{font-size:var(--font-caption);color:var(--muted);line-height:1.8}
.term-link{color:var(--brand-cyan);border-color:var(--brand-cyan)}
.term-link:hover{color:var(--text)}
.extra,.scope{border-color:var(--line-soft);padding-top:var(--space-4);margin-top:var(--space-5)}
.extra h3{font-size:16px;color:var(--text)}
.extra p,.extra li,.scope{color:var(--muted);font-size:var(--font-small)}
.scope{font-size:var(--font-caption)}
.google-link{display:inline-flex;min-height:44px;background:var(--panel2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-4);color:var(--brand-cyan);font-size:var(--font-small)}
.google-link:hover{background:var(--hover-bg);border-color:var(--brand-cyan)}
.empty{padding:var(--space-5);min-height:300px}
.empty-code{color:var(--subtle);font-size:42px;border:1px solid var(--line-soft);border-radius:var(--radius-md);background:var(--surface-inset);box-shadow:none;padding:var(--space-3) var(--space-5);margin-bottom:var(--space-5)}
.empty h3{color:var(--text);font-size:20px}
.empty p{color:var(--muted);font-size:14px}
.original{border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--space-3) var(--space-4)}
.original summary{color:var(--brand-cyan);min-height:30px}
.original p{color:var(--text);overflow-wrap:anywhere}
.pending-card{min-height:330px;padding:var(--space-8);background:var(--panel)}
.pending-card>svg{color:var(--subtle);width:42px;height:42px;margin-bottom:var(--space-4)}
.pending-card h2{font-size:26px}
.pending-card p{font-size:15px;color:var(--muted);max-width:620px}
.pending-badge{background:var(--panel2);border:1px solid var(--line);color:var(--muted);font-size:11px;border-radius:6px;padding:4px var(--space-2)}
.about-card{max-width:1040px;margin-inline:auto}
.about-card h2{font-size:24px}
.about-card h3{color:var(--text);font-size:18px;margin:var(--space-6) 0 var(--space-2)}
.about-card p,.about-card li{color:var(--muted);font-size:14px;line-height:1.9}
.about-card .about-lead{font-size:16px;color:var(--text)}
.support-email{color:var(--brand-cyan)!important;overflow-wrap:anywhere}
.support-links{gap:var(--space-3)}
footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--space-2) var(--space-5);margin:0 var(--space-6);padding:var(--space-4) 0 var(--space-5);border-top:1px solid var(--line-soft);color:var(--subtle);font-size:var(--font-caption)}
footer p{flex:1;min-width:0;margin:0;font-size:var(--font-caption);line-height:1.8;color:var(--muted)}
footer>span{white-space:normal;font-size:11px;color:var(--subtle)}
footer .footer-name{display:none}
#loadStatus{margin:var(--space-4) var(--space-6);color:var(--text);background:var(--panel2)}
#cardDialog,#ecuDialog{width:min(940px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:var(--space-6);border:1px solid var(--line);border-radius:var(--radius-lg);color:var(--text);background:var(--panel);box-shadow:0 20px 60px #0008;scrollbar-width:thin;scrollbar-color:var(--line) var(--panel)}
#cardDialog::backdrop,#ecuDialog::backdrop,#mobileMenu::backdrop{background:#05080bc7;backdrop-filter:none}
.ecu-dialog-heading{gap:var(--space-3);border-bottom:1px solid var(--line-soft);padding-bottom:var(--space-4);margin-bottom:var(--space-4)}
.ecu-dialog-heading h2{font-size:23px;color:var(--text);overflow-wrap:anywhere;min-width:0}
.ecu-dialog-heading button{min-height:42px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:8px var(--space-3);font-size:var(--font-small);background:var(--panel2);color:var(--text);max-width:none;flex-shrink:0}
.ecu-dialog-heading button:hover{background:var(--hover-bg);border-color:var(--brand-cyan)}
.section-topic{color:var(--muted);font-size:15px}
.vehicle-facts{gap:var(--space-3);margin:var(--space-4) 0 var(--space-5)}
.vehicle-facts>div{padding:var(--space-3) var(--space-4);background:var(--surface-inset);border:1px solid var(--line-soft);border-radius:var(--radius-sm)}
.vehicle-facts dt{color:var(--subtle);font-size:var(--font-caption)}
.vehicle-facts dd{color:var(--text);font-size:14px;overflow-wrap:anywhere;unicode-bidi:plaintext}
#cardDetails h3{font-size:17px;color:var(--text)}
.ecu-row{padding:var(--space-3) 0;border-color:var(--line-soft);gap:var(--space-3)}
.ecu-row strong{color:var(--text);font-size:14px}
.ecu-row small{color:var(--muted);font-size:var(--font-caption)}
.ecu-address{color:var(--warn)!important}
#ecuCount{color:var(--muted)}
#mobileMenu{position:fixed;inset:0;width:min(340px,calc(100% - 24px));max-width:none;height:100dvh;max-height:100dvh;margin:0;margin-inline-start:0;padding:var(--space-5) var(--space-4);border:0;border-inline-end:1px solid var(--line);border-radius:0;background:var(--panel);color:var(--text);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) var(--panel)}
html[dir=rtl] #mobileMenu{margin-right:0;margin-left:auto}
html[dir=ltr] #mobileMenu{margin-left:0;margin-right:auto}
.mobile-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding-bottom:var(--space-5);margin-bottom:var(--space-4);border-bottom:1px solid var(--line-soft)}
.mobile-menu-heading img{display:block;width:185px;max-width:calc(100% - 56px);height:auto;aspect-ratio:449/118;object-fit:contain;filter:none}
.icon-button{padding:8px;flex:0 0 44px;width:44px;height:44px}
.icon-button svg{width:22px;height:22px}
#mobileNav .nav-button{height:60px;min-height:60px;padding-inline:var(--space-3)}
#mobileNav .nav-button strong{font-size:14px}
@media(min-width:1700px){:root{--sidebar-width:260px}.reference-grid{gap:var(--space-5)}.premium-card-heading h3{font-size:25px}}
@media(max-width:1280px){.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.diagnostic-panel .workspace{grid-template-columns:1fr}.diagnostic-panel .result-card{min-height:360px}.diagnostic-panel .empty{min-height:250px}.vehicle-card .vehicle-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-button strong{font-size:13px}.premium-card-heading h3{font-size:22px}}
@media(max-width:900px){.site-header{padding:var(--space-4) var(--space-5);gap:var(--space-4);min-height:86px}.original-brand img{width:215px}.menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:9px;border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--brand-cyan);background:var(--panel)}.menu-toggle:hover{background:var(--hover-bg)}.menu-toggle svg{width:24px;height:24px}.language-control{margin-inline-start:auto}.app-shell{display:block;min-height:calc(100dvh - 86px)}.sidebar{display:none}.app-content{border:0}.premium-topbar{padding:var(--space-5) var(--space-5) 0}.premium-page-heading{min-height:110px;padding:var(--space-5);scroll-margin-top:var(--space-4)}.app-content>[data-panel]{padding:0 var(--space-5) var(--space-5);scroll-margin-top:var(--space-4)}.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}.premium-title-row h1{font-size:29px}.premium-title-row svg{width:30px;height:30px}.input-column{display:block}.card{padding:var(--space-5)}#resultHeading{scroll-margin-top:var(--space-4)}.premium-card-heading h3{font-size:23px}.context-bar b{font-size:15px}.context-bar small{font-size:11px}}
@media(max-width:600px){.site-header{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:var(--space-3);padding:var(--space-4)}.original-brand{grid-column:1;grid-row:1}.original-brand img{width:200px;max-width:100%}.menu-toggle{grid-column:2;grid-row:1}.language-control{grid-column:1/-1;grid-row:2;justify-self:end;margin:0;min-height:38px;padding:2px var(--space-2)}.language-buttons button{min-height:32px;padding:4px 11px;font-size:12px;min-width:40px}.language-globe{width:19px;height:19px}.premium-topbar{padding:var(--space-4) var(--space-4) 0}.premium-topbar .context-bar{min-height:68px;gap:var(--space-2);padding:var(--space-3)}.context-emblem{display:none}.context-bar b{font-size:14px}.context-bar small{font-size:10px;line-height:1.8}.context-bar .text-button{min-height:40px;padding:7px var(--space-2);gap:6px;font-size:11px}.context-bar .text-button svg{width:16px;height:16px}.premium-page-heading,.premium-page-heading:not([data-active-panel=guide]):not([data-active-panel=service]){min-height:100px;padding:var(--space-4)}.premium-title-row h1{font-size:26px}.premium-title-row svg{width:28px;height:28px}.premium-title-row{gap:var(--space-2)}.premium-heading-text>p,html[dir=ltr] .premium-heading-text>p{font-size:13px;margin:var(--space-1) 0 0;line-height:1.8}.app-content>[data-panel]{padding:0 var(--space-4) var(--space-4)}.reference-grid{grid-template-columns:1fr;gap:var(--space-4)}.premium-card-heading h3{font-size:23px}.premium-reference-card .reference-content{padding:0 var(--space-4) var(--space-4)}.premium-reference-card .reference-note{min-height:0;font-size:13px;margin-bottom:var(--space-4)}.premium-card-actions{flex-wrap:nowrap;gap:var(--space-2)}.premium-card-actions>.open-section{font-size:12px;padding-inline:var(--space-3);min-height:44px}.external-refs>summary{min-height:44px;padding-inline:var(--space-3);font-size:12px}.external-refs>.premium-reference-links{max-width:calc(100vw - 64px)}.card{padding:var(--space-4);border-radius:var(--radius-md)}.vehicle-card .vehicle-fields{grid-template-columns:1fr;gap:var(--space-4)}.vehicle-fields label>span{font-size:13px}.section-heading{gap:var(--space-2)}h2{font-size:19px}.section-heading .text-button{font-size:12px;padding-inline:var(--space-2)}.vehicle-actions .primary,.vehicle-actions .secondary{flex:1 1 100%;font-size:13px}.vehicle-summary{padding:var(--space-3)}.vehicle-summary b{font-size:13px}.notice,.app-content #panel-guide>.notice,.notice.warning{font-size:12px;padding:var(--space-3);line-height:1.8}.categories{gap:6px}.category>img{height:50px}.category>span{font-size:10px;overflow-wrap:anywhere}.category>strong{font-size:22px}.search-row .primary{padding-inline:var(--space-3);gap:6px}.search-row input{font-size:21px}.search-row .primary svg{width:17px;height:17px}.definition{font-size:20px}.result-code{font-size:29px}.diagnostic-panel .empty{min-height:280px}.pill{white-space:normal;font-size:9px;line-height:1.5}.empty{padding:var(--space-4) 0}.empty h3{font-size:18px}.empty p{font-size:13px}.pending-card{min-height:320px;padding:var(--space-6) var(--space-4)}.pending-card h2{font-size:24px}.pending-card p{font-size:14px}.about-card h2{font-size:22px}.about-card .about-lead{font-size:15px}.about-card h3{font-size:17px}.about-card p,.about-card li{font-size:13px}.support-link{width:100%}footer{margin:0 var(--space-4);padding:var(--space-4) 0;gap:var(--space-2);align-items:flex-start;flex-direction:column}footer p{font-size:11px}footer>span{font-size:10px}#cardDialog,#ecuDialog{width:calc(100% - 24px);padding:var(--space-4);max-height:92dvh}.ecu-dialog-heading{align-items:flex-start;gap:var(--space-2)}.ecu-dialog-heading h2{font-size:20px}.ecu-dialog-heading button{font-size:11px;padding:var(--space-2);max-width:100px;white-space:normal}.vehicle-facts{grid-template-columns:1fr;gap:var(--space-2)}.vehicle-facts>div{padding:var(--space-3)}.ecu-controls{grid-template-columns:1fr}.ecu-row{flex-wrap:wrap}.ecu-link{width:100%}.section-topic{font-size:14px}.vehicle-facts dd{font-size:13px}}
@media(max-width:350px){.original-brand img{width:185px}.context-bar .text-button{font-size:10px;gap:4px;padding:6px}.context-bar b{font-size:13px}.premium-card-heading h3{font-size:21px}.premium-card-actions>.open-section,.external-refs>summary{padding-inline:8px;font-size:11px;gap:6px}.premium-card-actions>.open-section svg{width:17px}.external-refs>summary svg{width:16px}.premium-title-row h1{font-size:24px}.category>img{height:43px}.category>span{font-size:9px}.search-row .primary{padding-inline:10px}.search-row .primary svg{display:none}.search-row input{letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

.term-link,.google-link{color:var(--brand-blue);border-color:var(--brand-blue)}
#loadStatus.error{background:var(--error-bg);border-color:var(--error-line);color:var(--danger)}
