/* Ohio palette: charcoal surfaces, soft white type and Haliç turquoise. */
.portal-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 12px;border:1px solid #dce4e7;background:#fff;color:#52636c;border-radius:3px;font-family:inherit;font-size:11px;line-height:1.2;cursor:pointer;white-space:nowrap}
.portal-theme-toggle:hover{border-color:#0098a7;color:#008b99}
.portal-theme-toggle:focus-visible{outline:2px solid #0098a7;outline-offset:3px}
.portal-theme-toggle .theme-moon{display:none}
html[data-theme="dark"] .portal-theme-toggle .theme-sun{display:none}
html[data-theme="dark"] .portal-theme-toggle .theme-moon{display:block}
.auth-panel{position:relative}
.auth-theme-tools{position:absolute;top:22px;right:28px;z-index:5}
html[data-theme="dark"]{--portal-canvas:#17171c;--portal-surface:#1d1d24;--portal-raised:#25252e;--portal-line:#36363f;--portal-text:#f2f2f4;--portal-muted:#a9abb6}
html[data-theme="dark"] body{--bg-light-canvas:var(--portal-canvas);--bg-light-surface:var(--portal-surface);--bg-light-subtle:var(--portal-raised);--border-light:var(--portal-line);--border-hairline:#30303a;--text-dark-primary:var(--portal-text);--text-dark-secondary:#c7c9d0;--text-dark-muted:var(--portal-muted);--text-dark-light:#9295a2;--brand-teal:#4bb6c1;--brand-teal-hover:#65c6cf;--brand-teal-light:#4bb6c119;--brand-gold-light:#a1824f1f;--clb-title-color:var(--portal-text);--clb-text-color:#b9bbc5;--clb-color-fill:var(--portal-raised);--clb-color-grey-light:var(--portal-line);background:var(--portal-canvas);color:var(--portal-text)}
html[data-theme="dark"] .halic-portal .app-sidebar,html[data-theme="dark"] .halic-portal .app-topbar,html[data-theme="dark"] .auth-wrapper,html[data-theme="dark"] .auth-panel{background:var(--portal-surface);color:var(--portal-text);border-color:var(--portal-line)}
html[data-theme="dark"] .halic-portal .sidebar-header,html[data-theme="dark"] .halic-portal .sidebar-user-block{border-color:var(--portal-line)}
html[data-theme="dark"] .halic-portal .sidebar-logo img{filter:none}
html[data-theme="dark"] .halic-portal .sidebar-logo-text,html[data-theme="dark"] .halic-portal .sidebar-user-name,html[data-theme="dark"] .halic-portal .topbar-user-name{color:var(--portal-text)}
html[data-theme="dark"] .halic-portal .sidebar-user-block,html[data-theme="dark"] .halic-portal .nav-badge{background:var(--portal-raised)}
html[data-theme="dark"] .halic-portal .nav-link,html[data-theme="dark"] .halic-portal .sidebar-toggle-btn,html[data-theme="dark"] .halic-portal .sidebar-user-role{color:var(--portal-muted)}
html[data-theme="dark"] .halic-portal .nav-link:hover,html[data-theme="dark"] .halic-portal .nav-link.active{background:#4bb6c118;color:#6ccbd3}
html[data-theme="dark"] .halic-portal .nav-link.active{border-left-color:#4bb6c1}
html[data-theme="dark"] .halic-portal .stats-grid,html[data-theme="dark"] .halic-portal .project-card,html[data-theme="dark"] .halic-portal .portal-map .hasvg,html[data-theme="dark"] .halic-portal .resource-block{background:var(--portal-surface);border-color:var(--portal-line)}
html[data-theme="dark"] .halic-portal .stat-card{border-color:var(--portal-line)}
html[data-theme="dark"] .halic-portal .stat-label,html[data-theme="dark"] .halic-portal .resource-heading h3,html[data-theme="dark"] .halic-portal .venue-visuals h3{color:var(--portal-text)}
html[data-theme="dark"] .halic-portal .stat-value,html[data-theme="dark"] .halic-portal .portal-eyebrow,html[data-theme="dark"] .halic-portal .section-heading>a,html[data-theme="dark"] .halic-portal .resource-heading a,html[data-theme="dark"] .halic-portal .venue-file-download,html[data-theme="dark"] .halic-portal .venue-file-preview,html[data-theme="dark"] .halic-portal .dashboard-intro>a{color:#65c6cf}
html[data-theme="dark"] .halic-portal .stat-subtext,html[data-theme="dark"] .halic-portal .section-heading p,html[data-theme="dark"] .halic-portal .selection-hint,html[data-theme="dark"] .halic-portal .resource-note,html[data-theme="dark"] .halic-portal .venue-file-copy span,html[data-theme="dark"] .halic-portal #venue-photo-source{color:var(--portal-muted)}
html[data-theme="dark"] .halic-portal .hasvg-panel{background:transparent;color:var(--portal-text)}
html[data-theme="dark"] .halic-portal .hasvg[data-button-style="ohio"] .hasvg-panel-button.-outlined{color:var(--portal-text);border-color:#888994}
html[data-theme="dark"] .halic-portal .hasvg[data-button-style="ohio"] .hasvg-panel-button.-outlined:hover{background:#0098a7;border-color:#0098a7;color:#fff}
html[data-theme="dark"] .halic-portal .venue-file,html[data-theme="dark"] .halic-portal #venue-photo-source{border-color:var(--portal-line)}
html[data-theme="dark"] .halic-portal .venue-file-format{background:#4bb6c119;color:#65c6cf}
html[data-theme="dark"] .halic-portal .resource-empty{background:var(--portal-raised);color:var(--portal-muted)}
html[data-theme="dark"] .halic-portal .venue-photo-main{background:var(--portal-raised)}
html[data-theme="dark"] .portal-theme-toggle{background:var(--portal-raised);border-color:var(--portal-line);color:#d8d9e0}
html[data-theme="dark"] .portal-theme-toggle:hover{border-color:#4bb6c1;color:#65c6cf}
html[data-theme="dark"] .portal-login .auth-title,html[data-theme="dark"] .auth-panel .form-label,html[data-theme="dark"] .auth-panel .custom-checkbox{color:var(--portal-text)}
html[data-theme="dark"] .portal-login .auth-subtitle,html[data-theme="dark"] .portal-login .auth-security-notice,html[data-theme="dark"] .portal-login .login-preview{color:var(--portal-muted)}
html[data-theme="dark"] .auth-panel .form-control,html[data-theme="dark"] .portal-login .input-with-icon .form-control{background:var(--portal-raised);border-color:var(--portal-line);color:var(--portal-text)}
html[data-theme="dark"] .auth-panel .form-control::placeholder{color:#9295a2}
html[data-theme="dark"] .portal-login .login-preview{border-color:var(--portal-line)}
html[data-theme="dark"] .portal-login .login-preview a,html[data-theme="dark"] .portal-login .forgot-link,html[data-theme="dark"] .auth-footer a{color:#65c6cf}
html[data-theme="dark"] .portal-login .password-toggle-btn{color:#c7c9d0}
html[data-theme="dark"] .auth-header-logo-mobile img{filter:brightness(0) invert(1)}
html[data-theme="dark"] .venue-photo-dialog{background:var(--portal-surface);color:var(--portal-text)}
html[data-theme="dark"] .venue-photo-close{color:var(--portal-text)}
/* Older portal pages contain inline white panels; convert only those surfaces. */
html[data-theme="dark"] .halic-portal [style*="background:#ffffff"],html[data-theme="dark"] .halic-portal [style*="background: #ffffff"],html[data-theme="dark"] .halic-portal [style*="background:#fff;"],html[data-theme="dark"] .halic-portal [style*="background: #fff;"]{background:var(--portal-surface)!important}
html[data-theme="dark"] .halic-portal .topbar-search-trigger,html[data-theme="dark"] .halic-portal .search-kbd-shortcut{background:var(--portal-raised);border-color:var(--portal-line);color:var(--portal-muted)}
@media(max-width:767px){.portal-theme-toggle{padding:9px}.app-topbar .portal-theme-label{display:none}.auth-theme-tools{position:static;align-self:flex-end;display:flex;justify-content:flex-end;margin-bottom:24px}.portal-login .auth-panel{display:block}.auth-panel{display:flex;flex-direction:column}.auth-panel-inner{width:100%}}
