:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1b2c2b;background:#f5f7f5;font-synthesis:none;--green:#175b49;--muted:#677b75;--line:#dae4df;--soft:#edf3ee}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,.file-label{border:1px solid transparent;background:var(--green);color:#fff;padding:11px 17px;border-radius:9px;font-weight:600;cursor:pointer;transition:background .15s}button:hover{background:#247158}button:disabled{opacity:.45;cursor:default}button.secondary,.file-label{background:white;color:var(--green);border-color:var(--line)}button.secondary:hover,.file-label:hover{background:var(--soft)}button.subtle{background:transparent;color:var(--muted);padding:8px 0}.danger{color:#ac3e3e!important}input,select,textarea{display:block;width:100%;border:1px solid #cbdad2;border-radius:8px;padding:11px 12px;background:#fff;color:#20362e;margin-top:7px}input:focus,select:focus,textarea:focus{outline:2px solid #80bda5;outline-offset:1px}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:600;margin:16px 0}h1{font-size:31px;letter-spacing:-1px;line-height:1.15;margin:8px 0 14px}h2{font-size:23px;margin:0}h3{font-size:17px;margin:0 0 13px}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--muted);margin:0}.login{max-width:460px;margin:10vh auto;padding:32px}.login h1{font-size:41px;margin-top:18px}.login button{width:100%;margin-top:8px}.brand-mark{display:grid;place-items:center;background:var(--green);color:white;width:46px;height:46px;border-radius:14px;font-size:26px;font-weight:700;margin-bottom:34px}aside{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column}.brand{text-decoration:none;color:var(--green);font-size:26px;font-weight:800;display:flex;gap:10px;align-items:center;margin:0 0 52px}.brand span{font-size:16px;letter-spacing:-.6px}aside .eyebrow{font-size:9px;margin-left:10px;margin-bottom:12px}nav{display:grid;gap:7px}nav button{text-align:left;background:transparent;color:#697c73;font-size:13px;padding:13px}nav button.active{background:#e9f1ec;color:#145640}nav button:hover{background:#f0f4f1}.aside-bottom{margin-top:auto;font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}.aside-bottom button{width:100%;text-align:left}.dot{width:7px;height:7px;border-radius:50%;background:#439475}.workspace{margin-left:232px;padding:38px 44px;max-width:1590px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}header button{font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.stat{padding:22px;background:white;border:1px solid var(--line);border-radius:12px}.stat strong{display:block;font-size:28px;letter-spacing:-1px;margin-bottom:5px}.stat span{font-size:12px;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}.toolbar label{margin:0;min-width:150px}.toolbar>p{margin-right:auto}.toolbar select{min-width:170px}.toolbar button{align-self:end}.panel,.card,.match{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:15px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{margin:0;overflow-wrap:anywhere}.card .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.actions button{font-size:12px;padding:8px 11px}.badge{display:inline-block;font-size:11px;border-radius:30px;padding:4px 9px;background:#e8f2ec;color:#286f4b;margin-right:6px}.badge.review,.badge.uncertain{background:#fff2d7;color:#8b6721}.badge.failed,.badge.reject{background:#ffeded;color:#9a4444}.badge.disabled,.badge.cancelled{background:#eee;color:#777}.match-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.match h3{margin:12px 0 8px}.match blockquote{margin:16px 0;padding:0 0 0 15px;border-left:3px solid #96bca9;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:15px}.match a{color:var(--green);text-decoration:underline;text-underline-offset:3px;font-size:13px}.match-footer{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.match-footer .actions{margin-left:auto}.match-footer button{margin-left:5px}.empty{padding:50px;text-align:center;border:1px dashed #cbd8d0;border-radius:12px;color:var(--muted);line-height:1.8}.pager{display:flex;justify-content:center;gap:20px;align-items:center;margin-top:25px;font-size:13px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three-columns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.inline{display:flex;align-items:end;gap:12px}.inline label{margin:0;max-width:140px}.file-label{display:inline-block;margin:0;font-size:14px}.file-label input{padding:0;border:0;font-size:12px;max-width:240px}dialog{border:1px solid var(--line);border-radius:15px;max-width:660px;width:calc(100% - 30px);max-height:92vh;padding:28px;box-shadow:0 24px 100px #163e2833}dialog::backdrop{background:#152f245e}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.dialog-head button{font-size:12px}.check{display:flex;align-items:center;gap:8px}.check input{width:17px;margin:0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#233e32;color:#fff;padding:14px 22px;max-width:650px;width:max-content;max-width:90vw;border-radius:10px;z-index:10;font-size:14px}#notice{background:#fff4dc;border:1px solid #eeddaa;border-radius:10px;padding:14px 18px;font-size:13px;margin-bottom:20px}.status-line{border-bottom:1px solid #edf1ee;padding:12px 0;font-size:13px;display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}pre{white-space:pre-wrap;font-size:12px}.view{animation:show .15s ease}@keyframes show{from{opacity:.5}to{opacity:1}}@media(max-width:1000px){aside{width:190px;padding:24px 12px}.workspace{margin-left:190px;padding:28px 24px}.stats{gap:8px}.stat{padding:16px}.cards,.two-columns{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:auto;padding:18px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin-bottom:18px}aside .eyebrow,.aside-bottom{display:none}nav{display:flex;overflow:auto}nav button{white-space:nowrap;font-size:12px;padding:10px}.workspace{margin:0;padding:24px 16px}.stats{grid-template-columns:1fr 1fr}.three-columns{grid-template-columns:1fr}.toolbar{align-items:stretch}.toolbar label{flex:1}.match,.panel,.card{padding:18px}.match-top{align-items:flex-start}.match-footer .actions{margin-left:0}.login h1{font-size:35px}}

