:root {
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:#26332c;
  background:#f5f4ef;
  font-synthesis:none;
  font-size:15px;
  --bg:#f5f4ef;
  --surface:#fffefa;
  --ink:#26332c;
  --muted:#73796f;
  --line:#ddded5;
  --accent:#d9eb93;
  --accent-ink:#293b22;
  --stage:#26362d;
  --soft:#eeefe7;
  --shadow:0 18px 50px #293b2210;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  transition:background .35s,color .35s;
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}
button,a {
  touch-action:manipulation;
}
button {
  color:inherit;
  cursor:pointer;
}
a {
  color:inherit;
  text-decoration:none;
}
button {
  border:0;
  background:none;
}
button:disabled {
  cursor:not-allowed;
  opacity:.48;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible {
  outline:3px solid var(--ink);
  outline-offset:4px;
}
h1,h2,p {
  margin:0;
}
h1 {
  font-size:clamp(30px,3vw,45px);
  line-height:1.16;
  letter-spacing:-1.7px;
  font-weight:500;
}
h2 {
  font-size:21px;
  letter-spacing:-.7px;
  font-weight:550;
}
em {
  font-family:Georgia,serif;
  font-weight:400;
}
label {
  font-size:13px;
  font-weight:550;
  display:grid;
  gap:8px;
}
input:not([type=checkbox]):not([type=color]),select {
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  color:var(--ink);
  padding:12px 13px;
  min-height:44px;
}
input[type=color] {
  width:100%;
  height:37px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:3px;
  background:var(--surface);
  cursor:pointer;
}
input[type=checkbox] {
  accent-color:var(--ink);
  width:18px;
  height:18px;
}
.button {
  min-height:46px;
  padding:12px 17px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-weight:600;
  font-size:13px;
  border:1px solid transparent;
  transition:transform .2s,box-shadow .2s,background .2s;
}
.button:hover:not(:disabled) {
  transform:translateY(-2px);
  box-shadow:0 5px 15px #0000000a;
}
.button:active:not(:disabled) {
  transform:translateY(0) scale(.98);
}
.button.primary {
  background:var(--accent);
  color:var(--accent-ink);
}
.button.secondary {
  background:var(--surface);
  border-color:var(--line);
}
.button.light {
  background:#fafbf2;
  color:#293b2e;
  padding-inline:22px;
}
.full {
  width:100%;
}
.small-button {
  min-height:40px;
  padding:8px 14px;
}
.icon-button {
  width:40px;
  height:40px;
  display:inline-grid;
  place-items:center;
  font-size:22px;
  border:1px solid var(--line);
  border-radius:12px;
  flex-shrink:0;
  transition:background .2s;
}
.icon-button:hover {
  background:var(--soft);
}
.info-button {
  font-family:Georgia,serif;
  font-style:italic;
  width:28px;
  height:28px;
  font-size:13px;
  border:1px solid var(--line);
  border-radius:50%;
  flex-shrink:0;
  display:inline-grid;
  place-items:center;
}
.info-button:hover {
  background:var(--soft);
}
.text-button {
  padding:8px 0;
  font-size:12px;
  display:inline-block;
  cursor:pointer;
}
.text-button:hover {
  text-decoration:underline;
}
.muted {
  color:var(--muted);
}
.small {
  font-size:12px;
  line-height:1.6;
}
.error {
  color:#b73546;
  font-size:13px;
  line-height:1.6;
}
.error:empty {
  display:none;
}
.danger {
  color:#b73546;
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:650;
  display:block;
  margin-bottom:12px;
}
.app-shell {
  max-width:1480px;
  margin:0 auto;
  padding:0 48px;
}
.topbar {
  min-height:100px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-weight:700;
  font-size:27px;
  letter-spacing:-1.7px;
  white-space:nowrap;
}
.brand-icon {
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--accent);
  color:var(--accent-ink);
  font-size:35px;
  margin-right:8px;
  line-height:1;
  letter-spacing:0;
}
.brand-light {
  font-weight:400;
}
.brand-dot {
  font-size:10px;
  align-self:flex-start;
  margin-top:6px;
  margin-left:2px;
}
.steps {
  display:flex;
  align-items:center;
  gap:16px;
  color:var(--muted);
  font-size:12px;
}
.steps span {
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}
.steps b {
  font-size:10px;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border:1px solid var(--line);
  border-radius:50%;
  font-weight:500;
}
.steps .active {
  color:var(--ink);
}
.steps .active b {
  background:var(--accent);
  border-color:transparent;
  color:var(--accent-ink);
}
.steps i {
  width:35px;
  height:1px;
  background:var(--line);
}
.header-actions {
  display:flex;
  gap:10px;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  padding:31px 0 28px;
}
.page-heading>.info-button {
  margin-bottom:6px;
}
.booth-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 318px;
  gap:28px;
  align-items:start;
}
.capture-column {
  min-width:0;
}
.camera-stage {
  position:relative;
  aspect-ratio:4/3;
  max-height:620px;
  background:var(--stage);
  border-radius:20px;
  overflow:hidden;
  isolation:isolate;
  box-shadow:inset 0 0 80px #0002;
}
.camera-stage:before {
  content:"";
  position:absolute;
  inset:20px;
  border:1px solid #ffffff13;
  border-radius:10px;
  pointer-events:none;
  z-index:2;
}
.camera-stage video {
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .4s;
}
.camera-stage.has-camera video {
  opacity:1;
}
.camera-top,.camera-bottom {
  position:absolute;
  left:28px;
  right:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#fff;
  z-index:3;
}
.camera-top {
  top:27px;
}
.camera-bottom {
  bottom:22px;
}
.camera-bottom>span {
  font-size:9px;
  letter-spacing:2px;
  color:#ffffffe0;
  text-shadow:0 1px 4px #0008;
}
.live-badge,.timer-badge {
  display:flex;
  align-items:center;
  font-size:9px;
  letter-spacing:1.4px;
  gap:7px;
  background:#18251b70;
  border:1px solid #ffffff20;
  padding:8px 10px;
  border-radius:25px;
  backdrop-filter:blur(10px);
}
.live-badge i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#97a091;
}
.live-badge i.on {
  background:#d9eb93;
  box-shadow:0 0 0 3px #d9eb9317;
}
.timer-badge {
  letter-spacing:.4px;
}
.timer-badge button {
  font-family:Georgia,serif;
  color:#fff;
  border-radius:50%;
  border:1px solid #ffffff55;
  width:17px;
  height:17px;
  font-size:11px;
  padding:0;
}
.camera-icon {
  font-size:25px;
  color:#fff;
  width:38px;
  height:38px;
  background:#18251b40;
  border-radius:9px;
}
.camera-placeholder {
  position:absolute;
  inset:70px 25px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  gap:23px;
  color:#fcfdf3;
}
.camera-placeholder h2 {
  font-family:Georgia,serif;
  font-size:24px;
  font-weight:400;
  letter-spacing:-.4px;
}
.camera-art {
  width:144px;
  height:100px;
  border:1px solid #d9eb935c;
  border-radius:20px;
  position:relative;
  transform:rotate(-8deg);
  display:grid;
  place-items:center;
  margin-bottom:5px;
  animation:float 6s ease-in-out infinite;
}
.camera-art:before {
  content:"";
  width:45px;
  height:11px;
  border:1px solid #d9eb935c;
  border-radius:6px 6px 0 0;
  position:absolute;
  top:-13px;
  left:20px;
}
.art-lens {
  border:1px solid #d9eb9380;
  border-radius:50%;
  height:68px;
  width:68px;
  display:grid;
  place-items:center;
  color:#d9eb93;
  font-size:45px;
}
.art-light {
  position:absolute;
  right:13px;
  top:12px;
  border-radius:3px;
  width:16px;
  height:9px;
  background:#d9eb9360;
}
.camera-error:empty {
  display:none;
}
.camera-error {
  font-size:12px;
  line-height:1.4;
  max-width:360px;
  color:#ffcec2;
}
.capture-tools {
  display:flex;
  align-items:center;
  gap:9px;
  margin:15px 0;
}
.tool-group {
  display:flex;
  gap:6px;
  margin-right:auto;
}
.tool-button {
  font-size:18px;
  min-height:36px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:9px;
}
.tool-button span {
  font-size:11px;
  margin-left:4px;
}
.tool-button[aria-pressed=true] {
  background:var(--soft);
  border-color:var(--line);
}
.switch-label {
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:400;
  font-size:11px;
  white-space:nowrap;
  cursor:pointer;
}
.switch-label input {
  position:absolute;
  opacity:0;
  width:1px;
}
.switch {
  width:28px;
  height:17px;
  border-radius:20px;
  background:var(--line);
  position:relative;
  transition:background .2s;
}
.switch:after {
  content:"";
  position:absolute;
  width:11px;
  height:11px;
  top:3px;
  left:3px;
  background:var(--surface);
  border-radius:50%;
  transition:transform .2s;
}
.switch-label input:checked+.switch {
  background:var(--ink);
}
.switch-label input:checked+.switch:after {
  transform:translateX(11px);
}
.switch-label input:focus-visible+.switch {
  outline:3px solid var(--ink);
  outline-offset:4px;
}
.filters {
  display:flex;
  gap:8px;
  padding:3px 0 18px;
  overflow-x:auto;
}
.filter-chip {
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  font-size:11px;
  border:1px solid var(--line);
  border-radius:50px;
  padding:7px 13px 7px 7px;
  background:var(--surface);
  transition:background .2s,border-color .2s;
}
.filter-chip.active {
  border-color:var(--ink);
  background:var(--soft);
}
.filter-dot {
  width:21px;
  height:21px;
  display:block;
  border-radius:50%;
  border:1px solid #00000012;
}
.original {
  background:linear-gradient(130deg,#769582,#dfd29f);
}
.mono {
  background:linear-gradient(130deg,#404040,#d7d7d7);
}
.warm {
  background:linear-gradient(130deg,#b8825e,#f5d391);
}
.film {
  background:linear-gradient(130deg,#727865,#b0a994);
}
.pop {
  background:linear-gradient(130deg,#c79bb2,#dea270);
}
.capture-footer {
  display:flex;
  align-items:center;
  gap:15px;
  border-top:1px solid var(--line);
  padding-top:19px;
}
.shot-tray {
  display:flex;
  gap:7px;
  flex:1;
  min-width:0;
  overflow:hidden;
}
.shot-thumb {
  border:1px dashed var(--line);
  border-radius:8px;
  min-width:36px;
  width:46px;
  height:48px;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  position:relative;
}
.shot-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  animation:pop-in .3s;
}
.shot-thumb.captured {
  border-style:solid;
}
.capture-button {
  padding:16px 21px;
  min-height:53px;
  gap:17px;
}
.shutter-icon {
  width:18px;
  height:18px;
  border:1px solid currentColor;
  border-radius:50%;
  display:block;
  box-shadow:inset 0 0 0 3px var(--accent);
}
.shutter-icon:after {
  content:"";
  display:block;
  width:10px;
  height:10px;
  background:currentColor;
  border-radius:50%;
  margin:3px;
}
.strip-panel {
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  padding:21px;
  min-width:0;
}
.panel-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.panel-title h2 {
  font-size:15px;
  letter-spacing:-.3px;
}
.size-badge {
  font-size:10px;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:6px;
  padding:5px 7px;
  white-space:nowrap;
}
.paper-stage {
  margin-top:20px;
  height:368px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:18px;
  border-radius:12px;
  position:relative;
  background:radial-gradient(var(--line) .6px,transparent .6px) 0 0/9px 9px,var(--soft);
  overflow:hidden;
}
.paper-shadow {
  filter:drop-shadow(4px 7px 8px #26332c22);
  transform:rotate(4deg);
  transition:transform .5s;
  max-width:82%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.paper-shadow:hover {
  transform:rotate(0deg);
}
#stripPreview {
  height:293px;
  max-width:100%;
  width:auto;
  object-fit:contain;
  background:#fff;
}
.paper-caption {
  font-size:8px;
  letter-spacing:1.7px;
  color:var(--muted);
}
.template-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  font-weight:600;
  margin:18px 0 10px;
}
.template-picks {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.template-pick {
  height:55px;
  border:1px solid var(--line);
  border-radius:9px;
  display:flex;
  gap:6px;
  justify-content:center;
  align-items:center;
  padding:5px;
  overflow:hidden;
  background:var(--soft);
}
.template-pick canvas {
  height:40px;
  max-width:80%;
  object-fit:contain;
  box-shadow:0 2px 4px #0001;
  transform:rotate(-6deg);
}
.template-pick.selected {
  border:2px solid var(--ink);
}
.panel-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:16px;
}
.panel-actions .button {
  font-size:10px;
  padding:9px;
  min-height:39px;
  gap:8px;
}
.app-footer {
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:32px;
  padding:18px 0 25px;
  color:var(--muted);
  font-size:9px;
  letter-spacing:1.3px;
}
.app-footer .text-button {
  font-size:10px;
  letter-spacing:0;
}
.app-footer #connectionStatus {
  letter-spacing:.2px;
}
.countdown {
  position:absolute;
  inset:0;
  place-items:center;
  display:grid;
  color:#fff;
  font-size:clamp(90px,12vw,160px);
  font-weight:600;
  background:#0002;
  z-index:5;
  text-shadow:0 3px 20px #0002;
  font-variant-numeric:tabular-nums;
}
.countdown.pulse {
  animation:count-in .45s ease-out;
}
.flash {
  position:absolute;
  inset:0;
  background:#fff;
  opacity:0;
  pointer-events:none;
  z-index:6;
}
.flash.fire {
  animation:flash .4s ease-out;
}
.crop-guide {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  border:1px solid #ffffffb0;
  box-shadow:0 0 0 700px #0003;
  pointer-events:none;
  z-index:1;
  border-radius:4px;
}
.toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:var(--surface);
  max-width:min(90vw,500px);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:14px 20px;
  font-size:13px;
  line-height:1.5;
  z-index:100;
}
.toast button {
  color:inherit;
}
dialog {
  border:1px solid var(--line);
  border-radius:23px;
  background:var(--surface);
  color:var(--ink);
  padding:26px;
  width:min(450px,calc(100% - 28px));
  max-height:90dvh;
  box-shadow:0 30px 120px #0003;
  overflow:auto;
}
dialog[open] {
  animation:dialog-in .25s ease-out;
}
dialog::backdrop {
  background:#15271ee0;
  backdrop-filter:blur(5px);
}
.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:23px;
}
.dialog-head h2 {
  font-size:25px;
}
.dialog-head .eyebrow {
  font-size:9px;
  margin-bottom:9px;
}
.help-dialog p {
  font-size:14px;
  line-height:1.8;
  white-space:pre-line;
}
.wide-dialog {
  width:min(860px,calc(100% - 28px));
}
.template-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px;
}
.template-card {
  text-align:left;
  border:1px solid var(--line);
  border-radius:13px;
  overflow:hidden;
  background:var(--bg);
  padding:0;
  transition:transform .2s;
}
.template-card:hover {
  transform:translateY(-3px);
}
.template-card.selected {
  border:2px solid var(--ink);
}
.template-card .card-art {
  height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--soft);
  padding:20px;
}
.card-art canvas {
  max-width:100%;
  max-height:155px;
  object-fit:contain;
  filter:drop-shadow(4px 5px 5px #0002);
  transform:rotate(-4deg);
}
.card-label {
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:13px;
}
.card-label small {
  font-size:10px;
  color:var(--muted);
}
.label-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:15px 0 12px;
  font-size:13px;
  font-weight:600;
}
.theme-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}
.theme-option {
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 7px;
  font-size:11px;
  display:flex;
  align-items:center;
  gap:9px;
  flex-direction:column;
}
.theme-option.active {
  border:2px solid var(--ink);
}
.theme-swatch {
  height:27px;
  width:42px;
  border-radius:30px;
  border:1px solid #0001;
}
.check-row {
  display:flex;
  align-items:center;
  font-weight:400;
  font-size:12px;
  margin:16px 0 24px;
}
.settings-end {
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:13px;
}
#testPrint {
  margin-top:14px;
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.form-grid.four {
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.form-grid.four input {
  padding:10px 5px;
}
.form-grid.four label {
  font-size:11px;
}
.editor-dialog {
  width:min(980px,calc(100% - 28px));
}
.editor-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 350px;
  gap:25px;
}
.editor-preview {
  background:var(--soft);
  border-radius:14px;
  min-height:420px;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  padding:25px;
  align-self:start;
  position:sticky;
  top:0;
}
.editor-preview>canvas {
  max-height:600px;
  max-width:100%;
  width:auto;
  object-fit:contain;
  box-shadow:0 5px 20px #0002;
  touch-action:none;
  cursor:move;
}
.editor-preview>.info-button {
  position:absolute;
  right:10px;
  bottom:10px;
  background:var(--surface);
}
.editor-controls {
  display:grid;
  gap:14px;
}
.editor-controls .button {
  font-size:11px;
}
.color-fields {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}
.frame-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:15px;
}
.frame-heading .icon-button {
  height:29px;
  width:32px;
  font-size:19px;
  border-radius:8px;
}
.overlay-row {
  display:flex;
  gap:13px;
  align-items:center;
}
.overlay-row label {
  cursor:pointer;
  margin-right:auto;
}
.result-dialog {
  width:min(780px,calc(100% - 28px));
}
.result-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:30px;
}
.result-paper {
  background:radial-gradient(var(--line) .6px,transparent .6px) 0 0/9px 9px,var(--soft);
  border-radius:14px;
  min-height:440px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  overflow:hidden;
}
.result-paper img {
  max-height:580px;
  max-width:100%;
  object-fit:contain;
  box-shadow:5px 9px 20px #0002;
  transform:rotate(-3deg);
  animation:strip-out .8s ease-out;
}
.result-actions {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.result-detail {
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px;
  letter-spacing:1px;
  margin-bottom:5px;
}
.result-actions>.button {
  justify-content:space-between;
}
#nextButton {
  margin-top:auto;
}
.gallery-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.gallery-item {
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  min-width:0;
}
.gallery-item img {
  display:block;
  width:100%;
  aspect-ratio:1200/630;
  object-fit:contain;
  background:var(--soft);
}
.gallery-item>div {
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.gallery-item .text-button {
  font-size:11px;
}
.auth-page {
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px;
  background:radial-gradient(var(--line) .7px,transparent .7px) 0 0/13px 13px,var(--bg);
}
.auth-card {
  width:min(100%,440px);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:36px;
}
.auth-card>.brand {
  margin-bottom:45px;
}
.auth-card>h1 {
  margin-bottom:30px;
}
.auth-card form {
  display:grid;
  gap:20px;
}
.auth-card>.small {
  margin:17px 0;
}
.setup-card {
  width:min(100%,610px);
}
.setup-card>.brand {
  margin-bottom:30px;
}
.setup-card h1 {
  font-size:35px;
}
.setup-card>.error {
  margin-bottom:20px;
}
#printArea {
  display:none;
}
[hidden] {
  display:none!important;
}
body[data-theme=midnight] {
  --bg:#171c23;
  --surface:#222a32;
  --ink:#edf1ee;
  --muted:#a3aea8;
  --line:#3c464e;
  --accent:#c3d9ee;
  --accent-ink:#223647;
  --stage:#11191e;
  --soft:#2b333c;
  --shadow:0 18px 50px #0003;
}
body[data-theme=blush] {
  --bg:#faf2f0;
  --surface:#fffafa;
  --ink:#61383d;
  --muted:#987e7c;
  --line:#ead8d7;
  --accent:#edbcc5;
  --accent-ink:#5b2e35;
  --stage:#623d44;
  --soft:#f4e7e7;
}
body[data-theme=lavender] {
  --bg:#f4f1fa;
  --surface:#fdfaff;
  --ink:#44355b;
  --muted:#8b809b;
  --line:#dfd7eb;
  --accent:#d7c5f1;
  --accent-ink:#47305f;
  --stage:#40334f;
  --soft:#ebe5f4;
}
body[data-theme=ocean] {
  --bg:#edf5f5;
  --surface:#f9fefd;
  --ink:#254e56;
  --muted:#6d9194;
  --line:#cde0e0;
  --accent:#b6e4da;
  --accent-ink:#22584f;
  --stage:#25474e;
  --soft:#dfeded;
}
body[data-theme=sunset] {
  --bg:#fff4e9;
  --surface:#fffcf5;
  --ink:#653c2c;
  --muted:#a38872;
  --line:#ebdccb;
  --accent:#f7c191;
  --accent-ink:#653826;
  --stage:#5e4535;
  --soft:#f7e8d8;
}
@keyframes float {
  50% {
    transform:translateY(-5px) rotate(-5deg);
  }
}
@keyframes flash {
  0% {
    opacity:.9;
  }
  100% {
    opacity:0;
  }
}
@keyframes count-in {
  0% {
    transform:scale(1.2);
    opacity:.4;
  }
  100% {
    transform:scale(1);
    opacity:1;
  }
}
@keyframes pop-in {
  from {
    transform:scale(.7);
    opacity:0;
  }
  to {
    transform:scale(1);
    opacity:1;
  }
}
@keyframes dialog-in {
  from {
    transform:translateY(12px);
    opacity:0;
  }
  to {
    transform:translateY(0);
    opacity:1;
  }
}
@keyframes strip-out {
  from {
    transform:translateY(-35px) rotate(0deg);
    opacity:0;
  }
  to {
    transform:translateY(0) rotate(-3deg);
    opacity:1;
  }
}
@media(min-width:1500px) {
  .booth-layout {
    grid-template-columns:minmax(0,1fr) 350px;
  }
  .camera-stage {
    aspect-ratio:16/11;
  }
  .paper-stage {
    height:425px;
  }
  #stripPreview {
    height:345px;
  }
  .strip-panel {
    padding:24px;
  }
  .page-heading {
    padding-top:38px;
    padding-bottom:33px;
  }
}
@media(max-width:1100px) {
  .app-shell {
    padding:0 28px;
  }
  .booth-layout {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:20px;
  }
  .strip-panel {
    padding:17px;
  }
  .paper-stage {
    height:314px;
  }
  #stripPreview {
    height:244px;
  }
  .camera-placeholder h2 {
    font-size:21px;
  }
  .camera-art {
    width:120px;
    height:83px;
  }
  .art-lens {
    height:57px;
    width:57px;
    font-size:40px;
  }
  .camera-placeholder {
    gap:20px;
  }
  .capture-button {
    padding:14px 16px;
    gap:10px;
  }
  .tool-button span {
    display:none;
  }
  .capture-tools {
    gap:7px;
  }
  .shot-thumb {
    width:34px;
    height:42px;
    min-width:29px;
  }
  .steps {
    gap:10px;
  }
  .steps i {
    width:18px;
  }
  .camera-top,.camera-bottom {
    left:22px;
    right:22px;
  }
}
@media(max-width:800px) {
  .steps {
    display:none;
  }
  .app-shell {
    padding:0 24px;
  }
  .topbar {
    min-height:83px;
  }
  .booth-layout {
    grid-template-columns:minmax(0,1fr) 230px;
    gap:16px;
  }
  .paper-stage {
    height:264px;
  }
  #stripPreview {
    height:205px;
  }
  .strip-panel {
    padding:13px;
  }
  .panel-title h2 {
    font-size:13px;
  }
  .size-badge {
    font-size:9px;
  }
  .panel-actions {
    grid-template-columns:1fr;
    gap:7px;
  }
  .panel-actions .button {
    font-size:11px;
    min-height:35px;
  }
  .camera-placeholder h2 {
    font-size:18px;
  }
  .camera-art {
    width:98px;
    height:68px;
  }
  .art-lens {
    width:43px;
    height:43px;
    font-size:29px;
  }
  .art-light {
    width:11px;
    height:6px;
    right:9px;
    top:10px;
  }
  .camera-placeholder {
    gap:15px;
    inset:58px 15px;
  }
  .camera-placeholder .button {
    font-size:11px;
    min-height:38px;
    padding:10px 14px;
  }
  .capture-footer {
    flex-wrap:wrap;
    gap:12px;
  }
  .capture-button {
    width:100%;
  }
  .shot-tray {
    min-width:100%;
  }
  .shot-thumb {
    width:45px;
    height:43px;
  }
  .camera-error {
    font-size:10px;
  }
  .camera-bottom>span {
    font-size:7px;
  }
  .filters {
    gap:5px;
  }
  .filter-chip {
    font-size:10px;
    padding-right:9px;
    gap:5px;
  }
  .filter-dot {
    width:16px;
    height:16px;
  }
  .capture-tools>.info-button {
    width:23px;
    height:23px;
  }
  .switch-label {
    font-size:10px;
    gap:5px;
  }
  .editor-layout {
    grid-template-columns:minmax(0,1fr) 300px;
    gap:18px;
  }
  .editor-preview {
    padding:15px;
  }
  .editor-preview canvas {
    max-height:450px;
  }
  .result-layout {
    grid-template-columns:minmax(0,1fr) 250px;
    gap:20px;
  }
}
@media(max-width:620px) {
  .app-shell {
    padding:0 18px;
  }
  .topbar {
    min-height:76px;
  }
  .brand {
    font-size:24px;
  }
  .brand-icon {
    height:32px;
    width:32px;
    font-size:29px;
    border-radius:10px;
  }
  .header-actions {
    gap:7px;
  }
  .header-actions .icon-button {
    width:36px;
    height:36px;
    font-size:20px;
  }
  .small-button {
    min-height:36px;
    padding:7px 11px;
    font-size:11px;
  }
  .page-heading {
    padding:24px 0 21px;
  }
  .page-heading .eyebrow {
    font-size:8px;
    letter-spacing:1.8px;
    margin-bottom:10px;
  }
  h1 {
    font-size:31px;
    letter-spacing:-1px;
  }
  .booth-layout {
    grid-template-columns:1fr;
    gap:24px;
  }
  .camera-stage {
    border-radius:16px;
    aspect-ratio:4/3;
  }
  .camera-stage:before {
    inset:15px;
  }
  .camera-top {
    top:20px;
  }
  .camera-top,.camera-bottom {
    left:21px;
    right:21px;
  }
  .camera-bottom {
    bottom:17px;
  }
  .camera-placeholder {
    gap:19px;
  }
  .camera-placeholder h2 {
    font-size:21px;
  }
  .camera-art {
    width:118px;
    height:80px;
  }
  .art-lens {
    width:56px;
    height:56px;
    font-size:38px;
  }
  .camera-placeholder .button {
    font-size:12px;
    min-height:42px;
    padding:11px 19px;
  }
  .camera-bottom>span {
    font-size:8px;
  }
  .capture-tools {
    margin-top:14px;
  }
  .tool-button span {
    display:inline;
  }
  .tool-button {
    padding:5px 7px;
  }
  .tool-group {
    gap:2px;
  }
  .switch-label {
    font-size:10px;
  }
  .tool-button span {
    font-size:10px;
  }
  .filters {
    gap:7px;
    padding-bottom:15px;
  }
  .filter-chip {
    padding:7px 11px 7px 7px;
    gap:7px;
    font-size:10px;
  }
  .filter-dot {
    width:19px;
    height:19px;
  }
  .capture-footer {
    flex-wrap:nowrap;
    padding-top:16px;
  }
  .shot-tray {
    min-width:0;
  }
  .shot-thumb {
    width:34px;
    min-width:27px;
    height:40px;
  }
  .capture-button {
    width:auto;
    flex-shrink:0;
    padding:14px 15px;
    font-size:12px;
    gap:9px;
  }
  .strip-panel {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 19px;
    padding:20px;
  }
  .panel-title {
    grid-column:1/-1;
    margin-bottom:18px;
  }
  .panel-title h2 {
    font-size:15px;
  }
  .size-badge {
    font-size:10px;
  }
  .paper-stage {
    grid-column:1;
    grid-row:2/5;
    height:235px;
    margin:0;
  }
  #stripPreview {
    height:183px;
  }
  .paper-caption {
    font-size:6px;
  }
  .paper-shadow {
    max-width:80%;
  }
  .template-heading {
    grid-column:2;
    margin:3px 0 9px;
    align-self:start;
    font-size:12px;
  }
  .template-picks {
    grid-column:2;
    gap:5px;
    align-self:start;
  }
  .template-pick {
    height:54px;
  }
  .template-pick canvas {
    height:35px;
  }
  .panel-actions {
    grid-column:2;
    gap:8px;
    align-self:end;
    margin-top:10px;
  }
  .panel-actions .button {
    font-size:11px;
    min-height:42px;
  }
  .app-footer {
    margin-top:24px;
    padding:14px 0 22px;
    font-size:8px;
    letter-spacing:.7px;
  }
  .app-footer #connectionStatus {
    font-size:8px;
  }
  .template-grid {
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .template-card .card-art {
    height:165px;
  }
  .card-art canvas {
    max-height:130px;
  }
  .dialog-head h2 {
    font-size:22px;
  }
  dialog {
    padding:21px;
    max-height:94dvh;
  }
  .editor-layout {
    grid-template-columns:1fr;
  }
  .editor-preview {
    position:relative;
    min-height:280px;
    height:330px;
  }
  .editor-preview canvas {
    max-height:280px;
    max-width:100%;
  }
  .editor-controls {
    gap:14px;
  }
  .result-layout {
    grid-template-columns:1fr;
  }
  .result-paper {
    min-height:250px;
    max-height:360px;
    padding:20px;
  }
  .result-paper img {
    max-height:310px;
  }
  .result-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .result-actions>.button {
    font-size:12px;
  }
  .result-actions>#retakeButton {
    grid-column:1/-1;
  }
  .gallery-grid {
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .auth-card {
    padding:27px;
  }
  .auth-card h1 {
    font-size:35px;
  }
}
@media(max-width:365px) {
  .app-shell {
    padding:0 12px;
  }
  .tool-button span {
    display:none;
  }
  .capture-button {
    font-size:11px;
    padding:13px 11px;
  }
  .shot-thumb {
    min-width:23px;
  }
  .shot-tray {
    gap:4px;
  }
  .page-heading h1 {
    font-size:28px;
  }
  .strip-panel {
    gap:0 12px;
    padding:15px;
  }
  .form-grid.four {
    grid-template-columns:1fr 1fr;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
  .flash.fire {
    opacity:0;
  }
  .paper-shadow,.result-paper img {
    transform:none;
  }
}
.camera-stage video {
  object-fit:contain;
}
.paper-shadow {
  width:82%;
  height:293px;
}
#stripPreview {
  width:auto!important;
  height:auto!important;
  max-width:100%;
  max-height:100%;
}
@media(min-width:1500px) {
  .paper-shadow {
    height:345px;
  }
}
@media(max-width:1100px) {
  .paper-shadow {
    height:244px;
  }
}
@media(max-width:800px) {
  .paper-shadow {
    height:205px;
  }
}
@media(max-width:620px) {
  .paper-shadow {
    height:183px;
  }
}
@media print {
  @page {
    margin:0;
  }
  html,body {
    background:white!important;
    margin:0!important;
    padding:0!important;
  }
  body>*:not(#printArea) {
    display:none!important;
  }
  dialog,dialog::backdrop {
    display:none!important;
  }
  #printArea {
    display:flex!important;
    overflow:hidden!important;
    gap:0!important;
    align-items:flex-start;
    justify-content:flex-start;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }
  #printArea img {
    display:block!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:fill;
    break-inside:avoid;
  }
  * {
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
}
/* Compact booth: preserve the palette and surfaces, emphasize the task. */
main {
  padding-top:26px;
}
.steps,.page-heading,.app-footer {
  display:none;
}
.button {
  font-weight:750;
}
.panel-title h2,.template-heading {
  font-weight:800;
}
.topbar {
  min-height:88px;
}
.camera-bottom {
  pointer-events:none;
}
.camera-bottom #shotStatus {
  font-size:13px;
  font-weight:750;
}
.stage-shutter-wrap {
  position:absolute;
  bottom:23px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:12px;
  align-items:center;
  z-index:7;
}
.stage-shutter {
  height:70px;
  width:70px;
  border-radius:50%;
  border:3px solid #ffffffc9;
  background:#ffffff24;
  box-shadow:0 4px 25px #0004;
  display:grid;
  place-items:center;
  transition:transform .18s,background .18s;
}
.stage-shutter:hover:not(:disabled) {
  transform:scale(1.07);
  background:#ffffff45;
}
.stage-shutter:active:not(:disabled) {
  transform:scale(.95);
}
.stage-shutter .shutter-icon {
  height:52px;
  width:52px;
  border:none;
  background:#fff;
  box-shadow:none;
}
.stage-shutter .shutter-icon:after {
  display:none;
}
.stage-shutter:disabled {
  opacity:.4;
}
.visually-hidden {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
}
.capture-footer {
  border:none;
  padding-top:14px;
  justify-content:center;
}
.shot-tray {
  justify-content:center;
}
.shot-thumb {
  height:54px;
  width:57px;
  border-radius:10px;
  font-weight:700;
}
.capture-column {
  padding-bottom:14px;
}
.panel-actions>label {
  grid-column:1/-1;
  cursor:pointer;
}
.camera-placeholder {
  padding-bottom:28px;
}
.camera-art {
  opacity:.8;
}
#settingsDialog .tool-group {
  flex-wrap:wrap;
  margin-top:18px;
}
#settingsDialog .filters {
  flex-wrap:wrap;
  margin-top:18px;
}
#settingsDialog .settings-end {
  margin-top:20px;
}
#settingsDialog .theme-grid {
  margin-bottom:16px;
}
.advanced-fields {
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
}
.advanced-fields summary {
  font-weight:750;
  font-size:12px;
  cursor:pointer;
  min-height:24px;
}
.advanced-fields[open] {
  display:grid;
  gap:14px;
}
.advanced-fields[open]>summary {
  margin-bottom:15px;
}
.advanced-fields>div,.advanced-fields>label,.advanced-fields>select {
  margin-top:12px;
}
.frame-count {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.frame-count button {
  font-weight:800;
}
.result-dialog .dialog-head h2 {
  font-weight:800;
}
.result-actions #saveStatus,.result-actions #resultPdf {
  grid-column:1/-1;
}
.queue-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
  align-items:center;
}
#queueGrid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px;
}
.queue-card {
  background:var(--soft);
  border-radius:12px;
  position:relative;
  padding:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}
