:root {
  color-scheme: light;
  --ground: #edf1f5;
  --surface: #fff;
  --ink: #19232e;
  --muted: #627185;
  --faint: #8391a5;
  --line: #dfe5ed;
  --soft: #f8fafc;
  --yellow: #ffdd43;
  --selected: #fff7c8;
  --green: #24735c;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 3px; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 23px; font-weight: 650; letter-spacing: -.04em; line-height: 1.3; }
h2, h3 { font-size: 15px; font-weight: 650; line-height: 1.5; }
:focus-visible { outline: 2px solid #456db1; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 30; top: -100px; left: 16px; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
.muted { color: var(--muted); }
.error-text { color: #b13824; }
.app-shell { min-height: 100vh; padding: 10px 12px 12px 190px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 180px; display: flex; flex-direction: column; padding: 22px 12px 18px; }
.brand { width: fit-content; margin: 0 10px 26px; color: #111b24; font-size: 17px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; line-height: 1.1; }
.brand span { background: linear-gradient(transparent 65%, var(--yellow) 65%, var(--yellow) 96%, transparent 96%); }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 7px 12px; border-radius: 5px; color: var(--muted); font-size: 13px; text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--surface); color: var(--ink); }
.nav-link:hover { color: var(--ink); background: #ffffff80; }
.nav-link span { font-variant-numeric: tabular-nums; }
.nav-link[aria-current="page"] span { font-weight: 650; }
.sidebar-footer { margin: auto 10px 0; display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.connection { display: flex; align-items: center; gap: 5px; }
.connection i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6b7; }
.connection.configured i { background: var(--green); }
.quiet-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; text-align: left; }
.quiet-button:hover { text-decoration: underline; color: var(--ink); }
.workspace { position: relative; min-height: calc(100vh - 22px); background: var(--surface); border-radius: 10px; overflow: clip; }
.topbar { min-height: 76px; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.heading-line { display: flex; align-items: baseline; gap: 15px; min-width: 0; }
.heading-line > .muted { font-size: 13px; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.header-actions .muted { margin-right: 2px; font-size: 12px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .back-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin-right: 8px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); white-space: nowrap; }
.breadcrumb .back-link:hover { background: var(--soft); text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 13px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 550; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.button:hover { background: #303e4c; border-color: #303e4c; }
.button-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: var(--soft); border-color: #abb8c7; }
.button:disabled { opacity: .45; cursor: default; }
.text-button { display: inline-flex; padding: 3px 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
input, select, textarea { min-width: 0; min-height: 34px; max-width: 100%; padding: 7px 10px; border: 1px solid #cbd5e3; border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #8491a3; opacity: 1; }
textarea { resize: vertical; width: 100%; }
label { display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.notice { padding: 10px 26px; background: #fff8e4; border-bottom: 1px solid #eedfb9; color: #70572a; font-size: 12px; }
.notice.is-error { background: #fff1ed; color: #a23425; border-color: #efd6cf; }
.queue-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.status-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.status-tab { padding: 6px 9px; border: 0; border-radius: 5px; background: transparent; font-size: 12px; color: var(--muted); white-space: nowrap; }
.status-tab.active { background: var(--ground); color: var(--ink); }
.status-tab:hover { background: var(--soft); }
.status-tab span { margin-left: 4px; font-weight: 550; font-variant-numeric: tabular-nums; }
.queue-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; }
.queue-filters select { width: auto; max-width: 200px; padding: 6px 20px 6px 5px; min-height: 30px; color: var(--muted); border: 0; background: transparent; font-size: 12px; }
.search-field { flex: 1 1 190px; margin-left: auto; max-width: 270px; }
.search-field input { width: 100%; }
.table-scroll { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
th { padding: 10px 26px; color: var(--faint); font-size: 11px; font-weight: 450; border-bottom: 1px solid var(--line); }
td { padding: 15px 26px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; overflow-wrap: anywhere; }
.queue-table col.fit-col { width: 100px; }
.queue-table col.labels-col { width: 16%; }
.queue-table col.effort-col { width: 85px; }
.queue-table col.age-col { width: 70px; }
.queue-table col.status-col { width: 105px; }
.queue-table col.owner-col { width: 65px; }
.queue-table th, .queue-table td { padding: 10px 12px; }
.queue-table th:first-child, .queue-table td:first-child { padding-left: 26px; }
.queue-table th:last-child, .queue-table td:last-child { padding-right: 26px; }
.group-row th { padding: 7px 26px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 550; }
.issue-row { cursor: pointer; }
.issue-row:hover { background: #fafbfc; }
.issue-row.selected { background: var(--selected); }
.issue-row a:focus-visible { outline-offset: 4px; }
.issue-reference { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.issue-link { display: block; color: #111d2b; text-decoration: none; font-size: 13px; line-height: 1.45; }
.issue-link:hover { text-decoration: underline; }
.score-cell { display: flex; align-items: center; gap: 7px; }
.score-value { flex-shrink: 0; white-space: nowrap; font-weight: 700; color: var(--ink); font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.score-value.high { background: linear-gradient(transparent 55%, var(--yellow) 55%); }
.score-track { flex-shrink: 0; width: 36px; height: 3px; background: #e4e9ef; }
.score-track span { display: block; height: 100%; background: var(--ink); }
.labels { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: 3px; background: #edf1f5; color: #5b6778; font-size: 10px; line-height: 1.5; text-decoration: none; }
.tag-bug { background: #fff0e8; color: #a4422b; }
.tag-good { background: #e7f3ed; color: #277459; }
.tag-warn { background: #fff2d8; color: #895b16; }
.tag-closed { background: #f2ecf8; color: #75538d; }
.status-new { color: #245fc3; }
.status-progress { color: #925d0c; }
.status-done { color: var(--green); }
.status-dismissed, .status-closed { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 9px; }
.table-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 26px; font-size: 12px; color: var(--muted); }
.table-footer .text-button { color: var(--ink); }
.empty-state { padding: 40px 26px; color: var(--muted); font-size: 13px; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 15px; }
.empty-state p { max-width: 55ch; }
.empty-state .button { margin-top: 16px; }
.issue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: calc(100vh - 98px); }
.issue-main { min-width: 0; padding: 28px; }
.issue-heading { font-size: 25px; line-height: 1.25; letter-spacing: -.035em; max-width: 55ch; }
.issue-summary { margin-top: 11px; font-size: 13px; line-height: 1.6; }
.live-status { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.live-status:empty { display: none; }
.fit-explanation { display: flex; gap: 22px; border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin-top: 22px; align-items: center; }
.fit-number { flex-shrink: 0; display: grid; gap: 4px; }
.fit-number strong { font-size: 36px; letter-spacing: -.045em; line-height: 1.15; width: fit-content; background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.fit-number.is-unscored strong { background: none; color: var(--muted); }
.fit-number span { color: var(--muted); font-size: 11px; }
.fit-reasons { display: grid; gap: 8px; font-size: 13px; line-height: 1.65; }
.detail-section { margin-top: 26px; }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-line .muted { font-size: 11px; }
.plan-list { display: grid; gap: 12px; }
.plan-step { display: flex; align-items: start; gap: 10px; }
.plan-step input { accent-color: var(--ink); width: 15px; height: 15px; min-height: 0; margin: 3px 0 0; flex-shrink: 0; }
.plan-step label { display: block; color: var(--ink); font-size: 13px; line-height: 1.6; flex: 1; }
.plan-step input:checked + label { text-decoration: line-through; color: var(--faint); }
.step-remove { padding: 0 4px; border: 0; background: none; color: var(--faint); font-size: 17px; opacity: 0; }
.plan-step:hover .step-remove, .step-remove:focus-visible { opacity: 1; }
.add-step { display: flex; gap: 10px; margin: 9px 0 0 25px; }
.add-step input { flex: 1; border-color: transparent; background: transparent; padding-left: 0; }
.add-step input:focus { border-color: var(--line); padding-left: 10px; }
.add-step .text-button { padding-right: 5px; }
.code-block { margin: 0; padding: 18px; background: #19232e; color: #d2dce7; border-radius: 6px; font: 12px/1.75 var(--mono); overflow-x: auto; white-space: pre; }
.code-block code { font: inherit; }
.issue-sidebar { min-width: 0; padding: 28px; background: #fafbfd; border-left: 1px solid var(--line); }
.metadata-fields { display: grid; gap: 11px; }
.metadata-fields label { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 10px; align-items: center; }
.metadata-fields label > span { font-size: 11px; }
.metadata-fields input, .metadata-fields select { width: 100%; min-height: 32px; border-color: var(--line); font-size: 12px; }
.next-step-field { margin-top: 20px; }
.next-step-field textarea { border-color: var(--line); font-size: 12px; }
.activity-section { margin-top: 26px; }
.activity-section h3 { margin-bottom: 16px; }
.activity-section > textarea { border-color: var(--line); font-size: 12px; }
.activity-section > .text-button { display: block; margin: 5px 0 0 auto; }
.activity-list { display: grid; margin-top: 14px; }
.activity-entry { padding: 13px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; }
.activity-entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-entry span { display: block; margin-top: 3px; color: var(--faint); font-size: 11px; }
.analysis { display: grid; gap: 16px; margin-top: 16px; font-size: 13px; line-height: 1.65; }
.analysis section { border-top: 1px solid var(--line); padding-top: 12px; }
.analysis h4 { margin: 0 0 6px; font-size: 13px; }
.analysis ol, .analysis ul { margin: 0; padding-left: 18px; }
.analysis-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.analysis-meta .save-status { font-size: 11px; color: var(--muted); }
.analysis-quote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--line); }
.analysis-quote cite { display: block; font-size: 11px; color: var(--muted); font-style: normal; }
.analysis pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.6 var(--mono); background: var(--soft); padding: 12px; }
.analysis code { font: 12px var(--mono); overflow-wrap: anywhere; }
.state-available { color: var(--green); }
.state-taken { color: #8b5712; }
.state-unclear { color: #765483; }
.repo-comment { margin: 10px 0; border-left: 2px solid var(--line); padding-left: 12px; }
.repo-comment span { margin-left: 6px; color: var(--muted); font-size: 11px; }
.recommendation-notes { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.recommendation-notes section { margin-top: 14px; font-size: 13px; }
.recommendation-notes h4 { margin: 0 0 5px; font-size: 13px; }
.repo-inspection { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.7fr); gap: 28px; padding: 24px 26px; }
.repo-picker-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.repo-picker-bar label { color: var(--ink); font-size: 13px; font-weight: 600; gap: 3px; }
.repo-picker-bar label span { font-size: 12px; font-weight: 400; }
.repo-picker-bar select { flex: 0 1 440px; width: 100%; }
.repo-inspection { scroll-margin-top: 110px; }
.repo-choose { padding: 0; border: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.repo-choose:hover { text-decoration: underline; }
.repo-check-form > p { margin-top: 7px; font-size: 13px; line-height: 1.65; }
.inline-form { display: flex; gap: 7px; align-items: center; margin-top: 16px; }
.inline-form input { flex: 1; width: 100%; }
.direct-add { margin-top: 24px; }
.inspection-result { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 20px; }
.inspection-result .empty-state { padding: 12px 0; }
.inspection-header { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.inspection-header > div { min-width: 0; }
.inspection-header p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.repo-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.repo-metrics strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.repo-metrics span { font-size: 10px; color: var(--muted); }
.inspected-issue { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; }
.inspected-issue a { text-decoration: none; }
.inspected-issue a:hover { text-decoration: underline; }
.inspection-footer { margin-top: 12px; font-size: 11px; color: var(--muted); }
.inspection-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.inspect-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12px; }
.inspect-toolbar input[type="search"] { flex: 1 1 220px; min-width: 0; }
.inspect-toolbar .check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.inspected-body { min-width: 0; flex: 1; }
.inspected-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; }
.inspected-issue.is-claimed > .inspected-body > a { color: var(--muted); }
.inspect-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.repo-table .repo-name { font-weight: 600; }
.repo-name a { text-decoration: none; }
.repo-name a:hover { text-decoration: underline; }
.repo-table col.repo-name-col { width: 35%; }
.repo-table col.repo-actions-col { width: 100px; }
.repo-table td, .repo-table th { padding: 12px 20px; }
.repo-table .text-button { font-size: 11px; }
.switch { position: relative; display: inline-flex; width: 29px; min-height: 17px; height: 17px; padding: 0; border: 0; border-radius: 20px; background: #c8d1dd; vertical-align: middle; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch::after { content: ''; width: 13px; height: 13px; border-radius: 50%; background: #fff; margin: 2px; transform: translateX(0); transition: transform 120ms ease; }
.switch[aria-checked="true"]::after { transform: translateX(12px); }
.switch:disabled { opacity: .45; }
.project-directory { margin: 24px 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.directory-body { padding-top: 16px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.project-filters button { font-size: 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: white; padding: 5px 9px; }
.project-filters button[aria-pressed="true"] { background: var(--ground); color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.project-item { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.project-item a { font-size: 12px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.project-item p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.project-item .section-line { margin-top: 12px; }
.project-item .section-line span { color: var(--muted); font-size: 11px; }
.scans-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); min-height: calc(100vh - 98px); }
.scan-table col.started-col { width: 33%; }
.scan-table col.trigger-col { width: 17%; }
.scan-table td, .scan-table th { padding: 12px 18px; }
.scan-table td:first-child, .scan-table th:first-child { padding-left: 26px; }
.scan-table .scan-error { background: #fff4f0; }
.scan-error td { color: #a13826; }
.scan-error-detail { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.scan-error-detail .button { min-height: 26px; font-size: 10px; padding: 4px 8px; }
.ranking-panel { min-width: 0; padding: 26px; border-left: 1px solid var(--line); background: #fafbfd; }
.ranking-summary { display: grid; gap: 15px; margin: 16px 0 26px; font-size: 13px; line-height: 1.7; }
.dismissal-chart { display: grid; gap: 9px; margin: 14px 0; }
.chart-row { display: grid; grid-template-columns: 100px minmax(0,1fr) 20px; gap: 10px; align-items: center; font-size: 12px; }
.chart-track { height: 6px; border-radius: 8px; background: #e1e6ed; overflow: hidden; }
.chart-track span { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.ranking-panel > .muted { font-size: 11px; }
.ranking-panel > .button { margin-top: 22px; }
.dialog { width: min(440px,calc(100% - 32px)); border: 1px solid var(--line); border-radius: 9px; padding: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 18px 60px #19232e26; }
.dialog::backdrop { background: #19232e55; }
.dialog h2 { font-size: 19px; margin-bottom: 10px; }
.dialog p { font-size: 13px; line-height: 1.6; }
.dialog label { margin-top: 18px; }
.dialog input, .dialog select { width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.dialog pre { font: 12px/1.6 var(--mono); overflow-x: auto; white-space: pre-wrap; }
.toast { position: fixed; right: 26px; bottom: 24px; z-index: 20; display: flex; gap: 14px; align-items: center; max-width: min(500px,calc(100% - 32px)); padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 6px; box-shadow: 0 4px 20px #19232e22; font-size: 13px; }
.toast .text-button { color: var(--yellow); }
.toast-close { padding: 0; border: 0; background: none; color: #ccd6e2; font-size: 20px; }
.hidden { display: none !important; }
@media (max-width: 1200px) {
  .queue-filters { border-left: 0; padding-left: 0; }
  .queue-toolbar { gap: 10px; }
  .queue-filters select { max-width: 150px; }
  .search-field { max-width: 240px; }
  .issue-layout { grid-template-columns: minmax(0,1fr) 285px; }
  .issue-sidebar, .issue-main { padding: 22px; }
  .metadata-fields label { grid-template-columns: 76px minmax(0,1fr); }
  .scans-layout { grid-template-columns: minmax(0,1.45fr) minmax(270px,1fr); }
  .scan-table td, .scan-table th { padding: 12px 10px; }
  .repo-table td, .repo-table th { padding: 12px; }
}
@media (max-width: 980px) {
  .sidebar { width: 150px; }
  .app-shell { padding-left: 160px; }
  .heading-line { flex-wrap: wrap; gap: 4px 12px; }
  .topbar { padding: 18px 20px; }
  .queue-toolbar { padding: 14px 20px; }
  .queue-table col.labels-col { width: 110px; }
  .queue-table col.fit-col { width: 60px; }
  .score-track { display: none; }
  .queue-table col.effort-col { width: 65px; }
  .queue-table col.age-col { width: 50px; }
  .queue-table col.status-col { width: 85px; }
  .queue-table col.owner-col { width: 50px; }
  .queue-table td, .queue-table th { padding: 12px 8px; }
  .queue-table th:first-child, .queue-table td:first-child { padding-left: 20px; }
  .repo-inspection { grid-template-columns: 1fr; }
  .scans-layout { grid-template-columns: 1fr; }
  .ranking-panel { border-left: 0; border-top: 1px solid var(--line); }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-shell { padding: 100px 8px 8px; }
  .sidebar { inset: 0 0 auto; width: 100%; height: 92px; padding: 14px 16px 8px; z-index: 5; background: var(--ground); }
  .brand { margin: 0 0 10px; font-size: 16px; }
  .sidebar nav { display: flex; gap: 6px; }
  .nav-link { min-height: 30px; padding: 5px 12px; gap: 10px; }
  .sidebar-footer { position: absolute; top: 14px; right: 16px; margin: 0; }
  #storage-status { display: none; }
  .sidebar-footer .quiet-button { text-align: right; font-size: 10px; }
  .connection { font-size: 10px; }
  .workspace { min-height: calc(100vh - 108px); }
  .topbar { flex-wrap: wrap; padding: 17px 18px; gap: 12px; }
  .heading-line { flex-basis: 100%; }
  .header-actions { flex-wrap: wrap; }
  .header-actions .muted { display: none; }
  .queue-toolbar { padding: 12px 18px; }
  .search-field { flex-basis: 100%; max-width: none; margin: 0; }
  .queue-filters { width: 100%; gap: 8px; }
  .queue-filters select { flex: 1; max-width: none; }
  .status-tabs { gap: 2px; }
  .status-tab { font-size: 11px; padding: 6px 7px; }
  .queue-table colgroup, .queue-table thead { display: none; }
  .queue-table tbody { display: block; }
  .queue-table tr.issue-row { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 6px 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .queue-table .issue-row td { padding: 0 !important; border: 0; font-size: 11px; }
  .queue-table .issue-row td:nth-child(1) { grid-row: 1 / 3; }
  .queue-table .issue-row td:nth-child(2) { grid-column: 2; }
  .queue-table .issue-row td:nth-child(3) { grid-column: 2; }
  .queue-table .issue-row td:nth-child(4), .queue-table .issue-row td:nth-child(5), .queue-table .issue-row td:nth-child(7) { display: none; }
  .queue-table .issue-row td:nth-child(6) { grid-column: 2; }
  .queue-table .group-row { display: block; }
  .group-row th { display: block; padding: 8px 18px !important; }
  .score-cell { padding-top: 3px; }
  .table-footer { padding: 16px 18px; }
  .issue-layout { display: flex; flex-direction: column; }
  .issue-main { padding: 22px 18px; }
  .issue-heading { font-size: 22px; }
  .issue-sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 22px 18px; }
  .metadata-fields label { grid-template-columns: 95px minmax(0,1fr); }
  .fit-explanation { padding: 16px; gap: 16px; align-items: start; }
  .fit-reasons { font-size: 12px; }
  .fit-number strong { font-size: 30px; }
  .step-remove { opacity: 1; }
  .repo-inspection { padding: 20px 18px; }
  .repo-picker-bar { align-items: stretch; flex-direction: column; gap: 12px; padding: 18px; }
  .repo-picker-bar select { flex: auto; }
  .inspection-result { padding: 16px; }
  .inspection-header { flex-wrap: wrap; }
  .repo-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .repo-table { min-width: 650px; }
  .scan-table { min-width: 570px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-directory { margin: 20px 18px; }
  .ranking-panel { padding: 22px 18px; }
  .toast { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Visitor invitation to connect Telegram */
.telegram-cta { margin: 18px 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; gap: 8px; font-size: 12px; }
.telegram-cta strong { font-size: 13px; }
.telegram-cta p { margin: 0; color: var(--muted); line-height: 1.45; }
.telegram-cta .button { justify-self: start; }
.telegram-cta .cta-steps code { font-size: 11px; background: #edf1f5; padding: 1px 4px; border-radius: 3px; }
