.editor-helper > summary {
  display: flex;
  align-items: center;
  gap: 5px 12px;
  flex-wrap: wrap;
  min-height: 44px;
  cursor: pointer;
  color: #183c5b;
}
.editor-helper > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-inline-end: 4px;
}
.editor-helper[open] > summary::before { transform: rotate(45deg); }
.editor-helper > summary > span { color: #3f566b; font-size: .875rem; }
.helper-tool-bank {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}
.helper-tool {
  position: relative;
  padding: 12px 13px;
  min-height: 78px;
  color: #edf8ff;
  background: linear-gradient(150deg, #234a68, #10283f);
  border: 1px solid #254660;
  border-radius: 8px;
  box-shadow: inset 0 1px #7196af, 0 2px 0 #0d2639;
}
.helper-tool:focus-within { outline: 3px solid #2e79ad; outline-offset: 3px; }
.helper-tool button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: start;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.helper-tool button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.helper-tool:has(button:enabled):hover { background: linear-gradient(145deg, #315d7c, #183952); }
.helper-tool button:disabled { color: #b7cbdc; cursor: default; }
.helper-tool p { margin: 3px 0 0; color: #d3e4f0; font-size: .875rem; }
.editor-extra-tools:not(:has(button:not([hidden]))) { display: none; }
.listen-dialog { padding:0; max-width:640px; overscroll-behavior:contain; }
.listen-dialog [hidden] { display:none !important; }
.listen-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:20px var(--editor-pad); background:linear-gradient(125deg,#102e47,#234d6b); color:#f1f9ff; border-bottom:2px solid #7ca8c9; }
.listen-heading h2,.listen-heading p { color:inherit; margin:0; }
.listen-heading p { margin-top:4px; color:#ccdfed; font-size:14px; }
.listen-close { flex:none; white-space:nowrap; min-height:38px; border:1px solid #92b7d0; background:#173b57; color:white; border-radius:7px; padding:6px 12px; font-weight:600; cursor:pointer; }
.listen-body { padding:15px var(--editor-pad) 20px; }
.listen-body h3 { margin:0 0 5px; font-size:18px; }
.listen-steps { display:grid; grid-template-columns:repeat(3,1fr); list-style:none; gap:5px; padding:0; margin:0 0 18px; }
.listen-steps li { padding:0 0 7px; border-bottom:3px solid #d9e5ee; color:#526677; font-size:13px; font-weight:650; white-space:nowrap; }
.listen-steps li[aria-current] { color:#174e72; border-color:#3289b9; }
.listen-settings,.listen-roster { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.listen-dialog label { display:grid; gap:4px; color:#29465b; font-size:14px; font-weight:650; }
.listen-dialog input:not([type=checkbox]),.listen-dialog select,.listen-dialog textarea { box-sizing:border-box; width:100%; min-width:0; border:1px solid #a6baca; border-radius:6px; background:#fff; color:#172d40; padding:9px; font:inherit; }
.listen-config { margin:12px 0; padding-bottom:8px; border-bottom:1px solid #d6e0e8; }
.listen-config summary { cursor:pointer; color:#254b65; font-weight:600; font-size:14px; }
.listen-roster { margin-top:9px; }.listen-roster>div { display:grid; gap:6px; }
.listen-who { grid-template-columns:auto minmax(0,1fr); align-items:center; }
.listen-deck { display:grid; grid-template-columns:minmax(64px,1.1fr) 1fr auto; align-items:center; gap:12px; margin:16px 0 11px; padding:14px; border:1px solid #375a73; border-radius:9px; background:linear-gradient(165deg,#203e55,#102b40); color:#edf8ff; box-shadow:inset 0 1px #7192a9,0 2px 0 #0b2131; }
.listen-signal-label { font-size:12px; color:#cee3ed; }.listen-meter { height:7px; margin-top:6px; overflow:hidden; border-radius:2px; background:repeating-linear-gradient(to right,#456579 0 5px,transparent 5px 7px); }
.listen-meter i { display:block; height:100%; width:0; background:repeating-linear-gradient(to right,#79ddb4 0 5px,transparent 5px 7px); }
.listen-cue { text-align:center; font-size:18px; color:#e4f3ff; }.listen-deck[data-state=recording] .listen-cue { color:#9cf3c8; }.listen-deck time { font-variant-numeric:tabular-nums; font-weight:700; }
.listen-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.listen-dialog .button { white-space:nowrap; min-height:42px; }
.listen-parts { display:grid; list-style:none; padding:0; margin:10px 0; gap:4px; }
.listen-part { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; min-height:40px; border-bottom:1px solid #dce5eb; font-size:13px; }
.listen-part .part-details { color:#496378; font-variant-numeric:tabular-nums; }
.listen-part select { max-width:230px; padding:5px; }.listen-remove { border:0; background:transparent; color:#8b303a; font:inherit; text-decoration:underline; cursor:pointer; }
.listen-consent,.listen-confirm { border-top:1px solid #c5d6e3; margin-top:12px; padding:12px 0 0; }
.listen-consent label { display:flex; align-items:flex-start; gap:7px; }.listen-consent input { flex:none; min-height:0; width:17px; height:17px; margin:2px 0 0; }
.listen-edits { display:grid; gap:12px; margin:12px 0; }
.listen-review-title { display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; }
.listen-review-title h3 { margin:0; }
.listen-review-title strong { display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border:1px solid #b6d3dc; border-radius:4px; color:#245a69; background:#edf7f8; font-size:12px; white-space:nowrap; }
.listen-review-title strong::before { content:""; width:9px; height:10px; background:linear-gradient(currentColor,currentColor) 0 50%/2px 45%,linear-gradient(currentColor,currentColor) 50% 50%/2px 100%,linear-gradient(currentColor,currentColor) 100% 50%/2px 65%; background-repeat:no-repeat; }
.listen-detect-note { margin-bottom:0; }
.listen-edit-part,.listen-preview-part { border-left:3px solid var(--part-color,#96aec0); padding-left:10px; }.listen-edits textarea { min-height:76px; resize:vertical; }
.listen-edit-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 5px; }.listen-edit-heading select { width:auto; max-width:70%; min-height:36px; padding:4px 8px; }
.listen-edits textarea,.listen-paper { font-family:var(--pp-prompt-font,system-ui,sans-serif); font-size:17px; font-weight:400; line-height:1.55; }
.listen-paper { background:white; border:1px solid #cedde7; border-radius:7px; max-height:34vh; overflow:auto; padding:13px; }
.listen-preview-part + .listen-preview-part { margin-top:12px; }.listen-preview-part strong { font:650 13px system-ui,sans-serif; color:var(--part-color,#213a50); }.listen-preview-part p { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; }
@media(max-width:420px) { .listen-settings,.listen-roster { gap:7px; }.listen-deck { gap:7px; }.listen-body { padding-inline:12px; }.listen-deck time { font-size:15px; } }

.listen-upload::before { content:"↑"; display:inline-grid; place-items:center; margin-right:3px; width:18px; height:18px; border-bottom:2px solid currentColor; line-height:1; }
.listen-file-help { margin:8px 0 1px; }
.listen-part.has-source { grid-template-columns:minmax(0,1.15fr) minmax(54px,.75fr) auto; }
.listen-part .part-details { min-width:0; }
.listen-filename { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:650; color:#24445e; }
.listen-split { display:block; margin:4px 0 0 auto; padding:5px 8px; border:1px solid #b6cddf; border-radius:5px; color:#214a69; background:#f5f9fd; font:600 13px system-ui,sans-serif; white-space:nowrap; cursor:pointer; }

.listen-settings { grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); }
.listen-settings select { font-size:14px; font-weight:550; }
@media(max-width:370px) { .listen-settings { grid-template-columns:1fr; } }
