:root {
  color-scheme:dark;
  --bg:#0b0e0c;
  --panel:rgba(16,21,18,.87);
  --text:#edf0e8;
  --muted:#939e92;
  --subtle:#667568;
  --line:rgba(183,202,176,.13);
  --accent:#d2b57b;
  --accent-rgb:210,181,123;
  --mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;
  --sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif
}

* {
  box-sizing:border-box
}

html,body {
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:var(--bg);
  color:var(--text);
  font:16px/1.5 var(--sans)
}

button,input,select {
  font:inherit
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent
}

button {
  color:inherit;
  cursor:pointer
}

button {
  border:0;
  background:none
}

button:disabled {
  cursor:wait;
  opacity:.45
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px
}

button:hover {
  color:var(--accent)
}

svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round
}

button svg {
  flex-shrink:0
}

.svg-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}

[hidden] {
  display:none!important
}

#scene {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  outline:none;
  cursor:grab
}

#scene:active {
  cursor:grabbing
}

.atmosphere {
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(8,12,10,.35),transparent 30%,transparent 70%,rgba(8,12,10,.12));
  z-index:1
}

.screen-grain {
  position:fixed;
  inset:0;
  z-index:10;
  pointer-events:none;
  opacity:.024;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E")
}

.interface {
  z-index:2;
  transition:opacity .35s,transform .35s
}

