/* Shared owned-page theme. Native console already uses the same primary scale. */
:root[data-dukou-theme]{--dukou-accent:#2dd4bf;--dukou-hover:#14b8a6;--dukou-action-ink:#0f172b;--dukou-link:#2dd4bf;--dukou-bg:#0f172b;--dukou-side:#101b2d;--dukou-panel:#172438;--dukou-raised:#1e293b;--dukou-line:#3b4d65;--dukou-text:#f1f5f9;--dukou-muted:#b0bed1;--dukou-selected:#122131;--dukou-code:#0b1320;color-scheme:dark}
:root[data-dukou-theme].chat-workspace:not(.dark),:root[data-dukou-theme].embedded-theme:not(.dark),:root[data-dukou-theme][data-model-square-standalone]:not(.dark){--dukou-link:#0f766e;--dukou-bg:#f8fafc;--dukou-side:#f1f5f9;--dukou-panel:#ffffff;--dukou-raised:#f1f5f9;--dukou-line:#cbd5e1;--dukou-text:#0f172b;--dukou-muted:#475569;--dukou-selected:#ecfdf5;--dukou-code:#f1f5f9;color-scheme:light}
:root[data-dukou-theme]{
  --bg:var(--dukou-bg)!important;--paper:var(--dukou-bg)!important;
  --side:var(--dukou-side)!important;--rail:var(--dukou-side)!important;
  --panel:var(--dukou-panel)!important;--panel-2:var(--dukou-raised)!important;
  --surface:var(--dukou-panel)!important;--raised:var(--dukou-raised)!important;
  --line:var(--dukou-line)!important;--line-strong:var(--dukou-line)!important;
  --ink:var(--dukou-text)!important;--text:var(--dukou-text)!important;--fg:var(--dukou-text)!important;
  --muted:var(--dukou-muted)!important;--dim:var(--dukou-muted)!important;
  --green:var(--dukou-accent)!important;--accent:var(--dukou-link)!important;
  --accent-soft:var(--dukou-selected)!important;--soft:var(--dukou-selected)!important;
  --dark:var(--dukou-panel)!important;--hover:var(--dukou-raised)!important;
  --send:var(--dukou-accent)!important;--send-ink:var(--dukou-action-ink)!important;
  --grad:linear-gradient(120deg,var(--dukou-text),var(--dukou-accent))!important;
  --sq-bg:var(--dukou-bg)!important;--sq-panel:var(--dukou-panel)!important;
  --sq-raised:var(--dukou-raised)!important;--sq-border:var(--dukou-line)!important;
  --sq-text:var(--dukou-text)!important;--sq-muted:var(--dukou-muted)!important;
  --sq-link:var(--dukou-link)!important;--sq-selected:var(--dukou-selected)!important;
  --sq-code:var(--dukou-code)!important;--sq-action:var(--dukou-accent)!important;
  --sq-action-text:var(--dukou-action-ink)!important;
}
html[data-dukou-theme] body{background:var(--dukou-bg);color:var(--dukou-text)}
html[data-dukou-theme] :is(.button:not(.button-outline):not(.danger):not(.button-danger),.button-light,.btn-primary,.primary:not(.danger)){background:var(--dukou-accent)!important;border-color:var(--dukou-accent)!important;color:var(--dukou-action-ink)!important}
html[data-dukou-theme] :is(.button:not(.button-outline):not(.danger):not(.button-danger),.button-light,.btn-primary,.primary:not(.danger)):hover{background:var(--dukou-hover)!important;border-color:var(--dukou-hover)!important;color:var(--dukou-action-ink)!important;box-shadow:none}
html[data-dukou-theme] :is(.button-outline,.btn-ghost){background:transparent!important;border-color:var(--dukou-line)!important;color:var(--dukou-text)!important}
html[data-dukou-theme] :is(.header,.announcement,.footer,.nav){background:var(--dukou-bg);color:var(--dukou-muted);border-color:var(--dukou-line)}
html[data-dukou-theme] :is(.header nav a.active,.header nav a:hover,.nav nav a.active,.nav nav a:hover,.inline-link,.doc-links a,.guide-callout a,.guide-step-grid a,.guide-link-row a,.image-card-link,.guide-eyebrow,.guide-step-grid span,.pill,.savings-badge,.plaza-price-line strong){color:var(--dukou-link)!important}
html[data-dukou-theme] :is(.guide-sidebar,.guide-step-grid>div,.docs-aside,.info-grid article,.pricing-card,.image-result,.playground-chat,.playground-message,.feedback-ticket,.feedback-detail,.feedback-body,.feedback-reply,.plan-card,.plan-estimator,.inner-cta,.community-card,.install-summary>div,.hero-visual,.visual-body,.code-box){background:var(--dukou-panel)!important;border-color:var(--dukou-line)!important;color:var(--dukou-text)}
html[data-dukou-theme] :is(.pricing-card-head,.guide-table th,.copy-box,.plaza-price-line,.install-command>span){background:var(--dukou-raised)!important;border-color:var(--dukou-line)!important;color:var(--dukou-text)}
html[data-dukou-theme] :is(.guide-table td,.docs-content pre,.install-command,.code){background:var(--dukou-code)!important;color:var(--dukou-text)}
html[data-dukou-theme] :is(.guide-sidebar a,.guide-lead,.guide-section p,.guide-checklist,.guide-callout p,.feedback-detail p,.playground-status:not(.error),.feedback-status:not(.error),.image-status:not(.error),.plan-estimator p,.plan-card p,.plan-card small,.plaza-summary,.plaza-status,.plaza-price-line small,.plaza-card-note){color:var(--dukou-muted)!important}
html[data-dukou-theme] :is(.guide-callout,.guide-bottom-cta,.cta,.playground-message-user,.pill,.savings-badge,.price-notice.published){background:var(--dukou-selected)!important;border-color:var(--dukou-line)!important;color:var(--dukou-text)}
html[data-dukou-theme] .guide-callout{border-left-color:var(--dukou-accent)!important}
html[data-dukou-theme] :is(.guide-sidebar a.active,.guide-sidebar a:hover,.install-tabs button[aria-selected=true],.mode-tabs button[aria-pressed=true]){background:var(--dukou-selected)!important;border-color:var(--dukou-link)!important;color:var(--dukou-link)!important}
html[data-dukou-theme] :is(.install-field select,.install-tabs button,.playground-form select,.playground-form input,.playground-form textarea,.feedback-form input,.feedback-form textarea,.feedback-form select,.feedback-admin-form textarea,.feedback-detail select,.plan-estimator input){background:var(--dukou-panel)!important;border-color:var(--dukou-line)!important;color:var(--dukou-text)}
html[data-dukou-theme] :is(.install-command button,.copy-box button){background:var(--dukou-selected);color:var(--dukou-link)}
html[data-dukou-theme] .plaza-card{background:var(--dukou-panel);border-color:var(--dukou-line);box-shadow:none}
html[data-dukou-theme] .plaza-card h2{color:var(--dukou-text)}
html[data-dukou-theme] .logo-mark{background-color:var(--dukou-selected);border-color:var(--dukou-line);color:var(--dukou-link)}
html[data-dukou-theme] .brand svg path[stroke="#5fe3a1"]{stroke:var(--dukou-accent)}
html[data-dukou-theme] :is(.card,.pcard,.step,.global,.editor,aside){border-color:var(--dukou-line)}
html[data-dukou-theme] .card:hover{border-color:var(--dukou-accent)}
html[data-dukou-theme] .card .tag,html[data-dukou-theme] .pcard .mx{border-color:var(--dukou-link)}
html[data-dukou-theme] .code .s{color:var(--dukou-link)}
html[data-dukou-theme] .code .c{color:var(--dukou-muted)}
html[data-dukou-theme] .workspace-layout .rail-button.active{background:var(--dukou-selected);color:var(--dukou-link)}
html[data-dukou-theme] :focus-visible{outline-color:var(--dukou-link)}
html[data-dukou-theme] ::selection{background:var(--dukou-selected);color:var(--dukou-text)}

/* Provider distinctions are deliberately scoped exceptions to the shared accent. */
html[data-dukou-theme] [data-platform="deepseek"]{--provider-ink:#93b4ff;--provider-soft:#172b4d}
html[data-dukou-theme] [data-platform="openai"]{--provider-ink:#6ee7b7;--provider-soft:#13362d}
html[data-dukou-theme] [data-platform="anthropic"]{--provider-ink:#fdba8c;--provider-soft:#402b22}
html[data-dukou-theme] [data-platform="grok"]{--provider-ink:#e2e8f0;--provider-soft:#293344}
html[data-dukou-theme]:not(.dark) [data-platform="deepseek"]{--provider-ink:#244fbd;--provider-soft:#edf2ff}
html[data-dukou-theme]:not(.dark) [data-platform="openai"]{--provider-ink:#086644;--provider-soft:#e8f7ee}
html[data-dukou-theme]:not(.dark) [data-platform="anthropic"]{--provider-ink:#934118;--provider-soft:#fff1e7}
html[data-dukou-theme]:not(.dark) [data-platform="grok"]{--provider-ink:#334155;--provider-soft:#edf2f7}
html[data-dukou-theme] [data-square-groups] button[data-platform]{color:var(--provider-ink,var(--dukou-text));border-color:var(--dukou-line)}
html[data-dukou-theme] [data-square-groups] button[data-platform].is-active{background:var(--provider-soft,var(--dukou-selected));border-color:var(--provider-ink,var(--dukou-link));color:var(--provider-ink,var(--dukou-link))}
html[data-dukou-theme] [data-square-provider][data-platform]{color:var(--provider-ink,var(--dukou-text));background:var(--provider-soft,var(--dukou-selected));border-color:var(--provider-ink,var(--dukou-line))}
