/* AutoMoto supplied design system · 18 October 2026. Original assets remain unchanged. */
:root{--background:#080a0c;--panel:#14171b;--line:#2a3038;--muted:#abb2bc;--brand:#e53945;--accent:#f5f6f7;background:var(--background);color:#f5f6f7;--text-scale:1}
body{background:var(--background)}.sidebar{width:228px;background:#0b0e11;border-color:var(--line);padding:32px 16px}.brand{padding:0 8px 28px}.brand-name{font-size:18px;letter-spacing:-.6px}.brand em,.header-wordmark em{font-style:normal;color:var(--brand)}.sidebar nav{display:flex;flex-direction:column;flex:1;gap:8px}.sidebar .nav{font-size:calc(15px * var(--text-scale));min-height:52px;border-radius:12px;position:relative;margin:0;padding:14px 16px}.sidebar .nav.active{background:#151c23;color:#ff4b56;font-weight:650}.sidebar .nav.active::before{content:'';width:3px;position:absolute;left:0;top:12px;bottom:12px;border-radius:4px;background:var(--brand)}.sidebar .nav-profile{margin-top:auto}.nav-avatar{width:28px;height:28px;border:1px solid #707783;border-radius:50%;object-fit:cover;object-position:center 0;background:#e4e7e9}.local-mode{font-size:12px;color:var(--muted);padding:24px 16px 0}.sidebar main{min-width:0}main{margin-left:228px;max-width:1800px;padding:24px 32px 32px}.app-header{border:0;padding:0 0 20px;min-height:44px}.breadcrumb{font-size:calc(24px * var(--text-scale));font-weight:700}.header-wordmark{display:none;font-size:17px;font-weight:800}.screen-title{font-size:calc(28px * var(--text-scale));letter-spacing:-.6px;margin:0 0 24px}.screen-back{margin:0 0 8px;min-height:48px}.card,.answer-explanation,.sign-category,.sign-card{border-radius:16px;background:var(--panel);border-color:var(--line)}.primary,.secondary,.text-button,.sign-action{min-height:48px;font-size:calc(14px * var(--text-scale))}.primary{border-radius:12px;background:#f5f6f7}.primary:hover{background:white;border-color:white}.secondary{border-radius:12px}.primary:active,.secondary:active,.design-row:active,.subject-card:active{transform:translateY(1px)}.home-design-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,1fr);gap:20px}.home-primary,.home-secondary{min-width:0;display:flex;flex-direction:column;gap:12px}.today-hero{position:relative;border:1px solid var(--line);border-radius:16px;overflow:hidden;min-height:310px;background:#22282e}.today-scene{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 63%}.today-copy{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;min-height:310px;padding:24px;background:linear-gradient(0deg,#080a0cee,transparent 62%)}.today-copy h1{font-size:calc(30px * var(--text-scale));margin:0 0 16px;line-height:1.2;letter-spacing:-.8px}.today-copy button{min-width:210px}.subject-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.subject-card{display:flex;align-items:center;min-width:0;min-height:112px;border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:0 14px 0 6px;color:inherit;text-align:left;overflow:hidden;gap:12px}.subject-card strong{font-size:calc(19px * var(--text-scale));font-weight:600}.subject-person{position:relative;height:112px;width:100px;min-width:72px;flex-shrink:0;overflow:hidden}.subject-person>img{width:100%;height:180px;object-fit:cover;object-position:center top;position:absolute;top:0}.subject-prop{position:absolute;bottom:4px;left:12px;width:76px;height:46px;display:grid;place-items:center;background:#20262d;border:1px solid #9ba1aa;border-radius:5px;transform:rotate(-5deg)}.subject-prop svg{width:50px;height:36px}.lessons .subject-prop{transform:none;height:42px;border-radius:4px;bottom:6px}.design-row{min-width:0;min-height:64px;display:flex;gap:16px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:#f5f6f7;text-align:left;width:100%;font-size:calc(16px * var(--text-scale));line-height:1.5}.design-row>svg{width:27px;height:27px}.design-row>span:not(.row-arrow){flex:1}.design-row small{color:var(--muted);font-size:12px}.row-arrow{font-size:24px;color:#b3bbc6;margin-left:auto}.design-row:hover,.subject-card:hover{border-color:#67717e;background:#1b2027}.design-menu{display:grid;gap:12px;max-width:900px}.knowledge-preview{padding:20px}.knowledge-preview h2,.next-study h2{font-size:calc(21px * var(--text-scale));margin:0 0 20px}.knowledge-row{display:grid;grid-template-columns:24px minmax(90px,1fr);gap:8px 12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:calc(14px * var(--text-scale))}.knowledge-row progress{grid-column:2;width:100%;height:5px;accent-color:#d4d8df}.knowledge-row small{grid-column:2;line-height:1.5;color:#b8c2cf}.knowledge-row small.needs-review{color:#e9c272}.knowledge-page{max-width:900px}.muted{color:var(--muted);font-size:calc(16px * var(--text-scale));line-height:1.7}.small-note{font-size:calc(13px * var(--text-scale));color:var(--muted);line-height:1.6}.next-study{padding:20px}.next-study .design-row{margin-top:16px}.hazard-entry>svg{color:#e99299}.profile-identity{display:flex;gap:24px;align-items:center}.canonical-avatar{width:92px;height:92px;border:1px solid #75808e;object-fit:cover;object-position:50% 0;flex-shrink:0;border-radius:50%;background:#dfe4e7}.profile-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}.profile-form label{display:grid;gap:8px;color:var(--muted);font-size:14px}.profile-form input,.setting-row select{background:#1b2027;color:white;border:1px solid #5a6470;border-radius:12px;padding:12px;min-height:48px;font:inherit;max-width:100%}.profile-form small{flex-basis:100%}.design-profile{margin-bottom:16px}.design-profile~.design-row{margin:12px 0}.setting-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 0;min-height:52px;font-size:calc(15px * var(--text-scale))}.setting-row input{width:24px;height:24px;accent-color:var(--brand)}.setting-row select{min-width:100px}.settings-dialog .languages{flex-direction:column}.languages button{min-height:48px;font-size:16px}.languages .selected{border-color:#e53945;background:#2b171d;color:#fff}.lesson-cover{width:100%;height:240px;object-fit:cover;object-position:center 63%;border-radius:12px;margin-bottom:20px}.lesson-flow{color:#ef9da5!important;font-weight:600;font-size:calc(15px * var(--text-scale))!important}.lesson-card p{font-size:calc(16px * var(--text-scale))}.simulator-car{display:block;margin:0 auto 24px;width:min(350px,90%);max-height:240px;object-fit:contain}.simulator-intro{max-width:900px}.downloads-page{max-width:800px}.downloads-page>svg{width:36px;height:36px;color:#c3cbd5;margin-bottom:16px}.exam-review details{padding:16px 0;border-top:1px solid var(--line);line-height:1.6}.exam-review summary{cursor:pointer}.question-number.answered,.choice.chosen{background:#29303a;border-color:#d9e0ea}.choice,.explanation-body #explanation{font-size:calc(16px * var(--text-scale))}.question-main h2{font-size:calc(25px * var(--text-scale))}.quiz-bottom{left:228px;background:#080a0cf5;backdrop-filter:none}.quiz-bottom .primary{font-size:calc(18px * var(--text-scale))}.quiz-active main{padding-bottom:130px}.quiz-active .app-header{padding-bottom:12px}.quiz-active .question-toolbar{margin-top:0}.quiz-active .summary{display:none}.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ai-chat{background:var(--panel)}.ai-chat-send{background:#e53945;color:white}.ai-chat-user .ai-chat-bubble{background:#252c35;border-color:#404a58;color:#f5f6f7}.ai-chat-user .ai-chat-speaker{color:#b5c1d1}footer{font-size:12px}
@media(prefers-reduced-motion:no-preference){.design-row,.subject-card,.nav{transition:background 220ms,border-color 220ms,color 220ms}}
@media(max-width:1100px){.home-design-grid{grid-template-columns:1fr}.home-secondary{display:grid;grid-template-columns:1fr 1fr;align-items:start}.home-secondary>.design-row{grid-column:1/-1}.sidebar{width:204px}main{margin-left:204px;padding:24px}.quiz-bottom{left:204px}}
@media(max-width:720px){.sidebar{position:fixed;inset:auto 0 0;width:100%;z-index:30;padding:0;border:0;border-top:1px solid var(--line);background:#080a0cf5}.sidebar>.brand,.sidebar>.local-mode{display:none}.sidebar nav{flex-direction:row;overflow:visible;gap:0;padding:6px 4px max(6px,env(safe-area-inset-bottom));width:100%}.sidebar .nav{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0;width:20%;flex:1;min-height:60px;margin:0!important;padding:6px 2px;font-size:11px;border-radius:0;background:transparent;white-space:normal;text-align:center}.sidebar .nav.active{background:transparent}.sidebar .nav.active::before{display:none}.sidebar .nav svg,.nav-avatar{width:23px;height:23px}.sidebar nav .nav svg{width:23px;height:23px}.sidebar .nav [data-icon]{height:23px}.quiz-active .sidebar{display:none}main{margin:0;padding:16px 16px 100px;max-width:100%}.app-header{padding-bottom:16px;min-height:40px}.header-wordmark{display:block;margin-left:auto}.breadcrumb{font-size:20px}.home-design-grid{display:flex;flex-direction:column;gap:16px}.home-primary{gap:10px}.home-secondary{display:flex;gap:12px}.today-hero,.today-copy{min-height:250px}.today-copy{padding:16px}.today-copy h1{font-size:calc(27px * var(--text-scale));margin-bottom:12px}.today-copy button{width:100%}.subject-pair{gap:10px}.subject-card{min-height:98px;padding:0 8px 0 0;gap:6px}.subject-person{width:68px;min-width:60px;height:98px}.subject-person>img{height:150px}.subject-prop{width:56px;left:5px;height:34px}.subject-prop svg{width:42px;height:28px}.subject-card strong{font-size:calc(16px * var(--text-scale))}.subject-card>.row-arrow{display:none}.design-row{font-size:calc(15px * var(--text-scale));gap:12px;padding:14px;min-height:58px}.subject-pair>.design-row{gap:8px;font-size:calc(14px * var(--text-scale));padding:12px}.subject-pair>.design-row>svg{width:22px;height:22px}.knowledge-preview{display:none}.profile-identity{align-items:flex-start;gap:16px}.canonical-avatar{width:64px;height:64px}.profile-form{min-width:0}.profile-form label{max-width:100%}.profile-form input{width:100%;min-width:0}.quiz-bottom{left:0}.screen-title{font-size:calc(26px * var(--text-scale))}.quiz-active main{padding-bottom:120px}.lesson-cover{height:200px}.breadcrumb:empty{display:none}footer{font-size:11px}.design-row small{font-size:11px;max-width:90px}.settings-dialog{max-height:85dvh;overflow:auto}.home-primary>.hazard-entry{margin-top:2px}}
@media(max-width:370px){main{padding-left:12px;padding-right:12px}.subject-card strong{font-size:calc(14px * var(--text-scale))}.subject-person{width:58px;min-width:52px}.today-hero,.today-copy{min-height:230px}.sidebar .nav{font-size:10px}.card{padding:16px}}
.ai-chat-mark{overflow:hidden;border-radius:50%;background:#e3e7eb}.ai-chat-mark img{width:100%;height:100%;object-fit:cover;object-position:center top}
.subject-card strong,.design-row>span,.knowledge-row>span{min-width:0;overflow-wrap:anywhere}
/* Reference layout correction: desktop board proportions, native interactive controls. */
.sidebar{width:180px;padding:20px 10px;background:#060e12}.brand{padding:0 6px 22px}.brand-name{font-size:17px}.sidebar .nav{min-height:48px;padding:12px 10px;gap:12px}.local-mode{padding:12px 6px;font-size:10px}main{margin-left:180px;padding:12px 18px 28px}.app-header{padding-bottom:8px;min-height:36px}.breadcrumb{font-size:26px}.home-design-grid{grid-template-columns:minmax(0,1.46fr) minmax(330px,1fr);gap:16px}.home-primary,.home-secondary{gap:8px}.today-hero{height:auto;min-height:0;aspect-ratio:664/232;border-radius:12px}.reference-art{display:block;width:100%;height:100%;flex-shrink:0}.today-scene{position:absolute;inset:0}.today-copy{position:absolute;inset:auto auto 0 0;min-height:0;width:43%;padding:8px 16px;background:linear-gradient(90deg,#10191fee 80%,#10191f00);gap:6px}.today-copy h1{font-size:clamp(22px,2.3vw,32px);margin:0;white-space:nowrap;letter-spacing:-.7px}.today-copy button{width:100%;min-width:0;min-height:40px;border-radius:8px;font-size:14px;padding:6px 12px}.subject-pair{gap:10px}.subject-card{min-height:104px;max-height:104px;padding:0 18px 0 20px;gap:16px;border-radius:12px;background:linear-gradient(110deg,#0b151a,#101b21)}.subject-illustration{width:40%;height:102px;align-self:flex-end;object-fit:contain}.subject-card strong{font-size:23px;white-space:nowrap}.design-row{min-height:50px;padding:8px 16px;gap:18px;border-radius:10px;background:linear-gradient(110deg,#0a1318,#0d181e);font-size:15px}.design-row>svg:not(.reference-art){width:32px;height:32px}.design-row svg{stroke-width:1.7}.subject-pair>.design-row>svg{width:33px;height:33px}.subject-pair>.design-row:first-child>svg{color:#ff293b}.home-primary>.hazard-entry{display:none}.hazard-thumb{width:92px!important;height:48px!important;border-radius:6px}.knowledge-preview,.hazard-preview{padding:12px 14px;background:linear-gradient(120deg,#0a1318,#0c161c);border-radius:12px}.knowledge-preview h2,.hazard-preview h2{font-size:20px;margin:0 0 8px}.knowledge-row{grid-template-columns:30px minmax(70px,1.15fr) minmax(50px,1fr) minmax(65px,.9fr);gap:10px;padding:9px 0;font-size:13px}.knowledge-row>svg{width:30px;height:30px}.knowledge-row progress,.knowledge-row small{grid-column:auto}.knowledge-row small{border:1px solid #45525d;border-radius:8px;padding:5px 6px;text-align:center;font-size:11px}.knowledge-preview .muted{font-size:12px;line-height:1.5;margin:8px 0 0}.knowledge-preview .small-note{display:none}.hazard-preview-body{display:grid;grid-template-columns:1.7fr 1fr;gap:14px;align-items:center}.hazard-preview-body>.reference-art{aspect-ratio:263/139;height:auto;border-radius:10px}.hazard-preview-body p{font-size:13px;line-height:1.5;margin:0 0 12px}.hazard-preview-body button{width:100%;min-height:40px;font-size:13px;padding:6px 8px;border-radius:9px}.home-secondary>.design-row{margin-top:auto}.quiz-bottom{left:180px}.sidebar .nav[data-tab=home].active svg{fill:currentColor}.sidebar .nav-avatar{object-position:50% 10%;background:#dfe4e7}.home-primary>.design-row>svg{color:#d6e5ed}.home-primary>.design-row>svg path{stroke-width:1.5}
@media(max-width:1100px) and (min-width:721px){.home-design-grid{grid-template-columns:1fr}.home-secondary{display:grid;grid-template-columns:1fr 1fr}.home-secondary>.design-row{grid-column:1/-1}.today-hero{max-height:290px}.subject-card{justify-content:space-around}.subject-illustration{width:130px}}
@media(max-width:720px){main{margin:0;padding:8px 12px 88px}.sidebar{width:100%;padding:0}.sidebar .nav{min-height:54px;padding:5px 1px;gap:4px;font-size:10px}.sidebar nav{padding:4px 3px max(4px,env(safe-area-inset-bottom))}.app-header{position:relative;min-height:40px;justify-content:center;padding-bottom:8px}.header-wordmark{margin:0;font-size:19px}.breadcrumb{display:none}.home-design-grid{gap:8px}.home-primary{gap:6px}.today-hero{height:194px;aspect-ratio:auto}.today-scene{height:150px}.today-copy{width:100%;padding:6px 10px;gap:5px;background:linear-gradient(0deg,#080e12 72%,#080e12ee)}.today-copy h1{font-size:24px;white-space:normal}.today-copy button{min-height:40px;width:100%}.subject-pair{gap:6px}.subject-card{min-height:80px;max-height:none;padding:0 10px 0 6px;gap:8px}.subject-illustration{height:78px;width:48%}.subject-card strong{font-size:16px;white-space:normal;overflow-wrap:normal}.subject-card>.row-arrow{display:none}.design-row,.subject-pair>.design-row{min-height:48px;font-size:14px;padding:6px 12px;gap:12px}.design-row>svg:not(.reference-art),.subject-pair>.design-row>svg{width:30px;height:30px}.home-primary>.hazard-entry{display:flex;margin:0;padding:0 12px 0 0;gap:12px}.home-secondary{display:none}.quiz-bottom{left:0}.screen-title{font-size:24px}.subject-pair>.design-row .row-arrow{margin-left:auto}.home-primary>.hazard-entry .hazard-thumb{width:92px;height:48px}body[data-page=home] footer{margin-top:12px;font-size:10px;opacity:.7}.today-copy button{font-weight:700}body:not([data-page=home]) .header-wordmark{display:none}body:not([data-page=home]) .breadcrumb{display:block;font-size:20px}}
.today-copy{background:#10191f}.today-copy h1{font-weight:750}.hazard-preview-body{grid-template-columns:1.7fr 1fr}.knowledge-row progress{appearance:none;border:0;background:#26323b;border-radius:9px;overflow:hidden}.knowledge-row progress::-webkit-progress-bar{background:#26323b}.knowledge-row progress::-webkit-progress-value{background:#d4d8df;border-radius:9px}
@media(max-width:720px){.today-hero::after{content:'';position:absolute;top:90px;left:0;width:156px;height:60px;background:#080e12}.today-copy{z-index:1;background:#080e12}.today-copy h1{font-size:24px}.sidebar .nav.active{color:#ff2434}}
.today-copy{background:linear-gradient(90deg,#10191f 92%,transparent)}.primary{font-weight:700}.header-search{margin-left:auto;display:grid;place-items:center;width:44px;height:36px;border:1px solid var(--line);border-radius:10px;background:#0b151a;color:#f5f6f7}.header-search svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.7;fill:none}.header-search:focus-visible{outline:2px solid white;outline-offset:3px}@media(max-width:720px){.header-search{display:none}.today-copy{background:#080e12}}
/* Clean standalone scene: no baked UI, title and CTA remain live components. */
.today-scene{object-fit:cover;object-position:center}.today-copy{background:linear-gradient(0deg,#080e12b8,transparent);width:43%;padding-top:20px}.today-copy h1{text-shadow:0 2px 8px #000a}@media(max-width:720px){.today-scene{height:100%}.today-hero::after{display:none}.today-copy{width:100%;background:linear-gradient(0deg,#080e12ed,#080e1266 75%,transparent);padding-top:20px}}