.topbar {
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:94px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(#0b100cba,#0b100c20)
}

.brand {
  display:flex;
  gap:13px;
  align-items:center;
  font-size:14px;
  letter-spacing:2px;
  font-weight:600;
  text-decoration:none;
  color:var(--text);
  line-height:1.6
}

.brand-mark {
  width:39px;
  height:43px;
  display:grid;
  place-items:center;
  color:var(--accent)
}

.brand-mark svg {
  width:37px;
  height:37px;
  stroke-width:1.15
}

.brand-sub {
  display:block;
  font-size:12px;
  letter-spacing:3.2px;
  font-weight:400;
  color:var(--muted)
}

.header-center {
  display:flex;
  align-items:center;
  gap:10px;
  font:12px var(--mono);
  letter-spacing:1.4px;
  color:var(--muted);
  margin-left:15px
}

.live-dot {
  width:5px;
  height:5px;
  display:inline-block;
  border-radius:50%;
  background:#9ab58b;
  box-shadow:0 0 9px #9ab58b50;
  flex-shrink:0
}

.header-actions {
  display:flex;
  align-items:center;
  gap:17px
}

.text-button {
  font-size:13px;
  color:var(--muted);
  padding:10px 0
}

.header-divider {
  height:18px;
  width:1px;
  background:var(--line)
}

.export-button {
  display:flex;
  gap:9px;
  align-items:center;
  border:1px solid #a3b19e30;
  border-radius:5px;
  padding:9px 14px;
  font-size:13px;
  background:#18201966
}

.export-button svg {
  width:16px;
  height:16px
}

.export-button:hover {
  border-color:var(--accent)
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:8px;
  border-radius:4px;
  color:#b5beb2;
  transition:background .2s,color .2s
}

.icon-button:hover {
  background:rgba(var(--accent-rgb),.08);
  color:var(--accent)
}

.icon-button[aria-pressed=true] {
  color:var(--accent);
  background:rgba(var(--accent-rgb),.12)
}

.icon-button.small {
  width:30px;
  height:30px;
  padding:6px
}

.intro {
  position:absolute;
  top:150px;
  left:45px;
  width:320px;
  pointer-events:none
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:8px;
  font:12px var(--mono);
  letter-spacing:2px;
  color:var(--accent)
}

.intro .eyebrow span {
  display:inline-block;
  width:20px;
  height:1px;
  background:var(--accent);
  opacity:.6
}

.intro h1 {
  font-size:clamp(44px,4.6vw,72px);
  font-weight:350;
  letter-spacing:-3.5px;
  line-height:1.08;
  margin:27px 0 22px;
  color:#e5eadf
}

.intro h1 em {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  color:var(--accent);
  letter-spacing:-2px
}

.intro p {
  font-size:13px;
  color:#899584;
  line-height:1.9;
  letter-spacing:1px
}

.intro-rule {
  width:35px;
  height:1px;
  background:#b2bd9f38;
  margin:29px 0 20px
}

.specimen-label {
  display:flex;
  align-items:center;
  gap:9px;
  font:12px var(--mono);
  letter-spacing:2px
}

.specimen-line {
  width:5px;
  height:5px;
  border:1px solid var(--accent);
  transform:rotate(45deg)
}

.specimen-kind {
  font:12px var(--sans);
  letter-spacing:1px;
  color:var(--muted);
  border-left:1px solid var(--line);
  padding-left:10px;
  margin-left:1px
}

.control-panel {
  position:absolute;
  right:34px;
  top:119px;
  width:286px;
  padding:23px 22px 0;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  box-shadow:0 15px 60px #0003;
  backdrop-filter:blur(24px);
  max-height:calc(100dvh - 210px);
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#52624b transparent
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.panel-heading .eyebrow {
  font-size:12px;
  letter-spacing:1.8px;
  color:#768473
}

.panel-heading h2 {
  font-size:19px;
  font-weight:450;
  letter-spacing:2px;
  margin:7px 0 0
}

.panel-tabs {
  display:flex;
  gap:25px;
  border-bottom:1px solid var(--line);
  margin:19px 0 22px
}

.panel-tabs button {
  position:relative;
  color:var(--muted);
  font-size:13px;
  letter-spacing:2px;
  padding:0 1px 12px
}

.panel-tabs button.active {
  color:var(--accent)
}

.panel-tabs button.active:after {
  content:'';
  position:absolute;
  height:2px;
  background:var(--accent);
  bottom:-1px;
  left:0;
  right:0
}

.control {
  margin-bottom:20px
}

.control label {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  color:#b6c0b1;
  margin-bottom:12px
}

.control output {
  font:12px var(--mono);
  color:var(--accent);
  letter-spacing:.3px
}

.control input[type=range] {
  --fill:50%;
  display:block;
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:3px;
  margin:8px 0 0;
  border-radius:2px;
  background:linear-gradient(90deg,var(--accent) var(--fill),#394134 var(--fill));
  cursor:pointer
}

.control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance:none;
  width:10px;
  height:10px;
  border:2px solid #1b2118;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 1px var(--accent)
}

.control input[type=range]::-moz-range-thumb {
  width:8px;
  height:8px;
  border:2px solid #1b2118;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 1px var(--accent)
}

.control input[type=range]:hover::-webkit-slider-thumb {
  box-shadow:0 0 0 1px var(--accent),0 0 0 5px rgba(var(--accent-rgb),.09)
}

.range-labels {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:#6f7c69;
  margin-top:10px
}

.seed-control {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:24px
}

.seed-control label {
  display:flex;
  justify-content:space-between;
  color:#9da995;
  font-size:12px;
  margin-bottom:10px
}

.seed-control label span {
  font:12px var(--mono);
  letter-spacing:1px;
  color:#697563
}

.seed-input {
  display:flex;
  align-items:center;
  height:36px;
  border:1px solid #a9b59d26;
  border-radius:4px;
  background:#080d0940
}

.seed-input input {
  min-width:0;
  width:100%;
  background:none;
  border:0;
  padding:7px 10px;
  color:#bcc7b2;
  font:12px var(--mono);
  appearance:textfield;
  -moz-appearance:textfield
}

.seed-input input::-webkit-inner-spin-button {
  appearance:none
}

.seed-input .icon-button {
  width:33px;
  height:32px;
  padding:8px
}

.primary-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  margin:12px 0 22px;
  padding:11px 14px;
  border:1px solid #c5ad7433;
  border-radius:4px;
  background:rgba(var(--accent-rgb),.12);
  font-size:12px;
  color:var(--accent);
  letter-spacing:1px;
  transition:background .2s
}

.primary-button svg {
  width:15px;
  height:15px
}

.primary-button:hover {
  background:rgba(var(--accent-rgb),.2)
}

.panel-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  margin:0 -22px;
  padding:13px 22px;
  background:#0a100b44;
  font-size:12px;
  color:#788571;
  letter-spacing:.5px
}

.path-badge {
  font:12px var(--mono);
  color:#99a58e;
  letter-spacing:.6px
}

.quality-field label {
  display:block;
  color:#b6c0b1;
  font-size:13px;
  margin-bottom:10px
}

