/* Printara 3D map configurator (17.11.2026) · one column of choices beside the pictures of the customer's own plate · the page's paper tokens, square corners, one accent */
/* critique: the map and the plate pictures carry the page; text is labels only; every choice shows its state; nothing waits without saying so */
.pc {
  --pc-bg: var(--paper, #F6F1E8); --pc-surface: var(--surface, #FFFDF9); --pc-sunk: #EFE8DB; --pc-ink: var(--ink, #1F1A17); --pc-muted: var(--muted, #6B6259);
  --pc-line: var(--line, rgba(31,26,23,.12)); --pc-line-strong: rgba(31,26,23,.32); --pc-accent: var(--accent, #B8302B); --pc-accent-hi: var(--accent-hi, #972722); --pc-on-accent: var(--on-accent, #FFFDF9);
  --pc-on-ink: #FFFDF9; --pc-stage: #E8E3DB; --pc-warn: #8A4B00; --pc-warn-bg: #FBEFD9; --pc-ok: #2F6B3A;
  --pc-frame: #FFFFFF; --pc-frame-edge: rgba(0,0,0,.6); --pc-dim: rgba(14,13,12,.42); --pc-backdrop: rgba(20,17,15,.6); --pc-map-bg: #20231F;
  --pc-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -24px rgba(40,30,15,.35);
  --pc-head: var(--head, "Familjen Grotesk", system-ui, sans-serif); --pc-body: var(--body, "Instrument Sans", system-ui, sans-serif);
  --pc-r: var(--radius, 0px);
  --pc-z-bar: 40; --pc-z-big: 60; --pc-z-toast: 90;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start;
  color: var(--pc-ink); font: 400 16px/1.5 var(--pc-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
.pc [hidden] { display: none !important; }
.pc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc :focus-visible { outline: 2px solid var(--pc-ink); outline-offset: 2px; }
.pc h3 { margin: 0 0 12px; font: 600 18px/1.2 var(--pc-head); letter-spacing: -0.01em; }
.pc h4 { margin: 0; font: 600 17px/1.25 var(--pc-head); letter-spacing: -0.01em; }
.pc p { margin: 0; }
html.pc-noscroll { overflow: hidden; }

/* ── pictures of the plate */
.pc-gallery { position: sticky; top: 84px; min-width: 0; }
.pc-stage { position: relative; aspect-ratio: 4 / 3; background: var(--pc-stage); border-radius: var(--pc-r); overflow: hidden; box-shadow: var(--pc-shadow); }
.pc-stage-plate { position: absolute; inset: 0; display: grid; place-items: center; padding: 3%; }
.pc-stage-plate canvas { width: 100%; height: 100%; display: block; }
.pc-stage-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pc-pics { min-height: 0; }
.pc-pics-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--pc-muted); }
.pc-pics-t { min-width: 0; color: var(--pc-ink); font-weight: 500; }
.pc-pics-n { font-variant-numeric: tabular-nums; }
.pc-prog { height: 4px; margin-top: 6px; background: var(--pc-line); overflow: hidden; }
.pc-prog i { display: block; height: 100%; background: var(--pc-ink); transform-origin: 0 50%; transition: transform .6s ease; }
.pc-pics-err { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding: 10px 12px; background: var(--pc-warn-bg); color: var(--pc-warn); font-size: 14px; font-weight: 500; }
.pc-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.pc-thumb { flex: 0 0 auto; width: 84px; padding: 0; border: 1px solid var(--pc-line); background: var(--pc-surface); color: var(--pc-muted); font: 500 12px/1 var(--pc-body); cursor: pointer; border-radius: var(--pc-r); display: grid; gap: 0; text-align: center; }
.pc-thumb canvas, .pc-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--pc-stage); }
.pc-thumb span { padding: 6px 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-thumb[aria-pressed="true"] { border-color: var(--pc-ink); box-shadow: inset 0 0 0 1px var(--pc-ink); color: var(--pc-ink); }
.pc-thumb-wait { height: 108px; cursor: default; background: linear-gradient(100deg, var(--pc-sunk) 30%, var(--pc-surface) 50%, var(--pc-sunk) 70%); background-size: 300% 100%; animation: pc-wait 1.6s linear infinite; }
@keyframes pc-wait { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pc-cap { margin-top: 8px; font-size: 13px; color: var(--pc-muted); min-height: 20px; }
.pc-heights { margin-top: 2px; font-size: 13px; color: var(--pc-ink); font-variant-numeric: tabular-nums; min-height: 20px; }
.pc-relief { display: flex; align-items: center; gap: 12px; margin-top: 12px; font: 600 14px/1.3 var(--pc-body); }
.pc-relief .pc-shape { margin-top: 0; }

/* ── the column of choices */
.pc-col { min-width: 0; display: grid; gap: 16px; }
.pc-step { min-width: 0; background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: var(--pc-r); padding: 20px; }
.pc-step-type { padding: 6px; }
.pc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pc-seg-b { min-height: 48px; border: 0; background: transparent; color: var(--pc-muted); font: 600 16px/1 var(--pc-body); cursor: pointer; border-radius: var(--pc-r); transition: background-color .15s ease, color .15s ease; }
.pc-seg-b[aria-checked="true"] { background: var(--pc-ink); color: var(--pc-on-ink); }

.pc-search { position: relative; }
.pc-search-ic { position: absolute; left: 14px; top: 14px; color: var(--pc-muted); pointer-events: none; display: grid; }
.pc-search-in { width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid var(--pc-line-strong); border-radius: var(--pc-r); background: var(--pc-surface); color: var(--pc-ink); font: 400 16px/1 var(--pc-body); -webkit-appearance: none; appearance: none; }
.pc-search-in::placeholder { color: var(--pc-muted); opacity: 1; }
.pc-search-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.pc-results { position: absolute; z-index: 5; left: 0; right: 0; top: 52px; margin: 0; padding: 4px; list-style: none; background: var(--pc-surface); border: 1px solid var(--pc-line-strong); box-shadow: var(--pc-shadow); max-height: 320px; overflow-y: auto; }
.pc-results li { display: grid; gap: 1px; padding: 9px 12px; cursor: pointer; min-width: 0; }
.pc-results li b { font-weight: 600; overflow-wrap: anywhere; }
.pc-results li span { font-size: 13px; color: var(--pc-muted); overflow-wrap: anywhere; }
.pc-results li[aria-selected="true"], .pc-results li[role="option"]:hover { background: var(--pc-sunk); }
.pc-results-note { cursor: default; color: var(--pc-muted); font-size: 14px; }

.pc-mapbox { margin: 12px -20px 0; }   /* the map runs to the edges of its card: as big as the column allows */
.pc-map { position: relative; aspect-ratio: 4 / 3; background: var(--pc-map-bg); overflow: hidden; border-radius: var(--pc-r); isolation: isolate; }
.pc .pc-map-gl, .pc .pc-map-gl.maplibregl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-map .maplibregl-canvas { cursor: grab; outline-offset: -3px; }
.pc-map.is-dragging .maplibregl-canvas { cursor: grabbing; }
.pc-map[data-mode="edit"] .maplibregl-canvas { cursor: grab; }
.pc-map.is-picking .maplibregl-canvas, .pc-map.is-pointing .maplibregl-canvas, .pc-map.is-drawing .maplibregl-canvas { cursor: crosshair; }
.pc-map.is-drawing .maplibregl-canvas-container, .pc-map.is-drawing .maplibregl-canvas { touch-action: none !important; }
.pc-map-mode { position: absolute; left: 10px; top: 10px; margin: 0; padding: 6px 10px; background: var(--pc-frame); color: #1F1A17; font: 600 13px/1.2 var(--pc-body); box-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: none; }
.pc-map-mode:empty { display: none; }
.pc-map.is-drawing .pc-map-mode, .pc-map.is-pointing .pc-map-mode { background: var(--pc-accent); color: var(--pc-on-accent); }
.pc-map .maplibregl-ctrl-attrib { font: 400 10px/1.35 var(--pc-body); background: rgba(255,255,255,.86); color: #1F1A17; margin: 0; padding: 2px 6px; }
.pc-map .maplibregl-ctrl-attrib a { color: inherit; }
.pc-map-wait { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 14px; pointer-events: none; }
.pc-map.is-ready .pc-map-wait { display: none; }
.pc-frame { position: absolute; left: 0; top: 0; width: var(--pc-f, 0); height: var(--pc-f, 0); border: 2.5px solid var(--pc-frame); box-shadow: 0 0 0 1px var(--pc-frame-edge), inset 0 0 0 1px var(--pc-frame-edge), 0 0 0 4000px var(--pc-dim); pointer-events: none; will-change: transform; }
.pc-frame[data-shape="circle"] { border-radius: 50%; }
.pc-frame-tag { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -8px); padding: 4px 8px; background: var(--pc-frame); color: #1F1A17; font: 600 12px/1 var(--pc-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-map[data-mode="edit"] .pc-frame { box-shadow: 0 0 0 1px var(--pc-frame-edge), inset 0 0 0 1px var(--pc-frame-edge), 0 0 0 4000px rgba(14,13,12,.22); }
.pc-map[data-mode="edit"] .pc-frame-tag { display: none; }
.pc-map-big { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--pc-frame); color: #1F1A17; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pc-map[data-mode="edit"] .pc-map-big { display: none; }
.pc-map.is-big { position: fixed; inset: 16px; z-index: var(--pc-z-big); aspect-ratio: auto; box-shadow: 0 0 0 100vmax var(--pc-backdrop); }
.pc-heart { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); pointer-events: none; }
.pc-ghost { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--pc-accent); box-shadow: 0 1px 4px rgba(0,0,0,.4); }

.pc-zoom { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 10px; margin-top: 12px; }
.pc-zoom-b { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--pc-line-strong); border-radius: 50%; background: var(--pc-surface); color: var(--pc-ink); cursor: pointer; }
.pc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.pc-range::-webkit-slider-runnable-track { height: 4px; background: var(--pc-line-strong); }
.pc-range::-moz-range-track { height: 4px; background: var(--pc-line-strong); }
.pc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--pc-ink); border: 3px solid var(--pc-surface); box-shadow: 0 0 0 1px var(--pc-ink); }
.pc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--pc-ink); border: 3px solid var(--pc-surface); box-shadow: 0 0 0 1px var(--pc-ink); }
.pc-readout { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--pc-muted); font-variant-numeric: tabular-nums; }
.pc-area { color: var(--pc-ink); font-weight: 600; }
.pc-readout[data-ok="0"] .pc-area { color: var(--pc-warn); }

