.organizer-shell {
  --workshop-gold: #bd9350;
  --workshop-cream: #fff0d0;
  --workshop-gutter: clamp(12px, 3.5vw, 26px);
  color: var(--workshop-cream);
  max-width: 680px;
  padding: 0 var(--workshop-gutter);
}
.organizer-shell::before {
  background: radial-gradient(ellipse at 50% 32%, #12372a 0, #071f18 65%, #041712);
}
.organizer { display: grid; gap: 14px; }
.organizer-card {
  min-width: 0;
  padding: clamp(12px, 3.7vw, 24px);
  border: 1px solid var(--workshop-gold, #bd9350);
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, #17382b, #08231c 72%);
  box-shadow: inset 0 1px 0 #eed29a24, 0 8px 18px #020e0a55;
  color: #fff1d0;
}
.organizer-card h2, .organizer-card legend { color: #fff1d0; font: 700 clamp(1.38rem, 1.04rem + 1.45vw, 2rem)/1.13 var(--garland-display), Georgia, serif; margin: 0 0 10px; }
.organizer-card p { line-height: 1.5; }
.organizer-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.organizer-card label { color: inherit; }
.organizer-card input:not([type="radio"]):not([type="checkbox"]), .organizer-card textarea, .organizer-card select { width: 100%; background: #fff8e9; color: #1b2c20; border: 1px solid #a27b45; border-radius: 10px; padding: 12px; font-size: 16px; }
.organizer-card select { min-height: 48px; }
.organizer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.organizer-grid legend { grid-column: 1 / -1; }
.organizer-choice { position: relative; display: flex; align-items: center; gap: .7rem; min-width: 0; min-height: 52px; padding: 11px 13px; margin: 8px 0; background: #14392c; color: #fff0c7; border: 1px solid #977745; border-radius: 12px; cursor: pointer; }
.organizer-choice:has(input:checked) { border-color: #ffdc8b; color: #fff7e1; }
.organizer-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.organizer-choice::before { content: ""; flex: 0 0 .75rem; height: .75rem; transform: rotate(45deg); border: 1px solid #f1cb83; border-radius: 2px; }
.organizer-choice:has(input:checked)::before { background: #ffd684; box-shadow: 0 0 .8rem #ffd17a8a; }
.organizer-choice:has(input:focus-visible) { outline: 3px solid #ffdb82; outline-offset: 3px; }
.organizer-check input { flex: 0 0 20px; width: 20px; height: 20px; accent-color: #b1691b; }
.organizer-check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.organizer-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, 1.5vw, 12px); }
.organizer-previews img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: contain; padding: 4px; border: 1px solid #b6894a; border-radius: 11px; background: radial-gradient(ellipse, #a2702b48, #082019 70%); }
.organizer-variants { display: grid; gap: 16px; margin: 16px 0; }
.organizer-variant { display: grid; gap: 12px; padding: 16px; border: 2px solid #b59b7b; border-radius: 16px; background: #fff8e9; color: #17291e; }
.organizer-variant.is-selected { border-color: #d19430; box-shadow: inset 0 0 0 1px #d19430; }
.organizer-variant .preview { width: 100%; max-width: none; max-height: none; margin: 0; border-radius: 10px; }
.organizer-variant .action.secondary {
  width: 100%;
  background: #f2e0bb;
  border-color: #8b673e;
  color: #352614;
}
.organizer-variant .action.secondary[aria-pressed="true"] {
  background: #244635;
  border-color: #244635;
  color: #fff3d6;
}
.organizer-variant .action.secondary:focus-visible { outline-color: #75491d; }
.organizer-variant .action.secondary:disabled { opacity: 1; cursor: default; }
.organizer [hidden] { display: none !important; }
.organizer :focus-visible { outline: 3px solid #ffdb82; outline-offset: 3px; }
.organizer .actions { display: grid; gap: 10px; }
.organizer-header { margin-bottom: 14px; }
.organizer-hero {
  isolation: isolate;
  display: flex;
  min-block-size: clamp(236px, 69vw, 355px);
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 54px var(--workshop-gutter) 22px;
  margin-inline: calc(-1 * var(--workshop-gutter));
  background:
    linear-gradient(0deg, #071f18 0, #071f1800 18%),
    url("./art/workshop-cover.webp") center 46% / cover no-repeat,
    #0b2b20;
}
.organizer-hero .organizer-back {
  position: absolute;
  align-self: start;
  inset-block-start: 10px;
  min-height: 44px;
  padding: 6px 12px;
  border-color: #ddbc7b99;
  border-radius: 12px;
  background: #071e19db;
}
.organizer-brand { display: flex; align-items: center; gap: 11px; margin: 0 0 9px; color: #ffedc0; font-size: clamp(1.1rem, .96rem + 1vw, 1.6rem); font-weight: 700; }
.organizer-brand .garland-symbol { width: clamp(45px, 12vw, 69px); height: auto; aspect-ratio: 1; flex: none; }
.organizer-brand span { padding-inline-start: 11px; border-inline-start: 1px solid #f6d39399; }
.organizer-hero-title {
  max-inline-size: 73%;
  margin: 0;
  color: #fff0cd;
  font: 700 clamp(1.75rem, 1.15rem + 3.1vw, 3.6rem)/1.03 var(--garland-display), Georgia, serif;
  text-shadow: 0 2px 9px #020c09, 0 1px 3px #020c09;
  text-wrap: balance;
}
.organizer-shell h1.organizer-heading {
  padding: .34em .45em .39em;
  margin: 0;
  border: 1px solid var(--workshop-gold);
  border-radius: 13px;
  background: linear-gradient(140deg, #14372a, #071f18);
  font-size: clamp(1.55rem, 1.03rem + 2.15vw, 2.65rem);
  text-align: center;
}
.organizer-tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organizer-tag-grid .organizer-tag {
  display: grid;
  container-type: inline-size;
  justify-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.organizer-tag-grid .organizer-tag:has(input:checked) {
  background: transparent;
  box-shadow: none;
}
.organizer-tag-grid .organizer-tag::before { display: none; }
.organizer-tag-art, .organizer-tag-caption { grid-area: 1 / 1; }
.organizer-tag-art {
  display: block;
  inline-size: 100%;
  max-inline-size: 248px;
  aspect-ratio: .95;
  object-fit: contain;
  align-self: start;
  filter: drop-shadow(0 4px 3px #0007);
  transition: filter .24s ease;
}
.organizer-tag-caption {
  z-index: 1;
  align-self: start;
  margin-top: min(35%, 87px);
  padding: 0 2px;
  color: #291a0e;
  font: 700 clamp(1rem, .75rem + 1.55vw, 1.8rem)/1.1 var(--garland-display), Georgia, serif;
  font-size: clamp(.95rem, .25rem + 9.8cqw, 1.8rem);
}
.organizer-tag:has(input:checked) .organizer-tag-art {
  filter: drop-shadow(0 0 .8px #fff5d0) drop-shadow(0 0 2px #ffe6a1) drop-shadow(0 0 7px #ffb842);
}
.organizer-tag input { z-index: 2; }
.organizer-tag-dot {
  box-sizing: border-box;
  width: 19px;
  height: 19px;
  border: 1.5px solid #ffe7af;
  border-radius: 50%;
}
.organizer-tag-dot::after { content: ""; display: block; width: 9px; height: 9px; margin: 3.5px; border-radius: 50%; }
.organizer-tag:has(input:checked) .organizer-tag-dot::after { background: #ffe7af; }
.organizer-mode-help, .organizer-option-help, .organizer-lamp-card > p { color: #f2dfbb; margin: .55rem 0 .1rem; }
.organizer-lamp-card > p { margin-bottom: 10px; }
.organizer-switch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; }
.organizer-switch input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.organizer-switch:has(input:focus-visible) { outline: 3px solid #ffdb82; outline-offset: 3px; }
.organizer-switch-tag {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  color: #302010;
  background: radial-gradient(ellipse, #fff1ce, #e5bf82);
  font-weight: 700;
}
.organizer-switch-face { position: relative; box-sizing: border-box; width: 53px; height: 31px; border: 1px solid #bc9661; border-radius: 18px; background: #142e23; transition: background-color .24s, border-color .24s; }
.organizer-switch-face::after { content: ""; position: absolute; inset: 4px auto 4px 4px; aspect-ratio: 1; border-radius: 50%; background: #ebd0a2; transition: transform .24s; }
.organizer-switch input:checked ~ .organizer-switch-face { background: #194730; border-color: #ffe6a3; box-shadow: 0 0 10px #f6ba494d; }
.organizer-switch input:checked ~ .organizer-switch-face::after { transform: translateX(22px); background: #fff2ca; }
.organizer-card.organizer-name .field { margin: 0; }
.organizer-shell .organizer-actions { margin-block: 5px 0; }
.organizer-shell .organizer-save {
  min-height: 54px;
  border: 1px solid #fff0ce;
  border-radius: 14px;
  background: linear-gradient(170deg, #fff1cf, #e5c48c);
  color: #142820;
  font-size: clamp(1.1rem, 1rem + .9vw, 1.5rem);
  box-shadow: inset 0 1px #fff9e4, 0 5px 13px #0006;
}
.organizer-footer {
  min-height: 84px;
  margin-inline: calc(-1 * var(--workshop-gutter));
  background:
    linear-gradient(180deg, #071f18, #071f1800 60%),
    url("./art/workshop-cover.webp") left bottom / max(480px, 100%) auto no-repeat;
  pointer-events: none;
}
.organizer-choice small { display: block; margin-top: .35em; font-size: .875em; line-height: 1.38; }
.organizer-choice { transition: background-color .2s, box-shadow .25s; }
.organizer-choice:has(input:checked) { box-shadow: inset 0 0 22px #ffd17a2b, 0 0 12px #ffd17a30; background: linear-gradient(135deg, #4f4227, #244031 70%); }
.organizer-previews { perspective: 20rem; }
.organizer-previews img { transform-origin: top center; animation: organizer-lantern 700ms ease-out both; }
.organizer-previews img:nth-child(2n) { animation-delay: 85ms; }
.organizer-custom { margin-top: 1.25rem; border-top: 1px solid #c89b5370; padding-top: 1.25rem; }
.organizer-custom a { color: #ffe191; }
.organizer-channels { border: 1px solid #c89b5370; padding: .7rem .9rem; border-radius: 10px; margin-bottom: .9rem; }
.organizer-channels summary { min-block-size: 2rem; cursor: pointer; }
@keyframes organizer-lantern {
  0% { transform: rotate(-7deg); opacity: .65; }
  65% { transform: rotate(3deg); }
  100% { transform: rotate(0); opacity: 1; }
}
@media (max-width: 420px) { .organizer-grid:not(.organizer-tag-grid) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) {
  .organizer-hero-title { max-inline-size: 76%; font-size: clamp(1.55rem, 7.95vw, 1.75rem); }
}
@media (prefers-reduced-motion: reduce) { .organizer * { animation: none !important; transition: none !important; } }
.organizer-art-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 4px;
  margin-top: 18px;
  padding: 25px 8px 12px;
  border: 1px solid #977745;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #38543a, #09251c 75%);
  overflow: hidden;
}
.organizer-art-preview::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -5%;
  width: 110%;
  height: 20px;
  border-top: 3px solid #b77943;
  border-radius: 50%;
}
.organizer-art-lamp { position: relative; min-width: 0; aspect-ratio: 4 / 5; filter: drop-shadow(0 0 10px #f5be6c88); }
.organizer-art-lamp:nth-child(even) { margin-top: 12px; }
.organizer-art-lamp .lamp-sprite { width: 100%; height: 100%; }
.organizer-art-status { color: #fff0d0; }
.organizer-custom .file-picker-name { display: none; }
.organizer-art-progress {
  position: relative;
  display: flex;
  justify-content: space-around;
  min-height: 60px;
  margin-block: .3rem 1rem;
  padding: 15px 12px 6px;
  border: 1px solid #977745;
  border-radius: 14px;
  background: radial-gradient(ellipse at bottom, #33472d, #09251c 80%);
  overflow: hidden;
}
.organizer-art-progress::before {
  content: "";
  position: absolute;
  inset: -10px 12px auto;
  height: 27px;
  border-bottom: 2px solid #c58b52;
  border-radius: 50%;
}
.organizer-progress-light {
  position: relative;
  color: #ffe4a3;
  margin-top: 2px;
  filter: drop-shadow(0 1px 5px #ffae45);
  animation: organizer-art-wait 2.1s ease-in-out infinite;
  animation-delay: calc(var(--light-index) * .18s);
}
.organizer-progress-light:nth-child(even) { margin-top: 6px; }
.organizer-progress-light:nth-child(3) { margin-top: 8px; }
.organizer-progress-light svg { width: 24px; height: 24px; }
@keyframes organizer-art-wait {
  0%, 100% { opacity: .48; }
  45% { opacity: 1; filter: drop-shadow(0 2px 7px #ffb345); }
}
@media (prefers-reduced-motion: reduce) {
  .organizer-progress-light { animation: none; }
}
