/* Account API views share the dashboard shell and its typography. */
.api-shell{--api-line:#d8e3ea;--api-muted:#536c7c;--api-ink:#172f3e;--api-accent:#116784;max-width:1120px;margin:auto;padding:32px 24px 60px;color:var(--api-ink);font-size:15px;line-height:1.55;min-width:0}
.api-shell *,.api-secret *{box-sizing:border-box}.api-shell [hidden],.api-secret [hidden]{display:none!important}
.api-shell.api-embedded{max-width:none;padding:0;margin:0}.api-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.api-shell h1{font-size:clamp(2rem,4vw,3rem);margin:8px 0}.api-shell h2{font-size:1.25rem;line-height:1.35;margin:0 0 12px}.api-shell h3{font-size:1rem;line-height:1.4;margin:0 0 12px}.api-shell p{margin:10px 0}.api-shell a{color:var(--api-accent);text-underline-offset:3px}.api-shell small{font-size:.8rem;color:var(--api-muted)}.api-shell .api-note{font-size:.81rem;color:var(--api-muted);line-height:1.55;font-weight:400}
.api-shell>nav{display:flex;align-items:center;gap:28px;flex-wrap:wrap;border-bottom:1px solid var(--api-line);padding:4px 0 0;margin:16px 0 24px}.api-shell>nav a{padding:12px 0;border-bottom:3px solid transparent;text-decoration:none;font-size:.94rem;color:var(--api-muted)}.api-shell>nav a[aria-current]{color:var(--api-ink);border-color:var(--api-accent);font-weight:700}
.api-shell section{margin:22px 0;padding:24px;border:1px solid var(--api-line);border-radius:12px;background:#fff;box-shadow:none}.api-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.api-grid>section{margin:0}.api-card-heading,.api-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.api-card-heading h2,.api-card-heading h3,.api-detail-heading h3{margin:0}.api-card-heading p{margin:4px 0 0}.api-shell .api-quota{padding:20px}.api-meter-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:.84rem;margin:12px 0 6px}.api-meter-label>span:last-child{text-align:right}.api-shell progress{appearance:none;border:none;border-radius:10px;background:#edf2f6;width:100%;height:6px;display:block;accent-color:var(--api-accent);overflow:hidden;margin:0 0 16px}.api-shell progress::-webkit-progress-bar{background:#edf2f6;border-radius:10px}.api-shell progress::-webkit-progress-value{background:var(--api-accent);border-radius:10px}.api-shell progress::-moz-progress-bar{background:var(--api-accent);border-radius:10px}
.api-shell .api-limits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0 10px}.api-limits dt{font-size:.8rem;color:var(--api-muted);margin:0 0 4px}.api-limits dd{margin:0;font-size:.9rem;font-weight:650}.api-limit-details{padding:16px 20px;background:#f5f8fa;border-radius:10px;margin:20px 0}.api-shell summary{cursor:pointer}.api-limit-details>summary{font-weight:600}
.api-account-summary{display:flex;gap:26px;align-items:center;flex-wrap:wrap;padding:18px 22px;border:1px solid var(--api-line);border-radius:12px;background:#f6f9fb}.api-account-summary>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.api-account-summary>a{font-size:.88rem;margin-left:auto;font-weight:600}
.api-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 10px;border-radius:999px;background:#eaf0f4;color:#536675;font-size:.78rem;font-weight:650;line-height:1.4}.api-badge-enabled,.api-badge-active{color:#176249;background:#e6f4ed}.api-badge-suspended{color:#7e560b;background:#fff2d6}.api-badge-revoked{color:#9a3c3b;background:#faeaea}
.api-shell label,.api-secret label{display:block;font-size:.85rem;font-weight:600;margin:0}.api-shell input:not([type=checkbox]),.api-shell select,.api-secret input,.api-secret textarea{display:block;width:100%;min-width:0;max-width:none;margin:6px 0 0;padding:10px 12px;background:#fff;border:1px solid #afc2ce;border-radius:7px;color:var(--api-ink,#172f3e);font:inherit;line-height:1.5}.api-shell input[type=checkbox]{accent-color:var(--api-accent);margin-right:6px}.api-shell fieldset{border:0;padding:0;margin:20px 0}.api-shell legend{font-size:.85rem;font-weight:600;margin-bottom:8px}.api-shell fieldset label{display:inline-block;margin:0 22px 8px 0;font-weight:400}.api-form-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(120px,1fr);gap:18px;max-width:600px}
.api-shell button,.api-secret button,.api-shell .api-setup-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--api-accent,#116784);border-radius:7px;background:var(--api-accent,#116784);color:#fff;font:inherit;font-size:.85rem;font-weight:650;line-height:1.5;cursor:pointer;text-decoration:none;white-space:normal}.api-shell button:hover,.api-secret button:hover{filter:brightness(.94)}.api-shell button:disabled{opacity:.5;cursor:not-allowed}.api-shell .api-secondary,.api-secret button[type=button]{background:#fff;color:var(--api-accent,#116784);border-color:#b9cdd8}.api-shell :is(button,a,input,select,summary):focus-visible,.api-secret :is(button,input,textarea):focus-visible{outline:3px solid #58abc7;outline-offset:3px}.api-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.api-shell .api-actions button{padding:7px 12px}
.api-toolbar{display:flex;gap:18px;align-items:flex-end;margin:24px 0 16px}.api-user-filters{display:grid;grid-template-columns:minmax(200px,2fr) minmax(150px,1fr);gap:16px;flex:1}.api-list-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 12px}.api-list-caption p{margin:0;font-weight:600;font-size:.85rem}
.api-user{border:1px solid var(--api-line);border-radius:11px;margin:10px 0;background:#fff;overflow:hidden}.api-user>summary{display:grid;grid-template-columns:minmax(0,1fr) 110px 110px 18px;align-items:center;gap:18px;list-style:none;padding:18px 22px;transition:background .15s}.api-user>summary::-webkit-details-marker{display:none}.api-user>summary:hover{background:#f5f9fb}.api-user[open]>summary{background:#f3f8fb;border-bottom:1px solid var(--api-line)}.api-user-identity{display:flex;flex-direction:column;min-width:0;gap:3px}.api-user-identity strong{font-size:.94rem}.api-user-identity>span{font-size:.8rem;color:var(--api-muted);overflow-wrap:anywhere}.api-user-key-count{font-size:.81rem;color:var(--api-muted)}.api-chevron{font-size:20px;text-align:center;transition:transform .15s}.api-user[open] .api-chevron{transform:rotate(180deg)}.api-user-body{padding:24px}.api-detail-section{border-top:1px solid var(--api-line);margin-top:24px;padding-top:22px}.api-detail-section h3 .api-note{margin-left:6px}.api-access-form{display:grid;grid-template-columns:minmax(140px,1fr) minmax(200px,2fr) auto;align-items:end;gap:14px}
.api-table{width:100%;overflow:auto}.api-shell table{width:100%;border-collapse:collapse;text-align:left;font-size:.85rem}.api-shell th{font-size:.75rem;font-weight:650;color:var(--api-muted);background:#f6f9fb;white-space:nowrap}.api-shell th,.api-shell td{padding:13px 14px;border-bottom:1px solid var(--api-line);vertical-align:top}.api-shell td small{display:block;overflow-wrap:anywhere;margin-top:4px}.api-shell td progress{margin:8px 0 0;min-width:80px}.api-shell tbody tr:last-child td{border-bottom:0}.api-empty{text-align:center;padding:34px 20px;border:1px dashed var(--api-line);border-radius:8px;background:#fafcfd}.api-empty h3{margin:0 0 6px}.api-empty p,.api-empty-inline{color:var(--api-muted);font-size:.88rem}.api-history-filters{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:14px;align-items:end;margin:22px 0}
.api-shell .api-setup{background:#fffaf0;border-color:#e4c781}.api-setup-label{font-size:.72rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:#805a15}.api-setup ol{padding-left:22px;line-height:1.7;font-size:.9rem}.api-setup .api-actions{margin-top:18px}.api-shell .api-access-info{background:#f6f9fb}.api-shell [data-api-status],.api-shell #api-status{padding:12px 16px;background:#edf5fa;border-radius:8px;font-size:.9rem}.api-shell [role=alert]{color:#982c25;background:#fff1ef}.api-shell pre{overflow:auto;background:#102535;color:#e9f5ff;padding:20px;border-radius:10px;line-height:1.65;font-size:.84rem}.api-shell code{overflow-wrap:anywhere}.api-shell footer{margin-top:36px;font-size:.85rem}.api-secret{max-width:600px;width:calc(100% - 32px);padding:28px;border-radius:14px;border:1px solid #a4bdcd;background:#fff;color:#172f3e;font-family:inherit;line-height:1.6}.api-secret h2{font-size:1.3rem;margin:0 0 12px}.api-secret::backdrop{background:#082032aa}.api-secret textarea{min-height:110px;word-break:break-all}.api-secret .api-actions{margin-top:22px}.api-secret p{font-size:.9rem}
html:not([data-page-kind="app"]) body{background:#f4f8fa;color:#173445;min-height:100vh}
@media(max-width:850px){.api-shell .api-limits{grid-template-columns:repeat(2,minmax(0,1fr))}.api-user>summary{grid-template-columns:minmax(0,1fr) 94px 90px 16px;gap:12px;padding:16px}.api-user-body{padding:18px}.api-access-form{grid-template-columns:1fr 2fr}.api-access-form>button{justify-self:start}.api-history-filters{grid-template-columns:1fr 1fr}.api-history-filters>button{justify-self:start}}
@media(max-width:600px){.api-shell{padding:20px 14px}.api-shell>nav{gap:22px}.api-shell section{padding:18px}.api-grid{grid-template-columns:minmax(0,1fr);gap:14px}.api-toolbar{flex-wrap:wrap}.api-user-filters{grid-template-columns:1fr;width:100%;flex-basis:100%;gap:12px}.api-user>summary{grid-template-columns:minmax(0,1fr) auto 16px;gap:10px}.api-user-identity{grid-column:1}.api-user-key-count{grid-row:2;grid-column:1}.api-user>summary .api-badge{grid-column:2;grid-row:1}.api-chevron{grid-column:3;grid-row:1}.api-user-body{padding:16px}.api-account-summary{gap:20px;padding:16px}.api-account-summary>a{margin-left:0;width:100%}.api-form-grid,.api-access-form,.api-history-filters{grid-template-columns:1fr}.api-card-heading{gap:10px}.api-meter-label{font-size:.8rem}.api-shell th,.api-shell td{padding:10px}.api-secret{padding:20px}.api-shell .api-quota{padding:16px}}

@media(max-width:600px){.api-shell table{min-width:560px}}

/* Admin overview: quiet status, four comparable metrics, and one activity chart. */
.api-overview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:28px 0 22px}.api-overview-toolbar h2{margin:0}.api-overview-toolbar p{margin:5px 0 0}.api-period-controls{display:flex;align-items:end;gap:12px}.api-period-controls label{min-width:170px}.api-period-controls button{min-height:44px}
.api-status-strip{display:grid;grid-template-columns:130px 170px minmax(0,1fr);align-items:center;gap:24px;padding:18px 22px;border:1px solid var(--api-line);border-radius:10px;background:#f6f9fb;margin:0 0 20px}.api-status-strip>div{display:flex;flex-direction:column;gap:7px}.api-status-strip>p{margin:0;font-size:.82rem;color:var(--api-muted);border-left:1px solid var(--api-line);padding-left:24px}.api-status-strip small{display:block;font-size:.72rem;margin-top:5px}.api-state{display:flex;align-items:center;gap:7px;font-size:.88rem}.api-state i,.api-chart-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}.is-healthy{color:#176249}.is-attention{color:#82570a}
.api-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.api-stat{border:1px solid var(--api-line);border-radius:11px;padding:22px 20px;background:#fff;min-width:0}.api-shell .api-stat h3{color:var(--api-muted);font-size:.8rem;font-weight:600;line-height:1.4;margin:0 0 12px;min-height:2.8em}.api-stat>strong{display:block;font-size:clamp(1.65rem,2.3vw,2.25rem);font-weight:700;line-height:1.2;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.api-shell .api-stat p{font-size:.73rem;color:var(--api-muted);margin:12px 0 0;line-height:1.55}
.api-shell .api-activity{padding:24px;margin:20px 0}.api-chart-legend{font-size:.78rem;color:var(--api-muted);display:flex;gap:7px;align-items:center}.api-chart-legend i{border-radius:2px;background:#217b98}.api-chart{position:relative;margin-top:14px}.api-chart svg{display:block;width:100%;height:auto;min-height:150px}.api-chart svg text{font-family:inherit;font-size:11px;fill:#536c7c}.api-chart-empty{position:absolute;inset:0 10px 28px 46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#ffffffb8;text-align:center;font-size:.88rem}.api-chart-empty span{font-size:.78rem;color:var(--api-muted)}
.api-request-health{border:1px solid var(--api-line);border-radius:10px;padding:17px 22px;margin:20px 0}.api-request-health>summary{display:flex;align-items:center;gap:12px;font-weight:600;font-size:.88rem;list-style:none}.api-request-health>summary:before{content:'›';font-size:20px;line-height:1;color:var(--api-accent)}.api-request-health[open]>summary:before{transform:rotate(90deg)}.api-request-health>summary::-webkit-details-marker{display:none}.api-request-health>summary .api-note{margin-left:auto;font-size:.74rem}.api-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:24px 0}.api-health-grid>div{display:flex;flex-direction:column;gap:12px}.api-health-grid span{font-size:.75rem;color:var(--api-muted);min-height:2.8em}.api-health-grid strong{font-size:1.35rem}.api-shell .api-report-note{font-size:.75rem;color:var(--api-muted);line-height:1.8;margin-top:18px}
@media(max-width:1100px){.api-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.api-shell .api-stat h3{min-height:0}.api-stat>strong{font-size:2rem}.api-status-strip{grid-template-columns:1fr 1fr;gap:16px}.api-status-strip>p{grid-column:1/-1;border-left:0;border-top:1px solid var(--api-line);padding:12px 0 0}.api-health-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.api-overview-toolbar{align-items:stretch;flex-direction:column;gap:16px;margin-top:20px}.api-period-controls label{min-width:0;flex:1}.api-status-strip{padding:16px;gap:14px}.api-stats-grid{gap:10px}.api-stat{padding:17px 14px}.api-shell .api-stat h3{min-height:2.8em;font-size:.76rem;margin-bottom:8px}.api-stat>strong{font-size:1.7rem}.api-shell .api-stat p{font-size:.7rem}.api-shell .api-activity{padding:18px 14px}.api-chart svg{min-height:160px}.api-chart-empty{inset:0 0 20px 12px;padding:10px}.api-request-health{padding:16px}.api-request-health>summary{flex-wrap:wrap;gap:8px}.api-request-health>summary .api-note{margin-left:20px;width:100%}.api-health-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.api-health-grid span{min-height:0}}
[data-usage-results][aria-busy=true]{opacity:.6;transition:opacity .15s}

/* Availability controls remain together with their current status. */
.api-delivery-panel{border:1px solid var(--api-line);border-radius:10px;margin-bottom:20px;overflow:hidden;background:#f6f9fb}.api-delivery-panel .api-status-strip{border:0;border-radius:0;margin:0}.api-delivery-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--api-line);padding:16px 22px;background:#fff}.api-delivery-actions>p{font-size:.8rem;color:var(--api-muted);line-height:1.6;margin:0;max-width:600px}.api-delivery-actions .api-actions{flex-shrink:0}.api-delivery-actions .api-actions button{padding:9px 14px;min-height:42px}
@media(max-width:700px){.api-delivery-actions{flex-direction:column;align-items:stretch;gap:14px;padding:16px}.api-delivery-actions .api-actions{display:grid;grid-template-columns:1fr 1fr}}

.api-log{width:min(780px,calc(100vw - 32px));max-height:85vh;overflow:auto}.api-log-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.api-log-heading h2{margin:0}.api-log-entries{list-style:none;padding:0;margin:20px 0}.api-log-entries li{padding:16px 0;border-bottom:1px solid var(--api-line,#dce5eb)}.api-log-entries li>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.api-log-entries time,.api-log-entries small{font-size:.78rem;color:var(--api-muted,#536c7c)}.api-log-entries p{margin:8px 0;overflow-wrap:anywhere;line-height:1.6}.api-log-entries small{display:block}@media(max-width:700px){.api-delivery-actions .api-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
