/* Reference theme control styles. */
/* Shared controls. The established dark theme remains in site-theme.css. */
.ty-links { margin-left:auto; }
.ty-nav-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:9px 12px; border:1px solid #52617a; border-radius:7px; background:transparent; color:#e1e9f6; cursor:pointer; font:500 12px/1.4 'DM Sans',Arial,sans-serif; }
.theme-toggle:hover { background:#22334e; border-color:#91a7c5; }
.theme-toggle:focus-visible { outline:2px solid #9aacc5; outline-offset:3px; }
.theme-toggle svg { width:17px; height:17px; flex-shrink:0; }
.theme-moon { display:none; }
html[data-theme="light"] .theme-sun { display:none; }
html[data-theme="light"] .theme-moon { display:block; }
.app-theme-control { display:flex; justify-content:flex-end; max-width:1000px; margin:20px auto 0; padding:0 24px; }
@media(max-width:1000px) and (min-width:721px) { .ty-nav { gap:16px; } .ty-links { gap:18px; } .theme-toggle [data-theme-label] { display:none; } }
@media(max-width:720px) { .ty-nav { gap:12px; } .ty-nav-actions { margin-left:auto; gap:8px; } .theme-toggle { width:40px; min-height:40px; padding:9px; } .theme-toggle [data-theme-label] { display:none; } .ty-nav-actions .mobile-menu { min-height:40px; } }

/* One light palette for every product, retained guide, and interactive state. */
:root[data-theme="light"] {
  color-scheme:light;
  --paper:#f7f8fb; --surface:#ffffff; --ink:#17263f; --text:#17263f;
  --quiet:#526078; --muted:#526078; --line:#d5dce7; --border:#d5dce7;
  --primary:#a84118; --primary-strong:#8d3211; --accent:#a84118;
  --orange:#a84118; --guard:#a84118; --offer:#a84118; --rescue:#a84118;
  --dark-bg:#eef2f7; --dark-surface:#ffffff; --dark-border:#d5dce7;
  --dark-text:#17263f; --dark-muted:#526078; --color-icon:#526078;
  --color-bg-surface:#ffffff; --color-border:#d5dce7;
  --emerald-surface:#ffffff; --violet-surface:#ffffff;
  --light-panel:#eef2f7; --light-link:#a84118; --light-hover:#e7edf5;
}
html[data-theme="light"] body,
html[data-theme="light"] body:has(.home-hero),
html[data-theme="light"] :is(.playbook-shell,.playbook-hero,.kit-section) { background:var(--paper); color:var(--ink); }
html[data-theme="light"] .ty-header { background:#f7f8fbf7; border-color:var(--line); color:var(--ink); }
html[data-theme="light"] :is(.ty-header .ty-brand,.ty-footer .ty-brand,.nav-dropdown>button,.ty-links>a:not(.nav-contact)) { color:var(--ink); }
html[data-theme="light"] :is(.ty-links>a:hover,.nav-dropdown>button:hover,.ty-footer a:hover) { color:var(--light-link); }
html[data-theme="light"] .dropdown-menu { background:#fff; border-color:var(--line); color:var(--ink); box-shadow:0 15px 35px #17263f14; }
html[data-theme="light"] .dropdown-menu a:hover { background:var(--light-panel); }
html[data-theme="light"] :is(.dropdown-menu small,.ty-footer p,.ty-footer li a,.ty-footer small,.footer-end) { color:var(--quiet); }
html[data-theme="light"] :is(.mobile-menu,.theme-toggle) { color:var(--ink); border-color:#aebbd0; background:transparent; }
html[data-theme="light"] .theme-toggle:hover { background:var(--light-hover); border-color:#7489a7; }
html[data-theme="light"] .theme-toggle:focus-visible { outline-color:#526b8b; }
html[data-theme="light"] .ty-footer { background:#eef2f7; border-color:var(--line); color:var(--ink); }
html[data-theme="light"] .footer-end { border-color:var(--line); }
html[data-theme="light"] :is(main h1,main h2,main h3,main h4,.ty-footer h2,.product-lockup,.tile-copy h3) { color:var(--ink); }
html[data-theme="light"] :is(.kit-hero h1,.hero-section h1,.hero-section .hero-inner h1) { color:var(--ink)!important; }
html[data-theme="light"] :is(.eyebrow,.simple-hero .eyebrow,.section-tag,.guide-eyebrow,.playbook-kicker,.playbook-result__kicker,.source-kicker,.product-hero .eyebrow,.partner-banner .eyebrow,.signup-section .eyebrow,.hero-eyebrow) { color:var(--light-link)!important; }
html[data-theme="light"] :is(.home-hero h1 em,.company-block h2 em,.principle>span,.step-number,.about-stat-num,.stat-number,.partner-steps li>span,.partner-product-list svg,.partner-revenue-table strong,.preview-gallery figcaption span,.search-count,.cs-retry-step-delay) { color:var(--light-link); }
html[data-theme="light"] :is(.hero-aside p,.principle p,.section-line>span,.product-hero p:not(.eyebrow),.product-hero.rescue p:not(.eyebrow),.product-tile .tile-copy>p,.product-tile.offer .tile-copy>p,.product-tile .platform-label,.product-tile.offer .platform-label,.signup-section p,.partner-banner p,.partnership-hero>div>p:not(.eyebrow),.partnership-intro-note p,.partnership-intro-note li,.partner-product-list small,.partner-closing p:not(.eyebrow)) { color:var(--quiet); }
html[data-theme="light"] :is(.product-tile,.product-tile.offer,.product-hero,.product-hero.rescue,.signup-section,.partner-banner,.about-stats,.stats-strip,.kit-cta,.cta-dark,.dev-store-banner,.recovery-panel,.partnership-intro-note,.partner-options-grid article,.partner-closing) { background:#fff; border-color:var(--line); color:var(--ink); }
html[data-theme="light"] :is(.kit-hero,.hero-section,.mid-cta,.benefits-strip,.problem-section,.features-section,.partner-types-section,.partner-form-section,.faq-section,.mockup-section,.why-section) { background:var(--light-panel)!important; border-color:var(--line); color:var(--ink)!important; }
html[data-theme="light"] :is(.kit-hero p.lead,.hero-section p,.hero-section .hero-sub) { color:var(--quiet)!important; }
html[data-theme="light"] :is(.kit-hero p.benefits-line,.hero-section .hero-eyebrow) { color:var(--light-link)!important; }
html[data-theme="light"] .kit-section-alt { background:var(--light-panel); }
html[data-theme="light"] body:has(.product-hero) .benefit-grid article { background:#fff; border-color:var(--line); }
html[data-theme="light"] :is(.product-hero figure,.product-hero.rescue figure,.product-hero .product-visual,.product-hero.rescue .product-visual,.product-tile .product-visual,.product-tile.offer .product-visual,.preview-gallery figure,.product-overview-illustration) { background:var(--light-panel); border-color:var(--line); }
html[data-theme="light"] :is(.product-hero figcaption,.product-tile .demo-label,.product-tile.offer .demo-label,.preview-gallery figcaption) { color:var(--quiet); }
html[data-theme="light"] :is(.product-hero .availability,.product-hero.rescue .availability,.product-tile .status-pill,.product-tile.offer .status-pill,.neutral-badge) { background:#edf1f7; border-color:#c6d1e0; color:#41536e; }
html[data-theme="light"] :is(.product-icon,.offer-icon,.product-tile .product-icon,.product-tile.offer .product-icon,.product-icon.offer-icon,.feature-icon) { background:#fff0e5!important; color:var(--light-link)!important; }
html[data-theme="light"] :is(.tile-footer .text-arrow,.hero-aside .text-arrow,.signup-section a:not(.btn),.kit-hero-actions .tertiary-link,.kit-cta .link-row a) { color:var(--light-link); border-color:#bd8b71; text-decoration-color:#bd8b71; }
html[data-theme="light"] .tile-footer .text-arrow:hover { color:#80300f!important; border-color:#80300f; }
html[data-theme="light"] :is(.text-link,.page a,.guide-content a:not(.card-doc),.guide-body a,.content-section p a,.content-section li a,.content-section details a,.playbook-section p a,.playbook-section li a,.source-list a,.editorial-trust a,.guide-pager__title,.full-pipeline-disclosure summary,.inbox-message a,.inbox-shell a,.form-hint a,.form-privacy a,.contact-mobile-details a) { color:var(--light-link); text-decoration-color:#bd8b71; }
html[data-theme="light"] :is(.text-arrow:hover,.text-link:hover,.page a:hover,.guide-content a:hover,.content-section a:hover,.source-list a:hover,.partner-product-list>a:hover h3) { color:#80300f; }
html[data-theme="light"] :is(.btn.secondary,.portfolio-button.secondary,.button-ghost,.product-hero .portfolio-button.secondary,.signup-section .btn.secondary,.kit-hero .button:not(.button-accent)) { background:transparent; border-color:#8496b0; color:var(--ink)!important; }
html[data-theme="light"] :is(.btn.secondary:hover,.portfolio-button.secondary:hover,.button-ghost:hover,.product-hero .portfolio-button.secondary:hover) { background:var(--light-hover); border-color:#6c819f; color:var(--ink)!important; }
html[data-theme="light"] .partner-banner .btn.secondary { background:#ff9969; border-color:#ff9969; color:#14213a!important; }
html[data-theme="light"] .partner-banner .btn.secondary:hover { background:#ffb18b; border-color:#ffb18b; }
html[data-theme="light"] .partner-banner .btn.secondary { background:#ff9969; border-color:#ff9969; color:#14213a!important; }
html[data-theme="light"] .content-section details { background:transparent!important; }
html[data-theme="light"] .signup-controls .portfolio-button { background:#ff9969; border-color:#ff9969; color:#14213a!important; }
html[data-theme="light"] .signup-controls .portfolio-button:disabled { opacity:.72; }
html[data-theme="light"] .contact-topic-field select { background-color:#fff; border-color:#96a6be; color:var(--ink); }
html[data-theme="light"] .contact-topic-help { background:var(--light-panel); border-color:var(--line); }
html[data-theme="light"] :is(.resource-row:hover,.resource-filter:hover,.quick-filter:hover) { background:var(--light-hover); }
html[data-theme="light"] :is(.resource-row:hover h3,.resource-filter:hover,.quick-filter:hover) { color:var(--ink); }
html[data-theme="light"] :is(.resource-toolbar span,.resource-empty,.resource-list small,.resource-row p,.resource-row>span:first-child,.section-line>span,.about-stat-label,.benefit-item p,.problem-card p,.help-card p,.use-case-card p,.use-case-card li,.step-card p,.faq-list details p,.kit-section .sub) { color:var(--quiet); }
html[data-theme="light"] :is(.resource-list a,.content-section summary,.faq-list summary,.about-value-card strong,.benefit-item strong,.problem-card h3,.help-card h3,.use-case-card h3,.step-card h3) { color:var(--ink); }
html[data-theme="light"] :is(.product-section-nav,.content-section,.section-line,.resource-rows,.resource-row,.principles,.principle,.benefit-grid article,.partner-product-list,.partner-product-list>a,.partner-steps li,.contact-mobile-details) { border-color:var(--line); }
html[data-theme="light"] :is(.about-value-card,.card,.partner-card,.problem-card,.help-card,.use-case-card,.step-card,.cs-outcome-card,.faq-list details,.inbox-message,.contact-card) { background:#fff; border-color:var(--line); color:var(--ink); }
html[data-theme="light"] .card.page { background:transparent; }
html[data-theme="light"] :is(.cs-retry-step,.revenue-note) { background:var(--light-panel); border-color:var(--line); color:var(--quiet); }
html[data-theme="light"] :is(.partner-revenue-table,.revenue-table,.revenue-table tbody td) { background:#fff; border-color:var(--line); color:var(--ink); }
html[data-theme="light"] :is(.partner-table-wrap,.partner-revenue-table th,.partner-revenue-table td) { border-color:var(--line); }
html[data-theme="light"] :is(.partner-revenue-table thead th,.revenue-table thead th) { background:#e9eef5; color:#41536e; }
html[data-theme="light"] .revenue-table tbody tr:nth-child(even) td { background:#f4f6fa; }
html[data-theme="light"] .revenue-table .highlight-row td { color:var(--light-link)!important; }

/* Fields keep a quiet slate focus treatment in both themes. */
html[data-theme="light"] :is(.support-choice,.resource-toolbar input,.search-input,.partner-form input,.partner-form select,.partner-form textarea,.form-field input,.form-field select,.form-field textarea,.playbook-search-input) { background-color:#fff; border-color:#96a6be; color:var(--ink); }
html[data-theme="light"] :is(input::placeholder,textarea::placeholder) { color:#63738b; }
html[data-theme="light"] select option { background:#fff; color:var(--ink); }
html[data-theme="light"] :is(.support-choice:focus,.resource-toolbar input:focus,.search-input:focus,.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.playbook-search-input:focus) { border-color:#607b9d; outline:2px solid #607b9d40; outline-offset:0; }
html[data-theme="light"] :is(.resource-filter,.quick-filter) { background:#eef2f7; color:#41536e; border-color:#bac7d9; }
html[data-theme="light"] :is(.resource-filter[aria-pressed=true],.quick-filter[aria-pressed=true],.resource-filter[aria-pressed=true]:hover,.quick-filter[aria-pressed=true]:hover,.step-marker,.focused-pipeline__number,.decision-list li::before) { background:#ffad82; color:#14213a; border-color:#e99a71; }
html[data-theme="light"] :is(.contact-intro>p:not(.eyebrow),.contact-help a,.contact-hours p,.contact-addresses a,.contact-lead,.form-field label span,.form-hint,.form-privacy,#contact-success p,.contact-mobile-details,.inbox-meta,.inbox-message p) { color:var(--quiet); }
html[data-theme="light"] :is(.form-field label,.contact-help h2) { color:var(--ink); }
html[data-theme="light"] :is(.contact-help a,.inbox-shell>header) { border-color:var(--line); }
html[data-theme="light"] .contact-help a:hover { color:var(--light-link); }
html[data-theme="light"] #contact-status { color:#a12838; }
html[data-theme="light"] .form-field [aria-invalid=true] { border-color:#ba394a; }
html[data-theme="light"] select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23526078' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important; }
html[data-theme="light"] :is(summary::after,.faq-list summary::after) { border-color:#526078; }

/* Technical documentation, tables, diagnostic steps, and status colors. */
html[data-theme="light"] :is(.guide-page,.guide-layout,.guide-content,.guide-body) { color:var(--ink); }
html[data-theme="light"] :is(.guide-nav,.step-content,.card-doc,.detail-part,.help-section,.screenshot-placeholder,.guide-pager a,.playbook-main,.playbook-search-panel,.playbook-panel,.playbook-card,.incident-snapshot,.source-list,.product-boundary,.stage-link-card,.playbook-result,.playbook-nav__box,.playbook-toc__box) { background:#fff; color:var(--ink); border-color:var(--line); }
html[data-theme="light"] .guide-sidebar { background:transparent; }
html[data-theme="light"] :is(.guide-nav a,.playbook-nav a,.playbook-toc a) { color:#41536e; }
html[data-theme="light"] :is(.guide-nav a:hover,.guide-pager a:hover,.playbook-card:hover,.playbook-result:hover,.stage-link-card:hover,.playbook-nav a:hover,.playbook-toc a:hover) { background:var(--light-hover); color:var(--ink); border-color:#96a9c3; }
html[data-theme="light"] :is(.guide-nav a.nav-link-active,.playbook-nav a[aria-current=page],.pipeline-stage.is-active) { background:#fff0e5; color:#8d3211; border-color:#d9b69e; }
html[data-theme="light"] :is(.guide-nav__heading,.guide-subtitle,.card-doc__desc,.detail-part__desc,.help-desc,.guide-pager__label,figcaption,.playbook-result span:last-child,.playbook-card span,.playbook-card p,.stage-link-card span,.snapshot-label,.pipeline-stage span,.focused-pipeline__stage span:last-child,.playbook-section p,.playbook-section li,.editorial-trust,.playbook-nav__heading,.playbook-toc__heading) { color:var(--quiet); }
html[data-theme="light"] :is(.playbook-result strong,.playbook-card strong,.stage-link-card strong,.snapshot-value,.pipeline-stage strong,.focused-pipeline__stage strong,.editorial-trust strong) { color:var(--ink); }
html[data-theme="light"] :is(.playbook-result__kicker,.playbook-card .source-kicker) { color:var(--light-link)!important; }
html[data-theme="light"] :is(.editorial-trust,.pipeline-stage,.focused-pipeline__stage,.decision-list li,.tip) { background:var(--light-panel); color:var(--ink); border-color:#c7d2e2; }
html[data-theme="light"] .tip { border-left-color:#d07543; }
html[data-theme="light"] .tip a { color:var(--light-link); }
html[data-theme="light"] :is(.tag,.source-marker,.uc-badge) { background:#edf1f7!important; color:#41536e!important; border-color:#c6d1e0; }
html[data-theme="light"] .playbook-table th { background:#e9eef5; color:var(--ink); }
html[data-theme="light"] .playbook-table td { background:#fff; color:#41536e; }
html[data-theme="light"] .playbook-table tr:nth-child(even) td { background:#f4f6fa; }
html[data-theme="light"] :is(.playbook-table th,.playbook-table td,.table-scroll) { border-color:var(--line); }
html[data-theme="light"] :is(.recovery-gate,.playbook-empty) { background:#fff5e8; border-color:#d8ba8f; color:#71440e; }
html[data-theme="light"] :is(.recovery-gate p,.recovery-gate li) { color:#71440e; }
html[data-theme="light"] .search-reset:disabled { color:#63738b!important; border-color:#bdc9d9; }
html[data-theme="light"] code { background:#e9eef5; color:#3b4f6b; border-color:#c6d1e0; }
html[data-theme="light"] :is(.code-block,pre) { background:#edf1f7; color:#283e5c; border-color:#c6d1e0; }
html[data-theme="light"] :is(.code-block code,pre code) { background:transparent; color:#283e5c; }
html[data-theme="light"] :is(.status-pill--delivered,.code-badge--success) { background:#e3f3eb; color:#216346; border-color:#9dc7b2; }
html[data-theme="light"] .status-pill--failed { background:#fbe9ed; color:#a12838; border-color:#d8a4ae; }
html[data-theme="light"] :is(.status-pill--pending,.badge--write) { background:#fff1d7; color:#78501b; border-color:#d4bc91; }
html[data-theme="light"] .badge--read { background:#e7eefb; color:#315887; }
html[data-theme="light"] body:not(:has(main)):not(:has(.ty-header)) a { color:var(--light-link); }
html[data-theme="light"] .brand-period { color:#b44a20; }
html[data-theme="light"] body:has(.product-hero.rescue) .content-section .eyebrow { color:var(--light-link)!important; }
html[data-theme="light"] .mockup-topic-tag--orders { color:#315887; }
html[data-theme="light"] :is(.mockup-topic-tag--products,.mockup-chip--delivered) { color:#216346; }
html[data-theme="light"] .mockup-chip--failed { color:#a12838; }
@media(max-width:900px) {
  .ty-nav { height:73px; gap:12px; }
  .ty-nav-actions { margin-left:auto; gap:8px; }
  .theme-toggle { width:40px; min-height:40px; padding:9px; }
  .theme-toggle [data-theme-label] { display:none; }
  .mobile-menu { display:block; min-height:40px; border:1px solid #52617a; border-radius:5px; background:#18263e; color:#f7f9ff; padding:6px 10px; font-size:12px; }
  .ty-links { display:none; position:absolute; top:73px; left:0; right:0; padding:20px; background:#0d172b; border-bottom:1px solid #34435b; align-items:stretch; gap:16px; margin:0; }
  .ty-links.is-open { display:flex; flex-direction:column; }
  html[data-theme="light"] .ty-links { background:var(--paper); border-color:var(--line); }
}
@media(max-width:360px) { .ty-brand { font-size:21px; gap:7px; } .ty-nav-actions { gap:6px; } .ty-nav { gap:8px; } }
@media(max-width:720px) { html[data-theme="light"] .ty-links { background:var(--paper); border-color:var(--line); } }
/* Keep the product hero inside the narrower tablet container. */
@media (min-width:721px) and (max-width:1000px) {
  .product-hero { margin-inline:0; }
}

/* Launch updates, product evidence, and the private owner workspace. */
.launch-form { max-width:660px; margin:25px 0; }
.launch-form-row { display:flex; align-items:flex-end; gap:12px; }
.launch-form-row .form-field { flex:1; margin:0; }
.launch-form-row .btn { min-height:47px; white-space:nowrap; }
.launch-form input:focus { outline:2px solid #8298b6; outline-offset:2px; border-color:#8298b6; }
.launch-status { font-size:16px; margin:16px 0 0; font-weight:500; }
.launch-status:empty { display:none; }
.launch-status[data-error="true"] { color:#ffbdc2; }
html[data-theme="light"] .launch-status[data-error="true"] { color:#a72d38; }
.product-proof { padding:42px 0; border-bottom:1px solid var(--line); }
.product-proof h2 { font-size:30px; margin-bottom:12px; }
.product-proof p { color:var(--quiet); font-size:14px; }
.proof-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:24px; }
.proof-links a { display:flex; flex-direction:column; gap:12px; text-decoration:none; padding:23px; border:1px solid var(--line); background:#17263f; border-radius:9px; }
.proof-links a:hover { border-color:#8298b6; }
.proof-links strong { font-size:16px; line-height:1.5; }
.proof-links span { font-size:12px; color:var(--quiet); }
.proof-links .proof-label { color:#ffad82; }
html[data-theme="light"] .proof-links a { background:white; }
html[data-theme="light"] .proof-links .proof-label { color:var(--light-link); }
.inbox-nav { display:flex; flex-wrap:wrap; gap:24px; margin-bottom:32px; }
.inbox-shell section { scroll-margin-top:24px; margin-bottom:36px; }
.metric-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.metric-card { border:1px solid var(--line); border-radius:9px; background:#17263f; padding:20px; display:flex; flex-direction:column; gap:8px; }
.metric-card strong { font-size:32px; }
.metric-card span { font-size:13px; color:var(--quiet); }
.inbox-section-heading { display:flex; justify-content:space-between; align-items:baseline; gap:20px; }
.inbox-table-wrap { overflow:auto; }
.inbox-table { width:100%; border-collapse:collapse; text-align:left; font-size:14px; }
.inbox-table :is(th,td) { padding:14px; border-bottom:1px solid var(--line); }
.inbox-shell .small-note { color:var(--quiet); overflow-wrap:anywhere; }
html[data-theme="light"] .metric-card { background:white; }
@media(max-width:720px) {
 .launch-form-row { flex-direction:column; align-items:stretch; }
 .launch-form-row .form-field { width:100%; }
 .proof-links { grid-template-columns:1fr; }
 .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .inbox-shell>header { align-items:flex-start; flex-direction:column; gap:15px; }
 .inbox-shell h1 { font-size:34px; }
 .inbox-section-heading { flex-wrap:wrap; gap:0; }
}
