html {
  box-sizing: border-box;
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/*
 * The HTML hidden attribute must always win.  The login overlay uses
 * display:flex when visible; without this rule some browsers keep the overlay
 * visible even after JavaScript sets loginOverlay.hidden = true.
 */
[hidden] {
  display: none !important;
}

body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #1f2933;
  max-width: 100%;
  overflow-x: hidden;
}

/* The dictation app page is viewport-locked; help.html remains a normal
   scrollable document because it does not use the fd-appPage body class. */
body.fd-appPage {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* v30/v32 layout: keep controls visible and let only the scratchpad scroll. */
#appShell {
  height: 100%;
  min-height: 0;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

body.fd-busy, body.fd-busy * {
  cursor: progress !important;
}

.fd-note-heading {
  font-weight: 700;
  text-transform: uppercase;
}
.fd-note-heading-underlined {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
header, .toolbar, .statusbar, .layout {
  max-width: none;
  width: calc(100% - 32px);
  margin: 0 auto;
  box-sizing: border-box;
}
.versionInfo {
  margin-left: auto;
  color: #64748b;
  font-size: 0.82rem;
  white-space: nowrap;
}

header {
  padding: 20px 20px 10px 20px;
  flex: 0 0 auto;
}
#appShell header {
  padding: 8px 16px 4px 16px;
}
#appShell .brandLogoBox {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  font-size: 22px;
}
#appShell .brandLogo {
  width: 72%;
  height: 72%;
  inset: 14%;
}
#appShell h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
/*
 * The existing Majestic Scribe logo stays unchanged.  v69 renders it as a normal
 * visible image so a cold browser cache cannot leave the login page blank while
 * JavaScript waits to flip logo-state classes.  The fallback letter appears only
 * after a genuine image error.
 */
