/* 12ui compact B: shared shell, destination toolbar, list/editor composition.
   Design decisions and tokens: DESIGN.md.
   Functional controls replace generated demo fields; pinned scale is 13/14/18/24. */
:root{--bg:#f8faf9;--surface:#fff;--ink:#243b33;--muted:#586b62;--line:#dde5e0;--accent:#235c45;--selected:#edf4ef;--radius:8px;font-size:14px;line-height:1.5}
body{font-family:"Segoe UI",sans-serif}
button,input,select,textarea{font-family:inherit;font-size:13px;line-height:20px}
input,select{min-height:36px;height:36px;padding:7px 10px;border-color:#a8b8af;border-radius:6px}
input[type=checkbox]{height:16px;min-height:16px;width:16px}
button:disabled{cursor:not-allowed;opacity:.5}
.button,.button.small,.button.secondary,.pub-selection-bar .button,.pub-review-actions .button{min-height:36px;padding:7px 12px;font-size:13px;line-height:20px;font-weight:500;border:1px solid transparent;border-radius:6px}
.button.secondary{border-color:#b4c2ba}
.text-button{font-size:13px;min-height:36px;padding:7px 8px}
.sidebar{width:208px;padding:24px 12px;background:#f0f5f1}
.workspace{margin-left:208px}
.brand{margin:0 12px 30px;font-size:13px;gap:10px}
.brand strong{font-size:19px}.brand-mark{font-size:21px;width:32px;height:38px}
nav{gap:3px}nav a{font-size:13px;min-height:40px;padding:8px 12px;font-weight:500}nav a span{font-size:12px}
.sidebar-bottom{font-size:12px;padding:12px}.sidebar-bottom p{display:none}
.topbar{height:56px;padding:0 32px;font-size:12px;background:var(--surface)}
.topbar-actions{gap:16px}
main{padding:28px 32px 40px;max-width:1560px}
.page-heading{margin-bottom:22px;gap:20px;align-items:center}
.page-heading h1{font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.025em;margin:0 0 6px}
.page-heading p{font-size:14px;line-height:1.5;max-width:75ch}
h2{font-size:18px;line-height:1.4;letter-spacing:-.015em;margin-bottom:14px}
h3{font-size:14px;line-height:1.5;letter-spacing:0}
p{margin-bottom:12px}small,.muted{font-size:13px;line-height:1.5}
.field,.filters label{font-size:13px;line-height:1.5;font-weight:500;gap:6px}
.checkbox{font-size:13px;line-height:1.5;min-height:36px;gap:8px;font-weight:400}
.badge{font-size:12px;line-height:18px;padding:2px 7px;font-weight:500;border-radius:4px}
.counts-line{font-size:13px;gap:12px 24px;padding:0 0 14px;border-top:0;margin-bottom:18px}
.counts-line strong{font-size:13px}.counts-line span{font-size:13px}
.panel{padding:20px;border-radius:8px}
.filters{gap:12px;margin-bottom:12px}
.job-primary-filters{grid-template-columns:minmax(200px,1fr) minmax(170px,260px)}
.job-advanced-filters>.filters{grid-template-columns:1fr 1fr;margin:0 16px 16px}
.job-advanced-filters>.filter-extras{margin:0 16px 16px}
.filter-status{display:flex;align-items:center;gap:8px;font-size:13px}
.health-configuration-body{padding:0 16px 16px}.health-configuration-body .panel{border:0;padding:16px 0;margin:0;border-radius:0}
.filter-extras{gap:12px;margin-bottom:18px}
.results-heading{font-size:13px;gap:16px;margin:18px 0 12px}
.results-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.results{border-radius:8px}
.job-row{padding:14px 16px;gap:16px}.job-title{font-size:14px;line-height:1.45;font-weight:600}
.job-company{font-size:13px}.job-salary{font-size:12px}.job-summary{gap:4px}
.job-add-action{font-size:13px;color:var(--accent);font-weight:500;margin-top:4px;text-decoration:underline;text-underline-offset:3px}
.job-publication{font-size:12px}.job-publication time{font-size:13px;font-weight:500}
.detail{border-radius:8px;animation:none}.detail h2{font-size:18px;line-height:1.4;margin:12px 0 4px}
.detail dl{gap:12px;font-size:13px;margin:18px 0}.detail dt{font-size:12px}.detail section{margin-top:20px}
.prose{font-size:14px;line-height:1.65}
.source-ad a{font-size:13px}.source-ad p{font-size:12px}
.pagination{font-size:13px;padding:14px 0}
.empty{padding:48px 24px}.empty h2{font-size:18px}.empty p{font-size:14px;max-width:58ch;margin:0 auto}
.note{font-size:13px;padding:12px 0;margin:0;line-height:1.6}
.compact-disclosure{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:0;margin:12px 0}
.compact-disclosure>summary{padding:12px 16px;font-size:13px;font-weight:500;cursor:pointer;color:var(--ink)}
.compact-disclosure>summary h2{display:inline;font-size:13px;font-weight:500;letter-spacing:0;line-height:1.5;margin:0}
.compact-disclosure[open]>summary{border-bottom:1px solid var(--line);margin-bottom:16px}
.compact-disclosure>form,.compact-disclosure>.pub-filters,.compact-disclosure>.pub-admin-actions,.compact-disclosure>.pub-health-list{margin:0 16px 16px}
.compact-disclosure>.muted,.compact-disclosure>.note{margin:0 16px 16px;padding:0}
.pub-command-bar{display:flex;align-items:flex-end;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:20px;flex-wrap:wrap}
.pub-command-bar .pub-destination{padding:0;margin:0;background:none;border:0;display:block;flex:1;min-width:220px;max-width:380px}
.pub-command-bar .pub-group-field{min-width:0}.pub-command-bar>.button{flex-shrink:0}
.pub-connection{margin:0 0 0 auto;display:flex;align-items:center;gap:12px;min-height:36px;font-size:13px;line-height:20px;flex-wrap:wrap}
.pub-connection .badge{background:transparent;font-size:13px;line-height:20px;font-weight:400;padding:0;display:inline-flex;align-items:center;gap:7px}
.pub-connection .badge:before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%;flex-shrink:0}
.pub-connection a{font-size:13px;line-height:20px;font-weight:500;white-space:nowrap}
.pub-filter-bar{display:grid;grid-template-columns:minmax(220px,2fr) minmax(170px,1.2fr) minmax(150px,1fr);gap:12px}
.pub-row-status .pub-remove-btn{min-height:auto;padding:3px 6px;font-size:12px;color:var(--muted);text-decoration:none}
.pub-row-status .pub-remove-btn:hover{color:var(--ink);text-decoration:underline}
.pub-decision-block{margin-top:12px;padding:12px;background:#f9faf8;border:1px solid var(--line);border-radius:6px}
.pub-decision-block>h3{font-size:12px;font-weight:600;margin:0 0 8px;color:var(--muted);letter-spacing:.02em}
.pub-decision-block .toolbar{gap:8px}
.pub-advanced{margin:12px 0}.pub-advanced .pub-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.pub-advanced .pub-filters>.field{min-width:180px;flex:1}
.pub-selection-bar{font-size:13px;color:var(--muted);margin:18px 0 12px;align-items:center;gap:12px}
.publication-layout{grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:20px}
.publication-layout.no-editor{grid-template-columns:1fr}
.pub-queue{border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden}
.pub-queue>.note{padding:12px 16px;border-top:1px solid var(--line);max-width:none;width:100%}
.pub-date-group{font-size:13px;padding:10px 14px;border-radius:0;margin:0;background:#f1f5f2}
.pub-date-group span{font-size:12px}.pub-date-group:not(:first-child){margin-top:0;border-top:1px solid var(--line)}
.pub-row{padding:14px;gap:10px;border-radius:0;grid-template-columns:20px minmax(0,1fr) auto}
.pub-row:first-of-type{border-radius:0}.pub-row-body{gap:4px}.pub-row-body strong{font-size:14px;line-height:1.5}
.pub-row-body span{font-size:13px}.pub-row-body small{font-size:12px}.pub-row-status small{font-size:12px;max-width:130px}
.pub-editor{padding:20px;border-radius:8px;top:20px}.pub-editor h2{font-size:18px;line-height:1.4;margin:12px 0 4px}
.pub-review-meta{font-size:12px;margin:12px 0;gap:8px 16px}.pub-review-tabs{font-size:13px;margin:12px 0 18px;padding:10px 0;gap:16px}
.pub-editor section{margin-top:20px}.pub-editor textarea{font-size:14px;line-height:1.6;padding:10px 12px;border-radius:6px}
.pub-editor #pub-message-text{min-height:200px}.pub-editor #pub-message-length{font-size:12px;margin-top:6px}
.pub-evidence{font-size:13px;padding:12px;border-radius:6px}.pub-evidence small{font-size:12px}
.pub-warning{font-size:13px;line-height:1.6;border-radius:6px;padding:12px}
.pub-review-actions{gap:8px;padding-top:16px;margin-top:18px}.pub-review-history{font-size:13px;margin-top:18px;padding-top:14px}
.pub-secondary-decisions{padding-top:12px}
.pub-row.simple-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.simple-review h2{font-size:17px;margin:8px 0 4px}
.simple-review>.muted{margin-bottom:8px}
.simple-review .pub-original-link{margin:8px 0 12px}
.simple-review #pub-message-text{min-height:150px;height:170px;max-height:300px;margin-top:6px;font-size:13px;line-height:1.5}
.simple-review .pub-review-actions{border:0;margin-top:12px;padding-top:0}
.simple-review .review-confirmation{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 0;max-width:60ch}
.simple-review .pub-review-history{margin-top:12px;padding-top:12px}
.simple-review details>.field{margin-top:12px}
.simple-review #pub-review-feedback{margin:10px 0}
.simple-review .pub-warning a{font-weight:600;display:inline-block;margin-top:4px}
.pub-send-bar{margin-top:20px;margin-bottom:0}
@media(max-width:720px){.pub-row.simple-row{grid-template-columns:1fr;gap:8px}.pub-row.simple-row .pub-row-status{grid-column:auto;justify-content:flex-start}.simple-review #pub-message-text{height:180px}}
.pub-batch{padding:20px;margin:24px 0;border-radius:8px}.pub-batch-heading{gap:16px}.pub-batch-heading h2{font-size:18px}
.pub-message-preview pre,.pub-history-row pre{font-size:14px;line-height:1.65;border-radius:6px;padding:14px}
.pub-batch-row{font-size:13px;padding:14px 16px;gap:16px}.pub-batch-row small{font-size:12px}
.pub-history-row{padding:16px;border-radius:8px}.pub-history-row small{font-size:12px}.pub-history-list{margin-top:24px}
.pub-wa-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:20px}
.pub-wa-status .badge{font-size:14px;font-weight:500;padding:0;background:none}
.pub-wa-status p{font-size:13px;color:var(--muted);margin:4px 0 0}
.pub-whatsapp-layout{grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:20px}
.pub-whatsapp-layout>aside{min-width:0}.pub-whatsapp-layout .pub-section{margin-top:16px}
.pub-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.pub-section-heading h2{margin:0;font-size:18px}.pub-section-heading h2 .muted{font-size:13px;font-weight:400}
.pub-group-updated{font-size:12px;margin:10px 0 0}
.pub-groups-list{margin-top:16px;max-height:480px;overflow:auto}
.pub-group-row{border-top:1px solid var(--line);font-size:13px}
.pub-group-row>summary{padding:12px 0;cursor:pointer;line-height:1.5}
.pub-group-row>summary strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
.pub-group-row>summary span{display:block;font-size:12px;margin:4px 0 0 16px}
.pub-group-row small{display:block;font-size:12px;margin:0 16px 12px;overflow-wrap:anywhere}
.pub-health-list{margin-top:0}.pub-health-list>div{font-size:13px;padding:11px 0;gap:16px}
.pub-config-fields{gap:12px}.pub-admin-actions .toolbar{align-items:center;gap:8px}.pub-qr p{font-size:13px}
@media(max-width:1150px){.pub-whatsapp-layout{grid-template-columns:1fr}.pub-whatsapp-layout>aside{display:block}.pub-whatsapp-layout>aside>.pub-section{margin-top:16px}}
@media(max-width:960px) and (min-width:721px){.pub-filter-bar{grid-template-columns:1fr 1fr}.pub-filter-bar .pub-search-field{grid-column:1/-1}}
@media(max-width:720px){.job-primary-filters,.job-advanced-filters>.filters{grid-template-columns:minmax(0,1fr)}.pub-wa-status{padding:14px;gap:12px;flex-wrap:wrap}.pub-section-heading{align-items:flex-start}.pub-groups-list{max-height:380px}.pub-config-fields{grid-template-columns:1fr}.pub-group-row summary{padding-block:14px}.page-heading{align-items:flex-start}}
table{font-size:13px}th{font-size:12px;text-transform:none;letter-spacing:0;font-weight:600;padding:12px 14px}
td{padding:14px}td strong{font-size:14px}td small{font-size:12px}.health-actions{gap:6px}
.schedule{margin-top:20px;gap:20px}.schedule p{font-size:13px}.compare-header,.compare-item{padding:18px 20px}
.compare-item h3{font-size:14px}.compare-item .prose{font-size:14px}.compare-actions{padding:12px 20px}
.review-row,.alert-row{padding:16px 0}.alert-time{font-size:12px}.log-summary{font-size:13px}.log-panel{margin-top:20px}
footer{font-size:12px;padding:18px 32px;line-height:1.5}.topbar-actions .button{font-size:13px}.error-banner{font-size:14px;margin:16px 32px 0}
@media(min-width:1450px){main{padding:32px 40px}.topbar{padding-inline:40px}.results-layout{grid-template-columns:1fr 1fr}}
@media(max-width:1150px){.sidebar{width:190px}.workspace{margin-left:190px}main{padding:24px}.topbar{padding-inline:24px}.page-heading h1{font-size:24px}.results-layout,.publication-layout{grid-template-columns:1fr}.pub-editor{position:static;max-height:none;overflow:visible}.pub-connection{margin-left:0;flex-basis:100%}.pub-row{grid-template-columns:20px minmax(0,1fr) auto}.pub-row-status{grid-column:auto;flex-direction:column;align-items:end}.pub-row-status small{text-align:right}}
@media(max-width:720px){.sidebar{position:static;width:auto;padding:12px}.workspace{margin-left:0}.brand{margin:0 4px 12px;font-size:12px}.brand strong{font-size:17px}.brand-mark{width:26px;height:30px;font-size:18px}.sidebar nav a{font-size:13px;min-height:38px;padding:8px 10px}.topbar{min-height:52px;height:auto;padding:10px 16px}.topbar-actions{font-size:12px;gap:10px;align-items:center}.topbar-actions #queue-status{max-width:50%}main{padding:20px 16px 28px}.page-heading{gap:12px;margin-bottom:18px}.page-heading h1{font-size:24px}.page-heading p{font-size:14px}.page-heading>.toolbar{width:100%}.pub-command-bar{padding:12px;gap:12px}.pub-command-bar .pub-destination{min-width:0;max-width:none;flex-basis:100%}.pub-command-bar>.button{width:100%}.pub-connection{gap:10px;min-height:28px;flex-basis:100%;justify-content:space-between}.pub-filter-bar{grid-template-columns:1fr}.pub-advanced .pub-filters{display:grid;grid-template-columns:1fr}.pub-advanced .pub-filters>.field{min-width:0}.pub-selection-bar{font-size:13px;flex-wrap:wrap}.pub-selection-bar>.button{width:auto}.pub-row{grid-template-columns:20px minmax(0,1fr);padding:12px}.pub-row-status{grid-column:2;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px}.pub-row-status small{text-align:left;max-width:none}.pub-editor{padding:16px}.pub-review-actions .button{flex:1 1 auto}.pub-batch{padding:16px}.pub-batch-heading .toolbar{width:100%}.panel{padding:16px}.empty{padding:36px 20px}.empty h2{font-size:18px}.counts-line{gap:6px 16px}.counts-line span{font-size:13px}.detail h2{font-size:18px}.job-row{padding:14px}.job-publication,.job-publication time{font-size:12px}.filter-status{max-width:none}.results-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.results-heading select{max-width:100%}.filters{gap:12px}.compare-actions .button,.toolbar .button{font-size:13px}footer{padding:16px;font-size:12px}.error-banner{margin:12px 16px 0}.pub-batch-row{gap:10px}.pub-message-preview pre,.pub-history-row pre{font-size:14px}}
