  :root {
    --bg: #f4f7fb;
    --bg-alt: #ffffff;
    --primary: #4f46e5;
    --primary-soft: #eef2ff;
    --accent: #22c55e;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 35px rgba(15,23,42,0.09);
    --shadow-card: 0 14px 30px rgba(15,23,42,0.06);
  }

  html[data-theme="dark"] {
    --bg: #020617;
    --bg-alt: #020617;
    --primary: #6366f1;
    --primary-soft: rgba(79,70,229,0.16);
    --accent: #22c55e;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #1f2933;
    --shadow-soft: 0 18px 35px rgba(0,0,0,0.7);
    --shadow-card: 0 14px 30px rgba(0,0,0,0.7);
  }

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

  body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text);
    background:
      radial-gradient(circle at top left, #e0f2fe 0, transparent 40%),
      radial-gradient(circle at bottom right, #e0f2fe 0, transparent 45%),
      var(--bg);
  }

  html[data-theme="dark"] body {
    background:
      radial-gradient(circle at top left, rgba(56,189,248,0.16) 0, transparent 40%),
      radial-gradient(circle at bottom right, rgba(129,140,248,0.16) 0, transparent 45%),
      var(--bg);
  }

  a {
    color: inherit;
    text-decoration: none;
  }

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

  .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(244,247,251,0.9);
    border-bottom: 1px solid rgba(209,213,219,0.6);
  }

  html[data-theme="dark"] .site-header {
    background: rgba(15,23,42,0.92);
    border-bottom: 1px solid rgba(30,64,175,0.8);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
    position: relative;
  }

  .logo {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
  }

  .logo-img {
    height: 52px;
    width: auto;
    display: block;
    user-select: none;
  }

  .main-nav {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
    color: var(--text-muted);
    align-items: center;
  }

  .main-nav a {
    position: relative;
    padding: 4px 0;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.18s ease-out;
  }

  .main-nav a:hover::after,
  .main-nav a.is-current::after {
    width: 100%;
  }

  .theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
  }

  .theme-switch:hover .theme-switch-track {
    box-shadow: 0 6px 14px rgba(148,163,184,0.55), 0 0 0 1px rgba(148,163,184,0.3);
  }

  .theme-switch:active .theme-switch-track {
    transform: scale(0.97);
  }

  .theme-switch:focus-visible .theme-switch-track {
    outline: 2px solid rgba(79,70,229,0.7);
    outline-offset: 3px;
  }

  .theme-switch-track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(148,163,184,0.3));
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    box-shadow: 0 4px 10px rgba(148,163,184,0.5), inset 0 0 0 1px rgba(148,163,184,0.45);
    transition: background-color 0.22s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.22s, transform 0.12s;
  }

  .theme-switch-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #4b5563;
    transform: translateX(0);
    box-shadow: 0 3px 6px rgba(15,23,42,0.35), 0 0 0 1px rgba(148,163,184,0.6);
    transition: transform 0.22s cubic-bezier(0.22,0.61,0.36,1), background-color 0.22s, color 0.22s, box-shadow 0.22s;
  }

  .theme-switch.is-dark .theme-switch-track {
    background: radial-gradient(circle at 30% 30%, rgba(248,250,252,0.25), #4f46e5);
    box-shadow: 0 8px 18px rgba(79,70,229,0.7), inset 0 0 0 1px rgba(191,219,254,0.5);
  }

  .theme-switch.is-dark .theme-switch-thumb {
    transform: translateX(20px);
    background: #020617;
    color: #e5e7eb;
    box-shadow: 0 4px 10px rgba(15,23,42,0.85), 0 0 0 1px rgba(55,65,81,0.9);
  }

  html[data-theme="dark"] .theme-switch-track {
    background: radial-gradient(circle at 30% 30%, rgba(248,250,252,0.12), rgba(15,23,42,0.9));
    box-shadow: 0 4px 10px rgba(15,23,42,0.7), inset 0 0 0 1px rgba(30,64,175,0.6);
  }

  main {
    padding: 28px 0 52px;
  }

  .breadcrumbs {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 14px;
  }

  .breadcrumbs a {
    color: var(--text-muted);
  }

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

  .breadcrumbs-separator {
    margin: 0 4px;
    opacity: 0.7;
  }

  .article-hero {
    padding-bottom: 20px;
  }

  .article-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
  }

  .article-hero-title {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .article-hero-deck {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 560px;
    font-size: 1.02rem;
  }

  .article-hero-deck strong {
    color: var(--text);
    font-weight: 600;
  }

  .article-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
  }

  .article-hero-side {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, #eef2ff, #ffffff);
    border: 1px solid rgba(199,210,254,0.9);
    box-shadow: var(--shadow-soft);
    padding: 16px 16px 14px;
  }

  html[data-theme="dark"] .article-hero-side {
    background: radial-gradient(circle at top left, rgba(15,23,42,0.9), #020617);
    border-color: rgba(37,99,235,0.8);
    box-shadow: 0 18px 40px rgba(0,0,0,0.9);
  }

  .article-hero-side h2 {
    margin: 0 0 10px;
    font-size: 1rem;
  }

  .article-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .article-hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
  }

  .article-hero-list li:last-child {
    margin-bottom: 0;
  }

  .article-hero-list i {
    margin-top: 3px;
    font-size: 0.85rem;
    color: var(--primary);
    flex-shrink: 0;
  }

  .article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }

  html[data-theme="dark"] .article-byline {
    background: rgba(15,23,42,0.7);
    border-color: #1f2937;
  }

  .byline-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .byline-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .byline-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(79,70,229,0.15);
  }

  html[data-theme="dark"] .byline-avatar {
    background: rgba(79,70,229,0.2);
    color: #c7d2fe;
  }

  .byline-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
  }

  .byline-role {
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  .byline-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(148,163,184,0.5);
  }

  html[data-theme="dark"] .tool-pill {
    background: rgba(15,23,42,0.96);
    border-color: #1f2937;
  }

  .tool-pill i {
    font-size: 0.8rem;
  }

  .byline-meta .tool-pill {
    font-size: 0.8rem;
  }

  .badge-signal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    background: #f9fafb;
    white-space: nowrap;
  }

  html[data-theme="dark"] .badge-signal {
    background: rgba(15,23,42,0.7);
  }

  .badge-signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
  }

  .badge-signal-bars span {
    display: block;
    width: 3px;
    border-radius: 1px;
    background: var(--border);
  }

  .badge-signal-bars span:nth-child(1) { height: 4px; }
  .badge-signal-bars span:nth-child(2) { height: 7px; }
  .badge-signal-bars span:nth-child(3) { height: 10px; }
  .badge-signal-bars span:nth-child(4) { height: 12px; }

  .badge-signal.medium .badge-signal-bars span:nth-child(-n+3) {
    background: #f59e0b;
  }

  .badge-signal-label {
    color: var(--text-muted);
    font-size: 0.78rem;
  }

  .article-share {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .share-label {
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.14s, color 0.14s, background 0.14s;
  }

  .share-btn:hover {
    border-color: rgba(79,70,229,0.8);
    color: var(--primary);
    background: var(--primary-soft);
  }

  .share-bar-copy-feedback {
    font-size: 0.78rem;
    color: var(--accent);
    display: none;
    margin-left: 4px;
  }

  .share-bar-copy-feedback.show {
    display: inline;
  }

  .page-main-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: flex-start;
  }

  .page-main-grid > aside {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    height: calc(100vh - 120px);
  }

  .sticky-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 4px;
  }

  .sticky-rail::-webkit-scrollbar {
    width: 3px;
  }

  .sticky-rail::-webkit-scrollbar-track {
    background: transparent;
  }

  .sticky-rail::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
  }

  .article-toc-card,
  .related-tools-card,
  .related-tools-mobile {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: none;
    padding: 16px 16px 14px;
  }

  html[data-theme="dark"] .article-toc-card,
  html[data-theme="dark"] .related-tools-card,
  html[data-theme="dark"] .related-tools-mobile {
    background: rgba(15,23,42,0.96);
    border-color: #1f2937;
    box-shadow:
      0 0 40px 8px rgba(0,0,0,0.35),
      0 0 80px 16px rgba(37,99,235,0.12),
      0 0 140px 30px rgba(0,0,0,0.2);
  }

  .article-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }

  .article-toc-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .article-toc-title-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.9rem;
  }

  .article-toc {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
  }

  .article-toc li + li {
    margin-top: 4px;
  }

  .article-toc a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background 0.12s ease-out, color 0.12s ease-out;
  }

  .article-toc a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #c7d2fe;
    flex-shrink: 0;
    transition: background 0.12s ease-out, transform 0.12s ease-out;
  }

  .article-toc a:hover {
    color: var(--primary);
    background: rgba(239,246,255,0.8);
  }

  html[data-theme="dark"] .article-toc a:hover {
    background: rgba(30,64,175,0.3);
  }

  .article-toc a.is-active {
    color: var(--primary);
    background: rgba(224,231,255,0.9);
    font-weight: 500;
  }

  .article-toc a.is-active::before {
    background: var(--primary);
    transform: scale(1.1);
  }

  html[data-theme="dark"] .article-toc a.is-active {
    background: rgba(37,99,235,0.4);
    color: #e5e7eb;
  }

  .related-tools-card h2,
  .related-tools-mobile h2 {
    margin: 0 0 8px;
    font-size: 0.96rem;
  }

  .related-tools-card p,
  .related-tools-mobile p {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
  }

  .related-list li + li {
    margin-top: 4px;
  }

  .related-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background 0.12s ease-out, color 0.12s ease-out;
  }

  .related-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .related-list a:hover {
    color: var(--primary);
    background: rgba(239,246,255,0.8);
  }

  html[data-theme="dark"] .related-list a:hover {
    background: rgba(30,64,175,0.3);
  }

  .related-tools-mobile {
    display: none;
  }

  .article-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .article-cover {
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16/9;
    margin-bottom: 20px;
  }

  .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .tool-article {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 0;
    box-shadow: 0 16px 30px rgba(15,23,42,0.055);
    padding: 22px 20px 20px;
    overflow: hidden;
  }

  @media (min-width: 720px) {
    .tool-article {
      padding: 26px 26px 22px;
    }
  }

  html[data-theme="dark"] .tool-article {
    background: rgba(15,23,42,0.98);
    border-color: var(--border);
  }

  .tool-article h2 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 6px;
  }

  .tool-article h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), rgba(79,70,229,0));
  }

  .tool-article h3 {
    font-size: 1.05rem;
    margin: 18px 0 6px;
    letter-spacing: -0.01em;
    position: relative;
    padding-top: 2px;
  }

  .tool-article h3::after {
    content: "";
    display: block;
    margin-top: 5px;
    width: 40px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, rgba(99,102,241,0));
  }

  .tool-article p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
  }

  .tool-article p:last-child {
    margin-bottom: 0;
  }

  .tool-article strong {
    color: var(--text);
  }

  .article-lead {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 14px;
  }

  .tool-article-divider {
    height: 1px;
    border: 0;
    background: linear-gradient(to right, rgba(209,213,219,0.9), transparent);
    margin: 8px 0 16px;
  }

  .tool-article ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .tool-article li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
    line-height: 1.65;
  }

  .tool-article li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(129,140,248,0.18);
  }

  .tool-article ol {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    counter-reset: ol-counter;
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .tool-article ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 7px;
    counter-increment: ol-counter;
    line-height: 1.65;
  }

  .tool-article ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }

  html[data-theme="dark"] .tool-article ol li::before {
    background: rgba(79,70,229,0.2);
    color: #c7d2fe;
  }

  .tool-article code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
  }

  html[data-theme="dark"] .tool-article code {
    background: rgba(79,70,229,0.18);
    color: #c7d2fe;
  }

  .tool-article blockquote {
    margin: 14px 0;
    padding: 14px 18px 14px 20px;
    border-left: 3px solid var(--primary);
    background: var(--primary-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
  }

  html[data-theme="dark"] .tool-article blockquote {
    background: rgba(79,70,229,0.12);
  }

  .tool-article .pullquote {
    margin: 16px 0;
    padding: 16px 20px;
    text-align: center;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    font-size: 1.08rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
  }

  .key-takeaways {
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    padding: 16px 18px;
    margin: 0 0 20px;
  }

  html[data-theme="dark"] .key-takeaways {
    background: rgba(79,70,229,0.1);
  }

  .key-takeaways-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .key-takeaways ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: kt;
  }

  .key-takeaways ol li {
    counter-increment: kt;
    padding-left: 28px;
    position: relative;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 7px;
  }

  .key-takeaways ol li:last-child {
    margin-bottom: 0;
  }

  .key-takeaways ol li::before {
    content: counter(kt);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .detail-rows {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .detail-row {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .detail-row-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    transition: background 0.14s;
  }

  .detail-row-toggle:hover {
    background: var(--primary-soft);
  }

  html[data-theme="dark"] .detail-row-toggle:hover {
    background: rgba(79,70,229,0.1);
  }

  .detail-row-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
  }

  .detail-row-label {
    flex: 1;
  }

  .detail-row-chevron {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: transform 0.18s;
  }

  .detail-row.open .detail-row-chevron {
    transform: rotate(180deg);
  }

  .detail-row-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
  }

  .detail-row.open .detail-row-content {
    max-height: 400px;
  }

  .detail-row-inner {
    padding: 0 14px 14px 52px;
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.65;
  }

  .privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
  }

  .privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f9fafb;
  }

  html[data-theme="dark"] .privacy-item {
    background: rgba(15,23,42,0.98);
  }

  .privacy-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .privacy-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
  }

  .privacy-text h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
  }

  .privacy-text p {
    margin: 0;
  }

  .flow-diagram {
    margin: 18px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 20px rgba(15,23,42,0.035);
  }

  html[data-theme="dark"] .flow-step {
    background: rgba(15,23,42,0.7);
  }

  .flow-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 10px rgba(79,70,229,0.3);
  }

  .flow-step-body {
    flex: 1;
  }

  .flow-step-body strong {
    display: block;
    font-size: 0.96rem;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.35;
  }

  .flow-step-body span {
    display: block;
    margin-top: 3px;
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.55;
  }

  .flow-step-arrow {
    display: none;
  }

  .direction-diagram {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr) minmax(0, 1fr);
    align-items: center;
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15,23,42,0.045);
  }

  html[data-theme="dark"] .direction-diagram {
    background: rgba(15,23,42,0.96);
  }

  .dir-side {
    min-height: 160px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .dir-side.your-browser {
    background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  }

  .dir-side.server {
    background: #f8fafc;
  }

  html[data-theme="dark"] .dir-side.your-browser {
    background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(15,23,42,0.96));
  }

  html[data-theme="dark"] .dir-side.server {
    background: rgba(15,23,42,0.75);
  }

  .dir-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: var(--primary);
  }

  .dir-side.server .dir-icon {
    color: var(--text-muted);
  }

  .dir-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
  }

  .dir-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .dir-arrows {
    min-height: 160px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: #f8fafc;
  }

  html[data-theme="dark"] .dir-arrows {
    background: rgba(2,6,23,0.35);
  }

  .dir-arrow-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .dir-arrow-row.upload {
    color: #ef4444;
  }

  .dir-arrow-row.download {
    color: #22c55e;
  }

  .dir-arrow {
    font-size: 0.85rem;
  }

  .network-anatomy {
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .network-anatomy-header {
    padding: 10px 14px;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.78rem;
    font-family: ui-monospace, monospace;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .na-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .na-dot.red { background: #ef4444; }
  .na-dot.yellow { background: #f59e0b; }
  .na-dot.green { background: #22c55e; }

  .network-anatomy-rows {
    display: flex;
    flex-direction: column;
  }

  .na-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 80px 80px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    font-family: ui-monospace, monospace;
  }

  .na-row.na-head {
    background: #f8fafc;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  html[data-theme="dark"] .na-row.na-head {
    background: rgba(15,23,42,0.6);
  }

  .na-row.na-upload {
    background: #fff1f2;
  }

  html[data-theme="dark"] .na-row.na-upload {
    background: rgba(244,63,94,0.08);
  }

  .na-row.na-ok {
    background: #f0fdf4;
  }

  html[data-theme="dark"] .na-row.na-ok {
    background: rgba(34,197,94,0.05);
  }

  .na-cell {
    padding: 8px 10px;
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    line-height: 1.3;
    word-break: break-word;
  }

  .na-cell:last-child {
    border-right: none;
  }

  .na-cell.method-post {
    color: #ef4444;
    font-weight: 700;
  }

  .na-cell.method-get {
    color: #22c55e;
    font-weight: 600;
  }

  .na-cell.method-put {
    color: #f59e0b;
    font-weight: 700;
  }

  .na-cell.size-big {
    color: #ef4444;
    font-weight: 600;
  }

  .na-cell.size-ok {
    color: var(--text-muted);
  }

  .na-caption {
    padding: 8px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-style: italic;
  }

  .comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 16px 0;
    align-items: stretch;
  }

  .comparison-card {
    border-radius: var(--radius-md);
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    min-width: 0;
    height: 100%;
  }

  .comparison-card.pro {
    background: #f0fdf4;
    border-color: #bbf7d0;
  }

  .comparison-card.con {
    background: #fff1f2;
    border-color: #fecdd3;
  }

  html[data-theme="dark"] .comparison-card.pro {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.25);
  }

  html[data-theme="dark"] .comparison-card.con {
    background: rgba(244,63,94,0.08);
    border-color: rgba(244,63,94,0.25);
  }

  .comparison-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 9px;
    line-height: 1.25;
    white-space: normal;
  }

  .comparison-card.pro h4 {
    color: #166534;
  }

  .comparison-card.con h4 {
    color: #9f1239;
  }

  html[data-theme="dark"] .comparison-card.pro h4 {
    color: #86efac;
  }

  html[data-theme="dark"] .comparison-card.con h4 {
    color: #fda4af;
  }

  .comparison-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .comparison-card ul li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 5px;
    padding-left: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .comparison-card ul li::before {
    display: none;
  }

  .comparison-card ul li i {
    flex-shrink: 0;
    margin-top: 0.25em;
    font-size: 0.78rem;
  }

  .comparison-card.pro ul li i {
    color: var(--accent);
  }

  .comparison-card.con ul li i {
    color: #f43f5e;
  }

  .comparison-card code {
    display: inline;
    padding: 0;
    background: transparent;
    border-radius: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
  }

  .do-dont {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 16px 0;
    align-items: stretch;
  }

  .do-block,
  .dont-block {
    border-radius: var(--radius-md);
    padding: 14px 16px;
  }

  .do-block {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
  }

  .dont-block {
    background: #fff1f2;
    border: 1px solid #fecdd3;
  }

  html[data-theme="dark"] .do-block {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.25);
  }

  html[data-theme="dark"] .dont-block {
    background: rgba(244,63,94,0.08);
    border-color: rgba(244,63,94,0.25);
  }

  .do-dont-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .do-block .do-dont-label {
    color: #166534;
  }

  .dont-block .do-dont-label {
    color: #9f1239;
  }

  html[data-theme="dark"] .do-block .do-dont-label {
    color: #86efac;
  }

  html[data-theme="dark"] .dont-block .do-dont-label {
    color: #fda4af;
  }

  .do-dont-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .do-dont-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding-left: 0;
  }

  .do-dont-list li::before {
    display: none;
  }

  .do-dont-list li:last-child {
    margin-bottom: 0;
  }

  .do-dont-list li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.8rem;
  }

  .do-block .do-dont-list li i {
    color: #22c55e;
  }

  .dont-block .do-dont-list li i {
    color: #f43f5e;
  }

  .callout {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin: 12px 0;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .callout-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .callout-body {
    flex: 1;
    min-width: 0;
  }

  .callout-body strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.84rem;
  }

  .callout-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
  }

  .callout-info .callout-icon {
    color: #3b82f6;
  }

  .callout-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
  }

  .callout-warning .callout-icon {
    color: #f59e0b;
  }

  .callout-tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
  }

  .callout-tip .callout-icon {
    color: var(--accent);
  }

  .callout-note {
    background: #f9fafb;
    border: 1px dashed rgba(148,163,184,0.7);
    color: var(--text-muted);
  }

  .callout-note .callout-icon {
    color: var(--primary);
  }

  html[data-theme="dark"] .callout-info {
    background: rgba(29,78,216,0.13);
    border-color: rgba(37,99,235,0.4);
    color: #93c5fd;
  }

  html[data-theme="dark"] .callout-warning {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.35);
    color: #fcd34d;
  }

  html[data-theme="dark"] .callout-tip {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.3);
    color: #86efac;
  }

  html[data-theme="dark"] .callout-note {
    background: rgba(15,23,42,0.9);
    border-color: rgba(51,65,85,0.9);
  }

  .table-wrap {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
  }

  .tool-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
  }

  .tool-article th {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    text-align: left;
    padding: 9px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  html[data-theme="dark"] .tool-article th {
    background: rgba(79,70,229,0.2);
    color: #c7d2fe;
  }

  .tool-article td {
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    line-height: 1.5;
    vertical-align: middle;
  }

  .tool-article tr:hover td {
    background: rgba(79,70,229,0.03);
  }

  html[data-theme="dark"] .tool-article tr:hover td {
    background: rgba(79,70,229,0.07);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .badge-green {
    background: #f0fdf4;
    color: #166534;
  }

  .badge-red {
    background: #fff1f2;
    color: #9f1239;
  }

  html[data-theme="dark"] .badge-green {
    background: rgba(34,197,94,0.1);
    color: #86efac;
  }

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

  .steps-list {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 12px 0 16px;
    list-style: none;
  }

  .steps-list li {
    padding: 11px 12px 11px 50px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #f9fafb;
    box-shadow: 0 8px 20px rgba(15,23,42,0.04);
    position: relative;
    counter-increment: step;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.6;
    overflow: hidden;
  }

  html[data-theme="dark"] .steps-list li {
    background: radial-gradient(circle at top left, rgba(79,70,229,0.2), #020617);
    box-shadow: 0 10px 22px rgba(0,0,0,0.8);
  }

  .steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(79,70,229,0.35);
  }

  .steps-list li:nth-child(odd) {
    background: linear-gradient(135deg, #f9fafb, #eff6ff);
  }

  html[data-theme="dark"] .steps-list li:nth-child(odd) {
    background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(30,64,175,0.35));
  }

  .steps-list li strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
  }

  .tab-block {
    margin: 14px 0;
  }

  .tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.14s, border-color 0.14s;
    font-family: inherit;
  }

  .tab-btn:hover {
    color: var(--primary);
  }

  .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
  }

  .tab-panel {
    display: none;
    padding: 16px 0 4px;
  }

  .tab-panel.active {
    display: block;
  }

  .article-guidance-block {
    margin: 16px 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 24px rgba(15,23,42,0.045);
  }

  html[data-theme="dark"] .article-guidance-block {
    background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(2,6,23,0.75));
  }

  .article-guidance-block p {
    margin-bottom: 12px;
  }

  .article-guidance-block p:last-child {
    margin-bottom: 0;
  }

  .article-guidance-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
  }

  .article-guidance-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
  }

  .article-guidance-mini {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    background: rgba(255,255,255,0.7);
  }

  html[data-theme="dark"] .article-guidance-mini {
    background: rgba(15,23,42,0.65);
  }

  .article-guidance-mini strong {
    display: block;
    margin-bottom: 4px;
  }

  .article-related-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    margin: 16px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.14s, box-shadow 0.14s;
  }

  html[data-theme="dark"] .article-related-inline {
    background: rgba(15,23,42,0.7);
  }

  .article-related-inline:hover {
    border-color: rgba(79,70,229,0.6);
    box-shadow: 0 4px 12px rgba(79,70,229,0.1);
  }

  .article-related-inline-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .article-related-inline-body {
    flex: 1;
    min-width: 0;
  }

  .article-related-inline-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2px;
  }

  .article-related-inline-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
  }

  .article-related-inline-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .faq-list {
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .faq-item {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.2s, background-color 0.15s;
  }

  html[data-theme="dark"] .faq-item {
    background: rgba(15,23,42,0.98);
  }

  .faq-item.is-open {
    border-color: rgba(79,70,229,0.7);
    box-shadow: 0 8px 20px rgba(79,70,229,0.08);
    background: #f9fafb;
  }

  html[data-theme="dark"] .faq-item.is-open {
    background: radial-gradient(circle at top left, rgba(79,70,229,0.2), #020617);
    box-shadow: 0 8px 20px rgba(0,0,0,0.9);
  }

  .faq-question {
    width: 100%;
    padding: 13px 15px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
  }

  .faq-question span {
    flex: 1;
    min-width: 0;
  }

  .faq-chevron {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.16s ease-out, color 0.15s;
  }

  .faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
  }

  .faq-answer-inner {
    padding: 8px 15px 13px;
  }

  .faq-answer-inner p {
    margin: 0 0 7px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
  }

  .faq-answer-inner p:last-child {
    margin-bottom: 0;
  }

  .author-bio {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    margin: 20px 0 0;
    border-radius: var(--radius-lg);
    background: #f9fafb;
    border: 1px solid var(--border);
  }

  html[data-theme="dark"] .author-bio {
    background: rgba(15,23,42,0.6);
  }

  .author-bio-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    flex-shrink: 0;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(79,70,229,0.2);
  }

  .author-bio-body {
    flex: 1;
    min-width: 0;
  }

  .author-bio-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
  }

  .author-bio-role {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 7px;
  }

  .author-bio-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 10px;
  }

  .author-bio-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .author-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    transition: color 0.14s, border-color 0.14s;
  }

  .author-bio-link:hover,
  .author-bio-link:focus,
  .author-bio-link:visited,
  .author-bio-link:active {
    color: var(--primary);
    border-color: rgba(79,70,229,0.6);
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
  }

  .author-bio a,
  .author-bio a:hover,
  .author-bio a:focus,
  .author-bio a:visited,
  .author-bio a:active,
  .author-bio .author-bio-link,
  .author-bio .author-bio-link:hover,
  .author-bio .author-bio-link:focus,
  .author-bio .author-bio-link:visited,
  .author-bio .author-bio-link:active {
    background-image: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
  }

  .author-bio a,
  .author-bio .author-bio-link {
    border-bottom: 1px solid var(--border) !important;
  }

  .author-bio a:hover,
  .author-bio a:focus,
  .author-bio .author-bio-link:hover,
  .author-bio .author-bio-link:focus {
    border-bottom-color: rgba(79,70,229,0.6) !important;
  }

  .byline-avatar.author-photo-placeholder,
  .author-bio-avatar.author-photo-placeholder {
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    color: var(--primary);
    border: 2px solid rgba(79,70,229,0.18);
  }

  html[data-theme="dark"] .byline-avatar.author-photo-placeholder,
  html[data-theme="dark"] .author-bio-avatar.author-photo-placeholder {
    background: linear-gradient(135deg, rgba(79,70,229,0.22), rgba(15,23,42,0.92));
    color: #c7d2fe;
    border-color: rgba(129,140,248,0.32);
  }

  .byline-avatar.author-photo-placeholder img,
  .author-bio-avatar.author-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .tool-article a.article-link,
  .tool-article a:not(.cite-ref):not(.source-url):not(.source-context-link):not(.cta-btn):not(.article-related-inline):not(.author-bio-link) {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 650;
  }

  .cite-ref {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    color: var(--primary) !important;
    font-weight: 800;
    text-decoration: none !important;
    padding: 0 2px;
    scroll-margin-top: 96px;
    cursor: pointer;
  }

  .cite-tooltip {
    display: none !important;
  }

  .fy-citation-tooltip {
    position: fixed;
    z-index: 99999;
    width: min(390px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.35);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 24px 60px rgba(15,23,42,0.18), 0 2px 6px rgba(15,23,42,0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.12s ease, transform 0.12s ease;
  }

  .fy-citation-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .fy-citation-tooltip strong {
    display: block;
    color: var(--text);
    font-size: 0.92rem;
    margin-bottom: 4px;
  }

  html[data-theme="dark"] .fy-citation-tooltip {
    background: rgba(15,23,42,0.98);
    border-color: rgba(55,65,81,0.95);
    box-shadow: 0 24px 60px rgba(0,0,0,0.72);
  }

  .sources-intro {
    display: none !important;
  }

  .sources-compact {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 0 !important;
    display: block;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
  }

  .sources-compact li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--border);
    margin: 0 !important;
    line-height: 1.48;
    scroll-margin-top: 96px;
  }

  .sources-compact li::before {
    display: none !important;
  }

  .source-num {
    color: var(--primary);
    font-weight: 850;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .source-main {
    min-width: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
  }

  .source-title {
    color: var(--text);
    font-weight: 760;
  }

  .source-note {
    margin-left: 4px;
  }

  .source-url {
    color: var(--primary) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 650;
    margin-left: 6px;
    white-space: nowrap;
  }

  .source-context-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px 3px;
    border-radius: 999px;
    border: 1px solid rgba(79,70,229,0.28);
    background: rgba(79,70,229,0.07);
    color: var(--primary) !important;
    text-decoration: none !important;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.35;
    white-space: nowrap;
  }

  .source-context-link:hover {
    border-color: rgba(79,70,229,0.65);
    background: rgba(79,70,229,0.12);
  }

  html[data-theme="dark"] .source-context-link {
    background: rgba(79,70,229,0.18);
    border-color: rgba(129,140,248,0.35);
  }

  .site-footer {
    border-top: 1px solid rgba(209,213,219,0.7);
    padding: 20px 0 26px;
    background: rgba(248,250,252,0.96);
  }

  html[data-theme="dark"] .site-footer {
    background: rgba(15,23,42,0.98);
    border-top: 1px solid rgba(30,64,175,0.8);
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-muted);
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .footer-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .footer-nav a:hover {
    color: var(--primary);
  }

  .footer-meta {
    margin: 0;
    width: 100%;
    text-align: right;
    font-size: 0.78rem;
  }

  .footer-language {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.9);
    background: rgba(255,255,255,0.96);
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    outline: none;
    white-space: nowrap;
  }

  .lang-toggle .lang-chevron {
    font-size: 0.75rem;
    transition: transform 0.14s;
  }

  .lang-toggle.is-open .lang-chevron {
    transform: rotate(180deg);
  }

  .lang-toggle:hover {
    border-color: rgba(79,70,229,0.95);
    color: var(--primary);
  }

  html[data-theme="dark"] .lang-toggle {
    background: #020617;
    border-color: #1f2937;
  }

  .lang-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    min-width: 200px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 16px 30px rgba(148,163,184,0.3);
    display: none;
    z-index: 30;
  }

  .lang-dropdown.is-open {
    display: block;
  }

  html[data-theme="dark"] .lang-dropdown {
    background: #0d1526;
    border-color: rgba(37,99,235,0.35);
    box-shadow: 0 16px 30px rgba(0,0,0,0.6);
  }

  .lang-option {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
  }

  .lang-option:hover {
    background: #f3f4ff;
    color: var(--primary);
  }

  .lang-option.is-active {
    font-weight: 600;
    color: var(--primary);
    background: #eef2ff;
  }

  html[data-theme="dark"] .lang-option:hover {
    background: rgba(30,64,175,0.35);
    color: #e5e7eb;
  }

  html[data-theme="dark"] .lang-option.is-active {
    background: rgba(37,99,235,0.4);
    color: #e5e7eb;
  }

  @media (max-width: 900px) {
    .article-hero-inner {
      grid-template-columns: minmax(0, 1fr);
    }

    .page-main-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .page-main-grid > aside {
      position: static;
      height: auto;
    }

    .sticky-rail {
      display: none;
    }

    .related-tools-mobile {
      display: block;
      margin-top: 16px;
    }

    .article-col {
      min-width: 0;
    }
  }

  @media (max-width: 800px) {
    .header-inner {
      flex-wrap: wrap;
      justify-content: space-between;
    }

    .main-nav {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: wrap;
      border-top: 1px solid rgba(209,213,219,0.7);
      padding-top: 8px;
      margin-top: 4px;
    }

    html[data-theme="dark"] .main-nav {
      border-top: 1px solid rgba(31,41,55,0.9);
    }

    .theme-switch {
      position: absolute;
      right: 20px;
      top: 22px;
    }
  }

  @media (max-width: 760px) {
    .comparison,
    .do-dont,
    .privacy-grid,
    .article-guidance-split {
      grid-template-columns: 1fr;
    }

    .direction-diagram {
      grid-template-columns: 1fr;
    }

    .dir-side,
    .dir-arrows {
      min-height: 0;
    }

    .dir-arrows {
      border-left: 0;
      border-right: 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .na-row {
      grid-template-columns: 54px minmax(0, 1fr) 70px 70px;
      font-size: 0.72rem;
    }

    .tab-nav {
      overflow-x: auto;
      white-space: nowrap;
    }

    .author-bio {
      flex-direction: column;
    }
  }

  @media (max-width: 640px) {
    .sources-compact li {
      grid-template-columns: 34px minmax(0, 1fr);
    }

    .source-main {
      font-size: 0.8rem;
    }

    .source-url,
    .source-context-link {
      margin-left: 0;
      margin-right: 6px;
      margin-top: 2px;
    }
  }

  @media (max-width: 520px) {
    .article-byline {
      align-items: flex-start;
      flex-direction: column;
    }

    .byline-right {
      align-items: flex-start;
    }

    .byline-meta {
      justify-content: flex-start;
    }

    .footer-meta {
      text-align: left;
    }

    .footer-language {
      width: 100%;
      justify-content: flex-start;
    }

    .lang-dropdown {
      right: auto;
      left: 0;
      max-width: 100%;
    }
  }