/* Ouvertyr Studio — kreativ, klass och fest.
   Den här filen ligger sist med flit: den formger den befintliga guiden utan
   att kopiera eller ändra dess logik. Funktionerna i setup.html är sanningen;
   detta är scenografin runt dem. */

html {
  background: #07100e;
}

body.setup-fest {
  --paper: #081612;
  --card: rgba(8, 31, 27, .95);
  --panel: rgba(20, 52, 46, .78);
  --line: rgba(241, 211, 151, .16);
  --line-strong: rgba(241, 211, 151, .36);
  --frame: #d8cdbb;
  --text: #fbf5e9;
  --muted: #c8d0cb;
  --faint: #91a39c;
  --accent: #f1cf85;
  --accent-soft: #eab46f;
  --on-accent: #1b1914;
  --field: #fffaf1;
  --ph: #66716d;
  --ring: rgba(241, 207, 133, .62);
  --ok: #83dda8;
  --ok-bg: rgba(71, 168, 111, .13);
  --ok-line: rgba(131, 221, 168, .35);
  --no: #ff9d86;
  --no-bg: rgba(197, 76, 63, .13);
  --no-line: rgba(255, 157, 134, .38);

  min-height: 100vh;
  padding: 20px 18px 96px;
  color: var(--text);
  /* Tre fasta ytnivåer (VD-beslut 2026-08-31): varm mörkgrön sidbakgrund,
     ljusare gröna huvudytor, ytterligare ett steg ljusare interaktiva kort.
     Den svarta toningen längst ned är borta — grönt hela vägen. */
  background:
    radial-gradient(80% 60% at 12% 4%, rgba(22, 94, 80, .38), transparent 58%),
    radial-gradient(70% 64% at 96% 18%, rgba(46, 101, 88, .25), transparent 58%),
    radial-gradient(56% 42% at 54% 102%, rgba(154, 106, 56, .18), transparent 70%),
    linear-gradient(145deg, #0a1e19 0%, #0d2620 48%, #0b211b 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.setup-fest::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -22vh -18vw auto;
  height: 68vh;
  pointer-events: none;
  background:
    conic-gradient(from 208deg at 52% 0%,
      transparent 0 23%,
      rgba(241, 207, 133, .08) 26%,
      transparent 29% 42%,
      rgba(69, 145, 125, .10) 45%,
      transparent 48% 100%);
  filter: blur(2px);
  transform-origin: 50% 0;
  animation: ouvertyr-ljus 18s ease-in-out infinite alternate;
}

body.setup-fest::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    radial-gradient(circle, rgba(255, 225, 163, .72) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, .35) 0 .8px, transparent 1.2px);
  background-position: 11px 17px, 58px 72px;
  background-size: 116px 116px, 151px 151px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 64%);
}

@keyframes ouvertyr-ljus {
  from { transform: translate3d(-2%, 0, 0) rotate(-1deg); }
  to { transform: translate3d(2%, 1%, 0) rotate(1.5deg); }
}

body.setup-fest .wrap {
  position: relative;
  z-index: 1;
  /* Feststudion är tre ytor sida vid sida — salongen breddas, men ytorna
     själva håller läsbara mått (arbetsytan maxas av gridens mittspalt). */
  width: min(100%, 1400px);
  max-width: 1400px;
  gap: 24px;
}