.pc-sizes { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.pc-size { display: grid; justify-items: start; gap: 2px; padding: 12px; min-height: 104px; border: 1px solid var(--pc-line-strong); background: var(--pc-surface); color: var(--pc-ink); cursor: pointer; text-align: left; border-radius: var(--pc-r); font: 400 15px/1.3 var(--pc-body); }
.pc-size b { font: 600 18px/1.2 var(--pc-head); }
.pc-size span { color: var(--pc-muted); font-variant-numeric: tabular-nums; }
.pc-size-i { display: block; width: calc(34px * var(--k)); height: calc(34px * var(--k)); margin-bottom: auto; border: 2px solid currentColor; align-self: end; }
.pc-size-i[data-s="circle"] { border-radius: 50%; }
.pc-size[aria-checked="true"], .pc-scheme[aria-checked="true"] { border-color: var(--pc-ink); box-shadow: inset 0 0 0 1px var(--pc-ink); }
.pc-shape { display: flex; gap: 8px; margin-top: 12px; }
.pc-shape-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--pc-line-strong); background: var(--pc-surface); color: var(--pc-ink); font: 500 15px/1 var(--pc-body); cursor: pointer; border-radius: var(--pc-r); }
.pc-shape-b[aria-checked="true"] { border-color: var(--pc-ink); box-shadow: inset 0 0 0 1px var(--pc-ink); font-weight: 600; }
.pc-shape-i { width: 16px; height: 16px; border: 2px solid currentColor; }
.pc-shape-i[data-s="circle"] { border-radius: 50%; }

