/**
 * 10МКБ.РФ (10-мкб.рф) — Clinical Emerald & Modern Medical Workspace Design System
 * 2026 Edition. Pure Vanilla CSS, highly optimized, zero third-party dependencies.
 */

:root {
  --font-sans: 'Golos Text', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Courier New', monospace;

  /* Clinical Emerald / Teal Palette */
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-300: #5eead4;
  --primary-400: #2dd4bf;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;
  --primary-950: #042f2e;

  /* Neutral Slate Palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Medical Accent Colors */
  --accent-blue: #0284c7;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-cyan: #0891b2;

  /* Theme mappings */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-primary-subtle: #f0fdfa;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-brand: #0d9488;

  --border-light: #e2e8f0;
  --border-focus: #14b8a6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px -5px rgba(13, 148, 136, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --container-max: 1200px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-subtle: #1f293d;
  --bg-primary-subtle: #042f2e;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-brand: #2dd4bf;

  --border-light: #1e293b;
  --border-focus: #2dd4bf;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px -5px rgba(45, 212, 191, 0.2);
}

/* Base reset & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

[data-theme="dark"] a {
  color: var(--primary-400);
}

a:hover {
  color: var(--primary-700);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.rf-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top Notification / Trust Bar */
.rf-top-bar {
  background: var(--primary-950);
  color: #ccfbf1;
  font-size: 0.8125rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.rf-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rf-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.rf-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(45, 212, 191, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.rf-top-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.rf-top-links a {
  color: #99f6e4;
  font-size: 0.8125rem;
}
.rf-top-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Main Header */
.rf-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.rf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1.5rem;
}

.rf-logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.rf-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: var(--shadow-glow);
}

.rf-logo-text {
  display: flex;
  flex-direction: column;
}

.rf-logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.rf-logo-title span {
  color: var(--primary-600);
}

.rf-logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Header Navigation */
.rf-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.rf-nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.rf-nav-link:hover, .rf-nav-link.active {
  color: var(--primary-700);
  background: var(--bg-primary-subtle);
}

[data-theme="dark"] .rf-nav-link:hover, [data-theme="dark"] .rf-nav-link.active {
  color: var(--primary-300);
  background: rgba(20, 184, 166, 0.15);
}

.rf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rf-btn-theme {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rf-btn-theme:hover {
  background: var(--border-light);
  color: var(--text-main);
}

.rf-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

/* Hero Section */
.rf-hero {
  position: relative;
  background: linear-gradient(180deg, #f0fdfa 0%, var(--bg-body) 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .rf-hero {
  background: linear-gradient(180deg, #042f2e 0%, var(--bg-body) 100%);
}

.rf-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2rem;
}

.rf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

[data-theme="dark"] .rf-hero-badge {
  color: var(--primary-300);
}

.rf-hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.rf-hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Search Box Container */
.rf-search-box {
  max-width: 780px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.rf-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--primary-400);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 25px -5px rgba(13, 148, 136, 0.18);
  padding: 0.35rem;
  transition: all var(--transition-fast);
}

.rf-search-form:focus-within {
  border-color: var(--primary-600);
  box-shadow: 0 10px 30px -4px rgba(13, 148, 136, 0.3);
}

.rf-search-icon {
  padding-left: 1rem;
  padding-right: 0.5rem;
  color: var(--primary-600);
  display: flex;
  align-items: center;
}

.rf-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.85rem 0.5rem;
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  color: var(--text-main);
}

.rf-search-input::placeholder {
  color: var(--slate-400);
}

.rf-search-btn {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rf-search-btn:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Quick Search Suggestions */
.rf-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.rf-quick-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.rf-quick-tag:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background: var(--bg-primary-subtle);
}

/* Fast Class Jump Matrix */
.rf-matrix-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2.5rem;
  box-shadow: var(--shadow-sm);
}

.rf-matrix-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rf-matrix-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rf-matrix-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.rf-matrix-pill:hover {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 22 Classes Grid on Homepage */
.rf-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rf-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.rf-class-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.rf-class-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md), 0 0 15px -3px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.rf-class-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.rf-class-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--primary-700);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .rf-class-num-badge {
  color: var(--primary-300);
}

.rf-class-range-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-700);
  background: var(--bg-primary-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .rf-class-range-badge {
  color: var(--primary-300);
}

.rf-class-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.rf-class-card:hover .rf-class-title {
  color: var(--primary-600);
}

.rf-class-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  margin-top: auto;
}

.rf-class-btn-expand {
  background: transparent;
  border: none;
  color: var(--primary-600);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Medical Tools Widget Grid */
.rf-tools-section {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3rem;
}

.rf-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.rf-tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.rf-tool-card:hover {
  border-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rf-tool-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary-subtle);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

[data-theme="dark"] .rf-tool-icon {
  color: var(--primary-300);
}

.rf-tool-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
}

