@font-face{font-family:Inter;src:url(fonts/inter-cyrillic.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Inter;src:url(fonts/inter-latin.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC}
:root{--accent:#5F94FF;--ink:#1A1A2E;--muted:#6B7280;--paper:#fff;--green:#16a34a;--yellow:#f59e0b;--red:#ef4444}
*{box-sizing:border-box}body{margin:0;background:#E8F0FE;color:var(--ink);font:15px/1.5 Inter,Arial,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:12px 22px;font-weight:600;background:var(--accent);color:white;transition:background .2s}button:hover{background:#4070E0}button:disabled{opacity:.55;cursor:wait}button.secondary{border:1.5px solid var(--accent);background:transparent;color:#3569c8}button.secondary:hover{background:#5f94ff14}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #315eb2;outline-offset:3px}button.icon{width:42px;height:42px;padding:8px;background:#ffffffdc;color:#3669c6;border:1px solid #ffffffb0}svg{width:22px;height:22px;vertical-align:middle}h1,h2,p{margin:0}h1{font-size:clamp(27px,3.3vw,43px);line-height:1.16;letter-spacing:-.045em}h2{font-size:20px;line-height:1.35;letter-spacing:-.02em}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:700;color:#527199}.muted{color:var(--muted)}.panel{background:#ffffffed;border-radius:16px;box-shadow:0 8px 24px #0000001a,0 2px 8px #5f94ff26;padding:28px}.stack{display:flex;flex-direction:column;gap:20px}.actions{display:flex;gap:12px;flex-wrap:wrap}.hidden,[hidden]{display:none!important}.topbar{position:absolute;z-index:5;top:20px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{background:#ffffffdd;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:600;max-width:260px}.tools{display:flex;gap:8px}.page{min-height:100svh;position:relative}.landscape{position:absolute;inset:0;background:#bcded6 url('assets/map-clear.webp') center/cover no-repeat;transition:opacity .4s}.landscape:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#e8f0fe4d,transparent 45%)}.intro{position:relative;z-index:2;min-height:100svh;display:flex;align-items:center;justify-content:flex-end;padding:105px 6vw 80px}.intro .panel{width:470px;padding:36px}.intro .categories{display:flex;gap:8px}.category-token{height:38px;width:38px;border-radius:50%;display:grid;place-items:center;background:#e8f0fe;font-weight:700;color:#527199;border:1px solid #c5d7f3}.footer{position:absolute;z-index:4;bottom:14px;left:24px;right:24px;display:flex;align-items:end;justify-content:space-between;gap:20px;font-size:10px}.footer img{height:48px;width:auto;max-width:180px;object-fit:contain}.footer a{color:#33435e;background:#ffffffb8;border-radius:5px;padding:3px 6px}.privacy{font-size:11px;color:#68768b;line-height:1.5}.drive-stage{height:100svh;min-height:650px;position:relative;overflow:hidden}.world{position:absolute;inset:0}.map-points{position:absolute;inset:0;pointer-events:none}.map-point{position:absolute;transform:translate(-50%,-50%);background:#fff;border:3px solid #fff;box-shadow:0 3px 8px #0003;color:#445b77;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:12px;font-weight:700}.map-point.done{background:var(--green);color:white}.map-point.incident{background:var(--yellow)}#three-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.stop-panel{position:relative;z-index:3;width:min(520px,45vw);margin-left:auto;top:110px;margin-right:5vw;max-height:calc(100svh - 205px);overflow:auto}.stop-options{display:flex;flex-direction:column;gap:10px}.stop-options button{text-align:left;padding:14px 16px;background:#eff4ff;color:#223c66;border:1px solid #cbdbf4}.stop-options button:hover{background:#dae7ff}.stop-options button.selected{border-color:#5F94FF;background:#d9e7ff}.body-copy{white-space:pre-line}.pill{border-radius:20px;padding:5px 11px;font-size:12px;display:inline-flex;align-items:center;gap:7px;background:#edf3ff;color:#4c6c99}.incident-sticker{position:absolute;left:29%;top:44%;z-index:3;display:flex;align-items:center;gap:10px;max-width:240px;padding:12px 16px;background:#fff8edee;border:1px solid #ead9bd;border-radius:12px;box-shadow:0 4px 12px #27342b20;transform:translateX(-50%)}.incident-symbol{font-size:30px;line-height:1}.incident-sticker small{display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#806241}.incident-sticker strong{display:block;font-size:14px;line-height:1.3;margin-top:3px}.route-caption{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);background:#fffE;padding:12px 22px;border-radius:30px;font-size:13px;z-index:3}.result-page{position:relative;z-index:3;min-height:100svh;padding:110px 24px 100px;display:flex;align-items:center;flex-direction:column;gap:24px}.result-page>.panel{width:min(780px,100%)}.result-copy{max-width:710px;white-space:pre-line}.document-wrap{width:min(860px,100%);overflow:auto;border-radius:18px}.document-card{background:#fffdf7;color:#192944;border:1px solid #d1ddec;border-radius:18px;width:850px;min-height:535px;padding:26px 30px;position:relative;box-shadow:inset 0 0 0 7px #e6eef9}.document-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #c9d7e9;padding-bottom:16px;gap:20px}.document-head h2{font-size:22px;text-transform:uppercase;letter-spacing:.03em}.document-head p{font-size:12px}.document-head img{width:110px;height:auto;object-fit:contain}.document-row{display:grid;grid-template-columns:42px 1fr 230px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e5eaf0}.document-letter{font-size:25px;font-weight:700}.document-label{font-size:14px;font-weight:600}.document-caption{font-size:13px;line-height:1.3;color:#5f6f85;margin-top:2px}.document-status{font-size:12px}.document-meta{display:flex;justify-content:space-between;align-items:center;margin-top:17px;font-size:12px;gap:12px;flex-wrap:wrap}.segments{display:inline-flex;gap:3px;margin-right:7px}.segments i{width:20px;height:8px;background:#e1e5eb;display:block}.segments i b{display:block;height:100%}.name-input{background:white;border:1px solid #c4d5ed;border-radius:8px;padding:10px;width:260px}.review-list{font-size:13px;display:flex;flex-direction:column;gap:12px}.exam-shell{padding:88px 24px 85px;height:100svh;min-height:670px;display:flex;justify-content:center}.cockpit{width:min(1000px,100%);display:flex;flex-direction:column;overflow:hidden;border-radius:24px;background:#fbfcff;box-shadow:0 15px 50px #47648925;border:1px solid #fff}.windshield{height:27vh;min-height:170px;flex-shrink:0;position:relative;overflow:hidden;background:#d4e9dd}.road-view{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .4s}.cabin-view{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.windshield:after{content:'';position:absolute;inset:0;border:10px solid #435069;border-bottom-width:15px;border-radius:20px 20px 0 0;pointer-events:none}.windshield.has-cabin:after{display:none}.checkpoint-label{position:absolute;left:25px;top:20px;z-index:2;background:#fffffff0;padding:6px 12px;border-radius:16px;font-size:11px;max-width:75%}.conversation{flex:1;min-height:90px;overflow:auto;padding:22px 32px;display:flex;flex-direction:column;gap:20px;scroll-behavior:smooth}.message{max-width:85%;animation:arrive .2s ease-out}.message .speaker{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#7790ae;margin-bottom:5px}.message .bubble{white-space:pre-line}.message.student{margin-left:auto;background:#edf3ff;padding:12px 16px;border-radius:14px}.message.status{font-size:13px;color:#6b7280}.composer{padding:14px 25px 18px;background:#f7faff;border-top:1px solid #e1e9f5}.composer form{display:flex;align-items:end;gap:10px}.composer textarea{resize:vertical;min-height:65px;max-height:150px;flex:1;width:0;border:1px solid #c8d9ee;background:white;border-radius:10px;padding:12px;color:var(--ink)}.dashboard{display:flex;align-items:center;justify-content:space-between;background:#e0e9f4;border-top:1px solid #c2d2e5;padding:12px 24px;gap:10px}.lamps{display:flex;gap:18px}.lamp-wrap{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600}.lamp{width:12px;height:12px;border-radius:50%;background:#a3b1c3;box-shadow:inset 0 2px 3px #0002;border:2px solid #fff9}.dashboard .mic{border-radius:50%;width:48px;height:48px;padding:10px;background:#536b8c;color:white}.error{font-size:13px;color:#94442e;margin-top:10px}.typing-skip{padding:3px 0;color:#5077b1;background:none;font-size:11px;font-weight:400}.typing-skip:hover{background:none;text-decoration:underline}@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.topbar{top:12px;left:14px;right:14px}.brand{font-size:10px;padding:8px;max-width:175px}.tools{gap:5px}button.icon{width:35px;height:35px;padding:5px}.intro{padding:105px 16px 110px;align-items:flex-end}.intro .panel{width:100%;padding:25px}.footer{left:15px;right:15px;bottom:10px;align-items:center}.footer img{height:48px;max-width:120px}.footer a{max-width:155px;font-size:8px}.drive-stage{height:auto;min-height:100svh;padding:280px 14px 110px}.drive-stage .world{height:330px}.drive-stage .landscape{background-size:cover}.stop-panel{top:0;margin:0;width:100%;max-height:none;padding:22px}.incident-sticker{top:180px;left:auto;right:14px;max-width:170px;padding:10px;gap:7px;transform:none}.incident-symbol{font-size:24px}.incident-sticker strong{font-size:12px}.route-caption{top:330px;bottom:auto;width:max-content;max-width:90%;text-align:center}.drive-stage.travelling{height:100svh}.drive-stage.travelling .world{height:65svh}.drive-stage.travelling .route-caption{top:66svh}.exam-shell{height:100svh;min-height:600px;padding:70px 10px 72px}.windshield{height:23svh;min-height:125px}.conversation{padding:16px;gap:16px}.message{max-width:96%}.composer{padding:10px}.composer form{flex-wrap:wrap}.composer textarea{min-height:60px}.composer button{padding:12px 14px}.dashboard{padding:10px 14px}.lamps{gap:10px}.lamp-wrap{gap:3px}.checkpoint-label{left:15px;top:15px;font-size:9px}.result-page{padding:90px 14px 105px}.result-page>.panel{padding:20px}.document-wrap{border-radius:12px}.name-input{width:100%}.actions button{flex:1}.privacy{font-size:10px}.cabin-view{object-fit:fill}}
.exam-shell{position:relative;z-index:2}.landscape{pointer-events:none}.drive-stage.travelling .landscape{background-size:contain;background-color:#c6dfd4}.drive-stage.travelling .world{background:#c6dfd4}.typing-skip{position:relative;display:block;margin-top:8px}.message .bubble{position:relative}.cabin-view{object-fit:cover;object-position:center 40%}.windshield.has-cabin .road-view{object-position:center 58%}.dashboard .mic{border:6px solid #43536c;background:#7c91ac;padding:6px;box-shadow:inset 0 0 0 2px #c3cfdd}.dashboard .mic:hover{background:#5F94FF}
@media(max-width:700px){.drive-stage{padding-top:300px}.drive-stage .world{height:320px}.cabin-view{object-fit:fill}.intro .landscape{background-position:left center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* A keepsake route sheet, using the same clay world as the journey. */
.student-document{padding:0 28px 24px;background:#fffaf0;border:2px solid #fff;border-radius:26px;box-shadow:inset 0 0 0 6px #e6eddb;overflow:hidden;min-height:0}
.student-document .document-head{margin:0 -28px 20px;padding:28px 30px 30px;min-height:170px;align-items:flex-start;border:0;background:linear-gradient(90deg,#e4eee0 0%,#e4eee0 46%,#e4eee000 73%),url('assets/finish.webp') right 44%/62% auto no-repeat;background-color:#e4eee0}
.student-document .document-head h2{font-size:30px;letter-spacing:-.035em;text-transform:none;margin:12px 0 5px;color:#244c4c}
.student-document .document-head p{font-size:13px;color:#456465}
.route-kicker{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#4c7066;font-weight:700}
.student-document .document-head img{width:110px;padding:8px;background:#fffef5e8;border-radius:12px}
.student-document .document-route{position:relative;padding:0 4px}
.student-document .route-connector{content:'';position:absolute;left:31px;top:25px;bottom:25px;width:0;border-left:3px dashed #d0d6bd}
.student-document .document-row{position:relative;grid-template-columns:56px 1fr 190px;gap:17px;padding:10px 0;border:0;min-height:76px}
.student-document .document-letter{display:grid;place-items:center;width:56px;height:56px;border-radius:19px;background:var(--category-tint);color:var(--category-color);border:3px solid #fffaf0;box-shadow:inset 0 -3px 0 #0000000c;font-size:25px}
.student-document .document-label{font-size:15px;color:#254749}
.student-document .document-caption{font-size:12px;max-width:375px;color:#63736d;line-height:1.4;margin-top:4px}
.student-document .document-status{padding:9px 12px;border-radius:12px;background:#f2efe4}
.route-outcome{display:block;font-weight:600;font-size:12px;color:#92623c;line-height:1.35}
.route-outcome.intuition{color:#35765e}
.route-lesson{display:block;margin-top:3px;font-size:11px;color:#758071}
.student-document .document-meta{margin-top:16px;padding-top:17px;border-top:1px dashed #c3ccb8;color:#687668;font-size:11px}
.student-document .document-meta>span:first-child{max-width:410px}

.student-document{border:6px solid #e6eddb;box-shadow:none}
@media(max-width:700px){
.student-document:not(.export-document){width:100%;padding:0 16px 18px;border-radius:20px}
.student-document:not(.export-document) .document-head{margin:0 -16px 12px;padding:20px 16px;min-height:148px;gap:8px;background-size:auto,80% auto;background-position:center,right center}
.student-document:not(.export-document) .document-head h2{font-size:24px;max-width:200px;line-height:1.12}
.student-document:not(.export-document) .document-head p{font-size:11px;max-width:190px}
.student-document:not(.export-document) .document-head img{width:74px;padding:5px}
.student-document:not(.export-document) .route-kicker{font-size:8px;letter-spacing:.07em}
.student-document:not(.export-document) .document-row{grid-template-columns:44px 1fr;gap:5px 12px;padding:12px 0}
.student-document:not(.export-document) .document-letter{width:44px;height:44px;border-radius:15px;font-size:22px}
.student-document:not(.export-document) .document-status{grid-column:2;padding:7px 10px;display:flex;gap:8px;align-items:center;justify-content:space-between}
.student-document:not(.export-document) .route-lesson{white-space:nowrap;margin:0}
.student-document:not(.export-document) .route-connector{left:25px}
.student-document:not(.export-document) .document-meta{font-size:10px;gap:8px}
}

.incident-cabin{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:2}.incident-view .stop-panel{top:180px}.incident-view .landscape{background-position:center 48%}@media(max-width:700px){.incident-view .stop-panel{top:0}.incident-view .landscape{background-size:100% 100%}}

.cockpit-stop .landscape{background-size:100% 100%;transform-origin:50% 48%}
/* Panel heights used to be a share of the viewport, so the scene behind would stay visible. A
   share is the wrong measure: how tall the text turns out depends on the panel WIDTH, and the
   panel is narrower on a narrow window, where the same words wrap into half again as many lines.
   One incident explanation needs 274px at 1283px of window and 367px at 702px — no single share
   or pixel floor covers both, and the overflow showed up as a scrollbar on a roomy screen.
   So the limit is now simply the space that is actually free above the panel's own bottom offset:
   the panel is as tall as its text needs and no taller, and it scrolls only when the text really
   cannot fit. Then only the text scrolls — the options and the button are pinned, so no length of
   wording can push the way forward out of sight. */
.cockpit-stop .stop-panel{position:absolute;top:auto;bottom:85px;right:24px;margin:0;max-height:calc(100svh - 170px)}
.cockpit-stop .stop-panel>p{overflow:auto;min-height:0}
.cockpit-stop .stop-options{flex-shrink:0}
.incident-view .stop-panel{top:auto;bottom:24px;max-height:calc(100svh - 110px);width:min(620px,48vw);padding:18px 24px;gap:12px}
.incident-view .body-copy{overflow:auto;min-height:0}
@media(max-width:700px){.cockpit-stop .stop-panel,.incident-view .stop-panel{position:relative;top:0;bottom:auto;right:auto;margin:0 14px;width:auto;max-height:none}.incident-view .stop-panel{padding:24px;gap:20px}.cockpit-stop .stop-panel>p,.incident-view .body-copy{overflow:visible}}
@media(min-width:701px){.incident-view .stop-panel{bottom:44px;max-height:calc(100svh - 130px);width:min(680px,53vw);padding:14px 20px;gap:8px}.incident-view .body-copy{font-size:16px;line-height:1.45}.incident-view #next-stop{flex-shrink:0;padding:10px 18px}}

.exam-document .document-head h2{max-width:470px;font-size:28px}.exam-document .document-status{font-size:11px}.exam-document .document-status>div+div{margin-top:5px}.exam-document .document-meta>span:first-child{overflow-wrap:anywhere}.exam-document .segments i{width:15px;border-radius:3px}@media(max-width:700px){.exam-document:not(.export-document) .document-status{display:block}.exam-document:not(.export-document) .document-head h2{font-size:20px;max-width:200px}}

/* Keep the exam scenery bright inside the card while quieting the map behind it. */
body[data-mode="exam"] .exam-active > .landscape:after{background:rgba(22,35,48,.32)}
body[data-mode="exam"] .exam-active .cockpit{box-shadow:0 24px 64px rgba(16,30,43,.30),0 6px 18px rgba(16,30,43,.18)}

/* Larger checkpoint sign and readable exam dialogue. */
body[data-mode="exam"] .checkpoint-label{display:flex;align-items:center;gap:13px;max-width:calc(100% - 50px);padding:12px 17px 12px 12px;border-radius:18px;background:#fffdf8f5;box-shadow:0 4px 16px #20364e26;color:#20364e}
.checkpoint-badge{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;border-radius:33%;font-size:28px;font-weight:700;background:var(--category-tint);color:var(--category-color);box-shadow:inset 0 2px 2px #fff9,inset 0 -3px 4px #20364e15}
.checkpoint-heading{display:flex;flex-direction:column;gap:3px;min-width:0}
.checkpoint-number{font-size:13px;font-weight:600;color:#53657d}
.checkpoint-title{font-size:18px;line-height:1.3;font-weight:700}
body[data-mode="exam"] .conversation{font-size:17px;line-height:1.55}
body[data-mode="exam"] .message .speaker{font-size:12px}
body[data-mode="exam"] .composer textarea{font-size:17px}
body[data-mode="exam"] .lamp-wrap{font-size:16px;gap:8px}
body[data-mode="exam"] .lamp{width:14px;height:14px}
/* On a short laptop the windshield and the page margins ate the conversation down to about six
   lines, and the tail of a longer question sat below the fold — the student had to scroll back to
   re-read the task while answering it. Trim the frame on those screens, never the text. */
@media(min-width:701px) and (max-height:820px){.exam-shell{padding:70px 24px 66px}.windshield{height:22vh;min-height:155px}}
@media(max-width:700px){body[data-mode="exam"] .checkpoint-label{left:12px;top:12px;max-width:calc(100% - 24px);padding:10px;gap:10px;border-radius:14px}.checkpoint-badge{flex-basis:40px;width:40px;height:40px;font-size:25px}.checkpoint-title{font-size:16px}.checkpoint-number{font-size:12px}body[data-mode="exam"] .lamp-wrap{gap:4px}body[data-mode="exam"] .dashboard .lamps{gap:12px}}

.intro-heading{display:flex;flex-direction:column;gap:14px}.intro-subtitle{font-size:19px;line-height:1.4;font-weight:600;color:#385577}

/* Exam completion: name entry, then a single readable document. */
/* Экран финала подобран так, чтобы панель с тремя абзацами и полем имени
 * помещалась в окно обычного ноутбука без прокрутки. */
.license-setup{position:relative;z-index:2;min-height:100svh;padding:44px 24px;display:grid;place-items:center}.license-setup>.panel{width:min(560px,100%);padding:28px;font-size:16px;gap:16px}.license-setup h1{font-size:28px}.license-setup .result-copy{line-height:1.45}.license-setup .name-field{gap:6px}.license-setup label{font-weight:600}.license-setup .name-input{width:100%;font-size:17px}.license-setup #name-help{font-size:14px;line-height:1.4}
.license-result{position:relative;z-index:2;padding:88px 24px 85px;display:flex;flex-direction:column;align-items:center;gap:16px;min-height:100svh}.license-toolbar{width:min(1000px,100%);padding:12px 16px;background:#fffdf7f5;border-radius:16px;box-shadow:0 5px 18px #20364e20}.license-toolbar .actions{align-items:center}.license-result .document-wrap{width:min(1000px,100%);overflow:visible}.license-document.student-document{width:100%;min-height:0;padding:0 28px 22px;box-shadow:0 12px 36px #20364e25}
.license-document.student-document .document-head{margin:0 -28px 12px;padding:24px 28px;min-height:175px;background-image:linear-gradient(90deg,#e6eddf 0%,#e6eddf 48%,#e6eddf00 83%),url('assets/finish.webp');background-size:auto,60% auto;background-position:center,right center;background-repeat:no-repeat}
.license-document .license-heading{max-width:640px}.license-document.student-document .document-head h2{font-size:28px;line-height:1.2;max-width:none;letter-spacing:-.025em;text-transform:none;color:#254749}
.license-document.student-document .document-head h2{margin:0}
/* Логотип школы стоит над названием документа: сначала кто выдал, потом что выдано. */
.license-document.student-document .document-head .license-logo{display:block;width:230px;height:auto;max-width:100%;margin:0 0 14px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.license-document.student-document .document-row{grid-template-columns:56px minmax(0,1fr) 245px;gap:16px;padding:9px 0;min-height:83px}.license-document .license-rubric{font-size:13px;color:#65756b;margin-bottom:3px}.license-document.student-document .document-label{font-size:17px;line-height:1.35}.license-document.student-document .document-status{font-size:15px;line-height:1.35;padding:10px 13px}.license-document .document-status strong{display:block;font-weight:600}.license-document .document-status p{font-size:13px;margin-top:5px;color:#58635b}.license-document .license-score{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:var(--score-color)}.license-document .score-100{--score-color:#23723a}.license-document .score-50{--score-color:#95631c}.license-document .score-0{--score-color:#a34235}.license-document .segments{margin:0}.license-document .segments i b{background:var(--score-color)}
.license-document.student-document .document-meta{font-size:14px;line-height:1.5;gap:10px;margin-top:12px;padding-top:14px}/* Имя владельца — главное в документе, поэтому крупнее и темнее пояснений. */
.license-document.student-document .document-meta .license-owner{max-width:100%;flex-basis:100%;overflow-wrap:anywhere;font-size:17px;color:#56685a}
.license-document .license-owner #card-name{font-weight:700;color:#254749}
@media(max-width:700px){.license-setup{padding:85px 14px 90px}.license-setup>.panel{padding:24px}.license-setup h1{font-size:28px}.license-result{padding:75px 12px 85px;gap:12px}.license-toolbar{padding:12px}.license-toolbar .actions{gap:8px}.license-toolbar .actions button{font-size:14px;padding:10px 12px}.license-toolbar #save-card{flex-basis:100%}.license-document.student-document:not(.export-document){padding:0 16px 18px}.license-document.student-document:not(.export-document) .document-head{margin:0 -16px 8px;padding:22px 16px;min-height:190px;background-image:linear-gradient(90deg,#e6eddf 0%,#e6eddfec 65%,#e6eddf90),url('assets/finish.webp')}.license-document.student-document:not(.export-document) .document-head h2{font-size:24px;line-height:1.2;max-width:none}.license-document.student-document:not(.export-document) .document-head .license-logo{width:195px;margin:0 0 10px}.license-document.student-document:not(.export-document) .document-row{grid-template-columns:44px minmax(0,1fr);gap:6px 10px;padding:13px 0}.license-document.student-document:not(.export-document) .document-status{grid-column:2;display:block}.license-document.student-document:not(.export-document) .document-label{font-size:17px}.license-document.student-document:not(.export-document) .document-meta{font-size:14px}.license-document.student-document:not(.export-document) .document-meta .license-owner{font-size:16px}}

/* Compact on-screen controls belong to the document; exports retain generous spacing. */
.license-document .license-toolbar{width:100%;padding:12px 0 0;margin-top:12px;border-top:1px solid #d8dece;background:none;border-radius:0;box-shadow:none}
.license-document .license-toolbar button{font-size:14px;padding:9px 14px}
@media(min-width:701px){.license-result{padding:76px 24px 65px}.license-document:not(.export-document) .document-head{min-height:140px;padding:18px 28px;margin-bottom:6px}.license-document:not(.export-document) .document-head .license-logo{margin:0 0 10px;width:210px}.license-document:not(.export-document) .document-row{min-height:72px;padding:5px 0}.license-document:not(.export-document) .document-status{padding:7px 12px}.license-document:not(.export-document) .document-meta{margin-top:8px;padding-top:10px}.license-document:not(.export-document){padding-bottom:14px}}
.learner-document .learner-note{font-size:15px;line-height:1.45;max-width:800px}.learner-document .document-status>strong{color:#254749}.learner-document .score-0{background:#f6e9dc}.learner-document .score-100{background:#e7efe3}

/* One category palette for both pages: the badge on screen matches the letter on the card. */
[data-category="А"]{--category-color:#7465a4;--category-tint:#eee8f7}
[data-category="З"]{--category-color:#38886f;--category-tint:#e5f2e9}
[data-category="Ж"]{--category-color:#bb852f;--category-tint:#fff2d7}
[data-category="К"]{--category-color:#bc6456;--category-tint:#fce7e0}
[data-category="Р"]{--category-color:#437fa1;--category-tint:#e5eff7}

/* One type scale across both pages; the course chip no longer occupies the top bar. */
.topbar{justify-content:flex-end}
.intro .panel,.stop-panel{font-size:17px}
.intro-subtitle{color:var(--ink)}
/* The sign you pass on the way in: same badge, number and title as the checkpoint panel. */
.route-caption{display:flex;align-items:center;gap:13px;text-align:left;max-width:min(92vw,640px);padding:12px 20px 12px 12px;border-radius:18px;background:#fffdf8f5;box-shadow:0 4px 16px #20364e26;color:#20364e}
.route-caption .checkpoint-number{font-size:14px}
.route-caption .checkpoint-title{font-size:19px;line-height:1.3}
.route-caption.plain{display:block;padding:12px 22px;border-radius:30px;font-size:16px}
.pill{font-size:13px}
.stop-head{display:flex;align-items:center;gap:13px}
.stop-panel .checkpoint-heading{gap:2px}
.stop-panel .checkpoint-number{font-size:14px}
.stop-panel .checkpoint-title{font-size:19px;line-height:1.3}
.stop-panel h2{font-size:23px}
.category-token{width:42px;height:42px;border-radius:33%;border:0;font-size:20px;background:var(--category-tint);color:var(--category-color);box-shadow:inset 0 2px 2px #fff9,inset 0 -3px 4px #20364e15}
/* The pill names what happened on the road — it shows up only when something did. */
.incident-pill{align-self:start;background:#f6e9dc;color:#92623c}
@media(max-width:700px){.stop-head{gap:10px}.stop-panel .checkpoint-title{font-size:17px}.stop-panel h2{font-size:20px}
.route-caption{gap:10px;padding:10px 14px 10px 10px;border-radius:14px}.route-caption .checkpoint-badge{flex-basis:40px;width:40px;height:40px;font-size:25px}.route-caption .checkpoint-number{font-size:12px}.route-caption .checkpoint-title{font-size:16px}}
