:root{--green:#245c4b;--orange:#ec7c35;--ink:#223c34;--muted:#708078;--line:#dfe6df;--bg:#f5f6f1}*{box-sizing:border-box}body{margin:0;font:14px/1.5 'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg)}aside{width:248px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:27px;font-weight:750;letter-spacing:1px;text-decoration:none;color:var(--green)}.brand small{display:block;font-size:8px;letter-spacing:2px}.logo{width:48px;height:48px;border-radius:14px;background:var(--green);color:white;display:grid;place-content:center;position:relative}.logo span{color:var(--orange);position:absolute;font-size:15px;right:6px;bottom:0}.workspace{font-size:10px;letter-spacing:1.3px;color:var(--muted);margin:39px 10px 14px}nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;color:#5b6f64;text-decoration:none;margin:3px 0;border-radius:8px;font-weight:550}nav a.active{background:#edf3ee;color:var(--green);box-shadow:inset 3px 0 var(--orange)}nav a:hover{background:#f5f7f3}nav i{font-style:normal;width:22px;color:var(--green);font-size:18px}.sidebar-bottom{margin-top:auto;color:var(--green);font-size:12px}.sidebar-bottom small{display:block;color:var(--muted);font-size:10px;margin-top:7px}.dot{display:inline-block;background:#6e9470;width:7px;height:7px;border-radius:50%;margin-right:7px}.shell{margin-left:248px}header{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:var(--muted);background:#ffffffa0}main{padding:34px 38px;max-width:1700px;margin:auto;min-height:calc(100vh - 120px)}footer{padding:12px 38px;color:var(--muted);font-size:11px}h1{font-size:30px;line-height:1.2;font-weight:650;letter-spacing:-.8px;margin:0 0 9px}h2{font-size:18px;font-weight:650;margin:0 0 16px}h3{font-size:15px;margin:0 0 10px}p{margin:0 0 15px}.sub{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--orange);font-weight:700;margin-bottom:10px}.pagehead{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}button,.button{font:inherit;border:0;background:var(--green);color:white;border-radius:7px;padding:10px 15px;cursor:pointer;text-decoration:none;display:inline-block;font-weight:550}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}.orange{background:var(--orange)}.quiet{background:white;color:var(--green);border:1px solid var(--line)}.danger{background:#a84b3f}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.metric .num{font-size:35px;font-weight:600;letter-spacing:-1px;margin:10px 0}.metric .label{color:var(--muted);font-size:12px}.metric .meta{font-size:11px;color:var(--muted)}.grid2{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin:22px 0}.row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf0eb}.row:last-child{border:0}.chip{display:inline-block;border-radius:5px;padding:3px 7px;background:#edf3ee;color:#35624a;font-size:11px;white-space:normal}.chip.warn{background:#fff0de;color:#966022}.chip.bad{background:#f7e8e4;color:#9d483e}.chip.neutral{background:#eef0f1;color:#66716f}.callout{background:#eaf1e8;padding:22px;border-radius:12px;border:1px solid #d7e3d4;display:flex;justify-content:space-between;gap:20px;align-items:center}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:white}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);background:#fafbf8;padding:13px 15px;border-bottom:1px solid var(--line)}td{padding:14px 15px;border-bottom:1px solid #edf0eb;vertical-align:top}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcf9}td strong{font-weight:600}td small{display:block;color:var(--muted);max-width:350px;margin-top:3px}.link{background:none;color:var(--green);padding:0;border:0;text-align:left;font-weight:600;text-decoration:underline;text-underline-offset:3px}.toolbar{display:flex;gap:12px;margin-bottom:18px;align-items:center;flex-wrap:wrap}.toolbar input{min-width:250px;flex:1}.toolbar select{max-width:260px}input,select,textarea{font:inherit;padding:10px 11px;border:1px solid #d3ded4;border-radius:6px;background:white;color:var(--ink);width:100%}textarea{min-height:90px;resize:vertical}label{font-size:12px;color:#52655b;display:block;margin-bottom:5px}label small{display:block;color:var(--muted)}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field.full{grid-column:1/-1}.field-section{grid-column:1/-1;font-size:11px;letter-spacing:1px;color:var(--green);border-bottom:1px solid var(--line);padding:12px 0 7px;font-weight:700}.form-actions{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px;margin-top:24px}dialog{width:min(950px,94vw);max-height:90vh;border:1px solid var(--line);border-radius:13px;padding:0;color:var(--ink);box-shadow:0 20px 90px #12352833}dialog::backdrop{background:#142e2766}.dialog-head{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:white;padding:20px 26px;border-bottom:1px solid var(--line);z-index:2}.dialog-head h2{margin:0}#dialogbody{padding:24px 26px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px;margin:18px 0}.detail-grid div{border-bottom:1px solid #edf0eb;padding:8px 0;overflow-wrap:anywhere}.detail-grid small{display:block;color:var(--muted)}.empty{text-align:center;padding:44px 20px;color:var(--muted)}pre{font-size:11px;white-space:pre-wrap;background:#f5f7f3;border-radius:8px;padding:15px;max-height:400px;overflow:auto;overflow-wrap:anywhere}details{margin:15px 0;border:1px solid var(--line);border-radius:8px;padding:13px}summary{cursor:pointer;font-weight:600}#toast{position:fixed;bottom:25px;right:25px;border-radius:8px;background:var(--green);color:white;padding:13px 22px;display:none;max-width:500px;z-index:20}.routes{display:flex;gap:12px;margin:12px 0}.route{flex:1;background:#f6f8f3;border-radius:8px;padding:17px}.route b{font-size:26px;display:block}.progress{height:5px;background:#e8eee5;border-radius:4px;margin-top:7px}.progress span{display:block;height:5px;background:#7ca27b;border-radius:4px}a{color:var(--green)}.mono{font-family:Consolas,monospace;font-size:11px}.notice{border-left:3px solid var(--orange);padding:10px 15px;background:#fff8ee;margin-bottom:20px}iframe{border:0;width:100%;height:650px}@media(max-width:1050px){aside{width:200px;padding:25px 13px}.shell{margin-left:200px}main{padding:25px}.cards{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}header{padding:0 25px}}@media(max-width:700px){aside{position:static;width:auto;padding:16px}.workspace,.sidebar-bottom{display:none}nav{display:flex;overflow:auto}nav a{white-space:nowrap}.brand{font-size:21px}.shell{margin:0}header{display:none}main{padding:20px}.fields,.detail-grid{grid-template-columns:1fr}.pagehead{align-items:start;flex-direction:column}.cards{gap:10px}.card{padding:17px}}

.confirm-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.confirm-grid input{width:auto;vertical-align:middle;margin-right:7px}

.objectfilters{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;align-items:end}.objectfilters label{flex:1 1 145px;min-width:140px}.objectfilters select{display:block;width:100%;margin-top:5px}.tablewrap table{font-size:13px}.tablewrap th{white-space:nowrap}

.researchtable td{padding:12px 10px}.researchtable td:first-child{min-width:155px}.researchtable td small{max-width:none}.researchtable .researchreason td{padding:10px 12px 16px;background:#f8faf6;border-bottom:2px solid var(--line)}.researchtable .researchreason small{font-size:12px}.researchtable th{padding:12px 10px;white-space:normal}.researchtable .link{margin:3px 0}

.chip.promising{background:#d9ecdb;color:#1b532d;border:1px solid #b1d4b5;font-weight:700}.chip.needsresearch{background:#fff0d6;color:#855600;border:1px solid #ebd09b;font-weight:600}
.source-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0}.source-filters label{font-size:12px}.source-filters select{width:100%}

/* Core 1.9.1: six metrics remain readable on smaller workstations. */
.cards{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}.metric{min-width:0}.shell{min-width:0}.tablewrap{max-width:100%;overflow-x:auto}.callout{flex-wrap:wrap}header{gap:12px}#runstate{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap}

.matchfilters192,.matchtop192{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:14px}.matchfilters192{margin-bottom:20px;padding:18px;background:white;border:1px solid var(--line);border-radius:12px}.matchtop192 small{display:block;color:var(--muted);margin:4px 0}.match192{margin-top:14px}.criteria192{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.criterion192{display:flex;gap:8px;background:#f4f6f0;border-radius:8px;padding:8px 12px}.conflict192{background:#fce9e4}.choices192{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.choices192 label{display:flex;gap:8px;align-items:center}.choices192 input[type=checkbox]{width:auto}.group192{border:1px solid var(--line);border-radius:10px;margin:18px 0;padding:16px}.group192 legend{font-weight:600}.mode192{justify-content:space-between}.mode192 select{width:145px}#profile192 h3{margin-top:25px}

.work-actions194{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:0 0 24px}.work-actions194 button{padding:24px 18px;font-size:17px}.work-find194{margin:16px 0}#work-profile194 h3{margin-top:24px}#work-profile194 .form-actions{position:sticky;bottom:-25px;background:white;padding:18px}#work-profile194 input[type=checkbox]{width:auto}#work-object194 input[type=checkbox]{width:auto}@media(max-width:700px){header{display:flex;height:auto;padding:14px;flex-wrap:wrap}header>span{display:none}}

.search-choices195{display:grid;gap:12px}.search-choice195{display:flex;align-items:center;justify-content:space-between;gap:16px}.search-choice195 p{margin:6px 0}

.website-badge{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border-radius:50%;background:#b92d39;color:#fff;font-size:11px;font-weight:700;margin-left:auto;flex-shrink:0} #website-review label{margin-top:14px} #website-review .fields label{margin-top:0}

/* Match follow-up, shared by match cards and their detail view. */
.match-follow197{padding:14px 16px;border:1px solid #bdd9cd;border-left:5px solid #287451;border-radius:8px;background:#eef8f2;overflow-wrap:anywhere}.match-follow197 strong{display:block;margin:4px 0;color:#18563c;font-size:1.05rem}.match-follow197 p{margin:7px 0}.match-follow197 small{display:block}.match-follow197.pending{background:#f5f6f8;border-color:#d5d9df;border-left-color:#7b8795}.match-follow197.pending strong{color:#3e4a58}.match-follow197.rejected{background:#fff3f0;border-color:#e6c2b8;border-left-color:#a34330}.match-follow197.rejected strong{color:#873725}.matchtop192>div:last-child{min-width:0}
