:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17383b;background:#f3f5f1;font-synthesis:none;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{touch-action:manipulation}button{border:0;background:#173e3e;color:white;cursor:pointer;font-weight:650;border-radius:9px;padding:12px 20px;min-height:46px}button:hover{background:#255653}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b6d59b;outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(29px,4vw,40px);letter-spacing:-1.3px;font-weight:650;line-height:1.15}h2{font-size:19px;letter-spacing:-.35px;font-weight:650}h3{font-size:16px;font-weight:650}input{min-width:0;width:100%;border:1px solid #ced7d1;border-radius:9px;padding:13px;background:#fff;color:#17383b;font-size:16px}.muted{color:#6b7c78;margin-top:12px;max-width:660px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:750;color:#5c7768;margin-bottom:12px}.brand-mark{width:56px;height:56px;border-radius:15px;background:#c6dea9;display:grid;place-items:center;color:#173e3e;font-size:30px;font-weight:700;margin-bottom:32px}.brand-mark.small{width:32px;height:32px;border-radius:8px;font-size:20px;margin:0}.login-page{min-height:100svh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 80% 20%,#e2ead9,transparent 50%),#f3f5f1}.login-card{width:100%;max-width:430px;padding:40px;background:#fff;border:1px solid #e2e7df;border-radius:20px;box-shadow:0 15px 70px #102e3109}.login-card h1{font-size:38px}.login-card form{margin-top:30px}.login-card label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}.login-card button{width:100%;display:flex;justify-content:space-between}.form-error{color:#a24331;font-size:13px;min-height:30px;padding-top:5px}.footnote{font-size:12px;color:#7b8881;line-height:1.6;margin-top:18px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px max(24px,calc((100% - 1040px)/2));background:#102e31;color:#f4f7f2}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:16px;font-weight:650;letter-spacing:-.2px}.quiet{background:transparent;border:1px solid #43615e;padding:7px 13px;min-height:38px;font-size:13px}.dashboard{max-width:1088px;padding:44px 24px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:30px}.live-badge{display:flex;gap:8px;align-items:center;font-size:12px;color:#426a48;background:#e4edda;padding:7px 12px;border-radius:20px;font-weight:650}.live-badge i{width:7px;height:7px;background:#699548;border-radius:50%;box-shadow:0 0 0 4px #69954815}.connecting{background:#eee5d6;color:#8e7949}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stat{background:#fff;border:1px solid #e1e7de;padding:23px;border-radius:12px}.stat>span{font-size:13px;color:#657971}.stat>strong{display:block;font-size:36px;line-height:1.3;margin:8px 0 12px;letter-spacing:-1px;font-weight:600}.stat small{font-size:17px;color:#92a08f;font-weight:400;letter-spacing:0;margin-left:7px}.stat p{font-size:12px;color:#849086}.panel{background:white;border:1px solid #e1e7de;border-radius:12px;margin-bottom:22px;overflow:hidden}.section-heading{display:flex;align-items:center;gap:12px;padding:21px 24px;border-bottom:1px solid #edf0e9}.count{display:inline-grid;place-items:center;width:23px;height:23px;font-size:12px;border-radius:6px;background:#eef2e9;color:#6c8066}.section-heading>.subtle{margin-left:auto}.subtle,time{color:#819087;font-size:12px}.empty{text-align:center;padding:35px 24px 40px}.empty-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d4e2ca;border-radius:50%;color:#78955b;background:#f5f8f1;margin:0 auto 16px}.empty p{font-size:13px;color:#849086;margin-top:9px;line-height:1.7}.empty-history{padding:26px 24px;color:#8a968d;font-size:13px}.job{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid #edf0e9;gap:15px}.job:last-child{border-bottom:0}.job h3{font-size:14px;margin-bottom:4px}.job-state{display:flex;align-items:flex-end;flex-direction:column;gap:5px}.status{font-size:11px;padding:4px 8px;border-radius:5px;white-space:nowrap}.success{background:#edf4e7;color:#55783a}.failure{background:#f9ece4;color:#ad6240}.running-status{background:#e3eeed;color:#3d7777}.tool-label{font-size:11px;color:#648d7b}.job-id{font-family:monospace;font-size:11px;color:#8b9a90;overflow-wrap:anywhere}.language{font-weight:400;font-size:12px;color:#8b9a90;margin-left:7px}.connect-panel{padding:27px 24px;background:#fafcf7}.connect-panel>.muted{font-size:13px;line-height:1.7}.copy-field{display:flex;gap:8px;margin-top:20px}.copy-field input{font-family:ui-monospace,monospace;font-size:12px;background:white}.copy-field button{white-space:nowrap;font-size:12px}.external-link{display:inline-block;margin-top:20px;font-size:13px;text-decoration:none;border-bottom:1px solid #9bb485;padding-bottom:2px}.dashboard footer{padding:10px 0 20px;font-size:11px;color:#91a08f;text-align:center}.dashboard footer span{padding:0 8px}.phx-disconnected .live-badge{background:#eee5d6;color:#8e7949}.phx-disconnected .live-badge i{background:#b39150}@media(max-width:600px){.dashboard{padding:28px 16px}.topbar{padding:14px 16px}.stats{gap:8px}.stat{padding:15px 11px}.stat>span{font-size:11px}.stat>strong{font-size:28px}.stat small{font-size:13px;margin-left:4px}.stat p{font-size:10px;line-height:1.5}.section-heading{padding:18px 16px}.section-heading h2{font-size:17px}.job{padding:17px 16px}.connect-panel{padding:24px 17px}.empty{padding:28px 18px}.empty br{display:none}.page-heading .muted{font-size:13px}.login-card{padding:32px 26px}.copy-field{flex-direction:column}.copy-field button{width:100%}.dashboard footer{line-height:1.9}.page-heading{align-items:flex-start}.live-badge{margin-top:25px}}

.archive-filter,.archive-pages{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.archive-filter input{width:auto;min-width:150px}.archive-pages{justify-content:space-between}.query-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;color:inherit;border:0;border-top:1px solid #e4e7ec;border-radius:0;padding:18px 0}.query-row:hover{background:#f5f7fb}.query-row time{display:block;font-size:12px;color:#667085;margin-top:6px}.query-detail{border-top:1px solid #e4e7ec;margin-top:20px;padding-top:20px;min-width:0}.query-detail pre{overflow:auto;max-height:420px;background:#101828;color:#e4e7ec;padding:16px;border-radius:10px;font:12px/1.6 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.archive-notice{color:#92400e;background:#fffbeb;padding:12px;border-radius:8px}.query-detail h4{margin:18px 0 8px}@media(max-width:600px){.archive-filter{gap:8px}.archive-filter button{flex:1}.query-row{align-items:flex-start}.query-row .status{font-size:10px}.query-detail .section-heading{flex-wrap:wrap}}
.archive-panel{padding:24px}.archive-panel>.section-heading,.query-detail>.section-heading{padding:0 0 16px}.archive-panel .quiet{color:#173e3e}.archive-panel .quiet:hover{background:#eef2e9}.archive-panel button:disabled{opacity:.45;cursor:default}.archive-panel>.muted{font-size:13px}.query-detail>.section-heading{justify-content:space-between}@media(max-width:600px){.archive-panel{padding:20px 16px}.archive-panel>.section-heading{flex-wrap:wrap}.archive-filter label{font-size:13px}.query-row strong{font-size:13px}}

.plot-preview { margin: 1rem 0; }
.plot-preview img { display: block; max-width: 100%; height: auto; border-radius: 8px; background: white; }
.plot-preview figcaption { margin-top: .5rem; }
