/* Shared appearance for the real portal, based on the supplied light/dark mockups. */
:root { --portal-bg:#f7f6fb; --portal-panel:#fff; --portal-soft:#f8f7fc; --portal-ink:#1a1730; --portal-muted:#6e6a8a; --portal-line:#d8d3e6; --portal-tint:#f1edff; --portal-link:#5236c4; }
:root[data-theme=dark] { color-scheme:dark; --portal-bg:#0f0e19; --portal-panel:#17152a; --portal-soft:#1c1a33; --portal-ink:#f2f0fa; --portal-muted:#b5afce; --portal-line:#3a3660; --portal-tint:#262145; --portal-link:#b9abff; }
h1:focus:not(:focus-visible), h1[tabindex="-1"]:focus { outline:none; }
.cfe-theme-toggle { display:inline-grid; place-items:center; width:40px; height:40px; border:1px solid var(--portal-line); border-radius:10px; background:var(--portal-panel); color:var(--portal-ink); }
.cfe-theme-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.hostoo-language { max-width:120px; color:var(--portal-ink); background:var(--portal-panel); border:1px solid var(--portal-line); border-radius:10px; padding:9px; }
.cfe-profile { position:relative; }
.cfe-profile summary { cursor:pointer; list-style:none; padding:8px 10px; border-radius:10px; }
.cfe-profile summary { display:flex; align-items:center; gap:8px; }
.cfe-profile summary:after { content:''; display:block; width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin-left:4px; }
.cfe-profile-menu { position:absolute; z-index:60; right:0; top:100%; min-width:230px; padding:10px; background:var(--portal-panel); border:1px solid var(--portal-line); border-radius:14px; box-shadow:0 12px 30px #0002; }
.cfe-profile-menu a,.cfe-profile-menu button { display:block; padding:12px; width:100%; text-align:left; color:var(--portal-link); background:transparent; border:0; }
.cfe-auth-required { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(420px,1fr); min-height:100dvh; background:var(--portal-bg); color:var(--portal-ink); }
.cfe-auth-hero { position:relative; isolation:isolate; overflow:hidden; padding:40px clamp(28px,4vw,56px); display:flex; flex-direction:column; gap:8vh; background:linear-gradient(150deg,#141026,#241b4d 48%,#3f2c8f); }
.cfe-auth-logo { width:180px; }
.cfe-auth-waves { position:absolute; inset:0; width:100%; height:100%; z-index:-1; fill:none; stroke:#c4b8ff21; }
.cfe-auth-emblem { position:relative; width:min(380px,70%); aspect-ratio:1; align-self:center; margin-top:6vh; }
.cfe-auth-emblem svg { width:100%; height:100%; fill:none; stroke:#c4b8ff40; }
.cfe-auth-emblem img { position:absolute; inset:22%; width:56%; height:56%; }
.cfe-auth-side { display:flex; flex-direction:column; }
.cfe-auth-side header { display:flex; justify-content:flex-end; gap:12px; padding:24px 36px; }
.cfe-auth-side main { flex:1; display:grid; align-items:center; padding:24px clamp(24px,6vw,88px); }
.cfe-auth-side main section { max-width:440px; }
.cfe-auth-side h1 { font-size:34px; line-height:1.15; letter-spacing:-.022em; color:var(--portal-ink); }
.cfe-auth-side h1 span { color:var(--portal-link); }
.cfe-auth-lead { margin:12px 0 30px; font-size:16px; line-height:1.6; color:var(--portal-muted); }
.cfe-auth-lock { display:grid; place-items:center; width:68px; height:68px; margin-bottom:26px; border-radius:20px; background:var(--portal-tint); color:var(--portal-link); }
.cfe-auth-lock svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.6; }
.cfe-auth-side footer { padding:22px clamp(24px,6vw,88px) 26px; color:var(--portal-muted); font-size:12.5px; }
:root[data-theme=dark] body,:root[data-theme=dark] .hostoo-admin--refined,:root[data-theme=dark] .hostoo-auth { background:var(--portal-bg); color:var(--portal-ink); --cfe-ink:var(--portal-ink); --cfe-muted:var(--portal-muted); --cfe-line:var(--portal-line); }
:root[data-theme=dark] :is(.hostoo-admin-sidebar,.admin-topbar,.hostoo-card,.cfe-dashboard-group,.account-card,.account-table-wrap,.auth-panel,.cfe-drawer,.hosting-rail,.hosting-domain-card,.ir-card,.ir-editor,.do-card,.co-card,.auth-topbar) { background:var(--portal-panel)!important; color:var(--portal-ink)!important; border-color:var(--portal-line)!important; }
:root[data-theme=dark] :is(h1,h2,h3,h4,label,legend,th,td,strong,.hostoo-admin-primary a,.hostoo-account-name) { color:var(--portal-ink); }
:root[data-theme=dark] :is(p,small,.hostoo-lead,.admin-breadcrumb,.admin-account-role,.hosting-lead,.hosting-kicker,.ir-hint,.account-help,.auth-intro) { color:var(--portal-muted); }
:root[data-theme=dark] :is(input,select,textarea,.form-control,.table,.table thead,.table td,.table th) { background-color:var(--portal-panel)!important; color:var(--portal-ink)!important; border-color:var(--portal-line)!important; --bs-table-color:var(--portal-ink); --bs-table-bg:var(--portal-panel); }
:root[data-theme=dark] :is(a,.account-link,.hostoo-eyebrow) { color:var(--portal-link); }
:root[data-theme=dark] :is(.hostoo-button,.auth-submit) { color:white; }
:root[data-theme=dark] :is(.hostoo-button-secondary,.hosting-view-switch,.hosting-view-switch button,.hosting-tabs,.hosting-resource-tab,.hosting-rail-client,.hosting-rail-domain,.hosting-state,.do-empty,.hostoo-empty) { background:var(--portal-panel)!important; color:var(--portal-ink)!important; border-color:var(--portal-line)!important; }
:root[data-theme=dark] :is(.is-selected,.is-active,.hostoo-admin-primary a.active,.account-caution) { background:var(--portal-tint)!important; color:var(--portal-link)!important; }
:root[data-theme=dark] .cfe-brand-logo { filter:brightness(0) invert(1); }
:root[data-theme=dark] :is(.alert-warning,.hosting-load-warning,.do-confirm) { background:#33260d!important; color:#f5c26b!important; border-color:#634a1a!important; }
:root[data-theme=dark] :is(.alert-danger,.hosting-error,.ir-error) { background:#3c1927!important; color:#ffb7c8!important; }
:root[data-theme=dark] :is(.alert-success) { background:#15362c!important; color:#9ae5ca!important; }
:root[data-theme=dark] :is(button,a):focus-visible { outline:3px solid #b9abff; outline-offset:3px; }
@media(max-width:900px) { .cfe-auth-required { grid-template-columns:1fr; } .cfe-auth-hero { min-height:160px; justify-content:center; } .cfe-auth-emblem { display:none; } .cfe-auth-side main { padding:36px 24px; } }
@media(max-width:600px) { .hostoo-header-actions { flex-wrap:wrap; } .cfe-auth-side h1 { font-size:28px; } }

.cfe-row-actions summary{cursor:pointer;font-size:22px;list-style:none}.cfe-row-actions a,.cfe-row-actions button{display:block;padding:8px}.cfe-customer-choice{padding:12px;min-width:240px;max-width:400px;border:1px solid var(--portal-line);background:var(--portal-panel);border-radius:12px}.cfe-delegation-banner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:12px 36px;background:var(--portal-tint);color:var(--portal-link)}
.cfe-delegation-banner button { border:0; background:transparent; color:inherit; font:inherit; font-weight:600; padding:4px 0; text-decoration:underline; }
:root[data-theme=dark] .hosting-workspace { --hosting-bg:var(--portal-bg); --hosting-soft:var(--portal-soft); --hosting-tint:var(--portal-tint); --hosting-line:var(--portal-line); --hosting-muted:var(--portal-muted); --hosting-ink:var(--portal-ink); --hosting-accent:var(--portal-link); }
:root[data-theme=dark] :is(.hosting-domain-body,.hosting-service-card,.integration-main,.integration-editor,.integration-card,.integration-state,.integration-sections,.integration-table-wrap,.cfe-drawer-panel,.cfe-drawer-header,.cfe-drawer-footer,.hosting-access,.integration-access,.dc-summary,.domain-checkout fieldset) { background:var(--portal-panel)!important; color:var(--portal-ink)!important; border-color:var(--portal-line)!important; }
:root[data-theme=dark] :is(.hosting-service-card header button,.hosting-resource-switch button,.hosting-domain-chips button,.hosting-domain-badges span,.integration-status,.integration-state-symbol) { background:var(--portal-soft)!important; color:var(--portal-ink)!important; border-color:var(--portal-line)!important; }
:root[data-theme=dark] :is(.hosting-domain-badges .has-service,.integration-status.is-active) { background:#15362c!important; color:#9ae5ca!important; border-color:#285345!important; }
:root[data-theme=dark] :is(.hosting-domain-tabs button,.hosting-preview-item,.integration-note,.integration-field-help,.integration-field small) { color:var(--portal-muted)!important; }
/* Accessible table header contrast in the dark portal. */
:root[data-theme=dark] .hostoo-admin--refined .table th .col-title { color:var(--portal-muted)!important; }
