*{box-sizing:border-box}body{margin:0;color:#1f2933;background:#f5f7fa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button{font:inherit}.app-shell{display:grid;grid-template-columns:380px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid #d8dee8;background:#fff;overflow:hidden}.toolbar,.detail-header,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.toolbar{padding:22px 20px 16px;border-bottom:1px solid #e5eaf1}.toolbar h1,.detail-header h2,.panel h3{margin:0;letter-spacing:0}.toolbar h1{font-size:22px}.toolbar p,.detail-header p{margin:4px 0 0;color:#697586;font-size:13px}.toolbar button,.detail-header button,.actions button{width:36px;height:36px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer}.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border-bottom:1px solid #e5eaf1}.tabs button{height:36px;border:1px solid #d8dee8;border-radius:8px;background:#fff;color:#475569;cursor:pointer}.tabs button.active{border-color:#2563eb;background:#eaf2ff;color:#1d4ed8;font-weight:700}.recovery-list,.user-list{height:calc(100vh - 148px);overflow:auto;padding:10px}.search-box{padding:10px 10px 0}.search-box input{width:100%;height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 12px;color:#1f2933;font:inherit;font-size:13px}.recovery-row,.user-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;width:100%;min-height:72px;gap:12px;padding:12px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer}.recovery-row:hover,.recovery-row.selected,.user-row:hover,.user-row.selected{border-color:#bfd7ff;background:#eef6ff}.user-row{grid-template-columns:40px minmax(0,1fr) auto}.user-avatar{display:grid;width:38px;height:38px;place-items:center;border-radius:8px;color:#fff;background:#64748b;font-size:12px;font-weight:800}.user-avatar.image{object-fit:cover}.user-avatar.enabled{background:#0f766e}.user-avatar.disabled{background:#b91c1c}.status-dot{width:10px;height:10px;border-radius:999px;background:#94a3b8}.status-running{background:#2563eb}.status-success,.status-succeeded,.status-resolved,.status-completed{background:#16a34a}.status-skipped,.status-unknown{background:#94a3b8}.status-gave_up,.status-failed{background:#dc2626}.row-main,.row-meta{display:flex;min-width:0;flex-direction:column;gap:4px}.row-main strong,.metric strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-main small,.row-meta small,.row-main code,.metric span,.timeline small{color:#697586;font-size:12px}.row-main code{overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.row-main .status-trail{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-meta{text-align:right;color:#475569;font-size:13px}.detail-pane{min-width:0;height:100vh;overflow:auto;padding:24px}.detail-header{margin-bottom:18px}.eyebrow{color:#2563eb;font-size:12px;font-weight:700;text-transform:uppercase}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.user-metrics .metric strong{font-size:22px}.metric,.panel{border:1px solid #d8dee8;border-radius:8px;background:#fff}.metric{min-width:0;padding:14px}.metric strong{display:block;margin-top:6px;font-size:14px}.timeline{display:grid;gap:10px;margin:0 0 18px}.timeline-item{display:flex;align-items:center;width:100%;gap:12px;padding:12px 14px;border:1px solid #d8dee8;border-radius:8px;background:#fff;color:inherit;text-align:left;cursor:pointer}.timeline-item:hover,.timeline-item.selected{border-color:#2563eb;background:#eef6ff}.timeline-marker{width:12px;height:12px;border-radius:999px;background:#2563eb}.timeline-item div:last-child{display:grid;grid-template-columns:auto auto minmax(0,1fr);width:100%;gap:12px}.panel{margin-bottom:18px;overflow:hidden}.panel-heading{padding:12px 14px;border-bottom:1px solid #e5eaf1}.panel-heading h3{font-size:15px}.panel-heading span{color:#697586;font-size:12px}.diff-list{display:flex;flex-wrap:wrap;gap:8px;padding:14px}.diff-list code{padding:4px 8px;border-radius:6px;background:#fef3c7;color:#92400e;font-size:12px}.json-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.json-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.json-grid.action-grid{grid-template-columns:minmax(0,1.6fr) minmax(360px,1fr)}.json-panel{min-height:520px}pre{height:520px;margin:0;overflow:auto;padding:14px;color:#dce6f2;background:#172033;font-size:12px;line-height:1.5;tab-size:2}.empty-list,.empty-state,.error,.notice{margin:16px;padding:14px;border-radius:8px}.empty-list,.empty-state{color:#697586;background:#f8fafc}.empty-list.compact{margin:12px}.error{color:#991b1b;background:#fee2e2}.notice{color:#155e75;background:#cffafe}.mode-tabs{display:inline-grid;grid-auto-flow:column;gap:6px;padding:4px;border:1px solid #d8dee8;border-radius:8px;background:#fff}.prompt-kind-tabs{margin:0 0 16px}.mode-tabs button{min-width:112px;height:34px;border:0;border-radius:6px;background:transparent;color:#475569;cursor:pointer}.mode-tabs button.active{background:#eaf2ff;color:#1d4ed8;font-weight:700}.prompt-layout,.settings-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px}.user-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sessions-layout{grid-template-columns:minmax(300px,.9fr) minmax(0,1.3fr)}.policy-panel{margin-bottom:18px}.policy-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px}.activity-list{display:grid}.session-list{display:grid;max-height:520px;overflow:auto}.session-row{display:grid;width:100%;min-height:74px;gap:5px;padding:12px 14px;border:0;border-bottom:1px solid #e5eaf1;background:#fff;color:inherit;text-align:left;cursor:pointer}.session-row:hover,.session-row.selected{background:#eef6ff}.session-row strong,.session-row span,.session-row small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-row span,.session-row small{color:#697586;font-size:12px}.session-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border-bottom:1px solid #e5eaf1;background:#f8fafc}.activity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;width:100%;min-height:64px;padding:12px 14px;border:0;border-bottom:1px solid #e5eaf1;background:#fff;color:inherit;text-align:left;cursor:pointer}.activity-row.static{cursor:default}.activity-row:hover:not(.static){background:#eef6ff}.activity-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-row span{color:#334155;font-size:13px}.activity-row small{grid-column:1 / -1;min-width:0;overflow:hidden;color:#697586;text-overflow:ellipsis;white-space:nowrap}.prompt-list,.settings-list{align-self:start}.template-row{display:flex;width:100%;min-height:58px;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:0;border-bottom:1px solid #e5eaf1;background:#fff;color:inherit;text-align:left;cursor:pointer}.template-row:hover,.template-row.selected{background:#eef6ff}.template-row span{color:#697586;font-size:12px}.prompt-editor,.settings-editor{padding-bottom:14px}.prompt-editor label,.settings-editor label{display:grid;gap:8px;padding:14px;color:#475569;font-size:13px;font-weight:700}.prompt-editor input,.prompt-editor textarea,.settings-editor input,.settings-editor select,.settings-editor textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;color:#1f2933;font:inherit;font-size:13px}.prompt-editor textarea,.settings-editor textarea{min-height:220px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.45}.settings-editor input:disabled{color:#64748b;background:#f1f5f9}.checkbox-row{display:flex!important;grid-template-columns:none!important;align-items:center;flex-direction:row;font-weight:600!important}.checkbox-row input{width:16px}.field-grid,.policy-grid,.json-fields{display:grid;gap:0}.field-grid{grid-template-columns:180px minmax(0,1fr);border-bottom:1px solid #e5eaf1}.policy-grid{grid-template-columns:minmax(220px,1.4fr) 140px repeat(3,minmax(0,1fr));border-top:1px solid #e5eaf1;border-bottom:1px solid #e5eaf1}.json-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-toggle{border-bottom:1px solid #e5eaf1}.settings-editor .checkbox-row{min-height:66px}.model-field{min-width:0}.model-test-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #e5eaf1;background:#f8fafc}.model-test-row button{min-width:108px;height:34px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer}.model-test-row button:disabled{cursor:not-allowed;opacity:.55}.model-test-row span{min-width:0;overflow:hidden;color:#475569;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.settings-editor .checkbox-row input{flex:0 0 auto}.actions{display:flex;gap:10px;padding:0 14px 14px}.actions button{width:auto;min-width:92px;padding:0 16px}.actions button:disabled{cursor:not-allowed;opacity:.5}.drawer-backdrop{position:fixed;inset:0;z-index:20;display:flex;justify-content:flex-end;background:#0f172a52}.detail-drawer{width:min(980px,calc(100vw - 48px));height:100vh;overflow:auto;border-left:1px solid #cbd5e1;background:#f5f7fa;box-shadow:-18px 0 48px #0f172a2e;padding:22px}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.drawer-header h2{max-width:760px;margin:0;overflow-wrap:anywhere;font-size:20px}.drawer-header p{margin:4px 0 0;color:#697586;font-size:13px}.drawer-header button{width:36px;height:36px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer;font-size:20px;line-height:1}.drawer-metrics,.drawer-json{margin-bottom:14px}@media(max-width:1100px){.app-shell{grid-template-columns:1fr}.sidebar,.detail-pane{height:auto}.summary-grid,.policy-cards,.user-detail-grid,.json-grid,.json-grid.two,.json-grid.action-grid,.prompt-layout,.settings-layout,.sessions-layout,.session-summary,.field-grid,.policy-grid,.json-fields{grid-template-columns:1fr}.detail-drawer{width:100vw}}
