body{margin:0;background:#f5f7fb;color:#202b3d;font-family:system-ui,sans-serif}
.op-form{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}.op-form .button{align-self:end}.op-record{border-top:1px solid #e1e5ed;padding:20px 0}.op-record h3{margin:0 0 10px}.op-badge{display:inline-block;padding:4px 9px;border-radius:20px;background:#edf1f5;color:#536170;font-size:12px;white-space:nowrap}.op-active,.op-published,.op-approved,.op-paid,.op-verified,.op-completed{background:#e0f3e9;color:#17623f}.op-held,.op-pending,.op-prepared{background:#fff1d8;color:#805c13}.op-cancelled,.op-rejected,.op-refunded,.op-reversed{background:#fbe7e7;color:#943b3b}.op-empty{padding:24px;text-align:center;color:#66788a;background:#f7f9fc;border-radius:8px}.op-link{display:inline-block;padding:7px 0;text-decoration:underline;text-underline-offset:3px}.op-pager{display:flex;gap:18px;align-items:center;justify-content:center;padding-top:20px}.op-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:20px 0}.op-metrics>div{border:1px solid #e1e5ed;border-radius:10px;padding:18px}.op-metrics span{display:block;color:#637587;font-size:13px}.op-metrics strong{display:block;font-size:26px;margin-top:8px}.op-filter{display:flex;gap:15px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.op-filter label{display:grid;gap:6px}.op-filter input,.op-filter select{padding:10px;border:1px solid #b8c3d2;border-radius:7px}.op-snapshot{white-space:pre-wrap;overflow-wrap:anywhere}.panel>details{margin:0}.panel summary{cursor:pointer;font-weight:700;font-size:17px;color:#243e51}.op-form input{width:100%;min-width:0}.alert-danger{padding:15px;background:#fdeaea;color:#8d2828;border-radius:8px}.alert-warning{padding:15px;background:#fff5df;color:#735617;border-radius:8px;line-height:1.7}.alert-success{padding:15px;border-radius:8px}@media(max-width:760px){.op-form{grid-template-columns:1fr}.op-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.op-metrics strong{font-size:21px}.op-filter>*{width:100%}}
a{color:#2456a6}
.panel{padding:24px;margin-bottom:22px}.panel h2{margin-top:0}
.stack-form{max-width:760px;gap:14px}
.stack-form input,.stack-form select,.stack-form textarea{box-sizing:border-box;max-width:100%;padding:10px;border:1px solid #b8c3d2;border-radius:7px;background:white;color:#202b3d}
.stack-form label{display:grid;gap:6px}
.stack-form label.check{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;width:auto;height:auto;border:0;border-radius:0;flex:initial;font-size:13px}
.check input{width:18px;min-width:18px;height:18px;flex:0 0 18px;padding:0}.check small{color:#59677a}
.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
fieldset{min-width:0;border:1px solid #d7dfe9;border-radius:10px;padding:18px}
details{margin:4px 0 14px 26px;color:#586879;font-size:13px}
code,.secret-link{overflow-wrap:anywhere}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}
th,td{padding:12px;border-bottom:1px solid #e1e5ed;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.alert-success{background:#e3f4ec;color:#155438}.topbar{gap:16px;flex-wrap:wrap;height:auto;min-height:70px;padding:14px 24px}.topbar form{margin:0}
.button{cursor:pointer}.page-heading{align-items:start;gap:18px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #4889ec;outline-offset:3px}
@media(max-width:760px){.admin-shell{display:block}.sidebar{display:flex;position:static;width:auto;min-height:0}.side-nav{display:flex;flex-wrap:wrap}.main-content{margin-left:0}.page-wrap{padding:16px}.page-heading{display:block}.login-shell{display:block}.login-brand,.login-panel{padding:26px}.panel{padding:18px}}

.staff-brand-permissions{border:1px solid #dde2da;border-radius:12px;padding:18px;margin:12px 0;min-width:0}
.staff-brand-permissions legend{padding:0 8px;font-size:17px;font-weight:650}
.staff-permission-group h4{font-size:14px;margin:20px 0 12px}.staff-permission-group:first-of-type h4{margin-top:0}
.staff-permission-group .permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.stack-form .staff-permission-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid #e1e5dd;border-radius:9px;padding:13px;cursor:pointer}
.stack-form .staff-permission-choice:has(input:checked){border-color:#657560;background:#f3f6f0}
.stack-form .staff-permission-choice input{width:18px;height:18px;min-height:18px;flex-shrink:0;margin:3px 0 0;accent-color:#344331}
.staff-permission-choice span{display:grid;gap:5px}.staff-permission-choice strong{font-size:13px}.staff-permission-choice small{font-size:11px;color:#6c7468;line-height:1.7;font-weight:400}
.staff-edit-permissions>summary{cursor:pointer;font-weight:600;padding:14px 0}
.audit-detail-lines{margin:0;padding-left:18px;line-height:1.8;min-width:240px;white-space:normal}.audit-detail-lines li+li{margin-top:5px}

.ui-dialog{width:min(920px,calc(100vw - 32px));max-height:calc(100svh - 32px);padding:0;border:0;border-radius:16px;background:#fff;color:#292929;box-shadow:0 24px 80px #0004}
.ui-dialog::backdrop{background:#15151599;backdrop-filter:blur(2px)}
.ui-dialog[open]{animation:bank-popup-in 280ms cubic-bezier(.16,1,.3,1) both;transform-origin:50% 55%}
.ui-dialog[open]::backdrop{animation:bank-backdrop-in 240ms ease-out both}
.ui-dialog[open].is-closing{animation:bank-popup-out 180ms ease-in both;pointer-events:none}
.ui-dialog[open].is-closing::backdrop{animation:bank-backdrop-out 180ms ease-in both}
.ui-dialog-shell{padding:24px}
.ui-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid #e5e5e5}
.ui-dialog-heading h3,.ui-dialog-heading p{margin:0}.ui-dialog-heading h3{font-size:20px}.ui-dialog-heading p{margin-top:5px;color:#777;font-size:12px;line-height:1.7}
.ui-dialog-close{display:grid;place-items:center;flex:0 0 36px;height:36px;padding:0;border:1px solid #d7d7d7;border-radius:50%;background:#f5f5f5;color:#444;font-size:21px;line-height:1;cursor:pointer}
.staff-create-body{max-height:calc(100svh - 150px);overflow-y:auto;margin:0 -8px;padding:0 8px}
.staff-create-dialog .stack-form{display:block;max-width:none;margin:0}
.staff-create-section{padding:22px 0;border-bottom:1px solid #e9e9e9}.staff-create-section>h4{margin:0 0 14px;font-size:14px}
.staff-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.staff-create-fields label{font-size:12px;font-weight:600;color:#555}.staff-create-fields input{width:100%;height:46px;font-size:14px}
.staff-create-hint{margin:10px 0 0;color:#777;font-size:11px;line-height:1.7}
.staff-create-permissions>.muted{margin:0 0 16px;font-size:12px}.staff-create-permissions .staff-brand-permissions{margin:14px 0 0}
.ui-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:20px}.ui-dialog-actions .button{margin:0;min-height:44px}.ui-dialog-actions form{display:contents}
@media(max-width:620px){.ui-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 20px)}.ui-dialog-shell{padding:18px}.staff-create-body{max-height:calc(100svh - 125px)}.staff-create-fields{grid-template-columns:1fr}.ui-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.ui-dialog-actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){.ui-dialog[open],.ui-dialog[open]::backdrop{animation:none!important}}

.staff-table-panel{padding:0;overflow:hidden}.staff-users-table{min-width:820px}.staff-users-table thead th{padding:14px 18px;background:#f5f5f5;color:#666;font-size:11px;font-weight:600}.staff-users-table tbody td{padding:16px 18px;vertical-align:middle;font-size:12px}.staff-users-table tbody tr:hover{background:#fafafa}.staff-users-table th:first-child{width:28%}.staff-users-table th:nth-child(2){width:15%}.staff-users-table th:nth-child(3){width:28%}.staff-users-table th:last-child{width:115px}.staff-users-table td small{display:block;margin-top:4px;color:#777;font-size:10px}
.staff-name-button{display:block;width:100%;padding:0;border:0;background:none;color:#292929;text-align:left;cursor:pointer}.staff-name-button strong{font-size:13px;text-decoration:underline;text-decoration-color:#bbb;text-underline-offset:3px}.staff-name-button:hover strong{color:var(--primary);text-decoration-color:currentColor}.staff-name-button small{overflow-wrap:anywhere}
.staff-status{display:inline-flex;padding:5px 9px;border-radius:20px;background:#edf1f5;color:#536170;font-size:11px;white-space:nowrap}.staff-status-active{background:#e0f3e9;color:#17623f}.staff-status-suspended{background:#fbe7e7;color:#943b3b}.staff-status-invited{background:#fff1d8;color:#805c13}
.staff-detail-button{padding:7px 10px;border:1px solid #d8d8d8;border-radius:7px;background:#fff;color:#444;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}.staff-detail-button:hover{border-color:#888;background:#f5f5f5}
.staff-detail-dialog{width:min(980px,calc(100vw - 32px))}.staff-detail-body{max-height:calc(100svh - 150px);overflow-y:auto;margin:0 -8px;padding:0 8px}.staff-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px 0}.staff-detail-summary>div{padding:14px;border:1px solid #e5e5e5;border-radius:10px;background:#fafafa}.staff-detail-summary span,.staff-detail-summary strong{display:block}.staff-detail-summary span{color:#777;font-size:10px;margin-bottom:6px}.staff-detail-summary strong{font-size:12px;overflow-wrap:anywhere}
.staff-account-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border:1px solid #e5e5e5;border-radius:10px;background:#fafafa}.staff-account-actions h4,.staff-account-actions p{margin:0}.staff-account-actions h4{font-size:13px}.staff-account-actions p{margin-top:5px;color:#777;font-size:11px}.staff-account-actions .stack-form{margin:0}.staff-account-actions .button{margin:0;white-space:nowrap}.staff-detail-permissions{padding-top:22px}.staff-detail-permissions>h4{margin:0 0 6px;font-size:14px}.staff-detail-permissions>.stack-form{display:block;max-width:none;margin:0}.staff-owner-notice{padding:18px;border:1px solid #cfe5d7;border-radius:10px;background:#f2f8f4;color:#28583a}.staff-owner-notice p{margin:6px 0 0;color:#54705e;font-size:11px;line-height:1.7}
.staff-owner-notice,.staff-account-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px;border:1px solid #e1e5dd;border-radius:11px;background:#f5f7f3}.staff-owner-notice{display:block}.staff-owner-notice p,.staff-account-actions p{margin:5px 0 0;color:#6c7468;font-size:11px}.staff-account-actions h4,.staff-detail-permissions>h4{margin:0;font-size:14px}.staff-account-actions .stack-form{margin:0}.staff-account-actions .button{margin:0;white-space:nowrap}.staff-detail-permissions{padding-top:22px}.staff-detail-permissions>.stack-form{display:block;max-width:none;margin:0}.staff-detail-permissions .ui-dialog-actions{position:sticky;bottom:0;margin:20px -8px 0;padding:16px 8px 4px;background:linear-gradient(#fff0,#fff 18px)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:620px){.staff-detail-summary{grid-template-columns:1fr}.staff-account-actions{align-items:stretch;flex-direction:column}.staff-account-actions .button{width:100%}}
