/* Shared final geometry: public catalog and both workspaces use the same controls. */
html body .catalog-section .catalog-tools{display:grid;grid-template-columns:minmax(180px,1fr) 180px 190px auto;gap:12px;padding:16px;background:#111315;border:1px solid #25282d;border-radius:12px;align-items:center}
html body .catalog-section .catalog-tools>label{margin:0;height:42px;min-width:0;width:auto;flex:auto}
html body .catalog-section .catalog-tools :is(input[type=search],select){height:42px;min-height:42px;margin:0;border:1px solid #2b2e34;border-radius:8px;background-color:#0e1012;color:#e9eaed;font-size:12px;box-shadow:none}
html body .catalog-section .catalog-tools input[type=search]{padding:10px 12px}
html body .catalog-section .catalog-tools .checkbox-label{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:11px;white-space:nowrap}
html body .catalog-section .model-card{padding:20px 18px 14px;background:#111315;border:1px solid #282b30;border-radius:12px}
html body .catalog-section .model-card h3{margin:6px 0 8px;font-size:17px;line-height:1.35}
html body .catalog-section .model-prices{margin-top:10px;padding-top:9px}
html body .catalog-section .model-limits{margin:7px 0 8px}
html body .catalog-section .model-capabilities{padding-top:8px}
/* A table owns its full width. Paginated data scrolls with the page, not inside a second viewport. */
body.parity-console :is(.monitor-table,.table-scroll,.table-panel){scrollbar-gutter:auto;max-height:none;max-width:100%;min-width:0;box-sizing:border-box}
body.parity-console :is(.monitor-table,.table-scroll){overflow:auto}
body.parity-console :is(.monitor-table,.table-scroll,.management-table,.keys-table) table{width:100%;margin:0;border-spacing:0;border-collapse:separate}
body.parity-console :is(.monitor-table,.table-scroll,.management-table,.keys-table) :is(th,td){padding:13px 16px;vertical-align:middle;box-sizing:border-box}
body.parity-console :is(.monitor-table,.table-scroll,.management-table,.keys-table) :is(th,td):last-child{padding-right:16px}
body.parity-console :is(.monitor-table,.table-scroll,.management-table,.keys-table) th{font-weight:500;font-size:10px;white-space:nowrap}
body.parity-console :is(.monitor-table,.table-scroll,.management-table,.keys-table) td{font-size:12px;font-variant-numeric:tabular-nums}
body.parity-console :is(.monitor-table,.table-scroll) td :is(small,code){overflow-wrap:anywhere}
body.parity-console .ws-request-table table{table-layout:auto;min-width:880px}
body.parity-console .ws-request-table :is(th,td):first-child{width:158px;white-space:nowrap}
body.parity-console .ws-request-table :is(th,td):nth-child(2){width:30%}
body.parity-console .ws-request-table .request-id{max-width:290px;font-size:10px;line-height:1.6}
body.parity-console .ws-request-table :is(th,td):last-child{width:64px;text-align:right}
body.parity-console .ws-request-table :is(th,td):nth-last-child(2){width:118px}
body.parity-console .ws-request-table :is(th,td):nth-last-child(3){width:128px;text-align:right}
body.parity-console .ws-request-table :is(th,td):nth-last-child(4){width:110px;text-align:right}
body.parity-console .ws-request-table :is(th,td):nth-last-child(5){width:120px;text-align:right}
body.parity-console .ws-request-table td:last-child>.button{width:34px;min-width:34px;height:34px;padding:8px}
body.parity-console .monitor-trend .monitor-table table{min-width:480px}
body.parity-console .monitor-trend .monitor-table :is(th,td):not(:first-child){text-align:right}
body.parity-console .monitor-breakdown .monitor-table :is(th,td):not(:first-child){text-align:right}
body.parity-console .monitor-logs .monitor-table :is(th,td):nth-last-child(-n+3){text-align:right}
body.parity-console .monitor-table tbody tr:last-child td{border-bottom:0}
body.parity-console .monitor-table thead th{top:0}
body.parity-console .users-table :is(th,td):is(:nth-child(2),:nth-child(3)){text-align:right}
body.parity-console .users-table :is(th,td):last-child{text-align:right}
/* Dialog footers keep separate, securely confirmed forms on a single baseline. */
body.parity-console .ui-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;margin-top:20px;border-top:1px solid #ffffff0b}
body.parity-console .ui-dialog-footer > .ui-footer-actions{margin-inline-start:auto}
body.parity-console .account-access-note{flex:1;min-width:100px;max-width:210px;margin:0;padding:0;border:0}
body.parity-console .account-access-note strong{font-size:12px}
body.parity-console .account-access-note .fine{margin:4px 0 0;font-size:10px;line-height:1.6}
body.parity-console .account-editor .account-summary{margin-bottom:18px;padding-bottom:18px}
body.parity-console .model-editor-panel .ui-dialog-footer{justify-content:flex-end}
body.parity-console .admin-dialog .admin-dialog-body{padding:20px}
body.parity-console .admin-dialog .editor-tabs{margin:0 0 20px}
body.parity-console .admin-dialog .form-section-heading{margin-bottom:16px}
body.parity-console .admin-dialog .form-section-heading p{margin:5px 0 0;font-size:11px;line-height:1.7}
body.parity-console .admin-dialog .route-editor{margin-top:18px;padding-top:18px}
body.parity-console .route-list{margin:12px 0}
body.parity-console .route-card{padding:14px;margin-bottom:10px}
body.parity-console .route-card-head{margin-bottom:12px}
body.parity-console .route-empty{padding:12px 14px;margin:12px 0;background:#191b1f;border-radius:8px}
body.parity-console .route-editor-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:16px 0 10px}
body.parity-console .route-editor-footer label{max-width:240px;flex:0 1 240px;margin:0;font-size:11px}
body.parity-console .route-editor-footer input{margin:7px 0 0;height:40px}
body.parity-console .route-editor>.fine{font-size:10px;line-height:1.75;margin-bottom:0}
/* Short catalogs shrink; long catalogs have one bounded scrolling region. */
body.parity-console #provider-catalog-dialog .editor-panel{min-height:0}
body.parity-console .ws-catalog-body{overflow:visible}
body.parity-console .ui-catalog-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
body.parity-console .ui-catalog-summary h2{font-size:14px;margin:0}
body.parity-console .ws-catalog-body .ui-catalog-scroll{overflow:auto;max-height:min(52dvh,560px);border:1px solid #292c31;border-radius:9px;margin:0;scrollbar-gutter:auto}
body.parity-console .ui-catalog-scroll table{table-layout:fixed;min-width:630px}
body.parity-console .ui-catalog-scroll :is(th,td):first-child{width:42%;overflow-wrap:anywhere}
body.parity-console .ui-catalog-scroll :is(th,td):nth-child(2){width:23%}
body.parity-console .ui-catalog-scroll :is(th,td):last-child{width:35%;text-align:right}
body.parity-console .ui-catalog-scroll .actions{justify-content:flex-end;flex-wrap:nowrap;gap:8px}
body.parity-console .ui-catalog-scroll th{position:sticky;top:0;z-index:1;background:#191b1f}
body.parity-console #provider-catalog-dialog .editor-panel>.ui-dialog-footer{margin:0;padding:16px 20px}
/* Compact filter summaries and charts. */
body.parity-console .monitor-advanced{padding:0 18px}
body.parity-console .monitor-advanced>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0;margin:0;font-size:12px;line-height:20px}
body.parity-console .monitor-advanced[open]{padding-bottom:16px}
body.parity-console .monitor-advanced[open]>summary{margin-bottom:12px}
body.parity-console .monitor-trend>.panel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0}
body.parity-console .monitor-trend .panel-heading h2{margin:0}
body.parity-console .monitor-trend .panel-heading .fine{margin:6px 0 0;font-size:11px}
body.parity-console .ws-chart-tabs{display:flex;align-items:center;justify-content:center;gap:3px;margin:0;padding:3px;border-radius:8px;background:#0d0f11;flex:none}
body.parity-console .ws-chart-tabs button{min-height:30px;padding:6px 10px;font-size:10px;line-height:18px}
body.parity-console .monitor-trend .ws-chart-view{margin:16px 0 8px}
body.parity-console .monitor-trend details>summary{display:flex;justify-content:space-between;align-items:center;min-height:42px;padding:8px 0}
/* Header tools follow the outer page edge. */
body.parity-console .console-header{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;padding-inline:24px;gap:12px}
body.parity-console .console-header .header-tools{margin-left:auto;padding:0;flex:none;justify-content:flex-end}
body.parity-console .ws-role-links{margin:0}
/* Shared pagination, including independent ledger/top-up pages. */
html body .pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin:18px 0 0}
html body .pagination .button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;height:36px;margin:0;padding:7px 10px;border:1px solid #282b30;border-radius:7px;background:transparent;font-size:11px;line-height:20px;color:#a3a7af}
html body .pagination [aria-current=page]{background:#066bff;border-color:#066bff;color:#fff}
html body .pagination [aria-disabled=true]{opacity:.38;cursor:default}
html body .pagination-gap{padding:0 5px;color:#9399a3}
/* Settings and payment forms keep a consistent rhythm. */
body.parity-console .setting-control{padding-block:12px;gap:16px}
body.parity-console .setting-control .fine{margin:5px 0 0;font-size:11px;line-height:1.65}
body.parity-console .settings-layout .form-grid{gap:16px 20px}
body.parity-console .settings-layout textarea{min-height:88px}
body.parity-console .settings-layout .form-actions{padding-top:16px;margin-top:18px}
body.parity-console .qris-settings{align-items:start;gap:20px}
body.parity-console .qris-preview{margin:0;min-width:0}
body.parity-console .qris-preview figcaption{font-size:10px;line-height:1.6;margin:10px 0}
body.parity-console .topup-payment-layout{grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start}
body.parity-console .topup-payment-layout form>label{margin-bottom:16px}
body.parity-console .topup-payment-layout .payment-steps{margin:0 0 18px;gap:12px}
body.parity-console .topup-payment-layout .preserve-lines{margin:0 0 18px;font-size:12px}
body.parity-console .topup-payment-layout .topup-estimate{padding:12px 14px}
body.parity-console .topup-payment-layout .form-actions{margin-top:16px;padding-top:16px}
body.parity-console .topup-payment-layout form+p.fine{margin-top:8px;font-size:10px}
@media(hover:hover){html body .pagination a:hover{background:#20242a;color:#fff}body.parity-console .ws-chart-tabs button:hover{background:#20242a;color:#fff}}
@media(max-width:1100px){html body .catalog-section .catalog-tools{grid-template-columns:minmax(160px,1fr) 170px 180px}.catalog-section .catalog-tools>.checkbox-label{grid-column:1/-1}body.parity-console .account-editor .ui-dialog-footer{align-items:flex-start;flex-wrap:wrap}body.parity-console .account-editor .account-access-note{max-width:none;flex-basis:100%}}
@media(max-width:760px){html body .catalog-section .catalog-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:10px}html body .catalog-section .catalog-tools>.search-label{grid-column:1/-1}html body .catalog-section .catalog-tools>.checkbox-label{grid-column:1/-1;justify-content:flex-end}body.parity-console .console-header{padding-inline:16px}body.parity-console .ui-dialog-footer{flex-wrap:wrap;gap:12px}body.parity-console .ui-dialog-footer > .ui-footer-actions{width:100%}body.parity-console .account-access-note{max-width:none;flex-basis:100%}body.parity-console .admin-dialog .admin-dialog-body{padding:16px}body.parity-console .route-editor-footer{align-items:flex-start;flex-direction:column}body.parity-console .route-editor-footer label{max-width:none;width:100%;flex:auto}body.parity-console .ui-catalog-summary{align-items:flex-start;flex-wrap:wrap}body.parity-console .topup-payment-layout{grid-template-columns:minmax(0,1fr);gap:20px}body.parity-console .topup-payment-layout .qris-preview{width:180px;justify-self:center}}
@media(prefers-reduced-motion:reduce){html body .pagination .button{transition:none}}
@container(max-width:900px){html body .catalog-section .catalog-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}html body .catalog-section .catalog-tools>.search-label{grid-column:1/-1}html body .catalog-section .catalog-tools>.checkbox-label{grid-column:1/-1}html body .catalog-section .catalog-tools>label{width:auto}}
html body .catalog-section .card-top{margin-bottom:0}
body.parity-console .admin-dialog .model-form{padding-top:0;border-top:0}
body.parity-console .admin-dialog .route-editor{margin-bottom:0}
html body .pagination svg{width:14px;height:14px;flex:none}
html body .pagination svg.prev{transform:rotate(90deg)}
html body .pagination svg.next{transform:rotate(-90deg)}
html body .catalog-section .model-card{font-size:13px;line-height:1.55}