/* Sidhuvudet blir en liten foajé som följer med genom resan. */
body.setup-fest .wrap > .row:first-child {
  position: sticky;
  top: 14px;
  z-index: 50;
  min-height: 72px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(168, 199, 185, .18);
  border-bottom: 1px solid rgba(241, 207, 133, .34);
  border-radius: 9px;
  box-shadow: 0 22px 48px rgba(4, 12, 10, .55);
  background: rgba(5, 18, 16, .86);
  box-shadow: 0 18px 58px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

body.setup-fest .marke {
  gap: 13px;
}

body.setup-fest .marke .ring {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #1a101a;
  background: linear-gradient(145deg, #fff0bd 0%, #edc26c 54%, #bd774b 100%);
  box-shadow: 0 7px 24px rgba(220, 157, 77, .22), inset 0 1px 0 rgba(255, 255, 255, .72);
}

body.setup-fest .marke .ring svg {
  width: 24px;
  height: 24px;
  fill: #1a101a;
}

body.setup-fest h1 {
  color: #fff8eb;
  font-size: 34px;
  text-shadow: 0 2px 22px rgba(241, 207, 133, .12);
}

body.setup-fest h1 small {
  color: #d3af6f;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .24em;
}

body.setup-fest a.adv {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(241, 207, 133, .26);
  border-radius: 999px;
  color: #e8d6b1;
  background: rgba(255, 255, 255, .025);
  font-size: 12px;
  font-weight: 600;
  transition: border-color .18s, background .18s, transform .18s;
}

body.setup-fest a.adv:hover {
  color: #fff2d2;
  border-color: rgba(241, 207, 133, .62);
  background: rgba(241, 207, 133, .08);
  transform: translateY(-1px);
}

/* ---------- Feststudion: tre ytor ----------
   Produktionsöversikten till vänster, arbetsytan i mitten, Gästens värld
   till höger. Samma stegknappar som alltid (goto() ritar dem) — bara ny
   scenografi: en vertikal produktionslista i stället för prickremsa. */
body.setup-fest #wiz.studio {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) clamp(360px, 29vw, 432px);
  gap: 24px;
  align-items: start;
}

body.setup-fest #wiz.studio.hide { display: none; }
/* SKARP FEST (2026-09-16, UX-översynen punkt F): stegprickarna är borta
   sedan punkt B, och sidokolumnen stod kvar tom. Arbetsytan får platsen. */
body.setup-fest #wiz.studio.skarp { grid-template-columns: minmax(0, 1fr) clamp(360px, 29vw, 432px); }
body.setup-fest #wiz.studio.skarp #produktion { display: none; }

body.setup-fest #arbetsyta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

body.setup-fest #produktion {
  position: sticky;
  top: 104px;
  z-index: 5;
}

body.setup-fest .prodrubrik,
body.setup-fest .gv-rubrik,
body.setup-fest .gv-resarubrik {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}

body.setup-fest .prodrubrik { margin: 6px 0 14px 4px; }

body.setup-fest .steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: prodsteg;
}

body.setup-fest .sdot {
  counter-increment: prodsteg;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

body.setup-fest .sdot::after { content: none; }

body.setup-fest .sdot .sl {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  display: grid;
  place-items: center;
  transition: border-color .2s;
}

body.setup-fest .sdot .sl::before {
  content: counter(prodsteg);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--faint);
}

/* Bocken är ett tecken OCH en färg — status aldrig enbart färg. */
body.setup-fest .sdot.done .sl { border-color: var(--ok-line); }
body.setup-fest .sdot.done .sl::before { content: "✓"; color: var(--ok); }

body.setup-fest .sdot.now {
  background: rgba(241, 207, 133, .09);
  border-color: rgba(241, 207, 133, .45);
  color: #f4d590;
}

body.setup-fest .sdot.now .sl {
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(248, 228, 169, .22), rgba(220, 162, 83, .12));
  box-shadow: 0 0 16px rgba(241, 207, 133, .22);
}

body.setup-fest .sdot.now .sl::before { color: var(--accent); }

/* Statusindikering: ett steg som behöver åtgärd bär ett utropstecken —
   tecken + titel, aldrig bara färg. Klassen sätts när något behöver det. */
body.setup-fest .sdot.varn .sl { border-color: var(--no-line); }
body.setup-fest .sdot.varn .sl::before { content: "!"; color: var(--no); }

