:root {
  --cotton-black: #111210;
  --washed-black: #1b1c1a;
  --raised-black: #181916;
  --screen-gray: #97958e;
  --dim-gray: #6f706a;
  --quiet-gray: #494a46;
  --paper: #d7d4cc;
  --paper-shadow: #c3c0b8;
  --ink: #20211f;
  --cold-anomaly: #3d8bff;
  --hot-anomaly: #ff5449;
  --rule: rgba(226, 224, 215, 0.13);
  --focus: #d9d6ce;
  --font-body: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-condensed: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed",
    "Helvetica Neue", sans-serif;
  color-scheme: dark;
  font-family: var(--font-body);
  background: var(--cotton-black);
  color: #dedbd3;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cotton-black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--cotton-black);
  color: #dedbd3;
  text-rendering: optimizeLegibility;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--cotton-black);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #cfccc4;
  text-decoration: none;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.brand svg {
  width: 34px;
  fill: none;
  stroke: var(--screen-gray);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim-gray);
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ca37f;
  box-shadow: 0 0 0 4px rgba(140, 163, 127, 0.08);
}

.source-separator {
  color: var(--quiet-gray);
}

.atelier {
  display: grid;
  min-height: calc(100vh - 114px);
  grid-template-columns: minmax(360px, 430px) minmax(560px, 1fr);
}

.control-room {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vh, 58px) clamp(28px, 3.2vw, 48px) 36px;
  border-right: 1px solid var(--rule);
  background: var(--cotton-black);
}

@media (min-width: 821px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .site-shell {
    display: grid;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: 64px minmax(0, 1fr) 50px;
    overflow: hidden;
  }

  .atelier {
    min-height: 0;
    overflow: hidden;
  }

  .control-room {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #555650 transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .control-room::-webkit-scrollbar {
    width: 10px;
  }

  .control-room::-webkit-scrollbar-thumb {
    border: 3px solid var(--cotton-black);
    border-radius: 8px;
    background: #555650;
  }

  .control-room::-webkit-scrollbar-track {
    background: transparent;
  }

  .preview-studio {
    min-height: 0;
  }
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--dim-gray);
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.intro h1 {
  max-width: 390px;
  margin: 0;
  color: #d5d2ca;
  font-family: var(--font-condensed);
  font-size: clamp(36px, 3.4vw, 54px);
  font-stretch: condensed;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.lede {
  max-width: 370px;
  margin: 22px 0 0;
  color: #83837d;
  font-size: 14px;
  line-height: 1.55;
}

.station-picker {
  margin-top: clamp(34px, 5vh, 58px);
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.field-heading label {
  color: #b6b3ac;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-heading span {
  color: #5c5d58;
  font-size: 11px;
}

.combobox {
  position: relative;
}

.combobox > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 15px;
  width: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #777770;
  stroke-width: 1.7;
}

.combobox input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 43px;
  border: 1px solid rgba(222, 219, 211, 0.19);
  border-radius: 2px;
  background: var(--raised-black);
  color: #d9d6ce;
  outline: none;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.combobox input::placeholder {
  color: #60615c;
}

.combobox input:hover,
.combobox input:focus {
  border-color: rgba(222, 219, 211, 0.36);
  background: #1b1c19;
}

.combobox kbd {
  position: absolute;
  top: 14px;
  right: 12px;
  padding: 3px 5px;
  border: 1px solid rgba(222, 219, 211, 0.13);
  border-radius: 2px;
  color: #64655f;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1;
}

.results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  overflow: auto;
  width: 100%;
  max-height: 306px;
  border: 1px solid rgba(222, 219, 211, 0.2);
  background: #171815;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.result-item {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(222, 219, 211, 0.08);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.result-item:last-child {
  border-bottom: 0;
}

.result-item:hover,
.result-item.active {
  background: #22231f;
}

