:root {
  --paper:#f2f3ed; --white:#fffefa; --ink:#172a22; --muted:#52645b; --line:#d5dcd2;
  --green:#194b3b; --mint:#abecd0; --gold:#edc37d; --orange:#934020;
  --serif:"Iowan Old Style","Baskerville","Palatino Linotype",Georgia,serif;
  --sans:"Inter","Helvetica Neue",Arial,sans-serif;
  --mono:"IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  color-scheme:light; font-family:var(--sans); color:var(--ink); background:var(--paper);
}
*,*::before,*::after {box-sizing:border-box}
body {margin:0; -webkit-font-smoothing:antialiased}
button,input,select,a {font:inherit}
button,select,a {touch-action:manipulation}
button {cursor:pointer; color:inherit; background:none; border:0}
a {color:inherit}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible {outline:3px solid #b5552e;outline-offset:3px}
button:disabled {opacity:.45;cursor:default}
[hidden] {display:none!important}
.skip {position:absolute;top:-100px;z-index:10;background:#fff;padding:12px}
.skip:focus {top:5px}
.sitehead {background:var(--white);border-bottom:1px solid var(--line)}
.head-inner {width:min(1536px,100%);margin:auto;min-height:78px;padding:0 clamp(18px,3.6vw,62px);display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand-lockup,.header-actions,.private-label,.saved-link {display:flex;align-items:center}
.brand-lockup {gap:20px;min-width:0}
.brand-lockup img {width:clamp(118px,12vw,162px);height:auto}
.brand-line {height:24px;width:1px;background:#bcc8be}
.studio-id {font:600 11px var(--mono);letter-spacing:.115em;text-transform:uppercase;white-space:nowrap}
.header-actions {gap:25px}
.private-label {gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}
.lock-icon {width:10px;height:8px;border:1.5px solid currentColor;border-radius:2px;position:relative;margin:3px 2px 0 0}
.lock-icon::before {content:"";position:absolute;width:6px;height:6px;border:1.5px solid currentColor;border-bottom:none;border-radius:5px 5px 0 0;left:.5px;top:-5px}
.saved-link {gap:8px;min-height:42px;padding:0 0 0 18px;border-left:1px solid var(--line);font-weight:650;font-size:13px}
.bookmark {width:11px;height:14px;display:inline-block;background:var(--ink);clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%,0 0,15% 9%,15% 78%,50% 60%,85% 78%,85% 12%,15% 12%)}
#savedCount {font:10px var(--mono);padding:3px 5px;background:#e2ebe1;border-radius:3px}
.workspace {max-width:1536px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr);gap:clamp(16px,2vw,30px);padding:clamp(16px,2.5vw,39px) clamp(18px,3.6vw,62px) 40px;align-items:start}
.visual-column {min-width:0;position:sticky;top:16px}
.viewer {background:radial-gradient(ellipse at 43% 41%,#304a3e 0%,#1e332a 38%,#12231d 74%,#101e19 100%);border:1px solid #223a2e;border-radius:12px;color:#eff5eb;overflow:hidden;position:relative;isolation:isolate}
.viewer::before {content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(147deg,transparent 0 28%,#e4f6d004 28% 28.10%,transparent 28.14% 63%,#e4f6d005 63% 63.1%,transparent 63.16%);opacity:.8}
.view-head {display:flex;align-items:flex-start;justify-content:space-between;padding:clamp(20px,2.35vw,38px) clamp(20px,2.45vw,40px) 0;position:relative;z-index:1;gap:20px}
.stage-kicker {color:#bfcdc3;font:600 10px var(--mono);letter-spacing:.15em;line-height:1.35}
.view-head h1 {font:400 clamp(34px,3.75vw,61px)/1.02 var(--serif);letter-spacing:-.055em;margin:6px 0 0}
.pro-mark {width:clamp(54px,5.2vw,80px);height:auto;filter:brightness(0) invert(95%);opacity:.84;margin-top:2px}
.canvas-frame {position:relative;width:100%;height:clamp(268px,29vw,450px);margin:0}
.canvas-frame canvas {position:absolute;inset:0;display:block;width:100%;height:100%}
.render-status {position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);font:12px var(--mono);color:#e1ebe0;background:#15261edb;border-radius:5px;text-align:center;padding:7px 12px;pointer-events:none}
.hotspots {position:absolute;inset:0;pointer-events:none}
.hotspot {position:absolute;transform:translate(-50%,-50%);padding:0;width:36px;height:36px;display:grid;place-items:center;pointer-events:auto;isolation:isolate}
.hotspot::before {content:"+";display:grid;place-items:center;border:1px solid #cddec9ad;background:#16291edb;color:#e8f5df;font:17px/1 var(--sans);width:21px;height:21px;border-radius:50%;box-shadow:0 0 0 4px #ccf1d70b}
.hotspot:hover::before,.hotspot:focus-visible::before {background:var(--mint);color:#16291e}
.hotspot span {position:absolute;bottom:calc(100% - 1px);white-space:nowrap;padding:4px 8px;color:#172a22;background:var(--mint);border-radius:3px;font-size:10px;opacity:0;pointer-events:none}
.hotspot:hover span,.hotspot:focus-visible span {opacity:1}
.viewer-dock {display:flex;justify-content:center;gap:3px;width:max-content;max-width:calc(100% - 24px);padding:4px;border:1px solid #809d885e;border-radius:28px;background:#0f211cda;margin:8px auto clamp(16px,2.2vw,32px)}
.viewer-dock button {color:#c9d6cc;min-height:36px;padding:6px clamp(9px,1.15vw,20px);font-size:12px;border-radius:22px;white-space:nowrap}
.viewer-dock button[aria-pressed="true"] {font-weight:650;color:#1c3328;background:#e1ebdf}
.viewer-dock button:hover:not([aria-pressed="true"]),.dark-segment button:hover:not([aria-pressed="true"]) {background:#344c40}
.blade-tools {margin:0 clamp(16px,2.4vw,36px) 12px}
.legend,.legend>span,.comparison-switches,.light-tools {display:flex;align-items:center}
.legend {justify-content:center;gap:20px;color:#e1e9e1;font-size:12px;margin:0 0 15px;flex-wrap:wrap}
.legend>span {gap:6px}
.key {width:14px;height:3px;display:inline-block;background:var(--mint);border-radius:4px}
.key.pinned {background:var(--gold)}
.comparison-switches {justify-content:center;flex-wrap:wrap;gap:8px}
.dark-segment {display:flex;gap:2px;border:1px solid #627769;border-radius:5px;padding:2px}
.dark-segment button,.comparison-switches select {color:#edf2eb;font-size:12px;min-height:31px;padding:4px 10px;border-radius:3px}
.dark-segment button[aria-pressed="true"] {background:#d0e3d3;color:#163227;font-weight:650}
.comparison-switches select {width:auto;height:37px;background:#21382d;color:#f4f7f2;border:1px solid #738a78;appearance:auto;padding:4px 9px}
.light-tools {gap:12px;justify-content:center;margin:2px auto 8px;width:max-content;color:#dbe8de}
.light-tools label {font:11px var(--mono);margin:0;color:inherit}
.light-tools input {accent-color:var(--mint);width:112px;min-height:32px;padding:0;border:0}
.build-sheet {border:1px solid var(--line);border-radius:9px;background:#f9faf5;margin-top:14px;padding:18px 22px}
.sheet-heading {display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}
.sheet-heading h2 {font:400 22px/1.05 var(--serif);letter-spacing:-.04em;margin:0}
.sheet-heading span,.field-meta {font:11px var(--mono);color:var(--muted)}
.build-sheet dl {margin:0;display:grid;grid-template-columns:repeat(5,1fr)}
.build-sheet dl>div {border-left:1px solid var(--line);padding-left:13px}
.build-sheet dl>div:first-child {border-left:0;padding-left:0}
.build-sheet dt {font-size:11px;color:var(--muted);margin:0 0 5px}
.build-sheet dd {margin:0;font-size:14px;font-weight:650}
.configuration {min-width:0;background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.step-tabs {display:grid;grid-template-columns:repeat(4,1fr);padding:4px 12px 0;border-bottom:1px solid var(--line);background:#f7f8f3}
.step-tabs button {position:relative;min-height:47px;font-size:13px;color:var(--muted)}
.step-tabs button[aria-selected="true"] {color:var(--green);font-weight:750}
.step-tabs button[aria-selected="true"]::after {position:absolute;content:"";height:3px;bottom:-1px;left:10px;right:10px;background:var(--green)}
.panel {padding:clamp(20px,2.05vw,32px)}
.panel h2,.modal-title h2 {font:400 clamp(31px,2.55vw,42px)/1.08 var(--serif);letter-spacing:-.055em;margin:0 0 18px}
.panel-lead,.modal-intro {font-size:14px;line-height:1.55;color:var(--muted);margin:-5px 0 19px}
.match-card {width:100%;display:flex;gap:12px;align-items:center;text-align:left;background:#eaf1e7;border:1px solid #c5d6c6;padding:12px 13px;border-radius:6px}
.match-card:hover {background:#dfebdd}
.match-card strong {font-weight:700;font-size:14px;display:block}
.match-card small {font-size:12px;color:#455c4f;display:block;margin-top:4px}
.match-lines {font:31px/1 var(--serif);color:var(--green);transform:rotate(-24deg)}
.arrow {margin-left:auto;font-size:18px;color:var(--green)}
.field,.reference-field {margin:17px 0 0}
.field-title {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.field-title label,.field-title .field-label {margin:0}
.dual {display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dual>div {min-width:0}
label,.field-label {display:block;font-weight:650;font-size:13px;line-height:1.3;margin-bottom:6px}
select,input:not([type="range"]) {height:41px;width:100%;border:1px solid #bbc9bd;background-color:#fffefa;border-radius:5px;color:var(--ink);padding:0 11px;font-size:14px;min-width:0}
select {appearance:none;padding-right:27px;background-image:linear-gradient(45deg,transparent 50%,#576b60 50%),linear-gradient(135deg,#576b60 50%,transparent 50%);background-position:calc(100% - 15px) 51%,calc(100% - 11px) 51%;background-size:4px 4px;background-repeat:no-repeat;cursor:pointer}
input::placeholder {color:#78847e}
.segments {display:flex;border:1px solid #bbc9bd;border-radius:5px;overflow:hidden}
.segments button {flex:1;min-width:0;min-height:39px;padding:6px 3px;font-size:13px;border-right:1px solid #d2dacf;background:#fffefa}
.segments button:last-child {border:0}
.segments button[aria-pressed="true"] {background:#234d3c;color:white;font-weight:650}
.segments button:hover:not([aria-pressed="true"]) {background:#edf4e9}
.segments button:focus-visible {outline-offset:-3px}
.help {color:var(--muted);font-size:12px;line-height:1.48;margin:6px 0 0}
.inline-action {font-size:12px;line-height:1.4;font-weight:650;color:var(--green);padding:3px 0;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#91a99b}
.primary,.secondary,.plain-button {font-size:14px;font-weight:650;border-radius:5px;min-height:42px}
.primary {background:#1d4c39;color:white;width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:45px;padding:10px 15px;margin-top:21px;text-decoration:none}
.primary span {font-size:17px;line-height:1}
.primary:hover {background:#123b2c}
.secondary,.plain-button {background:#edf2ea;color:var(--green);padding:9px 12px;border:1px solid #c3d0c4}
.secondary {width:100%;margin-top:9px}
.reference-field {padding:12px;background:#eef3ec;border-radius:6px}
.reference-field .plain-button {margin-top:10px}
.reference-field .plain-button:disabled {opacity:.55;cursor:default}
.plain-button {white-space:nowrap;font-size:12px;min-height:40px}
.colors {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.color {display:flex;align-items:center;gap:7px;min-height:39px;padding:6px 8px;text-align:left;border:1px solid var(--line);border-radius:5px;background:#fffefa;color:var(--ink);font-size:12px;line-height:1.15}
.color:hover {background:#f4f6ef}.color[aria-pressed="true"] {border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:#eff4ea;font-weight:700}
.color-dot {width:17px;height:17px;flex:none;border-radius:50%;border:1px solid #0002;background:linear-gradient(144deg,var(--swatch) 48%,#d7dadd 49%,#b5b9bf 60%,var(--swatch) 61%)}
.color[data-color="dark-charcoal"] .color-dot {background:linear-gradient(144deg,var(--swatch) 48%,#92979d 49% 60%,var(--swatch) 61%)}
@media(max-width:390px){.color{font-size:11px;gap:5px;padding-inline:6px}}
#playerName {text-transform:uppercase}
.code-preview {background:#f0f3ec;border-radius:5px;display:flex;align-items:center;justify-content:space-between;padding:13px;margin-top:17px;gap:12px}
.code-preview .field-label {margin:0}
.code-preview strong {font:600 14px var(--mono)}
.review-summary {border-block:1px solid var(--line);margin:6px 0 16px;padding:9px 0;display:grid;grid-template-columns:1fr 1fr;gap:9px 12px}
.review-summary div {padding:4px 0}
.review-summary small {display:block;color:var(--muted);font-size:11px}
.review-summary strong {display:block;margin-top:3px;font-size:13px;overflow-wrap:anywhere}
.receipt {background:#eaf1e7;border:1px solid #c5d6c6;padding:15px;border-radius:6px}
.receipt>strong {font-size:17px}.receipt>div {font-size:12px;margin-top:4px;color:var(--muted)}
.receipt>.primary {margin-top:14px}.receipt>.inline-action {margin:7px 0 0}
dialog {max-width:min(460px,calc(100vw - 26px));width:100%;max-height:88dvh;margin:auto;padding:0;border:1px solid #cad4c8;border-radius:10px;color:var(--ink);background:var(--white);box-shadow:0 20px 90px #06110b50}
dialog::backdrop {background:#071a13a6;backdrop-filter:blur(4px)}
.modal-inner {padding:clamp(22px,3.5vw,34px)}
.modal-title {display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.modal-title h2 {font-size:33px;margin:0 0 15px}
.close {font-size:26px;line-height:1;min-width:36px;min-height:36px;background:#edf1ea;border-radius:50%;font-weight:400}
.modal-intro {margin:-2px 0 15px}
.modal-inner .field:not(:first-child) {margin-top:14px}
.error {color:#8a2d1d!important}
.saved-item {border-top:1px solid var(--line);padding:13px 0}
.saved-item strong {font-size:15px}.saved-item p,.empty {font-size:13px;line-height:1.5;color:var(--muted);margin:4px 0}
.saved-actions {display:flex;gap:18px}.saved-actions button {min-height:32px}
#cardImage {width:100%;height:auto;display:block;border-radius:5px}
.toast {position:fixed;bottom:max(15px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#16372b;color:white;box-shadow:0 4px 20px #0e221c26;border-radius:6px;font-size:13px;line-height:1.4;padding:11px 17px;max-width:calc(100vw - 28px);width:max-content;z-index:5;pointer-events:none}
.toast:empty {display:none}
@media(min-width:1450px){.canvas-frame{height:460px}.panel{padding:30px}.field{margin-top:20px}}
@media(max-width:940px) and (min-width:741px){.workspace{grid-template-columns:minmax(0,1.15fr) minmax(315px,1fr);padding-inline:16px;gap:13px}.head-inner{padding-inline:19px}.build-sheet{padding:14px}.build-sheet dl>div{padding-left:7px}.dual{gap:8px}.stage-kicker{font-size:9px}}
@media(max-width:740px){
  .head-inner{min-height:56px;padding:0 15px;gap:10px}.brand-lockup{gap:10px}.brand-lockup img{width:105px}.brand-line{height:17px}.studio-id{font-size:9px;letter-spacing:.08em}.header-actions{gap:9px}.saved-link{padding:3px 0 3px 9px;font-size:11px;gap:5px;min-height:32px}.private-label{font-size:10px;gap:2px}
  .workspace{display:flex;flex-direction:column;padding:12px 12px 28px;gap:12px}.visual-column,.configuration{width:100%}.visual-column{position:static;display:contents}.viewer{width:100%;order:0}.configuration{order:1}.build-sheet{order:2;width:100%;margin:0}
  .view-head{padding:15px 18px 0}.view-head h1{font-size:31px;margin:3px 0 0}.stage-kicker{font-size:9px}.pro-mark{width:50px}.canvas-frame{height:clamp(158px,42vw,265px)}.viewer-dock{margin:4px auto 12px;padding:3px;gap:1px}.viewer-dock button{padding:4px 12px;min-height:32px;font-size:11px}
  .panel{padding:19px 17px 20px}.panel h2{font-size:31px;margin-bottom:14px}.step-tabs{padding:0 7px}.step-tabs button{min-height:43px}.field{margin-top:16px}.build-sheet{padding:16px}
  .blade-tools{margin:0 12px 6px}.legend{gap:12px;font-size:11px;margin-bottom:8px}.dark-segment button{min-height:30px;padding:4px 8px;font-size:11px}.comparison-switches select{font-size:11px;height:36px;min-height:32px}.light-tools{margin:0 auto 5px}
}
@media(max-width:420px){.private-label{font-size:0}.lock-icon{margin:2px 1px 0 0}.head-inner{padding-inline:12px}.viewer-dock button{min-height:35px}.dual{gap:9px}.build-sheet dd{font-size:13px}.build-sheet dl>div{padding-left:8px}}
@media(prefers-reduced-motion:no-preference){button,.primary,.hotspot span{transition:background-color .16s,color .16s,opacity .14s}}
@media(min-width:741px){.panel input:focus,.panel select:focus{scroll-margin:15px}}
.render-status:not([hidden]){pointer-events:auto}
.render-status[data-partial]{top:auto;bottom:3px;transform:translateX(-50%);width:max-content;max-width:96%}
#retryPreview{color:inherit;text-decoration:underline;text-underline-offset:2px;min-height:32px;padding:4px 8px}
#stageTitle{overflow-wrap:anywhere}
#colorLink{margin-top:8px}
@media(max-width:740px) and (min-height:610px){
  html{scroll-padding-top:calc(var(--preview-height,270px) + 48px)}
  .viewer{position:sticky;top:0;z-index:2;box-shadow:0 4px 10px #14271c0c}
  .configuration{overflow:clip}
  .step-tabs{position:sticky;top:var(--preview-height,270px);z-index:3}
  body.short-viewport .canvas-frame{height:85px}
  body.short-viewport .view-head{padding-top:6px}
  body.short-viewport .view-head h1{font-size:20px}
  body.short-viewport .viewer-dock{margin-bottom:4px}
  body.short-viewport .light-tools{display:none}
}
@media(max-width:740px){input:not([type="range"]),select{font-size:16px}.comparison-switches select{font-size:13px}}
.match-ruler{color:var(--green);flex:0 0 24px}
.go-arrow{display:inline-block;width:11px;height:11px;position:relative;vertical-align:middle;margin-left:2px}
.go-arrow::before,.go-arrow::after{content:"";position:absolute;right:1px;top:1px}
.go-arrow::before{width:8px;height:8px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
.go-arrow::after{border-top:1.5px solid currentColor;width:11px;transform-origin:right center;transform:rotate(-45deg)}
.match-card .go-arrow{margin-left:auto}
.mark-example{background:#eef2ea;border:1px solid #d3dece;border-radius:5px;padding:11px 13px;display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.mark-example code{font:700 16px var(--mono);color:#617061;white-space:nowrap}
.mark-example span{font-size:12px;color:var(--muted)}
.mark-example b{font-style:normal;font-weight:700;color:#924222}
.mark-example em{font-style:normal;font-weight:700;color:#205642}
.mobile-private{display:none}
.saved-link{white-space:nowrap}
@media(max-width:520px){
  .mobile-private{display:block;font:10px var(--sans);text-transform:none;letter-spacing:0;color:var(--muted);margin-top:2px}
  .private-label{display:none}.saved-link{border-left:none;padding-left:0}
  .field.build-hand{grid-template-columns:minmax(0,1.56fr) minmax(0,1fr);gap:8px}
}
@media(max-width:349px){.brand-lockup{gap:7px}.brand-lockup img{width:89px}.brand-line{display:none}.head-inner{gap:5px}.step-tabs button{font-size:12px}}
#gripFallback {position:absolute;inset:0;margin:auto;display:block;width:100%;height:100%;object-fit:contain}
.space-card {display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:14px;background:#e9f1e8;border:1px solid #c5d6c6;border-radius:6px;min-height:66px;margin-bottom:16px}
.space-card:hover {background:#e1ecdf}.space-card>img{flex:none}
.space-card strong,.space-card small{display:block}.space-card strong{font-size:15px}.space-card small{font-size:12px;color:#435b4d;line-height:1.45;margin-top:3px}
.space-card .go-arrow{margin-left:auto;align-self:center;color:var(--green);flex-shrink:0}
#spaceDialog{width:min(510px,calc(100% - 24px));max-width:calc(100% - 24px)}
.space-inner{padding:clamp(18px,3vw,30px)}
.space-inner .modal-title {align-items:center}.space-inner .modal-title h2{margin:0}
.space-specs{font-size:12px;line-height:1.6;margin:8px 0 14px;color:var(--muted)}
.space-stage{position:relative;height:clamp(190px,34dvh,325px);border:1px solid #cad8cb;border-radius:6px;overflow:hidden;background:radial-gradient(ellipse at 45% 35%,#f4f6ee,#dbe6da 60%,#becfc1);isolation:isolate}
.space-stage canvas,.space-stage #spaceOrbit,.space-stage model-viewer{display:block;position:absolute;inset:0;width:100%;height:100%}
.space-stage model-viewer{--poster-color:transparent;--progress-bar-color:#add9bd;--progress-bar-height:2px;--progress-mask:transparent;background:transparent}
#spaceOrbit:empty{pointer-events:none}
#orbitHint{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:4px;font-size:10px;color:#e6eee6;background:#14251ecc;white-space:nowrap;pointer-events:none}
.space-status{font-size:13px;margin:13px 0 0;line-height:1.5;color:var(--ink)}
.space-inner .primary,.space-inner .secondary{margin-top:12px}
.space-launch:not([hidden])::before{content:"Place on floor"}
.space-launch img{filter:brightness(0) invert(1);margin-left:auto;display:block}
.space-links{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:10px}
.space-links .inline-action{display:inline-flex;align-items:center;min-height:34px}
#spaceLinkField{margin-top:6px}
#spaceFeedback{min-height:0}
@media(max-height:600px){.space-stage{height:150px}.space-inner{padding:14px 18px}}

.home-link {display:flex;align-items:center}
.header-actions a {text-decoration:none}
.opt-in {display:flex;align-items:center;gap:9px;margin-top:14px;color:var(--ink);font:500 13px/1.4 var(--sans)}
.opt-in input[type="checkbox"] {width:17px;height:17px;min-height:0;flex:0 0 auto;accent-color:var(--green);margin:0}
.logo-field label .help {font-weight:400}
.logo-field input[type="file"] {font-family:var(--sans);font-size:13px;height:auto;min-height:40px;padding:6px}
.logo-field input::file-selector-button {border:0;border-radius:3px;background:#e8efe7;color:var(--ink);padding:6px 9px;margin-right:8px;font-weight:600}
#logoControls {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px}
#logoThumb {width:64px;height:40px;object-fit:contain;border:1px solid var(--line);border-radius:3px;padding:3px;background:#eff2ea}
.proof-link {display:inline-block;margin:10px 0 0}
.serial-line {margin-top:5px}
.serial-line strong {font-size:13px}
.serial-line select,.record-controls select {width:auto;min-height:40px;font-family:var(--mono)}
.record-controls,.record-controls label {display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.record-controls {justify-content:space-between;margin:.5rem 0}
.record-controls label {font-size:.875rem}
#saveStatus:empty,#logoStatus:empty {display:none}
@media(max-width:405px){.studio-id{display:none}.brand-line{display:none}.header-actions{gap:12px}.header-actions .saved-link{min-height:38px}}

.team-identity,.team-mark,.roster-toolbar{display:flex;align-items:center;gap:12px}
.brand-lockup .team-identity img{width:42px;height:40px;object-fit:contain}
.team-identity span{font:600 11px/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase}
.team-mark img{width:48px;height:40px;object-fit:contain}
.team-mark select{flex:1;min-width:0}
#rosterDialog{width:min(920px,calc(100% - 28px));max-width:calc(100% - 28px)}
.roster-toolbar{justify-content:space-between;flex-wrap:wrap}
.roster-scroll{max-width:100%;overflow:auto;margin:15px 0 20px}
.roster-scroll table{border-collapse:collapse;width:100%;font:13px/1.4 var(--sans)}
.roster-scroll th,.roster-scroll td{padding:9px 11px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.roster-scroll th{font-size:11px;color:var(--muted);font-weight:600}
.roster-scroll tbody tr:nth-child(even){background:#f4f6f1}
#rosterRows>p{font-size:14px;color:var(--muted)}
#rosterStatus:empty{display:none}
body[data-team] #saveReceipt{margin-top:14px}
@media(max-width:620px){.brand-lockup .team-identity img{width:32px;height:32px}.team-identity span{display:none}.team-identity{gap:0}}
@media(max-width:400px){body[data-team] .head-inner{padding-inline:10px}body[data-team] .header-actions{gap:8px}body[data-team] .brand-lockup .home-link img{width:80px}}

.share-entry {color:#203c31;background:#f5f7f2;border-color:#cdd7cc;margin-top:-5px}
.share-entry svg {flex:none;color:var(--green)}
.share-entry:hover {background:#e7eee6}
#recordDialog,#libraryDialog,#flatDialog {width:min(560px,calc(100% - 28px));max-width:calc(100% - 28px)}
.modal-inner :is(#recordStatus,#libraryStatus,#cardStatus):empty {display:none}
.record-stage {margin:12px 0;background:radial-gradient(ellipse at 45% 40%,#526b63,#182923 77%);border-radius:5px;overflow:hidden}
.record-stage canvas {display:block;width:100%;height:clamp(150px,27vh,270px)}
.record-specs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;margin:10px 0 16px}
.record-specs div {border-bottom:1px solid var(--line);padding:7px 0;overflow-wrap:anywhere}
.record-specs dt,.library-row small {font-size:12px;color:var(--muted)}
.record-specs dd {margin:3px 0 0;font-size:14px;font-weight:600}
.view-actions {display:grid;gap:9px}
.view-actions :is(.secondary,.primary),.poster-actions :is(.secondary,.primary) {margin:0;display:flex;justify-content:center;align-items:center;text-decoration:none}
.view-actions .inline-action {justify-self:start;text-align:left;min-height:36px}
.library-row {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.library-row:last-child {margin-bottom:12px}.library-row small,.roster-view {display:block}.roster-view {margin-top:5px}
#flatArtwork canvas {display:block;width:100%;height:auto;border-radius:4px;background:#26332c;margin:14px 0}
#imageDialog {width:min(510px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:94dvh}
#imageDialog .modal-inner {padding:clamp(12px,2.4vmin,22px)}
#imageDialog .modal-title {margin-bottom:10px}
.poster-preview {position:relative;display:grid;place-items:center;min-height:95px}
#cardImage {display:block;width:auto;max-width:100%;max-height:64dvh;object-fit:contain;border-radius:4px}
#cardStatus {margin:14px 0;font-size:14px;color:var(--muted)}
.poster-actions {display:flex;gap:10px;justify-content:center;margin-top:12px}
.poster-actions>* {flex:1}.card-number {margin:5px 0 10px}

.finish-weight-note {font-size:1rem;line-height:1.45;color:var(--muted);margin:-.45rem 0 1.15rem}
.base-finishes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0;padding:0;border:0;margin:0}
.base-finishes legend {font-weight:650;font-size:.9rem;margin-bottom:8px;padding:0}
.base-finishes label {position:relative;display:flex;margin:0;cursor:pointer;font-size:.9rem;font-weight:550}
.base-finishes input[type="radio"] {position:absolute;opacity:0;width:1px;height:1px;padding:0;margin:0}
.base-finishes label>span {display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-height:44px;width:100%;border:1px solid var(--line);border-radius:5px;padding:8px 11px;background:#fffefa}
.base-finishes input:checked+span,.tint-button[aria-pressed="true"] {border-color:#214f3c;box-shadow:inset 0 0 0 1px #214f3c;background:#e8f0e5}
.base-finishes input:focus-visible+span {outline:3px solid #b5552e;outline-offset:2px}
.material-note {margin:.8rem 0 1.15rem;padding:.75rem .875rem;background:#edf2eb;border-left:3px solid #63836c;border-radius:0 4px 4px 0}
.material-note p {margin:0;font-size:.925rem;line-height:1.5;color:#263e31}
.tint-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tint-button {display:flex;align-items:center;gap:7px;padding:7px 8px;min-height:44px;color:var(--ink);background:#fffefa;border:1px solid var(--line);border-radius:5px;text-align:left;font-size:.875rem}
.tint-button canvas {width:21px;height:24px;border-radius:3px;flex:none}
#openFinishProof {min-height:40px;margin:8px 0}
#proofArt canvas {width:100%;height:auto;display:block}
#proofDialog {width:min(720px,calc(100vw - 24px))}
#proofStatus:empty {display:none}
@media(max-width:740px){
  .viewer-dock {gap:1px}
  .viewer-dock button {padding-inline:clamp(5px,1.6vw,11px);font-size:.73rem}
}
@media(max-width:380px){
  .tint-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}

.draft-tools {padding:8px 20px;border-bottom:1px solid var(--line);background:#f4f6ef}
.draft-tools strong {display:block;margin-top:6px;font-size:1rem;color:var(--ink)}
.draft-tools p {margin:4px 0 6px;font-size:.875rem;color:var(--ink)}
.draft-actions {display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.draft-actions .secondary {width:auto;margin:0;min-height:36px;padding:6px 14px}
#deviceDrafts {min-height:36px}
#deviceDraftRows .library-row {display:flex;align-items:center;justify-content:space-between;gap:12px}
#deviceDraftRows strong,#deviceDraftRows small {display:block}

.public-review-specs {border-block:1px solid var(--line);margin:0 0 16px}
.public-review-specs>div {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:9px 0}
.public-review-specs>div+div {border-top:1px solid var(--line)}
.public-review-specs h3,.public-review-specs p {margin:0}
.public-review-specs h3 {font:inherit;font-weight:700;font-size:14px}
.public-review-specs p,.public-review-specs small {font-size:13px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.public-review-specs .inline-action {min-height:40px;padding-inline:6px}
.public-review-specs~.space-card {margin-top:12px}
.private-link-control {display:grid;justify-items:start;gap:4px;margin:6px 0}
.private-link-control .inline-action {min-height:36px}
.private-link-control .help {margin:0}
.private-link-control .help:empty {display:none}
.private-link-control input {width:100%;min-width:0}

#matchDialog {max-width:min(520px,calc(100vw - 24px));overscroll-behavior:contain}
#matchDialog .field :is(input,select) {font-size:1rem;min-height:44px}
#matchDialog label,#matchDialog summary {font-size:.9rem}
#matchDialog .help,#matchDialog .inline-action {font-size:.875rem}
#matchFeedback:empty,#matchReleaseSpec:empty,#matchRetailDescription:empty,#matchDifference:empty,#matchGeometry:empty {display:none}
#matchPatternWrap {margin-top:12px}
#matchReleaseName {font-size:1rem}
.match-profile {margin-top:14px;padding:13px 15px;background:#f0f4ec;border-radius:6px}
.match-profile h3 {font-size:1rem;margin:0}
.match-profile p {font-size:.9rem;line-height:1.45;margin:5px 0 0}
#matchGeometry {display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:6px 12px;margin:10px 0}
#matchGeometry dt {font-size:.8rem;color:var(--muted)}
#matchGeometry dd {font-size:.9rem;font-weight:600;margin:1px 0}
#matchClosest {border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
#matchSources {margin-top:9px}
#matchSources summary {color:var(--green);cursor:pointer}
#matchSourceLinks a {display:block;width:fit-content;max-width:100%;font-size:.875rem;margin:7px 0;text-decoration:underline;overflow-wrap:anywhere}
#browseMatchShape {margin-top:8px}
#matchForm .primary:disabled {opacity:.65}

.quiz-launch {background:var(--green);border-color:var(--green);color:white;padding:15px 17px}
.quiz-launch:hover {background:#113c2d}
.quiz-launch strong {font-size:1rem}
.quiz-launch small {color:#d5e7d9}
.quiz-launch + .match-card {background:transparent;border-color:transparent;padding:10px 3px 0;min-height:44px}
.quiz-launch + .match-card .match-ruler,.quiz-launch + .match-card small,.quiz-launch + .match-card .go-arrow {display:none}
.quiz-launch + .match-card strong {font-size:.85rem;font-weight:600;color:var(--green);text-decoration:underline;text-underline-offset:3px}
#quizDialog {max-width:min(520px,calc(100vw - 20px));max-height:92dvh;overscroll-behavior:contain}
.quiz-inner {padding:clamp(18px,4.5vw,32px)}
.quiz-heading,.quiz-step-header,.quiz-actions {display:flex;align-items:center;justify-content:space-between;gap:12px}
.quiz-heading {margin-bottom:16px}
#quizName {font-weight:650;color:var(--green);font-size:.94rem}
.quiz-heading .close {width:44px;height:44px}
.quiz-step-header {font:600 .75rem/1.4 var(--mono);color:var(--muted)}
#quizProgress {display:block;width:100%;height:4px;appearance:none;border:0;border-radius:4px;background:#e0e8de;color:var(--green);margin:7px 0 22px;overflow:hidden}
#quizProgress::-webkit-progress-bar {background:#e0e8de}
#quizProgress::-webkit-progress-value {background:var(--green)}
#quizProgress::-moz-progress-bar {background:var(--green)}
#quizTitle {font:400 clamp(1.85rem,6vw,2.4rem)/1.08 var(--serif);letter-spacing:-.045em;margin:0;text-wrap:balance}
#quizTitle:focus {outline:none}
.quiz-hint {color:var(--muted);font-size:.93rem;line-height:1.45;margin:10px 0 20px}
.quiz-options {display:grid;gap:7px}
.quiz-options[data-step="position"] {grid-template-columns:repeat(2,minmax(0,1fr))}
.quiz-fields {margin:0;border:0;padding:0;min-width:0}
.quiz-field {margin-top:16px}
.quiz-fields legend {font-size:.94rem;font-weight:650;margin-bottom:8px;padding:0}
.quiz-curve-feedback,.quiz-callout {font-size:.92rem;line-height:1.5;margin:9px 0 0}
.quiz-curve-feedback:empty {display:none}
.quiz-curve-feedback[data-status="matched"],.quiz-callout {background:#eef3ec;padding:10px 12px;border-radius:6px}
#quizKickHelp {margin:0 0 8px}
.quiz-choice {display:flex;align-items:center;gap:12px;min-height:46px;margin:0;padding:10px 13px;border:1px solid #c3cfc4;background:var(--white);border-radius:6px;cursor:pointer;line-height:1.3}
.quiz-choice:hover {background:#f4f7f0}
.quiz-choice:has(input:checked) {background:#e9f3e7;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.quiz-choice input[type="radio"] {accent-color:var(--green);flex:0 0 18px;width:18px;height:18px;padding:0;margin:0}
.quiz-choice strong {font-size:.93rem;font-weight:650}
.quiz-choice small {display:block;color:var(--muted);font-weight:400;font-size:.84rem;line-height:1.35;margin-top:2px}
#quizDialog :is(select,input[type="number"],input[type="text"]) {height:46px;font-size:1rem}
.quiz-optional {font-weight:400;color:var(--muted)}
#quizFlexFeelField {margin-top:18px}
#quizNearestField {border:0;padding:0;margin:20px 0 0}
#quizNearestField legend {font-size:.93rem;font-weight:650;padding:0}
#quizNearestField .help {margin:3px 0 10px}
#quizNearest {grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}
#quizNearest .quiz-choice {padding:8px;gap:6px}
#quizNearest .quiz-choice strong {font-size:.85rem}
#quizDialog .help {font-size:.84rem}
#quizBladeFeel,.quiz-guides {margin:10px 0 0}
#quizDialog summary {cursor:pointer;color:var(--green);font-size:.86rem;font-weight:600;padding-block:13px}
#quizDialog summary:focus-visible {outline:3px solid #b5552e;outline-offset:2px}
#quizDialog details label {font-weight:500}
.quiz-actions {margin-top:20px}
.quiz-actions button {width:auto;margin:0;min-height:46px}
.quiz-actions .primary {flex:1;justify-content:center}
.quiz-actions .secondary {padding-inline:20px}
#quizLookup {margin-top:6px;min-height:44px;font-size:.85rem}
#quizReasons {margin:0}
#quizReasons > div {padding:12px 0;border-top:1px solid var(--line)}
#quizReasons dt {font-size:.8rem;line-height:1.3;color:var(--muted)}
#quizReasons dd {margin:3px 0 0}
#quizReasons strong {font-size:1.06rem;color:var(--green)}
#quizReasons p,#quizNotes p {font-size:.9rem;line-height:1.45;margin:4px 0 0}
#quizNotes:not(:empty) {background:#eef3ec;border-radius:6px;padding:11px 13px}
#quizNotes p:first-child {margin-top:0}
#quizGuideLinks {padding-left:20px;margin:0 0 8px;color:var(--green)}
#quizGuideLinks a {font-size:.875rem;line-height:1.55;text-underline-offset:3px}
@media(max-width:380px) {
  .quiz-inner {padding:16px}
  .quiz-heading {margin-bottom:9px}
  #quizProgress {margin-bottom:15px}
  .quiz-choice {padding:9px 10px}
}

#libraryStatus {font-size:.875rem}
#libraryActions:not(:empty) {margin:14px 0 6px}
#libraryActions .inline-action {justify-self:center;display:inline-flex;align-items:center}
.order-sheet-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
.order-line-details {min-width:0;overflow-wrap:anywhere}
.order-line-details strong {display:block}
.order-line-details small {margin-top:4px;font-size:.8125rem;line-height:1.4}
.order-line-details .inline-action,.order-line-controls .inline-action {font-size:.875rem;min-height:36px}
.order-line-controls {display:grid;gap:3px;justify-items:end}
.order-line-controls .plain-button {font-size:.875rem;min-height:42px}
.order-line-controls .plain-button:disabled {opacity:.55}
.order-line-controls label {display:grid;gap:4px;color:var(--muted);font-size:.8125rem}
.order-line-controls select {width:76px;font-size:1rem}
.order-action-status:empty {display:none}
.order-admin {margin-top:16px;color:var(--muted);font-size:.875rem}
.order-admin summary {padding:6px 0;cursor:pointer}
@media (max-width:400px) {
  #libraryDialog .modal-inner {padding:18px}
  .order-sheet-row {column-gap:8px}
}
