/*
 * Refinement layer (UX review, 2026-10). Loaded last. Direction: a quiet working paper, not a dashboard.
 * - one warm neutral ground, ink text, one accent per service; no tinted pills, no glow, no dark nav block
 * - flat surfaces separated by hairlines instead of cards with shadows
 * - nothing smaller than 14px for content; labels are plain sentences, not spaced capitals
 */
:root {
  --bg: #f5f2ea;
  --surface: #ffffff;
  --subtle: #eae3d5;
  --line: #d1c7b4;
  --text: #1b201f;
  --muted: #535c57;
  --primary: #2d3432;
  --primary-hover: #181d1c;
  --link: #74512d;
  --icon-accent: #9a7342;
  --topbar: #fbf9f5;
  --blue-bg: #e6dfce;
}
:root[data-service="scribae"], :root[data-service="platform"] {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --subtle: #e1ebf2;
  --line: #c8d7e2;
  --text: #0f1c24;
  --muted: #486575;
  --primary: #184657;
  --primary-hover: #10323f;
  --link: #184657;
  --icon-accent: #378298;
  --topbar: #ffffff;
  --blue-bg: #d7e4ec;
}
:root[data-service="mens_medica"], :root[data-service="medica"] {
  --bg: #f5f2ea;
  --surface: #ffffff;
  --subtle: #eae3d5;
  --line: #d1c7b4;
  --text: #1b201f;
  --muted: #535c57;
  --primary: #2d3432;
  --primary-hover: #181d1c;
  --link: #74512d;
  --icon-accent: #9a7342;
  --topbar: #fbf9f5;
}
:root[data-theme="dark"] {
  --bg: #141718;
  --surface: #1f2526;
  --subtle: #293032;
  --line: #454f52;
  --text: #f4f1e9;
  --muted: #b8bfb7;
  --primary: #cbb38d;
  --primary-hover: #dfcbaa;
  --link: #d5b68c;
  --icon-accent: #c49c67;
  --topbar: #1a2021;
  --blue-bg: #2e383b;
}
:root[data-service="scribae"][data-theme="dark"], :root[data-service="platform"][data-theme="dark"] {
  --bg: #0b1419;
  --surface: #14222a;
  --subtle: #1c2f3a;
  --line: #294452;
  --text: #f0f6fa;
  --muted: #9bb7c7;
  --primary: #6dc3dc;
  --primary-hover: #8fd4e8;
  --link: #8fd4e8;
  --icon-accent: #78b6cd;
  --topbar: #101c22;
  --blue-bg: #1d3644;
}

body { font-size: 16px; line-height: 1.55; }
small, .inline-note, td small, th { font-size: 14px; }

