:root {
  --canvas:#f5f6f7;
  --ink:#24282d;
  --muted:#606773;
  --line:#e1e4e8;
  --accent:#b6460e;
  --accent-light:#fff0e6;
  --radius:12px;
}
.sidebar {background:#fff;border-color:var(--line)}
.brand {margin-bottom:28px;padding-top:3px}
.brand img {display:block;width:144px;height:auto;max-width:100%}
nav a {color:#505762}
nav a:hover {background:#f4f5f6}
nav a[aria-current] {background:var(--accent-light);color:#893a10}
.topbar {height:52px;background:#fff}
#breadcrumb span {color:#7b838c}
.sidebar-bottom {border-color:var(--line)}
.profile {background:#eef0f3;color:#4b5460}
.demo {color:#56606a}
.demo span {background:#89929b}
main:has(#list-workbench) {max-width:1710px;padding-top:23px}
.button:hover {background:#f4f5f6;border-color:#cdd2d7}
.button.primary:hover {background:#963707;border-color:#963707}
select,input:not([type=checkbox]),textarea {border-color:#d6dbe0}
dialog {box-shadow:0 20px 70px #171e2b30}
dialog::backdrop {background:#272e395c}
.form[hidden] {display:none}

.research-title,.research-listbar {display:flex;align-items:center;justify-content:space-between;gap:14px}
.research-title {margin:0 0 16px}
.research-title h1 {font-size:clamp(1.7rem,3vw,2.2rem);letter-spacing:-.055em;font-weight:750}
.research-listbar {margin-bottom:12px}
.research-listbar > div:first-child {min-width:0}
.research-listbar p {margin:6px 0 0;color:var(--muted);font-size:.8rem}
#list-choice {max-width:100%;font-size:.94rem;font-weight:700}
.research-list-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.research-list-actions svg,.research-title svg {width:15px;height:15px}
.research-empty {display:grid;justify-items:start;gap:12px;padding:32px}
.research-empty p {color:var(--muted)}
.research-board {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.95fr);align-items:start;
  min-height:min(570px,calc(100dvh - 197px));background:white;border:1px solid var(--line);border-radius:11px;
  box-shadow:0 2px 6px #18202907;overflow:hidden}
.research-grid,.research-inspector {min-width:0}
.research-toolbar {border-bottom:1px solid var(--line)}
.research-tabs {display:flex;gap:13px;overflow:auto;scrollbar-width:thin;padding:0 14px}
.research-tabs button {display:flex;align-items:center;gap:5px;flex:none;white-space:nowrap;min-height:44px;
  padding:0 2px;border:0;border-bottom:2px solid transparent;background:none;color:#58606b;font-weight:610;font-size:.81rem}
.research-tabs button[aria-pressed=true] {border-bottom-color:var(--accent);color:#9a3e0e}
.research-tabs span {border-radius:5px;background:#edf0f2;color:#56616d;padding:2px 5px;font-size:.72rem;
  font-variant-numeric:tabular-nums}
.research-tabs button[aria-pressed=true] span {background:var(--accent-light);color:#8e350e}
.research-searchline {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 14px}
.research-search {position:relative;display:flex;align-items:center;min-width:0;width:min(100%,295px)}
.research-search svg {position:absolute;left:8px;width:15px;height:15px;color:#6b7480}
.research-search input {width:100%;padding:7px 8px 7px 29px;font-size:.83rem}
.research-run {flex:none;color:var(--muted);font-size:.76rem}
.research-filters {padding:8px 14px;color:#5a6370;font-size:.8rem;border-bottom:1px solid var(--line)}
.research-filters summary,.research-foot summary,.inspector-section summary,.intake-options summary,.research-import-preview summary {cursor:pointer;font-weight:650}
.research-filters > div {display:flex;flex-wrap:wrap;gap:8px;padding:9px 0 3px}
.research-filters select {min-height:32px;font-size:.77rem;max-width:min(230px,65vw)}
.research-bulk {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 14px;
  background:#fff3e9;color:#7e3917;border-bottom:1px solid #f7dfcd;font-size:.81rem}
.research-fast {padding:2px 14px;border-bottom:1px solid var(--line);background:#fcfcfd}
.research-table {max-height:calc(100dvh - 286px);min-height:230px;overflow:auto;scrollbar-width:thin}
.research-table table {width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.research-table th,.research-table td {min-width:0;padding:9px 8px;text-align:left;overflow-wrap:anywhere;vertical-align:middle;border-bottom:1px solid #e9ebee}
.research-table th {position:sticky;top:0;z-index:1;background:#f7f8f9;color:#58616b;font-size:.76rem;font-weight:650}
.research-table td {font-size:.82rem;height:56px}
.research-table th:first-child,.research-table td:first-child {width:40px;padding-left:13px}
.research-table th:last-child {width:25%}
.research-table .cell-note {font-size:.74rem;line-height:1.28;margin-top:3px}
.research-table tbody tr {background:#fff}
.research-table tbody tr:hover {background:#f8f9fa}
.research-table tbody tr.active-row {background:#fff5ee}
.research-table tbody tr.active-row td:first-child {box-shadow:inset 3px 0 #e26922}
.research-table input[type=checkbox] {width:15px;height:15px}
.research-row-name {background:none;border:0;padding:0;font:inherit;font-weight:700;text-align:left;color:var(--ink);line-height:1.25}
.research-row-name:hover {color:#9c3d0c;text-decoration:underline;text-underline-offset:2px}
.research-status,.research-note {display:inline-flex;align-items:center;gap:5px;font-size:.71rem;font-weight:620;line-height:1.26;
  border-radius:5px;background:#eef0f2;color:#515b66;padding:4px 6px}
.research-status::before {content:"";flex:none;width:5px;height:5px;border-radius:50%;background:currentColor}
.is-ready {background:#e8f4ec;color:#23613f}
.is-issue {background:#fff0de;color:#81510e}
.research-inspector {border-left:1px solid var(--line);max-height:calc(100dvh - 185px);overflow:auto;scrollbar-width:thin}
.inspector-header {display:flex;justify-content:space-between;gap:9px;align-items:start;padding:14px 15px 11px;background:#fbfcfd;
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}
.inspector-header h2 {font-size:1.09rem;line-height:1.25;overflow-wrap:anywhere}
.inspector-header p {color:var(--muted);font-size:.78rem;margin-top:4px;overflow-wrap:anywhere}
.inspector-nav {display:flex;gap:4px;flex:none}
.inspector-nav button {padding:4px 8px;min-height:29px;font-size:.78rem}
.inspector-close {display:none}
.inspector-section {padding:12px 15px;border-bottom:1px solid var(--line);font-size:.84rem;line-height:1.45;overflow-wrap:anywhere}
.inspector-section p {margin:2px 0}
.inspector-label {display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:6px}
.inspector-label h3 {font-size:.84rem}
.inspector-section p span {margin-left:4px;color:#606773;font-size:.78rem}
.inspector-section p.inspector-meta {font-size:.76rem;color:var(--muted)}
.inspector-section p.inspector-angle {padding:7px 9px;border-left:2px solid #e87531;background:#fff7f1;margin-top:6px}
.inspector-section details {margin-top:7px}
.inspector-draft .form {margin:0;gap:6px;position:relative}
.inspector-draft .form label.sr-only {width:1px;height:1px}
.inspector-draft input,.inspector-draft textarea {font-size:.83rem;background:#fff}
.inspector-draft input {font-weight:620}
.inspector-draft textarea {min-height:110px}
.inspector-actions {display:flex;gap:7px;margin-top:6px;flex-wrap:wrap}
.inspector-history[open] summary {margin-bottom:6px}
.research-inspector footer {display:flex;justify-content:flex-end;padding:6px 14px}
.research-quiet {background:none;border:0;padding:6px 0;font-size:.76rem;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.inspector-error {color:#a32b20;margin:6px 15px;font-size:.78rem}
.inspector-error:empty {display:none}
.candidate {margin:4px 4px 0 0}
.research-foot {font-size:.78rem;color:#59616b;margin:10px 0}
.research-foot p {margin-top:4px}
.research-zero {padding:28px 15px;color:#616b76;font-size:.86rem}
.source-link {color:#a14411;text-decoration:underline;text-underline-offset:2px;font-size:inherit}
.source-input,.intake-options {width:100%;display:grid;gap:9px;padding:11px;border:1px solid var(--line);border-radius:8px;background:#f7f8f9}
.source-input[hidden] {display:none}
.source-input summary,.intake-options summary {font-size:.84rem}
.intake-options[open] > * + * {margin-top:9px}
.source-input details p {font-size:.82rem;margin-top:5px}
.form label.tick {display:flex;align-items:center;gap:7px}
.tick input {flex:none}
.batch-footer {display:flex;justify-content:flex-end;width:100%}
.research-import-preview {margin-top:14px}
.research-import-preview > p,.research-import-preview > details {font-size:.84rem;margin:10px 0;color:#58616b}
.research-import-preview ul {list-style:none;padding:0;margin:6px 0 14px}
.research-import-preview li {display:flex;justify-content:space-between;gap:8px;font-size:.8rem;padding:6px 0;border-bottom:1px solid var(--line)}
.research-import-preview small {color:var(--muted)}
.import-stats {display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:9px 0}
.import-stats div {display:grid;gap:3px;background:#f2f4f6;padding:8px;border-radius:6px}
.import-stats strong {font-size:1.23rem}
.import-stats span {font-size:.73rem;color:#56606a}

.work-counts {display:grid;grid-template-columns:repeat(4,1fr);margin:14px 0 22px;background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.work-metric {display:flex;align-items:center;padding:16px;background:#fff;border:0;text-align:left;color:var(--ink);font:inherit}
.work-metric + .work-metric {border-left:1px solid var(--line)}
.work-metric:is(:hover,[aria-pressed=true]) {background:var(--accent-light)}
.work-metric:focus-visible {position:relative;outline-offset:-3px}
.work-metric:nth-child(n+5) {border-top:1px solid var(--line)}
.work-metric:nth-child(4n+1) {border-left:0}
.work-counts strong,.work-counts span {display:block}
.work-counts strong {font-size:1.5rem;letter-spacing:-.05em}
.work-counts span {font-size:.84rem;color:var(--muted)}
.list-status {display:inline-block;padding:5px 8px;white-space:nowrap;border-radius:6px;font-size:.82rem;font-weight:650;background:#eef0f3;color:#505762}
.list-status.attention {background:#fff0de;color:#81510e}

@media(max-width:1180px) {
  .research-board {grid-template-columns:minmax(0,1.14fr) minmax(305px,.86fr)}
  .research-tabs {gap:8px}
  .research-table th:first-child,.research-table td:first-child {width:36px;padding-left:9px}
}
@media(max-width:940px) {
  .work-counts {grid-template-columns:repeat(2,1fr)}
  .work-metric:nth-child(odd) {border-left:0}
  .work-metric:nth-child(n+3) {border-top:1px solid var(--line)}
}
@media(max-width:760px) {
  .research-board {grid-template-columns:minmax(0,1fr)}
  .research-table {max-height:none}
  .research-inspector {display:none}
  .research-inspector.is-open {display:block;position:fixed;inset:auto 0 0 0;z-index:2;max-height:88dvh;border:1px solid var(--line);
    border-radius:12px 12px 0 0;background:#fff;box-shadow:0 -16px 75px #20252b44}
  .inspector-close {display:inline-flex}
  .research-title,.research-listbar {align-items:start}
  .research-listbar {flex-wrap:wrap}
  .research-list-actions {justify-content:start}
  .brand img {width:110px}
}
@media(max-width:420px) {
  .research-table th,.research-table td {padding-inline:6px}
  .research-table th:last-child {width:23%}
  .research-title h1 {font-size:1.51rem}
  .research-title .button {min-height:34px;padding-inline:8px;white-space:nowrap;font-size:.76rem}
  .research-run {display:none}
  .import-stats {grid-template-columns:repeat(2,1fr)}
}
