@font-face{font-family:SUIT;src:url('fonts/SUIT-Regular.woff2')}@font-face{font-family:SUIT;src:url('fonts/SUIT-Bold.woff2');font-weight:700}
:root{--ink:#303c3b;--muted:#65716c;--paper:#faf8f2;--line:#dcdace;--blue:#087fbe;--gold:#b39461;--wood:#e4d6b9}
*{box-sizing:border-box}body{margin:0;background:#f0eee7;color:var(--ink);font-family:SUIT,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,input,summary,a{touch-action:manipulation}button{min-height:46px;border:1px solid var(--line);border-radius:12px;background:#fffdf7;color:var(--ink);font-weight:700;cursor:pointer;padding:10px 16px;transition:background .14s,box-shadow .14s,transform .1s}button:hover:not(:disabled){background:#e9eee8}button:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 5px #23363025}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #0078b4;outline-offset:3px}a{color:#146d95}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.8px}h3{font-size:20px;margin-bottom:12px}p{line-height:1.6}.help,.small{font-size:13px;color:var(--muted);line-height:1.7}.small{font-size:12px}.masthead{height:82px;display:flex;align-items:center;gap:20px;padding:0 30px;background:#fbf9f3;border-bottom:1px solid #dedbcf}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:20px;letter-spacing:-.7px;white-space:nowrap}.brand svg{width:43px;height:39px;fill:none;stroke:#a58754;stroke-width:1.5;stroke-linejoin:round}.workshop-nav{margin-left:auto;display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;min-width:144px;font-size:18px;border-color:#c6b18b;background:#efe6d3;box-shadow:0 3px 10px #8c774a14}.workshop-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.workshop-nav.active{background:#3d514b;color:#fffdf5;border-color:#3d514b;box-shadow:0 4px 12px #3d514b25}.masthead nav{display:flex;padding:4px;background:#efeee6;border-radius:13px;gap:4px}.masthead nav button{border:0;background:none;color:#65716b;min-width:87px;font-size:14px;padding:9px 12px}.masthead nav .active{background:#fffdf8;color:#35443f;box-shadow:0 2px 7px #4e493414}.icon-button{font-size:24px;background:none;border:0;min-width:44px;padding:8px}
.app{height:calc(100dvh - 119px);min-height:570px;max-width:1800px;margin:auto;padding:18px 24px 12px;display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:18px}.flight-deck{display:grid;grid-template-rows:minmax(0,1fr) 140px;gap:10px;min-width:0;min-height:0}.stage{position:relative;overflow:hidden;border-radius:20px;border:1px solid #d4d3c4;background:#d4c29f;box-shadow:0 10px 30px #4c59301a;min-height:300px}#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%}.stage-heading{pointer-events:none;position:absolute;top:0;left:0;right:0;padding:26px 28px 35px;background:linear-gradient(#faf8ecdc,#faf8ec69 72%,#faf8ec00)}.stage-heading>span{font-size:12px;color:#6b6e5f;font-weight:700}.stage-heading h1{font-size:clamp(24px,2.5vw,38px);margin:10px 0 8px;line-height:1.2}.stage-heading p{font-size:13px;color:#51604f;background:#fffdf0d9;padding:5px 9px;border-radius:6px;width:fit-content;max-width:95%}.mission-pill{position:absolute;right:20px;top:20px;max-width:45%;background:#f8f2e4ec;border:1px solid #d7c6a4;color:#74603d;border-radius:24px;padding:9px 14px;font-size:12px;font-weight:700}.plane-info{position:absolute;left:24px;bottom:20px;display:flex;gap:12px;color:#5c5a48;font-size:12px}.plane-info span+span{border-left:1px solid #988d70;padding-left:12px}.dimension{position:absolute;bottom:16%;left:30%;right:30%;text-align:center;color:#52635c;font-size:12px;pointer-events:none}.dimension span{display:inline-block;background:#f8f5e5d9;padding:4px 7px;border-radius:5px}.dimension i{display:block;position:relative;height:1px;background:#707f6a;margin-top:7px}.dimension i:before,.dimension i:after{content:'';position:absolute;bottom:-4px;height:9px;width:1px;background:#707f6a}.dimension i:before{left:0}.dimension i:after{right:0}.view-tools{position:absolute;right:18px;bottom:13px;display:flex;align-items:center;gap:8px;font-size:12px}.view-tools button{width:44px;min-height:44px;font-size:22px;padding:6px;background:#fffbeded}.wind-badge{position:absolute;left:20px;bottom:20px;display:flex;gap:10px;align-items:center;padding:12px 16px;border:1px solid #d7dfc9;border-radius:14px;background:#fffdf2e8;box-shadow:0 3px 15px #31432715}.wind-badge>span{font-size:31px;color:#39809a}.wind-badge strong{display:block;font-size:14px}.wind-badge small{display:block;font-size:12px;margin-top:4px;color:#677361}.target-badge{position:absolute;right:20px;bottom:20px;border-radius:20px;background:#fffdf1e8;border:1px solid #d0ddd2;color:#326474;font-size:13px;font-weight:700;padding:11px 15px}.flight-readout{position:absolute;top:145px;left:26px;display:flex;gap:14px;background:#fafbefd9;padding:10px 14px;border-radius:12px;color:#294b48;font-size:14px;font-weight:700}.trail-legend{position:absolute;right:20px;bottom:70px;display:flex;gap:12px;background:#fffbedda;padding:8px 12px;border-radius:10px;font-size:11px}.trail-legend span:first-child{color:#087daa}.trail-legend span:last-child{color:#856d49}#webglError{position:absolute;inset:25% 10%;background:#fffaf0;padding:24px;border-radius:16px;line-height:1.7;text-align:center}
.flight-dock{background:#fffdf6;border:1px solid #d7d8c9;border-radius:18px;display:grid;grid-template-columns:minmax(0,1fr) 234px;gap:24px;padding:17px 20px;align-items:center;box-shadow:0 6px 20px #4c573010;min-width:0}#dockContent{min-width:0}.dock-message strong{display:block;font-size:18px;line-height:1.4;letter-spacing:-.5px}.dock-message>span{display:block;margin-top:6px;font-size:12px;color:#637266;line-height:1.55}.primary{min-height:58px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px;font-size:18px;border:1px solid #0876ac;background:linear-gradient(160deg,#199ace,#087bb8);color:white;border-radius:13px;box-shadow:0 4px 10px #0781b925;white-space:nowrap}.primary:hover:not(:disabled){background:#096fa5}.primary svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.dock-cancel{display:block;margin:0 auto -4px;border:0;background:none;min-height:44px;font-size:12px;color:#60756c;padding:4px 12px}body[data-phase=charging] .primary{background:#174e68;border-color:#16485e;box-shadow:0 0 0 3px #168abe22}.gauge-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}.gauge-heading>strong{font-size:14px}.gauge-heading b{font-size:29px;line-height:1;color:#147da7;font-variant-numeric:tabular-nums}.gauge-heading small{font-size:12px;color:#557168;margin-left:3px}.gauge-track{height:18px;border-radius:12px;border:1px solid #cbd8cf;position:relative;background:#e2e9dd;margin:0 4px;isolation:isolate}#gaugeFill{position:absolute;inset:0;transform-origin:left center;transform:scaleX(0);background:linear-gradient(90deg,#86c4c4,#168bc1);border-radius:12px}#gaugeNeedle{position:absolute;top:-5px;bottom:-5px;width:5px;transform:translateX(-50%);border-radius:3px;background:#17475a;border:1px solid #fff;box-shadow:0 1px 4px #183a4a55}.previous-mark{position:absolute;top:-6px;bottom:-6px;border-left:2px dashed #96723a;z-index:1;pointer-events:none}.gauge-ticks{position:absolute;inset:0;display:flex;justify-content:space-evenly}.gauge-ticks i{height:100%;border-left:1px solid #ffffff80}.gauge-foot{display:flex;justify-content:space-between;gap:5px;margin-top:9px;font-size:10px;color:#5e7165}.gauge-foot span:nth-child(2){text-align:center}.flight-progress{height:4px;border-radius:4px;background:#e2e7d9;margin-top:14px;overflow:hidden}.flight-progress i{display:block;height:100%;background:#1688b8;transform-origin:left;transform:scaleX(0)}
.controls{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dedcd1;border-radius:20px;background:var(--paper);box-shadow:0 6px 24px #5e563209}.workbench-heading{padding:20px 21px 17px;display:flex;gap:10px;align-items:center;border-bottom:1px solid #e5e1d5}.workbench-heading h2{font-size:22px;margin:0;flex:1}.bench-icon{color:#ae8954;font-size:28px}.bench-dot{width:7px;height:7px;border-radius:50%;background:#719b76}.editor-tabs{display:flex;margin:16px 18px 0;background:#e9e9df;border-radius:10px;padding:4px;gap:4px}.editor-tabs button{flex:1;min-height:42px;padding:8px;border:0;background:none;font-size:14px}.editor-tabs button[aria-pressed=true]{background:#fffdf6;color:#215c66;box-shadow:0 1px 5px #48523c12}#controlContent{overflow:auto;flex:1;min-height:0;padding:20px;scrollbar-width:thin;scrollbar-color:#c5c8b5 transparent}.section-heading{display:flex;align-items:baseline;gap:8px;justify-content:space-between}.section-heading h3{font-size:17px;white-space:nowrap}.section-heading span{font-size:11px;color:#697265}.preset-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:2px 0 22px}.preset{padding:10px 4px 8px;font-size:12px;background:#efece2;min-height:88px}.preset svg{display:block;width:57px;height:40px;margin:0 auto 4px;fill:#e7dfcc;stroke:#9e9277;stroke-width:1}.preset[aria-pressed=true]{border-color:#3a8da3;background:#eaf5f6;box-shadow:0 0 0 1px #3a8da3}.preset[aria-pressed=true] svg{fill:#f9fbf2;stroke:#487e8c}.parts{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;border-top:1px solid #e0dfd2;padding-top:15px;margin-bottom:17px}.parts button{font-size:12px;padding:7px 2px;min-height:46px;background:none}.parts button[aria-pressed=true]{background:#435c51;border-color:#435c51;color:#fff}.range-block{margin:15px 0 18px}.range-label{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700;gap:8px}.range-label output{font-size:20px;color:#27768e;white-space:nowrap;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:44px;accent-color:#2187a6;cursor:pointer;margin:5px 0}.range-ends{display:flex;justify-content:space-between;color:#627366;font-size:12px}.segmented{display:flex;gap:8px}.segmented button{flex:1;font-size:13px}.segmented button[aria-pressed=true]{border-color:#468794;background:#edf5ef}.check{display:flex;align-items:center;gap:10px;min-height:48px;font-size:14px}input[type=checkbox]{width:22px;height:22px;accent-color:#187f9f}.design-measures{display:flex;gap:30px;background:#eeeee2;border-radius:12px;padding:13px 16px;margin-top:20px;font-size:11px;color:#697364}.design-measures strong{display:block;margin-top:4px;font-size:17px;color:#46594b}.text-button{min-height:44px;font-size:12px;border:0;background:none;color:#4d7778;padding:8px 2px;text-decoration:underline;text-underline-offset:4px}.secondary{width:100%;min-height:48px;margin-top:14px;background:#f1f1e7;font-size:14px}.mission-banner{border-left:3px solid #b59459;padding:2px 0 3px 12px;margin-bottom:18px}.mission-banner>span{font-size:10px;color:#8b7755;margin-right:8px}.mission-banner strong{font-size:14px}.mission-banner p{font-size:12px;line-height:1.6;color:#6b7464;margin:5px 0 0}.plane-card{text-align:center;padding:14px 0 20px;border-bottom:1px solid #e0e1d5}.plane-card svg{display:block;width:130px;height:84px;fill:#f5f1df;stroke:#879b88;stroke-width:.8;margin:auto}.plane-card strong{display:block;font-size:20px;margin-top:8px}.plane-card span{display:block;font-size:12px;color:#6b786a;margin-top:5px}.flight-settings{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:20px 0}.flight-settings span{display:block;font-size:11px;color:#617465;margin-bottom:8px}.flight-settings strong{font-size:15px}.flight-power{font-size:14px;color:#5a7065}.flight-power strong{font-size:25px;color:#14789e;margin-left:8px}.environment-note{padding:16px;background:#edf0e5;border-radius:12px;font-size:13px;margin-top:18px}.environment-note p{font-size:12px;margin:8px 0 0;color:#637465}details{margin-top:18px;border-top:1px solid #dedfd1;padding-top:7px}summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:14px;font-weight:700;cursor:pointer;list-style:none}summary:after{content:'＋';font-size:21px;color:#6b826c}details[open]>summary:after{content:'−'}select{width:100%;min-height:46px;border:1px solid #cfd4c5;border-radius:10px;padding:10px;background:#fffdf7;color:var(--ink);margin:8px 0}label[for=windDirection]{font-size:13px;font-weight:700}
.result-heading>span{font-size:11px;color:#6b7a69}.result-heading h3{font-size:23px;margin:7px 0 15px}.result-heading.success h3{color:#29634f}.metric{margin:10px 0;color:#207c9b}.metric strong{font-size:44px;line-height:1;letter-spacing:-2px;font-variant-numeric:tabular-nums}.metric>span{font-size:18px;margin-left:6px}.metric small{display:block;color:#637466;font-size:11px;margin-top:7px}.landing-words{font-size:13px;color:#4d675c;margin:13px 0 10px;line-height:1.75}.landing-map{margin:12px 0;border:1px solid #dce3d4;background:#f0f4e9;border-radius:14px;padding:3px 6px 10px}.landing-map svg{display:block;width:100%;height:145px}.landing-map figcaption{font-size:10px;text-align:center;color:#697460}.landing-map figcaption span{color:#91733e}.improvement{font-size:13px;color:#246f8a;font-weight:700;line-height:1.6}.result-stats{display:flex;justify-content:space-between;font-size:11px;color:#647764;margin:16px 0}.result-stats b{color:#344f46;margin-left:5px}.mission-tip{font-size:13px;background:#f6ebd6;border-radius:10px;padding:12px;line-height:1.6;color:#806338}
footer{max-width:1800px;margin:auto;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:0 28px 8px;color:#697561;font-size:11px;min-height:29px}footer button{background:none;border:0;font-size:11px;min-height:28px;padding:3px;color:#697561;white-space:nowrap}.save-error{color:#9b581d!important}dialog{background:var(--paper);color:var(--ink);border:1px solid #d8d8ca;border-radius:23px;padding:32px;max-width:530px;width:calc(100% - 28px);box-shadow:0 30px 90px #1b352c30}dialog::backdrop{background:#25382e66;backdrop-filter:blur(5px)}dialog h2{font-size:25px;margin:13px 0 17px}dialog p{font-size:14px;color:#637262;line-height:1.7}.close{position:absolute;right:12px;top:10px;border:0;background:none;font-size:26px;width:44px;padding:4px}.dialog-label{font-size:12px;color:#8d7248}.mission-card{width:100%;display:flex;align-items:center;gap:15px;text-align:left;margin:10px 0;padding:17px 14px}.mission-card>span{font-size:25px;color:#aa8c5b;font-weight:400}.mission-card strong{font-size:16px}.mission-card small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:#677763;line-height:1.65}.doc-links{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin-top:22px}
@media(min-width:1450px){.app{grid-template-columns:minmax(0,1fr) 388px}.masthead{padding-left:36px;padding-right:36px}.flight-deck{grid-template-rows:minmax(0,1fr) 146px}.flight-dock{grid-template-columns:minmax(0,1fr) 270px;padding:20px 25px}#controlContent{padding:24px}.workbench-heading{padding:23px}.stage-heading{padding:32px}}
@media(max-width:1100px){.masthead{padding:0 20px;gap:12px;height:72px}.brand{font-size:17px;gap:9px}.brand svg{width:35px}.workshop-nav{min-width:122px;font-size:17px;min-height:48px}.app{height:calc(100dvh - 109px);padding:14px 16px 10px;grid-template-columns:minmax(0,1fr) 310px;gap:12px}.flight-deck{grid-template-rows:minmax(0,1fr) 140px}.flight-dock{grid-template-columns:minmax(0,1fr) 190px;gap:16px;padding:15px}.primary{font-size:16px;gap:6px}.dock-message strong{font-size:16px}.dock-message>span{font-size:11px}.gauge-heading>strong{font-size:12px}.gauge-foot{font-size:11px}#controlContent{padding:17px}.workbench-heading{padding:17px}.stage-heading{padding:23px}.stage-heading h1{font-size:28px}.mission-pill{top:auto;bottom:64px;right:16px;max-width:70%}.wind-badge{left:16px;bottom:16px;padding:10px 12px}.target-badge{right:16px;bottom:17px}.preset-row{gap:6px}.preset{font-size:11px}.range-label{font-size:13px}.range-label output{font-size:18px}}
@media(max-width:900px){.masthead{height:auto;min-height:106px;flex-wrap:wrap;padding:12px 14px;gap:8px 12px}.brand{flex:1;font-size:18px}.brand svg{width:32px}.icon-button{order:2}.workshop-nav{order:3;margin:0;min-height:46px;flex:1}.masthead nav{order:4;flex:1}.masthead nav button{flex:1;min-width:70px;padding:8px;font-size:13px}.app{height:auto;min-height:0;display:flex;flex-direction:column;padding:10px;gap:12px}.flight-deck{grid-template-rows:270px 118px;gap:8px;flex:none}.stage{min-height:0;border-radius:16px}.flight-dock{grid-template-columns:minmax(0,1fr) 184px;gap:12px;border-radius:15px;padding:14px}.stage-heading{padding:18px 20px 28px}.stage-heading h1{font-size:24px;margin:7px 0}.stage-heading p{font-size:11px}.stage-heading>span{font-size:10px}.controls{border-radius:16px;max-height:470px}.workbench-heading{padding:13px 18px}.workbench-heading h2{font-size:20px}.editor-tabs{margin:10px 14px 0}#controlContent{padding:16px;min-height:180px;max-height:340px}.dimension{bottom:19%;font-size:11px}.plane-info{font-size:10px;left:16px;bottom:15px}.view-tools{right:12px;bottom:9px;gap:4px}.view-tools span{display:none}.view-tools button{width:44px;min-height:44px}.wind-badge{padding:8px 10px;gap:7px;bottom:12px;left:12px}.wind-badge>span{font-size:24px}.wind-badge strong{font-size:12px}.wind-badge small{font-size:10px}.target-badge{right:12px;bottom:14px;padding:9px 12px;font-size:12px}.trail-legend{bottom:58px;right:12px;padding:6px 9px;font-size:10px}.mission-pill{bottom:57px;font-size:10px;padding:6px 10px}.flight-readout{top:118px;left:20px;font-size:12px;padding:7px 10px}.preset-row{margin-bottom:15px}.preset{min-height:78px;font-size:12px}.preset svg{height:32px}.parts{padding-top:12px;margin-bottom:10px}.range-block{margin:10px 0 14px}.design-measures{margin-top:13px}footer{padding:0 16px 12px;align-items:flex-start;gap:8px}footer #status{line-height:1.5}.landing-map svg{height:145px}}
@media(max-width:440px){.flight-deck{grid-template-rows:240px 124px}.flight-dock{grid-template-columns:minmax(0,1fr) 147px;gap:12px;padding:12px}.primary{font-size:14px;min-height:55px;padding:10px 7px;gap:4px}.primary svg{width:17px}.dock-message strong{font-size:15px}.dock-message>span{font-size:10px;line-height:1.6}.gauge-heading{display:block;position:relative;margin-bottom:10px;padding-right:43px;min-height:29px}.gauge-heading>strong{font-size:11px;line-height:1.4;display:block}.gauge-heading>span{position:absolute;right:0;top:0}.gauge-heading b{font-size:24px}.gauge-heading small{font-size:10px}.gauge-track{height:17px}.gauge-foot{font-size:10px;flex-wrap:wrap;row-gap:3px}.gauge-foot span:nth-child(2){order:3;width:100%;font-size:10px}.workshop-nav{min-width:122px}.brand{font-size:17px}.editor-tabs button{min-height:44px}.stage-heading h1{font-size:22px}.stage-heading p{padding:4px 7px}.controls{max-height:440px}.workbench-heading{padding:11px 16px}#controlContent{max-height:320px}.section-heading h3{font-size:16px}.section-heading span{font-size:10px}.mission-banner{margin-bottom:13px}.mission-banner p{font-size:11px}dialog{padding:30px 22px}.mission-card{padding:14px 12px}.mission-card small{font-size:11px}.dialog-label{font-size:11px}}
@media(max-height:600px) and (min-width:761px){.app{min-height:480px}.stage-heading{padding-top:18px}.stage-heading h1{font-size:25px}.flight-deck{grid-template-rows:minmax(0,1fr) 114px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Cup UI shares the existing workshop, dock and real-time flight scene. */
:root{--ink:#32493f;--paper:#f8f7f2;--blue:#0a83bd}
.masthead{background:#fbfaf5}.app{gap:16px}.stage{border-radius:18px}.stage-heading{background:linear-gradient(#faf8efef,#faf8ef82 70%,transparent);padding-bottom:26px}.stage-heading h1{letter-spacing:-1.3px}.stage-heading p{background:none;padding:0}.flight-dock{border-radius:15px;box-shadow:0 8px 24px #40513e0c}.controls{background:linear-gradient(125deg,#fffdf8,#f5f4ed);border-color:#dcded3}.workbench-heading{background:#eeefe5}.bench-icon{font-size:24px}.primary{border-radius:12px}.primary span{white-space:normal;line-height:1.4}.last-memo{border:1px solid #d9d3bd;background:#f0ecdd;padding:11px 13px;margin:0 0 17px;border-radius:7px;box-shadow:0 3px 8px #7a684b0a}.last-memo>span{display:block;font-size:11px;color:#8a724c;margin-bottom:6px}.last-memo>strong{font-size:13px;color:#415b50}.last-memo i{font-style:normal;color:#a59470;padding:0 3px}.last-memo p{font-size:11px;color:#617261;line-height:1.6;margin:6px 0}.last-memo small{font-size:11px;color:#756744}.angle-preview{margin-bottom:16px;background:#edf0e6;border:1px solid #d8dece;border-radius:8px}.angle-preview svg{display:block;width:100%;max-height:112px}.angle-preview text{fill:#4c665a;font:12px SUIT,sans-serif}.cup-banner{margin-bottom:20px}.cup-place{display:block;font-size:12px;color:#8a7247;margin-bottom:7px}.cup-banner>strong{font-size:22px;font-weight:700;letter-spacing:-.7px}.cup-banner>p{font-size:12px;color:#647463;margin:7px 0 12px}.flight-slots{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0;margin:0}.flight-slots li{display:flex;flex-direction:column;gap:5px;border:1px solid #d9ded1;border-radius:8px;padding:9px 7px;background:#eeefe6;text-align:center}.flight-slots span{font-size:10px;color:#788372}.flight-slots b{font-size:13px;font-variant-numeric:tabular-nums;color:#9caa99}.flight-slots .recorded{background:#e4ece1}.flight-slots .recorded b{color:#3d6654}.flight-slots .current{border-color:#4e8d9d;background:#f4faf5;box-shadow:inset 0 0 0 1px #4e8d9d}.cup-rule{margin-top:9px;font-size:11px;color:#6a7662}.cup-rule b{color:#3c6555}.cup-finish{text-align:center;padding:6px 0 18px}.medal-mark{display:block;font-size:45px;color:#b29757;line-height:1}.cup-finish h3{font-size:24px;margin:7px 0}.cup-finish p{font-size:13px;color:#557665;margin-bottom:10px}.cup-total{display:block;font-size:27px;letter-spacing:-.8px;color:#287f96}.cup-finish small{display:block;margin-top:6px;font-size:11px;color:#6e7e6b}.standings{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}.standings caption{font-size:11px;text-align:left;padding:0 0 8px;color:#68765e}.standings th,.standings td{padding:9px 6px;text-align:left;border-bottom:1px solid #dce0d3}.standings th:last-child,.standings td:last-child{text-align:right}.standings thead{color:#74826e;font-size:10px}.standings small{font-size:9px;font-weight:400;color:#7a8873}.standings .my-score{background:#dfebe0;color:#285c4b}.course-card{display:flex;align-items:center;gap:18px;width:100%;text-align:left;padding:18px;margin:10px 0;background:linear-gradient(125deg,#faf7ed,#f0f2e6);border-color:#ced7c6;border-radius:13px;min-height:104px}.course-card .venue-icon{font-size:32px;min-width:46px;text-align:center}.course-card strong{display:block;font-size:18px}.course-card small{display:block;font-size:12px;font-weight:400;color:#637464;margin:7px 0}.course-card em{display:block;font-style:normal;font-size:11px;color:#8e7546;font-weight:700}.course-card:disabled{opacity:.65;filter:saturate(.45)}.course-card.world{background:linear-gradient(125deg,#f1f4ec,#e5ebe1)}.practice-missions{margin-top:24px}.mission-card{padding:14px}.mission-card strong{font-size:14px}#missionDialog{max-width:590px;max-height:90dvh;overflow:auto}.workbench-heading h2:focus{outline:none}
@media(min-width:761px){body[data-phase=workshop] .stage-heading{max-width:100%}.last-memo+ .section-heading{margin-top:6px}}
@media(max-width:1100px){.cup-banner>strong{font-size:20px}.cup-banner{margin-bottom:16px}.last-memo{padding:10px}.flight-slots b{font-size:12px}}
@media(max-width:900px){body[data-phase=workshop] .flight-deck{display:block;height:270px}body[data-phase=workshop] .stage{height:100%}.controls{max-height:none;overflow:visible}#controlContent{max-height:none;overflow:visible;min-height:0}.app>.flight-dock{min-height:104px;position:sticky;bottom:8px;z-index:3;box-shadow:0 3px 20px #334b3920;background:#fffdf5f5;backdrop-filter:blur(8px)}body[data-phase=workshop] .workbench-heading{padding:11px 16px}body[data-phase=workshop] .cup-banner{margin-bottom:14px}.cup-banner>p{margin-bottom:9px}.last-memo{margin-bottom:15px}.cup-finish{padding-top:14px}.course-card{gap:10px;padding:14px}.course-card strong{font-size:16px}.course-card small{font-size:11px}.course-card .venue-icon{font-size:28px;min-width:40px}.primary{white-space:normal}.flight-dock{gap:12px}}
@media(max-width:440px){body[data-phase=workshop] .flight-deck{height:240px}.stage-heading h1{font-size:21px}.cup-banner>strong{font-size:20px}.flight-slots{gap:8px}.cup-banner>p{font-size:12px}.course-card{min-height:99px}}
.last-memo{padding:4px 10px}.last-memo summary{font-size:11px;line-height:1.6;gap:6px;min-height:44px}.last-memo summary b{display:block;color:#436459;font-size:12px}.last-memo summary:after{font-size:17px}.last-memo[open]{padding-bottom:10px}body[data-phase=workshop] .cup-banner>p{display:none}body[data-phase=workshop] .cup-banner>strong{font-size:17px}body[data-phase=workshop] .cup-place{display:inline;margin-right:10px}body[data-phase=workshop] .flight-slots{margin-top:10px}body[data-phase=workshop] .flight-slots li{padding:7px;flex-direction:row;justify-content:center;align-items:center}body[data-phase=workshop] .cup-banner{margin-bottom:14px}
.primary span{word-break:keep-all}.primary svg{flex-shrink:0}.preset{position:relative}.preset-recommend{position:absolute;right:5px;top:3px;font-size:9px;font-style:normal;color:#8a713e;background:#f3ead5;padding:2px 4px;border-radius:4px}
@media(max-width:900px){body[data-phase=ready] .wind-badge,body[data-phase=charging] .wind-badge{top:94px;bottom:auto}.gauge-heading>strong{font-size:12px}.gauge-foot{line-height:1.4}}
@media(min-width:761px) and (max-width:900px){.masthead{min-height:72px;height:72px;flex-wrap:nowrap;padding:0 20px}.flight-deck{grid-template-rows:420px 122px}body[data-phase=workshop] .flight-deck{height:350px}.controls{max-height:none}.stage-heading h1{font-size:28px}.flight-dock{grid-template-columns:minmax(0,1fr) 230px}.gauge-heading>strong{font-size:14px}.primary{font-size:17px}.gauge-foot{font-size:12px}.preset-row{max-width:470px}.preset{min-height:85px}.preset svg{height:40px}body[data-phase=workshop] .wind-badge{top:auto}}
.editor-tabs button{min-height:44px}footer button{min-height:44px;font-size:12px}footer{min-height:52px}.app{height:calc(100dvh - 134px)}
@media(min-width:901px) and (max-width:1100px){.app{height:calc(100dvh - 124px)}}
@media(max-width:900px){.app{height:auto}body[data-phase=ready] .stage-heading p,body[data-phase=charging] .stage-heading p{display:none}body[data-phase=ready] .plane-card,body[data-phase=charging] .plane-card,body[data-phase=flying] .plane-card{display:none}}
.venue-icon svg{width:52px;height:48px;fill:#eee8d7;stroke:#938059;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}


/* v0.4.1: visible feedback and material hierarchy from the approved concept. */
.primary:hover:not(:disabled){background:linear-gradient(160deg,#148fc4,#076a9f);color:#fff;box-shadow:0 5px 14px #087db832}
.workshop-nav.active:hover:not(:disabled),.parts button[aria-pressed=true]:hover:not(:disabled){background:#304a40;color:#fffdf5}
.editor-tabs button[aria-pressed=true]{background:#3f6153;color:#fffdf5;box-shadow:inset 0 1px 0 #ffffff25}
.editor-tabs button[aria-pressed=true]:hover:not(:disabled){background:#335246;color:#fffdf5}
.last-memo{padding:10px 12px;margin-bottom:16px;background:linear-gradient(110deg,#f0ecde,#f7f4e9);border-left:3px solid #b19a63}
.last-memo>span{font-size:11px;color:#6a735d;margin:0}.last-memo b{display:block;color:#3a5a4b;font-size:14px;margin-top:4px}.last-memo p{font-size:12px;margin:7px 0;line-height:1.5}.last-memo small{display:block;font-size:11px;line-height:1.5}
.last-landing{margin:0 0 18px;padding:13px 14px;background:#edf2e8;border:1px solid #d8e1cf;border-radius:10px}.last-landing>strong{font-size:14px;color:#345b4c}.last-landing>p{font-size:12px;line-height:1.6;margin:8px 0 2px}.last-landing details{border-top:0;margin:0}.last-landing summary{font-size:12px;min-height:44px}.last-landing .landing-map{margin:4px 0}
.stage-heading{background:linear-gradient(180deg,#faf8efe0,transparent);padding:22px 26px 30px}.stage-heading h1{font-size:clamp(23px,2.25vw,32px);margin:8px 0}.stage-heading p{font-size:12px;color:#405a4a;text-shadow:0 1px 4px #fff}.stage-heading>span{color:#536d5a}
body[data-phase=workshop] .stage-heading{padding-bottom:22px}.controls{box-shadow:0 8px 26px #5f53380b,inset 0 1px 0 #fff}.workbench-heading{background:linear-gradient(110deg,#f2f1e8,#f8f7f0)}
.gauge-track{height:20px;background:#e7e4d9;border-color:#c6c6b7;box-shadow:inset 0 2px 3px #6d624519}#gaugeFill{background:linear-gradient(90deg,#289ebe,#0985bd)}.previous-mark{border-color:#a78034}.gauge-foot{font-size:11px}.flight-dock{border-color:#d6c9ae;box-shadow:0 7px 22px #75623d10,inset 0 1px 0 #fff}
@media(max-width:900px){.controls{scroll-margin-top:12px}.last-memo p{font-size:13px}.stage-heading{padding:18px 20px 28px}.stage-heading h1{font-size:23px}.primary{min-height:58px}}
@media(max-width:440px){.stage-heading h1{font-size:21px}.gauge-foot{font-size:10px}.last-memo{margin-bottom:13px}}
.dimension{left:auto;right:18px;bottom:73px}.dimension i{display:none}.dimension span{padding:6px 9px;background:#fffbeded;border:1px solid #d7cbb0}.last-memo{padding:8px 11px;margin-bottom:12px}.last-memo p{margin-bottom:0}
.workshop-nav,.editor-tabs button,.parts button{transition:box-shadow .14s,transform .1s}
.sport-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}.sport-picker button{position:relative;display:grid;grid-template-columns:32px 1fr;gap:3px 8px;align-items:center;text-align:left;padding:13px 12px;border:1px solid #d9d4c4;background:#f2efe5;min-height:76px}.sport-picker button>span{grid-row:span 2;font-size:28px;color:#7f926e}.sport-picker b{font-size:15px}.sport-picker small{font-size:11px;color:#75816d}.sport-picker button[aria-pressed=true]{background:#365b4b;color:#fffbea;border-color:#365b4b;box-shadow:0 3px 8px #304f4025}.sport-picker button[aria-pressed=true]>span,.sport-picker button[aria-pressed=true] small{color:#e1d7b4}.sport-picker button[aria-pressed=true]:hover{background:#2b4c3e}.result-stats{flex-wrap:wrap;gap:12px}
body:not([data-phase=workshop]) .stage-heading{top:16px;left:18px;right:auto;max-width:calc(100% - 230px);padding:12px 16px 13px;border-radius:12px;background:#faf8f0f2;border:1px solid #fff9;box-shadow:0 4px 18px #233b2112}
body:not([data-phase=workshop]) .stage-heading h1{font-size:clamp(18px,1.9vw,27px);margin:5px 0}
body:not([data-phase=workshop]) .stage-heading p{background:none;text-shadow:none;padding:0;margin:4px 0 0;color:#526659;opacity:1;max-width:none;word-break:keep-all}
@media(max-width:600px){body:not([data-phase=workshop]) .stage-heading{top:12px;left:12px;max-width:calc(100% - 24px);padding:9px 12px}body:not([data-phase=workshop]) .stage-heading h1{font-size:18px}.mission-pill{top:auto;bottom:74px;right:12px;max-width:65%;font-size:10px;padding:7px 10px}}
@media(max-width:900px) and (min-height:650px){body:not([data-phase=workshop]) .flight-deck{grid-template-rows:clamp(300px,39dvh,400px) auto}body:not([data-phase=workshop]) .stage{height:100%}}