/* Sidebar: distinct per service and high-contrast */
.sidebar {
  background: var(--surface);
  --surface: var(--surface);
  --icon-paper: var(--surface);
  --icon-accent: var(--primary);
  --line: var(--line);
  color: var(--text);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

[data-service="scribae"] .sidebar {
  background: #142a35;
  --surface: #142a35;
  --icon-paper: #142a35;
  --icon-accent: #78b6cd;
  --line: #244857;
  color: #ebf2f5;
  border-right: 1px solid #244857;
}
[data-service="scribae"] .sidebar .brand,
[data-service="scribae"] .sidebar .brand-name {
  color: #ffffff;
}
[data-service="scribae"] .sidebar .brand small {
  color: #8faab8;
  font-size: 13px;
  letter-spacing: 0;
}
[data-service="scribae"] .sidebar nav button {
  color: #d1e2eb;
}
[data-service="scribae"] .sidebar nav button:hover {
  background: #1d3e4e;
  color: #ffffff;
}
[data-service="scribae"] .sidebar nav button.active,
[data-service="scribae"] .sidebar nav button[aria-current="page"] {
  background: #244b5e;
  color: #78b6cd;
  border-left-color: #78b6cd;
}
[data-service="scribae"] .sidebar .workspace-tools summary,
[data-service="scribae"] .sidebar-bottom .manual-link,
[data-service="scribae"] .sidebar .profile small {
  color: #9cb5c2;
}
[data-service="scribae"] .sidebar .avatar {
  background: #276175;
  color: #ffffff;
}

/* Mens Medica: clinical mineral slate folio */
[data-service="mens_medica"] .sidebar {
  background: #1e2826;
  --surface: #1e2826;
  --icon-paper: #1e2826;
  --icon-accent: #c49c67;
  --line: #35423f;
  color: #f3efe6;
  border-right: 1px solid #35423f;
}
[data-service="mens_medica"] .sidebar .brand,
[data-service="mens_medica"] .sidebar .brand-name {
  color: #ffffff;
}
[data-service="mens_medica"] .sidebar .brand small {
  color: #c49c67;
  font-size: 13px;
  letter-spacing: 0;
}
[data-service="mens_medica"] .sidebar nav button {
  color: #d2ded7;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
}
[data-service="mens_medica"] .sidebar nav button:hover {
  background: #293734;
  color: #ffffff;
}
[data-service="mens_medica"] .sidebar nav button.active,
[data-service="mens_medica"] .sidebar nav button[aria-current="page"] {
  background: #324440;
  color: #ffffff;
  font-weight: 700;
  border-left-color: #c49c67;
}
[data-service="mens_medica"] .sidebar .workspace-tools summary,
[data-service="mens_medica"] .sidebar-bottom .manual-link,
[data-service="mens_medica"] .sidebar .profile small {
  color: #a4b4ad;
}
[data-service="mens_medica"] .sidebar .avatar {
  background: #394d48;
  color: #f3efe6;
}

/* Common sidebar mechanics */
.nav-label, .pilot-tag { display: none; }
nav button {
  border-radius: 0;
  border-left: 3px solid transparent;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 12px;
  color: var(--text);
  gap: 12px;
}
nav button svg { width: 20px; height: 20px; opacity: .85; }
nav button:hover { background: var(--subtle); }
nav button.active,
nav button[aria-current="page"] {
  background: var(--subtle);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}
.workspace-tools summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.sidebar-bottom .manual-link { font-size: 14px; color: var(--muted); }
.avatar { background: var(--primary); color: #fff; border-radius: 50%; }

/* Global layout constraints preventing horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}
.main {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.content {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 36px 48px;
  width: 100%;
}

/* Header: the page title belongs to the page; the bar only holds who/where */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  min-height: 64px;
  height: 64px;
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}
.workspace-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.workspace-controls select,
#tenant-select {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 34px 8px 12px;
  min-width: 220px;
  max-width: 520px;
  box-sizing: border-box;
}
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.view-toggle { font-size: 15px; font-weight: 600; }

/* Page titles: one clear line, no spaced-capital eyebrow above it */
.eyebrow, .page-heading .eyebrow { display: none; }
.page-heading h1, .page-heading h2 { font-size: 28px; letter-spacing: -.01em; margin: 0 0 6px; }
.page-heading p { font-size: 15px; color: var(--muted); margin: 0 0 20px; }

/* Surfaces: flat, hairline, square-ish */
.card, .panel, .stat, .kpi, section.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}
button, input, select, textarea { border-radius: 6px; font-size: 16px; }
button.primary, .primary {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
}
button.primary:hover, .primary:hover { background: var(--primary-hover); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
}

/* Status: plain words with a left rule, not coloured pills */
.status, .pill, .badge, .tag {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--line);
  border-radius: 0;
  padding: 1px 0 1px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.status.ok, .badge.ok { border-left-color: var(--green); }
.status.warn, .badge.warn { border-left-color: var(--amber); }
.status.bad, .badge.bad { border-left-color: var(--red); }

/* Tables: readable rows, header as a normal-case caption */
th { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--muted); background: transparent; border-bottom: 2px solid var(--text); }
td { font-size: 15px; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .page-heading h1, .page-heading h2 { font-size: 26px; }
}

/* Beat the older, more specific sidebar rules in medica.css */

.brand .brand-name small, .brandmark + span small { font-size: 13px; }
/* Table captions on the patients list */
.patient-table th, [class*="table"] th, .list-head { font-size: 14px; letter-spacing: 0; text-transform: none; }

