:root{--bg:#fafaf8;--surface:#fff;--text:#15181c;--muted:#5c6670;--accent:#1d3557;--cta:#c2452d;--warn-bg:#fff4e0;--error:#b00020;--border:#e2e4e3;--preview-surround:#e6e7e8;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body{background:var(--bg);margin:0}.app{max-width:880px;margin:0 auto;padding:24px 16px 64px}.app-header h1{color:var(--accent);margin:0}.app-header p,.muted{color:var(--muted)}.dropzone{border:2px dashed var(--border);background:var(--surface);text-align:center;border-radius:12px;padding:40px 16px}.dropzone.is-over{border-color:var(--accent)}button,select{font:inherit;border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:8px;padding:6px 12px}button:disabled{cursor:default;opacity:.5}.checkbox{gap:8px;margin:16px 0;display:flex}.errors{color:var(--error)}.warnings{background:var(--warn-bg);border-radius:8px;padding:12px 12px 12px 32px}.legs ol{padding:0;list-style:none}.leg{background:var(--surface);border:1px solid var(--border);border-radius:10px;align-items:center;gap:12px;margin-bottom:8px;padding:12px;display:flex}.leg-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.leg-actions{gap:4px;display:flex}.transition{color:var(--muted);margin:4px 0 8px 12px;font-size:.9em}@media (width<=560px){.leg{flex-wrap:wrap}}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.cta{background:var(--cta);border-color:var(--cta);color:#fff}button.link{color:var(--accent);background:0 0;border:none;padding:0;text-decoration:underline}.small{font-size:.85em}.presets{grid-template-columns:1fr 1fr;gap:6px;display:grid}.preset{text-align:left;align-items:center;gap:6px;padding:4px 6px;font-size:.85em;display:flex}.preset.is-active,.segmented .is-active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.swatch{border:1px solid var(--border);border-radius:4px;flex-shrink:0;width:22px;height:22px;display:inline-flex;overflow:hidden}.swatch span{flex:1;margin-top:11px}.colours{grid-template-columns:1fr 1fr;gap:6px;display:grid}.colours label{align-items:center;gap:6px;font-size:.9em;display:flex}input[type=color]{border:1px solid var(--border);background:0 0;border-radius:6px;width:28px;height:28px;padding:0}.segmented{display:flex}.segmented button{border-radius:0;flex:1;min-width:0;padding:6px 4px;font-size:.9em}.segmented button:first-child{border-radius:8px 0 0 8px}.segmented button:last-child{border-radius:0 8px 8px 0}.field{flex-direction:column;gap:2px;font-size:.9em;display:flex}.field input{font:inherit;border:1px solid var(--border);border-radius:6px;padding:6px 8px}.poster-frame{flex-shrink:0;position:relative;overflow:hidden;box-shadow:0 6px 30px #0000002e}.poster{transform-origin:0 0;position:relative}.poster canvas{position:absolute;inset:0}.poster-map{position:absolute}.poster-map.is-circle .maplibregl-canvas{clip-path:circle(50%)}.poster canvas.poster-title,.poster canvas.poster-watermark{pointer-events:none}.title-handle{cursor:grab;touch-action:none;border:1px dashed #0000;border-radius:4px;position:absolute}.title-handle:hover,.title-handle:focus-visible{border-color:var(--accent);outline:none}.title-handle:active{cursor:grabbing}.view-control{flex-direction:column;align-items:center;gap:6px;display:flex}.view-control-name{font-size:.9em;font-weight:600}.view-control-readout{color:var(--accent);font-variant-numeric:tabular-nums;font-weight:600}.compass,.tilt-scale,.zoom-pill,.map-info-button{background:var(--surface);border:1px solid var(--border);touch-action:none;cursor:grab;position:relative;box-shadow:0 4px 14px #0000001a}.compass:focus-visible,.tilt-track:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.compass.is-dragging{cursor:grabbing}.compass{border-radius:50%;width:104px;height:104px}.compass-needle,.compass-letter{pointer-events:none;position:absolute;inset:0}.compass-north,.compass-south{border-left:7px solid #0000;border-right:7px solid #0000;width:0;height:0;margin-left:-7px;position:absolute;left:50%}.compass-north{border-bottom:30px solid #c62828;bottom:50%}.compass-south{border-top:30px solid var(--muted);top:50%}.compass-letter button{color:#c62828;pointer-events:auto;background:0 0;border:none;padding:0 4px;font-size:11px;font-weight:700;position:absolute;top:2px;left:50%;transform:translate(-50%)}.tilt-scale{cursor:default;border-radius:24px;flex-direction:column;align-items:center;width:48px;display:flex}.scale-step,.zoom-pill button{width:48px;height:36px;color:var(--text);background:0 0;border:none;border-radius:24px;padding:0;font-size:22px;line-height:1}.scale-step:hover:not(:disabled),.zoom-pill button:hover{color:var(--accent)}.tilt-track{cursor:pointer;touch-action:none;width:100%;height:176px;position:relative}.tilt-tick{border-top:1px solid var(--muted);width:10px;height:0;margin-left:-5px;position:absolute;left:50%}.tilt-tick-label{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px;line-height:1.4;position:absolute;top:-.7em;right:32px}.tilt-knob{background:var(--accent);pointer-events:none;border-radius:50%;width:26px;height:26px;margin-left:-13px;transition:top .15s ease-out;position:absolute;left:50%;transform:translateY(-50%);box-shadow:0 2px 6px #0000004d}.zoom-pill{cursor:default;border-radius:24px;flex-direction:column;justify-content:space-around;width:48px;height:116px;display:flex}.map-info-button{width:48px;height:48px;color:var(--text);cursor:pointer;border-radius:50%;padding:0;font-family:Georgia,serif;font-size:22px;font-style:italic;font-weight:700}.map-info{text-align:center;max-width:136px;margin:0}.downloads{flex-direction:column;gap:6px;width:100%;display:flex}.downloads button{width:100%}.downloads .muted{margin-bottom:4px}.print-check{text-align:left;background:var(--warn-bg);border-radius:6px;flex-direction:column;gap:8px;margin:0 0 4px;padding:8px 10px;list-style:none;display:flex}.print-check li{flex-direction:column;align-items:flex-start;gap:2px;display:flex}.print-check.is-ready{background:var(--surface);color:#2e6b3a;text-align:center;font-weight:600}.downloads .errors{margin:0}.field input[type=range]{border:none;padding:0}.sub-field{margin-left:26px}.more-stats summary{cursor:pointer;padding:6px 0;font-weight:500}.more-stats[open] summary{margin-bottom:4px}.loading{text-align:center;color:var(--muted);padding:48px}.panel-heading{margin:8px 0 0;font-size:.9em;font-weight:600}.level-label{justify-content:space-between;gap:8px;display:flex}.level-value{color:var(--muted);font-variant-numeric:tabular-nums}.level-ticks{color:var(--muted);justify-content:space-between;padding:0 2px;font-size:.8em;display:flex}.label-x-layer{pointer-events:none;position:absolute}.label-x{color:#fff;pointer-events:auto;opacity:0;background:#c62828;border:1.5px solid #fff;border-radius:50%;width:18px;height:18px;margin:-9px 0 0 -9px;padding:0;font-size:14px;font-weight:700;line-height:1;transition:opacity .15s;position:absolute;box-shadow:0 1px 3px #0000004d}.poster-frame:hover .label-x,.label-x:focus-visible{opacity:1}@media (hover:none){.label-x{opacity:1}}.label-undo{background:var(--text);color:var(--surface);white-space:nowrap;border-radius:8px;align-items:center;gap:10px;padding:8px 14px;font-size:.9em;display:flex;position:absolute;bottom:12px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #0003}.label-undo .link{color:inherit;font-weight:600}.deleted-labels summary{cursor:pointer;font-size:.9em;font-weight:600}.deleted-labels ul{flex-direction:column;gap:6px;margin:8px 0 0;padding:0;list-style:none;display:flex}.deleted-labels li{justify-content:space-between;align-items:center;gap:8px;font-size:.9em;display:flex}.deleted-labels li span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.deleted-labels li button{padding:2px 8px;font-size:.9em}.deleted-labels .restore-all{margin-top:8px}.poster canvas.lifted-labels{pointer-events:none}.view-control-note{max-width:120px}.wall-dialog{border:1px solid var(--border);background:var(--surface);width:min(900px,100vw - 32px);max-height:calc(100vh - 32px);color:var(--text);box-sizing:border-box;border-radius:10px;padding:16px}.wall-dialog::backdrop{background:#00000073}.wall-head{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.wall-head h2{margin:0;font-size:1.15em}.wall-scene{border-radius:6px;width:100%;height:auto;display:block}.wall-controls{flex-wrap:wrap;align-items:center;gap:10px 16px;display:flex}.wall-swatches{gap:6px;display:flex}.wall-swatch{border:1px solid var(--border);border-radius:50%;width:28px;height:28px;padding:0}.wall-swatch.is-active{box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--accent)}.app-header .headline{color:var(--text);margin:4px 0 0;font-size:1.5rem;font-weight:600}.starts{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:24px;display:grid}.start-card{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;display:flex}.start-card h2{color:var(--accent);margin:0;font-size:1.05rem}.start-card p{margin:0}.start-card.is-soon{background:0 0;border-style:dashed}.start-card.is-soon h2{color:var(--muted)}.race-list{width:100%;margin:0;padding:0;list-style:none}.race-list button.race{text-align:left;flex-direction:column;align-items:flex-start;gap:2px;width:100%;display:flex}.editor{--accent:#a8432b;--cta:#a8432b;--accent-soft:#f6e9e4;--line:#ece9e3;background:var(--preview-surround);grid-template-rows:auto minmax(0,1fr);grid-template-columns:340px minmax(0,1fr) 370px;height:100vh;display:grid}.editor-header{background:var(--surface);border-bottom:1px solid var(--border);grid-column:1/-1;align-items:center;gap:16px;height:60px;padding:0 20px;display:flex}.brand{align-items:center;gap:10px;font-size:18px;font-weight:800;display:flex}.brand rect{fill:var(--accent)}.brand path{fill:none;stroke:#fff;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round}button.link.quiet{color:var(--muted);font-weight:600;text-decoration:none}.editor-title{flex:1;justify-content:center;align-items:center;gap:10px;min-width:0;display:flex}.editor-title-name{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.saved-chip{color:#2e6b3a;background:#e5f1e8;border-radius:99px;flex-shrink:0;padding:3px 10px;font-size:.8em;font-weight:600}.editor-header>button:not(.link){border-radius:10px;height:38px;padding:0 14px;font-weight:600}.sidebar{background:var(--surface);border-right:1px solid var(--border);min-height:0;overflow-y:auto}.section{border-bottom:1px solid var(--line)}.section-heading{margin:0;font-size:1em}.section-heading button{width:100%;color:var(--text);text-align:left;background:0 0;border:none;border-radius:0;align-items:center;gap:12px;padding:9px 18px;display:flex}.section-heading button:hover{background:#faf8f5}.section-heading button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.section-icon{background:var(--accent-soft);border-radius:8px;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.section-icon path{fill:none;stroke:var(--accent);stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}.section.is-open .section-icon{background:var(--accent)}.section.is-open .section-icon path{stroke:#fff}.section-text{flex-direction:column;flex:1;min-width:0;display:flex}.section-title{font-size:.95em;font-weight:700}.section-summary{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.78em;overflow:hidden}.section-chevron{border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);width:8px;height:8px;margin:0 4px 4px 0;transition:transform .2s;transform:rotate(45deg)}.section.is-open .section-chevron{margin:4px 4px 0 0;transform:rotate(-135deg)}.section-body{flex-direction:column;gap:8px;padding:2px 18px 16px;display:flex}.section-body .checkbox,.section-body p{margin:0}.preview-area{--muted:#5f5f5f;justify-content:center;align-items:center;min-width:0;min-height:0;padding:24px;display:flex;position:relative;overflow:hidden}.map-view{flex-direction:column;gap:12px;display:flex}.map-view-row{justify-content:space-between;align-items:flex-start;padding-left:4px;display:flex}.map-view .compass{width:92px;height:92px}.map-view .compass-north{border-bottom-width:26px}.map-view .compass-south{border-top-width:26px}.map-view .tilt-scale{margin-left:18px}.map-view .tilt-track{height:132px}.map-view .zoom-pill{height:96px}.view-control-stack{flex-direction:column;align-items:center;gap:10px;display:flex}.button-row{gap:8px;display:flex}.button-row button{flex:1}.order-panel{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;gap:12px;min-height:0;padding:20px 22px;display:flex;overflow-y:auto}.order-title{letter-spacing:-.02em;margin:0;font-size:1.5em;font-weight:800}.order-question{color:var(--muted);margin:2px 0 0}.order-options{flex-direction:column;gap:10px;display:flex}.order-card{border:1px solid var(--border);background:var(--surface);color:var(--text);text-align:left;border-radius:16px;align-items:center;gap:14px;padding:10px 14px 10px 10px;display:flex;position:relative}.order-card:hover{border-color:#c9c4ba}.order-card.is-selected{border:2px solid var(--accent);background:#fbf3f0;padding:9px 13px 9px 9px;box-shadow:0 8px 20px #a8432b24}.order-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.order-mock{background:#ece7df;border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;width:96px;height:104px;display:flex;overflow:hidden}.order-mock-poster img,.order-mock-blank{width:52px;display:block}.order-mock-blank{background:#f7f5f1;height:74px}.is-framed .order-mock{background:#e3ddd3}.is-framed .order-mock-poster{background:#fbf9f4;border:4px solid #1e1e1e;padding:4px;box-shadow:0 6px 12px #00000040}.is-print .order-mock-poster{transform:rotate(-4deg);box-shadow:0 8px 14px #00000038}.is-print .order-mock-poster img,.is-print .order-mock-blank{width:60px}.is-digital .order-mock{background:#e6e9ec}.is-digital .order-mock-poster{background:#1e2023;border-radius:12px;padding:8px 4px;box-shadow:0 6px 12px #00000040}.is-digital .order-mock-poster img,.is-digital .order-mock-blank{width:46px}.order-card-text{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.order-card-name{font-weight:800}.order-card-description{color:var(--muted);font-size:.8em;line-height:1.35}.order-card-price{margin-top:3px;font-weight:800}.order-card-price.is-soon{color:var(--muted);font-size:.9em;font-weight:700}.order-radio{box-sizing:border-box;border:2px solid #bdb7ac;border-radius:50%;flex-shrink:0;align-self:flex-start;width:20px;height:20px;margin-top:4px}.is-selected .order-radio{border:6px solid var(--accent)}.order-tag{background:var(--text);color:#fff;border-radius:99px;padding:2px 9px;font-size:.7em;font-weight:700;position:absolute;top:-9px;right:14px}.see-wall{align-self:center;font-weight:600}.order-continue{text-align:center;flex-direction:column;gap:6px;margin-top:auto;display:flex}.order-continue .cta{border-radius:14px;justify-content:space-between;align-items:center;gap:8px;height:56px;padding:0 22px;font-size:1.05em;font-weight:800;display:flex;box-shadow:0 10px 22px #a8432b4d}.order-continue .cta:disabled{box-shadow:none}.order-panel .back{align-self:flex-start}.order-panel .print-check{margin:0}.order-panel .downloads .cta{border-radius:12px;height:52px;font-weight:700}@media (width<=1180px){.editor{grid-template-columns:300px minmax(0,1fr) 320px}.order-mock{width:80px}}@media (width<=760px){.editor{flex-direction:column;height:auto;display:flex}.editor-header{flex-wrap:wrap;gap:8px 12px;height:auto;padding:10px 16px}.editor-title{flex-basis:100%;order:5;justify-content:flex-start}.preview-area{order:1;padding:16px}.sidebar{border-right:none;order:2;overflow:visible}.order-panel{border-left:none;order:3;overflow:visible}.section-heading button{min-height:52px}.sidebar input[type=checkbox]{width:20px;height:20px}.sidebar .checkbox{align-items:center;min-height:36px}}.section-body .presets,.section-body .colours{grid-template-columns:repeat(3,minmax(0,1fr))}.section-body .preset{padding:4px;font-size:.78em}.editor input[type=range],.editor input[type=checkbox]{accent-color:var(--accent)}@media (width<=760px){.editor-header>button:not(.link){height:34px;padding:0 10px;font-size:.85em}}.section-collapse{grid-template-rows:0fr;transition:grid-template-rows .28s;display:grid}.section.is-open .section-collapse{grid-template-rows:1fr}.section-collapse>.section-body{min-height:0;padding-bottom:0;transition:padding-bottom .28s;overflow:hidden}.section.is-open .section-collapse>.section-body{padding-bottom:16px}.section:not(.is-open) .section-collapse>.section-body{padding-top:0}@media (prefers-reduced-motion:reduce){.section-collapse,.section-collapse>.section-body,.section-chevron{transition:none}}
