/* Pack: a carton maker's cutting table. Kraft-paper page, the template drawn like a technical sheet with magenta cuts
   and cyan folds (the colours print shops use), and the box turning on a soft plinth. */
:root { --page: #f3efe7; --card: #fffdf8; --ink: #1f1a12; --soft: #64594a; --line: #ddd2bf; --field: #ece4d4; --act: #8a4b14; --on-act: #ffffff; --stop: #b3261e; --wide: 900px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #14120e; --card: #1e1b15; --ink: #f2ebdf; --soft: #ada290; --line: #3a3226; --field: #14120e; --act: #f0b27a; --on-act: #2d1604; --stop: #ff8a80; color-scheme: dark; }
}
#size .row label { flex: 1 1 120px; }
.file { position: relative; display: inline-flex; align-items: center; border-radius: 999px; min-height: 48px; padding: 0 20px; font-weight: 700; cursor: pointer; flex: none; }
.quiet-file { border: 1.5px solid var(--ink); } .file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; } .file:focus-within { outline: 3px solid var(--act); outline-offset: 2px; }
input[type="color"] { width: 64px; height: 46px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.flat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.flat svg { width: 100%; height: auto; display: block; }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .k { display: inline-block; width: 22px; height: 0; border-top: 2px solid; margin-left: 8px; } .k:first-child { margin-left: 0; }
.k.cut { border-color: #e6007e; } .k.fold { border-color: #00a0e3; border-top-style: dashed; } .k.bleed { border-color: #bbb; border-top-style: dotted; }
.stage { height: 300px; display: grid; place-items: center; perspective: 900px; background: radial-gradient(ellipse at 50% 85%, rgb(0 0 0 / .14), transparent 55%), var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cube { position: relative; transform-style: preserve-3d; }
.face { position: absolute; left: 50%; top: 50%; background-size: cover; background-position: center; outline: 1px solid rgb(0 0 0 / .12); backface-visibility: hidden; }
#turn { width: 100%; accent-color: var(--act); min-height: 44px; }
