/* Shared console and portal polish. All application IDs and form controls stay intact. */
:root{--ui-accent:#ef7d19;--ui-accent-soft:#fff2e6;--ui-surface:#fff;--ui-bg:#f5f6f8;--ui-ink:#252a34;--ui-muted:#737b89;--ui-border:#e5e7eb;--ui-shadow:0 8px 30px #242a3405}
html[data-theme=dark]{--ui-accent:#ff9b48;--ui-accent-soft:#35291f;--ui-surface:#222427;--ui-bg:#181a1d;--ui-ink:#f1f2f4;--ui-muted:#a3a8b2;--ui-border:#35383e;--ui-shadow:none}
body.ui-refreshed{background:var(--ui-bg);color:var(--ui-ink);font-size:13px;line-height:1.8}
.ui-refreshed h1,.ui-refreshed h2,.ui-refreshed h3{color:var(--ui-ink);font-weight:650;letter-spacing:-.025em}
.ui-refreshed h2{font-size:24px}.ui-refreshed .muted,.ui-refreshed .small{color:var(--ui-muted)}
.ui-refreshed .topbar{min-height:76px;padding:14px 28px;background:var(--ui-surface);border-color:var(--ui-border)}
.ui-refreshed .brand-product{font-size:16px;color:var(--ui-ink)}.ui-refreshed .brand-product span{font-size:10px;color:var(--ui-muted)}
.ui-refreshed .top-actions{gap:10px;flex-wrap:wrap}.ui-refreshed .identity{font-family:ui-monospace,monospace;font-size:11px;padding:6px 10px;background:var(--ui-bg);border-radius:7px}
.ui-refreshed .environment{font-size:11px}.ui-refreshed .theme-toggle{font-size:11px;padding:7px 10px}.ui-refreshed .theme-toggle-user{float:none;margin:0}
.language-control{display:inline-flex;align-items:center;gap:6px;color:var(--ui-muted);font-size:11px;margin:0;white-space:nowrap}.language-control select{font:inherit;min-width:86px;width:auto;padding:6px 9px;margin:0;border-radius:7px;border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-ink);cursor:pointer}
.ui-refreshed .app-shell{grid-template-columns:244px minmax(0,1fr);align-items:start}.ui-refreshed .nav{position:sticky;top:0;max-height:100vh;overflow-y:auto;min-height:calc(100vh - 76px);padding:18px 12px;background:var(--ui-surface);border-inline-end:1px solid var(--ui-border);border-inline-start:0;border-left:0;gap:10px;scrollbar-width:thin}
.nav-section{display:grid;gap:4px}.nav-section-toggle{display:flex!important;align-items:center!important;justify-content:space-between;gap:10px!important;padding:9px 11px!important;background:transparent!important;color:var(--ui-muted)!important;font-size:10px!important;font-weight:600;letter-spacing:.025em;min-height:34px;border:0!important;box-shadow:none!important;text-align:start!important}
.nav-section-toggle::after{content:'⌄';font-size:14px;transform:rotate(0deg);transition:transform .15s}.nav-section.is-collapsed .nav-section-toggle::after{transform:rotate(90deg)}.nav-section.is-collapsed>button[data-tab]{display:none!important}
.ui-refreshed .nav button[data-tab]{display:flex;align-items:center;gap:11px;padding:11px 12px;text-align:start;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ui-muted);font-size:12px;line-height:1.6;min-height:42px;box-shadow:none;transition:background .15s,color .15s,border-color .15s}
.ui-refreshed .nav button[data-tab]:hover{background:var(--ui-bg);color:var(--ui-ink)}.ui-refreshed .nav button[data-tab].active{background:var(--ui-accent-soft);color:var(--ui-accent);border-color:color-mix(in srgb,var(--ui-accent) 22%,transparent);font-weight:650;box-shadow:none}
.ui-refreshed .nav .nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 19px;width:19px;color:inherit;grid-row:auto}.ui-refreshed .nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.ui-refreshed .nav .nav-en{display:none}.ui-refreshed .nav-bottom{border-top:1px solid var(--ui-border);padding:16px 12px 4px;margin-top:18px;font-size:10px;color:var(--ui-muted)}
.ui-refreshed main{padding:26px 32px 0}.ui-refreshed .page-context{color:var(--ui-muted);margin-bottom:22px}.ui-refreshed .context-host{margin-inline-start:auto;margin-right:0}
.ui-refreshed .page-heading{margin-bottom:20px}.ui-refreshed .box{border:1px solid var(--ui-border);border-radius:13px;background:var(--ui-surface);box-shadow:var(--ui-shadow);padding:22px;margin-bottom:20px}
.ui-refreshed .table-box{padding:0;overflow:hidden}.ui-refreshed .table-toolbar{background:var(--ui-surface);border-bottom:1px solid var(--ui-border);padding:16px 20px}.ui-refreshed th{font-size:11px;font-weight:600;background:var(--ui-bg);color:var(--ui-muted);text-align:start}.ui-refreshed th,.ui-refreshed td{border-color:var(--ui-border)}.ui-refreshed tbody tr:hover{background:var(--ui-bg)}
.ui-refreshed .primary{background:#ef7d19;border-color:#ef7d19;color:#21180f;box-shadow:0 2px 3px #ef7d1910}.ui-refreshed .primary:hover{background:#fa8f34;border-color:#fa8f34}.ui-refreshed button{border-radius:8px}.ui-refreshed button:not(.primary):not(.nav-section-toggle):not([data-tab]):not(.text-action):not(.quiet){border-color:var(--ui-border)}
.ui-refreshed input:not([type=checkbox]):not([type=radio]),.ui-refreshed textarea,.ui-refreshed select{background:var(--ui-surface);color:var(--ui-ink);border-color:var(--ui-border);border-radius:8px}.ui-refreshed input:not([type=checkbox]):focus,.ui-refreshed textarea:focus,.ui-refreshed select:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px #ef7d1910}.ui-refreshed input[type=checkbox]:focus{box-shadow:none;outline:none}
.ui-refreshed .metrics{gap:16px}.ui-refreshed .metric-card{background:var(--ui-surface)}.ui-refreshed .metric{color:var(--ui-ink);font-weight:650;font-size:32px;text-align:start}.ui-refreshed .metric-icon{left:auto;right:auto;inset-inline-end:20px;background:var(--ui-accent-soft);color:var(--ui-accent)}
.ui-refreshed .tabs{display:flex;gap:5px;overflow-x:auto;border:0;padding:4px;background:var(--ui-bg);border-radius:10px;margin-bottom:20px;scrollbar-width:thin}.ui-refreshed .tabs .tab,.ui-refreshed .tabs .tab:hover,.ui-refreshed .tabs .tab.active{padding:8px 14px;border:1px solid transparent;border-radius:7px;margin:0;box-shadow:none;font-size:12px;white-space:nowrap;background:transparent;color:var(--ui-muted)}.ui-refreshed .tabs .tab.active{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-ink);font-weight:600;box-shadow:0 2px 4px #00000004}
.ui-refreshed .login-layout{border-radius:18px;box-shadow:var(--ui-shadow);border-color:var(--ui-border)}.ui-refreshed .login-story{background:var(--ui-bg);border-color:var(--ui-border)}.ui-refreshed .login-card{background:var(--ui-surface)}.ui-refreshed .login-note{color:var(--ui-muted)}
.ui-refreshed dialog{border-radius:15px;border-color:var(--ui-border);background:var(--ui-surface);color:var(--ui-ink);padding:26px;box-shadow:0 24px 90px #0003}.ui-refreshed dialog::backdrop{background:#11131877;backdrop-filter:blur(3px)}
.ui-refreshed #route-domain-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.ui-refreshed #route-domain-form label{flex:1;min-width:200px;margin:0}.ui-refreshed #route-domain-form button{height:43px}.ui-refreshed #route-domain-list{border:1px solid var(--ui-border);border-radius:9px;padding:0 12px}.ui-refreshed #route-domain-list>div{border-color:var(--ui-border)!important}.ui-refreshed #route-domain-list>div>span:last-child{font-size:11px;color:var(--ui-muted)}
.ui-refreshed details>summary{cursor:pointer;padding:8px 0;color:var(--ui-muted)}.ui-refreshed .user-scope-filter{max-width:240px}.ui-refreshed #users .permission-username{text-align:start}.ui-refreshed .permission-group{border-color:var(--ui-border)!important;background:var(--ui-bg)}
.portal-tools{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:24px}.user-portal main{max-width:820px!important;margin:24px auto!important;padding:24px!important}.user-portal main>img{width:110px!important;margin-bottom:10px}.user-portal h1{font-size:26px;margin-bottom:26px}.user-portal #account>.box:first-child{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.user-portal #account-name{flex-basis:100%;font-size:20px;margin-bottom:2px}.user-portal #account>.box:first-child>p{flex-basis:100%;font-size:11px;color:var(--ui-muted);margin:0;overflow-wrap:anywhere}.user-portal #userlogout{margin-inline-start:auto}.user-portal #totp-setup img{background:white;padding:10px;border-radius:10px;margin:12px 0}.user-portal #notice:not(:empty){padding:13px 16px;border:1px solid var(--ui-border);border-inline-start:3px solid var(--ui-accent);border-radius:9px;background:var(--ui-surface)}
html[lang=en] body,html[lang=en] button,html[lang=en] input,html[lang=en] textarea,html[lang=en] select{font-family:Inter,'Segoe UI',Arial,sans-serif}html[dir=ltr] .nav{border-left:0}html[dir=ltr] .detail-list dd{text-align:end}html[dir=ltr] .login-story{border-left:0;border-right:1px solid var(--ui-border)}html[dir=ltr] .nav-bottom>span:last-child{padding-left:14px;padding-right:0}html[dir=ltr] .nav-bottom .dot{margin-left:0;margin-right:7px}html[dir=ltr] .permission-username{text-align:left!important}
@media(max-width:1100px){.ui-refreshed .app-shell{grid-template-columns:220px minmax(0,1fr)}.ui-refreshed main{padding:22px}.ui-refreshed .topbar{padding:14px 20px}.ui-refreshed .environment{display:none}}
@media(max-width:850px){.ui-refreshed .app-shell{grid-template-columns:minmax(0,1fr)}.ui-refreshed .nav{position:static;min-height:auto;max-height:none;display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;align-items:center;gap:6px;padding:10px 14px;border-inline-end:0;border-bottom:1px solid var(--ui-border)}.ui-refreshed .nav-section{display:contents}.ui-refreshed .nav-section-toggle,.ui-refreshed .nav-bottom{display:none!important}.ui-refreshed .nav-section.is-collapsed>button[data-tab],.ui-refreshed .nav button[data-tab]{display:flex!important;flex:0 0 auto;white-space:nowrap;padding:9px 12px;min-height:38px;font-size:11px}.ui-refreshed .nav .nav-icon{width:16px;flex-basis:16px}.ui-refreshed .topbar{gap:12px}.ui-refreshed .top-actions{gap:8px}.ui-refreshed .identity{display:none}.ui-refreshed main{padding:20px 16px 0}.ui-refreshed .box{padding:18px}.ui-refreshed .table-box{padding:0}.ui-refreshed .brand-divider{display:none}.ui-refreshed .brand{gap:10px}.ui-refreshed .brand img{width:95px}.ui-refreshed .brand-product{font-size:13px}.ui-refreshed .theme-toggle{font-size:0;min-width:34px}.ui-refreshed .theme-toggle::first-letter{font-size:14px}.user-portal main{padding:16px!important;margin:10px auto!important}.ui-refreshed .page-heading{flex-wrap:wrap}.ui-refreshed .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ui-refreshed *{transition:none!important;scroll-behavior:auto!important}}
.ui-refreshed .nav button[hidden]{display:none!important}