#topic-form details{margin:18px 0}#topic-form summary{cursor:pointer;margin-bottom:18px;color:var(--green)}#topic-list-form textarea{max-width:100%}
.stats{grid-template-columns:repeat(3,1fr)}.source-stats{display:flex;gap:28px;margin:16px 0}.source-stats strong{display:block;font-size:22px}.source-stats span{color:var(--muted);font-size:12px}@media(max-width:700px){.stats{grid-template-columns:1fr 1fr}}
.subscription-controls label{margin:0}.subscription-controls .check{align-self:center}.table-wrap{width:100%;overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);background:var(--soft);white-space:nowrap}tbody tr:last-child td{border-bottom:0}td strong{display:block;min-width:150px}td>span.muted{display:block;margin-top:4px}.table-actions{display:flex;gap:6px;min-width:310px}.table-actions button{font-size:11px;padding:7px 9px;white-space:nowrap}.table-error{display:block;color:#9a4444;font-size:11px;margin-top:4px}td input[type=checkbox]{width:18px;height:18px;margin:0}.subscription-controls #selected-subscriptions{margin-right:auto}@media(max-width:700px){th,td{padding:11px 12px}.table-actions{min-width:280px}}
.sort-button{display:block;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;text-align:left;font-size:inherit;font-weight:700;text-transform:inherit;letter-spacing:inherit;white-space:nowrap}.sort-button:hover{background:transparent;color:var(--green)}.sort-button:focus-visible{outline:2px solid #80bda5;outline-offset:4px}.matches-table table{min-width:1280px;table-layout:fixed}.matches-table th:nth-child(1){width:105px}.matches-table th:nth-child(2){width:180px}.matches-table th:nth-child(3){width:150px}.matches-table th:nth-child(4){width:160px}.matches-table th:nth-child(6){width:95px}.matches-table th:nth-child(7){width:165px}.matches-table th:nth-child(8){width:200px}.matches-table tbody tr{border-bottom:1px solid var(--line)}.matches-table tbody tr:last-child{border-bottom:0}.matches-table td{border-bottom:0;vertical-align:top}.matches-table td strong{min-width:0;overflow-wrap:anywhere}.matches-table td:nth-child(3),.matches-table td:nth-child(4){overflow-wrap:anywhere}.match-topic{overflow:hidden}.match-reason{display:-webkit-box!important;min-height:2.8em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.match-message{min-width:0;max-width:none}.match-text{display:-webkit-box;min-height:4.35em;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}.match-message details{margin:8px 0}.match-message details p{white-space:pre-wrap;overflow-wrap:anywhere}.match-message summary{cursor:pointer;color:var(--green)}.match-message a,td a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.match-date{white-space:nowrap}.match-table-actions{min-width:0;align-content:flex-start;flex-wrap:wrap}.match-table-actions button{margin:0}.topics-table table{min-width:1050px;table-layout:fixed}.topics-table th:nth-child(1){width:110px}.topics-table th:nth-child(2){width:auto}.topics-table th:nth-child(3){width:160px}.topics-table th:nth-child(4),.topics-table th:nth-child(5){width:105px}.topics-table th:nth-child(6){width:85px}.topics-table th:nth-child(7){width:245px}.topic-identity strong{min-width:0;overflow-wrap:anywhere}.topic-description{display:-webkit-box!important;overflow:hidden;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.topic-table-actions{min-width:0;flex-wrap:wrap}.topic-table-actions button{margin:0}@media(max-width:700px){.matches-table table{min-width:1160px}.topics-table table{min-width:1000px}}

/* Use the available viewport width and keep the message column spacious. */
.workspace{max-width:none}
.matches-table table{min-width:1560px}
.matches-table th:nth-child(4){width:125px}
.matches-table th:nth-child(5){width:150px}
.matches-table th:nth-child(6){width:auto}
.matches-table th:nth-child(7){width:95px}
.matches-table th:nth-child(8){width:165px}
.matches-table th:nth-child(9){width:200px}
@media(max-width:700px){.matches-table table{min-width:1560px}}
.topics-table table{min-width:1180px}.topics-table th:nth-child(4){width:130px}.topics-table th:nth-child(5),.topics-table th:nth-child(6){width:105px}.topics-table th:nth-child(7){width:85px}.topics-table th:nth-child(8){width:245px}@media(max-width:700px){.topics-table table{min-width:1130px}}
.stat .stat-breakdown{display:block;margin-top:8px;color:var(--green);font-size:12px;font-weight:600}
