@import url("./theme.css?v=20261019-followups");
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--grid-paper), var(--well);
  color: var(--ink);
  font: 15px/1.55 var(--font-sans);
}
/* App bar: one thin line, brand, text nav, account. */
.app-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  padding: 0 32px;
  background: var(--shell);
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--ink);
}
.brand {
  font: 600 15px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  font: 400 12px var(--font-sans);
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.app-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  gap: 4px;
}
.app-nav > .nav-end {
  margin-left: auto;
}
.app-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  color: var(--muted);
  font: 500 13px/1 var(--font-sans);
  text-decoration: none;
}
.app-nav > button {
  border: 0;
  min-height: 44px;
  padding: 0 9px;
  color: var(--muted);
}
.app-nav > a:hover,
.app-nav > button:hover {
  background: transparent;
  color: var(--ink);
}
.account {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0 0 0 12px;
}
.account summary {
  list-style: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  min-height: 0;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 500 11px var(--font-sans);
  color: var(--muted);
}
.account summary::-webkit-details-marker {
  display: none;
}
.account[open] summary,
.account summary:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 3;
  display: grid;
  gap: 8px;
  min-width: 200px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 13px/1.4 var(--font-sans);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-menu button {
  min-height: 36px;
  padding: 6px 12px;
  text-align: left;
}
.account-menu .account-legal {
  margin: 4px 0 0;
  padding: 0 12px;
  font-size: 12px;
}
.account-menu .account-legal a {
  color: inherit;
}
#login-link {
  margin-left: auto;
  min-height: 32px;
  padding: 6px 12px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
