/* AECPS Institutional Workspace 2.0 — restrained, high-density operational UI. */
:root{--nav:#102238;--nav2:#172d44;--nav-muted:#92a4b7;--gold:#d7b46a;--ink:#16283e;--muted:#6d7b8d;--surface:#fff;--canvas:#f6f7fa;--soft:#f7f8fa;--line:#e6e9ed;--strong-line:#d6dce3;--green:#23785b;--red:#ab3c3e;--shadow:0 5px 24px rgba(15,31,52,.025);--radius:13px;--font:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--display:Georgia,'Times New Roman',serif;color-scheme:light}
[data-theme=dark]{--ink:#ecf1f6;--muted:#a2b0c2;--surface:#1b2b3e;--canvas:#111c2b;--soft:#203248;--line:#34455b;--strong-line:#536176;--green:#7bc1a1;--red:#ec9191;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}html{font-size:14px;scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased;line-height:1.55}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}svg{display:block} .ico{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d5ae58;outline-offset:3px}.skip-link{position:fixed;top:-80px;left:20px;background:var(--surface);padding:12px 20px;z-index:1000}.skip-link:focus{top:10px}
.shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh}.sidebar{height:100vh;background:var(--nav);color:#d8e1e9;display:flex;flex-direction:column;position:sticky;top:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#34516b transparent;z-index:90}.brand{padding:24px 21px 13px;min-height:87px;display:flex;align-items:center}.brand img{display:block;width:225px;max-width:100%;height:auto;object-fit:contain}.workspace-label{margin:1px 20px 23px;display:flex;align-items:center;gap:9px;padding:10px 12px;color:#cad8e8;background:#1d344a;border:1px solid #2f485e;border-radius:7px;font-size:9px;letter-spacing:1.3px;font-weight:700}.workspace-indicator{height:7px;width:7px;display:inline-block;background:#bba16a;border-radius:50%;box-shadow:0 0 0 3px rgba(215,180,106,.12)}.sidebar nav{padding:0 12px 25px}.nav-section{color:#8095aa;font-size:10px;font-weight:750;letter-spacing:1.45px;padding:20px 14px 10px}.nav-link{display:flex;align-items:center;gap:12px;min-height:41px;padding:9px 12px;border-radius:7px;color:#c4d1de;font-size:12px;font-weight:500;transition:background .16s,color .16s;position:relative}.nav-link .ico{color:#9bb0c5;width:17px;height:17px}.nav-link:hover{background:#21384e;color:white}.nav-link.is-active{background:#263e57;color:#fff;font-weight:650}.nav-link.is-active:before{content:'';position:absolute;left:-12px;top:8px;height:25px;width:3px;border-radius:0 3px 3px 0;background:var(--gold)}.nav-link.is-active .ico{color:var(--gold)}.nav-shortcut{margin-left:auto;color:#8298ad;font-size:10px;letter-spacing:.5px}.sidebar-bottom{margin-top:auto;padding:15px 12px 12px}.sidebar-trust{border:1px solid #30475d;border-radius:9px;display:flex;gap:10px;padding:12px;color:#c2cfda;background:#172b40;margin:0 3px 15px}.sidebar-trust .ico{color:var(--gold)}.sidebar-trust strong,.sidebar-trust span{display:block}.sidebar-trust strong{font-size:11px;color:#f3f4f3;font-weight:620}.sidebar-trust span{font-size:10px;color:#8fa6bb;margin-top:2px}.sidebar-profile{border-top:1px solid #2b4156;padding:16px 6px 5px;display:flex;align-items:center;gap:10px}.profile-avatar,.top-avatar{height:34px;width:34px;display:grid;place-items:center;background:#e8dcb9;color:#4b3d24;border-radius:50%;font-weight:750;flex:none}.profile-details{min-width:0;flex:1}.profile-details strong,.profile-details span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-details strong{color:#fff;font-size:11px}.profile-details span{color:#9aadc1;font-size:10px}.sidebar-profile button{color:#a8b8c8}.sidebar-profile form{margin:0}
.work-area{min-width:0;display:flex;flex-direction:column}.topbar{height:74px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 42px;gap:20px;position:sticky;top:0;z-index:40}.topbar-left,.topbar-right{display:flex;align-items:center;gap:16px}.topbar-title{font-size:12px;color:var(--muted);font-weight:550}.topbar-title span{padding:0 8px;color:#bdc5ce}.topbar-right{gap:18px}.top-search{height:37px;display:flex;align-items:center;gap:11px;padding:0 11px;background:var(--soft);border:1px solid var(--line);border-radius:8px;color:var(--muted);width:290px}.top-search .ico{width:15px;height:15px}.top-search input{outline:none;border:0;min-width:0;flex:1;background:transparent;color:var(--ink);font-size:11px}.top-search input:focus-visible{outline:0}.top-search kbd{font-size:10px;border:1px solid var(--strong-line);padding:1px 6px;border-radius:4px;white-space:nowrap}.privacy-pill{font-size:10px;color:var(--green);font-weight:700;letter-spacing:.8px;display:flex;gap:6px;align-items:center}.privacy-pill span{background:#4caa7f;border-radius:50%;height:6px;width:6px}.icon-button{border:0;background:transparent;color:var(--muted);height:35px;width:35px;display:grid;place-items:center;border-radius:8px}.icon-button:hover{background:var(--soft)}.icon-button.ghost:hover{background:#274058;color:white}.top-avatar{height:31px;width:31px;font-size:12px}.mobile-menu{display:none}.main-content{padding:36px 45px 0;max-width:1800px;width:100%;margin:0 auto;flex:1}.workspace-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:30px 0 26px;margin-top:36px;color:#8c97a4;border-top:1px solid var(--line);font-size:10px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:27px}.page-heading h1{font-size:32px;line-height:1.17;letter-spacing:-1.1px;margin:13px 0 9px;font-weight:660}.page-heading h1 em{font-family:var(--display);font-weight:400;font-size:1.09em;letter-spacing:-1.5px}.page-heading p{margin:0;color:var(--muted);font-size:12px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.55px;color:#8b7953;display:flex;align-items:center;gap:10px}.eyebrow-line{display:inline-block;width:19px;height:1px;background:#bc9755}.eyebrow-separator{color:#b8bec4}.heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{min-height:39px;display:inline-flex;justify-content:center;align-items:center;gap:9px;border-radius:7px;padding:9px 15px;font-size:11px;font-weight:650;white-space:nowrap;border:1px solid transparent;transition:filter .18s,transform .18s}.btn .ico{height:16px;width:16px}.btn:hover{filter:brightness(.96)}.btn-primary{background:#18344e;color:#fff;border-color:#18344e}.btn-secondary{color:var(--ink);border-color:var(--strong-line);background:var(--surface)}.btn-danger{background:#a83e43;color:white}.btn-small{min-height:34px;padding:6px 11px}.full{width:100%}
.welcome-banner{height:212px;background:#142e45;position:relative;border-radius:11px;overflow:hidden;color:#fff;display:flex;align-items:stretch;box-shadow:0 10px 23px rgba(16,40,64,.08);margin-bottom:23px}.welcome-banner:before{content:'';position:absolute;inset:0;background:linear-gradient(95deg,rgba(15,34,54,.08),rgba(15,34,54,0) 70%),radial-gradient(ellipse at 80% 20%,#224761 0%,transparent 50%)}.welcome-copy{z-index:2;padding:27px 32px;max-width:590px}.welcome-overline{font-size:9px;font-weight:750;letter-spacing:1.7px;color:#e3c98c;display:flex;align-items:center;gap:9px}.gold-dot{width:5px;height:5px;background:var(--gold);border-radius:50%}.welcome-copy h2{font-family:var(--display);font-size:28px;line-height:1.2;font-weight:400;letter-spacing:-.45px;margin:13px 0 8px}.welcome-copy h2 em{color:#e6c98b;font-weight:400}.welcome-copy p{font-size:11px;max-width:410px;color:#bac8d5;line-height:1.65;margin:0}.welcome-link{display:inline-flex;align-items:center;gap:10px;font-weight:700;color:#ebd2a0;font-size:10px;margin-top:14px}.welcome-link .ico{width:14px;height:14px}.welcome-art{position:absolute;right:55px;top:0;bottom:0;width:360px;opacity:.7}.art-ring{position:absolute;border:1px solid #b5ad94;border-radius:50%;transform:rotate(-17deg);opacity:.6}.ring-a{height:330px;width:330px;top:-60px;right:15px}.ring-b{height:260px;width:260px;top:-25px;right:50px}.ring-c{height:195px;width:195px;top:6px;right:82px}.art-monogram{position:absolute;font-family:Georgia,serif;font-size:160px;right:118px;top:-9px;color:#ab956d;opacity:.23;font-weight:400}.metrics-section{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:18px 20px 15px;box-shadow:var(--shadow);min-width:0}.metric-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);font-weight:640;letter-spacing:.1px}.metric-head .ico{width:16px;height:16px;color:#91a0b0}.metric-value{font-size:32px;line-height:1.2;letter-spacing:-1.1px;color:var(--ink);font-weight:650;margin:10px 0 9px}.metric-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#8b98a7}.metric-foot a{font-size:10px;color:#7c6841;font-weight:650;white-space:nowrap}.metric-trend{color:var(--green)}
.dashboard-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:17px;margin-bottom:17px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px;border-bottom:1px solid var(--line)}.mini-eyebrow{letter-spacing:1.25px;font-size:9px;font-weight:780;color:#a48d5a;margin-bottom:4px}.panel-heading h3{font-size:15px;line-height:1.4;margin:0;letter-spacing:-.25px;font-weight:670}.text-link{font-size:10px;color:#997a3e;font-weight:750;white-space:nowrap}.empty-panel{min-height:187px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px 15px}.empty-illustration{width:43px;height:43px;border-radius:50%;background:var(--soft);border:1px solid var(--line);display:grid;place-items:center;color:#b49a63;margin-bottom:11px}.empty-illustration .ico{width:20px;height:20px}.empty-panel strong{font-size:12px}.empty-panel p{font-size:10px;color:var(--muted);margin:4px 0 12px}.activity-list{min-height:190px}.task-row,.recent-row{display:flex;align-items:center;gap:13px;padding:13px 22px;border-bottom:1px solid var(--line)}.task-row:hover,.recent-row:hover{background:var(--soft)}.task-row:last-child,.recent-row:last-child{border-bottom:0}.task-marker{width:17px;height:17px;border:1.5px solid #c2ced6;border-radius:50%;flex:none}.task-marker.important{border-color:#d8aa6b}.task-desc{min-width:0;flex:1}.task-desc strong,.task-desc small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.task-desc strong{font-size:11px;color:var(--ink);font-weight:680}.task-desc small{font-size:10px;color:var(--muted);margin-top:2px}.task-row>.ico{width:14px;color:#a3aeb7}.recent-icon{display:grid;place-items:center;width:29px;height:29px;background:var(--soft);border:1px solid var(--line);border-radius:7px;color:#8e9ba8}.recent-icon .ico{width:15px}.status-pill{border-radius:5px;background:var(--soft);border:1px solid var(--line);font-size:10px;padding:4px 7px;color:var(--muted);font-weight:630;white-space:nowrap}.status-active,.status-approved,.status-authorized,.status-issued{background:rgba(57,150,108,.09);color:var(--green);border-color:rgba(57,150,108,.20)}.status-revoked,.status-suspended,.status-void{color:var(--red);background:rgba(190,60,60,.08);border-color:rgba(190,60,60,.18)}
.dashboard-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:17px}.quick-panel .panel-heading{border-bottom:0;padding-bottom:11px}.shortcut-grid{padding:0 20px 19px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shortcut-grid>a{border:1px solid var(--line);background:var(--soft);border-radius:8px;display:flex;align-items:center;gap:10px;padding:11px 12px;font-size:11px;font-weight:650;min-width:0}.shortcut-grid>a:hover{border-color:#b6aa91}.shortcut-icon{width:30px;height:30px;background:var(--surface);border:1px solid var(--line);border-radius:7px;display:grid;place-items:center;color:#9d844e;flex:none}.shortcut-icon .ico{height:16px;width:16px}.shortcut-grid .go{margin-left:auto;width:14px;height:14px;color:var(--muted)}.assurance-panel{padding:24px 25px;background:#e9eced;border:1px solid #e0e4e8;border-radius:11px;position:relative;overflow:hidden;color:#24384d}.assurance-panel:after{content:'';position:absolute;width:230px;height:230px;border-radius:50%;border:1px solid #ced2d4;right:-95px;top:10px;box-shadow:0 0 0 23px rgba(222,226,228,.4),0 0 0 48px rgba(222,226,228,.2);pointer-events:none}.assurance-mark{width:37px;height:37px;border:1px solid #c3c9cb;display:grid;place-items:center;border-radius:8px;margin-bottom:13px;color:#75899c}.assurance-panel .mini-eyebrow{color:#a08751}.assurance-panel h3{font:normal 22px/1.19 var(--display);letter-spacing:-.3px;margin:7px 0 10px}.assurance-panel h3 em{color:#8e7546}.assurance-panel p{font-size:10px;color:#647384;max-width:270px;line-height:1.7;margin-bottom:11px;position:relative;z-index:2}.assurance-link{font-size:10px;font-weight:750;display:flex;align-items:center;gap:8px;color:#475e71}.assurance-link .ico{height:14px;width:14px}[data-theme=dark] .assurance-panel{background:#223a50;color:#ebf0f5;border-color:#334a62}[data-theme=dark] .assurance-panel p{color:#acbbcb}
.alerts{margin-bottom:18px}.alert{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border:1px solid var(--line);background:var(--surface);border-radius:8px;font-size:12px;margin-bottom:10px}.alert-success{border-color:#a6d6bd;background:#ecf9f0;color:#226445}.alert-error{border-color:#ecc2bd;background:#fff1f0;color:#9f3636}.alert-info{background:var(--soft)}.back-link{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin:0 0 20px}.back-link .ico{width:14px}
.records-panel{overflow:hidden}.records-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px}.records-header>div:first-child strong{display:block;font-size:13px}.records-header>div:first-child span,.records-header>span{font-size:11px;color:var(--muted)}.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.filters select{min-height:35px;max-width:150px}.filter-search{display:flex;gap:9px;align-items:center;padding:0 11px;border:1px solid var(--line);border-radius:7px;background:var(--soft);height:35px}.filter-search input{width:145px;border:0;outline:0;background:none;font-size:11px;color:var(--ink)}.filter-search .ico{width:15px;color:var(--muted)}.filters select{border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);padding:6px 25px 6px 10px;font-size:11px}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table th{white-space:nowrap;color:#7e8a9b;background:var(--soft);font-weight:750;letter-spacing:.9px;font-size:9px;text-transform:uppercase;padding:13px 20px;border-block:1px solid var(--line)}.data-table td{border-bottom:1px solid var(--line);padding:15px 20px;font-size:11px;color:var(--ink);vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:var(--soft)}.data-table th:first-child,.data-table td:first-child{padding-left:23px}.table-action{text-align:right;white-space:nowrap}.open-link{font-size:10px;color:#a07c3e;font-weight:730}.table-empty{padding:55px 20px;text-align:center;color:var(--muted);font-size:11px}.table-empty>.ico{margin:0 auto 11px;width:25px;height:25px;color:#a5b1be}.table-empty h3{font-size:14px;margin:0 0 4px;color:var(--ink)}.table-empty .btn{margin-top:14px}.pagination{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:10px}.pagination>div{display:flex;gap:8px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.8fr);gap:18px;align-items:start}.detail-panel{margin-bottom:17px}.field-grid{padding:9px 23px 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.field-pair{padding:14px 0;border-bottom:1px solid var(--line);min-width:0}.field-pair dt{font-size:10px;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}.field-pair dd{margin:5px 0 0;font-size:12px;overflow-wrap:anywhere}.actions-panel{padding-bottom:20px}.actions-panel>p{font-size:11px;color:var(--muted);padding:0 22px}.action-buttons{padding:0 22px;display:flex;gap:10px;flex-wrap:wrap}.action-buttons form{display:flex;flex-direction:column;gap:9px;width:auto;max-width:100%}.action-buttons form:has(textarea){width:100%}.action-buttons textarea{max-width:100%}.action-buttons label{font-size:11px}.history-panel{padding-bottom:12px}.history-item{display:flex;gap:11px;padding:15px 22px;position:relative}.history-dot{width:9px;height:9px;border-radius:50%;background:#c7ad72;margin-top:5px;box-shadow:0 0 0 4px rgba(208,177,107,.11);flex:none}.history-item:before{content:'';position:absolute;top:30px;bottom:-11px;left:26px;border-left:1px solid var(--line)}.history-item:last-child:before{display:none}.history-item strong{font-size:11px}.history-item p{font-size:10px;margin:3px 0;color:var(--muted)}.history-item small{font-size:9px;color:#98a4b1}.history-empty{padding:20px 22px;color:var(--muted);font-size:11px}.helper-note{border:1px solid #dedacb;border-radius:9px;background:#f6f3eb;padding:19px 20px;color:#746a53;margin-top:17px}.helper-note .ico{width:19px;height:19px;color:#a8915a}.helper-note p{margin:9px 0 0;font-size:11px;line-height:1.7}.helper-note h3{font-size:13px;color:#5f5542;margin:10px 0 6px}.helper-note.card-note{margin-top:0}[data-theme=dark] .helper-note{background:#2e3441;border-color:#4a4c4d;color:#d6c9a6}[data-theme=dark] .helper-note h3{color:#e0d4b8}
.form-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,.7fr);gap:18px;align-items:start}.form-panel{padding:27px 29px}.form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 19px}.form-field{min-width:0}.form-field:has(textarea),.form-field:has(input[type=file]),.form-field.field-check{grid-column:span 2}.form-field label{display:block;font-size:11px;font-weight:680;margin-bottom:6px}.required{color:#bd684e}.field-input,.form-field input:not([type=checkbox]),.form-field select,.form-field textarea,.large-search input{background:var(--surface);border:1px solid var(--strong-line);border-radius:7px;padding:10px 11px;width:100%;min-height:40px;color:var(--ink);font-size:12px}.form-field input[type=checkbox]{width:16px;height:16px;accent-color:#c5a46c}.form-field small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.field-error{color:var(--red);font-size:11px;margin-top:4px}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:23px}
.search-panel{padding:25px}.search-panel label{display:block;font-size:11px;font-weight:650;margin-bottom:10px}.large-search{display:flex;gap:12px;align-items:center}.large-search>.ico{color:var(--muted)}.large-search input{flex:1;width:0;border:0;font-size:15px;background:transparent}.large-search input:focus-visible{outline:0}.results-heading{margin:27px 0 13px;font-size:10px;color:var(--muted);letter-spacing:1px;font-weight:700}.result-row{display:flex;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid var(--line)}.result-row:last-child{border:0}.result-row:hover{background:var(--soft)}.result-row>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.result-row strong{font-size:12px}.result-row small{font-size:10px;color:var(--muted)}.result-arrow{color:var(--muted);height:14px}.search-tip{display:flex;gap:10px;margin-top:22px;color:var(--muted);font-size:11px}.search-tip .ico{color:#aa915b}
.system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.system-card{padding:25px}.system-card h3{font-size:16px;margin:13px 0}.system-icon{height:39px;width:39px;background:var(--soft);border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;color:#a48953}.system-card p{font-size:11px;line-height:1.75;color:var(--muted)}.setting-line{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.setting-line strong{color:var(--green)}.code-note{font:11px/1.9 ui-monospace,Consolas,monospace;padding:15px;background:var(--soft);border:1px solid var(--line);border-radius:7px;overflow-wrap:anywhere}.muted-small{color:var(--muted);font-size:10px!important}
.login-page{min-height:100vh;display:grid;place-items:center;background:#102238;position:relative;padding:25px}.login-background{position:absolute;inset:0;background:radial-gradient(circle at 70% 40%,#2b4a60,transparent 53%),repeating-linear-gradient(125deg,transparent 0,transparent 110px,rgba(255,255,255,.015) 111px,rgba(255,255,255,.015) 112px)}.login-card{background:white;width:100%;max-width:452px;position:relative;z-index:1;border-radius:13px;padding:39px 42px;box-shadow:0 20px 90px rgba(0,0,0,.24)}.login-logo{width:310px;height:auto;max-width:100%;padding:13px;background:#13283e;border-radius:7px;margin-bottom:25px}.login-tag{font-size:10px;letter-spacing:1.3px;color:#a28b60;font-weight:750}.login-card h1{font:normal 34px/1.2 var(--display);color:#21354a;margin:9px 0}.login-card p{font-size:12px;color:#687a89;margin:0 0 25px}.login-card form label{font-size:11px;font-weight:680;display:block;margin:14px 0 6px;color:#253a4f}.login-card form input{border:1px solid #ced5da;border-radius:7px;padding:11px 12px;width:100%;min-height:42px;background:white;color:#19304a}.login-card .btn{margin-top:22px;min-height:43px}.login-meta{display:flex;gap:8px;align-items:center;margin-top:21px;font-size:10px;color:#8a98a4}.login-meta .ico{width:15px}.login-footer{border-top:1px solid #e6e9ec;margin-top:24px;padding-top:17px;text-align:center;color:#a2abb5;font-size:10px}
.sidebar-scrim{display:none}@media(max-width:1380px){.sidebar{width:245px}.shell{grid-template-columns:245px minmax(0,1fr)}.topbar{padding:0 28px}.main-content{padding:31px 29px 0}.brand img{width:206px}.nav-link{font-size:11px}.welcome-art{right:-10px}}@media(max-width:1110px){.metrics-section{grid-template-columns:repeat(2,minmax(0,1fr))}.top-search{width:220px}.dashboard-grid{grid-template-columns:1fr}.dashboard-bottom{grid-template-columns:1fr 1fr}.welcome-art{opacity:.42}.records-header{align-items:flex-start;flex-direction:column}}@media(max-width:850px){.shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;transform:translateX(-105%);transition:transform .23s;box-shadow:14px 0 50px rgba(9,24,42,.1)}.menu-open .sidebar{transform:translateX(0)}.sidebar-scrim{display:none;position:fixed;inset:0;background:rgba(14,24,35,.44);z-index:80}.menu-open .sidebar-scrim{display:block}.mobile-menu{display:grid}.topbar{height:64px;padding:0 20px}.main-content{padding:27px 20px 0}.detail-grid,.form-grid{grid-template-columns:1fr}.dashboard-bottom{grid-template-columns:1fr}.welcome-banner{height:auto;min-height:210px}.topbar-title{display:none}}@media(max-width:580px){.main-content{padding:22px 15px 0}.topbar{padding:0 12px}.topbar-right{gap:8px}.top-search{width:155px}.top-search kbd{display:none}.privacy-pill{display:none}.page-heading{align-items:flex-start;flex-direction:column;gap:18px}.page-heading h1{font-size:29px}.heading-actions{width:100%}.heading-actions .btn{flex:1}.welcome-copy{padding:24px}.welcome-copy h2{font-size:24px}.welcome-art{right:-160px;opacity:.24}.metrics-section{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-card{padding:15px}.metric-value{font-size:27px}.metric-foot{flex-direction:column;align-items:flex-start}.shortcut-grid{grid-template-columns:1fr}.field-grid,.form-fields{grid-template-columns:1fr}.form-field:has(textarea),.form-field:has(input[type=file]),.form-field.field-check{grid-column:span 1}.form-panel{padding:20px}.workspace-footer{flex-direction:column;align-items:flex-start}.panel-heading{padding:17px}.dashboard-grid{gap:12px}.filters{width:100%}.filter-search,.filter-search input{flex:1;min-width:0}.records-header{padding:16px}.large-search{flex-wrap:wrap}.large-search input{min-width:70%}.large-search button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
.related-panel{margin-bottom:17px}.related-panel .result-row:last-child{border-bottom:0}

/* AECPS v2.1 extensions. Preserve the established design system. */
.main-content{display:flex;flex-direction:column;min-height:calc(100vh - 74px)}
.workspace-footer{margin-top:auto;padding-top:32px}
.login-logo{display:block;margin:0 auto 25px}
.profile-name{display:block;color:inherit;font-weight:700;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-name:hover{color:var(--gold)}
.profile-avatar,.top-avatar{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.narrow-panel{max-width:850px}
.narrow-panel h2{margin:8px 0 12px;font:normal 28px/1.1 var(--display)}
.field-help{font-size:12px;color:var(--muted)}
.btn-outline-danger{background:var(--surface);border:1px solid rgba(171,60,62,.5);color:var(--red)}
.btn-outline-danger:hover{background:rgba(171,60,62,.07)}
.status-completed,.status-held,.status-finalized,.status-paid,.status-assessed,.status-full-recognition,.status-scanned-clean,.status-active,.status-approved,.status-authorized,.status-issued,.status-issued-internally{background:rgba(45,151,99,.11)!important;border-color:rgba(45,151,99,.31)!important;color:var(--green)!important}
.status-pending,.status-under-review,.status-onboarding,.status-high,.status-quarantined,.status-in-progress{background:rgba(181,126,36,.13)!important;border-color:rgba(181,126,36,.31)!important;color:var(--gold)!important}
.status-revoked,.status-cancelled,.status-suspended,.status-threat-detected,.status-void,.status-infected{background:rgba(184,57,64,.12)!important;border-color:rgba(184,57,64,.35)!important;color:var(--red)!important}
.status-to-do,.status-prospect,.status-draft,.status-planned,.status-prepared,.status-inactive{background:var(--soft)!important;color:var(--muted)!important}
.record-heading{position:relative;z-index:5}
.record-tabs{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin:6px 0 20px}
.record-tabs button{border:0;border-bottom:3px solid transparent;border-radius:3px 3px 0 0;background:transparent;color:var(--muted);font-weight:700;font-size:12px;padding:12px 18px}
.record-tabs button[aria-selected=true]{color:var(--ink);border-color:var(--gold);background:var(--surface)}
.record-tab-pane[hidden]{display:none!important}
.connected-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.connected-grid .related-panel{margin:0}
.action-menu{position:relative}
.action-menu summary{list-style:none;cursor:pointer;user-select:none}
.action-menu summary::-webkit-details-marker{display:none}
.action-popover{position:absolute;right:0;top:calc(100% + 8px);width:min(390px,calc(100vw - 35px));max-height:min(65vh,590px);overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--strong-line);border-radius:11px;padding:17px;box-shadow:0 12px 40px rgba(8,21,41,.20);z-index:65;text-align:left}
.action-popover.action-popover-viewport{position:fixed;top:8px;left:8px;right:auto;max-width:calc(100vw - 16px);overscroll-behavior:contain}
.action-popover>strong{font:700 14px var(--font)}.action-popover>p{color:var(--muted);font-size:11px;margin:3px 0 12px}
.workflow-action{padding:11px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px;align-items:stretch}
.workflow-action label{font-weight:700;font-size:11px}.workflow-date{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.workflow-date[hidden]{display:none}
.workflow-action>.btn{width:100%;justify-content:center}
.data-table tbody tr[data-record-href]{cursor:pointer;transition:background .12s}
.data-table tbody tr[data-record-href]:hover{background:var(--soft)}
.record-primary-link{color:var(--ink);font-weight:650;text-underline-offset:3px}
.record-primary-link:hover{text-decoration:underline;color:var(--gold)}
.error-page{min-height:380px;text-align:center;max-width:590px;margin:auto;padding:36px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.error-icon{background:var(--nav);border-radius:50%;width:74px;height:74px;color:var(--gold);display:grid;place-items:center}
.error-icon .ico{width:31px;height:31px}.error-page h1{font:normal 42px var(--display);margin:0}.error-page p{color:var(--muted);font-size:14px}.error-number{font-size:11px;color:var(--muted);margin:8px 0}
.preview-row{padding:11px;border-bottom:1px solid var(--line);font-size:12px}.preview-list{max-height:280px;overflow:auto}
/* Progressive enhancement: native selects and date fields remain usable without JS. */
.aecps-combobox,.aecps-calendar{position:relative;display:block;min-width:0}
.enhanced-native{position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;opacity:0!important;pointer-events:none!important}
.combo-trigger,.calendar-trigger{width:100%;min-height:40px;background:var(--surface);color:var(--ink);border:1px solid var(--strong-line);border-radius:7px;text-align:left;padding:9px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}
.combo-trigger:hover,.calendar-trigger:hover{border-color:var(--gold)}
.combo-trigger::after{content:'';display:inline-block;width:16px;height:16px;flex:none;background:var(--aecps-chevron) center/16px 16px no-repeat;transition:transform .14s ease}.combo-trigger[data-open=true]::after{transform:rotate(180deg)}.calendar-trigger::after{content:'▦';color:var(--muted)}
.combo-trigger:focus-visible{outline:2px solid var(--control-focus);outline-offset:2px;box-shadow:none}.combo-filter:focus-visible{outline:2px solid var(--control-focus);outline-offset:1px;box-shadow:none}
.combo-popover,.calendar-popover{background:var(--surface);border:1px solid var(--strong-line);border-radius:9px;box-shadow:0 12px 32px rgba(6,20,35,.22);padding:10px;position:absolute;z-index:120;top:calc(100% + 5px);left:0;width:max(100%,240px);max-width:min(360px,calc(100vw - 42px))}
.combo-popover{position:fixed;top:0;left:0;z-index:160;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow:hidden;overscroll-behavior:contain;opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .14s ease,transform .14s ease}
.combo-popover[data-open=true]{opacity:1;transform:translateY(0);pointer-events:auto}
.combo-popover[hidden],.calendar-popover[hidden]{display:none}
.combo-search{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--strong-line);background:var(--surface);color:var(--muted);padding:0 9px;border-radius:6px;margin-bottom:8px;min-height:38px}.combo-search[hidden]{display:none}.combo-search .ico{width:15px;height:15px}.combo-filter{width:100%;border:0;outline:0;background:transparent;color:var(--ink);padding:8px 0;border-radius:6px;min-width:0}
.combo-options{max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:2px}
.combo-option{width:100%;display:flex;align-items:center;min-height:40px;text-align:left;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--ink);padding:9px 34px 9px 12px;font-size:12px;line-height:1.45;white-space:normal;position:relative;outline:0;box-shadow:none;transition:background-color .12s ease,box-shadow .12s ease}
.combo-option:hover,.combo-option.is-pointer-active{background:var(--soft);outline:0;box-shadow:none}.combo-option:disabled{color:var(--muted);cursor:not-allowed;opacity:.58}
.combo-option[aria-selected=true]{background:rgba(215,180,106,.14);font-weight:750}
.combo-option[aria-selected=true]::after{content:'✓';position:absolute;right:12px;color:var(--gold);font-weight:800}
.combo-option.is-keyboard-active,.combo-option:focus-visible{background:var(--soft);outline:0;box-shadow:inset 0 0 0 2px var(--control-focus)}
.combo-option.is-keyboard-active[aria-selected=true],.combo-option[aria-selected=true]:focus-visible{background:rgba(215,180,106,.2)}
[data-theme=dark] .combo-option[aria-selected=true]{background:rgba(215,180,106,.2);color:var(--ink)}
[data-theme=dark] .combo-option.is-keyboard-active,[data-theme=dark] .combo-option.is-pointer-active{background:#29425b}
.filters .aecps-combobox{width:min(150px,100%)}
.filters .aecps-combobox .combo-trigger{min-height:35px;padding:6px 10px;font-size:11px}
.form-field .aecps-combobox{width:100%}
.bulk-toolbar .aecps-combobox{min-width:150px;max-width:100%}
.bulk-toolbar .aecps-combobox .combo-trigger{min-height:35px;padding:8px;font-size:11px}
@media(prefers-reduced-motion:reduce){.combo-popover,.combo-trigger::after,.combo-option{scroll-behavior:auto;transition-duration:0s;transition:none}}
/* RC2 parity: identity entry remains readable during editing, masked when idle. */
.aecps-identity-entry{display:flex;align-items:center;gap:8px;max-width:100%}
.aecps-identity-entry>input{min-width:0;flex:1}
.aecps-identity-toggle{flex:0 0 auto;min-width:62px;min-height:40px;border:1px solid var(--strong-line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:11px;font-weight:700;cursor:pointer}
.aecps-identity-toggle:hover{background:var(--soft)}
.aecps-identity-toggle:focus-visible{outline:3px solid var(--control-focus);outline-offset:2px}
@media(max-width:360px){.aecps-identity-entry{gap:5px}.aecps-identity-toggle{min-width:52px}}
.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar-thumb{background:#34516b;border-radius:8px}.sidebar::-webkit-scrollbar-thumb:hover{background:#466985}
.top-search:focus-within,.filter-search:focus-within{border-color:var(--control-focus);box-shadow:0 0 0 2px color-mix(in srgb,var(--control-focus) 18%,transparent)}
.top-search input::placeholder,.filter-search input::placeholder{color:var(--muted);opacity:1}
/* RC2 parity v3: structured identity document section, scoped to record forms. */
.form-fields .form-field-wide{grid-column:1 / -1}
.form-fields .aecps-form-section-divider{grid-column:1 / -1;border-top:1px solid var(--line);padding-top:17px;margin-top:6px;min-width:0}
.form-fields .aecps-form-section-divider .mini-eyebrow{letter-spacing:.13em}
.form-fields .aecps-form-section-divider p{color:var(--muted);font-size:11px;line-height:1.6;max-width:680px;margin:7px 0 0}
@media(max-width:580px){.form-fields .aecps-form-section-divider{padding-top:15px}}
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.cal-head strong{font-weight:700;font-size:12px}.cal-nav{border:1px solid var(--line);background:var(--surface);border-radius:5px;color:var(--ink);min-width:28px;height:28px}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.cal-grid .cal-weekday{font-size:10px;font-weight:750;color:var(--muted);padding:6px 0}
.cal-grid button{border:0;background:transparent;color:var(--ink);border-radius:6px;min-height:30px;font-size:11px}
.cal-grid button:hover{background:var(--soft)}.cal-grid button[aria-selected=true]{background:var(--nav);color:var(--gold)}
.cal-grid button:disabled{opacity:.25;cursor:not-allowed}
.cal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.cal-footer button{font-size:11px;background:transparent;border:1px solid var(--line);border-radius:5px;padding:6px 9px;color:var(--ink)}
@media(max-width:850px){.main-content{min-height:calc(100vh - 64px)}.connected-grid{grid-template-columns:1fr}.action-popover{right:auto;left:0}}
@media(max-width:600px){
  .record-tabs{overflow-x:auto;flex-wrap:nowrap}.record-tabs button{flex:none;font-size:11px;padding:11px 12px}
  .data-table thead{display:none}.data-table tbody{display:block;padding:8px}
  .data-table tbody tr[data-record-href]{display:block;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;background:var(--surface);padding:10px 12px;box-shadow:var(--shadow)}
  .data-table tbody tr[data-record-href] td{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:7px 0;border:0;max-width:100%;min-width:0;overflow-wrap:anywhere;text-align:right}
  .data-table tbody tr[data-record-href] td::before{content:attr(data-label);font-size:10px;color:var(--muted);font-weight:700;text-align:left;flex:0 0 35%;white-space:normal}
  .data-table tbody tr[data-record-href] td:first-child .record-primary-link{font-weight:750;color:var(--ink)}
  .data-table tbody tr[data-record-href] td.table-action{display:none}
  .data-table tbody tr:not([data-record-href]) td{display:block}
  .table-scroll{overflow-x:hidden}
  .heading-actions{gap:7px}.heading-actions .action-menu{flex:1}
  .heading-actions .btn,.heading-actions summary.btn{min-height:37px;padding:8px 10px;font-size:10px}
  .workflow-date{grid-template-columns:1fr}
  .record-heading{z-index:5}
}
.mfa-qr{display:block;margin:14px 0;background:#fff;padding:10px;border:1px solid var(--line);border-radius:9px}

/* AECPS date and time controls */
:root{--today-ring:#8b6b2e;--control-focus:#8b6b2e}
[data-theme=dark]{--today-ring:#d7b46a;--control-focus:#f1d486}
.aecps-calendar-field{position:relative;min-width:0}
.calendar-floating{position:fixed!important;inset:auto;top:0;left:0;z-index:120;min-width:min(290px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain}
.cal-head{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:7px}
.cal-nav{width:34px;height:34px;display:grid;place-items:center;font-size:20px}
.cal-jump{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(66px,.75fr);gap:5px;min-width:0}
.cal-select-trigger{min-width:0;min-height:34px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:4px;border:1px solid var(--strong-line);border-radius:6px;background:var(--surface);color:var(--ink);padding:5px 8px;font-size:11px;font-weight:650;text-align:left}
.cal-select-trigger::after{content:'';width:16px;height:16px;flex:none;background:var(--aecps-chevron) center/16px 16px no-repeat}
.cal-year-trigger{justify-content:center;font-variant-numeric:tabular-nums}
.cal-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.cal-grid .cal-weekday{font-size:10px;color:var(--ink);padding:7px 0 5px;text-align:center}
.cal-day{min-width:24px;min-height:34px;padding:0;font-variant-numeric:tabular-nums}
.cal-day[aria-current=date]:not([aria-pressed=true]){box-shadow:inset 0 0 0 1.5px var(--today-ring);font-weight:750}
.cal-day[aria-pressed=true]{background:var(--nav);color:var(--gold);font-weight:750}
.cal-day[aria-pressed=true][aria-current=date]{box-shadow:0 0 0 2px var(--today-ring)}
.cal-day:disabled{color:var(--muted);opacity:.38}
.cal-footer button{min-height:34px;padding:6px 11px}
.aecps-time{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.time-trigger{width:100%;min-width:0;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--strong-line);border-radius:7px;background:var(--surface);color:var(--ink);padding:8px 10px;font-size:12px;font-variant-numeric:tabular-nums;text-align:left}
.time-trigger::after{content:'';width:16px;height:16px;flex:none;background:var(--aecps-chevron) center/16px 16px no-repeat}
.time-trigger:hover,.cal-select-trigger:hover,.cal-nav:hover,.cal-footer button:hover{border-color:var(--gold)}
.time-trigger:disabled,.cal-select-trigger:disabled,.cal-nav:disabled{cursor:not-allowed;opacity:.55}
.time-trigger[aria-invalid=true],.calendar-trigger[aria-invalid=true]{border-color:var(--red)}
.date-time-error{display:block;grid-column:1/-1;color:var(--red);font-size:11px;line-height:1.4;margin-top:3px}
.date-time-error[hidden]{display:none!important}
.aecps-calendar-field>.date-time-error{margin-top:5px}
.date-time-menu{position:fixed;z-index:130;top:0;left:0;width:160px;max-width:calc(100vw - 16px);max-height:min(258px,calc(100vh - 16px));max-height:min(258px,calc(100dvh - 16px));overflow:hidden;padding:7px;border:1px solid var(--strong-line);border-radius:9px;background:var(--surface);color:var(--ink);box-shadow:0 12px 30px rgba(6,20,35,.24);overscroll-behavior:contain}
.date-time-menu[hidden]{display:none!important}
.date-time-menu-list{max-height:238px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.date-time-menu-list.is-grid{display:grid;grid-template-columns:repeat(var(--option-columns),minmax(0,1fr));gap:4px;max-height:238px}
.date-time-option,.year-option{min-width:0;min-height:32px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums;cursor:pointer;user-select:none}
.date-time-option:hover,.year-option:hover,.date-time-option.is-active,.year-option.is-active{background:var(--soft);border-color:var(--control-focus)}
.date-time-option[aria-selected=true],.year-option[aria-selected=true]{background:var(--nav);color:var(--gold);font-weight:750}
.year-menu{width:270px;max-height:min(270px,calc(100vh - 16px));max-height:min(270px,calc(100dvh - 16px));padding:9px}
.year-jump{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:7px;align-items:end}
.year-jump-label{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:10px;font-weight:700}
.year-jump-input{width:100%;min-height:35px;border:1px solid var(--strong-line);border-radius:6px;background:var(--surface);color:var(--ink);padding:6px 8px;font-size:13px;font-variant-numeric:tabular-nums}
.year-apply{min-height:35px;border:1px solid var(--strong-line);border-radius:6px;background:var(--nav);color:var(--gold);font-size:11px;font-weight:700}
.year-range{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;gap:5px;align-items:center;margin-top:8px}
.year-range-button{min-height:30px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);font-size:10px;font-variant-numeric:tabular-nums}
.year-range-button:disabled{cursor:not-allowed;opacity:.45}
.year-range-label{text-align:center;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.year-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;max-height:148px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-top:8px}
.year-option{min-height:30px;font-size:11px}
.time-trigger:focus-visible,.cal-select-trigger:focus-visible,.cal-nav:focus-visible,.cal-footer button:focus-visible,.date-time-menu :focus-visible,.cal-day:focus-visible{outline:3px solid var(--control-focus);outline-offset:2px}
.form-field textarea.field-input{min-height:75px;height:auto;resize:vertical}.form-field textarea[name=billing_address]{min-height:62px;height:64px}
.bulk-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 16px;background:var(--soft);border-bottom:1px solid var(--line);font-size:11px}
.bulk-toolbar label{display:flex;align-items:center;gap:5px;font-weight:650}.bulk-toolbar input[type=checkbox],.review-attest input{accent-color:#b99a55;width:16px;height:16px}
.bulk-select{background:var(--surface);border:1px solid var(--strong-line);color:var(--ink);border-radius:7px;padding:8px;min-width:150px;max-width:100%}
.review-records{max-height:350px;overflow:auto;margin:14px 0}.review-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px;border-bottom:1px solid var(--line);font-size:12px}.review-row .status-pill{max-width:55%}
.bulk-commit{margin-top:15px;border-top:1px solid var(--line);padding-top:15px}.review-attest{display:flex;align-items:flex-start;gap:8px;font-size:12px;margin-bottom:12px}
.identity-panel{margin:10px 0 22px}.identity-records{padding:15px}.identity-item{padding:9px;border-bottom:1px solid var(--line);font-size:12px}
@media(max-width:650px){
 .users-table tbody{display:grid!important;gap:12px;padding:12px!important}.users-table tbody tr{display:grid!important;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:13px;box-shadow:var(--shadow)}
 .users-table tbody td{display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px;text-align:right;border:0!important;padding:9px 0!important;overflow-wrap:anywhere}
 .users-table tbody td::before{content:attr(data-label);font-size:11px;color:var(--muted);font-weight:700;flex:0 0 31%;text-align:left}
 .bulk-toolbar{align-items:stretch}.bulk-select,.bulk-toolbar button,.bulk-toolbar .aecps-combobox{width:100%}.bulk-toolbar label{min-height:32px}
 .data-table tbody tr[data-record-href] td:has(.bulk-row-check){align-items:center;justify-content:flex-start}.data-table tbody tr[data-record-href] td:has(.bulk-row-check)::before{flex:none}
 .review-row{align-items:flex-start;flex-direction:column}.review-row .status-pill{max-width:100%}
}
 .portal-access-panel{margin:10px 0 22px}.portal-access-panel .form-panel{padding:20px 22px}.portal-access-panel .field-help{display:block;color:var(--muted);font-size:10px;line-height:1.65;margin:0 0 14px}.portal-membership-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.portal-membership-row>div:first-child{min-width:0}.portal-membership-row strong{display:block;overflow-wrap:anywhere}.portal-membership-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.portal-membership-actions form{display:flex;align-items:center;gap:6px}.portal-membership-actions .field-input{width:auto;min-height:34px;padding:7px 9px;font-size:11px}.portal-membership-actions .btn{min-height:34px;padding:8px 10px;font-size:10px}@media(max-width:680px){.portal-membership-row{align-items:flex-start;flex-direction:column}.portal-membership-actions{width:100%;justify-content:flex-start}.portal-membership-actions form{max-width:100%}.portal-membership-actions form .field-input{max-width:180px}}

/* Final polish: shared SVG chevrons and compact Executive portal access layout. */
:root{--aecps-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D7187' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
[data-theme=dark]{--aecps-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B9C8D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
select:not([multiple]):not([size]):not(.enhanced-native),.aecps-select{-webkit-appearance:none;appearance:none;min-height:40px;padding-block:.5rem;padding-inline-start:.875rem;padding-inline-end:2.75rem;background-image:var(--aecps-chevron);background-repeat:no-repeat;background-position:right .875rem center;background-size:16px 16px}
select:not([multiple]):not([size]):not(.enhanced-native):focus-visible,.aecps-select:focus-visible{outline:2px solid var(--control-focus);outline-offset:2px}
.combo-trigger::after,.cal-select-trigger::after,.time-trigger::after{content:"";display:inline-block;width:16px;height:16px;flex:none;background:var(--aecps-chevron) center/16px 16px no-repeat}
.aecps-access-page{display:grid;gap:0;min-width:0}.aecps-access-header{align-items:flex-start;flex-wrap:wrap}.aecps-access-header h3{margin-bottom:4px}.aecps-access-section{padding:22px}.aecps-access-section+.aecps-access-section{border-top:1px solid var(--line)}.aecps-access-section h4{font-size:13px;margin:0 0 13px}.aecps-access-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:14px 16px}.aecps-access-field{display:grid;gap:6px;min-width:0}.aecps-access-field label{font-size:11px;font-weight:680}.aecps-access-field input,.aecps-access-field select{width:100%;min-width:0;min-height:40px}.aecps-access-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:2px}.aecps-access-form-actions .btn{min-height:40px}.aecps-access-users{display:grid;gap:12px}.aecps-access-user-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.aecps-access-user-heading h4{margin:0}.aecps-access-user-email{overflow-wrap:anywhere;font-weight:650}.aecps-access-user-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.aecps-access-user-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}.aecps-access-user-actions form{display:flex;align-items:center;gap:8px;min-width:0}.aecps-access-user-actions .btn,.aecps-access-user-actions select{box-sizing:border-box;min-height:40px}.aecps-access-user-actions select{flex:1 1 180px;min-width:160px}.aecps-access-danger{border:1px solid var(--red);color:var(--red);background:transparent}.aecps-access-danger:hover{background:color-mix(in srgb,var(--red) 10%,transparent)}
@media(max-width:700px){.aecps-access-form{grid-template-columns:minmax(0,1fr)}.aecps-access-form-actions{grid-column:1}.aecps-access-form-actions .btn{width:100%}.aecps-access-user-actions>form{flex:1 1 100%;min-width:0}.aecps-access-user-actions>form select,.aecps-access-user-actions>form .btn{width:100%}.record-tabs{overflow-x:auto;max-width:100%;scrollbar-width:thin}.record-tabs button{flex-shrink:0;white-space:nowrap}}
.aecps-chevron-icon{width:16px;height:16px;flex:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Match Django portal email / display-name controls to the approved AECPS selector. */
.aecps-access-page input.aecps-access-input{appearance:none;-webkit-appearance:none;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;min-height:40px;padding:9px 12px;background:var(--surface,#fff);color:var(--text,#12263f);font:inherit}
.aecps-access-page input.aecps-access-input:focus-visible{outline:2px solid var(--gold,#c5a160);outline-offset:2px}
.aecps-access-user-actions input[name=display_name]{width:min(220px,100%)}

/* RC2.1: align the original login lockup to the form and use a single focus ring. */
.login-card .login-logo{width:100%;max-width:100%;height:auto;margin:0 auto 25px;object-fit:contain}
.login-card form input:focus{border-color:#8b6b2e;outline:2px solid #d5ae58;outline-offset:1px}
.login-password-control{position:relative}
.login-card .login-password-control input{padding-right:79px}
.login-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:4px;padding:5px 6px;border:0;border-radius:4px;background:transparent;color:#42576c;font:600 11px/1.2 var(--font);cursor:pointer}
.login-password-toggle[hidden]{display:none}
.login-password-toggle .ico{width:16px;height:16px}
.login-password-toggle:focus-visible{outline:2px solid #8b6b2e;outline-offset:1px}
