@font-face{font-family:PF;src:url('../assets/fonts/PFanHuTuTi-0.680.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Kimpo;src:url('../assets/fonts/Kimpo-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--paper:#fbf6ea;--ink:#173f73;--body:#355a85;--muted:#62748a;--yellow:#f6c63b;--orange:#df6630;--line:#173f7326;--white:#fffcf5;--font:'Yuanti SC','STYuanti','Avenir Next','PingFang SC',sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--font)}button,input{font:inherit;color:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}button,input,a{outline-offset:4px}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #427dca}h1,h2,p{margin:0}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}fieldset{border:0;margin:0;padding:0;min-width:0}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-70px;left:20px;padding:10px 18px;background:var(--ink);color:white;z-index:100}.skip-link:focus{top:12px}[hidden]{display:none!important}
.header{max-width:1416px;margin:0 auto;padding:18px 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px}.brand img{object-fit:contain;mix-blend-mode:multiply;transform:rotate(-7deg);transition:transform .2s}.brand:hover img{transform:rotate(3deg) scale(1.12)}.brand>span{font:34px/1.15 PF,cursive}.brand small{display:block;font:12px/1.7 var(--font);letter-spacing:.14em;margin:6px 0 0 2px}.back-link{font-size:14px;padding:10px 0 10px 15px;display:flex;align-items:center;gap:10px}.back-link:hover{color:var(--orange)}main{max-width:1320px;margin:auto;padding:0 32px}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:27px 0 26px}.eyebrow{font-size:13px;letter-spacing:.18em;margin:0 0 5px 3px}.intro h1{font:clamp(38px,3.8vw,54px)/1.4 PF,cursive;letter-spacing:.01em}.intro h1 span{color:var(--orange)}.intro-note{font-size:14px;color:var(--body);line-height:1.9;margin-bottom:8px;padding-right:7px}
.workspace{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(350px,1fr);border:1.5px solid var(--ink);border-radius:22px;overflow:hidden;background:var(--white);box-shadow:4px 5px 0 #173f7310}.preview-panel{position:relative;background:#f3ecd9;min-height:682px;display:flex;flex-direction:column;border-right:1.5px solid var(--ink);overflow:hidden}.preview-panel:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#173f7319 .8px,transparent .8px);background-size:18px 18px;pointer-events:none;opacity:.45}.preview-top{display:flex;align-items:center;justify-content:space-between;padding:26px 30px 0;position:relative;z-index:1}.preview-label{font-family:PF,cursive;font-size:25px}.view-badge{font-size:12px;padding:3px 10px;border:1px solid #173f7330;border-radius:5px;color:var(--body);background:#fbf6eaa6}.viewport{position:relative;flex:1;min-height:440px;width:100%;isolation:isolate;cursor:grab;touch-action:pan-y}.viewport.is-dragging{cursor:grabbing}.viewport canvas{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:pan-y;outline-offset:-5px}.loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;font-size:14px;color:var(--body)}.loading img{mix-blend-mode:multiply}.preview-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;font-size:14px}.preview-error button{background:var(--white);border:1px solid var(--ink);border-radius:8px;padding:10px 24px;margin-top:18px}.view-tools{display:flex;align-items:center;gap:3px;position:relative;align-self:center;border:1px solid #173f732b;border-radius:99px;background:#fffaf0ed;padding:3px 9px;box-shadow:0 2px 6px #173f7307;margin-top:0}.view-tools button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:5px 10px;border:0;border-radius:50%;background:transparent;font-size:13px}.view-tools button:hover{background:#f6c63b40}.tool-divider{height:20px;width:1px;background:var(--line);margin:0 4px}.drag-hint{font-size:12px;text-align:center;margin:10px 0 22px;color:var(--muted);position:relative}.preview-bottom{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 28px;padding:19px 0 22px;border-top:1px solid var(--line)}.mini-label{display:block;font-size:12px;margin-bottom:3px;color:var(--muted)}.preview-bottom strong{font-size:16px;font-weight:500}.sample-note{font-size:12px;color:var(--muted);border:1px solid #173f7329;border-radius:4px;padding:2px 8px;transform:rotate(-4deg)}
.customizer{padding:28px 32px 23px}.type-toggle{display:grid;grid-template-columns:1fr 1fr;background:#f0eddf;border-radius:10px;padding:4px;gap:4px}.type-toggle label{position:relative;cursor:pointer}.type-toggle input{position:absolute;opacity:0;inset:0}.type-toggle span{display:flex;justify-content:center;align-items:center;min-height:45px;border:1.5px solid transparent;border-radius:7px;transition:background .2s,border-color .2s}.type-toggle input:checked+span{background:var(--yellow);border-color:var(--ink);box-shadow:1px 2px 0 #173f7317}.type-toggle input:focus-visible+span{outline:3px solid #427dca;outline-offset:2px}.control-section{margin-top:25px}.control-section legend,.control-section h2{display:flex;align-items:center;font-size:16px;font-weight:500;gap:8px;width:100%;margin-bottom:13px;line-height:1.5}.step{font:22px/1 Kimpo,cursive;color:var(--orange);margin-right:2px}.shape-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shape-option{position:relative;min-width:0;cursor:pointer}.shape-option input{position:absolute;opacity:0;inset:0}.shape-tile{display:flex;flex-direction:column;align-items:center;gap:1px;border:1px solid #173f7333;border-radius:9px;background:#fffefa;padding:6px 4px 10px;transition:background .2s,border-color .2s;overflow:hidden;min-height:104px}.shape-tile img{height:66px;width:82px;object-fit:contain;pointer-events:none}.shape-tile .shape-number{font:30px Kimpo,cursive;height:66px;display:flex;align-items:center;color:#8d9aad}.shape-tile .shape-name{font-size:13px}.shape-option input:checked+.shape-tile{background:#fff3c6;border:1.5px solid var(--ink);padding:5.5px 3.5px 9.5px}.shape-option input:checked+.shape-tile:after{content:'✓';position:absolute;right:5px;top:2px;color:var(--ink);font-size:12px}.shape-option input:focus-visible+.shape-tile{outline:3px solid #427dca;outline-offset:2px}.shape-option:hover .shape-tile{background:#f6c63b20}.selection-name{margin-left:auto;font-size:13px;font-weight:400;color:var(--muted)}.color-options{display:flex;align-items:center;gap:15px}.color-option{position:relative;width:44px;height:44px;cursor:pointer}.color-option input{position:absolute;opacity:0;inset:0}.color-swatch{position:absolute;inset:3px;border-radius:50%;background:var(--swatch);border:1px solid #173f7326;display:flex;align-items:center;justify-content:center;transition:transform .18s}.color-option input:checked+.color-swatch{outline:1.5px solid var(--ink);outline-offset:3px}.color-option input:checked+.color-swatch:after{content:'✓';font-size:17px;color:var(--ink)}.color-option input:focus-visible+.color-swatch{outline:3px solid #427dca;outline-offset:3px}.color-option:hover .color-swatch{transform:scale(1.08)}.text-section{border-top:1px dashed var(--line);padding-top:22px;margin-top:21px}.text-section h2{margin-bottom:16px}.field{margin-top:12px}.field-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:5px;font-size:13px}.field-heading label{font-size:14px}.field-heading small{color:var(--muted);font-size:12px;margin-left:5px}.field-heading>span{font-size:12px;color:var(--muted)}.field input{background:#fffefa;border:1px solid #173f7333;border-radius:7px;padding:9px 12px;min-height:43px;width:100%;font-size:15px;transition:border-color .2s}.field input:hover{border-color:#173f7370}.field input:focus{border-color:var(--ink)}.field input::placeholder{color:#818b98}.suggestions{display:flex;align-items:center;flex-wrap:wrap;column-gap:8px;row-gap:2px;margin-top:10px;color:var(--muted);font-size:12px}.suggestions button{font-size:12px;background:transparent;border:0;padding:7px 1px;min-height:32px;text-decoration:underline;text-decoration-color:#173f733c;text-underline-offset:4px;color:var(--body)}.suggestions button:hover{color:var(--orange)}.actions{margin-top:21px}.download{width:100%;background:var(--ink);color:var(--paper);border:1.5px solid var(--ink);border-radius:8px;padding:12px 17px;min-height:50px;display:flex;align-items:center;justify-content:center;gap:11px;font-size:15px;transition:transform .2s,background .2s;box-shadow:2px 3px 0 #173f731a}.download:not(:disabled):hover{background:#265489;transform:translateY(-1px)}.download>span{margin-left:auto;font-size:19px}.download svg{margin-right:auto}.actions p{font-size:12px;text-align:center;color:var(--muted);margin-top:9px}.prototype-note{font-size:12px;color:var(--muted);text-align:center;margin:18px 0 28px}footer{max-width:1320px;margin:auto;padding:21px 32px 25px;border-top:1px solid var(--line);display:flex;align-items:center;gap:18px;font-size:13px;color:var(--body)}.footer-brand{font:26px PF,cursive;color:var(--ink)}.edition{margin-left:auto;color:var(--muted);font-size:12px}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;z-index:10;max-width:calc(100% - 32px);padding:11px 21px;background:var(--ink);color:var(--paper);border-radius:10px;font-size:14px;transition:opacity .2s,transform .2s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.noscript{padding:20px;text-align:center;background:var(--yellow)}
@media(min-width:1440px){.viewport{min-height:455px}.customizer{padding:30px 36px 25px}}
@media(max-width:1050px){.header{padding:15px 28px}main{padding:0 24px}.workspace{grid-template-columns:minmax(0,1.12fr) minmax(330px,1fr)}.customizer{padding:25px}.intro h1{font-size:44px}.intro-note{font-size:13px}.preview-top{padding:24px 22px 0}.preview-label{font-size:23px}.preview-bottom{margin:0 22px}.sample-note{display:none}.color-options{gap:12px}}
@media(max-width:760px){.header{padding:12px 20px}.brand>span{font-size:29px}.brand img{width:55px;height:55px}.brand small{font-size:11px;margin-top:4px}.back-link{font-size:13px}.intro{padding:24px 0 20px;display:block}.eyebrow{font-size:12px}.intro h1{font-size:41px}.intro-note{font-size:13px;margin:6px 0 0}.intro-note br{display:none}.workspace{grid-template-columns:1fr;overflow:visible;border-radius:17px}.preview-panel{min-height:0;border-right:0;border-bottom:1.5px solid var(--ink);border-radius:15px 15px 0 0;overflow:hidden}.viewport{height:330px;min-height:330px;flex:auto}.preview-top{padding:18px 20px 0}.preview-label{font-size:23px}.preview-bottom{padding:13px 0 16px;margin:0 22px}.preview-bottom>div{display:flex;align-items:center;gap:10px}.mini-label{margin:0}.preview-bottom strong{font-size:14px}.sample-note{display:block}.view-tools{padding:1px 7px}.view-tools button{min-height:40px;min-width:42px}.drag-hint{margin:7px 0 13px}.customizer{padding:24px}.shape-tile{min-height:118px}.shape-tile img{height:78px;width:99px}.shape-tile .shape-name{font-size:14px}.type-toggle span{font-size:16px}.field input{font-size:16px;min-height:46px}.suggestions{column-gap:12px}.suggestions button{min-height:44px}.actions{margin-top:16px}.download{min-height:52px}.prototype-note{max-width:400px;margin:16px auto 24px}footer{margin:0 24px;padding:20px 0;gap:12px;flex-wrap:wrap}.edition{display:none}.footer-brand{font-size:23px}footer p{font-size:12px}}
@media(max-width:390px){main{padding:0 14px}.header{padding:12px 14px}.brand{gap:4px}.back-link{font-size:12px}.intro h1{font-size:37px}.intro-note{max-width:300px}.viewport{height:290px;min-height:290px}.customizer{padding:22px 18px}.shape-options{gap:8px}.shape-tile img{width:80px}.sample-note{display:none}.color-options{gap:12px}.field-heading{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}html{scroll-behavior:auto}}
/* Medal editor: keep the established paper, yellow and handwritten brand. */
.workspace{align-items:start;overflow:visible;background:transparent;border:0;box-shadow:none;gap:0}.preview-panel{position:sticky;top:18px;min-height:0;border:1.5px solid var(--ink);border-radius:22px 0 0 22px;box-shadow:3px 4px 0 #173f730a}.customizer{min-width:0;background:var(--white);border:1.5px solid var(--ink);border-left:0;border-radius:0 22px 22px 0;padding:25px 28px 22px;box-shadow:3px 4px 0 #173f730a}.viewport{height:490px;min-height:0;flex:none}.mode-switch{display:flex;align-self:center;gap:3px;background:#fffcf5bd;border:1px solid var(--line);border-radius:99px;padding:3px;margin:15px 0 0;position:relative;z-index:1}.mode-switch button{font-size:13px;min-height:37px;padding:6px 20px;border:0;background:transparent;border-radius:99px}.mode-switch button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.selection-box{position:absolute;border:1.5px dashed var(--ink);border-radius:4px;pointer-events:none;z-index:3;box-shadow:0 0 0 1px #fff9}.selection-box:after{content:'';position:absolute;right:-4px;bottom:-4px;width:7px;height:7px;border:1px solid var(--ink);background:var(--paper);border-radius:1px}.view-tools{margin-top:0}.drag-hint{min-height:20px}.editor-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);margin-top:17px}.editor-tabs button{min-height:45px;border:0;border-bottom:2px solid transparent;background:transparent;font-size:14px;color:var(--muted);padding:9px 4px}.editor-tabs button[aria-selected=true]{border-color:var(--ink);color:var(--ink);font-weight:600}.shape-field{margin-top:20px}.shape-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.shape-tile{min-height:101px;padding:6px 2px 8px}.shape-tile img{width:78px;max-width:100%;height:65px}.shape-tile .shape-name{font-size:12px;white-space:nowrap}.shape-index{font:14px Kimpo,var(--font);color:var(--muted);line-height:1.2}.shape-option input:checked+.shape-tile{padding:5.5px 1.5px 7.5px}.border-control{margin-top:16px}.check-label{display:flex;align-items:center;gap:7px;font-size:14px;cursor:pointer;min-height:30px}.check-label input{width:17px;height:17px;accent-color:var(--ink);flex:none;margin:0}.control-note{font-size:12px;line-height:1.7;color:var(--muted);margin-top:6px}.color-field{margin-top:20px}.palette-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.palette-option{display:flex;align-items:center;justify-content:flex-start;gap:10px;border:1px solid #173f7333;border-radius:8px;padding:9px;min-height:48px;background:#fffefa;font-size:13px;text-align:left;position:relative}.palette-option:hover{background:#f5eddb}.palette-option[aria-pressed=true]{border:1.5px solid var(--ink);padding:8.5px;background:#f6c63b15}.palette-option[aria-pressed=true]:after{content:'✓';margin-left:auto;font-size:12px}.palette-chips{display:flex;width:37px;flex:none}.palette-chips span{width:24px;height:24px;border:1px solid #173f7320;border-radius:50%;background:var(--chip)}.palette-chips span+span{margin-left:-10px}.custom-colors{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 0 3px}.custom-colors label{display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer}.custom-colors input{width:36px;height:36px;background:transparent;border:0;border-radius:7px;padding:0;cursor:pointer;flex:none}.custom-colors input::-webkit-color-swatch-wrapper{padding:2px}.custom-colors input::-webkit-color-swatch{border-radius:7px;border:1px solid var(--line)}#swap-colors{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:transparent;font-size:23px}.next-section{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:45px;border:1px solid var(--ink);border-radius:8px;background:var(--yellow);font-size:14px;margin-top:21px;padding:9px 15px}#panel-content{padding-top:6px}.arc-field{padding-bottom:14px;border-bottom:1px dashed var(--line)}.field-heading .check-label{font-size:14px}.icon-field{margin:16px 0 12px}.icon-field legend{font-size:14px;margin-bottom:9px}.icon-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.icon-option{min-height:46px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;background:#fffefa;border:1px solid #173f7333;border-radius:7px;padding:7px 4px}.icon-option[aria-pressed=true]{border:1.5px solid var(--ink);background:#fff3c6;padding:6.5px 3.5px}.icon-option svg{width:20px;height:20px;fill:currentColor;stroke:none}.extra-text{border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);padding:10px 0;margin:14px 0}.extra-text summary{cursor:pointer;font-size:13px;min-height:30px;padding:4px 0}.extra-text[open]{padding-bottom:15px}.layout-controls{margin-top:17px}.layout-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.layout-heading h2{font:15px var(--font);font-weight:500}.layout-heading button{background:transparent;border:0;font-size:12px;color:var(--body);text-decoration:underline;text-underline-offset:3px;min-height:36px;padding:4px 0}.layout-controls select{width:100%;background:#fffefa;border:1px solid #173f7333;border-radius:7px;min-height:42px;font:14px var(--font);padding:7px 10px;color:var(--ink)}select:focus-visible{outline:3px solid #427dca;outline-offset:3px}.range-row{display:grid;grid-template-columns:35px 1fr 42px;align-items:center;gap:10px;min-height:40px;font-size:13px}.range-row input{width:100%;accent-color:var(--ink);min-height:28px;cursor:pointer;margin:0}.range-row output{font-size:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}.nudge-controls{display:flex;align-items:center;gap:7px;margin-top:5px}.nudge-controls button{border:1px solid var(--line);background:var(--white);border-radius:7px;width:39px;min-height:39px;font-size:20px;padding:3px;flex:none}.nudge-controls span{font-size:11px;color:var(--muted);margin-left:auto;max-width:85px;line-height:1.5}#transform-controls:disabled{opacity:.45}.customizer .actions{margin-top:21px}.shape-options.trophy-shapes{grid-template-columns:repeat(3,minmax(0,1fr))}.shape-options.trophy-shapes .shape-tile{min-height:103px}
@media(max-width:1050px){.customizer{padding:22px}.shape-tile .shape-name{font-size:11px}.shape-tile img{height:61px}.palette-option{gap:7px;font-size:12px}.viewport{height:465px}.custom-colors label{gap:4px;font-size:11px}}
@media(max-width:760px){.workspace{gap:0}.preview-panel{position:relative;top:auto;border-radius:17px 17px 0 0}.customizer{border:1.5px solid var(--ink);border-top:0;border-radius:0 0 17px 17px;padding:23px}.viewport{height:365px;min-height:0}.preview-top{padding-top:18px}.mode-switch{margin-top:11px}.mode-switch button{min-height:37px}.shape-tile{min-height:108px}.shape-tile img{height:67px}.shape-tile .shape-name{font-size:12px}.palette-option{font-size:13px}.custom-colors label{font-size:12px}.icon-option{min-height:48px}.nudge-controls button{width:44px;min-height:44px}.nudge-controls span{font-size:12px;max-width:95px}.layout-controls select{font-size:16px}.field input{font-size:16px}.control-note{font-size:12px}.view-tools button{min-width:44px;min-height:44px}}
@media(max-width:390px){.viewport{height:315px}.customizer{padding:20px 16px}.shape-options{gap:5px}.shape-tile img{height:60px}.shape-tile .shape-name{font-size:11px}.shape-tile{min-height:99px}.palette-option{font-size:12px}.custom-colors label{font-size:11px}.custom-colors input{width:30px;height:34px}.nudge-controls{gap:5px}.nudge-controls span{font-size:11px;max-width:73px}}

/* Direct manipulation, matching the frame editor's text workflow. */
.viewport{isolation:isolate}.viewport>canvas{position:relative;z-index:1}.viewport .selection-box{z-index:5;pointer-events:none;border:1.5px solid #579bd7;overflow:visible}.selection-box[hidden]{display:none}.selection-box button{position:absolute;pointer-events:auto;touch-action:none;border:0;background:transparent;width:44px;height:44px;padding:0;display:grid;place-items:center;color:#173f73}.resize-handle::after{content:"";width:10px;height:10px;border:2px solid #579bd7;background:#fff;border-radius:2px;box-shadow:0 1px 4px #173f7322}.resize-handle.nw{left:-22px;top:-22px;cursor:nwse-resize}.resize-handle.ne{right:-22px;top:-22px;cursor:nesw-resize}.resize-handle.sw{left:-22px;bottom:-22px;cursor:nesw-resize}.resize-handle.se{right:-22px;bottom:-22px;cursor:nwse-resize}.selection-box .move-handle{left:calc(50% - 22px);bottom:-48px;background:#fbf6ea;border:1px solid #579bd7;border-radius:50%;font-size:23px;cursor:move}.layout-limited .selection-box{border-color:#aa5735}.layout-limited .resize-handle::after{border-color:#aa5735}.selection-box button:focus-visible{outline:3px solid #173f73;border-radius:6px}.inline-editor{position:absolute;z-index:4;background:#fffef8;border:2px solid #579bd7;border-radius:8px;box-shadow:0 6px 20px #173f7318;overflow:hidden;pointer-events:auto}.inline-editor[hidden]{display:none}.inline-editor textarea{display:block;width:100%;min-height:76px;max-height:160px;resize:none;border:0;background:transparent;padding:12px 10px 4px;text-align:center;color:#173f73;font-family:PF,"PingFang SC",sans-serif;line-height:1.35;outline-offset:-3px}.inline-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:4px 8px 8px}.inline-actions>span{font-size:12px;color:#62748a;margin-right:auto}.inline-actions button{min-height:36px;padding:3px 10px;border-radius:6px;border:1px solid #173f7333;background:#fbf6ea;font:inherit;font-size:14px;color:#173f73}.inline-actions #finish-edit{background:#173f73;color:#fff}.inline-actions button:disabled{opacity:.4;cursor:not-allowed}#inline-error{font-size:14px;line-height:1.45;padding:6px 10px 10px;margin:0;background:#fff0e5;color:#8b422e}.add-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.add-tools button{min-height:48px;border:1.5px solid #173f73;border-radius:9px;background:#ffedab;color:#173f73;font:inherit;font-weight:700;font-size:16px}.add-tools button+button{background:#fffdf5}.add-tools button:disabled{opacity:.45;cursor:not-allowed}.text-layers{display:grid;gap:8px;margin:18px 0}.text-layer{width:100%;display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:50px;border:1px solid #173f7329;border-radius:8px;padding:10px 12px;background:#fffdf7;color:#173f73;text-align:left;font:inherit}.text-layer span{white-space:pre-line;overflow-wrap:anywhere;font-family:PF,"PingFang SC",sans-serif;font-size:19px}.text-layer small{flex-shrink:0;font-size:12px;color:#62748a}.text-layer[aria-pressed=true]{border:2px solid #579bd7;background:#edf5fc;padding:9px 11px}.selection-actions{display:flex;align-items:center;gap:8px;margin-bottom:14px}.selection-actions strong{margin-right:auto;font-size:15px}.selection-actions button,.text-button{border:1px solid #173f7329;border-radius:7px;min-height:40px;padding:6px 12px;background:#fffdf7;color:#173f73;font:inherit;font-size:14px}#delete-selected{color:#984d40}.size-label{display:flex;justify-content:space-between;font-size:14px;margin:8px 0}.size-label span{font-size:12px;color:#62748a}.number-stepper{display:flex;align-items:center;border:1px solid #173f7340;border-radius:8px;overflow:hidden;max-width:260px;background:#fffdf7}.number-stepper button{width:44px;min-height:44px;flex-shrink:0;border:0;background:transparent;color:#173f73;font-size:20px}.number-stepper button:disabled{opacity:.3;cursor:not-allowed}.number-stepper input{width:80px;min-width:0;flex:1;border:0;background:transparent;text-align:center;padding:8px 0;font:inherit;font-size:16px;color:#173f73;-moz-appearance:textfield}.number-stepper input::-webkit-inner-spin-button,.number-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.number-stepper>span{font-size:14px;color:#62748a;padding-right:8px}.text-stepper{width:100%;max-width:none}.medal-size{display:flex;align-items:center;gap:14px;justify-content:space-between;margin:18px 0}.medal-size>label{font-size:14px;font-weight:600}.medal-size .number-stepper{max-width:190px}.interaction-status{font-size:14px;line-height:1.6;color:#62748a;margin:14px 0 8px;min-height:2.9em}.text-button{background:transparent}.existing-icons{border-top:1px solid #173f7324;margin-top:20px;padding-top:15px}.existing-icons summary{cursor:pointer;font-size:14px}.existing-icons .icon-options{margin:12px 0}.print-note{border-top:1px solid #173f7324;margin:20px 0 0;padding-top:15px;font-size:13px;color:#62748a;line-height:1.65}.print-note strong{font-size:14px;color:#173f73}.print-note p{margin:5px 0}.trophy-only{padding-top:20px}.direct-editor .nudge-controls{margin-top:12px}.direct-editor .nudge-controls button{min-width:42px;min-height:42px}.is-dragging .inline-editor{display:none}.loading,.preview-error{z-index:8}.selection-box .move-handle:hover{background:#e5f0fa}
@media(max-width:600px){.medal-size{align-items:flex-start;flex-wrap:wrap}.viewport{height:390px}.text-layer span{font-size:18px}.inline-editor textarea{min-height:65px}.inline-actions button{min-height:40px}.nudge-controls span{font-size:12px}.number-stepper button{width:44px}.selection-box .move-handle{bottom:-45px}}

/* Text editor V7: the artwork stays visible while its compact inspector edits it. */
.selection-box{transform-origin:center;border-radius:0}.selection-box:after{display:none}
.resize-handle::after{width:12px;height:12px;border-radius:50%;box-shadow:none}
.selection-box .rotation-handle{left:calc(50% - 22px);top:-48px;cursor:grab}
.rotation-handle::before{content:"";position:absolute;top:23px;left:21px;height:25px;width:1px;background:#579bd7;z-index:-1}
.rotation-handle span{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid #579bd7;border-radius:50%;background:#fffdf7;font-size:19px;line-height:1}
.rotation-handle:active{cursor:grabbing}.rotate-below .rotation-handle{top:auto;bottom:-48px}.rotate-below .rotation-handle::before{top:auto;bottom:23px}
.direct-editor .add-tools{grid-template-columns:1fr 44px 44px;gap:7px;margin-top:18px}
.add-tools #undo,.add-tools #redo{font-family:var(--font);font-size:23px;min-height:44px;border:1px solid #173f7329;font-weight:400}
.text-layers{gap:7px;margin:14px 0}.text-layer{min-height:44px;padding:8px 11px}.text-layer[aria-pressed=true]{padding:7px 10px}.text-layer span{font-family:var(--font);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-layer small{font-size:11px}
.empty-selection{font-size:13px;line-height:1.6;color:var(--muted);padding:16px 12px;background:#fbf6ea;border-radius:8px}
#selection-tools{border-top:1px solid var(--line);padding-top:13px}.selection-actions{margin-bottom:8px}.selection-actions button{min-height:32px;font-size:12px;padding:4px 10px}
#selected-text{display:block;width:100%;height:72px;min-height:72px;max-height:110px;resize:vertical;border:1px solid #173f7340;border-radius:8px;background:#fffefa;color:var(--ink);font:16px/1.6 var(--font);padding:10px 12px}
#selected-text:focus{outline:2px solid #579bd7;outline-offset:1px}
.text-input-meta{display:flex;justify-content:space-between;margin-top:5px;font-size:11px;color:var(--muted)}
#text-error{margin:8px 0;padding:8px 10px;border-radius:6px;background:#fff0e5;color:#8b422e;font-size:12px;line-height:1.55}
#revert-text{font-size:12px;min-height:32px;padding:4px 8px}
.effect-field{margin:16px 0 0;padding:0;border:0}.effect-field legend{font-size:13px;margin-bottom:8px}.effect-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.effect-options button{min-height:42px;border:1px solid #173f7333;border-radius:8px;background:#fffefa;font-size:14px}.effect-options button[aria-pressed=true]{background:#ffedab;border:1.5px solid #173f73}
#curve-controls{margin-top:14px}.curve-heading,.curve-labels{display:flex;align-items:center;justify-content:space-between;font-size:12px}.curve-heading output{font-variant-numeric:tabular-nums}#curve{width:100%;min-height:32px;margin:5px 0 0;accent-color:#579bd7;cursor:pointer}.curve-labels{color:var(--muted);font-size:11px}
#text-metrics{margin-top:15px}#min-size-note{font-size:11px;margin-top:2px}.interaction-status{min-height:0;font-size:12px;margin:13px 0 0}.existing-icons{margin-top:14px;padding-top:12px}.print-note{font-size:11px;line-height:1.6;margin-top:14px;padding-top:12px}
#curve{appearance:none;background:transparent;height:36px}#curve::-webkit-slider-runnable-track{height:4px;border-radius:3px;background:#d3e1ef}#curve::-webkit-slider-thumb{appearance:none;margin-top:-7px;width:18px;height:18px;border:2px solid #579bd7;border-radius:50%;background:#fff}#curve::-moz-range-track{height:4px;border-radius:3px;background:#d3e1ef}#curve::-moz-range-thumb{width:15px;height:15px;border:2px solid #579bd7;border-radius:50%;background:#fff}
.download #export-label{margin:auto;font-size:14px}.secondary-download{margin-top:8px;background:transparent;color:var(--ink);border:1px solid var(--line);box-shadow:none;min-height:38px;font-size:13px;padding:8px}.secondary-download:not(:disabled):hover{background:#f4eedf;transform:none}.actions #export-status{font-size:11px;line-height:1.6}.actions .download[hidden]{display:none}
@font-face{font-family:AwardHand;src:url('./fonts/Xiaolai-Regular.ttf') format('truetype');font-display:swap}@font-face{font-family:AwardLatin;src:url('./fonts/Chewy-Regular.ttf') format('truetype');font-display:swap;unicode-range:U+0020-007E}.inline-editor textarea,.text-layer span{font-family:AwardLatin,AwardHand,"PingFang SC",sans-serif}
/* Sketch: docs/design/awards-flower-petals/flower-petal-control.sketch */
.shape-options:not(.trophy-shapes){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shape-options:not(.trophy-shapes) .shape-tile{min-height:105px}.shape-options:not(.trophy-shapes) .shape-name{font-size:14px;white-space:normal}
.petal-field{margin:20px 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.petal-field legend{float:left;width:100%;display:flex;justify-content:space-between;gap:12px;font-size:14px;font-weight:600;margin-bottom:12px}.petal-field legend span{font-weight:400;color:var(--muted)}.petal-options{clear:both;display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:10px}.petal-option{position:relative;cursor:pointer;min-width:0}.petal-option input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer}.petal-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:78px;border:2px solid #173f7320;border-radius:9px;background:#fffdf7;font-size:14px;padding:4px;pointer-events:none}.petal-tile img{width:58px;height:42px;object-fit:contain}.petal-option input:checked+.petal-tile{border-color:#579bd7;background:#ffedab;font-weight:600}.petal-option input:focus-visible+.petal-tile{outline:3px solid #173f73;outline-offset:3px}.petal-option:hover .petal-tile{border-color:#579bd7}.petal-field .control-note{margin-top:10px}

/* V8 yellow icon theme — source components in docs/design/awards-yellow-icons/. */
:root{--ink:#103c60;--yellow:#ffd45b;--yellow-soft:#fff0b8;--icon-cream:#fff6e5}
.ui-icon,.ui-art{display:block;flex:none;object-fit:contain;pointer-events:none}
.ui-icon{width:26px;height:26px}.ui-art{width:28px;height:28px}
.brand img,.loading img{mix-blend-mode:normal}.brand img{transform:rotate(-5deg)}
.intro h1 span{color:var(--ink);background:linear-gradient(transparent 66%,#ffd45b 66%,#ffd45b 91%,transparent 91%);border-radius:12px}
.back-link:hover{color:var(--ink)}.back-link .ui-icon{width:27px;height:27px}.icon-next{transform:rotate(180deg)}
.type-toggle{background:#f6efdb}.type-toggle span{gap:9px;min-height:54px}.type-toggle .type-art{width:36px;height:36px}
.type-toggle input:checked+span{background:var(--yellow-soft);border-color:var(--ink)}
.editor-tabs button,.mode-switch button,.effect-options button,.add-tools button{display:flex;align-items:center;justify-content:center;gap:8px}
.editor-tabs button{min-height:54px}.editor-tabs button[aria-selected=true]{background:linear-gradient(transparent 78%,#ffe48c 78%);border-color:var(--ink)}
.mode-switch button{padding:6px 15px;gap:5px;color:var(--ink)}.mode-switch button .ui-art,.mode-switch button .ui-icon{width:24px;height:24px}
.mode-switch button[aria-pressed=true]{color:var(--ink);background:var(--yellow);box-shadow:0 0 0 1px #103c6020}
.view-tools{border-color:#103c6040;background:#fffaf0}.view-tools button{gap:3px;padding:5px 8px}.view-tools #front-view{border-radius:22px}.view-tools #front-view .ui-icon{width:23px;height:23px}
.view-tools button:hover,.add-tools #undo:not(:disabled):hover,.add-tools #redo:not(:disabled):hover{background:var(--yellow-soft)}
.add-tools #add-text,.next-section{background:var(--yellow-soft);border-color:var(--ink)}
.add-tools #add-text:not(:disabled):hover,.next-section:hover{background:var(--yellow)}
.add-tools #undo,.add-tools #redo{border-color:#103c6038}
.effect-options button[aria-pressed=true],.text-layer[aria-pressed=true]{background:var(--yellow-soft);border-color:var(--ink)}
.effect-options button .ui-icon{width:24px;height:24px}
.download{background:var(--yellow);color:var(--ink);border:1.5px solid var(--ink);border-radius:10px;box-shadow:2px 3px 0 #103c601a}
.download:not(:disabled):hover{background:#ffdf7c}.download #export-label{margin:0;font-size:14px}.download .ui-icon{width:28px;height:28px}
.secondary-download{background:transparent;box-shadow:none;border-color:#103c6038}.secondary-download .ui-icon{width:24px;height:24px}.secondary-download:not(:disabled):hover{background:var(--yellow-soft)}
#selected-text:focus{outline-color:var(--ink)}
.viewport .selection-box{border-color:var(--ink)}.resize-handle::after{border-color:var(--ink);background:var(--yellow)}
.rotation-handle::before{background:var(--ink)}.rotation-handle span{border-color:var(--ink);font-size:0;background:var(--icon-cream) url('./assets/ui-yellow/rotate-right.svg') center/19px 19px no-repeat}
.layout-limited .selection-box,.layout-limited .resize-handle::after{border-color:#aa5735}
#curve::-webkit-slider-runnable-track{background:#f3dd94}#curve::-webkit-slider-thumb{background:var(--yellow);border-color:var(--ink)}
#curve::-moz-range-track{background:#f3dd94}#curve::-moz-range-thumb{background:var(--yellow);border-color:var(--ink)}
.petal-option input:checked+.petal-tile{border-color:var(--ink);background:var(--yellow-soft)}.petal-option:hover .petal-tile{border-color:#c89718}
.step{color:var(--ink);background:var(--yellow-soft);border-radius:50%;width:29px;height:29px;display:inline-grid;place-items:center;font-size:19px}
.check-label input{accent-color:var(--ink)}
button:focus-visible,input:focus-visible,a:focus-visible,.type-toggle input:focus-visible+span,.shape-option input:focus-visible+.shape-tile{outline-color:var(--ink)}
@media(max-width:760px){.editor-tabs button{gap:6px}.type-toggle span{gap:6px}.type-toggle .type-art{width:34px;height:34px}.view-tools button{padding:5px 6px}.mode-switch button{padding:6px 12px}.brand img{width:55px;height:55px}}
@media(max-width:390px){.editor-tabs button{font-size:13px;gap:5px}.editor-tabs .ui-art{width:25px;height:25px}.type-toggle .type-art{width:31px;height:31px}.type-toggle span{font-size:15px}}

/* V9: warnings describe the current draft without blocking text input or dragging. */
.viewport .selection-box.has-layout-issue{border:2px solid #c5483d}
.selection-box.has-layout-issue .resize-handle::after{border-color:#c5483d;background:#fff0ed}
.selection-box.has-layout-issue .rotation-handle span{border-color:#c5483d;background-color:#fff0ed}
.selection-box.has-layout-issue .rotation-handle::before{background:#c5483d}
.text-layer.needs-layout{border-color:#c5483d}.text-layer.needs-layout small{color:#aa342a;font-weight:600}
.text-layer.needs-layout[aria-pressed=true]{background:#fff0ed;border-color:#c5483d}
.interaction-status.layout-warning{color:#aa342a;background:#fff0ed;border-radius:7px;padding:8px 10px}
.drag-hint{min-height:42px;margin:7px 20px 12px;padding:6px 10px;border:1px solid transparent;border-radius:8px;display:flex;align-items:center;justify-content:center;line-height:1.5}
.drag-hint.layout-warning{color:#aa342a;background:#fff0ed;border-color:#c5483d40}

/* V10: compact outward-facing handles leave the text center free for dragging. */
.viewport .selection-box{pointer-events:auto;cursor:move;touch-action:none}
.selection-box .resize-handle{width:16px;height:16px;--handle-out:14px;--dot-offset:9px}
.selection-box .resize-handle::after{position:absolute;width:10px;height:10px;pointer-events:none}
.selection-box .resize-handle.nw{left:calc(-1 * var(--handle-out));top:calc(-1 * var(--handle-out))}
.selection-box .resize-handle.ne{right:calc(-1 * var(--handle-out));top:calc(-1 * var(--handle-out))}
.selection-box .resize-handle.sw{left:calc(-1 * var(--handle-out));bottom:calc(-1 * var(--handle-out))}
.selection-box .resize-handle.se{right:calc(-1 * var(--handle-out));bottom:calc(-1 * var(--handle-out))}
.resize-handle.nw::after{left:var(--dot-offset);top:var(--dot-offset)}
.resize-handle.ne::after{right:var(--dot-offset);top:var(--dot-offset)}
.resize-handle.sw::after{left:var(--dot-offset);bottom:var(--dot-offset)}
.resize-handle.se::after{right:var(--dot-offset);bottom:var(--dot-offset)}
.selection-box .rotation-handle{width:20px;height:20px;left:calc(50% - 10px);top:-34px}
.rotation-handle span{width:20px;height:20px;background-size:15px 15px;pointer-events:none}
.rotation-handle::before{top:18px;left:9px;height:16px;pointer-events:none}
.selection-box.rotate-below .rotation-handle{top:auto;bottom:-34px}
.rotate-below .rotation-handle::before{top:auto;bottom:18px}
@media(pointer:coarse){
  .selection-box .resize-handle{width:20px;height:20px;--handle-out:17px;--dot-offset:12px}
}

/* V11: optional integrated loop and four rear magnet pockets. */
.mounting-field{margin-top:20px;padding-top:18px;border-top:1px dashed var(--line)}
.mounting-field legend{float:left;width:100%;font-size:14px;font-weight:600;margin-bottom:10px}
.mounting-field legend+.mounting-option{clear:both}
.mounting-option{position:relative;border:1px solid var(--line);border-radius:9px;margin:8px 0;background:#fffefa}
.mounting-option:has(input:checked){border-color:#d5a71c;background:#fff6d9}
.mounting-option label{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;cursor:pointer;min-height:65px}
.mounting-option input{flex:none;width:18px;height:18px;margin:3px 0 0;accent-color:var(--yellow)}
.mounting-option strong{display:block;font-size:14px;font-weight:600;line-height:1.6}
.mounting-option small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:3px}
.mounting-option:has(.mounting-back:not([hidden])) strong{padding-right:86px}
.mounting-back{position:absolute;top:8px;right:9px;border:1px solid var(--line);border-radius:6px;padding:5px 10px;background:var(--white);font-size:11px;min-height:30px}
.mounting-back:hover{background:#ffe9a0}
.mounting-field>.control-note{margin-top:7px;font-size:11px}

/* V13: editing-only center guides, below the handles and outside the WebGL canvas. */
.alignment-guides{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.alignment-guides *{pointer-events:none}
.alignment-line{position:absolute;filter:drop-shadow(0 0 1px #fffdf1)}
.alignment-line.x{width:0;border-left:1.5px dashed #b77d0c}
.alignment-line.y{height:0;border-top:1.5px dashed #b77d0c}
.alignment-label{position:absolute;white-space:nowrap;background:#fff1b8;color:#704c0b;border:1px solid #c89b36;border-radius:5px;padding:2px 7px;font:600 11px/1.5 var(--font)}

/* V14: real hand-drawn contours, with a compact searchable picker. */
.direct-editor .add-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px 38px;gap:6px}
.add-tools #add-text,.add-tools #add-icon{font-size:14px;gap:5px;min-height:44px;white-space:nowrap}
.add-tools #add-icon{background:var(--yellow-soft);border-color:var(--ink)}
.add-tools #add-icon:not(:disabled):hover,.add-tools #add-icon[aria-expanded=true]{background:var(--yellow)}
.icon-picker{margin-top:14px;padding:14px 12px 12px;border:1px solid #103c6040;border-radius:10px;background:#fffaf0}
.icon-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.icon-picker-heading strong{font-family:AwardHand,var(--font);font-size:18px}
.icon-picker-heading button{font:inherit;font-size:12px;color:var(--muted);background:transparent;border:0;min-height:32px;padding:4px 7px;border-radius:5px}
.icon-picker-heading button:hover{background:var(--yellow-soft);color:var(--ink)}
#icon-library-note{font-size:11px;margin:3px 0 10px}
#icon-search{width:100%;min-height:42px;padding:9px 12px;border:1px solid #103c6045;border-radius:7px;background:#fffef9;color:var(--ink);font:inherit;font-size:14px}
#icon-search:focus{outline:2px solid #d9ab30;outline-offset:2px}
.icon-categories{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px}
.icon-categories button{border:1px solid #103c6020;border-radius:6px;background:#fffdf7;font:inherit;font-size:11px;padding:5px 7px;min-height:30px;color:var(--ink)}
.icon-categories button[aria-pressed=true]{background:var(--yellow);border-color:#b58b22;font-weight:600}
.icon-result-count{font-size:11px;color:var(--muted);margin:10px 0 6px}
.handdrawn-icon-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:6px;max-height:342px;overflow:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin}
.handdrawn-icon-option{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;border:1px solid transparent;background:#fffef9;border-radius:8px;padding:8px 2px 6px;min-height:89px;color:var(--ink);font:inherit;cursor:pointer}
.handdrawn-icon-option:hover{background:#fff0b4;border-color:#d0a134}
.handdrawn-icon-option:focus-visible{outline:2px solid var(--ink);outline-offset:0;background:var(--yellow-soft)}
.handdrawn-icon-preview,.layer-icon{display:block;flex:none;background:var(--icon-color,var(--ink));mask-image:var(--icon-url);mask-repeat:no-repeat;mask-size:contain;mask-position:center;-webkit-mask-image:var(--icon-url);-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;-webkit-mask-position:center}
.handdrawn-icon-preview{width:46px;height:46px;max-width:100%}
.handdrawn-icon-name{font-size:11px;line-height:1.35;text-align:center;overflow-wrap:anywhere}
.icon-empty{text-align:center;padding:20px 10px;color:var(--muted);font-size:12px}
.icon-empty button{font:inherit;border:1px solid #103c6030;border-radius:6px;background:var(--yellow-soft);padding:8px 12px;color:var(--ink)}
.text-layer .layer-icon{width:28px;height:28px}
.text-layer .layer-name{flex:1;min-width:0}
@media(max-width:390px){.direct-editor .add-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 33px 33px;gap:4px}.add-tools #add-text,.add-tools #add-icon{font-size:12px;gap:3px}.add-tools .ui-icon{width:21px;height:21px}.icon-picker{padding:12px 8px}.handdrawn-icon-grid{gap:4px}.handdrawn-icon-preview{width:40px;height:40px}.handdrawn-icon-option{min-height:83px}.handdrawn-icon-name{font-size:10px}}

/* V15: nozzle advice is independent of layout errors and never part of exports. */
.print-check{margin-top:20px;padding:14px;border:1px solid #caa34c66;border-radius:10px;background:#fff9e8}
.print-check-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.print-check-heading>strong{font-family:AwardHand,var(--font);font-size:18px}
.print-check-heading label{display:flex;align-items:center;gap:5px;font-size:11px;cursor:pointer;white-space:nowrap}
.print-check-heading input{accent-color:#cda123;width:15px;height:15px}
.nozzle-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.nozzle-card{border:1px solid #b5a47b60;border-radius:8px;padding:10px 8px;background:#fffef9;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.nozzle-card strong,.nozzle-card span{display:block}
.nozzle-card strong{font-size:14px;line-height:1.5}
.nozzle-card span{font-size:11px;margin-top:4px;color:#706244}
.nozzle-card[aria-pressed=true]{border-color:#b08521;background:#ffe59a;box-shadow:inset 0 0 0 1px #b08521}
.nozzle-card:focus-visible,.print-issue:focus-visible,.ignore-print-advice:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.print-check>.control-note{font-size:11px;margin:10px 0 6px}
.print-issues{max-height:168px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.print-issue{display:flex;align-items:flex-start;gap:8px;width:100%;text-align:left;border:0;border-bottom:1px dashed #b78f3830;background:transparent;padding:9px 3px;font:inherit;color:var(--ink);cursor:pointer}
.print-issue:hover{background:#fff0ba}
.print-issue strong{font-weight:600;font-size:12px;display:block;overflow-wrap:anywhere}
.print-issue small{display:block;font-size:10px;line-height:1.6;color:#796440;margin-top:3px}
.print-issue-number{flex:none;display:grid;place-items:center;border:1px solid #b48625;border-radius:5px;background:#ffe59a;font-size:10px;min-width:20px;height:20px}
.print-advice-note{font-size:10px;line-height:1.7;color:var(--muted);margin:9px 0 0}
.ignore-print-advice{font:inherit;font-size:12px;background:transparent;color:#70550f;border:0;border-bottom:1px solid #c8a146;padding:5px 0;margin-top:6px;cursor:pointer}
.print-marks{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;color:#966008}
.print-marks *{pointer-events:none}
.print-mark{position:absolute;display:block;border:1.5px dashed currentColor;border-radius:3px}
.print-mark b{position:absolute;top:-16px;left:-1px;min-width:15px;padding:0 2px;background:#fff2bd;border:1px solid currentColor;border-radius:3px;font:600 10px/14px var(--font);text-align:center}
.print-mark.focused{border-style:solid;border-width:2px;background:#ffd95d20}
.print-marks[data-nozzle="0.2"]{color:#427563}
.print-marks[data-nozzle="0.2"] .print-mark b{background:#edf7e8}
@media(max-width:390px){.print-check{padding:11px}.print-check-heading>strong{font-size:16px}.nozzle-card strong{font-size:12px}.nozzle-card span{font-size:10px}}

/* Trophy entry: preserve the medal draft while the trophy builder is being prepared. */
.trophy-preview{position:relative;z-index:1;flex:1;min-height:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:48px 28px;text-align:center;color:var(--body)}
.trophy-preview img{width:min(210px,48%);height:auto;object-fit:contain;mix-blend-mode:multiply;transform:rotate(3deg);filter:drop-shadow(4px 6px 0 #173f7310)}
.trophy-preview span{font-family:PF,cursive;font-size:22px;letter-spacing:.04em}
.trophy-coming-soon{min-height:590px;margin-top:18px;padding:46px 30px;border:1px dashed #103c6050;border-radius:16px;background:linear-gradient(145deg,#fffdf5,#fff0b8 135%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.trophy-coming-soon>img{width:112px;height:112px;object-fit:contain;mix-blend-mode:multiply;transform:rotate(-5deg);margin-bottom:5px}
.coming-soon-kicker{font-size:12px;letter-spacing:.18em;color:var(--body);margin-bottom:8px}
.trophy-coming-soon h2{font:clamp(30px,3vw,40px)/1.35 PF,cursive;color:var(--ink)}
.trophy-coming-soon h2:after{content:'';display:block;width:76px;height:8px;margin:4px auto 13px;background:var(--yellow);border-radius:50%;transform:rotate(-2deg);opacity:.8}
.trophy-coming-soon>p:not(.coming-soon-kicker){max-width:330px;color:var(--body);font-size:14px;line-height:1.9}
.trophy-coming-soon button{margin-top:24px;min-height:46px;padding:9px 24px;border:1.5px solid var(--ink);border-radius:9px;background:var(--yellow);box-shadow:2px 3px 0 #173f7317;font:15px var(--font)}
.trophy-coming-soon button:hover{transform:translateY(-1px);background:#ffe58d}
@media(max-width:760px){.trophy-preview{min-height:330px;padding:30px 20px}.trophy-preview img{width:min(170px,45%)}.trophy-coming-soon{min-height:430px;padding:38px 24px}.trophy-coming-soon h2{font-size:34px}}
