@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--ink:#edf0e9;--dim:#a3aba4;--line:#363e39;--lime:#d5fa78;--panel:#202722}
*{box-sizing:border-box}body{margin:0;background:#141916;color:var(--ink);font:15px Inter,system-ui,sans-serif}header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,20px);border-bottom:1px solid var(--line)}.brand{color:inherit;text-decoration:none;letter-spacing:.2em;font-weight:700}.brand span,.eyebrow,em{color:var(--lime)}.header-label,.muted,.intro>p:last-child{color:var(--dim)}main{width:min(1370px,90vw);margin:44px auto 55px}.intro{margin-bottom:26px}.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:700}h1{font:700 clamp(65px,9vw,132px)/.86 'Barlow Condensed','Arial Narrow',sans-serif;text-transform:uppercase;margin:12px 0 20px}em{font-style:normal}.layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:16px;align-items:stretch}.viewer,aside,dialog{border:1px solid var(--line);border-radius:14px;background:var(--panel)}.viewer{position:relative;min-height:520px;overflow:hidden;background:radial-gradient(ellipse at 50% 43%,#39453b,#1b221e 80%)}.viewer::before{content:"";position:absolute;inset:0;background-image:linear-gradient(#a6c3aa13 1px,transparent 1px),linear-gradient(90deg,#a6c3aa13 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(ellipse,#000,transparent 88%);pointer-events:none}canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.toolbar,.viewer-foot{position:absolute;z-index:1;left:16px;right:16px;display:flex;justify-content:space-between;gap:8px}.toolbar{top:16px}.viewer-foot{bottom:17px;color:var(--dim);font-size:11px;pointer-events:none}.tabs,.actions,.designs{display:flex;gap:6px}.actions{flex-wrap:wrap}button{font:inherit;color:inherit;background:#1a201c;border:1px solid #48544b;padding:9px 12px;border-radius:7px;cursor:pointer}button:hover{border-color:var(--lime)}button[aria-pressed=true]{border-color:var(--lime);color:var(--lime)}aside{padding:24px}h2{font-size:23px;margin:0 0 8px}.muted{font-size:13px}.designs button{flex:1;font-size:12px;padding-inline:4px}.design-icon{display:block;margin:0 auto 6px;width:48px;height:12px;clip-path:polygon(0 44%,50% 0,100% 44%,99% 77%,50% 100%,1% 77%);background:var(--pattern)}.color-row{margin:18px 0}.color-row p{margin:0 0 8px;font-size:13px}.swatches{display:flex;flex-wrap:wrap;gap:7px}.swatches button{width:26px;height:26px;padding:0;border:2px solid #1b211d;background:var(--swatch);border-radius:50%}.swatches button[aria-pressed=true]{outline:1px solid var(--lime);outline-offset:2px}.actions button,#saved button{font-size:11px;padding:8px}.primary{background:var(--lime);color:#142013;font-weight:700;width:100%;padding:13px;display:flex;justify-content:space-between}.primary:disabled{opacity:.65}#status,#result{font-size:12px;color:var(--lime);margin:8px 0}#saved>div{display:flex;gap:6px;margin-top:6px}dialog{color:var(--ink);width:min(470px,92vw);padding:25px}dialog::backdrop{background:#000a}dialog label{display:grid;gap:5px;margin:12px 0}input,textarea{font:inherit;background:#151a17;border:1px solid #576258;color:inherit;border-radius:6px;padding:9px;width:100%}#close{float:right;padding:3px 9px}button:focus-visible,canvas:focus-visible,a:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
@media(max-width:820px){.layout{grid-template-columns:1fr}.viewer{min-height:clamp(310px,65vw,490px)}main{margin-top:30px}.viewer-foot{font-size:10px}}
.swatches button:not(.swatch){width:auto;height:auto;padding:5px 8px;border-radius:7px;border:1px solid #48544b;background:#1a201c}.option-buttons{display:flex;gap:6px;flex-wrap:wrap}.option-buttons button{font-size:12px}.viewer{position:sticky;top:16px;align-self:start;height:min(70vh,720px)}.product{margin:38px 0 0}.product a{color:var(--lime)}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gallery figure{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.gallery img{width:100%;display:block}.gallery figcaption{padding:12px}
@media(max-width:820px){.viewer{position:relative;top:auto;height:clamp(310px,65vw,490px)}}
:root{color-scheme:light;--ink:#182227;--dim:#4d5d65;--line:#cad6db;--lime:#00645e;--panel:#fff}
body{background:#f3f6f7}header{background:#fff}.viewer{background:radial-gradient(ellipse at 50% 43%,#f9fcfd,#c4d5dd 94%)}.viewer::before{background-image:linear-gradient(#69848f25 1px,transparent 1px),linear-gradient(90deg,#69848f25 1px,transparent 1px)}
button,.swatches button:not(.swatch),input,textarea{background:#fff;border-color:#a7bac4}.primary{background:#00645e;color:#fff}.swatches button.swatch{border-color:#9aadb6}.design-cards{display:grid;grid-template-columns:1fr 1fr;gap:7px}.design-cards button{font-size:12px;padding:8px 6px}.design-cards button[aria-pressed=true]{background:#e2f3f0}.design-cards img{width:100%;height:22px;display:block;margin-bottom:5px}.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery img{aspect-ratio:4/3;object-fit:contain;background:#fff}
@media(max-width:620px){.gallery{grid-template-columns:1fr}}
.layout{grid-template-columns:minmax(0,1fr) minmax(340px,410px)}
.config-section{margin:16px 0;padding:14px;background:#f6f9fa;border:1px solid var(--line);border-radius:10px}
.config-section h3{margin:0;font-size:15px}.config-section .color-row:last-child{margin-bottom:0}
.design-cards{grid-template-columns:1fr}.design-cards button{padding:10px 12px}
.design-cards img{height:auto;aspect-ratio:11/1;min-height:26px;object-fit:contain;margin-bottom:7px}
@media(max-width:820px){.layout{grid-template-columns:1fr}}
canvas[data-view="top"],canvas[data-view="bottom"]{cursor:zoom-in}
@media(min-width:1400px) {
  header{height:56px}
  main{width:min(1760px,94vw);margin-top:20px}
  .intro{display:flex;align-items:baseline;gap:24px;margin-bottom:14px}
  .intro .eyebrow{display:none}
  .intro h1{font-size:64px;margin:0}
  .intro p{margin:0}
  .layout{grid-template-columns:minmax(0,1fr) minmax(610px,43%);align-items:start}
  .viewer{position:relative;top:0;height:clamp(520px,72vh,780px)}
  aside{padding:16px}
  #palette{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .config-section{margin:0;padding:10px;min-width:0}
  .color-row{margin:9px 0}
  .color-row p{margin-bottom:5px}
  .design-cards{grid-template-columns:1fr 1fr}
  .design-cards button{padding:6px 4px}
  .design-cards img{min-height:18px;margin-bottom:4px}
  .actions{margin-top:10px}

  .product{margin-top:max(38px, calc(100vh - 910px))}
}
@media(min-width:1400px) {
  #palette{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
  .design-cards img{min-height:24px;margin-bottom:5px}
  .design-cards button{padding:7px 5px}
}
/* Give each wing illustration the full width of its configuration section. */
.layout .design-cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.layout .design-cards button {
  padding: 4px 8px;
}
.layout .design-cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 1020 / 76;
  min-height: 0;
  margin-bottom: 2px;
}
@media (min-width: 1400px) {
  .layout #palette { align-items: start; }
  .config-column { display: grid; gap: 10px; min-width: 0; }
  .layout #field-design { margin-top: 5px; }
}

.view-options{display:flex;align-items:center;gap:6px}
.view-options label{display:flex;align-items:center;gap:6px;color:var(--ink);font-size:12px}
.view-options select{font:inherit;color:var(--ink);background:#fff;border:1px solid #a7bac4;border-radius:7px;padding:8px 4px}
.viewer[data-background="sky"],.viewer[data-background="hills"]{background-size:cover;background-position:center}
.viewer[data-background="sky"]{background-image:url('/background-sky.jpg')}
.viewer[data-background="hills"]{background-image:url('/background-hills.jpg')}
.viewer:not([data-background="studio"])::before{display:none}
.viewer:not([data-background="studio"]) .viewer-foot span{background:#fffffff0;border-radius:4px;padding:2px 5px}
.saved-designs{margin-top:32px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
#saved{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:8px}
#saved article{display:flex;align-items:center;gap:6px;border:1px solid var(--line);padding:8px;border-radius:8px}
#saved article div{flex:1;min-width:0}
#saved time{display:block;font-size:12px;color:var(--dim);margin-top:4px}
#saved svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.7}
@media(max-width:550px){.toolbar{flex-wrap:wrap}.view-options label span{display:none}}

.layout #palette{display:block}
.config-tabs{margin:10px 0}
.config-panel:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.config-panel .color-row{margin:0}
#field-version,#field-design{grid-column:1/-1}
.layout .design-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.selection-summary{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
.selection-summary h3{font-size:14px;margin:0 0 6px}
.selection-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;font-size:12px;margin:0}
.selection-summary dt,.selection-summary dd{display:inline;margin:0}
.selection-summary dt{font-weight:700;margin-right:6px}
.maker-credit{font-size:13px;color:var(--dim)}
.maker-credit a{color:var(--lime)}
.config-tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin:12px 0}
.config-tabs [role="tab"]{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:8px 2px;color:var(--dim);font-weight:600}
.config-tabs [aria-selected="true"]{border-bottom-color:var(--lime);color:var(--lime)}
.config-panel .color-row strong{font-weight:700}
.selection-summary{background:#f5f8f9;border:1px solid var(--line);border-radius:9px;padding:10px 12px}
.selection-summary h3{font-size:15px;margin:0 0 4px}
.selection-summary dl{gap:0 16px}
.selection-summary dl>div{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px;align-items:baseline;border-top:1px solid var(--line);padding:4px 0}
.selection-summary dt{margin:0}
.selection-summary dd{color:var(--dim);text-align:right}
#colours-panel .colour-section {
  min-width: 0;
  margin: 0;
  padding: 9px 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5f8f9;
}
.colour-section legend {
  padding: 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
}
.colour-section .color-row + .color-row { margin-top: 9px; }
@media (max-width: 600px) {
  #colours-panel:not([hidden]) { grid-template-columns: 1fr; }
}
.preview-column{min-width:0}
.preview-column .viewer{position:relative;top:auto}
.maker-credit{margin:7px 0 0}
.aircraft-specs{display:flex;flex-wrap:wrap;gap:12px 24px}
.aircraft-specs dt{font-weight:700}
.aircraft-specs dd{margin:4px 0 0;color:var(--dim)}
.gallery img{object-fit:cover}
#checkout{width:min(720px,94vw);max-height:90dvh;overflow:auto}
.order-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
@media(max-width:520px){.order-fields,#checkout .selection-summary dl{grid-template-columns:1fr}}
.language-picker{display:flex;align-items:center;gap:6px;margin-left:auto}
.header-label{margin-left:16px;margin-right:16px}
.language-picker a{display:grid;place-items:center;min-width:34px;min-height:30px;border:1px solid transparent;border-radius:5px;font:18px 'Segoe UI Emoji',sans-serif;text-decoration:none}
.language-picker a[aria-current=true]{border-color:var(--lime);background:#e2f3f0}
#about-title,#gallery-title{margin-bottom:12px}
.product[aria-labelledby]{margin-top:14px}
.product[aria-labelledby="about-title"]{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:clamp(16px,2vw,28px)}
.product[aria-labelledby="about-title"]>ul:first-of-type{columns:2;column-gap:36px;padding-left:20px}
.product[aria-labelledby="about-title"] li{break-inside:avoid;margin:0 0 7px;line-height:1.5}
.product[aria-labelledby="about-title"] li::marker{color:var(--lime)}
.product[aria-labelledby="about-title"] h4{margin:10px 0 4px}
#status:not(:empty){padding:8px;background:#e2f3f0;border-radius:6px;overflow-wrap:anywhere}
@media(max-width:620px){.header-label{display:none}.product[aria-labelledby="about-title"]>ul:first-of-type{columns:1}}
.servo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}
.servo-grid>div{border:1px solid var(--line);border-radius:8px;padding:8px 12px}
.servo-grid ul{padding-left:18px;margin:6px 0 0}
.storage-note{margin-top:18px;padding-top:12px;border-top:1px solid var(--line);color:var(--dim);font-size:13px}
.storage-note h2{font-size:15px;color:var(--ink)}
.storage-note p{margin:0}
#save-error:empty{display:none}
