* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  background: #e8e1d7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2f2a26;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* iOS Safari: follows the visible area as toolbars show/hide */
  display: block;
  touch-action: none; /* orbit/pinch go to the 3D view, not page scroll/zoom */
}

.hud-top {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  left: calc(22px + env(safe-area-inset-left));
  right: calc(22px + env(safe-area-inset-right));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

.hud-title-block {
  pointer-events: none;
}

.hud-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2b2520;
}

.hud-subtitle {
  font-size: 12px;
  color: #6c6259;
  margin-top: 3px;
}

.breed-bar {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(255, 252, 248, 0.90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(42, 34, 27, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.breed-btn {
  border: none;
  background: transparent;
  color: #4b423b;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.breed-btn:hover {
  background: rgba(184, 98, 40, 0.12);
  color: #2b2520;
}

.breed-btn.active {
  background: #2f2823;
  color: #fffaf5;
}

.hud-bottom {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(560px, 92vw);
}

.morph-card {
  width: 100%;
  background: rgba(255, 252, 248, 0.90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 12px 18px 14px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(42, 34, 27, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.morph-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.morph-label {
  font-size: 12px;
  font-weight: 700;
  color: #2f2823;
  letter-spacing: 0.01em;
}

.morph-stage {
  font-size: 12px;
  font-weight: 600;
  color: #b45d22;
}

.end-tag {
  border: none;
  background: transparent;
  font-family: inherit;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: #6c6259;
  white-space: nowrap;
  cursor: pointer;
}

.end-tag:hover {
  color: #2b2520;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  /* puppy (warm) to adult (dark) at two thirds, then senior (silver) */
  background: linear-gradient(90deg, #df8b49 0%, #2f2823 66.667%, #aaa49d 100%);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fffaf5;
  border: 3px solid #2f2823;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.12s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fffaf5;
  border: 3px solid #2f2823;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

/* Growth controls while the growth stages are still being built: the whole card
   is dimmed, the slider is replaced by a neutral five-segment progress bar (one
   segment per stage, puppy to adult), and nothing looks draggable. */
.slider-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 22px;
  display: flex;
  align-items: center;
}
/* --thumb is the slider thumb width; it places the Adult tick and label exactly
   under the thumb's centre at value 1 (two thirds of 0..1.5). */
.morph-card {
  --thumb: 18px;
  --adult-pos: calc(var(--thumb) / 2 + (100% - var(--thumb)) * 0.66667);
}
.slider-wrap input[type="range"] {
  position: relative;
  z-index: 1;
}
.adult-tick {
  position: absolute;
  left: var(--adult-pos);
  top: 50%;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  transform: translateY(-50%);
  border-radius: 1px;
  background: #2f2823;
  pointer-events: none;
}
.age-ticks {
  position: relative;
  height: 16px;
  margin-top: 2px;
}
.age-ticks .end-tag {
  position: absolute;
  top: 0;
  line-height: 16px;
}
.age-ticks .tick-puppy { left: 0; }
.age-ticks .tick-adult { left: var(--adult-pos); transform: translateX(-50%); }
.age-ticks .tick-senior { right: 0; }
.stage-progress {
  display: none;
  position: absolute;
  /* the five growth stages span puppy to adult; the senior range needs no build */
  top: 0;
  bottom: 0;
  left: 0;
  right: calc(100% - var(--adult-pos));
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.stage-seg {
  flex: 1 1 0;
  height: 6px;
  border-radius: 999px;
  background: #cfc6bb;
  overflow: hidden;
}
.stage-seg > i {
  display: block;
  height: 100%;
  width: 100%;
  background: #8a7f75;
  border-radius: 999px;
  transform: scaleX(0); /* set from app.js; a transform avoids relayout on each step */
  transform-origin: left center;
}
/* Dimmed with colors rather than opacity: a translucent group over a blurred
   backdrop is costlier to repaint while the dog is being prepared. */
.morph-card.is-preparing {
  background: rgba(234, 228, 220, 0.94);
  cursor: not-allowed;
}
.morph-card.is-preparing .morph-label {
  color: #8f857b;
}
.morph-card.is-preparing .morph-stage {
  color: #6c6259;
}
.morph-card.is-preparing .stage-progress {
  display: flex;
}
.morph-card.is-preparing .adult-tick {
  display: none;
}
.morph-card.is-preparing input[type="range"] {
  visibility: hidden; /* keeps the layout; the progress bar takes its place */
}
.end-tag:disabled {
  color: #a69c92;
  cursor: not-allowed;
}
input[type="range"]:disabled {
  cursor: not-allowed;
}
@media (pointer: coarse) {
  .stage-seg { height: 8px; }
}

button {
  touch-action: manipulation; /* no double-tap zoom delay on iOS */
}

button:focus-visible,
input[type="range"]:focus-visible {
  outline: 2px solid #b45d22;
  outline-offset: 2px;
}

.hud-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 252, 248, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(42, 34, 27, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.pill-btn {
  border: none;
  background: transparent;
  color: #4b423b;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pill-btn:hover {
  background: rgba(184, 98, 40, 0.12);
  color: #2b2520;
}

.pill-btn.active {
  background: #2f2823;
  color: #fffaf5;
}

.divider {
  width: 1px;
  background: rgba(75, 66, 59, 0.18);
  margin: 4px 2px;
}

.busy-pill {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(47, 40, 35, 0.88);
  color: #fffaf5;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(42, 34, 27, 0.18);
  pointer-events: none;
}

.busy-pill[hidden] {
  display: none;
}

body.is-busy {
  cursor: progress;
}

/* Startup: the growth/camera controls stay visible but inactive until the first dog is
   ready. The breed buttons stay active so another breed can be chosen while the first
   one is still building. */
body.is-starting .hud-bottom {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Touch / phone layout (mobile-first target: iPhone Safari)
   --------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .breed-btn,
  .pill-btn {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 13px;
  }
  .end-tag {
    min-height: 40px;
    padding: 0 6px;
    font-size: 12px;
  }
  .morph-card {
    --thumb: 28px;
  }
  .slider-wrap {
    min-height: 30px;
  }
  .age-ticks {
    height: 40px;
    margin-top: 0;
  }
  .age-ticks .end-tag {
    line-height: 40px;
  }
  .age-ticks .tick-puppy { left: -6px; }
  .age-ticks .tick-senior { right: -6px; }
  input[type="range"] {
    height: 8px;
  }
  input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }
  input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
  .breed-btn:hover,
  .pill-btn:hover {
    background: transparent;
  }
  .breed-btn.active:hover,
  .pill-btn.active:hover {
    background: #2f2823;
    color: #fffaf5;
  }
}

@media (max-width: 520px) {
  .hud-top {
    top: calc(12px + env(safe-area-inset-top));
    left: calc(12px + env(safe-area-inset-left));
    right: calc(12px + env(safe-area-inset-right));
    gap: 8px;
  }
  .hud-title {
    font-size: 15px;
  }
  .hud-subtitle {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .breed-bar {
    width: 100%;
    justify-content: space-between;
    padding: 5px 6px;
    gap: 2px;
  }
  .breed-btn {
    flex: 1 1 0;
    font-size: 11.5px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .hud-bottom {
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .morph-card {
    padding: 10px 14px 12px;
  }
  .hud-controls {
    border-radius: 22px;
    padding: 6px 8px;
    gap: 2px;
  }
  .hud-controls .divider {
    display: none;
  }
}
/* ---------------------------------------------------------------------------
   "Add your own dog" panel (v0.2.1)
   --------------------------------------------------------------------------- */
.add-dog-btn {
  color: #b45d22;
}
.breed-btn.custom-dog {
  font-style: normal;
}
.dog-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(47, 40, 35, 0.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  user-select: text;
  -webkit-user-select: text;
}
.dog-panel-backdrop[hidden] {
  display: none;
}
.dog-panel {
  width: min(520px, 100%);
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(255, 252, 248, 0.97);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(42, 34, 27, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 16px 18px 18px;
  font-size: 13px;
  line-height: 1.45;
}
.dog-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dog-panel h2 {
  font-size: 16px;
  font-weight: 700;
  color: #2b2520;
}
.panel-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #6c6259;
  cursor: pointer;
}
.panel-close:hover {
  background: rgba(184, 98, 40, 0.12);
}
.dog-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dog-steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 30px;
}
.dog-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #2f2823;
  color: #fffaf5;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title {
  font-weight: 700;
  color: #2f2823;
  margin-bottom: 6px;
}
.step-text {
  color: #4b423b;
  margin-bottom: 4px;
}
.photo-list {
  margin: 2px 0 6px 16px;
  color: #4b423b;
}
.photo-list li {
  margin-bottom: 2px;
}
.step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.panel-btn {
  border: 1px solid #2f2823;
  background: #2f2823;
  color: #fffaf5;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.panel-btn.subtle {
  background: transparent;
  color: #2f2823;
  border-color: rgba(47, 40, 35, 0.35);
}
.panel-btn.primary {
  background: #b45d22;
  border-color: #b45d22;
}
.panel-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.panel-btn.small {
  padding: 5px 10px;
  font-size: 11.5px;
}
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 84px;
  padding: 12px;
  border: 2px dashed rgba(47, 40, 35, 0.3);
  border-radius: 14px;
  background: rgba(232, 225, 215, 0.35);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.drop-zone.is-over,
.drop-zone:focus-visible {
  border-color: #b45d22;
  background: rgba(184, 98, 40, 0.1);
  outline: none;
}
.drop-main {
  font-weight: 700;
  color: #2f2823;
}
.drop-sub {
  font-size: 12px;
  color: #6c6259;
}
.paste-box {
  margin-top: 8px;
}
.paste-box summary {
  cursor: pointer;
  color: #6c6259;
  font-size: 12px;
}
.paste-box textarea {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid rgba(47, 40, 35, 0.25);
  border-radius: 10px;
  background: #fffdfb;
  resize: vertical;
}
.design-preview {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(232, 225, 215, 0.45);
}
.preview-summary {
  font-weight: 600;
  color: #2f2823;
  margin-bottom: 6px;
}
.preview-notes {
  color: #4b423b;
  margin-bottom: 6px;
}
.preview-warnings {
  margin: 0 0 8px 16px;
  color: #8a4a1c;
  font-size: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #2f2823;
}
.field-label {
  white-space: nowrap;
}
.field .optional {
  font-weight: 400;
  color: #8a7f75;
}
.field input,
.field select {
  font-size: 14px; /* 16px on touch below: stops iOS zooming into the field */
  padding: 6px 8px;
  border: 1px solid rgba(47, 40, 35, 0.25);
  border-radius: 8px;
  background: #fffdfb;
  color: #2f2823;
  min-width: 0;
  width: 100%;
}
.age-inputs {
  display: flex;
  gap: 4px;
}
.field-hint {
  font-size: 12px;
  color: #6c6259;
  margin-bottom: 8px;
}
.panel-error {
  margin-top: 10px;
  color: #a33a12;
  font-weight: 600;
}
.your-dogs {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(47, 40, 35, 0.12);
}
.your-dogs ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.your-dogs li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.your-dogs .dog-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.your-dogs .dog-label small {
  color: #8a7f75;
  font-weight: 400;
}
@media (pointer: coarse) {
  .panel-btn {
    min-height: 40px;
    padding: 10px 14px;
  }
  .panel-btn.small {
    min-height: 36px;
  }
  .field input,
  .field select {
    font-size: 16px;
    min-height: 40px;
  }
}
@media (max-width: 520px) {
  /* The add button gets its own row so the dog names keep one line each. */
  .breed-bar {
    border-radius: 22px;
  }
  .breed-btn.add-dog-btn {
    flex: 1 0 100%;
  }
  .dog-panel {
    padding: 14px 14px 16px;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field-grid .field:first-child {
    grid-column: 1 / -1;
  }
}

/* v0.2.3: non-modal editor. Compact, grouped controls with a sticky action footer.
   The dog stays visible and orbitable. */
.dog-editor[hidden] { display:none; }
.dog-editor { position:fixed; z-index:12; right:16px; top:150px; bottom:16px; width:310px;
  overflow-y:auto; overscroll-behavior:contain; padding:14px 14px 0; border-radius:18px;
  background:rgba(255,252,248,.97); box-shadow:0 6px 28px #2f282326; font-size:12px; }
.dog-editor header { display:flex; align-items:center; justify-content:space-between; }
.dog-editor h2 { font-size:16px; }
.editor-lead { color:#70665e; margin:1px 0 6px; font-size:11.5px; }
.editor-notes { color:#6b5541; font-size:11px; margin:4px 0; }
.editor-notes summary { cursor:pointer; color:#8d7059; font-weight:600; }
.editor-notes div { white-space:pre-line; margin-top:4px; }
#editor-fields { border:0; min-width:0; }
.dog-editor label { display:block; font-weight:600; margin:6px 0; }
.dog-editor .optional { font-weight:400; color:#8a7f75; }
.editor-identity input,.editor-identity select { width:100%; min-width:0; margin-top:3px;
  padding:7px; border:1px solid #d0c6ba; border-radius:8px; background:#fffdfa; color:#2f2823; }
.editor-identity input,.editor-identity select { height:34px; }
.editor-identity { display:grid; grid-template-columns:1fr 1fr; gap:0 8px; }
.editor-identity .ed-name { grid-column:1/-1; }
.editor-group { margin-top:10px; padding-top:8px; border-top:1px solid #e6ddd2; }
.editor-group h3 { font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#8d7059; }
.editor-slider { display:grid!important; grid-template-columns:1fr auto; gap:2px 8px; padding:2px 0; margin:5px 0; }
.editor-slider[hidden] { display:none!important; }
.editor-slider input { grid-column:1/-1; margin:5px 0 6px; background:#c6b7a6; }
.editor-slider output { font-variant-numeric:tabular-nums; color:#8d7059; }
.sub-label { display:block; font-weight:600; margin:8px 0 4px; }
.seg { display:flex; gap:4px; }
.seg-btn { flex:1 1 0; padding:6px 4px; font:inherit; font-size:11.5px; font-weight:600; color:#4b423b;
  background:#fffdfa; border:1px solid #d9cfc3; border-radius:999px; cursor:pointer; }
.seg-btn.is-selected { background:#2f2823; border-color:#2f2823; color:#fffaf5; }
.type-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; }
.type-choice { --ibg:#fffdfa; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px;
  min-height:58px; padding:5px 1px 4px; font:inherit; font-size:10px; line-height:1.1; text-align:center; color:#4b423b;
  background:var(--ibg); border:1px solid #d9cfc3; border-radius:10px; cursor:pointer; }
.type-choice svg { width:30px; height:30px; flex:none; fill:currentColor; }
.type-choice svg .in { fill:var(--ibg); }
.type-choice.is-selected { --ibg:#2f2823; color:#fffaf5; border-color:#2f2823; }
.type-note { margin:5px 0 0; padding:3px 0; font-size:10.5px; color:#8a7f75; }
.type-note.is-pending { padding:4px 7px; border-radius:7px; background:rgba(180,93,34,.12); color:#9a4c17; font-weight:700; }
.editor-footer { position:sticky; bottom:0; margin:10px -14px 0; padding:8px 14px 12px;
  background:#fffcf8; border-top:1px solid #e6ddd2; }
.editor-actions { display:flex; gap:6px; flex-wrap:nowrap; }
.editor-actions button { flex:0 0 auto; font-size:11.5px; padding:8px 11px; }
.editor-actions .primary { flex:1 1 auto; }
#editor-status { margin:6px 0 6px; font-size:11px; line-height:1.3; }
#editor-status .st-main { display:block; font-weight:700; color:#a85620; }
#editor-status .st-sub { display:block; color:#70665e; }
#editor-status.is-ready .st-main { color:#3f7a3a; }
.editor-save .panel-btn { flex:1 1 0; }
.editor-footer .panel-error { margin:6px 0 0; }
body.is-editing .morph-card { display:none; }
body.is-editing .hud-bottom { left:calc((100% - 340px)/2); width:calc(100% - 370px); }
body.is-editing .hud-top { right:340px; }
body.is-editing .breed-bar { max-height:80px; overflow-y:auto; border-radius:18px; }
@media(max-width:700px) {
 .dog-editor { left:10px; right:10px; width:auto; top:auto; bottom:calc(8px + env(safe-area-inset-bottom)); height:46dvh; max-height:50dvh; padding:10px 12px 0; }
 .editor-footer { margin:8px -12px 0; padding:6px 12px 8px; }
 #editor-status { margin:4px 0 5px; }
 #editor-status .st-main, #editor-status .st-sub { display:inline; }
 #editor-status .st-sub::before { content:' '; }
 body.is-editing .hud-top { right:12px; }
 body.is-editing .hud-bottom { left:50%; width:94vw; bottom:calc(47dvh + 12px + env(safe-area-inset-bottom)); }
 body.is-editing .hud-controls { padding:3px 6px; gap:0; }
 body.is-editing .hud-controls .pill-btn { min-height:36px; padding:6px 7px; font-size:10px; }
 .dog-editor input:not([type=range]),.dog-editor select { font-size:16px; min-height:40px; }
 .dog-editor button { min-height:40px; }
 .editor-slider { min-height:48px; }
 .type-choice { min-height:60px; }
 .editor-actions button { padding:8px 9px; }
}

/* v0.2.4: facial-hair picture choices and editor-only viewport notice. */
.facial-hair-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.facial-hair-grid .type-choice { min-height:76px; padding:6px 3px; text-align:center; }
.facial-hair-grid .type-choice svg { width:42px; height:42px; }
.facial-hair-grid .type-choice span { white-space:normal; line-height:1.15; }
.editor-preview-notice { display:none; position:fixed; z-index:15; top:86px;
  left:calc(50% - 170px); transform:translateX(-50%); width:max-content;
  max-width:calc(100vw - 380px); margin:0; padding:7px 12px; border-radius:12px;
  background:rgba(255,252,248,.94); color:#665448; font-size:12px; line-height:1.4;
  text-align:center; pointer-events:none; box-shadow:0 2px 12px rgba(47,40,35,.08); }
body.is-editing .editor-preview-notice { display:block; }
@media (max-width:700px) {
  .editor-preview-notice { top:120px; left:50%; max-width:calc(100vw - 24px); font-size:11px; }
}

/* v0.2.5: calm import feedback and compact, touch-safe picture choices. */
.drop-zone.is-over,.drop-zone:focus-visible { border-color:#477a89; background:rgba(71,122,137,.10); }
.file-receipt { margin:8px 0; padding:9px 11px; border-radius:9px; background:#edf4f1; color:#365c4b; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
#use-file { margin:0 0 8px; }
.type-grid { gap:4px; }
.type-choice { min-height:48px; padding:4px 2px; font-size:10px; }
.type-choice svg { width:25px; height:25px; }
.facial-hair-grid .type-choice { min-height:52px; padding:4px 2px; }
.facial-hair-grid .type-choice svg { width:28px; height:28px; }
@media(max-width:700px) { .type-choice { min-height:48px; } .facial-hair-grid .type-choice { min-height:52px; } }

body.is-importing #canvas-container,body.is-importing .hud-title-block,body.is-importing .hud-bottom{visibility:hidden}

#adjust-dog:disabled{opacity:.45;cursor:not-allowed;background:transparent}
