.tone-bench {
  display:grid;
  grid-template-columns:minmax(265px,.65fr) minmax(0,1.35fr);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--surface);
}
.tone-controls {
  border:0;
  min-width:0;
  margin:0;
  padding:19px 20px 22px;
  background:#141920;
  border-right:1px solid var(--line);
}
.tone-controls legend {
  float:left;
  width:100%;
  margin-bottom:12px;
  font:700 18px var(--head);
}
.tone-controls small,.tone-detail {
  color:var(--muted);
  font-size:12px;
}
.tone-upload {
  clear:both;
  display:grid;
  padding:9px 12px;
  border:1px dashed #5b6c7d;
  border-radius:8px;
}
.tone-upload input {
  width:100%;
  min-width:0;
  font-size:12px;
  color:var(--muted);
}
.tone-source,.tone-options,.tone-results-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}
.tone-source {
  margin:6px 0 15px;
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere;
}
.tone-reset {
  color:var(--accent);
  border:0;
  background:transparent;
  cursor:pointer;
  padding:4px 0;
  font-size:13px;
  font-weight:650;
}
.tone-number,.tone-range,.tone-options {
  font-size:14px;
  font-weight:650;
  margin:11px 0;
}
.tone-range {
  display:block;
}
.tone-range output {
  float:right;
  font:600 13px var(--mono);
  color:#e4faae;
  margin-top:4px;
}
.tone-number input,.tone-range input {
  display:block;
  width:100%;
  margin-top:4px;
  accent-color:var(--accent);
  color:var(--ink);
}
.tone-number input {
  border:1px solid #576579;
  min-height:40px;
  padding:7px 10px;
  background:#10151b;
  border-radius:6px;
}
.tone-options label {
  display:flex;
  align-items:center;
  gap:6px;
}
.tone-options input[type=color] {
  width:38px;
  height:28px;
  padding:0;
}
.tone-controls input[type=checkbox] {
  accent-color:var(--accent);
}
.tone-button {
  border:0;
  border-radius:8px;
  background:var(--accent);
  color:#24190e;
  min-height:42px;
  padding:8px 13px;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}
.tone-button:disabled {
  opacity:.5;
  cursor:default;
}
.tone-preview {
  min-width:0;
  padding:20px;
}
.tone-preview h2 {
  font:700 19px var(--head);
  margin:0;
}
.tone-detail {
  margin:5px 0;
}
.tone-preview canvas {
  display:block;
  box-sizing:border-box;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:465px;
  margin:10px auto;
  object-fit:contain;
  border-radius:7px;
  border:1px solid #536071;
  background:repeating-conic-gradient(#e8e3d9 0% 25%,#c9c6bf 0% 50%) 0 0/18px 18px;
}
.tone-status {
  font-size:13px;
  margin:9px 0 0;
}
.tone-status.bad {
  color:#ffb498;
}
@media(max-width:740px) {
  .tone-bench {
    grid-template-columns:1fr;
  }
  .tone-controls,.tone-preview {
    padding:15px;
  }
  .tone-controls {
    border-right:0;
    border-bottom:1px solid var(--line);
  }
}
