/* Shared clinical surfaces. Keep business state and permission selectors intact. */
:root, body.premium-ui, body.premium-ui.desktop-shell, body.premium-ui.desktop-workbench {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --background: #f5f5f7;
  --blue: #0071e3;
  --desktop-blue: #0071e3;
  --desktop-panel: #fff;
  color: var(--ink);
  background: var(--background);
  background-image: none;
}
body.premium-ui { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: -.15px; }
body.premium-ui .app-header {
  height: 76px; min-height: 76px; padding: 0 32px; gap: 28px;
  background: rgba(255,255,255,.96); border-bottom: 1px solid #e8e8ed;
  backdrop-filter: none; box-shadow: none;
}
body.premium-ui .app-header .brand { flex: none; min-width: 0; gap: 18px; }
body.premium-ui .app-header .brand .brand-logo { width: 132px; flex: 0 0 132px; height: 42px; max-width: none; filter: none; object-fit: contain; }
body.premium-ui .app-header .brand-rule { height: 24px; background: #dedee3; }
body.premium-ui .app-header .brand-product { color: #515154; font-size: 16px; font-weight: 550; white-space: nowrap; }
body.premium-ui .app-header .header-navigation { gap: 4px; margin-right: auto; }
body.premium-ui .app-header .header-navigation a { border: 0; border-radius: 10px; min-height: 44px; padding: 0 16px; font-size: 16px; font-weight: 500; color: #6e6e73; }
body.premium-ui .app-header .header-navigation a:hover { color: #1d1d1f; background: #f5f5f7; }
body.premium-ui .app-header .header-navigation a[aria-current="page"] { color: #1d1d1f; background: #f0f0f3; border-color: transparent; font-weight: 600; }
body.premium-ui .app-header .header-actions { gap: 10px; }
body.premium-ui .account-entry { background: transparent; border-color: transparent; padding: 5px 12px; border-radius: 12px; color: #48484a; }
body.premium-ui .account-entry strong { color: #6e6e73; font-size: 15px; }
body.premium-ui .account-entry:hover { background: #f5f5f7; }
body.premium-ui .app-header .connection-pill { min-height: 44px; border-radius: 999px; color: #287143; background: #f0f7f2; font-size: 15px; }
body.premium-ui .app-header .connection-pill.unavailable { color: #805b17; background: #fbf5e8; }
body.premium-ui .app-header .icon-button { min-width: 44px; width: 44px; min-height: 44px; height: 44px; color: #6e6e73; }
body.premium-ui .app-header #clock { color: #48484a; }
body.premium-ui .app-header #clock small { font-size: 15px; color: #6e6e73; }
body.premium-ui .button, body.premium-ui .admin-button {
  min-height: 44px; padding: 10px 18px; border-radius: 11px;
  font-size: 16px; font-weight: 550; letter-spacing: 0;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body.premium-ui .button.primary, body.premium-ui .admin-primary { background: #0071e3; color: #fff; border-color: #0071e3; box-shadow: none; }
body.premium-ui .button.primary:hover, body.premium-ui .admin-primary:hover { background: #0077ed; border-color: #0077ed; }
body.premium-ui .button.primary:active, body.premium-ui .admin-primary:active { background: #0064c8; border-color: #0064c8; }
body.premium-ui .button.secondary, body.premium-ui .admin-button:not(.admin-primary) { color: #343438; background: #fff; border-color: #dddde3; box-shadow: none; }
body.premium-ui .button.secondary:hover, body.premium-ui .admin-button:not(.admin-primary):hover { background: #f5f5f7; border-color: #c8c8d0; }
body.premium-ui .button.text-button { color: #006bcf; background: transparent; box-shadow: none; }
body.premium-ui .button.text-button:hover { background: #f2f6fc; }
body.premium-ui .button:disabled, body.premium-ui .admin-button:disabled { opacity: .45; cursor: default; }
body.premium-ui :is(button, a, input, textarea, select, summary):focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
body.premium-ui .icon-button:hover { background: #f0f0f3; }
body.premium-ui .icon { stroke-width: 1.7; }
body.premium-ui .card { border: 1px solid #e5e5ea; border-radius: 20px; box-shadow: 0 2px 6px #1d1d1f03; background: #fff; }
body.premium-ui .muted, body.premium-ui .small { color: #6e6e73; font-size: 16px; }
body.premium-ui.desktop-shell #main { min-height: calc(100dvh - 76px); }
body.premium-ui.desktop-shell .page { max-width: 1400px; padding: 36px 40px; }
body.premium-ui.desktop-shell .page-title { padding: 0; margin-bottom: 28px; }
body.premium-ui.desktop-shell .page-title h1 { color: #1d1d1f; font-size: 30px; letter-spacing: -.8px; }
body.premium-ui.desktop-shell .page-title p { color: #6e6e73; font-size: 16px; margin-top: 8px; }
body.premium-ui .record-library { padding: 24px 28px; }
body.premium-ui .library-toolbar { gap: 20px; margin-bottom: 22px; }
body.premium-ui .search-field { min-height: 48px; border-radius: 12px; border: 1px solid #e1e1e6; background: #f5f5f7; color: #6e6e73; }
body.premium-ui .search-field input { font-size: 16px; color: #1d1d1f; background: transparent; }
body.premium-ui .search-field:focus-within { background: #fff; border-color: #0071e3; box-shadow: 0 0 0 3px #0071e314; }
body.premium-ui .segmented { padding: 4px; border-radius: 12px; background: #f0f0f3; }
body.premium-ui .segmented button { min-height: 44px; border-radius: 9px; padding: 8px 18px; font-size: 16px; color: #6e6e73; }
body.premium-ui .segmented button[aria-pressed="true"] { color: #1d1d1f; background: #fff; box-shadow: 0 1px 4px #1d1d1f12; }
body.premium-ui .record-row { min-height: 92px; gap: 24px; border-color: #ededf0; }
body.premium-ui .record-row:hover { background: #fafafb; }
body.premium-ui .record-name strong { color: #1d1d1f; font-size: 17px; }
body.premium-ui .record-name small, body.premium-ui .record-date { color: #6e6e73; font-size: 16px; }
body.premium-ui .tag { font-size: 15px; border-radius: 7px; color: #636368; background: #f2f2f5; }
body.premium-ui .tag.green { color: #286644; background: #edf5ef; }
body.premium-ui .tag.amber { color: #805b17; background: #faf4e7; }
body.premium-ui .pagination { font-size: 16px; border-color: #ededf0; color: #6e6e73; padding-top: 24px; }
body.premium-ui .empty { color: #6e6e73; }
body.premium-ui .empty p { color: #6e6e73; font-size: 16px; }
body.premium-ui .setting-card { padding: 28px; }
body.premium-ui .setting-card h2 { color: #1d1d1f; font-size: 21px; }
body.premium-ui .setting-card p, body.premium-ui .service-row small { color: #6e6e73; font-size: 16px; line-height: 1.7; }
body.premium-ui .feature-icon { background: #eef4fb; color: #0071e3; border-radius: 14px; }
body.premium-ui .service-row { border-color: #ededf0; }
body.premium-ui .mode-options button { border-color: #e0e0e6; border-radius: 12px; background: #fff; }
body.premium-ui .mode-options button[aria-pressed="true"] { background: #f0f6ff; border-color: #0071e3; color: #0064c8; }

/* The visit remains a compact instrument: clear panels, legible content. */
body.premium-ui.desktop-workbench .visit-page { height: calc(100dvh - 76px); max-width: 1800px; padding: 0 24px; min-height: 600px; }
body.premium-ui.desktop-workbench .patient-bar { min-height: 70px; padding: 10px 2px; gap: 16px; }
body.premium-ui.desktop-workbench .patient-bar > .icon-button { width: 44px; min-width: 44px; height: 44px; margin-left: -6px; }
body.premium-ui.desktop-workbench .patient-summary h1 { color: #1d1d1f; font-size: 18px; font-weight: 600; }
body.premium-ui.desktop-workbench .patient-summary p { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .patient-bar > .button { min-height: 44px; font-size: 15px; color: #006bcf; }
body.premium-ui.desktop-workbench .mode-badge { font-size: 15px; background: #eeeef2; color: #626268; border-color: transparent; border-radius: 7px; }
body.premium-ui.desktop-workbench .save-indicator { font-size: 15px; color: #6e6e73; }
body.premium-ui.desktop-workbench .workspace { grid-template-columns: minmax(0, 32fr) minmax(0, 33fr) minmax(0, 35fr); gap: 18px; }
body.premium-ui.desktop-workbench .workspace > .card { border: 1px solid #e5e5ea; border-radius: 20px; background: #fff; box-shadow: 0 2px 6px #1d1d1f03; }
body.premium-ui.desktop-workbench .panel-heading { min-height: 70px; padding: 16px 20px; border-bottom-color: #ededf0; gap: 10px; }
body.premium-ui.desktop-workbench .panel-heading h2 { color: #1d1d1f; font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
body.premium-ui.desktop-workbench .count { color: #74747a; background: #f2f2f5; border-radius: 6px; font-size: 15px; font-weight: 500; }
body.premium-ui.desktop-workbench .conversation-tools .button { font-size: 15px; padding: 8px; min-height: 44px; color: #6e6e73; }
body.premium-ui.desktop-workbench .conversation-feed { padding: 18px 16px 24px; scrollbar-color: #d1d1d6 transparent; }
body.premium-ui.desktop-workbench .turn, body.premium-ui.desktop-workbench .turn.patient { gap: 10px; margin-bottom: 18px; padding: 3px; border-radius: 12px; }
body.premium-ui.desktop-workbench .speaker-avatar.avatar-portrait { width: 44px; height: 44px; background: #f2f5f9; border-color: #e1e5eb; }
body.premium-ui.desktop-workbench .patient .speaker-avatar.avatar-portrait { background: #f0f5f2; border-color: #e0e8e3; }
body.premium-ui.desktop-workbench .turn-top > span, body.premium-ui.desktop-workbench .patient .turn-top > span { color: #3a3a3c; font-size: 15px; font-weight: 600; }
body.premium-ui.desktop-workbench .turn-top time { color: #74747a; font-size: 14px; }
body.premium-ui.desktop-workbench .turn p { background: #f3f3f6; color: #28282b; border-radius: 4px 14px 14px 14px; padding: 11px 14px; font-size: 16px; line-height: 1.75; }
body.premium-ui.desktop-workbench .turn.patient p { background: #edf4fc; }
body.premium-ui.desktop-workbench .turn-edit { min-width: 44px; width: 44px; min-height: 44px; height: 44px; border-radius: 10px; color: #74747a; opacity: .8; }
body.premium-ui.desktop-workbench .turn.selected, body.premium-ui.desktop-workbench .turn.source-highlight { background: #edf5ff; border-color: #c3dcfa; }
body.premium-ui.desktop-workbench .turn.selected p, body.premium-ui.desktop-workbench .turn.source-highlight p { background: #dfeeff; }
body.premium-ui.desktop-workbench .interim { background: #f5f8fd; border-color: #e0e9f5; color: #52677c; border-radius: 12px; font-size: 16px; }
body.premium-ui.desktop-workbench .new-speech { background: #fff; border-color: #dddde3; color: #006bcf; border-radius: 999px; font-size: 15px; }
body.premium-ui.desktop-workbench .facts-tabs, body.premium-ui.desktop-workbench .assistant-tabs { margin: 12px 16px 0; padding: 4px; gap: 3px; background: #f1f1f4; border: 0; border-radius: 11px; }
body.premium-ui.desktop-workbench .facts-tabs button, body.premium-ui.desktop-workbench .assistant-tabs button { flex: 1; min-height: 44px; font-size: 15px; padding: 8px 10px; border: 0; border-radius: 8px; color: #66666c; background: transparent; }
body.premium-ui.desktop-workbench .facts-tabs button[aria-selected="true"], body.premium-ui.desktop-workbench .assistant-tabs button[aria-selected="true"] { color: #1d1d1f; background: #fff; box-shadow: 0 1px 5px #1d1d1f12; font-weight: 600; }
body.premium-ui.desktop-workbench .facts-content, body.premium-ui.desktop-workbench .assistant-content { padding: 20px; scrollbar-color: #d1d1d6 transparent; }
body.premium-ui.desktop-workbench .fact-section-title { color: #3a3a3c; font-size: 16px; }
body.premium-ui.desktop-workbench .fact-section-title small, body.premium-ui.desktop-workbench .fact-source, body.premium-ui.desktop-workbench .timeline-label { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .timeline-text { color: #343438; font-size: 16px; }
body.premium-ui.desktop-workbench .timeline-text small { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .evidence-row { border: 0; border-bottom: 1px solid #ededf0; border-radius: 0; padding: 14px 4px; margin-bottom: 0; background: transparent; color: #343438; gap: 10px; }
body.premium-ui.desktop-workbench .evidence-row:hover { background: #f8f8fa; border-color: #e5e5ea; }
body.premium-ui.desktop-workbench .evidence-row.selected { background: #edf5ff; box-shadow: none; }
body.premium-ui.desktop-workbench .fact-label { font-size: 15px; color: #6e6e73; }
body.premium-ui.desktop-workbench .fact-value { font-size: 16px; }
body.premium-ui.desktop-workbench .vital { border-color: #e5e5ea; }
body.premium-ui.desktop-workbench .vital > span, body.premium-ui.desktop-workbench .vital > small, body.premium-ui.desktop-workbench .facts-note { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .vital strong { color: #343438; font-size: 17px; }
body.premium-ui.desktop-workbench .assistant-title small { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .assistant-tools { gap: 2px; }
body.premium-ui.desktop-workbench .assistant-tools .button { min-height: 44px; font-size: 15px; border-radius: 9px; padding: 8px; color: #6e6e73; }
body.premium-ui.desktop-workbench .assistant-tools .sound-toggle[aria-pressed="true"] { color: #006bcf; }
body.premium-ui.desktop-workbench .assistant-disclaimer { font-size: 15px; color: #6e6e73; background: #fcfcfd; border-color: #ededf0; padding: 12px 16px; }
body.premium-ui.desktop-workbench .advice-overview { color: #6e6e73; border-color: #e5e5ea; font-size: 15px; }
body.premium-ui.desktop-workbench .advice-task, body.premium-ui.desktop-workbench .guidance-card { background: #fafafb; border-color: #e6e6eb; border-radius: 14px; }
body.premium-ui.desktop-workbench .advice-task.is-priority { background: #fffbf3; border-color: #eddcc0; border-left-width: 3px; }
body.premium-ui.desktop-workbench .advice-task.is-support { background: #fafafb; }
body.premium-ui.desktop-workbench .advice-task.task-compact > summary, body.premium-ui.desktop-workbench .advice-task.is-support > summary { font-size: 16px; color: #343438; padding: 16px; }
body.premium-ui.desktop-workbench .advice-task-text { font-size: 16px; line-height: 1.75; color: #343438; }
body.premium-ui.desktop-workbench .advice-task-actions .button { min-height: 44px; border-radius: 9px; font-size: 15px; }
body.premium-ui.desktop-workbench .advice-group > summary { border-color: #e6e6eb; background: #f5f5f7; border-radius: 12px; color: #48484a; min-height: 48px; }
body.premium-ui.desktop-workbench .advice-group > summary small, body.premium-ui.desktop-workbench .advice-task-meta, body.premium-ui.desktop-workbench .task-evidence > summary { font-size: 15px; color: #6e6e73; }
body.premium-ui.desktop-workbench .guidance-source, body.premium-ui.desktop-workbench .task-evidence .guidance-source { background: #f0f2f5; color: #515158; border-color: #e5e5ea; border-radius: 10px; font-size: 16px; }
body.premium-ui.desktop-workbench .priority-banner { min-height: 76px; padding: 14px 18px; margin-bottom: 16px; background: #fffbf3; border: 1px solid #ecdcc1; border-left: 3px solid #b57a22; border-radius: 16px; box-shadow: none; }
body.premium-ui.desktop-workbench .priority-banner-symbol { background: #f7ebd5; border: 0; color: #8b641f; border-radius: 11px; }
body.premium-ui.desktop-workbench .priority-banner-heading strong { font-size: 18px; color: #694e23; }
body.premium-ui.desktop-workbench .priority-banner-heading span { font-size: 15px; }
body.premium-ui.desktop-workbench .priority-banner-copy p { font-size: 16px; color: #6a5637; }
body.premium-ui.desktop-workbench .priority-banner-action { min-height: 44px; font-size: 15px; border-radius: 10px; background: #755b31; border-color: #755b31; }
body.premium-ui.desktop-workbench .clinical-focus, body.premium-ui.desktop-workbench .clinical-peek { background: #f1f6fd; border-color: #dae6f5; color: #334b68; border-radius: 12px; font-size: 16px; }
body.premium-ui.desktop-workbench .clinical-card { border-color: #e5e5ea; border-radius: 14px; }
body.premium-ui.desktop-workbench .clinical-card header strong, body.premium-ui.desktop-workbench .clinical-section-title { color: #343438; font-size: 17px; }
body.premium-ui.desktop-workbench .clinical-card p, body.premium-ui.desktop-workbench .clinical-missing, body.premium-ui.desktop-workbench .clinical-evidence, body.premium-ui.desktop-workbench .clinical-risk p { color: #515158; font-size: 16px; }
body.premium-ui.desktop-workbench .clinical-missing { background: #f5f5f7; }
body.premium-ui.desktop-workbench .medication-reference { background: #fffdf8; border-color: #eadfc8; }
body.premium-ui.desktop-workbench .clinical-label { font-size: 15px; }
body.premium-ui.desktop-workbench .draft-heading strong { color: #1d1d1f; font-size: 18px; }
body.premium-ui.desktop-workbench .draft-heading small, body.premium-ui.desktop-workbench .draft-fields label { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .draft-fields textarea { background: #fafafb; border-color: #dddde3; border-radius: 10px; font-size: 16px; color: #1d1d1f; line-height: 1.7; }
body.premium-ui.desktop-workbench .recording-dock { min-height: 100px; padding: 16px 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
body.premium-ui.desktop-workbench .recording-console { grid-column: 1; justify-self: start; justify-content: flex-start; border: 1px solid #e0e0e6; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px #1d1d1f06; color: #1d1d1f; min-height: 68px; padding: 10px 12px; gap: 14px; }
body.premium-ui.desktop-workbench .recording-state strong { color: #343438; font-size: 15px; }
body.premium-ui.desktop-workbench .recording-state time { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .recording-state .wave { width: 56px; height: 38px; background: transparent; }
body.premium-ui.desktop-workbench .recording-actions > .button { min-height: 46px; font-size: 16px; padding: 10px 16px; border-radius: 11px; }
body.premium-ui.desktop-workbench .recording-actions > .primary { background: #0071e3; border-color: #0071e3; color: #fff; }
body.premium-ui.desktop-workbench .recording-dock[data-phase="recording"] .record-button { background: #eef4fc; border-color: #d2e3f8; color: #0064c8; }
body.premium-ui.desktop-workbench .recording-actions > .secondary { color: #48484a; border-color: #dddde3; background: #f5f5f7; }
body.premium-ui.desktop-workbench .manual-roles { background: #f0f0f3; border-color: #e5e5ea; }
body.premium-ui.desktop-workbench .manual-roles button { min-height: 44px; color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .manual-roles button[aria-pressed="true"] { background: #fff; color: #006bcf; }
body.premium-ui.desktop-workbench .report-dock { grid-column: 2; width: min(100%,510px); border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 68px; padding: 4px 0; }
body.premium-ui.desktop-workbench .report-dock-copy, body.premium-ui.desktop-workbench .report-dock-copy strong { color: #48484a; font-size: 15px; }
body.premium-ui.desktop-workbench .report-dock-copy small, body.premium-ui.desktop-workbench .report-progress span { color: #6e6e73; font-size: 15px; }
body.premium-ui.desktop-workbench .report-dock-actions .button { font-size: 16px; min-height: 46px; border-radius: 11px; padding: 10px 15px; }

/* Settings and administration share the same material, not separate themes. */
body.premium-ui .admin-page { max-width: 1400px; padding: 36px 40px; color: #1d1d1f; }
body.premium-ui .admin-heading h1 { font-size: 30px; font-weight: 650; letter-spacing: -.8px; }
body.premium-ui .admin-heading p, body.premium-ui .admin-secondary { color: #6e6e73; }
body.premium-ui .admin-scope { border: 0; border-left: 3px solid #c7d8ee; border-radius: 0; background: transparent; padding: 8px 20px; color: #515158; }
body.premium-ui .admin-scope strong { color: #48484a; font-size: 17px; }
body.premium-ui .admin-tabs { display: inline-flex; width: fit-content; background: #eaeaee; padding: 4px; border-radius: 12px; gap: 3px; }
body.premium-ui .admin-tabs button { min-height: 44px; padding: 9px 22px; font-size: 16px; border: 0; border-radius: 9px; color: #6e6e73; }
body.premium-ui .admin-tabs button[aria-current="page"] { color: #1d1d1f; background: #fff; box-shadow: 0 1px 5px #1d1d1f12; font-weight: 600; }
body.premium-ui .admin-panel { border-color: #e5e5ea; border-radius: 20px; box-shadow: none; }
body.premium-ui .admin-toolbar { border-color: #ededf0; padding: 24px 28px; }
body.premium-ui .admin-toolbar h2 { font-size: 21px; color: #1d1d1f; }
body.premium-ui .admin-page th { font-weight: 500; color: #6e6e73; background: #fafafb; }
body.premium-ui .admin-page td { border-color: #ededf0; color: #343438; padding-top: 20px; padding-bottom: 20px; }
body.premium-ui .admin-page tbody tr:hover { background: #fafafb; }
body.premium-ui .admin-row-actions .admin-button { border-color: transparent; background: transparent; color: #006bcf; }
body.premium-ui .admin-row-actions .admin-button:hover { background: #edf4fc; }
body.premium-ui .admin-status { font-size: 15px; color: #286644; background: #edf5ef; border-radius: 7px; padding: 4px 10px; }
body.premium-ui .admin-status.is-disabled { background: #f0f0f3; color: #6e6e73; }
body.premium-ui .admin-role-guide > div { background: transparent; border: 0; border-left: 1px solid #dddde3; border-radius: 0; padding: 4px 20px; }
body.premium-ui .admin-role-guide h3 { color: #48484a; font-size: 17px; }
body.premium-ui .admin-role-guide p, body.premium-ui .admin-empty { color: #6e6e73; font-size: 16px; }
body.premium-ui .admin-pagination { border-color: #ededf0; color: #6e6e73; }
body.premium-ui .admin-org-filter select { border-color: #d2d2d7; border-radius: 10px; color: #1d1d1f; }
body.premium-ui dialog, body.premium-ui #dialog, body.premium-ui .admin-dialog, body.premium-ui .access-dialog { border: 1px solid #e5e5ea; border-radius: 24px; background: #fff; color: #1d1d1f; box-shadow: 0 24px 100px #1d1d1f26; }
body.premium-ui dialog::backdrop { background: #1d1d1f4d; backdrop-filter: blur(4px); }
body.premium-ui .dialog-header, body.premium-ui .admin-dialog header { padding: 24px 28px 20px; background: #fff; border-color: #ededf0; }
body.premium-ui .dialog-header h2, body.premium-ui .admin-dialog h2 { color: #1d1d1f; font-size: 23px; font-weight: 600; }
body.premium-ui .dialog-body.premium-ui, body.premium-ui .admin-dialog-body.premium-ui { padding: 24px 28px; color: #515158; font-size: 16px; }
body.premium-ui .dialog-footer, body.premium-ui .admin-dialog footer { padding: 18px 28px; border-color: #ededf0; background: #fafafb; }
body.premium-ui dialog :is(input,select,textarea) { border: 1px solid #d2d2d7; border-radius: 11px; min-height: 48px; font-size: 16px; padding: 12px 14px; color: #1d1d1f; background: #fafafb; }
body.premium-ui .access-dialog input { border-color: #d2d2d7 !important; border-radius: 11px !important; background: #fafafb; padding: 12px 14px !important; }
body.premium-ui .admin-dialog-body.premium-ui p, body.premium-ui .account-details strong { color: #6e6e73; }
body.premium-ui.desktop-workbench #dialog.report-dialog { background: #f5f5f7; border-color: #e5e5ea; border-radius: 22px; }
body.premium-ui.desktop-workbench .report-paper { border-color: #e0e0e5; box-shadow: 0 2px 10px #1d1d1f08; color: #1d1d1f; }
body.premium-ui.desktop-workbench .report-paper h1, body.premium-ui.desktop-workbench .report-paper h2 { color: #1d1d1f; }
body.premium-ui.desktop-workbench .report-section, body.premium-ui.desktop-workbench .report-meta { font-size: 16px; color: #343438; border-color: #e5e5ea; }
body.premium-ui.desktop-workbench .report-section dt, body.premium-ui.desktop-workbench .report-meta dt { color: #6e6e73; }
body.premium-ui .notice { background: #303033; color: #fff; border-radius: 14px; font-size: 16px; box-shadow: 0 8px 32px #1d1d1f20; }

@media (max-width: 1399px) and (min-width: 1100px) {
  body.premium-ui .app-header { padding: 0 24px; gap: 18px; }
  body.premium-ui .app-header .header-navigation a { font-size: 15px; padding: 0 12px; }
  body.premium-ui.desktop-workbench .visit-page { padding: 0 18px; }
  body.premium-ui.desktop-workbench .workspace { gap: 12px; }
  body.premium-ui.desktop-workbench .panel-heading { padding: 14px 16px; }
  body.premium-ui.desktop-workbench .panel-heading h2 { font-size: 19px; }
  body.premium-ui.desktop-workbench .facts-content, body.premium-ui.desktop-workbench .assistant-content { padding: 16px; }
  body.premium-ui.desktop-workbench .patient-summary h1 { font-size: 17px; }
  body.premium-ui.desktop-workbench .recording-console { gap: 10px; }
}
@media (max-width: 1099px) {
  body.premium-ui .app-header { padding: 0 24px; gap: 16px; }
  body.premium-ui .app-header .brand-product, body.premium-ui .app-header .brand-rule { display: none; }
  body.premium-ui .app-header .header-navigation a { padding: 0 11px; }
  body.premium-ui.desktop-shell .page, body.premium-ui .admin-page { padding: 28px; }
  body.premium-ui.desktop-workbench .visit-page { height: calc(100dvh - 76px); min-height: 680px; padding: 0 20px; }
  body.premium-ui.desktop-workbench .patient-bar { min-height: 76px; gap: 10px; }
  body.premium-ui.desktop-workbench .patient-summary { display: block; flex: 1; }
  body.premium-ui.desktop-workbench .patient-summary p { margin-top: 4px; }
  body.premium-ui.desktop-workbench .workspace { display: flex; flex-direction: column; flex: 1; min-height: 260px; gap: 0; }
  body.premium-ui.desktop-workbench .workspace[data-phone-tab] > .card { grid-column: auto; flex: 1; min-height: 0; height: auto; }
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="chat"] > .conversation,
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="facts"] > .facts-panel,
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="assistant"] > .assistant-panel { display: flex; }
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="chat"] > .facts-panel,
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="chat"] > .assistant-panel,
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="facts"] > .conversation,
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="facts"] > .assistant-panel,
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="assistant"] > .conversation,
  body.premium-ui.desktop-workbench .workspace[data-phone-tab="assistant"] > .facts-panel { display: none; }
  body.premium-ui.desktop-workbench .facts-content, body.premium-ui.desktop-workbench .assistant-content, body.premium-ui.desktop-workbench .conversation-feed { max-height: none; }
  body.premium-ui.desktop-workbench .phone-workspace-tabs { display: flex; flex: none; padding: 4px; margin: 12px 0 0; gap: 3px; background: #eaeaee; border-radius: 13px; }
  body.premium-ui.desktop-workbench .phone-workspace-tabs button { flex: 1; min-height: 48px; font-size: 16px; border: 0; border-radius: 10px; background: transparent; color: #6e6e73; }
  body.premium-ui.desktop-workbench .phone-workspace-tabs button[aria-pressed="true"] { color: #1d1d1f; background: #fff; box-shadow: 0 1px 5px #1d1d1f12; }
  body.premium-ui.desktop-workbench .recording-dock { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 12px 0 20px; min-height: 0; }
  body.premium-ui.desktop-workbench .recording-console { grid-column: 1; justify-self: stretch; justify-content: space-between; width: 100%; }
  body.premium-ui.desktop-workbench .report-dock { grid-column: 1; width: 100%; min-height: 58px; padding: 0 4px; }
  body.premium-ui.desktop-workbench .priority-banner { min-height: 0; }
  body.premium-ui .admin-table-wrap td { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 900px) {
  body.premium-ui:not(.desktop-workbench) .app-header { height: 76px; min-height: 76px; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  body.premium-ui .app-header .header-navigation { display: none; }
  body.premium-ui .app-header .header-actions { margin-left: auto; }
  body.premium-ui .account-entry { max-width: 240px; }
  body.premium-ui .bottom-navigation { padding: 6px 18px calc(6px + env(safe-area-inset-bottom)); background: #ffffffed; border-top: 1px solid #e5e5ea; backdrop-filter: blur(16px); }
  body.premium-ui .bottom-navigation a { font-size: 15px; color: #6e6e73; border-radius: 12px; min-height: 52px; }
  body.premium-ui .bottom-navigation a.active { color: #006bcf; background: #edf4fc; }
}
@media (max-width: 599px) {
  body.premium-ui .app-header, body.premium-ui:not(.desktop-workbench) .app-header { height: 68px; min-height: 68px; padding: 0 16px; gap: 12px; }
  body.premium-ui .app-header .brand .brand-logo { width: 116px; flex-basis: 116px; height: 38px; }
  body.premium-ui .app-header .account-entry { max-width: 175px; padding: 5px 6px; }
  body.premium-ui .account-entry span { font-size: 15px; }
  body.premium-ui .app-header .header-actions .icon-button { display: none; }
  body.premium-ui.desktop-shell .page, body.premium-ui .admin-page { padding: 24px 16px; }
  body.premium-ui .page-title { gap: 14px; }
  body.premium-ui.desktop-shell .page-title h1, body.premium-ui .admin-heading h1 { font-size: 26px; }
  body.premium-ui .page-title .button { padding: 10px 12px; }
  body.premium-ui .record-library { padding: 18px; }
  body.premium-ui .library-toolbar { flex-direction: column; align-items: stretch; }
  body.premium-ui .segmented { display: flex; }
  body.premium-ui .segmented button { flex: 1; padding: 8px; }
  body.premium-ui .record-row { gap: 10px; }
  body.premium-ui .record-date { font-size: 15px; }
  body.premium-ui .pagination { flex-wrap: wrap; gap: 16px; }
  body.premium-ui .setting-card { padding: 22px; }
  body.premium-ui.desktop-workbench .visit-page { height: calc(100dvh - 68px); min-height: 660px; padding: 0 12px; }
  body.premium-ui.desktop-workbench .patient-bar { min-height: 94px; gap: 6px; }
  body.premium-ui.desktop-workbench .patient-summary h1 { font-size: 16px; }
  body.premium-ui.desktop-workbench .patient-summary p { font-size: 15px; }
  body.premium-ui.desktop-workbench .mode-badge { font-size: 14px; }
  body.premium-ui.desktop-workbench .patient-bar > .button { font-size: 15px; padding: 8px; }
  body.premium-ui.desktop-workbench .workspace > .card { border-radius: 17px; }
  body.premium-ui.desktop-workbench .panel-heading { min-height: 66px; padding: 12px 16px; }
  body.premium-ui.desktop-workbench .panel-heading h2 { font-size: 18px; }
  body.premium-ui.desktop-workbench .recording-console { padding: 8px; gap: 6px; }
  body.premium-ui.desktop-workbench .recording-state { gap: 5px; }
  body.premium-ui.desktop-workbench .recording-state .wave { width: 38px; flex-basis: 38px; }
  body.premium-ui.desktop-workbench .recording-actions > .button { padding: 10px; font-size: 15px; }
  body.premium-ui.desktop-workbench .report-dock-actions .button { padding: 10px 12px; font-size: 15px; }
  body.premium-ui .admin-tabs { width: 100%; }
  body.premium-ui .admin-tabs button { flex: 1; padding: 9px 10px; }
  body.premium-ui .admin-toolbar { padding: 20px; }
  body.premium-ui .admin-row-actions { gap: 4px; }
  body.premium-ui .admin-scope { padding-left: 15px; }
  body.premium-ui dialog, body.premium-ui #dialog { border-radius: 20px; }
  body.premium-ui .dialog-header, body.premium-ui .admin-dialog header { padding: 22px; }
  body.premium-ui .dialog-body.premium-ui, body.premium-ui .admin-dialog-body.premium-ui { padding: 20px 22px; }
  body.premium-ui .dialog-footer, body.premium-ui .admin-dialog footer { padding: 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body.premium-ui .button, body.premium-ui .admin-button, body.premium-ui .turn { transition: none; }
}

body.premium-ui.desktop-workbench .speaker-avatar.avatar-portrait img { transform: scale(1.65); transform-origin: 50% 24%; }
body.premium-ui.desktop-workbench .advice-caught-up, body.premium-ui.desktop-workbench .advice-caught-up h3, body.premium-ui.desktop-workbench .advice-caught-up p { color: #6e6e73; }
body.premium-ui.desktop-workbench .advice-caught-up p { font-size: 16px; }
body.premium-ui.desktop-workbench .facts-note, body.premium-ui.desktop-workbench .fact-inspector { color: #6e6e73; }
@media (max-width: 599px) {
  body.premium-ui.desktop-workbench .report-dock { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 8px 4px 0; }
  body.premium-ui.desktop-workbench .report-dock-copy { width: 100%; }
  body.premium-ui.desktop-workbench .report-dock-actions { width: 100%; margin: 0; justify-content: flex-start; gap: 8px; }
  body.premium-ui.desktop-workbench .report-dock-actions .button { flex: 1; }
  body.premium-ui.desktop-workbench .report-dock-copy small { display: inline; margin-left: 8px; }
}
body.premium-ui .dialog-copy { font-size: 16px; color: #6e6e73; }
body.premium-ui .patient-form label > span, body.premium-ui .patient-form legend, body.premium-ui .edit-text > span { font-size: 16px; color: #515158; }
body.premium-ui .patient-form input:not([type="radio"]) { border-color: #d2d2d7; background: #fafafb; border-radius: 11px; }
body.premium-ui .patient-form input::placeholder { color: #85858b; }
body.premium-ui .patient-form label b { color: #006bcf; }
body.premium-ui .radio-options label > span { min-height: 48px; display: flex; align-items: center; justify-content: center; color: #6e6e73; border-color: #dddde3; background: #fafafb; border-radius: 11px; }
body.premium-ui .radio-options input:checked + span { border-color: #0071e3; background: #edf5ff; color: #0064c8; }
body.premium-ui .radio-options input:focus-visible + span { outline: 3px solid #0071e3; outline-offset: 3px; }
body.premium-ui .microphone-preview { color: #6e6e73; font-size: 16px; }
body.premium-ui .mode-options small { color: #6e6e73; font-size: 15px; }

/* Essential live feedback appears only when there is something to report. */
body.premium-ui .live-status { display: block; color: #6e6e73; font-size: 16px; line-height: 1.5; }
body.premium-ui .live-status:empty, body.premium-ui .notice-status:empty { display: none; }
body.premium-ui .settings-page .wide-setting { align-items: center; }
body.premium-ui .settings-page > .setting-card { margin-top: 24px; }
body.premium-ui .mode-options button { font-size: 16px; }
body.premium-ui.desktop-workbench .assistant-title { align-items: center; }
body.premium-ui.desktop-workbench .assistant-disclaimer,
body.premium-ui.desktop-workbench .task-source-empty,
body.premium-ui.desktop-workbench .clinical-stale,
body.premium-ui.desktop-workbench .clinical-empty,
body.premium-ui.desktop-workbench .knowledge-details,
body.premium-ui.desktop-workbench .notice-status,
body.premium-ui.desktop-workbench .notice-actions button,
body.premium-ui.desktop-workbench .notice-kind,
body.premium-ui.desktop-workbench .advice-group-heading,
body.premium-ui.desktop-workbench .advice-completed-note,
body.premium-ui.desktop-workbench .report-paper small,
body.premium-ui.desktop-workbench .clinical-card small,
body.premium-ui.desktop-workbench .clinical-focus small,
body.premium-ui.desktop-workbench .knowledge-details small,
body.premium-ui.desktop-workbench .guidance-source small,
body.premium-ui.desktop-workbench .advice-task summary small { font-size: 16px; line-height: 1.5; }
body.premium-ui .report-dock-copy .live-status { margin-top: 4px; }
body.premium-ui .setting-card h2:only-child { margin-bottom: 0; }

/* Account identity is a single, persistent avatar control. */
body.premium-ui .app-header .account-entry.account-trigger {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  max-width: 220px; padding: 4px 8px 4px 4px; border: 0; border-radius: 999px;
}
body.premium-ui .app-header .account-entry.account-trigger[hidden] { display: none; }
body.premium-ui .account-entry.account-trigger[aria-expanded="true"] { background: #eeeef2; }
body.premium-ui .account-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  color: #0066cc; background: #e8f1fc; border: 1px solid #d8e6f7;
}
body.premium-ui .account-avatar svg { width: 24px; height: 24px; }
body.premium-ui .account-avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.65); transform-origin: 50% 24%; }
body.premium-ui .account-entry .account-display-name { color: #343438; font-size: 16px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.premium-ui .account-menu {
  position: fixed; z-index: 120; width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 12px; background: #fff; border: 1px solid #e5e5ea; border-radius: 20px;
  box-shadow: 0 12px 40px #1d1d1f1a, 0 2px 8px #1d1d1f08;
}
body.premium-ui .account-menu-identity { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; }
body.premium-ui .account-menu-identity > div { flex: 1; min-width: 0; }
body.premium-ui .account-menu-identity strong, body.premium-ui .account-menu-identity > div > span { display: block; font-size: 16px; overflow-wrap: anywhere; }
body.premium-ui .account-menu-identity strong { color: #1d1d1f; font-weight: 600; }
body.premium-ui .account-menu-identity > div > span { color: #6e6e73; margin-top: 4px; }
body.premium-ui .account-role { font-size: 16px; color: #515154; background: #f2f2f5; border-radius: 7px; padding: 4px 8px; white-space: nowrap; }
body.premium-ui .account-workspace { padding: 0 8px 14px; color: #6e6e73; font-size: 16px; overflow-wrap: anywhere; }
body.premium-ui .account-menu-actions { display: grid; gap: 3px; padding-top: 8px; border-top: 1px solid #ededf0; }
body.premium-ui .account-menu-actions button { text-align: left; min-height: 48px; padding: 12px; border: 0; border-radius: 10px; color: #343438; background: transparent; font: inherit; font-size: 16px; cursor: pointer; }
body.premium-ui .account-menu-actions button:hover, body.premium-ui .account-menu-actions button:focus-visible { background: #f0f5fc; color: #0066cc; outline-offset: -2px; }
body.premium-ui .account-menu-actions .account-signout { border-top: 1px solid #ededf0; border-radius: 0 0 10px 10px; margin-top: 4px; }
body.premium-ui .admin-heading { margin-bottom: 20px; }
body.premium-ui .admin-toolbar { padding: 20px 24px; }
body.premium-ui .admin-page td { padding-top: 16px; padding-bottom: 16px; }
body.premium-ui .admin-dialog-body, body.premium-ui .dialog-body { font-size: 16px; }
body.premium-ui .admin-dialog-body { padding: 8px 26px 24px; }
body.premium-ui .bottom-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 799px) {
  body.premium-ui .app-header .account-entry.account-trigger { max-width: none; padding: 4px; }
  body.premium-ui .account-entry.account-trigger .account-display-name { display: none; }
}
