:root{font-family:Arial,Helvetica,sans-serif;color:#202020;background:#f2f2f2}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:#fff}.topbar{min-height:64px;padding:8px 72px;display:grid;gap:10px;background:#ffd400;color:#000}.setup-page{flex:1;padding:40px 72px;background:#f2f2f2}.setup-card{max-width:1180px;margin:0 auto;padding:28px;border-radius:14px;background:#ffd400}.run-summary-bar{display:flex;align-items:center;gap:10px;padding:6px 20px;background:#ffd400;color:#111;font-size:12px}.run-summary-bar span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-start-button{border:0;border-radius:6px;padding:5px 10px;background:#111;color:#fff;font-size:12px;font-weight:700;cursor:pointer}.filter-controls{display:grid;gap:10px}.filter-controls>label{display:grid;gap:4px;min-width:120px}.check-group{margin:0;padding:0;border:0}.check-group legend{padding:0;font-size:17px;font-weight:700}.check-options{display:grid;gap:2px 18px;margin-top:4px}.check-options.compact{grid-template-columns:repeat(5,max-content)}.check-options.multi-column{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.check-options label{display:flex;align-items:center;gap:6px;min-width:0;min-height:24px;padding:0;background:transparent;font-size:14px}.check-options input{flex-shrink:0}.switch-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:28px;height:16px;border:0;border-radius:999px;background:#c7c7c7;cursor:pointer;transition:background .18s ease}.switch-input:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000047;transition:transform .18s ease}.switch-input:checked{background:#34c759}.switch-input:checked:after{transform:translate(12px)}.switch-input:focus-visible{outline:2px solid #111;outline-offset:2px}.question-count-field input{width:80px;border:0;border-radius:6px;padding:8px 10px;background:#fff}.topbar span{display:block;font-size:13px;font-weight:700}.topbar select{width:100%;border:0;border-radius:6px;padding:8px 12px;background:#fff}.start-button{border:0;border-radius:8px;padding:9px 22px;background:#111;color:#fff;font-weight:700;cursor:pointer}.progress-track{height:24px;background:#ddd}.progress-track div{min-width:42px;height:100%;padding-right:6px;display:flex;align-items:center;justify-content:flex-end;background:#b9b9b9;font-size:12px}.trainer{flex:1;display:grid;grid-template-columns:480px 1fr;gap:18px;padding:0 20px 16px 10px}.image-panel{background:#70706e;min-height:610px;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:10px}.image-panel img{width:100%;max-height:360px;object-fit:contain;background:#70706e}.no-image{min-height:260px;display:flex;align-items:center;justify-content:center;color:#fff;border:1px dashed #aaa}.question-panel{padding:8px 0 20px}.question-meta{text-align:center;font-size:13px;color:#333;margin-bottom:6px}h1{margin:0 0 12px;font-size:24px;font-weight:500}.multi-note{margin:0 0 14px;color:#666;font-size:14px}.answers{display:grid;gap:8px}.answer{min-height:50px;display:grid;grid-template-columns:1fr 28px;gap:12px;align-items:center;padding:10px 14px 10px 16px;background:#dfe6ea;border:2px solid transparent;border-radius:8px;cursor:pointer}.answer input{width:18px;height:18px}.answer small{grid-column:1 / -1;color:#444}.answer.correct{border-color:#2e9d52;background:#e4f4e9}.answer.wrong{border-color:#d24b4b;background:#fae7e7}.strategy-box,.category-box,.result{border-radius:8px;padding:12px 14px;background:#fff8d5;color:#222}.category-box,.strategy-box{margin-top:22px}.category-box{background:#eef3f6}.category-box dl{display:grid;gap:8px;margin:0}.category-box div{display:grid;grid-template-columns:90px 1fr;gap:10px}.category-box dt{color:#555;font-weight:700}.category-box dd{margin:0}.strategy-box h2,.result h2{margin:0 0 8px;font-size:17px}.strategy-box ul{margin:0;padding-left:20px}.strategy-box li+li{margin-top:6px}.result{margin-top:16px}.top-result-panel{padding:10px 20px 0}.top-result-panel .result{margin:0}.result.ok{background:#e4f4e9}.result.error{background:#fae7e7}.navigation{display:flex;justify-content:flex-end;gap:12px;padding:10px 20px;border-bottom:1px solid #eee;background:#fff}.navigation button{border:0;border-radius:14px;padding:13px 24px;cursor:pointer;background:#e5e5e5}.navigation button:disabled{cursor:not-allowed;opacity:.45}.navigation .primary,.navigation .secondary{background:#ffd400;box-shadow:0 3px 8px #0000002e}.statusline{padding:0 20px 10px;color:#666;font-size:12px;text-align:right}.error-message{padding:32px;color:#b00020}.start-panel{flex:1;padding:48px 72px}.start-panel h1{font-size:30px;margin-bottom:12px}.start-panel p{max-width:680px;color:#555;line-height:1.5}@media(max-width:900px){.topbar{height:auto;gap:12px;padding:14px}.setup-page{padding:24px 14px}.setup-card{padding:18px}.filter-controls{gap:10px}.filter-controls>label,.check-group,.check-group.wide{width:100%;min-width:0}.check-options.compact,.check-options.multi-column{grid-template-columns:1fr}.start-button{width:100%}.trainer{grid-template-columns:1fr;padding:10px}.image-panel{min-height:0}.image-panel img{max-height:300px}.navigation{justify-content:stretch}.navigation button{flex:1}}@media(max-width:600px){.topbar{padding:10px;gap:10px}.topbar span{font-size:12px}.topbar select,.question-count-field input,.start-button{min-height:42px}.switch-input{min-height:0}.run-summary-bar{gap:8px;padding:5px 8px}.run-summary-bar span{white-space:nowrap}.trainer{gap:10px;padding:8px}.image-panel{padding:6px}.image-panel img{max-height:220px}.no-image{min-height:120px}.question-panel{padding-bottom:10px}.question-meta{text-align:left;font-size:12px}h1{font-size:20px;line-height:1.25}.answer{min-height:56px;grid-template-columns:1fr 32px;padding:12px}.answer input{width:22px;height:22px}.category-box,.strategy-box{margin-top:12px}.category-box div{grid-template-columns:1fr;gap:2px}.navigation{gap:8px;padding:10px 8px}.navigation button{min-width:0;padding:12px 8px;border-radius:10px;font-size:14px}.start-panel,.error-message{padding:24px 14px}.start-panel h1{font-size:24px}.statusline{padding:0 8px 8px;text-align:left}}
