/* Skin C: dark left rail, light work surface, amber only for "needs you". Replaces skin-a.css; load LAST. */
:root{--ink:#16171a;--muted:#5c5e66;--line:#e6e4de;--page:#f5f4f1;--card:#fff;--soft:#e7e5df;--rail:#111215;--amber:#e6a23c;--amber-ink:#8a5300;--amber-soft:#fcf0da;
--accent:var(--ink);--brand:var(--ink);--green:var(--ink);--tint1:var(--soft);--rail-width:232px;--wrap:880px;
--font:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--page);font-family:var(--font)}
body{background:var(--page);font-size:16px;line-height:1.6}
h1,h2,h3,h4,.brand,.title-row h1,.setup-head h1,.panel-head h3,.section-head h3{font-family:var(--font)!important;letter-spacing:0}

/* Navigation position: left rail. */
.shell{flex-direction:row}
.sidebar,.shell.folded .sidebar{width:var(--rail-width);flex-shrink:0;height:100vh;position:sticky;top:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:28px 16px;background:var(--rail);border:0}
.sidebar .overline,.side-bottom,.nav-icon,.nav b,.fold{display:none}
.brand,.shell.folded .brand{padding:0 12px 36px;gap:10px;color:#fff;font-size:16px;font-weight:700}.brand>span:last-child,.shell.folded .brand>span:last-child{display:inline;font-size:16px}.light{color:#fff;font-weight:700;font-size:inherit}
.mark{width:10px;height:10px;border-radius:99px;background:var(--amber);box-shadow:none}.mark *{display:none}
.sidebar nav{display:grid;gap:4px}
.nav,.shell.folded .nav{display:block;text-align:left;padding:12px;border:0;border-radius:8px;background:none;color:#b9bbc2;font-weight:500;white-space:nowrap;box-shadow:none}
.nav:hover{background:#1b1d21;color:#fff}.nav.active{background:#232529;color:#fff;box-shadow:none;border:0}
.nav-label,.shell.folded .nav-label{display:inline}
main{min-width:0;flex:1}

/* One top row: section tabs, then state. Stays visible while scrolling. */
header{height:64px;padding:0 48px;background:var(--page);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
header>div.crumbs>span,#crumb{display:none}
header .tabs{gap:4px}header .tabs button,header .tabs button[aria-current=page]{height:36px;padding:0 14px;border:0;border-radius:8px;background:none;box-shadow:none;color:var(--muted)}
header .tabs button[aria-current=page]{background:var(--soft);color:var(--ink);font-weight:600}
.head-actions>.demo{display:none}.head-actions>.demo:has(i.busy){display:inline;border:0;background:none}
header .waiting{height:36px;border:0;border-radius:8px;background:var(--amber);color:#16130c;font-weight:700}
.content{max-width:calc(var(--wrap) + 96px);margin:0;padding:32px 48px 80px}
.title-row{align-items:center;margin-bottom:24px}.title-row h1{font-size:28px;font-weight:600}.title-row p{font-size:15px}.date{display:none}
.setup-head h1{font-size:28px;font-weight:600}
.panel-head h3,.section-head h3,.readiness h3,.setup-panel h2{font-size:19px;font-weight:600}.panel-head h3:before,.section-head h3:before,.readiness h3:before{content:none}

/* Flat white surfaces, 12px corners, no shadows or gradients. */
.grid,.side,.profile-layout{grid-template-columns:minmax(0,1fr);gap:24px}
.panel,.stat,.stages,.empty,.jobs,.jobgrid{background:var(--card);border:0;border-radius:12px;box-shadow:none}
.panel,.empty{padding:24px}.panel:hover,.job-card:hover{transform:none;box-shadow:none}
.hero,.stats,.stages,.orb,.ic-empty{display:none}.empty{text-align:left;color:var(--muted)}.panel>.empty{padding:8px 0}
.jobs,.jobgrid{display:block}.jobgrid:empty{display:none}

/* Job rows: title and place on the left, status and the one action on the right. */
.job-card,.job-card.is-applied,.job-card:hover,.jobgrid .job-card{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:4px;align-items:center;padding:16px 24px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.job-card:last-child{border-bottom:0}
.jobtop{grid-column:1;grid-row:1}.company,.score,.tags,.job-card>.muted,.meta .ic,.meta span:not(:first-child){display:none}.jobtitle b{font-size:17px;font-weight:600}.jobtitle small{color:var(--muted)}
.meta{grid-column:1;grid-row:2;margin:0;color:var(--muted);font-size:14px}
.state{grid-column:2;grid-row:1;justify-self:end;margin:0;padding:0;background:none;color:var(--muted);font-weight:500;white-space:nowrap}.state:before{content:none}
.s-needs_input .state,.s-awaiting_confirm .state,.s-unverified .state{color:var(--amber-ink);font-weight:700}
.jobfoot{display:contents}.jobfoot small{grid-column:1/-1;grid-row:3;color:var(--muted)}.jobfoot small:empty{display:none}.job-actions{grid-column:2;grid-row:2;justify-self:end;margin:0;gap:16px}
.s-failed .jobfoot small{background:none;padding:0}
.badge,.badge.ready,.badge.applied,.int-row b,.agent-title small{background:none;color:var(--ink);padding:0}

/* Buttons: one dark button per page. */
.primary,.secondary,.outline{border-radius:8px;box-shadow:none;font-size:16px;font-weight:600;padding:10px 24px}
.primary,.primary:hover{background:var(--ink);border:1px solid var(--ink);color:#fff;filter:none}.primary:hover{background:#2c2e34}
.secondary,.outline,.job-card .secondary{background:var(--card);border:1px solid #b9b6ae;color:var(--ink)}.job-card .secondary{padding:6px 18px}
button.primary[disabled],button.secondary[disabled],button.outline[disabled]{background:var(--soft);color:#55575e;border:1px solid var(--soft);box-shadow:none}
.link,a.link,.job-card .link{color:var(--ink);text-decoration:underline;text-underline-offset:4px;font-weight:500}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b7791f;outline-offset:2px}
.search{height:40px;border:1px solid #b9b6ae;border-radius:8px;padding:0 12px;background:var(--card)}
input,textarea,select,.choice{border-radius:8px}
.table th{border-bottom:1px solid var(--ink)}.table td{border-color:var(--line)}
dialog{border:0;border-radius:12px}.msg,.callout{background:var(--page)}.msg.user{background:var(--ink);color:#fff}
.run-details summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;margin-top:12px}
.local-note{color:var(--muted);font-size:14px}

/* Confirmation, waiting and risk notices are the loudest things on the page. */
.task,.task.confirm{background:var(--card);border:3px solid var(--amber);border-radius:12px;padding:28px;margin-bottom:24px}.confirm h3{font-size:24px}
.confirm .table td{font-size:16px}.confirm .agent-actions{margin:20px 0 0;gap:12px;position:sticky;bottom:0;background:var(--card);padding:12px 0}
.warn,.disclose{background:var(--amber-soft);color:var(--ink);border:0;border-left:6px solid #b7791f;border-radius:6px;padding:14px 18px;font-weight:500}
.blocked{color:var(--amber-ink);font-weight:700}.offline{background:#8a2f1d;color:#fff}
.content:has(.task.confirm) .title-row .primary{background:var(--card);border:1px solid #b9b6ae;color:var(--ink)}

/* Setup wizard. */
.setup{max-width:var(--wrap);margin:0}.content .setup{padding:0}.setup-head{width:auto;height:auto;margin:0;padding:0;background:none;border:0;position:static}
.setup-bar{display:none}.setup-body{display:block;margin-top:24px}
.setup-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px}
.setup-steps button,.setup-steps li button{background:var(--soft)!important;border:2px solid transparent;border-radius:8px;box-shadow:none!important;padding:10px 12px}
.setup-steps .current button{background:var(--card)!important;border-color:var(--ink);font-weight:700}
.setup-steps b{background:none!important;color:var(--ink);box-shadow:none;width:auto;height:auto}.setup-steps .done b{font-size:16px!important}.setup-steps .done b:after{content:none}.setup-steps .done small:before{content:"✓ "}
.pick:has(input:checked){background:var(--page)!important;border-color:var(--ink)!important}

/* Résumé page: the editor fills everything right of the rail. */
#editor{background:var(--page)}#editor-page.away{width:calc(100vw - var(--rail-width))}

@media(max-width:700px){
.shell{flex-direction:column}
.sidebar,.shell.folded .sidebar{width:100%;height:auto;position:static;flex-direction:column;padding:12px 16px 8px}
.brand,.shell.folded .brand{padding:0 4px 8px}.sidebar nav{display:flex;justify-content:space-between;gap:4px}.nav,.shell.folded .nav{padding:8px 10px}
header{padding:0 16px;height:56px}header .tabs button,header .tabs button[aria-current=page]{padding:0 10px;font-size:14px}
.content{padding:20px 12px 64px}.title-row h1,.setup-head h1{font-size:24px}
.job-card,.jobgrid .job-card{padding:14px 16px}.job-actions{grid-column:1/-1;grid-row:4;justify-self:start;flex-wrap:wrap}
.task{padding:18px}.setup-steps button{flex-direction:column;gap:0;font-size:14px;padding:8px 4px}.setup-steps small{display:none}
.local-note{font-size:12px;max-width:11em;line-height:1.3}.local-note span{display:none}
#editor-page.away{width:100vw}}

/* Fixes after rendering. */
.job-card .secondary,.job-card .secondary:hover{box-shadow:none!important;transform:none!important}
.setup-steps b,.setup-steps .done b{color:var(--ink)!important}
@media(max-width:700px){.confirm .agent-actions{position:static}}

/* Jobs page: list on the left, the selected job on the right. */
.content:has(.jobs-split){max-width:1296px}
.jobs-split{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:24px;align-items:start}
.job-detail{position:sticky;top:80px;max-height:calc(100vh - 96px);overflow:auto;background:var(--card);border-radius:12px;padding:24px}
.job-detail h2{font-size:21px;line-height:1.35;margin:0 0 4px}.job-detail dl{display:grid;grid-template-columns:96px minmax(0,1fr);margin:16px 0}.job-detail dt,.job-detail dd{margin:0;padding:10px 0;border-bottom:1px solid var(--line)}.job-detail dt{color:var(--muted);font-size:14px}
.job-detail:has(.task){padding:0;max-height:none;position:static;background:none}.job-detail .task{margin:0;padding:20px}.job-detail .table td:first-child{width:36%}
.jobs-split .job-card{cursor:pointer}.jobs-split .job-card[aria-current=true]{background:#faf9f6;box-shadow:inset 3px 0 0 var(--ink)!important}
.detail-back{display:none}
@media(max-width:1199px){.jobs-split{grid-template-columns:minmax(0,1fr)}.job-detail{display:none;position:static;max-height:none}.jobs-split.showing-detail>:not(.job-detail){display:none}.jobs-split.showing-detail .job-detail{display:block}.detail-back{display:inline-block;margin-bottom:12px}}

/* bd: the list + detail pane (not rendered by the designer), today's card, the rail's problem line. */
.content:has(.jobs-split){max-width:1320px}
.content>.side{display:block;margin-bottom:16px}.content>.side>.panel{background:none;padding:0}.content>.side>.run-details{margin-bottom:4px}
.jobs-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.joblist .job-card{cursor:pointer}.joblist .job-card[aria-current=true]{background:var(--soft)}
.pick-job{border:0;background:none;padding:0;font:inherit;font-weight:600;color:inherit;text-align:left;cursor:pointer}
.job-detail{position:sticky;top:88px;max-height:calc(100vh - 112px);overflow:auto}
.job-detail>.task{margin:0}.detail h3{margin:0 0 4px;font-size:19px}.detail .agent-actions{margin:20px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.detail-back{display:none;margin-bottom:12px}
@media(max-width:1199px){
.jobs-split{display:block}.jobs-split .job-detail{display:none}
.jobs-split.showing-detail .joblist{display:none}.jobs-split.showing-detail .job-detail{display:block;position:static;max-height:none;overflow:visible}.detail-back{display:inline-block}
.content:has(.showing-detail)>.title-row,.content:has(.showing-detail)>.side,.content:has(.showing-detail)>.readiness{display:none}
.confirm .agent-actions{position:static}}
.content:has(.job-detail .primary:not([disabled])) .title-row .primary{background:var(--card);border:1px solid #b9b6ae;color:var(--ink)}
@media(max-width:1199px){.content:has(.jobs-split:not(.showing-detail)) .title-row .primary:not([disabled]){background:var(--ink);border-color:var(--ink);color:#fff}}
.today{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;border-left:4px solid var(--amber);margin-bottom:16px}.today h3{margin:0;font-size:19px}.today p{margin:4px 0 0}
.rail-note{margin-top:auto;border:0;background:none;color:var(--amber);font:inherit;font-size:14px;font-weight:600;text-align:left;padding:12px;cursor:pointer}
@media(max-width:700px){.rail-note{margin:0;padding:8px 10px 0}}
/* The three tools above the list share one line, so the confirm button stays on the first screen. */
.content>.side{display:flex;flex-wrap:wrap;align-items:center;gap:8px 32px;margin-bottom:12px}.content>.side>.panel{display:contents}
.content>.side .integration{display:flex;gap:24px}.content>.side .int-row{display:flex;gap:8px;padding:0;border:0}
.content>.side summary{margin:0}.content>.side>.run-details{margin:0}.content>.side details[open]{flex-basis:100%}
.job-detail{max-height:calc(100vh - 232px)}
@media(max-width:1199px){.job-detail{max-height:none}}
/* Daily recommendations. */
a.primary{display:inline-block;text-decoration:none;padding:10px 24px;border-radius:8px}.rules{margin:8px 0 0;padding-left:20px}
.joblist>.run-details{margin-top:12px}
.auto-feed{display:flex;gap:10px;align-items:flex-start;margin-top:24px;max-width:70ch}.auto-feed input{margin-top:6px}.auto-feed small{color:var(--muted)}
.mismatch{color:var(--amber-ink);margin-right:8px}
.sidebar .rail-settings{margin-top:auto;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:8px}.rail-left{color:var(--amber);font-size:13px;font-weight:600}
@media(max-width:700px){.sidebar .rail-settings{margin:0;align-self:flex-start}}
/* One line per job: title and place, then a status only when there is one, then at most one button. */
.job-card,.jobgrid .job-card{grid-template-columns:minmax(0,1fr) auto auto;column-gap:16px;min-height:84px;align-content:center}
.job-card .jobtop,.job-card .jobtitle{min-width:0}.job-card .jobtitle b,.job-card .jobtitle small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.job-card .pick-job{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.job-card .state{grid-column:2;grid-row:1}.job-card .state:empty{display:none}
.job-card .job-actions{grid-column:3;grid-row:1;justify-self:end;align-self:center}.job-card .job-actions:empty{display:none}
.job-card a.secondary{display:inline-block;text-decoration:none;white-space:nowrap}
.jobs .job-card{cursor:pointer}
@media(max-width:700px){.job-card .state{grid-column:1;grid-row:2;justify-self:start}.job-card .job-actions{grid-row:1/span 2}}
/* A top bar with nothing to show is not drawn. */
#topbar:not(:has(.tabs,.waiting,.offline,.local-note,.demo i.busy)){display:none}
/* The rail is exactly as tall as what can be seen, and scrolls when even that is too little: 设置 is never cut off. */
@media(min-width:701px){.sidebar,.shell.folded .sidebar{box-sizing:border-box;height:100vh;height:100dvh;overflow-y:auto}.sidebar>*{flex-shrink:0}}
/* Where each value came from, and which résumé the application uses. */
.src-tag{display:inline-block;margin-left:8px;padding:0 6px;border:1px solid var(--line);border-radius:6px;font-size:12px;font-weight:500;color:var(--muted);white-space:nowrap}
.src-tag.src-ai{border-color:var(--amber);background:var(--amber-soft);color:var(--amber-ink);font-weight:700}
.src-tag.src-unknown{border-style:dashed}
.resume-used{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:12px 0;font-size:15px}.resume-used dt{color:var(--muted)}.resume-used dd{margin:0;overflow-wrap:anywhere}
.job-detail .resume-used dt,.job-detail .resume-used dd{padding:0;border:0}

/* 求职偏好: grouped cards in two columns, values edited in place. */
.content:has(.pf-groups){max-width:1180px}
.pf-groups{columns:2 420px;column-gap:20px}.pf-groups>.panel{break-inside:avoid;margin:0 0 20px;display:block;width:100%}
.pf-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px}.pf-head h3{margin:0;font-size:19px;font-weight:600}
.pf-field{padding:10px 0;border-top:1px solid var(--line)}.pf-head+.pf-field,.pf-head+.muted+.pf-field{border-top:0}
.pf-label{font-size:14px;color:var(--muted);margin-bottom:2px}.pf-suggest{margin-left:8px;font-style:normal;font-size:12px;font-weight:600;color:var(--amber-ink);background:var(--amber-soft);border-radius:6px;padding:1px 6px}
.pf-value{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:8px;background:none;padding:4px 8px;margin-left:-9px;font:inherit;color:var(--ink);cursor:text}.pf-value:hover{border-color:var(--line);background:#faf9f6}
.pf-text{white-space:pre-wrap;overflow-wrap:anywhere}.pf-empty{color:#8b8d94}
.pf-edit{display:flex;gap:10px;align-items:flex-start}.pf-edit input:not([type=checkbox]),.pf-edit select,.pf-edit textarea,.pf-tags input{flex:1;min-width:0;width:100%;box-sizing:border-box;border:1px solid #b9b6ae;border-radius:8px;padding:7px 10px;font:inherit;background:var(--card);color:var(--ink)}
.pf-edit .link{white-space:nowrap;margin-top:8px}.pf-checks{display:flex;flex-wrap:wrap;gap:6px 16px;flex:1;padding:6px 0}
.pf-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.pf-tag{display:inline-flex;align-items:center;gap:4px;background:var(--soft);border-radius:8px;padding:3px 4px 3px 10px;overflow-wrap:anywhere}.pf-tag button{border:0;background:none;cursor:pointer;font-size:16px;line-height:1;color:var(--muted);padding:2px 5px}
.pf-tags input{flex:1 1 180px}
.pf-error{margin:4px 0 0;color:#9c1f3d;font-weight:600;font-size:14px}
.pf-later{border:1px dashed var(--line)!important;background:none!important}
.pf-field .drop{margin:6px 0 0}
@media(max-width:700px){.pf-groups{columns:1}}
/* What is happening after a click: always in view, never over the page's own buttons. */
/* Batch applying: a checkbox per row, and an action bar that stays at the bottom while something is ticked. */
.joblist .job-card:has(.job-check){grid-template-columns:auto minmax(0,1fr) auto auto;min-height:64px;padding:10px 16px}
.joblist .job-card:has(.job-check) .job-check{grid-column:1;grid-row:1;display:flex;padding:6px;margin:-6px;cursor:pointer}.joblist .job-card:has(.job-check) .jobtop{grid-column:2}.joblist .job-card:has(.job-check) .state{grid-column:3}.joblist .job-card:has(.job-check) .job-actions{grid-column:4}
.job-check input,.batch-head input{width:18px;height:18px;accent-color:var(--ink)}.job-check input:disabled{opacity:.35}.job-card:has(.job-check input:disabled) .jobtitle{opacity:.65}
.batch-head{display:flex;gap:8px 24px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid var(--line);font-size:14px}.batch-head label{display:flex;gap:8px;align-items:center;cursor:pointer}
.batch-bar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--card);border:2px solid var(--ink);border-radius:12px;padding:12px 18px;box-shadow:0 16px 40px -16px #0008;max-width:calc(100vw - 24px);white-space:nowrap}
.batch-bar.summary{display:block;white-space:normal;width:min(480px,calc(100vw - 24px))}.batch-bar.summary p{margin:0 0 8px}.batch-bar.summary div{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:700px){.joblist .job-card:has(.job-check){grid-template-columns:auto minmax(0,1fr) auto}.joblist .job-card:has(.job-check) .state{grid-column:2;grid-row:2}.joblist .job-card:has(.job-check) .job-actions{grid-column:3;grid-row:1/span 2}}
/* The rail names the page: no big titles, the page's buttons sit on one line. */
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.title-row{justify-content:flex-end;margin-bottom:12px;gap:12px;flex-wrap:wrap}.title-row>div:first-child{margin-right:auto}.title-row>div:first-child p{margin:0}
.title-row.bare{margin:0}
.content{padding-top:20px}
/* The jobs list as a compact table: box, job, status, found, action. */
.job-filter{display:flex;flex-wrap:wrap;gap:4px;padding:10px 12px;border-bottom:1px solid var(--line)}
.job-filter button{border:0;border-radius:99px;background:none;padding:4px 12px;font:inherit;font-size:14px;color:var(--muted);cursor:pointer}.job-filter button b{font-weight:600}.job-filter button[aria-pressed=true]{background:var(--ink);color:#fff}
.joblist .job-card:has(.job-check){grid-template-columns:auto minmax(0,1fr) 72px 76px auto;column-gap:12px;min-height:56px;padding:8px 14px}
.joblist .job-card:has(.job-check) .job-check{grid-column:1}.joblist .job-card:has(.job-check) .jobtop{grid-column:2}.joblist .job-card:has(.job-check) .state{grid-column:3;justify-self:start;display:inline}
.joblist .job-card:has(.job-check) .job-found{grid-column:4;grid-row:1;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.joblist .job-card:has(.job-check) .job-actions{grid-column:5}
.joblist .job-card:has(.job-check) .jobtitle b{font-size:15px}.joblist .job-card:has(.job-check) .jobtitle small{font-size:13px}
.joblist .job-card .secondary{padding:4px 12px;font-size:14px}
.job-tag{display:inline-block;padding:1px 8px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--soft);color:var(--ink)}
.job-tag.fresh{background:var(--ink);color:#fff}.job-tag.mine{background:var(--amber-soft);color:var(--amber-ink);border:1px solid var(--amber)}.job-tag.done{background:#e3efe6;color:#24573a}.job-tag.off{background:#f4e4e8;color:#8a2442}
.job-faint{color:#b9bbc2}
.batch-bar .link{white-space:nowrap}
@media (max-width:700px){.batch-bar{flex-wrap:wrap;white-space:normal;justify-content:center}.joblist .job-card:has(.job-check){grid-template-columns:auto minmax(0,1fr) auto}.joblist .job-card:has(.job-check) .state{grid-column:2;grid-row:2}.joblist .job-card:has(.job-check) .job-found{display:none}.joblist .job-card:has(.job-check) .job-actions{grid-column:3;grid-row:1/span 2}}
@media (min-width:701px){.joblist .job-card:has(.job-check){grid-template-columns:auto minmax(0,1fr) 72px 76px 96px}.joblist .job-card:has(.job-check) .job-actions{justify-self:stretch;text-align:right}}
@media (max-width:700px){.batch-bar,.batch-bar.summary{left:8px;right:8px;bottom:8px;transform:none;width:auto;max-width:none;flex-direction:row;justify-content:flex-start;gap:8px;padding:10px 12px}.batch-bar .primary,.batch-bar .outline{padding:6px 10px;font-size:14px;width:auto}.joblist .job-card:has(.job-check) .state:has(.job-faint){display:none}}
/* The summary sits in the middle and scrolls inside itself: never cut off by the bottom of a window. */
.batch-bar.summary{top:50%;bottom:auto;transform:translate(-50%,-50%);box-sizing:border-box;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto}
@media (max-width:700px){.batch-bar.summary{left:8px;right:8px;top:50%;bottom:auto;transform:translateY(-50%);display:block}}
.batch-note{margin:0;padding:8px 14px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.joblist .job-card .job-actions .secondary{white-space:nowrap}
.joblist .job-card.s-unverified:has(.job-check){grid-template-columns:auto minmax(0,1fr) 72px 76px max-content}
/* The confirmation as a structured form: one block per question, what needs checking first, buttons always in reach. */
.qa-group{margin:18px 0 0}.qa-group h4{margin:0 0 6px;font-size:15px}.qa-group ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.qa{border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-width:0;overflow-wrap:anywhere}.qa.check{border-color:var(--amber);border-left:5px solid var(--amber);background:var(--amber-soft)}
.qa-title{font-size:14px;color:var(--muted)}.qa-original{font-size:12px;color:#8b8d94}.qa-value{font-size:19px;font-weight:600;margin:2px 0}.qa-value.empty{color:#8b8d94;font-weight:400}
.qa-long{margin:4px 0}.qa-long summary{cursor:pointer;font-size:15px}.qa-long div{font-size:14px;white-space:pre-wrap;max-height:30vh;overflow:auto}
.qa-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.qa-meta .src-tag{margin:0}.qa-why{font-size:12px;font-weight:700;color:var(--amber-ink)}
.task fieldset.question{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0 0 10px;min-width:0;overflow-wrap:anywhere}.task .question input:not([type=radio]),.task .question select{width:100%;box-sizing:border-box;border:1px solid #b9b6ae;border-radius:8px;padding:8px 10px;font:inherit;background:var(--card);margin-top:6px}
.task .question input:invalid{border-color:#9c1f3d}
.task.confirm .agent-actions{position:sticky!important;bottom:0;background:var(--card);border-top:1px solid var(--line);margin:16px -28px -28px;padding:12px 28px;z-index:2}
@media (max-width:700px){.task.confirm .agent-actions{margin:12px -18px -18px;padding:10px 18px;gap:8px}}
.job-detail:has(.task.confirm),.content .job-detail:has(.task.confirm){overflow:visible!important;max-height:none!important;position:static!important}
/* Connection status: a dot and small text, not a button to the eye unless something is needed. */
.tools .conn{display:inline-flex;align-items:center;gap:6px;align-self:center;border:1px solid transparent;background:none;border-radius:99px;padding:4px 8px;font:inherit;font-size:13px;font-weight:400;color:var(--muted);cursor:pointer;min-height:0}
.tools .conn:hover{border-color:var(--line)}.conn i{width:8px;height:8px;border-radius:99px;background:#b9b6ae;flex:none}.conn.ok i{background:#2f8f5b}
.tools .conn.warn{border-color:var(--amber);background:var(--amber-soft);color:var(--amber-ink);font-weight:600;padding:6px 12px}.conn.warn i{background:var(--amber)}.conn b{text-decoration:underline;text-underline-offset:3px}
.tools .conn{position:relative}.conn.ok{cursor:default}.conn.ok i{width:10px;height:10px}
.conn-tip{position:absolute;right:0;top:100%;margin-top:4px;white-space:nowrap;background:var(--ink);color:#fff;border-radius:6px;padding:4px 10px;font-size:12px;visibility:hidden;z-index:12}.conn:hover .conn-tip,.conn:focus .conn-tip{visibility:visible}
.tools .conn.bad{border-color:#9c1f3d;background:#fbeaee;color:#9c1f3d;font-weight:600;padding:6px 12px}.conn.bad i{background:#9c1f3d}
/* The pinned apply button, its proposal, skipping and answering later. */
.tools .apply-why{align-self:center;color:var(--muted);font-size:13px;max-width:16em}
.top-list{list-style:none;margin:8px 0;padding:0;max-height:30vh;overflow:auto;text-align:left}.top-list li{padding:3px 0;overflow-wrap:anywhere}
#top-count{width:5em;border:1px solid #b9b6ae;border-radius:8px;padding:4px 8px;font:inherit;color:var(--ink);background:var(--card)}
.skip-choice{display:block;margin:8px 0}.panel.later{margin-bottom:16px}
.tools button.primary[data-apply-top]{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}.tools button.primary[data-apply-top]:disabled{opacity:.45}
/* The list is a table with named columns; dates in words, the exact time on hover. */
.job-cols{display:none}.job-sort select{border:1px solid #b9b6ae;border-radius:8px;padding:2px 6px;font:inherit;font-size:13px;background:var(--card)}
@media (min-width:701px){.job-cols,.joblist .job-card:has(.job-check),.joblist .job-card.s-unverified:has(.job-check){grid-template-columns:18px minmax(0,1fr) 72px 96px 96px!important}.job-cols{display:grid;column-gap:12px;padding:6px 14px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.job-cols span:last-child{text-align:right}.joblist .job-card.s-unverified:has(.job-check){grid-template-columns:18px minmax(0,1fr) 72px 96px max-content!important}}
.job-found span{display:block;white-space:nowrap}.job-found small{display:block;font-size:11px}
@media (max-width:700px){.joblist .job-card:has(.job-check) .job-found{display:flex!important;gap:4px 10px;flex-wrap:wrap;grid-column:2/-1!important;grid-row:3!important}.job-found span{display:inline}}
/* The title leads to the job page; the page's own text, as read, in a box of limited height. */
.job-link{color:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}.job-link:hover{text-decoration-color:currentColor}.job-link span{font-size:.75em;color:var(--muted)}
.jd{margin:12px 0}.jd-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:45vh;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:14px;line-height:1.6}
/* Every row says its state: same small tags, "not applied" barely there. */
.joblist .job-card .state{display:flex!important;gap:4px;flex-wrap:wrap;align-items:center}
.job-tag.quiet{background:none;color:#8b8d94;font-weight:400;border:1px solid var(--line)}.job-tag.outside{background:none;color:var(--muted);font-weight:400;border:1px dashed #b9b6ae}
@media (min-width:701px){.job-cols,.joblist .job-card:has(.job-check),.joblist .job-card.s-unverified:has(.job-check){grid-template-columns:18px minmax(0,1fr) 100px 96px 88px!important}.joblist .job-card.s-unverified:has(.job-check){grid-template-columns:18px minmax(0,1fr) 100px 96px max-content!important}}
.job-facts{margin:8px 0 12px}.log-raw{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:30vh;overflow:auto}.log li{overflow-wrap:anywhere}
/* Pressed once: a turning mark and a word where the button was. */
.job-busy{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.spin{width:11px;height:11px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite!important}
@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spin{animation:none!important;border-right-color:currentColor;opacity:.5}}
/* The status bar floats at the bottom: it takes no room in the page, so nothing moves when it comes or goes, and it
   is the same height in every state. */
#run-host{position:fixed;left:var(--rail-width);right:0;bottom:0;z-index:30}#run-host:empty{display:none}
body:has(#editor-page:not(.away)) #run-host{z-index:30}
body:has(#run-host .run-bar) .content{padding-bottom:72px}body:has(#run-host .run-bar) .batch-bar:not(.summary),body:has(#run-host .run-bar) .iv-bar{bottom:64px}body:has(#run-host .run-bar) .task.confirm .agent-actions{bottom:52px}
.run-bar{position:relative;height:52px;margin:0;padding:0;box-sizing:border-box;background:var(--card);border-top:1px solid var(--line);border-left:6px solid var(--ink);box-shadow:0 -8px 20px -16px #0008}
.run-bar.wait,.run-bar.attention{border-left-color:var(--amber);background:var(--amber-soft)}.run-bar.bad{border-left-color:#9c1f3d}.run-bar.done{border-left-color:#2f8f5b}
.run-line{display:grid;grid-template-columns:10px 7.5em minmax(0,1fr) auto auto;column-gap:12px;align-items:center;height:51px;padding:0 16px;white-space:nowrap}
.run-state,.run-what{overflow:hidden;text-overflow:ellipsis;min-width:0}.run-what{color:var(--ink)}.run-meta{display:flex;gap:10px;color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}
.run-actions{display:flex;gap:8px;justify-content:flex-end}
.run-bar button{border:1px solid #b9b6ae;background:var(--card);color:var(--ink);border-radius:8px;padding:4px 12px;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}
.run-bar .run-go{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:600}.run-bar .run-close{font-size:18px;line-height:1;padding:2px 10px}
.run-dot{width:10px;height:10px;border-radius:99px;background:#b9b6ae}.live .run-dot{background:var(--amber);animation:run-pulse 1.2s ease-in-out infinite!important}.done .run-dot{background:#2f8f5b}.bad .run-dot{background:#9c1f3d}
@keyframes run-pulse{50%{opacity:.25}}@media (prefers-reduced-motion:reduce){.live .run-dot{animation:none!important}}
.run-panel{position:absolute;left:0;right:0;bottom:100%;max-height:50vh;overflow:auto;background:var(--card);border-top:1px solid var(--line);box-shadow:0 -14px 30px -18px #0008;padding:12px 22px;overflow-wrap:anywhere}
.run-panel p{margin:6px 0}.run-problem{color:var(--amber-ink);font-weight:600}.run-note{font-size:13px;color:var(--muted)}.run-narrow{display:none}.run-progress{width:100%;height:6px;accent-color:var(--ink)}
.run-steps{margin:8px 0;padding-left:22px;font-size:14px;color:var(--muted)}.run-steps small{margin-right:8px;font-variant-numeric:tabular-nums}.run-steps li[aria-current=step]{color:var(--ink);font-weight:600}.run-questions{margin:8px 0;padding-left:22px;font-weight:600}
.run-what .run-unsent,.run-summary .run-unsent{color:#9c1f3d}.run-what .run-unsure,.run-summary .run-unsure{color:var(--amber-ink)}
@media (max-width:700px){#run-host{left:0}.run-bar{height:92px}.run-line{grid-template-columns:10px auto minmax(0,1fr);grid-template-areas:"dot state what" "meta meta actions";height:91px;row-gap:6px;padding:8px 12px}.run-dot{grid-area:dot}.run-state{grid-area:state}.run-what{grid-area:what}.run-meta{grid-area:meta;overflow:hidden;min-width:0}.run-actions{grid-area:actions}.run-wide{display:none}.run-narrow{display:block}body:has(#run-host .run-bar) .content{padding-bottom:112px}body:has(#run-host .run-bar) .batch-bar:not(.summary),body:has(#run-host .run-bar) .iv-bar{bottom:104px}body:has(#run-host .run-bar) .task.confirm .agent-actions{bottom:92px}}
main:has(#run-host .run-bar) .head-actions>.demo{display:none!important}
/* The list lines up: one left edge per column, equal buttons on the right, the width goes to the job's name. */
@media (min-width:701px){.job-cols,.joblist .job-card:has(.job-check),.joblist .job-card.s-unverified:has(.job-check){grid-template-columns:18px minmax(0,1fr) 84px 56px 88px!important;column-gap:10px}.job-cols span:nth-child(2){padding-left:16px}}
.joblist .job-card{align-items:center}.joblist .job-card:has(.job-check) .job-check{align-self:center;grid-row:1}
.joblist .job-card .state{justify-self:start;flex-wrap:nowrap!important}.joblist .job-card .job-found{justify-self:start;text-align:left}
.joblist .job-card .job-actions{justify-self:end;display:flex;justify-content:flex-end}.joblist .job-card .job-actions>*{width:88px;box-sizing:border-box;justify-content:center;text-align:center;display:inline-flex;align-items:center;padding-left:4px!important;padding-right:4px!important;white-space:nowrap}
.jobtitle{min-width:0}.jobtitle b{display:flex;align-items:center;gap:6px;min-width:0}
.row-new{width:8px;height:8px;flex:none;border-radius:99px}.joblist .row-new.on{background:var(--ink)}
.row-link{display:inline-flex;gap:3px;min-width:0;color:inherit;text-decoration:none;cursor:pointer}.row-link>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.row-link>i{flex:none;font-style:normal;font-size:.75em;color:var(--muted)}a.row-link:hover>span{text-decoration:underline;text-underline-offset:3px}
.job-card .row-more{font-weight:400;font-size:13px;color:var(--muted);text-align:left;width:100%}.joblist .row-more{padding-left:14px}.job-card .row-more:hover{color:var(--ink)}
.job-card[data-job],.job-card[data-feed-job]{cursor:pointer}
.job-card .jobtitle b{display:flex!important;align-items:center;gap:6px;min-width:0;overflow:visible!important}.job-card .jobtitle .row-link{flex:0 1 auto;max-width:100%;min-width:0;overflow:hidden;line-height:1.5}.job-card .jobtitle .row-link>span{display:block;min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--ink);line-height:1.5}
@media (min-width:1200px){.jobs-split{grid-template-columns:minmax(0,3fr) minmax(0,2fr)!important}}@media (max-width:700px){.joblist .job-card:has(.job-check) .job-check{grid-row:1/-1!important;align-self:center}}
/* Apply conversation (chat mode): the right column holds the conversation; the bottom run bar is not needed there. */
.job-detail.chat-side{display:grid;gap:12px;align-content:start}
.af-chat-panel{padding:12px 14px!important;display:grid;gap:8px}
.af-chat-head{display:flex;align-items:center;gap:10px}.af-chat-head span{color:var(--muted);font-size:13px;margin-left:auto}
.af-chat-box{height:clamp(380px,calc(100vh - 300px),640px);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.af-running{display:flex;gap:10px;align-items:center;font-size:14px}.af-running span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.af-waiting{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;padding:6px 10px;background:#fff2d6;border-radius:8px;font-size:13px}
.af-switch{margin:0 0 8px}
body:has(.af-chat-panel) #run-host .run-bar{display:none}

/* 2026-11-28 走查：新搜到的写一个「新」字，已连接写出来，没走完的写原因。 */
.jobtitle .row-new.on,.row-new.on{width:auto!important;height:auto!important;background:none!important;color:var(--ink)!important;border:1px solid var(--ink);border-radius:4px;font-style:normal;font-size:11px;font-weight:600;line-height:1;padding:2px 4px;margin-right:6px;display:inline-block}
.tools .conn.ok{color:var(--muted);font-size:13px}
.job-why{color:#9c1f3d}