.rf-tool-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Breadcrumbs Component */
.rf-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.875rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
}

.rf-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rf-breadcrumb-item a {
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.rf-breadcrumb-item a:hover {
  color: var(--primary-700);
  border-color: var(--primary-400);
}

.rf-breadcrumb-sep {
  color: var(--slate-400);
  font-size: 0.75rem;
}

.rf-breadcrumb-current {
  font-weight: 700;
  color: var(--text-main);
  padding: 0.2rem 0.5rem;
  background: var(--bg-primary-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-200);
}

/* Clinical Protocol (Code View Page) */
.rf-protocol-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.rf-protocol-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.rf-code-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.rf-code-pill-main {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.rf-btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rf-btn-copy-code:hover {
  background: var(--bg-primary-subtle);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

.rf-btn-copy-code.copied {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.rf-protocol-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.3;
  margin-top: 0.5rem;
}

/* Clinical Properties Table */
.rf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

.rf-table th, .rf-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.rf-table th {
  width: 25%;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.rf-table td {
  color: var(--text-main);
}

/* Subcategories Tree Component */
.rf-subcodes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.rf-subcode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.rf-subcode-item:hover {
  border-color: var(--primary-400);
  background: var(--bg-primary-subtle);
  transform: translateX(3px);
}

.rf-subcode-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-right: 0.75rem;
}

[data-theme="dark"] .rf-subcode-code {
  background: rgba(20, 184, 166, 0.2);
  color: var(--primary-300);
}

.rf-subcode-title {
  flex: 1;
  font-weight: 600;
  color: var(--text-main);
}

/* Disclaimer & E-E-A-T Card */
.rf-disclaimer {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 2.5rem 0;
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.55;
}

[data-theme="dark"] .rf-disclaimer {
  background: #1e1b13;
  border-color: #78350f;
  border-left-color: #f59e0b;
  color: #fde68a;
}

.rf-disclaimer-header {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

/* Footer */
.rf-footer {
  background: #021a18;
  color: #99f6e4;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid #115e59;
  margin-top: auto;
}

.rf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.rf-footer-col h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rf-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.rf-footer-links a {
  color: #a7f3d0;
  transition: color var(--transition-fast);
}

.rf-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.rf-footer-bottom {
  border-top: 1px solid rgba(20, 184, 166, 0.2);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #5eead4;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Print Styles */
@media print {
  .rf-header, .rf-top-bar, .rf-footer, .rf-search-box, .rf-matrix-bar, .rf-btn-copy-code, .rf-quick-tags {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .rf-protocol-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .rf-code-pill-main {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }
}

/* Responsive queries */
@media (max-width: 900px) {
  .rf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rf-nav {
    display: none;
  }
  .rf-mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .rf-footer-grid {
    grid-template-columns: 1fr;
  }
  .rf-classes-grid {
    grid-template-columns: 1fr;
  }
  .rf-hero-title {
    font-size: 1.75rem;
  }
  .rf-top-links {
    display: none;
  }
}

/* Search Autocomplete Dropdown */
.rf-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  list-style: none;
  padding: 0.5rem;
}

.rf-search-dropdown.active {
  display: block;
}

.rf-search-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.rf-search-item:hover, .rf-search-item.selected {
  background: var(--bg-primary-subtle);
  color: var(--primary-800);
}

[data-theme="dark"] .rf-search-item:hover, [data-theme="dark"] .rf-search-item.selected {
  background: rgba(20, 184, 166, 0.2);
  color: var(--primary-300);
}

.rf-search-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

[data-theme="dark"] .rf-search-badge {
  background: rgba(20, 184, 166, 0.25);
  color: var(--primary-300);
}

.rf-search-text {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
}

.rf-search-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* High-contrast Search Highlight Mark */
.rf-search-mark {
  background: #fef08a;
  color: #713f12;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .rf-search-mark {
  background: #854d0e;
  color: #fef08a;
}

/* ==========================================================================
   Clinical Information, Notes, Inclusions/Exclusions & Smart Interlinking
   ========================================================================== */
.rf-clinical-accordion-wrapper {
  position: relative;
  margin-top: 0.5rem;
}

.rf-clinical-collapsible {
  max-height: 240px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rf-clinical-collapsible.is-expanded {
  max-height: 6000px;
}

.rf-clinical-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg-surface) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .rf-clinical-fade {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0) 0%, var(--bg-surface) 100%);
}

.rf-clinical-collapsible.is-expanded .rf-clinical-fade {
  opacity: 0;
  visibility: hidden;
}

.rf-btn-expand-clinical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1.25rem;
  margin-top: 0.6rem;
  background: var(--bg-primary-subtle);
  border: 1px solid var(--primary-300);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-800);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rf-btn-expand-clinical:hover {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .rf-btn-expand-clinical {
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.3);
}

[data-theme="dark"] .rf-btn-expand-clinical:hover {
  background: var(--primary-500);
  color: #ffffff;
  border-color: var(--primary-500);
}

.rf-btn-expand-icon {
  transition: transform 0.3s ease;
}

.rf-btn-expand-clinical.is-expanded .rf-btn-expand-icon {
  transform: rotate(180deg);
}

.rf-clinical-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.rf-clinical-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.rf-clinical-card:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.rf-card-inclusion {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.03);
}

.rf-card-exclusion {
  border-left: 4px solid #f43f5e;
  background: rgba(244, 63, 94, 0.03);
}

.rf-card-note {
  border-left: 4px solid #0284c7;
  background: rgba(2, 132, 199, 0.03);
}

.rf-card-synonyms {
  border-left: 4px solid var(--primary-500);
  background: var(--bg-surface);
}

[data-theme="dark"] .rf-card-inclusion {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #34d399;
}

[data-theme="dark"] .rf-card-exclusion {
  background: rgba(244, 63, 94, 0.08);
  border-left-color: #fb7185;
}

[data-theme="dark"] .rf-card-note {
  background: rgba(2, 132, 199, 0.08);
  border-left-color: #38bdf8;
}

.rf-clinical-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rf-clinical-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.rf-badge-success {
  background: #d1fae5;
  color: #065f46;
}

[data-theme="dark"] .rf-badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.rf-badge-danger {
  background: #ffe4e6;
  color: #9f1239;
}

[data-theme="dark"] .rf-badge-danger {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
}

.rf-badge-info {
  background: #e0f2fe;
  color: #075985;
}

[data-theme="dark"] .rf-badge-info {
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
}

.rf-clinical-card-body {
  color: var(--text-main);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.rf-clinical-sublist {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rf-clinical-subitem {
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.rf-clinical-subitem::before {
  display: none !important;
}

.rf-clinical-item-title {
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

[data-theme="dark"] .rf-clinical-item-title {
  color: var(--primary-300);
}

.rf-clinical-text-row {
  padding: 0.65rem 0.9rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 3px solid var(--border-medium);
}

/* Interactive Code Pills (Smart Interlinking) */
.rf-code-pill-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--bg-primary-subtle);
  border: 1px solid var(--primary-200);
  padding: 0.1rem 0.45rem;
  margin: 0 0.15rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  vertical-align: baseline;
}

.rf-code-pill-link:hover {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
  text-decoration: none;
}

[data-theme="dark"] .rf-code-pill-link {
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.3);
}

[data-theme="dark"] .rf-code-pill-link:hover {
  background: var(--primary-500);
  color: #ffffff;
  border-color: var(--primary-500);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

/* ==========================================================================
   Card Actions Toolbar (Copy, Print, Share, Bookmark)
   ========================================================================== */
.rf-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rf-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rf-btn-action:hover {
  color: var(--primary-700);
  background: var(--bg-primary-subtle);
  border-color: var(--primary-300);
}

[data-theme="dark"] .rf-btn-action {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

[data-theme="dark"] .rf-btn-action:hover {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.4);
}

/* ==========================================================================
   Recent Views Block (localStorage)
   ========================================================================== */
.rf-recent-views {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.rf-recent-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.rf-recent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rf-recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8125rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.rf-recent-pill:hover {
  border-color: var(--primary-500);
  background: var(--bg-primary-subtle);
  color: var(--primary-800);
}

.rf-recent-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-700);
}

.rf-recent-name {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Downloads Center Cards
   ========================================================================== */
.rf-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.rf-download-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.rf-download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-400);
}

.rf-download-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.rf-download-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.rf-download-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}