/* Header: one quiet row. Labels become accessible names only. */
.language-picker { font-size: 0; gap: 0; }
.language-picker select { font-size: 15px; }
.service-badge { display: none; }
.topbar { min-height: 60px; }
.toolbar-controls { gap: 8px; align-items: center; }
.toolbar-controls .view-toggle { border: 0; background: transparent; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; padding: 6px 8px; }
.toolbar-controls .view-toggle svg { display: none; }
.theme-toggle, .account-button { border-color: transparent; background: transparent; }
@media (max-width: 760px) {
  .topbar { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .workspace-controls { flex: 1 1 auto; min-width: 0; }
  .workspace-controls select { max-width: 100%; }
  .toolbar-controls { flex: 0 0 auto; }
  .toolbar-controls .view-toggle { font-size: 13px; padding: 4px; }
  .language-picker select { max-width: 92px; }
}

/* Summary: one sentence instead of four tiles */
.summary-line { font-size: 17px; margin: 4px 0 24px; color: var(--muted); }
.summary-line strong { color: var(--text); font-size: 20px; }

/* Empty states and callouts: plain, left-aligned, no tint */
.empty { text-align: left; padding: 28px 4px; }
.empty svg { display: none; }
.callout { background: transparent; border: 0; border-left: 3px solid var(--line); border-radius: 0; padding: 4px 0 4px 14px; font-size: 15px; }
.callout.amber { border-left-color: var(--amber); }
.callout.red { border-left-color: var(--red); }
.muted, .section-gap + .muted { font-size: 14px; }
details > summary { font-size: 15px; font-weight: 600; cursor: pointer; }
:root .language-picker { font-size: 0; gap: 0; }
:root .language-picker select { font-size: 15px; min-width: 0; }
@media (max-width: 760px) {
  html .workspace-controls { flex: 1 1 0; width: auto; }
  html .workspace-controls select { width: 100%; min-width: 0; flex: 1 1 auto; }
  html .toolbar-controls { width: auto; }
  html .topbar { flex-wrap: nowrap; }
}
@media (max-width: 760px) {
  html .workspace-controls select { min-width: 96px; font-size: 14px; padding: 8px; }
  html .toolbar-controls .view-toggle { font-size: 13px; padding: 4px; }
  .language-picker select { max-width: 84px; }
}
@media (max-width: 760px) {
  html .topbar { flex-wrap: wrap; row-gap: 4px; }
  html .workspace-controls { flex: 1 1 100%; }
  html .workspace-controls select { min-width: 0; font-size: 15px; }
  html .toolbar-controls { width: 100%; justify-content: space-between; }
  html .toolbar-controls .view-toggle { margin-right: auto; }
}

/* Device cards: status first, two actions visible, the rest under "Más" */

.device-actions { align-items: center; gap: 8px; }
.more-actions { position: relative; }
.more-actions > summary { list-style: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; }
.more-actions > summary::-webkit-details-marker { display: none; }
.more-list { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-width: 220px; }
.more-list button { text-align: left; }
.recorder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0; }
.recorder audio { width: 100%; max-width: 420px; }

@media (max-width: 760px) {
  html .mobile-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  html .mobile-tabs button { font-size: 12px; min-width: 0; }
}
.empty { display: block; }
.empty h3 { font-size: 16px; margin: 0 0 4px; }
.empty p { font-size: 15px; color: var(--muted); margin: 0; max-width: 60ch; }


/* --- MODERN FORM SELECTS & INPUTS --- */
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23486575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  min-height: 42px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239bb7c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
select:hover {
  border-color: var(--primary);
}
select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