.result-item strong {
  overflow: hidden;
  color: #d0cdc5;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-item span,
.result-item small {
  color: #74756f;
  font-size: 11px;
}

.result-item .result-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.cache-glyph {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #8ca37f;
  border-radius: 50%;
  background: rgba(140, 163, 127, 0.22);
  box-shadow: 0 0 0 3px rgba(140, 163, 127, 0.06);
}

.result-item small {
  grid-column: 1;
}

.result-empty {
  padding: 20px 14px;
  color: #777871;
  font-size: 12px;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.quick-picks > span {
  margin-right: 3px;
  color: #555650;
  font-family: var(--font-condensed);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.quick-picks button {
  position: relative;
  padding: 5px 8px;
  border: 1px solid rgba(222, 219, 211, 0.13);
  border-radius: 2px;
  background: transparent;
  color: #83847d;
  font-size: 10px;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.quick-picks button::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #8ca37f;
  content: "";
  vertical-align: 1px;
}

.quick-picks button:hover,
.quick-picks button.active {
  border-color: rgba(222, 219, 211, 0.34);
  color: #cfccc4;
}

.specimen {
  margin-top: 30px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.specimen-row {
  padding: 16px 0;
}

.specimen-main {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
}

.specimen span {
  color: #5d5e59;
  font-family: var(--font-condensed);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.specimen strong {
  color: #c2bfb7;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
}

.specimen-main small {
  color: #696a64;
  font-size: 10px;
}

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.specimen-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 13px 8px 14px 0;
}

.specimen-grid strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customizer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.customizer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.customizer-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customizer-heading span,
.date-lines-intro > div > span,
.legend-control-heading > div > span,
.source-note-heading > div > span,
.layer-control-heading > span,
.density-control > span {
  color: #555650;
  font-family: var(--font-condensed);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.customizer-heading h2 {
  margin: 0;
  color: #bdbab2;
  font-family: var(--font-condensed);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.customizer-heading small {
  color: #686963;
  font-family: var(--font-condensed);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.type-control + .type-control {
  margin-top: 17px;
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.control-label label {
  color: #8c8b85;
  font-size: 10px;
  font-weight: 600;
}

.control-label span {
  color: #62635d;
  font-family: var(--font-condensed);
  font-size: 9px;
  font-weight: 700;
}

.control-meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.control-meta .switch-control span {
  min-width: 32px;
  color: inherit;
  font-weight: 500;
}

.type-control > input[type="text"],
.source-note-control > textarea {
  width: 100%;
  padding: 0 11px;
  border: 1px solid rgba(222, 219, 211, 0.16);
  border-radius: 2px;
  background: var(--raised-black);
  color: #d1cec6;
  font-family: var(--font-condensed);
  font-size: 13px;
  letter-spacing: 0.035em;
  outline: none;
  text-transform: uppercase;
}

.type-control > input[type="text"] {
  height: 39px;
}

.source-note-control > textarea {
  min-height: 66px;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 1.35;
  resize: vertical;
}

.type-control > input[type="text"]::placeholder,
.source-note-control > textarea::placeholder {
  color: #52534e;
  text-transform: none;
}

.type-control > input[type="text"]:hover,
.type-control > input[type="text"]:focus,
.source-note-control > textarea:hover,
.source-note-control > textarea:focus {
  border-color: rgba(222, 219, 211, 0.34);
}

.type-range {
  width: 100%;
  height: 14px;
  margin: 7px 0 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.type-range::-webkit-slider-runnable-track {
  height: 1px;
  background: #4f504b;
}

.type-range::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -4px;
  appearance: none;
  border: 1px solid #9a9891;
  border-radius: 50%;
  background: var(--cotton-black);
}

.type-range::-moz-range-track {
  height: 1px;
  background: #4f504b;
}

.type-range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 1px solid #9a9891;
  border-radius: 50%;
  background: var(--cotton-black);
}

.date-lines-control {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
}

.date-lines-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.date-lines-intro > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.date-lines-intro strong {
  overflow: hidden;
  color: #aaa8a1;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.date-presets button,
.reset-layout {
  min-height: 30px;
  border: 1px solid rgba(222, 219, 211, 0.14);
  border-radius: 2px;
  background: transparent;
  color: #85857e;
  font-family: var(--font-condensed);
  font-size: 9px;
  cursor: pointer;
}

.date-presets button:hover,
.reset-layout:hover {
  border-color: rgba(222, 219, 211, 0.3);
  color: #c2bfb7;
}

.date-presets button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-line-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.date-lines-empty,
#date-lines-help {
  margin: 9px 0 0;
  color: #595a54;
  font-size: 9px;
  line-height: 1.45;
}

.date-line-row {
  padding: 8px;
  border: 1px solid rgba(222, 219, 211, 0.12);
  border-radius: 2px;
  background: var(--raised-black);
}

.date-line-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 22px;
  align-items: center;
  gap: 5px;
}

.date-line-label {
  min-width: 0;
  height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(222, 219, 211, 0.12);
  border-radius: 2px;
  background: #10110f;
  color: #c8c5bd;
  font-family: var(--font-condensed);
  font-size: 10px;
  outline: none;
}

.date-line-label:focus,
.date-line-detail input:focus {
  border-color: rgba(222, 219, 211, 0.34);
}

.date-caption-toggle,
.date-line-remove {
  height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(222, 219, 211, 0.12);
  border-radius: 2px;
  background: transparent;
  color: #72736d;
  font-family: var(--font-condensed);
  font-size: 8px;
  cursor: pointer;
}

.date-line-remove {
  padding: 0;
  font-family: sans-serif;
  font-size: 15px;
}

.date-caption-toggle[aria-pressed="true"] {
  color: #9cae92;
}

.date-line-visibility {
  gap: 5px;
}

.date-line-visibility span {
  min-width: 28px;
  font-size: 8px;
}

.date-line-visibility i {
  width: 23px;
  height: 13px;
}

.date-line-visibility i::after {
  top: 2px;
  left: 2px;
}

.date-line-visibility[aria-checked="true"] i::after {
  transform: translateX(10px);
}

.date-line-detail {
  display: flex;
  min-height: 30px;
  align-items: flex-end;
  gap: 7px;
  margin-top: 7px;
}

.date-line-detail label {
  display: flex;
  width: 58px;
  flex-direction: column;
  gap: 4px;
}

.date-line-detail label > span {
  color: #5f605a;
  font-family: var(--font-condensed);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.date-line-detail input {
  width: 100%;
  height: 28px;
  padding: 0 7px;
  border: 1px solid rgba(222, 219, 211, 0.12);
  border-radius: 2px;
  background: #10110f;
  color: #c8c5bd;
  outline: none;
}

.date-line-preset {
  color: #72736d;
  font-family: var(--font-condensed);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.switch-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #656660;
  font-family: var(--font-condensed);
  font-size: 9px;
  cursor: pointer;
}

.switch-control i {
  position: relative;
  display: block;
  width: 27px;
  height: 15px;
  border: 1px solid #4f504b;
  border-radius: 8px;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.switch-control i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777871;
  content: "";
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.switch-control[aria-checked="true"] {
  color: #a7a59e;
}

.switch-control[aria-checked="true"] i {
  border-color: #8ca37f;
  background: rgba(140, 163, 127, 0.08);
}

.switch-control[aria-checked="true"] i::after {
  transform: translateX(12px);
  background: #8ca37f;
}

.switch-control:hover,
.switch-control:focus-visible {
  color: #c2bfb7;
  outline: none;
}

.switch-control:focus-visible i {
  border-color: #b6b3aa;
  box-shadow: 0 0 0 2px rgba(182, 179, 170, 0.1);
}

.layer-control {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.layer-control-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.layer-control-heading strong {
  color: #aaa8a1;
  font-size: 11px;
  font-weight: 600;
}

.layer-control-heading small {
  color: #595a54;
  font-size: 8px;
  line-height: 1.4;
}

.layer-switches {
  border-top: 1px solid rgba(222, 219, 211, 0.1);
}

.layer-switch-row {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(222, 219, 211, 0.1);
}

.layer-switch-row > span {
  color: #85857e;
  font-size: 9px;
}

.layer-switch-row .switch-control span {
  min-width: 32px;
}

.type-control.is-hidden-layer > input,
.legend-control.is-hidden-layer .legend-mode-options,
.source-note-control.is-hidden-layer > .control-label,
.source-note-control.is-hidden-layer > textarea,
.source-note-control.is-hidden-layer > .type-range,
.date-lines-control.is-hidden-layer > :not(.date-lines-intro) {
  opacity: 0.42;
}

.layer-switch-row.is-hidden-layer > span {
  color: #51524d;
}

.density-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.density-options {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(222, 219, 211, 0.14);
  border-radius: 2px;
}

.density-options button {
  min-height: 27px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid rgba(222, 219, 211, 0.1);
  background: transparent;
  color: #656660;
  font-family: var(--font-condensed);
  font-size: 8px;
  cursor: pointer;
}

.density-options button:last-child {
  border-right: 0;
}

.density-options button:hover {
  color: #aaa8a1;
}

.density-options button.active {
  background: #292a26;
  color: #cac7bf;
}

.legend-control {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}

.source-note-control {
  display: flex;
  flex-direction: column;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}

.source-note-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.source-note-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.source-note-heading strong {
  color: #aaa8a1;
  font-size: 11px;
  font-weight: 600;
}

.source-note-heading small {
  color: #595a54;
  font-size: 8px;
}

.legend-control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legend-control-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.legend-control strong {
  color: #aaa8a1;
  font-size: 11px;
  font-weight: 600;
}

.legend-control small {
  color: #595a54;
  font-size: 8px;
}

.legend-mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule-strong);
}

.legend-mode-options button {
  min-height: 30px;
  border: 0;
  border-right: 1px solid var(--rule-strong);
  background: transparent;
  color: #656660;
  font-family: var(--font-condensed);
  font-size: 9px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.legend-mode-options button:last-child {
  border-right: 0;
}

.legend-mode-options button:hover {
  color: #aaa8a1;
}

.legend-mode-options button.active {
  background: #292a26;
  color: #cac7bf;
}

.reset-layout {
  width: 100%;
  margin-top: 10px;
}

.generation-state {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  margin-top: 24px;
}

.state-mark {
  position: relative;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 1px solid #777970;
  border-radius: 50%;
}

.generation-state.ready .state-mark {
  border-color: #8ca37f;
  background: #8ca37f;
  box-shadow: 0 0 0 4px rgba(140, 163, 127, 0.08);
}

.generation-state.running .state-mark {
  border-color: var(--cold-anomaly);
  animation: pulse 1.3s ease-in-out infinite;
}

.generation-state.failed .state-mark {
  border-color: var(--hot-anomaly);
  background: var(--hot-anomaly);
}

.generation-state strong {
  display: block;
  color: #a9a79f;
  font-size: 12px;
  font-weight: 600;
}

.generation-state p {
  margin: 3px 0 0;
  color: #60615c;
  font-size: 11px;
  line-height: 1.45;
}

.generate-button {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 15px 0 17px;
  border: 1px solid #8c8b84;
  border-radius: 2px;
  background: #cecbc3;
  color: #171815;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.generate-button:hover {
  background: #e0ddd5;
}

.generate-button:active {
  transform: translateY(1px);
}

.generate-button:disabled {
  cursor: progress;
  opacity: 0.48;
}

.generate-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.cache-note {
  margin: 10px 0 0;
  color: #555650;
  font-size: 10px;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

.order-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.order-modal[hidden] {
  display: none;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 7, 0.76);
  backdrop-filter: blur(5px);
}

.order-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(222, 219, 211, 0.2);
  border-radius: 2px;
  background: var(--cotton-black);
  color: #bdbab2;
}

.order-workbench {
  margin: 0;
  padding: 0;
}

.order-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  background: rgba(17, 18, 16, 0.97);
}

.order-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.order-heading span,
.shipping-heading strong,
.product-controls label > span,
.shipping-fields label > span {
  color: #555650;
  font-family: var(--font-condensed);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.order-heading h2 {
  margin: 0;
  color: #d0cdc5;
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.order-heading small {
  max-width: 118px;
  color: #686963;
  font-family: var(--font-condensed);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: right;
}

.order-heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(222, 219, 211, 0.18);
  border-radius: 2px;
  background: transparent;
  color: #aaa8a1;
  cursor: pointer;
}

.order-modal-close:hover,
.order-modal-close:focus-visible {
  border-color: rgba(222, 219, 211, 0.42);
  color: #d0cdc5;
  outline: none;
}

.order-modal-close svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.order-workbench.available .order-heading small {
  color: #8ca37f;
}

.order-workbench.quote-only .order-heading small {
  color: #85857e;
}

.order-workbench.failed .order-heading small {
  color: #a77772;
}

#printful-order-form {
  padding: 0 24px 24px;
}

#printful-order-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#printful-order-form fieldset:disabled {
  opacity: 0.48;
}

.order-step {
  padding-top: 24px;
}

.checkout-details {
  margin-top: 24px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--rule) !important;
}

.checkout-details[hidden] {
  display: none;
}

.order-step-heading {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.order-step-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(222, 219, 211, 0.18);
  color: #777770;
  font-family: var(--font-condensed);
  font-size: 9px;
  font-weight: 700;
}

.order-step-heading h3 {
  margin: 0;
  color: #c8c5bd;
  font-family: var(--font-condensed);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.order-step-heading p {
  margin: 3px 0 0;
  color: #62635d;
  font-size: 10px;
  line-height: 1.45;
}

.order-workbench.has-quote .order-step-quote .order-step-heading > span {
  border-color: rgba(140, 163, 127, 0.55);
  color: #8ca37f;
}

.product-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 68px;
  gap: 7px;
}

.product-controls label,
.shipping-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.product-controls select,
.product-controls input,
.shipping-fields input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(222, 219, 211, 0.16);
  border-radius: 2px;
  background: var(--raised-black);
  color: #c8c5bd;
  font-family: var(--font-condensed);
  font-size: 12px;
  outline: none;
}

.product-controls select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777770 50%),
    linear-gradient(135deg, #777770 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 15px,
    calc(100% - 8px) 15px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.product-controls select:focus,
.product-controls input:focus,
.shipping-fields input:focus {
  border-color: rgba(222, 219, 211, 0.38);
}

.shipping-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}

.shipping-heading strong {
  color: #aaa8a1;
  font-size: 9px;
}

.shipping-heading span {
  color: #595a54;
  font-size: 9px;
  line-height: 1.45;
}

.shipping-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  margin-top: 12px;
}

.shipping-fields .wide {
  grid-column: 1 / -1;
}

.shipping-fields input[readonly] {
  color: #6e6f69;
  cursor: default;
}

.quote-order,
.checkout-order {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 13px;
  border: 1px solid rgba(222, 219, 211, 0.28);
  border-radius: 2px;
  background: transparent;
  color: #b8b5ad;
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.quote-order svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.quote-order:hover:not(:disabled) {
  border-color: rgba(222, 219, 211, 0.5);
  color: #d1cec6;
}

.order-quote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.order-quote > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.order-quote span {
  color: #62635d;
  font-size: 8px;
}

.order-quote strong {
  overflow: hidden;
  color: #aaa8a1;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-quote .quote-total {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px solid rgba(222, 219, 211, 0.08);
}

.order-quote .quote-total strong {
  color: #d0cdc5;
  font-size: 14px;
}

.order-quote p {
  grid-column: 1 / -1;
  margin: 0;
  color: #5d5e58;
  font-size: 9px;
  line-height: 1.45;
}

.order-quote.loading {
  opacity: 0.48;
}

.order-quote.failed p {
  color: #a77772;
}

.checkout-order {
  justify-content: center;
  margin-top: 13px;
  border-color: #cecbc3;
  background: #cecbc3;
  color: #171815;
  font-size: 12px;
}

.checkout-order:hover:not(:disabled) {
  background: #e0ddd5;
}

.quote-order:disabled,
.checkout-order:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.checkout-note {
  margin: 9px 0 0;
  color: #5d5e58;
  font-size: 9px;
  line-height: 1.45;
}

.order-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: var(--raised-black);
}

.order-modal-footer > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.order-modal-footer span {
  color: #96948d;
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 600;
}

.order-modal-footer small {
  color: #555650;
  font-size: 9px;
  line-height: 1.35;
}

.order-modal-footer a {
  display: inline-flex;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(222, 219, 211, 0.22);
  border-radius: 2px;
  color: #aaa8a1;
  font-family: var(--font-condensed);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.order-modal-footer a:hover,
.order-modal-footer a:focus-visible {
  border-color: rgba(222, 219, 211, 0.45);
  color: #d0cdc5;
  outline: none;
}

.order-modal-footer svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.order-workbench.test-payment .checkout-note {
  padding-left: 9px;
  border-left: 2px solid #8ca37f;
  color: #85857e;
}

.order-workbench.test-payment .checkout-order {
  border-color: #aeb7a8;
  background: #aeb7a8;
}

.preview-studio {
  display: grid;
  min-width: 0;
  grid-template-rows: 56px minmax(0, 1fr) 72px;
  background: var(--paper);
  color: var(--ink);
}

.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(32, 33, 31, 0.15);
}

.view-switch {
  display: flex;
  gap: 22px;
  height: 100%;
}

.birthday-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(32, 33, 31, 0.56);
  font-family: var(--font-condensed);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.birthday-indicator[hidden] {
  display: none;
}

.birthday-indicator i {
  width: 1px;
  height: 18px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(32, 33, 31, 0.7) 0 2px,
    transparent 2px 4px
  );
}

