/* AI agent (js/agent.js): the agents, the set-up card and the matches. App tokens (app.css), light and dark; phone width
   with a 16px gutter (main's own); nothing moves when a run starts or a match comes in. */
#sec-agent .ag{max-width:980px}
#sec-agent .ag-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
#sec-agent .ag-hd h1{font-size:28px;line-height:34px;font-weight:700}
#sec-agent .ag-i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#sec-agent .btn .ag-i{width:15px;height:15px}
#sec-agent .ag-load{display:flex;align-items:center;gap:8px;color:var(--ink3);padding:16px 0}
#sec-agent .ag-empty{display:flex;gap:16px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px}
#sec-agent .ag-empty p{color:var(--ink2);margin:6px 0 14px;max-width:620px}
#sec-agent .ag-badge{width:44px;height:44px;border-radius:12px;background:var(--tint);color:var(--brand-d);display:grid;place-items:center;flex:none}
#sec-agent .ag-badge .ag-i{width:24px;height:24px}

/* an agent */
#sec-agent .ag-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin-bottom:14px}
#sec-agent .ag-card.off{background:var(--page)}
#sec-agent .ag-ch{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#sec-agent .ag-av{width:36px;height:36px;border-radius:50%;background:var(--tint);color:var(--brand-d);display:grid;place-items:center;font-weight:700;flex:none}
#sec-agent .ag-cm{display:flex;align-items:center;gap:10px;flex:1;min-width:180px}
#sec-agent .ag-cm b{font-size:16px}
#sec-agent .ag-st{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:9999px;font-size:12px;font-weight:600;white-space:nowrap}
#sec-agent .ag-st.on{background:var(--good-s);color:var(--good)}#sec-agent .ag-st.off{background:var(--chip);color:var(--ink2)}
#sec-agent .ag-st.lim{background:var(--warn-s);color:var(--warn)}#sec-agent .ag-st.run{background:var(--tint);color:var(--brand-d)}
#sec-agent .ag-st .spin{width:11px;height:11px}
#sec-agent .ag-acts{display:flex;gap:6px;flex-wrap:wrap}
#sec-agent .ag-ib{padding:0 9px}
#sec-agent .ag-del{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--bad-s);color:var(--bad);font-size:13px}
#sec-agent .ag-dl{display:grid;gap:6px;margin:14px 0 0}
#sec-agent .ag-dl div{display:flex;gap:10px;font-size:13.5px;line-height:19px}
#sec-agent .ag-dl dt{color:var(--ink3);width:76px;flex:none}
#sec-agent .ag-dl dd{margin:0;color:var(--ink);min-width:0}
#sec-agent .ag-use{margin-top:14px}
#sec-agent .ag-ul{display:flex;justify-content:space-between;font-size:13px;color:var(--ink3);margin-bottom:6px}
#sec-agent .ag-ul b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
#sec-agent .ag-bar{height:6px;border-radius:9999px;background:var(--chip);overflow:hidden}
#sec-agent .ag-bar i{display:block;height:100%;background:var(--brand);border-radius:inherit}
#sec-agent .ag-last{display:flex;gap:8px;align-items:flex-start;margin-top:12px;font-size:13px;line-height:19px;color:var(--ink2)}
#sec-agent .ag-last .ag-i{margin-top:1px;color:var(--ink3)}

