.keys-page .sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.keys-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0;display:grid}.keys-stat{text-align:left;border-radius:var(--radius);gap:6px;padding:17px 20px;display:grid}.keys-stat>span{color:var(--muted);font-size:13px}.keys-stat strong{font-variant-numeric:tabular-nums;font-size:29px;font-weight:650;line-height:1.25}.keys-stat small{color:var(--muted);font-size:12px}.keys-stat.is-selected{border-color:var(--accent);background:var(--surface);box-shadow:inset 0 2px var(--accent)}.keys-stat.is-selected>span{color:var(--accent-hover)}.keys-list{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);overflow:hidden}.keys-toolbar{flex-wrap:wrap;align-items:center;gap:14px;padding:16px 18px;display:flex}.keys-search{flex:0 340px}.keys-search input{background:var(--surface-2);width:100%}.keys-refresh{margin-left:auto}.keys-table-wrap{box-shadow:none;border:0;border-radius:0}.keys-table{min-width:960px}.keys-table th:first-child,.keys-table td:first-child{padding-left:20px}.keys-table td{vertical-align:middle;padding-top:10px;padding-bottom:10px}.keys-identity{width:28%;max-width:360px}.keys-name{text-overflow:ellipsis;white-space:nowrap;margin-bottom:2px;font-size:14px;font-weight:600;display:block;overflow:hidden}.keys-page .key-cell{gap:5px;min-height:28px}.keys-page .key-cell code{white-space:nowrap;min-width:0;max-width:260px;color:var(--muted);display:block;overflow-x:auto}.keys-page .key-icon{flex-shrink:0;width:28px;height:28px}.keys-legacy{color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:4px;flex-shrink:0;padding:0 5px;font-size:10px;line-height:18px}.keys-permissions{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.keys-access-counts{flex-wrap:wrap;gap:4px;display:flex}.keys-table .keys-access-counts .access-pill{margin:0;padding:0 6px;line-height:20px}.keys-tool-count{font-size:13px;font-weight:550}.keys-page .access-pill{margin-bottom:2px;padding:2px 7px;font-size:11px}.keys-scopes-trigger{box-shadow:none;color:var(--muted);background:0 0;border:0;border-radius:4px;align-items:center;gap:5px;margin-top:4px;padding:0;font-size:12px;line-height:1.55;display:flex}.keys-scopes-trigger:hover,.keys-scopes-trigger[aria-expanded=true]{background:var(--surface-2);color:var(--accent-hover)}.keys-scopes-popover{overscroll-behavior:contain;visibility:hidden;width:min(320px,100vw - 24px);max-height:calc(100dvh - 24px);color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;margin:0;padding:16px;position:fixed;inset:0 auto auto 0;overflow:auto;box-shadow:0 10px 32px #1a161329}.keys-scopes-popover header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.keys-scopes-popover h2{margin:0;font-size:14px}.keys-scopes-popover h2 span{color:var(--muted);margin-left:5px;font-size:12px;font-weight:400}.keys-scopes-popover header p{color:var(--muted);overflow-wrap:anywhere;margin:4px 0 0;font-size:12px}.keys-scopes-popover .keys-close{width:24px;height:24px;font-size:20px}.keys-scopes-popover ul{margin:14px 0;padding:0;list-style:none}.keys-scopes-popover li{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:8px 0;font-size:13px;display:flex}.keys-scopes-popover code{overflow-wrap:anywhere;font-size:11px}.keys-scopes-note{color:var(--muted);margin:0;font-size:11px;line-height:1.6}.keys-status{border-radius:999px;align-items:center;gap:5px;padding:2px 8px;font-size:12px;display:inline-flex}.keys-status i{background:currentColor;border-radius:50%;width:5px;height:5px}.status-active{color:var(--ok);background:var(--ok-soft)}.status-soon{color:var(--warn);background:var(--warn-soft)}.status-expired{color:var(--bad);background:var(--bad-soft)}.keys-secondary{color:var(--muted);white-space:nowrap;margin-top:6px;font-size:12px}.keys-row-actions{white-space:nowrap;justify-content:flex-end;align-items:center;gap:7px;display:flex}.keys-table .keys-actions-heading{text-align:right;padding-right:20px}.keys-row-actions button{font-size:12px}.keys-page .keys-revoke-btn{color:var(--bad);margin-left:5px}.keys-footnote{color:var(--muted);margin:14px 2px 0;font-size:12px;line-height:1.7}.keys-empty{text-align:center;padding:15px 20px 36px}.keys-empty .empty{box-shadow:none;border:0;margin:0}.keys-notice{border-radius:var(--radius-sm);background:var(--ok-soft);color:var(--ok);justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding:10px 14px;font-size:13px;display:flex}.keys-notice.is-error{background:var(--bad-soft);color:var(--bad)}.keys-notice button{flex-shrink:0}.keys-dialog{border:1px solid var(--line);background:var(--surface);width:min(800px,100vw - 40px);max-height:calc(100dvh - 48px);color:var(--ink);border-radius:18px;padding:0;overflow:hidden;box-shadow:0 24px 80px #16121035}.keys-dialog[open]{flex-direction:column;display:flex}.keys-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#1612107a}.keys-dialog-head{border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 24px 18px;display:flex}.keys-dialog-head h2{overflow-wrap:anywhere;margin:0;font-size:20px}.keys-dialog-head p{margin:6px 0 0;line-height:1.7}.keys-close{width:32px;height:32px;color:var(--muted);box-shadow:none;border:0;flex-shrink:0;padding:0;font-size:24px;line-height:1}.keys-dialog-body{overscroll-behavior:contain;min-height:0;padding:22px 24px;overflow:auto}.keys-dialog-footer{border-top:1px solid var(--line);background:var(--surface-2);flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;align-items:center;gap:10px;padding:16px 24px;display:flex}.keys-dialog-footer>span{margin-right:auto}.keys-fieldset{border:0;min-width:0;margin:0;padding:0}.keys-form-grid{grid-template-columns:1.6fr 1fr;gap:16px;display:grid}:is(.keys-dialog,.keys-editor-page) .field>span{color:var(--ink-2);font-weight:550}:is(.keys-dialog,.keys-editor-page) .field input,:is(.keys-dialog,.keys-editor-page) .field select{min-width:0}.keys-section-title{justify-content:space-between;gap:10px;margin:14px 0 12px;display:flex}.keys-section-title h3{font-size:14px}.keys-presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.keys-presets button{text-align:left;gap:4px;padding:12px 14px;display:grid}.keys-presets strong{font-size:14px;font-weight:600}.keys-presets small{color:var(--muted);font-size:12px}.keys-presets .is-selected{background:var(--accent-soft);border-color:var(--accent)}.keys-presets .is-selected strong{color:var(--accent-hover)}.keys-tool-details{border:1px solid var(--line);border-radius:var(--radius-sm);margin-top:16px;padding:12px 14px}.keys-tool-details>summary{cursor:pointer;font-size:14px;font-weight:550}.keys-tool-details>summary span{margin-left:8px;font-weight:400}.keys-tool-toolbar{flex-wrap:wrap;align-items:center;gap:14px;margin:16px 0;display:flex}.keys-tool-toolbar>input{flex:1;min-width:160px;font-size:13px}.keys-tool-toolbar label{color:var(--muted);align-items:center;gap:7px;font-size:13px;display:flex}.keys-tool-group+.keys-tool-group{border-top:1px solid var(--line);margin-top:14px;padding-top:4px}.keys-tool-group .tool-group-head{font-size:13px}:is(.keys-dialog,.keys-editor-page) .tool-check{border-radius:8px;gap:10px;margin:0;padding:10px 8px}:is(.keys-dialog,.keys-editor-page) .tool-check:hover{background:var(--surface-2)}:is(.keys-dialog,.keys-editor-page) .tool-check input{flex-shrink:0}:is(.keys-dialog,.keys-editor-page) .tool-check>span{min-width:0}:is(.keys-dialog,.keys-editor-page) .tool-check strong{margin-right:8px;font-size:13px;font-weight:550}:is(.keys-dialog,.keys-editor-page) .tool-check code{overflow-wrap:anywhere;font-size:11px}.keys-tool-description{color:var(--muted);margin-top:5px;font-size:12px;line-height:1.65;display:block}.keys-inline-warning{background:var(--warn-soft);color:var(--warn);border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.7}.keys-calls-table{min-width:620px}.keys-calls-table td{font-size:12px}.keys-calls-table pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:230px}.keys-calls-table summary{cursor:pointer;white-space:nowrap}.keys-revoke-summary{background:var(--surface-2);overflow-wrap:anywhere;border-radius:10px;gap:6px;padding:16px;display:grid}.keys-revoke-summary code{padding:0}.keys-dialog .keys-danger{background:var(--bad);color:#fff;border-color:#0000}.keys-dialog .keys-danger:hover{background:#a93323}@container admin (max-width:900px){.keys-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.keys-stat{padding:14px 16px}.keys-stat strong{font-size:25px}}@media (max-width:540px){.keys-dialog{border-radius:14px;width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.keys-dialog-head,.keys-dialog-body,.keys-dialog-footer{padding:16px}.keys-form-grid{grid-template-columns:1fr;gap:0}.keys-presets{grid-template-columns:1fr}.keys-toolbar{gap:10px;padding:12px}.keys-search{flex-basis:100%}.keys-section-title{flex-wrap:wrap}}.keys-dialog-error{color:var(--bad);flex-basis:100%;margin:0;font-size:13px}.keys-calls-link{width:fit-content;margin-top:4px;font-size:12px;display:block}.keys-calls-link:hover,.keys-back-link:hover{text-decoration:underline}.keys-calls-link:focus-visible,.keys-back-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}.keys-back-link{margin-bottom:20px;font-size:13px;display:inline-block}.keys-calls-page .page-desc{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.keys-calls-info{border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--muted);background:var(--surface-2);flex-wrap:wrap;justify-content:space-between;gap:10px;margin:20px 0;padding:14px 16px;font-size:13px;display:flex}.keys-calls-filter{align-items:center;gap:10px;font-size:13px;display:flex}.keys-calls-page .keys-calls-table{min-width:850px}.keys-calls-page .keys-calls-table td{vertical-align:top;padding:18px 14px;font-size:13px}.keys-calls-page .keys-calls-table th:last-child{width:34%}.keys-calls-page .keys-call-time{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.keys-call-code{margin-top:6px}.keys-call-detail{overflow-wrap:anywhere}.keys-call-error{color:var(--bad);margin:0 0 8px}.keys-calls-page .keys-calls-table pre{background:var(--surface-2);border-radius:8px;max-width:none;padding:12px}.keys-page a.keys-primary-link{background:var(--accent);color:#fff;border-color:#0000;font-weight:600}.keys-page a.keys-primary-link:hover{background:var(--accent-hover)}.keys-edit-link{color:var(--muted);border-radius:6px;padding:4px 7px;font-size:12px}.keys-edit-link:hover{color:var(--ink);background:var(--surface-2)}.keys-edit-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.keys-editor-page{min-width:0}.keys-editor-layout{grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:24px;margin-top:24px;display:grid}.keys-editor-section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);margin-bottom:20px;padding:24px}.keys-editor-section>h2{margin:0;font-size:17px}.keys-editor-section>p.muted{margin:6px 0 20px}.keys-editor-section .keys-section-title{margin-top:0}.keys-editor-section .keys-section-title h3{font-size:17px}.keys-editor-section .keys-form-grid .field{margin-bottom:0}.keys-editor-section .keys-form-grid+.field{margin:16px 0 0}.keys-editor-summary{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:22px;position:sticky;top:24px}.keys-editor-summary h2{margin:0 0 16px}.keys-editor-count{color:var(--muted);margin:0;font-size:13px}.keys-editor-count strong{color:var(--ink);font-size:32px;font-weight:650}.keys-editor-summary dl{gap:10px;margin:18px 0;display:grid}.keys-editor-summary dl>div{justify-content:space-between;align-items:center;display:flex}.keys-editor-summary dd{margin:0;font-size:13px}.keys-editor-summary-note{border-top:1px solid var(--line);margin-top:16px;padding-top:16px;font-size:13px}.keys-editor-summary-note strong{font-weight:600}.keys-editor-summary-note p{color:var(--muted);overflow-wrap:anywhere;margin:6px 0 0;line-height:1.7}.keys-editor-footer{z-index:3;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);flex-wrap:wrap;align-items:center;gap:12px;margin-top:4px;padding:16px 20px;display:flex;position:sticky;bottom:16px}.keys-editor-footer>span{margin-right:auto}@container admin (max-width:1100px){.keys-editor-layout{grid-template-columns:minmax(0,1fr) 230px;gap:16px}.keys-editor-section{padding:18px}}@container admin (max-width:900px){.keys-editor-layout{grid-template-columns:minmax(0,1fr)}.keys-editor-summary{position:static}.keys-editor-footer{bottom:8px}}@container admin (max-width:540px){.keys-editor-section{padding:16px}.keys-editor-footer{gap:8px;padding:12px}.keys-editor-footer>span{flex-basis:100%}.keys-editor-footer button{flex:1}}