.birthday-indicator span {
  color: rgba(32, 33, 31, 0.82);
  font-weight: 700;
}

.birthday-indicator strong {
  font-size: inherit;
  font-weight: 500;
}

.view-switch button {
  position: relative;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: rgba(32, 33, 31, 0.52);
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.view-switch button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.view-switch button.active {
  color: var(--ink);
}

.view-switch button.active::after {
  background: var(--ink);
}

.fabric-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fabric-switch > span {
  margin-right: 3px;
  color: rgba(32, 33, 31, 0.46);
  font-family: var(--font-condensed);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.fabric {
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid rgba(32, 33, 31, 0.22);
  border-radius: 50%;
  background: #1b1c1a;
  cursor: pointer;
}

.fabric:nth-of-type(2) {
  background: #080908;
}

.fabric.light {
  background: #c9c3b7;
}

.fabric.active {
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 3px rgba(32, 33, 31, 0.65);
}

.stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(32, 33, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 31, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.viewport-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}

.viewport-hint {
  color: rgba(32, 33, 31, 0.4);
  font-family: var(--font-condensed);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 150ms ease;
}

.stage.zoom-active .viewport-hint {
  color: rgba(32, 33, 31, 0.62);
}

.stage[data-detail-status="loading"] .viewport-hint {
  color: rgba(32, 33, 31, 0.72);
}

.stage[data-detail-status="ready"] .viewport-hint {
  color: #52664d;
}

.stage[data-detail-status="error"] .viewport-hint {
  color: #83554e;
}

.stage.zoom-active {
  touch-action: none;
}

.viewport-controls {
  display: grid;
  overflow: hidden;
  grid-template-columns: 34px 50px 34px 34px;
  height: 34px;
  border: 1px solid rgba(32, 33, 31, 0.24);
  background: rgba(215, 212, 204, 0.94);
  pointer-events: auto;
}

.viewport-controls button,
.viewport-controls output {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid rgba(32, 33, 31, 0.16);
  background: transparent;
  color: rgba(32, 33, 31, 0.72);
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
}

.viewport-controls output {
  font-size: 9px;
  letter-spacing: 0.04em;
}

.viewport-controls button {
  padding: 0;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.viewport-controls button:hover,
.viewport-controls button:focus-visible {
  background: rgba(32, 33, 31, 0.08);
  color: var(--ink);
  outline: none;
}

.viewport-controls button:disabled {
  color: rgba(32, 33, 31, 0.22);
  cursor: default;
}

.viewport-controls button:disabled:hover {
  background: transparent;
}

.viewport-controls .zoom-fit {
  border-right: 0;
}

.viewport-controls svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.4;
}

.shirt-view,
.poster-view {
  width: 100%;
  height: 100%;
}

.shirt-view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px 44px;
}

#shirt-svg {
  display: block;
  flex: 0 0 auto;
  width: min(78%, 680px);
  height: auto;
  max-height: calc(100% - 8px);
  aspect-ratio: 880 / 930;
  transform-origin: center;
  transition: transform 150ms ease;
}

