@font-face {
  font-family: "Marguerite Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/MargueriteGrotesk2022-Regular.woff") format("woff");
}
@font-face {
  font-family: "Marguerite Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteGrotesk2022-Bold.woff") format("woff");
}
@font-face {
  font-family: "Marguerite Nestwärme Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Marguerite Nest Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Marguerite Nest Freiraum";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-FreiraumSchaffen.woff2") format("woff2");
}
@font-face {
  font-family: "Marguerite Nest Hinaus";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-HinausWachsen.woff2") format("woff2");
}
@font-face {
  font-family: "Marguerite Nest Einander";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-EinanderZuwenden.woff2") format("woff2");
}
@font-face {
  font-family: "Marguerite Nest Perspektive";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-PerpektiveWechseln.woff2") format("woff2");
}
@font-face {
  font-family: "Marguerite Nest Spielerisch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-SpielerischAgieren.woff2") format("woff2");
}
@font-face {
  font-family: "Marguerite Nest Zusammen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MargueriteNestwaerme-ZusammenWachsen.woff2") format("woff2");
}

:root {
  --panel: #11141b;
  --panel-2: #171b24;
  --panel-3: #202636;
  --line: rgba(255,255,255,.11);
  --text: #f2f4f8;
  --muted: rgba(242,244,248,.66);
  --yellow: #ffcb00;
  --cream: #f2e8de;
  --black: #111111;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; overflow: hidden; }
body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255,203,0,.08), transparent 36%),
    linear-gradient(315deg, rgba(128,128,89,.14), transparent 42%),
    #0d1016;
  color: var(--text);
  font: 14px/1.35 "Marguerite Grotesk", system-ui, sans-serif;
}

.creatorShell {
  height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
}

.creatorPanel {
  background: rgba(17,20,27,.98);
  border-right: 1px solid var(--line);
  padding: 16px;
  overflow: auto;
  min-height: 0;
}

.creatorHeader {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.creatorBrand { font-weight: 700; font-size: 18px; }
.creatorMode,
.previewMeta,
.secondaryLink,
.autosaveInfo,
.emptyInspector {
  color: var(--muted);
  font-size: 12px;
}

.creatorSection {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fieldLabel {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.fieldLabel:first-child { margin-top: 0; }

select,
input[type="text"],
input[type="number"],
input[type="file"],
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: 14px/1.25 "Marguerite Grotesk", system-ui, sans-serif;
  padding: 9px 10px;
}

textarea { min-height: 70px; resize: vertical; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-x;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.08);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #d7dce5;
  border: 1px solid rgba(17,20,27,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.08);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d7dce5;
  border: 1px solid rgba(17,20,27,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(215,220,229,.18);
}
input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(215,220,229,.18);
}

.controlGrid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.controlGrid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.rangeControl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 8px;
  align-items: center;
}
.rangeNumber {
  min-width: 0;
  width: 66px;
  padding: 7px 8px;
  text-align: right;
}

.schemeActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.guideToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.guideToggle input { accent-color: var(--yellow); }

