/* Shared display controls and an explicit high-contrast daylight palette. */
html { font-size:calc(100% * var(--text-scale,1)); --workspace-header-height:76px; }
.topbar-actions,.api-display-actions { display:flex; align-items:center; justify-content:flex-end; gap:18px; min-width:0; }
.topbar { height:auto; min-height:76px; gap:20px; padding-top:10px; padding-bottom:10px; }
.breadcrumb-label { min-width:0; overflow-wrap:anywhere; }
.display-controls,.text-size-controls { display:inline-flex; align-items:center; gap:3px; }
.display-controls { flex-shrink:0; gap:8px; }
.text-size-controls { border-left:1px solid var(--border); padding-left:8px; }
.display-control { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-width:36px; min-height:38px; padding:6px; background:#ffffff08; border:1px solid #c4ab773d; border-radius:7px; color:#eee7d8; font-size:.75rem; line-height:1.25; font-weight:600; cursor:pointer; }
.display-control:hover { background:#c4ab7724; border-color:#c4ab77; }
.display-control:focus-visible { outline:3px solid #e1c58a; outline-offset:2px; }
.display-control:disabled { opacity:.45; cursor:not-allowed; }
.display-control .ui-icon { display:block; width:17px; height:17px; }
.display-control [hidden] { display:none!important; }
.text-size-value { font-size:.6875rem; font-variant-numeric:tabular-nums; min-width:48px; }
.theme-toggle { padding-left:9px; padding-right:9px; }
.account-avatar { flex-shrink:0; }
.account-avatar .avatar { font-size:17px; }
.account-profile { max-width:170px; overflow-wrap:anywhere; }
.public-display-controls { position:absolute; top:16px; right:24px; z-index:30; padding:7px; border-radius:10px; background:#22221fed; }
.public-main { padding-top:90px; }
.sidebar .brand { font-size:25px; }
.sidebar nav a .nav-label { min-width:0; overflow-wrap:anywhere; }
.sidebar nav a .ui-icon { flex-shrink:0; }
.page-heading { flex-wrap:wrap; }
:is(h1,h2,h3,.api-wordmark,.guide-summary) { overflow-wrap:anywhere; }
.main-content,.api-docs-main { overflow-wrap:anywhere; }
.guide-search-bar { top:var(--workspace-header-height); }
.guide-navigation { top:calc(var(--workspace-header-height) + 126px); max-height:calc(100dvh - var(--workspace-header-height) - 150px); }
.guide-section,.guide-entry,.guide-operation { scroll-margin-top:calc(var(--workspace-header-height) + 145px); }
.import-provider-table th { background:var(--canvas); }

html[data-bs-theme="light"] {
    color-scheme:light; --ink:#182230; --muted:#475467; --accent:#765019; --nav:#fff; --canvas:#f5f6f8; --border:#cbd2da; --glass:#fff; --shadow:0 4px 18px #18223008;
    --bs-body-color:#182230; --bs-body-bg:#f5f6f8; --bs-secondary-color:#475467; --bs-secondary-rgb:71,84,103; --bs-primary:#765019; --bs-primary-rgb:118,80,25; --bs-border-color:#cbd2da; --bs-link-color:#6a4816; --bs-link-hover-color:#432d0c;
}
html[data-bs-theme="light"] body { background:#f5f6f8; color:#182230; }
html[data-bs-theme="light"] body::before { opacity:.025; }
html[data-bs-theme="light"] :is(.sidebar,.topbar,.api-docs-top) { background:#fff; border-color:#cbd2da; box-shadow:0 1px 8px #18223008; }
html[data-bs-theme="light"] :is(.panel,.stat-card,.overview-card,.pipeline-card,.kanban-card,.kanban-column,.pipeline-move-dialog,.api-secret-panel,.guide-search-bar) { background:#fff; color:#182230; border-color:#cbd2da; box-shadow:var(--shadow); }
html[data-bs-theme="light"] :is(h1,h2,h3,h4,h5,h6,strong,dd,.detail-field dd,.stat-card strong,.guide-field-label) { color:#182230!important; }
html[data-bs-theme="light"] :is(p,small,dt,label,li,summary,pre,code,.text-secondary,.text-muted,.template-help,.api-help,.breadcrumb-label,.sidebar-foot,.nav-group,.eyebrow,.scope-label,.heading-date,.snapshot-caption,.guide-field-tags,.guide-operation-meta,.reference-status,.reference-help>p,.reference-help>small,.record-count-label) { color:#475467!important; }
html[data-bs-theme="light"] :is(a,.function-guide-link,.guide-permalink,.api-text-button,.reference-actions>button,.placeholder-insert,.password-toggle,.hero-link) { color:#6a4816; }
html[data-bs-theme="light"] :is(a:hover,.reference-actions>button:hover) { color:#432d0c; }
html[data-bs-theme="light"] :is(.brand,.api-wordmark,.account>a:not(.notification-link)) { color:#182230; }
html[data-bs-theme="light"] :is(.brand small,.sidebar-foot span,.heading-date small,.stat-card small,.stat-label,.task-list small,.snapshot-foot,.snapshot-foot>span,.summary-row span,.guide-field-tags span,.pipeline-card-link>p,.pipeline-card-rent>span,.pipeline-card-open,.pipeline-card-id,.pipeline-count,.pipeline-workflow-hint,.pipeline-column-empty,.pipeline-column-count,.architecture-caption,.architecture-caption span,.placeholder-group) { color:#475467!important; }
html[data-bs-theme="light"] .sidebar nav a { color:#344054; }
html[data-bs-theme="light"] .sidebar nav a:hover { background:#f0f2f5; color:#182230; }
html[data-bs-theme="light"] .sidebar nav a.active { background:#f4ebda; border-color:#d5bc8e; color:#5d3f13; }
html[data-bs-theme="light"] .sidebar nav a.active::before { background:#765019; box-shadow:none; }
html[data-bs-theme="light"] :is(.sidebar-foot,.panel-foot,.snapshot-foot,.workspace-footer,.summary-row,.task-list>a,.guide-operation,.guide-faq,.guide-state,.placeholder-entry,.pipeline-card-open) { background:transparent; border-color:#d6dce2; }
html[data-bs-theme="light"] :is(.brand-mark,.avatar,.stat-icon,.task-icon,.snapshot-icon,.all-clear-icon,.guide-empty-icon) { color:#6a4816!important; background:#f4ebda!important; border-color:#cdb88e; box-shadow:none; }
html[data-bs-theme="light"] :is(.notification-link,.signout-button,.guide-permalink,.hero-kicker,.hero-status,.guide-edition,.guide-edition>.ui-icon) { color:#5d491f; }
html[data-bs-theme="light"] .table { --bs-table-bg:transparent; --bs-table-color:#182230; --bs-table-border-color:#d6dce2; --bs-table-striped-color:#182230; --bs-table-hover-color:#182230; --bs-table-hover-bg:#eef2f6; }
html[data-bs-theme="light"] .table th { background:#edf0f4; color:#344054!important; border-color:#d6dce2; }
html[data-bs-theme="light"] .table tbody tr:hover { background:#f5f7fa; }
html[data-bs-theme="light"] :is(.form-control,.form-select,.guide-search-input,.guide-search-input input) { color:#182230; background-color:#fff; border-color:#8794a4; box-shadow:none; }
html[data-bs-theme="light"] :is(.form-control::placeholder,.guide-search-input input::placeholder) { color:#576579; opacity:1; }
html[data-bs-theme="light"] :is(.form-control:focus,.form-select:focus,.guide-search-input:focus-within) { color:#182230; background:#fff; border-color:#765019; box-shadow:0 0 0 3px #76501926; }
html[data-bs-theme="light"] :is(.form-control:disabled,.form-select:disabled) { color:#475467; background:#e9edf2; }
html[data-bs-theme="light"] .form-select option { color:#182230; background:#fff; }
html[data-bs-theme="light"] .form-check-input { background-color:#fff; border-color:#677586; }
html[data-bs-theme="light"] .form-check-input:checked { background-color:#765019; border-color:#765019; }
html[data-bs-theme="light"] :is(.btn-primary,.btn-hero) { color:#fff!important; background:#765019; border-color:#765019; box-shadow:none; }
html[data-bs-theme="light"] :is(.btn-primary:hover,.btn-primary:focus-visible,.btn-hero:hover) { color:#fff!important; background:#55370f; border-color:#55370f; }
html[data-bs-theme="light"] :is(.btn-primary:active,.btn-hero:active) { color:#fff!important; background:#432d0c!important; border-color:#432d0c!important; }
html[data-bs-theme="light"] :is(.btn-light,.btn-outline-primary,.btn-outline-secondary,.display-control,.mobile-menu,.pipeline-move-button) { color:#493718; background:#fff; border-color:#929dab; }
html[data-bs-theme="light"] :is(.btn-light:hover,.btn-outline-primary:hover,.btn-outline-secondary:hover,.display-control:hover,.pipeline-move-button:hover) { color:#35250b; background:#f4ebda; border-color:#765019; }
html[data-bs-theme="light"] :focus-visible { outline-color:#765019; }
html[data-bs-theme="light"] :is(.display-control span,.btn span) { color:inherit!important; }
html[data-bs-theme="light"] .pill { background:#e9edf2; color:#344054; border-color:#cbd2da; }
html[data-bs-theme="light"] :is(.attention-pill,.sidebar .badge,.pill-draft,.pill-pending,.pill-reserved,.pill-submitted,.pill-proposed) { background:#fff1d1!important; color:#66420b!important; border-color:#b99b65; }
html[data-bs-theme="light"] :is(.pill-won,.pill-signed,.pill-confirmed,.pill-verified,.pill-accepted,.pill-paid,.pill-approved) { background:#e2f2e9; color:#155b38; }
html[data-bs-theme="light"] :is(.pill-lost,.pill-rejected,.pill-cancelled,.pill-no_show) { background:#fce8e9; color:#8e2430; }
html[data-bs-theme="light"] .alert-success { background:#e2f2e9; color:#155b38; border-color:#8cbd9e; }
html[data-bs-theme="light"] :is(.alert-danger,.pipeline-notice.is-error) { background:#fce8e9; color:#8e2430; border-color:#cf9198; }
html[data-bs-theme="light"] .alert-warning { background:#fff1d1; color:#66420b; border-color:#b99b65; }
html[data-bs-theme="light"] :is(.required,.reference-status.is-error,.api-docs-error) { color:#9e2733!important; }
html[data-bs-theme="light"] :is(pre,.api-code,.guide-example,.guide-rules,.guide-action-note,.api-inspect-result,.pipeline-notice,.pipeline-move-summary,.guide-search-input kbd) { color:#344054; background:#f0f3f7; border-color:#cbd2da; }
html[data-bs-theme="light"] :is(.guide-nav-group a,.api-docs-nav a) { color:#344054; }
html[data-bs-theme="light"] :is(.guide-nav-group a:hover,.guide-nav-group a[aria-current],.api-docs-nav a:hover) { color:#5d3f13; background:#f4ebda; border-color:#cdb88e; }
html[data-bs-theme="light"] :is(.guide-options code,.placeholder-insert code,.guide-operation-title>code,.api-method) { color:#5d3f13!important; background:#f4ebda; border-color:#cdb88e; }
html[data-bs-theme="light"] #user-guide mark { background:#ffe198; color:#35250b; }
html[data-bs-theme="light"] .workspace-hero { background:linear-gradient(110deg,#fff,#f4eddf); border-color:#cdb88e; box-shadow:var(--shadow); }
html[data-bs-theme="light"] .hero-content h2 span { color:#765019; }
html[data-bs-theme="light"] .hero-status { background:#fff; border-color:#cdb88e; }
html[data-bs-theme="light"] .glass-tower { background:linear-gradient(110deg,#e7d8b9,#faf6ed); border-color:#a58a53; box-shadow:inset 1px 1px #fff,12px 15px 35px #76501916; }
html[data-bs-theme="light"] :is(.pipeline-card-rent,.pipeline-column-title,.pipeline-card-link h3,.pipeline-card-open) { color:#344054; }
html[data-bs-theme="light"] .pipeline-board .kanban-column.is-drop-target { background:#f4ebda; border-color:#765019; box-shadow:inset 0 0 0 2px #76501930; }
html[data-bs-theme="light"] .pipeline-touch-ghost { background:#fff!important; border-color:#765019!important; }
html[data-bs-theme="light"] .pipeline-move-dialog::backdrop { background:#18223066; }
html[data-bs-theme="light"] .public-display-controls { background:#fff; box-shadow:var(--shadow); }
html[data-bs-theme="light"] .login-card { background:#fffffff5; border-color:#cbd2da; }
html[data-bs-theme="light"] .login-card .form-control { color:#182230; background:#fff; border-color:#8794a4; }
html[data-bs-theme="light"] .login-card .password-field .form-control:focus { color:#182230; background:#fff; }
html[data-bs-theme="light"] .login-lockup-name { color:#182230; }
html[data-bs-theme="light"] .login-story :is(h1,p,.eyebrow) { color:#fff!important; }
html[data-bs-theme="light"] .login-story em { color:#f1d49c; }
html[data-bs-theme="light"] .story-tags span { color:#fff; }
html[data-bs-theme="light"] #guide-search-status { color:#475467; }
html[data-bs-theme="light"] .login-location span { color:#475467; }
html[data-bs-theme="light"] :is(.heading-dot,.panel-foot,.workspace-footer,.workspace-footer span,.footer-star,.pipeline-drag-hint,.pipeline-stage-count,.api-scope-table td:first-child,.api-action-permissions summary span) { color:#475467!important; }

@media(max-width:1200px) { .topbar { padding-left:20px; padding-right:20px; }.breadcrumb-label { display:none; }.topbar-actions { margin-left:auto; }.account .account-profile { display:none; } }
@media(max-width:760px) {
    .topbar { display:grid; grid-template-columns:36px minmax(0,1fr); padding:10px 16px; gap:10px; }
    .topbar-actions { flex-direction:column; align-items:flex-end; width:100%; gap:8px; }
    .display-controls { max-width:100%; flex-wrap:wrap; justify-content:flex-end; }
    .display-control { min-height:40px; }.theme-toggle-label { display:none; }.text-size-controls { gap:3px; padding-left:5px; }.display-controls { gap:5px; }
    .account { gap:8px; }.account .account-profile { display:none; }.account-divider { display:none; }
    .public-display-controls { right:12px; top:12px; }.public-main { padding-top:100px; }
    .api-docs-top { flex-wrap:wrap; gap:16px; }.api-display-actions { flex-wrap:wrap; gap:10px; }
    .guide-navigation { max-height:none; }.guide-section,.guide-entry,.guide-operation { scroll-margin-top:calc(var(--workspace-header-height) + 145px); }
}
@media print { .display-controls,.public-display-controls { display:none!important; }html { font-size:100%; } }
