@font-face {
  font-family: "Blur";
  src:
    url("../font/Blur-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ExposureItalicTrial";
  src:
    url("../font/ExposureItalicTrial[-30].otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "VCR OSD Mono";
  src:
    url("../font/VCR_OSD_MONO_1.001.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #d6d3d4;
  --ink: #2f2f2f;
  --muted: #6b6b6b;
  --line: #595959;
  --red: #d0121b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Oxanium", sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }

::selection {
  background: #dd000d;
  color: #ffffff;
}

::-moz-selection {
  background: #dd000d;
  color: #ffffff;
}

/* Shared header */
.metaTopbar {
  position: relative;
  z-index: 6;
  height: 31px;
  margin: 30px 30px 0 30px;
}

.metaLink,
.metaContrib,
.metaNav a {
  position: absolute;
  top: 0;
  margin: 0;
  color: #595959;
  font-size: 17px;
  line-height: 17px;
  mix-blend-mode: difference;
  word-wrap: break-word;
}

.metaHeadline {
  position: absolute;
  top: 0;
  margin: 0;
  color: #595959;
  font-size: 17px;
  line-height: 17px;
  mix-blend-mode: difference;
  word-wrap: break-word;
}

.metaLink,
.metaNav a,
.metaHeadline {
  font-family: "Blur", "Oxanium", sans-serif;
  font-weight: 500;
}

.metaArchive {
  left: 0;
  text-align: center;
}

.metaContrib {
  left: 235px;
  top: 1px;
  font-family: "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  font-weight: 400;
  text-align: center;
}

.metaHeadline {
  left: 400px;
  width: min(863px, calc(100% - 540px));
  height: 31px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.06px;
  font-family: "Blur", "Oxanium", sans-serif;
  font-weight: 500;
}

body.homeArchive .metaHeadline {
  font-size: 15px;
  line-height: 15px;
}

.metaNav {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.metaNav a {
  position: static;
  text-align: center;
}

.metaLink:hover,
.metaLink:focus-visible,
.metaNav a:hover,
.metaNav a:focus-visible {
  color: #dd000d;
}

.metaLink.active,
.metaNav a.active {
  color: #dd000d;
}

.metaContrib {
  display: none;
}

body.homeArchive .metaContrib {
  display: block;
  position: fixed;
  left: auto;
  top: auto;
  right: 30px;
  bottom: 30px;
  z-index: 12;
  mix-blend-mode: normal;
  text-align: right;
}

body.dataPage {
  background: var(--bg);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

body.dataPage .pageFrame {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* Landing */
body.landing, body.about, body.storiesPage { background: var(--bg); }

body.about::before {
  display: none;
}

body.storiesPage::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--bg);
  z-index: 29;
  pointer-events: none;
}

.pageFrame {
  min-height: 100vh;
  background: var(--bg);
  border: 0;
  padding: 0;
}

.landingFrame {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.landingAboutMain {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landingBlurGraphic {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(1240px, 92vw);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  filter: none;
  opacity: 1;
  z-index: 1;
}

.landingOverlayText {
  position: absolute;
  top: clamp(20px, 18vh, 20px);
  left: 30px;
  right: 30px;
  z-index: 3;
  margin: 0;
  max-width: 66.666vw;
  color: #111;
  text-align: left;
  text-transform: uppercase;
  font: 500 clamp(24px, 2.8vw, 52px) / 1.02 "Blur", "Oxanium", sans-serif;
  letter-spacing: 0.01em;
}

.landingEnterCenter {
  position: absolute;
  left: 30px;
  bottom: 30px;
  transform: none;
  z-index: 4;
  display: block;
  width: 182.75px;
  height: 90.74px;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.landingEnterCenter::after {
  content: none;
  display: none;
}

.landingEnterWrap {
  position: relative;
  width: 182.75px;
  height: 90.74px;
}

.landingEnterSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.landingEnterWord {
  position: absolute;
  left: 19.75px;
  top: 20.85px;
  width: 163px;
  height: 53px;
  color: #000;
  font: 500 48px/48px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.landingEnterCenter:hover .landingEnterWord,
.landingEnterCenter:focus-visible .landingEnterWord {
  color: #dd000d;
}

.landingEnterCenter:hover,
.landingEnterCenter:focus-visible {
  background: transparent;
  border-color: transparent;
}

.landingBgBlur {
  position: absolute;
  inset: -140px;
  filter: blur(1.6px);
  background:
    radial-gradient(circle at 22% 34%, rgba(110,110,110,.24), rgba(110,110,110,0) 45%),
    radial-gradient(circle at 72% 42%, rgba(120,120,120,.20), rgba(120,120,120,0) 48%),
    radial-gradient(circle at 45% 72%, rgba(90,90,90,.16), rgba(90,90,90,0) 44%);
}

.landingBlob {
  position: absolute;
  border-radius: 999px;
  background: rgba(92,92,92,.28);
}

.landingBgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.96;
  mix-blend-mode: screen;
}

.landingWordmark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #dd000d;
  line-height: .92;
  letter-spacing: .02em;
  font-size: clamp(48px, 9.33vw, 134px);
  white-space: nowrap;
  text-align: center;
}

.landingWordmark .blurWords {
  font-family: "Blur", "Oxanium", sans-serif;
  font-weight: 500;
}

.landingWordmark .uteriWord {
  font-family: "ExposureItalicTrial", "Blur", "Oxanium", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.landingEnter {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  border-radius: 20px;
  background: #000;
  color: #fff;
  font: 200 clamp(16px, 1.85vw, 27px) "Oxanium", sans-serif;
  text-decoration: none;
}

.landingEnter:hover,
.landingEnter:focus,
.landingEnter:active,
.landingEnter:visited {
  background: #000;
  color: #fff;
}

.landingFoot {
  position: absolute;
  left: 4.4%;
  bottom: 2.6%;
  width: 67%;
  margin: 0;
  z-index: 2;
  color: #000;
  text-transform: uppercase;
  letter-spacing: .1px;
  font: 500 clamp(12px, 1.1vw, 16px) "Blur", "Oxanium", sans-serif;
  line-height: 1.1;
}

/* About continues using shared hero layout */
.hero {
  margin: 36px 30px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  min-height: calc(100vh - 140px);
}

.heroLeft h2 {
  margin: 0 0 12px;
  font: 400 clamp(18px, 1.5vw, 28px) "Oxanium", sans-serif;
}

.heroLeft p {
  margin: 0;
  color: #5c5c5c;
  font: 400 clamp(14px, 1.05vw, 20px) "Oxanium", sans-serif;
  white-space: pre-line;
}

.heroActions { margin-top: 22px; display: flex; gap: 10px; }

.btn {
  border: 1px solid rgba(75,75,75,.35);
  background: rgba(255,255,255,.22);
  color: #393939;
  font: 500 12px "Oxanium", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
}

.btn.primary {
  background: #4d4d4d;
  border-color: #4d4d4d;
  color: #e9e9e9;
}

.heroRight {
  position: relative;
  min-height: 420px;
  border: 3px solid transparent;
}

.heroRight::before,
.heroRight::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #474747;
  pointer-events: none;
}

.heroRight::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.heroRight::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* About background canvas */
.aboutFrame {
  position: relative;
  overflow: visible;
  min-height: 100vh;
}

.aboutStickyHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: var(--bg);
}

.aboutMain {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 84px 30px 30px 30px;
}

.aboutSvgMain {
  position: relative;
  display: block;
}

.aboutGraffitiLayer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.aboutGraffitiCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: blur(14px);
  opacity: 0.92;
}


.aboutDesc {
  position: relative;
  z-index: 3;
  margin: 70px 12px 0 12px;
  max-width: min(980px, 82vw);
  color: #1e1e1e;
  text-align: left;
  text-transform: uppercase;
  font: 500 clamp(14px, 1.35vw, 22px) / 1.12 "Blur", "Oxanium", sans-serif;
  letter-spacing: 0.01em;
}

.aboutLongCopy {
  text-transform: none;
  max-width: min(1060px, 84vw);
  margin-top: 24px;
  padding-bottom: 40px;
  font: 500 clamp(20px, 1.9vw, 34px) / 1.12 "Blur", "Oxanium", sans-serif;
  letter-spacing: 0;
}

.aboutLongCopy h2 {
  margin: 0 0 18px 0;
  font: inherit;
  font-weight: 500;
}

.aboutLead {
  margin: 0 0 22px 0;
  max-width: min(980px, 80vw);
  font: 500 clamp(28px, 3.2vw, 58px) / 0.96 "Blur", "Oxanium", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.aboutLongCopy strong {
  font-weight: 500;
}

.aboutKicker {
  margin-top: 10px;
  font: 500 clamp(18px, 1.45vw, 28px) / 1.08 "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
}

.about .metaTopbar {
  position: relative;
  z-index: 41;
  background: var(--bg);
  margin: 30px 30px 0 30px;
  padding: 0;
  height: 31px;
}

.about .metaHeadline {
  display: none;
}

.about .metaLink,
.about .metaContrib,
.about .metaNav a {
  top: 0;
  mix-blend-mode: normal;
}

.about .metaNav a.active {
  color: #dd000d;
}

.about .metaLink:hover,
.about .metaLink:focus-visible,
.about .metaNav a:hover,
.about .metaNav a:focus-visible {
  color: #dd000d;
}

.storiesMain {
  min-height: 100vh;
  display: block;
  padding: 122px 30px 30px 30px;
}

.storiesPage .metaTopbar {
  position: fixed;
  top: 30px;
  left: 30px;
  right: 30px;
  width: auto;
  z-index: 30;
  background: var(--bg);
  margin: 0;
  padding: 0;
  height: 31px;
}

.storiesPage .metaNav a.active {
  color: #dd000d;
}

.storiesPage .metaHeadline {
  display: none;
}

.storiesPage .metaLink,
.storiesPage .metaContrib,
.storiesPage .metaHeadline,
.storiesPage .metaNav a {
  top: 0;
  mix-blend-mode: normal;
}

.storiesPage .metaLink:hover,
.storiesPage .metaLink:focus-visible,
.storiesPage .metaNav a:hover,
.storiesPage .metaNav a:focus-visible {
  color: #dd000d;
}

.storiesShell {
  min-height: calc(100vh - 136px);
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.storiesToolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: fixed;
  left: 25px;
  top: 102px;
  z-index: 25;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.storiesModeBtn {
  appearance: none;
  border: 1px solid rgba(50, 50, 50, 0.4);
  border-radius: 12px;
  background: transparent;
  color: #232323;
  padding: 5px 12px;
  font: 500 14px/14px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.storiesModeBtn:hover,
.storiesModeBtn:focus-visible {
  border-color: #dd000d;
  color: #dd000d;
}

.storiesModeBtn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.storiesHoverHint {
  min-height: 16px;
  color: #5a5a5a;
  font: 400 12px/12px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
  transition: color 120ms ease;
}

.storiesHoverHint.hovered {
  color: #dd000d;
}

.storiesPage .storiesHoverHint {
  position: fixed;
  left: 29px;
  width: 124px;
  max-width: 124px;
  top: auto;
  bottom: 26px;
  z-index: 40;
  min-height: 0;
  pointer-events: none;
  white-space: normal;
  line-height: 1;
  font-size: 23.37px;
}

.storiesStage {
  min-height: 0;
  overflow: visible;
}

.storiesStage.contribuitiView,
.storiesStage.contributiView {
  display: grid;
  gap: 84px;
  padding: 0 36px 0 258px;
}

.contribRow {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 0;
  align-items: start;
}

.contribId {
  color: #b8b8b8;
  opacity: 1;
  font: 400 20px/20px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  justify-self: start;
  padding-top: 0;
}

.contribText {
  color: #000;
  font: 500 36px/36px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.contribText .storiesToken {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: var(--tok-w, 400);
  color: rgba(20, 20, 20, var(--tok-o, 0.38));
}

.storiesStage.cloudView {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-content: flex-start;
  padding: 8px 36px 8px 352px;
}

.cloudSplitRow {
  align-items: start;
}

.cloudSplitView .contribId {
  visibility: hidden;
}

.cloudSplitText {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px 14px;
}

.storiesToken {
  color: rgba(20, 20, 20, var(--tok-o, 0.25));
  font-family: "Blur", "Oxanium", sans-serif;
  font-size: clamp(18px, 2.25vw, 48px);
  font-weight: var(--tok-w, 420);
  line-height: 1.03;
  text-transform: uppercase;
  transition: color 120ms ease;
}

.storiesToken.cloudToken {
  white-space: nowrap;
}

.storiesCount {
  display: inline-block;
  margin-left: 4px;
  vertical-align: super;
  color: rgba(20, 20, 20, 0.45);
  font: 400 10px/10px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
}

.storiesToken:hover {
  color: #dd000d;
}

.storiesToken.selected {
  color: #dd000d;
}

.storyCard {
  border: 1px solid rgba(50, 50, 50, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  padding: 10px;
  white-space: pre-line;
  color: #2b2b2b;
  font: 400 14px/1.25 "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
}

.storiesCopy {
  margin: 0;
  max-width: 860px;
  color: #000;
  text-align: center;
  text-transform: uppercase;
  font: 500 clamp(18px, 2.2vw, 34px) / 1.12 "Blur", "Oxanium", sans-serif;
  letter-spacing: 0.06px;
}

/* Home */
body.generate { background: var(--bg); }
body.generate {
  height: 100vh;
  overflow: hidden;
}
body.generate #panel {
  gap: 8px;
  padding: 10px 8px 8px 10px;
  overflow: visible;
}
body.generate .panelBlock {
  padding: 0 2px;
  --panel-content-left: 116px;
  --panel-content-width: 400px;
}
body.generate .panelBlock.gapLarge {
  margin-top: 4px;
}
body.generate .panelBlock.gapLarge:last-child {
  margin-top: auto;
}
body.generate .sliderStack {
  margin-top: 6px;
  gap: 6px;
}
body.generate .sRow {
  min-height: 20px;
  display: grid;
  grid-template-columns: 108px 1fr;
  column-gap: 10px;
  align-items: center;
}
body.generate #label {
  min-height: 123px;
  max-height: 123px;
  resize: none;
}
body.generate .toolBtns {
  display: none !important;
}
body.generate .chip {
  padding: 3.52px 10.57px;
  border-radius: 10.57px;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  font: 500 14.09px/14.09px "Blur", "Oxanium", sans-serif;
}
body.generate .chip.on {
  background: #000;
  border-color: #000;
  color: #fff;
}
body.generate .chip:hover,
body.generate .chip:focus-visible {
  background: #dd000d;
  border-color: #dd000d;
  color: #fff;
}
body.generate #tags.chips {
  max-width: 420px;
  gap: 8px;
}
body.generate #tags {
  display: grid;
  gap: 8px;
}
body.generate .tagPickerRow {
  display: grid;
  grid-template-columns: 214px 190px;
  gap: 8px;
  align-items: center;
  position: relative;
}
body.generate .tagPickerLabel {
  color: #5c5c5c;
  font: 400 16px/16px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
}
body.generate .tagPickerWrap {
  position: relative;
  justify-self: start;
  width: 190px;
  min-width: 190px;
  height: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
body.generate .tagPickerButton {
  position: relative;
  display: inline-block;
  appearance: none;
  border: 0;
  background: transparent;
  color: #5c5c5c;
  padding: 0 18px 0 0;
  text-align: left;
  text-decoration: underline;
  font: 400 14px/14px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  cursor: pointer;
}
body.generate .tagPickerButton:focus,
body.generate .tagPickerButton:focus-visible {
  outline: none;
}
body.generate .tagPickerButton::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-40%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b6b6b;
}
body.generate .tagPickerWrap.open .tagPickerButton::after {
  transform: translateY(-40%) rotate(180deg);
}
body.generate .tagPickerMenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 190px;
  right: auto;
  max-height: 170px;
  overflow-y: auto;
  border: 1px solid rgba(57, 57, 57, 0.28);
  border-radius: 12px;
  background: #d6d3d4;
  padding: 8px;
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 20;
}
body.generate .tagPickerWrap.open .tagPickerMenu {
  display: flex;
}
body.generate .tagPickerChip {
  appearance: none;
  border: 1px solid #000;
  border-radius: 10.57px;
  background: transparent;
  color: #000;
  padding: 3px 10px;
  font: 500 13px/13px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
body.generate .tagPickerChip.on {
  background: #000;
  border-color: #000;
  color: #fff;
}
body.generate .tagPickerChip:hover,
body.generate .tagPickerChip:focus-visible {
  background: #dd000d;
  border-color: #dd000d;
  color: #fff;
}
body.generate .tagCategory {
  display: grid;
  gap: 4px;
}
body.generate .tagCategoryTitle {
  margin: 0;
  color: #5c5c5c;
  font: 400 11px/11px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
}
body.generate .tagCategoryChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.generate .secTitle {
  font: 400 18px/18px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
}
body.generate .mono {
  font: 400 16px/16px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
}
body.generate .userBlock {
  width: 430px;
  height: 68px;
}
body.generate .userLabel {
  font: 400 18px/18px "Fragment Mono", monospace;
}
body.generate .userLabelAge {
  left: 112px;
  top: 22px;
}
body.generate .userLabelDiagnosis {
  left: 112px;
  top: 48px;
}
body.generate .userSelectWrap {
  width: 170px;
  height: 24px;
}
body.generate .userSelectButton {
  font: 400 14px/14px "Fragment Mono", monospace;
}
body.generate .userSelectWrapAge {
  left: 300px;
  top: 18px;
}
body.generate .userSelectWrapDiagnosis {
  left: 300px;
  top: 44px;
}

@media (min-width: 1200px) { 
  body.generate #app {
    overflow: visible;
  }

  body.generate #content { 
    position: relative; 
    width: 1526px;
    display: flex; 
    justify-content: space-between; 
    gap: 16px; 
    padding: 0; 
    height: 888px; 
    margin: 10px auto 0;
    align-items: start; 
    overflow: visible; 
    zoom: var(--generate-layout-scale, 1);
  } 

  body.generate #panel { 
    position: relative; 
    width: 610px; 
    height: 888px; 
    padding: 52px 56px 44px 56px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  body.generate .panelCorner,
  body.generate #viewer .corner {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 4px solid #393939;
    pointer-events: none;
  }

  body.generate .panelCorner.tl,
  body.generate #viewer .corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
  body.generate .panelCorner.tr,
  body.generate #viewer .corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
  body.generate .panelCorner.bl,
  body.generate #viewer .corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
  body.generate .panelCorner.br,
  body.generate #viewer .corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

  body.generate #panel .panelBlock {
    position: relative;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    --panel-content-left: 141px;
    --panel-content-width: 370px;
  }

  body.generate #panel .panelBlock.shapeBlock,
  body.generate #panel .panelBlock.userBlock,
  body.generate #panel .panelBlock.painBlock,
  body.generate #panel .panelBlock.traceBlock {
    top: auto;
  }

  body.generate .secTitle {
    margin: 0 0 6px;
    color: #000;
    font: 400 17px/17px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
    letter-spacing: 0;
    text-transform: none;
  }

  body.generate .mono {
    color: #5c5c5c;
    font: 400 16px/16px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
    letter-spacing: 0;
  }

  body.generate .shapeBlock .introCopy,
  body.generate .painBlock .introCopy,
  body.generate .traceBlock .introCopy {
    margin-top: 8px;
    margin-left: 0;
    max-width: 510px;
    color: #727272;
    font: 400 14px/14px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  }

  body.generate .shapeBlock .introCopy.shapeIntroCopy {
    margin-left: 0 !important;
    max-width: 510px;
  }

  body.generate .userBlock {
    width: 100%;
    height: 73px;
    overflow: visible;
  }

  body.generate .userBlock .userTitle {
    left: -10px;
    top: 0;
  }

  body.generate .userLabel {
    font: 400 16px/16px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  }

  body.generate .userSelectWrap {
    width: 182px;
    height: 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-width: 182px;
    justify-self: start;
  }

  body.generate .userLabelAge { left: 141px; top: 25px; }
  body.generate .userLabelDiagnosis { left: 141px; top: 51px; }

  body.generate .userSelectWrapAge { left: 293px; top: 20px; }
  body.generate .userSelectWrapDiagnosis { left: 293px; top: 52px; }

  body.generate .userSelectButton {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 0 18px 0 0;
    color: #5c5c5c;
    font: 400 14px/14px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
    text-decoration: underline;
    text-align: left;
  }

  body.generate .userSelectButton::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-40%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b6b6b;
    pointer-events: none;
  }

  body.generate .userSelectWrap.open .userSelectButton::after {
    transform: translateY(-40%) rotate(180deg);
  }

  body.generate .userSelectArrow {
    display: none;
  }

  body.generate .userSelectMenu {
    left: 0;
    right: auto;
    width: 182px;
    max-height: 170px;
    overflow-y: auto;
    border: 1px solid rgba(57, 57, 57, 0.28);
    border-radius: 12px;
    background: #d6d3d4;
    padding: 8px;
    box-shadow: none;
  }

  body.generate .userSelectOption {
    color: #5c5c5c;
    font: 400 13px/13px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
    text-decoration: none;
    padding: 4px 2px;
  }

  body.generate .shapeBlock .sliderStack {
    margin-top: 22px;
    margin-left: 141px;
    max-width: 370px;
    gap: 7px;
  }

  body.generate .sRow {
    min-height: 20px;
    display: grid;
    grid-template-columns: 108px 1fr;
    column-gap: 10px;
    align-items: center;
  }

  body.generate #tags.chips {
    margin-left: 141px;
    margin-top: 22px;
    max-width: 334px;
    max-height: none;
    display: grid;
    gap: 8px;
    position: relative;
    align-items: stretch;
    align-content: stretch;
    overflow: visible;
    padding: 0;
  }

  body.generate .chip {
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 10.57px;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font: 500 13px/13px "Blur", "Oxanium", sans-serif;
    max-width: 160px;
    white-space: nowrap;
  }

  body.generate .chip.on {
    background: #000;
    border-color: #000;
    color: #fff;
  }

  body.generate .tagsPanel {
    position: relative;
    margin-left: 141px;
    margin-top: 16px;
    width: 370px;
    height: auto;
  }

  body.generate .tagsPanel .tagPickerRow {
    grid-template-columns: 142px 182px;
    gap: 10px;
  }

  body.generate .tagsPanel .tagPickerWrap {
    width: 182px;
    min-width: 182px;
  }

  body.generate .tagsPanel .tagPickerMenu {
    width: 182px;
  }

  body.generate .tagsPanel #tags.chips {
    margin: 0;
    max-width: 100%;
    max-height: none;
    display: grid;
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  body.generate .addTagBtn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    border: 1px solid #000;
    background: #d6d3d4;
    color: #000;
    font: 500 14.09px/14.09px "Blur", "Oxanium", sans-serif;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.generate .traceInputWrap { 
    width: 370px; 
    margin-left: 141px; 
    margin-top: 16px; 
    grid-template-columns: 321px 41px; 
    gap: 8px; 
  } 

  body.generate .panelBlock.gapLarge {
    margin-top: 0;
  }

  body.generate #label {
    min-height: 90px;
    max-height: 90px;
    border: 0;
    border-radius: 10px;
    background: #aca9aa;
  }

  body.generate .traceSubmitRail {
    min-height: 90px;
    border-radius: 10px;
    background: #595959;
  }

  body.generate .status {
    display: none;
  }

  body.generate #stage { 
    position: relative; 
    width: 900px; 
    height: 888px; 
    padding: 0; 
    min-height: 0; 
    align-self: start; 
    justify-self: start; 
    overflow: hidden; 
  } 

  body.generate #viewer {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  body.generate #viewer::before, 
  body.generate #viewer::after { display: none; } 
} 