body.setup-fest .sdot .sn {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

body.setup-fest .sdot:hover { border-color: var(--line-strong); color: var(--text); }
body.setup-fest .sdot:hover .sl { background: rgba(255, 255, 255, .07); }

body.setup-fest .sdot:focus-visible,
body.setup-fest .gv-flikar [role="tab"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---------- Gästens värld ---------- */
body.setup-fest #gastvarld {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

body.setup-fest .gv-topp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.setup-fest .gv-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--ok-line);
  border-radius: 99px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

body.setup-fest .gv-prick {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: gvpuls 2.4s ease-in-out infinite;
}

@keyframes gvpuls {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

body.setup-fest .gv-vy {
  margin: -4px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

/* Telefonramen: en riktig produkt i handen, inte en skiss. */
body.setup-fest .gv-ram {
  position: relative;
  border: 1px solid rgba(241, 211, 151, .28);
  border-radius: 18px;
  padding: 11px;
  background: linear-gradient(165deg, #0d3029, #04120f 62%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
}

body.setup-fest #gvFrame {
  display: block;
  width: 100%;
  height: min(640px, calc(100vh - 320px));
  min-height: 430px;
  border: 0;
  border-radius: 12px;
  background: #04120f;
}

body.setup-fest #gvFrame.gv-dold { visibility: hidden; }

body.setup-fest .gv-tom {
  position: absolute;
  inset: 11px;
  display: grid;
  place-items: center;
  padding: 30px;
  margin: 0;
  text-align: center;
  border-radius: 12px;
  color: var(--faint);
}

body.setup-fest .gv-resa { display: flex; flex-direction: column; gap: 9px; }

body.setup-fest .gv-flikar { display: flex; gap: 8px; flex-wrap: wrap; }

body.setup-fest .gv-flikar [role="tab"] {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

body.setup-fest .gv-flikar [role="tab"][aria-selected="true"] {
  color: var(--accent);
  border-color: rgba(241, 207, 133, .55);
  background: rgba(241, 207, 133, .08);
}

/* ---------- studiohuvudets detaljer och aktrubriken ---------- */
body.setup-fest .sparchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--ok-line);
  border-radius: 99px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.setup-fest .sparchip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

body.setup-fest .akt {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}

body.setup-fest .regissor {
  flex: none;
  padding: 4px 11px;
  border: 1px solid rgba(241, 207, 133, .45);
  border-radius: 99px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
}

body.setup-fest .regissor::before { content: "✦ "; }

body.setup-fest #gvOppna { display: none; }

/* Korten är sammetsklädda arbetsytor snarare än vitt administrationspapper. */
body.setup-fest .card {
  position: relative;
  isolation: isolate;
  padding: 28px 30px;
  overflow: hidden;
  /* Grön kant på de stora ytorna — guldlinjer bara där något är valt,
     fokuserat eller viktigt (åtgärdsplanens punkt 6). */
  border: 1px solid rgba(168, 199, 185, .16);
  border-radius: 12px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(18, 56, 48, .96), rgba(11, 34, 29, .98) 62%),
    rgba(12, 37, 31, .97);
  box-shadow:
    0 28px 75px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

body.setup-fest .card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #b77c46 18%, #f3d68e 50%, #4f9b87 82%, transparent);
  opacity: .78;
}

body.setup-fest .card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  top: -180px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 141, 89, .10), transparent 68%);
  pointer-events: none;
}

body.setup-fest .card[data-step] {
  padding: 36px 40px 40px;
}

body.setup-fest h2 {
  margin-bottom: 8px;
  color: #fff7e9;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.018em;
}

body.setup-fest .stepname,
body.setup-fest .tier,
body.setup-fest .ofas {
  color: #e8bb72;
  font-weight: 700;
}

body.setup-fest .stepname {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 11px;
  padding: 0 10px;
  border: 1px solid rgba(241, 207, 133, .28);
  border-radius: 999px;
  background: rgba(241, 207, 133, .06);
  font-size: 10.5px;
  letter-spacing: .2em;
}

body.setup-fest .lede {
  color: #c8d0cb;
  line-height: 1.65;
}

body.setup-fest label {
  color: #d4ddd8;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .055em;
}

