@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2');font-weight:400;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-cyrillic-500-normal.woff2') format('woff2');font-weight:500;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');font-weight:600 800;font-display:swap}
@font-face{font-family:Plex;src:url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2');font-weight:600 800;font-display:swap;unicode-range:U+0400-052F,U+2116}
:root{--bg:#f8f9f6;--paper:#fff;--ink:#25362e;--muted:#647168;--green:#2e5c49;--pale:#edf3ed;--line:#dce3dc;--red:#a34438;--red-bg:#fcf1ed;font-family:Plex,'Segoe UI',sans-serif;font-size:15px;color:var(--ink);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);line-height:1.5}
button,input,select{font:inherit}
button,a,input,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:default;color:var(--muted)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:4px}
input:focus,select:focus{outline:2px solid var(--green);outline-offset:2px}
a{color:var(--green)}
h1,h2,h3,p{margin:0}
h1{font-size:27px;line-height:1.25;letter-spacing:-.6px;font-weight:500}
h2{font-size:19px;line-height:1.35;font-weight:500;letter-spacing:-.25px}
h3{font-size:16px;font-weight:500}
.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.muted,.note{color:var(--muted);font-size:13px}
.note{margin-top:14px;line-height:1.6}
.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}
.game-shell{width:min(1120px,calc(100% - 64px));margin:0 auto;display:flex;flex-direction:column}
.main{flex:1;display:flex;flex-direction:column}
html{scrollbar-gutter:stable}
.game-header{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:var(--ink);text-align:left}
.brand img{width:30px;height:30px}
.brand strong{font-size:16px;font-weight:500}
.brand small{display:none}
.header-actions{display:flex;align-items:center;gap:23px}
.text-button{border:0;padding:4px 0;background:none;color:var(--green);font-size:13px;text-align:left}
.text-button:hover{text-decoration:underline;text-underline-offset:4px}
.text-button.danger{color:var(--red)}
.game-stage{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:29px 0 24px}
.game-stage p{color:var(--muted);font-size:13px;margin-top:6px}
.phase-caption{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap}
.phase-caption strong{font-weight:500;font-size:16px}
.phase-caption>span{color:var(--muted);font-size:13px}
.position-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:baseline;gap:12px 32px;padding-bottom:25px}
.position-item{display:flex;align-items:baseline;gap:9px;font-size:13px;min-width:0}
.position-item>span{color:var(--muted)}
.position-item strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
.position-item small{font-size:12px;font-weight:400;color:var(--muted)}
.navigation-row{display:flex;align-items:stretch;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.game-tabs{display:flex;gap:27px;min-width:0;overflow-x:auto}
.game-tabs button,.quiz-link{padding:13px 0 12px;border:0;border-bottom:2px solid transparent;background:transparent;font-size:14px;color:var(--muted);white-space:nowrap}
.game-tabs button.active,.quiz-link.active{color:var(--green);border-bottom-color:var(--green);font-weight:500}
.quiz-link{display:flex;align-items:center;gap:8px;flex-shrink:0}
.pending-dot{width:5px;height:5px;border-radius:50%;background:#a07b36}
.workspace{padding:22px 0 24px;min-width:0}
.hiring-grid,.report-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.panel{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:7px;min-width:0}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px;min-height:45px}
.panel-head p{font-size:13px;color:var(--muted);margin-top:5px}
.panel-head>.icon{display:none}
.panel p.copy{font-size:14px;color:var(--muted);line-height:1.65}
.stack{display:flex;flex-direction:column;gap:22px}
.reading-width{max-width:820px;margin:0 auto}
.wide-reading{max-width:900px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.field{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted);min-width:0}
.field small{font-size:12px}
#settings-form .field{display:grid;grid-template-rows:38px 44px;align-items:end}
#settings-form .field.full-field{grid-column:1/-1;grid-template-rows:auto 44px}
.input-wrap{display:flex;align-items:center;background:white;border:1px solid #a9b7ab;border-radius:5px;height:48px;overflow:hidden}
.input-wrap input{border:0;background:transparent;padding:10px 12px;width:100%;min-width:0;color:var(--ink);font-size:20px;font-weight:400;font-variant-numeric:tabular-nums}
.input-wrap>span{padding-right:12px;font-size:12px;white-space:nowrap;flex:0 0 44px;text-align:right}
.input-wrap:focus-within{outline:2px solid var(--green);outline-offset:1px}
.input-wrap input:focus{outline:0}
.simple-input{padding:10px 12px;border:1px solid #a9b7ab;border-radius:5px;background:white;color:var(--ink);min-width:0;max-width:100%;min-height:44px}
.calculation-preview{margin:22px 0 0;padding-top:4px;border-top:1px solid var(--line);font-size:13px}
.calculation-preview>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding-top:12px}
.calculation-preview dt{color:var(--muted)}
.calculation-preview dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.calculation-preview strong{font-weight:400}
.form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:25px}
.form-footer>span{font-size:12px;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;background:var(--green);color:white;border:1px solid var(--green);border-radius:5px;font-size:13px;font-weight:500;white-space:nowrap;text-decoration:none}
.button:hover{background:#244d3c}
.button.secondary{background:transparent;color:var(--ink);border-color:#bcc8bd;font-weight:400}
.button.secondary:hover{background:var(--pale)}
.button.small{min-height:34px;padding:6px 12px;font-size:12px}
.button.danger{background:var(--red);border-color:var(--red)}
.button:disabled{background:#f1f3ef;border-color:var(--line);color:var(--muted)}
.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--line);border-radius:5px;color:var(--muted)}
.table-wrap{overflow-x:auto}
.personnel-scroll{height:350px;overflow:auto;scrollbar-gutter:stable}
.personnel-scroll table{table-layout:fixed}
.personnel-scroll th:first-child{width:40%}
.personnel-scroll th:nth-child(2){width:30%}
.personnel-scroll .person{white-space:normal;overflow-wrap:anywhere}
.personnel-scroll .status{white-space:normal}
.personnel-scroll .group-row th{text-align:left;padding:18px 0 8px;color:var(--ink);font-weight:500}
.personnel-scroll .empty-row{text-align:left;padding:12px 0;color:var(--muted)}
.personnel-scroll td{height:60px}
.personnel-scroll tr:last-child td{padding-bottom:12px}
.application-slot{min-height:72px}
.vacancy-scroll{height:390px;overflow:auto;scrollbar-gutter:stable}
.vacancy-table{table-layout:fixed}
.vacancy-table th:first-child{width:25%}
.vacancy-table th:last-child{width:30%}
.vacancy-table .button{width:100%}
.effort-footer{min-height:77px}
.effort-footer>.button{width:190px;flex-shrink:0}
.effort-footer>span{min-height:40px;display:flex;align-items:center}
.quiz-dialog{min-height:min(360px,85vh)}
.quiz-dialog .panel{padding:0;border:0}
.quiz-dialog .quiz-label{display:none}
.game-tabs .phase-tab{opacity:1}
.stage-guidance{min-height:64px}
table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}
th{padding:0 10px 12px 0;border-bottom:1px solid var(--line);font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
td{padding:12px 10px 12px 0;border-bottom:1px solid #e9ede6;font-variant-numeric:tabular-nums}
td:last-child,th:last-child{text-align:right;padding-right:0}
tr:last-child td{border-bottom:0;padding-bottom:0}
td.numeric,th.numeric{text-align:right;padding-right:30px}
.person{white-space:nowrap}
.status{font-size:12px;color:var(--muted);white-space:nowrap}
.status.good{color:var(--green)}
.status.warn{color:#986318}
.badge{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.empty{padding:30px 8px;color:var(--muted);font-size:13px;line-height:1.65;text-align:center}
.empty>.icon{display:none}
.attention{margin-top:18px}
.employment-status{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:0 0 22px}
.employment-status strong{font-size:15px;font-weight:500}
.employment-status p{font-size:13px;color:var(--muted);margin-top:6px}
.employment-status .text-button{flex-shrink:0}
.notice-line{padding:0 0 18px;font-size:13px;color:var(--muted)}
.application-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:var(--pale);border-radius:5px;font-size:13px;margin-bottom:20px}
.effort-comparison{margin-top:2px}
.effort-heading,.choice{display:grid;grid-template-columns:minmax(200px,1fr) 90px 105px 110px;gap:12px;align-items:center}
.effort-heading{padding:0 15px 12px;font-size:11px;color:var(--muted)}
.effort-heading>span:not(:first-child){text-align:right}
.choice{width:100%;padding:17px 14px;background:transparent;border:1px solid transparent;border-top-color:var(--line);text-align:left;color:var(--ink);font-size:14px;border-radius:0;min-height:78px}
.choice:hover{background:#f6f8f3}
.choice.selected{border-color:var(--green);border-radius:5px;background:var(--pale)}
.choice.selected+.choice{border-top-color:transparent}
.choice-name{display:flex;align-items:center;gap:11px}
.choice-name small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.choice-value{text-align:right;font-variant-numeric:tabular-nums}
.radio-mark{display:inline-block;width:16px;height:16px;border:1px solid #98a99b;border-radius:50%;flex-shrink:0}
.selected .radio-mark{border:5px solid var(--green)}
.choice:disabled{opacity:1;color:var(--ink)}
.choice:disabled:not(.selected){color:var(--muted)}
.production-summary{display:flex;justify-content:space-between;gap:20px;font-size:13px;color:var(--muted);margin-bottom:22px}
.production-summary strong{color:var(--ink);font-weight:500}
.quiz-label{font-size:17px;font-weight:500;color:var(--ink);margin-bottom:17px}
.quiz-label>.icon{display:none}
.quiz-text{font-size:15px;line-height:1.7;max-width:650px}
.quiz-form{display:flex;align-items:center;gap:12px;margin-top:22px}
.quiz-form input{width:130px}
.feedback{padding:13px 16px;background:var(--pale);border-radius:5px;font-size:13px;line-height:1.65;margin-top:20px}
.feedback.bad{background:var(--red-bg);color:var(--red)}
.feedback strong{font-weight:500}
.form-preview{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:16px;font-size:13px;color:var(--muted)}
.form-preview strong{color:var(--ink);font-weight:500;margin-left:5px}
.ledger{margin:14px 0 0}
.ledger>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.ledger>div:last-child{border:0;padding-top:18px;font-size:20px}
.ledger dt{color:var(--muted)}
.ledger dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.negative{color:var(--red)}
.positive{color:var(--green)}
.subhead{display:flex;align-items:center;justify-content:space-between;gap:20px}
.time-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.time-charts .panel-head{min-height:0;margin-bottom:0}
.time-charts .panel-head h2{font-size:17px}
.chart{width:100%;height:auto;display:block;margin-top:18px;overflow:visible}
.chart text{font-family:Plex,sans-serif;fill:var(--muted);font-size:11px}
.chart-grid{stroke:var(--line);stroke-width:1}
.chart-line{stroke:var(--green);stroke-width:2;fill:none}
.chart-dot{fill:var(--green);stroke:var(--paper);stroke-width:2}
.secondary-line{stroke:#8b8063;stroke-width:2;stroke-dasharray:5 4}
.chart-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:6px}
.chart-legend span{display:flex;align-items:center;gap:6px}
.chart-legend i{width:16px;border-top:2px solid var(--green)}
.chart-legend i.dashed{border-top:2px dashed #8b8063}
.bottom-bar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:19px 0 28px;border-top:1px solid var(--line)}
.bottom-bar p{font-size:12px;color:var(--muted)}
.stage-guidance{max-width:530px}
.stage-owner{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-bottom:5px}
.stage-guidance p{line-height:1.6}
.stage-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.context-list{margin:18px 0 0}
.context-list>div{display:flex;justify-content:space-between;align-items:baseline;gap:24px;border-bottom:1px solid var(--line);padding:12px 0;font-size:14px}
.context-list>div:last-child{border:0}
.context-list dt{color:var(--muted)}
.context-list dd{margin:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.details-footer{margin-top:18px}
.demo-tools{position:relative;padding:0;border:0;margin:0}
.demo-tools summary{font-size:12px;color:var(--muted);cursor:pointer;list-style:none}
.demo-tools summary:after{content:'⌄';padding-left:7px}
.demo-menu{position:absolute;right:0;top:calc(100% + 12px);z-index:8;width:175px;padding:6px;background:white;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 25px #20342d12}
.demo-menu button{display:block;text-align:left;width:100%;padding:9px 10px;border:0;background:none;color:var(--ink);font-size:13px;border-radius:3px}
.demo-menu button:hover,.demo-menu button[aria-pressed=true]{background:var(--pale)}
details.panel summary{font-size:13px;color:var(--muted);cursor:pointer}
.loading{padding:50px;color:var(--muted)}
dialog{width:560px;max-width:calc(100vw - 32px);max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);padding:28px;box-shadow:0 20px 80px #20342d25}
dialog::backdrop{background:#20342d55}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.modal-body{font-size:14px;line-height:1.7;color:var(--muted)}
.modal-body p+p{margin-top:13px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
#notification{display:none;position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:6px;font-size:13px;max-width:calc(100vw - 32px);z-index:20}
#notification.visible{display:block}
#notification.error{background:var(--red)}
.landing{max-width:1040px;margin:auto;padding:0 32px 35px}
.landing-header{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.prototype{font-size:12px;color:var(--muted)}
.landing-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:70px;padding:65px 0;align-items:start}
.eyebrow{font-size:12px;color:var(--muted);margin-bottom:20px}
.landing h1{font-size:54px;letter-spacing:-1.8px;line-height:1.08}
.landing-intro{font-size:16px;color:var(--muted);line-height:1.75;margin-top:22px;max-width:445px}
.landing-hero>div>.button{margin-top:28px}
.landing-roles{display:flex;flex-direction:column;gap:24px;padding-top:5px}
.role-card{padding:0 0 24px;border-bottom:1px solid var(--line)}
.role-card:last-child{border-bottom:0;padding-bottom:0}
.role-top{margin-bottom:10px}
.role-top>.icon{display:none}
.role-card p{color:var(--muted);font-size:14px;line-height:1.7}
.role-card .button{margin-top:17px}
.landing-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:23px;font-size:12px;color:var(--muted)}
.adviser{display:flex;align-items:center;gap:18px;min-height:132px;position:sticky;top:0;z-index:6;background:var(--bg);border-bottom:1px solid var(--line);padding:5px 0}
.adviser img{width:112px;height:123px;flex-shrink:0;object-fit:contain}
.adviser-speech{min-width:0;flex:1;padding:12px 0}
.adviser-name{font-size:13px;font-weight:500;color:var(--green)}
.adviser-name>span{color:var(--muted);font-weight:400}
.adviser-quote{font-size:17px;line-height:1.45;margin-top:4px}
.current-task{font-size:14px;line-height:1.5;color:var(--muted);margin-top:7px}
.news-item+.news-item{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.news-item h3{font-size:21px;line-height:1.3;color:var(--ink);margin:6px 0 12px}
.news-date{font-size:13px;color:var(--green)}
.news-changes{margin:16px 0 0;background:var(--pale);border-radius:6px;padding:8px 15px}
.news-changes>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:7px 0}
.news-changes dt{font-size:14px}
.news-changes dd{color:var(--ink);font-weight:500;white-space:nowrap;margin:0;font-variant-numeric:tabular-nums}
.news-dialog{width:600px}
.ws-chart{display:block;width:100%;max-height:420px;margin:10px 0 12px;overflow:visible}
.ws-chart text{fill:var(--muted);font-family:Plex,sans-serif;font-size:14px}
.ps-line{stroke-width:1.5;stroke-dasharray:6 5;opacity:.7}
.ws-trend{stroke-width:2;fill:none}
.ws-point{cursor:help}
.ws-point circle{stroke:white;stroke-width:1.5}
.ws-point:focus{outline:none}
.ws-point:focus circle,.ws-point:hover circle{stroke:var(--ink);stroke-width:3}
.ws-filter{width:230px;max-width:100%}
.ws-legend{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px}
.ws-legend>span{display:flex;align-items:center;gap:7px}
.ws-legend i{height:9px;width:9px;border-radius:50%;flex-shrink:0}
.chart-details{margin-top:16px;font-size:14px}
.chart-details summary{cursor:pointer;color:var(--green)}
.chart-details .table-wrap{margin-top:16px}
.quiz-form{min-height:50px}
.quiz-panel{min-height:240px}
.decision-complete{width:190px;flex-shrink:0;text-align:center;font-size:14px;font-weight:500;color:var(--green)}
.initial-settings[open]>summary{margin-bottom:18px}
.shock-line{stroke:#aa7750;stroke-width:1;stroke-dasharray:3 5;opacity:.6}
.production-summary{font-size:14px}
.stage-guidance{min-height:52px}
.panel p.copy,.quiz-text,.modal-body{font-size:15px}
.status,.badge,.note,.field,th,.game-stage p,.position-item,.text-button,.stage-owner{font-size:14px}
.stage-owner{font-size:12px}
@media(max-width:580px){.adviser{min-height:134px;gap:9px;padding:4px 0}.adviser img{width:80px;height:100px}.adviser-name{font-size:12px}.adviser-name>span{display:none}.adviser-quote{font-size:15px}.current-task{font-size:13px;margin-top:5px}.adviser-speech{padding:5px 0}.ws-panel>.panel-head{flex-direction:column}.ws-filter{width:100%}.news-changes>div{flex-direction:column;gap:3px}.ws-chart text{font-size:13px}.news-item h3{font-size:19px}}
@media(max-width:580px){.effort-footer>.button{width:145px}.application-slot{min-height:108px}.vacancy-scroll{height:360px}.vacancy-table th:first-child{width:23%}.vacancy-table th:last-child{width:36%}.vacancy-table .button{white-space:normal;min-height:48px}.personnel-scroll{height:330px}.stage-guidance{min-height:90px}}
@media(max-width:1000px){.game-shell{width:calc(100% - 48px)}.hiring-grid,.report-grid{gap:18px}.panel{padding:20px}.position-strip{gap:12px 24px}.position-item{font-size:12px}.form-footer{gap:12px}.form-footer>span{max-width:180px}}
@media(max-width:780px){.hiring-grid,.report-grid{grid-template-columns:1fr}.reading-width{max-width:none}.header-actions{gap:16px}.position-strip{gap:12px 25px}.position-item{flex-direction:column;gap:3px}.effort-heading,.choice{grid-template-columns:minmax(170px,1fr) 75px 85px 95px;gap:8px}.time-charts{grid-template-columns:1fr}.production-summary{flex-wrap:wrap;gap:8px}.landing-hero{gap:35px}.landing h1{font-size:46px}}
@media(max-width:580px){.game-shell{width:calc(100% - 32px)}.game-header{min-height:66px;gap:12px;flex-wrap:wrap;padding:12px 0}.brand strong{font-size:15px}.brand img{width:26px;height:26px}.header-actions{gap:15px}.header-actions .text-button{font-size:12px}.demo-tools{order:3}.demo-tools summary{font-size:11px}.game-stage{padding:24px 0 20px;gap:15px}.game-stage h1{font-size:23px}.game-stage p{font-size:12px}.phase-caption strong{font-size:14px}.phase-caption>span{font-size:12px}.position-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-bottom:20px}.position-item{font-size:11px;align-items:flex-start}.position-item strong{font-size:17px}.position-item small{font-size:11px}.navigation-row{gap:15px;flex-wrap:wrap}.game-tabs{gap:20px;flex:1}.game-tabs button,.quiz-link{font-size:12px;padding:12px 0}.quiz-link{margin-left:auto}.workspace{padding:20px 0 24px}.panel{padding:18px}.panel-head{margin-bottom:20px;min-height:0}.panel-head p{font-size:12px}.panel-head h2{font-size:18px}.form-grid{gap:14px}.field{font-size:12px}.input-wrap input{font-size:20px}.form-footer{align-items:center;gap:14px}.form-footer>span{font-size:11px;max-width:170px}.button{padding:10px 13px;font-size:12px}.button.small{padding:7px 10px;font-size:11px}.empty{padding:22px 3px}.bottom-bar{align-items:flex-start;gap:18px}.bottom-bar p{font-size:11px;max-width:170px}.bottom-bar .stage-actions{max-width:180px}.game-header .demo-menu{right:0}.employment-status{gap:14px}.employment-status strong{font-size:14px}.employment-status p{font-size:12px}.vacancy-table{font-size:13px}.vacancy-table th{font-size:10px;white-space:normal}.vacancy-table td.numeric,.vacancy-table th.numeric{padding-right:14px}.application-status{padding:12px;font-size:12px}.effort-heading{display:none}.choice{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px 12px}.choice-name{grid-column:1/-1}.choice-name small{display:inline;font-size:11px;margin-left:8px}.choice-value{font-size:16px;text-align:left;padding-left:27px}.choice-value:before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.effort-comparison{margin-top:0}.quiz-form{gap:9px}.quiz-form input{width:110px}.ledger>div{font-size:13px;gap:12px}.ledger>div:last-child{font-size:18px}.landing{padding:0 22px 30px}.landing-header{height:74px}.prototype{display:none}.landing-hero{grid-template-columns:1fr;padding:36px 0;gap:35px}.landing h1{font-size:46px}.landing-intro{font-size:15px}.landing-footer{flex-direction:column;align-items:flex-start;gap:12px}dialog{padding:22px}}

/* Compact layouts keep the same readable control sizes. */
@media(max-width:580px){
  .header-actions{width:100%;justify-content:flex-end;gap:20px}
  .header-actions .text-button,.demo-tools summary{font-size:13px}
  .game-stage{padding:20px 0 16px}
  .game-stage p,.position-item,.position-item small,.panel-head p,.field,.form-footer>span,.bottom-bar p,.employment-status p{font-size:13px}
  .game-tabs button,.quiz-link,.button,.button.small{font-size:14px}
  .button.small{padding:8px 10px}
  .position-strip{padding-bottom:16px}
  .choice-name small{display:block;margin-left:0;font-size:12px}
  .choice-value:before{font-size:12px}
  .choice-value{padding-left:0}
  .choice-name{font-size:15px}
  .effort-footer>.button,.decision-complete{width:145px;font-size:13px}
  .effort-footer>span{min-height:60px}
  .effort-footer{min-height:90px}
  .stage-guidance{min-height:124px}
  .bottom-bar .stage-actions{flex-shrink:0;width:148px}
  .bottom-bar .stage-actions>.button{width:100%}
  .bottom-bar p{max-width:none}
  .stage-owner{font-size:12px}
  .application-slot{min-height:96px}
  .vacancy-table th{font-size:12px}
  .vacancy-table td.numeric,.vacancy-table th.numeric{padding-right:8px}
  .personnel-scroll th{font-size:12px;white-space:normal}
  .personnel-scroll .status,.personnel-scroll .muted{font-size:12px}
  .chart text{font-size:13px}
  .adviser{min-height:160px}
}
.bottom-bar .button{white-space:normal;text-align:center;overflow-wrap:anywhere;min-height:46px}
#modal-error{margin:0 0 16px}
@media(max-width:580px){.bottom-bar .button{min-height:56px}.stage-guidance{min-height:96px}.initial-settings .form-grid{grid-template-columns:1fr}.initial-settings .field{font-size:14px}}
.demo-tools summary{display:inline-flex;align-items:center;gap:8px;line-height:1.4}
.demo-tools summary::after{content:none}
.demo-tools summary::-webkit-details-marker{display:none}
.demo-tools summary .icon{width:14px;height:14px;stroke-width:1.8;transition:transform .15s ease}
.demo-tools[open] summary .icon{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.demo-tools summary .icon{transition:none}}
.single-chart{grid-template-columns:minmax(0,1fr);max-width:760px;margin:0 auto;width:100%}
.ws-disclosure>summary{font-size:15px;color:var(--green);cursor:pointer;padding:15px 0}
.ws-disclosure[open]>.panel{margin-top:8px}
.demo-tools summary{white-space:nowrap}
.header-actions .demo-tools{flex-shrink:0}
@media(max-width:580px){.header-actions{gap:14px}}
.bottom-bar .stage-guidance:has(.sr-only){min-height:0}
