:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#28312f;background:#f6f7f8;letter-spacing:0;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit;font-size:16px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:#526d61;text-underline-offset:4px}header{max-width:960px;margin:auto;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}header>a:last-child{font-size:12px;white-space:nowrap}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:14px;font-weight:600}.brand img{width:28px;height:28px;border-radius:5px}main{max-width:800px;margin:16px auto 0;padding:0 24px 32px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}h1{font-size:28px;margin:12px 0 22px}#saved{font-size:11px;color:#75857c;text-align:right}.steps{display:flex;gap:24px;border-bottom:1px solid #e1e6e4;padding-bottom:14px;font-size:12px;color:#8d9791}.steps .current{color:#286653;font-weight:600}section{padding:26px 0;border-bottom:1px solid #e1e6e4}h2{font-size:17px;margin:0 0 20px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}label{display:grid;gap:8px;min-width:0;font-size:13px;line-height:1.6}input:not([type=checkbox]),select,textarea,.wheel-trigger{width:100%;min-width:0;border:1px solid #dde3e0;border-radius:6px;background:linear-gradient(180deg,#f9fafb,#fff 65%);padding:12px;color:#28312f;box-shadow:inset 0 1px 2px #24313d06}input:not([type=checkbox]),select,.wheel-trigger{min-height:48px}textarea{min-height:100px;resize:vertical;line-height:1.7}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #b6d4c6;outline-offset:2px}.wheel-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-size:14px}.wheel-trigger svg{width:16px;height:16px;flex-shrink:0;color:#87958c}.crew-row{padding:18px 0;border-top:1px solid #e1e6e4}.crew-row:first-child{padding-top:0;border:0}.crew-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.crew-heading h3{font-size:14px;margin:0}.crew-heading label{display:flex;align-items:center;gap:7px}input[type=checkbox]{width:19px;height:19px;accent-color:#286653;flex-shrink:0}.report-checks{display:flex;gap:22px;flex-wrap:wrap}.report-checks label{display:flex;align-items:center;gap:8px}.report-checks input{appearance:none;border:1px solid #bac9c1;border-radius:50%;background:#fff}.report-checks input:checked{background:#286653;box-shadow:inset 0 0 0 4px #fff}.question{margin:0 0 22px}.question-title{display:flex;align-items:baseline;gap:8px}.requirement{font-size:11px;color:#a3534e}.optional{color:#8a9590}.condition{margin:0 0 18px}.condition label{display:flex;align-items:center;gap:8px}.condition select{margin-top:8px}.reference{font-size:12px;line-height:1.8;color:#78857e}.reference summary{cursor:pointer}.reference p{white-space:pre-wrap}.actions{display:flex;gap:12px;padding:24px 0}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:6px;font-size:14px}.primary{border:0;background:linear-gradient(155deg,#37755e,#20523f);color:#fff;box-shadow:inset 0 1px 0 #ffffff35,0 5px 12px -6px #20523f65}.secondary{border:1px solid #d7dfdb;background:#fff;color:#4a6558}.primary svg{width:17px;height:17px}.actions #next{flex:1}#error{font-size:13px;color:#aa403b;line-height:1.8;white-space:pre-wrap}pre{font:inherit;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 22px}#copyStatus{font-size:12px;color:#527261}.history{border-top:1px solid #e1e6e4;padding:18px 0;color:#657c6f;font-size:13px}.history summary{cursor:pointer}.history details{padding:12px 0}.history pre{margin-top:16px}footer{max-width:800px;margin:auto;padding:20px 24px 30px;display:flex;justify-content:space-between;gap:14px;font-size:10px;color:#8c9690}
#wheelDialog{width:min(640px,calc(100% - 24px));padding:20px;border:1px solid #ffffffb3;border-radius:8px;background:#fff;color:inherit;box-shadow:0 24px 72px -24px #24313d65;max-height:90dvh;overflow:auto}#wheelDialog::backdrop{background:#17251d75;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-heading h2{margin:0;font-size:18px}.icon-button{display:grid;place-items:center;border:0;background:none;width:36px;height:36px;color:#708077}.icon-button svg{width:20px;height:20px}#wheelColumns{display:flex;gap:6px;margin-bottom:20px;min-width:0}.wheel-column{flex:1;min-width:0;text-align:center}.wheel-label{font-size:11px;color:#7a8880;margin-bottom:10px}.wheel-frame{position:relative}.wheel-frame:after{content:"";position:absolute;left:0;right:0;top:80px;height:40px;pointer-events:none;border-block:1px solid #d9e5de;background:#28665308}.wheel{height:200px;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;padding:80px 0;position:relative}.wheel::-webkit-scrollbar{display:none}.wheel button{display:block;width:100%;height:40px;min-height:40px;padding:0;border:0;background:none;font-size:16px;color:#7e8a83;scroll-snap-align:center;white-space:nowrap}.wheel button.selected{color:#20523f;font-weight:650}.flight-prefix{align-self:center;font-size:21px;font-weight:600;margin-right:8px}#confirmWheel{width:100%}@media(max-width:520px){header{padding:14px 20px}main{padding:0 20px 24px;margin-top:8px}h1{font-size:25px}.steps{gap:0;justify-content:space-between;font-size:11px}.report-checks{flex-direction:column;gap:16px}.wheel-trigger{font-size:13px;padding:10px 8px}.fields{gap:16px 12px}#wheelDialog{padding:18px 12px}.wheel button{font-size:15px}.wheel-label{font-size:10px}footer{padding-inline:20px}#wheelDialog .dialog-heading{padding:0 6px}}
#reportForm .choice-field,.completion-choice{border:0;margin:0;padding:0;min-width:0}
.choice-field legend,.completion-choice legend{font-size:13px;line-height:1.6;padding:0;margin-bottom:8px}
.inline-choice{display:flex;gap:8px;min-width:0}
.inline-choice label{position:relative;flex:1;cursor:pointer}
.inline-choice input[type=radio]{position:absolute;opacity:0;inset:0;width:100%;height:100%;padding:0;margin:0;min-height:0;cursor:pointer}
.inline-choice span{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;border-radius:6px;background:#edf1ef;color:#718077;font-size:14px;box-shadow:inset 0 1px 0 #fff}
.inline-choice input:checked+span{background:#e0eee7;color:#20523f;font-weight:600;box-shadow:inset 0 1px 0 #ffffff90,0 3px 10px -6px #20523f70}
.inline-choice input:focus-visible+span{outline:2px solid #b6d4c6;outline-offset:2px}
.crew-seat .crew-heading{padding:12px 14px;margin-bottom:18px;background:linear-gradient(120deg,#e1eee7,#f2f6f4);border-radius:6px}
.crew-seat .crew-heading h3{font-size:21px;font-weight:650;color:#20523f}
.crew-seat-1 .crew-heading{background:linear-gradient(120deg,#e5eaf1,#f3f5f8)}
.crew-seat-1 .crew-heading h3{color:#3a5877}
.report-checks{display:grid;grid-template-columns:1fr;gap:18px}
.report-checks .completion-choice{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px;align-items:center}
.completion-choice legend{float:left;width:180px;margin:0;font-size:14px}
.report-checks .inline-choice{grid-column:2}
.report-checks .inline-choice label{display:block}
@media(max-width:520px){.report-checks .completion-choice{grid-template-columns:minmax(120px,1fr) minmax(0,1.3fr);gap:8px}.completion-choice legend{width:auto;font-size:12px}.report-checks .inline-choice{gap:6px}.report-checks .inline-choice span{padding:10px 6px;font-size:12px}.crew-seat .crew-heading h3{font-size:20px}}
#validationDialog{width:min(440px,calc(100% - 32px));max-height:80dvh;overflow:auto;border:1px solid #ffffffb3;border-radius:8px;padding:24px;background:#fff;color:#28312f;box-shadow:0 24px 72px -24px #24313d65}
#validationDialog::backdrop{background:#17251d75;backdrop-filter:blur(3px)}
#validationList{font-size:14px;line-height:1.9;padding-left:22px;overflow-wrap:anywhere;margin:0 0 20px}
#dismissValidation{width:100%}
#reportForm .registration-input{display:flex;align-items:center;min-width:0;min-height:48px;border:1px solid #dde3e0;border-radius:6px;background:linear-gradient(180deg,#f9fafb,#fff 65%)}
.registration-input>span{padding-left:12px;font-size:16px;color:#28312f;flex-shrink:0}
#reportForm .registration-input input{border:0;background:transparent;box-shadow:none;padding-left:5px}
#reportForm .is-missing{color:#b33a3a}
#reportForm .is-missing input:not([type=hidden]),#reportForm .is-missing select,#reportForm .is-missing textarea,#reportForm .is-missing .wheel-trigger,#reportForm .is-missing .registration-input{border-color:#c65050;box-shadow:0 0 0 1px #c6505020}
#reportForm .is-missing .inline-choice span{background:#fbe9e7;color:#b33a3a}
#reportNotice{width:min(580px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #ffffffb3;border-radius:8px;background:linear-gradient(145deg,#fff,#f8fafb);color:#28312f;box-shadow:0 24px 72px -24px #24313d65;overflow:hidden}
#reportNotice[open]{display:flex;flex-direction:column}
#reportNotice::backdrop{background:#17251d75;backdrop-filter:blur(3px)}
.notice-heading{display:flex;align-items:center;gap:12px;padding:22px 24px 18px;flex-shrink:0}
.notice-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:6px;background:#fff0d6;color:#a86a17}
.notice-icon svg{width:24px;height:24px}.notice-heading p{font-size:11px;color:#8b958f;margin:0 0 4px}.notice-heading h2{font-size:23px;margin:0}.notice-heading h2:focus{outline:none}
.notice-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 24px}
.notice-content section{padding:18px 0}.notice-content section:first-child{padding-top:4px}.notice-content section:last-child{border-bottom:0}
.notice-content h3{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;margin:0 0 12px}.notice-channel-icon{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:6px;background:#e8efeb;color:#286653}.notice-channel-icon svg{width:20px;height:20px}.notice-phone .notice-channel-icon{background:#f8e9e5;color:#a1473a}.notice-content p{font-size:14px;line-height:1.9;margin:0}.notice-phone h3{color:#a1473a}.notice-phone strong{color:#a1473a;font-weight:600}
.notice-times{margin:0;display:grid;gap:12px;font-size:13px;line-height:1.7}.notice-times>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px}.notice-times dt{color:#77867d}.notice-times dd{margin:0}.notice-times strong{font-size:16px;color:#286653;font-weight:650}
.notice-actions{padding:16px 24px 20px;border-top:1px solid #e1e6e4;background:#fff;flex-shrink:0}.notice-actions button{width:100%}
@media(max-width:520px){.notice-heading{padding:20px 18px 16px}.notice-content{padding:0 18px}.notice-actions{padding:14px 18px 18px}.notice-times>div{grid-template-columns:110px minmax(0,1fr);gap:8px}.notice-times{font-size:12px}.notice-content h3{font-size:14px}.notice-content p{font-size:13px}.notice-times strong{font-size:15px}}
.fourth-member{border-top:1px solid #e1e6e4;padding-top:16px}.fourth-member>summary{cursor:pointer;color:#526d61;font-size:14px;padding:12px 0;min-height:44px}.fourth-member .crew-row{border:0}
.report-bottom-actions{align-items:center;gap:16px}.report-bottom-actions #missingCount{font-size:12px;color:#657c6f;min-width:130px}
#validationList{list-style:none;padding:0}#validationList button{display:block;min-height:44px;width:100%;border:0;border-bottom:1px solid #e5e9e6;background:none;color:#a1473a;font-size:14px;padding:10px 0;text-align:left;cursor:pointer;text-underline-offset:4px}
#eventDialog,.report-preview{width:min(600px,calc(100% - 28px));max-height:86dvh;padding:0;border:1px solid #ffffffb3;border-radius:8px;background:#fff;color:#28312f;box-shadow:0 24px 72px -24px #24313d65;overflow:hidden}
#eventDialog[open],.report-preview[open]{display:flex;flex-direction:column}
#eventDialog::backdrop,.report-preview::backdrop{background:#17251d75;backdrop-filter:blur(3px)}
#eventDialog>.dialog-heading,.report-preview>.dialog-heading{padding:18px 20px;margin:0;border-bottom:1px solid #e1e6e4;flex-shrink:0}
#eventSearch{margin:16px 20px;width:calc(100% - 40px);flex-shrink:0}
#eventOptions{padding:0 20px 20px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
#eventOptions h3{font-size:12px;color:#7b8981;margin:16px 0 10px}.common-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.event-option{display:block;width:100%;min-height:48px;border:0;border-bottom:1px solid #edf0ee;padding:12px 8px;background:white;color:#344c40;font-size:14px;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
.common-events .event-option{background:#f2f6f4;border-radius:6px;border:0}.event-option.selected{color:#20523f;background:#e0eee7;font-weight:600}
.preview-body{padding:20px;min-height:0;overflow-y:auto;overscroll-behavior:contain}.preview-body pre{margin:0}
.preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 20px;border-top:1px solid #e1e6e4;flex-shrink:0;background:#fff}.preview-actions #copyStatus{grid-column:1/-1;margin:0;font-size:12px}.preview-actions #copyStatus:empty{display:none}
@media(max-width:520px){
 .fields{grid-template-columns:minmax(0,1fr)}.crew-row .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .crew-row .fields>label:has([data-crew=name]),.crew-row .fields>label:has([data-crew=brigade]),.crew-row .fields>label:has([data-crew=squadron]){grid-column:1/-1}
 .crew-row:not(.crew-seat) .fields>label:has([data-crew=level]){grid-column:1/-1}
 body{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 .report-bottom-actions{position:fixed;z-index:10;inset:auto 0 0;margin:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(12px);border-top:1px solid #e1e6e4;box-shadow:0 -6px 24px -20px #24313d50}
 .report-bottom-actions #missingCount{min-width:108px;font-size:11px}
 #eventDialog{width:calc(100% - 24px);max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:8px;padding-bottom:env(safe-area-inset-bottom)}
 .report-preview{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .preview-actions{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
}
.heading-tools{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:0}
.flight-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.flight-heading h2{margin:0}
#clearReport{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e1e6e4;border-radius:6px;background:linear-gradient(180deg,#fff,#f5f7f6);color:#65776c;padding:12px 16px;min-height:48px;font-size:14px;white-space:nowrap;box-shadow:0 3px 10px -6px #24313d40}
#clearReport svg{width:18px;height:18px}#clearReport:hover{color:#a1473a}
dialog{position:fixed;inset:0;margin:auto}
html.report-modal-open{overflow:hidden;overscroll-behavior:none}
html.report-modal-open body{position:fixed;top:var(--report-scroll-top);left:0;right:0;width:100%;overflow:hidden}
dialog::backdrop{touch-action:none;overscroll-behavior:none}
.offline-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;font-size:11px;color:#75857c}.offline-tools button{border:0;background:none;padding:8px 0;min-height:36px;font-size:12px;color:#526d61;text-decoration:underline;text-underline-offset:4px}
.field-guidance{font-size:12px;line-height:1.8;color:#75857c;margin:10px 0 18px}.choice-field .field-guidance{margin-bottom:0}.notice-content .notice-principle{color:#a1473a;font-weight:600;font-size:13px;padding-bottom:14px}.notice-content .notice-times{margin-top:14px}.notice-content .notice-detail{font-size:12px;color:#75857c;margin-top:14px}.notice-exceptions{font-size:12px;line-height:1.8;margin-top:16px;color:#526d61}.notice-exceptions summary{cursor:pointer;min-height:44px;padding:10px 0}.notice-exceptions p+p{margin-top:12px}
#installHelp{width:min(440px,calc(100% - 32px));max-height:80dvh;overflow:auto;padding:24px;border:1px solid #e1e6e4;border-radius:8px;background:#fff;color:#28312f;box-shadow:0 24px 72px -24px #24313d65}#installHelp::backdrop{background:#17251d75;backdrop-filter:blur(3px)}#installHelp p{font-size:13px;line-height:1.8}
:root{--muted:#637168}
button,input,select,textarea{letter-spacing:0}button,a,summary{touch-action:manipulation}
.field-guidance,.offline-tools,.heading-tools{color:#637168}
.fields{align-items:start}
.fields>label{align-content:start}
.flight-heading+.fields>label{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.flight-heading+.fields>label>input[type=hidden]{display:none!important}
.flight-heading+.fields :is(.wheel-trigger,select,.inline-choice span){height:48px;min-height:48px;line-height:22px}
.flight-heading+.fields select{padding-block:12px}
.flight-heading+.fields #otherModel{margin-top:4px;min-height:48px}
.fields :is(input,select,.wheel-trigger){min-height:48px;border-color:#dce4de;box-shadow:inset 0 1px 2px #263c3205}
.crew-row{border-color:#e4e9e6}
dialog::backdrop{background:#243a315c;backdrop-filter:blur(4px)}
:is(#eventDialog,#installHelp,.report-preview){border-color:#ffffffb3;background:linear-gradient(145deg,#fff,#f3f6f5);box-shadow:inset 0 1px 0 #fff,0 24px 80px -28px #263c3270}
.dialog-heading{gap:14px}.dialog-heading h2{font-size:19px;font-weight:600;line-height:1.6}
.notice-content{line-height:1.85}
@media(max-width:600px){.page-heading{gap:12px}.page-heading h1{font-size:26px}.flight-heading{gap:12px}.fields{row-gap:20px}#clearReport{font-size:13px;min-height:46px;padding:10px 14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
