/* UI Update 1: scoped overrides retain existing application components. */
.topbar{padding:14px 24px;gap:24px;align-items:center}
.cs-brand{display:flex;flex-direction:column;flex-shrink:0;gap:4px;line-height:1.2}
.cs-brand img{width:180px;height:auto;display:block}
.cs-brand span{margin:0;font-size:12px;font-weight:500;letter-spacing:.045em;color:#d8e6fc}
.primary-navigation{align-items:center;gap:8px 16px;min-width:0}
.primary-navigation>a,.nav-logout button{display:inline-flex;align-items:center;min-height:44px;padding:8px 4px;font-size:13px}
.nav-logout{margin:0 0 0 auto}
.nav-toggle{display:none;min-width:44px;min-height:44px;border:1px solid #627998;background:transparent;color:white;font-size:24px;padding:2px 10px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #68a7ff;outline-offset:3px}
.dashboard-page h1{font-size:26px;margin:4px 0 16px}
.dashboard-page .toolbar{margin:12px 0 18px}
.dashboard-page .toolbar .button{min-height:40px;font-size:13px;padding:10px 14px}
.dashboard-stats{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.dashboard-stats .panel{padding:14px 18px;min-width:170px;max-width:250px;margin:0;font-size:12px;font-weight:600;color:#52647c;box-shadow:none}
.dashboard-stats .stat{font-size:28px;line-height:1.15;margin-bottom:5px;color:#174b8b}
.dashboard-page>section.panel{padding:18px;min-width:0}
.dashboard-page h2{font-size:18px;margin:0 0 16px}
.test-table-wrap{max-width:100%;box-shadow:0 3px 12px #21344e08}
.test-table thead{background:#193c67}
.test-table th{padding:14px 16px;font-size:12px}
.test-table td{padding:16px;overflow-wrap:anywhere}
.test-table td:first-child{min-width:170px;max-width:340px}
.test-actions{min-width:360px;gap:6px}
.test-action{min-height:36px;box-shadow:none}
.test-create{background:#215cc3;box-shadow:none}
.test-paper-id,.test-date{color:#344e70}
.test-pagination{gap:12px;margin-top:16px;color:#52647c}
.test-pagination a{padding:10px 14px;border:1px solid #cbd7e7;border-radius:7px;color:#174b8b;background:#fff;min-height:40px}
.auth-card{max-width:640px;margin:36px auto;background:#fff;border:1px solid #dbe4ee;border-radius:16px;overflow:hidden;box-shadow:0 10px 32px #1837590b}
.auth-brand{background:#112a50;padding:24px 30px;display:flex;flex-direction:column;gap:7px}
.auth-brand img{width:240px;max-width:100%;height:auto}
.auth-brand span{font-size:13px;color:#d8e6fc;letter-spacing:.06em}
.auth-body{padding:28px 30px}
.auth-body .eyebrow{font-size:10px;letter-spacing:1.3px;margin-bottom:6px}
.auth-body h1{font-size:26px;margin:0 0 24px}
.auth-field{margin-bottom:18px}
.auth-field input:not([type=checkbox]){min-height:46px;border-color:#bacadd;background:#fbfcfe}
.auth-field input:focus{outline:3px solid #dceaff;border-color:#215cc3;background:#fff}
.auth-field label{font-size:12px;margin-bottom:7px}
.remember-field label{display:flex;align-items:center;gap:9px;min-height:32px;font-size:13px}
.auth-form .auth-help{font-size:10px;line-height:1.6;color:#58697e;margin:5px 0 18px;overflow-wrap:anywhere}
.auth-submit{width:100%;min-height:46px;font-weight:650;background:#215cc3}
.auth-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.auth-links a{font-size:11px;font-weight:600;padding:9px 11px;border:1px solid #dbe4ee;border-radius:7px;background:#f6f8fc;color:#304f78;text-decoration:none;min-height:36px}
.auth-note,.auth-legal{color:#64748b;font-size:11px;line-height:1.5;margin:18px 0 0}
.auth-legal{font-size:10px;margin-top:8px}
.auth-form .errorlist{color:#9c2222;font-size:12px;padding-left:18px}
@media(max-width:850px){
 .topbar{padding:12px 16px;gap:0;justify-content:space-between}
 .cs-brand img{width:170px}.cs-brand span{font-size:11px}
 .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
 .primary-navigation{display:none;flex:0 0 100%;width:100%;padding-top:12px;margin-top:12px;border-top:1px solid #47617f;flex-direction:column;align-items:stretch;gap:3px}
 .primary-navigation.is-open{display:flex}
 .primary-navigation>a,.nav-logout button{width:100%;min-height:44px;padding:10px 8px;border-radius:6px}
 .primary-navigation>a:hover{background:#203e65}
 .nav-logout{margin:0;border-top:1px solid #47617f;padding-top:4px}
 .nav-logout button{text-align:left;justify-content:flex-start}
 .primary-navigation .subscription-tab{margin:0}.primary-navigation .subscription-popover{position:static;width:100%;max-width:100%}
 .primary-navigation summary{min-height:44px;padding:10px 8px}
 .test-actions{min-width:250px}.test-action{min-height:44px}
 .dashboard-page>section.panel{padding:14px 10px}.dashboard-stats .panel{min-width:160px}
 .auth-card{margin:20px auto}.auth-brand{padding:22px}.auth-body{padding:24px 22px}
}
@media(max-width:375px){.auth-body{padding:20px 16px}.auth-brand{padding:20px 16px}.auth-links{gap:6px}.auth-links a{padding:9px 8px}.dashboard-page h1{font-size:23px}}