.quality-field select {
  appearance:none;
  width:100%;
  font-size:12px;
  border:1px solid var(--line);
  border-radius:4px;
  padding:9px 28px 9px 10px;
  color:#c3ccbc;
  background:#151c16 url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2398a48d'/%3E%3C/svg%3E") no-repeat right 11px center
}

.panel-note {
  font-size:12px;
  line-height:1.8;
  color:#788571;
  margin:19px 0
}

.scene-controls {
  position:absolute;
  left:calc(50% - 30px);
  transform:translateX(-50%);
  bottom:206px;
  display:flex;
  align-items:center;
  gap:3px;
  background:rgba(15,21,16,.75);
  padding:3px 6px;
  border:1px solid var(--line);
  border-radius:6px;
  backdrop-filter:blur(15px)
}

.scene-controls .icon-button {
  width:34px;
  height:34px;
  padding:8px
}

.scene-controls svg {
  width:17px;
  height:17px
}

.toolbar-divider {
  height:16px;
  width:1px;
  background:var(--line);
  margin:0 3px
}

.collection {
  position:absolute;
  left:45px;
  bottom:72px;
  right:354px;
  max-width:850px
}

.collection-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  letter-spacing:1px;
  color:#98a58e;
  margin-bottom:12px
}

.collection-title span {
  font:12px var(--mono);
  letter-spacing:1.5px;
  color:#6c7b62
}

.preset-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px
}

.preset {
  position:relative;
  text-align:left;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  height:88px;
  padding:8px 10px;
  border:1px solid #a4b09c1b;
  border-radius:5px;
  background:linear-gradient(130deg,#141d1570,#0b110e66);
  overflow:hidden;
  color:#c6cfbd;
  transition:border-color .25s,background .25s
}

.preset:hover {
  border-color:rgba(var(--accent-rgb),.45);
  color:#e3e8de;
  background:#162017a0
}

.preset.active {
  border-color:rgba(var(--accent-rgb),.65);
  background:linear-gradient(110deg,rgba(var(--accent-rgb),.09),#0a100c70)
}

.preset.active:after {
  content:'';
  position:absolute;
  right:9px;
  top:9px;
  width:4px;
  height:4px;
  background:var(--accent);
  border-radius:50%
}

.preset-art {
  display:block;
  width:60px;
  height:68px;
  flex-shrink:0;
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  filter:drop-shadow(0 0 10px currentColor)
}

.art-aurum {
  color:#d8aa60
}

.art-viridian {
  color:#63ba94;
  transform:scale(.88,1.04)
}

.art-sakura {
  color:#d990a8;
  transform:scale(1.02,.88)
}

.art-glacial {
  color:#99c7dd;
  transform:scale(.8,1.04)
}

.preset-art svg {
  width:100%;
  height:100%;
  stroke-width:.8
}

.preset-caption {
  display:flex;
  flex-direction:column;
  gap:5px
}

.preset-caption strong {
  font-family:Georgia,'Times New Roman',serif;
  font-size:18px;
  font-weight:400;
  letter-spacing:.2px
}

.preset-caption>span {
  font-size:12px;
  letter-spacing:2px;
  color:#84927a
}

.statusbar {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:43px;
  padding:0 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  background:#080d0bbb;
  color:#788570;
  font-size:12px;
  letter-spacing:.4px;
  gap:16px
}

.render-status {
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap
}

.render-status .live-dot {
  width:4px;
  height:4px
}

.status-separator {
  color:#455440;
  margin:0 8px
}

#samples,#branch-count,#render-resolution {
  font-family:var(--mono)
}

.interaction-hint {
  color:#7a8774;
  white-space:nowrap
}

.interaction-hint span {
  margin:0 10px
}

.geometry-stats {
  white-space:nowrap
}

.focus-exit {
  position:absolute;
  bottom:27px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  z-index:5;
  background:#0f1711b0;
  backdrop-filter:blur(20px);
  border:1px solid var(--line);
  padding:10px 18px;
  border-radius:6px;
  font-size:13px;
  color:#adb9a4;
  opacity:.6;
  transition:opacity .2s
}

.focus-exit:hover {
  opacity:1
}

.focus-mode .interface {
  opacity:0;
  pointer-events:none
}

.focus-mode .atmosphere {
  opacity:0
}

.loading-overlay {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  z-index:30;
  background:#0b100d;
  transition:opacity .7s
}

.loading-overlay.done {
  opacity:0;
  pointer-events:none
}

.loading-mark svg {
  width:60px;
  height:60px;
  color:var(--accent);
  stroke-width:.7;
  animation:breathe 2s ease-in-out infinite
}

.loading-overlay p {
  margin:25px 0 10px;
  font-size:18px;
  font-weight:300;
  letter-spacing:4px;
  color:#d5ddcb
}

.loading-overlay>span {
  font-size:12px;
  color:#7d8b74;
  letter-spacing:1px
}

.error-overlay {
  position:absolute;
  inset:0;
  z-index:35;
  background:#0b100df5;
  display:grid;
  place-items:center;
  padding:30px
}

.error-overlay>div {
  max-width:430px;
  text-align:center
}

.error-overlay svg {
  width:45px;
  height:45px;
  color:var(--accent)
}

.error-overlay h2 {
  font-size:25px;
  font-weight:400
}

.error-overlay p {
  color:var(--muted);
  line-height:1.8
}

.toast {
  position:fixed;
  z-index:50;
  bottom:60px;
  left:50%;
  transform:translate(-50%,12px);
  border:1px solid rgba(var(--accent-rgb),.3);
  border-radius:5px;
  padding:12px 20px;
  max-width:calc(100% - 32px);
  color:#dbe2d2;
  font-size:13px;
  background:#172119ed;
  box-shadow:0 6px 30px #0006;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s,transform .25s
}

.toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}