@supports not (zoom: 1) {
  @media (min-width: 1200px) {
    body.generate #content {
      transform-origin: top center;
      transform: scale(var(--generate-layout-scale, 1));
    }
  }
}

@media (min-width: 1200px) and (max-width: 1366px) {
  body.generate #panel .panelCorner.tr,
  body.generate #panel .panelCorner.br,
  body.generate #viewer .corner.tl,
  body.generate #viewer .corner.bl {
    display: none;
  }
}

#app {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  background: var(--bg);
  border: 0;
  overflow: hidden;
}








#content {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0 30px 24px 30px;
  overflow: hidden;
}

#panel {
  background: transparent;
  border: 0;
  padding: 16px 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  min-height: 0;
}

.secTitle {
  margin: 0 0 8px;
  color: #1f1f1f;
  font: 400 clamp(14px, 1.15vw, 24px) "Oxanium", sans-serif;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.mono {
  margin: 0;
  color: #5c5c5c;
  font: 400 clamp(12px, .95vw, 20px) "Oxanium", sans-serif;
  line-height: 1.12;
  letter-spacing: .01em;
  white-space: pre-line;
}

.panelBlock {
  padding: 0 6px;
  --panel-content-left: clamp(78px, 8.8vw, 132px);
  --panel-content-width: 470px;
}
.userBlock p.mono { margin-left: var(--panel-content-left); }
.shapeBlock .introCopy,
.shapeBlock .sliderStack { margin-left: var(--panel-content-left); }
.panelBlock.gapLarge { margin-top: 8px; }
.introCopy { margin-top: 8px; max-width: var(--panel-content-width); }
.shapeBlock .shapeIntroCopy,
body.generate .shapeBlock .introCopy.shapeIntroCopy {
  margin-left: 0 !important;
}

.userBlock {
  position: relative;
  width: 474px;
  height: 73px;
  z-index: 40;
  overflow: visible;
}

.userBlock .userTitle {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
}

.userFields {
  position: absolute;
  inset: 0;
}

.userLabel {
  position: absolute;
  margin: 0;
  color: #5c5c5c;
  font: 400 20px/20px "Fragment Mono", monospace;
}

.userLabelAge {
  left: 131px;
  top: 24px;
}

.userLabelDiagnosis {
  left: 131px;
  top: 53px;
}

.userSelectWrap {
  position: absolute;
  width: 190px;
  height: 26px;
  border-radius: 10px;
  background: #d6d3d4;
  border: 1px solid #b5b3b4;
  box-shadow: none;
  z-index: 41;
}

.userSelect {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.userSelectButton {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  padding: 0 24px 0 8px;
  color: #5c5c5c;
  font: 400 16px/16px "Fragment Mono", monospace;
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

.userSelectButton:focus,
.userSelectButton:focus-visible {
  outline: none;
}

.userSelectMenu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  padding: 6px;
  border-radius: 10px;
  background: #d6d3d4;
  border: 1px solid #b5b3b4;
  box-shadow: none;
  display: none;
  z-index: 42;
  max-height: none;
  overflow: visible;
}

.userSelectOption {
  width: 100%;
  border: 0;
  background: transparent;
  color: #5c5c5c;
  text-align: left;
  padding: 6px 6px;
  font: 400 14px/14px "Fragment Mono", monospace;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.userSelectOption:hover,
.userSelectOption:focus-visible {
  background: #c9c6c7;
  color: #2f2f2f;
}

.userSelectWrap.open .userSelectMenu {
  display: block;
}

.userSelectWrap.open {
  border-color: #8f8d8e;
  z-index: 80;
}

.userSelectWrap.open .userSelectArrow {
  transform: translateY(-30%) rotate(180deg);
}

.userSelectWrapAge {
  left: 367px;
  top: 20px;
}

.userSelectWrapDiagnosis {
  left: 367px;
  top: 52px;
}

.userSelectArrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-30%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #5c5c5c;
  pointer-events: none;
}

.sliderStack {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--panel-content-width);
}

.sRow {
  position: relative;
  min-height: 26px;
  display: grid;
  grid-template-columns: 108px 1fr;
  column-gap: 10px;
  align-items: center;
}
.sLabel {
  color: #727272;
  font: 400 16px/16px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
}
.sRow .v { display: none; }

input[type="range"], input[type="text"], textarea, select { width: 100%; }
input[type="text"], textarea, select {
  padding: 8px 10px;
  border: 1px solid rgba(80,80,80,.35);
  background: #aca9aa;
  color: #3a3a3a;
  font: 12px "Oxanium", sans-serif;
}

textarea { min-height: 123px; resize: vertical; border-radius: 10px; }

.traceInputWrap {
  width: var(--panel-content-width);
  margin-left: var(--panel-content-left);
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 45px;
  gap: 8px;
  align-items: stretch;
}

.traceHint {
  margin: 6px 0 8px var(--panel-content-left);
  max-width: var(--panel-content-width);
  color: #5c5c5c;
  font-size: 12px;
  line-height: 1.1;
}

.traceInputWrap #label {
  width: 100%;
}

