/* Super Admin rate policy editor: shared theme tokens and explicit dismissal. */
.rate-lobby-actions{display:flex;gap:8px;flex-wrap:wrap}
.overlay>.rate-modal{max-width:980px;width:100%;max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;overflow:hidden}
.rate-modal>.modal-head,.rate-modal>.modal-foot{flex:0 0 auto}
.rate-modal>.modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;gap:16px}
.rate-modal .modal-head>div{min-width:0}.rate-modal .modal-head h2{font-size:19px}
.rate-note{font-size:12px;color:var(--ink-soft);line-height:1.6;margin:5px 0}
.rate-identity{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.rate-section{min-width:0;margin:16px 0 0;border:1px solid var(--panel-edge);border-radius:10px;padding:16px;background:var(--panel)}
.rate-section h3,.rate-section h4{margin:0;font-size:14px}.rate-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.rate-main{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;background:var(--surface-soft);border:1px solid var(--panel-edge);border-radius:10px}
.rate-toggle{display:flex;align-items:center;gap:10px;font-weight:600;font-size:13px}.rate-toggle input{width:19px;height:19px;accent-color:var(--accent)}
.rate-policy-row{padding:14px 0;border-top:1px solid var(--panel-edge)}.rate-policy-row:first-of-type{border-top:0}
.rate-row-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.rate-row-head h4{margin-inline-end:auto}
.rate-badge{font-size:11px;font-weight:600;padding:3px 7px;border-radius:6px;background:var(--pill-gray-bg);color:var(--pill-gray-text)}
.rate-badge.custom{background:var(--pill-blue-bg);color:var(--pill-blue-text)}
.rate-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.rate-fields .field{min-width:0}.rate-fields .field label{font-size:12px}
.rate-fields input:disabled,.rate-fields select:disabled{cursor:default}.rate-row-head .btn{font-size:11px;min-height:30px;padding:4px 9px}
.rate-security-note{padding:10px;border-inline-start:3px solid var(--steel);background:var(--surface-soft);font-size:12px;line-height:1.6;margin-top:12px}
.rate-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rate-metric{display:grid;gap:5px;background:var(--surface-soft);padding:12px;border-radius:8px}
.rate-metric>span{font-size:12px;color:var(--ink-soft)}.rate-metric>strong{font-size:18px;overflow-wrap:anywhere}
.rate-quota{margin-top:14px}.rate-quota-head{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin:6px 0}.rate-quota progress{width:100%;height:12px;accent-color:var(--accent)}
.rate-table-wrap{overflow-x:auto;width:100%;margin-top:12px}.rate-modal table{width:100%;border-collapse:collapse;font-size:12px;text-align:start}
.rate-modal th,.rate-modal td{padding:9px 7px;border-bottom:1px solid var(--panel-edge);vertical-align:top;overflow-wrap:anywhere;text-align:start}.rate-modal th{color:var(--ink-soft);font-weight:600}
.rate-modal summary{cursor:pointer;font-size:13px;font-weight:600}.rate-modal details>summary:focus-visible{outline:2px solid var(--steel);outline-offset:3px}
.rate-audit-values{font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;max-height:220px;overflow:auto}
.rate-footer{gap:10px;flex-wrap:wrap}.rate-footer-actions{display:flex;gap:8px;margin-inline-start:auto}.rate-footer .rate-note{margin-inline-start:auto}
.rate-modal :focus-visible{outline:2px solid var(--steel);outline-offset:2px}
@media(max-width:640px){.overlay>.rate-modal{max-height:96vh;max-height:96dvh}.rate-modal>.modal-head{padding:15px}.rate-modal>.modal-body{padding:14px}.rate-modal .modal-head h2{font-size:17px}.rate-main{grid-template-columns:1fr;padding:12px}.rate-section{padding:12px}.rate-fields{grid-template-columns:1fr 1fr;gap:10px}.rate-fields>.field:last-child{grid-column:1/-1}.rate-metrics{grid-template-columns:1fr}.rate-footer-actions{width:100%;margin:0}.rate-footer-actions .btn{flex:1}.rate-footer>#rateLimitsReset{width:100%}.rate-footer .rate-note{margin:0}.rate-quota-head{flex-wrap:wrap}.rate-modal th,.rate-modal td{padding:8px 5px}.rate-section-head .btn{font-size:11px;padding:7px 9px}.rate-section-head h3{font-size:13px}}
