:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:#f6f7f9; color:#17191c; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:320px; letter-spacing:0; }
button,input,textarea,select { font:inherit; letter-spacing:0; }
button { min-height:36px; border:1px solid #17191c; border-radius:6px; padding:0 14px; background:#17191c; color:#fff; cursor:pointer; }
button:hover { background:#33373d; }
button:disabled { opacity:.55; cursor:not-allowed; }
button.secondary { background:#fff; color:#17191c; border-color:#cfd3d8; }
button.secondary:hover { background:#f0f2f4; }
button.danger { background:#fff; color:#b42318; border-color:#e5aaa5; }
button.danger:hover { background:#fff1f0; }
button.icon { width:36px; padding:0; font-size:22px; background:transparent; color:#333; border-color:transparent; }
label { display:grid; gap:7px; font-size:13px; color:#555b63; }
input,textarea,select { width:100%; border:1px solid #c9ced5; border-radius:6px; background:#fff; padding:10px 11px; color:#17191c; outline:none; }
input:focus,textarea:focus,select:focus { border-color:#1473e6; box-shadow:0 0 0 2px rgba(20,115,230,.13); }
.brand { margin:0; font-size:15px; font-weight:750; color:#17191c; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:#eef1f4; }
.login-panel { width:min(390px,100%); display:grid; gap:18px; padding:32px; background:#fff; border:1px solid #dfe2e6; border-radius:8px; }
.login-panel h1 { margin:0 0 4px; font-size:24px; }
.error { min-height:18px; margin:0; color:#c4382b; font-size:13px; }
.app-shell header { height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; background:#fff; border-bottom:1px solid #e1e4e8; }
.app-shell header>div { display:flex; align-items:center; gap:12px; }
.environment { color:#737982; font-size:13px; padding-left:12px; border-left:1px solid #d8dce1; }
.top-nav { display:flex; align-items:center; gap:4px; padding-left:8px; border-left:1px solid #d8dce1; }
.nav-tab { min-height:34px; padding:0 10px; border-color:transparent; background:transparent; color:#626871; }
.nav-tab:hover,.nav-tab.active { background:#eef1f4; color:#17191c; }
.header-actions { font-size:13px; color:#5a6068; }
main { max-width:1440px; margin:0 auto; padding:28px; }
.metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); background:#fff; border-block:1px solid #e1e4e8; }
.metrics div { min-height:104px; padding:20px 22px; display:grid; align-content:center; gap:7px; border-right:1px solid #e1e4e8; }
.metrics div:last-child { border-right:0; }
.metrics span { color:#6b717a; font-size:13px; }
.metrics strong { font-size:27px; font-weight:650; }
.toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:32px 0 16px; }
h2 { margin:0; font-size:18px; }
.toolbar p,.model-band p { margin:5px 0 0; color:#747a83; font-size:13px; }
.actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.table-wrap { overflow:auto; background:#fff; border:1px solid #dfe2e6; border-radius:6px; }
table { width:100%; min-width:920px; border-collapse:collapse; }
th,td { padding:13px 16px; text-align:left; border-bottom:1px solid #e7e9ec; font-size:13px; vertical-align:middle; }
th { background:#f7f8fa; color:#626871; font-weight:600; }
tbody tr:last-child td { border-bottom:0; }
.account-main { display:grid; gap:3px; }
.account-main small { color:#7b8189; }
.status { display:inline-flex; align-items:center; gap:7px; }
.status::before { content:""; width:8px; height:8px; border-radius:50%; background:#b8bdc4; }
.status.active::before { background:#268e55; }
.status.error::before { background:#c64235; }
.status.warning::before { background:#c48122; }
.status-stack { display:grid; gap:4px; min-width:220px; }
.status-stack small { color:#6f7680; font-size:11px; }
.status-stack small.binding-missing { color:#b13a2f; }
.row-actions { display:flex; gap:8px; }
.row-actions button { min-height:30px; padding:0 9px; font-size:12px; }
.empty { margin:0; padding:36px; text-align:center; color:#777e86; }
.model-band { margin-top:24px; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; background:#fff; border-block:1px solid #e1e4e8; }
.model-band strong { font-size:28px; }
.model-band-actions { display:flex; align-items:center; gap:14px; }
.model-filters { display:grid; grid-template-columns:minmax(260px,1fr) 180px 240px; gap:12px; margin-bottom:14px; }
.model-table { min-width:1080px; }
.model-table td { vertical-align:top; }
.model-main { display:grid; gap:4px; min-width:220px; }
.model-main small { color:#747a83; overflow-wrap:anywhere; }
.model-main p { max-width:360px; margin:4px 0 0; color:#555c65; font-size:12px; line-height:1.5; }
.model-params { display:grid; gap:6px; min-width:240px; color:#4f565e; font-size:12px; line-height:1.45; }
.catalog-note { margin:12px 0 0; color:#747a83; font-size:12px; }
.log-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.log-item { min-width:0; overflow:hidden; background:#fff; border:1px solid #dfe2e6; border-radius:6px; }
.log-media { aspect-ratio:16/10; display:grid; place-items:center; overflow:hidden; background:#eef1f4; }
.log-media img,.log-media video { width:100%; height:100%; display:block; object-fit:cover; }
.media-placeholder { color:#777e86; font-size:13px; }
.log-body { display:grid; gap:8px; padding:14px; }
.log-body p { margin:0; color:#4f565e; font-size:13px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.prompt-details { min-width:0; color:#4f565e; font-size:13px; }
.prompt-details summary { min-height:40px; line-height:1.5; cursor:pointer; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.prompt-details[open] summary { min-height:0; margin-bottom:8px; -webkit-line-clamp:1; color:#1473e6; }
.prompt-details[open] p { max-height:260px; overflow:auto; padding:10px; background:#f7f8fa; border:1px solid #e1e4e8; border-radius:4px; }
.log-body small,.log-meta { color:#7b8189; font-size:12px; }
.log-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.log-error { padding:10px 12px; border-left:3px solid #c64235; background:#fff1f0; color:#6f201b; font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
dialog { width:min(600px,calc(100% - 32px)); padding:24px; border:1px solid #d7dbe0; border-radius:8px; box-shadow:0 20px 70px rgba(0,0,0,.18); }
dialog::backdrop { background:rgba(17,19,22,.42); }
dialog form,dialog { gap:18px; }
dialog form { display:grid; }
.dialog-title,.dialog-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dialog-actions { justify-content:flex-end; }
.muted { margin:0; color:#717780; font-size:13px; }
.toast { position:fixed; right:20px; bottom:20px; max-width:min(420px,calc(100% - 40px)); padding:12px 15px; border-radius:6px; background:#17191c; color:#fff; font-size:13px; box-shadow:0 10px 35px rgba(0,0,0,.22); }
@media (max-width:800px) { .metrics { grid-template-columns:repeat(2,1fr); } .metrics div:nth-child(2) { border-right:0; } .toolbar { align-items:stretch; flex-direction:column; } .actions { justify-content:flex-start; } .app-shell header,main { padding-left:16px; padding-right:16px; } .log-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .model-filters { grid-template-columns:1fr; } }
@media (max-width:640px) { .app-shell header { height:auto; min-height:64px; flex-wrap:wrap; gap:8px; padding-top:10px; padding-bottom:10px; } .app-shell header .brand { display:none; } .top-nav { padding-left:0; border-left:0; } .header-actions span { display:none; } }
@media (max-width:480px) { .metrics { grid-template-columns:1fr; } .metrics div { border-right:0; } .environment { display:none; } .nav-tab { padding:0 7px; font-size:12px; } .log-grid { grid-template-columns:1fr; } .model-band { align-items:flex-start; gap:12px; } .model-band-actions { align-items:flex-end; flex-direction:column; } }