dialog {
  color:var(--text);
  background:#111a13;
  border:1px solid #a9b59d35;
  border-radius:12px;
  padding:42px;
  max-width:600px;
  width:calc(100% - 32px);
  box-shadow:0 20px 100px #000a
}

dialog::backdrop {
  background:#050a07a6;
  backdrop-filter:blur(12px)
}

.dialog-close {
  position:absolute;
  top:15px;
  right:15px
}

dialog h2 {
  font-size:32px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:1px;
  margin:25px 0 22px
}

dialog h2 em {
  font-style:normal;
  color:var(--accent)
}

dialog p {
  font-size:15px;
  line-height:1.8;
  color:#9eab95
}

.about-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin:24px 0
}

.about-grid strong {
  font-size:14px;
  color:var(--accent);
  font-weight:450
}

.about-grid p {
  font-size:13px;
  margin-bottom:0
}

.about-note {
  font-size:13px!important
}

.shortcuts {
  display:flex;
  gap:17px;
  flex-wrap:wrap;
  margin:25px 0;
  font-size:12px;
  color:#9eaa95
}

kbd {
  font:12px var(--mono);
  border:1px solid var(--line);
  border-radius:3px;
  padding:3px 5px;
  margin-right:3px;
  color:#b8c4ad
}

.source-link {
  display:inline-block;
  color:#8e9e85;
  font-size:12px;
  text-decoration:none;
  border-bottom:1px solid #7c8e6d4a
}

.source-link:hover {
  color:var(--accent)
}

.mobile-only {
  display:none
}

.paused .live-dot {
  background:#7a8074;
  box-shadow:none
}

@keyframes breathe {
  50% {
    opacity:.4;
    transform:translateY(-3px)
  }

}

@media(min-width:1700px) {
  .topbar {
    height:105px;
    padding:0 55px
  }

  .intro {
    top:175px;
    left:60px
  }

  .control-panel {
    right:45px;
    top:140px;
    width:310px;
    padding:27px 25px 0
  }

  .control {
    margin-bottom:25px
  }

  .panel-footer {
    margin:0 -25px;
    padding:15px 25px
  }

  .collection {
    left:60px;
    bottom:80px
  }

  .preset {
    height:98px
  }

  .scene-controls {
    bottom:220px
  }

}

@media(max-width:1150px) {
  .header-center {
    display:none
  }

  .intro {
    left:30px;
    top:133px;
    width:230px
  }

  .intro h1 {
    font-size:49px;
    letter-spacing:-2.5px
  }

  .intro p {
    font-size:12px
  }

  .control-panel {
    right:22px;
    width:260px;
    padding:20px 18px 0;
    top:116px
  }

  .panel-footer {
    margin:0 -18px;
    padding:13px 18px
  }

  .collection {
    left:30px;
    right:307px
  }

  .preset {
    height:79px;
    padding:5px 7px;
    gap:6px
  }

  .preset-art {
    width:42px
  }

  .preset-caption strong {
    font-size:16px
  }

  .preset-caption>span {
    font-size:12px
  }

  .scene-controls {
    left:50%;
    bottom:193px
  }

  .topbar {
    padding:0 27px
  }

  .statusbar {
    padding:0 27px
  }

  .interaction-hint {
    display:none
  }

}