.moduleList {
  display: grid;
  gap: 7px;
}
.moduleRow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}
.moduleRow[draggable="true"] { cursor: grab; }
.moduleRow.is-dragging { opacity: .45; cursor: grabbing; }
.moduleRow.is-drop-target {
  background: rgba(255,203,0,.12);
  outline: 1px dashed rgba(255,203,0,.65);
}
.moduleDrag {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -2px;
  user-select: none;
}
.moduleSelect,
.moduleToggle,
.miniButton,
.iconButton {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: 700 12px/1 "Marguerite Grotesk", system-ui, sans-serif;
  padding: 8px 9px;
  cursor: pointer;
}
.moduleSelect {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.moduleSelect.is-selected {
  border-color: rgba(255,203,0,.85);
  background: rgba(255,203,0,.12);
}
.moduleToggle[aria-pressed="false"] { opacity: .45; }
.moduleLock {
  color: var(--muted);
  font-size: 12px;
}

.chipRow,
.candidateGrid,
.modularChecklist {
  display: grid;
  gap: 7px;
}
.chipRow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.moduleChip,
.moduleCheck,
.candidateButton,
.modularStatus,
.modularSuggestion {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: 700 12px/1.2 "Marguerite Grotesk", system-ui, sans-serif;
  padding: 8px 9px;
}
.moduleChip.is-locked {
  color: var(--yellow);
  background: rgba(255,203,0,.10);
}
.moduleCheck {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.moduleCheck input { accent-color: var(--yellow); }
.candidateGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.candidateButton {
  cursor: pointer;
  text-align: left;
}
.candidateButton.is-active {
  border-color: rgba(255,203,0,.9);
  background: rgba(255,203,0,.13);
}
.modularStatus--green { border-color: rgba(102, 214, 146, .45); }
.modularStatus--yellow { border-color: rgba(255, 203, 0, .70); }
.modularStatus--red,
.modularSuggestion { border-color: rgba(248, 93, 28, .65); }

.buttonGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#mediaFields .controlGrid {
  display: none;
}
.primaryButton,
.secondaryButton {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  font: 700 14px/1 "Marguerite Grotesk", system-ui, sans-serif;
  padding: 12px 13px;
  cursor: pointer;
  text-align: center;
}
.secondaryButton {
  border: 1px solid rgba(255,255,255,.14);
  background: var(--panel-3);
  color: var(--text);
}
.fileButton { display: block; }
.autosaveInfo { margin-top: 10px; }

.inspectorTitle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.inspectorTitle strong { font-size: 14px; }
.inspectorBadge {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 11px;
}
.swatchGroups {
  display: grid;
  gap: 10px;
}
.swatchGroups--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.swatchGroup {
  display: grid;
  gap: 5px;
}
.swatchGroup__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: uppercase;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22px, 22px));
  gap: 5px;
}
.swatches--compact {
  grid-template-columns: repeat(auto-fit, minmax(16px, 16px));
  gap: 4px;
}
.swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  cursor: pointer;
}
.swatches--compact .swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.swatch.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,203,0,.85); }
.zGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.zButton.is-active,
.miniButton.is-active {
  border-color: rgba(255,203,0,.85);
  background: rgba(255,203,0,.13);
}
.dangerButton {
  border-color: rgba(248,93,28,.55);
  color: #ffb49a;
}

.warnings {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}
.warning {
  border: 1px solid rgba(255,203,0,.32);
  background: rgba(255,203,0,.10);
  color: #ffe896;
  border-radius: 8px;
  padding: 8px 9px;
  font-size: 12px;
}

