*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #1A7A6E;
  --brand-hover: #15655B;
  --brand-tint: #E3F2EF;
  --slate: #2C3E50;
  --bg: #F4F6F7;
  --card: #FFFFFF;
  --text: #2C3E50;
  --muted: #5F6F7A;
  --border: #DDE3E7;
  --danger: #A83A2E;
  --danger-tint: #FBEBE9;
  --warn: #8A5A10;
  --warn-tint: #FBF2DF;
  --radius: 10px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
a { color: var(--brand); }
h1 { font-size: 1.6rem; line-height: 1.25; overflow-wrap: anywhere; }
h2 { font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
code { font-size: 0.875rem; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.loading { padding: 64px 16px; text-align: center; color: var(--muted); }
.intro { color: var(--muted); margin: 6px 0 20px; }
.hint { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.meta { color: var(--muted); font-size: 0.875rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.is-overdue { color: var(--danger); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Forms */
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; min-width: 0; }
input, select, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid #B9C4CC;
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid #B9C4CC;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
}
.btn:hover { background: var(--bg); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.btn-small { padding: 5px 10px; font-size: 0.8125rem; }
.btn-header { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; padding: 6px 12px; font-size: 0.875rem; }
.btn-header:hover { background: rgba(255,255,255,0.24); }
.link { background: none; border: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; text-align: left; padding: 0; }

/* Messages */
.notice { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 0.9375rem; }
.notice p + p { margin-top: 6px; }
.notice-ok { background: var(--brand-tint); }
.notice-warn { background: var(--warn-tint); color: var(--warn); }
.notice-error { background: var(--danger-tint); color: var(--danger); }
.form-error { margin-bottom: 0; }

/* Sign-in */
.auth-page { min-height: 100vh; background: var(--slate); padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.auth-logo { height: 44px; }
.auth-card { background: var(--card); border-radius: 14px; padding: 28px; width: 100%; max-width: 420px; }
.auth-card h1 { margin-bottom: 14px; }
.auth-card .intro { margin-top: -6px; }
.auth-switch { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 0.9375rem; }

/* App shell */
.app-header { background: var(--slate); color: #fff; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.header-brand img { height: 34px; display: block; }
.header-org { color: #fff; font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
a.header-org:hover { text-decoration: underline; }
.header-user { font-size: 0.875rem; opacity: 0.85; overflow-wrap: anywhere; }
.app-nav { background: var(--card); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; gap: 22px; }
.app-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 11px 0; border-bottom: 3px solid transparent; }
.app-nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.app-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 20px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 280px; }
.page-head .meta { margin-top: 8px; }
.page-actions { display: flex; gap: 8px; }
.breadcrumb { font-size: 0.875rem; margin-bottom: 6px; }
.description { margin-bottom: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.trial { color: var(--muted); font-size: 0.875rem; margin-top: 4px; }

/* Cards and panels */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
a.card:hover { border-color: var(--brand); box-shadow: 0 3px 12px rgba(26,122,110,0.14); }
.card p { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 24px; }
.panel h2 { margin-bottom: 12px; }
.panel.stack { margin-top: 0; }
.empty { background: var(--card); border: 1px dashed #B9C4CC; border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); }
.empty h1, .empty h2 { color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }
.archived { margin-top: 12px; }
.archived summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 12px; }

.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #E7EBEE; color: var(--muted); white-space: nowrap; }
.pill-active, .pill-in_progress { background: var(--brand-tint); color: var(--brand-hover); }
.pill-blocked { background: var(--danger-tint); color: var(--danger); }
.pill-completed, .pill-done { background: var(--slate); color: #fff; }

/* Choosing a setup */
.setup-grid { border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setup-grid legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.setup-card { position: relative; border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 14px 14px 42px; cursor: pointer; font-weight: 400; }
.setup-card input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; accent-color: var(--brand); }
.setup-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.setup-name { font-weight: 700; font-size: 0.9375rem; }
.setup-summary { color: var(--muted); font-size: 0.875rem; }

/* Tasks */
.quick-add { display: flex; gap: 8px; margin-bottom: 24px; }
.quick-add label { flex: 1; }
.task-group { margin-bottom: 22px; }
.task-group h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.task-list { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.task { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; }
.task + .task { border-top: 1px solid var(--border); }
.task-main { flex: 1 1 260px; min-width: 0; }
.task-title { font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
button.task-title:hover { text-decoration: underline; }
.task.is-done .task-title { color: var(--muted); text-decoration: line-through; }
.task-notes { color: var(--muted); font-size: 0.875rem; margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-status select { width: auto; padding: 5px 8px; font-size: 0.875rem; }

/* Team */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.team-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.team-table th { text-align: left; font-size: 0.8125rem; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.team-table td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: middle; overflow-wrap: anywhere; }
.team-table tbody tr:first-child td { border-top: 0; }
.team-table select { width: auto; padding: 5px 8px; font-size: 0.875rem; }
.cell-actions { text-align: right; }
.plain-list { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 8px; }
.plain-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; overflow-wrap: anywhere; }
.plain-list li + li { border-top: 1px solid var(--border); }
.plain-list .meta { display: inline; margin-left: 6px; }
.invite-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.invite-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Dialog */
dialog { border: 0; border-radius: 14px; padding: 24px; width: calc(100% - 32px); max-width: 520px; margin: auto; color: var(--text); }
dialog::backdrop { background: rgba(44,62,80,0.55); }
dialog h2 { font-size: 1.2rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

@media (max-width: 680px) {
  .app-header, .app-nav { padding-left: 16px; padding-right: 16px; }
  .app-main { padding: 20px 16px 48px; }
  .header-org { order: 3; flex-basis: 100%; }
  .header-user { flex: 1; }
  .card-grid, .setup-grid, .field-row, .invite-form { grid-template-columns: minmax(0, 1fr); }
  .quick-add { flex-wrap: wrap; }
  .quick-add label { flex-basis: 100%; }
  .quick-add .btn { flex: 1; }
  .team-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .team-table, .team-table tbody, .team-table tr, .team-table td { display: block; width: 100%; }
  .team-table tr { padding: 10px 14px; }
  .team-table tr + tr { border-top: 1px solid var(--border); }
  .team-table td { padding: 2px 0; border: 0; }
  .cell-actions { text-align: left; }
  .cell-actions .btn { margin-top: 6px; }
}

/* Project page */
.hidden { display: none !important; }
.is-invalid { border-color: var(--danger); }
.task-code { font-size: 0.75rem; font-weight: 700; color: #7A8894; }
.task.is-sub { padding-left: 34px; background: #FBFCFC; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 600; font-size: 0.9375rem; color: var(--muted); padding: 9px 12px; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.panel-actions { margin-bottom: 16px; }
.section-head { margin: 24px 0 10px; }
.health-why { display: inline-block; }
.health-why summary { cursor: pointer; font-size: 0.875rem; color: var(--muted); }
.health-why ul { margin: 8px 0 0 18px; font-size: 0.875rem; color: var(--text); }
.health-green { background: var(--brand-tint); color: var(--brand-hover); }
.health-amber { background: var(--warn-tint); color: var(--warn); }
.health-red { background: var(--danger); color: #fff; }
.sev-low { background: #E7EBEE; color: var(--muted); }
.sev-medium { background: var(--warn-tint); color: var(--warn); }
.sev-high { background: var(--danger-tint); color: var(--danger); }
.pill-decision { background: var(--brand-tint); color: var(--brand-hover); }
.pill-lesson { background: var(--warn-tint); color: var(--warn); }

/* Forms in dialogs */
dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.check input, .check-list input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.form-more summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.form-more > .stack, .check-list { margin-top: 10px; }
.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 180px; overflow-y: auto; }
.check-list label { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.dialog-left { margin-right: auto; }
.ws-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ws-colour input { padding: 2px; height: 38px; }

/* Gantt */
.gantt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.gantt-toolbar label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.gantt-toolbar select { width: auto; padding: 5px 8px; font-size: 0.875rem; }
.gantt-find input { width: 170px; padding: 5px 9px; font-size: 0.875rem; }
.btn.is-on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-hover); }
.gantt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; font-size: 0.78rem; color: var(--muted); }
.gantt-legend span, .lg-ws { display: inline-flex; align-items: center; gap: 5px; }
.lg-ws { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.lg-ws:hover { color: var(--text); }
.lg-ws.is-off { opacity: 0.4; text-decoration: line-through; }
.lg-reset { color: var(--brand); font-weight: 700; }
.lg-sep { width: 1px; height: 14px; background: var(--border); }
.lg-conf { color: var(--warn); font-weight: 700; }
.gantt-chart { display: flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gantt-chart .empty { flex: 1; border: 0; }
.gantt-labels { flex: 0 0 auto; border-right: 1px solid var(--line, #E2E8F0); }
.gantt-time { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.gantt-svg { display: block; font-family: inherit; }
.gantt-hint { margin-top: 6px; }
.gg, .gtog, .gsub, .gws-add, .gml, .grow-label, .growrow { cursor: pointer; }
.gbar { cursor: pointer; touch-action: pan-x; }
.gantt-svg.is-reordering { cursor: grabbing; user-select: none; }
.gbar.is-grabbing { cursor: grabbing; }
.gbar:hover .gbar-rect { filter: brightness(1.08); }
.gsub:hover circle, .gws-add:hover circle { fill: var(--brand-edge, #CDE9E3); }
.gantt-tip { position: fixed; z-index: 50; display: none; max-width: 340px; padding: 8px 11px; background: var(--slate); color: #fff; border-radius: 8px; font-size: 0.8125rem; line-height: 1.4; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.gantt-tip.is-on { display: block; }
.gantt-tip-head { font-weight: 700; margin-bottom: 2px; overflow-wrap: anywhere; }
.gantt-tip-note { margin-top: 5px; opacity: 0.85; overflow-wrap: anywhere; }

/* Board */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kcol { background: #EDF0F2; border-radius: var(--radius); padding: 10px; min-width: 0; }
.kcol h2 { font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.kcount { font-weight: 600; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: 8px; }
.kcol-body.is-over { outline: 2px dashed var(--brand); outline-offset: 2px; }
.kcard { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.kcard[draggable="true"] { cursor: grab; }
.kcard[draggable="true"]:hover { border-color: var(--brand); }
.kcard.is-dragging { opacity: 0.5; }
.kcard-title { font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.kcard .meta { font-size: 0.78rem; }
.kempty { color: var(--muted); font-size: 0.8125rem; padding: 6px; }

/* Tables and the log */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; font-size: 0.8125rem; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table tr.is-closed { opacity: 0.6; }
.meta-inline { display: block; color: var(--muted); font-size: 0.75rem; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tally > div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.tally span { display: block; color: var(--muted); font-size: 0.8125rem; }
.tally strong { font-size: 1.25rem; overflow-wrap: anywhere; }
.tally .is-over strong { color: var(--danger); }
.log-form { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.log-list { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.log-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.log-list li + li { border-top: 1px solid var(--border); }
.log-body { flex: 1; min-width: 0; }
.log-body p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 2px; }

@media (max-width: 760px) {
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .log-form { grid-template-columns: minmax(0, 1fr); }
  .gantt-labels { max-width: 56%; overflow-x: auto; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 10px 14px; }
  .data-table tr + tr { border-top: 1px solid var(--border); }
  .data-table td { padding: 2px 0; border: 0; }
  .data-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.8125rem; }
  .data-table .num { text-align: left; white-space: normal; }
  .tally strong { font-size: 1.05rem; }
  .page-actions { flex-wrap: wrap; }
}

/* A new version is ready */
.update-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; background: var(--slate); color: #fff; border-radius: 10px; font-size: 0.9375rem; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }

/* Reports */
.report-list { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.report-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; }
.report-list li + li { border-top: 1px solid var(--border); }
.report-list .task-title { display: block; margin-bottom: 2px; }
.report-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.report-head h2 { font-size: 1.2rem; margin-bottom: 4px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.report-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.report-section h3 { font-size: 0.9375rem; margin-bottom: 4px; }
.report-section p { white-space: pre-wrap; overflow-wrap: anywhere; }
.report-section p + p { margin-top: 8px; }
.report-section textarea { margin-top: 6px; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facts-grid ul { list-style: none; font-size: 0.875rem; }
.facts-grid li + li { margin-top: 4px; }
.facts-grid li, .facts-grid p { overflow-wrap: anywhere; }
.facts-grid .report-section { margin-bottom: 0; }
.notice-ai { background: var(--warn-tint); color: var(--warn); }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Funder outputs */
.grant { margin-bottom: 30px; }
.grant .empty { margin-top: 12px; }
.year-pick { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; }
.year-pick select { width: auto; max-width: 100%; padding: 5px 8px; font-size: 0.875rem; }
.output-list { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 10px; }
.output { padding: 14px 16px; }
.output + .output { border-top: 1px solid var(--border); }
.output-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; }
.output-title { flex: 1 1 220px; min-width: 0; }
.output-title h3 { font-size: 0.9375rem; overflow-wrap: anywhere; }
.output-figures { margin-top: 6px; font-size: 0.9375rem; overflow-wrap: anywhere; }
.output-bar { display: block; width: 100%; height: 8px; margin-top: 8px; border-radius: 4px; }
.output-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 8px; }
.entry-actions { display: inline-flex; gap: 6px; }
.entries { margin-top: 8px; font-size: 0.875rem; }
.entries summary { cursor: pointer; color: var(--muted); }
.entry-list { list-style: none; margin-top: 6px; }
.entry-list li { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; padding: 8px 0; }
.entry-list li + li { border-top: 1px solid var(--border); }
.entry-main { flex: 1 1 200px; min-width: 0; }
.targets { border: 0; }
.targets legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.targets .field-row { margin-bottom: 6px; }
.status-achieved { background: var(--slate); color: #fff; }
.status-on_track { background: var(--brand-tint); color: var(--brand-hover); }
.status-slightly_behind, .status-behind { background: var(--warn-tint); color: var(--warn); }
.status-at_risk, .status-missed { background: var(--danger-tint); color: var(--danger); }