.garment-label {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  display: flex;
  width: min(78%, 620px);
  justify-content: space-between;
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid rgba(32, 33, 31, 0.18);
  color: rgba(32, 33, 31, 0.54);
  font-family: var(--font-condensed);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.garment-label b {
  font-weight: 700;
}

.poster-view {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vh, 46px);
}

.poster-view[hidden],
.shirt-view[hidden] {
  display: none;
}

.poster-view > svg {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  background: #090a0a;
  box-shadow: 0 20px 50px rgba(33, 34, 31, 0.2);
  transform-origin: center;
  transition: transform 150ms ease;
}

.stage.zoom-active .shirt-view,
.stage.zoom-active .poster-view {
  cursor: grab;
}

.stage.viewport-panning .shirt-view,
.stage.viewport-panning .poster-view {
  cursor: grabbing;
}

.stage.viewport-panning #shirt-svg,
.stage.viewport-panning .poster-view > svg {
  transition: none;
  will-change: transform;
}

.live-poster-type {
  fill: #97958e;
  font-family: var(--font-condensed);
  text-anchor: middle;
  dominant-baseline: middle;
}

.live-title {
  font-weight: 400;
}

.live-footer {
  font-weight: 500;
}

.live-source {
  fill: #77766f;
  font-weight: 400;
  text-anchor: start;
}

