.speaker-dialog{width:min(440px,calc(100vw - 32px));max-height:85vh;overflow:auto}.speaker-dialog .hint{line-height:1.7}.speaker-person{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;margin:14px 0}.speaker-person input[type=color]{width:42px;height:42px;padding:3px;border:1px solid #ddd;border-radius:12px;background:#fff;cursor:pointer}.speaker-person input[type=text]{min-width:0;width:100%}.speaker-dialog .speaker-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.cue-speaker{display:inline-flex;align-items:center;gap:8px;font-size:12px;margin-top:8px;color:var(--muted,#6b7280)}.cue-speaker select{max-width:180px;padding:5px 8px;font-size:12px;border-radius:8px}.speaker-option{display:block;margin:12px 0 6px}
.speaker-person input[type=text]{padding:11px 12px;border:1px solid #dfe4ec;border-radius:10px;background:#f8fafc;color:#25334a;font:inherit;line-height:1.4}.speaker-person input[type=text]:focus{outline:2px solid #9eb8ef;outline-offset:2px;border-color:#5579cf}

.speaker-person{grid-template-columns:minmax(0,1fr) auto;padding:14px;border:1px solid #e4e7ed;border-radius:12px;background:#fafbfd;gap:12px 8px}.speaker-color-options{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.speaker-palette{display:flex;gap:7px;width:100%;padding:3px}.speaker-swatch{width:32px;height:32px;min-width:32px;padding:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #d6dce5}.speaker-swatch[aria-pressed=true]{outline:2px solid #526ba0;outline-offset:2px}.speaker-swatch:focus-visible{outline:3px solid #3156a4;outline-offset:3px}.speaker-custom-color{display:flex;align-items:center;gap:9px;color:#5d687a;font-size:12px}.speaker-person .speaker-color-hex{width:108px;margin-left:auto;font:13px ui-monospace,monospace}.speaker-style-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;background:#f1f4fa;border-radius:9px;padding:9px 10px;font-size:11px;color:#5c6c87;margin-bottom:12px}.speaker-style-notice[hidden]{display:none}.speaker-style-notice button{font-size:11px;padding:4px}

/* Compact person rows; expand one color palette at a time. */
#styleTabPanel .speaker-inline-panel{padding:0 0 16px;margin:0 0 16px;background:none;border:0;border-bottom:1px solid #e7ebef;border-radius:0}
.speaker-inline-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
#styleTabPanel .speaker-inline-heading h3{margin:0}
#styleTabPanel .speaker-inline-heading>button{font-size:11px;padding:4px 0;min-height:26px;line-height:1.4;color:#718095}
#styleTabPanel .speaker-inline-panel>.check{margin:8px 0!important;min-height:26px}
.speaker-inline-person{padding:5px 0;border-top:1px solid #eef1f5}
.speaker-inline-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.speaker-inline-title strong{font-size:12px;font-weight:500;color:#4c5c70;overflow-wrap:anywhere;min-width:0}
#styleTabPanel .speaker-color-toggle{display:flex;align-items:center;gap:7px;flex-shrink:0;min-height:30px;padding:4px 9px;background:#fff;border:1px solid #dde4ec;border-radius:7px;font-size:11px;line-height:1.4;color:#586a80;box-shadow:none}
.speaker-color-toggle i{width:15px;height:15px;border-radius:4px;box-shadow:inset 0 0 0 1px #00000012}
#styleTabPanel .speaker-color-toggle[aria-expanded=true]{border-color:#9eafc6;background:#f4f7fb}
.speaker-inline-choices{padding:9px 8px 6px;margin:6px 0;background:#f6f8fb;border-radius:8px}
.speaker-inline-choices[hidden]{display:none}
.speaker-inline-panel .speaker-palette{justify-content:space-between;padding:3px;margin:0;gap:5px}
#styleTabPanel .speaker-inline-panel .speaker-swatch{min-height:28px;height:28px;width:28px;min-width:28px;flex:0 0 28px}
#styleTabPanel .speaker-inline-choices>.text-button{display:block;font-size:11px;padding:5px 0;min-height:26px;margin-top:4px;color:#667b96}
.speaker-inline-panel .hint{font-size:11px;line-height:1.6}
