:root{--bg: #f4f7f3;--surface: #ffffff;--surface-2: #eef3ef;--border: #d8dfd8;--text: #202420;--muted: #697168;--teal: #0f766e;--teal-soft: #d9efea;--amber: #b45309;--amber-soft: #f5e5c8;--rose: #be123c;--rose-soft: #f6d8df;--steel: #55606a;--steel-soft: #e2e7e9;--violet: #6d28d9;--violet-soft: #ede9fe;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:linear-gradient(180deg,#ffffffeb,#f4f7f3eb),repeating-linear-gradient(90deg,rgba(15,118,110,.06) 0,rgba(15,118,110,.06) 1px,transparent 1px,transparent 88px)}button,input{font:inherit}.app-shell{width:min(1480px,calc(100vw - 32px));margin:0 auto;padding:28px 0 18px}.topbar,.toolbar,.topbar-actions,.metric-card,.account-row,.detail-title,.limit-line,.footer-line{display:flex;align-items:center}.topbar{justify-content:space-between;gap:18px;margin-bottom:20px}.eyebrow{margin:0 0 4px;color:var(--teal);font-size:12px;font-weight:800;text-transform:uppercase}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,4vw,44px);line-height:1;letter-spacing:0}.topbar-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end}.status-badge,.pill{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;height:34px;padding:0 11px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--teal);font-size:13px;font-weight:700}.status-badge.danger{color:var(--rose);border-color:#eeb7c3;background:var(--rose-soft)}.refresh-cluster{display:inline-flex;align-items:center;gap:8px}.refresh-button{display:inline-flex;align-items:center;gap:7px;height:34px;white-space:nowrap;border-radius:8px;font-size:13px;font-weight:800}.refresh-button{padding:0 13px;border:1px solid #9fcfc8;background:var(--teal);color:#fff;cursor:pointer}.refresh-button:hover{background:#0d6962}.refresh-button:disabled{cursor:default;opacity:.72}.icon-button{width:38px;height:38px;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer}.icon-button:hover{border-color:#9fb2a9}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.metric-card{min-height:86px;gap:12px;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.metric-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:var(--surface-2)}.metric-card span{display:block;color:var(--muted);font-size:13px}.metric-card strong{display:block;margin-top:2px;font-size:28px}.metric-card.green .metric-icon{color:var(--teal);background:var(--teal-soft)}.metric-card.amber .metric-icon{color:var(--amber);background:var(--amber-soft)}.metric-card.rose .metric-icon{color:var(--rose);background:var(--rose-soft)}.metric-card.steel .metric-icon{color:var(--steel);background:var(--steel-soft)}.metric-card.violet .metric-icon{color:var(--violet);background:var(--violet-soft)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.main-panel,.detail-panel{border:1px solid var(--border);border-radius:8px;background:#fffffff0}.main-panel{min-width:0}.toolbar{justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid var(--border)}.search-box{display:flex;align-items:center;min-width:260px;width:min(460px,100%);gap:8px;height:40px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--muted)}.search-box input{width:100%;min-width:0;border:0;outline:none;background:transparent;color:var(--text)}.segmented{display:inline-flex;padding:3px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2)}.segmented button{min-width:68px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;font-weight:700}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px #222a241f}.table-shell{overflow:hidden}.table-head,.account-row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(150px,.8fr) minmax(150px,.8fr) 90px;gap:14px;align-items:center}.table-head{padding:12px 16px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;border-bottom:1px solid var(--border)}.account-row{width:100%;min-height:74px;padding:12px 16px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:left;cursor:pointer}.account-row:hover,.account-row.selected{background:#f8faf7}.account-row.archived{color:var(--muted)}.account-row.archived .identity strong{text-decoration:line-through;text-decoration-thickness:1px}.identity{min-width:0}.identity strong,.identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.identity strong{font-size:15px}.identity small,.usage-cell small,.muted{color:var(--muted);font-size:12px}.usage-cell{display:grid;gap:7px;min-width:0}.usage-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}.progress{display:block;width:100%;height:9px;overflow:hidden;border-radius:999px;background:#e6ebe6}.progress i{display:block;height:100%;border-radius:inherit}.progress.ok i{background:var(--teal)}.progress.warn i{background:var(--amber)}.progress.danger i{background:var(--rose)}.reset-text{color:var(--muted);font-size:13px;white-space:nowrap}.usage-reset{white-space:nowrap;text-align:right}.pill{justify-content:center;width:72px;height:28px;padding:0;font-size:12px}.pill.live{color:var(--teal);background:var(--teal-soft);border-color:#add9d2}.pill.risk{color:var(--amber);background:var(--amber-soft);border-color:#e8ca91}.pill.weekly,.pill.blocked{color:var(--rose);background:var(--rose-soft);border-color:#edb7c3}.pill.priority{color:var(--teal);background:var(--teal-soft);border-color:#9fcfc8}.pill.stale{color:var(--rose);background:var(--rose-soft);border-color:#edb7c3}.pill.archived{color:var(--violet);background:var(--violet-soft);border-color:#d8c9fb}.detail-panel{position:sticky;top:16px;min-height:260px}.detail-content{padding:14px}.detail-title{justify-content:space-between;gap:12px;margin-bottom:14px}.detail-actions{display:grid;justify-items:end;gap:8px}.detail-title p{color:var(--teal);font-size:12px;font-weight:800;text-transform:uppercase}.detail-title h2{margin-top:4px;font-size:22px;overflow-wrap:anywhere}.archive-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 10px;border:1px solid #d8c9fb;border-radius:8px;background:var(--violet-soft);color:var(--violet);cursor:pointer;font-size:12px;font-weight:800}.archive-button.restore{border-color:#9fcfc8;background:var(--teal-soft);color:var(--teal)}.archive-button:disabled{cursor:default;opacity:.62}.note-editor{padding:0 0 12px}.note-editor label{display:block;margin-bottom:8px;color:var(--muted);font-size:12px;font-weight:800}.note-row{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:8px}.note-row input{min-width:0;height:38px;padding:0 11px;border:1px solid var(--border);border-radius:8px;outline:none;background:var(--surface);color:var(--text)}.note-row input:focus{border-color:#7fbeb6;box-shadow:0 0 0 3px #0f766e1f}.note-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;border:1px solid #9fcfc8;border-radius:8px;background:var(--teal);color:#fff;cursor:pointer;font-size:13px;font-weight:800}.note-row button:hover{background:#0d6962}.note-row button:disabled{cursor:default;opacity:.62}.credential-editor{display:grid;gap:10px;padding:0 0 12px}.section-label{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:800}.credential-grid{display:grid;gap:10px}.credential-grid label{display:grid;gap:6px}.credential-grid span{color:var(--muted);font-size:12px;font-weight:700}.credential-grid input{min-width:0;height:38px;padding:0 11px;border:1px solid var(--border);border-radius:8px;outline:none;background:var(--surface);color:var(--text)}.credential-grid input:focus{border-color:#7fbeb6;box-shadow:0 0 0 3px #0f766e1f}.credential-actions{display:flex;justify-content:flex-end}.credential-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;padding:0 12px;border:1px solid #9fcfc8;border-radius:8px;background:var(--teal);color:#fff;cursor:pointer;font-size:13px;font-weight:800}.credential-actions button:hover{background:#0d6962}.credential-actions button:disabled{cursor:default;opacity:.62}.detail-section{padding:16px 0;border-top:1px solid var(--border)}.detail-section h3{margin-bottom:12px;font-size:13px;text-transform:uppercase;color:var(--muted)}.large-limit-value{display:flex;align-items:baseline;gap:8px;margin-bottom:12px}.large-limit-value strong{font-size:38px;line-height:1}.large-limit-value span{color:var(--muted);font-size:13px}.limit-meta{display:flex;justify-content:space-between;gap:10px;margin-top:10px;color:var(--muted);font-size:13px}.detail-section.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.info-pair{min-height:62px;padding:11px;border:1px solid var(--border);border-radius:8px;background:#fafcf9}.info-pair span,.info-pair strong{display:block}.info-pair span{color:var(--muted);font-size:12px}.info-pair strong{margin-top:4px;overflow-wrap:anywhere;font-size:14px}.limit-list{display:grid;gap:10px}.limit-line{justify-content:space-between;gap:14px;padding:11px;border:1px solid var(--border);border-radius:8px}.limit-line>span{min-width:110px;font-size:13px;font-weight:700;overflow-wrap:anywhere}.empty-state,.empty-detail{display:grid;place-items:center;gap:10px;min-height:240px;color:var(--muted)}.footer-line{justify-content:flex-end;height:38px;color:var(--muted);font-size:12px}@media (max-width: 1120px){.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace{grid-template-columns:1fr}.detail-panel{position:static;min-height:auto}}@media (max-width: 760px){.app-shell{width:min(100vw - 18px,1480px);padding-top:16px}.topbar,.toolbar{align-items:stretch;flex-direction:column}.topbar-actions,.refresh-cluster{align-items:stretch;justify-content:flex-start}.refresh-cluster{flex-wrap:wrap}.refresh-button{justify-content:center}.metric-grid{grid-template-columns:1fr 1fr}.table-head{display:none}.account-row{grid-template-columns:1fr;gap:10px;align-items:stretch}.detail-section.split{grid-template-columns:1fr}}
