:root{
  --ux-border:#cbd8e2;--ux-focus:#2188d8;--ux-surface:#fff;--ux-soft:#f4f8fb;
  --ux-text:#193047;--ux-muted:#5e7183;--ux-danger:#b42318;--ux-success:#217a4b
}
*:focus-visible{outline:3px solid color-mix(in srgb,var(--ux-focus) 48%,transparent);outline-offset:2px}
.auth-card{max-width:460px;margin:clamp(24px,8vh,84px) auto;padding:clamp(22px,5vw,38px)}
.auth-card form{display:grid;gap:16px}.auth-help{justify-self:end;font-weight:700;color:#1769aa}
.password-eye{position:absolute!important;right:7px!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;margin:0!important;padding:7px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#526d83!important}
.password-eye svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-eye:hover,.password-eye[aria-pressed="true"]{background:#e4f1fa!important;color:#0d6da8!important}
.password-field{position:relative;display:block}.password-field>input{width:100%;padding-right:50px}.account-security-grid{align-items:start}.account-security-grid>.card{height:auto}
form label{gap:7px}form label>small{display:inline;color:var(--ux-muted);font-weight:500}
input[type="checkbox"],input[type="radio"]{width:1.15rem!important;height:1.15rem!important;min-width:1.15rem;margin:0;accent-color:#1769aa;cursor:pointer}
label:has(>input[type="checkbox"]),label:has(>input[type="radio"]),.choice-control{display:flex!important;align-items:flex-start!important;gap:10px!important;min-height:42px;padding:9px 11px;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-soft);cursor:pointer;line-height:1.35}
label:has(>input[type="checkbox"]):hover,label:has(>input[type="radio"]):hover{border-color:#8baac0;background:#edf6fc}
textarea{min-height:110px;resize:vertical}.form-grid label:has(textarea),.field-wide{grid-column:1/-1}
select{appearance:none!important;background-color:var(--ux-surface)!important;background-image:linear-gradient(45deg,transparent 50%,#526d83 50%),linear-gradient(135deg,#526d83 50%,transparent 50%)!important;background-position:calc(100% - 18px) 52%,calc(100% - 12px) 52%!important;background-size:6px 6px,6px 6px!important;background-repeat:no-repeat!important;padding-right:42px!important;cursor:pointer}
select:hover{border-color:#7899b2}.searchable-select{display:grid;gap:6px}.searchable-select>input{font-size:.92rem;background:#f8fbfd}
.select-hint{font-size:.78rem;color:var(--ux-muted)}
.table-shell{max-height:min(62vh,680px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface)}
.table-shell table{margin:0}.table-shell thead{position:sticky;top:0;z-index:3;background:#edf4f8;box-shadow:0 1px 0 var(--ux-border)}
.table-shell tbody tr:nth-child(even){background:#f9fbfc}.table-shell tbody tr:hover{background:#edf7fd}
.list-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:10px 2px;color:var(--ux-muted);flex-wrap:wrap}
.live-filter-status{font-size:.82rem;color:var(--ux-muted);min-height:1.2em}.filter-actions{display:flex;gap:9px;align-items:end;flex-wrap:wrap}
.form-section{border:1px solid var(--ux-border);border-radius:12px;padding:18px;margin:18px 0;background:#fbfdfe}.form-section>legend,.form-section-title{font-weight:800;color:var(--ux-text);padding:0 7px}
.form-actions{position:sticky;bottom:0;z-index:4;background:color-mix(in srgb,#fff 93%,transparent);backdrop-filter:blur(6px);padding:13px 0 3px;border-top:1px solid #e1e8ed}
.brand-organization-logo,.organization-logo{display:block;max-width:180px;max-height:90px;width:auto;height:auto;object-fit:contain}.brand-organization-logo{width:48px;height:48px;border-radius:10px;background:#fff;padding:3px}
.vertical-brand{display:flex!important;align-items:center;gap:12px;min-width:0}.vertical-brand>span{display:grid;min-width:0}.vertical-brand small{display:block}
.organization-logo-placeholder{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:#fff;color:#123b5d;font-weight:900}
.branding-preview{display:flex;align-items:center;gap:18px;min-height:100px;padding:16px;border:1px dashed var(--ux-border);border-radius:12px;background:var(--ux-soft)}
.report-logo{max-width:170px;max-height:80px;width:auto;height:auto;object-fit:contain}
.inline-form{margin-top:14px}.inline-form button{width:auto}
.submit-status{font-size:.85rem;color:var(--ux-muted);margin-left:8px}
details.form-section>summary{font-weight:800;cursor:pointer;padding:4px 0;list-style:none}details.form-section>summary::after{content:'⌄';float:right;font-size:1.25rem}details.form-section[open]>summary::after{transform:rotate(180deg)}
@media(max-width:760px){
  .table-shell{max-height:68vh}.table-shell .data-table thead{position:static}.form-actions{display:grid;grid-template-columns:1fr}.form-actions>*{width:100%}.account-security-grid{grid-template-columns:1fr}
  .branding-preview{align-items:flex-start;flex-direction:column}.auth-card{margin:18px auto}.filter-actions>*{width:100%}
}
@media print{.report-logo{display:block!important}.table-shell{max-height:none!important;overflow:visible!important;border:0}.form-actions,.searchable-select>input,.live-filter-status{display:none!important}}
