.ecuvo-wordmark{display:block;width:clamp(100px,15vw,182px);height:auto;max-width:100%}
.portal-topbar .brand{min-width:0}
body:not(.portal-guest){background:radial-gradient(ellipse at 90% 0%,#1c0d10 0,transparent 42%),linear-gradient(122deg,#020202,#090909 55%,#000);background-attachment:fixed}
body:not(.portal-guest) :is(.portal-shell,.portal-layout,.portal-main){background:transparent}
body:not(.portal-guest) .portal-topbar{background:linear-gradient(125deg,#121212fa,#030303fa);backdrop-filter:blur(16px)}
body:not(.portal-guest) .card{background:linear-gradient(152deg,#171717,#070707 65%);box-shadow:inset 0 1px #ffffff13,0 6px 24px #080a101c}
@media(max-width:650px){.portal-topbar .ecuvo-wordmark{width:76px}.portal-topbar .head-actions,.portal-topbar .user-pill{gap:3px}.portal-topbar .user-pill button{width:30px}}

body:not(.portal-guest) .portal-sidebar{background:#080808}
body:not(.portal-guest) :is(.portal-metric,.portal-quick-stats,.portal-query-main,.chat-title,.chat-compose,.data-table td,.data-table th){background-color:#101010}
.portal-topbar .user-pill button[data-act="theme_toggle"] svg{position:static;width:28px;height:28px;flex:none}
.portal-topbar .user-pill button[data-act="theme_toggle"]:focus-visible{outline:2px solid currentColor}
/* Apply the palette to legacy components, dialogs and inline text together. */
html:has(body.portal-light){background:#050505;filter:invert(1) hue-rotate(180deg)}
body.portal-light :is(img,video,canvas),body.portal-light .qr-code{filter:hue-rotate(-180deg) invert(1)}

.portal-topbar .user-pill button[data-act] svg{width:22px;height:22px}
.portal-profile-avatar{overflow:hidden}
.portal-profile-avatar img{width:100%;height:100%;object-fit:cover}
.portal-main .order-list td:is([data-label="Priorita"],[data-label="Priority"]){white-space:nowrap;word-break:normal}
@media(max-width:1350px){
 .portal-main .order-list,.portal-main .order-list tbody{display:block;width:100%;min-width:0}
 .portal-main .order-list thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .portal-main .order-list tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px;padding:12px;border-bottom:1px solid var(--line)}
 .portal-main .order-list td{display:block;width:auto;min-width:0;border:0;padding:5px;overflow-wrap:anywhere;word-break:normal}
 .portal-main .order-list td::before{content:attr(data-label);display:block;font-weight:700;color:var(--sub);margin-bottom:4px;font-size:11px}
 .portal-main .order-list td:last-child{grid-column:1/-1}
}
.portal-layout,.portal-main,#app,.layout-side,.form-grid,.table-wrap,.guest-container,.card{min-width:0;max-width:100%;box-sizing:border-box}
.portal-main .table-wrap{overflow-x:auto}
.portal-main input,.portal-main select,.portal-main textarea{max-width:100%;box-sizing:border-box}
html,body{max-width:100%;overflow-x:clip}
.profile-photo-form{display:grid;gap:14px;max-width:600px;justify-items:start}
.profile-photo-form .field{width:100%}
.profile-photo-form input::file-selector-button{border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--fg);padding:8px 12px;margin-right:10px}
.guest-slide-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.52}
.guest-hero:has(.guest-slide-photo) .guest-hero-visual{display:none}
@media(max-width:720px){.portal-main .layout-side,.portal-main .form-grid{grid-template-columns:minmax(0,1fr)}.portal-topbar{flex-wrap:wrap;height:auto}.portal-main .toolbar{flex-wrap:wrap}}
.reference-prices{display:grid;gap:1rem;margin-block:1rem}.rate-card{min-width:0}.rate-card h2{margin:0}.rate-card p{color:var(--sub)}.rate-card table{width:100%;border-collapse:collapse}.rate-card :is(th,td){padding:.75rem .5rem;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.rate-card :is(th,td):last-child{text-align:right;white-space:nowrap}.rate-card th{font-size:.8rem;color:var(--sub)}.rate-card strong{font-variant-numeric:tabular-nums;color:#ff7078}
body.portal-light .portal-topbar .brand{background:#eee;padding:6px;border-radius:5px}