/* --- DEVICE CARDS REPAIR & CLEANUP --- */
.cards.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
.device-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}
.device-card .device-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-card .device-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.device-card .device-avatar svg {
  width: 24px;
  height: 24px;
}
.device-card .device-titles {
  flex: 1;
  min-width: 0;
}
.device-card .device-titles h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.device-card .device-user {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-card .badge {
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.device-card .badge.green {
  background: color-mix(in srgb, #16a34a 12%, transparent);
  color: #16a34a;
  border: 1px solid color-mix(in srgb, #16a34a 30%, transparent);
}
.device-card .badge.amber {
  background: color-mix(in srgb, #d97706 12%, transparent);
  color: #d97706;
  border: 1px solid color-mix(in srgb, #d97706 30%, transparent);
}
.device-card .badge.red {
  background: color-mix(in srgb, #dc2626 12%, transparent);
  color: #dc2626;
  border: 1px solid color-mix(in srgb, #dc2626 30%, transparent);
}
.device-card .device-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.device-card .device-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.device-card .info-label {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.device-card .info-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: normal;
  overflow-wrap: break-word;
}
.device-card .device-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Override the broken anywhere wrapping on devices */
.device-card dd, .device-card dt {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* --- COMPACT DASHBOARDS & REDUCED SCROLL --- */
.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
  gap: 20px;
  align-items: start;
}
.stats-compact {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.stat-pill strong {
  font-size: 19px;
  color: var(--primary);
  font-weight: 700;
}
.stat-pill span {
  font-size: 13px;
  color: var(--muted);
}
.stat-pill.highlight {
  border-left: 3px solid var(--primary);
}

/* Messages forms side-by-side */
.message-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .home-dashboard,
  .message-forms {
    grid-template-columns: 1fr;
  }
}

/* Acoustic enrollment card & visualizer */
.acoustic-enrollment-card {
  border-left: 4px solid var(--primary);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.acoustic-summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.acoustic-lead {
  margin: 12px 0 16px;
  color: var(--text);
  line-height: 1.5;
}
.acoustic-theme-box {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.acoustic-steps {
  margin: 14px 0 18px 20px;
  line-height: 1.6;
}
.acoustic-steps li {
  margin-bottom: 6px;
}
.acoustic-visualizer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 16px 0;
  background: var(--surface-2);
  border: 1px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.acoustic-wave-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  flex: 0 0 auto;
}
.acoustic-wave-bars span {
  display: inline-block;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
  height: 8px;
  animation: acousticWave 1.2s ease-in-out infinite alternate;
}
.acoustic-wave-bars span:nth-child(1) { animation-delay: 0.1s; height: 12px; }
.acoustic-wave-bars span:nth-child(2) { animation-delay: 0.3s; height: 22px; }
.acoustic-wave-bars span:nth-child(3) { animation-delay: 0.5s; height: 32px; }
.acoustic-wave-bars span:nth-child(4) { animation-delay: 0.2s; height: 28px; }
.acoustic-wave-bars span:nth-child(5) { animation-delay: 0.4s; height: 18px; }
.acoustic-wave-bars span:nth-child(6) { animation-delay: 0.6s; height: 30px; }
.acoustic-wave-bars span:nth-child(7) { animation-delay: 0.25s; height: 20px; }
.acoustic-wave-bars span:nth-child(8) { animation-delay: 0.45s; height: 10px; }

@keyframes acousticWave {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

.visualizer-info {
  flex: 1 1 auto;
  min-width: 0;
}
.visualizer-info strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 2px;
}
.visualizer-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.btn-sound-icon {
  margin-right: 6px;
  font-size: 16px;
  vertical-align: middle;
}

/* --- INACTIVE DEVICES ACCORDION & TOP-LEVEL GRID --- */
.inactive-devices-section {
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-sizing: border-box;
}
.inactive-devices-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  background: var(--subtle);
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
}
.inactive-devices-section[open] .inactive-devices-summary {
  border-bottom-color: var(--line);
}
.inactive-devices-summary:hover {
  background: color-mix(in srgb, var(--subtle) 80%, var(--primary) 6%);
}
.inactive-devices-summary .count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.inactive-devices-section .cards.device-grid {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* --- RETRY TRANSCRIPTION & STATUS ACTIONS --- */
.note-status-actions,
.table-badge-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.table-badge-actions {
  align-items: flex-start;
}
.retry-transcribe-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.1s ease, filter 0.15s ease !important;
}
.retry-transcribe-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.retry-transcribe-btn .clinical-symbol {
  width: 13px;
  height: 13px;
}