.previewArea {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px;
  overflow: hidden;
}
.previewToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}
.secondaryLink {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.canvasFrame {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 2px;
}
.canvasStage {
  position: relative;
  width: min(100%, calc((100vh - 100px) * var(--canvas-ratio, .8)));
  max-height: calc(100vh - 100px);
  aspect-ratio: var(--canvas-aspect, 4 / 5);
  display: block;
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
#postCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cream);
  cursor: default;
  touch-action: none;
}
#postCanvas.is-dragging { cursor: grabbing; }

.inlineTextEditor {
  position: absolute;
  z-index: 4;
  margin: 0;
  border: 2px solid #00a8ff;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  color: #111;
  resize: none;
  outline: 0;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  overflow: hidden;
}
.inlineTextTools {
  position: absolute;
  z-index: 5;
  display: flex;
  gap: 6px;
  transform: translateY(-100%);
  padding-bottom: 6px;
}
.inlineTextTools[hidden] { display: none; }
.canvasElementTools {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: flex-start;
  max-width: calc(100% - 16px);
  padding: 8px;
  border-radius: 12px;
  background: rgba(17,20,27,.84);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 38px rgba(0,0,0,.30);
  max-height: min(42vh, calc(100% - 16px));
  overflow: auto;
}
.canvasElementTools[hidden] { display: none; }
.canvasElementTools input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  accent-color: #ffcb00;
}
.canvasElementTools input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffcb00;
  border: 2px solid #11141b;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  cursor: pointer;
}
.canvasElementTools input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffcb00;
  border: 2px solid #11141b;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  cursor: pointer;
}
.canvasElementTools input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.canvasElementTools select {
  width: auto;
  min-width: 94px;
  max-width: 140px;
  padding: 7px 8px;
}
.compactSelect {
  margin-top: 8px;
}
.guideToggle--stacked {
  margin-top: 12px;
}
.miniTextInput {
  width: 112px;
  min-width: 88px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(8,10,14,.46);
  color: var(--text);
  padding: 8px 9px;
  font: inherit;
  font-weight: 700;
}
.miniCheck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: rgba(242,244,248,.86);
  font-size: 12px;
  font-weight: 700;
}
.miniCheck input {
  margin: 0;
}
.dangerMini {
  border-color: rgba(255,126,29,.55);
  color: #ffd6c2;
}
.canvasElementTools [data-text-size] {
  width: 84px;
}
.canvasElementTools [data-text-align] {
  width: 112px;
}
.inlineRange {
  display: grid;
  grid-template-columns: auto minmax(112px, 128px);
  align-items: center;
  gap: 8px;
  min-width: 168px;
}
.inlineRange span {
  color: rgba(242,244,248,.78);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.toolCard {
  display: grid;
  gap: 10px;
  min-width: min(760px, calc(100vw - 56px));
}
.toolCard__top {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.toolCard__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.toolSection {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.toolSection__label {
  color: rgba(242,244,248,.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.toolSection__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toolSection--date,
.toolSection--partner {
  padding: 2px 0;
}
.toolDivider {
  width: 1px;
  min-height: 74px;
  background: rgba(255,255,255,.12);
}
.toolPalette {
  display: grid;
  gap: 5px;
  min-width: 156px;
}
.toolPalette__label {
  color: rgba(242,244,248,.80);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.toolPalette .swatchBlock {
  gap: 6px;
}
.toolPalette .swatchGroupTitle {
  font-size: 10px;
}
.cornerMiniSet {
  display: inline-flex;
  gap: 4px;
}
.cornerMiniSet .miniButton {
  min-width: 28px;
  padding: 7px 8px;
}
.cornerRectPicker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 24px);
  grid-template-rows: repeat(2, 18px);
  width: 48px;
  min-width: 48px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.cornerRectPicker__quad {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.cornerRectPicker__quad.is-active {
  background: rgba(255,203,0,.88);
}
.cornerRectPicker__quad--tl {
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cornerRectPicker__quad--tr {
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cornerRectPicker__quad--bl {
  border-right: 1px solid rgba(255,255,255,.12);
}
.toolHint {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: rgba(242,244,248,.70);
  font-size: 11px;
  font-weight: 700;
}
.inspectorDetails {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  padding: 10px;
}
.inspectorDetails summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}
.modal__panel {
  position: relative;
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #11141b;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.modal__panel--headline {
  width: min(1100px, calc(100vw - 40px));
  height: min(720px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.modal__header,
.modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal__head {
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.modal__title { font-weight: 700; font-size: 18px; }
.modal__meta,
.modal__sub,
.designerHint { color: var(--muted); font-size: 12px; }
.modal__actions input[type="text"] {
  width: 190px;
}
.modal__actions .primaryButton,
.modal__actions .secondaryButton,
.designer__left .primaryButton,
.designer__left .secondaryButton {
  width: auto;
}
.modal__body {
  min-height: 0;
  overflow: hidden;
}
.designer {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
}
.designer__left {
  min-width: 0;
  padding: 16px;
  overflow: auto;
}
.designer__right {
  border-left: 1px solid rgba(255,255,255,.08);
  padding: 12px;
  overflow: auto;
}
.designer__headline {
  min-height: 180px;
  padding: 16px;
  margin: 14px 0 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: #e9eef7;
  font-family: "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif;
  font-size: 54px;
  line-height: .98;
  letter-spacing: 0;
  word-spacing: 0;
  font-kerning: none;
}
.designer__headline [data-ch] {
  display: inline-block;
  cursor: pointer;
  border-radius: 5px;
}
.designer__headline [data-ch].is-selected,
.designer__headline [data-ch]:hover {
  background: rgba(255,203,0,.28);
}
.designer__headline .headlineWord,
.h1 .headlineWord {
  display: inline;
  white-space: nowrap;
}
.designer__headline .ch,
.h1 .ch {
  display: inline-block;
}
.nw-fallback {
  font-family: "Marguerite Grotesk", Arial, sans-serif;
  font-weight: 700;
}
.g--bold { font-family: "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif; }
.g--freiraum { font-family: "Marguerite Nest Freiraum", "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif; }
.g--hinaus { font-family: "Marguerite Nest Hinaus", "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif; }
.g--einander { font-family: "Marguerite Nest Einander", "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif; }
.g--perspektive { font-family: "Marguerite Nest Perspektive", "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif; }
.g--spielerisch { font-family: "Marguerite Nest Spielerisch", "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif; }
.g--zusammen { font-family: "Marguerite Nest Zusammen", "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif; }
.charStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.charButton {
  position: relative;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--panel-2);
  color: var(--text);
  font-family: "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif;
  cursor: pointer;
}
.charButton.is-active {
  border-color: rgba(255,203,0,.9);
  background: rgba(255,203,0,.15);
}
.charButton.is-locked {
  border-color: rgba(248,93,28,.85);
  box-shadow: inset 0 0 0 1px rgba(248,93,28,.55);
}
.charButton.is-locked::after {
  content: "🔒";
  position: absolute;
  font-size: 9px;
  margin: -16px 0 0 -6px;
}
.autoLayoutRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}
.autoLayoutRow .secondaryButton { flex: 1 1 auto; }
.autoLayoutRow .secondaryButton.is-active {
  border-color: rgba(248,93,28,.9);
  background: rgba(248,93,28,.16);
}
.designer__headline .ch.is-locked {
  text-decoration: underline dotted rgba(248,93,28,.8);
  text-underline-offset: 4px;
}
.headlineAltStrip,
.altStrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.altButton,
.altBtn,
.glyphButton {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.altButton,
.altBtn {
  min-height: 58px;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}
.altButton.is-active,
.altBtn.is-active,
.glyphButton.is-active {
  border-color: rgba(255,203,0,.9);
  background: rgba(255,203,0,.14);
}
.altButton__label,
.altBtn__label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.altButton__glyph,
.altBtn__glyph,
.glyphButton {
  font-family: "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif;
  font-size: 28px;
  line-height: 1;
}
.headlineGlyphGrid,
.glyphGrid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
  overflow: auto;
  margin-top: 12px;
  padding-right: 4px;
}
.glyphButton,
.glyph {
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-family: "Marguerite Nestwärme Bold", "Marguerite Nest Bold", "Marguerite Grotesk", sans-serif;
  font-size: 26px;
  user-select: none;
}
.glyph--alternate {
  grid-template-rows: 1fr auto;
  gap: 5px;
  min-height: 78px;
}
.glyph__mark {
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: .9;
}
.glyph__label {
  font-family: "Marguerite Grotesk", system-ui, sans-serif;
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  text-transform: uppercase;
}
.glyph--ligature .glyph__mark {
  font-size: 28px;
}

@media (max-width: 900px) {
  html, body { overflow: auto; }
  .creatorShell { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .creatorPanel {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .previewArea { min-height: 70vh; overflow: visible; }
  .buttonGrid { grid-template-columns: 1fr; }
}