.draggable-block {
  outline: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.draggable-block.dragging {
  cursor: grabbing;
}

.drag-hitbox {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  stroke-dasharray: 9 7;
  vector-effect: non-scaling-stroke;
}

.draggable-block:hover > .drag-hitbox,
.draggable-block:focus > .drag-hitbox,
.draggable-block.dragging > .drag-hitbox {
  stroke: rgba(151, 149, 142, 0.7);
}

.edit-hint {
  fill: #77766f;
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.32;
  pointer-events: none;
  text-anchor: start;
}

.draggable-block:hover > .edit-hint,
.draggable-block:focus > .edit-hint,
.draggable-block.editing > .edit-hint {
  fill: #b1aea6;
  opacity: 1;
}

.inline-editor {
  overflow: visible;
}

.inline-text-input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  caret-color: #d1cec6;
  color: #97958e;
  font-family: var(--font-condensed);
  font-weight: 400;
  letter-spacing: 0;
  outline: none;
  text-align: center;
  text-transform: uppercase;
}

.inline-text-input::selection {
  background: rgba(151, 149, 142, 0.34);
}

.inline-text-input:focus-visible {
  outline: none;
  outline-offset: 0;
}

textarea.inline-text-input {
  overflow: hidden;
  resize: none;
  color: #77766f;
  line-height: 1.15;
  text-align: left;
  white-space: pre-wrap;
}