@media(max-height:780px) and (min-width:901px) {
  .topbar {
    height:77px
  }

  .intro {
    top:112px
  }

  .intro h1 {
    font-size:53px;
    margin:21px 0 15px
  }

  .intro-rule {
    margin:18px 0 15px
  }

  .control-panel {
    top:97px;
    max-height:calc(100dvh - 150px);
    padding-top:17px
  }

  .control {
    margin-bottom:15px
  }

  .panel-tabs {
    margin:15px 0 17px
  }

  .control label {
    margin-bottom:10px
  }

  .seed-control {
    margin-top:17px;
    padding-top:11px
  }

  .primary-button {
    margin-bottom:17px
  }

  .collection {
    bottom:60px
  }

  .collection-title {
    margin-bottom:9px
  }

  .preset {
    height:73px
  }

  .scene-controls {
    bottom:173px
  }

}

@media(max-width:900px) {
  .topbar {
    height:76px;
    padding:0 17px
  }

  .brand {
    font-size:12px;
    letter-spacing:1.4px;
    gap:6px
  }

  .brand-mark {
    width:31px
  }

  .brand-mark svg {
    width:29px;
    height:29px
  }

  .brand-sub {
    font-size:12px;
    letter-spacing:2.2px
  }

  .header-actions {
    gap:8px
  }

  .text-button,.header-divider {
    display:none
  }

  .export-button {
    padding:9px;
    border:0;
    background:none
  }

  .export-button span {
    display:none
  }

  .export-button svg {
    width:20px;
    height:20px
  }

  .header-actions .icon-button {
    width:32px
  }

  .intro {
    top:101px;
    left:23px;
    width:auto
  }

  .intro .eyebrow {
    font-size:12px;
    letter-spacing:1.7px
  }

  .intro h1 {
    font-size:39px;
    line-height:1.1;
    letter-spacing:-1.8px;
    margin:15px 0
  }

  .intro p,.intro-rule {
    display:none
  }

  .specimen-label {
    font-size:12px;
    letter-spacing:1.3px;
    margin-top:17px
  }

  .specimen-kind {
    font-size:12px
  }

  .mobile-only {
    display:inline-flex
  }

  .control-panel {
    display:none;
    top:auto;
    bottom:95px;
    right:15px;
    left:15px;
    width:auto;
    padding:20px 22px 0;
    max-height:calc(100dvh - 185px);
    z-index:6;
    border-color:#9cae8740;
    background:#101b14f2;
    backdrop-filter:blur(25px)
  }

  .control-panel.open {
    display:block
  }

  .panel-heading>div {
    margin-right:auto
  }

  .panel-heading h2 {
    font-size:20px
  }

  .panel-footer {
    margin:0 -22px;
    padding:14px 22px
  }

  .control {
    margin-bottom:22px
  }

  .control label {
    font-size:14px
  }

  .control output {
    font-size:14px
  }

  .control input[type=range] {
    height:4px;
    margin:13px 0
  }

  .control input[type=range]::-webkit-slider-thumb {
    width:14px;
    height:14px
  }

  .control input[type=range]::-moz-range-thumb {
    width:12px;
    height:12px
  }

  .range-labels {
    font-size:12px
  }

  .panel-tabs button {
    font-size:14px
  }

  .seed-control label {
    font-size:14px
  }

  .seed-input {
    height:42px
  }

  .seed-input input {
    font-size:14px
  }

  .seed-control label span {
    font-size:12px
  }

  .primary-button {
    font-size:14px;
    padding:12px
  }

  .scene-controls {
    left:50%;
    bottom:175px;
    gap:4px;
    padding:4px 8px;
    border-radius:8px
  }

  .scene-controls .icon-button {
    width:35px;
    height:35px
  }

  .collection {
    left:18px;
    right:18px;
    bottom:53px
  }

  .collection-title {
    font-size:12px;
    margin-bottom:9px
  }

  .collection-title span {
    font-size:12px;
    letter-spacing:1.2px
  }

  .preset-grid {
    gap:6px
  }

  .preset {
    height:77px;
    flex-direction:column;
    justify-content:flex-end;
    gap:0;
    padding:5px 2px;
    background:#0f1b1390
  }

  .preset-art {
    position:absolute;
    top:-5px;
    width:48px;
    height:57px;
    opacity:.65
  }

  .preset-caption {
    position:relative;
    z-index:1;
    gap:1px;
    text-align:center;
    margin-top:38px;
    text-shadow:0 1px 8px #000
  }

  .preset-caption strong {
    font-size:15px
  }

  .preset-caption>span {
    font-size:12px;
    letter-spacing:1px
  }

  .preset.active:after {
    right:6px;
    top:6px;
    width:3px;
    height:3px
  }

  .statusbar {
    height:34px;
    padding:0 17px;
    font-size:12px;
    gap:8px
  }

  .render-status {
    gap:6px
  }

  .status-separator {
    margin:0 4px
  }

  .geometry-stats {
    font-size:12px
  }

  .geometry-stats .status-separator,#render-resolution {
    display:none
  }

  .atmosphere {
    background:linear-gradient(180deg,rgba(8,12,10,.1),transparent 40%,transparent 70%,rgba(8,12,10,.6))
  }

  dialog {
    padding:30px 24px;
    max-height:calc(100dvh - 40px)
  }

  dialog h2 {
    font-size:28px
  }

  .shortcuts {
    gap:12px
  }

  .focus-exit {
    bottom:28px
  }

  .toast {
    bottom:220px
  }

  .quality-field select {
    font-size:14px;
    padding:12px
  }

  .panel-note {
    font-size:13px
  }

  .panel-footer {
    font-size:12px
  }

  .path-badge {
    font-size:12px
  }

}

