:root {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #192b39;
  background: #f3f5f5;
  font-synthesis: none;
  --ink: #192b39;
  --muted: #64747e;
  --line: #dde4e4;
  --surface: #fff;
  --canvas: #f3f5f5;
  --nav: #14252e;
  --teal: #087d76;
  --teal-dark: #06655f;
  --teal-soft: #e5f4f1;
  --amber: #9b640a;
  --amber-soft: #fff4dc;
  --red: #b63e3e;
  --red-soft: #fdeeee;
  --blue: #315b9c;
  --shadow: 0 14px 34px rgba(22, 43, 52, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--teal-dark); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #78c6ba; outline-offset: 2px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; min-width: 252px; background: var(--nav); color: #edf6f4; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; z-index: 4; }
.brand { height: 90px; padding: 25px 24px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand strong { font-size: 16px; letter-spacing: -.3px; display: block; direction: ltr; text-align: right; }
.brand small { color: #9fb2b9; display: block; font-size: 11px; margin-top: 4px; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; transform: rotate(45deg); flex: none; }
.brand-mark span { background: #2dc2ad; border-radius: 2px; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { opacity: .45; }
.workspace-label { padding: 24px 28px 9px; font-size: 10px; letter-spacing: 1.5px; color: #77919a; font-weight: 700; }
.navigation { padding: 0 10px; display: grid; gap: 3px; }
.nav-item { background: transparent; border: 0; color: #afc0c3; width: 100%; display: flex; gap: 13px; align-items: center; text-align: right; padding: 11px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.nav-item:hover, .nav-item.active { color: #fff; background: #233943; }
.nav-item.active { box-shadow: inset -3px 0 #32c4b1; }
.nav-icon { width: 19px; text-align: center; font-size: 18px; color: #8aa5ac; }
.nav-item.active .nav-icon { color: #48d5c0; }
.sidebar-bottom { margin-top: auto; padding: 22px; }
.sidebar-note { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; }
.sidebar-note b { display: block; font-size: 11px; }
.sidebar-note small { display: block; color: #91a7ae; font-size: 10px; margin-top: 4px; }
.sidebar-rule { margin-top: 18px; color: #759099; font-size: 10px; line-height: 1.8; }
.signal-dot { width: 8px; height: 8px; background: #d4a74d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(212,167,77,.12); flex: none; }
.signal-dot.online { background: #48d5b4; box-shadow: 0 0 0 4px rgba(72,213,180,.12); }
.signal-dot.offline { background: #f18b8b; box-shadow: 0 0 0 4px rgba(241,139,139,.12); }
.main-column { min-width: 0; flex: 1; }
.topbar { min-height: 72px; padding: 12px 30px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; position: sticky; top: 0; z-index: 3; }
.topbar-start, .topbar-end { display: flex; align-items: center; gap: 14px; min-width: 0; }
.breadcrumb { color: #859199; font-size: 12px; white-space: nowrap; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.crumb-sep { padding: 0 10px; color: #bdc7ca; }
.project-picker-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
select, input, textarea { background: #fff; color: var(--ink); border: 1px solid #cdd8d9; border-radius: 7px; }
select, input { min-height: 39px; padding: 8px 11px; }
textarea { width: 100%; padding: 12px; min-height: 150px; resize: vertical; line-height: 1.7; }
#project-picker { max-width: 220px; min-width: 135px; font-size: 12px; }
.connection-pill { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 7px 11px; color: var(--amber); background: var(--amber-soft); white-space: nowrap; }
.connection-pill.online { color: var(--teal-dark); background: var(--teal-soft); }
.connection-pill.offline { color: var(--red); background: var(--red-soft); }
.icon-button { border: 1px solid var(--line); background: #fff; border-radius: 7px; color: #49636c; width: 37px; height: 37px; font-size: 19px; display: grid; place-items: center; }
.icon-button:hover { background: #f5f9f9; }
.menu-toggle { display: none; }
.user-button { border: 0; border-radius: 7px; padding: 9px 13px; min-height: 37px; color: #fff; background: var(--nav); font-size: 11px; font-weight: 700; white-space: nowrap; }
.content { max-width: 1600px; margin: 0 auto; padding: 31px 34px 70px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 25px; }
.eyebrow { font-size: 10px; font-weight: 900; color: var(--teal); letter-spacing: 1.2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.7vw, 35px); margin: 7px 0 7px; letter-spacing: -.8px; }
h2 { font-size: 18px; margin-bottom: 6px; }
h3 { font-size: 14px; margin-bottom: 6px; }
.lead { max-width: 730px; color: var(--muted); font-size: 13px; line-height: 1.85; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.mono { font-family: Consolas, "Courier New", monospace; direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.grid { display: grid; gap: 16px; }
.section-space { height: 16px; }
.section-space.small-space { height: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 21px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.card-subtitle { color: var(--muted); font-size: 11px; margin: 3px 0 0; line-height: 1.6; }
.hero { background: linear-gradient(125deg,#183640,#153039 65%,#245851); color: #f3fffc; padding: 30px; border-radius: 13px; overflow: hidden; position: relative; margin-bottom: 18px; }
.hero::after { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(136,224,206,.19); border-radius: 50%; left: -45px; top: -70px; box-shadow: 0 0 0 39px rgba(136,224,206,.05),0 0 0 83px rgba(136,224,206,.035); }
.hero h1 { margin-bottom: 12px; }
.hero p { max-width: 650px; color: #bdd1d2; line-height: 1.9; font-size: 13px; position: relative; z-index: 1; }
.hero .button { position: relative; z-index: 1; }
.hero .eyebrow { color: #66dbc7; }
.button { min-height: 37px; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 8px 14px; color: var(--ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; white-space: nowrap; }
.button:hover { background: #f7faf9; }
.button.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.button.primary:hover { background: var(--teal-dark); }
.button.dark { background: var(--nav); color: #fff; border-color: var(--nav); }
.button.ghost-light { color: #f2fffc; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.button.danger { color: var(--red); border-color: #e9bdbd; background: #fff; }
.button.full-width { width: 100%; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-card { padding: 18px 20px; }
.stat-card .label { color: var(--muted); font-size: 11px; }
.stat-card .value { font-size: 27px; font-weight: 800; margin: 7px 0 2px; line-height: 1.1; direction: ltr; text-align: right; }
.stat-card .hint { font-size: 10px; color: #8a989d; }
.status { border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 900; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; letter-spacing: .1px; }
.status.pass { color: #097667; background: #ddf5ef; }
.status.fail { color: #ad3c3c; background: #fce9e9; }
.status.blocked { color: #9b640a; background: #fff0cf; }
.status.pending { color: #55707d; background: #edf2f4; }
.status.running { color: #315b9c; background: #e8f0fb; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 19px 0; }
.empty { padding: 38px 22px; text-align: center; border: 1px dashed #c7d4d4; border-radius: 10px; background: #fafcfc; }
.empty-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 14px; background: #e8f1ef; color: var(--teal); font-size: 23px; }
.empty h3 { margin-bottom: 7px; }
.empty p { color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 430px; margin: 0 auto 16px; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--amber-soft); color: #78521b; border: 1px solid #eed7a5; font-size: 11px; line-height: 1.75; }
.notice.info { background: #edf5f7; color: #3d6471; border-color: #d0e3e8; }
.notice.fail { background: var(--red-soft); color: #9e3b3b; border-color: #edc7c7; }
.notice.pass { background: var(--teal-soft); color: #086b5e; border-color: #c3e6dc; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.step-list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e9eeee; font-size: 12px; }
.step-list li:last-child { border: 0; }
.step-number { width: 23px; height: 23px; border: 1px solid #9dc9c2; border-radius: 50%; display: grid; place-items: center; color: var(--teal); font-size: 10px; font-weight: 800; flex: none; }
.step-list b { display: block; margin-bottom: 3px; }
.step-list span:not(.step-number) { color: var(--muted); font-size: 11px; line-height: 1.7; }
.kv { display: grid; grid-template-columns: minmax(110px, 35%) 1fr; gap: 8px 15px; font-size: 11px; align-items: start; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { color: #77888e; font-size: 10px; font-weight: 800; background: #f8fafa; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid #e9eeee; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td { overflow-wrap: anywhere; }
.table-button { color: var(--teal-dark); font-size: 11px; font-weight: 800; background: transparent; border: 0; padding: 0; }
.table-button:hover { text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 7px; font-size: 11px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; font-weight: 400; }
.field.full { grid-column: 1/-1; }
.hint-text { font-size: 10px; color: #85949a; line-height: 1.6; }
.file-input { border: 1px dashed #b4c9c7; border-radius: 9px; padding: 17px; background: #f8fbfa; }
.file-input input { width: 100%; }
.form-error { background: var(--red-soft); color: var(--red); border-radius: 7px; padding: 9px 11px; font-size: 11px; }
.split { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,.9fr); gap: 16px; }
.list { display: grid; gap: 9px; }
.list-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.list-row:hover { border-color: #b5cdca; }
.list-row b { font-size: 11px; }
.list-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.5; }
.list-row .status { flex: none; }
.selectable-row { width: 100%; text-align: right; }
.selectable-row.selected { background: #eff8f6; }
.decision-form { margin-top: 10px; }
.decision-input { min-width: 190px; }
.delivery-hint { margin-top: 13px; }
.segment-nav { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.source-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.source-link { border: 1px solid #b9d9d2; background: #edf8f5; color: #086a60; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 800; }
.source-link:hover { background: #dff2ec; }
.source-quote { padding: 11px 13px; border-right: 3px solid var(--teal); background: #f1f8f6; border-radius: 5px; margin-bottom: 12px; }
.source-quote b { font-size: 10px; color: #426f68; }
.source-quote p { margin: 5px 0 0; font-size: 11px; line-height: 1.7; }
.coverage-review-grid { display: grid; grid-template-columns: minmax(270px,.85fr) minmax(0,1.15fr); gap: 18px; margin-top: 14px; }
.coverage-review-list { display: grid; gap: 7px; max-height: 470px; overflow-y: auto; padding: 2px; }
.coverage-review-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px; }
.coverage-review-row.selected { border-color: #87c9bd; background: #f1faf7; }
.coverage-review-row input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; flex: none; accent-color: var(--teal); }
.coverage-review-item { display: grid; gap: 3px; width: 100%; text-align: right; border: 0; background: transparent; color: var(--ink); padding: 5px; white-space: normal; }
.coverage-review-item b { font-size: 11px; }
.coverage-review-item span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.coverage-review-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 10px; }
.coverage-review-detail { border: 1px solid var(--line); background: #fafcfc; border-radius: 9px; padding: 14px; }
.coverage-review-detail p { color: var(--ink); font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.coverage-review-form { margin-top: 12px; }
.coverage-review-form textarea { min-height: 82px; }
.coverage-review-fields { display: grid; gap: 12px; }
.coverage-review-fields[hidden] { display: none; }
.coverage-batch-form { margin-top: 17px; padding: 16px; border: 1px dashed #b4c9c7; border-radius: 9px; background: #f9fcfb; }
.coverage-batch-form h3, .coverage-batch-form p { margin-bottom: 0; }
.coverage-batch-form textarea { min-height: 75px; }
.coverage-exclusion-reason { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.coverage-summary-note { margin: 9px 0 0; }
#coverage-review-panel { scroll-margin-top: 90px; }
#ai-coverage-review-panel { scroll-margin-top: 90px; }
.ai-review-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ai-review-controls { margin-top: 12px; }
.ai-review-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.ai-review-stage { border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; background: #f7faf9; min-width: 0; }
.ai-review-stage b, .ai-review-stage span { display: block; }
.ai-review-stage b { font-size: 11px; margin-bottom: 4px; }
.ai-review-stage span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.ai-review-rounds { margin: 9px 0 0; padding: 0 17px 0 0; display: grid; gap: 6px; }
.ai-review-rounds li { font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.ai-review-rounds strong { color: var(--ink); }
.ai-review-return { color: var(--amber); }
.ai-review-unit-details { margin: 9px 0; border-top: 1px solid var(--line); padding-top: 8px; }
.ai-review-unit-details summary { cursor: pointer; font-size: 10px; font-weight: 800; }
.ai-review-units { display: grid; gap: 8px; margin-top: 9px; }
.ai-review-unit { border: 1px solid var(--line); border-radius: 6px; padding: 9px; background: #f9fbfa; }
.ai-review-unit > small { display: inline-block; margin: 0 7px; }
.ai-review-unit p { margin: 4px 0; }
.ai-card-facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ai-card-facts .status { white-space: normal; line-height: 1.5; text-align: right; }
.ai-card-proposal-note { display: block; margin-top: 6px; color: var(--muted); }
.ai-size-summary { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfa; }
.ai-size-summary b { font-size: 11px; }
.ai-size-summary p { margin: 7px 0 0; font-size: 11px; line-height: 1.7; }
.ai-size-summary small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.6; }
.block-time-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 12px 0 9px; }
.block-time-grid > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #f7faf9; }
.block-time-grid small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.block-time-grid strong { display: block; font-size: 17px; margin-top: 5px; color: var(--ink); }
.block-assumptions { color: var(--muted); font-size: 10px; margin: 7px 0 0; }
.block-assumptions summary { cursor: pointer; font-weight: 800; }
.block-assumptions ul { margin: 7px 0 0; padding: 0 18px 0 0; line-height: 1.7; }
.block-total-time { margin: 9px 0 0; padding: 9px 11px; background: var(--amber-soft); color: #78521b; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 1.6; }
.block-plan-facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 15px 0; }
.block-plan-facts span { color: var(--teal-dark); background: var(--teal-soft); border-radius: 5px; padding: 6px 9px; font-size: 10px; font-weight: 800; }
.block-lanes { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,265px),1fr)); gap: 13px; align-items: start; }
.cell-topology { margin: 14px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.cell-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 10px; }
.cell-node { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.cell-node b { color: var(--teal-dark); }
.cell-node span, .cell-node small { color: var(--muted); }
.cell-node .mono { overflow-wrap: anywhere; font-size: 10px; }
.block-lane { background: #f6f9f8; border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: grid; gap: 9px; min-width: 0; }
.block-lane > header { display: flex; justify-content: space-between; align-items: start; gap: 9px; padding: 4px 3px 7px; }
.block-lane > header b { font-size: 12px; }
.block-lane > header span { color: var(--muted); font-size: 10px; text-align: left; }
.block-node { border: 1px solid #d7e2e0; border-radius: 8px; background: #fff; padding: 12px; min-width: 0; }
.block-node.critical { border-color: #d3ad5d; box-shadow: inset 3px 0 #d3ad5d; }
.block-node-head { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.block-node-head b { font-size: 11px; overflow-wrap: anywhere; }
.block-node-head small { display: block; margin-top: 5px; color: #97691f; font-size: 10px; }
.block-dependency { margin: 9px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.block-cards { padding: 0 19px 0 0; margin: 7px 0; display: grid; gap: 8px; }
.block-cards li { font-size: 10px; line-height: 1.6; padding: 0 0 7px; border-bottom: 1px solid #edf2f1; }
.block-cards li:last-child { border: 0; padding-bottom: 0; }
.block-cards b, .block-cards small { display: block; overflow-wrap: anywhere; }
.block-cards small { color: var(--muted); }
.block-cards .ai-card-facts { margin-top: 5px; }
.block-cards .status { white-space: normal; line-height: 1.5; text-align: right; }
.block-join { margin: 11px 0 0; padding: 8px 9px; border-right: 3px solid var(--amber); color: #78521b; background: var(--amber-soft); border-radius: 5px; font-size: 10px; line-height: 1.6; }
.block-merge-retry { margin-top: 8px; }
.block-git-merge { margin: 10px 0 0; padding: 8px 9px; border-right: 3px solid var(--teal); color: var(--teal-dark); background: var(--teal-soft); border-radius: 5px; font-size: 10px; line-height: 1.6; }
.block-merge-gate { display: flex; justify-content: space-between; align-items: center; gap: 13px; margin-top: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.block-merge-gate b, .block-merge-gate small { display: block; }
.block-merge-gate b { font-size: 11px; }
.block-merge-gate small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.block-runtime-note { margin: 13px 0 0; }
.ai-review-unit ol { margin: 7px 15px 0 0; padding: 0 12px 0 0; }
.ai-review-unit li { margin: 6px 0; }
.ai-review-spinner { display: inline-block; width: 12px; height: 12px; margin-left: 5px; vertical-align: -2px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: ai-review-spin .8s linear infinite; }
.ai-review-details { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.ai-review-details summary { cursor: pointer; font-size: 11px; font-weight: 800; }
.ai-review-items { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 10px 2px 2px; }
.ai-review-item { border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; overflow-wrap: anywhere; }
.ai-review-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-review-item p { margin: 7px 0; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.ai-review-item small { display: block; color: var(--muted); margin-bottom: 4px; }
.ai-review-blockers { color: var(--red); font-size: 11px; line-height: 1.7; }
@keyframes ai-review-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-review-spinner { animation: none; } }
.tag { display: inline-block; padding: 4px 7px; background: #edf2f3; color: #556c75; font-size: 10px; border-radius: 4px; margin: 2px 2px 2px 0; }
.task-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.filter-button { border: 1px solid var(--line); background: #fff; color: #5b6f77; border-radius: 6px; padding: 7px 10px; font-size: 10px; font-weight: 800; }
.filter-button.active { background: #1d3b41; color: #fff; border-color: #1d3b41; }
.task-detail { background: #f8faf9; border: 1px solid #d9e4e2; border-radius: 9px; padding: 16px; }
.task-detail p, .task-detail li { font-size: 11px; line-height: 1.8; }
.task-detail ul { padding-right: 17px; }
.timeline { position: relative; padding-right: 20px; }
.timeline::before { content: ""; position: absolute; right: 5px; top: 7px; bottom: 7px; width: 1px; background: #d9e4e4; }
.timeline-item { position: relative; padding: 2px 0 17px; }
.timeline-item::before { content: ""; position: absolute; right: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #7aaba4; border: 2px solid #fff; box-shadow: 0 0 0 1px #b3d3ce; }
.timeline-item time { display: block; color: #86959b; font-size: 10px; margin: 4px 0; }
.timeline-item b { font-size: 11px; }
.timeline-item p { color: var(--muted); font-size: 11px; margin: 0; line-height: 1.7; }
.code-block { background: #182d34; color: #d8ebe7; border-radius: 8px; padding: 13px; font: 10px/1.7 Consolas, "Courier New", monospace; direction: ltr; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 290px; overflow: auto; }
.tree { font-size: 11px; }
.tree-row { padding: 8px 11px; border: 0; border-bottom: 1px solid #edf1f1; background: transparent; display: flex; justify-content: space-between; gap: 8px; }
.tree-row:last-child { border: 0; }
.tree-path { direction: ltr; text-align: left; unicode-bidi: isolate; overflow-wrap: anywhere; }
.tree-meta { color: var(--muted); white-space: nowrap; }
.progress-track { height: 7px; background: #eaf0f0; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: #28b39f; border-radius: inherit; }
.tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin: 13px 0 17px; flex-wrap: wrap; }
.tab-button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 9px 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.tab-button.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.download-links { display: flex; gap: 8px; flex-wrap: wrap; }
.login-dialog { border: 0; border-radius: 13px; padding: 0; width: min(420px, calc(100vw - 30px)); box-shadow: 0 22px 60px rgba(15,31,39,.27); }
.login-dialog::backdrop { background: rgba(14,31,38,.57); }
.login-form { padding: 26px; display: grid; gap: 15px; }
.login-form label { display: grid; gap: 7px; font-size: 11px; font-weight: 800; }
.login-form input { width: 100%; }
.login-form .muted { font-size: 11px; line-height: 1.7; margin: 0; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; }
.dialog-top h2 { margin: 7px 0 0; font-size: 22px; }
.toast-region { position: fixed; left: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 20; width: min(390px,calc(100vw - 40px)); }
.toast { border-radius: 8px; padding: 12px 15px; color: #fff; background: #193943; box-shadow: 0 8px 24px rgba(0,0,0,.16); font-size: 11px; line-height: 1.7; }
.toast.fail { background: #9a3737; }
.toast.pass { background: #087769; }
.toast.blocked { background: #8a5b16; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ai-review-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .coverage-review-grid { grid-template-columns: 1fr; }
  .project-picker-label { display: none; }
}
@media (max-width: 850px) {
  .sidebar { position: fixed; right: 0; transform: translateX(100%); transition: transform .2s ease; box-shadow: -15px 0 35px rgba(0,0,0,.1); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid; }
  .content { padding: 24px 20px 60px; }
  .topbar { padding: 10px 20px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 590px) {
  .topbar { gap: 8px; }
  .breadcrumb > span:first-child, .crumb-sep { display: none; }
  .topbar-end { gap: 6px; }
  #project-picker { max-width: 112px; min-width: 90px; }
  .connection-pill { display: none; }
  .content { padding: 19px 14px 50px; }
  .page-heading { display: block; }
  .page-heading .button-row { margin-top: 14px; }
  .grid.two, .grid.three, .grid.four, .form-grid { grid-template-columns: 1fr; }
  .ai-review-stats { grid-template-columns: 1fr; }
  .ai-review-flow, .block-time-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .hero { padding: 24px; }
  .kv { grid-template-columns: minmax(95px,40%) 1fr; }
}
