  :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-color: 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-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-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-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);
  }

  .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;
  }

  .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: 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);
  }

  .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;
  }

  .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 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 .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;
  }

  .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;
  }

  .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-tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
  }

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

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

  .alert-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: var(--radius-md);
    border: 1.5px solid;
  }

  .alert-banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
  }

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

  .alert-banner-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 3px;
  }

  .alert-banner-text {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
  }

  .alert-banner.amber {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #78350f;
  }

  .alert-banner.amber .alert-banner-icon {
    color: #f59e0b;
  }

  html[data-theme="dark"] .alert-banner.amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fcd34d;
  }

  .verdict-card {
    margin: 16px 0;
    border-radius: var(--radius-lg);
    border: 2px solid;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .verdict-card.fail {
    border-color: #f43f5e;
    background: #fff1f2;
  }

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

  .verdict-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .verdict-card.fail .verdict-icon {
    color: #f43f5e;
  }

  .verdict-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .verdict-card.fail .verdict-label {
    color: #9f1239;
  }

  html[data-theme="dark"] .verdict-card.fail .verdict-label {
    color: #fda4af;
  }

  .verdict-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
  }

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

  .ai-habit-refined {
    margin: 16px 0 18px;
    border: 1px solid rgba(199, 210, 254, 0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #f2f4ff 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  }

  html[data-theme="dark"] .ai-habit-refined {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.86));
    border-color: rgba(79, 70, 229, 0.38);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  }

  .ai-habit-shift-head {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.58);
  }

  html[data-theme="dark"] .ai-habit-shift-head {
    background: rgba(2, 6, 23, 0.22);
    border-bottom-color: rgba(51, 65, 85, 0.9);
  }

  .ai-habit-title {
    font-size: 0.93rem;
    font-weight: 760;
    letter-spacing: -0.01em;
    color: var(--text);
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .ai-habit-title i {
    color: var(--primary);
  }

  .ai-habit-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    max-width: 330px;
    text-align: right;
    line-height: 1.35;
  }

  .ai-habit-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr);
    align-items: stretch;
  }

  .ai-habit-card {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.56);
  }

  html[data-theme="dark"] .ai-habit-card {
    background: rgba(15, 23, 42, 0.36);
  }

  .ai-habit-card .habit-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--primary);
  }

  .ai-habit-card strong {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
    margin-bottom: 4px;
  }

  .ai-habit-card p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.58;
    color: var(--text-muted);
  }

  .ai-habit-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(238, 242, 255, 0.8);
    border-left: 1px solid rgba(199, 210, 254, 0.85);
    border-right: 1px solid rgba(199, 210, 254, 0.85);
    color: var(--primary);
    text-align: center;
    padding: 8px 10px;
  }

  html[data-theme="dark"] .ai-habit-bridge {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
  }

  .ai-habit-bridge span {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .ai-habit-bridge i {
    font-size: 1.05rem;
  }

  .ai-entry-refined {
    margin: 16px 0 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.10), transparent 38%), #fff;
    padding: 15px 16px 14px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
  }

  html[data-theme="dark"] .ai-entry-refined {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 42%), rgba(15, 23, 42, 0.96);
    border-color: rgba(51, 65, 85, 0.9);
  }

  .ai-entry-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 760;
    font-size: 0.92rem;
    color: var(--text);
  }

  .ai-entry-title i {
    color: var(--primary);
  }

  .ai-entry-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 1.12fr repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .ai-entry-source,
  .ai-entry-core {
    border-radius: 14px;
    min-height: 92px;
    padding: 11px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    position: relative;
  }

  .ai-entry-source {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }

  html[data-theme="dark"] .ai-entry-source {
    background: rgba(2, 6, 23, 0.35);
    border-color: rgba(51, 65, 85, 0.9);
  }

  .ai-entry-source::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: rgba(99, 102, 241, 0.45);
  }

  .ai-entry-source:nth-child(4)::before,
  .ai-entry-source:nth-child(5)::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: rgba(99, 102, 241, 0.45);
  }

  .ai-entry-source:nth-child(4)::after,
  .ai-entry-source:nth-child(5)::after {
    display: none;
  }

  .ai-entry-source i {
    color: var(--primary);
    font-size: 1rem;
  }

  .ai-entry-source strong,
  .ai-entry-core strong {
    color: var(--text);
    font-size: 0.8rem;
  }

  .ai-entry-source span {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.32;
  }

  .ai-entry-core {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25);
    border: 1px solid transparent;
  }

  .ai-entry-core i,
  .ai-entry-core strong,
  .ai-entry-core span {
    color: #fff;
  }

  .ai-entry-core span {
    font-size: 0.74rem;
    line-height: 1.35;
    opacity: 0.94;
  }

  .ai-entry-caption {
    margin: 10px 2px 0 !important;
    color: var(--text-muted);
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
  }

  .ai-research-pulse {
    margin: 16px 0 18px;
    padding: 15px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(199, 210, 254, 0.9);
    background: linear-gradient(135deg, #eef2ff, #ffffff);
  }

  html[data-theme="dark"] .ai-research-pulse {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(15, 23, 42, 0.98));
    border-color: rgba(79, 70, 229, 0.35);
  }

  .ai-pulse-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
  }

  .ai-pulse-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ai-pulse-metric {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
  }

  html[data-theme="dark"] .ai-pulse-metric {
    background: rgba(2, 6, 23, 0.38);
  }

  .ai-pulse-num {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--primary);
    line-height: 1;
  }

  .ai-pulse-copy {
    margin-top: 5px;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.45;
  }

  .ai-pulse-footer {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
  }

  .sensitive-radar {
    margin: 14px 0 18px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

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

  .sensitive-radar h3 {
    margin-top: 0 !important;
  }

  .sensitive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

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

  .sensitive-tag.warn {
    background: #fff1f2;
    color: #be123c;
  }

  html[data-theme="dark"] .sensitive-tag.warn {
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
  }

  .prompt-minimizer {
    margin: 16px 0 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .prompt-box {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

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

  .prompt-box.bad {
    border-color: rgba(244, 63, 94, 0.45);
  }

  .prompt-box.good {
    border-color: rgba(34, 197, 94, 0.45);
  }

  .prompt-box-head {
    padding: 10px 13px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 7px;
    align-items: center;
  }

  .prompt-box.bad .prompt-box-head {
    color: #be123c;
    background: #fff1f2;
  }

  .prompt-box.good .prompt-box-head {
    color: #166534;
    background: #f0fdf4;
  }

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

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

  .prompt-copy {
    padding: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-muted);
  }

  .prompt-copy mark {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    padding: 1px 4px;
  }

  html[data-theme="dark"] .prompt-copy mark {
    background: rgba(244, 63, 94, 0.18);
    color: #fecdd3;
  }

  .privacy-stack {
    margin: 16px 0 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #ffffff;
    padding: 16px;
    box-shadow: var(--shadow-card);
  }

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

  .privacy-stack-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .privacy-stack-title i {
    color: var(--primary);
  }

  .privacy-stack-layers {
    display: grid;
    gap: 8px;
  }

  .privacy-layer {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: #f9fafb;
  }

  html[data-theme="dark"] .privacy-layer {
    background: rgba(2, 6, 23, 0.45);
  }

  .privacy-layer-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .privacy-layer strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2px;
  }

  .privacy-layer span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
  }

  .scenario-thread {
    margin: 16px 0 18px;
    border-left: 3px solid var(--primary);
    padding-left: 14px;
  }

  .scenario-thread-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 7px;
  }

  .scenario-thread p {
    margin: 0 !important;
    font-size: 0.92rem !important;
    color: var(--text) !important;
    line-height: 1.65 !important;
  }

  .ai-choice-split {
    margin: 16px 0 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ai-choice-card {
    border-radius: var(--radius-lg);
    padding: 15px;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

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

  .ai-choice-card h4 {
    margin: 0 0 8px;
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text);
  }

  .ai-choice-card h4 i {
    color: var(--primary);
  }

  .ai-choice-card p {
    margin: 0 !important;
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    color: var(--text-muted) !important;
  }

  .ai-choice-card.file {
    border-color: rgba(34, 197, 94, 0.35);
  }

  .ai-choice-card.file h4 i {
    color: #22c55e;
  }

  .ai-preflight-refined {
    margin: 16px 0 18px;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.98);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: var(--text);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
  }

  html[data-theme="dark"] .ai-preflight-refined {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
    border-color: rgba(51, 65, 85, 0.92);
    color: #e5e7eb;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  }

  .ai-preflight-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 5px;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 800;
  }

  html[data-theme="dark"] .ai-preflight-title {
    color: #fff;
  }

  .ai-preflight-title i {
    color: var(--primary);
  }

  .ai-preflight-intro {
    margin: 0 0 12px !important;
    color: var(--text-muted);
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  .ai-preflight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ai-preflight-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.42;
  }

  html[data-theme="dark"] .ai-preflight-item {
    background: rgba(2, 6, 23, 0.38);
    border-color: rgba(51, 65, 85, 0.9);
    color: #e5e7eb;
  }

  .ai-preflight-item i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
  }
  