.brandLogoBox {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(31, 78, 121, 0.12);
  color: #102a43;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}
.brandLogo {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  position: absolute;
  inset: 14%;
  opacity: 1;
}
.brandLogo.fd-logo-error,
.brandLogoBox.fd-logo-error .brandLogo {
  display: none;
}
.brandLogoFallback {
  display: none;
  user-select: none;
}
.brandLogoBox.fd-logo-error .brandLogoFallback {
  display: inline-block;
}

h1 { margin: 0 0 8px 0; }
.subtle { color: #52606d; margin: 0; }
.toolbar {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 16px 4px 16px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.toolbarButtons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #9aa5b1;
  border-radius: 6px;
  background: white;
  color: #1f2933;
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  min-height: 34px;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease, box-shadow 120ms ease;
}
button:disabled { opacity: 0.45; cursor: not-allowed; color: #52606d; }
button:active:not(:disabled) {
  transform: translateY(1px);
  background: #eef7ff;
  border-color: #2563eb;
}
.secretLabel { margin-left: auto; font-size: 13px; color: #52606d; }
.secretLabel input { margin-left: 6px; padding: 6px; }
.passwordManagerUsername {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 16px;
  color: #52606d;
  flex: 0 0 auto;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 12px;
  padding: 6px 16px 12px 16px;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.layoutNoEvents {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

/* Ambient Encounter review layout: keep the Review / Verify pane available,
   while preserving the legacy collapse class for defensive layout recovery. */
.layoutReviewHidden,
.layout.layoutNoEvents.layoutReviewHidden {
  grid-template-columns: minmax(0, 1fr);
}
.layoutReviewHidden .reviewPane {
  display: none !important;
}
.editorPane, .reviewPane {
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.editorPane h2, .reviewPane h2 {
  flex: 0 0 auto;
  margin: 0 0 8px 0;
  font-size: 1rem;
  line-height: 1.2;
}
.editor {
  min-height: 0;
  flex: 1 1 auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  outline: none;
  line-height: 1.45;
  font-family: Calibri, Arial, sans-serif;
  font-size: 12pt;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}
.fd-segment {
  white-space: pre-wrap;
  transition: background-color 900ms ease, border-color 900ms ease;
}
/* Real zero-width anchor used only to paint the caret after trailing dictated
   New Line/New Paragraph breaks.  JavaScript strips it from all plain text. */
.fd-live-caret-anchor {
  display: inline;
  white-space: pre;
}
/*
 * Segment colors mirror the transcription pipeline:
 *   fd-live / fd-background-pending: darker blue = live-only or still pending.
 *   fd-background-voted: lighter blue = background vendors voted and updated text.
 *   fd-final: plain/white = OpenAI Finalize Note has produced final text.
 * Yellow fd-review-highlight is reserved for Finalize Note review items.
 * v38 rolling chunks use child fd-segment-part spans so a pending later chunk
 * never repaints an earlier background-voted chunk.
 */
.fd-segment.fd-live {
  background-color: #dbeafe;
  border-bottom: 1px dotted #7b8794;
}
.fd-segment.fd-background-pending {
  background-color: #dbeafe;
  border-bottom: 1px dotted #7b8794;
}
.fd-segment.fd-background-voted {
  background-color: #eef7ff;
  border-bottom: 1px dotted #b6c7d6;
}
.fd-segment.fd-final {
  background-color: transparent;
  border-bottom: 1px dotted transparent;
}

.fd-segment.fd-rolling-display {
  background-color: transparent;
  border-bottom: 1px dotted transparent;
}
.fd-segment-part {
  white-space: pre-wrap;
  transition: background-color 900ms ease, border-color 900ms ease;
}
.fd-segment-part.fd-live,
.fd-segment-part.fd-background-pending {
  background-color: #dbeafe;
  border-bottom: 1px dotted #7b8794;
}
.fd-segment-part.fd-background-voted {
  background-color: #eef7ff;
  border-bottom: 1px dotted #b6c7d6;
}
.fd-segment-part.fd-final {
  background-color: transparent;
  border-bottom: 1px dotted transparent;
}
.fd-review-highlight {
  background: #fff3bf;
  border-bottom: 2px solid #f08c00;
  cursor: help;
  transition: background-color 800ms ease, border-color 800ms ease;
}
.fd-review-highlight:focus {
  outline: 2px solid #f08c00;
  outline-offset: 2px;
}
.fd-reviewHighlightPopover {
  position: fixed;
  z-index: 10000;
  max-width: min(360px, calc(100vw - 16px));
  white-space: pre-wrap;
  background: #fffbea;
  border: 1px solid #f08c00;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  color: #1f2933;
  padding: 10px 12px;
  font-family: Calibri, Arial, sans-serif;
  font-size: 11.5pt;
  line-height: 1.35;
}
.fd-reviewHighlightPopover[hidden] {
  display: none !important;
}
.reviewNotes {
  white-space: pre-wrap;
  font-family: Calibri, Arial, sans-serif;
  font-size: 12pt;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 8px;
  min-height: 92px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}
.events {
  height: 260px;
  overflow-x: auto;
  overflow-y: auto;
  white-space: pre;
  max-width: 100%;
  background: #102a43;
  color: #d9e2ec;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
}


/* v69 first-load logo preload: the logo fallback letter stays hidden while
   the image downloads, but the login card itself remains visible.  Login must
   never depend on image decode(), cached image events, or diagnostic JavaScript. */
.loginOverlay.fd-login-logo-wait .loginDialog {
  visibility: visible;
}

/* v27 login and email controls.  The login dialog is a normal form so
   browser password managers can save/fill credentials.  The form submits
   normally to /api/login; JavaScript does not intercept it because Chrome
   Password Manager is more reliable with native form submission. */
.loginOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 42, 67, 0.22);
  z-index: 1000;
}
.loginDialog {
  width: min(420px, calc(100vw - 32px));
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(16, 42, 67, 0.22);
}
.loginBrand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.loginBrand h1 { font-size: 24px; margin: 0; }
.loginHelp { color: #52606d; margin: 0 0 14px 0; }
.loginDialog label { display: block; font-size: 14px; margin: 12px 0; color: #334e68; }
.loginDialog input { box-sizing: border-box; width: 100%; padding: 9px; margin-top: 4px; }
#loginBtn {
  background: #102a43;
  border-color: #102a43;
  color: #ffffff;
  width: 100%;
}
.loginMessage { margin-top: 10px; color: #b42318; min-height: 1.2em; }

.loginAuxPanel {
  margin-top: 14px;
  border-top: 1px solid #edf2f7;
  padding-top: 10px;
}
.loginAuxPanel summary {
  cursor: pointer;
  color: #102a43;
  font-weight: 600;
}
.loginAuxForm button {
  margin-top: 4px;
  width: 100%;
}
.accountBlock {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 250px;
}
.accountSessionRow { display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; }
.emailLabel { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #52606d; }
.emailLabel input { margin-left: 0; padding: 5px 6px; min-width: 240px; }
.currentUser { min-height: 1.2em; font-size: 12px; line-height: 1.2; color: #52606d; text-align: right; }

@media (max-width: 900px) {
  header, .toolbar, .statusbar, .layout { max-width: 100%; }
  .layout { padding-left: 8px; padding-right: 8px; }
  .toolbar { padding-left: 8px; padding-right: 8px; flex-wrap: wrap; }
  .toolbarButtons { gap: 6px; }
  .accountBlock { margin-left: 0; width: 100%; align-items: flex-end; }
  .accountSessionRow { justify-content: flex-end; }
  .emailLabel { width: auto; }
  .emailLabel input { min-width: 0; width: min(100%, 320px); }
  .secretLabel { margin-left: 0; width: 100%; }
  .secretLabel input { max-width: 100%; }
  .brand { align-items: center; }
  .brandLogoBox { width: 68px; height: 68px; flex-basis: 68px; font-size: 24px; }
  .brandLogo { width: 72%; height: 72%; inset: 14%; }
  #appShell .brandLogoBox { width: 56px; height: 56px; flex-basis: 56px; font-size: 20px; }
  #appShell .brandLogo { width: 72%; height: 72%; inset: 14%; }
  h1 { font-size: 1.45rem; }
  #appShell h1 { font-size: 1.2rem; }
}
@media (max-width: 720px) {
  .layout,
  .layout.layoutNoEvents,
  .layoutNoEvents {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(90px, 18vh);
    padding-left: 8px;
    padding-right: 8px;
  }
  .layoutReviewHidden,
  .layout.layoutNoEvents.layoutReviewHidden {
    grid-template-rows: minmax(0, 1fr);
  }
  .reviewPane { max-height: 18vh; }
}
@media (max-width: 640px) {
  .accountBlock { align-items: stretch; }
  .accountSessionRow { justify-content: space-between; }
  .emailLabel { justify-content: flex-start; width: 100%; }
  .emailLabel input { width: 100%; }
}



/* v27 toolbar simplification.  The same button starts and stops dictation;
   this active style helps users see when the microphone is currently open. */
button.dictationActive {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
}

/* Buttons visibly flash for both clicks and recognized verbal UI commands. */
button.fd-command-flash {
  animation: fdCommandFlash 650ms ease-out;
}
button.fd-command-flash-disabled {
  animation: fdCommandFlashDisabled 650ms ease-out;
}
@keyframes fdCommandFlash {
  0% { background: #dbeafe; border-color: #2563eb; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.75); }
  45% { background: #bfdbfe; border-color: #1d4ed8; box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.24); }
  100% { background: white; border-color: #9aa5b1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
@keyframes fdCommandFlashDisabled {
  0% { background: #f1f5f9; border-color: #64748b; box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.75); }
  45% { background: #e2e8f0; border-color: #475569; box-shadow: 0 0 0 7px rgba(100, 116, 139, 0.24); }
  100% { background: white; border-color: #9aa5b1; box-shadow: 0 0 0 0 rgba(100, 116, 139, 0); }
}

/* v27 production UI: Raw Events is removed from the normal page.  Keep this
   class only so a developer can temporarily add a hidden diagnostic panel
   without changing the JavaScript. */
.eventsDebugOnly {
  display: none;
}

/* Visible manual version footer used by help.html. */
.manualVersionFooter {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #d9e2ec;
  color: #52606d;
  font-size: 13px;
  text-align: right;
}

/* v28 visible Finalize Note progress indicator.  This is intentionally
   implemented with ordinary HTML/CSS rather than a cursor-only busy state so it
   works on touch devices such as iPhone and iPad Safari. */
.finalizeOverlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 42, 67, 0.18);
  padding: 20px;
}
.finalizePanel {
  width: min(430px, calc(100vw - 36px));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #b6c7d6;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.26);
  padding: 18px;
}
.finalizeDragon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(31, 78, 121, 0.12);
  overflow: hidden;
  /* v65: use the same clean brand-mark treatment as the app header so the
     finalize dialog does not render the logo on a mismatched background. */
}
.finalizeDragon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.finalizeText strong {
  display: block;
  margin-bottom: 4px;
  color: #102a43;
}
.finalizeHint {
  margin-top: 4px;
  color: #52606d;
  font-size: 13px;
}
.finalizeSweep {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,0), rgba(59,130,246,0.85), rgba(59,130,246,0));
  animation: fdFinalizeSweep 1200ms linear infinite;
}
@keyframes fdFinalizeSweep {
  0% { transform: translateX(-85%); }
  100% { transform: translateX(85%); }
}
@media (prefers-reduced-motion: reduce) {
  .finalizeSweep { animation: none; }
}

/* Finalize failure state.  The controls are re-enabled, but the overlay briefly
   remains visible so iOS/touch users get a clear non-cursor failure signal. */
.finalizeOverlay.finalizeOverlayError {
  background: rgba(127, 29, 29, 0.12);
}
.finalizeOverlay.finalizeOverlayError .finalizePanel {
  border-color: #ef4444;
}
.finalizeOverlay.finalizeOverlayError .finalizeDragon {
  background: #ffffff;
  border-color: #fecaca;
  animation: none;
}
.finalizeOverlay.finalizeOverlayError .finalizeSweep {
  display: none;
}

/* v44 audio replay drop target. */
.editor.fd-audio-drop-target {
  outline: 3px dashed currentColor;
  outline-offset: -8px;
}

/* v69 Auto Text variable fields.  The brackets used in Settings are not shown
   in the live scratchpad; fields are editable highlighted spans instead. */
.fd-autotext-field {
  background: #f3e8ff;
  outline: 1px solid #a855f7;
  border-radius: 3px;
  padding: 0 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.fd-autotext-field.fd-autotext-field-active {
  background: #e9d5ff;
  outline: 2px solid #7e22ce;
}
.fd-autotext-field.fd-autotext-field-empty::before {
  content: "\00a0\00a0";
}

.fd-autotext-exit-line {
  min-height: 1.25em;
  cursor: text;
}
.fd-autotext-exit-anchor {
  display: inline-block;
  width: 0;
  min-width: 0;
  min-height: 1.1em;
  overflow: hidden;
  vertical-align: baseline;
}
.fd-autotext-exit-line:hover {
  outline: 1px dotted #a855f7;
  outline-offset: 1px;
}

/* v69 Settings dialog and Auto Text editor. */
.settingsOverlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 42, 67, 0.24);
  padding: 18px;
}
.settingsDialog {
  width: min(920px, calc(100vw - 28px));
  height: min(720px, calc(100vh - 28px));
  height: min(720px, calc(100dvh - 28px));
  min-height: min(640px, calc(100vh - 28px));
  min-height: min(640px, calc(100dvh - 28px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #b6c7d6;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.26);
}
.settingsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid #d9e2ec;
}
.settingsHeader h2 {
  margin: 0;
  font-size: 1.15rem;
}

.modeBadge {
  margin-left: 12px;
  color: #52606d;
  font-size: 0.9rem;
}
.logoutBtn {
  align-self: flex-end;
  border: 1px solid #b6c7d6;
  background: #ffffff;
  color: #334e68;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.logoutBtn:hover {
  background: #eef7ff;
  border-color: #2563eb;
}
.logoutBtn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.settingsTab {
  border: 1px solid #d9e2ec;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  cursor: pointer;
  color: #334e68;
  font-weight: 700;
}
.settingsTab:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}
.settingsFormLayout {
  display: grid;
  gap: 8px;
  max-width: 620px;
}
.settingsFormLayout label {
  color: #334e68;
  font-weight: 700;
}
.settingsFormLayout select {
  width: min(100%, 360px);
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 7px;
  font: inherit;
}
#modePanel .settingsFormLayout {
  max-width: 1120px;
}
.settingsWideSelect {
  width: min(100%, 420px) !important;
}
.modeDescriptions {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
}
.modeDescriptions p {
  margin: 0 0 7px 0;
}
.modeDescriptions p:last-child {
  margin-bottom: 0;
}

.settingsTabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0 16px;
}
.settingsTab.settingsTabActive {
  background: #eef7ff;
  border-color: #2563eb;
}
.settingsPanel {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 16px 16px 16px;
  overflow: auto;
}
.autoTextLayout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  min-height: 420px;
}
.autoTextListPane, .autoTextEditorPane {
  min-width: 0;
}
.autoTextListPane label, .autoTextEditorPane label {
  display: block;
  color: #334e68;
  font-weight: 700;
  margin-bottom: 5px;
}
#autoTextEntryList {
  width: 100%;
  min-height: 300px;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 4px;
  font: inherit;
}
.autoTextListButtons, .autoTextActions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
#autoTextTriggerInput, #autoTextContentInput {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  resize: vertical;
}
#autoTextContentInput {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.35;
}
.autoTextHint {
  margin: 5px 0 10px 0;
  color: #52606d;
  font-size: 13px;
}
.autoTextDirtyIndicator {
  color: #7c2d12;
  font-size: 13px;
}
.autoTextMessage {
  min-height: 1.3em;
  margin-top: 8px;
  color: #52606d;
  font-size: 13px;
}
.autoTextMessage.autoTextMessageError {
  color: #b42318;
}
@media (max-width: 720px) {
  .settingsDialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
  }
  .autoTextLayout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  #autoTextEntryList {
    min-height: 140px;
  }
}

/* v69 custom Majestic Scribe-style toolbar/action icons.  These CSS-only icons keep the
   existing logo unchanged while giving toolbar buttons a consistent rounded,
   clinical productivity look with purple active states and browser tooltips. */
.fd-iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}
.fd-iconButton:hover {
  background: #f5f3ff;
  border-color: #b4a7f5;
}
.fd-iconButton:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}
.fd-iconButton:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.72;
}
.fd-iconButton.fd-buttonActive,
.fd-iconButton[aria-pressed="true"],
.fd-iconButton.dictationActive {
  background: #ede9fe;
  border-color: #8b5cf6;
  color: #5b21b6;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}
.fd-actionButton .fd-icon {
  width: 18px;
  height: 18px;
}
.fd-buttonText {
  line-height: 1;
}
.fd-icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  color: currentColor;
}

