:root{color:#172026;background:#eef2f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}button:active{transform:translateY(1px)}.boot-fallback{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.boot-fallback aside{background:#111827;color:#f8fafc;padding:28px 20px}.boot-fallback section{padding:24px}.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#111827;border-right:1px solid #233044;color:#f8fafc;display:flex;flex-direction:column;gap:28px;padding:22px 16px;position:sticky;top:0;height:100vh}.sidebar h1{font-size:20px;font-weight:750;margin:0 0 5px}.sidebar p,.eyebrow{margin:0;color:#94a3b8;font-size:12px}nav{display:grid;gap:5px}nav button,.panel-head button{border:0;border-radius:7px;cursor:pointer}nav button{align-items:center;background:transparent;color:#cbd5e1;display:flex;gap:10px;min-height:40px;padding:10px 11px;text-align:left}nav button span{align-items:center;background:#1f2937;border:1px solid #334155;border-radius:6px;display:inline-flex;height:24px;justify-content:center;width:24px}nav button.active,nav button:hover{background:#243244;color:#fff}nav button.active span{background:#0f766e;border-color:#14b8a6}.content{min-width:0;padding:22px 24px 32px}.topbar{align-items:center;background:#fff;border:1px solid #d7dee8;border-radius:8px;box-shadow:0 8px 20px #0f172a0d;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,auto) minmax(260px,340px);gap:18px;margin-bottom:18px;padding:14px 16px}.status{color:#0f766e;font-size:13px;margin:7px 0 0}code{background:#f1f5f9;border:1px solid #d8e0ea;border-radius:6px;color:#1e293b;display:inline-block;max-width:100%;overflow-wrap:anywhere;padding:3px 7px}.keybox{align-items:flex-end;display:flex;flex-direction:column;gap:6px;min-width:0}.keybox span{color:#64748b;font-size:12px}.management-key{min-width:0}.grid{display:grid;gap:14px}.overview{grid-template-columns:repeat(4,minmax(0,1fr))}.metric,.panel,pre{background:#fff;border:1px solid #d7dee8;border-radius:8px;box-shadow:0 8px 20px #0f172a0a}.metric{min-height:112px;padding:18px;position:relative}.metric:before{background:#0f766e;border-radius:999px;content:"";height:6px;position:absolute;right:18px;top:18px;width:34px}.metric:nth-child(2):before{background:#2563eb}.metric:nth-child(3):before{background:#7c3aed}.metric:nth-child(4):before{background:#ca8a04}.metric span{color:#64748b;display:block;font-size:12px;font-weight:650;margin-bottom:10px;text-transform:uppercase}.metric strong{color:#0f172a;font-size:34px;font-weight:780}.panel{overflow:hidden}.panel-head{align-items:center;background:#fbfcfe;border-bottom:1px solid #e3e8ef;display:flex;gap:12px;justify-content:space-between;padding:15px 16px}h2{color:#0f172a;font-size:17px;font-weight:750;margin:0}.panel-head button{background:#0f766e;color:#fff;min-height:36px;padding:8px 12px}.panel-head button:hover,.oauth-card button:hover,.import-form button:hover,.file-import button:hover{background:#115e59}.panel-head button:disabled,.oauth-card button:disabled,.import-form button:disabled{background:#94a3b8;cursor:not-allowed;transform:none}.actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.group-editor{border-bottom:1px solid #e3e8ef;display:grid;gap:12px;grid-template-columns:repeat(4,minmax(160px,1fr));padding:16px}.model-picker{border:1px solid #e3e8ef;border-radius:8px;display:grid;gap:10px;grid-column:1 / -1;padding:12px}.model-picker-head{align-items:center;display:flex;gap:10px;justify-content:space-between}.model-options{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));max-height:320px;overflow:auto}.source-model-groups{display:grid;gap:12px}.source-model-group{border:1px solid #e3e8ef;border-radius:8px;display:grid;gap:8px;padding:10px}.source-model-head{align-items:center;display:flex;justify-content:space-between}.model-option{align-items:flex-start;background:#f8fafc;border:1px solid #e3e8ef;border-radius:7px;display:grid;gap:8px;grid-template-columns:auto minmax(0,1fr);padding:9px}.model-option code{display:block;overflow-wrap:anywhere}.model-option small{color:#64748b;display:block;font-size:12px;margin-top:3px}.segmented{background:#eef2f7;border:1px solid #d7dee8;border-radius:7px;display:inline-flex;gap:2px;padding:2px}.segmented button{background:transparent;border:0;border-radius:5px;color:#64748b;min-height:30px;padding:5px 10px}.segmented button.active{background:#111827;color:#fff}.sources-workbench{display:grid;gap:14px;grid-template-columns:218px minmax(430px,1fr) minmax(320px,380px)}.source-list{align-content:start;display:grid;gap:8px}.source-list button{background:#fff;border:1px solid #d7dee8;border-radius:8px;color:#172026;cursor:pointer;display:grid;gap:5px;min-height:70px;padding:13px;text-align:left}.source-list button:hover,.group:hover,.account-row:hover{border-color:#94a3b8}.source-list button.selected{background:#f0fdfa;border-color:#0f766e;box-shadow:inset 3px 0 #0f766e}.source-list span,.panel-head p,.account-row span,.account-row small,.empty-state span{color:#64748b;font-size:13px}.account-row small{font-size:12px}.account-row .runtime-detail{color:#b45309;line-height:1.35;max-width:100%;overflow-wrap:anywhere}.quota-visual{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-top:6px;max-width:760px}.quota-meter{background:#f8fafc;border:1px solid #dbe4ee;border-radius:8px;display:grid;gap:7px;min-width:0;padding:9px 10px}.quota-meter-head{align-items:center;display:flex;gap:10px;justify-content:space-between;min-width:0}.quota-meter-head span{color:#475569;font-size:12px;font-weight:750;text-transform:uppercase}.quota-meter-head strong{color:#0f172a;font-size:13px;font-weight:780;white-space:nowrap}.quota-track{background:#e2e8f0;border-radius:999px;height:8px;overflow:hidden}.quota-track span{background:linear-gradient(90deg,#0f766e,#2563eb);border-radius:inherit;display:block;height:100%;min-width:4px}.quota-meter small{color:#64748b;font-size:11px;line-height:1.25}.flex-meter{border-style:dashed}.flex-meter.muted{background:#f8fafc}.flex-meter.muted .quota-meter-head strong{color:#64748b}.source-main,.import-panel{min-width:0}.source-summary{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 16px 6px}.source-summary article{background:#f8fafc;border:1px solid #e3e8ef;border-radius:8px;display:grid;gap:5px;padding:11px}.source-summary span{color:#64748b;font-size:12px}.source-summary strong{color:#0f172a;font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.api-key-form{display:grid;gap:12px;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) minmax(220px,1fr);padding:16px}.created-key{align-items:center;background:#f0fdfa;border-bottom:1px solid #ccfbf1;border-top:1px solid #ccfbf1;display:flex;gap:12px;padding:12px 16px}.created-key span{color:#0f766e;font-size:12px;font-weight:750;text-transform:uppercase}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid #e8edf3;padding:12px 16px;text-align:left;vertical-align:top}th{background:#f8fafc;color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase}.pill{border-radius:999px;display:inline-block;font-size:12px;font-weight:700;padding:4px 8px}.model-status{border:1px solid #cbd5e1;border-radius:999px;color:#475569;display:inline-flex;font-size:12px;font-weight:700;min-width:82px;justify-content:center;padding:4px 8px}.model-status.available{background:#dcfce7;border-color:#86efac;color:#166534}.model-status.unavailable{background:#fee2e2;border-color:#fecaca;color:#991b1b}.model-status.unknown{background:#f1f5f9}.good{background:#dcfce7;color:#166534}.warn{background:#fef3c7;color:#92400e}.muted{background:#eef2f7;color:#64748b}.group-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));padding:16px}.group{background:#fff;border:1px solid #d7dee8;border-radius:8px;cursor:pointer;display:grid;gap:14px;padding:14px}.group.selected{background:#f0f7ff;border-color:#2563eb}.policy-editor{border-top:1px solid #e3e8ef;display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr)) auto;padding:16px}.policy-editor>div{grid-column:1 / -1}.policy-editor h3{color:#0f172a;font-size:15px;margin:0 0 4px}.policy-editor p{color:#64748b;font-size:13px;margin:0}.policy-editor button{align-self:end;background:#0f766e;border:0;border-radius:7px;color:#fff;cursor:pointer;min-height:38px;padding:9px 12px}label{color:#475569;display:grid;gap:6px;font-size:13px;font-weight:620}input,select,textarea{background:#fff;border:1px solid #cbd5e1;border-radius:7px;color:#0f172a;min-width:0;outline:none;padding:9px 10px}input:focus,select:focus,textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px #14b8a629}.account-list{display:grid;gap:9px;padding:14px 16px 16px}.account-row,.empty-state{align-items:center;background:#fff;border:1px solid #e3e8ef;border-radius:8px;display:grid;gap:12px;grid-template-columns:minmax(0,1fr) auto auto;min-height:64px;padding:12px}.account-row div:first-child,.empty-state{display:grid;gap:4px}.empty-state{background:#f8fafc;grid-template-columns:1fr}.row-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.oauth-card,.file-import,.import-form{display:grid;gap:12px;padding:16px}.file-import{background:#fbfcfe;border-bottom:1px solid #e3e8ef;grid-template-columns:auto minmax(0,1fr);align-items:center}.field-chips{display:flex;flex-wrap:wrap;gap:7px;padding:12px 16px 0}.field-chips span{background:#eef2f7;border:1px solid #dbe3ec;border-radius:999px;color:#334155;font-size:12px;padding:5px 8px}.mode-warning{background:#fff7ed;border-bottom:1px solid #fed7aa;color:#9a3412;font-size:13px;line-height:1.45;padding:12px 16px}.file-import button{background:#111827;border:0;border-radius:7px;color:#fff;cursor:pointer;min-height:36px;padding:9px 12px}.file-import span{color:#64748b;font-size:13px;overflow-wrap:anywhere}.hidden-file{display:none}.oauth-card{background:#f8fafc;border-bottom:1px solid #e3e8ef}.oauth-card details,.import-form details{border-top:1px solid #e3e8ef;padding-top:12px}.oauth-card summary,.import-form summary{color:#475569;cursor:pointer;font-size:13px;font-weight:700}.oauth-card details label,.import-form details label{margin-top:10px}.oauth-card button,.import-form button,.small{background:#0f766e;border:0;border-radius:7px;color:#fff;cursor:pointer;min-height:34px;padding:8px 10px}.oauth-card button:disabled,.import-form button:disabled{background:#94a3b8;cursor:not-allowed}.small{font-size:12px;min-height:28px;padding:5px 8px}.small.secondary{background:#eef2f7;color:#334155}.small.secondary:hover{background:#e2e8f0}.small.danger{background:#fee2e2;color:#991b1b}.small.danger:hover{background:#fecaca}.console{display:grid;gap:14px;grid-template-columns:minmax(360px,430px) minmax(0,1fr)}.console .panel{display:grid;gap:14px;padding-bottom:16px}.console label{padding:0 16px}.console-output{display:grid;gap:14px}.image-options{display:grid;gap:12px;grid-template-columns:1fr 1fr;padding:0 16px}.image-options label{padding:0}.image-preview{display:grid;gap:10px;padding:0 16px}.image-preview img,.generated-grid img{background:#fff;border:1px solid #d7dee8;border-radius:8px;max-height:360px;object-fit:contain;width:100%}.generated-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}textarea{min-height:160px;resize:vertical}pre{color:#dbeafe;background:#0f172a;border-color:#1e293b;margin:0;min-height:320px;overflow:auto;padding:16px;white-space:pre-wrap}.events{list-style:none;margin:0;padding:0}.events li{border-bottom:1px solid #e8edf3;padding:13px 16px}.events li:nth-child(2n){background:#fbfcfe}.events span{color:#64748b;display:inline-block;min-width:92px}.ops-grid{display:grid;gap:14px}.health-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));padding:16px}.health-grid article{background:#f8fafc;border:1px solid #e3e8ef;border-radius:8px;display:grid;gap:5px;padding:12px}.health-grid span,.health-grid small{color:#64748b;font-size:12px}.health-grid strong{color:#0f172a;font-size:24px}@media(max-width:1180px){.sources-workbench,.console{grid-template-columns:1fr}.source-list{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}@media(max-width:900px){.shell,.boot-fallback{grid-template-columns:1fr}.sidebar{height:auto;position:static}nav{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.topbar{grid-template-columns:1fr}.keybox{align-items:flex-start}.overview{grid-template-columns:repeat(2,minmax(0,1fr))}.policy-editor{grid-template-columns:1fr}.group-editor{grid-template-columns:1fr 1fr}}@media(max-width:560px){.overview,.source-summary,.image-options{grid-template-columns:1fr}.content{padding:14px}.account-row,.file-import,.group-editor,.model-options{grid-template-columns:1fr}}
