*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;background:#0f1117;color:#e1e4e8;line-height:1.5}.container{max-width:1200px;margin:0 auto;padding:24px}.container.narrow{max-width:520px}.auth-page{padding-top:clamp(48px,10vh,96px)}.auth-page>h1{margin-bottom:16px}.auth-card{display:grid;gap:18px}.auth-actions{display:flex;justify-content:flex-end;padding-top:2px}.auth-actions button{min-width:104px;min-height:38px}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #21262d}nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}h1{font-size:20px;font-weight:600}nav button{background:transparent;border:1px solid #30363d;color:#8b949e;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:13px}nav button.active{background:#21262d;color:#e1e4e8;border-color:#8b949e}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.stack{display:flex;flex-direction:column;gap:16px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.model-refresh-toolbar{align-items:end}.event-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.event-toolbar h2{margin:0}.segmented-control{display:inline-flex;padding:2px;border:1px solid #30363d;border-radius:6px;background:#0d1117}.segmented-control button{min-height:30px;padding:4px 10px;border:0;border-radius:4px;background:transparent;color:#8b949e}.segmented-control button.active{background:#30363d;color:#f0f3f6}.quick-start-card{display:flex;flex-direction:column;gap:14px}.quick-start-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.quick-start-grid>div{display:grid;grid-template-rows:auto 40px;gap:8px;min-width:0}.quick-start-grid select,.quick-start-grid .quick-key-row,.quick-start-grid .readonly-value{height:40px;margin-top:0}.quick-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}.quick-key-row code{display:flex;min-width:0;height:40px;padding:7px 10px;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #30363d;border-radius:6px;background:#0d1117;color:#8b949e;font-size:14px}.quick-key-row button,.quick-start-grid .readonly-value{height:40px;font-size:14px}.quick-start-grid .readonly-value{display:flex;align-items:center}.header-picker{display:grid;gap:8px}.header-picker-row{display:grid;grid-template-columns:minmax(180px,220px) minmax(160px,1fr) auto;gap:8px;align-items:center}.header-picker-hint{grid-column:2 / -1;margin-top:-4px;font-size:12px}.header-picker-row input{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:start;margin:16px 0}.form-grid>input,.form-grid>select{height:38px;margin-top:0}.form-grid>button{height:38px;align-self:start}.field-label{display:grid;gap:6px;color:#8b949e;font-size:13px}.field-label>input,.field-label>select{min-width:0;height:38px;margin-top:0}.field-label.compact{min-width:150px}.field-hint{min-height:16px;color:#6e7681;font-size:12px}.pool-create-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:start}.pool-create-action{min-width:160px}.pool-create-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.client-create-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px}.client-create-form .field-label{min-width:0}.client-pool-field>button{justify-self:start;min-height:34px;margin-top:4px}.client-create-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px;padding-top:2px}.client-create-actions button{min-width:160px}.client-edit-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-top:14px;border-top:1px solid #21262d}.client-edit-form .field-label{min-width:0}.client-edit-enabled{min-height:38px;align-self:end}.client-edit-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.card{background:#161b22;border:1px solid #21262d;border-radius:8px;padding:16px}.card h3{font-size:13px;color:#8b949e;margin-bottom:8px}.stat{font-size:32px;font-weight:700}.sub{font-size:12px;color:#8b949e;margin-top:4px}table{width:100%;border-collapse:collapse;font-size:13px;margin-top:16px}.table-shell{max-width:100%;overflow-x:auto}.event-table-shell{border:1px solid #21262d;border-radius:6px}.events-table{min-width:880px;margin-top:0}.events-table th:first-child{width:36%}.events-table th:nth-child(2){width:34%}.events-table th:nth-child(3){width:12%}.events-table th:nth-child(4){width:18%}.event-primary,.event-target{display:flex;align-items:flex-start;flex-direction:column;gap:5px;min-width:0}.event-primary code,.event-target code{max-width:100%;overflow:hidden;color:#8b949e;text-overflow:ellipsis;white-space:nowrap}.event-target strong{font-weight:600;text-transform:capitalize}.empty-table-cell{padding:28px;color:#8b949e;text-align:center}.pool-table-shell{margin-top:16px;border:1px solid #21262d;border-radius:6px}.accounts-table-shell{margin-top:16px;overflow:visible;border:1px solid #21262d;border-radius:6px}.accounts-table{min-width:0;margin-top:0;table-layout:fixed}.account-col-name{width:11%}.account-col-state{width:22%}.account-col-source{width:8%}.account-col-login{width:12%}.account-col-risk{width:7%}.account-col-concurrency{width:6%}.account-col-pool{width:20%}.account-col-actions{width:14%}.accounts-table td:not(.account-actions-cell){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accounts-table .account-health-cell{white-space:normal;vertical-align:top}.accounts-table td.account-pool-cell{text-overflow:clip}.account-pool-cell .badge,.account-pool-cell .warning-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.account-health{display:grid;gap:3px;min-width:0}.account-health-header{display:flex;align-items:center;gap:8px;min-width:0}.account-health-header .badge{flex:0 0 auto}.account-health-header strong{min-width:0}.account-health strong,.account-health span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-health strong{color:#e1e4e8;font-size:12px}.account-health span{color:#8b949e;font-size:11px}.account-health .account-health-probes{color:#6e7681}.account-actions-cell{min-width:0;vertical-align:middle}.actions.account-row-actions{flex-wrap:nowrap;gap:6px;white-space:nowrap}.account-row-actions button{padding:5px 6px;font-size:12px}.account-action-menu{position:relative;flex:0 0 auto}.account-action-menu summary{width:30px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #30363d;border-radius:6px;background:#21262d;color:#e1e4e8;cursor:pointer;font-size:18px;line-height:1;list-style:none}.account-action-menu summary::-webkit-details-marker{display:none}.account-action-menu summary:hover,.account-action-menu[open] summary{background:#30363d}.account-action-popover{position:absolute;z-index:20;top:calc(100% + 5px);right:0;width:148px;display:grid;gap:4px;padding:6px;border:1px solid #484f58;border-radius:6px;background:#161b22;box-shadow:0 12px 28px #00000073}.account-action-popover button{width:100%;justify-content:flex-start;text-align:left}.account-action-popover .account-mobile-menu-action{display:none}.account-device-flow-row>td{padding:12px;background:#0d1117}.account-device-flow-row .device-flow-panel{margin-top:0}@media(max-width:1100px){.accounts-table .account-col-source,.accounts-table .account-source-cell{display:none}.account-col-name{width:12%}.account-col-state{width:26%}.account-col-login{width:14%}.account-col-risk{width:8%}.account-col-concurrency{width:7%}.account-col-pool{width:19%}.account-col-actions{width:14%}}@media(max-width:800px){.accounts-table .account-col-login,.accounts-table .account-col-risk,.accounts-table .account-login-cell,.accounts-table .account-risk-cell{display:none}.accounts-table th,.accounts-table td{padding-right:6px;padding-left:6px}.account-col-name{width:15%}.account-col-state{width:30%}.account-col-concurrency{width:9%}.account-col-pool{width:24%}.account-col-actions{width:22%}.account-health-header{gap:5px}.account-health-header .badge{padding-right:6px;padding-left:6px}.actions.account-row-actions{gap:4px}.account-row-actions button{padding-right:5px;padding-left:5px;font-size:11px}.account-action-menu summary{width:28px}}@media(max-width:360px){.account-row-actions .account-primary-action{display:none}.account-action-popover .account-mobile-menu-action{display:block}}.pool-table{min-width:1080px;margin-top:0;table-layout:fixed}.pool-col-name{width:14%}.pool-col-mode{width:11%}.pool-col-status{width:8%}.pool-col-strategy{width:13%}.pool-col-binding{width:20%}.pool-col-accounts{width:8%}.pool-col-actions{width:26%}th,td{padding:8px 12px;text-align:left;border-bottom:1px solid #21262d}th{color:#8b949e;font-weight:500;background:#161b22}.metrics-table{table-layout:auto}.metrics-table td:not(:first-child),.metrics-table th:not(:first-child){text-align:right;white-space:nowrap}.client-summary-row td{background:#161b22;font-weight:600}.metric-client-cell{display:flex;flex-direction:column;gap:2px}.metric-client-cell strong{font-size:13px;font-weight:600}.model-detail-row td{background:#0d1117;color:#c9d1d9}.model-detail-cell{padding-left:32px;color:#8b949e}.model-detail-cell span{display:inline-block;max-width:280px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.pool-detail-row>td{background:#0d1117;padding:12px}.pool-detail-table{width:100%;margin-top:0;table-layout:fixed}.pool-detail-col-account{width:12%}.pool-detail-col-login{width:14%}.pool-detail-col-status{width:9%}.pool-detail-col-risk{width:8%}.pool-detail-col-concurrency{width:12%}.pool-detail-col-weight{width:7%}.pool-detail-col-binding{width:21%}.pool-detail-col-actions{width:17%}.pool-detail-table th,.pool-detail-table td{overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.actions.pool-row-actions,.actions.pool-detail-actions{flex-wrap:nowrap}.actions.pool-row-actions{gap:6px;white-space:nowrap}.pool-row-actions button{flex:0 0 auto;padding:5px 6px;font-size:12px}.pool-detail-actions{min-width:0}.binding-cell{display:flex;flex-direction:column;gap:2px}.binding-cell strong{font-size:13px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.actions select,.actions input[type=number]{width:120px;margin-top:0}.inline-editor{flex-basis:100%;display:grid;gap:8px;margin-top:8px}.device-flow-panel{grid-template-columns:minmax(160px,1fr) auto auto;align-items:end}.code-pill{display:inline-flex;align-items:center;min-height:34px;margin-top:4px;padding:6px 10px;border:1px solid #30363d;border-radius:6px;background:#0d1117;color:#79c0ff;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:15px;letter-spacing:0}.link-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border:1px solid #30363d;border-radius:6px;background:#21262d;color:#e1e4e8;font-size:13px;font-weight:500;text-decoration:none}.link-button:hover{background:#30363d}.inline-check{display:inline-flex;align-items:center;gap:8px;color:#e1e4e8}.inline-check input[type=checkbox]{width:auto;margin-top:0}.model-catalog-table th:first-child,.model-catalog-table td:first-child{width:72px}.model-catalog-table{min-width:1180px}.model-row-id{color:#8b949e;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.token-limit-cell{min-width:84px;white-space:nowrap;font-variant-numeric:tabular-nums}.protocol-cell{min-width:190px}.protocol-primary{display:block;color:#e1e4e8;font-weight:600}.badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:500}.badge.active{background:#1f6f2b;color:#3fb950}.badge.degraded{background:#6e4a00;color:#d29922}.badge.quarantined{background:#6e1c00;color:#f85149}.badge.pending{background:#1c3a5e;color:#58a6ff}.badge.revoked{background:#21262d;color:#8b949e}input{width:100%;padding:8px 12px;margin-top:8px;background:#0d1117;border:1px solid #30363d;border-radius:6px;color:#e1e4e8;font-size:14px}input:disabled{color:#6e7681;background:#10151d;cursor:not-allowed}textarea{width:100%;padding:8px 12px;margin-top:8px;background:#0d1117;border:1px solid #30363d;border-radius:6px;color:#e1e4e8;font-size:14px;resize:vertical}label{font-size:13px;color:#8b949e}.settings-list{display:flex;flex-direction:column;gap:12px}.config-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.config-section{display:flex;flex-direction:column;gap:12px}.config-section-title{color:#e1e4e8;font-size:15px;font-weight:600;margin-top:4px}.advanced-toggle{align-self:flex-start;padding:8px 0}.config-card{display:flex;flex-direction:column;gap:12px}.config-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.config-card-header h3{margin-bottom:4px}.config-card-header p{color:#8b949e;font-size:13px}.config-badges{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}.secret-display{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}.secret-display code,.readonly-value{display:block;min-height:34px;padding:7px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #30363d;border-radius:6px;background:#0d1117}.config-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.route-list{display:flex;flex-direction:column;gap:8px}.client-access-summary{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:12px;align-items:end}.client-access-summary div{display:flex;flex-direction:column;gap:4px}.client-access-summary strong{min-height:34px;padding:7px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #30363d;border-radius:6px;background:#0d1117;font-size:13px;font-weight:500}.route-row{display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(120px,1fr) minmax(120px,1fr) auto;gap:8px;align-items:center}.route-row code{padding:6px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #30363d;border-radius:6px;background:#0d1117}.route-editor{grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) minmax(140px,1fr) minmax(140px,1fr) auto;align-items:end}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.setting-info{flex:1}.setting-info strong{font-size:14px;font-family:monospace}.setting-info p{color:#8b949e;font-size:13px;margin-top:4px}.setting-editor{width:min(520px,50vw);display:grid;gap:8px}.toggle{position:relative;display:inline-block;width:44px;height:24px;margin-left:16px}.toggle input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#30363d;border-radius:24px;transition:background .2s}.slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#e1e4e8;border-radius:50%;transition:transform .2s}.toggle input:checked+.slider{background:#238636}.toggle input:checked+.slider:before{transform:translate(20px)}button{background:#238636;border:1px solid #2ea043;color:#fff;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500;transition:background .2s}button:hover{background:#2ea043}button:active{background:#1f7e34}button.secondary{background:#21262d;border-color:#30363d;color:#e1e4e8}button.secondary:hover{background:#30363d}button.danger{background:#8b1e1e;border-color:#a32929}button.danger:hover{background:#a32929}select{width:100%;padding:8px 12px;margin-top:8px;background:#0d1117;border:1px solid #30363d;border-radius:6px;color:#e1e4e8;font-size:14px;cursor:pointer}select option{background:#161b22;color:#e1e4e8}input[type=number],input[type=password]{width:100%;padding:8px 12px;margin-top:8px;background:#0d1117;border:1px solid #30363d;border-radius:6px;color:#e1e4e8;font-size:14px}.form-grid>input,.form-grid>select,.field-label>input,.field-label>select{height:38px;margin-top:0}.pool-create-actions button,.client-create-actions button{height:38px}pre{background:#0d1117;border:1px solid #21262d;border-radius:6px;padding:12px;overflow-x:auto;font-size:12px;color:#79c0ff}code{font-family:Monaco,Menlo,monospace;color:#e1e4e8}.error-banner,.success-banner,.warning-banner,.error-text{background:#3d1f1f;border:1px solid #8b1e1e;color:#ffb4b4;border-radius:6px;padding:10px 12px;margin-bottom:16px;font-size:13px}.success-banner{background:#12331f;border-color:#238636;color:#9be9a8;margin-bottom:0}.warning-banner{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#3d2f10;border-color:#8a6a16;color:#ffd98a;margin:12px 0 0}.warning-text{color:#ffd98a;font-weight:600}.error-text{margin:12px 0 0}.client-form-error{grid-column:1 / -1;margin:0}@media(max-width:900px){.client-create-form,.client-edit-form{grid-template-columns:repeat(2,minmax(0,1fr))}}.account-picker-backdrop{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#010409b8}.account-picker-dialog{width:min(680px,100%);max-height:min(760px,calc(100vh - 48px));display:grid;grid-template-rows:auto auto auto auto minmax(220px,1fr) auto auto;overflow:hidden;border:1px solid #484f58;border-radius:8px;background:#161b22;box-shadow:0 24px 80px #0000008c}.account-picker-header,.account-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #30363d}.account-picker-header h2{font-size:16px}.account-picker-header p,.account-picker-footer>span{color:#8b949e;font-size:12px}.icon-button{width:32px;height:32px;padding:0;font-size:20px;line-height:1}.account-picker-search{width:auto;margin:12px 16px 8px}.account-picker-filters{display:flex;gap:6px;padding:0 16px 10px;overflow-x:auto}.account-picker-filters button{flex:0 0 auto}.account-picker-filters button.active{background:#1f6feb;border-color:#388bfd}.account-picker-select-all{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;min-height:42px;padding:9px 16px;border-block:1px solid #30363d;color:#c9d1d9}.account-picker-select-all input,.account-picker-row>input{width:16px;height:16px;margin:0}.account-picker-select-all strong{color:#8b949e;font-size:12px;font-weight:500}.account-picker-list{min-height:220px;overflow-y:auto}.account-picker-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;min-height:58px;padding:8px 16px;border-bottom:1px solid #21262d}.account-picker-row.disabled{background:#11161d}.account-picker-account{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:0;border:0;background:transparent;color:#e1e4e8;text-align:left}.account-picker-account:hover,.account-picker-account:active{background:transparent}.account-picker-account:disabled{color:#8b949e;cursor:default}.account-picker-account strong,.account-picker-account span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-picker-account span{color:#8b949e;font-size:12px}.account-picker-status,.account-picker-footer>div{display:flex;align-items:center;gap:8px}.account-picker-empty{padding:48px 16px;color:#8b949e;text-align:center}.account-picker-error{padding:10px 16px;border-top:1px solid #8b1e1e;background:#3d1f1f;color:#ffb4b4;font-size:13px}.account-picker-footer{border-top:1px solid #30363d;border-bottom:0}@media(max-width:760px){.container{padding-right:8px;padding-left:8px}header{align-items:flex-start;flex-direction:column}nav{justify-content:flex-start}table{display:block;overflow-x:auto}.accounts-table,.pool-table,.pool-detail-table{display:table;overflow:visible}.client-create-form,.client-edit-form{grid-template-columns:1fr}.client-create-actions,.pool-create-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.client-create-actions button,.pool-create-actions button{min-width:0;width:100%}.setting-row{align-items:stretch;flex-direction:column}.setting-editor{width:100%}.device-flow-panel,.secret-display,.route-row,.client-access-summary,.route-editor,.header-picker-row{grid-template-columns:1fr}.account-picker-backdrop{padding:0}.account-picker-dialog{width:100%;height:100%;max-height:none;border:0;border-radius:0}.account-picker-row{grid-template-columns:auto minmax(0,1fr)}.account-picker-status{grid-column:2;justify-content:flex-start}.account-picker-footer{align-items:stretch;flex-direction:column}.account-picker-footer>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.account-picker-footer>div button{min-height:44px}}