.traceSubmitRail {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #595959;
  cursor: pointer;
  position: relative;
  min-height: 123px;
}

.traceSubmitRail:hover,
.traceSubmitRail:focus-visible {
  background: #dd000d;
}

.traceArrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-46%, -50%) rotate(45deg);
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
}

input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  height: 22px;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: #595959; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: #595959;
  border: 1px solid #2b2b2b;
  margin-top: -6px;
}
input[type="range"]::-moz-range-track { height: 3px; background: #595959; border: 0; }
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: #595959;
  border: 1px solid #2b2b2b;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 350px; }
.chip {
  padding: 5px 8px;
  border: 1px solid rgba(65,65,65,.25);
  background: rgba(214,211,212,.4);
  color: #3f3f3f;
  font: 400 10px "Oxanium", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
.chip.on { background: #646464; border-color: #4f4f4f; color: #efefef; }

#tags.chips {
  margin-left: var(--panel-content-left);
  max-width: var(--panel-content-width);
}

.tagsPanel {
  position: relative;
  margin-left: var(--panel-content-left);
  max-width: var(--panel-content-width);
}

.tagsPanel #tags.chips {
  margin-left: 0;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.addTagBtn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  border: 1px solid #000;
  background: #d6d3d4;
  color: #000;
  cursor: pointer;
}

.btnRow { display: flex; gap: 8px; margin-top: 10px; }
.status { margin-top: 4px; font-size: 11px; color: #5d5d5d; min-height: 16px; }

#stage {
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 0;
}

#viewer {
  position: relative;
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.viewerHint {
  position: absolute;
  left: 24px;
  bottom: 16px;
  margin: 0;
  max-width: min(640px, 78%);
  color: #5c5c5c;
  font: 400 11px/1.15 "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
  letter-spacing: 0;
  z-index: 3;
  pointer-events: none;
}

.viewerHelpModal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 232px;
  min-height: 66px;
  background: rgba(172, 169, 170, 0.54);
  border-radius: 10px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.viewerHelpModal p {
  margin: 0;
  color: #000;
  font: 400 12px/14px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

canvas { display: block; position: relative; z-index: 1; }

#viewer::before, #viewer::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #474747;
  pointer-events: none;
  z-index: 2;
}
#viewer::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
#viewer::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.corner { position: absolute; width: 24px; height: 24px; border: 3px solid #474747; pointer-events: none; z-index: 2; }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

#shapeMode, #baseShapeWrap, #shapeUnionWrap { display: none !important; }
#reset, #exportStl, #exportCsv { display: none !important; }
.hidden { display: none !important; }

.dcOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow: hidden;
  overscroll-behavior: contain;
}
.dcPanel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  background: #dedcdd;
  border: 0;
  color: #202020;
  font: 400 13px "Oxanium", sans-serif;
  padding: 0;
}
.dataShell {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100vh - 61px);
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px 12px 12px;
}
.dcHead {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 6px 0 8px 0;
  background: #dedcdd;
}
#dcMain {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.dcTitle { font: 500 20px "Blur", "Oxanium", sans-serif; }
.dcCount {
  color: #4e4e4e;
  font: 500 14px/14px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
}
.dcTools {
  position: sticky;
  top: 34px;
  z-index: 7;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px 0;
  background: #dedcdd;
}
.dcTableWrap {
  flex: 1;
  min-height: 0;
  height: auto;
  min-height: 240px;
  overflow: auto;
}
.dcContribWrap {
  height: min(38vh, 420px);
  min-height: 180px;
}
.dcKeywordsHead {
  margin-top: 12px;
}
.dcKeywordsTitle {
  font-size: 16px;
  line-height: 16px;
}
.dcKeywordsWrap {
  height: min(30vh, 320px);
  min-height: 160px;
}
.dcTable { width: 100%; border-collapse: collapse; background: #d2d0d1; }
.dcTable th, .dcTable td { border: 1px solid #7c7c7c; padding: 6px 8px; text-align: left; font-size: 12px; }
.dcTable th { background: #c3c1c2; }
.dcTable thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}
.dcAuth { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dcAuth label { font-size: 12px; color: #3e3e3e; }
.dcInput { max-width: 280px; }
.dcMsg { margin-top: 8px; color: #4b4b4b; font-size: 12px; }
.confirmPanel { width: min(520px, 100%); background: #dedcdd; border: 2px solid #2d2d2d; padding: 16px; }
.confirmText { font: 400 18px "Oxanium", sans-serif; color: #202020; margin: 0 0 14px; }
.confirmActions { display: flex; gap: 8px; justify-content: flex-end; }

.glassPanel {
  background: linear-gradient(145deg, rgba(255,255,255,.30), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 20px;
  padding: 18px 18px 16px;
}

.glassPanel .confirmText {
  color: #1f1f1f;
  text-wrap: balance;
}

.liquidConsentPanel {
  width: min(640px, 82vw);
  height: auto;
  min-height: 0;
  max-height: min(760px, 86vh);
  background: rgba(145, 145, 145, 0.54);
  border-radius: 30px;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 20px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.38);
  padding: 44px 38px 30px 38px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #000;
  overflow: hidden;
}

.liquidText {
  margin: 0;
  max-width: 744px;
  font: 500 24px/24px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
  letter-spacing: .10px;
}

.liquidTextSecondary {
  opacity: .94;
}

.liquidTextIntro {
  text-transform: uppercase;
  font-family: "Blur", "Oxanium", sans-serif;
}

.liquidTextVC {
  max-width: 860px;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: normal;
  font: 400 16px/1.18 "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
}

.liquidChoices {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: static;
  background: transparent;
  padding-top: 0;
}

#introModal .liquidChoices {
  justify-content: center;
  gap: 40px;
}

#shareModal .liquidChoices {
  justify-content: center;
  gap: 40px;
}

.liquidChoiceBtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #000;
  padding: 0;
  cursor: pointer;
  font: 500 24px/24px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
  letter-spacing: .10px;
}

.liquidChoiceBtn:hover,
.liquidChoiceBtn:focus-visible {
  color: #dd000d;
}

.tagModalInput {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #111;
  padding: 10px 12px;
  font: 400 18px/18px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
}

.tagModalInput::placeholder {
  color: rgba(25, 25, 25, 0.6);
}

@media (max-width: 980px) {
  body.landing {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  body.landing .pageFrame,
  body.landing .landingFrame,
  body.landing .landingAboutMain {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
  body.about::before {
    height: 16px;
  }
  body.storiesPage::before {
    height: 16px;
  }
  .metaTopbar {
    height: auto;
    min-height: 58px;
    margin: 16px 12px 0 12px;
  }
  .storiesPage .metaTopbar {
    position: fixed;
    top: 16px;
    left: 12px;
    right: 12px;
    width: auto;
    z-index: 30;
    background: var(--bg);
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 58px;
  }
  .storiesPage .metaLink,
  .storiesPage .metaContrib,
  .storiesPage .metaHeadline,
  .storiesPage .metaNav a {
    top: 0;
  }
  .metaContrib {
    left: 84px;
    top: 0;
    font-size: 13px;
    line-height: 13px;
  }
  .metaHeadline {
    left: 0;
    top: 20px;
    width: calc(100% - 116px);
    font-size: 13px;
    line-height: 13px;
    height: auto;
  }
  .metaNav {
    right: 0;
    gap: 12px;
  }
  .metaNav a,
  .metaLink {
    font-size: 13px;
    line-height: 13px;
  }
  .hero { margin: 18px 12px 12px; grid-template-columns: 1fr; min-height: auto; }
  .landingFrame { min-height: 100dvh; }
  .landingAboutMain { min-height: 100dvh; }
  .landingBlurGraphic { width: min(96vw, 980px); max-height: calc(100dvh - 96px); filter: none; }
  .landingOverlayText {
    top: clamp(52px, 8dvh, 94px);
    left: 16px;
    right: 16px;
    max-width: 94vw;
    font-size: clamp(19px, min(6.4vw, 4.8dvh), 34px);
    line-height: 0.98;
    letter-spacing: 0.005em;
  }
  .landingEnterCenter {
    left: 16px;
    bottom: max(44px, calc(22px + env(safe-area-inset-bottom)));
    width: 182.75px;
    height: 90.74px;
  }
  .landingEnterWord {
    left: 19.75px;
    top: 20.85px;
    font-size: 48px;
    line-height: 48px;
  }
  .landingWordmark { left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: clamp(44px, 12vw, 84px); max-width: 92%; white-space: normal; }
  .landingEnter { top: 57%; }
  .landingFoot { width: 90%; left: 5%; bottom: 3.5%; font-size: 12px; text-transform: none; }
  .landingBgBlur { inset: -100px; filter: blur(1.2px); }
  .aboutMain { min-height: calc(100vh - 64px); padding: 76px 12px 12px 12px; }
  .aboutGraffitiLayer { inset: 0; width: 100vw; height: 100vh; }
  .aboutDesc {
    margin: 62px 0 0 0;
    max-width: 96%;
    font-size: clamp(13px, 2.4vw, 18px);
    line-height: 1.24;
  }
  .aboutLongCopy {
    margin-top: 16px;
    max-width: 100%;
    font-size: clamp(16px, 4.8vw, 24px);
    line-height: 1.14;
  }
  .aboutLead {
    margin-bottom: 16px;
    max-width: 100%;
    font-size: clamp(22px, 8vw, 34px);
    line-height: 0.98;
  }
  .aboutKicker {
    font-size: clamp(14px, 4.4vw, 20px);
    line-height: 1.06;
  }
  .about .metaTopbar {
    position: relative;
    z-index: 41;
    background: var(--bg);
    margin: 16px 12px 0 12px;
    padding: 0;
    height: auto;
    min-height: 58px;
  }
  .about .metaLink,
  .about .metaContrib,
  .about .metaHeadline,
  .about .metaNav a {
    top: 0;
  }

  .storiesMain { min-height: 100vh; padding: 12px; }
  .storiesShell { min-height: calc(100vh - 112px); }
  .storiesToolbar {
    gap: 6px;
    flex-wrap: nowrap;
    left: 12px;
    bottom: 12px;
    padding: 0;
  }
  .storiesModeBtn { font-size: 12px; line-height: 12px; padding: 5px 10px; }
  .storiesHoverHint { font-size: 11px; line-height: 11px; }
  .storiesPage .storiesHoverHint {
    left: 12px;
    width: 58px;
    max-width: 58px;
    top: 84px;
    bottom: auto;
    font-size: 10px;
  }
  .storiesStage.contribuitiView,
  .storiesStage.contributiView { padding-left: 16px; gap: 18px; }
  .contribRow { grid-template-columns: 54px 1fr; gap: 18px; }
  .contribId { font-size: 22px; line-height: 22px; }
  .contribText { font-size: clamp(16px, 5vw, 28px); }
  .storiesToken { font-size: clamp(16px, 5vw, 28px); }
  .storiesCount { font-size: 9px; line-height: 9px; }
  .storiesCopy { font-size: clamp(16px, 5vw, 24px); }
  .storiesStage.cloudView { padding-left: 88px; }

  #app { grid-template-rows: auto 1fr; padding: 0; }
  #content { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0 10px 12px 10px; gap: 12px; }
  #panel { max-height: 52vh; padding: 12px 8px; overflow: hidden; }
  .secTitle { font-size: 16px; }
  .mono { font-size: 13px; }
  .panelBlock {
    --panel-content-left: 48px;
    --panel-content-width: calc(100% - 56px);
  }
  .userBlock .mono,
  .shapeBlock .introCopy,
  .shapeBlock .sliderStack { margin-left: 48px; }
  .userBlock {
    width: 100%;
    height: auto;
    min-height: 94px;
  }
  .userLabelAge { left: 48px; top: 28px; font-size: 16px; line-height: 16px; }
  .userLabelDiagnosis { left: 48px; top: 56px; font-size: 16px; line-height: 16px; }
  .userSelectWrap {
    width: 170px;
  }
  .userSelectWrapAge { left: 190px; top: 24px; }
  .userSelectWrapDiagnosis { left: 190px; top: 52px; }
  #stage { padding: 10px; }
  #viewer { width: 100%; height: min(58vh, 460px); min-height: 300px; }
}

/* Home archive page */
body.homeArchive {
  background: var(--bg);
  height: 100vh;
  overflow: hidden;
}

body.homeArchive .pageFrame {
  padding: 0;
  border: 0;
  background: var(--bg);
}

body.homeArchive .metaTopbar {
  position: relative;
  z-index: 6;
}

.archiveFrame {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.archiveHome {
  position: relative;
  height: 100%;
  min-height: 0;
  width: 100%;
  padding: 0;
}

.filterGrid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: flex-start;
  width: fit-content;
  max-width: none;
}

.filterCategory {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.filterCategory h3 {
  margin: 0;
  color: #595959;
  font: 500 12px/12px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
}

.filterCategoryTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.pill {
  border: 0;
  padding: 3.52px 10.57px;
  border-radius: 10.57px;
  background: transparent;
  color: #000;
  font-family: "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7.04px;
  text-align: center;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
}

.pill:hover,
.pill:focus-visible {
  background: #dd000d;
  color: #fff;
  border-color: #dd000d;
}

.pill.active {
  background: #000;
  color: #fff;
  border-color: transparent;
  outline: none;
}

.pill.active:hover,
.pill.active:focus-visible {
  background: #dd000d;
  color: #fff;
  border-color: #dd000d;
}

.archiveCount {
  margin-top: 0;
  align-self: flex-end;
  color: #595959;
  font: 500 30px "Blur", "Oxanium", sans-serif;
}

.archiveGallery {
  position: absolute;
  left: 0;
  right: 0;
  top: -86px;
  bottom: 0;
  background: transparent;
  border: 0;
  padding: 0;
  display: block;
  z-index: 1;
}

.archiveFooter {
  display: none;
}

.archiveFooter .filterGrid,
.archiveFooter .pill {
  pointer-events: auto;
}

.archiveGenerateBtn {
  position: absolute;
  left: 30px;
  bottom: 20px;
  transform: none;
  width: 200px;
  height: 62px;
  background: transparent;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font: 500 25px/40px "Blur", "Oxanium", sans-serif;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: auto;
}

.archiveGenerateLabel {
  display: inline-block;
  transform: none;
  letter-spacing: 0;
}

.archiveGenerateBtn::after {
  content: "";
  position: absolute;
  left: -5px;
  right: 35px;
  bottom: 7px;
  height: 13px;
  background: url("../button_generate.svg") left center / 100% 100% no-repeat;
  pointer-events: none;
}

.archiveGenerateBtn:hover,
.archiveGenerateBtn:focus-visible {
  color: #dd000d;
}


.archiveEntry {
  display: none;
}

.archiveEntry .muted {
  color: #6c6c6c;
}

.archiveStage {
  position: relative;
  height: 100%;
  border: 0;
  background: var(--bg);
  overflow: hidden;
}

.archiveStage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.archiveEmpty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c6c6c;
  font: 400 14px "Oxanium", sans-serif;
  text-align: center;
  padding: 20px;
}

.archiveHoverInfo {
  position: absolute;
  min-width: 220px;
  width: min(380px, 46vw);
  max-width: min(380px, 46vw);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(214, 211, 212, 0.94);
  color: #1f1f1f;
  font: 400 12px/1.2 "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
  white-space: pre-line;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.archiveHoverInfo .label {
  color: #5b5b5b;
}

.archiveExploreModal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 292px;
  min-height: 78px;
  background: rgba(172, 169, 170, 0.54);
  border-radius: 10px;
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
}

.archiveExploreModal p {
  margin: 0;
  color: #000;
  font: 400 12px/14px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.archiveEdgeLabels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.archiveEdgeLabel {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 8px;
  border: 1px solid rgba(221, 0, 13, 0.32);
  background: rgba(214, 211, 212, 0.88);
  color: #dd000d;
  font: 400 12px/1.05 "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  body.homeArchive .metaTopbar { margin: 16px 12px 0 12px; }
  .archiveHome {
    height: 100%;
    padding: 0;
  }
  .archiveFooter {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .filterGrid { width: auto; }
  .pill { width: auto; font-size: 14px; }
  .archiveGallery {
    left: 0;
    right: 0;
    top: -64px;
    bottom: 0;
  }
  .archiveStage { min-height: 0; }
  .archiveGenerateBtn {
    width: 126px;
    height: 48px;
    left: 12px;
    bottom: 10px;
    font-size: 22px;
    line-height: 22px;
  }
  .archiveGenerateBtn::after {
    left: -1px;
    right: 25px;
    bottom: 6px;
    height: 9px;
  }
}

/* Cross-device responsive hardening */
html, body {
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden !important;
  height: 100dvh;
  overscroll-behavior: none;
}

img, svg, canvas {
  max-width: 100%;
}

@media (max-width: 1199px) { 
  .metaTopbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
    height: auto;
    min-height: 28px;
  }

  .metaLink,
  .metaContrib,
  .metaHeadline,
  .metaNav a {
    position: static;
  }

  .metaHeadline {
    display: none;
  }

  .metaNav {
    position: static;
    justify-self: end;
    gap: 16px;
  }

  body.homeArchive .metaContrib {
    justify-self: center;
  }
}

@media (max-width: 1199px) {
  /* Generate: switch from rigid desktop frame to stacked responsive layout */
  body.generate {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  body.generate #app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: 20px;
  }

  body.generate #content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 0 14px 16px 14px;
    overflow: visible;
  }

  body.generate #panel {
    width: min(100%, 780px);
    height: auto;
    max-height: none;
    margin: 0 auto;
    padding: 14px 12px 14px 12px;
    overflow: visible;
    gap: 14px;
  }

  body.generate #panel .panelBlock {
    position: static !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    --panel-content-left: 0;
    --panel-content-width: 100%;
  }

  body.generate .panelCorner {
    display: none;
  }

  body.generate .userBlock {
    width: 100%;
    min-height: 112px;
    height: auto;
  }

  body.generate .userBlock .userTitle {
    position: static;
    margin-bottom: 12px;
  }

  body.generate .userFields {
    position: static;
    inset: auto;
    display: grid;
    grid-template-columns: minmax(104px, 130px) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
  }

  body.generate .userLabel,
  body.generate .userLabelAge,
  body.generate .userLabelDiagnosis,
  body.generate .userSelectWrapAge,
  body.generate .userSelectWrapDiagnosis {
    position: static !important;
    left: auto !important;
    top: auto !important;
  }

  body.generate .userLabel,
  body.generate .userLabelAge,
  body.generate .userLabelDiagnosis {
    justify-self: start;
    text-align: left;
    margin-left: 0 !important;
  }

  body.generate .userSelectWrap {
    width: 100%;
    max-width: 260px;
    height: 28px;
  }

  body.generate .shapeBlock .introCopy,
  body.generate .shapeBlock .sliderStack,
  body.generate #tags.chips,
  body.generate .tagsPanel,
  body.generate .traceInputWrap {
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.generate .shapeBlock .sliderStack {
    margin-top: 18px !important;
  }

  body.generate .tagPickerRow {
    grid-template-columns: minmax(92px, 130px) minmax(0, 1fr);
    gap: 8px;
  }

  body.generate .tagPickerWrap {
    width: 100%;
    min-width: 0;
  }

  body.generate .tagPickerMenu {
    width: 100%;
  }

  body.generate .traceInputWrap {
    grid-template-columns: 1fr 52px;
  }

  body.generate #label {
    min-height: 110px;
    max-height: 220px;
  }

  body.generate .traceSubmitRail {
    min-height: 110px;
  }

  body.generate #stage {
    width: min(100%, 780px);
    height: min(62vh, 540px);
    min-height: 320px;
    margin: 0 auto;
    padding: 0;
  }

  body.generate #viewer {
    width: 100%;
    height: 100%;
    min-height: 320px;
  }

  body.generate .viewerHint {
    left: 14px;
    right: 14px;
    max-width: none;
    bottom: 10px;
  }

  /* Home archive */
  body.homeArchive,
  body.homeArchive .pageFrame,
  .archiveFrame {
    height: 100dvh;
    min-height: 100dvh;
  }

  .archiveGallery {
    top: -72px;
  }

  .archiveHoverInfo {
    width: min(88vw, 360px);
    max-width: min(88vw, 360px);
  }

  /* Stories */
  .storiesMain {
    padding: 96px 16px 16px 16px;
  }

  .storiesShell {
    min-height: calc(100dvh - 110px);
  }

  .storiesStage.contribuitiView,
  .storiesStage.contributiView {
    padding-left: 120px;
    gap: 26px;
  }

  .storiesStage.cloudSplitView {
    padding-left: 120px;
    gap: 20px;
  }

  .storiesStage.cloudView {
    padding-left: 222px;
  }

  .contribRow {
    grid-template-columns: 70px 1fr;
    gap: 32px;
  }

  .contribText {
    font-size: clamp(18px, 3.1vw, 34px);
  }

  /* About */
  .aboutMain {
    min-height: calc(100dvh - 76px);
    padding: 84px 16px 16px 16px;
  }

  .aboutGraffitiLayer { inset: 0; width: 100vw; height: 100dvh; }

  .aboutDesc {
    margin: 58px 0 0 0;
    max-width: min(100%, 980px);
  }

  .aboutLongCopy {
    font-size: clamp(18px, 2.2vw, 30px);
  }

  .aboutLead {
    font-size: clamp(30px, 4.2vw, 56px);
  }

  /* Data center */
  body.dataPage {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  body.dataPage .pageFrame {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .dataShell {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 10px 12px 16px 12px;
  }

  .dcPanel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .dcTableWrap {
    height: auto;
    max-height: min(70dvh, 700px);
    overflow: auto;
  }
}

@media (min-width: 761px) and (max-width: 1199px) {
  .storiesToolbar {
    left: 16px;
    top: auto;
    bottom: 16px;
  }

  .storiesPage .storiesHoverHint {
    display: none;
  }
}

@media (max-width: 760px) {
  .metaTopbar {
    margin: 14px 12px 0 12px;
    column-gap: 8px;
  }

  .metaLink,
  .metaContrib,
  .metaNav a {
    font-size: 15px;
    line-height: 15px;
  }

  body.homeArchive .metaContrib {
    right: 12px;
    bottom: 12px;
  }

  .metaNav {
    gap: 10px;
  }

  body.generate #content {
    padding: 0 10px 12px 10px;
    gap: 10px;
  }

  body.generate #panel {
    padding: 10px 8px 12px 8px;
    gap: 10px;
  }

  body.generate .secTitle {
    font-size: 17px;
    line-height: 17px;
  }

  body.generate .mono {
    font-size: 15px;
    line-height: 15px;
  }

  body.generate .userFields {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  body.generate .userLabel {
    font-size: 15px;
    line-height: 15px;
  }

  body.generate .userSelectWrap {
    max-width: 100%;
  }

  body.generate .tagPickerRow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.generate .traceInputWrap {
    grid-template-columns: 1fr 48px;
  }

  body.generate #stage {
    height: min(52vh, 430px);
    min-height: 280px;
  }

  .archiveGenerateBtn {
    left: 12px;
    bottom: 12px;
    width: 122px;
    height: 44px;
    font-size: 20px;
    line-height: 20px;
  }

  .archiveGenerateBtn::after {
    left: -1px;
    right: 23px;
    bottom: 5px;
    height: 8px;
  }

  .archiveHoverInfo {
    width: min(90vw, 320px);
    max-width: min(90vw, 320px);
    font-size: 11px;
  }

  .storiesMain {
    padding: 92px 12px 12px 12px;
  }

  .storiesStage.contribuitiView,
  .storiesStage.contributiView {
    padding-left: 12px;
    gap: 16px;
  }

  .storiesStage.cloudSplitView {
    padding-left: 12px;
    gap: 14px;
  }

  .contribRow {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }

  .contribId {
    font-size: 20px;
    line-height: 20px;
  }

  .contribText {
    font-size: clamp(16px, 5.6vw, 26px);
    line-height: 1.12;
  }

  .storiesStage.cloudView {
    padding: 8px 12px 8px 80px;
  }

  .storiesToken {
    font-size: clamp(16px, 6vw, 28px);
  }

  .storiesStage.cloudSplitView .storiesToken {
    font-size: clamp(15px, 5.4vw, 24px);
    line-height: 1.08;
  }

  .storiesStage.cloudSplitView .cloudSplitText {
    gap: 8px 10px;
  }

  .storiesToken.cloudToken {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: calc(100vw - 130px);
  }

  .storiesToolbar {
    left: 12px;
    top: auto;
    bottom: 12px;
  }

  .storiesPage .storiesHoverHint {
    left: 12px;
    top: 64px;
    bottom: auto;
    width: 66px;
    max-width: 66px;
    line-height: 1.15;
    font-size: 11px;
  }

  .aboutMain {
    padding: 84px 12px 14px 12px;
  }

  .aboutGraffitiLayer { inset: 0; width: 100vw; height: 100dvh; }

  .aboutLongCopy {
    font-size: clamp(16px, 4.8vw, 24px);
    line-height: 1.14;
  }

  .aboutLead {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 0.98;
  }

  .dcOverlay {
    align-items: flex-start;
    padding: 10px;
  }

  .liquidConsentPanel {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
    padding: 20px 16px 14px 16px;
    gap: 14px;
  }

  .liquidTextIntro {
    font-size: clamp(22px, 7.8vw, 34px);
    line-height: 0.96;
  }

  .liquidTextVC {
    font-size: clamp(13px, 4.2vw, 18px);
    line-height: 1.16;
  }

  .liquidChoices {
    padding-top: 10px;
  }

  .liquidChoiceBtn {
    font-size: 22px;
    line-height: 22px;
  }
}

/* Generate mobile stability (order + overlap fixes) */
@media (max-width: 980px) {
  body.generate {
    min-height: 100dvh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.generate #app {
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  body.generate #content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 10px 14px 10px;
    overflow: visible;
  }

  body.generate #stage {
    order: 1;
    width: 100%;
    height: min(46vh, 420px);
    min-height: 280px;
    margin: 0;
    padding: 0;
  }

  body.generate #viewer {
    width: 100%;
    height: 100%;
    min-height: 280px;
  }

  body.generate #panel {
    order: 2;
    position: relative;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 8px 6px 12px 6px;
    gap: 12px;
  }

  body.generate #panel .panelBlock {
    position: static !important;
    width: 100% !important;
    left: auto !important;
    margin: 0 !important;
    --panel-content-left: 0;
    --panel-content-width: 100%;
  }

  body.generate .panelBlock.gapLarge {
    margin-top: 0 !important;
  }

  body.generate .userFields {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 4px;
    align-items: start;
  }

  body.generate .userBlock .userTitle {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 0 8px 0;
  }

  body.generate .userLabel,
  body.generate .userLabelAge,
  body.generate .userLabelDiagnosis,
  body.generate .userSelectWrapAge,
  body.generate .userSelectWrapDiagnosis {
    position: static !important;
    left: auto !important;
    top: auto !important;
  }

  body.generate .userSelectWrap {
    position: relative !important;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-self: start;
  }

  body.generate .userBlock .mono {
    margin-left: 0 !important;
  }

  body.generate .userSelectButton {
    position: relative;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 18px 0 0;
    font: 400 14px/14px "VCR OSD Mono", "Fragment Mono", "Oxanium", monospace;
    color: #5c5c5c;
    text-align: left;
    line-height: 1.1;
    text-decoration: underline;
  }

  body.generate .userSelectButton::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-40%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6b6b6b;
    pointer-events: none;
  }

  body.generate .userSelectArrow {
    display: none;
  }

  body.generate .userSelectMenu {
    left: 0;
    right: auto;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
  }

  body.generate .shapeBlock .introCopy,
  body.generate .shapeBlock .sliderStack,
  body.generate .tagsPanel,
  body.generate #tags.chips,
  body.generate .traceInputWrap {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.generate .shapeBlock .sliderStack {
    margin-top: 12px !important;
  }

  body.generate .tagsPanel {
    margin-top: 8px !important;
  }

  body.generate #tags {
    gap: 10px;
  }

  body.generate .tagPickerRow {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  body.generate .tagPickerWrap {
    width: 100%;
    min-width: 0;
    height: auto;
  }

  body.generate .tagPickerButton {
    width: 100%;
    min-height: 26px;
  }

  body.generate .tagPickerMenu {
    position: relative;
    top: 4px;
    left: 0;
    width: 100%;
    max-height: 180px;
    z-index: 30;
  }

  body.generate .traceInputWrap {
    grid-template-columns: 1fr 64px;
    gap: 8px;
  }

  body.generate #label {
    min-height: 116px;
    max-height: 240px;
  }

  body.generate .traceSubmitRail {
    min-height: 116px;
  }

  body.generate .viewerHint {
    left: 10px;
    right: 10px;
    bottom: 8px;
    max-width: none;
  }

  body.generate #viewer .corner {
    display: block;
  }

  body.generate .panelCorner {
    display: none !important;
  }

  body.generate #viewer::before {
    display: none;
  }
}

/* Generate: enforce identical arrow spacing for all "seleziona" controls */
body.generate .userSelectArrow {
  display: none !important;
}

body.generate .userSelectButton,
body.generate .tagPickerButton {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding-right: 24px !important;
  text-align: left !important;
}

body.generate .userSelectButton::after,
body.generate .tagPickerButton::after {
  right: 4px !important;
  transform: translateY(-40%) !important;
}