.button-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 14px;
  min-height: 44px;
}
button:hover,
.button-link:hover {
  background: var(--shell);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary,
.button-link.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
button.primary:hover,
.button-link.primary:hover {
  background: var(--ink-soft);
}
.button-link {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 9px 14px;
  min-height: 44px;
  text-decoration: none;
}
/* An app route paints a quiet skeleton until the data answers; the landing
   only shows for guests and on "/". boot.js sets data-boot before first paint. */
.skeleton {
  display: none;
}
html[data-boot="app"] .landing,
html[data-boot="app"] #login-link {
  display: none;
}
html[data-boot="app"] .skeleton {
  display: block;
  max-width: 34em;
}
.skeleton span {
  display: block;
  height: 12px;
  margin: 0 0 18px;
  background: var(--line-soft);
}
.skeleton span:first-child {
  width: 220px;
  height: 10px;
  margin-bottom: 44px;
}
.skeleton span:last-child {
  width: 60%;
}
.error-sheet {
  max-width: 34em;
}
.error-sheet .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.landing {
  max-width: 760px;
}
.landing .intro {
  font-size: 19px;
}
.landing p,
.landing li,
.explanations dd {
  max-width: 34em;
}
.agent-entry {
  border-left: 3px solid var(--ink);
  padding: 10px 14px;
  background: var(--panel);
}
.landing pre {
  margin: 6px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.landing-section {
  margin-top: 72px;
}
.explanations {
  margin: 0;
}
.explanations div {
  margin: 20px 0;
}
.explanations dt {
  font-weight: 600;
}
.explanations dd {
  margin: 4px 0 0;
}
.landing li {
  margin: 10px 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}
h1 {
  font: 300 38px/1.16 var(--font-sans);
  letter-spacing: -0.022em;
  margin: 0 0 16px;
}
h2 {
  font: 300 25px/1.24 var(--font-sans);
  letter-spacing: -0.018em;
  margin: 28px 0 16px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 16px;
}
.muted,
.meta {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
details {
  border-block: 1px solid var(--line-soft);
  padding: 16px 0;
  margin: 24px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
}
label.field {
  display: block;
  margin: 16px 0 6px;
}
input[type="search"],
input:not([type]),
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px;
  min-width: 0;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
/* Read-only drafts are read, not filled in: same 34em measure as prose. */
textarea[readonly] {
  max-width: 34em;
}
fieldset {
  border: 0;
  min-width: 0;
  margin: 0 0 36px;
  padding: 0;
}
legend {
  font-size: 20px;
  font-weight: 600;
  padding: 0;
}
.choice {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 8px 0;
  cursor: pointer;
}
.choice input {
  margin: 5px 0 0;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--ink);
}
.choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 2px 0 var(--ink);
  background: var(--paper);
}
.choice strong {
  font-weight: 600;
}
.choice-content {
  min-width: 0;
  flex: 1;
}
.choice-content > label {
  cursor: pointer;
}
.option-context {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.question-context,
.option-context {
  overflow-wrap: anywhere;
}
.question-context > :last-child,
.option-context > :last-child {
  margin-bottom: 0;
}
.question-context pre,
.option-context pre {
  white-space: pre-wrap;
}
/* The recommendation is the agent's judgement, not a fact of the option. */
.badge {
  display: inline-block;
  font: 500 12px/1.5 var(--font-sans);
  background: var(--status-ai-soft);
  color: var(--status-ai);
  border: 1px solid var(--line);
  padding: 1px 7px;
  margin-left: 8px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.save-state {
  font-size: 13px;
  color: var(--muted);
}
.empty {
  padding: 20px 0;
  color: var(--muted);
}
/* Connections: one quiet line per client. Name and identity, what it leads,
   the one action. The dot marks a live Kopf. */
.connection-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 9rem;
  gap: 8px 20px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.connection-row h3 {
  margin: 0;
  font: 550 15px/1.35 var(--font-sans);
  overflow-wrap: anywhere;
}
.connection-row h3[data-lead]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  vertical-align: 1px;
  background: var(--status-info);
}
.connection-row small {
  display: block;
  margin-top: 2px;
  font: 12px/1.5 var(--font-sans);
  color: var(--muted);
}
.connection-row > div:nth-child(2) {
  font-size: 14px;
}
.agent-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.agent-lines li {
  display: grid;
  gap: 0 8px;
}
.agent-lines small {
  margin: 0;
}
.agent-group > h2,
.agent-group > summary h2 {
  margin: 0 0 4px;
  font: 600 13px/1.4 var(--font-sans);
  color: var(--muted);
}
.agent-group + .agent-group {
  margin-top: 20px;
}
.agent-group > summary {
  cursor: pointer;
}
.agent-group > summary h2 {
  display: inline;
}
.page-card .agent-group > .connection-row:first-of-type {
  border-top: 0;
}
.connection-actions {
  text-align: right;
}
code {
  overflow-wrap: anywhere;
  font-size: 14px;
}
#notice {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  color: var(--status-fault);
}
[hidden] {
  display: none !important;
}
.nav-toggle {
  display: none;
}
/* Narrow: one bar row with brand, Menü and account; the pages open as a list below. */
@media (max-width: 760px) {
  .app-bar {
    flex-wrap: wrap;
    gap: 0 12px;
    padding: 0 16px;
  }
  /* The nav's items join the bar row; the pages wrap below it when open. */
  .app-nav {
    display: contents;
  }
  .app-nav > .nav-toggle {
    display: inline-flex;
    align-items: center;
    order: -2;
    margin-left: auto;
    min-height: 44px;
    padding: 0 8px;
    color: var(--ink);
  }
  .app-nav > .account {
    order: -1;
    margin-left: 0;
  }
  .app-nav > a:not(.nav-toggle),
  .app-nav > button:not(.nav-toggle) {
    display: none;
    order: 1;
    flex: 1 0 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
    font-size: 15px;
    border-top: 1px solid var(--line-soft);
  }
  .app-nav[data-open] > a:not(.nav-toggle),
  .app-nav[data-open] > button:not(.nav-toggle) {
    display: flex;
    align-items: center;
  }
  .brand {
    order: -3;
  }
  .round-cta-label {
    display: none;
  }
  main {
    padding: 32px 16px 40px;
  }
  h1 {
    font-size: 30px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .brand span {
    display: none;
  }
}

.project-list {
  margin-top: 14px;
}
.repo-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 12px 0;
}
.repo-controls label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  min-width: 0;
}
.repo-controls label:first-child {
  flex: 1;
}
.repo-controls input,
.repo-controls select {
  font-size: 15px;
  min-height: 44px;
}
.repo-controls #project-count {
  white-space: nowrap;
  padding-bottom: 10px;
}
.project-table {
  margin-bottom: 14px;
}
.project-activity-heading {
  margin: 0;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 650;
}
.project-activity-note {
  margin: -5px 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.project-table-head,
.project-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(90px, 0.6fr) 108px;
  gap: 12px;
  align-items: center;
}
.project-table-head,
.project-table .project-row {
  grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(90px, 0.5fr);
}
.project-table-head {
  min-height: 36px;
  color: var(--muted);
  font: 600 12px/1.4 var(--font-sans);
  border-bottom: 2px solid var(--ink);
}
.project-row {
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
}
.project-row:hover {
  background: var(--panel);
}
.project-row strong {
  font:
    550 15px/1.35 system-ui,
    sans-serif;
  overflow-wrap: anywhere;
}
.project-repository {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.project-row time {
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
.project-table .project-activity {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.project-table .project-activity time {
  text-align: left;
}
.labels {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
}
.labels span {
  border: 1px solid var(--line);
  padding: 0 5px;
}
.project-phase {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.project-table .project-phase {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.project-table .project-activity { min-width: 0; }
.project-actions {
  display: flex;
  gap: 8px;
  flex: none;
  align-items: center;
  margin-left: auto;
}
.project-actions:empty {
  display: none;
}
.project-actions button {
  min-height: 36px;
  padding: 6px 12px;
}
.onboarding textarea {
  min-height: 250px;
}
.project-access { display: block; font-size: 0.8rem; font-weight: normal; color: var(--muted); margin-top: 4px; }
.share-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.share-entry > span:first-child { flex: 1 1 220px; overflow-wrap: anywhere; }
.share-entry select { width: auto; max-width: 100%; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.section-head h2,
.section-head h3,
.logbook-archive > h3 {
  margin: 0 0 12px;
  font: 600 13px/1.4 var(--font-sans);
  color: var(--muted);
}
.work-state > h2 {
  margin-top: 0;
}
#overview-frame {
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
  margin: 8px 0;
}
.logbook-view > .section-head, .logbook-handovers { margin-top: 36px; }
.logbook-archive { margin: 40px 0 0; border-bottom: 0; }
.logbook-archive > summary { color: var(--muted); font: 600 13px/1.4 var(--font-sans); }
.logbook-archive > h3 { margin-top: 24px; }
.todo-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0 0 10px; font: 13px/1.4 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--muted); }
/* One grid per level: state, address, text, side. Each level starts --todo-indent further right, hung on a rail. */
.todo-tree { --todo-state: 62px; --todo-address: 64px; --todo-gap: 14px; --todo-pad: 12px; --todo-rail: 18px; --todo-indent: 14px; --todo-text: calc(var(--todo-state) + var(--todo-address) + 2 * var(--todo-gap)); display: flex; flex-direction: column; gap: 22px; margin: 0 0 28px; }
.todo-slice { border: 0; padding: 0; margin: 0; }
/* Slice panel: the head is the fold summary; the footer below it continues the same surface. */
.todo-slice-head { display: grid; grid-template-columns: var(--todo-state) var(--todo-address) minmax(0, 1fr) auto; column-gap: var(--todo-gap); row-gap: 4px; align-items: baseline; min-height: 0; padding: 10px var(--todo-pad); list-style: none; font-weight: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.todo-slice-head::-webkit-details-marker { display: none; }
.todo-slice-head::after { content: "▸"; grid-column: 4; grid-row: 1; font: 10px/1 var(--font-mono); color: var(--dim); }
.todo-slice[open] > .todo-slice-head::after { content: "▾"; }
.todo-slice-head:hover::after { color: var(--muted); }
.todo-slice-head > .todo-tally { grid-column: 3; }
.todo-slice[open] > .todo-slice-head:has(+ :is(.todo-details, .todo-foot)) { padding-bottom: 6px; border-bottom: 0; border-radius: 4px 4px 0 0; }
.todo-tree .todo-slice > :is(.todo-details, .todo-foot) { margin: 0; padding: 0 var(--todo-pad) 8px calc(var(--todo-pad) + var(--todo-text)); background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; }
.todo-tree .todo-slice > .todo-foot { padding-top: 2px; padding-bottom: 10px; }
.todo-slice > .todo-details > .todo-foot { margin-top: 0; }
.todo-state { font: 500 12.5px/1.4 var(--font-sans); color: var(--muted); white-space: nowrap; }
.todo-state[data-state="active"] { color: var(--accent); }
.todo-state[data-state="done"] { color: var(--status-ok); }
.todo-state[data-state="paused"] { color: var(--status-warn); }
.todo-state[data-state="dropped"] { color: var(--dim); text-decoration: line-through; }
.todo-slice-head .todo-address { font-size: 14px; font-weight: 600; color: var(--ink); }
.todo-slice h4 { margin: 0; font: 600 17px/1.35 var(--font-sans); overflow-wrap: anywhere; }
.todo-slice[data-state="done"] h4, .todo-slice[data-state="dropped"] h4 { color: var(--muted); font-weight: 500; }
.todo-slice[data-state="dropped"] h4 { text-decoration: line-through; }
.todo-tally { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; }
.todo-cubes { display: flex; flex-wrap: wrap; gap: 4px; }
.todo-cube { width: 10px; height: 10px; box-sizing: border-box; border: 1px solid var(--muted); }
.todo-cube[data-state="active"] { background: var(--accent); border-color: var(--accent); }
.todo-cube[data-state="done"] { background: var(--status-ok); border-color: var(--status-ok); }
.todo-cube[data-state="paused"] { background: var(--status-warn); border-color: var(--status-warn); }
.todo-count { font: 11px/1.4 var(--font-mono); color: var(--dim); white-space: nowrap; }
.todo-address { font: 12.5px/1.4 var(--font-mono); color: var(--muted); }
.todo-tasks { margin: 0 0 0 var(--todo-rail); padding: 6px 0 0 var(--todo-indent); border-left: 2px solid var(--line); }
.todo-slice[data-state="active"] > .todo-tasks { border-left-color: var(--accent); }
.todo-task, .todo-sub { display: grid; grid-template-columns: var(--todo-state) var(--todo-address) minmax(0, 1fr) auto; column-gap: var(--todo-gap); align-items: start; }
.todo-task { padding: 7px 8px; border-top: 1px solid var(--line-soft); }
.todo-task:first-child { border-top-color: transparent; }
.todo-task .todo-address, .todo-task > .todo-state { padding-top: 2px; }
/* Row text: title, then the result as content, then one muted mono footer with meta and the Details toggle. */
.todo-text { font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.todo-title { display: block; }
/* A title with details is a control that looks like text; hover underlines it. */
button.todo-title { display: inline-block; max-width: 100%; appearance: none; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; text-align: left; cursor: pointer; min-height: 0; }
button.todo-title:hover { background: none; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.todo-result { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 3px; font: 13.5px/1.45 var(--font-sans); color: var(--muted); }
.todo-result:has(+ .todo-details[open]) { display: none; }
.todo-tree .todo-details { border: 0; padding: 0; margin: 0; }
.todo-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 4px; font: 12.5px/1.45 var(--font-sans); color: var(--muted); }
.todo-tree .todo-details > summary.todo-foot { min-height: 0; padding: 2px 0; list-style: none; font-weight: inherit; }
.todo-tree .todo-details > summary::-webkit-details-marker { display: none; }
.todo-meta { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.todo-meta a { color: inherit; }
.todo-meta a.todo-worker { color: var(--accent); }
.todo-proof { margin-left: auto; white-space: nowrap; color: var(--dim); }
.todo-details-part { margin: 8px 0 0; padding-left: 12px; border-left: 1px solid var(--line-soft); }
.todo-details-part h5 { margin: 0 0 2px; font: 600 12px/1.4 var(--font-sans); color: var(--muted); }
.todo-details-part ul { list-style: none; margin: 0; padding: 0; }
.todo-details-part li { font: 13px/1.5 var(--font-sans); color: var(--muted); overflow-wrap: anywhere; }
.todo-details-part li + li { margin-top: 2px; }
.todo-details-part .todo-prose { margin: 0; font: 13.5px/1.5 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.todo-details-part .todo-description { white-space: pre-wrap; }
.todo-check { color: var(--dim); }
.todo-check[data-proven="true"] { color: var(--status-ok); }
.todo-side { font: 12.5px/1.4 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 3px; max-width: 18em; text-align: right; overflow-wrap: anywhere; }
[data-state="done"] > .todo-text { color: var(--muted); }
.todo-task[data-state="active"] > .todo-address { color: var(--accent); font-weight: 600; }
[data-state="paused"] > .todo-side { color: var(--status-warn); }
[data-state="dropped"] > .todo-text { text-decoration: line-through; color: var(--dim); }
.todo-sub { grid-column: 1 / -1; margin: 6px 0 0 var(--todo-rail); padding: 3px 0 3px var(--todo-indent); border-left: 2px solid var(--line); }
.todo-task[data-state="active"] > .todo-sub { border-left-color: var(--accent); }
.todo-sub + .todo-sub { margin-top: 0; }
.todo-sub .todo-address { font-size: 12px; }
.todo-sub .todo-text { font-size: 13.5px; }
.todo-sub[data-state="active"] > .todo-address { color: var(--accent); font-weight: 600; }
.todo-delivery code { font-size: inherit; }
/* Mobile: state, address and side share the first line; text takes the full width below. */
@media (max-width: 640px) {
  .todo-tree { --todo-gap: 10px; --todo-pad: 10px; --todo-rail: 8px; --todo-indent: 10px; --todo-text: 0px; }
  .todo-slice-head, .todo-task, .todo-sub { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .todo-slice-head > :is(h4, .todo-tally), .todo-task > .todo-text, .todo-sub > .todo-text { grid-column: 1 / -1; }
  .todo-slice-head::after { justify-self: end; }
  .todo-side { grid-row: 1; grid-column: 3 / -1; max-width: none; padding-top: 2px; }
  .todo-text { margin-top: 2px; }
  .todo-tree .todo-details > summary.todo-foot:not(:empty) { padding: 4px 0; }
  button.todo-title { min-height: 40px; padding: 8px 0; }
}
.original-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  min-height: 44px;
}
.memory-body pre {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  background: var(--panel);
}
.memory-body table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
  max-width: 100%;
}
.memory-body th,
.memory-body td {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  text-align: left;
}
.memory-body th {
  border-bottom: 2px solid var(--ink);
}
.memory-body blockquote {
  border-left: 2px solid var(--ink);
  margin: 12px 0;
  padding-left: 16px;
}
table,
th,
td {
  font-variant-numeric: tabular-nums;
}
.phase {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
/* Vorhaben head: crumb, title with the actions, one status line. The tab
   row below is sticky and carries the title once the head has scrolled away. */
.project-head {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
  margin: -12px 0 0;
  padding: 14px 24px 0;
}
.crumb {
  margin: 0 0 6px;
  font: 13px/1.4 var(--font-sans);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.crumb a {
  color: var(--muted);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--ink);
}
.title-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.project-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font: 600 22px/1.25 var(--font-sans);
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
/* Open questions are a quiet link next to the one primary action. */
.round-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
  color: var(--ink-soft);
  font: 500 13px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
}
.round-cta em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.cta-sep {
  margin: 0 8px;
  color: var(--dim);
}
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding: 0 !important;
}
.round-cta:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-status {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 10px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.status-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
.status-item time {
  font-variant-numeric: tabular-nums;
}
/* Repositories sit at the right end of the status line, short names only;
   the chip carries the full name and the GitHub link. */
.repo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  align-self: center;
}
.repo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: var(--well);
  color: var(--muted);
  font: 500 11.5px/1 var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
}
a.repo-chip:hover,
a.repo-chip:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 0;
  background: var(--dim);
}
.project-status[data-agent="active"] .status-dot {
  background: var(--status-info);
}
.project-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0;
  padding: 0 24px;
}
/* The frame of the card runs on around the visible panel. */
main > [data-view] {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 24px 24px 32px;
  background: var(--well);
}
.workflow-notice {
  margin: 0;
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--status-warn-soft);
}
.tab-title {
  display: none;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 38ch;
  align-self: center;
  padding: 10px 0;
  font: 500 13px/1.4 var(--font-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-tabs.compact .tab-title {
  display: block;
}
.project-tab-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}
.project-tab-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  white-space: nowrap;
  padding: 10px 0 12px;
  min-height: 0;
  color: var(--muted);
}
.project-tab-list button:hover {
  background: transparent;
  color: var(--ink);
}
.project-tab-list button[aria-pressed="true"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}
.tab-count {
  font-size: 11px;
  color: var(--dim);
}
.tab-open {
  color: var(--accent);
  font-weight: 600;
}
/* Rail of rounds: one chip per round, the open count is the one accent. */
.round-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  align-self: start;
  position: sticky;
  top: 60px;
}
.round-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 13px/1.4 var(--font-sans);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
}
.round-chip:hover,
.round-chip:focus-visible {
  background: var(--shell);
}
.round-chip[data-open] {
  border-color: var(--accent);
}
.round-chip[aria-current="page"] {
  border-color: var(--ink);
  box-shadow: inset 2px 0 var(--ink);
}
.chip-count {
  color: var(--muted);
}
.chip-open {
  color: var(--accent);
  font-weight: 600;
}
.round-chip-all {
  color: var(--muted);
  border-style: dashed;
  justify-content: center;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.filters button {
  font-size: 13px;
  padding: 5px 12px;
  min-height: 44px;
}
.filters button[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 2px 0 var(--ink);
  background: var(--paper);
}
/* A memory is foreign text end to end - title, tag, meta and body. */
.memory {
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.resource-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.resource-controls label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
/* Register: a table of entries, not a grid of cards. The head row carries the
   one strong rule, the entries only quiet lines. */
.register-surface {
  overflow-x: auto;
}
.register {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.register th {
  padding: 0 14px 7px 0;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font: 600 12px/1.4 var(--font-sans);
  text-align: left;
  white-space: nowrap;
}
.register td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.register th:last-child,
.register td:last-child {
  padding-right: 0;
}
.register h3 {
  margin: 0;
  font:
    550 15px/1.35 system-ui,
    sans-serif;
}
.resource-kind,
.resource-source,
.resource-state,
.artifact-state {
  color: var(--muted);
  font-size: 13px;
}
.resource-state,
.artifact-state {
  white-space: nowrap;
}
.resource-actions a,
.artifact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 14px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.resource-actions a:last-child,
.artifact-actions a:last-child {
  margin-right: 0;
}
.resource-table {
  min-width: 680px;
}
.resource-table th:nth-child(1),
.resource-table td:nth-child(1) {
  width: 32%;
}
.resource-table th:nth-child(2),
.resource-table td:nth-child(2) {
  width: 14%;
}
.resource-table th:nth-child(3),
.resource-table td:nth-child(3) {
  width: 16%;
}
.resource-table th:nth-child(4),
.resource-table td:nth-child(4) {
  width: 14%;
}
.resource-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource-summary {
  margin: 4px 0 0;
  padding: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.resource-summary.empty {
  color: var(--muted);
}
/* Narrow screens stack the entry instead of scrolling the register sideways,
   the same way the project table drops its head row. */
@media (max-width: 760px) {
  .register,
  .register tbody,
  .register tr,
  .register td {
    display: block;
  }
  .resource-table td:nth-child(n),
  .artifact-table td:nth-child(n) {
    width: auto;
  }
  .register {
    min-width: 0;
  }
  .register thead {
    display: none;
  }
  .register tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .register td {
    padding: 0;
    border: 0;
  }
  .resource-kind,
  .resource-source,
  .resource-state,
  .artifact-state {
    margin-top: 3px;
  }
  .resource-source {
    white-space: normal;
  }
  .resource-state,
  .artifact-state {
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .resource-controls {
    display: grid;
  }
  .resource-controls input,
  .resource-controls select {
    width: 100%;
  }
}

.problem-list {
  max-width: 840px;
}
.problem {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}
.problem:first-child {
  border-top: 1px solid var(--line-soft);
}
.problem h3 {
  margin: 3px 0 7px;
  font-size: 17px;
}
.problem p {
  max-width: 34em;
}
.problem-critical h3,
.problem-high h3 {
  color: var(--status-fault);
}
@media (max-width: 560px) {
  .problem {
    padding: 11px 0;
  }
}
.artifact-table {
  min-width: 480px;
}
.material-archive {
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.material-archive summary {
  cursor: pointer;
  color: var(--muted);
  font: 600 13px/1.5 var(--font-sans);
}
.material-archive .register-surface {
  margin-top: 12px;
}
.artifact-table th:nth-child(1),
.artifact-table td:nth-child(1) {
  width: 58%;
}
.artifact-table th:nth-child(2),
.artifact-table td:nth-child(2) {
  width: 20%;
}
.artifact-title h3 a {
  color: var(--ink);
  text-decoration: none;
}
.artifact-title h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.artifact-summary {
  margin: 4px 0 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.artifact-summary p {
  margin: 0;
}
.artifact-public {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  cursor: pointer;
}
.artifact-public input {
  width: auto;
  margin: 0;
}
.artifact-public-status {
  display: block;
  white-space: normal;
}
@media (max-width: 760px) {
  .artifact-table {
    min-width: 0;
  }
  .artifact-table td:nth-child(n) {
    width: auto;
  }
}
.memory-meta {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
/* Kind as a tagged register: recorded fact in ink, agent judgement in ai,
   friction in warn. The reader sees who is speaking before reading. */
.memory .tag {
  font: 500 12px/1.5 var(--font-sans);
  background: var(--shell);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 1px 7px;
}
.memory .tag[data-memory-kind="erkenntnis"],
.memory .tag[data-memory-kind="review"] {
  background: var(--status-ai-soft);
  color: var(--status-ai);
}
.memory .tag[data-memory-kind="friction"] {
  background: var(--status-warn-soft);
  color: var(--status-warn);
}
/* O-Ton is quoted verbatim, so it carries a quotation edge. */
.memory-oton {
  border-left: 3px solid var(--ink);
  padding-left: 16px;
}
.memory-body {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
/* Reading measure: 34em holds prose at 60-75 characters. Table, pre and
   figure keep the full column. */
.memory-body > p,
.memory-body > ul,
.memory-body > ol,
.memory-body > dl,
.memory-body > h4,
.memory-body > blockquote {
  max-width: 34em;
}
.rounds {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 28px;
}
.round-back,
.round-page-head {
  display: none;
}
.question-index {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.question-index li {
  border-bottom: 1px solid var(--line-soft);
}
.question-index button {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  width: 100%;
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: 14px/1.4 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}
.question-index button:hover {
  background: transparent;
  color: var(--accent);
}
.question-index-number,
.question-index-state {
  font: 12.5px/1.4 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.question-index button[data-question-state="offen"] .question-index-state {
  color: var(--accent);
  font-weight: 600;
}
.rounds > .empty {
  grid-column: 1 / -1;
}
#round-content {
  min-width: 0;
  max-width: 920px;
}
.round-page > .question,
.accepted-question,
.returned-question {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  margin-top: 20px;
}
/* A returned question waits on the Kopf: the options no longer count, only
   the user's note does. */
.return-state {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 8px;
  font: 600 13px/1.5 var(--font-sans);
  background: var(--status-ai-soft);
  color: var(--status-ai);
}
.returned-choices .choice {
  cursor: default;
  opacity: 0.5;
}
.return-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--status-ai);
  background: var(--panel);
}
.return-note .meta {
  margin: 0 0 6px;
}
.field-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.field-row .field {
  margin-bottom: 0;
}
.dictation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dictate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.dictate:hover { color: var(--ink); }
.dictation-state { color: var(--muted); font-size: 13px; }
.dictation-state:empty { display: none; }
.accepted-answer {
  border-left: 2px solid var(--line);
  padding: 2px 0 2px 16px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.answer-history {
  border-bottom: 0;
  margin: 16px 0;
  padding: 12px 0;
}
.answer-history article {
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}
.thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
}
.thread-row p {
  margin: 3px 0 0;
}
.thread-list {
  border-top: 1px solid var(--line);
}
.thread-main {
  min-width: 0;
}
.thread-main strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.thread-presence {
  color: var(--ink);
}
.thread-presence[data-presence-state="stale"],
.thread-presence[data-presence-state="unobserved"] {
  color: var(--muted);
}
.thread-role {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.thread-status {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.thread-status[data-status="active"] {
  color: var(--ink);
}
.message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.message-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.message-list p { margin: 4px 0 0; }
.message-route { font-size: 13px; }
.message-text {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .project-row,
  .project-table .project-row {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 3px 8px;
    padding: 8px 0;
  }
  .project-row strong {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .project-row .labels {
    grid-column: 1;
    grid-row: 3;
    flex-wrap: wrap;
    overflow: visible;
  }
  .project-row .project-repository {
    grid-column: 1;
    grid-row: 2;
  }
  .project-row .project-phase {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .project-table .project-row .project-phase {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
  .project-table .project-row .project-repository { grid-row: 3; grid-column: 1 / -1; }
  .project-table .project-row .labels { grid-row: 4; grid-column: 1 / -1; }
  .project-table .project-row .project-activity {
    grid-column: 1 / -1;
    grid-row: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .project-table-head {
    display: none;
  }
  .project-head {
    margin-top: -20px;
    padding-inline: 16px;
  }
  .title-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .project-title {
    flex-basis: 100%;
  }
}
@media (max-width: 760px) {
  .repo-controls {
    flex-wrap: wrap;
  }
  .repo-controls label:first-child {
    flex-basis: 100%;
  }
  .repo-controls label {
    flex: 1 1 120px;
  }
  .repo-controls select {
    width: 100%;
    min-width: 0;
  }
  .repo-controls #project-count {
    flex-basis: 100%;
    padding: 0;
  }
  /* Fragerunden as a hierarchy: the list, then one round, then its pages
     side by side. */
  .rounds {
    display: block;
  }
  .round-rail {
    position: static;
  }
  .rounds:not(.round-open) #round-content,
  .rounds.round-open .round-rail {
    display: none;
  }
  .round-back {
    display: inline-block;
    margin-bottom: 14px;
    font: 500 13px/1 var(--font-sans);
    color: var(--muted);
    text-decoration: none;
  }
  .round-pages {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -16px;
  }
  .round-pages::-webkit-scrollbar {
    display: none;
  }
  .round-page {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    padding-inline: 16px;
    /* A page brought into view lands below the sticky tab row (44px) with
       the panel's top spacing. */
    scroll-margin-top: 64px;
  }
  .round-page > .question,
  .round-page > .accepted-question,
  .round-page > .returned-question {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }
  .round-page-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    font: 600 13px/1.4 var(--font-sans);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
  }
  .round-page-head button {
    border: 0;
    padding: 0;
    min-height: 0;
    font: inherit;
    color: inherit;
    background: transparent;
  }
  .round-page-head button::before {
    content: "← ";
  }
  .memory-body {
    margin-left: 0;
  }
  .project-tabs {
    gap: 0 20px;
    padding-inline: 16px;
  }
  main > [data-view] {
    padding: 20px 16px 28px;
  }
  .tab-title {
    display: none !important;
  }
  /* One line of tabs that scrolls; the head keeps only title and actions
     so the content starts within the first screen. A faded edge shows that
     more tabs follow (data-more, set by app.js). */
  .project-tab-list,
  .filters {
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    flex: none;
    min-height: 36px;
    padding: 4px 10px;
  }
  .project-tab-list::-webkit-scrollbar,
  .filters::-webkit-scrollbar {
    display: none;
  }
  [data-more="end"] {
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
  [data-more="start"] {
    mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  }
  [data-more="both"] {
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }
  .crumb {
    display: none;
  }
  .project-status {
    margin: 6px 0 0;
  }
  .project-status .status-item:not(.status-shared) {
    display: none;
  }
  .project-head {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .project-title {
    font-size: 19px;
  }
  .project-actions {
    width: 100%;
  }
  .thread-row {
    gap: 10px;
  }
  .thread-status {
    font-size: 13px;
  }
  #notice {
    padding: 0 16px;
  }
}

/* Repository collaboration */
.overview-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.overview-tabs button { min-height: 44px; padding: 6px 0; border: 0; border-bottom: 2px solid transparent; color: var(--muted); }
.overview-tabs button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.project-row { cursor: pointer; }
.project-title-link { color: var(--ink); text-decoration: none; }
.project-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.repository-link { overflow-wrap: anywhere; }
.repository-group { margin: 0 0 24px; }
.repository-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 0 0 12px; overflow-wrap: anywhere; }
.repository-head h2 { margin: 0; font: 600 13px/1.4 var(--font-sans); color: var(--ink); }
.repository-head h2 a { color: inherit; text-decoration: none; }
.repository-head h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.repository-projects .project-table-head,
.repository-project-row { grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) minmax(90px, .6fr) 108px; }
.repository-settings { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.people-sharing { padding-top: 20px; }
.sharing-choice { display: flex; gap: 10px; align-items: start; margin: 12px 0; }
.sharing-choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.sharing-choice small { display: block; color: var(--muted); margin-top: 3px; }
.github-connection { padding: 16px 0 22px; border-bottom: 1px solid var(--line); }
.connection-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.connection-heading h2 { margin-top: 0; }
.service-credential-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.service-credential-form input { flex: 1 1 220px; min-width: 0; }
.service-credential-token code { overflow-wrap: anywhere; user-select: all; }
.service-credentials .agent-lines li { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.client-connections { padding-top: 22px; }
.client-connections > h2 { margin: 0 0 12px; font: 600 13px/1.4 var(--font-sans); color: var(--muted); }
.client-connections > p { max-width: 34em; }
@media (max-width: 900px) {
  .repository-project-row { grid-template-columns: minmax(0, 1fr) 105px; }
}
@media (max-width: 760px) {
  .repo-controls input, .repo-controls select { width: 100%; }
  .connection-heading { display: block; }
  .github-actions { justify-content: flex-start; }
  .connection-row { grid-template-columns: minmax(0, 1fr) auto; }
  .connection-row > div:nth-child(2) { grid-column: 1 / -1; }
  .connection-actions { grid-column: 2; grid-row: 1; }
}

.thread-stop {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding: 0;
  border-block: 0;
}
.thread-stop label {
  display: block;
  margin-bottom: 0.75rem;
}

/* Aufgaben-Adresse im Text (S2, S2.3): mono mit gepunkteter Unterlinie, die
   Vorschau-Karte erscheint bei Hover oder Fokus. Reines CSS, kein Skript. */
.todo-ref {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: inherit;
  border-bottom: 1px dotted var(--status-info);
  cursor: help;
  outline-offset: 2px;
}
.todo-ref[data-state="active"] {
  border-bottom-color: var(--accent);
}
.todo-ref[data-state="paused"] {
  border-bottom-color: var(--status-warn);
}
.todo-ref[data-state="done"],
.todo-ref[data-state="dropped"] {
  border-bottom-color: var(--dim);
}
.todo-ref-card {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  z-index: 20;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 15%, transparent);
  font: 400 13px/1.45 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  text-align: start;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.todo-ref:hover > .todo-ref-card,
.todo-ref:focus-within > .todo-ref-card {
  display: block;
}
.todo-ref-card .k,
.todo-ref-card .m {
  display: block;
  font: 12px/1.4 var(--font-sans);
  color: var(--muted);
}
.todo-ref-card .k {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.todo-ref-card .m {
  margin-top: 4px;
}
/* Wo der Browser Anker kennt, bleibt die Karte im Viewport: rechtsbündig,
   wenn rechts kein Platz ist, über dem Wort, wenn unten keiner ist. */
@supports (anchor-name: --todo-ref) {
  .todo-ref {
    anchor-name: --todo-ref;
    anchor-scope: --todo-ref;
  }
  .todo-ref-card {
    position: fixed;
    position-anchor: --todo-ref;
    top: anchor(bottom);
    inset-inline-start: anchor(start);
    margin-top: 4px;
    position-try-fallbacks:
      flip-inline,
      flip-block,
      flip-block flip-inline;
  }
}

/* Page frame: title flat on the paper, content on cards. */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 20px; }
.page-head h1 { margin: 0; }
.page-summary { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-card { background: var(--well); border: 1px solid var(--line); padding: 20px 24px; margin: 0 0 20px; }
.page-card > :first-child { margin-top: 0; }
.page-card > :last-child { margin-bottom: 0; }
.page-card > .github-connection { padding: 0; border-bottom: 0; }
.page-card > .client-connections { padding-top: 0; }
.page-card .problem-list { max-width: none; }
/* Columns without any content are left out instead of shown empty. */
@media (min-width: 901px) {
.project-table.no-repositories .project-table-head,
.project-table.no-repositories .project-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(90px, 0.5fr); }
.project-table.no-labels .project-table-head,
.project-table.no-labels .project-row { grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(90px, 0.5fr); }
.project-table.no-repositories.no-labels .project-table-head,
.project-table.no-repositories.no-labels .project-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(90px, 0.5fr); }
.repository-projects.no-labels .project-table-head,
.repository-projects.no-labels .repository-project-row { grid-template-columns: minmax(220px, 2fr) minmax(90px, 0.6fr) 108px; }
}
.overview-card .project-table:last-child, .overview-card .repository-group:last-child { margin-bottom: 0; }
/* Dialogs for tasks that leave the page behind. */
.sheet-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 1px solid var(--line); background: var(--well); color: var(--ink); box-shadow: 0 24px 64px -24px #11131a80; }
.sheet-dialog::backdrop { background: #11131a99; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--well); z-index: 1; }
.dialog-head h2 { margin: 0; font-size: 22px; }
.dialog-body { padding: 16px 24px 24px; }
.dialog-body .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 900px) {
  .project-table .project-row .project-repository:empty,
  .project-table .project-row .labels:empty { display: none; }
}
@media (max-width: 760px) {
  .page-card { padding: 16px; }
  .dialog-head, .dialog-body { padding-inline: 16px; }
}
.usage-card h2 { margin: 0 0 12px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.usage-lead { font-size: 18px; margin: 0 0 16px; }
.usage-warn { margin: 0 0 16px; padding: 8px 12px; background: var(--status-warn-soft); color: var(--status-warn); border-radius: 6px; }
.usage-card table { width: 100%; border-collapse: collapse; }
.usage-card th { padding: 0 14px 7px 0; border-bottom: 2px solid var(--ink); color: var(--muted); font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; text-align: left; }
.usage-card td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.usage-card th:not(:first-child), .usage-card td:not(:first-child) { text-align: right; }
.usage-card th:last-child, .usage-card td:last-child { padding-right: 0; }
@media (max-width: 760px) {
  .usage-card th, .usage-card td { padding-right: 8px; }
  .usage-card th { letter-spacing: .04em; }
  .usage-card td:not(:first-child) { white-space: nowrap; }
  .usage-quotas th:nth-child(3), .usage-quotas td:nth-child(3),
  .usage-users th:nth-child(3), .usage-users td:nth-child(3),
  .usage-users th:nth-child(5), .usage-users td:nth-child(5) { display: none; }
}
/* Vorhabenliste: Gruppen, Auswahl, Sammelaktion. */
.project-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.project-group-count { color: var(--muted); font-weight: 400; font-size: 13px; }
.group-select { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; cursor: pointer; }
.project-row strong { display: flex; align-items: flex-start; gap: 10px; }
.project-title-cell { display: grid; min-width: 0; }
.project-select, .group-select input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--accent, currentColor); cursor: pointer; }
.group-select input { margin: 0; }
.selection-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; margin: 0 0 8px; background: var(--well); border-bottom: 1px solid var(--line); }
.selection-bar[hidden] { display: none; }
.selection-bar strong { margin-right: auto; font-weight: 600; }
.sheet-dialog.confirm { width: min(520px, calc(100vw - 32px)); }
.sheet-dialog textarea { width: 100%; box-sizing: border-box; }
.news-entry { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.news-entry:first-child { padding-top: 0; border-top: 0; }
.news-entry:last-child { padding-bottom: 0; }
.news-entry h2 { margin: 0 0 6px; font-size: 20px; }
.news-entry p { margin: 0; }
.news-entry .news-date { margin: 0 0 4px; color: var(--muted); font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
/* Guests see "So geht's" next to Anmelden; signed in it sits in the nav. */
.guest-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 9px; color: var(--muted); font: 500 13px/1 var(--font-sans); text-decoration: none; }
.guest-link:hover { color: var(--ink); }
.guest-link + #login-link { margin-left: 8px; }
html[data-boot="app"] .guest-link { display: none; }
/* So geht's: one reading column per card, rows split by hairlines. */
.guide-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.guide-roles h2 { margin: 0 0 4px; font: 600 15px/1.4 var(--font-sans); letter-spacing: 0; }
.guide-roles p { margin: 0; max-width: 34em; }
.guide-card > h2 { margin: 0 0 6px; }
.guide-lead { margin: 0 0 16px; color: var(--muted); max-width: 40em; }
.guide-steps, .guide-drifts { list-style: none; margin: 0; padding: 0; }
.guide-steps > li { display: grid; grid-template-columns: 40px minmax(0, 5fr) minmax(0, 6fr); gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.guide-steps > li:last-child { padding-bottom: 0; }
.guide-number { font: 500 13px/1.7 var(--font-mono); letter-spacing: .08em; color: var(--accent); }
.guide-step-say h3 { margin: 0 0 10px; font-size: 17px; }
.guide-say, .guide-then { margin: 0; max-width: 40em; }
.guide-say { padding: 8px 12px; background: var(--paper); border-left: 2px solid var(--accent); }
.guide-say > span, .guide-then > span { display: block; margin: 0 0 2px; color: var(--muted); font: 500 10px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.guide-then { padding-top: 32px; }
.guide-terms { margin: 0; }
.guide-terms > div { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.guide-terms > div:last-child { padding-bottom: 0; }
.guide-terms dt { font-weight: 600; }
.guide-terms dd { margin: 0; max-width: 40em; }
.guide-glossary dt strong { font-size: 16px; }
.guide-also { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.guide-terms dd small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.guide-drifts > li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px 24px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.guide-drifts > li:last-child { padding-bottom: 0; }
.guide-drifts p { margin: 0; }
@media (max-width: 760px) {
  .guide-roles, .guide-drifts > li, .guide-terms > div { grid-template-columns: minmax(0, 1fr); }
  .guide-steps > li { grid-template-columns: 28px minmax(0, 1fr); }
  .guide-then { grid-column: 2; padding-top: 0; }
}
/* Vorhabenliste: Fortschritt, Aktivität, einklappbare Gruppen. */
.project-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; color: var(--muted); font: 400 12px/1.4 var(--font-sans); }
.project-progress { display: inline-flex; align-items: center; gap: 8px; }
.progress-bar { width: 56px; height: 4px; background: var(--line); }
.progress-bar i { display: block; height: 100%; background: var(--status-ok); }
.activity-heatmap { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 1px; width: 100%; max-width: 150px; }
.activity-heatmap i { height: 8px; background: var(--line-soft); }
.activity-heatmap i.on { background: var(--status-ok); }
details.project-fold { border-block: 0; padding: 0; margin: 0 0 14px; }
details.project-fold > summary { cursor: pointer; list-style: none; min-height: 0; font-weight: inherit; }
details.project-fold > summary::-webkit-details-marker { display: none; }
details.project-fold > summary .project-activity-heading::before { content: "▸"; display: inline-block; width: 16px; color: var(--muted); font-weight: 400; }
details.project-fold[open] > summary .project-activity-heading::before { content: "▾"; }
.project-group-tools { display: flex; justify-content: flex-end; padding-bottom: 4px; }

/* Fahrplan: „Läuft alles?“ → „Was war los?“ → „Im Detail“ */
.fahrplan-view {
  --fp-Klären: var(--status-info);
  --fp-Planen: var(--status-ai);
  --fp-Bauen: var(--accent);
  --fp-Prüfen: var(--status-warn);
  --fp-Liefern: var(--status-ok);
  --fp-Warten: var(--dim);
  padding: 4px 0 24px;
}
.fahrplan-view h2 { font-size: 20px; line-height: 1.25; margin: 10px 0 6px; outline: none; }
.fp-sum { color: var(--ink-soft); margin: 0 0 16px; max-width: 860px; }
.fp-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; color: var(--muted); }
.fahrplan-view button.link {
  min-height: 0; padding: 2px 0; border: 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.fahrplan-view button.link:hover { color: var(--ink); }
.fahrplan-view button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fp-t { font: 500 12.5px var(--font-mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-act { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.fp-act::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.fp-mut { color: var(--muted); }
.fp-small { display: block; font-size: 12.5px; font-weight: 400; }
.fp-flag { color: var(--accent); }
.fp-note { font-size: 12px; color: var(--muted); margin: 18px 2px 0; max-width: 900px; }
.fp-note p { margin: 0 0 4px; }
.fp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fp-list > li { border-bottom: 1px solid var(--line-soft); }
.fp-row {
  display: grid; gap: 3px 20px; align-items: center; width: 100%; min-height: 0; padding: 9px 8px;
  border: 0; border-left: 3px solid transparent; text-align: left; font-size: 14px; font-weight: 400;
}
.fp-row:hover { background: var(--paper); }
.fp-row.attn { border-left-color: var(--accent); }
.fp-go { color: var(--dim); font-size: 16px; justify-self: end; }
.fp-l1 { grid-template-columns: 220px minmax(0, 1fr) 112px 130px 110px 16px; }
.fp-name { min-width: 0; }
.fp-name b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-name span { display: block; font-size: 12.5px; color: var(--muted); }
.fp-strip { position: relative; height: 8px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.fp-strip i { position: absolute; top: 0; bottom: 0; background: var(--c); }
.fp-status { font-weight: 600; }
.fp-waits { color: var(--status-info); }
.fp-smell { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.fp-poo { vertical-align: -2px; flex: none; }
.fp-l1.attn .fp-smell { color: var(--accent); }
.fp-axis { display: grid; grid-template-columns: 220px minmax(0, 1fr) 112px 130px 110px 16px; gap: 0 20px; padding: 0 8px 4px 11px; }
.fp-ticks { position: relative; height: 16px; }
.fp-ticks span { position: absolute; transform: translateX(-50%); font: 500 11px var(--font-mono); color: var(--dim); }
.fp-l2 { grid-template-columns: 130px 120px minmax(0, 1fr) 16px; align-items: start; }
.fp-body { display: grid; gap: 2px; min-width: 0; }
.fp-ev { display: grid; grid-template-columns: 76px 190px 100px minmax(0, 1fr); gap: 2px 16px; padding: 6px 8px; font-size: 13.5px; }
.fp-inj { background: var(--paper); }
.fp-guid { grid-column: 2 / -1; margin: 0; overflow-wrap: anywhere; }
.fp-guid summary { cursor: pointer; }
.fp-guid p { margin: 4px 0 0; white-space: pre-wrap; }
.fp-k { font-weight: 600; overflow-wrap: anywhere; }
.fp-paths { overflow-wrap: anywhere; }
.fp-steps { display: flex; gap: 16px; }
.fp-tl { margin: 0 0 20px; max-width: 1100px; overflow-x: clip; }
.fp-tl-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; }
.fp-tl-row > span { font-size: 12px; color: var(--muted); }
.fp-marks, .fp-band { position: relative; }
.fp-marks { height: 26px; }
.fp-tick { position: absolute; bottom: 2px; width: 2px; height: 9px; margin-left: -1px; background: var(--ink-soft); border-radius: 1px; }
.fp-mark { position: absolute; bottom: 11px; transform: translateX(-50%); line-height: 0; color: var(--accent); }
.fp-band { height: 30px; }
.fp-band::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.fp-seg { position: absolute; top: 0; bottom: 0; overflow: hidden; background: var(--c); }
.fp-seg > span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; font-style: normal; color: var(--well); white-space: nowrap; }
.fp-pause { background: transparent; }
.fp-pause > span { color: var(--dim); font-weight: 400; }
.fp-tl .fp-ticks { margin-top: 6px; border-top: 1px solid var(--line); height: 20px; }
.fp-tl .fp-ticks span { top: 4px; }
.fp-tl-smells { list-style: none; margin: 10px 0 0; padding: 0 0 0 84px; color: var(--ink-soft); }
.fp-tl-smells li { display: flex; gap: 6px; align-items: baseline; margin: 2px 0; }
.fp-tl-smells .fp-poo { color: var(--accent); }
@media (max-width: 820px) {
  .fp-tl-row { grid-template-columns: minmax(0, 1fr); }
  .fp-tl-row > span { padding: 6px 0 2px; }
  .fp-tl-row > span:empty { display: none; }
  .fp-tl .fp-ticks span:nth-child(even) { display: none; }
  .fp-tl-smells { padding-left: 0; }
  .fp-axis { display: none; }
  .fahrplan-view button.link { min-height: 40px; }
  .fp-l1 { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .fp-l1 .fp-strip { grid-column: 1 / -1; order: 5; }
  .fp-l1 .fp-last { order: 6; }
  .fp-l1 .fp-smell { order: 7; justify-self: end; grid-column: 2 / -1; }
  .fp-l2 { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .fp-l2 .fp-body { grid-column: 1 / -1; order: 5; }
  .fp-ev { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .fp-ev > :last-child { grid-column: 2 / -1; }
}

/* Wächter · Überblick (Klassen des Fahrplans, hier nur die Spalten) */
.wa-view h3 { font-size: 14px; margin: 20px 0 6px; color: var(--ink-soft); }
.wa-l1, .wa-axis { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) 110px 130px 140px 90px 16px; }
.wa-axis { display: grid; gap: 0 20px; padding: 0 8px 4px 11px; font-size: 12px; color: var(--dim); }
.wa-cov, .wa-plan, .wa-find { overflow-wrap: anywhere; }
.wa-why { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-soft); }
.wa-l1.attn, .wa-run.attn { background: var(--paper); }
.wa-run { grid-template-columns: 110px 70px 90px 70px 120px minmax(0, 1fr); }
.wa-finding { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 2fr) 150px; align-items: start; }
.wa-repo, .wa-finding > span { overflow-wrap: anywhere; min-width: 0; }
.wa-done { color: var(--muted); }
@media (max-width: 820px) {
  .wa-axis { display: none; }
  .wa-l1 { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .wa-l1 .wa-cov, .wa-l1 .wa-plan { grid-column: 1 / -1; order: 5; }
  .wa-l1 .wa-last { order: 6; }
  .wa-l1 .wa-find { order: 7; justify-self: end; grid-column: 2 / -1; }
  .wa-l1 .wa-cost { order: 8; }
  .wa-run { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; }
  .wa-finding { grid-template-columns: minmax(0, 1fr); }
}

/* Wächter · Repo-Gruppen */
.rg-create, .rg-add, .rg-rename { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-create { margin: 0 0 20px; }
.rg-create input, .rg-add input, .rg-rename input { flex: 1 1 220px; min-width: 0; }
.rg-group { border: 1px solid var(--line); background: var(--panel); margin: 0 0 8px; padding: 0; }
.rg-group > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 10px 16px; cursor: pointer; min-height: 0; list-style: none; }
.rg-group > summary::-webkit-details-marker { display: none; }
.rg-group > summary::before { content: "▸"; color: var(--muted); width: 12px; }
.rg-group[open] > summary::before { content: "▾"; }
.rg-name { font: 600 15px/1.4 var(--font-sans); overflow-wrap: anywhere; }
.rg-count { font: 13px/1.4 var(--font-sans); color: var(--muted); }
.rg-actions { margin-left: auto; display: flex; gap: 8px; }
.rg-rename { flex: 1 1 280px; }
.rg-body { padding: 4px 16px 16px; border-top: 1px solid var(--line-soft); }
.rg-body > .empty { padding: 12px 0; }
.rg-repos { list-style: none; margin: 0 0 12px; padding: 0; }
.rg-repos li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.rg-repos li:first-child { border-top: 0; }
.rg-repos li > span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.rg-repos select { width: auto; flex: 0 1 200px; min-width: 0; }
.rg-ungrouped { margin-top: 24px; }
.rg-ungrouped h2 { margin: 0 0 4px; font: 600 13px/1.4 var(--font-sans); color: var(--muted); }
@media (max-width: 760px) {
  .rg-actions { margin-left: 28px; }
  .rg-repos li > select { flex: 1 1 140px; min-width: 0; }
}
