.tag-configurator {
  --tag-olive: #62734b;
  padding: 42px 32px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.tag-configurator .section-heading { margin-bottom: 28px; }
.tag-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 42px; align-items: center; }
.tag-preview { min-width: 0; text-align: center; }
.tag-stage { position: relative; border-radius: 28px; background: radial-gradient(ellipse at center, #fffcf7, #eee4d5); }
.tag-canvas { height: 460px; width: 100%; }
.tag-canvas canvas { display: block; width: 100%; height: 100%; border-radius: 28px; filter: drop-shadow(0 14px 12px #4c392b22); }
.tag-status { position: absolute; inset: 40% 12% auto; color: var(--muted); pointer-events: none; }
.tag-configurator button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tag-configurator button:focus-visible, .tag-canvas canvas:focus-visible { outline: 3px solid var(--tag-olive); outline-offset: 5px; }
.tag-view-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.tag-view-buttons button { border: 1px solid var(--line); background: var(--surface); padding: 9px 18px; border-radius: 999px; color: var(--sage-dark); }
.tag-view-buttons button:disabled { cursor: wait; opacity: .5; }
.tag-hint, .tag-dimensions { color: var(--muted); font-size: .75rem; }
.tag-controls { min-width: 0; display: grid; gap: 28px; }
.tag-controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tag-controls legend { font-size: .94rem; font-weight: 700; padding: 0; margin-bottom: 14px; }
.tag-controls legend span { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; margin-top: 4px; }
.tag-sizes { display: flex; gap: 10px; }
.tag-sizes button { padding: 10px 26px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); }
.tag-sizes button[aria-pressed="true"] { background: var(--tag-olive); border-color: var(--tag-olive); color: white; }
.tag-dimensions { margin: 10px 0 0; }
.tag-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-swatch { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 3px solid var(--bg-soft); background: var(--swatch); box-shadow: 0 0 0 1px #b5ad9f; }
.tag-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--tag-olive); }
.tag-swatch span { visibility: hidden; background: var(--tag-olive); color: white; font-size: 12px; border-radius: 50%; width: 19px; height: 19px; line-height: 19px; }
.tag-swatch[aria-pressed="true"] span { visibility: visible; }
@media (max-width: 800px) {
  .tag-configurator { padding: 30px 18px; border-radius: 28px; }
  .tag-layout { grid-template-columns: 1fr; gap: 24px; }
  .tag-canvas { height: clamp(320px, 85vw, 440px); }
  .tag-controls { gap: 24px; }
}
