/* ==========================================================================
   EXTF-700 Buchungsstapel-Konverter — Deutsches B2B-Kanzlei-Designsystem
   Farbwelt: Tiefes Schiefer/Anthrazit + Seriöses Stahlblau (0 Fremdmarken-Grün!)
   100 % Self-Hosted · 0 externe Requests · Tabular-Nums · 0 px Overflow
   ========================================================================== */

:root {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-slate-dark: #0F172A;
  --bg-slate-mid: #1E293B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;

  /* Primär-Akzent: Seriöses Stahlblau (WCAG AA >= 6.7:1 mit Weiß) */
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --accent-soft: #EFF6FF;
  --accent-border: #BFDBFE;

  /* Gedecktes Kanzlei-Smaragd/Teal ausschließlich für Prüf-/Schutzstatus (KEIN Hell-/Markengrün!) */
  --status-ok-bg: #F0FDFA;
  --status-ok-border: #99F6E4;
  --status-ok-text: #0F766E;

  --status-warn-bg: #FFFBEB;
  --status-warn-border: #FDE68A;
  --status-warn-text: #92400E;

  --status-err-bg: #FEF2F2;
  --status-err-border: #FECACA;
  --status-err-text: #991B1B;

  --radius-card: 12px;
  --radius-input: 8px;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.num, .price, code, pre, input[inputmode="numeric"], input[type="number"], td[data-num] {
  font-variant-numeric: tabular-nums;
}

code, pre, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
p code, li code, td code, th code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Schmale B2B-Kopfzeile (§ 14 BGB) */
.b2b-topbar {
  background: var(--bg-slate-dark);
  color: #E2E8F0;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid #1E293B;
}
.b2b-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Header & Mobile-First crawlbare Navigation (<details>) */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-main);
  text-decoration: none;
}
.brand-link:hover {
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--bg-slate-dark);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.nav-details {
  position: relative;
}
.nav-summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  user-select: none;
}
.nav-summary::-webkit-details-marker {
  display: none;
}
.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 10px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 50;
}
.nav-menu a {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-menu a:hover {
  background: var(--bg-subtle);
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 860px) {
  .nav-summary {
    display: none;
  }
  .nav-details .nav-menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    background: transparent;
    gap: 4px;
  }
}

