:root{color-scheme:dark;--bg:#151819;--rail:#0c0f10;--line:#41494b;--text:#f0f2ef;--muted:#a0aaa9;--tab:#353b3d;--green:#83ee9b;--green-bg:#124c28;--fill:#4b5558;--rail-width:58px;font-family:Arial,Helvetica,sans-serif}
:root[data-theme="light"]{color-scheme:light;--bg:#fafaf5;--rail:#e4e7e2;--line:#b9c0b9;--text:#151b17;--muted:#59625c;--tab:#d1d6d0;--green:#104c22;--green-bg:#a7ddad;--fill:#bec8bf}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
button:disabled{cursor:default}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--rail-width);background:var(--rail);display:flex;align-items:center;flex-direction:column;z-index:3}
.logo-space{height:88px;width:100%}
.role-switch{width:50px;height:44px;background:none;border:1px solid var(--muted);border-radius:5px;font-size:10px;font-weight:700}
.theme-switch{display:grid;place-items:center;width:48px;height:48px;margin-top:12px;background:none;border:0}
.theme-switch svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.topbar{position:sticky;top:0;margin-left:var(--rail-width);height:76px;display:flex;background:var(--rail);z-index:2;padding-left:10px}
#phase-tabs{display:flex;gap:4px;align-items:center;overflow-x:auto;scrollbar-width:thin;flex:1;min-width:0;padding:8px 0}
.phase-tab{position:relative;isolation:isolate;overflow:hidden;flex:0 0 auto;min-height:52px;padding:12px 16px;text-align:left;border:2px solid transparent;border-radius:3px;background:var(--tab);color:var(--muted)}
.tab-fill{position:absolute;inset:0 auto 0 0;background:var(--fill);z-index:-1}
.phase-tab[aria-current="step"]{border-color:#fff;color:var(--text)}
:root[data-theme="light"] .phase-tab[aria-current="step"]{background:#fff;border-color:#fff}
.phase-tab.is-complete,.phase-tab.is-complete .tab-fill{background:var(--green-bg);color:var(--green)}
.tab-name{display:block;font-size:14px;font-weight:700;white-space:nowrap}
.abnormals{flex:0 0 112px;border:0;margin-left:8px;background:var(--rail);color:var(--muted);font-size:11px;font-weight:700}
main{margin-left:var(--rail-width);padding:28px clamp(18px,3vw,40px);max-width:1400px}
.list-heading{margin-bottom:18px;border-bottom:4px solid var(--text);padding-bottom:18px}
.aircraft{font-size:11px;font-weight:700;color:var(--muted);margin:0 0 8px}
h1{font-size:28px;font-weight:800;margin:0;text-transform:uppercase;letter-spacing:.01em}
.procedure-title{font-size:19px;font-weight:700;margin:26px 0 12px}
.checklist-items{padding:0;margin:0;list-style:none}
.checklist-item{border-bottom:1px solid var(--line)}
.check-row{display:flex;align-items:baseline;gap:16px;text-align:left;width:100%;min-height:72px;padding:22px 14px;border:0;background:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.item-action,.item-response{font-size:clamp(18px,2.3vw,24px);font-weight:700;line-height:1.3;letter-spacing:.015em}
.item-action{max-width:55%}
.item-response{text-align:right;max-width:43%}
.item-leader{flex:1;min-width:12px;border-bottom:2px dotted var(--muted)}
.check-row[aria-checked="true"]{background:var(--green-bg);color:var(--green)}
.check-row[aria-checked="true"] .item-leader{border-color:var(--green)}
.list-footer{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px}
#completion-status{color:var(--green);font-weight:700}
#reset-button{background:none;border:0;font-size:12px;color:var(--muted);padding:14px 0}
#reset-button:disabled{visibility:hidden}
footer{display:flex;justify-content:space-between;gap:16px;margin-top:24px;color:var(--muted);font-size:10px}
dialog{width:min(560px,calc(100% - 32px));padding:28px;border:2px solid var(--line);border-radius:4px;background:var(--bg);color:var(--text)}
dialog::backdrop{background:#000a}
dialog h2{font-size:23px;margin:0 0 20px}
dialog p{font-size:18px;line-height:1.6}
.note-close{min-height:48px;padding:10px 24px;border:2px solid var(--text);border-radius:3px;background:none;font-weight:700}
@media(max-width:600px){:root{--rail-width:54px}.role-switch{width:46px;font-size:9px}.topbar{height:68px;padding-left:6px}.phase-tab{padding:10px;min-height:48px}.tab-name{font-size:12px}.abnormals{flex-basis:86px;font-size:10px}main{padding:24px 12px}.item-action,.item-response{font-size:16px}.check-row{gap:8px;padding:20px 8px;min-height:68px}h1{font-size:24px}.item-leader{min-width:6px}footer{flex-direction:column}}