@media(max-width:900px) and (max-height:680px) {
  .intro {
    top:90px
  }

  .intro h1 {
    font-size:30px;
    margin:10px 0
  }

  .specimen-label {
    margin-top:10px
  }

  .collection {
    bottom:47px
  }

  .preset {
    height:63px
  }

  .preset-art {
    height:44px
  }

  .preset-caption>span {
    display:none
  }

  .scene-controls {
    bottom:149px
  }

  .control-panel {
    bottom:82px;
    max-height:calc(100dvh - 165px)
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }

}

/* Keep scene controls legible without competing with the tree. */
.panel-tabs button,.seed-control label,.quality-field label {
  font-size:14px
}

.text-button,.export-button {
  font-size:14px
}

.primary-button {
  font-size:14px
}

.intro p {
  font-size:14px
}

.header-center {
  font-size:12px;
  letter-spacing:1px
}

.range-labels,.panel-note {
  color:#8c9a83
}

.collection-title,.statusbar {
  color:#9aa68f
}

.preset-caption>span {
  font-size:12px
}

.preset-caption strong {
  font-size:18px
}

@media(max-width:900px) {
  .collection-title span {
    display:none
  }

  .geometry-stats {
    font-size:11px
  }

  .statusbar {
    font-size:11px
  }

  .brand-sub {
    font-size:11px
  }

  .preset-caption strong {
    font-size:15px
  }

  .preset-caption>span {
    font-size:11px
  }

  .scene-controls {
    left:50%
  }

  .preset {
    height:82px
  }

  .collection {
    bottom:49px
  }

  .intro .eyebrow {
    font-size:11px
  }

  .specimen-label,.specimen-kind {
    font-size:11px
  }

  .control-panel .eyebrow {
    font-size:12px
  }

}

@media(min-width:600px) and (max-width:900px) {
  .intro {
    left:30px
  }

  .control-panel {
    left:auto;
    right:24px;
    width:330px;
    bottom:210px;
    max-height:calc(100dvh - 310px)
  }

  .collection {
    left:30px;
    right:30px
  }

  .preset {
    height:82px;
    flex-direction:row;
    justify-content:center;
    gap:16px
  }

  .preset-art {
    position:static;
    height:70px;
    width:65px;
    opacity:1
  }

  .preset-caption {
    margin-top:0;
    text-align:left;
    gap:4px
  }

  .preset-caption strong {
    font-size:19px
  }

  .scene-controls {
    bottom:180px
  }

  .collection-title span {
    display:block;
    font-size:12px
  }

  .collection-title {
    font-size:13px
  }

}