.pc-schemes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-scheme { display: grid; gap: 10px; padding: 8px 8px 12px; border: 1px solid var(--pc-line-strong); background: var(--pc-surface); color: var(--pc-ink); cursor: pointer; text-align: left; border-radius: var(--pc-r); font: 400 15px/1.3 var(--pc-body); min-width: 0; }
.pc-scheme-pic { display: block; aspect-ratio: 4 / 3; background: var(--pc-stage); overflow: hidden; }
.pc-scheme-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-scheme-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.pc-scheme-row b { font: 600 17px/1.2 var(--pc-head); }
.pc-swbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 14px; margin: 0 4px; border: 1px solid var(--pc-line-strong); }
.pc-tick { display: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--pc-ink); color: var(--pc-on-ink); flex: 0 0 auto; }
.pc-scheme[aria-checked="true"] .pc-tick, .pc-tick.is-on { display: inline-grid; }

.pc-addons { display: grid; gap: 12px; }
.pc-addon { display: grid; grid-template-columns: 148px minmax(0, 1fr); border: 1px solid var(--pc-line-strong); background: var(--pc-surface); border-radius: var(--pc-r); overflow: hidden; min-width: 0; }
.pc-addon.is-on { border-color: var(--pc-ink); box-shadow: inset 0 0 0 1px var(--pc-ink); }
.pc-addon-pic { width: 100%; height: 100%; min-height: 132px; object-fit: cover; display: block; background: var(--pc-stage); }
.pc-addon-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 4px 12px; padding: 14px 16px 16px; min-width: 0; }
.pc-addon-t h4 { display: flex; align-items: center; gap: 8px; }
.pc-addon-t h4 .pc-tick { width: 20px; height: 20px; }
.pc-addon-price { font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-addon-t p { grid-column: 1 / -1; color: var(--pc-muted); font-size: 14px; overflow-wrap: anywhere; }
.pc-addon-b { grid-column: 1 / -1; margin-top: 8px; width: 100%; }

.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--pc-r); font: 600 15px/1.2 var(--pc-body); cursor: pointer; text-decoration: none; touch-action: manipulation; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
.pc-btn:active { transform: scale(.985); }
.pc-btn svg { flex: 0 0 auto; }
.pc-btn-primary { background: var(--pc-accent); color: var(--pc-on-accent); }
.pc-btn-dark { background: var(--pc-ink); color: var(--pc-on-ink); }
.pc-btn-quiet { background: var(--pc-sunk); color: var(--pc-ink); }
.pc-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pc-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.pc-btn-big { width: 100%; min-height: 60px; font-size: 17px; }
.pc-btn-big span { display: grid; gap: 3px; text-align: center; }
.pc-btn-big small { font-weight: 400; font-size: 13px; opacity: .88; }
@media (hover: hover) and (pointer: fine) {
  .pc-btn-primary:not([aria-disabled="true"]):hover { background: var(--pc-accent-hi); }
  .pc-btn-dark:not([aria-disabled="true"]):hover { background: #000; }
  .pc-btn-quiet:not([aria-disabled="true"]):hover { background: var(--pc-line); }
  .pc-seg-b:not([aria-checked="true"]):hover { color: var(--pc-ink); background: var(--pc-sunk); }
  .pc-size:hover, .pc-scheme:hover, .pc-shape-b:hover, .pc-thumb:hover, .pc-zoom-b:hover { border-color: var(--pc-ink); }
}
.pc-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--pc-ink); cursor: pointer; border-radius: var(--pc-r); flex: 0 0 auto; }
@media (hover: hover) { .pc-icon:hover { background: var(--pc-sunk); } }

