.brand-name{display:block;min-width:0;overflow-wrap:anywhere;letter-spacing:.035em;line-height:1.2}
.brand-mark{flex:none;overflow:hidden}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.brand-mark:has(img){background:transparent}
.login-brand .brand-name{font-size:16px}
.theme-fieldset{border:0;padding:0;margin:0;min-width:0}
.theme-fieldset legend{font-size:13px;color:#3f5367;font-weight:750;margin-bottom:10px}
.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.theme-choice{display:flex;flex-direction:column;gap:7px;border:1px solid #cfdae3;border-radius:10px;padding:12px;cursor:pointer;min-width:0}
.theme-choice:has(input:checked){border-color:#31ac9e;box-shadow:0 0 0 2px #31ac9e33}
.theme-choice input{position:absolute;opacity:0;width:1px;height:1px}
.theme-choice:has(input:focus-visible){outline:2px solid #31ac9e;outline-offset:2px}
.theme-choice strong{font-size:13px}
.theme-choice small{font-size:11px}
.theme-swatch{display:flex;gap:7px;align-items:center;height:35px;border-radius:6px;padding:7px;background:#f2f5f8}
.theme-swatch i{width:16px;height:21px;border-radius:3px;background:#111a29}
.theme-swatch b{flex:1;height:21px;border-radius:3px;background:#fff;border:1px solid #dce4eb}
.theme-preview-dark .theme-swatch{background:#101827}.theme-preview-dark .theme-swatch i{background:#5fe0cb}.theme-preview-dark .theme-swatch b{background:#1c293b;border-color:#34475c}
.theme-preview-ocean .theme-swatch{background:#e8f5f6}.theme-preview-ocean .theme-swatch i{background:#134d67}.theme-preview-ocean .theme-swatch b{background:#fff;border-color:#b9dce0}
.logo-picker{display:flex;gap:18px;align-items:flex-start}
.logo-picker>div{display:grid;gap:10px;flex:1;min-width:0}
.logo-picker select{height:43px;border:1px solid #cfdae3;border-radius:8px;padding:8px 11px;background:#fff;color:#1d3449}
.logo-picker .field input[type=file],.logo-picker input[type=file]{height:auto;padding:9px}
.logo-preview{width:62px;height:62px;font-size:36px}
@media(max-width:700px){.theme-choices{grid-template-columns:1fr}.logo-picker{align-items:center}}

body[data-theme="ocean"]{background:#eaf4f5;color:#19364a;--plot-grid:#bedbdd;--plot-text:#567c87}
body[data-theme="ocean"] .rail,body[data-theme="ocean"].login-page{background:#134d67}
body[data-theme="ocean"] .brand-mark{background:#5dd6cb}
body[data-theme="ocean"] .brand-mark:has(img){background:transparent}
body[data-theme="ocean"] .nav-link.current,body[data-theme="ocean"] .nav-sublink.current{background:#1b6881}
body[data-theme="ocean"] .nav-link:hover,body[data-theme="ocean"] .nav-sublink:hover{background:#236d83}
body[data-theme="ocean"] .button:not(.button-secondary):not(.download-all){background:#165f79}
body[data-theme="ocean"] .button:not(.button-secondary):not(.download-all):hover{background:#247a94}
body[data-theme="ocean"] .download-all{background:#d9f3f0;color:#12666e;border-color:#9fd8d3}
body[data-theme="ocean"] .bar,body[data-theme="ocean"] .segment.good{background:#29aab8}
body[data-theme="ocean"] .deployment-card:hover{border-color:#71c9d1}

body[data-theme="dark"]{background:#101827;color:#e7eef6;--plot-grid:#34485c;--plot-text:#b5c9d8}
body[data-theme="dark"] .rail,body[data-theme="dark"].login-page{background:#0b1220}
body[data-theme="dark"] .brand-mark{background:#50d6c1}
body[data-theme="dark"] .brand-mark:has(img){background:transparent}
body[data-theme="dark"] .panel,body[data-theme="dark"] .metric,body[data-theme="dark"] .deployment-card,
body[data-theme="dark"] .login-card,body[data-theme="dark"] .record-dialog{
  background:#1b293a;color:#e7eef6;border-color:#34475b;box-shadow:none
}
body[data-theme="dark"] .deployment-card:hover,body[data-theme="dark"] .source-profile:hover{background:#243549;border-color:#56bcb5}
body[data-theme="dark"] .page-intro,body[data-theme="dark"] .subtle,body[data-theme="dark"] .card-subtitle,
body[data-theme="dark"] .card-data span,body[data-theme="dark"] .card-footer,body[data-theme="dark"] .metric small,
body[data-theme="dark"] .metric>span,body[data-theme="dark"] .field small,body[data-theme="dark"] .form-note,
body[data-theme="dark"] .config-list dt,body[data-theme="dark"] .settings-help p:not(.eyebrow),
body[data-theme="dark"] .source-profile small,body[data-theme="dark"] .source-profile-status,
body[data-theme="dark"] .plot-legend,body[data-theme="dark"] .plot-status{color:#a8bdcd}
body[data-theme="dark"] .field label,body[data-theme="dark"] .theme-fieldset legend,
body[data-theme="dark"] .source-form h3,body[data-theme="dark"] .protocol-choice strong,
body[data-theme="dark"] .feed strong,body[data-theme="dark"] .legend-row strong,
body[data-theme="dark"] .config-list dd,body[data-theme="dark"] .add-card strong,
body[data-theme="dark"] .diagram-builder summary,body[data-theme="dark"] .model-choices legend,
body[data-theme="dark"] .source-review span,body[data-theme="dark"] .login-form label{color:#e1edf5}
body[data-theme="dark"] .field input:not([type=checkbox]),body[data-theme="dark"] .field select,
body[data-theme="dark"] .filters input,body[data-theme="dark"] .filters select,
body[data-theme="dark"] .diagram-controls select,body[data-theme="dark"] .diagram-controls input,
body[data-theme="dark"] .login-form input,body[data-theme="dark"] .logo-picker select,
body[data-theme="dark"] .page-button,body[data-theme="dark"] .button-secondary{
  background:#223347;color:#e7eef6;border-color:#456075
}
body[data-theme="dark"] .field input[readonly]{background:#1a293b;color:#a8bdcd}
body[data-theme="dark"] .button:not(.button-secondary):not(.download-all){background:#276f79}
body[data-theme="dark"] .button:not(.button-secondary):not(.download-all):hover{background:#318a91}
body[data-theme="dark"] .download-all{background:#193c43;color:#8ce5d2;border-color:#376f70}
body[data-theme="dark"] .form-note,body[data-theme="dark"] .record-dialog pre,
body[data-theme="dark"] .source-review div{background:#203145;border-color:#34475b}
body[data-theme="dark"] .source-review,body[data-theme="dark"] .wizard-steps span,
body[data-theme="dark"] .status-track{background:#304258;border-color:#34475b}
body[data-theme="dark"] .source-profile,body[data-theme="dark"] .protocol-choice,
body[data-theme="dark"] .theme-choice{color:#e7eef6;border-color:#34475b}
body[data-theme="dark"] .protocol-choice:has(input:checked){background:#1d4044;border-color:#57c5b8}
body[data-theme="dark"] .theme-choice:has(input:checked){border-color:#57c5b8}
body[data-theme="dark"] th{background:#213247;color:#b6c9d7}
body[data-theme="dark"] td{color:#d5e2ec;border-color:#34475b}
body[data-theme="dark"] tbody tr:hover{background:#233549}
body[data-theme="dark"] .card-footer,body[data-theme="dark"] .form-section,
body[data-theme="dark"] .config-list div,body[data-theme="dark"] .table-footer{border-color:#34475b}
body[data-theme="dark"] .notice{background:#183e3c;color:#b8f1e3;border-color:#347870}
body[data-theme="dark"] .notice.error{background:#4b292e;color:#ffd4d7;border-color:#884951}
body[data-theme="dark"] .login-brand{color:#e7eef6}
body[data-theme="dark"] .login-error{background:#4b292e;color:#ffd4d7;border-color:#884951}
body[data-theme="dark"] .chart .bars{border-color:#34475b;background:repeating-linear-gradient(to top,transparent 0,transparent 41px,#29394d 42px,#29394d 43px)}
body[data-theme="dark"] .status-pill,body[data-theme="dark"] .state-badge.paused{background:#304258;color:#c1d2df}
body[data-theme="dark"] .wizard-steps span.active,body[data-theme="dark"] .state-badge.active{background:#1d514a;color:#a1ead6}
body[data-theme="dark"] .source-review strong,body[data-theme="dark"] .protocol-choice span{color:#a8bdcd}
body[data-theme="dark"] .theme-choice small{color:#a8bdcd}
body[data-theme="dark"] .legend-row{color:#b4c7d5}
body[data-theme="dark"] .add-mark,body[data-theme="dark"] .deployment-icon{background:#1e4b4d;color:#83dcd0}
