/* Product identity and two complete palettes, shared by the terminal and admin. */
:root{--analytics-grid:#263247;--analytics-axis:#8fa4bf;--analytics-visits:#729ee7;--analytics-logins:#5db6a0}
html[data-theme=cyan]{color-scheme:light;--bg:#edf6fa;--panel:#f9fdff;--line:#cfe2eb;--text:#1d3b4b;--muted:#506e7f;--accent:#077d98;--soft:#e2f2f7;--up:#cb4a5d;--down:#128472;--analytics-grid:#d7e8ef;--analytics-axis:#506e7f;--analytics-visits:#157fa9;--analytics-logins:#218779;background:var(--bg);color:var(--text)}
.brand img.brand-mark{display:block;width:40px;height:40px;object-fit:contain;background:transparent;border:0;border-radius:0;padding:0;flex-shrink:0}
.brand strong{font-family:'Songti SC',STSong,'Noto Serif CJK SC',serif;letter-spacing:2px;font-size:21px;font-weight:700}
.terminal-app .brand small{font-size:11px;letter-spacing:1px}
.theme-control{display:flex;align-items:center;gap:7px;flex-shrink:0;font-size:12px;color:var(--muted);white-space:nowrap}
.theme-control select{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:6px;min-height:38px;padding:6px 8px;font:inherit;font-size:13px;cursor:pointer}
.theme-control select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.search-label-mobile{display:none}
.admin-nav>.theme-control{padding:12px 9px}
.admin-nav>.theme-control select{flex:1;min-width:0}
html[data-theme=cyan] body{background:var(--bg);color:var(--text)}
html[data-theme=cyan] a,html[data-theme=cyan] .text-button{color:var(--accent)}
html[data-theme=cyan] .app-header,html[data-theme=cyan] .terminal-app .toolbar,html[data-theme=cyan] .terminal-app .inspector,html[data-theme=cyan] .terminal-app .inspector-tabs,html[data-theme=cyan] .terminal-app .mobile-bottom-nav{background:#f2f9fc;border-color:var(--line)}
html[data-theme=cyan] .brand,html[data-theme=cyan] .brand strong{color:#1c5366}
html[data-theme=cyan] .brand small,html[data-theme=cyan] .terminal-app .brand small{color:#506e7f}
html[data-theme=cyan] .main-nav a{color:#506e7f}
html[data-theme=cyan] .main-nav a.active{background:#dceff5;color:#12647c}
html[data-theme=cyan] .terminal-app .stock-search-trigger{background:#fff;border-color:#c4dce7;color:#42697b}
html[data-theme=cyan] .terminal-app .stock-search-trigger:hover{background:#e9f5f9;border-color:#8dbdce}
html[data-theme=cyan] .stock-search-trigger kbd{color:#526f81;border-color:#c8dde6;background:#f3f9fc}
html[data-theme=cyan] .button{color:#2e566b;background:#fff;border-color:#bcd7e2}
html[data-theme=cyan] .button:hover:not(:disabled){background:#e4f2f7}
html[data-theme=cyan] .button.primary{background:#087f99;border-color:#087f99;color:white}
html[data-theme=cyan] .button.primary:hover:not(:disabled){background:#07677d}
html[data-theme=cyan] .icon-button{color:#58798c}
html[data-theme=cyan] .terminal-app .workspace-heading,html[data-theme=cyan] .terminal-app .workspace-bottom{background:#f7fcfe;color:#426b80;border-color:var(--line)}
html[data-theme=cyan] .terminal-app .workspace-heading h1{color:#1d3d50}
html[data-theme=cyan] .terminal-app .security-heading>.dataset-kicker,html[data-theme=cyan] .terminal-app .security-code{color:#527486}
html[data-theme=cyan] .terminal-app .chart-price{color:#23596e}
html[data-theme=cyan] .terminal-app .chart-price small{color:#506d7d}
html[data-theme=cyan] .terminal-app .period-controls .mini-button{color:#4b6c7e}
html[data-theme=cyan] .terminal-app .period-controls .mini-button.selected{background:#d7edf4;color:#085f7a}
html[data-theme=cyan] .terminal-app .view-actions>.text-button,html[data-theme=cyan] .terminal-app .tool-menu>summary{color:#315e73}
html[data-theme=cyan] .terminal-app .view-actions>.text-button:hover,html[data-theme=cyan] .terminal-app .tool-menu>summary:hover,html[data-theme=cyan] .terminal-app .tool-menu[open]>summary,html[data-theme=cyan] .terminal-app .view-actions>.is-active{background:#dcedf5;color:#145d77}
html[data-theme=cyan] .terminal-app .quickstart{background:#e8f5f9;color:#426b7d;border-color:var(--line)}
html[data-theme=cyan] .terminal-app .quickstart strong{color:#365f72}
html[data-theme=cyan] .terminal-app .chart-panel,html[data-theme=cyan] .terminal-app .chart-heading,html[data-theme=cyan] .terminal-app .chart-readout{background:#fbfeff;border-color:var(--line);color:#496f82}
html[data-theme=cyan] .quiet,html[data-theme=cyan] .dataset-kicker,html[data-theme=cyan] .dataset-meta,html[data-theme=cyan] .terminal-app .workspace-hint{color:#506e7f}
html[data-theme=cyan] .terminal-app .data-info>summary,html[data-theme=cyan] .terminal-app #workbenchStatus{color:#496f82}
html[data-theme=cyan] .terminal-app #workbenchStatus[data-state=error]{color:#a13f4b}
html[data-theme=cyan] .terminal-app .tool-popover,html[data-theme=cyan] .terminal-app .data-info-content{background:#fbfeff;color:#2e566b;border-color:#aacddc;box-shadow:0 12px 34px #2e61751e}
html[data-theme=cyan] .terminal-app .menu-heading{color:#506e7f}
html[data-theme=cyan] .terminal-app .layer-controls .mini-button{color:#4c6b7c}
html[data-theme=cyan] .terminal-app .layer-controls .mini-button:before{border-color:#82aabc}
html[data-theme=cyan] .terminal-app .layer-controls .mini-button.selected{color:#125f77;background:#e0f0f6}
html[data-theme=cyan] .terminal-app .layer-controls .mini-button.selected:before{border-color:#087f99;background:#087f99;box-shadow:inset 0 0 0 3px #e0f0f6}
html[data-theme=cyan] .terminal-app .action-menu>button,html[data-theme=cyan] .terminal-app .action-menu>a{color:#31596e}
html[data-theme=cyan] .terminal-app .action-menu>button:hover,html[data-theme=cyan] .terminal-app .action-menu>a:hover,html[data-theme=cyan] .terminal-app .action-menu [aria-pressed=true]{background:#dfedf5;color:#075e79}
html[data-theme=cyan] .terminal-app .data-info-content .dataset-meta{color:#315e73}
html[data-theme=cyan] .terminal-app .product-strip{border-color:var(--line);color:#4a6d81}
html[data-theme=cyan] .terminal-app .replay-panel{background:#e5f2f8;border-color:#b7d6e4}
html[data-theme=cyan] .replay-heading span,html[data-theme=cyan] .terminal-app .replay-help,html[data-theme=cyan] .terminal-app .replay-help p{color:#4a6e81}
html[data-theme=cyan] .terminal-app .inspector-tabs button{color:#57798c}
html[data-theme=cyan] .terminal-app .inspector-tabs button[aria-selected=true]{color:#086b86;border-color:#0c839e}
html[data-theme=cyan] .terminal-app .inspector-tabs span{color:#3f6d82;background:#dcecf3}
html[data-theme=cyan] .terminal-app .inspector h2,html[data-theme=cyan] .terminal-app .watch-heading h2,html[data-theme=cyan] .terminal-app .watch-empty strong{color:#254c62}
html[data-theme=cyan] .terminal-app .inspector p,html[data-theme=cyan] .terminal-app .watch-empty p,html[data-theme=cyan] .terminal-app #catalogStatus{color:#506e7f}
html[data-theme=cyan] .snapshot-section,html[data-theme=cyan] .terminal-app .snapshot-section,html[data-theme=cyan] .terminal-app .rule-boundaries{border-color:var(--line);color:#466e82}
html[data-theme=cyan] .terminal-app .snapshot-section>summary{color:#426b80}
html[data-theme=cyan] .dataset-row,html[data-theme=cyan] .watch-open,html[data-theme=cyan] .watch-open strong{color:#254c62}
html[data-theme=cyan] .dataset-row small,html[data-theme=cyan] .watch-open small,html[data-theme=cyan] .row-kind,html[data-theme=cyan] .note-item small{color:#56788b}
html[data-theme=cyan] .dataset-row.active,html[data-theme=cyan] .watch-row.active{background:#deeff5;box-shadow:inset 2px 0 #2d8ba6}
html[data-theme=cyan] .watch-row{border-color:var(--line)}
html[data-theme=cyan] .watch-row:hover,html[data-theme=cyan] .dataset-row:hover{background:#e9f4f9}
html[data-theme=cyan] .watch-remove{color:#617e8b}
html[data-theme=cyan] .search-field input,html[data-theme=cyan] .field input,html[data-theme=cyan] .field select,html[data-theme=cyan] .field textarea,html[data-theme=cyan] .note-item textarea{background:white;border-color:#b9d4e1;color:#224d62}
html[data-theme=cyan] input::placeholder,html[data-theme=cyan] textarea::placeholder{color:#668291}
html[data-theme=cyan] .field{color:#45697d}
html[data-theme=cyan] .terminal-app .evidence-controls .mini-button{color:#496e83}
html[data-theme=cyan] .terminal-app .evidence-controls .mini-button.selected{color:#075f7c;background:#d9edf5;border-color:#a7cadb}
html[data-theme=cyan] .terminal-app .structure-item{border-color:var(--line)}
html[data-theme=cyan] .terminal-app .structure-item:hover,html[data-theme=cyan] .terminal-app .structure-item.selected{background:#e0eff6}
html[data-theme=cyan] .terminal-app .structure-item strong{color:#2e556b}
html[data-theme=cyan] .terminal-app .structure-item small{color:#53758a}
html[data-theme=cyan] .terminal-app .evidence-detail{background:#edf6fa;border-color:#b3d2e0}
html[data-theme=cyan] .terminal-app .evidence-detail>strong{color:#22536b}
html[data-theme=cyan] .terminal-app .evidence-detail dt,html[data-theme=cyan] .terminal-app .evidence-detail details{color:#51738a}
html[data-theme=cyan] .terminal-app .evidence-detail dd{color:#31566d}
html[data-theme=cyan] .evidence-detail pre{color:#385f76}
html[data-theme=cyan] .scope-note{background:#e7f3f8;color:#416b80;border-color:#87b9cd}
html[data-theme=cyan] .note-item{border-color:var(--line)}
html[data-theme=cyan] .danger-text,html[data-theme=cyan] .note-actions .danger-text{color:#a13f4b}
html[data-theme=cyan] .terminal-app .mobile-bottom-nav button{color:#52778b}
html[data-theme=cyan] .terminal-app .mobile-bottom-nav button.active{color:#086882;background:#e0f0f6;border-color:#208ba4}
html[data-theme=cyan] .form-panel{background:#fbfeff;border-color:#c8e0eb}
html[data-theme=cyan] .form-panel h2,html[data-theme=cyan] .lesson h2,html[data-theme=cyan] .page-heading h1{color:#24536b}
html[data-theme=cyan] .lesson,html[data-theme=cyan] .project-data-row{border-color:var(--line)}
html[data-theme=cyan] .lesson p,html[data-theme=cyan] .page-heading>p:last-child,html[data-theme=cyan] .project-data-row small{color:#506e7f}
html[data-theme=cyan] .lesson-number{color:#5d8095}
html[data-theme=cyan] .toast{color:#fff;background:#195d76;border-color:#195d76;box-shadow:0 7px 24px #184b6324}
html[data-theme=cyan] dialog{background:#fbfeff;border-color:#a8cbdc;color:#244e65}
html[data-theme=cyan] dialog::backdrop{background:#173f5a66}
html[data-theme=cyan] .dialog-heading h2,html[data-theme=cyan] .signed-name,html[data-theme=cyan] .stock-result-open strong{color:#24536b}
html[data-theme=cyan] .stock-search-field{background:#edf7fb;border-color:#b9d8e6;color:#497288}
html[data-theme=cyan] .stock-search-field input{background:transparent;color:#244e65}
html[data-theme=cyan] .stock-result,html[data-theme=cyan] .search-footer,html[data-theme=cyan] .auth-privacy{border-color:var(--line)}
html[data-theme=cyan] .stock-result:hover{background:#edf6fb}
html[data-theme=cyan] .stock-result-open small,html[data-theme=cyan] .search-footer,html[data-theme=cyan] .auth-privacy{color:#527387}
html[data-theme=cyan] .auth-message{color:#9c3f4f}
html[data-theme=cyan] .market-banner{background:#e1f1f7;color:#285f78;border-color:#bddbe8}
html[data-theme=cyan] .market-banner.error,html[data-theme=cyan] .runtime-error{background:#fff0f0;color:#9e3e4c;border-color:#edc5cc}
html[data-theme=cyan] .storage-warning{background:#fff4d9;color:#7e6220}
html[data-theme=cyan] .terminal-app #updateNotice{background:#dceff7;color:#215d78}
html[data-theme=cyan] .project-links a{color:#0b7898}
html[data-theme=cyan] .admin-app,html[data-theme=cyan] .admin-main{background:#edf6fa}
html[data-theme=cyan] .admin-nav{background:#f4fbfe;border-color:var(--line)}
html[data-theme=cyan] .admin-nav>a:not(.brand){color:#4b7086}
html[data-theme=cyan] .admin-nav>a.active{background:#dceff7;color:#0b6988}
html[data-theme=cyan] .admin-nav-label,html[data-theme=cyan] .admin-header .dataset-kicker,html[data-theme=cyan] .admin-nav>.quiet{color:#567a90}
html[data-theme=cyan] .admin-header{border-color:var(--line)}
html[data-theme=cyan] .metrics-strip,html[data-theme=cyan] .analytics-chart,html[data-theme=cyan] .analytics-table,html[data-theme=cyan] .admin-guard{background:#fbfeff;border-color:#c0dce9}
html[data-theme=cyan] .metrics-strip>div,html[data-theme=cyan] .analytics-table th,html[data-theme=cyan] .analytics-table td{border-color:#d5e6ee}
html[data-theme=cyan] .metrics-strip strong,html[data-theme=cyan] .analytics-table td:first-child{color:#25556e}
html[data-theme=cyan] .metrics-strip span,html[data-theme=cyan] .metrics-strip small,html[data-theme=cyan] .analytics-table th,html[data-theme=cyan] .analytics-table td,html[data-theme=cyan] .analytics-definitions{color:#53768d}
html[data-theme=cyan] .analytics-table th{background:#edf6fa}
html[data-theme=cyan] .analytics-definitions code,html[data-theme=cyan] .analytics-definitions>summary{color:#246e89}
html[data-theme=cyan] .table-empty{color:#54768a!important}
html[data-theme=cyan] .period-switch{border-color:#b3d3e2}
html[data-theme=cyan] .period-switch button{background:#f2f9fc;color:#4b7188}
html[data-theme=cyan] .period-switch button.active,html[data-theme=cyan] .role-label{background:#dbeef6;color:#166785}
html[data-theme=cyan] .chart-legend{color:#157fa9}
html[data-theme=cyan] .chart-legend span:last-child{color:#218779}
@media(max-width:760px){
 .terminal-app .app-header{gap:8px}
 .terminal-app .brand img.brand-mark{display:block;width:32px;height:32px}
 .terminal-app .brand>span{display:none}
 .terminal-app .search-label-desktop{display:none}
 .terminal-app .stock-search-trigger>.search-label-mobile{display:inline;font-size:12px}
 .terminal-app .theme-control>span{display:none}
 .theme-control select{font-size:12px;min-height:38px;padding:6px 5px;max-width:64px}
 .terminal-app .account-control{max-width:77px;font-size:11px;padding:6px 7px}
 .terminal-app .stock-search-trigger{min-width:0}
 .admin-nav{height:auto;min-height:56px;flex-wrap:wrap}
 .admin-nav>.theme-control{padding:0;margin-left:auto}
 .admin-nav>a:last-of-type{margin-left:0}
 .docs-app .brand img.brand-mark{width:32px;height:32px}
 .docs-app .theme-control>span{display:none}
 html[data-theme=cyan] .terminal-app .inspector{border-color:#abcddd;box-shadow:0 -12px 50px #204d672b}
 html[data-theme=cyan] .terminal-app .library-backdrop{background:#173f5a66}
}
@media(max-width:760px){
 .docs-app .app-header{flex-wrap:wrap;gap:10px}
 .docs-app .app-header .brand{order:0;flex:1}
 .docs-app .app-header>.theme-control{order:1}
 .docs-app .app-header>.main-nav{order:2;flex-basis:100%;justify-content:flex-start}
}
/* Keep the sculptural emblem readable without crowding the search field. */
.brand img.brand-mark{width:44px;height:44px}
@media(max-width:1100px){.terminal-app .theme-control>span{display:none}}
@media(max-width:760px){
 .terminal-app .brand img.brand-mark,.docs-app .brand img.brand-mark{width:36px;height:36px}
}

/* Use the active interface text color for the approved Chanlun artwork. */
.brand-lockup {
  display: block;
  flex: none;
  height: var(--brand-height, 32px);
  aspect-ratio: 107 / 32;
  background-color: var(--text, #e9eef5);
  -webkit-mask: var(--brand-lockup-image, url("brand-lockup.png?v=0.30.4")) center / contain no-repeat;
  mask: var(--brand-lockup-image, url("brand-lockup.png?v=0.30.4")) center / contain no-repeat;
}
@media (max-width: 760px) {
  .terminal-app .brand .brand-lockup {
    aspect-ratio: 1;
    -webkit-mask-image: var(--brand-symbol-image, url("brand-mark.png?v=0.30.4"));
    mask-image: var(--brand-symbol-image, url("brand-mark.png?v=0.30.4"));
  }
}
