/* PROGRESSBAR.TODAY — editor-only interface. Wallpaper render styles remain in styles.css. */

:root {
  --paper: #f2eddf;
  --paper-deep: #e4dcc7;
  --paper-light: #fffaf0;
  --ink: #171713;
  --muted: #706a5d;
  --orange: #ff5b35;
  --acid: #d7f23f;
  --aqua: #75d7d0;
  --blue: #3157ff;
  --white: #fffdf7;
  --line: 2px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { height: auto; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  height: auto;
  margin: 0;
  display: block;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue) !important;
  outline-offset: 3px;
}

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-160%); background: var(--acid); color: var(--ink); border: var(--line); padding: 10px 14px; font-size: 12px; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* Global masthead */

.site-header {
  position: relative;
  z-index: 100;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: var(--paper);
  border-bottom: var(--line);
}

.site-brand { display: flex; align-items: center; gap: 12px; width: max-content; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-content: center; gap: 3px; background: var(--orange); border: var(--line); box-shadow: var(--shadow-sm); transform: rotate(-3deg); transition: transform .2s var(--ease); }
.site-brand:hover .brand-mark { transform: rotate(3deg); }
.brand-mark i { display: block; width: 17px; height: 3px; background: var(--ink); }
.wordmark { font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -.045em; }
.brand-edition { padding-left: 12px; border-left: 1px solid var(--ink); color: var(--muted); font-size: 8px; font-weight: 800; line-height: 1.25; letter-spacing: .12em; max-width: 96px; }
.site-tagline { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-size: 17px; font-style: italic; }

.license-pill { justify-self: end; display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--acid); border: var(--line); box-shadow: var(--shadow-sm); font-size: 10px; font-weight: 900; letter-spacing: .08em; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.license-pill:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.license-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.license-pill.is-paid { background: var(--aqua); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); border: 1px solid var(--ink); }
.license-pill.is-paid .status-dot { background: var(--blue); }

/* Two-pane workspace */

.workspace { height: calc(100vh - 70px); display: grid; grid-template-columns: 430px minmax(0, 1fr); }

.panel {
  width: auto;
  height: 100%;
  padding: 0;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-right: var(--line);
  scrollbar-color: var(--ink) var(--paper-deep);
  scrollbar-width: thin;
}

.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-track { background: var(--paper-deep); border-left: 1px solid var(--ink); }
.panel::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 0; }

