:root{--paper:#f7f7f1;--white:#fffefb;--ink:#1e3830;--muted:#6b7b74;--line:#dce3da;--green:#235b48;--green-light:#e7eedb;--gold:#ddae58;--blue:#416bcd;--wrong:#a44935;--shadow:0 15px 45px #193b2b0a;--radius:20px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;font-weight:400}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #416bcd;outline-offset:3px}button{border:0;background:transparent}input,select,textarea{color:var(--ink);border:1px solid var(--line);border-radius:11px;background:var(--white);min-height:46px;padding:11px 12px;max-width:100%}input[type=checkbox]{min-height:24px;width:23px;height:23px;accent-color:var(--green);flex-shrink:0}textarea{resize:vertical;min-height:150px;line-height:1.5}label{font-size:13px;font-weight:650}a{color:var(--green)}h1,h2,h3,p{margin-top:0}p{line-height:1.6}h1{font-size:clamp(29px,2.5vw,40px);line-height:1.13;letter-spacing:-1.4px;margin-bottom:13px;font-weight:750}h2{letter-spacing:-.6px;font-size:26px;line-height:1.2}h3{font-size:17px}small{color:var(--muted)}.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;top:-100px;z-index:1000}.skip-link:focus{top:0;background:white;padding:16px}.header{height:90px;max-width:1700px;padding:0 36px;margin:auto;display:flex;align-items:center;gap:25px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:27px;font-weight:800;letter-spacing:-.8px}.brand-mark{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:var(--green);color:#fff;transform:rotate(-12deg);font-size:41px;font-weight:400;line-height:1}.brand-light{font-weight:450}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:2px}.header nav{display:flex;gap:8px;margin:auto;background:#edf0e7;border:1px solid #e2e7dd;padding:5px;border-radius:15px}.nav-button{padding:10px 22px;border-radius:10px;font-size:13px;font-weight:650;min-height:42px}.nav-button.active{background:var(--white);box-shadow:0 2px 6px #1e383012}.icon-button{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;font-weight:750;font-size:18px}.layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:28px;max-width:1700px;margin:auto;padding:12px 36px 14px;min-height:660px;height:calc(100dvh - 139px)}.sidebar{min-width:0;overflow:auto;scrollbar-width:thin;padding:7px 9px 4px 0}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.7px;color:var(--green);display:block;margin-bottom:14px}.intro{font-size:13px;color:var(--muted);margin-bottom:23px;max-width:300px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1.3px;font-weight:750;color:var(--muted);margin:23px 0 10px;text-transform:uppercase}.text-button{font-size:12px;font-weight:650;color:var(--green);padding:6px 2px;min-height:34px;letter-spacing:0;text-transform:none}.set-select{width:100%;font-weight:600;appearance:auto;background:var(--white);border:1px solid #d6dfd1;height:52px;border-radius:13px;padding:0 13px;font-size:14px}.set-meta{display:flex;gap:7px;margin-top:9px;font-size:11px;color:var(--muted);align-items:center}.mini-tag{border:1px solid var(--line);border-radius:5px;padding:2px 5px;font-size:9px;font-weight:700;letter-spacing:.5px}.category-chips{display:flex;gap:6px;flex-wrap:wrap}.chip{border:1px solid var(--line);background:var(--white);border-radius:8px;padding:8px 10px;display:flex;align-items:center;gap:6px;font-size:11px;min-height:39px}.chip .icon{width:15px;height:15px}.chip.active{border-color:var(--green);background:#edf2e5;color:var(--green);font-weight:700}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-card{border:1px solid var(--line);background:var(--white);text-align:left;border-radius:13px;padding:13px 11px;min-height:90px;position:relative}.mode-card>.icon{width:20px;height:20px;margin-bottom:8px;color:var(--muted)}.mode-card strong{font-size:12px;display:block;margin-bottom:5px}.mode-card small{font-size:10px;display:block;line-height:1.35}.mode-card.active{border:1.5px solid var(--green);background:#eef3e5;box-shadow:0 0 0 1px #235b4804}.mode-card.active>.icon{color:var(--green)}.mode-card.active:after{content:'✓';position:absolute;right:9px;top:9px;font-size:9px;color:white;background:var(--green);border-radius:50%;height:14px;width:14px;text-align:center;line-height:14px}.tolerance-row{display:flex;align-items:center;gap:9px;font-size:11px;margin-top:12px;color:var(--muted)}.tolerance-row select{min-height:35px;padding:5px 8px;font-size:11px;flex:1}.primary,.secondary,.danger{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;min-height:49px;padding:11px 16px;border-radius:12px;font-weight:650;font-size:13px}.primary{background:var(--green);color:#fff}.primary:hover:not(:disabled){background:#184637}.secondary{background:var(--white);border:1px solid var(--line)}.danger{color:var(--wrong);border:1px solid #e4c6bc;background:#fff8f4}.start-button{margin-top:19px;justify-content:space-between;padding-left:19px}.progress-teaser{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;display:flex;align-items:center;gap:12px}.progress-teaser>.icon{width:32px;height:32px;padding:6px;background:#f1e8d6;border-radius:9px;color:#897145}.progress-teaser strong{font-size:12px;display:block;margin-bottom:4px}.progress-teaser small{font-size:11px}.map-panel{border:1px solid #d5e1d9;background:#eaf2f0;border-radius:25px;position:relative;overflow:hidden;box-shadow:var(--shadow);min-height:490px}.map-container{position:absolute;inset:0}.atlas-svg{display:block;width:100%;height:100%;user-select:none;-webkit-user-select:none}.atlas-svg[data-tool=navigate],.atlas-svg[data-tool=explore]{cursor:grab}.atlas-svg[data-tool=mark],.atlas-svg[data-tool=draw],.atlas-svg[data-tool=worksheet-mark]{cursor:crosshair}.country{fill:#fffdf7;stroke:#8ba59b;stroke-width:.75;vector-effect:non-scaling-stroke;stroke-linejoin:round}.graticule path{fill:none;stroke:#cadbd7;stroke-width:.6;vector-effect:non-scaling-stroke}.target-shape{fill:#b6d6b9;stroke:#337c50;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}.target-shape.question{fill:#f2d296;stroke:#aa823e}.target-shape.line{fill:none;stroke-width:4;stroke-linecap:round}.draw-stroke{fill:none;stroke:var(--blue);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.marker-halo{fill:#c7d5fa;opacity:.65}.marker-dot{fill:var(--blue);stroke:white;stroke-width:2;vector-effect:non-scaling-stroke}.marker-cross{fill:none;stroke:var(--blue);stroke-width:1.5;vector-effect:non-scaling-stroke}.marker-halo.solution{fill:#b5d8b4}.marker-dot.solution{fill:#2e8051}.marker-cross.solution{stroke:#2e8051}.marker-halo.question{fill:#f4d79f}.marker-dot.question{fill:#b6832b}.marker-cross.question{stroke:#b6832b}.map-topbar{position:absolute;top:19px;left:20px;right:20px;z-index:3;display:flex;justify-content:space-between;gap:10px;pointer-events:none}.map-topbar>*{pointer-events:auto}.map-pill{padding:10px 12px;background:#fffefaeb;border:1px solid #dce5dc;border-radius:11px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:650;box-shadow:0 3px 10px #1e383006;align-self:flex-start}.status-dot{height:6px;width:6px;border-radius:50%;background:#548768}.map-region select{background:#fffefaed;border:1px solid #dce5dc;min-height:37px;padding:7px 28px 7px 10px;border-radius:9px;font-size:11px}.zoom-tools{position:absolute;right:19px;top:80px;z-index:3;display:flex;flex-direction:column;background:#fffefaee;border:1px solid #dbe3db;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}.zoom-tools button{width:43px;height:43px;font-size:23px}.zoom-tools button+button{border-top:1px solid var(--line)}.zoom-tools button[aria-pressed=true]{background:var(--green-light)}.zoom-tools button .icon{width:19px;height:19px}.map-bottom{position:absolute;bottom:22px;left:20px;right:20px;z-index:3;display:flex;align-items:flex-end;justify-content:space-between;gap:15px;pointer-events:none}.map-bottom>*{pointer-events:auto}.drawing-tools{display:flex;gap:3px;flex-wrap:wrap;background:#fffefaed;border:1px solid #dce5dc;padding:4px;border-radius:12px;box-shadow:var(--shadow)}.drawing-tools:empty{display:none}.tool{width:42px;height:42px;border-radius:8px;display:grid;place-items:center}.tool.active{background:var(--green);color:white}.tool .icon{width:20px;height:20px}.map-credit{text-align:right;color:#718980;font-size:9px;line-height:1.6}.map-credit button{font-size:10px;font-weight:550;padding:8px 0 0;display:block;margin-left:auto;min-height:32px}.map-credit span{display:block}.map-hint{position:absolute;bottom:84px;left:20px;right:70px;pointer-events:none;color:#506d62;font-size:10px;font-weight:550}.map-loading{display:grid;place-items:center;height:100%;color:var(--muted);font-size:14px}.site-footer{display:flex;justify-content:space-between;align-items:center;max-width:1700px;margin:0 auto;padding:2px 36px 15px;color:var(--muted);font-size:10px;gap:12px}.site-footer button{font-size:10px;color:var(--muted);min-height:30px}.question-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:12px}.round-counter{font-size:11px;letter-spacing:.5px;color:var(--muted)}.progress-track{height:5px;border-radius:8px;background:#e4e9df;margin-bottom:27px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--green);transition:width .2s}.question-category{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);font-weight:650;margin-bottom:16px}.question-category .icon{width:17px;height:17px}.question-title{font-size:31px;line-height:1.17;margin-bottom:14px;overflow-wrap:anywhere}.question-desc{font-size:13px;color:var(--muted);line-height:1.6}.question-box{background:var(--white);padding:19px;border:1px solid var(--line);border-radius:17px;margin-top:21px}.question-box .hint-label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:10px;display:block}.question-box p{font-size:12px;margin:0;line-height:1.6}.answer-input{width:100%;font-size:17px;margin-bottom:11px}.answer-actions{display:flex;gap:8px;margin-top:11px}.answer-actions>*{flex:1}.helper-note{font-size:11px;color:var(--muted);line-height:1.55;margin:15px 0}.feedback{padding:17px;border-radius:14px;margin:21px 0 15px;background:#e6efdf;border:1px solid #cdddc0}.feedback.wrong{background:#fff0e8;border-color:#eccdc0}.feedback.manual{background:#fcf3de;border-color:#e9d9b2}.feedback strong{font-size:15px;display:block;margin:0 0 7px}.feedback p{font-size:12px;line-height:1.6;margin:0}.solution-name{font-size:22px;font-weight:750;margin:12px 0}.source-detail{font-size:11px;border-top:1px solid var(--line);padding-top:10px;margin-top:15px;line-height:1.6;overflow-wrap:anywhere}.source-detail summary{cursor:pointer;min-height:35px;display:flex;align-items:center;font-weight:650;color:var(--muted)}.source-detail p{margin:6px 0;font-size:11px}.result-hero{margin:20px 0;text-align:center;padding:20px;border:1px solid var(--line);background:var(--white);border-radius:20px}.result-hero>.icon{height:42px;width:42px;color:#a8843d;margin-bottom:15px}.result-score{font-size:55px;letter-spacing:-3px;font-weight:750}.result-score span{font-size:22px;letter-spacing:0;color:var(--muted)}.result-hero p{font-size:12px;color:var(--muted);margin:8px 0 0}.result-items{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow:auto;margin:17px 0}.result-item{display:flex;align-items:center;gap:7px;font-size:12px;background:var(--white);border:1px solid var(--line);padding:9px;border-radius:9px}.result-item .icon{width:16px;height:16px;color:var(--green)}.result-item.wrong .icon{color:var(--wrong)}.result-item small{margin-left:auto;font-size:9px}.explore-list{margin-top:14px;display:flex;flex-direction:column;gap:5px;max-height:300px;overflow:auto}.explore-item{display:flex;align-items:center;gap:8px;text-align:left;font-size:12px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--white);min-height:42px}.explore-item .icon{width:17px;height:17px}.explore-item.active{background:var(--green-light);border-color:var(--green)}.explore-source{font-size:11px;color:var(--muted);margin-top:15px;line-height:1.6}.search-field{display:flex;align-items:center;position:relative}.search-field>.icon{position:absolute;left:12px;width:18px;color:var(--muted)}.search-field input{padding-left:39px;width:100%;font-size:12px}.notice{padding:13px 14px;border:1px solid #e5d7b9;background:#fbf3e2;border-radius:12px;font-size:11px;line-height:1.6;color:#776139;margin-top:15px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.field input,.field select,.field textarea{width:100%}.row{display:flex;gap:11px}.row>*{flex:1;min-width:0}.margin-top{margin-top:15px}dialog{padding:0;border:1px solid var(--line);border-radius:24px;width:min(1010px,calc(100vw - 40px));max-height:calc(100dvh - 40px);background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #173c3440}dialog::backdrop{background:#213f3669;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:27px 29px 18px}.dialog-head h2{margin:0 0 7px;font-size:26px}.dialog-head p{margin:0;color:var(--muted);font-size:12px;max-width:750px}.close-dialog{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;flex-shrink:0;background:var(--white)}.close-dialog .icon{width:19px}.dialog-content{padding:0 29px 26px}.dialog-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.dialog-toolbar input{flex:1;min-width:130px}.compact-button{min-height:43px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;background:var(--white)}.compact-button .icon{width:17px;height:17px}.compact-button.primary{background:var(--green);color:white;width:auto;border-color:var(--green)}.dialog-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:18px;overflow:auto}.dialog-tab{font-size:12px;white-space:nowrap;padding:12px 13px;border-bottom:2px solid transparent;min-height:45px}.dialog-tab.active{border-color:var(--green);font-weight:700}.manager-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px}.list-panel{background:var(--white);border:1px solid var(--line);border-radius:15px;overflow:hidden}.list-panel-title{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-bottom:1px solid var(--line);font-size:12px;font-weight:700}.list-scroll{height:320px;overflow:auto;overscroll-behavior:contain}.catalogue-row{display:flex;align-items:center;gap:10px;min-height:55px;border-bottom:1px solid #edf0e9;padding:9px 12px;font-weight:450;font-size:12px;cursor:pointer}.catalogue-row:hover{background:#f7f9f2}.catalogue-row .icon{width:18px;height:18px;color:var(--muted)}.catalogue-row strong{font-size:12px;display:block;font-weight:600}.catalogue-row small{font-size:10px;display:block;margin-top:3px}.catalogue-row>.item-body{flex:1;min-width:0}.remove-item{min-height:38px;min-width:38px;border-radius:7px}.remove-item:hover{background:#f7e7dd}.empty-state{padding:30px 20px;text-align:center;color:var(--muted);font-size:12px;line-height:1.7}.bulk-result{padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--white);font-size:12px;line-height:1.6;margin-top:13px}.bulk-result p{margin:4px 0}.data-notice{font-size:11px;line-height:1.6;color:var(--muted);margin-top:15px}.dialog-text{font-size:13px;line-height:1.7;max-width:800px}.dialog-text h3{margin-top:22px;margin-bottom:8px}.dialog-text code{font-size:12px;padding:2px 5px;background:#e9eedf;border-radius:4px}.dialog-text a{overflow-wrap:anywhere}.worksheet-preview{max-width:100%;max-height:100px;object-fit:contain;border:1px solid var(--line);border-radius:9px;background:white}.loading,.fatal{padding:20px}.fatal p{font-size:13px;line-height:1.6}#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:26px;z-index:2000;max-width:min(540px,90vw);background:var(--ink);color:white;font-size:13px;line-height:1.5;border-radius:12px;padding:13px 20px;box-shadow:0 7px 30px #152c3330;opacity:0;pointer-events:none;transition:opacity .2s}#toast.visible{opacity:1}
@media(min-width:1550px){.layout{grid-template-columns:355px minmax(0,1fr)}.sidebar{padding-top:16px}.mode-card{min-height:100px}.intro{max-width:320px}}
@media(max-width:1100px){.header{padding:0 23px;height:78px}.layout{grid-template-columns:282px minmax(0,1fr);gap:19px;padding:9px 23px 12px;height:calc(100dvh - 125px);min-height:620px}.sidebar{padding-right:2px}.header nav{gap:3px}.nav-button{padding:9px 15px}.site-footer{padding:2px 23px 10px}.map-credit span{display:none}.map-pill{font-size:10px}.map-topbar{left:15px;right:15px}.map-bottom{left:15px;right:15px;gap:5px}.map-hint{left:15px;font-size:9px}.map-credit button{font-size:9px}.tool{width:36px;height:40px}.map-region select{max-width:150px}.question-title{font-size:28px}.section-label{margin-top:17px}.intro{margin-bottom:15px}.mode-card{padding:12px 10px;min-height:88px}.progress-teaser{margin-top:17px}.set-select{height:48px}}
@media(max-width:850px) and (orientation:portrait){.layout{height:auto;min-height:0;display:flex;flex-direction:column;padding:8px 23px 14px;gap:16px}.sidebar{overflow:visible;padding:0;display:block}.sidebar.home-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.home-sidebar .home-intro{grid-column:1}.home-sidebar .home-settings{grid-column:2;grid-row:1 / span 2}.home-sidebar .home-action{grid-column:1}.home-sidebar h1{font-size:34px}.home-sidebar .intro{font-size:12px}.home-sidebar .section-label:first-child{margin-top:0}.home-sidebar .mode-card{min-height:82px}.home-sidebar .mode-card>.icon{margin-bottom:5px}.home-sidebar .mode-card small{font-size:9px}.home-sidebar .progress-teaser{display:none}.map-panel{height:52dvh;min-height:400px}.session-sidebar .question-desc{margin-bottom:6px}.session-sidebar .question-title{font-size:27px;margin:4px 0 8px}.session-sidebar .question-top{margin-bottom:7px}.session-sidebar .progress-track{margin-bottom:15px}.session-sidebar .question-category{margin-bottom:6px}.session-sidebar .question-box{margin-top:10px;padding:13px}.session-sidebar .answer-actions{margin-top:8px}.session-sidebar .source-detail{display:none}.session-sidebar .question-box:has(.hint-label){display:none}.session-sidebar .feedback{margin:10px 0;padding:12px}.session-sidebar .helper-note{margin:6px 0}.site-footer{flex-wrap:wrap}.manager-grid{gap:13px}.list-scroll{height:360px}.map-hint{font-size:10px}}
@media(max-width:600px){.header{height:72px;padding:0 14px;gap:8px}.brand{font-size:22px;gap:7px}.brand-mark{width:33px;height:33px;font-size:31px;border-radius:11px}.brand small{font-size:6px;letter-spacing:1.1px}.header nav{padding:3px;margin-left:auto;margin-right:0}.nav-button{font-size:10px;padding:7px 8px;min-height:38px}.header-info{width:30px;height:30px;font-size:15px;flex-shrink:0}.layout{display:flex;flex-direction:column;height:auto;min-height:0;padding:6px 14px 12px;gap:16px}.sidebar{overflow:visible;padding:0}.sidebar.home-sidebar{display:block}.home-intro h1{font-size:34px;max-width:320px;margin-bottom:8px}.home-intro .eyebrow{font-size:9px;margin-bottom:9px}.home-intro .intro{font-size:12px;max-width:100%;margin-bottom:10px}.home-settings .section-label{margin:15px 0 8px}.mode-grid{grid-template-columns:repeat(4,1fr);gap:5px}.mode-card{padding:10px 7px;min-height:80px;border-radius:10px}.mode-card strong{font-size:10px}.mode-card small{font-size:8px}.mode-card>.icon{width:18px;height:18px;margin-bottom:5px}.mode-card.active:after{top:5px;right:5px;width:11px;height:11px;font-size:7px;line-height:11px}.home-action .progress-teaser{display:none}.start-button{margin-top:12px}.map-panel{height:58dvh;min-height:380px;border-radius:18px}.map-topbar{top:13px;left:12px;right:12px}.map-pill{padding:9px;font-size:9px}.map-region select{font-size:10px;max-width:130px}.zoom-tools{right:12px;top:65px}.zoom-tools button{width:39px;height:40px}.map-bottom{left:11px;right:11px;bottom:13px;flex-wrap:wrap}.map-credit span{display:none}.map-credit button{font-size:8px}.map-hint{bottom:73px;left:12px;right:56px;font-size:9px}.drawing-tools{padding:3px}.tool{height:36px;width:35px}.map-credit{margin-left:auto}.site-footer{padding:0 15px 10px;font-size:9px;gap:4px}.site-footer>span:last-child{display:none}.session-sidebar .question-title{font-size:25px}.session-sidebar .question-category{margin-bottom:7px}.session-sidebar .question-desc{font-size:12px;margin-bottom:7px}.session-sidebar .progress-track{margin-bottom:16px}.session-sidebar .question-box{margin-top:12px}.session-sidebar .question-box:has(.hint-label){display:none}.session-sidebar .source-detail{display:none}.session-sidebar .helper-note{font-size:10px;margin:8px 0}.feedback{margin-top:10px;padding:12px}.question-top{margin-bottom:6px}.question-category{font-size:9px}.question-box{padding:13px}.answer-input{font-size:16px}.result-items{max-height:150px}dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:19px}.dialog-head{padding:19px 17px 15px;gap:10px}.dialog-head h2{font-size:23px}.dialog-content{padding:0 17px 21px}.dialog-toolbar{gap:6px}.dialog-toolbar input{min-width:100%;font-size:16px}.compact-button{font-size:11px;padding:9px 10px}.dialog-tab{padding:12px 9px;font-size:11px}.manager-grid{grid-template-columns:1fr;gap:15px}.list-scroll{height:240px}.manager-grid .list-panel:last-child .list-scroll{height:175px}.dialog-text{font-size:12px}.source-detail{font-size:10px}.tolerance-row{font-size:10px}.intro{max-width:100%}.explore-list{max-height:160px}.explore-source{font-size:10px}.notice{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.header,.sidebar,.site-footer,.zoom-tools,.map-topbar,.map-bottom,.map-hint,dialog,#toast{display:none!important}.layout{display:block;padding:0;height:95vh}.map-panel{height:95vh;border:0;box-shadow:none}}
/* Keep the primary action reachable on landscape tablets. Only setup choices scroll. */
@media(min-width:851px){.home-sidebar{display:flex;flex-direction:column;overflow:hidden}.home-intro{flex-shrink:0}.home-settings{overflow:auto;scrollbar-width:thin;min-height:0;padding-right:3px}.home-action{flex-shrink:0;background:var(--paper);padding-top:3px}.home-action .start-button{margin-top:12px}.home-action .progress-teaser{margin-top:13px}}
@media(min-width:851px) and (max-height:900px){.home-intro h1{font-size:31px;margin-bottom:9px}.home-intro .eyebrow{margin-bottom:9px}.home-intro .intro{font-size:12px;margin-bottom:10px}.home-settings .section-label{margin:14px 0 8px}.home-settings .section-label:first-child{margin-top:7px}.home-settings .mode-card{min-height:81px;padding:10px}.home-settings .mode-card>.icon{margin-bottom:6px}.home-settings .mode-card small{font-size:9px}.home-action .progress-teaser{display:none}}
@media(min-width:851px) and (max-height:900px){.home-settings .mode-card{min-height:49px;display:flex;align-items:center;gap:6px;padding:12px 9px}.home-settings .mode-card>.icon{width:18px;height:18px;margin:0}.home-settings .mode-card strong{display:inline;font-size:11px;margin:0}.home-settings .mode-card small{display:none}.home-settings .mode-card.active:after{top:5px;right:5px;width:10px;height:10px;line-height:10px;font-size:7px}}
/* Focused practice: the worksheet sections stay compact on tablets. */
.practice-toggle{display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.4;color:var(--muted);margin-top:9px;font-weight:500;min-height:34px}
.practice-toggle input{margin:0;flex-shrink:0}
.reference-note{font-size:11px;line-height:1.5;padding:10px 12px;border-left:3px solid var(--gold);background:#fbf3e2;border-radius:0 8px 8px 0}
@media(min-width:851px) and (max-height:900px){
 .home-settings .set-select{height:44px;min-height:44px}
 .home-settings .section-label{margin-top:10px}
 .home-settings .set-meta{margin-top:6px}
 .home-settings .mode-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .home-settings .mode-card{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:10px 3px;min-height:63px}
 .home-settings .mode-card strong{font-size:9.5px}
 .home-settings .practice-toggle{margin-top:6px;min-height:29px}
}