/* Hero / Above-the-Fold (kompakt, < 600 px Tool-Start) */
.hero-section {
  padding: 20px 0 12px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--status-ok-bg);
  color: var(--status-ok-text);
  border: 1px solid var(--status-ok-border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-ok-text);
  flex-shrink: 0;
}
.hero-section h1 {
  margin: 0 0 6px;
  font-size: clamp(1.38rem, 2.5vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 780px;
}

/* App Workspace Layout */
.workspace-section {
  padding: 8px 0 32px;
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.left-column, .right-column {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .app-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .sticky-panel {
    position: sticky;
    top: 76px;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
  min-width: 0;
}
.card + .card {
  margin-top: 16px;
}
.card-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

/* Dropzone & 1-Klick-Demos */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  padding: 22px 16px;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
}
.dropzone-hint {
  margin: 0 0 12px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.demo-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.demo-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--radius-input);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-slate {
  background: var(--bg-slate-dark);
  color: #FFFFFF;
}
.btn-slate:hover {
  background: var(--bg-slate-mid);
}
.btn-outline {
  background: #FFFFFF;
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-sm {
  min-height: 36px;
  padding: 6px 11px;
  font-size: 0.81rem;
}
.btn-full {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Badges */
.badge-lock-zero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--status-ok-bg);
  color: var(--status-ok-text);
  border: 1px solid var(--status-ok-border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.77rem;
  font-weight: 700;
}
.badge-neutral {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Forms & Collapsible Details */
.config-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.field input, .field select {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  font-size: 0.88rem;
  font-family: inherit;
  background: #FFFFFF;
  color: var(--text-main);
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.micro-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Switch / Checkbox Leiste */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.toggle-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.stberg-banner {
  margin-top: 12px;
  padding: 8px 11px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--bg-slate-mid);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/*Mandanten-Profile Box*/
.profile-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Diagnose-Dashboard */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.kpi-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}
.kpi-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}
.kpi-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.balance-banner {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.balance-banner.ok {
  background: var(--status-ok-bg);
  border: 1px solid var(--status-ok-border);
  color: var(--status-ok-text);
}
.balance-banner.warn {
  background: var(--status-err-bg);
  border: 1px solid var(--status-err-border);
  color: var(--status-err-text);
}

.hash-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}

.repair-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.chip {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.chip.active-fix {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-hover);
  font-weight: 600;
}
.chip.active-warn {
  background: var(--status-warn-bg);
  border-color: var(--status-warn-border);
  color: var(--status-warn-text);
  font-weight: 600;
}

.warning-list {
  margin: 0 0 12px;
  padding: 10px 12px 10px 26px;
  background: var(--status-warn-bg);
  border: 1px solid var(--status-warn-border);
  color: var(--status-warn-text);
  border-radius: 8px;
  font-size: 0.8rem;
}
.warning-list li + li {
  margin-top: 4px;
}

/* EXTF 5-Zeilen-Code-Vorschau */
.extf-preview-wrapper {
  background: var(--bg-slate-dark);
  color: #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 14px;
}
.extf-preview-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.74rem;
  color: #94A3B8;
  margin-bottom: 8px;
}
.extf-code-lines {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre;
}
.extf-trunc-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #334155;
  font-size: 0.75rem;
  color: #CBD5E1;
}

/* Export-Gate-Box */
.export-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.gate-hint {
  font-size: 0.79rem;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.gate-hint.unlocked {
  background: var(--status-ok-bg);
  border-color: var(--status-ok-border);
  color: var(--status-ok-text);
  font-weight: 600;
}

/* Preissektion (High-to-Low) */
.pricing-section {
  padding: 36px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.42rem;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 820px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card.featured {
  border: 2px solid var(--accent);
}
.plan-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.price-amount {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}
.price-tax-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.license-redeem-box {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}
.redeem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.redeem-row input {
  flex: 1 1 240px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
}

/* Fach-Kompendium & Tabellen */
.knowledge-section {
  padding: 34px 0;
}
.methodology-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.tables-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 900px) {
  .tables-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.81rem;
}
table.spec-table th, table.spec-table td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.spec-table th {
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-subtle);
}

.faq-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 11px 14px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.91rem;
}
.faq-item p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Cross-Sell Banner */
.cross-sell-card {
  margin-top: 24px;
  background: var(--bg-slate-dark);
  color: #F8FAFC;
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cross-sell-card p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #CBD5E1;
}
.cross-sell-btn {
  background: #FFFFFF;
  color: var(--bg-slate-dark);
  font-weight: 700;
}
.cross-sell-btn:hover {
  background: #E2E8F0;
}

/* Interne SEO-Silo-Karten & Fach-Unterseiten */
.silo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
}
@media (min-width: 720px) {
  .silo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .silo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.silo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}
.silo-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.silo-card h3 {
  margin: 6px 0 6px;
  font-size: 0.98rem;
  color: var(--text-main);
}
.silo-card p {
  margin: 0 0 12px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.silo-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.breadcrumb-nav {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.mode-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.silo-cta-hero {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin: 16px 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.silo-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 36px;
}
.silo-article h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
}
.silo-article h3 {
  margin: 16px 0 6px;
  font-size: 1.02rem;
}
.silo-article p, .silo-article li {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.62;
}
.silo-article ul, .silo-article ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}
.code-snippet {
  background: var(--bg-slate-dark);
  color: #E2E8F0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  max-width: 100%;
  margin: 10px 0;
}

/* Footer */
.site-footer {
  background: var(--bg-slate-dark);
  color: #CBD5E1;
  padding: 28px 0 34px;
  font-size: 0.81rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.footer-links a, .footer-link-btn {
  color: #F8FAFC;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.trademark-disclaimer {
  padding-top: 12px;
  border-top: 1px solid #1E293B;
  color: #94A3B8;
  line-height: 1.55;
}

/* Barrierefreie Modals (Impressum / Datenschutz) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.modal-backdrop.open {
  display: flex;
}
.modal-dialog {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: var(--radius-card);
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[hidden] {
  display: none !important;
}