/* the set-up card */
#sec-agent .ag-ed{background:var(--surface);border:1px solid var(--brand);border-radius:16px;padding:20px;margin-bottom:18px;box-shadow:var(--soft)}
#sec-agent .ag-ed h2{font-size:18px;line-height:24px;font-weight:700;margin-bottom:14px}
/* the settings fold away (open by default) */
#sec-agent .ag-edh{display:flex;align-items:center;gap:10px;margin-bottom:14px}
#sec-agent .ag-edh h2{flex:1;min-width:0;margin-bottom:0}
#sec-agent .ag-ed.folded{padding-top:14px;padding-bottom:14px}
#sec-agent .ag-ed.folded .ag-edh{margin-bottom:0}
#sec-agent .ag-edt{flex:none;display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 10px 0 12px;border:1px solid var(--line2);border-radius:9999px;background:var(--surface);color:var(--ink2);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
#sec-agent .ag-edt:hover{background:var(--hover)}
#sec-agent .ag-edc{display:inline-flex}
#sec-agent .ag-edc .ag-i{width:16px;height:16px}
#sec-agent .ag-edc.up{transform:rotate(180deg)}
#sec-agent .ag-f{display:grid;gap:8px;margin-bottom:16px;min-width:0}
#sec-agent .ag-l{font-size:13px;font-weight:600;color:var(--ink2)}
#sec-agent .ag-f select.input{max-width:360px}
/* the area box: typed as on JobsDB, with its suggestions under it */
#sec-agent .ag-cb{position:relative;max-width:360px;min-width:0}
#sec-agent .ag-cb .input{width:100%}
#sec-agent .ag-sug{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:320px;overflow-y:auto;margin:0;padding:4px;list-style:none;background:var(--surface);border:1px solid var(--line2);border-radius:10px;box-shadow:var(--pop)}
#sec-agent .ag-sug[hidden]{display:none}
#sec-agent .ag-so{padding:9px 12px;border-radius:8px;font-size:14px;line-height:20px;color:var(--ink);cursor:pointer;overflow-wrap:anywhere}
#sec-agent .ag-so:hover,#sec-agent .ag-so.on{background:var(--hover)}
#sec-agent .ag-sn{display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:13px;color:var(--ink3)}
#sec-agent .ag-lerr{color:var(--bad)}
#sec-agent .ag-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:38px;padding:5px;border:1px solid var(--line2);border-radius:var(--r);background:var(--surface)}
#sec-agent .ag-chip{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 4px 0 10px;border-radius:9999px;background:var(--tint);color:var(--brand-d);font-size:13px;font-weight:500}
#sec-agent .ag-chip button{display:grid;place-items:center;width:20px;height:20px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
#sec-agent .ag-chip button:hover{background:rgb(0 0 0 / .08)}
#sec-agent .ag-chip .ag-i{width:12px;height:12px}
#sec-agent .ag-ci{flex:1;min-width:180px;height:28px;border:0;outline:none;background:transparent;font-size:14px;padding:0 6px}
#sec-agent .ag-cks{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
#sec-agent .ag-ck{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:14px;min-width:0}
#sec-agent .ag-ck:hover{background:var(--hover)}
#sec-agent .ag-ck input{width:16px;height:16px;accent-color:var(--brand);flex:none}
#sec-agent .ag-ck span{flex:1;min-width:0;display:inline-flex;align-items:center;gap:6px}
#sec-agent .ag-ck small{color:var(--ink3);font-size:12.5px;white-space:nowrap}
#sec-agent .ag-mail{max-width:520px;margin-bottom:6px}
#sec-agent .ag-row2{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
#sec-agent .ag-row2 > .ag-f{align-content:start}
#sec-agent .ag-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}
#sec-agent .ag-row3 > .ag-f{align-content:end}
/* the set-up's choices as dropdowns, as Find Job's filters (Max 2026-10-17: "Make all of them as dropdowns") */
#sec-agent .ag-dd{position:relative;justify-self:start}
#sec-agent .ag-ddb{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;min-width:150px;height:38px;padding:0 10px 0 14px;border:1px solid var(--line2);border-radius:9999px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
#sec-agent .ag-ddb:hover{background:var(--hover)}
#sec-agent .ag-ddb .ag-i{width:16px;height:16px;color:var(--ink3);transition:transform .15s}
#sec-agent .ag-ddb.open{border-color:var(--brand)}
#sec-agent .ag-ddb.open .ag-i{transform:rotate(180deg)}
/* the company picker's order: an arrow beside Sort by, as on Companies (Max 2026-10-20) */
#sec-agent .ag-dirb{display:inline-grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid var(--line2);border-radius:9999px;background:var(--surface);color:var(--ink2);cursor:pointer}
#sec-agent .ag-dirb:hover{background:var(--hover);color:var(--ink)}
#sec-agent .ag-dirb svg{width:18px;height:18px}
#sec-agent .ag-dirb:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
#sec-agent .ag-ddm{position:absolute;top:calc(100% + 6px);left:0;z-index:20;min-width:240px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 28px rgb(0 0 0 / .16)}
#sec-agent .ag-ddo{display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 8px;border-radius:6px;font-size:14px;line-height:20px;color:var(--ink);cursor:pointer}
#sec-agent .ag-ddo:hover{background:var(--hover)}
#sec-agent .ag-ddo input{width:16px;height:16px;margin:0;accent-color:var(--brand)}
#sec-agent .ag-ddo small{margin-left:auto;padding-left:14px;font-size:12.5px;color:var(--ink3);white-space:nowrap;font-variant-numeric:tabular-nums}
#sec-agent .ag-seg{display:flex;flex-wrap:wrap;gap:6px}
#sec-agent .ag-seg label{position:relative}
#sec-agent .ag-seg input{position:absolute;opacity:0;inset:0;cursor:pointer}
#sec-agent .ag-seg span{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid var(--line2);border-radius:9999px;font-size:13px;font-weight:500;color:var(--ink2);background:var(--surface)}
#sec-agent .ag-seg input:checked+span{border-color:var(--brand);background:var(--tint);color:var(--brand-d)}
#sec-agent .ag-seg input:focus-visible+span{box-shadow:0 0 0 3px oklch(.656 .115 218.497 / .25)}
#sec-agent .ag-lim{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#sec-agent .ag-lim .input{width:120px;font-variant-numeric:tabular-nums}
#sec-agent .ag-lim span{color:var(--ink3);font-size:13px}
#sec-agent .ag-lim .ag-auto{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:var(--good-s);color:var(--good);font-size:12.5px;font-weight:600}
#sec-agent .ag-lim .ag-auto .ag-i{width:14px;height:14px}
#sec-agent .ag-sum{font-variant-numeric:tabular-nums}
/* the price a day (priceBlock), each number of jobs a day's price, and what a kind agent does every day */
#sec-agent .ag-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0;font-variant-numeric:tabular-nums}
#sec-agent .ag-price b{font-size:18px;font-weight:700;color:var(--ink)}
#sec-agent .ag-price span{color:var(--ink3);font-size:13px}
#sec-agent .ag-dp{display:flex;gap:6px 14px;flex-wrap:wrap;margin-top:8px;font-variant-numeric:tabular-nums}
#sec-agent .ag-dp span.on{color:var(--ink);font-weight:600}
#sec-agent .ag-inc{display:flex;gap:8px;align-items:flex-start;margin:0 0 16px}
#sec-agent .ag-inc .ag-i{width:16px;height:16px;flex:none;margin-top:2px;color:var(--brand-d)}
:is(#sec-agent,#sec-dash) .ag-link{border:0;background:none;color:var(--brand-d);font-weight:600;font-size:13px;cursor:pointer;padding:0}
#sec-agent .ag-note{font-size:13px;line-height:19px;color:var(--ink3);max-width:680px}
#sec-agent .ag-note b{color:var(--ink);font-weight:600}
#sec-agent .ag-err{color:var(--bad);font-size:13px;margin-top:8px}
#sec-agent .ag-ft{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}

/* the matches */
#sec-agent .ag-ms{margin-top:26px}
#sec-agent .ag-mh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
#sec-agent .ag-mh h2{font-size:18px;font-weight:700;display:flex;align-items:center;gap:8px}
#sec-agent .ag-cnt{font-size:13px;font-weight:600;color:var(--ink3)}
#sec-agent .ag-flt{width:auto;max-width:240px}
:is(#sec-agent,#sec-dash) .ag-none{color:var(--ink3);padding:16px 0}
/* the job tabs: Selected jobs, All jobs, Skipped jobs (a 3-column bar on a phone) */
#sec-agent .ag-tabr{display:flex;align-items:center;gap:8px;margin-bottom:12px}
#sec-agent .ag-tabs{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
#sec-agent .ag-tab{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);color:var(--ink2);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
#sec-agent .ag-tab:hover{background:var(--hover)}
#sec-agent .ag-tab.on{border-color:var(--tj-bar);background:var(--tj-bg);color:var(--tj-fg);font-weight:600}
#sec-agent .ag-tab .ag-cnt{color:inherit;opacity:.75;font-variant-numeric:tabular-nums}
#sec-agent .ag-tab:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
#sec-agent .ag-js{height:20px;padding:0 8px;border-radius:9999px;font-size:11.5px;font-weight:600;line-height:20px;background:var(--chip);color:var(--ink2)}
#sec-agent .ag-js.ok{background:var(--good-s);color:var(--good)}
#sec-agent .ag-js.wait{background:var(--warn-s);color:var(--warn)}
#sec-agent .ag-rule.no{color:var(--ink2)}
#sec-agent .ag-tried{display:flex;flex-wrap:wrap;gap:6px}
#sec-agent .ag-tried span{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;background:var(--chip);font-size:13px;line-height:20px;max-width:100%;overflow-wrap:anywhere}
#sec-agent .ag-tried{align-items:center}
#sec-agent .ag-tried b{font-weight:600;color:var(--good)}
#sec-agent .ag-tried b.z{color:var(--ink3)}
@media (max-width:480px){
  #sec-agent .ag-tabr{align-items:flex-start}
  #sec-agent .ag-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1}
  #sec-agent .ag-tab{flex-direction:column;justify-content:center;gap:1px;height:auto;min-height:48px;padding:6px 4px;border-radius:12px;font-size:12.5px;line-height:16px;text-align:center}
  #sec-agent .ag-tabr .rm-tip{margin-top:13px}
}
#sec-agent .ag-list{list-style:none;display:grid;gap:10px}
#sec-agent .ag-m{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
#sec-agent .ag-mt{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px}
#sec-agent .ag-mt b{font-weight:600}
#sec-agent .ag-lv{display:inline-flex;gap:2px}
#sec-agent .ag-lv i{width:10px;height:6px;border-radius:2px;background:var(--chip)}
#sec-agent .ag-lv.l5 i,#sec-agent .ag-lv.l4 i:nth-child(-n+4),#sec-agent .ag-lv.l3 i:nth-child(-n+3){background:var(--good)}
#sec-agent .ag-lv.l3 i:nth-child(-n+3){background:var(--warn)}
#sec-agent .ag-new{height:20px;padding:0 8px;border-radius:9999px;background:#DC2626;color:#fff;font-size:11px;font-weight:700;line-height:20px}
#sec-agent .ag-when{margin-left:auto;color:var(--ink3)}
#sec-agent .ag-m h3{font-size:15.5px;line-height:21px;font-weight:600;margin-top:8px}
#sec-agent .ag-meta{font-size:13px;color:var(--ink3);margin-top:2px}
#sec-agent .ag-why{font-size:13.5px;line-height:19px;color:var(--ink2);margin-top:8px}
#sec-agent .ag-ma{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
#sec-agent .ag-ma a.btn{text-decoration:none;color:var(--ink)}
/* Optimise CV on a match: the AI mark's blue, as on Find Job (js/retouch.js) */
#sec-agent .ag-ma .btn.ag-ai{background:linear-gradient(135deg,var(--brand),oklch(.55 .15 262));border-color:transparent;color:#fff;font-weight:600}
#sec-agent .ag-ma .btn.ag-ai:hover{filter:brightness(.95)}
#sec-agent .ag-ma .btn.ag-ai svg{width:15px;height:15px;fill:currentColor;stroke:none}

@media (max-width:720px){
  #sec-agent .ag-hd{flex-direction:column}
  #sec-agent .ag-hd h1{font-size:24px;line-height:30px}
  #sec-agent .ag-row2{grid-template-columns:1fr}
  #sec-agent .ag-row3{grid-template-columns:1fr}
  #sec-agent .ag-ddm{min-width:min(280px,calc(100vw - 48px))}
  #sec-agent .ag-cks{grid-template-columns:1fr}
  #sec-agent .ag-card,#sec-agent .ag-ed,#sec-agent .ag-empty{padding:16px}
  #sec-agent .ag-empty{flex-direction:column}
  #sec-agent .ag-acts{width:100%}
  #sec-agent .ag-dl div{flex-direction:column;gap:0}
  #sec-agent .ag-when{margin-left:0;width:100%}
}

/* when to run, the instructions, a match's instructions check */
#sec-agent .ag-l small{font-weight:400;color:var(--ink3);margin-left:4px}
#sec-agent .ag-days{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#sec-agent .ag-day{height:32px;min-width:46px;padding:0 10px;border:1px solid var(--line2);border-radius:9999px;background:var(--surface);color:var(--ink2);font-size:13px;font-weight:500;cursor:pointer}
#sec-agent .ag-day.on{border-color:var(--brand);background:var(--tint);color:var(--brand-d)}
#sec-agent .ag-days .ag-link{margin-left:6px}
#sec-agent .ag-tin{width:150px;height:40px;padding:0 10px;font-variant-numeric:tabular-nums}
#sec-agent .ag-ta{height:auto;min-height:96px;padding:10px 12px;line-height:20px;resize:vertical;max-width:760px}
#sec-agent .ag-rules{white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#sec-agent .ag-rule{display:flex;gap:6px;align-items:flex-start;margin-top:6px;font-size:13px;line-height:18px;color:var(--good)}
#sec-agent .ag-rule .ag-i{margin-top:1px}

#sec-agent .ag-ck.off{opacity:.6;cursor:default}


/* the LinkedIn and hiring signal agents */
#sec-agent .ag-setup{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;margin:-4px 0 16px;border-radius:10px;background:var(--warn-s);color:var(--warn)}
#sec-agent .ag-setup .ag-i{width:16px;height:16px;flex:none;margin-top:2px}
#sec-agent .ag-cos{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;max-height:340px;overflow-y:auto;padding:2px}
#sec-agent .ag-cos .ag-ck span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
/* the Hiring signal agent's company tiles (js/agent.js coTile): the tick, then the company (its real logo or a plain
   building, its name, what it does, its signal) as one button that opens its full card (js/companies.js coPop) */
#sec-agent .ag-cos{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));max-height:420px}
#sec-agent .ag-cot{display:flex;align-items:center;gap:10px;min-height:68px;padding:8px 12px 8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
#sec-agent .ag-cot:hover{border-color:var(--line2)}
#sec-agent .ag-cot.on{border-color:var(--brand);background:var(--tint)}
#sec-agent .ag-cot.off .ag-cot-ck{opacity:.45;cursor:not-allowed}
#sec-agent .ag-cot[hidden]{display:none}
#sec-agent .ag-cot-ck{flex:none;width:18px;height:18px;margin:0;accent-color:var(--brand);cursor:pointer}
#sec-agent .ag-cot-b{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
#sec-agent .ag-cot-b:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:8px}
#sec-agent .ag-cot-t{flex:1;min-width:0;display:grid;gap:1px}
#sec-agent .ag-cot-t b{font-weight:600;font-size:14px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sec-agent .ag-cot-t small{font-size:12px;line-height:16px;color:var(--ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sec-agent .ag-cot-t small.ag-cot-s .sig{color:var(--brand-d);font-weight:600}
/* More info: the tile opens the company's card (Max 2026-10-18) */
#sec-agent .ag-cot-r{display:flex;align-items:center;gap:8px;min-width:0}
#sec-agent .ag-cot-r .ag-cot-s{flex:1;min-width:0}
#sec-agent .ag-cot-m{flex:none;margin-left:auto;display:inline-flex;align-items:center;gap:1px;font-size:12.5px;line-height:16px;font-weight:600;color:var(--brand-d);white-space:nowrap}
#sec-agent .ag-cot-m .ag-i{width:14px;height:14px;transform:rotate(-90deg)}
#sec-agent .ag-cot:hover{background:var(--hover)}
#sec-agent .ag-cot.on:hover{background:var(--tint)}
#sec-agent .ag-cot-b:hover .ag-cot-m{text-decoration:underline;text-underline-offset:2px}
/* the picker's heading, and Select all between the search row and the list */
#sec-agent .ag-cohd{margin-bottom:6px}
#sec-agent .ag-coall{display:inline-flex;align-items:center;gap:8px;margin:2px 0 8px;padding:4px 12px 4px 11px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;user-select:none}
#sec-agent .ag-coall input{width:18px;height:18px;margin:0;accent-color:var(--brand);cursor:pointer}
#sec-agent .ag-coall input:disabled{cursor:not-allowed}
#sec-agent .ag-coall small{font-size:12.5px;font-weight:500;color:var(--ink3);font-variant-numeric:tabular-nums}
/* Select all and Tracked only side by side; a tracked company's mark on its tile */
#sec-agent .ag-coalls{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px}
#sec-agent .ag-cot-t small.ag-cot-s .trk{color:var(--ink2);font-weight:600}
/* the picker's search, sort and industry */
#sec-agent .ag-cofl{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
#sec-agent .ag-cofl .ag-cq{flex:1 1 260px;width:auto;min-width:0;margin:0}
#sec-agent .ag-cofl .ag-dd{flex:none;min-width:0}
#sec-agent .ag-cofl .ag-ddb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
#sec-agent .ag-cofl .ag-ddm{max-height:320px;overflow-y:auto}
#sec-agent .ag-cofl .ag-dd:not(:nth-of-type(1)) .ag-ddm{left:auto;right:0}
@media (max-width:720px){
  #sec-agent .ag-cofl .ag-cq{flex-basis:100%}
  #sec-agent .ag-cofl .ag-dd{flex:1 1 140px}
  #sec-agent .ag-cofl .ag-ddb{width:100%;min-width:0}
}
#sec-agent .ag-cot .co-logo{position:relative;overflow:hidden;width:40px;height:40px;border-radius:8px;display:grid;place-items:center;flex:none;background:#fff;border:1px solid var(--line);color:var(--ink3)}
#sec-agent .ag-cot .co-logo.none{background:var(--chip);border-color:transparent}
#sec-agent .ag-cot .co-logo svg.co-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
#sec-agent .ag-cot .co-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
#sec-agent .ag-cq{width:100%;margin-bottom:8px}#sec-agent .ag-ck[hidden],#sec-agent .ag-cnone[hidden]{display:none}
#sec-agent .ag-dr{display:grid;gap:10px}
#sec-agent .ag-dh{display:flex;align-items:center;gap:10px;min-width:0}
#sec-agent .ag-dh>div{flex:1;min-width:0;display:grid}
#sec-agent .ag-dh small{color:var(--ink3);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sec-agent .ag-dh .ag-when{flex:none;font-size:12.5px;color:var(--ink3)}
#sec-agent .ag-dav{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;background:var(--tint);color:var(--brand-d);display:grid;place-items:center;font-weight:700}
#sec-agent .ag-davb{flex:none;border:0;background:transparent;padding:0;border-radius:50%;cursor:pointer;display:flex}
#sec-agent .ag-davb:hover .ag-dav,#sec-agent .ag-davb:focus-visible .ag-dav{box-shadow:0 0 0 2px var(--brand)}
#sec-agent .ag-davb:focus-visible{outline:none}
#sec-agent .ag-their{margin:0;padding:10px 12px;border-left:3px solid var(--line);background:var(--hover);border-radius:0 10px 10px 0;font-size:14px;line-height:20px;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
#sec-agent .ag-their small{display:block;font-size:12px;color:var(--ink3);margin-bottom:2px}
#sec-agent .ag-their{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
#sec-agent .ag-dr .ag-why{margin-top:0}
#sec-agent .ag-post{-webkit-line-clamp:5}
#sec-agent .ag-deg{display:inline-block;margin-left:6px;padding:0 6px;height:18px;line-height:18px;border-radius:999px;background:var(--hover);color:var(--ink2);font-size:11px;font-weight:700;vertical-align:middle}
/* a draft's list, as Messaging's chips: New connections (green), Need follow-up (amber), Unread (brand) */
#sec-agent .ag-grp{display:inline-block;margin-left:6px;padding:0 8px;height:20px;line-height:20px;border-radius:999px;font-size:11.5px;font-weight:700;vertical-align:middle;white-space:nowrap}
#sec-agent .ag-grp-newconn{background:var(--good-s);color:var(--good)}#sec-agent .ag-grp-followup{background:var(--warn-s);color:var(--warn)}#sec-agent .ag-grp-unread{background:var(--tint);color:var(--brand-d)}
#sec-agent .ag-pdl{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#sec-agent .ag-pdl .ag-link{display:inline-flex;align-items:center;gap:5px}
/* the reaction the network agent sent itself (Max 2026-10-18): which, why, or why it couldn't be sent */
#sec-agent .ag-rx{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:0}
#sec-agent .ag-rxb{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--brand);background:var(--tint);color:var(--brand-d);font-size:13px;font-weight:600}
#sec-agent .ag-rxb .ag-i{width:15px;height:15px;flex:none}
#sec-agent .ag-rxw{flex:1 1 200px;min-width:0;font-size:13.5px;line-height:19px;color:var(--ink2);overflow-wrap:anywhere}
#sec-agent .ag-rx.wait .ag-rxb{border-color:var(--line2);background:var(--hover);color:var(--ink2)}
#sec-agent .ag-rx.bad .ag-rxb{border-color:transparent;background:var(--bad-s);color:var(--bad)}
#sec-agent .ag-hint{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:1px 8px;border-radius:9999px;background:var(--tint);color:var(--brand-d);font-size:12.5px}
#sec-agent .ag-hint .ag-i{width:13px;height:13px}
#sec-agent .ag-dta{width:100%;min-height:96px;resize:vertical;font:inherit;font-size:14.5px;line-height:21px;padding:10px 12px}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-atts{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-cva{display:contents}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-att{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:30px;padding:0 4px 0 10px;border:1px solid var(--line);border-radius:9999px;font-size:13px;background:var(--surface)}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-att span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-att .ag-i{width:15px;height:15px;color:var(--ink3);flex:none}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-att button{width:24px;height:24px;border:0;border-radius:50%;background:none;color:var(--ink3);display:grid;place-items:center;cursor:pointer}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-att button:hover{background:var(--hover);color:var(--ink)}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-att button .ag-i{width:13px;height:13px}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-mk{padding:0 12px 0 10px;color:var(--ink2);border-style:dashed}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-mk .spin{width:13px;height:13px;flex:none;overflow:visible;max-width:none}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-mk span:last-child{max-width:none;white-space:normal}
#sec-agent .ag-dact{margin-top:0;align-items:center}
#sec-agent .ag-sp{flex:1}
#sec-agent .ag-sent{margin-top:10px;font-size:13.5px}
#sec-agent .ag-sent summary{cursor:pointer;color:var(--ink2);font-weight:600;padding:6px 0}
#sec-agent .ag-sent ul{list-style:none;display:grid;gap:6px;margin-top:4px}
#sec-agent .ag-sent li{display:flex;gap:8px;align-items:baseline;min-width:0;color:var(--ink2)}
#sec-agent .ag-sent li span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sec-agent .ag-sent li em{font-style:normal;color:var(--ink3);font-size:12.5px;flex:none}
#sec-agent .ag-bi{width:24px;height:24px;border-radius:7px;background:var(--tint);color:var(--brand-d);display:grid;place-items:center}
#sec-agent .ag-bi .ag-i{width:14px;height:14px}
#sec-agent .ag-bf .ag-when{margin-left:auto}
#sec-agent .ag-bl{margin:8px 0 0;padding-left:20px;display:grid;gap:6px;font-size:14px;line-height:20px;color:var(--ink)}
#sec-agent .ag-bl .ag-link{font-size:12.5px;margin-left:4px}
#sec-agent .ag-bc{list-style:none;padding-left:0}
#sec-agent .ag-bc li{display:flex;gap:8px;align-items:flex-start}
#sec-agent .ag-bc b{font-weight:600}
#sec-agent .ag-tr{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;flex:none;background:var(--chip);color:var(--ink2)}
#sec-agent .ag-tr .ag-i{width:14px;height:14px}
#sec-agent .ag-tr.up,#sec-agent .ag-tr.new{background:var(--good-s);color:var(--good)}
#sec-agent .ag-tr.down{background:var(--bad-s);color:var(--bad)}
#sec-agent .ag-quiet{margin-top:8px;font-size:13.5px;color:var(--ink3)}
#sec-agent .ag-tdh{margin-top:10px;font-size:13px;font-weight:600;color:var(--ink2)}
@media (max-width:640px){#sec-agent .ag-dact .btn{flex:1 1 auto}#sec-agent .ag-sp{display:none}#sec-agent .ag-dh .ag-when{display:none}}

/* the team: each agent a staff badge with its character (Max: "office enterprise style cartoon characters") */
#sec-agent,#ag-kpi,#sec-dash{--tj-bg:#D3EEF4;--tj-fg:#13768A;--tj-bar:#1B8DA3;--tl-bg:#DCE5FA;--tl-fg:#2449A8;--tl-bar:#2F5FCF;--th-bg:#FBE9C8;--th-fg:#9A5B0B;--th-bar:#E0962A;--ts-bg:#E7E1FA;--ts-fg:#5B3FB0;--ts-bar:#6D4FD0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #sec-agent,:root:not([data-theme="light"]) #ag-kpi,:root:not([data-theme="light"]) #sec-dash{--tj-bg:oklch(.34 .05 218);--tj-fg:oklch(.84 .09 218);--tl-bg:oklch(.34 .07 260);--tl-fg:oklch(.82 .09 258);--th-bg:oklch(.36 .06 70);--th-fg:oklch(.86 .11 78);--ts-bg:oklch(.33 .07 290);--ts-fg:oklch(.83 .09 290)}}
:root[data-theme="dark"] #sec-agent,:root[data-theme="dark"] #ag-kpi,:root[data-theme="dark"] #sec-dash{--tj-bg:oklch(.34 .05 218);--tj-fg:oklch(.84 .09 218);--tl-bg:oklch(.34 .07 260);--tl-fg:oklch(.82 .09 258);--th-bg:oklch(.36 .06 70);--th-fg:oklch(.86 .11 78);--ts-bg:oklch(.33 .07 290);--ts-fg:oklch(.83 .09 290)}
:is(#sec-agent,#sec-dash) .tm-jobs{--k-bg:var(--tj-bg);--k-fg:var(--tj-fg);--k-bar:var(--tj-bar)}
:is(#sec-agent,#sec-dash) .tm-linkedin{--k-bg:var(--tl-bg);--k-fg:var(--tl-fg);--k-bar:var(--tl-bar)}
:is(#sec-agent,#sec-dash) .tm-signals{--k-bg:var(--th-bg);--k-fg:var(--th-fg);--k-bar:var(--th-bar)}
:is(#sec-agent,#sec-dash) .tm-spy{--k-bg:var(--ts-bg);--k-fg:var(--ts-fg);--k-bar:var(--ts-bar)}
#sec-agent .tm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
@media (max-width:1320px){#sec-agent .tm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){#sec-agent .tm-grid{grid-template-columns:1fr}}
#sec-agent .tm-watch{margin-top:22px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px}
@media (max-width:640px){#sec-agent .tm-watch{padding:12px}}
#sec-agent .tm-card{background:var(--surface);border:1px solid var(--line);border-radius:26px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px rgb(0 0 0 / .04),0 12px 32px rgb(0 0 0 / .05)}
#sec-agent .tm-band{position:relative;height:176px;background:var(--k-bg);display:flex;justify-content:center;align-items:flex-end;border:0;padding:0;cursor:pointer;width:100%}
#sec-agent .tm-band:focus-visible{outline:2px solid var(--brand);outline-offset:-4px}
#sec-agent .tm-band .tm-st{position:absolute;top:14px;right:14px}
#sec-agent .tm-char{display:block;flex:none;transition:transform .2s ease}
#sec-agent .tm-band:hover .tm-char{transform:translateY(-3px)}
@media (prefers-reduced-motion:reduce){#sec-agent .tm-char{transition:none}#sec-agent .tm-band:hover .tm-char{transform:none}}
:is(#sec-agent,#sec-dash) .tm-st{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;background:var(--surface);color:var(--good);font-size:12px;font-weight:700;white-space:nowrap}
#sec-agent .tm-band .tm-st{box-shadow:0 1px 3px rgb(0 0 0 / .1)}
:is(#sec-agent,#sec-dash) .tm-st i{width:7px;height:7px;border-radius:50%;background:currentColor}
:is(#sec-agent,#sec-dash) .tm-st.new,:is(#sec-agent,#sec-dash) .tm-st.off{color:var(--ink2)}:is(#sec-agent,#sec-dash) .tm-st.lim{color:var(--warn)}:is(#sec-agent,#sec-dash) .tm-st.run{color:var(--brand-d)}
:is(#sec-agent,#sec-dash) .tm-st .spin{width:12px;height:12px}
:is(#sec-agent,#sec-dash) .tm-st.run{color:var(--k-fg,var(--brand-d))}:is(#sec-agent,#sec-dash) .tm-st.run i{background:var(--k-bar,var(--brand));animation:wkPulse 1.6s ease-out infinite}
/* at work for you: a big green check; not hired or on a break: dimmed, its button stays bright (js/agent.js teamCard) */
#sec-agent .tm-ok{position:absolute;top:10px;left:12px;width:46px;height:46px;border-radius:50%;background:#16A34A;border:3px solid var(--surface);box-shadow:0 2px 8px rgb(0 0 0 / .18);display:grid;place-items:center}
#sec-agent .tm-ok svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
/* the jobs that landed and aren't seen yet: a red number on her (js/agent.js teamCard, seenSoon) */
#sec-agent .tm-red{position:absolute;top:4px;left:44px;min-width:32px;height:32px;padding:0 8px;border-radius:999px;background:#DC2626;color:#fff;border:3px solid var(--surface);box-shadow:0 2px 8px rgb(0 0 0 / .2);font-size:14px;line-height:26px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums;z-index:1}
#sec-agent .tm-dim{background:var(--page);box-shadow:none}
#sec-agent .tm-dim .tm-band{background:var(--hover)}
#sec-agent .tm-dim .tm-char{filter:grayscale(1);opacity:.5;transition:transform .2s ease,filter .2s ease,opacity .2s ease}
#sec-agent .tm-dim .tm-band:hover .tm-char,#sec-agent .tm-dim .tm-band:focus-visible .tm-char{filter:none;opacity:1}
#sec-agent .tm-dim .tm-id h2{color:var(--ink2)}#sec-agent .tm-dim .tm-role,#sec-agent .tm-dim .tm-id p{color:var(--ink3)}
#sec-agent .tm-dim .tm-stat{background:var(--surface)}
@media (prefers-reduced-motion:reduce){#sec-agent .tm-dim .tm-char{transition:none}}
/* the card's row under who it is: its step while it works (js/agent.js nowRow) */
#sec-agent .tm-now{display:flex;align-items:flex-start;justify-content:center;gap:8px;min-height:40px;margin:0;padding:9px 12px;border-radius:12px;background:var(--hover);color:var(--ink3);font-size:13px;line-height:18px;text-align:center}
#sec-agent .tm-now.none{background:none;padding:0;min-height:0}
#sec-agent .tm-now.on{background:var(--k-bg);color:var(--k-fg);font-weight:600;text-align:left;justify-content:flex-start}
#sec-agent .tm-now span{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
#sec-agent .tm-now i{flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--k-bar);animation:wkPulse 1.6s ease-out infinite}
#sec-agent .tm-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:16px;flex:1}
#sec-agent .tm-id{display:flex;flex-direction:column;gap:4px;text-align:center}
#sec-agent .tm-id h2{font-size:20px;line-height:26px;font-weight:800}
#sec-agent .tm-role{color:var(--k-fg);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#sec-agent .tm-id p{margin-top:6px;color:var(--ink2);font-size:13.5px;line-height:19px}
:is(#sec-agent,#sec-dash) .tm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}
:is(#sec-agent,#sec-dash) .tm-stats.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
:is(#sec-agent,#sec-dash) .tm-stat{background:var(--hover);border-radius:14px;padding:10px 4px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:2px;min-width:0;min-height:68px;
  width:100%;border:1px solid transparent;color:var(--ink);font:inherit;text-align:center;cursor:pointer;transition:border-color .12s,background-color .12s}
:is(#sec-agent,#sec-dash) .tm-stat:hover{border-color:var(--line2)}
:is(#sec-agent,#sec-dash) .tm-stat:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
:is(#sec-agent,#sec-dash) .tm-stat b{font-size:22px;line-height:26px;font-weight:800}
:is(#sec-agent,#sec-dash) .tm-stat span{color:var(--ink3);font-size:12px;line-height:15px}
:is(#sec-agent,#sec-dash) .tm-new .tm-stat b{color:var(--ink3);font-weight:700}
:is(#sec-agent,#sec-dash) .tm-stat.hi{background:var(--k-bg)}:is(#sec-agent,#sec-dash) .tm-stat.hi b,:is(#sec-agent,#sec-dash) .tm-stat.hi span{color:var(--k-fg)}
#sec-agent .tm-bud{display:flex;flex-direction:column;gap:8px}
#sec-agent .tm-bl{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--ink3)}#sec-agent .tm-bl b{color:var(--ink);font-weight:600;white-space:nowrap}#sec-agent .tm-bl b.none{color:var(--ink3)}
#sec-agent .tm-next{color:var(--ink3);font-size:12.5px}
#sec-agent .tm-btns{display:flex;gap:8px;margin-top:auto}
#sec-agent .tm-go{flex:1;min-width:0;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:44px;border:0;border-radius:13px;background:var(--k-bar);color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
:is(#sec-agent,#sec-dash) .tm-signals .tm-go{color:#2B1A05}
#sec-agent .tm-go:hover{filter:brightness(.95)}
#sec-agent .tm-b2{width:44px;flex:none;display:grid;place-items:center;height:44px;padding:0;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
#sec-agent .tm-b2:disabled{opacity:.5;cursor:default}#sec-agent .tm-b2 .ag-i{width:17px;height:17px}
/* the cards' rows line up across the team (band, who, numbers, budget, buttons); after the rules above so it wins */
@supports (grid-template-rows:subgrid){
  #sec-agent .tm-grid{row-gap:0;margin-bottom:4px}
  #sec-agent .tm-card{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;margin-bottom:18px}
  #sec-agent .tm-body{display:grid;grid-row:2 / span 5;grid-template-rows:subgrid;row-gap:16px}
  #sec-agent .tm-btns{align-self:end}
}
:is(#sec-agent,#sec-dash) .tm-feed{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:8px 22px 10px}
:is(#sec-agent,#sec-dash) .tm-feed h2{font-size:16px;font-weight:700;padding:14px 0 8px}
:is(#sec-agent,#sec-dash) .tm-feed .ag-none{padding:0 0 14px}
:is(#sec-agent,#sec-dash) .tm-fi{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
:is(#sec-agent,#sec-dash) .tm-fi p{flex:1;min-width:0;font-size:14px;line-height:20px}:is(#sec-agent,#sec-dash) .tm-fi p span{color:var(--ink2)}
:is(#sec-agent,#sec-dash) .tm-fi em{font-style:normal;color:var(--ink3);font-size:13px;flex:none}
:is(#sec-agent,#sec-dash) .tm-av{width:40px;height:40px;border-radius:50%;background:var(--k-bg);overflow:hidden;flex:none}
#sec-agent .tm-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;border:0;background:none;padding:6px 0;color:var(--brand-d);font:inherit;font-weight:600;font-size:13.5px;cursor:pointer}
#sec-agent .tm-hero{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:24px;display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin-bottom:22px;box-shadow:0 1px 2px rgb(0 0 0 / .04),0 8px 24px rgb(0 0 0 / .04)}
#sec-agent .tm-face{width:150px;height:150px;border-radius:50%;background:var(--k-bg);display:flex;justify-content:center;align-items:flex-end;overflow:hidden;flex:none}
#sec-agent .tm-hid{flex:999 1 380px;min-width:0;display:flex;flex-direction:column;gap:8px}
#sec-agent .tm-hn{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#sec-agent .tm-hn h1{font-size:28px;line-height:34px;font-weight:800}
#sec-agent .tm-hn .tm-st{background:var(--hover)}
#sec-agent .tm-hid>p{color:var(--ink2);font-size:14.5px;line-height:21px}
#sec-agent .tm-chips{display:flex;gap:8px;flex-wrap:wrap}
#sec-agent .tm-chips span{height:30px;padding:0 12px;border-radius:999px;background:var(--hover);border:1px solid var(--line);font-size:13px;line-height:28px;color:var(--ink2)}
#sec-agent .tm-hero .ag-last{margin-top:2px}
#sec-agent .tm-hs{flex:1 1 260px;display:flex;align-items:center;gap:16px;justify-content:flex-end;flex-wrap:wrap}
#sec-agent .tm-ring{display:flex;align-items:center;gap:12px}
#sec-agent .tm-ring div{display:flex;flex-direction:column}#sec-agent .tm-ring b{font-size:18px;line-height:22px;font-weight:700}#sec-agent .tm-ring span{color:var(--ink3);font-size:12.5px}
#sec-agent .tm-rt{stroke:var(--chip)}#sec-agent .tm-rf{stroke:var(--k-bar)}
/* the credits its work used today, under the job agent's ring (Max 2026-10-19) */
#sec-agent .tm-ring .tm-spl{margin-top:3px;color:var(--ink2);font-weight:600}
#sec-agent .tm-acts{display:flex;gap:8px;flex-wrap:wrap}
#sec-agent .tm-hero .ag-del{flex-basis:100%}
#sec-agent .tm-cols{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start}
#sec-agent .tm-main{flex:999 1 520px;min-width:0}#sec-agent .tm-side{flex:1 1 300px;min-width:0}
#sec-agent .tm-cols .ag-ms{margin-top:0}
@media (max-width:640px){
  #sec-agent .tm-band{height:150px}#sec-agent .tm-band .tm-char{width:132px;height:132px}
  #sec-agent .tm-body{padding:16px}
  #sec-agent .tm-hero{padding:18px;gap:14px;justify-content:center}#sec-agent .tm-face{width:120px;height:120px}#sec-agent .tm-face .tm-char{width:120px;height:120px}
  #sec-agent .tm-hid{text-align:center;align-items:center}#sec-agent .tm-hn{justify-content:center}#sec-agent .tm-chips{justify-content:center}
  #sec-agent .tm-hs{justify-content:center}
  :is(#sec-agent,#sec-dash) .tm-fi{flex-wrap:wrap;gap:8px 12px}:is(#sec-agent,#sec-dash) .tm-fi p{flex-basis:calc(100% - 52px)}:is(#sec-agent,#sec-dash) .tm-fi em{margin-left:52px}
}


/* An agent at work (js/agent.js workPanel): Right now, its steps, and every step with its reason, live */
@keyframes wkPulse{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--k-bar,#1B8DA3) 55%,transparent)}70%{box-shadow:0 0 0 8px transparent}100%{box-shadow:0 0 0 0 transparent}}
@keyframes wkBlink{0%,100%{opacity:.25}50%{opacity:1}}
#sec-agent .wk{display:flex;flex-direction:column;gap:14px;margin-bottom:22px;min-width:0}
#sec-agent .wk-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--k-bar);animation:wkPulse 1.6s ease-out infinite}
#sec-agent .wk-tabs{display:flex;flex-wrap:wrap;gap:8px}
#sec-agent .wk-tab{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);color:var(--ink2);font:inherit;font-size:13.5px;font-weight:500;cursor:pointer;max-width:100%}
#sec-agent .wk-tab.on{border-color:var(--k-bar);background:var(--k-bg);color:var(--k-fg);font-weight:600}
#sec-agent .wk-now{border:1px solid var(--line);border-radius:18px;padding:18px 20px;background:var(--surface);display:flex;flex-direction:column;gap:10px;min-width:0}
#sec-agent .wk-now.on{border-color:var(--k-bar);background:color-mix(in oklab,var(--k-bg) 38%,var(--surface))}
#sec-agent .wk-nh{display:flex;align-items:center;justify-content:space-between;gap:10px}
#sec-agent .wk-lab{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--k-fg)}
#sec-agent .wk-since{color:var(--ink3);font-size:12.5px}
#sec-agent .wk-what{margin:0;font-size:18px;line-height:25px;font-weight:600;overflow-wrap:anywhere}
#sec-agent .wk-dots i{display:inline-block;width:5px;height:5px;margin-left:3px;border-radius:50%;background:currentColor;animation:wkBlink 1.2s infinite;vertical-align:middle}
#sec-agent .wk-dots i:nth-child(2){animation-delay:.2s}#sec-agent .wk-dots i:nth-child(3){animation-delay:.4s}
#sec-agent .wk-why{margin:0;color:var(--ink2);font-size:14px;line-height:20px}#sec-agent .wk-why b{font-weight:600}
#sec-agent .wk-q{margin:0;padding:8px 12px;border-radius:10px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-size:13.5px;line-height:19px;max-width:680px;overflow-wrap:anywhere}
#sec-agent .wk-prog{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink2)}
#sec-agent .wk-bar{height:7px;border-radius:999px;background:var(--chip);overflow:hidden}#sec-agent .wk-bar i{display:block;height:100%;border-radius:999px;background:var(--k-bar);transition:width .4s}
#sec-agent .wk-st{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
#sec-agent .wk-st li{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:0 12px 0 6px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:13px;color:var(--ink3);max-width:100%}
#sec-agent .wk-st li i{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--line2);box-sizing:border-box}
#sec-agent .wk-st li .ag-i{flex:none;width:18px;height:18px;padding:3px;border-radius:50%;background:var(--k-bar);color:#fff;stroke-width:3}
#sec-agent .wk-st li.done{color:var(--ink2)}
#sec-agent .wk-st li.now{color:var(--ink);font-weight:600;border-color:var(--k-bar)}
#sec-agent .wk-st li.now i{border:0;background:var(--k-bar);animation:wkPulse 1.6s ease-out infinite}
#sec-agent .wk-rest{margin:0;color:var(--ink2);font-size:14px;line-height:20px}
#sec-agent .wk-steps{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px 20px;min-width:0}
#sec-agent .wk-sh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
#sec-agent .wk-sh h2{font-size:16px;line-height:22px;font-weight:700;display:inline-flex;align-items:center;gap:6px}
#sec-agent .wk-live{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--k-fg)}
/* a shift's jobs under the search that found them (js/agent.js jobList) */
#sec-agent .wk-jobs{list-style:none;margin:6px 0 2px;padding:0;display:flex;flex-direction:column;gap:8px}
#sec-agent .wk-job{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
#sec-agent .wk-jh{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#sec-agent .wk-jh a,#sec-agent .wk-jh b{min-width:0;font-size:14px;line-height:19px;font-weight:600;color:var(--brand-d);overflow-wrap:anywhere}
#sec-agent .wk-jh b{color:var(--ink)}
#sec-agent .wk-jm{flex:none;padding:1px 8px;border-radius:999px;background:var(--chip);color:var(--ink2);font-size:12px;line-height:18px;font-weight:700}
#sec-agent .wk-jm.l5,#sec-agent .wk-jm.l4{background:var(--good-s);color:var(--good)}#sec-agent .wk-jm.l3{background:var(--warn-s);color:var(--warn)}
#sec-agent .wk-jc{margin:2px 0 0;color:var(--ink3);font-size:12.5px;line-height:17px;overflow-wrap:anywhere}
#sec-agent .wk-js{margin:5px 0 0;color:var(--ink2);font-size:13px;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#sec-agent .wk-jo{margin:6px 0 0;color:var(--ink3);font-size:12.5px;line-height:17px;font-weight:600;overflow-wrap:anywhere}
#sec-agent .wk-job.o-sent .wk-jo{color:var(--good)}#sec-agent .wk-job.o-held .wk-jo{color:var(--warn)}
#sec-agent .wk-jall{margin-top:14px}#sec-agent .wk-jall h3{font-size:14px;font-weight:700;margin:0 0 4px}
#sec-agent .wk-sum{margin:0 0 8px;padding:10px 12px;border-radius:10px;background:var(--good-s);font-size:13.5px;line-height:19px}
#sec-agent .wk-more{margin:2px 0 6px}
#sec-agent .wk-log{list-style:none;margin:0;padding:0}
#sec-agent .wk-log>li{display:grid;grid-template-columns:44px 14px minmax(0,1fr);column-gap:8px;padding:9px 0;border-top:1px solid var(--line)}
#sec-agent .wk-log time{color:var(--ink3);font-size:12.5px;font-variant-numeric:tabular-nums;padding-top:1px}
#sec-agent .wk-ld{width:9px;height:9px;margin-top:5px;border-radius:50%;background:var(--k-bar)}
#sec-agent .wk-log .k-skip .wk-ld,#sec-agent .wk-log .k-say .wk-ld,#sec-agent .wk-log .k-skill .wk-ld,#sec-agent .wk-log .k-memory .wk-ld{background:var(--line2)}
#sec-agent .wk-log .k-error .wk-ld{background:var(--warn)}
#sec-agent .wk-log .k-result .wk-ld,#sec-agent .wk-log .k-draft .wk-ld,#sec-agent .wk-log .k-brief .wk-ld,#sec-agent .wk-log .k-report .wk-ld,#sec-agent .wk-log .k-done .wk-ld{background:var(--good)}
#sec-agent .wk-lb{min-width:0;display:flex;flex-direction:column;gap:3px}
#sec-agent .wk-t{margin:0;font-size:14px;line-height:20px;overflow-wrap:anywhere}#sec-agent .wk-t b{font-weight:600}
#sec-agent .wk-log .k-say .wk-t{color:var(--ink2)}
#sec-agent .wk-y{margin:0;color:var(--ink2);font-size:13px;line-height:18px;overflow-wrap:anywhere}#sec-agent .wk-y b{font-weight:600}
#sec-agent .wk-r{margin:0;width:fit-content;max-width:100%;padding:5px 10px;border-radius:8px;background:var(--chip);font-size:13px;line-height:18px;overflow-wrap:anywhere}
@media (max-width:640px){
  #sec-agent .wk-now{padding:14px}#sec-agent .wk-steps{padding:12px 14px}#sec-agent .wk-what{font-size:16px;line-height:22px}
  #sec-agent .wk-log>li{grid-template-columns:14px minmax(0,1fr)}#sec-agent .wk-log time{grid-column:2;grid-row:1;padding:0}
  #sec-agent .wk-log .wk-ld{grid-column:1;grid-row:1 / span 2}#sec-agent .wk-log .wk-lb{grid-column:2;grid-row:2}
}
@media (prefers-reduced-motion:reduce){#sec-agent .wk-dot,#sec-agent .wk-dots i,#sec-agent .wk-st li.now i,#sec-agent .tm-now i,:is(#sec-agent,#sec-dash) .tm-st.run i{animation:none}}
/* the red Logs button and its panel over the page (Max 2026-10-17: "make it red button to be obvious"); the job agent's
   shifts in it, each opening to its steps and jobs, each job with why to take it or why not */
#sec-agent .lg-btn{background:#DC2626;border-color:#DC2626;color:#fff;font-weight:700}
#sec-agent .lg-btn:hover{background:#B91C1C;border-color:#B91C1C;color:#fff}
#sec-agent .lg-btn:focus-visible{outline:2px solid #DC2626;outline-offset:2px}
#sec-agent .lg-dot{display:none;width:8px;height:8px;border-radius:50%;background:#fff;flex:none}
#sec-agent .lg-btn.live .lg-dot{display:inline-block;animation:wkPulse 1.6s ease-out infinite}
#sec-agent .lg-wrap{position:fixed;inset:0;z-index:200;display:flex;justify-content:flex-end}
#sec-agent .lg-wrap[hidden]{display:none}
#sec-agent .lg-bg{position:absolute;inset:0;background:rgb(0 0 0 / .4)}
#sec-agent .lg{position:relative;width:min(640px,100%);height:100%;background:var(--page);display:flex;flex-direction:column;box-shadow:-8px 0 30px rgb(0 0 0 / .22)}
#sec-agent .lg-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line);background:var(--surface)}
#sec-agent .lg-top h2{margin:0;font-size:20px;line-height:26px;display:flex;align-items:center;gap:4px}
#sec-agent .lg-body{flex:1;overflow:auto;overscroll-behavior:contain;padding:16px 20px 24px}
#sec-agent .lg-body .wk{margin-bottom:0}
#sec-agent .lg-shs{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
#sec-agent .lg-sh{border:1px solid var(--line);border-radius:12px;min-width:0}
#sec-agent .lg-sh.on{border-color:var(--ink3)}
#sec-agent .lg-shb{width:100%;display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;padding:10px 12px;background:none;border:0;border-radius:12px;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
#sec-agent .lg-shb:hover{background:var(--hover)}
#sec-agent .lg-shb:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
#sec-agent .lg-sht{font-weight:700;font-size:14px;line-height:20px;display:inline-flex;align-items:center;gap:8px}
#sec-agent .lg-shn{flex:1;min-width:0;color:var(--ink2);font-size:13px;line-height:18px}
#sec-agent .lg-shb .ag-i{width:18px;height:18px;flex:none;transition:transform .15s}
#sec-agent .lg-sh.on .lg-shb .ag-i{transform:rotate(180deg)}
#sec-agent .lg-shc{padding:4px 12px 12px;min-width:0}
#sec-agent .wk-jw{margin:6px 0 0;font-size:13px;line-height:18px;overflow-wrap:anywhere}#sec-agent .wk-jw b{font-weight:700}
#sec-agent .wk-jw.ok b{color:var(--good)}#sec-agent .wk-jw.no b{color:var(--ink2)}
#sec-agent .wk-jg{margin:3px 0 0;color:var(--ink2);font-size:12.5px;line-height:17px;overflow-wrap:anywhere}#sec-agent .wk-jg b{font-weight:600}
@media (max-width:640px){#sec-agent .lg-top{padding:12px 16px}#sec-agent .lg-body{padding:12px 16px 20px}#sec-agent .lg-shc{padding:4px 8px 10px}}
@media (prefers-reduced-motion:reduce){#sec-agent .lg-btn.live .lg-dot{animation:none}#sec-agent .lg-shb .ag-i{transition:none}}

/* a job's company hiring signal, the brief's job track and the job agent's leads (Max 2026-10-18) */
#sec-agent .ag-sigl{display:flex;align-items:baseline;gap:8px;margin:6px 0 0;font-size:13px;line-height:19px;color:var(--ink2)}
#sec-agent .ag-sigb{flex:none;display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--ink2);font-variant-numeric:tabular-nums}
#sec-agent .ag-sigb .ag-i{width:14px;height:14px}
#sec-agent .ag-sigb.hi{color:var(--brand-d)}
#sec-agent .ag-bj li,#sec-agent .ag-lds li{line-height:21px}
#sec-agent .ag-bjc{color:var(--ink2)}
#sec-agent .ag-bj .ag-meta,#sec-agent .ag-lds .ag-meta{display:block;font-size:12.5px;color:var(--ink3)}
@media (max-width:480px){ #sec-agent .ag-sigl{flex-direction:column;gap:2px} }
/* The hiring signal agent's companies: the list (logo, score, how it moved, a dot for news) and the one picked (its timeline
   and its hiring signal); at phone width the list, then the company with Back */
#sec-agent .ag-hsg{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
#sec-agent .ag-hsl{display:flex;flex-direction:column;max-height:720px;overflow-y:auto;border-right:1px solid var(--line);overscroll-behavior:contain}
#sec-agent .ag-hsr{position:relative;display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
#sec-agent .ag-hsr:hover{background:var(--hover)}
#sec-agent .ag-hsr.on{background:var(--tint);box-shadow:inset 3px 0 0 var(--brand)}
#sec-agent .ag-hsn{flex:1;min-width:0;display:flex;flex-direction:column}
#sec-agent .ag-hsn b{font-size:14px;line-height:19px;font-weight:600;overflow-wrap:anywhere}
#sec-agent .ag-hsn small{font-size:12px;line-height:16px;color:var(--ink3);overflow-wrap:anywhere}
#sec-agent .ag-hss{flex:none;min-width:34px;height:26px;padding:0 8px;border-radius:9999px;background:var(--chip);font-size:13px;font-weight:700;line-height:26px;text-align:center;font-variant-numeric:tabular-nums}
#sec-agent .ag-hsdot{position:absolute;top:10px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--brand)}
#sec-agent .ag-hslg{position:relative;overflow:hidden;flex:none;width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);color:var(--ink3)}
#sec-agent .ag-hslg.big{width:52px;height:52px;border-radius:10px}
#sec-agent .ag-hslg.none{background:var(--chip);border-color:transparent}
#sec-agent .ag-hslg .ag-i{width:18px;height:18px}
#sec-agent .ag-hslg img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
#sec-agent .ag-hsd{min-width:0;padding:18px 20px 20px}
#sec-agent .ag-hsbk{display:none;align-items:center;gap:6px;margin:0 0 12px;padding:0;border:0;background:none;color:var(--brand-d);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
#sec-agent .ag-hsbk .ag-i{width:16px;height:16px}
#sec-agent .ag-hshd{display:flex;align-items:center;gap:14px;min-width:0}
#sec-agent .ag-hsht{flex:1;min-width:0}
#sec-agent .ag-hsht h3{margin:0;font-size:18px;line-height:24px;font-weight:700;overflow-wrap:anywhere}
#sec-agent .ag-hsht small{font-size:13px;color:var(--ink3);overflow-wrap:anywhere}
#sec-agent .ag-hsbig{flex:none;display:flex;flex-direction:column;align-items:center;font-size:26px;font-weight:800;line-height:28px;font-variant-numeric:tabular-nums}
#sec-agent .ag-hsbig small{font-size:11px;font-weight:600;color:var(--ink3);line-height:14px}
#sec-agent .ag-hstabs{display:flex;gap:6px;margin:16px 0 14px;border-bottom:1px solid var(--line)}
#sec-agent .ag-hstabs button{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;color:var(--ink2);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
#sec-agent .ag-hstabs button.on{color:var(--brand-d);border-bottom-color:var(--brand)}
#sec-agent .ag-hstabs button b{font-size:12px;color:var(--ink3);font-weight:600}
#sec-agent .ag-hstabs .ag-i{width:16px;height:16px}
#sec-agent .ag-hstl{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--line)}
#sec-agent .ag-hstl>li{position:relative;padding:0 0 18px 14px}
#sec-agent .ag-hstl>li::before{content:"";position:absolute;left:-21px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--surface);border:2px solid var(--brand)}
#sec-agent .ag-hstd{display:flex;align-items:center;gap:8px;font-size:13px}
#sec-agent .ag-hstl p{margin:6px 0 0;font-size:14px;line-height:21px;color:var(--ink);overflow-wrap:anywhere}
#sec-agent .ag-hstd2{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:19px;color:var(--ink2)}
@media (max-width:800px),(pointer:coarse) and (max-width:950px){
  #sec-agent .ag-hsg{grid-template-columns:minmax(0,1fr)}
  #sec-agent .ag-hsl{border-right:0;max-height:none}
  #sec-agent .ag-hsg.picked .ag-hsl{display:none}
  #sec-agent .ag-hsg:not(.picked) .ag-hsd{display:none}
  #sec-agent .ag-hsbk{display:inline-flex}
  #sec-agent .ag-hsd{padding:14px 14px 16px}
}

/* What a number counts: the pop-up over the team (js/agent.js kpiOpen), on the body so the team's repaints leave it be */
html.kp-lock{overflow:hidden}
#ag-kpi{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center;padding:24px}
#ag-kpi[hidden]{display:none}
#ag-kpi.tm-jobs{--k-bg:var(--tj-bg);--k-fg:var(--tj-fg)}#ag-kpi.tm-linkedin{--k-bg:var(--tl-bg);--k-fg:var(--tl-fg)}
#ag-kpi.tm-signals{--k-bg:var(--th-bg);--k-fg:var(--th-fg)}#ag-kpi.tm-spy{--k-bg:var(--ts-bg);--k-fg:var(--ts-fg)}
#ag-kpi .kp-bg{position:absolute;inset:0;background:rgb(0 0 0 / .4)}
#ag-kpi .kp{position:relative;width:min(520px,100%);max-height:min(80vh,720px);display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:var(--pop);animation:kp-in .16s ease-out}
@keyframes kp-in{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){#ag-kpi .kp{animation:none}}
:is(#ag-kpi,#sec-dash) .kp-top{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 18px;border-bottom:1px solid var(--line)}
:is(#ag-kpi,#sec-dash) .kp-who{width:44px;height:44px;border-radius:50%;background:var(--k-bg);overflow:hidden;flex:none}
:is(#ag-kpi,#sec-dash) .kp-who svg{display:block}
:is(#ag-kpi,#sec-dash) .kp-hd{flex:1;min-width:0}
:is(#ag-kpi,#sec-dash) .kp-hd small{display:block;color:var(--k-fg);font-size:12px;line-height:16px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
:is(#ag-kpi,#sec-dash) .kp-hd h2{margin:0;font-size:18px;line-height:24px;font-weight:800}
:is(#ag-kpi,#sec-dash) .kp-n{flex:none;font-size:22px;line-height:28px;font-weight:800;color:var(--k-fg);background:var(--k-bg);border-radius:12px;padding:4px 12px;min-width:46px;text-align:center}
:is(#ag-kpi,#sec-dash) .kp-x{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink2);cursor:pointer}
:is(#ag-kpi,#sec-dash) .kp-x:hover{background:var(--hover);color:var(--ink)}
:is(#ag-kpi,#sec-dash) .kp-x:focus-visible,:is(#ag-kpi,#sec-dash) .kp-list:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
:is(#ag-kpi,#sec-dash) .ag-i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:is(#ag-kpi,#sec-dash) .kp-list{flex:1;overflow:auto;overscroll-behavior:contain;padding:4px 18px 10px}
:is(#ag-kpi,#sec-dash) .kp-list ul{list-style:none;margin:0;padding:0}
:is(#ag-kpi,#sec-dash) .kp-list li{display:flex;align-items:center;gap:12px;padding:12px 0}
:is(#ag-kpi,#sec-dash) .kp-list li+li{border-top:1px solid var(--line)}
:is(#ag-kpi,#sec-dash) .kp-pic{position:relative;width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;background:var(--chip);color:var(--ink2);font-weight:700;font-size:15px}
:is(#ag-kpi,#sec-dash) .kp-pic.sq{border-radius:10px}
:is(#ag-kpi,#sec-dash) .kp-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}
:is(#ag-kpi,#sec-dash) .kp-pic.sq img{object-fit:contain;padding:4px}
:is(#ag-kpi,#sec-dash) .kp-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
:is(#ag-kpi,#sec-dash) .kp-tx b{font-size:14.5px;line-height:20px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(#ag-kpi,#sec-dash) .kp-tx span{color:var(--ink2);font-size:13px;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
:is(#ag-kpi,#sec-dash) .kp-list em{flex:none;max-width:36%;font-style:normal;color:var(--ink3);font-size:12px;line-height:16px;text-align:right}
/* a message opened in place (kpMsg): the whole of it; a draft to edit, Dismiss and Send */
:is(#ag-kpi,#sec-dash) .kp-list li{flex-wrap:wrap}
:is(#ag-kpi,#sec-dash) .kp-xp{flex:none;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink2);cursor:pointer}
:is(#ag-kpi,#sec-dash) .kp-xp:hover{background:var(--hover);color:var(--ink)}:is(#ag-kpi,#sec-dash) .kp-xp:focus-visible,:is(#ag-kpi,#sec-dash) .kp-ta:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
:is(#ag-kpi,#sec-dash) .kp-xp .ag-i{width:16px;height:16px;transition:transform .15s}:is(#ag-kpi,#sec-dash) li.on .kp-xp .ag-i{transform:rotate(180deg)}
:is(#ag-kpi,#sec-dash) .kp-msg{flex:1 1 100%;display:flex;flex-direction:column;gap:10px;padding:4px 0 2px 52px;min-width:0}
:is(#ag-kpi,#sec-dash) .kp-their{margin:0;padding:10px 12px;border-left:3px solid var(--line2);background:var(--hover);border-radius:0 10px 10px 0;font-size:13px;line-height:19px;color:var(--ink2);white-space:pre-line;overflow-wrap:anywhere}
:is(#ag-kpi,#sec-dash) .kp-their small{display:block;color:var(--ink3);font-size:12px;margin-bottom:2px}
:is(#ag-kpi,#sec-dash) .kp-full{margin:0;font-size:14px;line-height:21px;white-space:pre-line;overflow-wrap:anywhere}
:is(#ag-kpi,#sec-dash) .kp-ta{width:100%;min-height:150px;resize:vertical;font:inherit;font-size:14px;line-height:21px;padding:10px 12px;border:1px solid var(--line2);border-radius:10px;background:var(--surface);color:var(--ink)}
:is(#ag-kpi,#sec-dash) .kp-act{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
:is(#ag-kpi,#sec-dash) .kp-sp{flex:1}
:is(#ag-kpi,#sec-dash) .kp-ib{width:40px;min-width:40px;padding:0;justify-content:center}
:is(#ag-kpi,#sec-dash) .kp-msg .ag-atts{margin:8px 0 2px}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-atts:not(:has(.ag-att,.cva-pk)){display:none}
@media (max-width:600px){:is(#sec-agent,#ag-kpi,#sec-dash) :is(.ag-att,.cva-pk){height:40px}:is(#sec-agent,#ag-kpi,#sec-dash) :is(.ag-att,.cva-pk) button{width:40px;height:40px}}
:is(#sec-agent,#ag-kpi,#sec-dash) .ag-att.ag-mk{height:auto;min-height:30px;padding-top:4px;padding-bottom:4px}
:is(#ag-kpi,#sec-dash) .kp-act .ag-i{width:15px;height:15px}
:is(#ag-kpi,#sec-dash) .kp-err{margin:0;font-size:13px;color:var(--bad)}
:is(#ag-kpi,#sec-dash) .kp-link{border:0;background:none;padding:0;color:var(--brand-d);text-decoration:underline;cursor:pointer;font:inherit}
@media (max-width:600px){:is(#ag-kpi,#sec-dash) .kp-msg{padding-left:0}}
/* a row opened (js/agent.js kpMore): what is known, then where to go next; anywhere on a row opens it */
:is(#ag-kpi,#sec-dash) .kp-list li[data-kpk]{cursor:pointer}
:is(#ag-kpi,#sec-dash) .kp-list li[data-kpk] .kp-msg{cursor:auto}
:is(#ag-kpi,#sec-dash) .kp-list li[data-kpk]:not(.on):hover .kp-tx b{color:var(--brand-d)}
:is(#ag-kpi,#sec-dash) .kp-list li.np .kp-msg{padding-left:0}
:is(#ag-kpi,#sec-dash) .kp-more{gap:9px;font-size:13.5px;line-height:20px;color:var(--ink2)}
:is(#ag-kpi,#sec-dash) .kp-more p{margin:0}
:is(#ag-kpi,#sec-dash) .kp-more li,:is(#ag-kpi,#sec-dash) .kp-more li+li{padding:0;border-top:0}
:is(#ag-kpi,#sec-dash) .kp-tags{display:flex;flex-wrap:wrap;gap:6px}
:is(#ag-kpi,#sec-dash) .kp-tag{height:22px;padding:0 9px;border-radius:9999px;font-size:12px;font-weight:600;line-height:22px;background:var(--chip);color:var(--ink2)}
:is(#ag-kpi,#sec-dash) .kp-tag.ok{background:var(--good-s);color:var(--good)}
:is(#ag-kpi,#sec-dash) .kp-tag.wait{background:var(--warn-s);color:var(--warn)}
:is(#ag-kpi,#sec-dash) .kp-facts{color:var(--ink3);font-size:12.5px;line-height:18px;overflow-wrap:anywhere}
:is(#ag-kpi,#sec-dash) .kp-why{color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
:is(#ag-kpi,#sec-dash) .kp-sig,:is(#ag-kpi,#sec-dash) .kp-rule{display:flex;gap:6px;align-items:flex-start;overflow-wrap:anywhere}
:is(#ag-kpi,#sec-dash) .kp-sig b{color:var(--ink)}
:is(#ag-kpi,#sec-dash) .kp-sig .ag-i,:is(#ag-kpi,#sec-dash) .kp-rule .ag-i{width:15px;height:15px;flex:none;margin-top:2px}
:is(#ag-kpi,#sec-dash) .kp-rule{color:var(--good)}
:is(#ag-kpi,#sec-dash) .kp-rule.no{color:var(--ink2)}
:is(#ag-kpi,#sec-dash) .kp-req small{display:block;color:var(--ink3);font-size:12px;line-height:16px;margin-bottom:5px}
:is(#ag-kpi,#sec-dash) .kp-req div{display:flex;flex-wrap:wrap;gap:5px}
:is(#ag-kpi,#sec-dash) .kp-kc{display:inline-flex;align-items:center;gap:3px;max-width:100%;padding:1px 8px 1px 6px;border-radius:9999px;font-size:12px;line-height:18px;background:var(--chip);color:var(--ink2);overflow-wrap:anywhere}
:is(#ag-kpi,#sec-dash) .kp-kc.y{background:var(--good-s);color:var(--good)}
:is(#ag-kpi,#sec-dash) .kp-kc .ag-i{width:12px;height:12px;flex:none}
:is(#ag-kpi,#sec-dash) .kp-nums{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
:is(#ag-kpi,#sec-dash) .kp-more .kp-nums li{flex-direction:column;align-items:flex-start;gap:0;padding:8px 10px;border-radius:10px;background:var(--hover);color:var(--ink3);font-size:12px;line-height:16px}
:is(#ag-kpi,#sec-dash) .kp-nums b{font-size:18px;line-height:24px;font-weight:800;color:var(--ink)}
:is(#ag-kpi,#sec-dash) .kp-bl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
:is(#ag-kpi,#sec-dash) .kp-more .kp-bl li{flex-wrap:nowrap;align-items:flex-start;gap:8px}
:is(#ag-kpi,#sec-dash) .kp-bl b{color:var(--ink)}
:is(#ag-kpi,#sec-dash) .kp-tr{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--chip);color:var(--ink2)}
:is(#ag-kpi,#sec-dash) .kp-tr.up{background:var(--good-s);color:var(--good)}
:is(#ag-kpi,#sec-dash) .kp-tr.down{background:var(--bad-s);color:var(--bad)}
:is(#ag-kpi,#sec-dash) .kp-tr.star{background:var(--warn-s);color:var(--warn)}
:is(#ag-kpi,#sec-dash) .kp-tr .ag-i{width:13px;height:13px}
:is(#ag-kpi,#sec-dash) .kp-sub{font-weight:700;color:var(--ink)}
:is(#ag-kpi,#sec-dash) .kp-todo{margin:0;padding-left:20px}
:is(#ag-kpi,#sec-dash) .kp-more .kp-todo li{display:list-item}
:is(#ag-kpi,#sec-dash) .kp-more .kp-act{justify-content:flex-start;padding-top:2px}
:is(#ag-kpi,#sec-dash) .kp-act .btn svg{width:15px;height:15px;flex:none}
:is(#ag-kpi,#sec-dash) .kp-act .btn svg:not(.ag-i){fill:currentColor;stroke:none}
:is(#ag-kpi,#sec-dash) .kp-act .btn[data-kpgo="rt"]{background:linear-gradient(135deg,var(--brand),oklch(.55 .15 262));border-color:transparent;color:#fff;font-weight:600}
:is(#ag-kpi,#sec-dash) .kp-act .btn[data-kpgo="rt"]:hover{filter:brightness(.95)}
:is(#ag-kpi,#sec-dash) .kp-act a.btn{text-decoration:none}
/* Dismiss (js/agent.js kpDismiss): at the end of a row's buttons; Stop following and Stop tracking ask first, in the row */
:is(#ag-kpi,#sec-dash) .kp-act .kp-dis{margin-left:auto}
:is(#ag-kpi,#sec-dash) .kp-ask{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:var(--bad-s)}
:is(#ag-kpi,#sec-dash) .kp-ask>span{flex:1 1 180px;min-width:0;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
:is(#ag-kpi,#sec-dash) .btn.kp-bad{background:var(--surface);border-color:var(--bad);color:var(--bad);font-weight:600}
:is(#ag-kpi,#sec-dash) .btn.kp-bad:hover:not(:disabled){background:var(--hover)}
#sec-agent .ag-ma .ag-dis{margin-left:auto}
:is(#ag-kpi,#sec-dash) .kp-none{margin:0;padding:32px 12px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--ink3);font-size:14px;text-align:center}
@media (max-width:600px){#ag-kpi{align-items:flex-end;padding:0}
  #ag-kpi .kp{width:100%;max-height:85vh;border-radius:18px 18px 0 0;border-bottom:0}
  :is(#ag-kpi,#sec-dash) .kp-top{padding:14px 14px 12px 16px}:is(#ag-kpi,#sec-dash) .kp-list{padding:4px 16px 16px}:is(#ag-kpi,#sec-dash) .kp-hd h2{font-size:17px;line-height:22px}}

/* ── A phone (Max 2026-10-20: "Make it like real monile app UI now its confusing to look at on phone"): the same window as
   the app's top bar and tab bar (app.html). One column; the team's cards are compact; an agent's page opens with a back bar
   that stays at the top; its set-up is a full screen with Close at the top and Save at the bottom; a dropdown and the Logs
   are sheets from the bottom; every tap target is 40 px or more and every field 16 px so the phone doesn't zoom. ── */
#sec-agent .ag-edx,#sec-agent .ag-ddbg,#sec-agent .ag-ddt{display:none}
#sec-agent .ag-cofd{display:contents}
@media (max-width:800px),(pointer:coarse) and (max-width:950px){
  #sec-agent .ag-hd{margin-bottom:12px}
  #sec-agent .ag-hd h1{font-size:20px;line-height:26px}
  #sec-agent .btn{min-height:44px}
  #sec-agent .btn.sm{min-height:40px}
  #sec-agent .input,#sec-agent select.input,#sec-agent textarea.input,#sec-agent .ag-ci,#sec-agent .ag-dta,#sec-agent .ag-tin,#sec-agent .ag-cq{font-size:16px}

  /* the team: one compact card each (the face, who it is and its state in a row, then its numbers and its button) */
  #sec-agent .tm-grid{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
  #sec-agent .tm-card{display:block;position:relative;grid-row:auto;margin:0;border-radius:20px;box-shadow:0 1px 2px rgb(0 0 0 / .04)}
  #sec-agent .tm-band{position:absolute;left:14px;top:14px;width:calc(100% - 28px);height:72px;background:none;border-radius:16px;justify-content:flex-start;align-items:flex-start;z-index:1;-webkit-tap-highlight-color:transparent}
  #sec-agent .tm-dim .tm-band{background:none}
  #sec-agent .tm-band .tm-char,#sec-agent .tm-band:hover .tm-char{width:72px;height:72px;border-radius:50%;background:var(--k-bg);transform:none}
  #sec-agent .tm-dim .tm-band .tm-char{background:var(--hover)}
  #sec-agent .tm-band .tm-st{left:84px;top:48px;right:auto;height:24px;box-shadow:none;background:var(--hover)}
  #sec-agent .tm-ok{left:50px;top:50px;width:24px;height:24px;border-width:2px;box-shadow:none}
  #sec-agent .tm-ok svg{width:14px;height:14px;stroke-width:3.6}
  #sec-agent .tm-red{left:50px;top:-6px;min-width:24px;height:24px;padding:0 6px;font-size:12px;line-height:18px;border-width:2px;box-shadow:none}
  #sec-agent .tm-body{display:flex;flex-direction:column;grid-row:auto;gap:10px;padding:14px}
  #sec-agent .tm-id{display:grid;grid-template-columns:84px minmax(0,1fr);grid-template-rows:28px 18px 26px auto;text-align:left;gap:0}
  #sec-agent .tm-id h2{grid-column:2;grid-row:1;font-size:18px;line-height:26px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #sec-agent .tm-id .tm-role{grid-column:2;grid-row:2;font-size:12px;line-height:18px}
  #sec-agent .tm-id p{grid-column:1 / -1;grid-row:4;margin:6px 0 0;font-size:13px;line-height:18px}
  #sec-agent .tm-card:not(.tm-new) .tm-id p{display:none}
  #sec-agent .tm-card:not(.tm-new) .tm-id{grid-template-rows:28px 18px 26px 0}
  #sec-agent .tm-now{min-height:0;padding:8px 12px;text-align:left;justify-content:flex-start}
  #sec-agent .tm-now.none{display:none}
  :is(#sec-agent,#sec-dash) .tm-stats{gap:8px}
  :is(#sec-agent,#sec-dash) .tm-stat{min-height:60px;padding:8px 4px}
  :is(#sec-agent,#sec-dash) .tm-stat b{font-size:20px;line-height:24px}
  #sec-agent .tm-btns{margin-top:0;align-self:stretch}
  #sec-agent .tm-go,#sec-agent .tm-b2{height:48px}
  #sec-agent .tm-b2{width:48px}
  :is(#sec-agent,#sec-dash) .tm-feed{border-radius:20px;padding:4px 16px 8px}
  :is(#sec-agent,#sec-dash) .tm-feed h2{padding:12px 0 6px}
  :is(#sec-agent,#sec-dash) .tm-fi{padding:12px 0;gap:4px 12px}
  :is(#sec-agent,#sec-dash) .tm-fi .ag-link{min-height:36px;padding:0 4px}

  /* an agent's page: a back bar that stays under the top bar (the whole bar is the button), then a compact hero */
  #sec-agent .tm-back{position:sticky;top:var(--mbar-h);z-index:25;display:flex;align-items:center;gap:8px;width:calc(100% + 32px);min-height:48px;margin:-16px -16px 14px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--surface);font-size:15px;text-align:left}
  #sec-agent .tm-back .ag-i{width:20px;height:20px}
  #sec-agent .tm-hero{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:12px;row-gap:10px;align-items:center;justify-content:stretch;padding:14px;border-radius:20px;margin-bottom:14px;text-align:left}
  #sec-agent .tm-face{grid-row:1 / 3;width:64px;height:64px}
  #sec-agent .tm-face .tm-char{width:64px;height:64px}
  #sec-agent .tm-hid{display:contents;text-align:left}
  #sec-agent .tm-hn{grid-column:2;grid-row:1;justify-content:flex-start;gap:4px 8px;align-self:end}
  #sec-agent .tm-hn h1{font-size:20px;line-height:26px}
  #sec-agent .tm-hid .tm-role{grid-column:2;grid-row:2;align-self:start}
  #sec-agent .tm-hid>p{grid-column:1 / -1;font-size:13.5px;line-height:19px}
  #sec-agent .tm-hero.is-hired .tm-hid>p:not(.ag-last){display:none}
  #sec-agent .tm-chips{grid-column:1 / -1;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin:0 -14px;padding:0 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #sec-agent .tm-chips::-webkit-scrollbar{display:none}
  #sec-agent .tm-chips span{flex:none;white-space:nowrap}
  #sec-agent .tm-hid .ag-last{grid-column:1 / -1;margin:0;font-size:13px;line-height:18px}
  #sec-agent .tm-hs{grid-column:1 / -1;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px}
  #sec-agent .tm-ring{flex:none}
  #sec-agent .tm-ring svg{width:48px;height:48px}
  #sec-agent .tm-ring b{font-size:16px;line-height:20px}
  #sec-agent .tm-ring.tm-sp div{flex-direction:row;align-items:baseline;gap:6px}
  #sec-agent .tm-acts{flex:1 1 100%;gap:8px}
  #sec-agent .tm-acts:has(> :only-child){flex:1 1 0;min-width:110px}
  #sec-agent .tm-acts .btn{flex:1 1 calc(33.333% - 6px);justify-content:center;padding:0 10px}
  #sec-agent .tm-acts .btn.ag-ib{flex:0 0 48px;padding:0}
  #sec-agent .tm-hero .ag-del{grid-column:1 / -1;flex-basis:auto}
  #sec-agent .ag-del .btn{min-height:40px}

  /* the job agent's card: its facts side by side, its buttons in a row */
  #sec-agent .ag-card{padding:14px;border-radius:18px}
  #sec-agent .ag-ch{gap:10px}
  #sec-agent .ag-cm{min-width:0;flex:1 1 140px}
  #sec-agent .ag-acts{display:flex;gap:8px;width:100%}
  #sec-agent .ag-acts .btn{flex:1 1 0;min-width:0;justify-content:center;padding:0 8px}
  #sec-agent .ag-acts .btn.ag-ib{flex:0 0 44px;padding:0}
  #sec-agent .ag-dl{gap:8px}
  #sec-agent .ag-dl div{flex-direction:row;gap:12px}
  #sec-agent .ag-dl dt{width:78px}
  #sec-agent .ag-dl dd{flex:1}
  #sec-agent .ag-tabr{align-items:stretch}
  #sec-agent .ag-tab{min-height:48px}
  #sec-agent .ag-ma{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #sec-agent .ag-ma .btn{min-width:0;justify-content:center;padding:0 8px}
  #sec-agent .ag-ma .ag-dis{margin-left:0}
  #sec-agent .ag-m{padding:14px}
  #sec-agent .ag-dh small{white-space:normal;overflow:visible;text-overflow:clip}
  #sec-agent .ag-dh .ag-when{display:none}
  #sec-agent .ag-dact{display:flex;flex-wrap:wrap;gap:8px}
  #sec-agent .ag-dact .ag-sp{display:none}
  #sec-agent .ag-dact .btn{flex:1 1 auto;min-width:0;padding:0 12px}
  #sec-agent .ag-dact .btn[data-ag="ddel"],#sec-agent .ag-dact .btn[data-ag="pdrop"]{flex:1 1 40%}
  #sec-agent .ag-dact .btn[data-ag="dsend"],#sec-agent .ag-dact .btn[data-ag="pdo"]{flex:2 1 50%}
  :is(#sec-agent,#sec-dash) .tm-fi .ag-link{min-height:40px}
  #sec-agent .ag-bl .ag-link,#sec-agent .ag-quiet .ag-link{display:inline-block;padding:10px 6px;margin:-10px 0}
  #sec-agent .ag-davb{padding:2px}
  /* small print is 12 px and up; the (i) tips have a 32 px target */
  #sec-agent .ag-new,#sec-agent .ag-js,#sec-agent .ag-grp,#sec-agent .ag-deg,#sec-agent .tm-red{font-size:12px}
  #sec-agent .ag-l small,#sec-agent .ag-hsbig small,#sec-agent .hs small,#sec-agent .hs-score small{font-size:12px}
  #sec-agent .hs-chip{min-height:40px}
  #sec-agent .rm-tip,.tk-host .rm-tip{width:32px;height:32px;margin:-5px -5px}
  #sec-agent .tm-cols{gap:4px}
  #sec-agent .tm-watch{margin-top:14px;padding:0;background:none;border:0;border-radius:0}

  /* the set-up: a full screen over the page and the tab bar, its title and Close at the top, Cancel and Save at the bottom */
  #sec-agent .ag-ed{position:fixed;inset:0;z-index:40;display:flex;flex-direction:column;margin:0;padding:0 16px;border:0;border-radius:0;box-shadow:none;background:var(--surface);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  #sec-agent .ag-edh{position:sticky;top:0;z-index:2;flex:none;margin:0 -16px 16px;padding:0 6px 0 16px;min-height:56px;border-bottom:1px solid var(--line);background:var(--surface)}
  #sec-agent .ag-ed h2{font-size:18px;line-height:24px}
  #sec-agent .ag-edt{display:none}
  #sec-agent .ag-edx{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--ink2);cursor:pointer}
  #sec-agent .ag-edx .ag-i{width:22px;height:22px}
  #sec-agent .ag-ed > *{flex:none}
  #sec-agent .ag-ft{position:sticky;bottom:0;z-index:2;margin:auto -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);gap:10px}
  #sec-agent .ag-ft .btn{flex:1 1 0;min-height:48px}
  #sec-agent .ag-ft .btn.pri{flex:2 1 0}
  #sec-agent .ag-f select.input,#sec-agent .ag-cb,#sec-agent .ag-mail,#sec-agent .ag-ta{max-width:none}
  #sec-agent .ag-f .input,#sec-agent .ag-f select.input{height:48px}
  #sec-agent .ag-ta{min-height:120px}
  #sec-agent .ag-chips{min-height:48px;padding:6px}
  #sec-agent .ag-chip{height:40px;font-size:14px}
  #sec-agent .ag-chip button{width:40px;height:40px;border-radius:0 20px 20px 0}
  #sec-agent .ag-ci{flex:1 1 100%;height:40px;min-width:0}
  #sec-agent .ag-sug{max-height:42vh}
  #sec-agent .ag-so,#sec-agent .ag-sn{min-height:44px;display:flex;align-items:center}
  #sec-agent .ag-ck{min-height:52px;padding:10px 14px}
  #sec-agent .ag-ck input{width:22px;height:22px}
  #sec-agent .ag-tin{width:100%;height:48px}
  #sec-agent .ag-lim .input{height:48px}

  /* the set-up's dropdowns: the pill is the whole width; its list is a sheet from the bottom with a title and a dim page */
  #sec-agent .ag-dd{justify-self:stretch}
  #sec-agent .ag-ddb{width:100%;min-width:0;height:48px;font-size:16px;padding:0 14px}
  #sec-agent .ag-ddb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #sec-agent .ag-ddbg{display:block;position:fixed;inset:0;z-index:5;background:rgb(0 0 0 / .4)}
  #sec-agent .ag-ddm,#sec-agent .ag-cofl .ag-ddm,#sec-agent .ag-cofl .ag-dd:not(:nth-of-type(1)) .ag-ddm{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:6;min-width:0;max-height:72vh;max-height:72dvh;overflow-y:auto;overscroll-behavior:contain;padding:6px 12px calc(12px + env(safe-area-inset-bottom));border:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px rgb(0 0 0 / .25)}
  #sec-agent .ag-ddt{display:block;padding:12px 8px 8px;font-size:13px;font-weight:700;color:var(--ink3);text-transform:uppercase;letter-spacing:.04em}
  #sec-agent .ag-ddo{min-height:52px;padding:8px;border-radius:10px;font-size:16px;line-height:22px}
  #sec-agent .ag-ddo input{width:20px;height:20px}
  #sec-agent .ag-ddo small{font-size:13px}

  /* the Hiring signal agent's companies to pick: the search, a row of dropdowns, then one company a row */
  #sec-agent .ag-cofl{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  #sec-agent .ag-cofl .ag-cq{grid-column:1;flex-basis:auto;height:48px}
  #sec-agent .ag-cofd{display:flex;gap:8px;overflow-x:auto;margin:0 -16px;padding:0 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #sec-agent .ag-cofd::-webkit-scrollbar{display:none}
  #sec-agent .ag-cofl .ag-cofd .ag-dd{flex:none;width:auto}
  #sec-agent .ag-cofl .ag-cofd .ag-ddb{width:auto;min-width:130px;height:44px;font-size:15px}
  #sec-agent .ag-cofl .ag-cofd .ag-dirb{width:44px;height:44px}
  #sec-agent .ag-cofl .ag-ddb span{max-width:200px}
  #sec-agent .ag-coall{min-height:44px;margin:0 0 4px}
  #sec-agent .ag-coall input{width:22px;height:22px}
  #sec-agent .ag-cos,#sec-agent .ag-cos{grid-template-columns:minmax(0,1fr);max-height:none;overflow:visible;padding:0}
  #sec-agent .ag-cot{min-height:68px;align-items:flex-start;padding:10px 12px 10px 10px}
  #sec-agent .ag-cot-ck{margin-top:8px}
  #sec-agent .ag-cot-b{align-items:flex-start}
  #sec-agent .ag-cot-t b,#sec-agent .ag-cot-t small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  #sec-agent .ag-cot-r{flex-wrap:wrap;gap:2px 8px}
  #sec-agent .ag-cot-r .ag-cot-s{flex:1 1 auto}
  #sec-agent .ag-cot-ck{width:24px;height:24px}

  /* the Hiring signal agent's companies, then the one picked (its own full view, Back at the top) */
  #sec-agent .ag-hsr{min-height:64px}
  #sec-agent .ag-hsd{scroll-margin-top:calc(var(--mbar-h) + 56px)}
  #sec-agent .ag-hsbk{min-height:44px;margin-bottom:4px;font-size:15px}
  #sec-agent .ag-hstabs{margin:8px 0 12px}
  #sec-agent .ag-hstabs button{height:44px;flex:1;justify-content:center}
  #sec-agent .ag-hsd{overflow:hidden}

  /* the Logs: a sheet that rises almost to the top, Close in easy reach */
  #sec-agent .lg-wrap{align-items:flex-end}
  #sec-agent .lg{width:100%;height:92vh;height:92dvh;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px rgb(0 0 0 / .25)}
  #sec-agent .lg-top{min-height:56px;padding:6px 8px 6px 16px;border-radius:18px 18px 0 0}
  #sec-agent .lg-top h2{font-size:18px}
  #sec-agent .lg-top .btn{min-height:44px;padding:0 18px}
  #sec-agent .lg-body{padding:12px 16px calc(20px + env(safe-area-inset-bottom))}
  #sec-agent .lg-shb{min-height:48px}
  #sec-agent .wk-now,#sec-agent .wk-steps{border-radius:16px}
  #sec-agent .wk-st{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:2px -14px 0;padding:0 14px}
  #sec-agent .wk-st::-webkit-scrollbar{display:none}
  #sec-agent .wk-st li{flex:none;white-space:nowrap}
  #sec-agent .wk-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  #sec-agent .wk-tab{flex:none;height:44px}

  /* a number's list over the team: a sheet from the bottom (as at 600 px and under, here for a phone turned sideways too) */
  #ag-kpi{align-items:flex-end;padding:0}
  #ag-kpi .kp{width:100%;max-height:88vh;max-height:88dvh;border-radius:18px 18px 0 0;border-bottom:0;box-shadow:0 -8px 30px rgb(0 0 0 / .25)}
  :is(#ag-kpi,#sec-dash) .kp-top{padding:12px 8px 12px 16px}
  :is(#ag-kpi,#sec-dash) .kp-x{width:44px;height:44px}
  :is(#ag-kpi,#sec-dash) .kp-list{padding:4px 16px calc(16px + env(safe-area-inset-bottom))}
  :is(#ag-kpi,#sec-dash) .kp-list li{min-height:56px}
  :is(#ag-kpi,#sec-dash) .kp-tx b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  :is(#ag-kpi,#sec-dash) .kp-xp{width:40px;height:40px}
  :is(#ag-kpi,#sec-dash) .kp-act .btn{min-height:44px}
  :is(#ag-kpi,#sec-dash) .kp-ta{font-size:16px}
}
/* Spend at most a day (Max 2026-10-23) */
#sec-agent .ag-cap{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px;font-size:14px;color:var(--ink2)}
#sec-agent .ag-cap input{width:110px;height:40px;padding:0 10px;border:1px solid var(--line2);border-radius:var(--r);background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
#sec-agent .ag-cap input:focus{outline:2px solid var(--brand);outline-offset:1px}
