:root{color-scheme:light;--bg: #f6f7f9;--surface: #ffffff;--surface-subtle: #f9fafb;--surface-hover: #f2f4f7;--border: #e4e7ec;--border-strong: #8792a2;--border-hover: #7f8a9b;--text: #101828;--text-secondary: #475467;--text-muted: #5b6674;--text-faint: #6d7789;--accent: #2059d0;--accent-strong: #17489f;--accent-soft: #eef2fd;--focus: #1d4ed8;--danger: #b42318;--danger-soft: #fef3f2;--success: #067647;--success-soft: #ecfdf3;--warning: #b54708;--warning-soft: #fffaeb;--neutral-soft: #f2f4f7;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);--shadow-menu: 0 12px 28px rgba(16, 24, 40, .16);--shadow-dialog: 0 24px 56px rgba(16, 24, 40, .24);--control-h: 36px;--input-h: 38px;--topbar-h: 56px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans CJK SC,Source Han Sans SC,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}*{box-sizing:border-box}html{min-width:320px;background:var(--bg)}body{min-width:320px;min-height:100vh;margin:0;color:var(--text);background:var(--bg);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.55}p,li{text-wrap:pretty}h1,h2,h3{text-wrap:balance}h1,h2,h3,p{margin-block-start:0}.icon{display:block;flex:0 0 auto}:where(a,button,input,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:2px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}.skip-link{position:fixed;z-index:60;inset-block-start:8px;inset-inline-start:8px;padding:8px 12px;border-radius:var(--radius-sm);color:#fff;background:var(--text);transform:translateY(-200%);transition:transform .12s ease-out}.skip-link:focus{transform:none}.button{display:inline-flex;min-height:var(--control-h);align-items:center;justify-content:center;gap:6px;padding:0 14px;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;font-size:14px;font-weight:600;line-height:1;white-space:nowrap;transition:background-color .12s ease-out,border-color .12s ease-out,color .12s ease-out}.button.primary{color:#fff;background:var(--accent);box-shadow:var(--shadow-sm)}.button.primary:hover:not(:disabled){background:var(--accent-strong)}.button.secondary{border-color:var(--border-strong);color:var(--text-secondary);background:var(--surface);box-shadow:var(--shadow-sm)}.button.secondary:hover:not(:disabled){border-color:var(--border-hover);color:var(--text);background:var(--surface-hover)}.button.ghost{color:var(--text-secondary)}.button.ghost:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}.button.full{width:100%}.button.loading:before{width:13px;height:13px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;content:"";animation:button-spin .7s linear infinite}@keyframes button-spin{to{transform:rotate(360deg)}}.action{display:inline-flex;min-height:30px;align-items:center;gap:5px;padding:0 8px;border:0;border-radius:var(--radius-sm);color:var(--text-secondary);background:transparent;font-size:13px;font-weight:500;white-space:nowrap;transition:background-color .12s ease-out,color .12s ease-out}.action:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}.action.danger:hover:not(:disabled){color:var(--danger);background:var(--danger-soft)}.badge{display:inline-flex;align-items:center;gap:5px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.7;white-space:nowrap}.badge:before{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:currentColor;content:""}.badge.ok{color:var(--success);background:var(--success-soft)}.badge.error{color:var(--danger);background:var(--danger-soft)}.badge.warn{color:var(--warning);background:var(--warning-soft)}.badge.neutral{color:var(--text-secondary);background:var(--neutral-soft)}.form-notice{margin:0 0 16px;color:var(--success);font-size:13px;font-weight:500}.form-notice:empty{display:none}.form-notice.error-text,.error-text{color:var(--danger)}.field{display:grid;gap:6px;min-width:0}.field label,fieldset legend{color:var(--text);font-size:13px;font-weight:600}.field-hint{margin:0;color:var(--text-muted);font-size:12.5px;line-height:1.55}input:not([type=checkbox]):not([type=radio]){width:100%;min-height:var(--input-h);padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);color:var(--text);background:var(--surface);font-size:14px;transition:border-color .12s ease-out,background-color .12s ease-out}input::placeholder{color:var(--text-faint)}input:not([type=checkbox]):not([type=radio]):hover:not(:disabled){border-color:var(--border-hover)}input:not([type=checkbox]):not([type=radio]):focus-visible{border-color:var(--accent)}input:not([type=checkbox]):not([type=radio]):user-invalid,input:not([type=checkbox]):not([type=radio])[aria-invalid=true]{border-color:var(--danger);background:#fffbfa}fieldset{min-width:0;margin:0;padding:0;border:0}fieldset legend{margin-block-end:8px}.check-grid{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.check-card{display:flex;min-height:44px;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);cursor:pointer;transition:border-color .12s ease-out,background-color .12s ease-out}.check-card:hover{border-color:var(--border-hover);background:var(--surface-subtle)}.check-card:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.check-card:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.check-card input[type=checkbox]{display:grid;width:18px;height:18px;flex:0 0 auto;place-content:center;margin:0;border:1.5px solid var(--border-strong);border-radius:5px;background:var(--surface);cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:border-color .12s ease-out,background-color .12s ease-out}.check-card input[type=checkbox]:after{width:4px;height:8px;margin-block-start:-2px;border:solid #fff;border-width:0 2px 2px 0;content:"";transform:rotate(45deg) scale(0);transition:transform .12s ease-out}.check-card input[type=checkbox]:checked{border-color:var(--accent);background:var(--accent)}.check-card input[type=checkbox]:checked:after{transform:rotate(45deg) scale(1)}.check-card input[type=checkbox]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.check-card span{font-size:14px;font-weight:500}.radio-grid{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.radio-card{display:flex;min-height:52px;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);cursor:pointer;transition:border-color .12s ease-out,background-color .12s ease-out}.radio-card:hover{border-color:var(--border-hover);background:var(--surface-subtle)}.radio-card:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.radio-card:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.radio-card input[type=radio],.radio-option input[type=radio],.toggle-line input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:var(--accent);cursor:pointer}.radio-card-text{display:grid;min-width:0;gap:1px}.radio-card-text strong{font-size:14px;font-weight:500}.radio-card-text small{color:var(--text-muted);font-size:12.5px}.radio-inline{display:flex;flex-wrap:wrap;gap:4px 18px}.radio-option{display:inline-flex;min-height:32px;align-items:center;gap:8px;cursor:pointer;font-size:14px}.radio-option:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.toggle-line{display:flex;min-height:46px;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);cursor:pointer;font-size:14px;font-weight:500}.toggle-line:hover{border-color:var(--border-hover);background:var(--surface-subtle)}.toggle-line:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.toggle-line:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}.credential-block{display:grid;gap:14px;padding:12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-subtle)}.token-help{display:grid;gap:6px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}.token-help p{margin:0}.token-help a{color:var(--accent);font-size:13px;font-weight:600;text-decoration:none}.token-help a:hover{color:var(--accent-strong);text-decoration:underline}.token-steps{display:grid;gap:3px;margin:0;padding-inline-start:18px;color:var(--text-secondary);font-size:12.5px;line-height:1.5}@media(pointer:coarse){.radio-option{min-height:44px}}.login-shell{display:grid;min-height:100dvh;place-items:center;padding:24px}.login-card{width:min(100%,380px);padding:32px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm)}.login-card h1{margin:0 0 6px;font-size:22px;font-weight:600;letter-spacing:-.01em}.login-lead{margin:0;color:var(--text-muted);font-size:14px;line-height:1.6}.stack-form{display:grid;gap:16px;margin-block-start:24px}.brand{display:flex;min-width:0;align-items:center;gap:10px}.brand-login{margin-block-end:20px}.brand-mark{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;border-radius:var(--radius-md);color:#fff;background:var(--accent)}.brand-text{display:block;min-width:0}.brand-text strong{display:block;color:var(--text);font-size:14px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}.brand-text small{display:block;margin-block-start:1px;color:var(--text-muted);font-size:12px}.topbar{position:sticky;z-index:20;inset-block-start:0;display:flex;min-height:var(--topbar-h);align-items:center;justify-content:space-between;gap:16px;padding:0 clamp(16px,2.5vw,28px);border-block-end:1px solid var(--border);background:#fffffff0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.top-actions{display:flex;min-width:0;align-items:center;gap:8px}.env-pill{display:inline-flex;max-width:min(52vw,320px);min-height:26px;align-items:center;gap:6px;padding:0 10px;overflow:hidden;border:1px solid var(--border);border-radius:999px;color:var(--text-secondary);background:var(--surface-subtle);font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.env-pill:before{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--success);content:""}.env-pill.warning:before{background:var(--warning)}.app-layout{display:grid;align-items:start;grid-template-columns:208px minmax(0,1fr);min-height:calc(100vh - var(--topbar-h))}.sidebar{position:sticky;inset-block-start:var(--topbar-h);min-width:0;height:calc(100vh - var(--topbar-h));max-height:calc(100vh - var(--topbar-h));overflow-y:auto;padding:16px 12px;border-inline-end:1px solid var(--border);background:var(--surface)}.nav-list{display:grid;gap:2px;margin:0;padding:0;list-style:none}.nav-button{display:flex;width:100%;min-height:38px;align-items:center;gap:10px;padding:0 10px;border:0;border-radius:var(--radius-sm);color:var(--text-secondary);background:transparent;font-size:14px;font-weight:500;text-align:start;transition:background-color .12s ease-out,color .12s ease-out}.nav-button:hover{color:var(--text);background:var(--surface-hover)}.nav-button.active{color:var(--accent-strong);background:var(--accent-soft);font-weight:600}.main-content{width:100%;max-width:1080px;min-width:0;margin-inline:auto;padding:28px clamp(16px,2.5vw,32px) 64px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-block-end:20px}.page-heading h1{margin:0 0 4px;font-size:24px;font-weight:600;line-height:1.25;letter-spacing:-.02em}.page-description{margin:0;color:var(--text-muted);font-size:13.5px;line-height:1.55}.table-card{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.table-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-block-end:1px solid var(--border)}.toolbar-meta{margin:0;color:var(--text-muted);font-size:13px}.toolbar-meta strong{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}.table-toolbar .button{margin-inline-start:auto}.table-hint{margin:0;padding:0 16px 10px;color:var(--text-muted);font-size:12.5px;line-height:1.55}.table-wrap{width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}table{width:100%;min-width:40rem;border-collapse:collapse;font-size:14px}table.empty{min-width:0;table-layout:fixed}table.empty .col-actions,table.empty .col-number{width:auto}table.empty thead th{white-space:normal;padding-inline:8px}thead th{padding:10px 16px;border-block-end:1px solid var(--border);color:var(--text-muted);background:var(--surface-subtle);font-size:13px;font-weight:600;text-align:start;white-space:nowrap}tbody th,tbody td{padding:13px 16px;border-block-end:1px solid var(--border);text-align:start;vertical-align:middle}tbody tr:last-child>*{border-block-end:0}tbody tr:not(.empty-row):hover>*{background:var(--surface-hover)}.cell-strong{color:var(--text);font-weight:600;white-space:nowrap}.cell-muted{color:var(--text-muted)}.cell-error{display:block;margin-block-start:3px;font-size:12.5px;font-weight:500}th small{display:block;margin-block-start:3px;color:var(--text-muted);font-size:12.5px;font-weight:400}.col-number{text-align:end;font-variant-numeric:tabular-nums}.col-actions{width:1%;text-align:end;white-space:nowrap}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}.empty-row:hover>*{background:transparent}.empty-state{display:flex;flex-direction:column;align-items:center;gap:10px;padding:48px 20px;color:var(--text-muted);text-align:center}.empty-state .icon{color:var(--text-faint)}.empty-state p{margin:0;font-size:13.5px}dialog.modal{width:min(calc(100% - 32px),480px);max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);color:var(--text);background:var(--surface);box-shadow:var(--shadow-dialog)}dialog.modal[open]{display:flex;flex-direction:column}dialog.modal::backdrop{background:#10182873}.dialog-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-block-end:1px solid var(--border)}.dialog-header h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em}.dialog-close{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;padding:0;border:0;border-radius:var(--radius-sm);color:var(--text-muted);background:transparent}.dialog-close:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}.dialog-form{display:flex;min-height:0;flex:1 1 auto;flex-direction:column}.dialog-body{display:grid;min-height:0;flex:1 1 auto;gap:16px;padding:18px 20px;overflow-y:auto;overscroll-behavior:contain}.dialog-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-block-start:1px solid var(--border);background:var(--surface-subtle)}.combobox{position:relative}.combobox-input{padding-inline-end:36px}.combobox-toggle{position:absolute;inset-inline-end:10px;inset-block-start:50%;display:grid;place-items:center;color:var(--text-muted);pointer-events:none;transform:translateY(-50%)}.combobox-menu{position:fixed;z-index:60;margin:0;padding:4px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-menu);list-style:none}.combobox-option{display:grid;gap:2px;padding:8px 10px;border-radius:var(--radius-sm);cursor:pointer}.combobox-option.active{background:var(--accent-soft)}.combobox-option[aria-selected=true] .option-label{color:var(--accent-strong);font-weight:600}.option-line{display:flex;align-items:center;gap:8px}.option-label{min-width:0;overflow:hidden;font-size:14px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.option-line .badge{flex:0 0 auto}.option-check{display:grid;place-items:center;margin-inline-start:auto;color:var(--accent)}.option-detail{color:var(--text-muted);font-size:12.5px}.combobox-empty{padding:14px 10px;color:var(--text-muted);font-size:13px;text-align:center}@media(max-width:52rem){:root{--control-h: 40px;--input-h: 40px}input:not([type=checkbox]):not([type=radio]){font-size:16px}.topbar{align-items:center;gap:10px}.brand-text small{display:none}.env-pill{max-width:40vw}.app-layout{display:block;min-height:0}.sidebar{position:static;height:auto;max-height:none;overflow:visible;padding:8px 12px;border-inline-end:0;border-block-end:1px solid var(--border)}.nav-list{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin}.nav-button{width:auto;min-height:38px;white-space:nowrap}.main-content{padding-block-start:20px}.page-heading{align-items:center}.action{min-height:36px}.check-grid,.radio-grid{grid-template-columns:1fr}}@media(max-width:40rem){.page-heading h1{font-size:20px}.page-description{font-size:13px}.table-toolbar{padding:10px 12px}thead th,tbody th,tbody td{padding-inline:12px}dialog.modal{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.dialog-header,.dialog-body,.dialog-footer{padding-inline:16px}.toolbar-meta{font-size:12.5px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