.pc-summary { display: grid; gap: 10px; }
.pc-sum-place { font: 600 18px/1.25 var(--pc-head); overflow-wrap: anywhere; }
.pc-lines { margin: 0; display: grid; gap: 4px; }
.pc-line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--pc-muted); }
.pc-line dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--pc-ink); }
.pc-total { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; margin-bottom: 4px; border-top: 1px solid var(--pc-line); min-width: 0; }
.pc-total span { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.pc-total b { font: 700 28px/1 var(--pc-head); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pc-total small { color: var(--pc-muted); font-size: 13px; white-space: nowrap; }
.pc-sum-note { font-size: 13px; color: var(--pc-muted); text-align: center; }

.pc-bar { position: fixed; z-index: var(--pc-z-bar); left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--pc-surface); border-top: 1px solid var(--pc-line-strong); }
.pc-bar-t { display: grid; min-width: 0; }
.pc-bar-price { font: 700 20px/1.1 var(--pc-head); font-variant-numeric: tabular-nums; }
.pc-bar-what { font-size: 13px; color: var(--pc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── windows */
.pc-dlg { border: 0; padding: 0; background: var(--pc-surface); color: var(--pc-ink); width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.pc-dlg[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pc-dlg::backdrop { background: var(--pc-backdrop); }
.pc-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--pc-line); }
.pc-dlg-head h2 { margin: 0; font: 600 20px/1.2 var(--pc-head); letter-spacing: -0.01em; }
.pc-dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--pc-line); }
.pc-dlg-foot .pc-btn { min-width: 150px; }
.pc-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 0; height: min(620px, calc(100dvh - 170px)); }
.pc-ed-map { position: relative; min-width: 0; min-height: 0; background: var(--pc-map-bg); }
.pc-ed-map .pc-map { position: absolute; inset: 0; aspect-ratio: auto; }
.pc-ed-panel { min-width: 0; overflow-y: auto; padding: 16px 20px 20px; border-left: 1px solid var(--pc-line); }
.pc-ed { display: grid; gap: 12px; align-content: start; }
.pc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--pc-sunk); }
.pc-tab { display: grid; justify-items: center; gap: 4px; min-height: 56px; padding: 8px 4px; border: 0; background: transparent; color: var(--pc-muted); font: 600 13px/1.15 var(--pc-body); cursor: pointer; border-radius: var(--pc-r); }
.pc-tab[aria-pressed="true"] { background: var(--pc-surface); color: var(--pc-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.pc-ed-body { display: grid; gap: 10px; align-content: start; min-height: 132px; }
.pc-drawstate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pc-drawstate-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1px solid var(--pc-line-strong); background: var(--pc-surface); color: var(--pc-ink); font: 600 16px/1 var(--pc-body); cursor: pointer; border-radius: var(--pc-r); }
.pc-drawstate-b[aria-pressed="true"] { background: var(--pc-ink); border-color: var(--pc-ink); color: var(--pc-on-ink); }
.pc-drawstate-b[data-ad="draw-on"][aria-pressed="true"] { background: var(--pc-accent); border-color: var(--pc-accent); color: var(--pc-on-accent); }
.pc-drawstate-b[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pc-drawmode { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.pc-drawmode-b { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--pc-muted); font: 500 14px/1.2 var(--pc-body); cursor: pointer; }
.pc-drawmode-b::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--pc-line-strong); flex: 0 0 auto; }
.pc-drawmode-b[aria-checked="true"] { color: var(--pc-ink); font-weight: 600; }
.pc-drawmode-b[aria-checked="true"]::before { border: 5px solid var(--pc-ink); }
.pc-ed-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--pc-muted); min-height: 21px; }
.pc-ed-alert, .pc-ed-warn { padding: 9px 12px; background: var(--pc-warn-bg); color: var(--pc-warn); font-size: 14px; }
.pc-ed-empty { color: var(--pc-muted); font-size: 14px; }
.pc-ed-attr { font-size: 12px; color: var(--pc-muted); }
.pc-ed-sub { display: flex; justify-content: space-between; margin-top: 4px; font: 600 14px/1.3 var(--pc-body); }
.pc-ed-sub span { font-weight: 400; color: var(--pc-muted); }
.pc-ed-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--pc-line-strong); border-radius: var(--pc-r); background: var(--pc-surface); color: var(--pc-ink); font: 400 16px/1 var(--pc-body); }
.pc-label { display: flex; justify-content: space-between; font: 600 14px/1.3 var(--pc-body); margin-bottom: -6px; }
.pc-label span { font-weight: 400; color: var(--pc-muted); }
.pc-routes, .pc-onplate { margin: 0; padding: 0; list-style: none; display: grid; }
.pc-routes { max-height: 248px; overflow-y: auto; border: 1px solid var(--pc-line); }
.pc-routes li + li { border-top: 1px solid var(--pc-line); }
.pc-routes.is-wait { border: 0; gap: 6px; }
.pc-routes.is-wait li { height: 48px; border: 0; background: linear-gradient(100deg, var(--pc-sunk) 30%, var(--pc-surface) 50%, var(--pc-sunk) 70%); background-size: 300% 100%; animation: pc-wait 1.6s linear infinite; }
.pc-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 8px 12px; border: 0; background: transparent; color: var(--pc-ink); text-align: left; cursor: pointer; font: 400 15px/1.3 var(--pc-body); }
.pc-route-t { display: grid; min-width: 0; }
.pc-route-t b { font-weight: 600; overflow-wrap: anywhere; }
.pc-route-t small { font-size: 13px; color: var(--pc-muted); }
.pc-route-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--pc-line-strong); color: transparent; flex: 0 0 auto; }
.pc-route[aria-pressed="true"] { background: var(--pc-sunk); }
.pc-route[aria-pressed="true"] .pc-route-mark { background: var(--pc-ink); border-color: var(--pc-ink); color: var(--pc-on-ink); }
.pc-route[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) { .pc-route:not([aria-disabled="true"]):hover { background: var(--pc-sunk); } }
.pc-onplate li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.pc-onplate .pc-route-t { flex: 1 1 auto; }
.pc-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); flex: 0 0 auto; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--pc-line-strong); background: var(--pc-surface); color: var(--pc-ink); font: 500 14px/1 var(--pc-body); cursor: pointer; border-radius: var(--pc-r); }
.pc-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; border: 1.5px dashed var(--pc-line-strong); color: var(--pc-ink); text-align: center; cursor: pointer; font-size: 15px; }
.pc-drop small { color: var(--pc-muted); font-size: 13px; }
.pc-drop.is-over { background: var(--pc-sunk); border-color: var(--pc-ink); }
.pc-drop.is-off { opacity: .5; cursor: not-allowed; }
.pc-drop:focus-within { outline: 2px solid var(--pc-ink); outline-offset: 2px; }
.pc-check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 32px; cursor: pointer; }
.pc-check input { width: 18px; height: 18px; accent-color: var(--pc-ink); margin: 0; }
.pc-linkbtn { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pc-ed-colour { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--pc-line); font: 600 14px/1.3 var(--pc-body); }
.pc-swatches { display: flex; gap: 8px; }
.pc-swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); cursor: pointer; }
.pc-swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), 0 0 0 2px var(--pc-surface), 0 0 0 4px var(--pc-ink); }
.pc .pm-ad-spin { width: 14px; height: 14px; border: 2px solid var(--pc-line-strong); border-top-color: var(--pc-ink); border-radius: 50%; animation: pc-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pc .pm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pc-view3d { width: min(1320px, calc(100vw - 32px)); }
.pc-3d-tools { display: flex; align-items: center; gap: 8px; }
.pc-3d-stage { position: relative; height: min(74dvh, 780px); min-height: 280px; background: radial-gradient(120% 90% at 50% 35%, #F4F0E9 0%, var(--pc-stage) 70%); }
.pc-3d-canvas { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.pc-3d-canvas:active { cursor: grabbing; }
.pc-3d-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; font-weight: 500; }
.pc-3d-wait .pc-prog { width: min(320px, 70vw); margin: 0; }
.pc-3d-foot { justify-content: space-between; }
.pc-3d-foot .pc-total { border: 0; padding: 0; margin: 0; flex: 1 1 auto; }
.pc-3d-foot .pc-total span { font-weight: 500; color: var(--pc-muted); font-size: 15px; }
.pc-3d-foot .pc-total b { font-size: 24px; }

.pc-co { display: contents; }
.pc-toast { position: fixed; z-index: var(--pc-z-toast); left: 50%; bottom: 88px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; background: var(--pc-ink); color: var(--pc-on-ink); font-size: 15px; box-shadow: var(--pc-shadow); }

/* ── narrower screens */
@media (max-width: 1023px) {
  .pc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pc-gallery { position: static; }
  .pc-bar:not([hidden]) { display: flex; }
  .pc-ed-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 44dvh) minmax(0, 1fr); height: calc(100dvh - 150px); }
  .pc-ed-panel { border-left: 0; border-top: 1px solid var(--pc-line); }
}
@media (max-width: 640px) {
  .pc-step { padding: 16px; }
  .pc-mapbox { margin-inline: -16px; }
  .pc-step-type { padding: 6px; }
  .pc-map { aspect-ratio: 1; }
  .pc-map.is-big { inset: 0; }
  .pc-addon { grid-template-columns: 112px minmax(0, 1fr); }
  .pc-addon-t { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .pc-addon-price { grid-row: 2; font-size: 14px; }
  .pc-dlg { width: 100vw; height: 100dvh; max-height: none; margin: 0; }
  .pc-ed-grid { height: auto; }
  .pc-dlg-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .pc-dlg-foot .pc-btn { min-width: 0; flex: 1 1 0; }
  .pc-3d-stage { height: auto; }
  .pc-3d-foot { flex-wrap: wrap; }
  .pc-3d-tools .pc-btn span { display: none; }
  .pc-thumb { width: 72px; }
  .pc-zoom { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .pc-zoom-b, .pc-icon, .pc-map-big { width: 44px; height: 44px; }
  .pc-swatch { width: 40px; height: 40px; }
  .pc-ed-colour { flex-wrap: wrap; }
  .pc-thumb-wait { height: 96px; }
  .pc-sizes { gap: 6px; }
  .pc-size { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-thumb-wait, .pc-routes.is-wait li { animation: none; }
  .pc-prog i, .pc-btn, .pc-seg-b { transition: none; }
  .pc .pm-ad-spin { animation-duration: 2.4s; }
}

/* ── Studio (the same tool inside Printara Studio: dark, the Studio's own colours) */
.pc[data-mode="studio"] {
  --pc-bg: #07090E; --pc-surface: #10141C; --pc-sunk: #1A202B; --pc-ink: #F2F5FA; --pc-muted: #9AA6B8; --pc-line: rgba(255,255,255,.09); --pc-line-strong: rgba(255,255,255,.22);
  --pc-accent: #22D3EE; --pc-accent-hi: #67E8F9; --pc-on-accent: #04121A; --pc-on-ink: #07090E; --pc-stage: #151A23; --pc-warn: #FFD38A; --pc-warn-bg: rgba(255,170,40,.14);
  --pc-shadow: 0 18px 40px -24px rgba(0,0,0,.8); --pc-backdrop: rgba(2,4,8,.72);
  --pc-head: "Space Grotesk", system-ui, sans-serif; --pc-body: "Inter", system-ui, sans-serif; --pc-r: 10px;
}
.pc[data-mode="studio"] .pc-btn-dark:not([aria-disabled="true"]):hover { background: #fff; }
.pc[data-mode="studio"] .pc-3d-stage { background: radial-gradient(120% 90% at 50% 35%, #2A3140 0%, #10141C 75%); }
.pc[data-mode="studio"] .pc-map .maplibregl-ctrl-attrib { color: #1F1A17; }

/* the Studio builds its files at the builder's own relief; the Relief choice belongs to the printed plate for now */
.pc[data-mode="studio"] .pc-relief { display: none; }