.policy-route .policy-route-head {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

.policy-route .policy-route-head .policy-route-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  flex: 0 0 36px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0 !important;
  background: rgba(79, 70, 229, 0.16) !important;
  border: 1px solid rgba(129, 140, 248, 0.28) !important;
  color: #c7d2fe !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.policy-route .policy-route-head .policy-route-icon i {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  text-align: center !important;
}

.policy-route .policy-route-head > div {
  min-width: 0 !important;
  padding-top: 1px !important;
}

  .policy-route {
    margin: 16px 0 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }

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

  .policy-route-head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
  }

  html[data-theme="dark"] .policy-route-head {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.14));
  }

  .policy-route-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border: 1px solid rgba(79, 70, 229, 0.16);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    flex: 0 0 36px;
  }

  .policy-route-icon i {
    font-size: 0.95rem;
    line-height: 1;
    display: block;
    color: var(--primary);
    opacity: 0.95;
  }

  html[data-theme="dark"] .policy-route-icon {
    background: rgba(79, 70, 229, 0.16);
    border-color: rgba(129, 140, 248, 0.28);
    color: #c7d2fe;
    box-shadow: none;
  }

  html[data-theme="dark"] .policy-route-icon i {
    color: #c7d2fe;
  }

  .policy-route-head strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 3px;
  }

  .policy-route-head span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .policy-route-list {
    position: relative;
    padding: 8px 16px 12px;
  }

  .policy-route-list::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 18px;
    bottom: 20px;
    width: 14px;
    transform: translateX(-6px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='72' viewBox='0 0 14 72'%3E%3Cpath d='M7 0 C13 9 1 18 7 27 C13 36 1 45 7 54 C11 60 8 66 7 72' fill='none' stroke='%234f46e5' stroke-width='2.2' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 14px 72px;
    pointer-events: none;
  }

  html[data-theme="dark"] .policy-route-list::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='72' viewBox='0 0 14 72'%3E%3Cpath d='M7 0 C13 9 1 18 7 27 C13 36 1 45 7 54 C11 60 8 66 7 72' fill='none' stroke='%23818cf8' stroke-width='2.2' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  }

  .policy-route-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 11px;
    padding: 10px 0;
    align-items: start;
  }

  .policy-num {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.35);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(79, 70, 229, 0.10);
  }

  html[data-theme="dark"] .policy-num {
    background: #020617;
    border-color: rgba(129, 140, 248, 0.5);
    color: #c7d2fe;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.98), 0 6px 16px rgba(0, 0, 0, 0.35);
  }

  .policy-route-item strong {
    display: block;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .policy-route-item p {
    margin: 0 !important;
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  .fy-restraint-model {
    margin: 16px 0 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(199, 210, 254, 0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #eef2ff 100%);
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }

  html[data-theme="dark"] .fy-restraint-model {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
    border-color: rgba(79, 70, 229, 0.35);
  }

  .fy-restraint-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
  }

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

  .fy-restraint-head strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 3px;
  }

  .fy-restraint-head span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .fy-restraint-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 10px;
    align-items: stretch;
    padding: 14px 16px 16px;
  }

  .fy-restraint-step {
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    padding: 12px;
    min-width: 0;
  }

  html[data-theme="dark"] .fy-restraint-step {
    background: rgba(2, 6, 23, 0.36);
  }

  .fy-restraint-step i {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 7px;
    display: block;
  }

  .fy-restraint-step strong {
    display: block;
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .fy-restraint-step span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .fy-restraint-arrow {
    align-self: center;
    color: var(--primary);
    opacity: 0.72;
    font-size: 0.95rem;
  }

  .fy-restraint-bottom {
    margin: -4px 16px 16px;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .fy-restraint-bottom strong {
    color: var(--text);
  }

  .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: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    margin: 20px 0 0;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid var(--border);
    box-shadow: none;
  }

  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;
  }

  .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-color: 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-color: rgba(31, 41, 55, 0.9);
    }

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

    .article-byline {
      align-items: flex-start;
      flex-direction: column;
    }

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

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

  @media (max-width: 760px) {
    .ai-habit-shift-head {
      align-items: flex-start;
      flex-direction: column;
    }

    .ai-habit-note {
      text-align: left;
      max-width: none;
    }

    .ai-habit-track,
    .ai-entry-flow,
    .ai-pulse-row,
    .prompt-minimizer,
    .ai-choice-split,
    .ai-preflight-grid {
      grid-template-columns: 1fr;
    }

    .ai-habit-bridge {
      flex-direction: row;
      border-left: 0;
      border-right: 0;
      border-top: 1px solid rgba(199, 210, 254, 0.85);
      border-bottom: 1px solid rgba(199, 210, 254, 0.85);
    }

    .ai-entry-source::after,
    .ai-entry-source::before {
      display: none !important;
    }

    .policy-route-head {
      grid-template-columns: 1fr;
    }

    .fy-restraint-flow {
      grid-template-columns: 1fr;
    }

    .fy-restraint-arrow {
      transform: rotate(90deg);
      justify-self: center;
    }
  }

  @media (max-width: 520px) {
    .footer-meta {
      text-align: left;
    }

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

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

  .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);
  }

  @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;
    }
  }