: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(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}.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{display:grid;gap:12px;grid-template-columns:1.2fr 1.2fr .7fr}.group-detail{border-top:1px solid #e3e8ef;display:grid;gap:14px;padding:16px}.group-table{border-top:1px solid #e3e8ef}.group-table tbody tr{cursor:pointer}.group-table tbody tr.selected{background:#f0f7ff}.group-table th:last-child,.group-table td:last-child{text-align:right;width:96px}.model-manager{background:#fff;border:1px solid #d7dee8;border-radius:8px;display:grid;overflow:hidden}.model-toolbar{background:#f8fafc;border-bottom:1px solid #e3e8ef;display:grid;gap:12px;padding:12px}.model-filters{align-items:end;display:grid;gap:10px;grid-template-columns:minmax(130px,160px) minmax(130px,160px) minmax(220px,1fr) auto}.model-list-head{align-items:center;background:#fff;border-bottom:1px solid #e3e8ef;display:flex;justify-content:space-between;padding:11px 14px}.model-list-head strong{color:#0f172a;font-size:13px;font-weight:760;text-transform:uppercase}.model-list-head .inline-check{align-items:center;display:inline-flex;gap:8px}.model-list{display:grid;gap:0;max-height:360px;overflow:auto}.model-row{align-items:center;background:#fff;border:0;border-bottom:1px solid #e3e8ef;color:#0f172a;cursor:pointer;display:grid;gap:12px;grid-template-columns:18px minmax(220px,1fr) max-content max-content;min-height:46px;padding:9px 14px;text-align:left}.model-row:hover{background:#f6f9fc}.model-row.selected{background:#f0fdfa}.model-row code{overflow-wrap:anywhere}.model-list-head span{color:#64748b;font-size:12px}.model-meta{display:inline-flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;min-width:0}.model-meta small{background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;color:#3730a3;font-size:11px;font-weight:750;line-height:1.25;max-width:180px;overflow:hidden;padding:3px 8px;text-overflow:ellipsis;white-space:nowrap}.model-state{background:#f1f5f9;border:1px solid #dbe4ee;border-radius:999px;color:#475569;font-size:11px;font-weight:750;line-height:1.25;padding:3px 8px;text-align:right;text-transform:uppercase;white-space:nowrap}.model-state.added{background:#dcfce7;border-color:#86efac;color:#166534}.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:block}.group:hover{border-color:#94a3b8}.panel-head p,.empty-state span{color:#64748b;font-size:13px}.source-toolbar{align-items:end;background:#f8fafc;border-bottom:1px solid #e3e8ef;display:grid;gap:12px;grid-template-columns:minmax(160px,220px) minmax(150px,190px) minmax(260px,1fr);padding:14px 16px}.source-toolbar.compact{border:1px solid #e3e8ef;border-radius:8px;grid-template-columns:minmax(220px,1fr) auto auto;padding:12px}.models-toolbar{align-items:end;background:#f8fafc;border-bottom:1px solid #e3e8ef;display:grid;gap:12px;grid-template-columns:repeat(3,minmax(180px,1fr)) minmax(150px,180px);padding:14px 16px}.models-toolbar label{min-width:0}.models-toolbar select,.models-toolbar button{width:100%}.models-toolbar button{background:#0f766e;border:0;border-radius:7px;color:#fff;cursor:pointer;min-height:40px;padding:8px 12px;white-space:nowrap}.models-toolbar button:hover{background:#115e59}.models-toolbar button:disabled{background:#94a3b8;cursor:not-allowed;transform:none}.runtime-detail{color:#b45309;line-height:1.35;max-width:100%;overflow-wrap:anywhere}.quota-lines{align-content:center;display:grid;gap:7px;min-width:0}.quota-line{align-items:center;display:grid;gap:8px;grid-template-columns:48px minmax(80px,1fr) minmax(68px,auto)}.quota-line span{color:#475569;font-size:12px;font-weight:750;text-transform:uppercase}.quota-line strong{color:#0f172a;font-size:12px;font-weight:780;text-align:right;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-track.muted span{display:none}.source-main{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}.key-status{background:#f8fafc;border-bottom:1px solid #e3e8ef;color:#475569;font-size:13px;padding:10px 16px}.key-workbench{border-bottom:1px solid #e3e8ef;display:grid;gap:14px;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);padding:16px}.key-create{background:#f8fafc;border:1px solid #e3e8ef;border-radius:8px;display:grid;gap:12px;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(190px,1fr) auto;padding:14px}.key-create>div:first-child{grid-column:1 / -1}.key-create h3{color:#0f172a;font-size:15px;margin:0 0 4px}.key-create p{color:#64748b;font-size:13px;margin:0}.key-create-actions{align-self:end;display:flex;gap:8px;justify-content:flex-end}.key-create-actions button{background:#0f766e;border:0;border-radius:7px;color:#fff;cursor:pointer;min-height:40px;padding:8px 12px}.key-create-actions button.secondary{background:#eef2f7;color:#334155}.key-create-actions button.secondary:hover{background:#e2e8f0}.key-create-actions button,.key-created button{white-space:nowrap}.key-created{align-content:start;background:#f0fdfa;border:1px solid #99f6e4;border-radius:8px;display:grid;gap:10px;min-width:0;padding:14px}.key-created.empty{background:#f8fafc;border-color:#e3e8ef}.key-created span{color:#0f766e;font-size:12px;font-weight:750;text-transform:uppercase}.key-created.empty span{color:#64748b}.key-created code{overflow-wrap:anywhere}.key-toolbar{align-items:end;background:#fbfcfe;border-bottom:1px solid #e3e8ef;display:grid;gap:12px;grid-template-columns:minmax(260px,1fr) minmax(180px,220px) minmax(160px,200px) auto;padding:14px 16px}.key-demo-toggle{align-items:center;align-self:end;min-height:40px;white-space:nowrap}.key-table-wrap{overflow-x:auto}.key-table{min-width:760px}.key-table td{vertical-align:middle}.key-table td:first-child{min-width:180px}.key-table td:first-child strong{display:block}.modal-backdrop{align-items:center;background:#0f172a6b;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:40}.modal-panel{background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 24px 60px #0f172a3d;max-height:min(760px,calc(100vh - 48px));overflow:hidden;width:min(760px,100%)}.modal-body{display:grid;gap:12px;max-height:calc(100vh - 140px);overflow:auto;padding:16px}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{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-table-wrap{overflow-x:auto;padding:14px 16px 16px}.account-table{min-width:1180px;table-layout:fixed}.account-table th,.account-table td{vertical-align:middle}.account-col{width:260px}.source-col{width:120px}.status-col{width:96px}.quota-col{width:310px}.refresh-col{width:170px}.reason-col{width:220px}.actions-col{width:190px}.account-table td:first-child{align-content:center;display:grid;gap:6px;min-width:0}.account-table tbody tr{min-height:72px}.account-table td:nth-child(2),.account-table td:nth-child(3){white-space:nowrap}.source-pill{background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;color:#3730a3;display:inline-block;font-size:12px;font-weight:750;max-width:100%;overflow:hidden;padding:4px 8px;text-overflow:ellipsis;white-space:nowrap}.account-table td:nth-child(5){color:#475569;font-size:13px;white-space:nowrap}.account-table td:nth-child(6){overflow-wrap:anywhere}.account-table .row-actions{align-items:center;display:grid;gap:6px;grid-template-columns:repeat(2,minmax(72px,1fr));min-width:170px}.account-table .row-actions button{min-height:30px}.empty-state{background:#f8fafc;border:1px solid #e3e8ef;border-radius:8px;display:grid;gap:4px;margin-top:10px;padding:14px}.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){.console{grid-template-columns: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}.overview{grid-template-columns:repeat(2,minmax(0,1fr))}.policy-editor,.group-editor,.model-toolbar,.model-filters,.source-toolbar,.source-toolbar.compact,.models-toolbar,.key-workbench,.key-create,.key-toolbar{grid-template-columns:1fr}.key-create-actions{justify-content:stretch}.key-create-actions button{flex:1 1 auto}.model-row{grid-template-columns:18px minmax(0,1fr)}.model-meta,.model-state{grid-column:2}.model-meta{justify-content:flex-start}}@media(max-width:560px){.overview,.source-summary,.image-options{grid-template-columns:1fr}.content{padding:14px}.file-import,.group-editor,.model-toolbar,.model-row{grid-template-columns:1fr}}