.fd-svgIcon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 auto;
}
.fd-svgIcon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-icon::before,
.fd-icon::after {
  box-sizing: border-box;
}
.fd-icon-bold::before { content: "B"; font-weight: 850; font-size: 18px; line-height: 19px; font-family: Georgia, "Times New Roman", serif; }
.fd-icon-italic::before { content: "I"; font-style: italic; font-weight: 700; font-size: 18px; line-height: 19px; font-family: Georgia, "Times New Roman", serif; }
.fd-icon-underline::before { content: "U"; font-weight: 750; font-size: 17px; line-height: 18px; text-decoration: underline; font-family: Georgia, "Times New Roman", serif; }
.fd-icon-align-left::before,
.fd-icon-align-center::before,
.fd-icon-align-right::before {
  content: "";
  position: absolute;
  inset: 3px 2px;
  border-radius: 2px;
}
.fd-icon-align-left::before {
  background:
    linear-gradient(currentColor, currentColor) left 0 / 15px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 5px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 10px / 15px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 15px / 8px 2px no-repeat;
}
.fd-icon-align-center::before {
  background:
    linear-gradient(currentColor, currentColor) center 0 / 15px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 5px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 10px / 15px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 15px / 8px 2px no-repeat;
}
.fd-icon-align-right::before {
  background:
    linear-gradient(currentColor, currentColor) right 0 / 15px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right 5px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right 10px / 15px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right 15px / 8px 2px no-repeat;
}
.fd-icon-align-left::after,
.fd-icon-align-center::after,
.fd-icon-align-right::after { content: none; }
.fd-icon-print::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8v4H6z'/%3E%3Cpath d='M5 13H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1'/%3E%3Cpath d='M6 11h8v6H6z'/%3E%3Cpath d='M14.5 9.5h.01'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8v4H6z'/%3E%3Cpath d='M5 13H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1'/%3E%3Cpath d='M6 11h8v6H6z'/%3E%3Cpath d='M14.5 9.5h.01'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
}
.fd-icon-print::after { content: none; }
.fd-icon-copy::before { content: ""; position: absolute; left: 6px; top: 3px; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 2px; }
.fd-icon-copy::after { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 2px; background: #fff; }
.fd-icon-email::before { content: ""; position: absolute; left: 2px; top: 5px; width: 15px; height: 11px; border: 2px solid currentColor; border-radius: 3px; }
.fd-icon-email::after { content: ""; position: absolute; left: 4px; top: 7px; width: 11px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transform-origin: center; }
.fd-icon-clear::before,
.fd-icon-clear::after { content: ""; position: absolute; left: 3px; top: 8px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.fd-icon-clear::before { transform: rotate(45deg); }
.fd-icon-clear::after { transform: rotate(-45deg); }
.fd-icon-stop::before { content: ""; position: absolute; left: 4px; top: 4px; width: 11px; height: 11px; border-radius: 2px; background: currentColor; }
.fd-icon-finalize::before { content: ""; position: absolute; inset: 2px; border: 2px solid currentColor; border-radius: 50%; }
.fd-icon-finalize::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.fd-icon-settings::before { content: "⚙"; font-size: 18px; line-height: 19px; }
.fd-icon-help::before { content: "?"; position: absolute; inset: 2px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-weight: 800; font-size: 13px; }
.fd-icon-microphone::before { content: ""; position: absolute; left: 6px; top: 2px; width: 8px; height: 11px; border: 2px solid currentColor; border-radius: 5px; }
.fd-icon-microphone::after { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 8px; border-bottom: 2px solid currentColor; border-left: 2px solid transparent; border-right: 2px solid transparent; box-shadow: 5px 5px 0 -3px currentColor; }

.formatToolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow-x: visible;
  row-gap: 7px;
  column-gap: 7px;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d8dee9;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 8px;
}
.formatToolbar .fd-formatButton {
  width: 34px;
  height: 32px;
  padding: 4px;
}
.formatSeparator {
  width: 2px;
  min-width: 2px;
  height: 28px;
  background: #94a3b8;
  margin: 0 4px;
  flex: 0 0 2px;
  align-self: center;
}
.formatSelectLabel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}
.formatSelectLabel select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  padding: 5px 7px;
  min-height: 32px;
}
.fd-rich-left { text-align: left; }
.fd-rich-center { text-align: center; }
.fd-rich-right { text-align: right; }

.microphoneSettingsLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 720px;
}
.microphoneDeviceRow {
  display: flex;
  gap: 8px;
  align-items: center;
}
.microphoneDeviceRow select {
  flex: 1 1 auto;
  min-width: 0;
}
.sliderLabel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 650;
  color: #334155;
}
.microphoneCheckboxes {
  display: grid;
  gap: 6px;
  color: #334155;
}
.microphoneMeter {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.microphoneLevelMeter {
  height: 100%;
  width: 0%;
  background: #8b5cf6;
  transition: width 80ms linear;
}

@media print {
  body.fd-appPage {
    height: auto;
    overflow: visible;
    background: #fff;
  }
  header, .toolbar, .statusbar, .formatToolbar, .reviewPane, .finalizeOverlay, .settingsOverlay, .modalOverlay {
    display: none !important;
  }
  #appShell, .layout, .editorPane {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    overflow: visible !important;
  }
  .editorPane h2 {
    display: none;
  }
  .editor {
    border: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  .fd-live, .fd-background-pending, .fd-background-voted, .fd-final, .fd-autotext-field {
    background: transparent !important;
    border-color: transparent !important;
    outline: 0 !important;
  }
  .fd-live-caret-anchor, .fd-autotext-exit-line, .fd-autotext-exit-anchor {
    display: none !important;
  }
}


/* v69 replay-file status banner. */
.replayBanner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  background: #f5f3ff;
  color: #4c1d95;
  font-size: 0.94rem;
}
.replayBanner[hidden] {
  display: none !important;
}
.replayBannerIcon {
  width: 22px;
  height: 22px;
}
.replayBannerText {
  font-weight: 650;
}
.replayProgressText {
  color: #6d28d9;
  margin-left: auto;
  white-space: nowrap;
}
.replayClearBtn {
  border: 1px solid #b4a7f5;
  background: #ffffff;
  color: #5b21b6;
  border-radius: 8px;
  padding: 4px 9px;
  cursor: pointer;
}
.replayClearBtn:hover {
  background: #ede9fe;
}
.fd-actionSvgIcon {
  width: 19px;
  height: 19px;
}
.microphoneHelpText {
  margin: -4px 0 8px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.35;
}
.microphoneInlineHelp {
  display: block;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.25;
  margin-left: 22px;
}
#loginBtn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* v69 app boot guard: while the chunked JavaScript loader has not confirmed
   that handlers are bound, app-shell controls look and behave disabled instead
   of appearing clickable but inert. */
.fd-js-pending #appShell button,
.fd-js-pending #appShell select {
  pointer-events: none;
  opacity: 0.55;
}

.appLoadFailure {
  position: fixed;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  z-index: 2000;
  padding: 0.85rem 1rem;
  border: 1px solid #9f1239;
  border-radius: 0.65rem;
  background: #fff1f2;
  color: #7f1d1d;
  box-shadow: 0 0.45rem 1.5rem rgba(15, 23, 42, 0.18);
  font-weight: 700;
}


