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

.site-menu-toggle,
.site-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(212, 201, 184, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #1a1610;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(47, 32, 13, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.topbar-nav .site-menu-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-left: 1px solid rgba(212, 201, 184, 0.72);
  border-radius: 0 999px 999px 0;
  background: transparent;
  box-shadow: none;
}

.topbar-nav .site-menu-toggle:hover,
.topbar-nav .site-menu-toggle:focus-visible {
  background: rgba(200, 169, 110, 0.14);
  transform: none;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus-visible,
.site-drawer-close:hover,
.site-drawer-close:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(139, 94, 42, 0.8);
  background: rgba(255, 255, 255, 0.96);
}

.site-menu-toggle svg,
.site-drawer-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(18, 16, 13, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 860;
  width: min(360px, calc(100vw - 28px));
  padding: 24px 22px 28px;
  background:
    radial-gradient(circle at top left, rgba(200, 169, 110, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,239,0.98));
  border-right: 1px solid rgba(226, 221, 214, 0.92);
  box-shadow: 0 22px 58px rgba(24, 20, 15, 0.18);
  transform: translateX(-104%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.site-drawer-open {
  overflow: hidden;
}

body.site-drawer-open .site-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.site-drawer-open .site-drawer {
  transform: translateX(0);
}

.site-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.site-drawer-brand {
  display: grid;
  gap: 6px;
}

.site-drawer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.site-drawer-brand strong {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: #1a1610;
}

.site-drawer-brand span {
  color: #7a6a52;
  font-size: 13px;
  line-height: 1.6;
}

.site-drawer-api-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
}

.site-api-status-mark {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #d4c9b8;
  box-shadow: 0 0 0 4px rgba(212, 201, 184, 0.22);
}

.site-drawer-api-status.ok .site-api-status-mark {
  background: #2e7d32;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.13);
}

.site-drawer-api-status.err .site-api-status-mark {
  background: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

@media (max-width: 480px) {
  .topbar-nav .site-menu-toggle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .topbar-nav .site-menu-toggle svg {
    width: 16px;
    height: 16px;
  }
}

.site-drawer-nav {
  display: grid;
  gap: 8px;
}

.site-drawer-mobile-primary {
  display: none;
}

.site-drawer-tools {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(226, 221, 214, 0.92);
}

.site-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 14px;
  text-decoration: none;
  color: #1a1610;
  font-size: 13px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(226, 221, 214, 0.92);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-drawer-button {
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.site-drawer-link:hover,
.site-drawer-link:focus-visible {
  outline: none;
  transform: translateX(2px);
  border-color: rgba(139, 94, 42, 0.72);
  background: rgba(255,255,255,0.98);
}

.site-drawer-link.is-disabled {
  color: #9a8a72;
  cursor: default;
  background: rgba(245, 242, 237, 0.9);
}

.site-drawer-link.is-disabled:hover,
.site-drawer-link.is-disabled:focus-visible {
  transform: none;
  border-color: rgba(226, 221, 214, 0.92);
  background: rgba(245, 242, 237, 0.9);
}

.site-drawer-primary.is-active {
  border-color: rgba(139, 94, 42, 0.72);
  background: #1a1610;
  color: #f7f4ef;
}

.site-drawer-divider {
  height: 1px;
  margin: 4px 2px;
  background: rgba(226, 221, 214, 0.92);
}

.site-drawer-link small {
  color: #9a8a72;
  font-size: 11px;
}

body.toc-fix-modal-open {
  overflow: hidden;
}

.toc-fix-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 920;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 16, 13, 0.45);
}

.toc-fix-modal-overlay[hidden] {
  display: none;
}

.toc-fix-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(226, 221, 214, 0.92);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(20, 16, 10, 0.28);
}

.toc-fix-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.toc-fix-kicker {
  display: block;
  color: #8b5e2a;
  font: 800 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-fix-modal h2 {
  margin: 4px 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #1a1610;
}

.toc-fix-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(212, 201, 184, 0.92);
  border-radius: 12px;
  background: #fff;
  color: #1a1610;
  cursor: pointer;
}

.toc-fix-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.toc-fix-copy,
.toc-fix-status {
  color: #61594f;
  font-size: 13px;
  line-height: 1.55;
}

.toc-fix-status[data-mode="error"] {
  color: #a33a2d;
}

.toc-fix-upload {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 20px;
  border: 1px dashed rgba(139, 94, 42, 0.55);
  border-radius: 12px;
  background: #faf8f4;
  text-align: center;
  cursor: pointer;
}

.toc-fix-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toc-fix-upload strong {
  color: #1a1610;
}

.toc-fix-upload span {
  color: #61594f;
  font-size: 12px;
}