.panel-intro { position: relative; padding: 36px 30px 32px; overflow: hidden; border-bottom: var(--line); }
.panel-intro::after { content: ''; position: absolute; right: -36px; bottom: -47px; width: 130px; height: 130px; border: 18px solid var(--orange); border-radius: 50%; opacity: .95; }
.eyebrow { margin: 0 0 11px; color: var(--muted); font-size: 9px; font-weight: 900; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.panel .panel-intro h1 { position: relative; z-index: 1; margin: 0; color: var(--ink); font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(44px, 3.8vw, 56px); font-weight: 400; line-height: .86; letter-spacing: -.045em; }
.panel-intro > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 33ch; margin: 22px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.local-save { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; background: var(--white); border: 1px solid var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.local-save span { color: var(--blue); font-size: 10px; }

.editor-section { padding: 28px 30px 30px; border-bottom: var(--line); }
.panel > section.editor-section + section.editor-section { padding-top: 28px; }
.section-heading { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; margin-bottom: 24px; }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; background: var(--acid); border: var(--line); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 900; }
.editor-section:nth-of-type(2) .step-number { background: var(--aqua); }
.editor-section:nth-of-type(3) .step-number { background: var(--orange); }
.editor-section:nth-of-type(4) .step-number { background: var(--blue); color: var(--white); }
.section-heading h2 { margin: 1px 0 3px; font-size: 18px; font-weight: 900; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.field { margin: 0 0 20px; }
.field:last-child { margin-bottom: 0; }
.panel .field label,
.panel .field > label,
.label-row label,
.field-label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 9px; font-weight: 900; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-note { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.control-help { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }

.field-row { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 8px; align-items: end; margin-bottom: 20px; }
.field-row .field { min-width: 0; margin: 0; }
.date-arrow { display: grid; place-items: center; height: 41px; font-size: 17px; font-weight: 900; }

.panel input[type="date"],
.panel input[type="text"],
.panel select,
.modal-card input[type="text"] {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper-light);
  border: var(--line);
  border-radius: 0;
  box-shadow: 2px 2px 0 var(--paper-deep);
  font: 700 12px 'Inter', sans-serif;
  color-scheme: light;
  transition: box-shadow .16s var(--ease), transform .16s var(--ease), background .16s;
}
.panel input[type="date"]:hover,
.panel input[type="text"]:hover,
.panel select:hover { background: #fff; }
.panel input[type="date"]:focus,
.panel input[type="text"]:focus,
.panel select:focus { outline: none; border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
.panel select { appearance: none; cursor: pointer; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* Background and upload controls */

.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; overflow: visible; }
.stock-grid:empty { min-height: 80px; border: 1px dashed var(--muted); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(23,23,19,.04) 8px 16px); }
.stock-thumb { position: relative; width: auto; height: auto; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: var(--paper-deep); border: var(--line); border-radius: 0; cursor: pointer; transition: transform .17s var(--ease), box-shadow .17s var(--ease); }
.stock-thumb::after { content: ''; position: absolute; inset: 0; border: 3px solid transparent; pointer-events: none; }
.stock-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.03); }
.stock-thumb:hover { transform: translate(-2px, -2px); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.stock-thumb.active { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.stock-thumb.active::after { border-color: var(--acid); }
.stock-thumb.active::before { content: '✓'; position: absolute; top: 3px; right: 3px; z-index: 2; width: 18px; height: 18px; display: grid; place-items: center; background: var(--acid); border: 1px solid var(--ink); font-size: 10px; font-weight: 900; }

.custom-photo-field { padding-top: 2px; }
.dropzone { position: relative; min-height: 82px; display: flex; align-items: stretch; justify-content: stretch; overflow: hidden; background: var(--paper-light); border: 2px dashed var(--ink); border-radius: 0; cursor: pointer; transition: background .18s, box-shadow .18s, transform .18s; }
.dropzone:hover, .dropzone.drag, .dropzone:focus-visible { background: var(--acid); border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.drop-hint { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; gap: 11px; align-items: center; padding: 13px; color: var(--ink); text-align: left; line-height: 1.3; }
.upload-symbol { width: 36px; height: 36px; display: grid; place-items: center; background: var(--orange); border: 1px solid var(--ink); font-size: 23px; font-weight: 500; line-height: 1; }
.upload-copy { display: flex; flex-direction: column; gap: 3px; }
.upload-copy strong { font-size: 11px; font-weight: 900; }
.upload-copy small { color: var(--muted); font-size: 8px; }
.pro-stamp { align-self: start; padding: 4px 5px; background: var(--ink); color: var(--white); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.thumb { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }

/* Style selectors */

.design-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; overflow: visible; }
.design-option { position: relative; min-width: 0; padding: 4px 4px 7px; display: grid; grid-template-columns: 1fr auto; gap: 5px 3px; align-items: center; background: var(--paper-light); border: var(--line); border-radius: 0; cursor: pointer; transition: transform .17s var(--ease), box-shadow .17s var(--ease), background .17s; }
.design-option:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.design-option.active { background: var(--acid); border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.design-option img { grid-column: 1 / -1; width: 100%; aspect-ratio: 9 / 13; display: block; object-fit: cover; border: 1px solid var(--ink); border-radius: 0; }
.design-option span { min-width: 0; overflow: hidden; color: var(--ink); font-size: 9px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.design-option small { color: var(--muted); font-size: 7px; font-weight: 900; }

.label-val { min-width: 34px; padding: 3px 5px; color: var(--white); background: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-align: center; }
input[type="range"] { width: 100%; height: 22px; margin: 0; accent-color: var(--orange); cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--paper-deep); border: 1px solid var(--ink); }
input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; appearance: none; -webkit-appearance: none; background: var(--orange); border: var(--line); border-radius: 0; box-shadow: 2px 2px 0 var(--ink); }
input[type="range"]::-moz-range-track { height: 5px; background: var(--paper-deep); border: 1px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--orange); border: var(--line); border-radius: 0; box-shadow: 2px 2px 0 var(--ink); }

.swatches { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.swatch, .custom-swatch { position: relative; width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; margin: 0; padding: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.swatch:hover, .custom-swatch:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.swatch.active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); transform: scale(.88); }
.swatch.active::after { content: ''; width: 7px; height: 7px; background: var(--ink); border: 1px solid var(--white); border-radius: 50%; }
.swatch-color { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.custom-swatch span { font-size: 18px; line-height: 1; }

.error { margin: -9px 0 18px; padding: 9px 10px; color: #781d0f; background: #ffb4a3; border: 1px solid #781d0f; font-size: 10px; font-weight: 800; line-height: 1.4; }
.error.success { color: #14532d; background: #bbf7d0; border-color: #14532d; }

/* Sticky result and actions */

.action-dock { position: sticky; bottom: 0; z-index: 10; padding: 22px 30px 24px; background: var(--paper-deep); border-top: var(--line); box-shadow: 0 -12px 26px rgba(23, 23, 19, .1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 14px; border: var(--line); }
.stat { min-width: 0; padding: 10px 5px 9px; background: var(--paper-light); border: 0; border-right: 1px solid var(--ink); border-radius: 0; text-align: center; }
.stat:last-child { border-right: 0; }
.stat.standout { background: var(--acid); }
.stat-num { display: block; overflow: hidden; color: var(--ink); font-family: 'DM Serif Display', Georgia, serif; font-size: 23px; font-weight: 400; line-height: 1; text-overflow: ellipsis; }
.stat-label { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.btn-primary, .btn-secondary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 12px 15px; border: var(--line); border-radius: 0; font: 900 11px 'Inter', sans-serif; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #ff6c48; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-secondary { margin-top: 10px; background: var(--paper-light); color: var(--ink); box-shadow: none; }
.btn-secondary:hover { background: var(--aqua); border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.action-note { margin: 11px 0 0; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .04em; text-align: center; text-transform: uppercase; }

/* Live preview */

.stage { position: relative; min-width: 0; height: 100%; padding: 0; display: grid; grid-template-rows: 66px minmax(0, 1fr) 94px; overflow: hidden; background: var(--aqua); }
.preview-toolbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 26px; background: var(--paper-light); border-bottom: var(--line); }
.preview-toolbar .eyebrow { margin-bottom: 2px; }
.preview-toolbar h2 { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.preview-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; background: var(--ink); color: var(--white); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.preview-status span { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 3px rgba(215,242,63,.18); animation: livePulse 2s infinite; }
@keyframes livePulse { 50% { opacity: .4; } }

.preview-canvas { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; background: var(--aqua); isolation: isolate; }
.preview-canvas::before { content: ''; position: absolute; z-index: -3; top: -21%; left: -8%; width: 46%; aspect-ratio: 1; background: var(--orange); border: var(--line); transform: rotate(22deg); }
.preview-canvas::after { content: ''; position: absolute; z-index: -3; right: -12%; bottom: -30%; width: 46%; aspect-ratio: 1; background: var(--acid); border: var(--line); border-radius: 50%; }
.canvas-grid { position: absolute; inset: 0; z-index: -2; opacity: .2; background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 48%, #000); }
.canvas-index { position: absolute; z-index: -1; color: rgba(23,23,19,.12); font-weight: 900; line-height: .75; letter-spacing: -.09em; pointer-events: none; }
.index-one { top: 25px; right: 34px; font-size: clamp(90px, 12vw, 180px); }
.index-two { left: 28px; bottom: 24px; font-size: clamp(42px, 6vw, 90px); }
.orbit { position: absolute; z-index: -1; border: 2px solid var(--ink); border-radius: 50%; opacity: .35; }
.orbit-one { width: 36px; height: 36px; top: 16%; left: 13%; background: var(--paper-light); box-shadow: var(--shadow-sm); }
.orbit-two { width: 17px; height: 17px; bottom: 23%; right: 18%; background: var(--blue); }

.stage .phone-shell { position: relative; z-index: 2; width: min(350px, 35vw, calc((100vh - 250px) / 2.17)); max-width: 70%; }
.stage .phone { box-shadow: 9px 9px 0 rgba(23,23,19,.9), 0 25px 60px rgba(23,23,19,.24), inset 0 0 0 1px #333b3d; transition: aspect-ratio .3s var(--ease); }
.stage .screen { background: linear-gradient(160deg, #e8cf9e 0 28%, #75a79d 28% 68%, #345951 68%); }
.stage .wallpaper { animation: photoIn .35s var(--ease); }
@keyframes photoIn { from { opacity: .25; transform: scale(1.025); } }

.preview-ticket { position: absolute; z-index: 3; right: clamp(18px, 3vw, 46px); bottom: clamp(14px, 3vh, 38px); width: min(190px, 22vw); padding: 15px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-light); border: var(--line); box-shadow: var(--shadow); transform: rotate(2deg); }
.ticket-tag { align-self: flex-start; padding: 3px 5px; background: var(--blue); color: var(--white); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.preview-ticket strong { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(17px, 1.7vw, 25px); font-weight: 400; line-height: .95; }
.preview-ticket small { color: var(--muted); font-size: 8px; line-height: 1.45; }

.preview-footer { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(130px, .8fr); background: var(--ink); color: var(--white); border-top: var(--line); }
.preview-footer > div { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0 17px; border-right: 1px solid rgba(255,255,255,.23); }
.preview-footer > div > span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ink); background: var(--acid); border: 1px solid var(--white); font-size: 10px; font-weight: 900; }
.preview-footer > div:nth-child(2) > span { background: var(--aqua); }
.preview-footer > div:nth-child(3) > span { background: var(--orange); }
.preview-footer p { margin: 0; font-size: 9px; line-height: 1.45; }
.preview-footer p strong { display: block; font-size: 10px; text-transform: uppercase; }
.preview-footer .footer-note { display: flex; align-items: center; padding: 0 20px; color: var(--acid); font-family: 'DM Serif Display', Georgia, serif; font-size: 15px; font-style: italic; line-height: 1.05; }

/* Modal system */

.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(23,23,19,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(430px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow-y: auto; padding: 34px; background-color: var(--paper); background-image: radial-gradient(rgba(23,23,19,.12) .6px, transparent .6px); background-size: 7px 7px; border: var(--line); border-radius: 0; box-shadow: 10px 10px 0 var(--ink); }
.modal-kicker { margin: 0 0 10px; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.modal-card h2 { max-width: 320px; margin: 0 0 12px; color: var(--ink); font-family: 'DM Serif Display', Georgia, serif; font-size: 34px; font-weight: 400; line-height: .95; letter-spacing: -.035em; }
.modal-sub { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-sub strong { color: var(--ink); }
.modal-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: var(--paper-light); color: var(--ink); border: var(--line); font-size: 23px; line-height: 1; cursor: pointer; transition: background .15s, transform .15s; }
.modal-close:hover { background: var(--orange); color: var(--ink); transform: rotate(4deg); }
.modal-burst { position: absolute; top: 20px; right: 56px; display: grid; place-items: center; width: 48px; height: 48px; background: var(--acid); border: var(--line); box-shadow: var(--shadow-sm); font-size: 10px; font-weight: 900; transform: rotate(8deg); }
.modal-buy { margin-bottom: 22px; }
.modal-divider { position: relative; margin: 24px 0 14px; border-top: 1px solid var(--ink); text-align: center; }
.modal-divider span { position: relative; top: -8px; padding: 0 8px; background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.modal-card input[type="text"] { margin-bottom: 10px; background: var(--paper-light); }
.modal-card .btn-secondary { margin-top: 0; }
.modal-card .error { margin: 12px 0 0; }

.shortcut-card { width: min(490px, 100%); }
.shortcut-url-box { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 0 0 18px; }
.shortcut-url-box input[type="text"] { min-width: 0; margin: 0; font-size: 10px; text-overflow: ellipsis; }
.shortcut-copy { width: auto; min-height: 43px; padding-inline: 17px; border-radius: 0; }
.shortcut-qr { display: block; width: 168px; height: 168px; margin: 0 auto 20px; padding: 8px; background: #fff; border: var(--line); border-radius: 0; box-shadow: var(--shadow-sm); }
.shortcut-steps { margin: 0; padding: 0; list-style: none; counter-reset: shortcut; color: var(--muted); font-size: 11px; line-height: 1.5; }
.shortcut-steps li { position: relative; min-height: 28px; padding: 7px 0 7px 35px; border-bottom: 1px solid rgba(23,23,19,.2); counter-increment: shortcut; }
.shortcut-steps li::before { content: counter(shortcut); position: absolute; left: 0; top: 6px; width: 21px; height: 21px; display: grid; place-items: center; background: var(--aqua); border: 1px solid var(--ink); color: var(--ink); font-size: 9px; font-weight: 900; }
.shortcut-steps strong { color: var(--ink); }

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

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 400px minmax(0, 1fr); }
  .preview-ticket { display: none; }
  .preview-footer { grid-template-columns: repeat(3, 1fr); }
  .preview-footer .footer-note { display: none; }
  .stage .phone-shell { max-width: 76%; }
}

@media (max-width: 880px) {
  body { overflow: auto; }
  .site-header { position: sticky; top: 0; grid-template-columns: 1fr auto; height: 64px; padding: 0 18px; }
  .site-tagline { display: none; }
  .workspace { height: auto; display: flex; flex-direction: column; }
  .stage { order: -1; width: 100%; height: 680px; grid-template-rows: 62px minmax(0, 1fr) 80px; border-bottom: var(--line); }
  .stage .phone-shell { width: min(239px, 56vw); max-width: 65%; }
  .panel { width: 100%; height: auto; overflow: visible; border-right: 0; }
  .panel-intro, .editor-section { padding-inline: clamp(22px, 6vw, 52px); }
  .panel .panel-intro h1 { font-size: clamp(48px, 12vw, 72px); }
  .panel-intro > p:not(.eyebrow) { font-size: 13px; }
  .action-dock { padding-inline: clamp(22px, 6vw, 52px); }
}

@media (max-width: 600px) {
  .site-header { gap: 10px; padding-inline: 13px; }
  .brand-edition { display: none; }
  .wordmark { font-size: 19px; }
  .license-pill { padding: 8px 9px; font-size: 8px; }
  .panel-intro { padding-top: 30px; }
  .panel .panel-intro h1 { font-size: clamp(46px, 15vw, 65px); }
  .editor-section { padding-top: 25px; padding-bottom: 27px; }
  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .date-arrow { display: none; }
  .design-strip { grid-template-columns: repeat(4, minmax(62px, 1fr)); gap: 5px; }
  .design-option { padding: 3px 3px 6px; }
  .design-option small { display: none; }
  .swatches { gap: 8px; }
  .stage { height: 585px; grid-template-rows: 58px minmax(0, 1fr) 68px; }
  .preview-toolbar { padding-inline: 16px; }
  .preview-toolbar h2 { font-size: 21px; }
  .preview-status { font-size: 7px; }
  .stage .phone-shell { width: min(202px, 62vw); max-width: 68%; }
  .index-one { right: 14px; font-size: 76px; }
  .index-two { left: 12px; bottom: 14px; font-size: 38px; }
  .orbit-one { left: 6%; }
  .preview-footer > div { justify-content: center; padding: 0 6px; }
  .preview-footer > div > span { width: 23px; height: 23px; }
  .preview-footer p { display: none; }
  .modal-card { padding: 30px 22px 24px; }
  .modal-card h2 { font-size: 30px; }
  .modal-burst { display: none; }
}

@media (max-width: 390px) {
  .wordmark { display: none; }
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .design-strip { grid-template-columns: repeat(2, 1fr); }
  .design-option img { aspect-ratio: 16 / 12; object-position: center 65%; }
}
