:root {
  color-scheme: light;
  --ink:#162027; --muted:#53616c; --soft:#f4f6f8; --line:#dce1e6;
  --blue:#204dce; --paper:#ffffff; --studio:#30353a;
  font-family:"Geist","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink); background:var(--paper); font-size:16px; -webkit-text-size-adjust:100%;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;min-height:100svh;padding-bottom:env(safe-area-inset-bottom)}
button,input,summary {font:inherit}
button,summary {cursor:pointer;touch-action:manipulation}
button {border:0;background:none;color:inherit;-webkit-tap-highlight-color:transparent}
button:disabled,input:disabled {cursor:default;opacity:.42}
button:focus-visible,input:focus-visible,canvas:focus-visible,summary:focus-visible {outline:3px solid #5279e2;outline-offset:3px}
h1,h2,p,figure {margin:0}
h1,h2 {text-wrap:balance}
h2 {font-size:18px;line-height:1.4;font-weight:690;letter-spacing:-.025em}
.shell {width:min(1260px,calc(100% - 9vw));margin-inline:auto}
.mast {background:#fff;border-bottom:1px solid var(--line)}
.mast-inner,.brand,.mast-tools,.quiet,.work-heading,.tools-head,.photo-nav,.proof-bar,.caption,.zoom-label,.tray-heading,.store-line,.store-line>div {display:flex;align-items:center}
.mast-inner {justify-content:space-between;min-height:65px}
.brand {gap:10px;font-size:21px;font-weight:690;letter-spacing:-.06em}
.mark {position:relative;width:28px;height:28px;display:inline-block;color:var(--ink)}
.mark:before,.mark:after {content:"";position:absolute;width:18px;height:14px;border:1.7px solid currentColor;border-radius:2px;background:#fff}
.mark:before {left:2px;top:4px;transform:rotate(-13deg)}
.mark:after {left:6px;top:7px;border-bottom-width:4px}
.mast-tools {gap:1px}
.quiet {justify-content:center;width:44px;height:44px;padding:0;border-radius:50%;color:var(--muted)}
@media(hover:hover){.mast-tools .quiet:hover {color:var(--ink);background:var(--soft)}}
.info-icon {display:grid;place-items:center;width:18px;height:18px;border:1.4px solid currentColor;border-radius:50%;font:650 11px/1 system-ui}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.file-input {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.primary,.outline {min-height:44px;padding:9px 18px;border-radius:8px;font-weight:650;line-height:1.4}
.primary {color:#fff;background:var(--blue)}
.primary:hover {background:#183da9}
.outline {background:#fff;border:1px solid #c7cfd6}
.outline:hover,.text-button:hover,.quiet:hover {color:var(--blue)}
.text-button {font-size:13px;font-weight:600;color:#4e5b66;min-height:44px;padding:0 4px}
@media(prefers-reduced-motion:no-preference) {
  .primary,.outline,.mode-pair button,.photo-nav button {transition:background-color 130ms ease-out,transform 120ms ease-out}
  .primary:active,.outline:active,.mode-pair button:active,.photo-nav button:active {transform:scale(.975)}
}
#work {--photo-h:clamp(300px,44vh,455px);--ratio:1.426966292;padding:25px 0 12px}
#work[data-orientation=portrait] {--ratio:.700787402}
.work-heading,.proof-bar,.tools-head,.zoom-label,.tray-heading,.store-line {justify-content:space-between;gap:12px}
.work-heading {margin-bottom:14px}
.work-heading h1 {font-size:clamp(23px,2.5vw,32px);line-height:1.25;letter-spacing:-.05em;font-weight:650}
.batch-add {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 2px 0 10px;font-size:14px;font-weight:600}
.add-print {position:relative;width:18px;height:14px;display:block;border:1.5px solid currentColor;border-radius:2px}
.add-print:before {content:"";position:absolute;inset:4px 3px 2px;background:currentColor;clip-path:polygon(0 100%,33% 22%,54% 70%,76% 40%,100% 100%)}
.add-print:after {content:"";position:absolute;right:-5px;top:-5px;width:9px;height:9px;background:linear-gradient(currentColor,currentColor) center/8px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 8px no-repeat,#fff;box-shadow:0 0 0 1px #fff}
.editor {display:grid;grid-template-columns:minmax(0,1.85fr) minmax(285px,.85fr);grid-template-areas:"view tools" "batch tools";grid-template-rows:auto 1fr;align-items:start;gap:12px clamp(27px,4vw,58px);min-width:0}
.view-column {grid-area:view;min-width:0;background:var(--studio);overflow:hidden;border-radius:5px}
.proof-bar {min-height:44px;color:#f3f5f6;padding:0 8px 0 17px}
.caption {min-width:0;font-size:13px;letter-spacing:.01em;gap:8px}
#filename {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-nav {flex:none;gap:0}
.photo-nav button {width:44px;height:44px;display:grid;place-items:center;color:#f0f2f4}
.photo-nav button:disabled {opacity:.28}
.chevron {display:block;width:9px;height:9px;border-top:1.6px solid currentColor;border-right:1.6px solid currentColor;transform:rotate(45deg)}
.chevron.prev {transform:rotate(-135deg)}
#position {min-width:37px;color:#d5dade;text-align:center;font:500 12px/1.2 ui-monospace,monospace}
#stage {height:calc(var(--photo-h) + 16px);padding:8px 18px;display:flex;align-items:center;justify-content:center}
.frame {position:relative;width:min(100%,calc(var(--photo-h) * var(--ratio)));aspect-ratio:var(--ratio);flex:none;overflow:hidden}
.frame:has(#preview[hidden]) {display:none}
#preview {display:block;width:100%;height:100%;touch-action:none;cursor:grab;background:#fff;box-shadow:0 2px 9px #0003}
#preview:active {cursor:grabbing}
.frame.moving:not(.snap-x):not(.snap-y)::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent calc(33.333% - .5px),#ffffff62 33.333%,transparent calc(33.333% + .5px),transparent calc(66.667% - .5px),#ffffff62 66.667%,transparent calc(66.667% + .5px)),linear-gradient(0deg,transparent calc(33.333% - .5px),#ffffff62 33.333%,transparent calc(33.333% + .5px),transparent calc(66.667% - .5px),#ffffff62 66.667%,transparent calc(66.667% + .5px))}
.frame.snap-x::before,.frame.snap-y::after {content:"";position:absolute;pointer-events:none;background:#a9efff;box-shadow:0 0 0 1px #17394570}
.frame.snap-x::before {top:0;bottom:0;left:50%;width:1px;transform:translateX(-50%)}
.frame.snap-y::after {left:0;right:0;top:50%;height:1px;transform:translateY(-50%)}
#stage-message {color:#d4dbe0;font-size:14px}
.paper-caption {display:flex;gap:8px;font-variant-numeric:tabular-nums}
#gesture-hint {position:absolute;z-index:1;left:50%;bottom:10px;transform:translateX(-50%);max-width:calc(100% - 8px);display:flex;align-items:center;padding-left:13px;border-radius:24px;background:#172024e8;color:white;font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:0 2px 9px #0003}
.cross-button {display:grid;place-content:center;position:relative;width:44px;height:44px;flex:none;padding:0}
.cross-button::before,.cross-button::after {content:"";grid-area:1/1;width:12px;height:1.6px;border-radius:1px;background:currentColor;transform:rotate(45deg)}
.cross-button::after {transform:rotate(-45deg)}
#gesture-dismiss {pointer-events:auto}
.proof-tools {position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 15px;background:#262b30;color:#f4f6f8}
#map-open {padding:0;min-width:0;display:flex;align-items:center;gap:10px;text-align:left}
.map-box,.large-map {--map-height:44px;display:grid;place-items:center}
.map-box {width:64px;height:var(--map-height);background:#171b1d;border-radius:3px;overflow:hidden}
.map-photo {position:relative;display:block;overflow:hidden;width:min(100%,calc(var(--map-height) * var(--source-ratio,1)));aspect-ratio:var(--source-ratio,1)}
.map-photo img {display:block;width:100%;height:100%;object-fit:fill}
.map-window {position:absolute;border:1px solid white;box-shadow:0 0 0 200vmax #08101899,inset 0 0 0 1px #10141866;pointer-events:none}
.proof-tool-label {display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#dee2e5;font-size:12px;font-weight:550}
.map-expand {font:500 12px/1 system-ui;color:#abb5bc}
#source-dialog {width:min(600px,calc(100vw - 28px));max-width:calc(100vw - 28px);padding:15px}
.map-head {display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
#map-close,#help-close {min-width:44px;min-height:44px}
.large-map {--map-height:min(56svh,520px);min-height:min(160px,36svh);padding:8px;background:#23282d}
#source-dialog p {font-size:13px;margin:10px 0 3px}
.inspection {display:flex;flex:1;justify-content:flex-end;align-items:center;height:44px}
.inspection-trigger {display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border-radius:8px;color:#ffd08a}
.inspection-trigger[aria-expanded=true] {background:#49443e}
.inspection-trigger svg {width:22px;height:22px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}
.inspection-trigger .pixel-icon {fill:currentColor;stroke:none;width:19px;height:19px}
#face-note {color:#d0d8df}
#inspection-popover {position:absolute;z-index:2;right:10px;bottom:calc(100% + 4px);max-width:calc(100% - 20px);min-width:180px;border-radius:10px;background:white;color:var(--ink);box-shadow:0 3px 20px #101a2345;padding:3px 4px 3px 14px}
.inspection-heading {display:flex;align-items:center;gap:5px;justify-content:space-between}
.inspection-heading strong {font-size:14px;font-weight:600;line-height:1.5}
#inspection-close {color:var(--muted)}
#risk-fit {display:flex;min-height:44px;align-items:center;gap:8px;padding:0 12px 0 0;color:var(--blue);font-size:13px;font-weight:650}
.warning {color:#873a0d;background:#fff0d9;font-size:14px;line-height:1.55;padding:10px 13px}
.controls {grid-area:tools;min-width:0}
.tools-head {min-height:44px;margin:0 0 6px}
.tools-head h2 {font-size:16px;font-weight:650;letter-spacing:-.035em}
.reset-tool {display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;padding:0 3px 0 8px}
.reset-tool i {display:block;position:relative;width:12px;height:12px;border:1.5px solid;border-left-color:transparent;border-radius:50%;transform:rotate(-27deg)}
.reset-tool i:after {content:"";position:absolute;left:-.5px;top:-2px;width:4px;height:4px;border-bottom:1.4px solid;border-left:1.4px solid;transform:rotate(24deg)}
.mode-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:3px;background:var(--soft);border-radius:10px}
.mode-pair button {min-width:0;min-height:46px;display:flex;justify-content:center;align-items:center;gap:8px;padding:3px 5px;color:var(--muted);border-radius:7px;font-size:13px;line-height:1.25;font-weight:550}
.mode-print {display:grid;place-items:center;flex:0 0 29px;height:25px}
.mode-print canvas {display:block;width:auto;height:auto;max-width:28px;max-height:23px;box-shadow:0 0 0 .65px #0003}
.mode-pair button[aria-pressed=true] {color:var(--ink);background:white;box-shadow:0 1px 4px #19272a20}
.zoom-label {margin-top:23px;font-size:13px;font-weight:600}
#scale {font:540 13px/1.2 ui-monospace,monospace;color:var(--ink);font-variant-numeric:tabular-nums}
.zoom-tools {display:flex;align-items:center;gap:4px;margin-top:3px}
.zoom-step {width:44px;height:44px;flex:none;display:grid;place-content:center;position:relative}
.zoom-step:before {content:"";position:absolute;inset:8px;border:1px solid #c8cdd1;border-radius:50%;background:#fff}
.zoom-step i {position:relative;width:10px;height:1.5px;background:currentColor}
.zoom-step.plus i:after {content:"";position:absolute;left:4.25px;top:-4.25px;width:1.5px;height:10px;background:currentColor}
.zoom-ruler {position:relative;flex:1;min-width:0;height:44px}
.zoom-track {position:absolute;left:9px;right:9px;top:50%;height:3px;transform:translateY(-50%);border-radius:2px;background:var(--line);overflow:hidden;pointer-events:none}
.zoom-track:before {content:"";display:block;width:var(--zoom-fill,0%);height:100%;background:var(--ink)}
#zoom {position:relative;display:block;width:100%;height:44px;margin:0;padding:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:ew-resize;touch-action:pan-y}
#zoom::-webkit-slider-runnable-track {background:transparent;height:44px}
#zoom::-moz-range-track {background:transparent;height:44px}
#zoom::-webkit-slider-thumb {-webkit-appearance:none;width:18px;height:18px;margin-top:13px;border:0;border-radius:50%;background:var(--ink)}
#zoom::-moz-range-thumb {width:18px;height:18px;border:0;border-radius:50%;background:var(--ink)}
.zoom-ruler:has(input:disabled) {opacity:.4}
.adjust-position {border-top:1px solid var(--line);margin-top:9px}
#pan-title {display:flex;align-items:center;justify-content:space-between;min-height:48px;padding-right:5px;font-size:13px;font-weight:600;list-style:none}
#pan-title::-webkit-details-marker {display:none}
#pan-title .chevron {transform:translateY(-2px) rotate(135deg);color:var(--muted)}
.adjust-position[open] .chevron {transform:translateY(2px) rotate(-45deg)}
#pan-tools {display:grid;width:fit-content;margin:0 0 14px auto;grid-template:repeat(3,44px) / repeat(3,44px);grid-template-areas:". up ." "left photo right" ". down .";border-radius:50%;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
#pan-tools button {width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:50%;color:var(--ink)}
#pan-tools button:disabled {opacity:.28}
#pan-tools button:active:enabled {background:#dce2e6}
#pan-tools [data-pan=up] {grid-area:up;--direction:-90deg}
#pan-tools [data-pan=right] {grid-area:right;--direction:0deg}
#pan-tools [data-pan=down] {grid-area:down;--direction:90deg}
#pan-tools [data-pan=left] {grid-area:left;--direction:180deg}
#pan-tools button i {position:relative;width:14px;height:2px;border-radius:1px;background:currentColor;transform:rotate(var(--direction))}
#pan-tools button i:after {content:"";position:absolute;right:0;top:50%;width:7px;height:7px;border:solid currentColor;border-width:2px 2px 0 0;transform:translateY(-50%) rotate(45deg)}
.pan-photo {grid-area:photo;place-self:center;position:relative;width:18px;height:14px;border:1.5px solid #84919b;border-radius:2px}
.pan-photo:before {content:"";position:absolute;inset:3px 2px 2px;background:#84919b;clip-path:polygon(0 100%,35% 29%,53% 68%,72% 12%,100% 100%)}
#error-actions {background:#fff3e3;padding:10px 14px 6px;color:#79350d;font-size:14px}
#error-actions button {margin:3px 9px 0 0;color:inherit}
#error-actions .outline {padding:0 7px;border:0;background:none;text-decoration:underline;text-underline-offset:4px}
.batch {grid-area:batch;min-width:0;overflow:hidden;padding:4px 0 6px}
.tray-heading {margin:0 0 7px}
#batch-contain {flex:none;padding-inline:4px;color:var(--ink);font-weight:550}
#batch-contain:disabled {color:var(--muted)}
#summary {color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
#tray {display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;padding:4px;scrollbar-width:thin}
.thumb {flex:0 0 82px;min-width:0;padding:0;text-align:left;position:relative;align-self:flex-start}
.thumb-print {position:relative;display:block;width:100%;height:53px;background:#e9ebec;border-radius:3px;overflow:hidden}
.thumb[aria-pressed=true] .thumb-print {outline:1.5px solid var(--ink);outline-offset:1.5px}
.thumb canvas,.thumb-placeholder {width:100%;height:100%;display:block;object-fit:contain}
.thumb-placeholder {text-align:center;align-content:center;color:var(--muted)}
.thumb-state {position:absolute;top:2px;left:2px;max-width:calc(100% - 4px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 3px;border-radius:2px;background:#fff;color:var(--muted);font-size:11px;line-height:1.5}
.thumb-state:empty,.thumb[aria-pressed=true] .crop-alert {display:none}
.thumb[data-state=ready] .thumb-state:not(.attention) {display:none}
.thumb-state.attention {color:#913d12;font-weight:650}
.thumb-state.crop-alert {min-width:17px;height:17px;border-radius:50%;background:#ffd08a;color:#332516;text-align:center;font:750 12px/17px system-ui}
#remove {flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:8px}
#remove:focus-visible {outline:2px solid white;outline-offset:2px}
.bin-icon {position:relative;width:12px;height:13px;margin-top:4px;border:1.5px solid currentColor;border-top:0;border-radius:0 0 3px 3px}
.bin-icon::before,.bin-icon::after {content:"";position:absolute;left:50%;transform:translateX(-50%)}
.bin-icon::before {top:-2px;width:16px;border-top:1.5px solid currentColor}
.bin-icon::after {top:-5px;width:6px;height:3px;border:1.5px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0}
#remove-dialog {width:335px;padding:22px}
#remove-title {font-size:19px}
#remove-target {overflow-wrap:anywhere;margin:6px 0 20px;font-size:14px}
.remove-actions {display:flex;justify-content:flex-end;gap:10px}
.remove-actions button {min-width:68px;min-height:44px}
#remove,#remove-confirm {color:#fff;background:#bf2735}
#remove-confirm {display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 16px;border-radius:8px;font-weight:600}
#remove-confirm:focus-visible {outline:3px solid #95202d;outline-offset:3px}
@media(hover:hover){#remove:hover,#remove-confirm:hover {background:#a32330}}
#remove:active,#remove-confirm:active {background:#861b27}
@media(hover:hover) {
  .batch-add:hover {color:var(--blue)}
  #pan-tools button:hover:enabled {background:#e2e7ea}
  .mode-pair button:hover:enabled {color:var(--ink)}
  .zoom-step:hover:enabled:before {border-color:#77828a}
  .thumb:hover .thumb-print {filter:brightness(.94)}
  .photo-nav button:hover:enabled {color:#fff;background:#454c52}
}
@media(prefers-reduced-motion:no-preference) {
  .batch-add,.zoom-step,.thumb-print {transition:transform 100ms ease-out}
  .batch-add:active,.zoom-step:active:enabled,.thumb:active .thumb-print {transform:translateY(1px)}
}
.store-line {border-top:1px solid var(--line);padding:16px 0 25px;color:var(--muted);font-size:13px}
.store-line>div {gap:10px;flex-wrap:wrap}
.store-line strong {color:var(--ink);font-weight:600}
.store-mark {width:15px;height:13px;border:1.5px solid currentColor;border-top:4px double currentColor}
.availability {font-size:12px}
.receipt-access {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
#receipts-open {display:flex;align-items:center;gap:10px;min-height:48px;padding:0;color:var(--blue);font-weight:650}
#receipt-count {color:var(--muted);font-size:13px;font-weight:500}
#receipts {width:380px;max-height:88dvh}
#receipts-close {min-width:44px}
#receipt-mode,#receipt-feedback,#receipts-empty {font-size:13px;margin:8px 0}
#receipt-feedback {color:#874118}
.receipt-entry {border-top:1px solid var(--line);padding:16px 0 6px}
.receipt-entry h3 {margin:0;font-size:15px}
.receipt-entry img {display:block;width:min(224px,100%);height:auto;margin:12px auto;color:var(--muted);image-rendering:pixelated}
.receipt-entry .receipt-number {margin:4px 0;text-align:center;color:var(--ink);font:650 18px/1.6 ui-monospace,monospace;overflow-wrap:anywhere}
.receipt-entry time {display:block;text-align:center;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
dialog {color:var(--ink);max-width:min(410px,calc(100% - 34px));border:0;border-radius:14px;background:#fff;padding:26px;box-shadow:0 12px 60px #18233142}
dialog p {font-size:15px;line-height:1.8;color:var(--muted);margin:12px 0}
dialog .primary {margin-top:5px}dialog::backdrop {background:#17202d66}
@media(max-width:760px){
  .shell {width:calc(100% - 32px)}.mast-inner {min-height:54px}.brand {font-size:19px;gap:8px}.mark {width:27px;height:27px}.mast-tools {gap:0}
  .quiet {font-size:12px}
  #work {--photo-h:clamp(192px,67vw,320px);padding:5px 0 4px}
  #work[data-orientation=portrait] {--photo-h:clamp(290px,47svh,465px)}
  .work-heading {margin-bottom:6px}.work-heading h1 {font-size:24px}.batch-add {font-size:13px}
  .editor {display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"view" "batch" "tools";gap:0}
  .view-column {border-radius:4px}.proof-bar {padding-left:12px;padding-right:1px}
  #stage {padding:3px 9px;height:auto;min-height:80px}.frame {max-height:var(--photo-h)}
  .batch {padding:11px 0 9px;border-bottom:1px solid var(--line)}
  .tray-heading {margin-bottom:5px}.thumb {flex-basis:67px}.thumb-print {height:46px}
  .tools-head {margin:3px 0 0}.tools-head h2 {font-size:16px}
  .zoom-label {margin-top:12px}
  .store-line {align-items:flex-start;gap:5px 12px;flex-wrap:wrap;font-size:12px;padding:14px 0}.store-line>div {gap:7px}
}
@media(max-width:360px){.shell {width:calc(100% - 24px)}}


.settings-icon {display:block;position:relative;width:18px;height:10px;border-block:1.5px solid currentColor}
.settings-icon::before,.settings-icon::after {content:"";position:absolute;width:4px;height:4px;border:1.5px solid currentColor;background:var(--paper);border-radius:50%;transform:translateY(-50%)}
.settings-icon::before {top:-.5px;left:2px}.settings-icon::after {top:calc(100% + .5px);right:1px}
#settings {width:360px;max-height:calc(100dvh - 28px);padding:23px}
#checkout {width:425px;max-height:calc(100dvh - 28px);padding:20px 22px}
#checkout .map-head {margin:0;gap:8px}
#checkout-title {font-size:19px;outline:none}
#checkout-terms p,#checkout-count,#checkout-notice {font-size:14px;line-height:1.6}
#checkout-terms-link {display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--blue);font-size:14px}
.checkout-actions {display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:18px}
#checkout .primary {margin:0}
#checkout-list {list-style:none;padding:0;margin:8px 0 0;max-height:min(47dvh,430px);overflow:auto;overscroll-behavior:contain}
#checkout-list li {display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);min-height:56px;padding:5px 0}
#checkout-list canvas {width:55px;height:42px;object-fit:contain;background:var(--soft)}
.checkout-name {min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
#checkout-list [data-status] {color:var(--muted);font-size:12px}
#checkout-list button {color:var(--blue);font-size:12px}
#checkout-refresh {display:block;margin:14px 0 0 auto}
#commerce-open {color:var(--blue);padding:0 10px}
#commerce {width:410px;max-height:calc(100dvh - 32px);padding:22px;overflow:auto}
#commerce .map-head {margin-bottom:16px}
#commerce-title {outline:none}
.commerce-balance,.commerce-inline {display:flex;align-items:center;justify-content:space-between;gap:12px}
.commerce-balance {background:var(--soft);padding:12px 15px;border-radius:8px}
.commerce-balance span,.commerce-balance strong {display:block}
.commerce-balance span {font-size:12px;color:var(--muted)}
.commerce-balance strong {font-size:22px;font-weight:650;margin-top:2px}
#commerce .commerce-note {font-size:13px;line-height:1.5;margin:9px 0 14px}
#commerce details {border-top:1px solid var(--line)}
#commerce summary {position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding-right:21px;font-size:14px;font-weight:650}
#commerce summary::-webkit-details-marker {display:none}
#commerce summary::after {content:'';position:absolute;right:4px;top:calc(50% - 4px);width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg)}
#commerce details[open] > summary::after {transform:translateY(3px) rotate(225deg)}
#commerce summary strong {font-size:14px;color:var(--blue)}
#commerce form {padding:0 0 15px}
#commerce form > label,#commerce legend {display:block;font-size:13px;font-weight:600;margin-bottom:6px}
#commerce input[type=email],#commerce input[type=text] {display:block;width:100%;border:1px solid #a6b2bd;border-radius:6px;min-height:44px;padding:8px 10px;background:white;color:var(--ink);font-size:16px}
#commerce fieldset {margin:0 0 11px;padding:0;border:0;display:flex;flex-wrap:wrap;gap:5px;min-width:0}
#commerce fieldset label {display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:14px;padding-right:6px;cursor:pointer}
#commerce fieldset input {margin:0;accent-color:var(--blue)}
#commerce form button {margin-top:7px}
#commerce-watch,#commerce-sample {width:100%;margin:0 0 12px;color:var(--blue)}
#commerce-ad-link,#commerce-pay-link {display:block;color:var(--blue);font-size:14px;padding:10px 0}
#commerce-feedback {border-left:2px solid var(--blue);padding-left:10px;font-size:14px;color:var(--ink)}
#commerce #commerce-test-label {margin:12px 0 0;color:var(--muted);font-size:12px}
.checkout-result {max-width:440px;margin:clamp(28px,9vh,76px) auto;padding:22px}
.checkout-result h1 {margin-bottom:12px;font-size:24px}
.checkout-result p {color:var(--muted);font-size:15px;line-height:1.7;margin:8px 0}
.checkout-result form {display:grid;gap:8px;margin-top:20px}
.checkout-result button {min-height:44px;border:1px solid var(--line);border-radius:8px;font-weight:600}
.checkout-result button:first-child {border-color:var(--blue);background:var(--blue);color:white}
#reward-prompt button {margin:4px 5px 0 0}
#settings-title {margin:0 0 15px;font-size:21px;outline:none}
.bleed-heading {display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:8px}
.bleed-heading h3 {margin:0;font-size:15px;font-weight:650}
#settings-reset {color:var(--blue);font-size:13px}
#bleed-hint {margin:0 0 16px;font-size:13px;line-height:1.6}
.bleed-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.bleed-fields label {display:grid;gap:5px;color:var(--muted);font-size:13px}
.bleed-fields label span {display:flex;align-items:center;height:44px;padding-right:11px;border:1px solid #c6cdd2;border-radius:6px}
.bleed-fields label span:focus-within {border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.bleed-fields input {width:100%;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--ink);padding:0 9px 0 11px;font-size:17px;font-variant-numeric:tabular-nums}
.bleed-fields small {font-size:12px}
.bleed-fields label span:has([aria-invalid=true]) {border-color:#9b3929}
#bleed-error {margin:9px 0 0;color:#923522;font-size:13px}
.settings-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.settings-actions .primary {margin:0}
@media(max-width:390px){
  .proof-tools {padding-inline:10px;gap:7px}
  #map-open {gap:6px}
  .map-box {width:56px}
}
