/* Premium Compact UI - global, presentation-only overrides */
:root{
 --ui-gap:12px; --ui-radius:12px; --ui-line:rgba(190,207,228,.16);
 --ui-surface:#102238; --ui-surface2:#142b43; --ui-text:#edf3fa;
}
html{scroll-behavior:smooth}
body{font-size:13px!important;line-height:1.52!important}
.topbar{min-height:54px!important;padding:0 22px!important}
.app-layout{grid-template-columns:218px minmax(0,1fr)!important;min-height:calc(100vh - 54px)!important}
.side-nav{top:54px!important;height:calc(100vh - 54px)!important;padding:13px 11px!important;gap:4px!important}
.side-nav a{padding:8px 10px!important;border-radius:8px!important;font-size:12px!important;line-height:1.35!important}
.nav-caption{margin:13px 9px 3px!important;font-size:9px!important}
.content-area{padding:20px clamp(14px,2vw,28px)!important;max-width:1800px!important}
.page-kicker{font-size:9px!important;letter-spacing:1.8px!important}
.content-area h1{font-size:clamp(21px,2vw,28px)!important;line-height:1.22!important;margin:5px 0 15px!important}
h2{line-height:1.3}
.panel,.cards article,.setup-card{
 padding:15px!important;margin-bottom:13px!important;border-radius:var(--ui-radius)!important;
 box-shadow:0 8px 22px rgba(0,0,0,.12),inset 0 1px rgba(255,255,255,.025)!important
}
.panel h2{font-size:15px!important;margin:0 0 11px!important}
.panel p{margin:7px 0;line-height:1.5!important}
.cards{gap:10px!important;margin:13px 0 16px!important}
.cards article{min-height:82px!important;padding:14px!important;font-size:10px!important}
.cards article small{font-size:20px!important;margin-top:6px!important}
.form-grid{gap:10px!important}
.field label,label{font-size:11px!important;margin-bottom:4px!important}
input,select,textarea,.field input,.field select,.field textarea{
 min-height:34px!important;padding:7px 9px!important;border-radius:7px!important;font-size:12px!important
}
textarea,.field textarea{min-height:72px!important}
button,.btn,.form-panel button,.setup-card button{
 min-height:33px!important;padding:7px 12px!important;border-radius:8px!important;font-size:11px!important
}
table{font-size:11px!important}
th,td{padding:8px 8px!important;line-height:1.4!important}
th{font-size:10px!important}
.table-wrap{max-width:100%;overflow:auto}
.notice,.error,.alert{padding:9px 11px!important;margin:9px 0 12px!important;font-size:12px!important}
.actions{gap:5px!important}
.workspace-nav-wrap{margin:14px 0 17px!important;padding:13px!important;border-radius:12px!important}
.workspace-nav-title{margin-bottom:10px!important}
.workspace-nav{gap:8px!important}
.workspace-nav a{min-height:58px!important;padding:9px!important;border-radius:9px!important}
.workspace-nav .nav-icon{width:30px!important;height:30px!important;flex-basis:30px!important;font-size:16px!important}
.dashboard-wrap{max-width:1500px!important;margin:25px auto!important;padding:0 18px!important}
.dashboard-wrap h1{font-size:25px!important}
.login-shell{min-height:0!important;width:min(920px,calc(100% - 28px))!important;border-radius:18px!important}
.brand-panel,.form-panel{padding:34px 32px!important}
.brand-mark{margin-bottom:22px!important}
.feature-line{margin-top:25px!important}
.brand-footer{margin-top:34px!important}
.form-panel h2{font-size:25px!important;margin:17px 0 5px!important}
.subheading{margin-bottom:14px!important}
.form-panel label,.setup-card label{margin:12px 0 6px!important}
.form-panel input,.setup-card input{height:39px!important}
.form-panel button,.setup-card button{height:39px!important;margin-top:17px!important}
.form-note{margin-top:14px!important}
.copyright{margin-top:18px!important}
@media(max-width:900px){
 .app-layout{grid-template-columns:1fr!important}
 .side-nav{position:relative!important;top:auto!important;height:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:9px!important}
 .nav-caption{grid-column:1/-1}
 .content-area{padding:16px 12px!important}
}
@media(max-width:600px){
 .topbar{min-height:48px!important;padding:9px 12px!important;gap:7px!important;flex-wrap:wrap}
 .user-area{width:100%}
 .side-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .content-area{padding:13px 9px!important}
 .panel{padding:12px!important}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .workspace-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .brand-panel,.form-panel{padding:24px 20px!important}
 .login-shell{width:calc(100% - 18px)!important;margin:9px 0}
 .form-grid{grid-template-columns:1fr!important}
}


/* Premium accessible action controls: prevent dark text on saturated buttons */
a.sc-btn, button.sc-btn, .sc-btn,
a.btn, button.btn, .btn,
a[class*="btn-"], button[class*="btn-"],
.table-wrap td a, .table-wrap td button {
  text-shadow:none!important;
}
a.sc-btn.purple, button.sc-btn.purple,
.sc-table td a.sc-btn.purple, .sc-table td button.sc-btn.purple,
.sc-table td a[class*="purple"], .sc-table td button[class*="purple"] {
  background:#403477!important;
  background-image:none!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:1px solid #7667bd!important;
  box-shadow:0 3px 10px rgba(0,0,0,.18)!important;
}
.sc-table td a.sc-btn, .sc-table td button.sc-btn,
.table-wrap td a.btn, .table-wrap td button.btn {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
a.sc-btn.blue,button.sc-btn.blue{background:#164d70!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
a.sc-btn.green,button.sc-btn.green{background:#17634f!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
a.sc-btn.dark,button.sc-btn.dark{background:#344b65!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
