/* Agents studio: warm paper and terracotta, matching Ask Claude's reading palette. */
#tab-agents{--ag-bg:var(--ai-canvas,#f7f2ea);--ag-card:var(--ai-surface,#fffdf9);--ag-ink:var(--ai-ink,#1f1a17);--ag-muted:var(--ai-ink-3,#6b625b);--ag-line:var(--ai-rule,#e4dbcf);--ag-line-strong:#c4b8a8;--ag-accent:var(--ai-link,#9a4523);--ag-soft:var(--ai-note,#f1ece4);--ag-tint:var(--ai-accent-soft,#f3e3d8);--ag-primary:var(--ai-accent,#b5542d);--ag-primary-hover:#96441f;--ag-art:#e8d9cc;--ag-read:Cambria,Caladea,Georgia,'Times New Roman',serif;--ag-shadow:0 2px 5px #30281904,0 14px 40px #30281905;--ag-display:Manrope,Inter,'Segoe UI',sans-serif;background:var(--ag-bg);color:var(--ag-ink);min-height:calc(100vh - 98px);font:14px/1.55 Inter,'Segoe UI',sans-serif;color-scheme:light}
#tab-agents[data-appearance=dim]{--ag-bg:#222523;--ag-card:#292d29;--ag-ink:#ecebe5;--ag-muted:#b1b8ae;--ag-line:#41463f;--ag-line-strong:#70786c;--ag-accent:#e5b093;--ag-soft:#30362f;--ag-tint:#3d332c;--ag-primary:#ac6547;--ag-primary-hover:#96553a;--ag-art:#54463c;--ag-shadow:0 2px 6px #0001,0 14px 40px #0001;color-scheme:dark}
#tab-agents *{box-sizing:border-box}#tab-agents button,#tab-agents input,#tab-agents select,#tab-agents textarea{font-family:inherit}#tab-agents :focus-visible{outline:2px solid var(--ag-accent);outline-offset:4px}
.ag-shell{max-width:1432px;margin:auto;padding:38px 48px 64px}.ag-header,.ag-heading,.ag-toolbar,.ag-card-top,.ag-actions,.ag-dialog-head,.ag-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:16px}.ag-eyebrow{font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--ag-muted);margin-bottom:9px}.ag-breadcrumb{margin:0 9px;color:var(--ag-line-strong)}.ag-title-line,.ag-header-actions{display:flex;align-items:center;gap:16px}.ag-header h1{font-family:var(--ag-display);font-size:38px;letter-spacing:-.055em;font-weight:700;line-height:1.2}.ag-sub{color:var(--ag-muted);font-size:13px;line-height:1.85;margin-top:10px;max-width:600px}.ag-header .ag-sub{margin-top:6px}.ag-icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
.ag-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:39px;padding:9px 16px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);color:var(--ag-ink);font-size:12px;line-height:1.5;font-weight:600;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}.ag-btn:hover{background:var(--ag-soft);border-color:var(--ag-line-strong)}.ag-btn.ag-primary{background:var(--ag-primary);border-color:var(--ag-primary);color:#fffefa;box-shadow:0 2px 3px #4224180c}.ag-btn.ag-primary:hover{background:var(--ag-primary-hover);border-color:var(--ag-primary-hover);box-shadow:0 3px 9px #42241818}.ag-btn:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}.ag-appearance{width:39px;padding:0;background:transparent;border-color:transparent;color:var(--ag-muted)}.ag-appearance[aria-pressed=true]{background:var(--ag-soft);color:var(--ag-accent)}.ag-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:500;line-height:1.5;padding:3px 8px;border:1px solid var(--ag-line);border-radius:5px;color:var(--ag-muted);white-space:nowrap}.ag-private{border:0;background:var(--ag-soft);padding:5px 9px}.ag-private .ag-icon{width:12px;height:12px}
.ag-tabs{display:flex;gap:28px;align-items:center;border-bottom:1px solid var(--ag-line);margin:25px 0 28px}.ag-tabs button{position:relative;display:flex;align-items:center;gap:8px;border:0;padding:13px 0 15px;background:none;color:var(--ag-muted);font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap}.ag-tabs button:hover{color:var(--ag-ink)}.ag-tabs button[aria-pressed=true]{color:var(--ag-accent);font-weight:600}.ag-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--ag-accent);border-radius:2px}.ag-tabs .ag-icon{width:15px;height:15px}.ag-tabs-note{margin-left:auto;color:var(--ag-muted);font-size:11px}
.ag-hero{display:grid;grid-template-columns:1fr 330px;min-height:275px;border:1px solid var(--ag-line);border-radius:13px;padding:30px 36px;background:var(--ag-card);position:relative;overflow:hidden;margin-bottom:32px;box-shadow:var(--ag-shadow)}.ag-hero-copy{position:relative;z-index:1}.ag-hero .ag-eyebrow{color:var(--ag-accent);margin-bottom:13px}.ag-hero h2{font-family:var(--ag-display);font-size:30px;letter-spacing:-.04em;font-weight:500;line-height:1.3}.ag-hero .ag-sub{max-width:470px;font-size:12px;margin:13px 0 21px}.ag-hero-foot{margin-left:13px;font-size:11px;color:var(--ag-muted)}.ag-hero-art{position:relative;display:grid;place-items:center}.ag-orbit{position:absolute;width:330px;height:330px;border:1px solid var(--ag-tint);border-radius:50%;background:radial-gradient(circle,var(--ag-tint),transparent 69%)}.ag-orbit:before,.ag-orbit:after{content:'';position:absolute;inset:25px;border:1px solid var(--ag-tint);border-radius:50%}.ag-orbit:after{inset:55px}.ag-paper{width:205px;padding:22px;border:1px solid var(--ag-art);border-radius:9px;background:var(--ag-card);position:relative;box-shadow:0 12px 30px #3f302412;transform:rotate(5deg)}.ag-paper-back{position:absolute;height:200px;background:var(--ag-tint);transform:rotate(-7deg) translate(-9px,2px);box-shadow:none}.ag-paper-top{display:flex;gap:9px;align-items:center;color:var(--ag-accent);font-size:11px;letter-spacing:.1em;margin-bottom:18px}.ag-paper strong{font-family:var(--ag-display);font-size:15px;font-weight:500;letter-spacing:-.02em;line-height:1.7}.ag-paper-line{width:100%;height:3px;background:var(--ag-soft);border-radius:2px;margin-top:15px}.ag-paper-line.short{width:65%;margin-top:7px}.ag-paper-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--ag-muted);margin-top:22px}.ag-paper-bottom span:first-child{border:1px solid var(--ag-line);border-radius:4px;padding:2px 6px}.ag-art-note{position:absolute;bottom:-7px;font-size:11px;color:var(--ag-muted);letter-spacing:.035em}
.ag-layout{display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:36px;align-items:start}.ag-main{min-width:0}.ag-heading{margin-bottom:16px;min-height:35px}.ag-heading .ag-eyebrow{margin-bottom:4px;font-size:11px}.ag-heading h2{font-family:var(--ag-display);font-weight:600;font-size:17px;letter-spacing:-.025em}.ag-heading small{color:var(--ag-muted);font-size:11px}.ag-toolbar{justify-content:flex-start;margin-bottom:16px;flex-wrap:wrap;gap:8px}.ag-input{min-height:38px;border:1px solid var(--ag-line);border-radius:7px;background:var(--ag-card);color:var(--ag-ink);padding:9px 11px;font:inherit;font-size:12px;font-weight:400;min-width:0}.ag-input::placeholder{color:var(--ag-muted);opacity:.85;font-weight:400}.ag-input:hover{border-color:var(--ag-line-strong)}.ag-input:focus{border-color:var(--ag-accent)}.ag-search-wrap{position:relative;flex:1;min-width:170px}.ag-search-wrap>.ag-icon{position:absolute;left:12px;top:11px;width:15px;height:15px;color:var(--ag-muted);pointer-events:none}.ag-search-wrap .ag-input{width:100%;padding-left:35px}.ag-toolbar select{max-width:150px;font-size:11px}
.ag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ag-card{border:1px solid var(--ag-line);border-radius:11px;padding:23px;background:var(--ag-card);display:flex;flex-direction:column;gap:15px;min-width:0;transition:border-color .16s,box-shadow .16s}.ag-card:has(.ag-link:hover),.ag-card:focus-within{border-color:var(--ag-line-strong);box-shadow:var(--ag-shadow)}.ag-card h3{font-family:var(--ag-display);font-size:17px;font-weight:600;letter-spacing:-.025em;line-height:1.5;overflow-wrap:anywhere}.ag-card p{font-size:12px;line-height:1.8;color:var(--ag-muted);overflow-wrap:anywhere;flex:1}.ag-card-bottom{border-top:1px solid var(--ag-line);padding-top:15px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--ag-muted)}.ag-mark{width:36px;height:36px;border:1px solid var(--ag-line);border-radius:9px;background:var(--ag-soft);display:grid;place-items:center;font-size:21px;color:var(--ag-accent);flex-shrink:0}.ag-mark.claude{color:var(--ag-accent);background:var(--ag-tint);border-color:transparent}.ag-mark.chatgpt{color:var(--ag-ink);background:var(--ag-soft);border-color:transparent}.ag-provider-label{color:var(--ag-muted);font-size:11px}.ag-card-title{display:flex;align-items:center;gap:10px;min-width:0}.ag-link{display:inline-flex;align-items:center;gap:7px;border:0;padding:3px 0;background:none;color:var(--ag-accent);font-size:11px;font-weight:600;cursor:pointer;text-align:left}.ag-link:hover{text-decoration:underline;text-underline-offset:4px}.ag-link .ag-icon{width:14px;height:14px}
.ag-aside{display:flex;flex-direction:column;gap:24px}.ag-panel{padding:23px;border:1px solid var(--ag-line);border-radius:11px;background:var(--ag-card)}.ag-panel h3{font-family:var(--ag-display);font-size:15px;font-weight:500;letter-spacing:-.02em;margin-bottom:8px}.ag-panel p{font-size:11px;line-height:1.85;color:var(--ag-muted)}.ag-seat{display:flex;align-items:center;gap:10px;padding:18px 0;border-bottom:1px solid var(--ag-line)}.ag-seat+.ag-seat{margin-bottom:14px}.ag-seat strong{display:block;font-size:12px;font-weight:500}.ag-seat small{font-size:11px;color:var(--ag-muted);display:block;margin-top:3px}.ag-seat-dot{width:5px;height:5px;border-radius:50%;background:var(--ag-line-strong);margin-left:auto;flex-shrink:0}.ag-access{padding:0 13px}.ag-members{display:flex;align-items:center;padding:4px 0 15px}.ag-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;color:var(--ag-accent);background:var(--ag-tint);border:2px solid var(--ag-bg);font-size:11px;font-weight:600}.ag-avatar-bill{background:var(--ag-soft);color:var(--ag-muted);margin-left:-7px;margin-right:10px}.ag-members strong,.ag-members small{display:block;font-size:11px;font-weight:500}.ag-members small{font-size:11px;color:var(--ag-muted);margin-top:2px}.ag-access p{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.8;color:var(--ag-muted)}.ag-access p .ag-icon{width:13px;height:13px;margin-top:3px}
.ag-empty{grid-column:1/-1;text-align:center;padding:42px 26px;border:1px dashed var(--ag-line-strong);border-radius:10px;background:transparent}.ag-empty .ag-mark{margin:0 auto 15px;width:42px;height:42px;background:var(--ag-tint);border:0}.ag-empty h3{font-family:var(--ag-display);font-weight:500;font-size:17px;letter-spacing:-.02em;margin-bottom:8px}.ag-empty p{font-size:12px;color:var(--ag-muted);line-height:1.8;max-width:450px;margin:0 auto 20px}.ag-library-empty{display:flex;flex-wrap:wrap;align-items:center;gap:15px;text-align:left;padding:24px;min-height:124px;border-color:var(--ag-line)}.ag-library-empty .ag-mark{margin:0;width:38px;height:38px}.ag-library-empty>div{flex:1;min-width:170px}.ag-library-empty h3{font-size:14px;margin-bottom:5px}.ag-library-empty p{margin:0;font-size:11px;max-width:360px}.ag-library-empty>.ag-btn{font-size:11px;min-height:33px;padding:7px 10px}.ag-notice{padding:12px 15px;background:var(--ag-tint);border:1px solid var(--ag-line);border-radius:8px;color:var(--ag-ink);font-size:12px;line-height:1.7;margin-bottom:20px}.ag-notice .ag-link{margin-left:8px}.ag-draft-note{display:flex;gap:11px;align-items:center;padding:14px 0;margin:-9px 0 22px;color:var(--ag-muted);font-size:11px}.ag-draft-note .ag-icon{color:var(--ag-accent)}
.ag-templates{margin-top:28px}.ag-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ag-template{display:flex;flex-direction:column;align-items:flex-start;gap:11px;text-align:left;border:1px solid var(--ag-line);border-radius:10px;padding:20px;background:var(--ag-card);color:var(--ag-ink);cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}.ag-template:hover{border-color:var(--ag-line-strong);transform:translateY(-2px);box-shadow:var(--ag-shadow)}.ag-template-top{display:flex;align-items:center;gap:10px;margin-bottom:5px;width:100%}.ag-template-icon{color:var(--ag-accent);display:inline-flex}.ag-template-space{font-size:11px;color:var(--ag-muted)}.ag-template strong{font-family:var(--ag-display);font-weight:600;font-size:13px;letter-spacing:-.02em}.ag-template-description{font-size:11px;line-height:1.8;color:var(--ag-muted)}.ag-template small{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;color:var(--ag-accent);font-size:11px;margin-top:auto;padding-top:8px}.ag-template small .ag-icon{width:15px;height:15px}
.ag-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:26px 0}.ag-metric strong{display:block;font-family:var(--ag-display);font-size:32px;font-weight:500;letter-spacing:-.035em;margin:18px 0 10px}.ag-metric span{color:var(--ag-muted);font-size:11px}.ag-connections{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;max-width:970px;margin-top:26px}.ag-connections .ag-card{padding:30px}.ag-connections h3{font-size:25px;font-weight:500}.ag-connections .ag-card-top{margin-bottom:12px}.ag-connections .ag-mark{width:46px;height:46px;font-size:27px}
.ag-dialog{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:600px;max-width:100%;padding:0;border:0;border-left:1px solid var(--ag-line);background:var(--ag-bg);color:var(--ag-ink);box-shadow:-16px 0 70px #25231e20}.ag-dialog::backdrop{background:#292c2b66;backdrop-filter:blur(3px)}.ag-dialog form{display:flex;flex-direction:column;height:100%}.ag-dialog-head{padding:26px 32px;border-bottom:1px solid var(--ag-line);background:var(--ag-card)}.ag-dialog-head h2{font-family:var(--ag-display);font-size:23px;font-weight:500;letter-spacing:-.035em}.ag-dialog-head .ag-eyebrow{color:var(--ag-accent)}.ag-dialog-body{padding:26px 32px;overflow:auto;flex:1;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ag-line-strong) transparent}.ag-dialog-body>.ag-notice:first-child{background:transparent;border:0;border-bottom:1px solid var(--ag-line);border-radius:0;padding:0 0 20px;color:var(--ag-muted);font-size:11px}.ag-dialog-foot{padding:19px 32px;border-top:1px solid var(--ag-line);background:var(--ag-card)}.ag-dialog-foot .ag-actions{gap:8px}.ag-field{display:flex;flex-direction:column;gap:8px;margin-bottom:23px;font-size:12px;font-weight:500}.ag-field small{font-size:11px;line-height:1.7;font-weight:400;color:var(--ag-muted)}.ag-field .ag-input{padding:11px 13px}.ag-field textarea{resize:vertical;line-height:1.8}.ag-field textarea[name=instructions]{min-height:210px}.ag-fieldset{border:0;margin-bottom:23px}.ag-fieldset legend{font-size:12px;font-weight:500;margin-bottom:10px}.ag-provider-options{display:flex;gap:10px}.ag-provider-option{flex:1;display:flex;gap:9px;align-items:center;border:1px solid var(--ag-line);border-radius:8px;padding:15px;cursor:pointer;font-size:12px;background:var(--ag-card)}.ag-provider-option:has(input:checked){border-color:var(--ag-accent);background:var(--ag-tint)}.ag-provider-option input{accent-color:var(--ag-accent)}.ag-inline{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ag-error{color:#a3323d;font-size:12px;line-height:1.7;margin-bottom:12px}[data-appearance=dim] .ag-error{color:#ffabab}.ag-toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:9px;background:var(--ag-ink);color:var(--ag-bg);box-shadow:0 5px 25px #0002;z-index:1000;font-size:12px}
@media(max-width:1150px){.ag-shell{padding:30px}.ag-layout{grid-template-columns:minmax(0,1fr) 230px;gap:24px}.ag-tabs-note{display:none}.ag-hero{grid-template-columns:1fr 260px;padding:28px}.ag-hero-foot{display:block;margin:12px 0 0}.ag-template{padding:15px}.ag-library-empty>.ag-btn{margin-left:53px}}
@media(max-width:900px){.ag-layout{grid-template-columns:1fr}.ag-aside{display:grid;grid-template-columns:1fr 1fr;align-items:start;padding-top:8px}.ag-access{padding:20px}.ag-hero{grid-template-columns:1fr 215px}.ag-hero-art{transform:scale(.87)}.ag-hero h2{font-size:27px}.ag-library-empty>.ag-btn{margin-left:0}}
@media(max-width:640px){.ag-shell{padding:24px 20px 40px}.ag-header{gap:12px}.ag-header h1{font-size:31px}.ag-header .ag-eyebrow{font-size:11px}.ag-header .ag-sub{font-size:11px}.ag-private{display:none}.ag-header-actions{gap:3px;flex-shrink:0}.ag-header-actions .ag-primary{font-size:11px;padding:9px 12px}.ag-appearance{width:32px}.ag-tabs{gap:22px;margin:19px 0 22px;overflow-x:auto}.ag-tabs button{font-size:11px;gap:6px}.ag-tabs .ag-icon{width:13px;height:13px}.ag-hero{display:block;min-height:0;padding:25px;margin-bottom:26px}.ag-hero-art{display:none}.ag-hero h2{font-size:27px}.ag-hero .ag-sub{font-size:12px}.ag-grid{grid-template-columns:1fr}.ag-search-wrap{flex-basis:100%}.ag-toolbar select{flex:1;max-width:none}.ag-input,.ag-toolbar select{font-size:16px}.ag-heading{gap:12px}.ag-heading h2{font-size:16px}.ag-heading .ag-actions{gap:10px}.ag-heading small{font-size:11px}.ag-library-empty{padding:20px}.ag-library-empty>div{min-width:160px}.ag-library-empty>.ag-btn{margin-left:53px}.ag-template-grid{grid-template-columns:1fr;gap:10px}.ag-template{display:grid;grid-template-columns:1fr auto;gap:7px 14px;padding:19px}.ag-template-top{grid-column:1/-1;margin-bottom:3px}.ag-template strong{font-size:14px}.ag-template-description{grid-column:1;max-width:260px}.ag-template small{grid-column:2;grid-row:2/4;padding:0;align-self:center;gap:10px}.ag-templates .ag-heading>small{display:none}.ag-aside{grid-template-columns:1fr;gap:20px}.ag-access{padding:0 8px}.ag-connections{grid-template-columns:1fr}.ag-connections .ag-card{padding:23px}.ag-metrics{gap:9px}.ag-metric{padding:14px}.ag-metric span{font-size:11px}.ag-metric strong{font-size:26px}.ag-dialog-body,.ag-dialog-head,.ag-dialog-foot{padding:22px}.ag-inline{grid-template-columns:1fr;gap:0}.ag-dialog-foot{gap:8px}.ag-dialog-foot .ag-btn{font-size:11px;padding:9px 12px}.ag-provider-option{min-height:50px}}
@media(prefers-reduced-motion:reduce){#tab-agents *,#tab-agents *:before,#tab-agents *:after{transition:none;animation:none}.ag-template:hover{transform:none}}

/* MCP workbench and honest, session-scoped analytics. */
.ag-mcp-connection{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--ag-line);border-radius:10px;background:var(--ag-card);padding:16px 22px;margin-bottom:24px}.ag-mcp-connection>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ag-mcp-connection strong{font-size:13px;font-weight:600}.ag-mcp-connection div>span:last-child{font-size:11px;color:var(--ag-muted);margin-left:8px}.ag-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ag-line-strong);flex-shrink:0}.ag-status-dot.is-connected{background:#668568;box-shadow:0 0 0 3px #66856812}.ag-status-dot.is-failed{background:#b6614b}.ag-mcp-welcome{padding:75px 30px 90px;text-align:center;border:1px solid var(--ag-line);border-radius:12px;background:var(--ag-card)}.ag-mcp-welcome .ag-eyebrow{color:var(--ag-accent)}.ag-mcp-welcome h2{font:500 29px/1.4 var(--ag-display);letter-spacing:-.035em;margin:17px 0}.ag-mcp-welcome p{font-size:13px;color:var(--ag-muted);line-height:1.9;max-width:470px;margin:auto}.ag-mcp-principles{display:flex;justify-content:center;gap:25px;margin-top:35px;color:var(--ag-muted);font-size:11px}.ag-mcp-principles span:before{content:'✓';color:var(--ag-accent);margin-right:8px}
.ag-mcp-grid{display:grid;grid-template-columns:205px minmax(250px,.9fr) minmax(0,1.1fr);border:1px solid var(--ag-line);border-radius:12px;overflow:hidden;background:var(--ag-card);min-height:540px}.ag-tool-catalog{padding:21px 15px;background:var(--ag-soft);border-right:1px solid var(--ag-line);min-width:0}.ag-tool-catalog>.ag-input{width:100%;margin:5px 0 14px;font-size:11px}.ag-tool-item{display:block;width:100%;text-align:left;padding:11px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ag-ink);cursor:pointer;margin-bottom:3px}.ag-tool-item:hover{background:var(--ag-card)}.ag-tool-item[aria-pressed=true]{background:var(--ag-card);border-color:var(--ag-line);box-shadow:0 1px 3px #292c2b07}.ag-tool-item[aria-pressed=true] strong{color:var(--ag-accent)}.ag-tool-item strong{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}.ag-tool-item small{display:block;font-size:11px;color:var(--ag-muted);margin-top:3px}.ag-tool-config{padding:26px;min-width:0;border-right:1px solid var(--ag-line)}.ag-tool-config h2{font:600 19px/1.5 var(--ag-display);letter-spacing:-.03em}.ag-tool-config>.ag-sub{font-size:11px;margin-bottom:22px}.ag-tool-fields{max-height:490px;overflow:auto;padding:4px;scrollbar-width:thin;scrollbar-color:var(--ag-line-strong) transparent}.ag-tool-fields .ag-field{font-size:11px;position:relative}.ag-tool-fields .ag-field small{font-size:11px;line-height:1.7}.ag-tool-fields .ag-input{width:100%}.ag-required{position:absolute;right:0;top:2px;font-size:11px;font-weight:400;color:var(--ag-accent)}#ag-mcp-form fieldset{border:0;min-width:0}#ag-mcp-form button[type=submit]{margin:12px 4px 0}.ag-tool-output{padding:26px;min-width:0;display:flex;flex-direction:column}.ag-tool-output .ag-heading h2{font-size:16px}.ag-result{flex:1;min-height:370px;max-height:630px;overflow:auto;background:var(--ag-bg);border:1px solid var(--ag-line);border-radius:8px;scrollbar-width:thin;scrollbar-color:var(--ag-line-strong) transparent}.ag-result pre{margin:0;padding:19px;font:11px/1.85 'IBM Plex Mono',Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ag-ink)}.ag-result.is-error{border-color:#b6614b}.ag-output-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:370px;padding:30px;color:var(--ag-muted)}.ag-output-empty>span{font-size:29px;font-weight:400;color:var(--ag-accent);margin-bottom:16px}.ag-output-empty strong{font:500 15px/1.6 var(--ag-display);letter-spacing:-.02em;color:var(--ag-ink)}.ag-output-empty p{font-size:11px;line-height:1.85;margin-top:10px;max-width:240px}.ag-result-note{color:var(--ag-muted);font-size:11px;line-height:1.8;margin-top:12px}
.ag-metrics-four{grid-template-columns:repeat(4,1fr)}.ag-analytics-grid{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr);gap:22px}.ag-breakdown-row{margin-top:24px}.ag-breakdown-row>div:first-child{display:flex;justify-content:space-between;font-size:12px}.ag-breakdown-row strong{font-weight:500}.ag-bar{height:7px;background:var(--ag-soft);border-radius:5px;overflow:hidden;margin-top:10px}.ag-bar span{display:block;height:100%;background:var(--ag-accent);border-radius:5px}.ag-breakdown-row:nth-of-type(3) .ag-bar span{opacity:.55}.ag-analytics-foot{font-size:11px;color:var(--ag-muted);margin-top:25px;padding-top:16px;border-top:1px solid var(--ag-line)}.ag-activity-panel .ag-heading{align-items:flex-start}.ag-activity-panel .ag-heading small{font-size:11px}.ag-activity-panel h3{margin:0}.ag-activity-empty{padding:42px 20px;text-align:center}.ag-activity-empty strong{font:500 16px var(--ag-display);letter-spacing:-.02em}.ag-activity-empty p{max-width:350px;margin:12px auto 0;font-size:11px}.ag-activity-list{max-height:400px;overflow:auto;scrollbar-width:thin}.ag-activity-row{display:flex;gap:13px;align-items:center;border-top:1px solid var(--ag-line);padding:15px 0}.ag-activity-row strong{font-size:12px;font-weight:500}.ag-activity-row small{display:block;font-size:11px;color:var(--ag-muted);margin-top:3px}.ag-activity-row>span:last-child{margin-left:auto;font:11px 'IBM Plex Mono',monospace;color:var(--ag-muted)}
@media(max-width:1150px){.ag-mcp-grid{grid-template-columns:180px minmax(0,1fr)}.ag-tool-output{grid-column:1/-1;border-top:1px solid var(--ag-line)}.ag-tool-config{border-right:0}.ag-result,.ag-output-empty{min-height:240px}.ag-tool-fields{max-height:350px}}
#ag-tool-list{max-height:600px;overflow-y:auto;scrollbar-width:thin}
@media(max-width:640px){.ag-mcp-connection{padding:16px;align-items:flex-start;flex-direction:column}.ag-mcp-connection div>span:last-child{margin-left:0}.ag-mcp-welcome{padding:40px 22px}.ag-mcp-welcome h2{font-size:24px}.ag-mcp-principles{flex-direction:column;gap:10px;margin-top:25px}.ag-mcp-grid{grid-template-columns:1fr}.ag-tool-catalog{border-right:0;border-bottom:1px solid var(--ag-line)}#ag-tool-list{max-height:200px;overflow:auto}.ag-tool-config,.ag-tool-output{padding:22px}.ag-tool-config .ag-input,.ag-tool-catalog>.ag-input{font-size:16px}.ag-metrics-four{grid-template-columns:repeat(2,1fr)}.ag-analytics-grid{grid-template-columns:1fr}.ag-activity-panel .ag-heading{flex-wrap:wrap}.ag-tabs-note{display:none}}

.ag-result-summary{padding:12px 16px;font-size:11px;color:var(--ag-muted);border-bottom:1px solid var(--ag-line)}.ag-result-table{overflow-x:auto}.ag-result-table table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}.ag-result-table th{font-size:11px;font-weight:600;white-space:nowrap;background:var(--ag-soft);padding:10px 13px;border-bottom:1px solid var(--ag-line)}.ag-result-table td{padding:12px 13px;border-bottom:1px solid var(--ag-line);max-width:220px;min-width:100px;overflow-wrap:anywhere;vertical-align:top}.ag-result-raw{padding:13px 16px;font-size:11px;color:var(--ag-muted)}.ag-result-raw summary{cursor:pointer}.ag-result-raw pre{padding:16px 0 0}
/* Template collection and workflow composer */
.ag-studio-intro{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:64px;padding:18px 0 42px;border-bottom:1px solid var(--ag-line);margin-bottom:32px;align-items:center}.ag-studio-intro h2{font-family:var(--ag-display);font-size:40px;font-weight:500;letter-spacing:-.045em;line-height:1.22;margin:14px 0 18px}.ag-studio-intro p{max-width:540px;font-size:13px;line-height:1.9;color:var(--ag-muted)}.ag-studio-note{padding:26px;border-left:2px solid var(--ag-art)}.ag-studio-note strong{display:block;font-size:15px;font-weight:500;margin:12px 0}.ag-studio-note p{font-size:12px;margin-bottom:18px}.ag-gallery-controls{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:24px 0}.ag-category-tabs{display:flex;gap:5px;flex-wrap:wrap}.ag-category-tabs button{background:transparent;color:var(--ag-muted);border:1px solid transparent;border-radius:7px;padding:9px 12px;font-size:11px;cursor:pointer}.ag-category-tabs button[aria-pressed=true]{background:var(--ag-card);border-color:var(--ag-line);color:var(--ag-accent)}.ag-gallery-controls>.ag-input{width:230px}.ag-recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ag-recipe{display:flex;flex-direction:column;padding:25px;background:var(--ag-card);border:1px solid var(--ag-line);border-radius:12px;min-width:0;transition:border-color .15s,box-shadow .15s}.ag-recipe:focus-within,.ag-recipe:hover{border-color:var(--ag-line-strong);box-shadow:var(--ag-shadow)}.ag-recipe-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:23px;flex-wrap:wrap}.ag-recipe-top .ag-eyebrow{margin:0;font-size:11px}.ag-recipe h3{font-family:var(--ag-display);font-weight:600;letter-spacing:-.025em;font-size:20px;line-height:1.4;margin-bottom:11px}.ag-recipe>p{font-size:12px;color:var(--ag-muted);line-height:1.8;min-height:44px}.ag-source-pills{display:flex;flex-wrap:wrap;gap:5px;margin:20px 0}.ag-source-pills span{padding:3px 7px;border-radius:4px;background:var(--ag-soft);color:var(--ag-muted);font-size:11px}.ag-recipe-flow{display:grid;gap:10px;padding:17px 0 24px;font-size:11px;color:var(--ag-muted)}.ag-recipe-flow b{font-size:11px;color:var(--ag-accent);font-weight:500;margin-right:7px}.ag-recipe footer{margin-top:auto;border-top:1px solid var(--ag-line);padding-top:17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.ag-recipe footer>span{font-size:11px;color:var(--ag-muted);max-width:100px}.ag-recipe .ag-btn{font-size:11px;padding:8px 12px;min-height:34px}.ag-component-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0}.ag-component{display:flex;flex-direction:column;gap:14px}.ag-component .ag-heading{align-items:flex-start;flex-direction:column;margin:0}.ag-component h3{margin:0}.ag-component p{font-size:12px}.ag-component details{margin-top:auto;font-size:11px;color:var(--ag-muted)}.ag-component summary{cursor:pointer}.ag-component code{display:block;font-size:11px;padding-top:8px;overflow-wrap:anywhere}.ag-component-future{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--ag-line);padding:30px 0}.ag-component-future h3{font-size:17px;font-weight:500;margin-bottom:12px}.ag-component-future p{max-width:760px;font-size:12px;color:var(--ag-muted);line-height:1.8}
.ag-dialog{width:min(1120px,96vw);max-width:1120px}.ag-builder-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:38px}.ag-builder-basics{padding-right:28px;border-right:1px solid var(--ag-line)}.ag-builder-basics .ag-inline{grid-template-columns:1fr;gap:0}.ag-builder-basics .ag-notice{font-size:11px}.ag-builder-basics .ag-field{font-size:11px}.ag-design-heading h3{font-family:var(--ag-display);font-size:23px;font-weight:500;letter-spacing:-.025em}.ag-design-heading p{font-size:12px;color:var(--ag-muted);line-height:1.8;margin:9px 0 25px}.ag-design-section{border-top:1px solid var(--ag-line);padding:25px 0 4px;margin-top:24px}.ag-design-section h4{font-size:13px;font-weight:600;margin-bottom:17px}.ag-design-section h4>span{font-size:11px;color:var(--ag-accent);margin-right:10px}.ag-design-section .ag-heading{margin-bottom:12px;min-height:0}.ag-design-section .ag-heading h4{margin:0}.ag-source-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.ag-source-choices label{display:flex;align-items:center;gap:9px;border:1px solid var(--ag-line);padding:10px;border-radius:7px;font-size:11px;cursor:pointer}.ag-source-choices label:has(:checked){background:var(--ag-tint);border-color:var(--ag-art)}#ag-design input[type=checkbox]{accent-color:var(--ag-primary);width:14px;height:14px;flex-shrink:0}.ag-design-section>small,.ag-plan-result>small{font-size:11px;color:var(--ag-muted);line-height:1.8;display:block}.ag-workflow-input{display:grid;grid-template-columns:110px minmax(0,1fr) auto 20px;gap:9px;align-items:center;margin-bottom:12px}.ag-workflow-input>label{font-size:11px;color:var(--ag-muted);min-width:0}.ag-workflow-input .ag-input{width:100%;margin-top:5px;font-size:11px}.ag-required-check{display:flex;align-items:center;gap:5px;padding-top:14px}.ag-workflow-input>.ag-link{font-size:20px;justify-content:center}.ag-workflow-steps{display:grid;gap:14px}.ag-workflow-step{border:1px solid var(--ag-line);border-radius:9px;background:var(--ag-card);padding:18px}.ag-step-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.ag-step-number{color:var(--ag-accent);font-family:var(--ag-display);font-size:18px}.ag-step-title{flex:1;font-size:11px;color:var(--ag-muted);min-width:0}.ag-step-title .ag-input{width:100%;font-size:13px;margin-top:5px}.ag-step-heading>.ag-link{font-size:20px;min-width:24px}.ag-workflow-step .ag-field{margin-bottom:14px;font-size:11px}.ag-workflow-step .ag-input{font-size:12px;width:100%}.ag-workflow-step .ag-inline{gap:12px}.ag-dependencies{border:0;padding:0;margin:4px 0 12px;display:flex;flex-wrap:wrap;gap:8px 15px;min-width:0}.ag-dependencies legend{font-size:11px;color:var(--ag-muted);margin-bottom:10px}.ag-dependencies legend span{font-size:11px;margin-left:8px}.ag-dependencies label{display:flex;align-items:center;gap:6px;font-size:11px;overflow-wrap:anywhere}.ag-add-step{width:100%;border:1px dashed var(--ag-line-strong);border-radius:7px;background:transparent;padding:12px;color:var(--ag-accent);font-size:11px;cursor:pointer;margin:14px 0 10px}.ag-add-step:disabled,.ag-link:disabled{opacity:.4;cursor:not-allowed}.ag-plan-actions{display:flex;align-items:center;gap:15px;margin:25px 0 10px}.ag-plan-actions>span{font-size:11px;color:var(--ag-muted);max-width:220px}.ag-plan-result{background:var(--ag-soft);border:1px solid var(--ag-line);border-radius:10px;padding:22px;margin-top:20px}.ag-plan-result h4{font-size:18px;font-weight:500;margin-bottom:18px}.ag-plan-stages{display:grid;gap:8px}.ag-plan-stages>div{border-left:2px solid var(--ag-art);padding:6px 12px}.ag-plan-stages span{display:block;font-size:11px;color:var(--ag-muted);margin-bottom:4px}.ag-plan-stages strong{font-weight:500;font-size:12px;overflow-wrap:anywhere}.ag-plan-result p{font-size:11px;color:var(--ag-muted);line-height:1.8;margin:18px 0}.ag-plan-result details{font-size:11px;margin:18px 0}.ag-plan-result summary{cursor:pointer}.ag-plan-result pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;font-size:11px;padding:15px 0}.ag-plan-result .ag-actions{justify-content:flex-start;flex-wrap:wrap;margin-bottom:12px}.ag-card-bottom{flex-wrap:wrap}
@media(max-width:1150px){.ag-recipe-grid,.ag-component-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-tabs{gap:20px}.ag-tabs-note{display:none}.ag-builder-grid{grid-template-columns:260px minmax(0,1fr);gap:24px}.ag-builder-basics{padding-right:22px}.ag-workflow-input{grid-template-columns:95px minmax(0,1fr) 20px}.ag-required-check{grid-column:1/3;padding-top:0}.ag-workflow-input>.ag-link{grid-column:3;grid-row:1}}
@media(max-width:800px){.ag-studio-intro{grid-template-columns:1fr;gap:25px}.ag-studio-note{padding:0 22px}.ag-gallery-controls{align-items:stretch;flex-direction:column}.ag-gallery-controls>.ag-input{width:100%}.ag-builder-grid{grid-template-columns:1fr}.ag-builder-basics{border-right:0;border-bottom:1px solid var(--ag-line);padding:0 0 20px}.ag-tabs{overflow-x:auto}.ag-dialog{width:100vw;max-width:100vw}}
@media(max-width:640px){.ag-studio-intro{padding-top:0}.ag-studio-intro h2{font-size:32px}.ag-recipe-grid,.ag-component-grid{grid-template-columns:1fr}.ag-recipe{padding:23px}.ag-recipe>p{min-height:0}.ag-component-future{align-items:flex-start;flex-direction:column}.ag-source-choices{grid-template-columns:1fr}.ag-workflow-input .ag-input,.ag-workflow-step .ag-input,#ag-design .ag-field>.ag-input{font-size:16px}.ag-plan-actions{align-items:flex-start;flex-direction:column}.ag-plan-actions>span{max-width:none}.ag-workflow-step{padding:14px}.ag-studio-intro .ag-eyebrow{font-size:11px}.ag-category-tabs button{padding:10px;font-size:11px}.ag-gallery-controls>.ag-input{font-size:16px}.ag-dialog-body{padding-bottom:90px}}
/* Seats: the truth from the seat host, painted in place */
/* A hidden control stays hidden: .ag-btn's display would otherwise beat the [hidden] attribute */
#tab-agents [hidden]{display:none!important}
.ag-seat-dot.on{background:#3a8f5a}
[data-seat-state][data-state="connected"]{color:#2f7a4c;border-color:#9fd1b2}
[data-seat-state][data-state="denied"],[data-seat-state][data-state="error"],[data-seat-state][data-state="unavailable"]{color:var(--ag-accent)}
.ag-seat-off{opacity:.62}
[data-seat-tag]{font-size:11px;color:var(--ag-muted)}
.ag-seat-hint{display:block;margin-top:8px;font-size:11px;line-height:1.6;color:var(--ag-muted)}
.ag-seat-detail{font-size:12px;color:var(--ag-muted);line-height:1.7;min-height:2.4em}
.ag-seat-login{margin:14px 0 18px;padding:14px 16px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-soft);font-size:12px;line-height:1.7}
.ag-seat-login p{margin:0 0 6px}
.ag-seat-login code{font-size:16px;letter-spacing:.08em;padding:4px 8px;border:1px solid var(--ag-line);border-radius:6px;background:var(--ag-card)}
.ag-seat-login-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0}
.ag-seat-login-actions .ag-input{flex:1;min-width:220px}
.ag-seat-login-msg{margin:0;color:var(--ag-muted)}
/* Runs: the watch screen and the Activity list */
.ag-run-section{margin:22px 0}
.ag-run-section h4{margin:0 0 10px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ag-muted)}
/* The run screen is header / scrolling body / footer, whatever wraps them */
.ag-run-dialog .ag-run-frame{display:flex;flex-direction:column;height:100%}
/* Not .ag-required: the workflow editor positions that one absolutely, and it floated to the dialog's corner */
.ag-run-required{font-size:11px;font-weight:400;color:var(--ag-accent);margin-left:6px}
.ag-run-seat{display:grid;grid-template-columns:auto 1fr minmax(160px,220px);gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--ag-line)}
.ag-run-seat small{display:block;color:var(--ag-muted);font-size:11px;margin-top:2px}
.ag-run-steps{list-style:none;margin:0;padding:0}
.ag-run-step{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--ag-line)}
.ag-run-step small{display:block;color:var(--ag-muted);font-size:11px;margin-top:2px}
.ag-run-error-text{margin:6px 0 0;font-size:12px;color:var(--ag-accent)}
.ag-run-stream{margin:0;padding:14px 16px;max-height:320px;overflow:auto;white-space:pre-wrap;word-break:break-word;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--ag-soft);border:1px solid var(--ag-line);border-radius:8px;color:var(--ag-ink)}
.ag-notice-warn{border-color:var(--ag-accent)}
.ag-run-result .ag-result{padding:18px 22px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);font-size:14px;line-height:1.7}
.ag-run-result .ag-result h1{font-size:22px;margin:0 0 14px}
.ag-run-result .ag-result h2{font-size:17px;margin:20px 0 8px}
.ag-run-result .ag-result h3{font-size:14px;margin:16px 0 6px}
.ag-run-result .ag-result p{margin:0 0 10px}
.ag-run-result .ag-result ul{margin:0 0 10px 20px}
.ag-run-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:18px}
.ag-run-card .ag-card-top small{color:var(--ag-muted);font-size:11px}
.ag-badge[data-state="running"],.ag-badge[data-state="queued"]{color:#8a5a12;border-color:#e2c07a}
.ag-badge[data-state="awaiting_review"]{color:#2f5e9e;border-color:#a9c3e6}
.ag-badge[data-state="succeeded"],.ag-badge[data-state="completed"]{color:#2f7a4c;border-color:#9fd1b2}
.ag-badge[data-state="failed"],.ag-badge[data-state="cancelled"]{color:var(--ag-accent)}
.ag-runs{margin-bottom:34px}
@media print{body>*:not(#tab-agents):not(#jag-print-root){display:none!important}.ag-run-dialog{position:static;border:0;box-shadow:none;max-width:none;width:auto}.ag-run-dialog .ag-dialog-head,.ag-run-dialog .ag-dialog-foot,.ag-run-dialog .ag-run-steps-wrap,.ag-run-dialog .ag-run-steps,.ag-run-dialog .ag-run-stream{display:none!important}}
.ag-run-when{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:10px}
.ag-run-schedule{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:6px}
.ag-run-schedule .ag-dependencies{grid-column:1/-1}
.ag-builder-dialog .ag-run-frame{display:flex;flex-direction:column;height:100%}
.ag-builder-q{border:1px solid var(--ag-line);border-radius:8px;padding:14px 16px;margin:0 0 16px}
.ag-builder-q legend{font-size:13px;font-weight:600;padding:0 6px}
.ag-builder-q .ag-provider-option{display:block;margin:6px 0}
.ag-builder-q .ag-input[type=text]{margin:4px 0 0 24px;width:calc(100% - 24px)}
.ag-builder-thinking{padding:40px 0;text-align:center}
.ag-builder-thinking strong{display:block;font-size:16px;margin-bottom:8px}
/* The header's Build button does not fit a phone; the library toolbar carries it there */
@media(max-width:640px){.ag-header-actions [data-ag="build"]{display:none}}

/* Reading view + "Ask about this brief" (owner requirement 2026-09-25): the brief takes three
   quarters of the page, the chat the rest. The chat (agents-ask.js) is a SIBLING of .ag-run-frame
   inside the dialog, so the run screen's rebuilds never touch it. */
.ag-run-dialog[open]{display:flex}
.ag-run-dialog>.ag-run-frame{flex:1;min-width:0}
.ag-run-dialog[open].ag-reading{width:100vw;max-width:100vw;display:grid;grid-template-columns:minmax(0,3fr) minmax(320px,1fr);grid-template-rows:minmax(0,1fr)}
.ag-run-dialog.ag-reading>.ag-run-frame{min-width:0;min-height:0;height:100%}
.ag-run-dialog.ag-reading .ag-run-result .jag-product{max-width:1180px;margin:0 auto}
.ag-run-dialog.ag-reading .ag-run-steps-wrap{max-width:1180px;margin-left:auto;margin-right:auto}
.ag-run-dialog.ag-reading .ag-dialog-head [data-run="reading"]{background:var(--ag-soft);color:var(--ag-accent)}
.ag-run-ask{display:none}
.ag-run-dialog.ag-reading>.ag-run-ask{display:flex;flex-direction:column;height:100dvh;min-width:0;border-left:1px solid var(--ag-line);background:var(--ag-bg)}
/* The pa- bubble, composer and markdown rules in styles.css read these tokens; the Agents palette
   maps onto them one for one (see line 1). */
.ag-run-ask{--pa-canvas:var(--ag-bg);--pa-surface:var(--ag-card);--pa-glass:var(--ag-soft);--pa-glass-2:var(--ag-tint);--pa-stroke:var(--ag-line);--pa-stroke-strong:var(--ag-line-strong);--pa-text:var(--ag-ink);--pa-text-2:var(--ag-muted);--pa-text-3:var(--ag-muted);--pa-brand:var(--ag-accent);--pa-accent:var(--ag-accent);--pa-tint:var(--ag-tint);--pa-danger:#a3323d;--pa-font:Inter,'Segoe UI',sans-serif;--pa-display:var(--ag-display);--pa-mono:ui-monospace,Consolas,monospace;font-size:13px;color:var(--ag-ink)}
.ag-ask-head{padding:20px 20px 14px;border-bottom:1px solid var(--ag-line);background:var(--ag-card)}
.ag-ask-head strong{display:block;font:500 17px/1.3 var(--ag-display);letter-spacing:-.02em;margin:2px 0 6px}
.ag-ask-head .ag-sub{margin:0;font-size:11px;line-height:1.6}
.ag-run-ask .pa-chat{flex:1;overflow:auto;padding:18px 20px;display:flex;flex-direction:column;gap:16px;scrollbar-width:thin}
.ag-run-ask .pa-empty{padding:6px 0}
.ag-run-ask .pa-empty-sub{font-size:12px;color:var(--ag-muted);line-height:1.7;margin-bottom:14px}
.ag-run-ask .pa-empty-hints{display:grid;grid-template-columns:1fr;gap:8px}
.ag-run-ask .pa-hint{text-align:left}
.ag-run-ask .pa-composer-wrap{padding:12px 16px 14px;border-top:1px solid var(--ag-line);background:var(--ag-card)}
.ag-run-ask .pa-input{width:100%;border:0;background:transparent;color:var(--pa-text);padding:0;resize:none;box-shadow:none;font:inherit;font-size:13px;line-height:1.6;outline:0}
.ag-run-ask .pa-footnote{margin-top:8px;font-size:11px;color:var(--ag-muted);line-height:1.6}
.ag-ask-quote{display:flex;gap:8px;align-items:flex-start;margin:0 0 8px;font-size:12px}
.ag-ask-quote blockquote{flex:1;margin:0;padding:6px 10px;border-left:2px solid var(--ag-accent);color:var(--ag-muted);max-height:96px;overflow:auto;white-space:pre-wrap;line-height:1.55}
.ag-ask-quote small{display:block;color:var(--ag-accent);font-size:11px;margin-bottom:2px}
.ag-ask-chip{position:absolute;z-index:2;padding:7px 12px;border:0;border-radius:999px;background:var(--ag-ink);color:var(--ag-bg);font:600 11px/1.2 Inter,'Segoe UI',sans-serif;cursor:pointer;box-shadow:0 4px 14px #0003;white-space:nowrap}
.ag-ask-chip:hover{background:var(--ag-accent)}
/* ≤900px: the chat is a BOTTOM SHEET (2026-10-04, replacing a fixed under-half-height panel that left neither the brief
   nor the chat room to read). Folded, it is one bar under the brief; pressed, or the moment anything is
   asked, it opens to most of the screen. No transition: it moves only when the person acts. */
.ag-ask-sheet-bar{display:none}
@media(max-width:900px){
  .ag-run-dialog[open].ag-reading{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .ag-run-dialog.ag-reading>.ag-run-ask{height:auto;max-height:none;border-left:0;border-top:1px solid var(--ag-line-strong);box-shadow:0 -6px 24px #1f1a1714}
  /* Was 78dvh. Confirmed live with a real finished brief: the remaining 22dvh
     has to hold the WHOLE brief frame -- its own header, footer and body
     together -- which is barely enough for the title, let alone a line of
     the actual text. Asking a question about a brief you can no longer see
     even the heading of defeats the point of asking it. 50/50 keeps the chat
     properly usable (still ~420px on a typical phone) while leaving the
     brief something real to read instead of just its own title. */
  .ag-run-dialog.ag-reading>.ag-run-ask.ag-ask-open{height:50dvh}
  .ag-run-ask .ag-ask-sheet-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:10px 16px;border:0;background:var(--ag-card);color:var(--ag-ink);font:600 14px/1.3 Inter,'Segoe UI',sans-serif;cursor:pointer;text-align:left}
  .ag-run-ask .ag-ask-sheet-bar small{font-size:12px;font-weight:600;color:var(--ag-accent)}
  .ag-run-ask .ag-ask-sheet-bar::before{content:'';position:absolute;left:50%;top:5px;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--ag-line-strong)}
  .ag-run-ask{position:relative}
  .ag-run-ask:not(.ag-ask-open)>:not(.ag-ask-sheet-bar){display:none!important}
  .ag-run-ask.ag-ask-open .ag-ask-head .ag-sub{display:none}
  .ag-run-ask.ag-ask-open .ag-ask-head{padding:10px 16px}
}
@media print{.ag-run-ask,.ag-ask-chip{display:none!important}.ag-run-dialog[open].ag-reading{display:block;width:auto;max-width:none}}
/* Library cards: an agent's badges sit together at the right; a recurring workflow says so (2026-09-26). */
.ag-card-badges{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.ag-badge-recurring{color:var(--ag-accent);border-color:var(--ag-accent)}
/* Web research window under "Choose your sources" (2026-09-26). */
.ag-web-window{margin:4px 0 12px;max-width:420px}
/* Team agents + Follow the Money (agents-follow-money.js): one calm column — the Claude account, the agent cards,
   then inside Follow the Money a progress strip, three short steps and My briefs. Every part says what it does in one line. */
.ag-team-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 15px;margin:-14px 0 22px;border:1px solid var(--ag-accent);border-radius:9px;background:var(--ag-tint);font-size:12px;line-height:1.6}.ag-team-banner span{flex:1;min-width:200px}
.ag-team-toggle[aria-pressed=true]{border-color:var(--ag-accent);color:var(--ag-accent)}
.ag-header-follow{margin-bottom:24px}
.fm-page{max-width:860px}
.fm-help{margin:3px 0 0;font-size:12px;line-height:1.6;color:var(--ag-muted);max-width:none}
.fm-section-title{font-family:var(--ag-display);font-size:13px;font-weight:600;letter-spacing:.02em;margin:26px 0 12px}
/* The Claude account: one line */
.fm-seat-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:10px 14px;margin:0 0 14px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card)}
.fm-seat-strip .ag-seat-dot{width:9px;height:9px;margin:0}
.fm-seat-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fm-seat-line strong{font-size:12.5px}
.fm-seat-strip .ag-seat-detail{min-height:0;font-size:11.5px;line-height:1.5;margin:1px 0 0}
.fm-seat-strip .ag-actions{gap:8px}.fm-seat-strip .ag-btn{min-height:32px;padding:6px 12px}
.fm-seat-strip .ag-seat-login{grid-column:1/-1;margin:8px 0 2px}
/* The workspace landing: flat tiles, one row per agent, the latest briefs — 8px corners, 1px lines, no shadows */
.fm-home{max-width:1100px}
.fm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 26px}
.fm-tile{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);min-width:0}
.fm-tile-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fm-tile-label{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ag-muted)}
.fm-tile-value{font-family:var(--ag-display);font-size:24px;font-weight:600;letter-spacing:-.03em;line-height:1.15}
.fm-tile-note{margin:0;font-size:11px;color:var(--ag-muted);line-height:1.5}
.fm-tile .ag-seat-dot{width:8px;height:8px;margin:0}
.fm-tile-seat-state{font-size:16px}.fm-tile-seat-state[data-state=connected]{color:#2f7a4c}.fm-tile-seat-state[data-state=denied],.fm-tile-seat-state[data-state=error],.fm-tile-seat-state[data-state=unavailable]{color:var(--ag-accent)}
.fm-tile-seat .ag-seat-detail{min-height:0;font-size:11px;line-height:1.5;margin:0}
.fm-tile-seat .ag-actions{margin-top:auto;padding-top:6px;gap:8px}.fm-tile-seat .ag-btn{min-height:30px;padding:5px 11px;font-size:11.5px}
.fm-tile-seat .ag-seat-login{margin:8px 0 0}
/* The sign-in box needs room: while it is open the account tile takes the whole row */
.fm-tile-seat:has(.ag-seat-login:not([hidden])){grid-column:1/-1}
.fm-ws-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid var(--ag-line)}
.fm-ws-head h2{font-family:var(--ag-display);font-size:16px;font-weight:600;letter-spacing:-.02em}.fm-ws-head .fm-help{margin-top:2px}
.fm-agent-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(440px,1fr));gap:10px;margin:0 0 26px}
.fm-agent-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);min-width:0}
.fm-agent-row:hover{border-color:var(--ag-line-strong)}
.fm-agent-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--ag-tint);color:var(--ag-accent);flex:none}
.fm-agent-body{min-width:0}.fm-agent-body h3{font-size:14px;font-weight:600;letter-spacing:-.01em;margin:2px 0 3px}.fm-agent-body p{margin:0;font-size:12px;line-height:1.6;color:var(--ag-ink)}
.fm-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:11px;color:var(--ag-muted)}.fm-meta span:empty{display:none}
.fm-agent-actions .ag-btn{min-height:32px;padding:6px 14px}
/* Follow the Money */
.fm-back{margin:0 0 10px}
.fm-intro{margin:0 0 16px}.fm-intro h2{font-family:var(--ag-display);font-size:24px;font-weight:600;letter-spacing:-.03em;outline:none}
.fm-stepper{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.fm-stepper li{display:flex;gap:9px;align-items:flex-start;padding:9px 11px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);min-width:0}
.fm-stepper strong{display:block;font-size:12px}.fm-stepper small{display:block;font-size:11px;line-height:1.45;color:var(--ag-muted)}
.fm-dot{flex:none;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;background:var(--ag-soft);color:var(--ag-muted)}
.fm-stepper .fm-now{border-color:var(--ag-accent);background:var(--ag-tint)}.fm-stepper .fm-now .fm-dot{background:var(--ag-accent);color:#fff}
.fm-stepper .fm-done .fm-dot{background:var(--ai-ok,#2f6b4f);color:#fff}
.fm-block{border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);padding:18px 20px;margin:0 0 10px;min-width:0}
.fm-block-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.fm-num{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--ag-tint);color:var(--ag-accent);font-weight:700;font-size:12px}
.fm-block-head h3{font-family:var(--ag-display);font-size:15px;font-weight:600;letter-spacing:-.01em;margin:2px 0 0}
.fm-label{display:block;font-size:12px;font-weight:600;margin:14px 0 6px}
.fm-search{display:flex;flex-direction:column;gap:6px}
.fm-results{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow-y:auto}
.fm-result{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:1px solid var(--ag-line);border-radius:8px;padding:9px 12px;background:var(--ag-bg);color:var(--ag-ink);cursor:pointer;font:inherit;font-size:12px;overflow-wrap:anywhere}
.fm-result:hover,.fm-result:focus-visible{border-color:var(--ag-accent);background:var(--ag-tint)}
.fm-result small,.fm-chip small{color:var(--ag-muted);font-size:11px;font-weight:400}
.fm-empty{margin:2px 0;font-size:11.5px;color:var(--ag-muted)}
.fm-chips{display:flex;flex-direction:column;gap:6px;margin-top:10px}.fm-chips:empty{display:none}
.fm-chip{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border:1px solid var(--ag-accent);border-radius:8px;padding:8px 10px 8px 12px;background:var(--ag-tint);font-size:12px;overflow-wrap:anywhere}.fm-chip>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.fm-chip-x{flex-shrink:0;border:0;background:none;color:var(--ag-muted);font-size:13px;cursor:pointer;padding:2px 4px;border-radius:5px}.fm-chip-x:hover{color:var(--ag-accent)}
.fm-focus{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fm-focus-option{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--ag-line);border-radius:9px;padding:12px 13px;cursor:pointer;background:var(--ag-bg);font-size:12px;min-width:0}
.fm-focus-option input{margin-top:2px;accent-color:var(--ag-accent)}
.fm-focus-option span{display:flex;flex-direction:column;gap:3px}.fm-focus-option small{color:var(--ag-muted);font-size:11px;line-height:1.5}
.fm-focus-option.fm-on{border-color:var(--ag-accent);background:var(--ag-tint)}
.fm-options{border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);margin:0 0 12px}
.fm-options>summary{display:flex;align-items:center;gap:10px;padding:12px 20px;cursor:pointer;font-size:12.5px;font-weight:600;list-style:none}
.fm-options>summary::-webkit-details-marker{display:none}
.fm-options>summary::before{content:'▸';color:var(--ag-muted);transition:transform .15s}.fm-options[open]>summary::before{transform:rotate(90deg)}
.fm-options>summary small{font-weight:400;color:var(--ag-muted);font-size:11.5px}
.fm-options-body{padding:2px 20px 4px}
.fm-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fm-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 6px}.fm-actions .fm-help{flex:1;min-width:220px;margin:0}
.fm-skip{margin:2px 0 0}
.fm-thinking{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--ag-muted)}
.fm-summary{font-size:12.5px;line-height:1.65;margin:0 0 6px}
.fm-recap{font-size:11.5px;color:var(--ag-muted);margin:0 0 12px;overflow-wrap:anywhere}
.fm-plan{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:10px}
.fm-plan-step{border:1px solid var(--ag-line);border-radius:10px;padding:12px 14px;background:var(--ag-bg)}
.fm-plan-head{display:grid;grid-template-columns:auto minmax(0,1fr) 110px;gap:10px;align-items:center}
.fm-step-n{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;background:var(--ag-soft);color:var(--ag-accent)}
.fm-plan-head strong{display:block;font-size:13px}.fm-plan-head small{display:block;font-size:11.5px;color:var(--ag-muted);line-height:1.5}
.fm-step-model{min-height:32px;padding:5px 9px}
.fm-tailor{display:block;margin:10px 0 0;font-size:11.5px;font-weight:600}.fm-tailor em{font-weight:400;color:var(--ag-muted);font-style:normal}.fm-tailor textarea{display:block;margin-top:5px;width:100%}
.fm-core{font-size:11.5px;color:var(--ag-muted);margin-top:8px}.fm-core summary{cursor:pointer;color:var(--ag-accent);font-weight:600}.fm-core p{margin:6px 0 0;line-height:1.7}
.fm-page textarea.ag-input{overflow:hidden}
.fm-charcount{display:block;margin-top:4px;font-size:11px;font-weight:400;color:var(--ag-muted);text-align:right}
.fm-question{border:0;padding:0;margin:0 0 16px;min-width:0}.fm-question legend{font-size:12.5px;font-weight:600;margin-bottom:6px}
.fm-radio{display:flex;align-items:center;gap:8px;font-size:12px;margin:6px 0;flex-wrap:wrap}.fm-other{flex:1;min-width:160px;min-height:32px;padding:5px 9px}
.fm-briefs{margin-top:28px}.fm-briefs-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.fm-briefs-head h2{font-family:var(--ag-display);font-size:16px;font-weight:600}
.fm-brief-list{list-style:none;margin:0;padding:0;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-card);overflow:hidden}.fm-briefs .fm-brief-list{margin-top:12px}
.fm-brief{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 14px;border-top:1px solid var(--ag-line)}.fm-brief:first-child{border-top:0}
.fm-brief strong{display:block;font-size:12.5px;overflow-wrap:anywhere}.fm-brief small{display:block;font-size:11px;color:var(--ag-muted);line-height:1.5;overflow-wrap:anywhere}
.fm-brief .ag-btn{min-height:32px;padding:6px 14px}
.fm-empty-state{margin:0;padding:14px;border:1px dashed var(--ag-line-strong);border-radius:8px;font-size:12px;color:var(--ag-muted);text-align:center}.fm-briefs .fm-empty-state{margin-top:12px}
.ag-ask-model{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:11px;color:var(--ag-muted)}.ag-ask-model .ag-input{width:auto;min-height:30px;padding:4px 8px}
/* A select is as wide as its longest option unless told otherwise — which pushed the page sideways on a phone. */
.fm-page .ag-input{max-width:100%;min-width:0}.fm-page select.ag-input{width:100%}.fm-page .ag-field{min-width:0}
@media(max-width:760px){.fm-stepper{grid-template-columns:repeat(2,minmax(0,1fr))}.fm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fm-agent-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.fm-block{padding:15px 14px}.fm-options>summary{padding:12px 14px}.fm-options-body{padding:2px 14px 4px}.fm-focus,.fm-inline{grid-template-columns:minmax(0,1fr)}.fm-plan-head{grid-template-columns:auto minmax(0,1fr)}.fm-step-model{grid-column:1/-1}.fm-seat-strip{grid-template-columns:auto minmax(0,1fr)}.fm-seat-strip .ag-actions{grid-column:1/-1}.fm-brief{grid-template-columns:minmax(0,1fr) auto}.fm-brief .ag-badge{display:none}.fm-stepper small{display:none}.fm-stats{grid-template-columns:minmax(0,1fr)}.fm-agent-row{grid-template-columns:auto minmax(0,1fr)}.fm-agent-actions{grid-column:1/-1}.ag-team-toggle{font-size:11px;padding:8px 10px}}
/* The workshop header is already full at phone width; Team view stays reachable from a desktop, and its banner's Exit link works everywhere. */
@media(max-width:640px){.ag-header:not(.ag-header-follow) .ag-team-toggle{display:none}}
/* What to follow: Solicitations | Appropriations Requests | Program Offices — one segmented choice above the search. */
/* The 1px gaps over the line colour draw the dividers, so two rows on a narrow screen still read as one control. */
.fm-subjects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--ag-line);border:1px solid var(--ag-line);border-radius:9px;overflow:hidden;margin:0 0 8px}
.fm-subject{position:relative;display:flex;align-items:center;justify-content:center;padding:10px 12px;font-size:12.5px;font-weight:600;cursor:pointer;background:var(--ag-bg);color:var(--ag-muted);text-align:center}
.fm-subject:hover{color:var(--ag-ink)}
.fm-cap{display:flex;gap:8px}.fm-cap .ag-input{flex:1}
.fm-cap+.fm-results:empty{display:none}
.fm-subject input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.fm-subject:has(input:focus-visible){outline:2px solid var(--ag-accent);outline-offset:-2px}
.fm-subject.fm-on{background:var(--ag-tint);color:var(--ag-accent)}
.fm-subject-help{margin:0 0 10px}
/* The intro-call brief (2026-10-20): its four sections, in place of the focus picker. */
.fm-intro-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:12.5px;line-height:1.5}
.fm-intro-list small{color:var(--ag-muted);font-size:11.5px}
.fm-optional{font-weight:400;color:var(--ag-muted);font-size:11px;margin-left:4px}
@media(max-width:760px){.fm-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Team research workspace. One palette for the whole tab (2026-10-04): the team view used to repaint
   everything teal; it now reads the shared --ai-* tokens like the rest of the workspace, and its hero
   is the shared deep navy with the mint call to action (--fm-deep / --fm-deep-cta). */
.ag-shell:has(#ag-follow-host){max-width:1456px;padding-top:28px}
.ag-header-follow{padding-bottom:24px;border-bottom:1px solid var(--ag-line);margin-bottom:28px}
.ag-header-follow h1{font-size:30px;letter-spacing:-.045em}
.ag-header-follow .ag-sub{max-width:610px}
.fm-page{max-width:none}
.fm-page .ag-btn{min-height:42px;border-radius:9px;font-size:12px}
.fm-page .ag-link{min-height:36px;font-size:12px}
.fm-page .fm-help{font-size:12px;line-height:1.65}
.fm-glyph{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.fm-eyebrow{display:block;color:var(--ag-accent);font-size:11px;font-weight:700;letter-spacing:.13em;line-height:1.6}
.fm-welcome{margin:0 0 26px}
.fm-welcome h2{font-family:var(--ag-display);font-weight:600;font-size:clamp(24px,2.6vw,34px);letter-spacing:-.04em;line-height:1.25;margin:8px 0 10px}
.fm-welcome p{color:var(--ag-muted);font-size:13px;max-width:700px;line-height:1.7;margin:0}
.fm-stats{grid-template-columns:1.35fr repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--ag-line);border-radius:14px;background:var(--ag-card);overflow:hidden;margin-bottom:32px}
.fm-tile{padding:20px 24px;border:0;border-left:1px solid var(--ag-line);border-radius:0;background:transparent;gap:9px}
.fm-tile:first-child{border-left:0}
.fm-tile-value{font-size:30px;font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.fm-tile-label{font-size:11px;letter-spacing:.09em}
.fm-tile-note{font-size:11px}
.fm-tile-seat .fm-tile-seat-state{font-size:18px;letter-spacing:-.02em}
.fm-tile-seat .ag-actions{padding-top:0}
.fm-tile-seat:has(.ag-seat-login:not([hidden])){border-bottom:1px solid var(--ag-line)}
.fm-ws-head{border:0;padding:0;margin-bottom:16px;align-items:center}
.fm-ws-head h2,.fm-briefs-head h2{font-size:18px;letter-spacing:-.025em}
.fm-ws-head>.fm-eyebrow{color:var(--ag-muted);font-size:11px}
.fm-agent-list{display:block;margin-bottom:34px}
.fm-agent-row{position:relative;isolation:isolate;overflow:hidden;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:44px;padding:36px 40px;border:1px solid #2a3f62;border-radius:18px;background:var(--fm-deep,#12284b);color:#f4f7fb;box-shadow:0 12px 28px #12284b12}
.fm-agent-row::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 100% 0,#7bd7b01f,transparent 65%)}
.fm-agent-row:hover{border-color:#47608a}
.fm-feature-label{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--fm-deep-cta,#7bd7b0)}
.fm-feature-label svg{width:20px;height:20px}
.fm-agent-body h3{font-family:var(--ag-display);font-size:clamp(28px,3vw,38px);font-weight:600;letter-spacing:-.045em;line-height:1.2;margin:18px 0 14px}
.fm-agent-body>p{color:#d3e2eb;font-size:14px;line-height:1.75;max-width:460px}
.fm-agent-inputs{font-size:12px;line-height:1.75;color:#aebfcd;margin-top:14px;max-width:430px}
.fm-agent-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:26px}
.fm-agent-actions .ag-btn.ag-primary{min-height:44px;background:var(--fm-deep-cta,#7bd7b0);border-color:var(--fm-deep-cta,#7bd7b0);color:#0f2a2a;padding:11px 18px;box-shadow:none}
.fm-agent-actions .ag-btn.ag-primary:hover{background:#a3e6c9;border-color:#a3e6c9}
.fm-agent-actions>span{font-size:11px;color:#c0d2df}
.fm-agent-row .fm-meta{color:#aebfcd;font-size:11px;margin-top:17px}
.fm-agent-row :focus-visible{outline-color:var(--fm-deep-cta,#7bd7b0)!important}
/* Request Review sits UNDER Follow the Money as a short box (owner request 2026-10-18): one band, the button on the right, a gap above. */
.fm-agent-row.rr-agent-compact{grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;margin-top:16px;padding:20px 28px;border-radius:14px}
.rr-agent-compact .fm-feature-label svg{width:18px;height:18px}
.rr-agent-compact .fm-agent-body h3{font-size:22px;letter-spacing:-.025em;line-height:1.25;margin:8px 0 4px}
.rr-agent-compact .fm-agent-body>p{font-size:13px;line-height:1.55;max-width:none}
.rr-agent-compact .fm-meta{margin-top:6px}
.rr-agent-compact .fm-agent-actions{margin-top:0;flex-direction:column;align-items:flex-end;gap:7px}
.rr-agent-compact .fm-agent-actions .ag-btn.ag-primary{min-height:40px;padding:9px 18px}
@media(max-width:760px){.fm-agent-row.rr-agent-compact{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px 20px}.rr-agent-compact .fm-agent-body h3{font-size:20px}.rr-agent-compact .fm-agent-actions{align-items:flex-start}.rr-agent-compact .fm-agent-actions>span{width:auto}}
.fm-map{padding:20px 24px 24px;border:1px solid #8bb9c52b;border-radius:13px;background:#08162e3b}
.fm-map-label{font-size:11px;font-weight:600;letter-spacing:.17em;color:#aec7d7;margin-bottom:20px}
.fm-map-node{position:relative;display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #53778788;border-radius:9px;background:#1c3560;color:#e6edf6;font-size:11px;min-width:0}
.fm-map-node>svg{flex-shrink:0;color:var(--fm-deep-cta,#7bd7b0)}
.fm-map-node strong{display:block;font-size:12px;font-weight:600}
.fm-map-node small{display:block;margin-top:3px;font-size:11px;color:#b6cbd8;line-height:1.6}
.fm-map-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0;position:relative}
.fm-map-branches::before,.fm-map-branches::after{content:'';position:absolute;height:24px;left:50%;width:1px;background:var(--fm-deep-cta,#7bd7b0);bottom:100%}
.fm-map-branches::after{top:100%;bottom:auto}
.fm-map-branches .fm-map-node{padding:13px 10px;gap:8px}
.fm-map-brief{border-color:#7bd7b099;background:#1d4152}
.fm-library-actions{display:flex;align-items:center;gap:20px}
.fm-library-actions .fm-glyph{width:15px;height:15px}
.fm-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 24px}
.fm-intro h2{font-size:34px;letter-spacing:-.04em;margin:7px 0 8px;line-height:1.2}
.fm-duration{display:flex;align-items:center;gap:9px;color:var(--ag-muted);font-size:11px;white-space:nowrap}
.fm-seat-strip{border-radius:10px;background:var(--ag-card);padding:14px 18px;margin-bottom:24px}
.fm-stepper{gap:0;margin:0 0 24px;border-bottom:1px solid var(--ag-line)}
.fm-stepper li{border:0;border-radius:0;background:transparent;padding:0 16px 17px;position:relative;align-items:center;gap:12px}
.fm-stepper li:first-child{padding-left:0}
.fm-stepper .fm-now{background:transparent}
.fm-stepper .fm-now::after{position:absolute;content:'';bottom:-1px;left:0;right:16px;height:2px;background:var(--ag-accent)}
.fm-stepper .fm-dot{width:28px;height:28px;font-size:11px;border:1px solid var(--ag-line);background:var(--ag-card)}
.fm-stepper .fm-now .fm-dot{background:var(--ag-accent);border-color:var(--ag-accent);color:var(--ag-card)}
.fm-stepper .fm-done .fm-dot{background:var(--ag-tint);border-color:var(--ag-tint);color:var(--ag-accent)}
.fm-stepper strong{font-size:12px;margin-bottom:3px}
.fm-stepper small{font-size:11px}
.fm-workbench{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:24px;align-items:start}
.fm-workbench-main{min-width:0}
.fm-block{padding:25px 26px;border-radius:13px;margin-bottom:16px}
.fm-block-head{gap:12px;margin-bottom:22px}
.fm-block-head h3{font-size:16px;letter-spacing:-.02em;margin:0}
.fm-block-head .fm-help{margin-top:4px}
.fm-num{border-radius:8px;width:30px;height:30px;font-size:12px}
.fm-subjects{gap:8px;border:0;border-radius:0;background:transparent;margin-bottom:12px;overflow:visible}
.fm-subject{flex-direction:column;gap:9px;border:1px solid var(--ag-line);border-radius:9px;padding:15px 7px;line-height:1.45;font-size:11px;justify-content:flex-start;background:var(--ag-card)}
.fm-subject .fm-glyph{width:21px;height:21px}
.fm-subject:hover{border-color:var(--ag-line-strong);background:var(--ag-soft)}
.fm-subject.fm-on{border-color:var(--ag-accent);box-shadow:inset 0 0 0 1px var(--ag-accent)}
.fm-subject:has(input:disabled),.fm-focus-option:has(input:disabled){cursor:default;opacity:.65}
.fm-page .ag-input{font-size:13px;min-height:44px;border-radius:8px}
.fm-page textarea.ag-input{line-height:1.7;resize:vertical}
.fm-label{font-size:12px;margin-top:22px}
.fm-results:not(:empty){padding:3px}
.fm-result{padding:12px 14px;font-size:13px;background:var(--ag-card);flex-shrink:0}
.fm-chip{padding:11px 12px;font-size:12px}
.fm-chip-x{min-width:32px;min-height:32px;margin:-4px -4px -4px 0}
.fm-focus{gap:9px}
.fm-focus-option{padding:16px 12px;gap:8px;background:var(--ag-card)}
.fm-focus-option strong{font-size:12px;line-height:1.5}
.fm-focus-option small{font-size:11px;line-height:1.7;margin-top:5px}
.fm-focus-option input{flex-shrink:0;margin-top:3px}
.fm-focus-option.fm-on{box-shadow:inset 0 0 0 1px var(--ag-accent)}
.fm-options{border-radius:12px;margin-bottom:20px}
.fm-options>summary{padding:16px 22px;flex-wrap:wrap}
.fm-options-body{padding:6px 22px}
.fm-actions{gap:14px;margin:16px 0 4px}
.fm-actions .ag-primary{padding:12px 20px;min-height:45px}
.fm-actions .fm-help{font-size:11px;min-width:180px}
.fm-skip{font-size:11px!important;color:var(--ag-muted);margin-top:4px}
.fm-outline{position:sticky;top:120px;padding:24px;border:1px solid var(--ag-line);border-radius:13px;background:var(--ag-card);box-shadow:var(--ag-shadow)}
#fm-title,#fm-briefs-title{scroll-margin-top:130px}
@media(max-height:820px){.fm-outline{position:static}}
.fm-outline h3{font-family:var(--ag-display);font-size:20px;letter-spacing:-.03em;font-weight:600;margin:8px 0}
.fm-outline-path{list-style:none;margin:24px 0;padding:0}
.fm-outline-path li{display:flex;align-items:flex-start;gap:12px;position:relative;padding-bottom:23px}
.fm-outline-path li:last-child{padding-bottom:0}
.fm-outline-path li:not(:last-child)::after{content:'';position:absolute;width:1px;left:16px;top:34px;bottom:1px;background:var(--ag-line)}
.fm-outline-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;background:var(--ag-tint);color:var(--ag-accent);border-radius:9px}
.fm-outline-icon svg{width:18px;height:18px}
.fm-outline-path strong{display:block;font-size:12px;line-height:1.5;margin-top:1px}
.fm-outline-path small{display:block;font-size:11px;color:var(--ag-muted);line-height:1.6;margin-top:3px}
.fm-scope{border-top:1px solid var(--ag-line);padding-top:18px;overflow-wrap:anywhere}
.fm-scope .fm-eyebrow{font-size:11px;color:var(--ag-muted)}
.fm-scope ul{margin:10px 0;padding-left:16px}
.fm-scope li{padding-bottom:5px;font-size:12px;line-height:1.6}
.fm-scope p{font-size:12px;line-height:1.65;margin-top:7px;color:var(--ag-muted)}
.fm-scope .fm-scope-client{color:var(--ag-accent);font-weight:600}
.fm-outline-foot{border-top:1px solid var(--ag-line);margin-top:18px;padding-top:18px;font-size:11px;line-height:1.7;color:var(--ag-muted)}
.fm-outline-foot strong{color:var(--ag-ink);font-size:11px;font-weight:600}
.fm-outline-foot p{margin:6px 0 12px}
.fm-outline-foot>span{display:block;color:var(--ag-accent);font-size:11px}
.fm-plan{gap:16px;margin-top:22px}
.fm-plan-step{padding:20px;background:var(--ag-card);border-radius:11px;position:relative}
.fm-plan-step:not(:last-child)::after{content:'';position:absolute;top:100%;height:17px;left:34px;width:1px;background:var(--ag-line-strong)}
.fm-plan-head{grid-template-columns:auto minmax(0,1fr) 100px;gap:12px}
.fm-step-n{width:28px;height:28px;border-radius:8px;background:var(--ag-tint)}
.fm-plan-head strong{font-size:14px;margin-bottom:3px}
.fm-plan-head small{font-size:12px;line-height:1.6}
.fm-tailor{margin-top:18px;font-size:12px;font-weight:500}
.fm-core{margin-top:12px;font-size:11px}
.fm-summary{font-size:14px;line-height:1.8}
.fm-recap{padding:12px 14px;background:var(--ag-soft);border-radius:8px;line-height:1.7;margin-top:12px}
.fm-radio{padding:12px;border:1px solid var(--ag-line);border-radius:8px;margin-top:10px;font-size:13px;cursor:pointer}
.fm-radio:has(>input:checked){border-color:var(--ag-accent);background:var(--ag-tint)}
.fm-radio>input{accent-color:var(--ag-accent)}
.fm-briefs{border-top:1px solid var(--ag-line);padding-top:28px;margin-top:36px}
.fm-brief-list{border-radius:12px}
.fm-brief{padding:18px 20px;gap:18px}
.fm-brief:hover{background:var(--ag-soft)}
.fm-brief strong{font-size:13px;font-weight:600;line-height:1.7}
.fm-brief small{margin-top:3px;font-size:11px;line-height:1.7}
.fm-brief .ag-badge{font-size:11px;border-radius:20px;padding:5px 10px;background:var(--ag-soft);color:var(--ag-ink)}
.fm-brief .ag-badge[data-state=awaiting_review]{background:var(--ag-tint);color:var(--ag-accent);border-color:var(--ag-accent)}
.fm-brief .ag-badge[data-state=running]{border-color:var(--ag-accent);color:var(--ag-accent)}
.fm-brief .ag-badge[data-state=failed]{background:#fff0eb;color:#9c3824;border-color:#dfb6a8}
.fm-empty-state{display:flex;justify-content:center;align-items:center;gap:18px;text-align:left;border-style:solid;border-color:var(--ag-line);background:var(--ag-card);border-radius:12px;padding:28px;color:var(--ag-muted);font-size:12px}
.fm-empty-state>.fm-glyph{width:32px;height:32px;color:var(--ag-accent)}
.fm-empty-state strong{display:block;font-size:14px;font-weight:600;color:var(--ag-ink)}
.fm-empty-state p{margin:5px 0 0;line-height:1.7;max-width:530px}
[data-appearance=dim] .fm-tile-seat-state[data-state=connected]{color:var(--fm-deep-cta,#7bd7b0)}
[data-appearance=dim] .fm-brief .ag-badge[data-state=failed]{background:#472e2c;color:#ffbcaa;border-color:#8d5b51}
@media(min-width:901px) and (max-width:1150px){
  .fm-workbench{grid-template-columns:minmax(0,1fr) 250px;gap:18px}
  .fm-block,.fm-outline{padding:20px}
  .fm-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fm-focus{grid-template-columns:1fr}
}
@media(max-width:1000px){
  .fm-agent-row{gap:24px;padding:28px}
  .fm-map{padding:18px}
  .fm-map-branches{grid-template-columns:1fr;gap:8px}
  .fm-tile{padding:18px}
}
@media(max-width:900px){
  .fm-workbench{grid-template-columns:minmax(0,1fr)}
  .fm-outline{position:static}
  .fm-outline-path{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .fm-outline-path li{padding:0}
  .fm-outline-path li::after{display:none}
  .fm-duration{display:none}
}
@media(max-width:760px){
  .fm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fm-tile:nth-child(3){border-left:0}.fm-tile:nth-child(n+3){border-top:1px solid var(--ag-line)}
  .fm-stepper{grid-template-columns:repeat(4,minmax(0,1fr))}
  .fm-stepper li{padding:0 8px 14px;gap:8px}
  .fm-stepper small{display:none}
  .fm-agent-row{grid-template-columns:minmax(0,1fr)}
  .fm-map{display:none}
  .fm-subjects{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:640px){
  .ag-shell:has(#ag-follow-host){padding:22px 16px 36px}
  .ag-header-follow{align-items:flex-start;margin-bottom:24px;padding-bottom:20px}
  .fm-welcome h2{font-size:26px;max-width:360px}.fm-welcome p{font-size:12px}
  .fm-stats{margin-bottom:26px}.fm-tile{padding:16px 14px}
  .fm-agent-row{padding:26px 22px;border-radius:14px}.fm-agent-body h3{font-size:32px}
  .fm-agent-actions{margin-top:22px}.fm-agent-actions>span{display:block;width:100%}
  .fm-ws-head>.fm-eyebrow{display:none}.fm-ws-head{gap:10px}
  .fm-library-actions{gap:12px}.fm-library-actions .ag-link{font-size:11px}
  .fm-library-actions .fm-glyph{display:none}
  .fm-intro h2{font-size:29px}
  .fm-block{padding:20px 16px}.fm-block-head{margin-bottom:18px}
  .fm-block-head h3{font-size:15px}.fm-block-head .fm-help{font-size:11px}
  .fm-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fm-subject{flex-direction:row;align-items:center;text-align:left;padding:13px 10px;font-size:11px}
  .fm-page .ag-input{font-size:16px}
  .fm-focus,.fm-inline{grid-template-columns:minmax(0,1fr)}
  .fm-focus-option{padding:14px}.fm-focus-option strong{font-size:13px}
  .fm-focus-option small{margin-top:2px;font-size:12px}
  .fm-stepper li{flex-direction:column;align-items:flex-start;gap:7px;padding-right:3px}
  .fm-stepper strong{font-size:11px}
  .fm-stepper .fm-now::after{right:8px}
  .fm-options>summary{padding:16px;font-size:12px;gap:7px}.fm-options>summary small{font-size:11px;flex-basis:100%;padding-left:15px}
  .fm-options-body{padding:4px 16px}
  .fm-actions>.ag-primary{width:100%}
  .fm-outline{padding:22px}.fm-outline-path{grid-template-columns:1fr}
  .fm-plan-step{padding:16px 13px}.fm-plan-head{grid-template-columns:auto minmax(0,1fr)}
  .fm-plan-head .fm-step-model{grid-column:2}
  .fm-plan-head small{font-size:11px}.fm-plan-head strong{font-size:13px}
  .fm-brief{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:16px}
  .fm-brief>div{grid-column:1/-1}
  .fm-brief .ag-badge{display:inline-flex;justify-self:start}
  .fm-brief>.ag-btn{justify-self:end;min-height:40px;font-size:11px}
  .fm-empty-state{padding:22px 18px;align-items:flex-start;gap:12px}
  .fm-empty-state>.fm-glyph{width:24px;height:24px}
}
/* Brief first (2026-10-04): the brief reads in the serif stack, the steps fold away beneath it, and the
   dialog's header and footer wrap on a phone instead of pushing their buttons off the edge. */
.ag-run-result{font-family:var(--ag-read);color:var(--ag-ink)}
.ag-run-result .ag-result{font-family:var(--ag-read);font-size:16px;line-height:1.6}
.ag-run-steps-wrap{margin:22px 0;border:1px solid var(--ag-line);border-radius:10px;background:var(--ag-card)}
.ag-run-steps-wrap>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 16px;cursor:pointer;font-size:13px;font-weight:600;list-style:none}
.ag-run-steps-wrap>summary::-webkit-details-marker{display:none}
.ag-run-steps-wrap>summary::before{content:'▸';color:var(--ag-muted)}
.ag-run-steps-wrap[open]>summary::before{content:'▾'}
.ag-run-steps-wrap>summary small{font-weight:400;color:var(--ag-muted);font-size:12px}
.ag-run-steps-wrap>.ag-run-steps{padding:0 16px 4px}
.ag-run-steps-wrap .ag-run-step:last-child{border-bottom:0}
.ag-run-dialog .ag-dialog-head>div:first-child{min-width:0}
.ag-run-dialog .ag-dialog-head h2{overflow-wrap:anywhere}
@media(max-width:640px){
  .ag-run-dialog .ag-dialog-head,.ag-run-dialog .ag-dialog-foot{flex-wrap:wrap;align-items:flex-start;gap:10px 12px}
  .ag-run-dialog .ag-dialog-head .ag-actions,.ag-run-dialog .ag-dialog-foot .ag-actions{flex-wrap:wrap;justify-content:flex-start;gap:8px}
  .ag-run-dialog .ag-dialog-foot>.ag-sub{flex-basis:100%}
  .ag-run-dialog .ag-dialog-head h2{font-size:20px}
  .ag-run-dialog .ag-dialog-body,.ag-run-dialog .ag-dialog-head,.ag-run-dialog .ag-dialog-foot{padding-left:16px;padding-right:16px}
}
/* The brief chat reads like the brief: answers in the serif stack, a quoted passage as a blockquote, and
   bold or headed text in ink (the borrowed pa- rules paint them white for the dark panel). */
.ag-run-ask .pa-msg-assistant .pa-bubble{font-family:var(--ag-read);font-size:15px;line-height:1.6}
.ag-run-ask .pa-bubble strong,.ag-run-ask .pa-bubble h1,.ag-run-ask .pa-bubble h2,.ag-run-ask .pa-bubble h3,.ag-run-ask .pa-bubble h4{color:var(--ag-ink)}
.ag-run-ask .pa-bubble blockquote{margin:8px 0;padding:6px 12px;border-left:3px solid var(--ag-primary);background:var(--ai-callout,#fbf1e8);color:var(--ag-ink);font-family:var(--ag-read);white-space:pre-wrap}
.ag-run-ask .ag-ask-q-label{display:block;font-size:12px;font-weight:600;color:var(--ag-accent);margin-bottom:2px}
.ag-run-ask .ag-ask-q-quote{font-style:italic}
.ag-run-ask .pa-bubble>p{margin:6px 0 0}
[data-appearance=dim] .ag-run-ask .pa-bubble blockquote{background:var(--ag-soft)}
/* The chat's small print is borrowed from the Ask Claude panel (styles.css, 10-10.5px); in the workspace it is never under 11px. */
.ag-run-ask .pa-answer-meta,.ag-run-ask .pa-composer-hint,.ag-run-ask .pa-footnote,.ag-run-ask .pa-empty-badge{font-size:12px}