.rf-download-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.rf-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--bg-primary-subtle);
  color: var(--primary-800);
  border: 1px solid var(--primary-300);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.rf-btn-download:hover {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
}

/* ==========================================================================
   Mobile Responsive Styles (Viewport <= 900px & <= 600px)
   ========================================================================== */
@media (max-width: 900px) {
  .rf-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-medium);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

  .rf-nav.active {
    display: flex;
  }

  .rf-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Global Container & Overflow Fixes */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .rf-container {
    padding: 0 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Top Bar */
  .rf-top-bar {
    padding: 0.4rem 0;
  }

  .rf-top-bar-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .rf-top-links {
    display: none;
  }

  .rf-badge-pulse {
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  /* Header */
  .rf-header-inner {
    padding: 0.75rem 0;
  }

  .rf-logo-title {
    font-size: 1.15rem;
  }

  .rf-logo-sub {
    display: none;
  }

  /* Hero Section */
  .rf-hero {
    padding: 2.5rem 0 2rem;
  }

  .rf-hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .rf-hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .rf-search-form {
    flex-direction: column;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
  }

  .rf-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }

  .rf-search-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
  }

  .rf-popular-tags {
    gap: 0.35rem;
  }

  .rf-tag-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }

  .rf-quick-nav-block {
    padding: 1.25rem 1rem;
  }

  .rf-quick-roman-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .rf-roman-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    min-width: 2.25rem;
  }

  /* Classes Grid */
  .rf-classes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Clinical Protocol Page (Cards & Badges) */
  .rf-protocol-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    width: 100%;
  }

  .rf-protocol-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .rf-code-badge-large {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .rf-code-pill-main {
    font-size: 1.5rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-md);
  }

  .rf-protocol-title {
    font-size: 1.35rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .rf-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .rf-card-actions .rf-btn-copy-code {
    grid-column: span 2;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }

  .rf-card-actions .rf-btn-action {
    justify-content: center;
    padding: 0.6rem 0.5rem;
  }

  /* Mobile Table: Transformed into Clean Vertical Stacked Cards */
  .rf-table {
    display: block;
    width: 100% !important;
    margin: 1rem 0;
  }

  .rf-table tbody {
    display: block;
    width: 100%;
  }

  .rf-table tr {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    box-sizing: border-box;
  }

  .rf-table th {
    width: 100% !important;
    background: transparent !important;
    padding: 0 0 0.25rem 0 !important;
    border: none !important;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .rf-table td {
    width: 100% !important;
    padding: 0.15rem 0 0.35rem 0 !important;
    border: none !important;
    font-size: 0.9375rem;
    color: var(--text-main);
    word-break: break-word;
  }

  /* Subcodes List */
  .rf-subcode-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .rf-subcode-item > div {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .rf-subcode-item .rf-btn-copy-code {
    width: 100%;
    justify-content: center;
  }

  /* Disclaimer & Footer */
  .rf-disclaimer {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .rf-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .rf-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rf-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Code Architecture Decoder, Clinical Synonyms & Dynamic Rules
   ========================================================================== */
.rf-decoder-box {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.15rem;
  background: var(--bg-subtle, #f8fafc);
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color, #e2e8f0);
}

.rf-decoder-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.rf-decoder-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  color: var(--text-main, #0f172a);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

.rf-decoder-step:hover {
  border-color: var(--primary-600, #0d9488);
  background: var(--primary-50, #f0fdfa);
}

.rf-decoder-step.active {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #115e59;
  font-weight: 600;
}

[data-theme="dark"] .rf-decoder-box {
  background: #0f172a;
  border-color: #334155;
}

[data-theme="dark"] .rf-decoder-step {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .rf-decoder-step.active {
  background: #134e4a;
  border-color: #14b8a6;
  color: #ccfbf1;
}

.rf-synonym-pill {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.25rem 0.6rem;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-main, #0f172a);
  font-weight: 500;
}

[data-theme="dark"] .rf-synonym-pill {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.rf-copy-group {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.rf-copy-group .rf-btn-copy-code {
  margin: 0;
}

.rf-clinical-rule-block {
  margin-top: 1.25rem;
  padding: 1.15rem;
  background: var(--bg-subtle, #f8fafc);
  border-left: 4px solid var(--primary-600, #0d9488);
  border-radius: var(--radius-md, 8px);
  font-size: 0.875rem;
  line-height: 1.55;
}

[data-theme="dark"] .rf-clinical-rule-block {
  background: #0f172a;
  border-left-color: #14b8a6;
}

.rf-accordion-rules summary {
  cursor: pointer;
  color: var(--primary-700, #0f766e);
  font-weight: 600;
  user-select: none;
}

[data-theme="dark"] .rf-accordion-rules summary {
  color: #2dd4bf;
}

/* ==========================================================================
   Print Media Styles (Clean Printing of Medical Card)
   ========================================================================== */
@media print {
  .rf-top-bar,
  .rf-header,
  .rf-footer,
  .rf-search-section,
  .rf-btn-theme,
  .rf-mobile-toggle,
  .rf-btn-copy-code,
  .rf-card-actions,
  .rf-btn-expand-clinical,
  .rf-disclaimer,
  .rf-recent-views,
  iframe,
  script,
  #yandex_rtb {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .rf-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .rf-protocol-card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 1rem !important;
  }

  .rf-table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  .rf-table th, .rf-table td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 10px !important;
    color: #000000 !important;
  }

  .rf-clinical-collapsible {
    max-height: none !important;
    overflow: visible !important;
  }

  .rf-clinical-fade {
    display: none !important;
  }

  .rf-protocol-card::before {
    content: "МКБ-10.РФ — Официальный онлайн-справочник Международной классификации болезней";
    display: block;
    font-size: 9pt;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
    margin-bottom: 12px;
  }
}

