:root{
  --ink: #12141A;
  --panel: #1B1E26;
  --panel-raised: #232733;
  --paper: #F3EFE6;
  --brass: #C99A4B;
  --brass-bright: #E3B565;
  --text: #EDEAE2;
  --muted: #8A8F9C;
  --line: #2C303B;
  --error: #E0785F;
  --radius: 5px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{ box-sizing: border-box; }

html{ color-scheme: dark; }

body{
  margin:0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button{ font-family: inherit; }

/* ============ HEADER ============ */
.site-header{
  padding: 2.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.header-logo{
  height: clamp(55px, 8vw, 95px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: height 0.2s ease;
}
.wordmark{
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  margin: 0;
}
.hero-badge {
  display: inline-block;
  margin: 0.6rem 0 0.3rem;
  background: rgba(201, 154, 75, 0.1);
  border: 1px solid rgba(201, 154, 75, 0.25);
  color: var(--brass-bright);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.tagline{
  color: var(--muted);
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  max-width: 38rem;
  margin: 0.4rem auto 0;
  padding: 0 1rem;
}


/* ============ LAYOUT ============ */
.workspace{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 2rem;
  align-items: start;
}

.stage-container{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* ============ STAGE ============ */
.stage-panel{
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.25rem;
  min-height: 480px;
  display: flex;
}

.reg-mark{
  position: absolute;
  width: 16px; height: 16px;
  pointer-events: none;
}
.reg-mark::before, .reg-mark::after{
  content: "";
  position: absolute;
  background: var(--line);
}
.reg-mark::before{ width: 100%; height: 1px; top: 50%; }
.reg-mark::after{ height: 100%; width: 1px; left: 50%; }
.reg-tl{ top: 12px; left: 12px; }
.reg-tr{ top: 12px; right: 12px; }
.reg-bl{ bottom: 12px; left: 12px; }
.reg-br{ bottom: 12px; right: 12px; }

.stage{
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* ---- dropzone (photo) ---- */
.dropzone{
  flex: 1;
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease;
  text-align: center;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-dragover{
  border-color: var(--brass);
  background: rgba(201, 154, 75, 0.05);
  outline: none;
}
.dz-icon{ width: 40px; height: 40px; color: var(--brass); margin-bottom: 0.25rem; }
.dz-title{ margin: 0; color: var(--text); font-weight: 600; font-size: 1rem; }
.dz-sub{ margin: 0; font-size: 0.82rem; color: var(--muted); }
.dz-error{
  margin: 0.4rem 0 0;
  color: var(--error);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* small logo dropzone inside the rail */
.dropzone--small{ padding: 1.5rem 1rem; }
.dz-icon--small{ width: 26px; height: 26px; margin-bottom: 0; }
.dz-title--small{ font-size: 0.88rem; }

/* ---- canvas ---- */
.canvas-wrap{
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.canvas-wrap.hidden{ display: none; }
#previewCanvas{
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 3px;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
#previewCanvas:active{ cursor: grabbing; }

.coord-readout{
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(18,20,26,0.85);
  border: 1px solid var(--line);
  color: var(--brass-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.stage-hint{
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,20,26,0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}
.stage-hint.hidden{ display: none; }

.preview-flag{
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  max-width: 65%;
  background: rgba(18,20,26,0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  text-align: right;
  pointer-events: none;
}
.preview-flag span{ color: var(--brass-bright); font-weight: 600; }

/* ============ CONTROL RAIL ============ */
.control-rail{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.4rem;
  transition: opacity 0.15s ease;
}
.step.is-disabled{ opacity: 0.45; pointer-events: none; }

.step-eyebrow{
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  text-transform: uppercase;
}

.step-empty{ margin:0; color: var(--muted); font-size: 0.88rem; }

/* photo step: multi-photo list */
.photo-thumb{
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.photo-name{
  margin: 0 0 0.1rem;
  font-size: 0.82rem;
  word-break: break-all;
}
.photo-dims{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.photo-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  max-height: 260px;
  overflow-y: auto;
  margin: -0.1rem -0.1rem 0.2rem;
  padding: 0.1rem;
}
.photo-item{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
}
.photo-item:hover{ background: var(--panel-raised); }
.photo-item.is-active{
  border-color: var(--brass);
  background: rgba(201,154,75,0.08);
}
.photo-item-info{ flex: 1; min-width: 0; cursor: pointer; }
.photo-count{
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.remove-btn{
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.remove-btn:hover{ border-color: var(--error); color: var(--error); }

.logo-actions{ display: flex; gap: 0.75rem; margin-top: 0.15rem; }
.link-btn--danger:hover{ color: var(--error); }

/* logo step */
.logo-loaded{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-loaded.hidden{ display: none; }
.logo-thumb{
  width: 44px; height: 44px;
  object-fit: contain;
  background: repeating-conic-gradient(#2c303b 0% 25%, #232733 0% 50%) 50% / 10px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: 3px;
  flex-shrink: 0;
}
.logo-name{ margin: 0 0 0.2rem; font-size: 0.85rem; word-break: break-all; }

.link-btn{
  background: none;
  border: none;
  color: var(--brass);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover{ color: var(--brass-bright); }

/* Watermark mode toggle (Image Logo vs Custom Text) */
.wm-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wm-type-toggle label { display: block; cursor: pointer; }
.wm-type-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.wm-type-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-raised);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.wm-pill-icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.wm-type-toggle input:checked + .wm-type-pill {
  border-color: var(--brass);
  background: rgba(201, 154, 75, 0.12);
  color: var(--brass-bright);
}
.wm-type-toggle input:checked + .wm-type-pill .wm-pill-icon {
  color: var(--brass-bright);
}

/* Custom Text Watermark Inputs */
.text-wm-container {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.text-wm-container.hidden { display: none !important; }

.field-label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.text-input, .select-input {
  width: 100%;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.text-input:focus, .select-input:focus {
  outline: none;
  border-color: var(--brass);
}

.select-input option {
  background: var(--panel-raised);
  color: var(--text);
}

/* Color Palette Picker */
.color-presets {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-btn:hover {
  transform: scale(1.1);
}
.color-btn.is-active {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px var(--brass-bright);
}
.custom-color-wrapper {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: conic-gradient(from 0deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.custom-color-wrapper:hover {
  transform: scale(1.1);
}
.custom-color-wrapper.is-active {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px var(--brass-bright);
}
.custom-color-input {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 46px;
  height: 46px;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: none;
}

.field--checkbox {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--brass);
  width: 15px;
  height: 15px;
  cursor: pointer;
}


/* fields */
.field{ margin-bottom: 1.15rem; }
.field:last-of-type{ margin-bottom: 0.9rem; }
.field-label-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}
.field-value{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass-bright);
}
.field-hint{
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--ink);
  cursor: pointer;
  margin-top: -1px;
}
input[type="range"]::-moz-range-thumb{
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--ink);
  cursor: pointer;
}

/* preset grid */
.preset-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.preset-grid button{
  aspect-ratio: 1;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.preset-grid button span{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.15s ease;
}
.preset-grid button:hover{
  border-color: var(--brass);
  background: rgba(201,154,75,0.08);
}
.preset-grid button:hover span{ background: var(--brass-bright); }

/* download format toggle */
.format-toggle{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.format-toggle label{ display: block; cursor: pointer; }
.format-toggle input{
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.format-pill{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-raised);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.format-pill em{
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--muted);
}
.format-toggle input:checked + .format-pill{
  border-color: var(--brass);
  background: rgba(201,154,75,0.1);
}
.format-toggle input:focus-visible + .format-pill{
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* buttons */
.primary-btn{
  width: 100%;
  background: var(--brass);
  color: var(--ink);
  border: none;
  border-radius: 5px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.primary-btn:hover{ background: var(--brass-bright); }
.primary-btn:disabled{ opacity: 0.5; cursor: not-allowed; }

.ghost-btn{
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ghost-btn:hover{ border-color: var(--brass); color: var(--brass-bright); }

/* ============ PRIVACY BANNER ============ */
.privacy-note-bar {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.privacy-note-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(201, 154, 75, 0.05);
  border: 1px solid rgba(201, 154, 75, 0.2);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.privacy-icon {
  width: 18px;
  height: 18px;
  color: var(--brass-bright);
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
.site-footer{
  width: 100%;
  background: var(--panel);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 3.5rem 0 2rem;
}

.footer-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand{
  max-width: 580px;
}

.footer-brand-logo{
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-tagline{
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.footer-app-info{
  text-align: right;
  flex-shrink: 0;
}

.footer-heading{
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-subtext{
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-contact-list,
.footer-contact-list li {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.footer-contact-list a{
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact-list a:hover{
  color: var(--brass-bright);
}

.footer-contact-list span{
  color: var(--muted);
}

/* Footer Bottom Bar */
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.copyright{
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-socials{
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-socials a{
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-socials a:hover{
  color: var(--brass-bright);
  transform: translateY(-2px);
}

.hidden{ display: none !important; }

/* focus visibility */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}

/* ============ RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS ============ */

/* Preset grid active state indicator */
.preset-grid button.is-active {
  border-color: var(--brass);
  background: rgba(201, 154, 75, 0.2);
}
.preset-grid button.is-active span {
  background: var(--brass-bright);
}

/* Tablet & Mobile Screens (<= 900px) */
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
    gap: 1.25rem;
    margin: 1.25rem auto;
  }

  .stage-panel {
    padding: 1.5rem;
    min-height: 380px;
  }

  #previewCanvas {
    max-height: 55vh;
  }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .site-header {
    padding: 1.5rem 1rem 1rem;
  }

  .header-logo {
    height: clamp(45px, 12vw, 65px);
  }

  .workspace {
    padding: 0 0.75rem;
    gap: 1rem;
    margin: 1rem auto;
  }

  .stage-panel {
    padding: 1rem 0.75rem;
    min-height: 320px;
    border-radius: 6px;
  }

  .reg-mark {
    display: none; /* Hide registration corner marks on mobile to maximize canvas space */
  }

  #previewCanvas {
    max-height: 48vh;
  }

  /* Overlay badges adjustment on mobile */
  .coord-readout {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.68rem;
    padding: 0.25rem 0.45rem;
  }

  .preview-flag {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.65rem;
    padding: 0.25rem 0.45rem;
    max-width: 60%;
  }

  .stage-hint {
    bottom: 0.6rem;
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    white-space: normal;
    text-align: center;
    max-width: 90%;
  }

  /* Dropzones */
  .dropzone {
    padding: 2rem 1rem;
  }

  .photo-list {
    grid-template-columns: 1fr;
  }

  .dz-icon {
    width: 32px;
    height: 32px;
  }

  .dz-title {
    font-size: 0.95rem;
  }

  .dz-sub {
    font-size: 0.78rem;
  }

  /* Controls touch targets */
  .step {
    padding: 1rem;
  }

  .preset-grid {
    gap: 0.5rem;
  }

  .preset-grid button {
    min-height: 44px;
  }

  .format-pill {
    padding: 0.65rem 0.5rem;
    min-height: 44px;
  }

  .primary-btn {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .ghost-btn {
    padding: 0.75rem 1rem;
    min-height: 44px;
  }

  /* Touch-friendly range sliders */
  input[type="range"] {
    height: 6px;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8px;
  }

  input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .remove-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .privacy-note-bar {
    padding: 0 0.75rem;
    margin: 1.5rem auto 0;
  }

  .privacy-note-inner {
    font-size: 0.78rem;
    padding: 0.75rem 0.85rem;
    text-align: left;
  }

  .site-footer {
    margin-top: 2rem;
    padding: 2.5rem 0 1.5rem;
  }

  .footer-grid {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .footer-app-info {
    text-align: left;
  }

  .footer-brand-logo {
    height: 34px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }
}

/* Small Mobile Screens (<= 380px) */
@media (max-width: 380px) {
  .site-header {
    padding: 1.25rem 0.5rem 0.85rem;
  }

  .header-logo {
    height: 42px;
  }

  .stage-panel {
    padding: 0.5rem;
    min-height: 260px;
  }

  #previewCanvas {
    max-height: 40vh;
  }
}