.draggable-block.editing > .live-poster-type {
  opacity: 0;
}

.draggable-block.editing > .drag-hitbox {
  stroke: transparent;
}

.draggable-block.editing > .edit-hint {
  opacity: 0;
}

.legend-hitbox {
  fill: transparent;
  pointer-events: all;
}

.date-caption-block:hover > .date-caption-box,
.date-caption-block:focus > .date-caption-box,
.date-caption-block.dragging > .date-caption-box {
  stroke: #b8b5ad;
  stroke-width: 2;
}

.legend-row {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  dominant-baseline: middle;
  pointer-events: none;
}

.legend-cold {
  fill: #4b91ef;
}

.legend-hot {
  fill: #ee655d;
}

.legend-note {
  fill: #77766f;
  font-weight: 400;
}

.legend-gradient-title,
.legend-gradient-label {
  fill: #77766f;
  font-family: var(--font-condensed);
  font-size: 12.5px;
  font-weight: 500;
  dominant-baseline: middle;
  pointer-events: none;
}

.legend-gradient-label {
  fill: #97958e;
}

.legend-gradient-bar {
  pointer-events: none;
}

.date-caption-box {
  fill: rgba(9, 10, 10, 0.96);
  stroke: rgba(151, 149, 142, 0.58);
  stroke-width: 1;
}

