.studio-section {
  padding-block: clamp(70px,8.15vw,124px);
  border-top: 1px solid #3a4b40;
}
.studio-section .heading-row { margin-bottom: clamp(18px,3vw,39px) }
.studio-section .heading-row > p { padding-bottom: .48em; flex: 0 1 32ch }
.studio-section .heading-row h2 { margin-bottom: .12em }
.studio-grid { display: grid; align-items: stretch; gap: 15px; min-width: 0 }
.studio-panel {
  min-width: 0;
  padding: clamp(16px,2.4vw,32px);
  border: 1px solid #536b5b;
  border-radius: 18px;
  background: linear-gradient(145deg,#21362b,#192921 70%);
  box-shadow: inset 0 1px #e8f7e00a,0 16px 38px #0b171225;
}
.studio-note { color: var(--muted); font-size: 13px; line-height: 1.52 }
.studio-panel label { display: block; font-size: 14px; font-weight: 640 }
.studio-panel .field { margin-top: 6px }
.studio-actions { flex-wrap: wrap; gap: 7px }
.studio-actions .button { min-height: 43px }
.studio-result { position: relative; display: grid; align-content: end; justify-items: start; gap: 11px; min-width: 0; padding: clamp(16px,2.5vw,30px) }
.studio-result pre { max-width: 100%; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #f4edda }
.studio-result pre:empty::before { content: "Your text appears here"; color: #c9d6c5; font: 16px/1.35 var(--body) }

.sets-section { background: radial-gradient(ellipse at 82% 45%,#293e33,transparent 60%),#17241e }
.sets-grid { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr) }
.sets-picker { display: grid; align-content: center; gap: clamp(13px,2vw,23px) }
.studio-tabs { padding: 5px; border: 1px solid #536e5b; border-radius: 12px; background: #121e18; width: fit-content; max-width: 100% }
.studio-tabs .chip { border-radius: 8px; border-color: transparent }
.studio-tabs .chip:not([aria-pressed=true]) { background: transparent }
.set-options { display: grid; gap: 8px }
.set-option, .letter-option {
  min-width: 0;
  display: grid;
  align-items: center;
  justify-content: start;
  gap: 4px;
  padding: 11px 14px;
  border: 1px solid #516c5a;
  border-radius: 10px;
  background: #192b22;
  text-align: left;
  transition: background .18s,border-color .18s;
}
.set-option { min-height: 83px; grid-template-columns: minmax(0,.75fr) minmax(0,1fr); gap: 5px }
.set-option > span, .letter-option > span { color: #e0e8d8; font-size: 13px; font-weight: 620 }
.set-option strong, .letter-option strong { color: var(--mint); font: 500 clamp(20px,2.2vw,36px)/1.2 system-ui,'Segoe UI Symbol',sans-serif; white-space: pre-wrap; overflow-wrap: anywhere }
.set-option strong { justify-self: end; text-align: right }
.set-option:hover, .letter-option:hover { background: #2d4738; border-color: #8ba78a }
.set-option[aria-pressed=true], .letter-option[aria-pressed=true] { background: linear-gradient(144deg,#355440,#2a4032); border-color: #abc69f; box-shadow: inset 2px 0 #cce8b9 }
.set-preview {
  --set-glow: #5a765d;
  --set-base: #263a2d;
  position: relative;
  display: grid;
  grid-template-rows: minmax(234px,1fr) auto;
  overflow: hidden;
  min-width: 0;
  min-height: 460px;
  border: 1px solid #718a71;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 21%,var(--set-glow),var(--set-base) 67%);
  box-shadow: inset 0 1px #e9f1d633,0 22px 49px #0c1b1354;
}
.set-preview[data-tone=night] { --set-glow: #57677e; --set-base: #283242; border-color: #7b8fa5 }
.set-preview[data-tone=warm] { --set-glow: #8b6355; --set-base: #493434; border-color: #ad8170 }
.set-preview[data-tone=minimal] { --set-glow: #6e766e; --set-base: #303c38; border-color: #969e8e }
.set-art { position: relative; isolation: isolate }
.set-art::before { content: ""; position: absolute; inset: 9% 20%; border-radius: 50%; border: 1px solid #e6ecd751; transform: rotate(-11deg); box-shadow: 0 0 0 13px #e1f2c814; background: radial-gradient(ellipse at 40% 5%,#f5f3c624,transparent 70%) }
.set-art::after { content: ""; position: absolute; inset: 76% 25% 3%; z-index: -1; background: radial-gradient(ellipse,#090f0c92,transparent 72%); filter: blur(6px) }
.set-art .scene-fallback { color: #e1eac4; font: clamp(116px,14vw,174px)/1 system-ui; text-shadow: 4px 9px #849f78,9px 15px #344c39; transform: rotate(-12deg); animation: float-symbol 6s ease-in-out infinite }
.set-preview .studio-result { background: #12201a91; border-top: 1px solid #b7cab140 }
.set-preview pre { min-height: 1.1em; font: 580 clamp(24px,4.2vw,58px)/1.07 system-ui,'Segoe UI Symbol',sans-serif }

.lettering-section { background: #1c2425 }
.lettering-section .eyebrow, .lettering-section .section-heading h2 em { color: #d5e5d4 }
.lettering-grid { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr) }
.lettering-input { background: linear-gradient(154deg,#283534,#1d2b2b); border-color: #5f7770 }
.lettering-input .studio-note { margin: 8px 0 13px }
.lettering-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px }
.letter-option { grid-template-columns: minmax(0,1fr); min-height: 74px; padding: 7px 9px; background: #1a2a29; border-color: #61796f }
.letter-option strong { font-size: clamp(17px,2vw,26px) }
.lettering-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  min-width: 0;
  min-height: 446px;
  border: 1px solid #7e9a88;
  border-radius: 18px 18px 48px 18px;
  background: radial-gradient(ellipse at 72% 32%,#596e65,#304b42 58%,#253b32);
}
.lettering-watermark { position: absolute; z-index: -1; top: -5%; right: 3%; color: #e6eac43b; font: 400 clamp(150px,24vw,345px)/1 var(--serif); letter-spacing: -.082em; transform: rotate(-8deg); pointer-events: none }
.lettering-preview::after { content: ""; position: absolute; inset: 9% 5%; z-index: -1; border-block: 1px solid #eef2dc3d; transform: rotate(-9deg); pointer-events: none }
.lettering-preview pre { font: clamp(23px,3.55vw,48px)/1.2 system-ui,'Segoe UI Symbol',sans-serif; min-height: 1.2em }

.composer-section { background: radial-gradient(ellipse at 79% 35%,#3e4632,transparent 63%),#1d2b22 }
.composer-section .eyebrow, .composer-section .section-heading h2 em { color: #eadfb6 }
.composer-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr) }
.composer-input { display: grid; align-content: center; gap: 4px; min-height: 451px }
.composer-input label { color: #f1f2e6 }
.composer-input label:not(:first-child) { margin-top: 8px }
.composer-input label small { color: #bac7b8; padding-left: 4px; font-size: 11px; font-weight: 500 }
.composer-input .field { margin-top: 1px }
.composer-preview {
  display: grid;
  grid-template-rows: auto minmax(235px,1fr) auto;
  gap: clamp(15px,2.1vw,27px);
  min-width: 0;
  padding: clamp(15px,3vw,38px);
  border: 1px solid #e2e7cb;
  border-radius: 20px;
  background: radial-gradient(ellipse at 100% 0%,#d7dfbf,transparent 63%),#edeedc;
  color: #202f26;
  box-shadow: 0 5px #84977a,0 11px #556e56,0 27px 44px #0c1c135c;
}
.preview-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid #b3c1a9; color: #354d3a; font-size: 13px; font-weight: 650 }
.preview-bar output { font: 600 11px/1.25 var(--body); color: #495f49 }
.composer-preview pre { align-self: center; width: 100%; font: 520 clamp(16px,2vw,25px)/1.42 var(--body); white-space: pre-wrap; overflow-wrap: anywhere }
.composer-preview pre:empty::before { content: "Your caption appears here"; color: #526851; font-size: 16px }
.composer-preview .button-mint { background: #294735; border-color: #3e634d; color: #f5f4e4; box-shadow: inset 0 1px #d6e7c63b,0 4px 9px #23382922 }
.composer-preview .button-mint:hover { background: #385640 }
.composer-preview .button-mint[data-copied=true] > span[aria-hidden=true]::after { color: #f5f4e4 }
.composer-preview .button-quiet { background: #f2f1dc; border-color: #9ba990; color: #243c2d; box-shadow: none }
.composer-preview .button-quiet:hover { background: #dce7ca }

.shelf-section { background: #222a24 }
.shelf-section .section-heading h2 em { color: #ecd3a0 }
.shelf-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr) }
.starter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px }
.starter-card {
  --starter-bg: #314a39;
  --starter-border: #7c977c;
  --starter-mark: #ddedb8;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  justify-items: start;
  align-content: end;
  gap: 8px;
  min-width: 0;
  min-height: 396px;
  overflow: hidden;
  padding: clamp(11px,1.35vw,19px);
  border: 1px solid var(--starter-border);
  border-radius: 16px;
  background: radial-gradient(ellipse at 44% 21%,#e4edce23,transparent 61%),var(--starter-bg);
}
.starter-card[data-tone=night] { --starter-bg:#303d4b; --starter-border:#708797; --starter-mark:#dce5f0 }
.starter-card[data-tone=warm] { --starter-bg:#58443c; --starter-border:#9a8271; --starter-mark:#f8d8a7 }
.starter-mark { place-self: center; color: var(--starter-mark); font: clamp(60px,7vw,92px)/1 system-ui; text-shadow: 2px 5px #101d1a8f,6px 10px 17px #0a110c; transform: rotate(-10deg) }
.starter-card h3, .saved-heading h3 { font: 710 clamp(18px,2.05vw,28px)/1 var(--display); letter-spacing: -.03em }
.starter-card p { color: #f1e8d9; line-height: 1.36; font-size: 13px; overflow-wrap: anywhere }
.starter-card .button { background: #142218a3; border-color: #bac9ae81; margin-top: 5px }
.starter-card .button:hover { background: #304838 }
.saved-panel { display: flex; flex-direction: column; align-items: start; min-height: 0 }
.saved-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding-bottom: 12px; border-bottom: 1px solid #617d67 }
.saved-heading span { flex: none; padding: 3px 7px; border-radius: 6px; background: #17271e; color: #cadcc4; font: 12px/1.5 monospace }
#saved-empty { color: #c5d0c3; margin: 13px 0 }
.saved-panel > .text-link { margin-top: auto; padding-top: 13px }
.saved-captions { display: grid; gap: 6px; width: 100%; max-height: 295px; margin: 8px 0 0; padding: 2px 3px 2px 0; list-style: none; overflow: auto }
.saved-captions:empty { display: none }
.saved-caption { min-width: 0; padding: 8px; border: 1px solid #597462; border-radius: 8px; background: #15251d }
.saved-caption p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f0eee1; font-size: 13px; font-weight: 640; margin-bottom: 4px }
.saved-actions { display: flex; flex-wrap: wrap; gap: 4px }
.saved-actions .button { min-height: 31px; padding: 4px 7px; font-size: 12px }
.saved-actions .button:focus-visible { outline-offset: 1px }

.guide-section { background: radial-gradient(ellipse at 20% 68%,#273b31,transparent 60%),#17251e }
.guide-grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr) }
.guide-grid .section-heading > .button { margin-top: 16px }
.guide-questions { border: 1px solid #617b68; border-radius: 17px; overflow: hidden; background: #13241b91 }
.guide-questions details { border-bottom: 1px solid #465f50 }
.guide-questions details:last-child { border-bottom: 0 }
.guide-questions details[open] { background: #304a39 }
.guide-questions summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 57px; padding: 11px clamp(12px,2.3vw,25px); cursor: pointer; list-style: none; font-size: 15px; font-weight: 620 }
.guide-questions summary::-webkit-details-marker { display: none }
.guide-questions summary::after { content: "+"; color: var(--mint); font: 23px/1 var(--body) }
.guide-questions details[open] summary::after { content: "−" }
.guide-questions summary:focus-visible { outline-offset: -4px }
.guide-questions details p { max-width: 65ch; padding: 0 clamp(12px,2.3vw,25px) 15px; color: #d3dfcf; font-size: 14px; line-height: 1.55 }

@media (min-width: 1081px) and (min-height: 1000px) {
  .studio-section { padding-block: clamp(119px,12.5vh,154px) }
  .set-preview, .lettering-preview, .composer-input { min-height: 510px }
  .starter-card { min-height: 440px }
}
@media (max-width: 790px) {
  .studio-section { padding-block: 46px }
  .studio-section .heading-row { align-items: start; flex-direction: column; gap: 5px; margin-bottom: 15px }
  .studio-section .heading-row > p { flex: auto; padding-bottom: 0; font-size: 14px }
  .studio-grid, .guide-grid { grid-template-columns: minmax(0,1fr); gap: 9px }
  .studio-panel { padding: 12px }
  .studio-result { gap: 7px; padding: 12px }
  .studio-actions { gap: 6px }
  .studio-actions .button { min-height: 40px; padding-inline: 9px; font-size: 13px }
  .set-option { min-height: 46px; padding: 7px 9px }
  .set-preview { min-height: auto; grid-template-rows: minmax(149px,26vw) auto }
  .sets-picker { gap: 8px }
  .set-options { gap: 4px }
  .lettering-input .studio-note { margin: 6px 0 8px; font-size: 12px }
  .lettering-input textarea { min-height: 57px; height: 57px }
  .lettering-options { gap: 4px }
  .letter-option { min-height: 48px; padding: 4px 6px; gap: 1px }
  .letter-option > span { font-size: 11px }
  .lettering-preview { min-height: 165px; border-radius: 13px 13px 27px 13px }
  .lettering-watermark { right: 3%; top: -8%; font-size: 135px }
  .composer-input { min-height: 0 }
  .composer-input label { font-size: 12px }
  .composer-input label:not(:first-child) { margin-top: 4px }
  .composer-input .field { min-height: 37px; padding-block: 5px }
  .composer-input textarea { min-height: 68px; height: 68px }
  .composer-preview { grid-template-rows: auto minmax(112px,1fr) auto; gap: 11px; padding: 12px }
  .composer-preview pre { font-size: 15px }
  .starter-grid { gap: 4px }
  .starter-card { min-height: 166px; padding: 6px; border-radius: 9px; gap: 5px }
  .starter-mark { font-size: 48px }
  .starter-card h3 { font-size: clamp(14px,3.8vw,20px) }
  .starter-card p { font-size: 11px }
  .starter-card .button { min-height: 33px; font-size: 11px; padding: 4px 5px; gap: 3px }
  .guide-grid { gap: 13px }
  .guide-grid .section-heading > .button { min-height: 40px; margin-top: 10px }
  .guide-questions summary { min-height: 46px; font-size: 14px }
  .guide-questions details p { font-size: 13px; padding-bottom: 11px }
}
@media (max-width: 345px) {
  .studio-tabs .chip { padding-inline: 5px; min-height: 29px; font-size: 12px }
  .studio-actions .button { font-size: 12px }
  .starter-card .button span { display: none }
}
@media (max-width: 450px) {
  .studio-section { padding-block: 36px }
  .set-preview { grid-template-rows: 130px auto }
  .lettering-preview { min-height: 149px }
  .starter-card { min-height: 151px }
}

.layout-section { background: radial-gradient(ellipse at 68% 41%,#453c2b,transparent 68%),#212821 }
.layout-section .eyebrow, .layout-section .section-heading h2 em { color: #edd7a7 }
.layout-grid { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr) }
.layout-controls { display: grid; align-content: center; justify-items: start; gap: clamp(14px,2.2vw,27px); background: linear-gradient(142deg,#2d3629,#1e2a23); border-color: #6b7e66 }
.layout-label { margin: 0 0 7px; color: #edf0e1; font-size: 14px; font-weight: 640 }
.layout-adjust { width: min(100%,355px) }
.layout-adjust .layout-range-label { display: flex; justify-content: space-between; align-items: center; gap: 8px }
.layout-range-label output { color: #f0dcac; font: 12px/1.3 var(--body) }
.layout-adjust input[type=range] { margin-top: 12px; accent-color: #e4c98f }
.layout-preview {
  --layout-light: #806846;
  --layout-dark: #382f24;
  --layout-accent: #ffe9b7;
  position: relative;
  display: grid;
  grid-template-rows: minmax(235px,1fr) auto;
  overflow: hidden;
  min-width: 0;
  min-height: 455px;
  border: 1px solid #967d57;
  border-radius: 21px;
  background: radial-gradient(ellipse at 54% 24%,var(--layout-light),var(--layout-dark) 75%);
  box-shadow: inset 0 1px #fbebc734,0 20px 44px #12170f64;
}
.layout-preview[data-tone=starlight] { --layout-light: #536279; --layout-dark: #27333e; --layout-accent: #eee5c4; border-color: #8493a5 }
.layout-preview[data-tone=ribbon] { --layout-light: #8b6157; --layout-dark: #423435; --layout-accent: #ffe0cd; border-color: #a57d72 }
.layout-preview[data-tone=clean] { --layout-light: #5c786d; --layout-dark: #263c33; --layout-accent: #e0efcd; border-color: #7a9a8a }
.layout-art { position: relative; isolation: isolate }
.layout-art::before {
  content: "";
  position: absolute;
  inset: 10% 16% 7%;
  z-index: -1;
  border: 1px solid #fff3cb48;
  border-radius: 50%;
  box-shadow: 0 0 0 10px #f9e4b811,inset 0 0 34px #fff2c11a;
  transform: rotate(-7deg);
}
.layout-art::after {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  background: radial-gradient(circle,#fff3cc46 1px,transparent 1.35px) 0 0 / 13px 13px;
  mask-image: radial-gradient(ellipse,#000,transparent 74%);
}
.layout-fallback { display: flex; justify-content: center; align-items: center; gap: clamp(13px,4vw,47px); white-space: nowrap; color: var(--layout-accent); text-shadow: 3px 7px #271d168c,5px 12px 14px #151e14; font: clamp(33px,5vw,61px)/1 system-ui }
.layout-fallback span:nth-child(2) { font-size: 1.75em; animation: float-symbol 6s ease-in-out infinite }
.layout-result { background: #151e18b0; border-top: 1px solid #eee3c041 }
.layout-result pre { color: var(--layout-accent); min-height: 1.15em; font: clamp(20px,3vw,43px)/1.15 system-ui,'Segoe UI Symbol',sans-serif }

.inspector-section { background: radial-gradient(ellipse at 78% 38%,#293f3d,transparent 65%),#192725 }
.inspector-section .eyebrow, .inspector-section .section-heading h2 em { color: #cfe4d7 }
.inspector-grid { grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr) }
.inspector-input { display: grid; align-content: center; gap: 8px; background: linear-gradient(145deg,#283b36,#1d2c27); border-color: #648475 }
.inspector-input .field { margin: 0 }
.inspect-samples { margin: 8px 0 13px }
.inspector-preview {
  display: grid;
  align-content: center;
  gap: clamp(9px,1.4vw,18px);
  min-width: 0;
  min-height: 440px;
  padding: clamp(14px,2.45vw,32px);
  border: 1px solid #6a8c80;
  border-radius: 20px;
  background: linear-gradient(#d9fae80d 1px,transparent 1px) 0 0 / 28px 28px,linear-gradient(90deg,#d9fae80d 1px,transparent 1px) 0 0 / 28px 28px,radial-gradient(ellipse at 93% 4%,#48635c,#213632 77%);
  box-shadow: inset 0 1px #cceedd26,0 16px 29px #101c1a5b;
}
.inspect-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  margin: 0;
}
.inspect-stats > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 9px;
  min-width: 0;
  padding: clamp(7px,1.2vw,14px);
  border: 1px solid #7a9a8f;
  border-radius: 9px;
  background: #182e27e8;
}
.inspect-stats dt { color: #d7e4d7; font-size: clamp(11px,1.13vw,15px); line-height: 1.25 }
.inspect-stats dd { margin: 0; color: #e9f0cf; font: 720 clamp(20px,3vw,33px)/1 var(--display) }
.inspect-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(118px,1fr));
  align-items: stretch;
  gap: 7px;
  max-height: 282px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  scrollbar-color: #799285 #243a31;
}
.inspect-tile {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 91px;
  padding: 9px;
  border: 1px solid #719282;
  border-radius: 8px;
  background: #253f36f5;
}
.inspect-tile[data-mark=true] { background: #4a4534; border-color: #8a7f60 }
.inspect-glyph { min-width: 0; font: 26px/1.15 system-ui,'Segoe UI Symbol',sans-serif; color: #e2efd9; overflow-wrap: anywhere }
.inspect-tile[data-mark=true] .inspect-glyph { color: #ffe3a7 }
.inspect-tile code { min-width: 0; color: #e0eddc; font-size: 11px; white-space: normal; overflow-wrap: anywhere }
.inspect-mark-name { color: #f3e2b9; font-size: 11px; font-weight: 650; line-height: 1.2 }
#inspect-note { color: #dae5dc }
.guide-questions .text-link { display: inline; font-size: inherit }

@media (min-width:1081px) and (min-height:1000px) {
  .layout-preview, .inspector-preview { min-height: 492px }
}
@media (max-width:790px) {
  .layout-grid, .inspector-grid { grid-template-columns: minmax(0,1fr) }
  .layout-controls { gap: 11px }
  .layout-preview { min-height: 0; grid-template-rows: minmax(135px,25vw) auto }
  .inspector-preview { min-height: 0 }
  .inspect-tiles { grid-template-columns: repeat(auto-fill,minmax(85px,1fr)); max-height: 225px; gap: 5px }
  .inspect-tile { min-height: 75px; padding: 6px }
  .inspect-glyph { font-size: 23px }
  .inspect-samples { margin: 4px 0 6px }
}