.toc-fix-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.toc-fix-primary {
  padding: 11px 16px;
  border: 1px solid #1f1a14;
  border-radius: 12px;
  background: #1f1a14;
  color: #f5f2ed;
  cursor: pointer;
  font-weight: 800;
}

.toc-fix-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.toc-fix-result {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.toc-fix-result-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(226, 221, 214, 0.92);
  border-radius: 12px;
  background: rgba(250, 248, 244, 0.64);
}

.toc-fix-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.toc-fix-result-head small {
  color: #8b5e2a;
  font: 800 11px "DM Mono", monospace;
}

.toc-fix-issue,
.toc-fix-ok {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(226, 221, 214, 0.74);
}

.toc-fix-issue:first-child,
.toc-fix-ok:first-child {
  border-top: none;
  padding-top: 0;
}

.toc-fix-issue > span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.toc-fix-issue.warning > span {
  background: #a66a12;
}

.toc-fix-issue strong,
.toc-fix-ok strong,
.toc-fix-note strong {
  color: #1a1610;
}

.toc-fix-issue p,
.toc-fix-ok p,
.toc-fix-note p {
  margin: 3px 0 0;
  color: #61594f;
  font-size: 12px;
  line-height: 1.45;
}

.toc-fix-ok strong {
  color: #2e7d32;
}

.toc-fix-note {
  padding: 12px;
  border: 1px solid rgba(200, 169, 110, 0.45);
  border-radius: 12px;
  background: #f7f2e8;
  font-size: 12px;
}

.toc-fix-note a {
  color: #1a1610;
  font-weight: 800;
}

.toc-fix-text-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1610;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.site-drawer-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #1f1a14;
  background: #1f1a14;
  color: #f5f2ed;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.site-drawer-buy:hover,
.site-drawer-buy:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: #8b5e2a;
  border-color: #8b5e2a;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(226, 221, 214, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.pricing-card.featured {
  border-color: rgba(139, 94, 42, 0.5);
  box-shadow: 0 18px 42px rgba(47, 32, 13, 0.1);
}

.pricing-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: var(--fs-h2);
  color: #1a1610;
}

.pricing-price {
  color: #1a1610;
  font-size: 2.2rem;
  font-weight: 800;
}

.pricing-price span {
  color: #7a6a52;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.pricing-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  color: #5f564b;
  font-size: var(--fs-base);
  line-height: 1.6;
}

.pricing-features li.is-muted {
  color: #a09484;
}

.pricing-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #1f1a14;
  background: #1f1a14;
  color: #f5f2ed;
  text-decoration: none;
  font-size: var(--fs-base);
  font-weight: 700;
}

.pricing-action.secondary {
  background: #fff;
  color: #1f1a14;
}

.pricing-note {
  margin: 0;
  color: #7a6a52;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(226, 221, 214, 0.92);
  background:
    linear-gradient(180deg, rgba(252,250,246,0.92), rgba(244,239,232,0.96));
}

.site-footer-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.site-footer-brand {
  display: grid;
  gap: 8px;
}

.site-footer-brand strong {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #1a1610;
}

.site-footer-brand p,
.site-footer-footnote {
  margin: 0;
  color: #7a6a52;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 201, 184, 0.92);
  background: rgba(255,255,255,0.82);
  color: #5a4a32;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  outline: none;
  border-color: rgba(139, 94, 42, 0.8);
  background: rgba(255,255,255,0.98);
  color: #1a1610;
}

.site-footer-link.is-disabled {
  color: #9a8a72;
}

.info-main {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 54px;
}

.info-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(226, 221, 214, 0.92);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 48px rgba(47, 32, 13, 0.08);
}

.info-stack {
  display: grid;
  gap: 24px;
}

.info-section {
  display: grid;
  gap: 10px;
}

.info-section h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  color: #1a1610;
}

.info-section p,
.info-section li {
  color: #5f564b;
  font-size: 15px;
  line-height: 1.8;
}

.info-section ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 860px) {
  .site-footer-shell {
    grid-template-columns: 1fr;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-drawer-mobile-primary {
    display: grid;
    gap: 8px;
  }

  header.app-header {
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .app-header .brand-link {
    flex: 1 1 auto;
    max-width: none;
  }

  .app-header .logo {
    font-size: 19px;
    white-space: nowrap;
  }

  .app-header .topbar-tools {
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
  }

  .app-header .topbar-nav {
    width: auto;
    padding: 3px;
    justify-content: flex-end;
  }

  .app-header .topbar-link {
    display: none;
  }

  .app-header .topbar-nav .site-menu-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border: 0;
    border-radius: 999px;
  }

  .site-drawer {
    width: min(320px, calc(100vw - 18px));
  }

  .site-footer-shell,
  .info-main {
    width: min(100%, calc(100% - 24px));
  }

  .info-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
}