.date-caption-text {
  fill: #97958e;
  font-family: var(--font-condensed);
  font-size: 12.5px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(215, 212, 204, 0.9);
  backdrop-filter: blur(5px);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-overlay strong {
  margin-top: 30px;
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.loading-overlay span {
  margin-top: 6px;
  color: rgba(32, 33, 31, 0.55);
  font-size: 11px;
}

.scan-lines {
  position: relative;
  width: 190px;
  height: 85px;
}

.scan-lines i {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.38;
  animation: ridge-scan 1.8s ease-in-out infinite alternate;
}

.scan-lines i:nth-child(1) {
  top: 6px;
}

.scan-lines i:nth-child(2) {
  top: 18px;
  animation-delay: -0.22s;
}

.scan-lines i:nth-child(3) {
  top: 30px;
  animation-delay: -0.44s;
}

.scan-lines i:nth-child(4) {
  top: 42px;
  animation-delay: -0.66s;
}

.scan-lines i:nth-child(5) {
  top: 54px;
  animation-delay: -0.88s;
}

.scan-lines i:nth-child(6) {
  top: 66px;
  animation-delay: -1.1s;
}

.scan-lines i:nth-child(7) {
  top: 78px;
  animation-delay: -1.32s;
}

.download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-top: 1px solid rgba(32, 33, 31, 0.15);
  background: #cecbc3;
}

.download-bar > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.download-bar span {
  color: rgba(32, 33, 31, 0.45);
  font-family: var(--font-condensed);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.download-bar strong {
  overflow: hidden;
  max-width: 340px;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-actions {
  display: flex;
  gap: 8px;
}

.download-actions button,
.download-actions a {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(32, 33, 31, 0.24);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.download-actions .order-cta {
  border-color: var(--ink);
  background: var(--ink);
  color: #d9d6ce;
}

.download-actions button:hover {
  background: rgba(32, 33, 31, 0.07);
}

.download-actions .order-cta:hover {
  background: #30312e;
}

.download-actions svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-strip {
  display: grid;
  min-height: 50px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  background: #0e0f0d;
}

.method-strip div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid var(--rule);
  color: #62635e;
  font-size: 9px;
  line-height: 1.3;
}

.method-strip div:last-child {
  border-right: 0;
}

.method-strip span {
  color: #98968f;
  font-family: var(--font-condensed);
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(222, 219, 211, 0.18);
  background: #20211e;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  color: #d5d2ca;
  font-size: 12px;
  line-height: 1.45;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 139, 255, 0.34);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(61, 139, 255, 0);
  }
}

@keyframes ridge-scan {
  0% {
    transform: translateX(-2px) scaleX(0.78);
  }
  55% {
    transform: translateX(7px) scaleX(1);
  }
  100% {
    transform: translateX(-5px) scaleX(0.9);
  }
}

@media (max-width: 1040px) {
  .atelier {
    grid-template-columns: 360px minmax(500px, 1fr);
  }

  .control-room {
    padding-right: 28px;
    padding-left: 28px;
  }

  .specimen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specimen-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 56px;
    padding: 0 18px;
  }

  .source-separator,
  #station-count {
    display: none;
  }

  .atelier {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .control-room {
    overflow: visible;
    padding: 34px 20px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .intro h1 {
    max-width: 610px;
    font-size: clamp(42px, 11vw, 62px);
  }

  .lede {
    max-width: 600px;
  }

  .station-picker {
    margin-top: 34px;
  }

  .preview-studio {
    min-height: 760px;
    grid-template-rows: 54px minmax(570px, 1fr) auto;
  }

  .birthday-indicator {
    margin-left: auto;
  }

  .download-bar {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions button,
  .download-actions a {
    flex: 1;
    justify-content: center;
  }

  .order-modal {
    padding: 12px;
  }

  .order-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .method-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-strip div {
    min-height: 46px;
  }

  .method-strip div:nth-child(2) {
    border-right: 0;
  }

  .method-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 13px;
  }

  .source-status {
    font-size: 10px;
  }

  .intro h1 {
    font-size: 44px;
  }

  .specimen-main {
    grid-template-columns: 56px 1fr;
  }

  .specimen-main small {
    display: none;
  }

  .preview-studio {
    min-height: 680px;
    grid-template-rows: 54px minmax(500px, 1fr) auto;
  }

  .studio-toolbar {
    padding: 0 16px;
  }

  .viewport-tools {
    top: 8px;
    right: 8px;
  }

  .viewport-hint {
    display: none;
  }

  .birthday-indicator strong {
    display: none;
  }

  .fabric-switch > span {
    display: none;
  }

  .shirt-view {
    padding: 4px 6px 34px;
  }

  #shirt-svg {
    width: 100%;
  }

  .garment-label {
    width: 90%;
    font-size: 8px;
  }

  .download-actions {
    flex-direction: column;
  }

  .order-modal {
    padding: 0;
  }

  .order-dialog {
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .order-heading {
    padding: 16px;
  }

  .order-heading h2 {
    font-size: 20px;
  }

  .order-heading small {
    display: none;
  }

  #printful-order-form {
    padding: 0 16px 20px;
  }

  .order-modal-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .order-modal-footer a {
    width: 100%;
    justify-content: center;
  }

  .method-strip {
    grid-template-columns: 1fr;
  }

  .method-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
