:root {
      color-scheme: light;
      --cp-bg: #ffffff;
      --cp-bg-elevated: #f4f3f5;
      --cp-surface: #ffffff;
      --cp-surface-soft: #edf6fc;
      --cp-border: #d8e2ec;
      --cp-border-strong: #8295ad;
      --cp-text: #2a446f;
      --cp-text-muted: #526984;
      --cp-text-soft: #647995;
      --cp-accent: #0078d4;
      --cp-accent-hover: #006cbe;
      --cp-accent-soft: rgba(0, 120, 212, 0.09);
      --cp-dark-blue: #2a446f;
      --cp-dark-blue-soft: rgba(42, 68, 111, 0.09);
      --cp-accent-fg: #ffffff;
      --cp-success: #16a34a;
      --cp-danger: #dc2626;
      --cp-warning: #f59e0b;
      --cp-link: #0078d4;
      --cp-shadow: 0 16px 42px rgba(42, 68, 111, 0.12);
      --cp-overlay: rgba(255, 255, 255, 0.8);
      --cp-panel: rgba(255, 255, 255, 0.86);
      --cp-panel-strong: rgba(255, 255, 255, 0.96);
      --cp-sheen: rgba(255, 255, 255, 0.55);
      --cp-highlight: rgba(0, 120, 212, 0.1);
    }
    html[data-theme="dark"] {
      color-scheme: dark;
      --cp-bg: #0c1430;
      --cp-bg-elevated: #111b3d;
      --cp-surface: #162245;
      --cp-surface-soft: #1e2c54;
      --cp-border: #2f4069;
      --cp-border-strong: #6175a5;
      --cp-text: #f5f7ff;
      --cp-text-muted: #aebbd7;
      --cp-text-soft: #c9d2e7;
      --cp-accent: #55b7ff;
      --cp-accent-hover: #7ac6ff;
      --cp-accent-soft: rgba(85, 183, 255, 0.14);
      --cp-dark-blue: #d7e6ff;
      --cp-dark-blue-soft: rgba(215, 230, 255, 0.12);
      --cp-accent-fg: #08112b;
      --cp-success: #4ade80;
      --cp-danger: #f87171;
      --cp-warning: #fbbf24;
      --cp-link: #7ac6ff;
      --cp-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
      --cp-overlay: rgba(12, 20, 48, 0.88);
      --cp-panel: rgba(12, 20, 48, 0.78);
      --cp-panel-strong: rgba(12, 20, 48, 0.96);
      --cp-sheen: rgba(255, 255, 255, 0.04);
      --cp-highlight: rgba(85, 183, 255, 0.12);
    }
    html[data-theme="portal"] {
      color-scheme: light;
      --cp-bg: #fbf8ff;
      --cp-bg-elevated: #f3ecfa;
      --cp-surface: #ffffff;
      --cp-surface-soft: #f1e9f7;
      --cp-border: #ded0ec;
      --cp-border-strong: #8d57ad;
      --cp-text: #22182f;
      --cp-text-muted: #63596e;
      --cp-text-soft: #7c7288;
      --cp-accent: #6b3a8f;
      --cp-accent-hover: #572876;
      --cp-accent-soft: rgba(107, 58, 143, 0.14);
      --cp-dark-blue: #6b3a8f;
      --cp-dark-blue-soft: rgba(107, 58, 143, 0.12);
      --cp-accent-fg: #ffffff;
      --cp-success: #4f8a10;
      --cp-danger: #b3261e;
      --cp-warning: #9a6700;
      --cp-link: #6b3a8f;
      --cp-shadow: 0 18px 46px rgba(107, 58, 143, 0.22);
      --cp-overlay: rgba(251, 249, 253, 0.82);
      --cp-panel: rgba(255, 255, 255, 0.88);
      --cp-panel-strong: rgba(255, 255, 255, 0.96);
      --cp-sheen: rgba(255, 255, 255, 0.58);
      --cp-highlight: rgba(107, 58, 143, 0.16);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--cp-bg); color: var(--cp-text); font-family: "Segoe UI", Aptos, Calibri, -apple-system, BlinkMacSystemFont, sans-serif; }
    a { color: inherit; }
    button, input, select { font: inherit; }
    button, select { cursor: pointer; }
    .site-header { position: sticky; top: 0; z-index: 10; min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 0 5vw; background: var(--cp-panel-strong); border-bottom: 1px solid var(--cp-border); box-shadow: 0 4px 18px rgba(42, 68, 111, 0.06); }
    .brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
    .brand-name { color: var(--cp-text); font-size: 17px; font-weight: 600; }
    .brand-name strong { color: var(--cp-accent); font-weight: 750; }
    nav { justify-self: end; display: flex; align-items: center; gap: 24px; }
    nav a { font-size: 14px; text-decoration: none; color: var(--cp-text-muted); }
    nav a:hover { color: var(--cp-text); }
    .theme-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--cp-border); border-radius: 0.625rem; background: var(--cp-surface); }
    .theme-choice { min-height: 28px; padding: 0 10px; border: 0; border-radius: 0.5rem; background: transparent; color: var(--cp-text-muted); font-size: 12px; font-weight: 650; }
    .theme-choice[aria-pressed="true"] { background: var(--cp-accent); color: var(--cp-accent-fg); }
    .power-cat-lockup { justify-self: end; display: block; width: 118px; height: 46px; }
    .power-cat-lockup img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right center; }
    html[data-theme="dark"] .power-cat-lockup img { filter: invert(1) brightness(1.2); }
    main { overflow: hidden; }
    .hero { min-height: 520px; padding: 64px max(5vw, calc((100vw - 1220px) / 2)) 76px; background: var(--cp-bg); border-bottom: 8px solid transparent; border-image: linear-gradient(90deg, #0878d1, #8746d8 48%, #e248a5 72%, #f3a14b) 1; }
    html[data-theme="portal"] .hero { background: radial-gradient(700px 260px at 78% 25%, var(--cp-highlight), transparent 68%), var(--cp-bg-elevated); border-image: linear-gradient(90deg, #6b3a8f, #8f4d9d 55%, #b36a93) 1; }
    .hero h1 { display: flex; align-items: center; gap: 22px; max-width: none; color: var(--cp-text); font-size: clamp(46px, 5vw, 68px); line-height: 1; font-weight: 700; margin: 0; letter-spacing: 0; }
    .series-mark { position: relative; flex: 0 0 40px; width: 40px; height: 40px; transform: rotate(45deg); }
    .series-mark i { position: absolute; width: 24px; height: 24px; border-radius: 7px; }
    .series-mark i:nth-child(1) { top: 0; left: 0; background: #8a3fd1; }
    .series-mark i:nth-child(2) { top: 0; right: 0; background: #d648b3; }
    .series-mark i:nth-child(3) { right: 0; bottom: 0; background: #0878d1; }
    .catalog-line { margin: 36px 0 14px; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.18; font-weight: 600; }
    .catalog-line span:nth-child(1) { color: #0878d1; }
    .catalog-line span:nth-child(2) { color: #8746d8; }
    .catalog-line span:nth-child(3) { color: #ed9846; }
    .catalog-line span:nth-child(4) { color: #d648b3; }
    .hero h2 { margin: 0; color: var(--cp-text); font-size: clamp(18px, 1.45vw, 24px); line-height: 1.28; }
    .eyebrow { margin: 0 0 12px; color: var(--cp-accent); font-size: 15px; font-weight: 750; text-transform: uppercase; letter-spacing: 0; }
    .hero-copy { max-width: 760px; margin: 18px 0 0; color: var(--cp-text-muted); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.48; }
    .primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 0.625rem; text-decoration: none; font-weight: 650; }
    .primary-action { background: var(--cp-accent); color: var(--cp-accent-fg); border: 1px solid var(--cp-accent); }
    .primary-action:hover { background: var(--cp-accent-hover); }
    .secondary-action { background: var(--cp-surface); color: var(--cp-text); border: 1px solid var(--cp-border); }
    .secondary-action:hover { border-color: var(--cp-accent); color: var(--cp-accent); }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
    .needs-section, .catalog-section { max-width: none; margin: auto; padding: 88px 5vw; }
    .needs-section > *, .catalog-section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
    .section-heading, .catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 28px; }
    .section-heading h2, .catalog-heading h1 { margin: 0; font-size: 38px; line-height: 1.15; letter-spacing: 0; }
    .section-heading-copy { display: flex; align-items: center; gap: 20px; max-width: 620px; }
    .section-heading-copy p { max-width: 430px; margin: 0; color: var(--cp-text-muted); line-height: 1.6; }
    .section-heading-copy .primary-action { flex: 0 0 auto; }
    .needs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
    .need-card { min-height: 190px; padding: 22px; text-align: left; text-decoration: none; background: var(--cp-surface); color: var(--cp-text); border: 1px solid var(--cp-border); border-top: 4px solid var(--cp-accent); border-radius: 0.625rem; box-shadow: 0 8px 24px rgba(42, 68, 111, 0.06); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
    button.need-card { width: 100%; font: inherit; cursor: pointer; }
    .need-card:hover { transform: translateY(-3px); border-color: var(--cp-accent); box-shadow: var(--cp-shadow); }
    .need-card:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }
    .need-card strong { display: block; max-width: 260px; font-size: 20px; line-height: 1.25; }
    .need-card span { display: block; margin-top: 12px; color: var(--cp-text-muted); line-height: 1.45; }
    .need-card small { display: block; margin-top: 24px; color: var(--cp-accent); font-weight: 700; }
    .card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .product-icons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 34px; }
    .product-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--cp-border); border-radius: 0.625rem; background: var(--cp-surface); box-shadow: 0 4px 14px rgba(42, 68, 111, 0.08); }
    .product-icon img { width: 22px; height: 22px; display: block; object-fit: contain; }
    .product-icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    html[data-theme="dark"] .product-icon img { filter: brightness(1.08); }
    .guidance-card { border-color: #2a446f; border-top-color: #0078d4; background: #2a446f; color: #ffffff; }
    .guidance-card span { color: #ffffff; }
    .guidance-card small { color: #ffffff; }
    .guidance-card:hover { border-color: var(--cp-accent); }
    html[data-theme="dark"] .guidance-card { border-color: #55b7ff; border-top-color: #55b7ff; background: #d7e6ff; color: #14294a; }
    html[data-theme="dark"] .guidance-card span, html[data-theme="dark"] .guidance-card small { color: #2a446f; }
    .catalog-section { max-width: none; background: var(--cp-bg); border-top: 1px solid var(--cp-border); }
    .catalog-browser { display: grid; grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr); gap: 24px; align-items: start; }
    .market-tabs { display: grid; gap: 10px; position: sticky; top: 96px; }
    .market-tab { min-height: 54px; padding: 10px 14px; border: 1px solid var(--cp-border); border-left: 4px solid transparent; border-radius: 0.625rem; background: var(--cp-surface); color: var(--cp-text-muted); font-size: 14px; font-weight: 700; text-align: left; box-shadow: 0 8px 24px rgba(42, 68, 111, 0.05); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
    .market-tab:hover { transform: translateX(3px); border-color: var(--cp-accent); color: var(--cp-accent); box-shadow: var(--cp-shadow); }
    .market-tab[aria-pressed="true"] { background: var(--cp-accent-soft); border-color: var(--cp-accent); border-left-color: var(--cp-accent); color: var(--cp-accent); }
    .skill-results { min-width: 0; }
    .skill-results-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; color: var(--cp-text-muted); font-size: 14px; font-weight: 700; }
    .lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
    .lab-grid.is-transitioning .lab-card { animation: skillCardIn 260ms ease both; }
    .lab-grid.is-transitioning .lab-card:nth-child(2) { animation-delay: 45ms; }
    .lab-grid.is-transitioning .lab-card:nth-child(3) { animation-delay: 90ms; }
    .lab-grid.is-transitioning .lab-card:nth-child(4) { animation-delay: 135ms; }
    @keyframes skillCardIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
    .lab-card { min-height: 190px; display: flex; flex-direction: column; padding: 22px; background: var(--cp-surface); border: 1px solid var(--cp-border); border-top: 4px solid var(--cp-accent); border-radius: 0.625rem; box-shadow: 0 8px 24px rgba(42, 68, 111, 0.06); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
    a.lab-card { width: 100%; color: var(--cp-text); cursor: pointer; text-align: left; text-decoration: none; }
    a.lab-card:hover { border-color: var(--cp-accent); box-shadow: var(--cp-shadow); transform: translateY(-2px); }
    a.lab-card:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }
    .lab-meta, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .pill { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 0.625rem; background: var(--cp-surface-soft); color: var(--cp-text-muted); font-size: 10px; font-weight: 650; }
    .pill-accent { background: var(--cp-accent-soft); color: var(--cp-accent); }
    .lab-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: 0; }
    .lab-card p { flex: 1; margin: 0 0 14px; color: var(--cp-text-muted); font-size: 14px; line-height: 1.45; }
    .tags { margin-bottom: 14px; }
    .lab-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--cp-border); }
    .lab-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
    .lab-link { color: var(--cp-link); font-size: 13px; font-weight: 650; text-decoration: none; }
    .lab-link:hover { text-decoration: underline; }
    .coming-soon { color: var(--cp-text-muted); font-size: 12px; font-weight: 650; }
    .modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 28px; background: var(--cp-overlay); }
    .modal[data-open="true"] { display: flex; }
    .modal-panel { width: min(920px, 100%); max-height: min(760px, calc(100vh - 56px)); overflow: auto; background: var(--cp-surface); color: var(--cp-text); border: 1px solid var(--cp-border); border-radius: 0.625rem; box-shadow: var(--cp-shadow); }
    .modal-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 26px 28px 20px; border-bottom: 1px solid var(--cp-border); }
    .modal-title { margin: 10px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
    .modal-close { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--cp-border); border-radius: 0.625rem; background: var(--cp-surface-soft); color: var(--cp-text); font-size: 22px; }
    .modal-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); gap: 24px; padding: 24px 28px 28px; }
    .modal-body h3 { margin: 0 0 8px; font-size: 17px; }
    .modal-body p, .modal-body li { color: var(--cp-text-muted); line-height: 1.55; }
    .modal-body ul { margin: 0; padding-left: 20px; }
    .modal-section + .modal-section { margin-top: 22px; }
    .install-box { background: var(--cp-bg-elevated); border: 1px solid var(--cp-border); border-radius: 0.625rem; padding: 16px; }
    .install-box code { display: block; white-space: normal; overflow-wrap: anywhere; color: var(--cp-text); }
    .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
    .detail-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 40px; align-items: start; padding: 80px max(5vw, calc((100vw - 1280px) / 2)); background: var(--cp-bg); border-bottom: 8px solid transparent; border-image: linear-gradient(90deg, #0878d1, #8746d8 48%, #e248a5 72%, #f3a14b) 1; }
    html[data-theme="portal"] .detail-hero { background: radial-gradient(700px 260px at 78% 25%, var(--cp-highlight), transparent 68%), var(--cp-bg-elevated); border-image: linear-gradient(90deg, #6b3a8f, #8f4d9d 55%, #b36a93) 1; }
    .detail-hero h1 { margin: 0; color: var(--cp-text); font-size: clamp(44px, 5vw, 68px); line-height: 1; }
    .detail-summary { max-width: 860px; color: var(--cp-text-muted); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
    .detail-install h2 { margin-top: 0; }
    .detail-visual-section { max-width: 1280px; margin: 0 auto; padding: 72px 5vw 32px; }
    .detail-section-heading { max-width: 760px; margin-bottom: 24px; }
    .detail-section-heading h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
    .detail-content { max-width: 1280px; margin: 0 auto; padding: 32px 5vw 80px; }
    .detail-copy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .detail-copy .modal-section { background: var(--cp-surface); border: 1px solid var(--cp-border); border-top: 4px solid var(--cp-accent); border-radius: 0.625rem; padding: 24px 26px; box-shadow: 0 8px 24px rgba(42, 68, 111, 0.06); }
    .detail-copy .modal-section + .modal-section { margin-top: 0; }
    .detail-copy h2 { margin: 0 0 12px; font-size: 24px; }
    .detail-copy p, .detail-copy li { color: var(--cp-text-muted); line-height: 1.55; }
    .detail-copy ul { margin: 0; padding-left: 20px; }
    .detail-visuals { display: grid; gap: 28px; align-content: start; }
    .detail-figure, .detail-empty-visual { margin: 0; background: var(--cp-surface); border: 1px solid var(--cp-border); border-top: 4px solid var(--cp-accent); border-radius: 0.625rem; padding: 22px; box-shadow: var(--cp-shadow); }
    .detail-figure img { display: block; width: 100%; border-radius: 0.5rem; border: 1px solid var(--cp-border); }
    .detail-figure figcaption, .detail-empty-visual span { display: block; margin-top: 14px; color: var(--cp-text-muted); font-size: 15px; line-height: 1.45; }
    .detail-empty-visual strong { display: block; color: var(--cp-text); font-size: 18px; }
    .detail-docs-section { max-width: 1180px; margin: 0 auto; padding: 32px 5vw 88px; }
    .rendered-markdown { background: var(--cp-surface); border: 1px solid var(--cp-border); border-top: 4px solid var(--cp-accent); border-radius: 0.625rem; padding: clamp(24px, 4vw, 44px); box-shadow: var(--cp-shadow); color: var(--cp-text-muted); }
    .rendered-markdown h2, .rendered-markdown h3, .rendered-markdown h4 { color: var(--cp-text); margin: 1.5em 0 0.5em; line-height: 1.15; }
    .rendered-markdown h2:first-child, .rendered-markdown h3:first-child { margin-top: 0; }
    .rendered-markdown p, .rendered-markdown li { font-size: 16px; line-height: 1.65; }
    .rendered-markdown a { color: var(--cp-link); font-weight: 650; }
    .rendered-markdown code { background: var(--cp-surface-soft); border: 1px solid var(--cp-border); border-radius: 0.375rem; padding: 0.1em 0.35em; color: var(--cp-text); }
    .rendered-markdown pre { overflow-x: auto; background: var(--cp-bg-elevated); border: 1px solid var(--cp-border); border-radius: 0.625rem; padding: 16px; }
    .rendered-markdown pre code { background: transparent; border: 0; padding: 0; }
    .rendered-markdown blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--cp-accent); background: var(--cp-accent-soft); color: var(--cp-text); }
    .rendered-markdown table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
    .rendered-markdown th, .rendered-markdown td { border: 1px solid var(--cp-border); padding: 10px 12px; text-align: left; vertical-align: top; }
    .rendered-markdown th { background: var(--cp-surface-soft); color: var(--cp-text); }
    footer { min-height: 92px; display: flex; justify-content: space-between; align-items: center; padding: 0 5vw; border-top: 1px solid var(--cp-border); background: var(--cp-bg); color: var(--cp-text-muted); }
    .footer-platform-logo, .footer-power-cat-logo { font-weight: 700; }
    .footer-platform-logo { display: inline-flex; align-items: center; gap: 10px; }
    .footer-platform-logo img { width: 28px; height: 28px; object-fit: contain; }
    @media (max-width: 980px) { .needs-grid, .lab-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .catalog-browser { grid-template-columns: 1fr; } .market-tabs { position: static; display: flex; overflow-x: auto; padding-bottom: 4px; } .market-tab { flex: 0 0 min(280px, 78vw); } }
    @media (max-width: 980px) { .detail-hero { grid-template-columns: 1fr; } .detail-copy { grid-template-columns: 1fr; } }
    @media (max-width: 780px) { .modal-body { grid-template-columns: 1fr; } }
    @media (max-width: 640px) { .site-header { grid-template-columns: 1fr auto; } nav a, .power-cat-lockup { display: none; } .hero { min-height: 430px; padding-top: 56px; padding-bottom: 64px; } .hero h1 { gap: 14px; font-size: 42px; } .series-mark { flex-basis: 32px; width: 32px; height: 32px; } .series-mark i { width: 19px; height: 19px; border-radius: 5px; } .catalog-line { margin-top: 38px; } .section-heading, .catalog-heading { align-items: start; flex-direction: column; gap: 12px; } .needs-grid, .lab-grid { grid-template-columns: 1fr; } footer { align-items: start; flex-direction: column; justify-content: center; gap: 4px; } }
