/* Medical blue: one typography, spacing and component system for every module. */
:root {
  --font-ui: 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  --font-numeric: 'Bahnschrift', 'Segoe UI', var(--font-ui);
  --navy: #10283f;
  --navy-deep: #0d2236;
  --ink: #223247;
  --muted: #5f6f80;
  --line: #e1e7ee;
  --paper: #f3f6fa;
  --white: #fff;
  --teal: #087ab2;
  --teal-dark: #056594;
  --blue: #087ab2;
  --mint: #c9e4f2;
  --coral: #b34d39;
  --shadow: 0 2px 7px rgba(24, 48, 74, .035);
  --surface-blue: #eaf5fb;
  --text-danger: #a73535;
  --surface-danger: #fceeee;
  --text-warning: #8c5710;
  --surface-warning: #fff4df;
  --text-success: #146941;
  --surface-success: #eaf6ee;
}
html {scroll-padding-top: 74px}
.view.active, .content-workspace {animation: none}
body {font-family: var(--font-ui); font-size: 14px; line-height: 1.6; color: var(--ink)}
button, input, select, textarea {font-family: var(--font-ui)}
h1, h2, h3, h4, .panel h2, .panel h3 {font-family: var(--font-ui)}
.hidden, [hidden], .nav-item[hidden] {display: none !important}
.ui-icon {width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none}
.sr-only {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0}
.skip-link {position: fixed; left: 20px; top: -60px; z-index: 1500; background: white; color: var(--teal); padding: 10px 18px; border: 2px solid var(--teal); border-radius: 6px}
.skip-link:focus {top: 12px}
button:focus-visible, a:focus-visible, summary:focus-visible {outline: 3px solid #72b7dc; outline-offset: 3px}
button, a, input, textarea, select {scroll-margin: 90px 0 30px}
.app-shell {width: 100%; grid-template-columns: 216px minmax(0,1fr)}
.sidebar {padding: 22px 14px 18px; background: var(--navy); color: #bdcddd; border: 0}
.identity {display: block; padding: 0 3px 21px; margin-bottom: 20px; border-bottom: 1px solid #ffffff18}
.hospital-brand {display: block}
.hospital-brand img {display: block; width: 180px; max-width: 100%; height: 56px; object-fit: contain}
.platform-name {display: block; margin-top: 9px; text-align: center; color: #b4cadb; font-size: 12px; letter-spacing: .12em}
.workspace-label {margin: 0 0 10px; padding: 0 12px; color: #a0b6ca; font-size: 12px; letter-spacing: .04em}
.nav {display: grid; grid-template-columns: 1fr; gap: 5px; margin: 0}
.nav-item {height: 44px; border-radius: 6px; gap: 12px; padding: 10px 12px; font-size: 14px; font-weight: 500; color: #bdcddd; transition: background .15s, color .15s}
.nav-item:hover {background: #ffffff0a; color: white; transform: none}
.nav-item.active {background: #1b3d5c; color: #fff; box-shadow: inset 3px 0 #56b8e3}
.nav-item.active .nav-icon {color: #7bcdf0}
.nav-icon {font-size: inherit; color: inherit; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center}
.sidebar-foot {display: flex; padding: 17px 10px 0; border-color: #ffffff18; font-size: 12px; gap: 10px}
.sidebar-foot b {color: #d3e5f2; font-size: 13px; font-weight: 500}
.sidebar-foot small {color: #adc0d0; font-size: 12px; line-height: 1.6; margin-top: 4px}
.online-dot {background: #66c49c; box-shadow: 0 0 0 4px #66c49c15; width: 7px; height: 7px}
.main-shell {width: 100%; min-width: 0}
.topbar {height: 62px; padding: 0 26px; background: white; border-bottom: 1px solid var(--line)}
.breadcrumb {font-size: 13px; color: var(--muted); gap: 12px; white-space: nowrap}
.breadcrumb b {font-weight: 500; color: var(--ink)}
.top-actions {gap: 12px}
.session-copy b {font-size: 13px; font-weight: 500; color: var(--ink)}
.session-copy small {font-size: 12px; color: var(--muted); margin-top: 1px}
.avatar {width: 32px; height: 32px; border-radius: 50%; background: var(--surface-blue); color: var(--teal); font-size: 14px}
.logout-button {font-size: 12px; color: #38536c; border-color: #d5dfe9; border-radius: 5px; padding: 6px 10px; min-height: 32px; background: white}
.nav-toggle, .nav-backdrop {display: none}
.sidebar-close {display: none}
.navigation-open {overflow: hidden}
main {width: 100%; padding: 24px 26px 30px; max-width: none; margin: 0}
.page-head, .page-head.compact {align-items: center; gap: 18px; margin-bottom: 18px}
.page-head h1, .page-head.compact h1 {font: 600 25px/1.45 var(--font-ui); letter-spacing: .01em; margin: 0 0 5px; color: #1e3047}
.page-head p {font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; max-width: 760px}
.page-head>div>p:not(.eyebrow), .page-head.compact>div>p:not(.eyebrow) {font-size: 13px; color: var(--muted); line-height: 1.7}
.head-actions {gap: 8px; align-items: end; flex-wrap: wrap}
.report-control {font-size: 12px; color: var(--muted); gap: 4px}
.report-control input, .report-control select {height: 36px; min-width: 143px; font-size: 13px; border-radius: 6px; border-color: #cfd9e4; color: #344f68}
.demo-badge {display: inline-flex; vertical-align: middle; margin-left: 10px; border: 1px solid #e5d4b1; border-radius: 4px; padding: 2px 7px; font: 400 12px/1.6 var(--font-ui); color: #855b20; background: #fff8ea; letter-spacing: 0}
.solid-button, .ghost-button, .outline-button, .ai-assist-button, .asset-button {font-size: 13px; border-radius: 6px; min-height: 36px; padding: 8px 13px; box-shadow: none; line-height: 1.5; transition: background .15s, border-color .15s}
.solid-button {background: var(--teal); border-color: var(--teal)}
.solid-button:hover {background: var(--teal-dark); box-shadow: none; transform: none}
.ghost-button, .outline-button {border: 1px solid #cfd9e4; color: #36546c; background: white}
.ghost-button:hover, .outline-button:hover, .asset-button:hover {background: #f3f8fc; border-color: #7baecb; transform: none}
.text-button, .table-action {color: var(--teal); background: transparent; font-size: 13px; padding: 4px 0; min-height: 28px}
.text-button:disabled, .table-action:disabled {color: #83919f; cursor: not-allowed}
.outline-pill, .review-state, .mini-label {font-size: 12px; line-height: 1.6; font-weight: 500; border-radius: 5px; padding: 4px 8px; color: #42627d; background: #edf3f8; border: 1px solid #dde7ef; white-space: normal}
.outline-pill.ready, .mini-label.ready {color: var(--text-success); background: var(--surface-success); border-color: #c9e5d4}
.panel {border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); padding: 18px; min-width: 0}
.panel-heading {gap: 12px; margin-bottom: 16px; align-items: center}
.panel-heading h2, .panel h2 {font: 600 16px/1.5 var(--font-ui); color: var(--ink); letter-spacing: 0}
.panel h3 {font-size: 14px; color: #344f66}
.app-shell .panel p {font-size: 14px; line-height: 1.75; color: #4b6075}
.app-shell .panel small {font-size: 12px; line-height: 1.65; color: var(--muted)}
.app-shell .panel button {font-size: 13px}
.app-shell .panel .panel-note, .app-shell .panel .operation-note, .app-shell .panel .generation-detail {font-size: 12px; color: var(--muted); line-height: 1.75}
.app-shell .panel input:not([type=checkbox]):not([type=radio]):not([type=file]), .app-shell .panel select, .app-shell .panel textarea {font-size: 14px; line-height: 1.65; border: 1px solid #cfd9e4; border-radius: 6px; background: white; color: #293e55; padding: 9px 11px; min-width: 0; max-width: 100%}
.app-shell .panel input:focus, .app-shell .panel textarea:focus, .app-shell .panel select:focus {outline: 2px solid #85bad8; outline-offset: 2px; border-color: #5d9fc6}
.app-shell .panel input:disabled, .app-shell .panel select:disabled {background: #f2f5f8; color: #657a8c}
.input-label, .studio-editor .form-grid label span, .form-grid label {color: #3d556d; font-size: 13px; font-weight: 500}
.form-grid {gap: 16px}
.stage {font-size: 12px; color: var(--text-success); background: var(--surface-success); border-radius: 4px; padding: 3px 8px; font-weight: 500}
.stage.pending {color: var(--text-warning); background: var(--surface-warning)}
.stage.verify {color: var(--text-danger); background: var(--surface-danger)}
.scope-notice {padding: 7px 0; border: 0; background: transparent; margin: -4px 0 4px; gap: 10px; display: flex; flex-wrap: wrap}
.scope-notice>span {font-size: 12px; color: var(--muted)}
.scope-notice b {background: var(--surface-blue); color: #076393; padding: 3px 8px; border-radius: 4px; font-size: 12px}
.scope-notice p {font-size: 12px; color: var(--muted); margin: 0}
.report-provenance {font-size: 12px; padding: 7px 10px; margin: 0 0 16px; color: #50677c; background: #eef4f9; border-color: #c1d5e5; line-height: 1.7}
.report-provenance.sample {color: #815b23; background: #fff6e5; border-color: #e2be7e}
.metric-grid {gap: 12px; margin-bottom: 18px}
.dashboard-metrics {grid-template-columns: repeat(6,minmax(0,1fr))}
.metric {padding: 13px 16px; border-radius: 8px; border: 1px solid var(--line); background: white; box-shadow: none; min-height: 110px}
.metric>span {font-size: 13px; color: #52667b; line-height: 1.6}
.metric>strong {font: 600 29px/1.25 var(--font-numeric); color: #1b2d43; margin: 7px 0 5px; font-variant-numeric: tabular-nums}
.metric small {font-size: 12px; color: var(--muted); line-height: 1.55}
.metric strong sup {font-size: 17px}
.department-report-panel {padding: 0; margin-bottom: 18px; overflow: hidden}
.department-report-panel .panel-heading {padding: 15px 18px; margin: 0; border-bottom: 1px solid var(--line)}
.table-wrap {width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain}
table {font-size: 14px}
th {height: 40px; background: #f5f7fa; color: #4b5d72; letter-spacing: 0; font-size: 13px; font-weight: 500; padding: 9px 16px}
td {height: 46px; padding: 10px 16px; font-size: 14px; color: #34475c; border-color: #edf0f4; line-height: 1.6}
td strong {font-size: 14px; font-weight: 500; color: #26394f}
td small {font-size: 12px; color: var(--muted)}
tbody tr:hover {background: #f5f9fc}
.department-report-panel .table-wrap table {min-width: 840px}
.department-report-panel th, .department-report-panel td {white-space: nowrap}
.department-report-panel th:first-child, .department-report-panel td:first-child {min-width: 110px}
.department-report-panel td:nth-child(n+2):nth-child(-n+7), .department-report-panel th:nth-child(n+2):nth-child(-n+7) {text-align: right; font-variant-numeric: tabular-nums}
.department-report-panel td.report-summary {white-space: normal; min-width: 180px; font-size: 12px}
.rate-value {color: var(--teal)}
.overview-grid.lower {gap: 18px; margin-top: 18px}
.role-funnel>div {grid-template-columns: 90px minmax(0,1fr) 44px; gap: 12px; margin-bottom: 13px}
.role-funnel>div>span, .role-funnel>div>b {font-size: 13px; color: #4e657a; font-variant-numeric: tabular-nums}
.role-funnel i {background: var(--teal); height: 9px; border-radius: 2px}
.management-focus>div {padding: 10px 0; gap: 12px; border-color: #edf0f4}
.management-focus span {background: #eaf3fa; color: var(--teal); font-size: 12px; border-radius: 4px}
.management-focus p {font-size: 13px}
.table-tools {gap: 8px}
.table-tools input {width: 240px; max-width: 100%}
.task-row.persistent-task {grid-template-columns: 5px minmax(150px,1fr) 110px 130px 58px; padding: 14px 0; gap: 15px; border-color: #edf0f4}
.task-main>b {font-size: 14px; font-weight: 500; color: #293e55}
.task-main>small {margin-top: 5px; font-size: 12px}
.task-dept, .task-time {font-size: 12px; color: var(--muted)}
.persistent-task button {border: 1px solid #cfdce7; padding: 6px 10px; min-height: 32px; border-radius: 5px; color: var(--teal); background: white}
.persistent-task .task-owner {color: var(--muted)}
.task-priority {border-radius: 2px; background: #afc8dc; width: 4px}
.task-priority.high {background: #c88635}
.task-layout, .members-grid, .clinical-layout, .ability-layout {gap: 18px}
.escalation-item {padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; margin: 0}
.escalation-item.urgent {background: transparent; border-color: var(--line)}
.escalation-item b {font-size: 14px; color: #394e62}
.escalation-item small {margin-top: 6px}
.notice-strip {border-radius: 7px; border: 1px solid #d8e5ef; padding: 12px 16px; background: #f3f8fc; margin: 14px 0 18px; color: #46647b}
.notice-strip b {font-size: 13px; color: #315971}
.notice-strip span {font-size: 12px; line-height: 1.6}
.notice-icon {color: var(--teal); background: #e7f2fa; border-radius: 6px}
.call-kpis {gap: 12px; margin: 0 0 16px}
.call-kpis>div {padding: 11px 15px; border: 1px solid var(--line); border-radius: 7px; box-shadow: none}
.call-kpis span {font-size: 13px; color: var(--muted)}
.call-kpis b {font: 600 25px/1.2 var(--font-numeric); color: #263a50; font-variant-numeric: tabular-nums}
.call-kpis small {font-size: 12px; color: var(--muted)}
.voice-workbench.upload-only {grid-template-columns: 220px minmax(300px,1fr) minmax(280px,340px); gap: 16px; align-items: start}
.voice-workbench.upload-only .voice-result {grid-column: auto}
.call-records-panel {padding: 0; overflow: hidden}
.call-records-panel>.panel-heading {padding: 14px; margin: 0; border-bottom: 1px solid var(--line)}
.call-record-search {display: block; padding: 12px}
.app-shell .call-record-search input {width: 100%; font-size: 13px !important; padding: 8px 10px !important}
.call-record-list {max-height: 610px; overflow-y: auto}
.app-shell .call-record {display: block; width: 100%; min-height: 90px; padding: 12px 14px; border: 0; border-top: 1px solid #e8edf2; border-radius: 0; background: white; color: #2a4157; text-align: left; white-space: normal}
.call-record:hover {background: #f3f8fc}
.call-record.active {border-left: 3px solid var(--teal); padding-left: 11px; background: #edf6fc}
.call-record strong {font-size: 14px; font-weight: 500; display: block}
.call-record .record-topic {font-size: 12px; color: var(--muted); display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.call-record .record-meta {display: flex; gap: 7px; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted)}
.call-record[disabled] {opacity: 1; cursor: default}
.call-record-empty {font-size: 12px !important; color: var(--muted); padding: 16px}
.voice-operation {padding: 18px; min-width: 0}
.inline-customer-context {padding: 0 0 13px; margin-bottom: 12px; border-bottom: 1px solid var(--line)}
.inline-customer-context .panel-heading {margin-bottom: 10px}
.inline-customer-context .panel-heading h2 {font-size: 14px}
.inline-customer-context select {width: 100%}
.selected-call-context {display: none; margin: 0; color: #31536f}
.has-selected-call:not(.preparing-upload) .selected-call-context {display: block; font-size: 14px; color: #31536f}
.has-selected-call:not(.preparing-upload) .inline-customer-context>.panel-heading,
.has-selected-call:not(.preparing-upload) .inline-customer-context>.input-label,
.has-selected-call:not(.preparing-upload) .inline-customer-context>select {display: none}
.customer-details {margin-top: 9px}
.customer-details>summary {font-size: 12px; color: var(--teal); cursor: pointer; padding: 4px 0}
.customer-mini-list {display: none}
.call-customer-card {padding: 12px; background: #f5f8fb; border: 1px solid #e2eaf0; border-radius: 6px; margin-top: 8px}
.call-customer-card b {font-size: 14px; color: #334d63}
.call-customer-card small, .call-customer-card .customer-line {font-size: 12px; color: var(--muted)}
.recording-uploader {margin-bottom: 14px; border: 1px solid #d7e2ec; border-radius: 6px; overflow: hidden}
.recording-uploader>summary {cursor: pointer; color: #335c77; background: #f4f8fc; padding: 9px 12px; font-size: 13px}
.recording-uploader>summary span {float: right; font-size: 12px; color: var(--muted)}
.recording-drop {border: 0; padding: 14px 12px; background: white; border-radius: 0; text-align: left}
.recording-drop>span {font-size: 12px; color: var(--muted)}
.recording-drop>b {font-size: 14px; margin: 6px 0}
.app-shell .recording-drop p {font-size: 12px; margin: 8px 0 12px}
.real-audio-player {padding: 12px; border: 1px solid #e0e7ee; border-radius: 6px; background: #f3f6fa; margin: 12px 0}
.audio-meta {gap: 9px; align-items: flex-start}
.audio-meta b {font-size: 13px; overflow-wrap: anywhere; color: #2b455e}
.audio-meta small {font-size: 12px}
.audio-icon {display: none}
.real-audio-player audio {width: 100%; min-width: 0; height: 34px; margin-top: 10px}
.pipeline-steps {gap: 6px; margin: 13px 0; flex-wrap: wrap}
.pipeline-steps span {padding: 4px 7px; border-radius: 4px; background: #eff3f7; color: #5d7185; font-size: 12px}
.pipeline-steps span.active {background: #fff4df; color: #8c5710}
.pipeline-steps span.done {background: #eaf6ee; color: #146941}
.pipeline-steps i {width: 8px; background: #cedae5}
.voice-operation #transcript {min-height: 260px; padding: 12px; width: 100%; font-size: 14px; line-height: 1.8; resize: vertical; background: #fbfcfe}
.call-action-row {margin-top: 12px}
.voice-result {padding: 0; overflow: hidden}
.voice-result>.panel-heading {padding: 14px 16px; border-bottom: 1px solid var(--line); margin: 0; flex-wrap: wrap}
.voice-result .call-results {padding: 15px; display: grid; gap: 12px; max-height: 680px; overflow-y: auto}
.analysis-summary {background: #f4f8fc; padding: 12px; border: 1px solid #e0eaf2; border-radius: 6px}
.analysis-summary b {font-size: 13px; color: #31566f}
.app-shell .analysis-summary p {font-size: 14px; margin: 8px 0; color: #344e63}
.result-card {border: 1px solid #e0e7ee; border-radius: 6px; padding: 12px; background: white}
.result-card>div {align-items: flex-start; gap: 12px}
.result-card span {font-size: 13px; color: var(--muted)}
.result-card b {font-size: 14px; color: #2b4b64; text-align: right}
.app-shell .result-card p {font-size: 12px; line-height: 1.75; color: var(--muted); border-left: 2px solid #cdddeb; padding-left: 9px; margin-top: 9px}
.voice-result .result-actions {padding: 14px 16px; border-top: 1px solid var(--line); margin: 0; flex-direction: column; align-items: stretch; gap: 7px; background: #fafcfe}
.voice-result .result-actions button {width: 100%; border: 1px solid var(--teal); background: var(--teal); color: white; border-radius: 6px; padding: 9px 12px; font-size: 13px; min-height: 36px}
.voice-result .result-actions button:disabled {border-color: #dce4ec; background: #edf2f6; color: #667b8f; cursor: not-allowed}
.analysis-source {padding: 9px 15px; background: #f5f8fb; color: var(--muted); font-size: 12px; overflow-wrap: anywhere}
.analysis-source #analysis-model {background: none; border: 0; padding: 0; font-size: 12px}
.call-ledger {margin-top: 18px}
.call-ledger .table-wrap table {min-width: 1000px}
.empty-result {min-height: 200px; border-color: #d8e3ec; background: #f8fbfe; border-radius: 6px; color: #526b83}
.empty-result>span {color: var(--teal); font-size: 22px}
.empty-result>b {font-size: 15px; color: #385a73}
.app-shell .empty-result>p {font-size: 13px; line-height: 1.8; color: var(--muted)}
.content-mode-tabs {display: inline-flex; gap: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0 0 18px; width: 100%}
.content-mode-tabs button {display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; font-size: 14px; transition: color .15s}
.content-mode-tabs button:hover {transform: none; border-color: #9abfd8; background: transparent}
.content-mode-tabs button.active {color: var(--teal); background: transparent; border-color: var(--teal); box-shadow: none}
.content-mode-tabs span {display: none}
.content-mode-tabs b {font-size: 14px; color: inherit; font-weight: 500}
.creative-workflow.production-tabs {margin: 0 0 14px; background: white; padding: 0 18px; border: 1px solid var(--line); border-radius: 7px; gap: 26px; box-shadow: none}
.production-tabs button {display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 13px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #5d7186; white-space: nowrap}
.production-tabs button[aria-selected=true] {color: var(--teal); border-bottom-color: var(--teal); font-weight: 600}
.production-tabs button>span, .production-tabs button>span.active {display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf3f8; color: #5c768d; padding: 0; font-size: 12px}
.production-tabs button[aria-selected=true]>span {background: #e7f3fb; color: var(--teal)}
.integrated-studio, .seedance-studio {grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start}
.seedance-studio .studio-editor {padding: 20px}
.seedance-studio .studio-preview-panel {position: sticky; top: 20px; padding: 18px}
.production-step {padding: 18px 0 0; margin: 0; border-color: #e4eaf1}
.production-step:first-child {padding-top: 0; border-top: 0}
.creative-style-options {border: 1px solid #dce5ee; border-radius: 6px; margin: 0 0 16px; padding: 0 12px}
.creative-style-options>summary, .creative-enhanced-result>summary {font-size: 13px; color: #3f5f78; padding: 10px 0; cursor: pointer}
.creative-style-options>summary>span, .creative-enhanced-result>summary>span {float: right; font-size: 12px; color: var(--muted); margin-left: 10px}
.creative-style-options .style-picker {margin: 5px 0 13px}
.creative-enhanced-result {margin-top: 13px; border-top: 1px solid #e1e9f1}
.creative-enhanced-result .enhanced-prompt-box {margin-top: 0}
.content-support-details {margin-top: 18px; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 0 16px}
.content-support-details>summary {padding: 13px 0; font-size: 14px; color: #385b76; cursor: pointer}
.content-support-details>summary>span {float: right; font-size: 12px; color: var(--muted)}
.content-support-details>.content-bottom-grid {padding-bottom: 16px; margin-top: 0}
.step-heading {gap: 10px; margin-bottom: 16px; align-items: flex-start}
.step-heading>span:first-child {display: none}
.step-heading b {font-size: 15px; font-weight: 600; color: #2b455e}
.step-heading small {font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 3px}
.step-state {padding: 4px 7px; font-size: 12px; color: #536e85; background: #f0f5f9; border-radius: 4px; white-space: normal}
.style-picker {grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 16px}
.style-picker button, .style-picker button:nth-child(n) {border: 1px solid #d7e2ec; border-radius: 6px; background: #fff; padding: 10px; min-height: 58px; box-shadow: none}
.style-picker button.selected {border-color: var(--teal); background: #eff7fc; box-shadow: 0 0 0 1px var(--teal)}
.style-picker b {font-size: 13px; color: #2d536f; font-weight: 500}
.style-picker small {font-size: 12px; color: #64788c; margin-top: 4px}
.ai-assist-button, .asset-button {background: #f4f9fd; color: #086d9f; border-color: #b9d3e5; font-size: 13px}
.enhanced-prompt-box {border: 1px solid #d6e5ef; border-radius: 6px; background: #f4f9fd; padding: 13px; margin-top: 12px}
.enhanced-prompt-box>span {font-size: 13px; color: #315b76}
.enhanced-prompt-box small {font-size: 12px}
.prompt-label-row {gap: 12px; align-items: center}
.prompt-label-row small {font-size: 12px; color: var(--muted); line-height: 1.7}
.storyboard-grid {grid-template-columns: 1fr; gap: 12px}
.storyboard-card {grid-template-columns: 92px minmax(0,1fr); padding: 12px; border-radius: 6px; background: #fbfcfe; border-color: #dce6ee}
.storyboard-copy b {font-size: 14px}
.storyboard-copy em {font-size: 12px; color: #4a7897}
.storyboard-copy textarea {min-height: 100px}
.storyboard-visual {min-height: 150px; border-radius: 5px; background: #e9f2f9}
.storyboard-visual>span {font-size: 12px; background: #1a4265; border-radius: 4px}
.voice-toolbar {align-items: start; flex-wrap: wrap; gap: 12px}
.voice-toolbar audio {width: 100%; min-width: 0; flex: 1 1 100%}
.voice-toolbar label {font-size: 13px; color: #48637a}
.caption-row {grid-template-columns: 90px minmax(0,1fr)}
.caption-row span {font-size: 12px; color: #4f6a81}
.caption-list {border-color: #dbe6ef; background: #f7fafd; border-radius: 6px}
.asset-row {padding: 13px; background: #f5f8fc; border-radius: 6px; border-color: #dce6ef; flex-wrap: wrap; gap: 9px}
.asset-row b {font-size: 13px; font-weight: 500; color: #35536b}
.asset-status span, .asset-status b, .image-logo-row>span {padding: 5px 8px; border-radius: 4px; background: #edf3f8; color: #4d697f; font-size: 12px}
.asset-status .ready, .image-logo-row>span.ready {background: var(--surface-success); color: var(--text-success)}
.review-checklist {gap: 12px; padding: 14px; border: 1px solid #dce5ee; background: #f8fafd; border-radius: 6px}
.review-checklist label, .subtitle-toggle {font-size: 13px; color: #38536a; line-height: 1.7}
.review-checklist input, .subtitle-toggle input {width: 16px; height: 16px; flex: none; accent-color: var(--teal)}
.studio-actions {flex-wrap: wrap; align-items: center; gap: 10px}
.studio-actions small {font-size: 12px; flex: 1 1 100%; margin: 3px 0 0}
.production-navigation {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e2e9f0; padding-top: 16px; margin-top: 20px}
.draft-actions {display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center}
.draft-actions>span {flex: 1 1 100%; font-size: 12px; color: var(--muted)}
.stage-navigation {display: flex; gap: 8px; margin-left: auto}
.storyboard-monitor {min-height: 0}
.storyboard-stage {min-height: 350px; border-radius: 6px; border: 1px dashed #c7dce9; background: #f4f8fc}
.storyboard-stage-empty {padding: 28px 18px; color: #516d84}
.storyboard-stage-empty b {font: 500 16px/1.6 var(--font-ui); color: #355c78}
.storyboard-stage-empty small {font-size: 12px; color: #5f7388; max-width: 235px; margin-top: 8px}
.storyboard-stage.has-shot {background: #132f47; border-color: #132f47}
.storyboard-stage-info b {font: 500 15px/1.5 var(--font-ui); color: #f2f7fc}
.storyboard-stage-info em {font-size: 12px; color: #93c6e6}
.app-shell .storyboard-stage-info p {font-size: 13px; color: #d3e1ee}
.app-shell .storyboard-stage-info small {font-size: 12px; color: #b1cadf}
.preflight-summary {gap: 8px; margin-top: 14px}
.preflight-summary>span {font-size: 12px; color: #4f6e85; padding: 9px; background: #f0f5f9; border-radius: 5px}
.preflight-summary b {font-size: 13px; color: #264e6b; margin-top: 5px}
.content-download {font-size: 13px; border-radius: 6px; border-color: #bcd7e8; background: #edf6fc; color: #076c9d; padding: 9px 12px; width: 100%}
.content-bottom-grid {grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 18px; margin-top: 18px}
.content-job-row {gap: 9px; padding: 12px 0; border-color: #e7edf3}
.content-job-row>span:first-child {background: #eaf3fa; color: var(--teal); border-radius: 5px; font-size: 12px}
.content-job-row b {font-size: 13px; color: #2c4d66}
.content-job-row small {font-size: 12px; color: var(--muted)}
.content-job-row em {font-size: 12px; color: #4f6c83}
.content-job-row em.manual_reconciliation {color: #8c5710; background: #fff4df}
.studio-canvas {background: #eaf4fb; color: #184e70; border: 1px solid #d3e5f1; box-shadow: none; border-radius: 6px; padding: 18px; width: min(100%,270px)}
.canvas-brand {align-self: stretch}
.canvas-brand img {display: block; width: 155px; height: 48px; object-fit: contain; max-width: 100%}
.canvas-brand.symbol-mode {width: 45px}
.canvas-brand.symbol-mode img {width: 45px; height: 48px; max-width: 100%; object-fit: contain}
.studio-canvas>strong {font: 600 25px/1.55 var(--font-ui); color: #124a70; margin-top: 24px}
.canvas-scene {height: 155px; color: #578aa9}
.canvas-scene>span {background: #dcecf7; border: 1px solid #bfd6e7; color: #4c6f89; font-size: 13px}
.studio-canvas>em {font-size: 13px; color: #375f7b; line-height: 1.7; margin: 12px 0}
.studio-canvas>b {font-size: 16px; color: #235c81; letter-spacing: .02em}
.studio-canvas>small {font-size: 12px; color: #4a708c}
.image-production-note {padding: 11px 13px; background: #f2f8fc; color: #496e88; border-color: #8ebbd7; border-radius: 0 5px 5px 0}
.image-production-note b, .image-production-note span {font-size: 12px; color: #426981; line-height: 1.7}
.poster-result {box-shadow: 0 8px 20px #16375415; border-radius: 6px; max-width: 100%}
.clinical-alert {background: #fceeee; color: #a03232; border: 1px solid #edcccc; border-radius: 6px; padding: 12px; font-size: 13px; line-height: 1.75}
.clinical-source {color: var(--muted); font-size: 12px}
.check-list span {background: #edf5fb; border-color: #c6ddeb; color: #315e7d; border-radius: 5px; padding: 7px 10px; font-size: 13px}
.check-list.suggested span {background: #fff5e6; border-color: #ebd2ab; color: #865b21}
.cadence-item {padding: 14px 0; gap: 12px}
.cadence-item>span {background: #eaf3fa; color: #287098; border-radius: 5px; font-size: 12px}
.cadence-item b {font-size: 14px; font-weight: 500; color: #35536a}
.member-insight {padding: 18px; border-radius: 8px}
.doctor-monitor {padding: 18px; border-radius: 8px}
.doctor-stats b, .insight-metrics b {font-family: var(--font-numeric); font-size: 26px; color: #214a6a}
.radar-label {font-size: 12px; color: #48667e}
.radar-shape {background: #087ab23d}
.growth-chart div {background: #559bc6; border-radius: 4px 4px 0 0}
.growth-chart span, .growth-axis {font-size: 12px; color: #536f86}
.shortfall {border-color: #cd9a54; border-radius: 5px; background: #fff7ea}
.shortfall b {font-size: 13px; color: #855c23}
.modal-backdrop {background: #10283f66; padding: 28px 18px; backdrop-filter: blur(2px)}
.modal {border-radius: 9px; border: 1px solid #d4dfe9; padding: 24px; box-shadow: 0 16px 65px #09223b29}
.modal h2 {font: 600 20px/1.5 var(--font-ui); color: var(--ink)}
.modal form label {font-size: 13px; color: #35536b; font-weight: 500; gap: 7px}
.modal form input:not([type=hidden]), .modal form select, .modal form textarea {font-size: 14px; border-color: #cfd9e4; background: white; color: #29445e; border-radius: 6px; line-height: 1.65; padding: 9px 11px}
.modal-top {margin-bottom: 19px}
.modal-actions {gap: 8px; margin-top: 20px}
.modal small, .modal .panel-note, .modal .duplicate-hint {font-size: 12px; color: var(--muted); line-height: 1.7}
.form-error {color: #a73535; font-size: 13px}
.required-caption {font: inherit; color: inherit}
.required-mark {color: #a73535; font-size: 12px; margin-left: 2px}
.icon-close {font-size: 23px; width: 32px; height: 32px; color: #5a7086; border-radius: 5px; border: 0; background: #f0f4f8}
.task-history h3 {font-size: 14px; color: #31546e}
#task-history-list>div {border-color: #b7d3e6; background: #f7fafd; border-radius: 0 5px 5px 0; padding: 9px 12px}
#task-history-list b, #task-history-list p {font-size: 12px; color: #4c687f; line-height: 1.75}
.toast {background: #18344c; color: #fff; font-size: 13px; padding: 11px 17px; border-radius: 6px; max-width: min(540px,calc(100vw - 32px)); box-shadow: 0 7px 22px #112f4726; line-height: 1.65}
.login-screen {background: #10283f; color: white; padding: 34px 6vw; overflow-y: auto}
.login-brand {display: flex; align-items: center; gap: 20px; margin-bottom: 44px}
.login-brand img {display: block; width: 235px; height: 74px; object-fit: contain}
.login-brand>span {font-size: 15px; color: #bfd2e2; border-left: 1px solid #466078; padding-left: 20px; letter-spacing: .1em}
.login-layout {grid-template-columns: minmax(0,1fr) 420px; gap: 7vw; max-width: 1240px; margin: 0 auto; align-items: center; min-height: calc(100vh - 245px)}
.login-layout>section h1 {font: 500 33px/1.65 var(--font-ui); color: #f4f9fc; max-width: 560px; letter-spacing: .02em; margin: 0 0 20px}
.login-layout>section>p {font-size: 15px; color: #bdcedd; line-height: 1.9; max-width: 530px}
.login-layout>section>p:not(.eyebrow) {color: #bdcedd; font-size: 15px; line-height: 1.9}
.login-points {gap: 20px; margin-top: 36px}
.login-points>span {font-size: 12px; color: #9bb8ce; border-top: 1px solid #ffffff25; padding-top: 14px}
.login-points b {font-size: 14px; color: #dce9f3; font-weight: 500; line-height: 1.7}
.login-layout form {border: 1px solid #dee6ee; background: white; color: var(--ink); padding: 31px; border-radius: 10px; box-shadow: 0 12px 40px #00182c2b}
.login-form-head>span {color: var(--teal); font-size: 13px; font-weight: 500}
.login-form-head h2 {font: 600 24px/1.5 var(--font-ui); margin: 8px 0 6px; color: #1b334a}
.login-form-head p {font-size: 13px; line-height: 1.75; color: var(--muted)}
.login-layout form>label {font-size: 13px; color: #36536a; font-weight: 500; gap: 7px; margin-top: 19px}
.login-layout form input {font-size: 14px; border: 1px solid #ccd8e3; border-radius: 6px; padding: 11px 12px; background: white; color: #253d54}
.login-layout form>.solid-button {margin-top: 24px; min-height: 42px; font-size: 14px}
.login-error {font-size: 13px; color: #ac3f3f; min-height: 20px}
@media(min-width:1600px) {main{padding:28px 32px}.voice-workbench.upload-only{grid-template-columns:240px minmax(320px,1fr) 350px}.integrated-studio,.seedance-studio{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1320px) {.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.voice-workbench.upload-only{grid-template-columns:210px minmax(0,1fr)}.voice-workbench.upload-only .voice-result{grid-column:2}.call-records-panel{grid-row:1/3}.voice-result .call-results{max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))}.voice-result .analysis-summary,.voice-result .clinical-alert{grid-column:1/-1}.integrated-studio,.seedance-studio{grid-template-columns:minmax(0,1fr) 290px}.seedance-studio .studio-editor{padding:18px}.three-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.style-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px) {.head-actions{width:100%}.page-head{align-items:flex-start;flex-wrap:wrap}.integrated-studio,.seedance-studio{grid-template-columns:minmax(0,1fr)}.seedance-studio .studio-preview-panel{position:static}.storyboard-stage{min-height:260px}.preflight-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.task-row.persistent-task{grid-template-columns:4px minmax(140px,1fr) 95px 115px 54px;gap:10px}.content-bottom-grid{grid-template-columns:1fr 1fr}.topbar{padding:0 22px}.page-head h1{font-size:24px}.login-layout{gap:5vw;grid-template-columns:minmax(0,1fr) 380px}.login-layout>section h1{font-size:28px}}
@media(max-width:900px) {.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;height:100dvh;min-height:100dvh;width:230px;z-index:95;transform:translateX(-100%);transition:transform .18s ease;visibility:hidden;overflow:auto}.app-shell.nav-open .sidebar{transform:translateX(0);visibility:visible}.sidebar-close{display:inline-flex;align-items:center;justify-content:center;align-self:flex-end;width:36px;height:36px;border:0;background:#ffffff12;color:#e1edf7;border-radius:5px;margin:-8px -1px 8px}.nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;border:1px solid #d7e2eb;border-radius:6px;background:white;color:#41647e;padding:7px;margin-right:12px}.nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#10283f66;border:0;border-radius:0;z-index:90}.topbar{height:58px;position:sticky;top:0;z-index:30;padding:0 18px}.breadcrumb{margin-right:auto}.top-actions{gap:8px}main{padding:20px 18px}.session-copy small{display:none}.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.identity{margin-bottom:18px}.voice-workbench.upload-only{grid-template-columns:200px minmax(0,1fr)}.table-tools{flex-wrap:wrap}.login-screen{padding:25px 5vw}.login-brand{margin-bottom:28px}.login-layout{grid-template-columns:1fr;gap:28px;max-width:520px;margin:0 auto}.login-layout>section h1{font-size:26px;max-width:none;margin-bottom:10px}.login-layout>section>p{font-size:14px}.login-points{display:none}.login-layout form{width:100%;padding:27px}.login-brand img{width:195px;height:60px}.login-brand>span{font-size:13px}}
@media(max-width:600px) {.topbar{padding:0 12px;gap:0;height:58px}.nav-toggle{margin-right:9px;min-height:36px;width:36px}.breadcrumb{font-size:12px;gap:6px}.breadcrumb>span:first-child{display:none}.session-copy{display:none}.top-actions{gap:5px}.avatar{width:28px;height:28px;font-size:12px}.logout-button{font-size:12px;padding:5px 7px;min-height:32px}main{padding:18px 12px 24px}.page-head,.page-head.compact{gap:13px;margin-bottom:15px}.page-head h1{font-size:23px}.page-head p{font-size:13px;line-height:1.7}.head-actions{display:flex;flex-wrap:wrap;width:100%;gap:8px;align-items:end}.head-actions .report-control{flex:1;min-width:130px}.report-control input,.report-control select{min-width:0;width:100%;height:40px;font-size:14px}.head-actions>.solid-button{min-height:40px}.dashboard-metrics,.metric-grid.three,.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:12px;min-height:107px}.metric>strong{font-size:27px}.metric>span{font-size:13px}.metric small{font-size:12px}.scope-notice p{display:none}.scope-notice{margin:0 0 6px}.report-provenance{font-size:12px;padding:8px 10px;line-height:1.7}.panel{padding:16px;border-radius:7px}.panel-heading{gap:9px;flex-wrap:wrap;margin-bottom:14px}.panel h2,.panel-heading h2{font-size:16px}.department-report-panel{padding:0}.department-report-panel .panel-heading{padding:13px 14px}.role-insights{grid-template-columns:1fr}.department-report-panel .table-wrap table{min-width:800px}.table-wrap table{min-width:680px}th,td{padding:9px 13px}.solid-button,.ghost-button,.asset-button,.ai-assist-button,.outline-button{min-height:44px;font-size:13px}.table-action{min-height:36px}.app-shell .panel input:not([type=checkbox]):not([type=radio]):not([type=file]),.app-shell .panel select,.app-shell .panel textarea,.modal form input:not([type=hidden]),.modal form select,.modal form textarea{font-size:16px}.form-grid,.three-fields{grid-template-columns:minmax(0,1fr);gap:13px}.voice-workbench.upload-only{display:flex;flex-direction:column;gap:14px}.voice-workbench.upload-only>.panel{width:100%;grid-column:auto;grid-row:auto}.call-records-panel{padding:0}.call-record-list{display:flex;gap:0;max-height:170px;overflow:auto;border-top:1px solid var(--line)}.app-shell .call-record{width:220px;min-width:220px;flex:none;border-top:0;border-right:1px solid var(--line);min-height:104px}.call-record.active{border-left:0;border-bottom:3px solid var(--teal);padding:12px 14px 9px}.call-record-search{padding:10px 12px}.call-records-panel>.panel-heading{margin:0;padding:12px 14px}.call-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.call-kpis>div{padding:11px 12px}.call-kpis b{font-size:24px}.call-kpis small{display:none}.voice-operation{padding:16px}.voice-result{padding:0}.voice-result .call-results{grid-template-columns:1fr}.voice-operation #transcript{min-height:220px}.pipeline-steps i{display:none}.pipeline-steps{gap:5px}.pipeline-steps span{font-size:12px;padding:4px 6px}.recording-drop{padding:12px}.upload-call-button{display:inline-flex;min-height:44px;align-items:center}.call-ledger{margin-top:14px}.content-mode-tabs{margin-bottom:14px}.content-mode-tabs button{font-size:14px;min-height:44px;padding:9px 16px}.creative-workflow.production-tabs{gap:16px;padding:0 12px;overflow-x:auto}.production-tabs button{font-size:13px;min-height:48px;gap:6px;padding:11px 0}.production-tabs button>span{display:none}.seedance-studio .studio-editor{padding:16px}.step-heading{flex-wrap:wrap}.step-heading>div{min-width:0}.step-heading>.ai-assist-button{margin-left:auto}.style-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.style-picker button{min-height:66px;padding:10px}.style-picker b{font-size:13px}.storyboard-grid{grid-template-columns:1fr}.storyboard-card{grid-template-columns:75px minmax(0,1fr);padding:10px;gap:10px}.storyboard-copy textarea{min-height:120px}.storyboard-copy>div{flex-wrap:wrap}.prompt-label-row{align-items:stretch;flex-direction:column}.prompt-label-row .ai-assist-button{align-self:flex-start}.voice-toolbar{display:flex;flex-direction:column}.voice-toolbar label,.voice-toolbar audio{width:100%}.production-navigation{gap:15px;align-items:stretch}.draft-actions{width:100%}.stage-navigation{width:100%;justify-content:space-between}.stage-navigation>.ghost-button{flex:1}.preflight-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.content-bottom-grid{grid-template-columns:1fr;gap:14px}.content-job-row{flex-wrap:wrap;align-items:flex-start}.content-job-row>div{min-width:130px}.studio-actions{align-items:stretch;flex-direction:column}.studio-actions button{width:100%}.asset-row{align-items:flex-start}.asset-row>div{flex:1 1 100%}.asset-row>label{flex:1;white-space:normal;text-align:center}.asset-select{width:100%}.image-production-note{display:block}.image-production-note>b{display:block;margin-bottom:4px}.task-row.persistent-task{grid-template-columns:4px minmax(0,1fr) auto;gap:9px}.persistent-task .task-dept{grid-column:2;display:block}.persistent-task .task-time{grid-column:2;max-width:none;text-align:left}.persistent-task button{grid-column:3;grid-row:1/4;min-height:44px}.task-main>b{font-size:14px}.table-tools{width:100%}.table-tools input,.table-tools select{width:100%}.demo-badge{font-size:12px;vertical-align:middle}.modal-backdrop{padding:14px 10px;backdrop-filter:none}.modal{padding:22px 17px;max-height:calc(100dvh - 28px)}.modal h2{font-size:20px}.modal-actions>*{min-height:44px;flex:1}.icon-close{width:36px;height:36px}.notice-strip{padding:11px 12px;gap:9px}.notice-strip span{line-height:1.75}.toast{bottom:16px;font-size:13px;max-width:calc(100vw - 24px)}.login-screen{padding:22px 18px}.login-brand{gap:12px;margin-bottom:28px;align-items:center}.login-brand img{width:155px;height:49px}.login-brand>span{font-size:12px;line-height:1.8;padding-left:12px;max-width:130px;letter-spacing:.03em}.login-layout>section h1{font-size:24px;line-height:1.6}.login-layout>section>p{font-size:13px}.login-layout{gap:23px}.login-layout form{padding:25px 22px;border-radius:8px}.login-form-head h2{font-size:23px}.login-layout form input{font-size:16px;padding:11px}.login-layout form>.solid-button{min-height:44px}.cadence-item{gap:10px}.doctor-stats,.insight-metrics{gap:16px;flex-wrap:wrap}.radar-label{font-size:12px}}
@media(prefers-reduced-motion:reduce) {html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.view{animation:none}.nav-item,.solid-button{transform:none!important}}
@media(max-width:600px) {.page-head.compact h1{font-size:23px}}
