/* Local component layer: no CDN, build step or server runtime dependency. */
:root{font-synthesis:none;--shadow:0 4px 18px #17252b06}body{font-size:14px}button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;transition:background .15s,border-color .15s,box-shadow .15s;line-height:1.4;font-weight:500}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8fcdbb;outline-offset:3px}button:hover{background:#f1f7f4}button.primary:hover{background:#116656;color:#fff}button:disabled{opacity:.42}input,select,textarea{min-height:40px;border-color:#dbe4df;font-size:13px;transition:box-shadow .15s,border-color .15s}input:focus,select:focus,textarea:focus{outline:0;border-color:#439c85;box-shadow:0 0 0 3px #167a6912}select{cursor:pointer;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d7e76' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;appearance:none}.page-head{align-items:flex-end}.filters{align-items:flex-end;gap:12px}.filters .filter-label{margin:0;display:flex;flex-direction:column;gap:6px;font-size:11px;color:#7b8b83}.filter-label select{margin:0;min-width:145px}.filter-label #key-filter{width:230px;max-width:230px;text-overflow:ellipsis}.filters #refresh{height:40px;min-width:70px}.panel{box-shadow:var(--shadow)}.records-panel{padding:0;overflow:hidden}.records-heading{padding:22px 24px 0;display:flex;justify-content:space-between;align-items:center}.records-heading h2{font-size:16px}.records-heading p{font-size:12px;margin-top:3px}.status-tabs{display:flex;gap:22px;padding:4px 24px 0;border-bottom:1px solid var(--line);overflow:auto;margin-top:14px}.status-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;white-space:nowrap;padding:12px 2px;color:#73827a;font-size:13px;min-height:46px}.status-tabs button.active{color:var(--teal);border-bottom-color:var(--teal);font-weight:650}.status-dot{width:6px;height:6px;display:inline-block;border-radius:50%}.success-dot{background:#269570}.failed-dot{background:#d88b76}.record-tools{padding:20px 24px;margin:0;display:flex;align-items:flex-end;gap:14px;background:#fcfdfc}.record-tools label{margin:0;font-size:11px;color:#7b8b83}.record-tools label input{width:230px;max-width:230px;margin-top:6px}.filter-actions{display:flex;gap:8px}.filter-actions button{height:40px;min-width:70px}.record-summary{padding:0 24px 14px;background:#fcfdfc;color:#94a097;font-size:11px}.records-table{table-layout:fixed;min-width:930px;font-size:12px}.records-table .col-time{width:15%}.records-table .col-request{width:20%}.records-table .col-key{width:18%}.records-table .col-status{width:9%}.records-table .col-duration{width:9%}.records-table .col-reason{width:19%}.records-table .col-action{width:10%}.records-table th{font-size:11px;color:#809188;height:43px;background:#f7f9f7}.records-table td,.records-table th{padding:16px 18px}.records-table th:first-child,.records-table td:first-child{padding-left:24px}.records-table td{height:80px;white-space:normal;overflow-wrap:anywhere}.records-table tr:hover td{background:#fafcfb}.records-table td small{margin-top:5px;color:#8d9b93;font-size:10px}.key-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px;font-weight:500}.request-id{display:flex;align-items:center;gap:5px}.mono,code{font-family:"Cascadia Code",Consolas,monospace;font-size:11px}.copy-inline{border:0;background:transparent;padding:3px;min-height:22px;font-size:14px;color:#a1afa6;flex-shrink:0}.copy-inline:hover{color:var(--teal);background:#e9f3ed}.table-detail{padding:4px 0;min-height:30px;border:0;background:transparent;color:var(--teal);font-size:12px;white-space:nowrap}.pill{display:inline-flex;align-items:center;gap:5px;border:1px solid #e4eae6;border-radius:6px;padding:4px 8px;line-height:1.4;white-space:nowrap}.pill:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.pill.success{border-color:#d4ebdf}.pill.failed{border-color:#f3ded6}.error-label{color:#a66b55}.source-label{color:#547464}.pagination{margin:0;padding:18px 24px;gap:8px;min-height:78px}.pagination button{width:34px;min-height:34px;padding:5px;font-size:20px}.page-size-label{display:flex;align-items:center;gap:7px;margin:0 10px 0 0;font-size:11px}.page-size-label select{margin:0;min-height:34px;padding:6px 30px 6px 10px;font-size:12px}.pagination #page-number{font-size:12px;min-width:56px;text-align:center}.empty strong{font-size:14px;font-weight:500}.empty p{font-size:12px}.loading:before{content:'';width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}[aria-busy=true] .records-table{opacity:.55}dialog{padding:0;box-shadow:0 24px 80px #102f2926;border:0}dialog .panel-title{padding:22px 25px;border-bottom:1px solid var(--line);margin:0}#modal-body{padding:24px 26px;max-height:65vh;overflow:auto}#modal-body label:first-child{margin-top:0}.modal-footer{border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:16px 24px;background:#fafcfb}.modal-footer p{margin-right:auto}.icon-button{font-size:22px;border:0;padding:2px 8px;min-height:28px}#modal-body>button{margin-top:16px}.secret{padding:12px;background:#f1f7f3}dialog.detail-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:550px;max-width:100vw;max-height:100vh;height:100dvh;border-radius:14px 0 0 14px}dialog.detail-drawer #modal-body{max-height:calc(100dvh - 78px);padding-bottom:35px}dialog.detail-drawer .modal-footer{display:none}.detail-status{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:24px}.detail-list{display:grid;grid-template-columns:105px minmax(0,1fr);font-size:12px;margin:0;gap:0}.detail-list dt,.detail-list dd{padding:13px 0;border-bottom:1px solid #edf1ee;margin:0;overflow-wrap:anywhere}.detail-list dt{color:#87968d}.detail-list dd{display:flex;gap:8px;align-items:center;justify-content:space-between}.detail-error{background:#fff5ef;border:1px solid #f0dfd5;border-radius:9px;padding:16px;margin-top:24px;color:#aa6143;font-size:12px}.detail-error code{font-size:10px}.detail-heading{font-size:13px;margin-top:26px}.attempt-list{list-style:none;padding:0 0 0 12px;margin:18px 0}.attempt-list li{padding:0 0 22px 24px;border-left:1px solid #dce8df;position:relative;font-size:12px}.attempt-list li:before{content:'✓';position:absolute;left:-10px;top:0;width:19px;height:19px;background:#e0f2e7;color:#218864;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;font-size:10px}.attempt-list li.failed:before{content:'·';background:#f8e8df;color:#a2654b}.attempt-list li:last-child{border-left-color:transparent}.attempt-list small{color:#87958c;margin-top:4px}.raw-details{margin-top:20px;border:1px solid var(--line);border-radius:8px;padding:12px;font-size:12px}.raw-details summary{cursor:pointer;color:#72867a}.raw-details pre{font-size:11px;margin-bottom:0}.confirm-dialog{width:410px;padding-top:26px}.confirm-dialog h2,.confirm-dialog>p{margin:14px 26px}.confirm-dialog>p{font-size:13px;margin-bottom:26px}.confirm-icon{margin:0 26px;width:38px;height:38px;display:grid;place-items:center;background:#fff0e6;color:#b27145;border-radius:50%;font-weight:700;font-size:20px}button.danger{background:#b85b47;border-color:#b85b47;color:#fff}.text-danger{color:#b77e6d;border-color:transparent}.key-row{gap:24px}.key-row h2{font-size:14px}.key-actions button{font-size:12px}.key-row p{font-size:11px}.key-actions{flex-shrink:0}.key-row>div:first-child{min-width:0}.key-row h2{overflow-wrap:anywhere}#toast-region{position:fixed;right:26px;top:24px;z-index:10000;max-width:min(440px,calc(100vw - 32px))}.toast-message{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #d9e9de;border-radius:10px;background:white;box-shadow:0 8px 30px #193c2b1c;color:#327a5e;font-size:13px;animation:toast-in .2s ease-out}.toast-message.error{color:#aa6143;border-color:#f0dfd5}.toast-message button{background:none;border:0;color:#94a298;min-height:22px;padding:0 4px;font-size:19px}.toast-message>span:nth-child(2){flex:1}@keyframes toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1450px){.records-table .col-time{width:15%}.records-table .col-key{width:18%}.content{padding-top:40px}}@media(max-width:900px){.record-tools{flex-wrap:wrap}.record-tools label{flex:1;min-width:150px}.record-tools label input{width:100%;max-width:100%}.key-row{flex-direction:column}.key-actions{flex-wrap:wrap}}@media(max-width:700px){.filters{width:100%;gap:8px}.filter-label #key-filter{width:150px;max-width:150px}.filter-label select{min-width:125px}.filters .filter-label{flex:1}.records-heading{padding:20px 16px 0}.status-tabs{padding-left:16px;gap:17px}.record-tools{padding:16px}.record-summary{padding-left:16px}.pagination{padding:16px;flex-wrap:wrap}.pagination>span:first-child{flex-basis:100%;margin-bottom:6px}.page-size-label{margin-right:auto}.modal-footer{padding:16px}#modal-body{padding:20px}.detail-list{grid-template-columns:90px minmax(0,1fr)}.detail-status{gap:10px}.filters #refresh{min-width:54px}.key-actions{gap:5px}.key-actions button{padding:8px}.panel-title{align-items:flex-start}}

.record-actions .table-detail{display:block;white-space:nowrap;margin:4px 0}
#modal.preview-modal{width:min(820px,calc(100vw - 40px));max-width:820px;height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden}
.preview-modal #modal-form{height:100%;display:flex;flex-direction:column;min-height:0}
.preview-modal #modal-form>.panel-title{flex-shrink:0;margin:0;padding:16px 24px;border-bottom:1px solid var(--line)}
.preview-modal #modal-body{flex:1;min-height:0;max-height:none;overflow:hidden;display:flex;flex-direction:column;padding:18px 24px;gap:14px}
.preview-modal .modal-footer{display:none}
.preview-title{flex-shrink:0;font-size:15px;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.preview-stage{flex:1;min-height:100px;display:flex;align-items:center;justify-content:center;background:#101b23;border-radius:10px;overflow:hidden}
.preview-modal video{display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;background:#101b23;margin:0;border-radius:0}
.preview-toolbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.preview-toolbar label{display:flex;align-items:center;gap:12px;margin:0;font-size:13px}
.preview-modal select{min-width:200px;max-width:100%}
.preview-route-info{font-size:12px;color:var(--muted)}
.preview-hint{flex-shrink:0;font-size:12px;color:#6f838b;line-height:1.7;margin:0;min-height:21px}
.preview-hint.error{color:#bf533f}
@media(max-width:600px){#modal.preview-modal{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.preview-modal #modal-body{padding:12px;gap:10px}.preview-modal #modal-form>.panel-title{padding:12px 16px}.preview-toolbar{flex-wrap:wrap}.preview-route-info{display:none}.preview-modal select{min-width:180px}}

.key-secret-actions{display:flex;gap:10px;margin:16px 0}

#modal.qps-modal{max-width:540px;width:calc(100vw - 32px)}
.qps-modal #modal-body{padding:24px;max-height:calc(100dvh - 190px)}
.qps-modal .panel-title{padding:20px 24px}.qps-modal .modal-footer{padding:16px 24px}
.qps-intro strong{font-size:14px;font-weight:600;color:#263f34}.qps-intro p{font-size:12px;line-height:1.6;color:#829189;margin:5px 0 18px}
.qps-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.qps-choices .qps-choice{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;padding:18px 14px;min-height:100px;border:1px solid #e0e8e3;border-radius:10px;background:#fff;text-align:left;color:#42564a;box-shadow:none}
.qps-choices .qps-choice:hover{background:#f7faf8;border-color:#b0cfc1}.qps-choices .qps-choice.selected{border-color:#268a72;background:#edf7f2;box-shadow:0 0 0 1px #268a72}
.qps-choice-icon{display:grid;place-items:center;flex-shrink:0;font-size:22px;line-height:1;width:30px;height:30px;background:#f0f4f1;border-radius:8px;color:#7a9183}.selected .qps-choice-icon{background:#d9eee4;color:#167a69}
.qps-choice-content{display:block;min-width:0;padding-top:2px}.qps-choice-content strong{display:block;font-size:13px;font-weight:600}.qps-choice-content small{font-size:11px;font-weight:400;color:#819287;line-height:1.7;margin-top:7px}
.qps-choice-check{position:absolute;right:9px;top:8px;font-size:11px;font-weight:700;color:#167a69}
.qps-number-panel{margin-top:20px;padding:18px;background:#f7faf8;border:1px solid #e6ede8;border-radius:10px}
.qps-number-panel label{display:block;margin:0 0 9px;font-size:12px;font-weight:500;color:#536d5e}
.qps-number-entry{display:flex;align-items:center;gap:12px}.qps-number-entry input{width:130px;font-size:20px;font-weight:600;line-height:1.3;height:46px;padding:9px 12px}.qps-number-entry>span{font-size:12px;color:#8a9b90}
.qps-number-panel>small{font-size:11px;color:#8c9b92;margin-top:10px}
.qps-note{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.7;color:#8a9a90;margin-top:18px}.qps-note-icon{width:15px;height:15px;border:1px solid #b6c6bd;border-radius:50%;text-align:center;line-height:14px;flex-shrink:0;font-size:10px;margin-top:2px}
@media(max-width:430px){.qps-choices{grid-template-columns:1fr}.qps-choices .qps-choice{min-height:82px}.qps-modal #modal-body{padding:20px}}

.deleted-keys-panel{margin-top:24px;border:1px solid var(--line);border-radius:10px;padding:0 18px;background:#fafcfb}.deleted-keys-panel>summary{padding:16px 0;cursor:pointer;font-size:13px;font-weight:500;color:#7d8d83}.deleted-keys-panel>p{font-size:12px;margin:0 0 12px}.deleted-key-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-top:1px solid #e7eeea}.deleted-key-row>div{min-width:0}.deleted-key-row strong{display:block;overflow-wrap:anywhere;font-size:12px;font-weight:500;color:#73867a}.deleted-key-row small{font-size:10px;color:#9aa69f;margin-top:4px}.deleted-key-row button{flex-shrink:0;font-size:12px}.purge-key-name{font-size:15px;overflow-wrap:anywhere;margin:0 0 8px}.purge-warning{background:#fff5ee;border:1px solid #f0d9ca;padding:14px;border-radius:8px;font-size:12px;margin-top:18px;color:#ac6b47}.purge-warning p{font-size:12px;line-height:1.8;margin-bottom:0}#modal-body .purge-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8;margin:18px 0 0}#modal-body .purge-consent input{width:16px;height:16px;min-height:16px;flex-shrink:0;margin:3px 0 0;accent-color:var(--teal)}

.record-request-content{margin:20px 0;border:1px solid #e0e9e3;border-radius:10px;background:#fafcfb;padding:14px}.request-content-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.request-content-heading h3{font-size:13px;margin:0;font-weight:600}.request-content-heading button{font-size:11px;min-height:28px;padding:4px 9px}.record-request-content>p{font-size:11px;line-height:1.8;margin:8px 0 12px}.record-request-content pre{margin:0;padding:14px;max-height:260px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;background:#eef4f0;color:#405b4b;border-radius:6px}

.cookie-manager>p{font-size:12px;line-height:1.8}.saved-cookie-card{border:1px solid #dfe9e2;border-radius:10px;padding:16px;margin:14px 0 20px;background:#fafcfb}.saved-cookie-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.saved-cookie-heading .muted{font-size:10px}.saved-cookie-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.saved-cookie-actions button{font-size:12px;padding:7px 12px;min-height:34px}.saved-cookie-actions .primary{margin-left:auto}.saved-cookie-card textarea{width:100%;font:11px/1.7 Consolas,monospace;background:#fff;margin-bottom:12px}.cookie-manager label{font-size:12px}.cookie-manager label textarea{font:12px/1.8 Consolas,monospace}.cookie-check-result{font-size:11px;line-height:1.8;color:#829489;padding-top:12px;border-top:1px solid #e3ece6}.cookie-check-result strong{font-size:12px}.cookie-check-result p{margin:6px 0}.cookie-check-result small{font-size:10px;color:#93a297}.cookie-check-result.valid strong{color:#167a69}.cookie-check-result.invalid strong,.cookie-check-result.invalid_format strong{color:#b9674c}.cookie-check-result.unknown strong{color:#a5803e}

.cookie-account-name{display:flex;align-items:flex-start;gap:12px;margin:10px 0;padding:9px 12px;background:#edf7f1;border-radius:7px;font-size:12px}.cookie-account-name>span{color:#80988a;flex-shrink:0}.cookie-account-name>b{color:#28654d;font-weight:600;overflow-wrap:anywhere}

.cookie-list-summary{margin-top:12px;padding:10px 12px;border:1px solid #e5ede7;border-radius:8px;background:#f8fbf9;max-width:480px}.cookie-list-main{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.cookie-list-label{font-size:10px;color:#93a398;flex-shrink:0}.cookie-list-name{font-size:12px;font-weight:500;color:#3d5948;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cookie-list-status{font-size:10px;padding:2px 7px;border-radius:5px;background:#edf1ee;color:#84988b;white-space:nowrap}.cookie-list-status.valid{color:#167a69;background:#e0f2e9}.cookie-list-status.invalid{color:#b46850;background:#f9ebe5}.cookie-list-status.unknown{color:#a17e3f;background:#fcf3df}.cookie-list-summary .cookie-list-time{font-size:10px;color:#9ba99f;margin-top:6px}

/* Aligned API credential inventory. */
#key-list{overflow-x:auto;border:1px solid var(--line);border-radius:10px}
.keys-table{table-layout:fixed;min-width:860px;white-space:normal}
.keys-table th{font-size:11px;padding:13px 18px;background:#f7f9f8}
.keys-table th:nth-child(1){width:21%}.keys-table th:nth-child(2){width:9%}.keys-table th:nth-child(3){width:9%}.keys-table th:nth-child(4){width:27%}.keys-table th:nth-child(5){width:34%}
.keys-table td{padding:22px 18px;vertical-align:middle}.keys-table tbody tr:last-child td{border-bottom:0}.keys-table tbody tr:hover{background:#fcfdfc}
.key-identity strong{display:block;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.key-identity code{display:block;color:#7e8e85;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.key-identity small{margin-top:5px;color:#a0ada5}
.key-quota strong{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.key-quota small{margin-top:3px;color:#93a198}
.keys-table .cookie-list-summary{margin:0;padding:0;border:0;border-radius:0;background:none;max-width:none}.keys-table .cookie-list-label{display:none}.keys-table .cookie-list-main{gap:8px}.keys-table .cookie-list-name{max-width:160px;font-size:12px}.keys-table .cookie-list-time{margin-top:8px;line-height:1.6}
.key-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.key-table-actions button{font-size:11px;padding:7px 9px;min-height:33px;white-space:nowrap}.key-table-actions button:nth-child(1),.key-table-actions button:nth-child(2){color:var(--teal);background:#f6faf8}.key-table-actions .text-danger{margin-left:2px}
.keys-table th:last-child{text-align:right}.keys-table .pill{font-size:10px}.key-list>.empty{border:0}
@media(max-width:1450px){.keys-table th:nth-child(1){width:19%}.keys-table th:nth-child(4){width:25%}.keys-table th:nth-child(5){width:38%}}

.keys-table .key-state-switch{display:inline-flex;flex-direction:column;align-items:flex-start;gap:7px;border:0;padding:4px 0;background:none;min-height:0;color:#8b9791;white-space:nowrap}
.key-switch-track{position:relative;display:block;width:34px;height:20px;border-radius:20px;background:#c8d2cd;transition:background .18s;box-shadow:inset 0 0 0 1px #00000005}
.key-switch-track:after{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:white;box-shadow:0 1px 3px #17252b26;transition:transform .18s}
.key-state-switch[aria-checked=true] .key-switch-track{background:var(--teal)}.key-state-switch[aria-checked=true] .key-switch-track:after{transform:translateX(14px)}
.key-switch-label{font-size:11px;line-height:1.4}.key-state-switch[aria-checked=true] .key-switch-label{color:var(--teal)}.keys-table .key-state-switch:hover{background:none}.key-state-switch:hover .key-switch-track{box-shadow:0 0 0 3px #167a6914}.key-state-switch:disabled{cursor:wait}

.playground-layout{display:grid;grid-template-columns:minmax(340px,.95fr) minmax(430px,1.05fr);gap:22px;align-items:start}.playground-layout .playground{max-width:none;margin:0;min-width:0;position:sticky;top:24px}.api-reference{position:static;inset:auto;width:auto;display:block;padding:0;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0;overflow:hidden;box-shadow:var(--shadow)}.api-doc-heading{padding:22px 24px;border-bottom:1px solid var(--line)}.api-doc-tag{font-size:10px;color:var(--teal);background:#eaf4ef;border-radius:4px;padding:3px 7px}.api-doc-heading h2{display:inline;margin-left:10px;font-size:16px}.api-doc-heading p{font-size:12px;color:var(--muted);margin:10px 0 0}.api-doc-section{padding:22px 24px;border-bottom:1px solid var(--line)}.api-doc-section:last-child{border-bottom:0}.api-doc-section h3{font-size:13px;margin:0 0 12px}.api-doc-section p{font-size:12px;color:#728279;line-height:1.9;overflow-wrap:anywhere}.api-endpoint{display:flex;gap:10px;align-items:center;background:#f6f9f7;border:1px solid #e6ede8;border-radius:7px;padding:10px 12px;overflow-wrap:anywhere}.api-endpoint b{font-size:10px;color:var(--teal)}.api-endpoint b.get{color:#527fad}.api-params{overflow:auto;margin:14px 0}.api-params table{white-space:normal;font-size:11px;line-height:1.7}.api-params th,.api-params td{padding:10px 9px;vertical-align:top}.api-params code{overflow-wrap:anywhere}.api-params em{display:block;font-style:normal;color:#ba7e65;font-size:10px}.api-reference details{margin-top:14px}.api-reference summary{cursor:pointer;font-size:12px;color:var(--teal);padding:6px 0}.api-reference pre{font-size:11px;padding:14px;margin:8px 0 0;max-height:380px}.api-doc-note{background:#f8faf9;border-left:2px solid #d5e5dc;padding:9px 12px}.playground-layout #test-result{max-height:480px}
@media(max-width:1200px){.playground-layout{grid-template-columns:1fr}.playground-layout .playground{position:static}.api-reference{width:auto}}
@media(max-width:700px){.api-doc-heading,.api-doc-section{padding:18px}.api-reference{padding:0}}
/* Operational views and inventory filters. */
.key-inventory-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 18px}.key-inventory-tools input{width:230px}.key-inventory-tools select{font-size:12px}.key-inventory-tools button{font-size:12px}.key-inventory-tools>span{font-size:11px;color:var(--muted)}
.keys-table{min-width:1120px}.keys-table th:nth-child(1){width:17%}.keys-table th:nth-child(2){width:8%}.keys-table th:nth-child(3){width:10%}.keys-table th:nth-child(4){width:22%}.keys-table th:nth-child(5){width:18%;text-align:left}.keys-table th:nth-child(6){width:25%;text-align:right}.key-identity .key-rename{font-size:10px;min-height:20px;padding:0;margin-top:2px}.key-usage strong{font-size:15px}.key-usage small{margin-top:5px;font-size:10px;line-height:1.6}.key-usage .table-detail{font-size:11px;margin-top:5px}.key-quota small{white-space:nowrap}.key-table-actions{row-gap:8px}
.custom-time{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.custom-time label{font-size:11px;margin:0}.custom-time input{margin-top:5px;font-size:12px}.page-actions{flex-wrap:wrap}.operations-status{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.operations-status>div{padding:12px 14px;background:#f6f9f7;border-radius:8px}.operations-status small{font-size:11px;color:var(--muted);margin-bottom:7px}.operations-status strong{font-size:13px;font-weight:550}.operations-panel .panel-title{margin-bottom:15px}.operations-panel .panel-title>span{font-size:11px}.operations-notices>p{font-size:11px;margin-top:18px}.operation-notice{display:flex;justify-content:space-between;gap:15px;padding:15px;border:1px solid #efdfc6;background:#fffaf2;border-radius:8px;margin-top:12px;font-size:12px}.operation-notice small{color:var(--muted);font-size:10px}.operation-notice p{margin:5px 0}.operation-notice.resolved{background:#f6faf7;border-color:#dce9df;color:#658371}.operation-notice button{align-self:center;flex-shrink:0;font-size:11px}.settings-panel form{margin:22px 0}.settings-fields{display:flex;gap:20px}.settings-fields label{margin-top:0;font-size:12px}.settings-fields input{max-width:220px}.settings-panel .detail-list{max-width:650px}.record-related-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:20px 0}.record-related-actions>small{flex-basis:100%;font-size:11px}.record-related-actions button{font-size:12px}.retry-relations{width:100%;font-size:12px}.retry-relations button{margin-right:10px}.debug-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.debug-options label{display:flex;align-items:center;gap:6px;font-size:11px;margin:0}.debug-options input{width:14px;min-height:14px;margin:0}.debug-options button{font-size:11px}#test-visual-result{border:1px solid #dce9e0;border-radius:9px;padding:16px;margin-top:14px;background:#f7fbf8;font-size:12px}#test-visual-result small{color:var(--muted)}.request-log-table td:last-child .table-detail{display:block}
@media(max-width:1000px){.operations-status{grid-template-columns:repeat(3,minmax(0,1fr))}.custom-time{width:100%}}@media(max-width:700px){.operations-status{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-fields{flex-direction:column;gap:0}.key-inventory-tools>input,.key-inventory-tools>select{flex:1;min-width:145px}.operation-notice{flex-direction:column;gap:6px}}
@media(min-width:701px) and (max-width:1450px){.keys-table{min-width:860px}.keys-table td,.keys-table th{padding-left:12px;padding-right:12px}.keys-table th:nth-child(1){width:16%}.keys-table th:nth-child(2){width:8%}.keys-table th:nth-child(3){width:10%}.keys-table th:nth-child(4){width:22%}.keys-table th:nth-child(5){width:20%}.keys-table th:nth-child(6){width:24%}.key-table-actions button{font-size:10px;padding:6px 7px}.key-usage small{overflow-wrap:anywhere}}

.log-related-scope{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 24px;background:#eff7f2;color:var(--teal);font-size:11px;overflow-wrap:anywhere}
.page-head:has(#custom-time:not([hidden])){flex-wrap:wrap}.page-head:has(#custom-time:not([hidden])) .page-heading{flex-basis:100%}.page-head:has(#custom-time:not([hidden])) .page-actions{width:100%;justify-content:flex-start}
/* Settings workbench. */
.settings-navigation{display:flex;gap:6px;padding:6px;background:#eaf0ec;border:1px solid #e0e8e2;border-radius:10px;margin-bottom:20px;overflow:auto;width:fit-content;max-width:100%}.settings-navigation button{border:0;background:none;color:#75867b;white-space:nowrap;padding:9px 20px;font-size:12px}.settings-navigation button[aria-selected=true]{background:white;color:var(--teal);box-shadow:0 2px 7px #19362a09}.setting-card{max-width:1100px;padding:26px}.setting-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.setting-card-heading h2{font-size:15px}.setting-card-heading p,.setting-card>p{font-size:12px;color:#819087;margin:7px 0 0;line-height:1.8}.setting-card-heading>button,.setting-inline-actions button{font-size:12px}.setting-effect{font-size:10px;background:#edf5f0;color:#6e9580;padding:4px 8px;border-radius:5px;white-space:nowrap}.setting-card label{font-size:12px;color:#6f8275;margin:20px 0}.setting-card label>input{max-width:220px}.setting-card label>small{font-size:11px;color:#95a399;margin-top:7px;font-weight:400}.setting-card .settings-fields{gap:24px;flex-wrap:wrap}.setting-card .settings-fields>label{margin-top:0;flex:1;min-width:170px}.setting-form-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;border-top:1px solid #e9eeea;padding-top:18px;margin-top:22px}.setting-form-footer button{font-size:12px}.setting-dirty{font-size:11px;color:#b28d4c;margin-right:auto}.setting-explainer p{padding:12px 0;border-bottom:1px solid #edf1ee;margin:0;font-size:12px;color:#839288;line-height:1.9}.setting-explainer p:last-child{border:0}.setting-explainer b{font-weight:500;color:#587361}.setting-card .setting-check{display:flex;gap:10px;align-items:flex-start;padding:15px;background:#f7faf8;border:1px solid #e5ece6;border-radius:8px}.setting-check input{width:16px;min-height:16px;height:16px;margin:2px 0 0;accent-color:var(--teal)}.setting-check small{color:#98a59b;font-size:11px;margin-top:4px}.setting-card .detail-list{max-width:800px;grid-template-columns:140px minmax(0,1fr)}.setting-rule-preview{font-size:12px;color:#6a8c76;background:#f4f9f5;border-radius:7px;padding:12px 15px;line-height:1.9}.password-settings{max-width:530px}.setting-card .password-settings label>input{max-width:100%}.setting-security-note{padding:12px 14px;font-size:12px;color:#a17d4c;background:#fff9ef;border-radius:7px;line-height:1.8}.setting-inline-actions{display:flex;gap:8px;flex-wrap:wrap}.settings-data-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}.settings-data-counts>div{background:#f5f9f6;border:1px solid #e7eee9;border-radius:8px;padding:14px 18px}.settings-data-counts small{font-size:11px;color:#91a095}.settings-data-counts strong{display:block;margin-top:5px;font-size:22px;font-weight:600}.settings-history-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid #edf1ee;font-size:12px}.settings-history-row:last-child{border-bottom:0}.settings-history-row small{font-size:11px;color:#96a49b;white-space:nowrap}
@media(max-width:700px){.setting-card{padding:20px}.setting-card-heading{flex-direction:column;gap:12px}.settings-navigation{width:100%}.settings-navigation button{padding:8px 12px}.settings-data-counts>div{padding:12px}.settings-data-counts strong{font-size:19px}.setting-card .detail-list{grid-template-columns:110px minmax(0,1fr)}.setting-card .settings-fields{gap:0}.setting-card label>input{max-width:100%}.settings-history-row{align-items:flex-start;flex-direction:column;gap:3px}}

.log-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.log-detail-actions button{font-size:12px}.log-detail-section{margin:24px 0}.log-detail-section>h3{font-size:13px;margin:0 0 12px}.log-detail-section p{font-size:11px;line-height:1.9;overflow-wrap:anywhere}.log-detail-section .detail-list{grid-template-columns:105px minmax(0,1fr)}.log-detail-section .detail-list dd{display:block;overflow-wrap:anywhere}.log-detail-section pre{max-height:340px;margin-top:10px}.log-json-actions{display:flex;justify-content:flex-end;margin-top:-34px;margin-bottom:12px}.log-json-actions button{font-size:11px;min-height:24px}.log-detail-provenance{background:#f1f7f3;border-radius:6px;padding:10px 12px;color:#7b9585}.detail-back{margin-bottom:14px;font-size:12px}.raw-details .log-detail-section{margin:16px 0 0}

.log-meta-details{padding:12px 14px;border:1px solid #e2ebe5;border-radius:8px;background:#f9fcfa;margin:12px 0 22px}.log-meta-details>summary{cursor:pointer;color:#597b66;font-size:12px;overflow-wrap:anywhere;line-height:1.8}.log-meta-details>summary small{font-size:10px;color:#93a398;margin:4px 0 0 14px}.log-meta-details .log-detail-section{margin-bottom:0}.log-meta-details .detail-list{font-size:11px}

#video-preview-dialog{width:min(820px,calc(100vw - 40px));max-width:820px;height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden;display:none;flex-direction:column}#video-preview-dialog[open]{display:flex}#video-preview-dialog>.panel-title{flex-shrink:0;margin:0;padding:16px 24px;border-bottom:1px solid var(--line)}#video-preview-body{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:18px 24px;gap:14px}#video-preview-dialog::backdrop{background:#10221b80;backdrop-filter:blur(2px)}.video-preview-button{background:var(--teal);border-color:var(--teal);color:#fff;font-size:12px;font-weight:550;padding:9px 16px;gap:9px;min-height:39px;box-shadow:0 2px 5px #167a6910}.video-preview-button:hover{background:#116656;border-color:#116656;color:#fff}.video-preview-icon{width:21px;height:21px;border-radius:50%;background:#ffffff26;display:inline-grid;place-items:center;font-size:9px;padding-left:1px}.video-preview-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 8px}.video-preview-actions>span{font-size:11px}
@media(max-width:600px){#video-preview-dialog{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}#video-preview-body{padding:12px;gap:10px}#video-preview-dialog>.panel-title{padding:12px 16px}}

.startup-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:var(--bg)}.startup-card{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;max-width:360px}.startup-card .mark{width:44px;height:44px;font-size:23px}.startup-card h2{font-size:16px;font-weight:550;margin:0}.startup-card p{margin:0;font-size:12px;color:#8d9e94;line-height:1.8}.startup-spinner{width:20px;height:20px;border:2px solid #dfece4;border-top-color:var(--teal);border-radius:50%;animation:spin .8s linear infinite;margin:6px 0}.startup-card button{margin-top:8px;font-size:12px}@media(prefers-reduced-motion:reduce){.startup-spinner{animation:none}}

.diagnosis-card{margin:20px 0;padding:18px;border:1px solid #d6e7e1;border-radius:10px;background:#f5faf8}.diagnosis-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.diagnosis-card p{line-height:1.8;overflow-wrap:anywhere}.diagnosis-card small{color:#70877c;line-height:1.7}.key-overview-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.key-overview-summary>div{display:flex;flex-direction:column;gap:8px}.key-overview-summary strong{font-size:23px}.key-overview-summary small{color:#70877c}#key-overview-items{overflow-x:auto}#key-overview-items table{min-width:620px}#key-overview-items>small{display:block;margin-top:12px}@media(max-width:800px){.key-overview-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.title-expand{border:0;background:transparent;text-align:left;padding:0;min-height:0;width:100%;cursor:pointer;white-space:normal;color:inherit;font:inherit}.title-expand.expanded{display:block;-webkit-line-clamp:unset;overflow:visible;max-height:none}.audit-row{padding:16px 0;border-bottom:1px solid #e2eae6}.audit-row header{display:flex;justify-content:space-between;gap:12px}.audit-row ul{padding-left:20px;line-height:1.9;overflow-wrap:anywhere}



/* Preview: bounded stage and an in-panel quality menu, including narrow screens. */
#video-preview-dialog .preview-stage{position:relative;background:#101719;border-radius:12px}
#video-preview-dialog video{display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;background:#101719;margin:0;border-radius:0}
.preview-stage.is-loading::after{content:'正在准备视频…';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:12px 18px;border-radius:24px;background:#17282ee8;color:#e7f0ec;font-size:13px;pointer-events:none}
.preview-quality-picker{position:relative;min-width:210px;color:var(--text);font-size:13px}
.preview-quality-picker>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;font-weight:550}
.preview-quality-picker>summary::-webkit-details-marker{display:none}
.preview-quality-picker>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid #71857d;border-bottom:1.5px solid #71857d;transform:rotate(45deg);margin-top:-4px}
.preview-quality-picker[open]>summary{border-color:var(--teal);box-shadow:0 0 0 3px #167a6910}
.preview-quality-menu{position:absolute;bottom:calc(100% + 8px);left:0;width:300px;max-width:calc(100vw - 70px);max-height:260px;overflow-y:auto;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #10221b26;z-index:5}
.preview-quality-option{width:100%;border:0;background:transparent;display:flex;align-items:flex-start;flex-direction:column;gap:4px;padding:11px 12px;text-align:left;border-radius:7px;min-height:58px}
.preview-quality-option strong{font-size:13px;font-weight:550}.preview-quality-option small{font-size:11px;color:var(--muted)}
.preview-quality-option.selected{background:#e9f5ef;color:var(--teal)}.preview-quality-option.selected strong::after{content:' ✓'}
.preview-toolbar .preview-route-info{margin-left:auto;font-size:11px;background:#f1f6f3;border-radius:6px;padding:6px 9px}
.preview-retry{font-size:12px;padding:7px 12px;min-height:34px}.preview-toolbar label{flex-shrink:0;color:var(--muted)}
@media(max-width:600px){.preview-quality-picker{min-width:190px}.preview-toolbar{gap:8px}.preview-toolbar .preview-route-info{display:none}.preview-retry{margin-left:auto}}

/* Accessible local player controls, scoped away from admin forms. */
#video-preview-dialog .custom-player{display:flex;flex-direction:column;gap:0;isolation:isolate;border:1px solid #243332;box-shadow:0 6px 24px #10221b12}
.custom-player .player-viewport{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}
#video-preview-dialog .custom-player video{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
#video-preview-dialog .custom-player.is-loading::after{content:none}
.custom-player .player-controls{flex:none;width:100%;padding:14px 18px 12px;background:#172321;color:#f1f8f5;border-top:1px solid #ffffff0d}
.custom-player .player-control-row{display:flex;align-items:center;gap:12px;margin-top:8px;min-height:34px}
.custom-player .player-icon-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;min-height:34px;border:0;border-radius:8px;background:transparent;padding:7px;color:#eff8f4;cursor:pointer}
.custom-player .player-icon-button:hover{background:#ffffff16;color:#fff}
.custom-player .player-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.custom-player .player-center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:62px;height:62px;border-radius:50%;background:#143a31c9;backdrop-filter:blur(6px);border:1px solid #ffffff4d;box-shadow:0 6px 28px #0003;padding:17px}
.custom-player .player-center-play:hover{background:#167a69e6}.custom-player .player-center-play svg{width:29px;height:29px}
.custom-player .player-time{font:12px/1.4 Consolas,monospace;white-space:nowrap;min-width:104px;font-variant-numeric:tabular-nums}
.custom-player input[type=range]{appearance:none;display:block;border:0;padding:0;min-height:16px;height:16px;border-radius:0;box-shadow:none;background:transparent;cursor:pointer;margin:0;accent-color:#70cbb0}
.custom-player .player-seek{width:100%;--played:0%}
.custom-player input[type=range]::-webkit-slider-runnable-track{height:4px;background:#43544f;border-radius:8px}
.custom-player .player-seek::-webkit-slider-runnable-track{background:linear-gradient(to right,#70cbb0 var(--played),#43544f var(--played))}
.custom-player input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#d6f5e9;margin-top:-4px;border:0;box-shadow:0 0 0 3px #70cbb01f}
.custom-player input[type=range]::-moz-range-track{height:4px;background:#43544f;border-radius:8px}.custom-player input[type=range]::-moz-range-progress{background:#70cbb0;height:4px}.custom-player input[type=range]::-moz-range-thumb{width:12px;height:12px;background:#d6f5e9;border:0;border-radius:50%}
.custom-player input:disabled{opacity:.35;cursor:wait}
.custom-player .player-volume{width:68px;flex:none}
.custom-player .player-speed{margin-left:auto;min-height:32px;height:32px;width:100px;padding:5px 24px 5px 9px;background-color:#243832;border:1px solid #3d5149;color:#ecf5f0;border-radius:7px;font-size:11px;background-position:right 5px center}
.custom-player .player-speed option{background:#243832;color:#fff}
.custom-player .player-message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;max-width:90%;width:max-content;border:1px solid #ffffff20;background:#172b25ed;padding:13px 18px;color:#edf6f1;border-radius:12px;box-shadow:0 8px 28px #0002;font-size:12px;line-height:1.7;pointer-events:none}
.custom-player .player-spinner{width:17px;height:17px;flex:none;border:2px solid #ffffff30;border-top-color:#7bd4b7;border-radius:50%;animation:spin .8s linear infinite}
.custom-player:focus-visible{outline:3px solid #8fcdbb;outline-offset:3px}
.custom-player:fullscreen{width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important;background:#090e0d!important}
#video-preview-dialog .preview-toolbar{padding-top:2px}.preview-hint{font-size:11px}
@media(max-width:600px){.custom-player .player-controls{padding:10px 10px 9px}.custom-player .player-control-row{gap:5px}.custom-player .player-time{font-size:11px;min-width:93px}.custom-player .player-volume{display:none}.custom-player .player-speed{width:83px;font-size:10px}.custom-player .player-icon-button{width:30px;height:32px;padding:6px}.custom-player .player-center-play{width:58px;height:58px;padding:15px}.custom-player .player-message{padding:11px 13px}}
@media(prefers-reduced-motion:reduce){.custom-player .player-spinner{animation:none}}

@media(max-width:600px){.custom-player input.player-volume[type=range]{display:none}.custom-player .player-pip{display:none}}
@media(max-width:420px){.custom-player .player-control-row{gap:4px}.custom-player .player-time{font-size:10px;min-width:86px}.custom-player .player-speed{width:70px;min-width:0;padding-left:6px}.custom-player .player-icon-button{width:28px;padding:5px}}

.preview-help{display:flex;align-items:center;gap:14px;flex-wrap:wrap;flex-shrink:0;border-top:1px solid var(--line);padding-top:10px}.preview-help button{font-size:12px;min-height:32px}.preview-original{color:var(--teal);font-size:12px;text-decoration:none}.preview-original:hover{text-decoration:underline}

.custom-player select.player-speed{min-width:0}

/* Resolution presets hide encoding/CDN duplication; maximum four compact rows. */
#video-preview-dialog .preview-quality-picker{min-width:165px}
#video-preview-dialog .preview-quality-menu{width:228px;max-height:none;padding:7px;border-radius:11px;overflow:visible}
#video-preview-dialog .preview-quality-option{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 12px}
#video-preview-dialog .preview-quality-option strong{font-size:12px}
#video-preview-dialog .preview-quality-meta{font-size:11px;color:#87958e}
#video-preview-dialog .preview-quality-option.selected .preview-quality-meta{color:var(--teal)}
.preview-quality-heading{padding:5px 12px 8px;font-size:10px;color:#8b9992}
.preview-quality-note{border-top:1px solid var(--line);margin:6px 5px 0;padding:10px 6px 3px;font-size:10px;line-height:1.4;color:#8b9992;white-space:normal}
.preview-quality-picker.single-choice>summary{cursor:default}.preview-quality-picker.single-choice>summary::after{display:none}

.preview-quality-field{display:flex;align-items:center;gap:12px;flex-shrink:0;font-size:13px;color:var(--muted)}
#video-preview-dialog .preview-quality-option:not(.selected){background:transparent}
#video-preview-dialog .preview-quality-option:not(.selected):hover{background:#f2f7f4}
#video-preview-dialog .preview-quality-option.selected:hover{background:#e9f5ef}