/* Varma elfenbensfält: fest runtomkring, lugn och tydlig inmatning inuti. */
body.setup-fest input,
body.setup-fest select,
body.setup-fest textarea {
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: #231923;
  background: linear-gradient(180deg, #fffdf7, #f7f0e5);
  box-shadow:
    0 7px 24px rgba(0, 0, 0, .15),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  caret-color: #9a5d56;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}

body.setup-fest textarea {
  min-height: 122px;
}

body.setup-fest input::placeholder,
body.setup-fest textarea::placeholder {
  color: #655d68;
}

body.setup-fest input:focus,
body.setup-fest select:focus,
body.setup-fest textarea:focus {
  border-color: #efc875;
  box-shadow:
    0 0 0 4px rgba(241, 207, 133, .14),
    0 12px 30px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

body.setup-fest input[type="checkbox"],
body.setup-fest input[type="radio"] {
  min-height: 0;
  box-shadow: none;
  accent-color: #e7b761;
}

body.setup-fest select option {
  color: #241a25;
  background: #fffaf1;
}

body.setup-fest .field {
  margin-bottom: 16px;
}

body.setup-fest .grid2 {
  gap: 14px;
}

body.setup-fest .laterbox,
body.setup-fest .iblock,
body.setup-fest .aians,
body.setup-fest .links,
body.setup-fest .tprev,
body.setup-fest .avslut {
  border: 1px solid rgba(241, 211, 151, .16);
  background:
    linear-gradient(145deg, rgba(48, 105, 91, .18), rgba(17, 52, 45, .52)),
    rgba(12, 40, 34, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

body.setup-fest .laterbox {
  margin-top: 26px;
  padding: 22px;
  border-radius: 9px;
}

body.setup-fest .iblock {
  padding: 18px;
  border-radius: 9px;
}

body.setup-fest #ai-box {
  position: relative;
  padding: 22px;
  border-color: rgba(241, 207, 133, .28);
  background:
    radial-gradient(85% 110% at 0 0, rgba(78, 145, 126, .18), transparent 68%),
    linear-gradient(145deg, rgba(22, 66, 57, .9), rgba(9, 34, 29, .92));
}

body.setup-fest #ai-box .head b::before {
  content: "✦";
  margin-right: 9px;
  color: #f1cf85;
}

/* Knapparna är ljussättningen: champagne framåt, glas bakåt. */
body.setup-fest button {
  min-height: 48px;
  border-radius: 7px;
  letter-spacing: .005em;
}

body.setup-fest .go,
body.setup-fest .ukap.nu {
  border-color: rgba(255, 238, 184, .7);
  color: #1d131d;
  background: linear-gradient(135deg, #fff0b7 0%, #efc673 46%, #d79054 100%);
  box-shadow:
    0 12px 28px rgba(204, 127, 65, .23),
    inset 0 1px 0 rgba(255, 255, 255, .78);
}

body.setup-fest .go:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: saturate(1.06) brightness(1.04);
  box-shadow:
    0 16px 34px rgba(204, 127, 65, .3),
    inset 0 1px 0 rgba(255, 255, 255, .82);
}

body.setup-fest .ghost,
body.setup-fest .chip,
body.setup-fest .ukap {
  border-color: rgba(241, 211, 151, .28);
  color: #f3e5c7;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

body.setup-fest .ghost:hover,
body.setup-fest .chip:hover,
body.setup-fest .ukap:hover {
  border-color: rgba(241, 207, 133, .65);
  color: #fff3d8;
  background: rgba(241, 207, 133, .075);
}

body.setup-fest .quiet,
body.setup-fest .more {
  color: #e8bb72;
  text-decoration-color: rgba(232, 187, 114, .42);
}

body.setup-fest .quiet:hover,
body.setup-fest .more:hover {
  color: #ffe7af;
}

/* Kortval får djup och en tydlig vald scen. */
body.setup-fest .pcard,
body.setup-fest .spelrad,
body.setup-fest .okort,
body.setup-fest .ev,
body.setup-fest .ulook-chip {
  color: var(--text);
  border-color: rgba(168, 199, 185, .2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)),
    rgba(20, 59, 50, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: background-color .18s, border-color .18s, transform .18s;
}

body.setup-fest .ev:hover {
  background-color: rgba(28, 74, 63, .9);
  transform: translateY(-1px);
}

body.setup-fest .pcard {
  padding: 18px;
  border-radius: 9px;
}

body.setup-fest .pcard:hover,
body.setup-fest .spelrad:hover,
body.setup-fest .okort:hover,
body.setup-fest .ev:hover,
body.setup-fest .ulook-chip:hover {
  border-color: rgba(241, 207, 133, .46);
  background-color: rgba(19, 61, 52, .76);
}

body.setup-fest .pcard.on,
body.setup-fest .spelrad.pa,
body.setup-fest #themes .theme-card.on,
body.setup-fest .ulook-chip.on,
body.setup-fest .okort.oppen {
  border-color: #e7bb6b;
  background:
    radial-gradient(80% 120% at 0 0, rgba(241, 207, 133, .14), transparent 68%),
    linear-gradient(145deg, rgba(28, 77, 65, .76), rgba(8, 34, 28, .94));
  box-shadow:
    0 0 0 1px rgba(241, 207, 133, .22),
    0 16px 34px rgba(0, 0, 0, .18);
}

body.setup-fest .pcard .bock,
body.setup-fest .theme-card.on .theme-check {
  color: #1c111c;
  background: linear-gradient(145deg, #ffe9ab, #dea65a);
}

body.setup-fest .pcard .d,
body.setup-fest .spelrad .spelnamn span,
body.setup-fest .okort .oval,
body.setup-fest .ev .m {
  color: #bfb4c4;
}

body.setup-fest .pcard .ill,
body.setup-fest .spelrad.pa .spelik {
  color: #f1cf85;
}

body.setup-fest #themes .theme-card {
  border-radius: 8px;
}

body.setup-fest .theme-check {
  border-color: rgba(241, 211, 151, .34);
}

body.setup-fest .vagen li::before,
body.setup-fest .check .ic {
  border-color: rgba(241, 207, 133, .3);
  color: #f0c97f;
  background: rgba(241, 207, 133, .08);
}

body.setup-fest .vagen li span,
body.setup-fest code {
  color: #bfb4c4;
}

body.setup-fest .check,
body.setup-fest .glist .g {
  border-color: rgba(241, 211, 151, .13);
}

body.setup-fest .check[role="button"]:hover {
  background: rgba(241, 207, 133, .06);
}

body.setup-fest .pill,
body.setup-fest .tmarke {
  border-color: rgba(241, 207, 133, .28);
  color: #edc87d;
  background: rgba(241, 207, 133, .045);
}

body.setup-fest .gastruta {
  border-color: rgba(241, 207, 133, .25);
  background:
    radial-gradient(95% 100% at 14% 0, rgba(31, 111, 94, .36), transparent 62%),
    radial-gradient(90% 120% at 100% 100%, rgba(157, 108, 57, .20), transparent 65%),
    #071b17;
  box-shadow: 0 24px 52px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.setup-fest .gastruta .ring {
  background: rgba(241, 207, 133, .09);
  border: 1px solid rgba(241, 207, 133, .18);
}

body.setup-fest .telefon .skarm {
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .72), 0 0 0 1px rgba(241, 207, 133, .16);
}

body.setup-fest .msg.good,
body.setup-fest .msg.bad {
  background-color: rgba(6, 27, 23, .96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
}

/* Nästa steg ligger alltid nära handen men skymmer inte innehållet. */
body.setup-fest .nav {
  position: sticky;
  z-index: 35;
  bottom: 14px;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid rgba(241, 211, 151, .17);
  border-radius: 9px;
  background: rgba(5, 20, 17, .9);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .38);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

body.setup-fest .nav .go,
body.setup-fest .nav .fram {
  min-height: 54px;
  font-size: 15px;
}

body.setup-fest .nav .ghost {
  min-width: 150px;
}

body.setup-fest ::selection {
  color: #211621;
  background: #f1cf85;
}

body.setup-fest * {
  scrollbar-color: rgba(241, 207, 133, .35) transparent;
}

@media (max-width: 720px) {
  body.setup-fest {
    padding: 10px 10px 78px;
  }

  body.setup-fest .wrap {
    gap: 15px;
  }

  body.setup-fest .wrap > .row:first-child {
    /* Inte klistrat i telefonen: sidhuvudet bryts på två rader och tog en
       sjättedel av skärmen medan man rullade. Handlingarna finns i
       knappraden längst ner. */
    position: static;
    top: 8px;
    min-height: 64px;
    padding: 10px 11px;
    border-radius: 8px;
  }

  body.setup-fest .marke .ring {
    width: 35px;
    height: 35px;
  }

  body.setup-fest .marke .ring svg {
    width: 21px;
    height: 21px;
  }

  body.setup-fest h1 {
    font-size: 28px;
  }

  body.setup-fest h1 small {
    display: none;
  }

  body.setup-fest a.adv {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0;
  }

  body.setup-fest a.adv::before {
    content: "•••";
    font-size: 15px;
    letter-spacing: .15em;
  }

  body.setup-fest .card,
  body.setup-fest .card[data-step] {
    padding: 24px 19px 27px;
    border-radius: 10px;
  }

  body.setup-fest h2 {
    font-size: 28px;
  }

  body.setup-fest .laterbox,
  body.setup-fest #ai-box {
    padding: 17px;
  }

  body.setup-fest .nav {
    bottom: 8px;
    padding: 8px;
  }

  body.setup-fest .nav .ghost {
    min-width: 0;
    flex: .65;
  }

  body.setup-fest .nav .go,
  body.setup-fest .nav .fram {
    min-height: 50px;
  }
}

@media (max-width: 820px) {
  /* Enkelkolumn: arbetsytan först, Gästens värld under. Produktions-
     stegen blir en horisontellt skrollbar rad — fortfarande samma knappar. */
  body.setup-fest #wiz.studio {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  body.setup-fest #wiz.studio.hide { display: none; }

  body.setup-fest #produktion {
    position: sticky;
    top: 78px;
    z-index: 38;
    padding: 9px 10px;
    border: 1px solid rgba(241, 211, 151, .16);
    border-radius: 7px;
    background: rgba(7, 23, 20, .93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body.setup-fest .prodrubrik { display: none; }

  body.setup-fest .steps {
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.setup-fest .steps::-webkit-scrollbar { display: none; }

  body.setup-fest .sdot { flex: none; width: auto; padding: 7px 10px; }
  body.setup-fest .sdot .sn { max-width: 96px; font-size: 12.5px; }
  body.setup-fest .sdot .sl { width: 22px; height: 22px; }

  body.setup-fest #gastvarld { position: static; }
  body.setup-fest #gvFrame { height: min(600px, 78vh); }
  body.setup-fest #gvOppna { display: inline-flex; }
}

@media (max-width: 480px) {
  body.setup-fest .grid2 {
    grid-template-columns: 1fr;
  }

  body.setup-fest #themes {
    grid-template-columns: 1fr;
  }

  body.setup-fest .sdot { padding: 8px 10px; }
  body.setup-fest .sdot .sn { font-size: 12.5px; }
  body.setup-fest .gv-ram { padding: 7px; }
  body.setup-fest .gv-tom { inset: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  body.setup-fest::before {
    animation: none;
  }

  body.setup-fest .gv-prick {
    animation: none;
  }

  body.setup-fest .go,
  body.setup-fest .ghost,
  body.setup-fest a.adv {
    transition: none;
  }
}


/* ---------- Genrepet: kompakt centrerat säkerhetsflöde ---------- */
/* Deltagarlänkarna ("som gäst" · "Kvällsregi") föll till webbläsarens blå —
   det enda ostylade i hela scenografin. Guld, som alla andra handlingar. */
body.setup-fest #gr-lankar a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(241, 207, 133, .45);
  text-underline-offset: 3px;
}

body.setup-fest #gr-lankar a:hover { text-decoration-color: var(--accent); }

body.setup-fest #gr-lankar a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

body.setup-fest #genrep {
  width: min(100%, 1040px);
  margin-inline: auto;
}

body.setup-fest .rollkort {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid rgba(168, 199, 185, .2);
  border-radius: 7px;
  background: rgba(20, 59, 50, .6);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}

body.setup-fest .rollkort input { width: auto; margin-top: 3px; flex: none; }
body.setup-fest .rollkort b { display: block; font-size: 13.5px; }
body.setup-fest .rollkort .lede { margin: 2px 0 0; font-size: 12.5px; }

body.setup-fest .rollkort:hover { background: rgba(28, 74, 63, .7); }

/* Vald roll bär guldet — det är ett markerat val, precis dit guldlinjerna hör. */
body.setup-fest .rollkort:has(input:checked) {
  border-color: rgba(241, 207, 133, .55);
  background: rgba(241, 207, 133, .07);
}

body.setup-fest .rollkort:has(input:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
