/* UX revision: explicit state, readable feedback and mobile section navigation. */
[hidden]{display:none!important}
:root{scroll-behavior:smooth;scroll-padding-top:155px}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #007b85;outline-offset:4px}
button:disabled{opacity:.48;cursor:not-allowed}
#powerBtn{touch-action:manipulation}
.practice-nav{display:none}
.operation-feedback{position:relative;width:min(100% - 24px,430px);margin:4px auto 10px;padding:13px 15px;border:1px solid #cadbdd;border-left:4px solid #007b85;border-radius:12px;background:#fff;color:#244451;font-size:.88rem;line-height:1.5}
.operation-feedback.warning{border-left-color:#a66d00;background:#fff7dc;color:#664700}
.operation-feedback.danger{border-left-color:#bc2939;background:#fff0f1;color:#8d1d2a;font-weight:600}
.skip-fas{position:relative;padding:12px 16px;margin:0 auto 10px;background:#fff;border:1px solid #007b85;border-radius:10px;color:#006570;min-height:44px;font:inherit;cursor:pointer}
.quality-text,.reading-explanation{font-size:.86rem;line-height:1.5;color:#475569}
.quality-text{padding:10px 0;border-top:1px solid #dde6ea;margin-bottom:0}
#exposureGas{margin-bottom:4px}
.gas-cell strong{font-variant-numeric:tabular-nums}
.gas-cell em{font-size:.56rem;letter-spacing:0}
.gas-cell small{font-size:.7rem}
.lcd-footer{min-height:32px;white-space:normal;line-height:1.4}
.manual-topic p,.guided-card>p{font-size:.875rem;color:#475569;line-height:1.55}
.guide-checklist{grid-template-columns:repeat(2,minmax(0,1fr))}
.guide-checklist li{font-size:.72rem}
.guide-tools button{min-height:44px}
.guide-tool-btn span{display:inline!important}
.guide-coach-copy p,.control-copy p{font-size:.82rem}
.control-coach{max-height:42dvh;overflow:auto}
body.guided-mode .app-footer{padding-bottom:155px}
#scenarioPanel,#instrumentPanel,#readingPanel{min-width:0;scroll-margin-bottom:190px}
@media(max-width:1100px) and (min-width:901px){.topbar{flex-wrap:wrap;height:auto;gap:12px}.workspace{grid-template-columns:260px minmax(280px,1fr)}.data-rail{grid-column:1/-1}.guide-coach{max-width:360px}}
@media(max-width:900px){
  .topbar{position:relative;grid-template-areas:'brand member' 'tools tools' 'state state';padding:12px;gap:10px}
  .member-zone{display:contents}.member-zone .member-dot,.member-zone #memberName{display:none}
  .member-zone #logoutBtn{grid-area:member;justify-self:end}
  .guide-tools{grid-area:tools;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .guide-tool-btn{justify-content:center;font-size:.8rem}
  .topbar-brand b{font-size:1rem}
  .guide-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.guide-checklist li{min-width:0;font-size:.7rem}
  .guide-coach{bottom:calc(72px + env(safe-area-inset-bottom));padding:12px}
  .guide-coach-copy strong{font-size:.9rem}.guide-coach-copy p{display:none}.guide-coach-copy span{font-size:.65rem}
  .control-coach{bottom:calc(72px + env(safe-area-inset-bottom))}
  .practice-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:85;background:#00205b;padding:8px 6px calc(8px + env(safe-area-inset-bottom));gap:4px;box-shadow:0 -4px 18px #00205b22}
  .practice-nav a{display:grid;place-items:center;color:#fff;text-decoration:none;min-height:44px;font-size:.76rem;font-weight:600;border-radius:9px}
  .practice-nav a[aria-current]{background:#007b85}.practice-nav a:focus-visible{outline-color:#ffb600;outline-offset:0}
  .app-footer,body.guided-mode .app-footer{padding-bottom:200px}
  .operation-feedback{font-size:.875rem}.quick-actions button small{font-size:.75rem}
  .panel{padding:18px}.guide-card-actions button{font-size:.8rem;min-height:44px}
  .metric-grid article small{font-size:.75rem}
  .dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1;min-width:115px}
  .lcd{min-height:210px}.gas-cell strong{font-size:2rem}
  :root{scroll-padding-top:16px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
