:root {
      --bg: #171717;
      --header-bg: rgba(23, 23, 23, 0.90);
      --card-bg: #212121;
      --card-bg-hover: #262626;
      --text: #ececec;
      --text-body: #d1d5db;
      --text-muted: #a3a3a3;
      --heading: #f8fafc;
      --accent: #ea580c;
      --accent-hover: #fb923c;
      --accent-dim: rgba(234, 88, 12, 0.14);
      --accent-border: rgba(234, 88, 12, 0.30);
      --border: rgba(255, 255, 255, 0.08);
      --border-hover: rgba(255, 255, 255, 0.16);
      --code-bg: #0d0d0d;
      --code-header-bg: #141418;
      --code-border: rgba(255, 255, 255, 0.06);
      --inline-code-bg: rgba(255, 255, 255, 0.06);
      --inline-code-color: #c7d2fe;
      --ticker-bg: #141414;
      --ticker-label-bg: #262626;
      --hero-bg: linear-gradient(145deg, #222228, #1a1a1f);
      --table-head-bg: #1e1e24;
      --mermaid-bg: #18181f;
      --subtle-surface: rgba(255, 255, 255, 0.05);
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    :root[data-theme='slate'] {
      --bg: #191e28;
      --header-bg: rgba(25, 30, 40, 0.92);
      --card-bg: #222a38;
      --card-bg-hover: #283243;
      --text: #e6ebf2;
      --text-body: #cdd6e3;
      --text-muted: #9aa7bc;
      --heading: #f1f5f9;
      --accent: #fb923c;
      --accent-hover: #fdba74;
      --accent-dim: rgba(251, 146, 60, 0.14);
      --accent-border: rgba(251, 146, 60, 0.32);
      --border: rgba(203, 213, 225, 0.12);
      --border-hover: rgba(203, 213, 225, 0.22);
      --code-bg: #141821;
      --code-header-bg: #1b212d;
      --code-border: rgba(203, 213, 225, 0.10);
      --inline-code-bg: rgba(148, 163, 184, 0.12);
      --inline-code-color: #fed7aa;
      --ticker-bg: #151a23;
      --ticker-label-bg: #252e3d;
      --hero-bg: linear-gradient(145deg, #242d3d, #1d2432);
      --table-head-bg: #1f2633;
      --mermaid-bg: #1c222e;
      --subtle-surface: rgba(255, 255, 255, 0.06);
    }
    :root[data-theme='dawn'] {
      --bg: #f6f5f0;
      --header-bg: rgba(251, 250, 246, 0.92);
      --card-bg: #fdfcf8;
      --card-bg-hover: #f3efe6;
      --text: #1c1917;
      --text-body: #292524;
      --text-muted: #57534e;
      --heading: #1c1917;
      --accent: #ea580c;
      --accent-hover: #c2410c;
      --accent-dim: rgba(234, 88, 12, 0.10);
      --accent-border: rgba(234, 88, 12, 0.32);
      --border: rgba(28, 25, 23, 0.10);
      --border-hover: rgba(28, 25, 23, 0.20);
      --code-bg: #efece3;
      --code-header-bg: #e5e0d4;
      --code-border: rgba(28, 25, 23, 0.10);
      --inline-code-bg: rgba(28, 25, 23, 0.07);
      --inline-code-color: #9a3412;
      --ticker-bg: #efece3;
      --ticker-label-bg: #e5e0d4;
      --hero-bg: linear-gradient(145deg, #fdfcf8, #f3efe6);
      --table-head-bg: #efece3;
      --mermaid-bg: #fdfcf8;
      --subtle-surface: rgba(28, 25, 23, 0.06);
    }
    :root[data-theme='sage'] {
      --bg: #eef3ef;
      --header-bg: rgba(246, 250, 247, 0.92);
      --card-bg: #f8fbf9;
      --card-bg-hover: #e7f0e9;
      --text: #14221b;
      --text-body: #1f3329;
      --text-muted: #4b6356;
      --heading: #14221b;
      --accent: #0d9488;
      --accent-hover: #0f766e;
      --accent-dim: rgba(13, 148, 136, 0.11);
      --accent-border: rgba(13, 148, 136, 0.32);
      --border: rgba(20, 34, 27, 0.11);
      --border-hover: rgba(20, 34, 27, 0.22);
      --code-bg: #e4ede6;
      --code-header-bg: #d7e5da;
      --code-border: rgba(20, 34, 27, 0.10);
      --inline-code-bg: rgba(20, 34, 27, 0.07);
      --inline-code-color: #0f766e;
      --ticker-bg: #e4ede6;
      --ticker-label-bg: #d6e4d9;
      --hero-bg: linear-gradient(145deg, #f8fbf9, #e7f0e9);
      --table-head-bg: #e4ede6;
      --mermaid-bg: #f8fbf9;
      --subtle-surface: rgba(20, 34, 27, 0.06);
    }
    :root[data-theme='oled-dark'] {
      --bg: #000000;
      --header-bg: rgba(0, 0, 0, 0.94);
      --card-bg: #0a0a0a;
      --card-bg-hover: #141414;
      --code-bg: #050505;
      --ticker-bg: #050505;
    }
    * {
      box-sizing: border-box;
    }
    body {
      font-family: var(--font-sans);
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      margin: 0;
      padding: 0;
      -webkit-font-smoothing: antialiased;
    }
    header {
      background: var(--header-bg);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
      padding: 0.9rem 2rem;
      position: sticky;
      top: 0;
      z-index: 50;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .blog-theme-select {
      appearance: none;
      -webkit-appearance: none;
      background-color: var(--subtle-surface);
      color: var(--text);
      border: 1px solid var(--border-hover);
      border-radius: 8px;
      padding: 0.3rem 1.75rem 0.3rem 0.65rem;
      font-size: 0.8rem;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
    }
    .blog-theme-select:focus {
      outline: none;
      border-color: var(--accent);
    }
    .brand-link {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      color: var(--text);
      text-decoration: none;
      font-weight: 700;
      font-size: 1.15rem;
      letter-spacing: -0.01em;
    }
    .brand-badge {
      font-size: 0.7rem;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 9999px;
      background: var(--accent-dim);
      color: var(--accent);
      border: 1px solid var(--accent-border);
      letter-spacing: 0.03em;
    }
    header nav {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }
    header nav a {
      font-size: 0.9rem;
      color: var(--text-muted);
      text-decoration: none;
      font-weight: 500;
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
      transition: all 0.15s ease;
    }
    header nav a:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.04);
    }
    header nav a.active {
      color: var(--accent);
      font-weight: 600;
      background: var(--accent-dim);
    }

    /* Market Watch Ticker */
    .market-ticker-wrap {
      background: var(--ticker-bg);
      border-bottom: 1px solid var(--border);
      padding: 0.45rem 1.5rem;
      display: flex;
      align-items: center;
      gap: 1.25rem;
      font-size: 0.8rem;
      overflow: hidden;
      position: relative;
    }
    .market-ticker-label {
      background: var(--ticker-label-bg);
      color: var(--text-muted);
      font-size: 0.68rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 4px;
      letter-spacing: 0.05em;
      white-space: nowrap;
      flex-shrink: 0;
      z-index: 2;
      border: 1px solid var(--border);
    }
    .marquee-track {
      display: flex;
      overflow: hidden;
      white-space: nowrap;
      width: 100%;
    }
    .marquee-content {
      display: flex;
      gap: 2rem;
      animation: ticker-scroll 35s linear infinite;
      padding-right: 2rem;
      flex-shrink: 0;
    }
    .marquee-track:hover .marquee-content {
      animation-play-state: paused;
    }
    @keyframes ticker-scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }
    .ticker-item {
      color: var(--text-muted);
      white-space: nowrap;
    }
    .ticker-sym {
      font-weight: 600;
      color: var(--text);
      margin-right: 4px;
    }
    .ticker-pos {
      color: #34d399;
      font-weight: 600;
      margin-left: 4px;
    }
    .ticker-neg {
      color: #f87171;
      font-weight: 600;
      margin-left: 4px;
    }

    main {
      max-width: 1040px;
      margin: 2.5rem auto;
      padding: 0 1.5rem;
    }
    h1 {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.5rem;
    }
    .page-subtitle {
      color: var(--text-muted);
      font-size: 1rem;
      margin-bottom: 2rem;
    }

    /* Blocksy Hero Spotlight Card */
    .hero-spotlight {
      background: var(--hero-bg);
      border: 1px solid var(--accent-border);
      border-radius: 14px;
      padding: 2rem;
      margin-bottom: 2.5rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
      transition: all 0.2s ease;
    }
    .hero-spotlight:hover {
      border-color: var(--accent);
      box-shadow: 0 6px 28px rgba(0, 0, 0, 0.20);
    }
    .hero-tag-bar {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .spotlight-badge {
      background: var(--accent);
      color: #ffffff;
      font-size: 0.7rem;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 4px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    .hero-spotlight h2 {
      font-size: 1.65rem;
      margin: 0.5rem 0;
      line-height: 1.35;
    }
    .hero-spotlight h2 a {
      color: var(--text);
      text-decoration: none;
      transition: color 0.15s ease;
    }
    .hero-spotlight h2 a:hover {
      color: var(--accent-hover);
    }
    .hero-spotlight p {
      color: var(--text-body);
      font-size: 1rem;
      margin: 0.75rem 0 1.25rem 0;
      line-height: 1.6;
    }
    .hero-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.75rem;
      border-top: 1px solid var(--border);
      padding-top: 1rem;
      margin-top: 1rem;
    }
    .read-btn {
      background: var(--accent-dim);
      color: var(--accent);
      border: 1px solid var(--accent-border);
      font-size: 0.85rem;
      font-weight: 600;
      padding: 0.45rem 1rem;
      border-radius: 8px;
      text-decoration: none;
      transition: all 0.15s ease;
    }
    .read-btn:hover {
      background: var(--accent);
      color: #0b0f19;
    }

    /* Blocksy Multi-Column Responsive Grid */
    .blocksy-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 1.5rem;
      margin-bottom: 3rem;
    }
    .post-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
      transition: all 0.2s ease;
    }
    .post-card:hover {
      background: var(--card-bg-hover);
      border-color: var(--border-hover);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
      transform: translateY(-2px);
    }
    .post-card h3 {
      margin: 0.5rem 0;
      font-size: 1.25rem;
      font-weight: 600;
      line-height: 1.4;
    }
    .post-card a {
      color: var(--text);
      text-decoration: none;
      transition: color 0.15s ease;
    }
    .post-card a:hover {
      color: var(--accent);
    }
    .card-top-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .cat-pill {
      font-size: 0.72rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 9999px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .cat-tech {
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.3);
    }
    .cat-finance {
      background: rgba(52, 211, 153, 0.15);
      color: #34d399;
      border: 1px solid rgba(52, 211, 153, 0.3);
    }
    .cat-diy {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }
    .cat-systems {
      background: var(--accent-dim);
      color: var(--accent);
      border: 1px solid var(--accent-border);
    }
    .meta {
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    .tag {
      display: inline-block;
      background: var(--subtle-surface);
      color: var(--text-muted);
      border: 1px solid var(--border);
      font-size: 0.72rem;
      font-weight: 500;
      padding: 2px 8px;
      border-radius: 9999px;
      margin-right: 5px;
      margin-top: 4px;
    }
    .reddit-share-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: rgba(255, 69, 0, 0.12);
      color: #ff6b35;
      border: 1px solid rgba(255, 69, 0, 0.28);
      font-size: 0.78rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 9999px;
      text-decoration: none;
      transition: all 0.15s ease;
      vertical-align: middle;
    }
    .reddit-share-btn:hover {
      background: #ff4500;
      color: #ffffff;
      border-color: #ff4500;
      box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
    }
    /* Enterprise Code Blocks with Header & Copy Button */
    .code-container {
      margin: 1.75rem 0;
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    .code-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--code-header-bg);
      border-bottom: 1px solid var(--code-border);
      padding: 0.4rem 1rem;
      font-size: 0.72rem;
    }
    .code-lang {
      font-weight: 700;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      text-transform: uppercase;
    }
    .copy-btn {
      background: var(--subtle-surface);
      border: 1px solid var(--border-hover);
      color: var(--text);
      padding: 3px 9px;
      border-radius: 4px;
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .copy-btn:hover {
      background: var(--accent-dim);
      color: var(--accent);
      border-color: var(--accent-border);
    }
    pre.code-block {
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 1.1rem;
      margin: 0;
      overflow-x: auto;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 0.88rem;
      line-height: 1.6;
    }
    code {
      background: var(--inline-code-bg);
      padding: 2px 6px;
      border-radius: 5px;
      font-size: 0.88em;
      color: var(--inline-code-color);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }
    pre.code-block code {
      background: transparent;
      padding: 0;
      border-radius: 0;
      color: inherit;
    }
    blockquote {
      border-left: 3px solid var(--accent);
      margin: 1.5rem 0;
      padding: 0.6rem 0 0.6rem 1.25rem;
      color: var(--text-body);
      background: var(--accent-dim);
      border-radius: 0 6px 6px 0;
      font-style: normal;
    }

    /* Article Enterprise Typography */
    article h2 {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--heading);
      margin-top: 2.75rem;
      margin-bottom: 1.1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    article h3 {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--heading);
      margin-top: 2rem;
      margin-bottom: 0.75rem;
    }
    article p {
      color: var(--text-body);
      font-size: 1.02rem;
      line-height: 1.8;
      margin-bottom: 1.35rem;
    }
    article hr {
      border: none;
      border-top: 1px solid var(--border);
      margin: 2.25rem 0;
    }

    /* Clean Responsive Tables */
    .table-responsive {
      width: 100%;
      overflow-x: auto;
      margin: 1.75rem 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--card-bg);
    }
    table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.92rem;
    }
    th {
      background: var(--table-head-bg);
      color: var(--text);
      padding: 0.85rem 1rem;
      border-bottom: 2px solid var(--border);
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
    }
    td {
      padding: 0.85rem 1rem;
      border-bottom: 1px solid var(--border);
      color: var(--text-body);
      line-height: 1.5;
    }
    tr:last-child td {
      border-bottom: none;
    }
    tr:nth-child(even) {
      background: var(--subtle-surface);
    }
    tr:hover {
      background: var(--accent-dim);
    }

    /* Mermaid Architecture Diagrams */
    .mermaid {
      display: flex;
      justify-content: center;
      background: var(--mermaid-bg);
      padding: 1.5rem;
      border-radius: 10px;
      border: 1px solid var(--border);
      margin: 2rem 0;
      overflow-x: auto;
      font-family: inherit;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    }
    .mermaid svg {
      max-width: 100% !important;
      height: auto !important;
    }

    /* KaTeX Math Blocks */
    .katex-display-math {
      display: flex;
      justify-content: center;
      align-items: center;
      background: var(--subtle-surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.25rem 1.5rem;
      margin: 1.75rem 0;
      overflow-x: auto;
      text-align: center;
    }
    .katex {
      font-size: 1.12em;
    }
    .katex-display {
      margin: 0.35rem 0 !important;
    }

    /* Article Lists and Typography */
    article ol, article ul {
      margin: 1rem 0 1.25rem 1.5rem;
      padding-left: 1rem;
      color: var(--text-body);
      line-height: 1.75;
    }
    article li {
      margin-bottom: 0.5rem;
    }
    /* DIY Knowledge Graph & Workbench Styles */
    .diy-portal-hero {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
      border: 1px solid rgba(245, 158, 11, 0.25);
      border-radius: 12px;
      padding: 2rem;
      margin-bottom: 2rem;
    }
    .diy-search-bar {
      display: flex;
      gap: 0.5rem;
      margin: 1.25rem 0 1rem 0;
      flex-wrap: wrap;
    }
    .diy-search-input {
      flex: 1;
      min-width: 260px;
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.75rem 1rem;
      border-radius: 8px;
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.15s ease;
    }
    .diy-search-input:focus {
      border-color: #f59e0b;
      box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    }
    .diy-search-btn {
      background: #f59e0b;
      color: #0b0f19;
      font-weight: 600;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.9rem;
      transition: background 0.15s ease;
    }
    .diy-search-btn:hover {
      background: #d97706;
    }
    .diy-chips-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      align-items: center;
      font-size: 0.82rem;
      color: var(--text-muted);
    }
    .diy-chip {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      color: #cbd5e1;
      padding: 3px 10px;
      border-radius: 9999px;
      text-decoration: none;
      font-size: 0.78rem;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .diy-chip:hover {
      background: rgba(245, 158, 11, 0.15);
      border-color: rgba(245, 158, 11, 0.4);
      color: #fbbf24;
    }
    .diy-view-tabs {
      display: flex;
      gap: 0.5rem;
      margin: 1.5rem 0 1.5rem 0;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0.5rem;
    }
    .diy-tab-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 0.5rem 1rem;
      cursor: pointer;
      border-radius: 6px;
      transition: all 0.15s ease;
    }
    .diy-tab-btn.active {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
    }
    .diy-blueprint-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }
    .diy-blueprint-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.2s ease;
    }
    .diy-blueprint-card:hover {
      border-color: rgba(245, 158, 11, 0.4);
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    }
    .diy-prereq-badge {
      display: inline-block;
      background: rgba(56, 189, 248, 0.1);
      border: 1px solid rgba(56, 189, 248, 0.25);
      color: #38bdf8;
      font-size: 0.72rem;
      font-weight: 500;
      padding: 2px 7px;
      border-radius: 4px;
      margin-right: 4px;
      margin-top: 4px;
    }
    .diy-part-badge {
      display: inline-block;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #f87171;
      font-size: 0.72rem;
      font-weight: 500;
      padding: 2px 7px;
      border-radius: 4px;
      margin-right: 4px;
      margin-top: 4px;
    }
    .diy-attribution-bar {
      font-size: 0.72rem;
      color: var(--text-muted);
      border-top: 1px solid var(--border);
      padding-top: 0.6rem;
      margin-top: 0.85rem;
      line-height: 1.4;
    }
    .diy-attribution-bar a {
      color: var(--accent);
      text-decoration: none;
    }
    .diy-attribution-bar a:hover {
      text-decoration: underline;
    }
    .diy-facts-panel {
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(245, 158, 11, 0.25);
      border-radius: 10px;
      padding: 1.25rem;
      margin: 1.5rem 0;
    }
    .diy-facts-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.84rem;
    }
    .diy-facts-table th {
      text-align: left;
      padding: 6px 12px 6px 0;
      color: var(--text-muted);
      font-weight: 500;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      vertical-align: top;
    }
    .diy-facts-table td {
      padding: 6px 0;
      color: var(--text);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .diy-type-badge {
      display: inline-block;
      background: rgba(168, 85, 247, 0.15);
      border: 1px solid rgba(168, 85, 247, 0.3);
      color: #c084fc;
      font-size: 0.72rem;
      font-family: monospace;
      padding: 2px 6px;
      border-radius: 4px;
      margin-right: 4px;
    }
    .diy-view-guide-btn {
      display: inline-block;
      background: rgba(245, 158, 11, 0.15);
      border: 1px solid rgba(245, 158, 11, 0.4);
      color: #fbbf24;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: 6px;
      text-decoration: none;
      transition: all 0.15s ease;
    }
    .diy-view-guide-btn:hover {
      background: #f59e0b;
      color: #0b0f19;
      text-decoration: none;
    }
    .diy-step-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
    }
    .diy-step-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #f59e0b;
      color: #0b0f19;
      font-weight: 700;
      font-size: 0.85rem;
      margin-right: 8px;
    }
    .diy-breadcrumbs {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
    }
    .diy-breadcrumbs a {
      color: var(--accent);
      text-decoration: none;
    }
    .diy-compact-provenance {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding: 0.85rem 0;
      margin-top: 2.5rem;
      text-align: center;
      font-size: 0.72rem;
      color: rgba(148, 163, 184, 0.65);
      line-height: 1.5;
      letter-spacing: 0.02em;
    }
    .diy-compact-provenance strong {
      color: rgba(226, 232, 240, 0.85);
      font-weight: 500;
    }
    .diy-compact-provenance .diy-provenance-source {
      color: #38bdf8;
      font-weight: 600;
      background: rgba(56, 189, 248, 0.1);
      padding: 2px 8px;
      border-radius: 4px;
      border: 1px solid rgba(56, 189, 248, 0.25);
    }
    .diy-compact-provenance a {
      color: var(--accent);
      text-decoration: none;
    }
    .diy-compact-provenance a:hover {
      text-decoration: underline;
    }
    .diy-inline-callout {
      background: rgba(239, 68, 68, 0.1);
      border-left: 3px solid #ef4444;
      border-radius: 4px;
      padding: 0.6rem 0.85rem;
      margin: 0.6rem 0;
      color: #fca5a5;
      font-size: 0.9rem;
      line-height: 1.5;
    }
    .diy-callout-badge {
      display: inline-block;
      background: #ef4444;
      color: #0b0f19;
      font-weight: 700;
      font-size: 0.72rem;
      padding: 1px 6px;
      border-radius: 3px;
      margin-right: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .diy-hover-img-wrapper {
      position: relative;
      display: inline-block;
      vertical-align: baseline;
    }
    .diy-inline-img-btn {
      display: inline-flex;
      align-items: center;
      background: rgba(56, 189, 248, 0.12);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.35);
      border-radius: 4px;
      padding: 1px 7px;
      font-size: 0.88em;
      font-family: inherit;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
      line-height: 1.4;
      margin: 0 2px;
    }
    .diy-inline-img-btn:hover {
      background: rgba(56, 189, 248, 0.25);
      border-color: #38bdf8;
      color: #f0f9ff;
    }
    .diy-hover-popover {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: #0f172a;
      border: 1px solid rgba(56, 189, 248, 0.3);
      border-radius: 8px;
      padding: 6px;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
      z-index: 1000;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
      width: 260px;
      text-align: center;
    }
    .diy-hover-img-wrapper:hover .diy-hover-popover {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    .diy-hover-popover img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      border-radius: 6px;
      display: block;
    }
    .diy-popover-caption {
      display: block;
      font-size: 0.72rem;
      color: #94a3b8;
      margin-top: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .diy-lightbox-backdrop {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.85);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      padding: 1.5rem;
      backdrop-filter: blur(4px);
    }
    .diy-lightbox-backdrop.active {
      display: flex;
    }
    .diy-lightbox-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .diy-lightbox-content img {
      max-width: 100%;
      max-height: 80vh;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
      object-fit: contain;
    }
    .diy-lightbox-close {
      position: absolute;
      top: -38px;
      right: -8px;
      background: transparent;
      border: none;
      color: #ffffff;
      font-size: 2rem;
      cursor: pointer;
      line-height: 1;
      padding: 4px;
    }
    .diy-lightbox-caption {
      margin-top: 10px;
      color: #e2e8f0;
      font-size: 0.88rem;
      text-align: center;
    }
    .diy-breadcrumbs a:hover {
      text-decoration: underline;
    }

    footer {
      text-align: center;
      padding: 3rem 1rem;
      color: var(--text-muted);
      font-size: 0.85rem;
      border-top: 1px solid var(--border);
      margin-top: 5rem;
    }
    footer a {
      color: var(--text-muted);
      text-decoration: none;
      margin: 0 0.5rem;
      transition: color 0.15s ease;
    }
    footer a:hover {
      color: var(--text);
    }

    /* Eye-Comfort Soft Light Mode Contrast & DIY Surface Overrides */
    html[data-shvasa-light='true'] .post-card {
      box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
    }
    html[data-shvasa-light='true'] .post-card:hover {
      box-shadow: 0 6px 18px rgba(28, 25, 23, 0.11);
    }
    html[data-shvasa-light='true'] header nav a:hover {
      background: var(--subtle-surface);
    }
    html[data-shvasa-light='true'] .cat-tech {
      background: rgba(3, 105, 161, 0.10);
      color: #0369a1;
      border-color: rgba(3, 105, 161, 0.28);
    }
    html[data-shvasa-light='true'] .cat-finance {
      background: rgba(4, 120, 87, 0.10);
      color: #047857;
      border-color: rgba(4, 120, 87, 0.28);
    }
    html[data-shvasa-light='true'] .cat-diy {
      background: rgba(180, 83, 9, 0.10);
      color: #b45309;
      border-color: rgba(180, 83, 9, 0.28);
    }
    html[data-shvasa-light='true'] .ticker-pos {
      color: #047857;
    }
    html[data-shvasa-light='true'] .ticker-neg {
      color: #b91c1c;
    }
    html[data-shvasa-light='true'] .diy-portal-hero,
    html[data-shvasa-light='true'] .diy-facts-panel,
    html[data-shvasa-light='true'] .diy-step-card,
    html[data-shvasa-light='true'] .diy-blueprint-card {
      background: var(--card-bg) !important;
      border-color: var(--border-hover) !important;
      color: var(--text) !important;
    }
    html[data-shvasa-light='true'] .diy-inline-callout {
      background: rgba(185, 28, 28, 0.08);
      color: #991b1b;
    }

    /* Glance-Style Front Page Dashboard */
    .glance-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 1.5rem;
      margin-top: 1.5rem;
    }
    @media (max-width: 768px) {
      .glance-grid {
        grid-template-columns: 1fr;
      }
    }
    .glance-col {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .glance-col-header {
      padding: 0.9rem 1.15rem;
      border-bottom: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.02);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .glance-col-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .glance-col-badge {
      font-size: 0.72rem;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 9999px;
    }
    .glance-items-list {
      padding: 0.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      max-height: 820px;
      overflow-y: auto;
      scrollbar-width: thin;
    }
    .glance-card {
      background: rgba(255, 255, 255, 0.015);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.85rem 1rem;
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .glance-card:hover {
      border-color: var(--border-hover);
      background: rgba(255, 255, 255, 0.04);
      transform: translateY(-1px);
    }
    html[data-shvasa-light='true'] .glance-card {
      background: #ffffff;
      border-color: #e2e8f0;
    }
    html[data-shvasa-light='true'] .glance-card:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
    }
    .glance-card-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
    }
    .glance-source-pill {
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 4px;
      font-size: 0.72rem;
      letter-spacing: 0.02em;
    }
    .glance-time {
      color: var(--text-muted);
      font-size: 0.75rem;
    }
    .glance-card-title {
      font-size: 0.98rem;
      font-weight: 600;
      line-height: 1.35;
      margin: 0;
      color: var(--text);
      cursor: pointer;
    }
    .glance-card-title:hover {
      color: var(--accent);
    }
    .glance-card-summary {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.45;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .glance-card-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 4px;
      padding-top: 6px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      font-size: 0.76rem;
    }
    html[data-shvasa-light='true'] .glance-card-actions {
      border-top: 1px solid #f1f5f9;
    }
    .glance-btn-read {
      background: rgba(56, 189, 248, 0.1);
      color: var(--accent);
      border: 1px solid rgba(56, 189, 248, 0.25);
      border-radius: 4px;
      padding: 2px 8px;
      font-size: 0.75rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s ease;
    }
    .glance-btn-read:hover {
      background: rgba(56, 189, 248, 0.2);
    }
    .glance-btn-ext {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.85rem;
    }
    .glance-btn-ext:hover {
      color: var(--text);
    }
    .glance-filter-chip {
      background: var(--card-bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      border-radius: 9999px;
      padding: 4px 12px;
      font-size: 0.78rem;
      font-weight: 500;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s ease;
    }
    .glance-filter-chip.active, .glance-filter-chip:hover {
      background: rgba(56, 189, 248, 0.15);
      border-color: var(--accent);
      color: var(--accent);
    }
    .glance-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(6px);
      z-index: 10000;
      justify-content: center;
      align-items: center;
      padding: 1.5rem;
    }
    .glance-modal-overlay.active {
      display: flex;
    }
    .glance-modal-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      max-width: 820px;
      width: 100%;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
      animation: glanceModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes glanceModalIn {
      from { opacity: 0; transform: scale(0.96) translateY(8px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .glance-modal-top {
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
    }
    .glance-modal-content {
      padding: 1.5rem;
      overflow-y: auto;
      font-size: 1rem;
      line-height: 1.75;
      color: var(--text);
    }
    .glance-modal-content p {
      margin-bottom: 1.25rem;
    }
    .glance-modal-bottom {
      padding: 1rem 1.5rem;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(0, 0, 0, 0.1);
    }

    /* Pagination Bar & Root Portal Cards */
    .pagination-bar {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin: 2.5rem 0 1rem 0;
      flex-wrap: wrap;
    }
    .page-btn {
      display: inline-block;
      padding: 0.45rem 0.85rem;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--card-bg);
      color: var(--text);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: all 0.2s ease;
    }
    .page-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    .page-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #ffffff;
      font-weight: 600;
    }
    .portal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin: 1.75rem 0;
    }
    .portal-pillar-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1.5rem;
    }
    .portal-pillar-card h3 {
      margin-top: 0;
      margin-bottom: 0.6rem;
      font-size: 1.15rem;
      color: var(--heading);
    }
