.bench {
  max-width: 1500px;
  margin: auto;
  padding: 42px 32px;
}
.bench-intro {
  max-width: 940px;
  margin: 10px 0 36px;
}
.bench h1 {
  font: 900 clamp(42px, 6vw, 82px) / 1.04 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  margin: 15px 0;
  color: #f2efe7;
}
.bench-intro p {
  color: #b8b6ae;
  max-width: 780px;
  font-size: 18px;
}
.eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.17em;
  color: #ffc22e !important;
}
.actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.toolbar {
  margin: 24px 0;
}
.bench label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #c7c7c7;
  font-size: 13px;
}
.bench label.btn-accent {
  display: inline-flex;
  flex-direction: row;
  color: var(--accent-ink);
  font-size: 14px;
  cursor: pointer;
}
.bench input:not([type="range"]):not([type="checkbox"]):not([type="color"]),
.bench select,
.bench textarea {
  background: #232426;
  color: #eee;
  border: 1px solid #454648;
  border-radius: 9px;
  padding: 12px;
  width: 100%;
  font: inherit;
}
.bench input[type="range"] {
  accent-color: #ffc22e;
  width: 100%;
}
.bench input[type="color"] {
  height: 44px;
  width: 100%;
  background: none;
  border: 0;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.asset-card {
  background: #18191b;
  border: 1px solid #343539;
  border-radius: 16px;
  overflow: hidden;
}
.asset-card img,
.asset-card video {
  width: 100%;
  height: 225px;
  object-fit: contain;
  background: #0a0a0a;
}
.asset-card audio {
  width: 100%;
  margin-top: 60px;
  min-height: 140px;
}
.asset-body {
  padding: 18px;
}
.asset-body h2 {
  font: 20px/1.3 sans-serif;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
.asset-body p {
  font-size: 12px;
  color: #a6a6a6;
}
.asset-body .actions a,
.asset-body .actions button {
  font-size: 12px;
  padding: 8px 10px;
}
.workroom {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
}
.controls {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 24px;
  border: 1px solid #343539;
  border-radius: 16px;
  background: #18191b;
  align-self: start;
}
.controls p {
  font-size: 12px;
  color: #aaa;
}
.stage {
  min-width: 0;
  padding: 18px;
  background: #131416;
  border-radius: 16px;
  border: 1px solid #333;
}
.stage canvas {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: repeating-conic-gradient(#242529 0% 25%, #191a1d 0% 50%) 50%/22px
    22px;
}
.stage iframe {
  width: 100%;
  height: 680px;
  border: 0;
  background: #fff;
  border-radius: 8px;
}
.bench button,
.bench .btn-accent,
.bench .btn-ghost {
  cursor: pointer;
  min-height: 42px;
}
.bench [hidden] {
  display: none !important;
}
.check {
  flex-direction: row !important;
}
.bench-foot {
  padding: 30px;
  color: #999;
  border-top: 1px solid #333;
  font-size: 13px;
}
.bench-foot a {
  color: #ffc22e;
}
#status {
  min-height: 25px;
  color: #d0d0c9;
}
.empty {
  padding: 50px 20px;
  border: 1px dashed #555;
  border-radius: 16px;
}
.bench textarea {
  resize: vertical;
  min-height: 100px;
}
/* Image workroom tools */
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.source-row a {
  color: #ffc22e;
  font-size: 14px;
}
.tool-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #0f1011;
  border: 1px solid #2e2f33;
}
.tool-tabs button {
  min-height: 40px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #c7c7c7;
  font: 600 13px/1.2 var(--ui, sans-serif);
  cursor: pointer;
}
.tool-tabs button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.tool-tabs button[aria-selected="true"] {
  background: #ffc22e;
  color: #1c1400;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.hint {
  font-size: 13px !important;
  color: #b8b6ae !important;
  margin: 0;
}
.model-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #111214;
  border: 1px solid #2e2f33;
  line-height: 1.45;
}
.model-note:empty {
  display: none;
}
.seg {
  display: flex;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}
.seg legend {
  color: #c7c7c7;
  font-size: 13px;
  margin-bottom: 7px;
}
.bench .seg label {
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #454648;
  border-radius: 9px;
  color: #eee;
  font-size: 15px;
  cursor: pointer;
}
.seg label:has(input:checked) {
  border-color: #ffc22e;
  background: rgba(255, 194, 46, 0.1);
}
.seg input {
  accent-color: #ffc22e;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #343539;
}
.linkish {
  align-self: flex-start;
  padding: 0;
  min-height: 0 !important;
  border: 0;
  background: none;
  color: #999;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.compare {
  margin-top: 12px;
}
.stage progress {
  width: 100%;
  height: 8px;
  margin-top: 12px;
  accent-color: #ffc22e;
}
.stage canvas.painting {
  cursor: crosshair;
  touch-action: none;
}
@media (max-width: 800px) {
  .bench {
    padding: 24px 16px;
  }
  .workroom {
    grid-template-columns: 1fr;
  }
  .stage {
    grid-row: 1;
  }
  .stage iframe {
    height: 480px;
  }
  .controls {
    max-height: none;
  }
  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