.queue-card img {
  max-width:100%;
  height:230px;
  object-fit:contain;
  filter:drop-shadow(2px 4px 5px #0002);
}
.queue-card .icon-button {
  position:absolute;
  right:3px;
  top:3px;
  width:24px;
  height:24px;
  font-size:17px;
  background:var(--surface);
  border-radius:50%;
}
#queueStatus {
  margin-top:15px;
}
.template-card {
  border-width:2px;
}
.template-card .card-label {
  font-weight:750;
}
.paper-stage {
  height:405px;
}
.paper-shadow {
  height:330px;
}
.a4-sheet {
  position:relative;
  width:210mm;
  height:297mm;
  background:white;
  overflow:hidden;
  break-after:page;
}
.a4-sheet:last-child {
  break-after:auto;
}
@media(min-width:1500px) {
  .paper-stage {
    height:480px;
  }
  .paper-shadow {
    height:400px;
  }
  .camera-stage {
    max-height:700px;
  }
}
@media(max-width:1100px) {
  .paper-stage {
    height:365px;
  }
  .paper-shadow {
    height:290px;
  }
  .stage-shutter {
    width:64px;
    height:64px;
  }
  .stage-shutter .shutter-icon {
    width:47px;
    height:47px;
  }
}
@media(max-width:800px) {
  .paper-stage {
    height:315px;
  }
  .paper-shadow {
    height:245px;
  }
  .queue-card img {
    height:180px;
  }
  .queue-card {
    padding:10px;
  }
}
@media(max-width:620px) {
  main {
    padding-top:18px;
  }
  .topbar {
    min-height:76px;
  }
  .camera-stage {
    aspect-ratio:4/3;
  }
  .stage-shutter-wrap {
    bottom:17px;
  }
  .stage-shutter {
    height:59px;
    width:59px;
  }
  .stage-shutter .shutter-icon {
    height:43px;
    width:43px;
  }
  .camera-placeholder {
    gap:15px;
    inset:45px 15px 70px;
    padding:0;
  }
  .camera-art {
    height:62px;
    width:90px;
  }
  .art-lens {
    width:40px;
    height:40px;
    font-size:29px;
  }
  .capture-footer {
    padding-top:12px;
  }
  .shot-thumb {
    height:48px;
    width:48px;
  }
  .paper-stage {
    height:250px;
  }
  .paper-shadow {
    height:195px;
  }
  .panel-actions .button {
    min-height:38px;
  }
  .queue-card img {
    height:155px;
  }
  #queueGrid {
    gap:7px;
  }
  .queue-card {
    padding:7px;
  }
  .queue-actions .button {
    font-size:11px;
    padding:10px 12px;
  }
  .template-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media print {
  main {
    padding-top:0!important;
  }
  .a4-sheet img {
    position:absolute!important;
  }
  .a4-sheet {
    margin:0!important;
    padding:0!important;
  }
}
.camera-top {
  justify-content:flex-end;
}
.gallery-item img {
  aspect-ratio:1/3;
  height:230px;
  object-fit:contain;
}
.result-detail,#nextButton {
  grid-column:1/-1;
}
@media(max-width:620px) {
  .gallery-item img {
    height:210px;
  }
}