/* v69 toolbar and panel layout cleanup. */
.appHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-right: 16px; }
.accountToolbar { align-items: flex-start; padding-top: 4px; padding-bottom: 4px; }
.accountBlock { min-width: 0; }
.headerAccountBlock { margin-left: auto; display: flex; justify-content: flex-end; }
.accountSessionRow { gap: 10px; }
.logoutBtn { align-self: auto; min-height: 32px; padding: 6px 10px; font: inherit; font-weight: 600; }
.formatToolbar { gap: 6px; row-gap: 7px; overflow-x: visible; flex-wrap: wrap; }
.toolbarGroup { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.helpSettingsToolbarGroup { flex: 0 0 auto; }
.fd-iconOnly { width: 34px; min-width: 34px; padding: 4px; gap: 0; }
.fd-iconOnly .fd-buttonText { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.fd-iconButton.fd-nextAction { background: #dcfce7; border-color: #16a34a; color: #14532d; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22); }
.fd-iconButton.fd-nextAction.fd-nextActionPulse { animation: fdNextActionPulse 2s ease-in-out infinite; }
@keyframes fdNextActionPulse {
  0%, 100% { background: #ffffff; border-color: #cbd5e1; color: #334155; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { background: #dcfce7; border-color: #16a34a; color: #14532d; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.24); }
}
@media (prefers-reduced-motion: reduce) {
  .fd-iconButton.fd-nextAction.fd-nextActionPulse { animation: none; }
}
.fd-iconButton.fd-stopAction, .fd-iconButton.dictationActive.fd-stopAction { background: #fee2e2; border-color: #dc2626; color: #7f1d1d; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22); }
.panelFooter { flex: 0 0 auto; min-height: 1.45em; margin-top: 6px; color: #52606d; font-size: 0.84rem; line-height: 1.35; }
.editorStatusbar { display: flex; align-items: center; }
.reviewMeta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.reviewMeta .versionInfo, .reviewMeta .modeBadge { margin-left: 0; font-size: 0.84rem; color: #64748b; white-space: nowrap; }
.modalOverlay { position: fixed; inset: 0; z-index: 1800; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.42); }
.modalDialog { width: min(420px, calc(100vw - 32px)); background: #ffffff; border: 1px solid #d9e2ec; border-radius: 14px; box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28); padding: 18px; }
.modalDialog h2 { margin: 0 0 12px 0; font-size: 1.1rem; }

.vocabularySettingsRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px 0; }
.vocabularySettingsRow button { border: 1px solid #b6c7d6; border-radius: 8px; padding: 7px 10px; background: #ffffff; color: #102a43; font: inherit; font-weight: 700; cursor: pointer; }
.vocabularySettingsRow button:focus { outline: 2px solid #7c3aed; outline-offset: 2px; }
.vocabularyDialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.vocabularyDialog .modalField { margin-top: 10px; }
.vocabularyTextarea { width: 100%; min-height: 120px; box-sizing: border-box; padding: 8px 9px; border: 1px solid #b6c7d6; border-radius: 8px; font: 0.95rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; resize: vertical; }
.modalProgressPanel { margin-top: 12px; padding: 10px 12px; border: 1px solid #b6c7d6; border-radius: 10px; background: #f8fafc; }
.modalProgressTitle { color: #102a43; font-weight: 700; margin-bottom: 4px; }
.modalProgressPanel.isError { border-color: #f87171; background: #fff7f7; }
.modalProgressPanel.isError .modalProgressTitle { color: #b42318; }
.modalField { display: grid; gap: 6px; color: #334e68; font-weight: 650; }
.modalField input { width: 100%; padding: 8px 9px; border: 1px solid #b6c7d6; border-radius: 8px; font: inherit; }
.modalMessage { min-height: 1.3em; margin-top: 8px; color: #52606d; font-size: 0.9rem; }
.modalActions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.primaryButton { background: #102a43; color: #ffffff; border-color: #102a43; }
.dangerButton { background: #b91c1c; color: #ffffff; border-color: #991b1b; }
.emailLabel { display: none !important; }
@media (max-width: 720px) { .reviewMeta { justify-content: flex-start; } .formatToolbar { align-items: center; } .toolbarGroup { gap: 5px; } .appHeader { align-items: flex-start; } .headerAccountBlock { width: 100%; justify-content: flex-start; } }
@media print { .panelFooter, .modalOverlay { display: none !important; } }

.fd-clearNoteButton:not(:disabled):hover, .fd-clearNoteButton:not(:disabled):focus-visible { border-color: #dc2626; color: #7f1d1d; }

/* v69 toolbar layout: the main workflow/editing toolbar lives above both panels
   so the Dictation Scratchpad and Review Notes panels align. */
.accountToolbar .formatToolbar { flex: 1 1 100%; margin: 0; min-width: 0; }
.accountToolbar .accountBlock { flex: 0 0 auto; }

/* Majestic Scribe Encounter v28 five-pane workspace.
   The original v84 scratchpad remains the Visit Transcript pane; the downstream
   panes are clinical note, review/verify, draft action items, and patient
   instructions. */
.layout.encounterLayout,
.layout.layoutNoEvents.encounterLayout {
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.15fr) minmax(220px, 0.82fr) minmax(220px, 0.82fr) minmax(220px, 0.82fr);
  grid-auto-rows: minmax(0, 1fr);
  align-items: stretch;
}
.layout.encounterLayout[data-visible-pane-count="4"] {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}
.layout.encounterLayout[data-visible-pane-count="3"] {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}
.layout.encounterLayout[data-visible-pane-count="2"] {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}
.layout.encounterLayout[data-visible-pane-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}
.encounterPane {
  min-width: 220px;
  resize: horizontal;
  overflow: auto;
}
.encounterPane.paneCollapsed,
.encounterPane[hidden] {
  display: none !important;
}
.encounterPaneHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px 0;
}
.encounterPaneHeader h2 { margin: 0; }
.encounterPaneHint {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.25;
}
.noteEditor,
.transcriptEditor,
.actionItems,
.patientInstructions {
  min-height: 160px;
}
.noteEditor { background: #fffdf7; }
.transcriptEditor { background: #fbfdff; line-height: 1.32; }
.actionItems {
  background: #fcfffb;
  outline: none;
}
.patientInstructions {
  background: #fbfdff;
  outline: none;
}
.speakerRoleControls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: #52606d;
  font-size: 0.84rem;
}
.speakerRoleRow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  padding: 4px 6px;
  background: #f8fafc;
}
.speakerRoleLabel {
  font-weight: 650;
  color: #334155;
}
.speakerRoleRow select {
  min-width: 105px;
  max-width: 160px;
  border: 1px solid #b6c7d6;
  border-radius: 999px;
  padding: 2px 6px;
  background: #ffffff;
  border: 1px solid rgba(31, 78, 121, 0.12);
  color: #102a43;
  font: inherit;
}
.encounterPaneToggle.encounterPaneToggleActive {
  background: #e0f2fe;
  border-color: #0ea5e9;
  color: #0f3f57;
}
.noteStatus,
.actionItemsMeta {
  color: #64748b;
}
@media (max-width: 1180px) {
  .layout.encounterLayout,
  .layout.layoutNoEvents.encounterLayout,
  .layout.encounterLayout[data-visible-pane-count="5"],
  .layout.encounterLayout[data-visible-pane-count="4"],
  .layout.encounterLayout[data-visible-pane-count="3"] {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}
@media (max-width: 760px) {
  body.fd-appPage.fd-encounterMode {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.fd-appPage.fd-encounterMode #appShell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }
  body.fd-appPage.fd-encounterMode .layout.encounterLayout,
  body.fd-appPage.fd-encounterMode .layout.layoutNoEvents.encounterLayout,
  body.fd-appPage.fd-encounterMode .layout.encounterLayout[data-visible-pane-count] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow: visible;
  }
  body.fd-appPage.fd-encounterMode .encounterPane,
  body.fd-appPage.fd-encounterMode .reviewPane.encounterPane {
    min-width: 0;
    min-height: calc(16em + 5.75rem);
    max-height: none !important;
    resize: none;
    overflow: hidden;
  }
  body.fd-appPage.fd-encounterMode .noteEditor,
  body.fd-appPage.fd-encounterMode .transcriptEditor,
  body.fd-appPage.fd-encounterMode .reviewNotes,
  body.fd-appPage.fd-encounterMode .actionItems,
  body.fd-appPage.fd-encounterMode .patientInstructions {
    flex: 0 0 16em;
    min-height: 16em;
    height: 16em;
    max-height: none !important;
    overflow-y: auto;
  }
  body.fd-appPage.fd-encounterMode .layout.encounterLayout .reviewPane {
    max-height: none !important;
  }
}
@media print {
  body.fd-printPatientInstructions .encounterLayout #transcriptPane,
  body.fd-printPatientInstructions .encounterLayout #notePane,
  body.fd-printPatientInstructions .encounterLayout #actionPane,
  body.fd-printPatientInstructions .encounterLayout #reviewPane,
  body.fd-printPatientInstructions .encounterPaneHint,
  body.fd-printPatientInstructions .speakerRoleControls,
  body.fd-printPatientInstructions .panelFooter {
    display: none !important;
  }
  body.fd-printPatientInstructions .encounterLayout #patientPane {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.fd-printPatientInstructions .encounterLayout #patientPane h2 {
    display: none !important;
  }
  body.fd-printPatientInstructions .encounterLayout #patientInstructions {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  body.fd-printPatientInstructions .encounterLayout #patientInstructions .fd-review-highlight,
  body.fd-printPatientInstructions .encounterLayout #patientInstructions mark,
  body.fd-printPatientInstructions .encounterLayout #patientInstructions [data-review-id],
  body.fd-printPatientInstructions .encounterLayout #patientInstructions [data-review-tooltip] {
    background: transparent !important;
    background-color: transparent !important;
    color: #000 !important;
    text-decoration: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    outline: 0 !important;
  }
  body:not(.fd-printPatientInstructions) .encounterLayout #transcriptPane,
  body:not(.fd-printPatientInstructions) .encounterLayout #actionPane,
  body:not(.fd-printPatientInstructions) .encounterLayout #reviewPane,
  body:not(.fd-printPatientInstructions) .encounterLayout #patientPane,
  body:not(.fd-printPatientInstructions) .encounterPaneHint,
  body:not(.fd-printPatientInstructions) .speakerRoleControls {
    display: none !important;
  }
  body:not(.fd-printPatientInstructions) .encounterLayout #notePane { display: block !important; }
}

/* Encounter v21 role-apply control lives in the Visit Transcript footer.
   The visible label is intentionally short; the button title/aria-label say
   "Apply speaker roles" for accessibility. */
.transcriptActionStrip {
  display: flex;
  align-items: center;
  gap: 8px;
}
.transcriptApplyButton {
  flex: 0 0 auto;
  min-width: 58px;
  padding-left: 12px;
  padding-right: 12px;
}
.encounterPaneToggle {
  min-width: 34px;
  padding-left: 10px;
  padding-right: 10px;
  font-weight: 700;
}

/* Majestic Scribe Encounter v28 transcript evidence highlights. */
.fd-transcript-evidence-highlight {
  background: #bbf7d0;
  border-bottom: 2px solid #16a34a;
  border-radius: 3px;
  color: inherit;
  padding: 0 1px;
}
.transcriptEvidenceLegend {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #14532d;
  flex: 0 1 auto;
  font-size: 0.78rem;
  padding: 2px 8px;
}

/* Encounter v28 wide-screen and narrow-pane footer cleanup. */
.reviewMeta {
  flex-wrap: wrap;
  min-width: 0;
  gap: 6px;
}
.reviewMeta .versionInfo,
.reviewMeta .modeBadge {
  margin-left: 0;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.actionPane .panelFooter { display: none; }
@media (min-width: 1181px) {
  .layout.encounterLayout { max-width: none; }
}

/* Majestic Scribe Encounter v28 Preferences checkbox row. */
.fd-checkboxRow {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  font-weight: 600;
}
.fd-checkboxRow input[type="checkbox"] { flex: 0 0 auto; }

/* Majestic Scribe Encounter v28 same-user mirroring: mirror clients are read-only until Take Control. */
.fd-takeControlButton[hidden] { display: none !important; }
.fd-mirrorReadOnly .editor[contenteditable="false"],
.fd-mirrorReadOnly .reviewNotes[contenteditable="false"] {
  background: #f8fafc;
  cursor: default;
}
.fd-mirrorReadOnly .fd-workflowButton:not(.fd-takeControlButton),
.fd-mirrorReadOnly .formatButton,
.fd-mirrorReadOnly select {
  opacity: .7;
}
.clientsSettingsLayout { max-width: 760px; }
.clientsList { display: flex; flex-direction: column; gap: .55rem; margin-top: .5rem; }
.clientSessionRow { border: 1px solid #d6dce5; border-radius: 10px; padding: .6rem .75rem; background: #fff; }
.clientSessionTitle { font-weight: 700; color: #1f2933; text-transform: capitalize; }
.clientSessionDetail { font-size: .9rem; color: #52606d; margin: .15rem 0 .45rem; }
.clientLogoutBtn { padding: .35rem .65rem; border: 1px solid #b42318; color: #b42318; background: #fff; border-radius: 8px; }
.clientLogoutBtn:hover { background: #fff5f5; }

/* Majestic Scribe Encounter v28 iPhone Encounter pane height fix.
   Narrow screens are allowed to scroll vertically; panes 2-5 should have enough
   card height to contain their headers, hints, and about ten visible text lines
   instead of letting the editable area spill past the pane border. */
@media (max-width: 760px) {
  body.fd-appPage.fd-encounterMode .layout,
  body.fd-appPage.fd-encounterMode .layout.layoutNoEvents,
  body.fd-appPage.fd-encounterMode .layoutNoEvents,
  body.fd-appPage.fd-encounterMode .layout.encounterLayout,
  body.fd-appPage.fd-encounterMode .layout.layoutNoEvents.encounterLayout,
  body.fd-appPage.fd-encounterMode .layout.encounterLayout[data-visible-pane-count] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow: visible;
  }
  body.fd-appPage.fd-encounterMode .editorPane,
  body.fd-appPage.fd-encounterMode .reviewPane,
  body.fd-appPage.fd-encounterMode .encounterPane {
    box-sizing: border-box;
    min-height: calc(15.5em + 82px);
    max-height: none;
    overflow: hidden;
  }
  body.fd-appPage.fd-encounterMode #transcriptPane {
    min-height: calc(15.5em + 118px);
  }
  body.fd-appPage.fd-encounterMode .noteEditor,
  body.fd-appPage.fd-encounterMode .transcriptEditor,
  body.fd-appPage.fd-encounterMode .reviewNotes,
  body.fd-appPage.fd-encounterMode .actionItems,
  body.fd-appPage.fd-encounterMode .patientInstructions {
    flex: 1 1 auto;
    min-height: 15.5em;
    max-height: none;
    overflow-y: auto;
  }
}

/* v43 password forms: keep password inputs left-aligned and show live
   validation to the right on wide screens.  The same pattern is used by
   Settings > Password, self-signup, and password reset. */
.passwordValidationLayout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(240px, 320px);
  gap: 18px;
  align-items: start;
  max-width: 820px;
}
.passwordFieldsColumn {
  min-width: 0;
}
.passwordFieldRow {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 10px 0 !important;
  color: #334e68;
  font-weight: 700;
}
.passwordFieldRow input,
.passwordFieldRow select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
}
.passwordRequirementsPanel {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px 14px;
  color: #334e68;
}
.passwordRequirementsPanel h3 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}
.passwordRequirementList {
  list-style: none;
  margin: 0;
  padding: 0;
}
.passwordRequirementList li {
  margin: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
}
.passwordRequirementList li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  text-align: center;
  font-weight: 800;
}
.passwordRulePending::before { content: "•"; color: #64748b; }
.passwordRulePass::before { content: "✓"; color: #15803d; }
.passwordRuleFail::before { content: "×"; color: #b42318; }
.passwordRulePending { color: #52606d; }
.passwordRulePass { color: #166534; }
.passwordRuleFail { color: #991b1b; }
.passwordRequirementNote {
  margin: 10px 0 0 0;
  color: #52606d;
  font-size: 0.82rem;
}
.loginDialog .loginPasswordValidationLayout {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 280px);
  max-width: 100%;
  margin-top: 8px;
}
.loginDialog .passwordFieldRow {
  grid-template-columns: 132px minmax(0, 1fr);
  font-size: 14px;
}
.loginDialog .passwordFieldRow input {
  margin-top: 0;
}
.loginAuxForm .loginFormActions {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.loginAuxForm .loginFormActions button {
  width: 100%;
}
.agreementCheckRow {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600 !important;
  line-height: 1.35;
}
.agreementCheckRow input {
  width: auto !important;
  margin: 2px 0 0 0 !important;
  flex: 0 0 auto;
}
@media (min-width: 760px) {
  .loginDialog:has(.loginPasswordValidationLayout) {
    width: min(760px, calc(100vw - 32px));
  }
}
@media (max-width: 760px) {
  .passwordValidationLayout,
  .loginDialog .loginPasswordValidationLayout {
    grid-template-columns: minmax(0, 1fr);
  }
  .passwordFieldRow,
  .loginDialog .passwordFieldRow {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
.loginDialogWide {
  width: min(760px, calc(100vw - 32px));
}


.billingStatusList {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 8px 16px;
  margin: 12px 0 18px;
}
.billingStatusList dt {
  font-weight: 700;
  color: #334e68;
}
.billingStatusList dd {
  margin: 0;
  color: #102a43;
}

/* v56 login/signup polish: keep signup visually separate from the login form. */
.loginSecondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid #d9e2ec;
  color: #102a43;
  background: #ffffff;
}
.loginSignupPrompt {
  text-align: center;
}
.loginSmallHelp {
  margin-top: 14px;
}
.fd-signupPage .loginDialog {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

/* v65 configurable Encounter section settings. */
.settingsHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
}
.settingsHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.settingsDirtyIndicator {
  min-width: 0;
  color: #7c2d12;
  font-size: 0.9rem;
  font-weight: 700;
}
.settingsWarning {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #7c2d12;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0 8px 0;
  font-size: 0.92rem;
}
.noteSectionsFrame {
  border: 1px solid #d5dce7;
  border-radius: 12px;
  background: #ffffff;
  max-width: 1120px;
  overflow: hidden;
}
.noteSectionsHeader {
  display: grid;
  grid-template-columns: 38px minmax(340px, 2fr) minmax(300px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #506079;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #f7f9fc;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}
.noteSectionsList {
  display: grid;
  gap: 0;
}
.noteSectionRow {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(340px, 2fr) minmax(300px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #edf2f7;
  padding: 8px 10px;
  background: #fff;
}
.noteSectionRow:first-child {
  border-top: 0;
}
.noteSectionRow:last-child {
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}
.noteSectionRow.noteSectionDragging {
  opacity: 0.58;
}
.noteSectionRow.noteSectionDropBefore::before,
.noteSectionRow.noteSectionDropAfter::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
  pointer-events: none;
  z-index: 1;
}
.noteSectionRow.noteSectionDropBefore::before {
  top: -2px;
}
.noteSectionRow.noteSectionDropAfter::after {
  bottom: -2px;
}
.noteSectionDragHandle {
  align-self: center;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #c8d3e0;
  border-radius: 8px;
  background: #f7f9fc;
  cursor: grab;
  color: #506079;
  font-weight: 800;
}
.noteSectionDragHandle:active {
  cursor: grabbing;
}
.noteSectionHeadingCell,
.noteSectionRoleCell {
  min-width: 0;
}
.noteSectionHeading {
  min-width: 320px;
}
.noteSectionRole {
  min-width: 290px;
}
.noteSectionRow input[type="text"], .noteSectionRow select {
  width: 100%;
  border: 1px solid #c8d3e0;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.92rem;
  font-family: inherit;
  box-sizing: border-box;
}
.noteSectionRemoveBtn {
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #f1a3a3;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
  background: #fff5f5;
  color: #b42318;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.noteSectionRemoveBtn:hover, .noteSectionRemoveBtn:focus {
  background: #ffe3e3;
  color: #8a1c14;
}
.noteSectionsActions {
  flex-wrap: wrap;
  gap: 8px;
}
.noteSectionsActions select {
  min-width: min(100%, 320px);
}
.manualBody {
  margin: 0;
  background: #f5f7fb;
  color: #172033;
}
.manualShell {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 42px) 40px;
  box-sizing: border-box;
}
.manualHero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.manualShell section {
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 14px 0;
}
.manualShell h1,
.manualShell h2 {
  margin-top: 0;
}
.manualVersionFooter {
  color: #60708a;
  font-size: 0.9rem;
  margin-top: 18px;
}
@media (max-width: 760px) {
  .settingsHeaderActions {
    width: 100%;
    justify-content: flex-start;
  }
  .noteSectionsHeader {
    display: none;
  }
  .noteSectionRow {
    grid-template-columns: 34px 1fr 34px;
  }
  .noteSectionRoleCell {
    grid-column: 2 / 4;
  }
  .noteSectionHeading,
  .noteSectionRole {
    min-width: 0;
  }
}

.recentEncountersDialog { width: min(680px, calc(100vw - 32px)); }
.recentEncountersList { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: min(60vh, 520px); overflow: auto; }
.recentEncounterRow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d9e2ec; border-radius: 12px; background: #f8fafc; transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease; }
.recentEncounterRow:hover, .recentEncounterRow:focus-within { border-color: #2f80ed; box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.16); background: #ffffff; }
.recentEncounterLoadBtn { appearance: none; border: 0; background: transparent; text-align: left; padding: 0; cursor: pointer; color: #102a43; }
.recentEncounterLoadBtn:focus, .recentEncounterLoadBtn:focus-visible { outline: none; box-shadow: none; }
.recentEncounterMeta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 3px; }
.recentEncounterWhen { font-weight: 700; margin-bottom: 0; }
.recentEncounterPreview { color: #486581; font-size: 0.92rem; }
.recentEncounterExpiry { color: #6b7c93; font-size: 0.82rem; margin-top: 0; white-space: nowrap; }
.recentEncounterDeleteBtn.noteSectionRemoveBtn { align-self: center; justify-self: center; }
.recentEncountersEmpty { padding: 16px; color: #486581; border: 1px dashed #bcccdc; border-radius: 12px; }

.versionMismatchOverlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.58); }
.versionMismatchOverlay[hidden] { display: none !important; }
.versionMismatchDialog { max-width: 520px; border-radius: 16px; padding: 24px; background: #ffffff; color: #102a43; box-shadow: 0 24px 64px rgba(15, 23, 42, 0.30); }
.versionMismatchDialog h2 { margin: 0 0 12px; font-size: 1.25rem; }
.versionMismatchDialog p { margin: 8px 0; }
.versionMismatchDialog button { margin-top: 12px; border: 1px solid #bcccdc; border-radius: 10px; padding: 8px 14px; background: #f0f4f8; cursor: pointer; font-weight: 700; }


.telemedicineSettingsLayout { max-width: 900px; }
.telemedicineMinutesCard { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid #d9e2ec; border-radius: 12px; background: #f8fafc; }
.telemedicineResetText { color: #6b7c93; font-size: 0.9rem; text-align: right; }
.telemedicineFieldset { border: 1px solid #d9e2ec; border-radius: 12px; padding: 14px 16px 16px; margin: 0; background: #ffffff; }
.telemedicineFieldset legend { font-weight: 700; color: #102a43; padding: 0 6px; }
.telemedicinePhoneList { display: grid; gap: 10px; }
.telemedicinePhoneRow { display: grid; grid-template-columns: minmax(120px, 190px) minmax(260px, 1fr) auto auto; gap: 10px; align-items: center; }
.telemedicinePhoneInput { display: inline-flex; align-items: center; gap: 4px; color: #486581; }
.telemedicinePhoneInput input { width: 4.2em; text-align: center; font-variant-numeric: tabular-nums; }
.telemedicinePhoneInput input[id$="Line"] { width: 5.2em; }
.telemedicineCountryPrefix { color: #102a43; font-weight: 700; }
.telemedicinePinRow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.telemedicinePinDisplay { padding: 8px 12px; border: 1px solid #bcccdc; border-radius: 10px; background: #f8fafc; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.telemedicineVerifiedBadge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #e3fcef; color: #0e6245; font-weight: 800; border: 1px solid #7bc47f; }
.telemedicineVerifyCode { margin: 12px 0; padding: 12px 16px; border: 1px solid #bcccdc; border-radius: 12px; background: #f8fafc; font-size: 2rem; font-weight: 800; text-align: center; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .telemedicineMinutesCard { align-items: flex-start; flex-direction: column; }
  .telemedicineResetText { text-align: left; }
  .telemedicinePhoneRow { grid-template-columns: 1fr; align-items: start; }
}

/* v103: compact Visit Transcript speaker-turn spacing without changing text. */
.fd-transcript-half-gap {
  display: inline-block;
  height: 0.35em;
  line-height: 0.35em;
}


/* v103 Encounter Visit Transcript and Review / Verify layout refinements. */
.fd-transcript-turn,
.fd-transcript-line {
  margin: 0;
  padding: 0;
  min-height: 1.15em;
}
.fd-transcript-turn.fd-transcript-after-gap,
.fd-transcript-line.fd-transcript-after-gap {
  margin-top: 0.35em;
}
.fd-transcript-pending {
  color: #52606d;
  font-style: italic;
  padding: 4px 0;
}
body.fd-appPage.fd-encounterMode #reviewPane .reviewMeta {
  display: flex !important;
  justify-content: flex-end;
  min-height: 0;
  padding-top: 2px;
  padding-bottom: 0;
}
body.fd-appPage.fd-encounterMode #reviewPane .reviewMeta .modeBadge {
  display: none !important;
}
body.fd-appPage.fd-encounterMode #reviewPane .reviewNotes {
  min-height: 150px;
}
.modeBadge[hidden] {
  display: none !important;
}

/* v117 branded vocabulary generation progress modal. */
.vocabularyProgressOverlay { z-index: 2600; }
.vocabularyProgressOverlay .vocabularyProgressModalPanel { min-width: min(420px, calc(100vw - 40px)); }
.vocabularyProgressOverlay.isError .finalizePanel { border-color: #f87171; background: #fff7f7; }
.vocabularyProgressOverlay.isError .finalizeText strong { color: #b42318; }

/* v117: vocabulary progress must appear above Settings/Vocabulary dialogs. */
.vocabularyProgressOverlay { z-index: 20000; }
.vocabularyProgressActions { margin-top: 14px; justify-content: center; }

/* v117 live audio meter overlay.  This standard modal replaces live Deepgram
   text when FRONTDICTATE_ENCOUNTER_LIVE_TRANSCRIPT_DISPLAY_MODE=pulsing_mic_meter.
   It follows the same palette, logo treatment, and button semantics as the other
   Majestic Scribe dialogs. */
.liveAudioMeterOverlay{
  position:fixed;
  inset:0;
  z-index:2150;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(16,42,67,.18);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
}
body.fd-busy .liveAudioMeterOverlay,
body.fd-idleMicWarningActive .liveAudioMeterOverlay{display:none!important;}
.liveAudioMeterOverlay[hidden]{display:none!important;}
.liveAudioMeterPanel{
  position:relative;
  width:min(92vw,500px);
  min-height:540px;
  border-radius:16px;
  padding:28px 24px 22px;
  background:#fff;
  border:1px solid #b6c7d6;
  box-shadow:0 18px 44px rgba(16,42,67,.26);
  color:#102a43;
  text-align:center;
}
.liveAudioMeterBrand{
  width:52px;
  height:52px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid rgba(31,78,121,.12);
  overflow:hidden;
}
.liveAudioMeterBrand img{width:72%;height:72%;object-fit:contain;}
.liveAudioMeterClose{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#eef4fb;
  color:#102a43;
  font-size:28px;
  line-height:1;
}
.liveAudioMeterTitle{
  font-size:34px;
  font-weight:800;
  color:#102a43;
  display:flex;
  align-items:center;
  justify-content:center;
}
.liveAudioMeterSubtitle{
  margin-top:8px;
  font-size:16px;
  font-weight:600;
  color:#52606d;
}
.liveAudioMicSmall,.liveAudioWaveIcon{display:none!important;}
.liveAudioPulseWrap{
  position:relative;
  width:min(66vw,280px);
  height:min(66vw,280px);
  margin:24px auto 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.liveAudioPulseRing{
  position:absolute;
  border:1.5px solid rgba(31,78,121,.22);
  border-radius:999px;
  animation:liveAudioPulse 2.2s infinite ease-out;
}
.liveAudioPulseRing.ring1{inset:18%;animation-delay:0s;}
.liveAudioPulseRing.ring2{inset:8%;animation-delay:.35s;}
.liveAudioPulseRing.ring3{inset:0;animation-delay:.7s;}
.liveAudioPulseCore{
  width:148px;
  height:148px;
  border-radius:999px;
  background:radial-gradient(circle at center,#eef4fb 0,#d9e8f7 68%,rgba(217,232,247,0) 70%);
  position:relative;
  transition:transform .18s ease-out,box-shadow .18s ease-out;
  box-shadow:0 0 22px rgba(31,78,121,.20);
}
.liveAudioPulseCore:before{
  content:'';
  position:absolute;
  left:50%;top:50%;
  width:64px;height:88px;
  margin-left:-32px;margin-top:-54px;
  background:#1f4e79;
  border-radius:32px 32px 26px 26px;
}
.liveAudioPulseCore:after{
  content:'';
  position:absolute;
  left:50%;top:50%;
  width:92px;height:88px;
  margin-left:-46px;margin-top:-28px;
  border:12px solid #1f4e79;
  border-top:0;
  border-radius:0 0 50px 50px;
  box-sizing:border-box;
}
@keyframes liveAudioPulse{0%{transform:scale(.82);opacity:.56;}100%{transform:scale(1.06);opacity:.08;}}
.liveAudioLevelLabel{font-weight:800;font-size:18px;margin-top:10px;color:#102a43;}
.liveAudioLevelBars{display:flex;align-items:flex-end;justify-content:center;gap:16px;margin:16px 0 8px;}
.liveAudioLevelBar{width:10px;height:52px;border-radius:99px;background:#d9e2ec;transition:height .18s ease-out,background-color .18s ease-out,opacity .18s ease-out;}
.liveAudioLevelBar.active{background:#3b82c4;opacity:1;}
.liveAudioLevelBar:nth-child(1){height:32px}.liveAudioLevelBar:nth-child(2){height:42px}.liveAudioLevelBar:nth-child(3){height:48px}.liveAudioLevelBar:nth-child(4){height:54px}.liveAudioLevelBar:nth-child(5){height:48px}.liveAudioLevelBar:nth-child(6){height:42px}.liveAudioLevelBar:nth-child(7){height:36px}.liveAudioLevelBar:nth-child(8){height:30px}
.liveAudioLevelValue{display:none;}
.liveAudioMeterActions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px;}
.liveAudioActionButton{min-height:56px;border-radius:12px;border:2px solid #1f4e79;background:#fff;color:#1f4e79;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;gap:12px;}
.liveAudioActionButton svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.8;fill:none;}
.liveAudioActionButton:disabled{opacity:.5;cursor:not-allowed;}
.liveAudioPauseButton{border-color:#1f4e79;color:#1f4e79;background:#eef4fb;}
.liveAudioPauseButton:hover:not(:disabled){background:#d9e8f7;}
.liveAudioResumeButton{border-color:#1f4e79;color:#fff;background:#1f4e79;}
.liveAudioResumeButton:hover:not(:disabled){background:#163b5e;}
.liveAudioMeterPaused .liveAudioPulseRing{animation:none;opacity:.14;border-color:rgba(82,96,109,.22);}
.liveAudioMeterPaused .liveAudioPulseCore{background:radial-gradient(circle at center,#f8fafc 0,#e5e7eb 68%,rgba(229,231,235,0) 70%);}
.liveAudioMeterPaused .liveAudioPulseCore:before,.liveAudioMeterPaused .liveAudioPulseCore:after{background:#52606d;border-color:#52606d;}
.liveAudioMeterPaused .liveAudioLevelBar.active{background:#d9e2ec;opacity:.55;}
.liveAudioFinalizeButton{background:#1f4e79;color:#fff;border-color:#1f4e79;box-shadow:0 8px 24px rgba(31,78,121,.24);}
@media (max-width:520px){.liveAudioMeterPanel{width:92vw;min-height:520px;padding:28px 20px 22px}.liveAudioMeterTitle{font-size:32px}.liveAudioMeterSubtitle{font-size:15px}.liveAudioLevelBars{gap:13px}.liveAudioActionButton{font-size:17px}}


.fd-transcript-pause-marker {
  margin: 0.55em 0;
  text-align: center;
  color: #294461;
}

.fd-transcript-pause-marker strong {
  font-weight: 700;
}


.telemedicineExperimentalNotice {
  border: 1px solid #bfd7ee;
  background: #f5f9fd;
  color: #183b56;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
