:root {
  --ink: oklch(0.2 0.025 155);
  --ink-soft: oklch(0.31 0.025 155);
  --paper: oklch(0.975 0.005 120);
  --paper-deep: oklch(0.94 0.008 125);
  --white: oklch(0.992 0.003 120);
  --line: oklch(0.84 0.012 145);
  --muted: oklch(0.46 0.02 155);
  --lime: oklch(0.45 0.14 145);
  --lime-soft: oklch(0.9 0.07 125);
  --orange: oklch(0.68 0.17 48);
  --amber: oklch(0.8 0.14 80);
  --red: oklch(0.53 0.18 27);
  --blue: oklch(0.5 0.1 195);
  --shadow: 0 10px 28px rgb(18 37 31 / 10%);
  --radius: 3px;
  --sans: Arial, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --serif: var(--sans);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 80% -10%, rgb(200 246 90 / 15%), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary,
select {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px 18px 12px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 6%), transparent 45%),
    oklch(0.29 0.085 155);
  color: oklch(0.97 0.008 105);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-radius: 3px;
  background: var(--white);
  color: oklch(0.42 0.15 151);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 21px;
  font-weight: 750;
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: oklch(0.72 0.02 160);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.train-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 13px;
  background: rgb(255 255 255 / 5%);
}

.train-card strong {
  font-size: 13px;
}

.train-card > span:last-child {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  color: oklch(0.77 0.015 160);
  font-family: var(--mono);
  font-size: 9px;
}

.train-period strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.1;
}

.train-card i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(200 246 90 / 11%);
}

.eyebrow,
.kicker,
.nav-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar .eyebrow,
.sidebar .nav-label {
  color: oklch(0.64 0.02 160);
}

#main-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  margin-top: 12px;
}

.nav-label {
  margin: 0 10px 8px;
}

#main-nav a {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 10px;
  border-radius: 10px;
  color: oklch(0.75 0.018 160);
  font-size: 13px;
  font-weight: 600;
  transition: 160ms ease;
}

#main-nav a:hover {
  background: rgb(255 255 255 / 5%);
  color: var(--white);
}

#main-nav a[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 9px 22px rgb(0 0 0 / 22%);
}

.nav-glyph {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 8px;
}

#main-nav a small {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 99px;
  background: rgb(255 255 255 / 8%);
  color: inherit;
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

#main-nav a[aria-current="page"] small {
  background: rgb(18 37 31 / 12%);
}

#main-nav a::after {
  position: absolute;
  z-index: 90;
  top: 50%;
  left: calc(100% + 10px);
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  content: attr(data-nav-label);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  visibility: hidden;
  white-space: nowrap;
}

.ceremony-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  margin: 8px 0;
  padding: 8px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.ceremony-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ceremony-card strong {
  font-size: 11px;
}

.ceremony-card small {
  color: oklch(0.64 0.02 160);
  font-size: 9px;
}

.ceremony-date {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 9px;
  border-right: 1px solid rgb(255 255 255 / 12%);
}

.ceremony-date strong {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.ceremony-date span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.25;
}

.profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 4px 5px 0;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.profile > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.profile strong {
  font-size: 10px;
}

.profile small {
  color: oklch(0.64 0.02 160);
  font-size: 8px;
}

.account-switcher-label {
  display: block;
  margin-top: 3px;
}

.account-switcher-label select {
  width: 100%;
  min-width: 0;
  height: 23px;
  padding: 2px 20px 2px 5px;
  border: 1px solid rgb(255 255 255 / 24%);
  background: var(--ink);
  color: var(--white);
  font-size: 8px;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 17px;
}

.icon-button:hover {
  background: rgb(128 128 128 / 12%);
}

main {
  min-width: 0;
  background:
    linear-gradient(90deg, rgb(18 37 31 / 2%) 1px, transparent 1px) 0 0 / 120px 100%,
    var(--paper);
}

.topbar {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgb(242 240 233 / 92%);
  backdrop-filter: blur(16px);
}

.breadcrumb {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.breadcrumb span:first-child {
  color: var(--ink);
}

.topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-shell {
  position: relative;
}

.search {
  display: flex;
  width: min(260px, 23vw);
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.search kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.search-results {
  position: absolute;
  z-index: 140;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 110px));
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 0 18px 44px rgb(18 37 31 / 18%);
}

.search-results[hidden] {
  display: none;
}

.search-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 13px;
  background: var(--paper-deep);
}

.search-results-head strong {
  font-size: 12px;
}

.search-results-head small,
.search-result-type,
.search-more {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.search-results button {
  display: grid;
  width: 100%;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.search-results button:hover,
.search-results button:focus-visible {
  background: var(--lime-soft);
}

.search-results button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.search-results button strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results button > .mono {
  color: var(--muted);
  font-size: 8px;
}

.search-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 13px;
}

.search-empty strong {
  font-size: 14px;
}

.search-empty span {
  color: var(--muted);
  font-size: 11px;
}

.search-more {
  margin: 0;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
}

.notifications {
  position: relative;
}

.notifications summary {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  list-style: none;
}

.notifications summary::-webkit-details-marker {
  display: none;
}

.notifications summary b {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-family: var(--mono);
  font-size: 7px;
}

.notification-popover {
  position: absolute;
  z-index: 40;
  top: 49px;
  right: 0;
  display: flex;
  width: 280px;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.notification-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.notification-popover a {
  color: oklch(0.5 0.13 125);
  font-size: 11px;
  font-weight: 700;
}

.primary-button,
.quiet-button,
.danger-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  transition: 150ms ease;
}

.primary-button {
  background: oklch(0.42 0.14 151);
  color: var(--white);
  box-shadow: 0 7px 18px rgb(18 37 31 / 18%);
}

.primary-button:hover {
  background: oklch(0.35 0.12 151);
  transform: translateY(-1px);
}

.quiet-button {
  border: 1px solid var(--line);
  background: var(--white);
}

.quiet-button:hover {
  border-color: var(--ink);
}

.danger-button {
  border: 1px solid var(--red);
  background: oklch(0.97 0.025 27);
  color: var(--red);
}

.danger-button:hover {
  background: var(--red);
  color: var(--white);
}

.control-strip {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
}

.pi-progress {
  display: grid;
  grid-template-columns: auto minmax(100px, 260px) auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.pi-progress strong {
  color: var(--ink);
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 9px;
  background: oklch(0.86 0.012 95);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.filters {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filters select {
  min-height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 10px;
}

.filters .quiet-button {
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
}

#view-root {
  min-height: calc(100vh - 153px);
  padding: clamp(30px, 4vw, 58px);
}

.view h2 {
  margin: 9px 0 13px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.view h2 em {
  color: oklch(0.52 0.13 125);
  font-weight: 400;
}

.view p {
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.kicker::before {
  width: 25px;
  height: 1px;
  background: currentColor;
  content: "";
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-bottom: 42px;
}

.section-intro p {
  max-width: 530px;
  margin: 0;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px 15px 8px;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  margin: 8px 0 2px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.metric small {
  color: var(--muted);
  font-size: 9px;
}

.metric.lime strong {
  color: oklch(0.55 0.15 125);
}

.metric.amber strong {
  color: oklch(0.58 0.14 75);
}

.metric.red strong {
  color: var(--red);
}

.metric.red {
  background: transparent;
  color: inherit;
}

.board-section,
.unplanned,
.scope-log,
.task-list {
  padding: clamp(18px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 254 249 / 72%);
  box-shadow: 0 15px 50px rgb(18 37 31 / 4%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.result-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.refinement-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 11px;
  overflow-x: auto;
}

.board-column {
  min-width: 220px;
  padding: 11px;
  border: 1px solid oklch(0.89 0.012 95);
  border-radius: 12px;
  background: oklch(0.94 0.012 95);
}

.board-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px;
}

.board-column > header div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.board-column > header strong {
  font-size: 11px;
}

.board-column > header > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-family: var(--mono);
  font-size: 8px;
}

.column-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.board-column:nth-child(2) .column-dot {
  background: var(--amber);
}

.board-column:nth-child(3) .column-dot {
  background: var(--blue);
}

.board-column:nth-child(4) .column-dot {
  background: oklch(0.7 0.16 125);
}

.column-hint {
  display: block;
  margin: 3px 3px 11px 17px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.requirement-card {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  border: 1px solid oklch(0.88 0.014 95);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 3px 8px rgb(18 37 31 / 3%);
  text-align: left;
  transition: 160ms ease;
}

.requirement-card:hover {
  border-color: oklch(0.69 0.02 160);
  box-shadow: 0 9px 22px rgb(18 37 31 / 9%);
  transform: translateY(-2px);
}

.requirement-card > strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.card-topline {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.card-ticket {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.card-ticket .mono {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mono {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-meta {
  color: var(--muted);
  font-size: 9px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 19px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: oklch(0.92 0.008 95);
  color: oklch(0.46 0.02 160);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.red {
  background: oklch(0.91 0.045 28);
  color: oklch(0.48 0.14 28);
}

.badge.amber {
  background: oklch(0.93 0.055 80);
  color: oklch(0.5 0.12 75);
}

.badge.blue {
  background: oklch(0.93 0.04 255);
  color: oklch(0.48 0.1 255);
}

.badge.lime {
  background: var(--lime-soft);
  color: oklch(0.5 0.13 125);
}

.badge.outline {
  border-color: oklch(0.81 0.012 95);
  background: transparent;
  color: var(--ink);
}

.next-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  margin-top: 3px;
  padding-top: 9px;
  border-top: 1px solid oklch(0.93 0.009 95);
}

.next-action i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.next-action span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-action small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.next-action b {
  font-family: var(--mono);
  font-size: 7px;
}

.empty-slot,
.empty-lane {
  display: grid;
  min-height: 90px;
  place-items: center;
  padding: 15px;
  border: 1px dashed oklch(0.8 0.012 95);
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.parking-lot {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.parking-lot summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 2px 2px;
  color: var(--muted);
  font-size: 10px;
}

.parking-lot > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 8px;
  margin-top: 10px;
}

.planning-hero,
.dependency-hero,
.review-hero,
.task-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 35px;
}

.planning-summary {
  display: flex;
  min-width: 440px;
  border-top: 1px solid var(--ink);
}

.planning-summary span {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.planning-summary span:last-child {
  border: 0;
}

.planning-summary strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.objective-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(240px, 1fr) minmax(250px, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 13px;
  padding: 15px 20px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--ink);
  color: white;
}

.objective-ribbon .eyebrow {
  color: var(--lime);
}

.objective-ribbon > strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.objective-ribbon p {
  margin: 0;
  color: oklch(0.78 0.015 160);
  font-size: 10px;
}

.objective-ribbon a {
  z-index: 1;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.team-lanes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-lane {
  display: grid;
  grid-template-columns: 210px 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 254 249 / 70%);
}

.team-lane > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-content: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--team-color) 12%, transparent), transparent 28%),
    rgb(255 254 249 / 70%);
}

.team-sigil {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--team-color) 21%, white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.team-lane header > div {
  display: flex;
  flex-direction: column;
}

.team-lane header strong {
  font-size: 11px;
}

.team-lane header small {
  color: var(--muted);
  font-size: 8px;
}

.capacity {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.capacity::before {
  height: 4px;
  border-radius: 4px;
  background: oklch(0.88 0.012 95);
  content: "";
}

.capacity i {
  height: 4px;
  margin-top: -8px;
  border-radius: 4px;
  background: var(--team-color);
}

.capacity small {
  font-family: var(--mono);
  font-size: 7px !important;
}

.lane-goals {
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  overflow-x: auto;
}

.goal-ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  min-width: 265px;
  max-width: 380px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  text-align: left;
}

.goal-ticket > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.goal-ticket small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.goal-ticket strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.2;
}

.goal-ticket b {
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 7px;
}

.traffic-dot,
.traffic-control button,
.review-score i,
.linked-goals i,
.inspector-link i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.green {
  background: oklch(0.65 0.15 135);
}

.yellow {
  background: var(--amber);
}

.red {
  background: var(--red);
}

.unplanned {
  margin-top: 26px;
}

.unplanned-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.planning-rule {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.planning-basis {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-block: 1px solid var(--line);
}

.planning-basis > small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.planning-basis > span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.planning-basis b {
  padding: 3px 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
}

.planning-basis b.is-ready {
  border-color: var(--lime);
  background: var(--lime-soft);
  color: oklch(0.38 0.12 145);
}

.planning-more {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.review-hero {
  justify-content: flex-start;
}

.review-date {
  display: flex;
  width: 110px;
  height: 110px;
  flex: 0 0 auto;
  flex-direction: column;
  place-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-align: center;
}

.review-date span,
.review-date small {
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.review-date strong {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 0.9;
}

.review-score {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.review-score span {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 6px;
  align-items: center;
  color: var(--muted);
  font-size: 8px;
}

.review-score strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.review-score i {
  grid-row: 1 / 3;
}

.attention-panel {
  display: grid;
  grid-template-columns: 140px 1fr 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 17px 22px;
  border-radius: 12px;
  background: var(--lime);
}

.attention-panel > div {
  padding-left: 20px;
  border-left: 1px solid rgb(18 37 31 / 20%);
}

.attention-panel strong {
  font-family: var(--serif);
  font-size: 17px;
}

.attention-panel p {
  margin: 2px 0 0;
  color: oklch(0.42 0.06 125);
  font-size: 9px;
}

.attention-panel a {
  font-size: 10px;
  font-weight: 700;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-result-group {
  border-top: 1px solid var(--ink);
}

.review-result-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 17px;
  background: var(--paper-deep);
}

.review-result-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.review-result-head strong {
  font-size: 14px;
}

.review-result-head small,
.review-result-head > b {
  color: var(--muted);
  font-size: 10px;
}

.review-row {
  display: grid;
  grid-template-columns: 190px minmax(260px, 1fr) 125px 118px;
  gap: 18px;
  align-items: center;
  min-height: 95px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 11px;
  transition: 200ms ease;
}

.review-row.traffic-green {
  background: oklch(0.975 0.025 145);
}

.review-row.traffic-yellow {
  background: oklch(0.975 0.04 85);
}

.review-row.traffic-red {
  background: oklch(0.975 0.025 27);
}

.review-row.pulse {
  box-shadow: 0 0 0 5px rgb(98 166 255 / 25%);
}

.review-team {
  display: flex;
  align-items: center;
  gap: 9px;
}

.review-team > span:last-child,
.review-goal,
.dependency-row > div:not(.delivery-chain, .dependency-action) {
  display: flex;
  flex-direction: column;
}

.review-team strong,
.dependency-row strong {
  font-size: 10px;
}

.review-team small,
.review-goal small,
.dependency-row small {
  color: var(--muted);
  font-size: 8px;
}

.review-goal > strong {
  margin: 3px 0;
  font-family: var(--serif);
  font-size: 15px;
}

.dependency-count {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.dependency-count strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.dependency-count span {
  font-size: 7px;
}

.dependency-count.has-risk strong {
  color: var(--red);
}

.traffic-control {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.traffic-control button {
  width: 24px;
  height: 24px;
  border: 5px solid var(--white);
  opacity: 0.32;
}

.traffic-control button.active {
  box-shadow: 0 0 0 2px currentColor;
  opacity: 1;
}

.scope-log {
  margin-top: 25px;
}

.scope-log article {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1.2fr 160px;
  gap: 18px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.scope-log article > div {
  display: flex;
  flex-direction: column;
}

.scope-log article small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.scope-log article strong {
  margin-top: 3px;
  font-size: 10px;
}

.scope-log article p {
  margin: 2px 0;
  font-size: 8px;
}

.change-symbol {
  font-family: var(--serif);
  font-size: 26px;
}

.dependency-metrics {
  display: grid;
  min-width: 430px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.dependency-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.dependency-table-head,
.dependency-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.8fr 0.55fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.dependency-table-head {
  padding: 13px 22px;
  background: var(--ink);
  color: oklch(0.76 0.015 160);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.dependency-row {
  min-height: 105px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.dependency-row:last-child {
  border: 0;
}

.dependency-row.is-overdue {
  background: linear-gradient(90deg, rgb(228 94 85 / 8%), transparent 35%);
}

.delivery-chain {
  display: grid;
  grid-template-columns: 1fr 55px 1fr;
  align-items: center;
}

.provider,
.consumer {
  display: grid;
  min-height: 76px;
  grid-template-rows: 42px auto;
  gap: 3px;
  place-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.consumer {
  border: 1px solid var(--line);
}

.provider.is-external {
  grid-template-rows: auto;
  align-content: center;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.provider > span:last-child,
.consumer > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.provider strong,
.consumer strong {
  font-size: 9px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.provider small,
.consumer small {
  color: var(--muted);
  font-size: 7px;
}

.delivery-chain .team-logo.is-compact {
  width: 46px;
  height: 42px;
  flex-basis: 46px;
}

.chain-line {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.chain-line i {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.dependency-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.text-button {
  padding: 0;
  background: transparent;
  color: oklch(0.5 0.13 125);
  font-size: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.confirmed {
  color: oklch(0.5 0.13 125);
  font-family: var(--mono);
  font-size: 7px;
}

.goals-hero {
  display: grid;
  max-width: 920px;
  grid-template-columns: 1fr 1fr;
  gap: 0 50px;
  align-items: end;
  margin-bottom: 34px;
}

.goals-hero .kicker {
  grid-column: 1 / -1;
}

.goals-hero h2 {
  grid-column: 1 / 2;
}

.goals-hero p {
  grid-column: 2 / 3;
  margin-bottom: 17px;
  font-size: 12px;
}

.goal-map {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.business-goal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.business-goal > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 25px;
  border-bottom: 1px solid var(--line);
}

.business-goal.featured > header {
  background:
    radial-gradient(circle at 80% 120%, rgb(200 246 90 / 24%), transparent 22rem),
    var(--ink);
  color: white;
}

.business-goal.featured > header .eyebrow,
.business-goal.featured > header p {
  color: oklch(0.72 0.02 160);
}

.business-goal header h3 {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.business-goal header p {
  max-width: 720px;
  margin: 0;
  font-size: 10px;
}

.goal-number {
  color: var(--lime);
  font-family: var(--serif);
  font-size: 34px;
}

.goal-owner {
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 7px;
}

.kr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.kr-card {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.kr-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.kr-card > strong {
  display: block;
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: 20px;
}

.kr-value {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.kr-value span {
  display: flex;
  flex-direction: column;
}

.kr-value b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.kr-progress {
  height: 7px;
  margin: 8px 0 5px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper-deep);
}

.kr-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, oklch(0.66 0.15 125), var(--lime));
}

.kr-card > small {
  color: var(--muted);
  font-size: 7px;
}

.linked-requirements,
.linked-goals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.linked-requirements > .eyebrow,
.linked-goals > .eyebrow {
  margin-bottom: 5px;
}

.linked-requirements button {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid oklch(0.93 0.009 95);
  background: transparent;
  text-align: left;
}

.linked-requirements button > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-requirements .badge {
  justify-self: end;
}

.linked-more {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.linked-goals button,
.inspector-link {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 7px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid oklch(0.93 0.009 95);
  background: transparent;
  text-align: left;
}

.linked-goals button span {
  color: var(--muted);
  font-size: 8px;
}

.linked-goals button strong {
  font-family: var(--serif);
  font-size: 11px;
}

.task-hero {
  align-items: center;
}

.focus-orbit {
  position: relative;
  display: flex;
  width: 290px;
  height: 150px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.focus-orbit::before {
  position: absolute;
  width: 210px;
  height: 100px;
  border: 1px dashed oklch(0.75 0.015 95);
  border-radius: 50%;
  content: "";
  transform: rotate(-8deg);
}

.focus-orbit span {
  z-index: 1;
  display: flex;
  width: 88px;
  flex-direction: column;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-align: center;
}

.focus-orbit strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.task-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.task-row input {
  position: absolute;
  opacity: 0;
}

.custom-check {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid oklch(0.74 0.012 95);
  border-radius: 50%;
}

.task-row input:checked + .custom-check {
  border-color: var(--ink);
  background: var(--ink);
}

.task-row input:checked + .custom-check::after {
  color: white;
  content: "✓";
  font-size: 10px;
}

.task-row input:focus-visible + .custom-check {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.task-copy {
  display: flex;
  flex-direction: column;
}

.task-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.task-copy strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 14px;
}

.task-due {
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 7px;
}

.task-due.today {
  background: oklch(0.91 0.045 28);
  color: oklch(0.46 0.13 28);
}

.task-row.is-done {
  opacity: 0.48;
}

.task-row.is-done strong {
  text-decoration: line-through;
}

.done-tasks summary {
  padding: 14px 0 4px;
  color: var(--muted);
  font-size: 9px;
}

.rhythm-card {
  position: sticky;
  top: 20px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 110% -10%, rgb(200 246 90 / 25%), transparent 16rem),
    var(--ink);
  color: white;
}

.rhythm-card::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 50%;
  content: "";
}

.rhythm-card .eyebrow {
  color: var(--lime);
}

.rhythm-card h3 {
  margin: 9px 0 25px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.05;
}

.rhythm-card ol {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhythm-card li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 0 13px 21px;
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.rhythm-card li::before {
  position: absolute;
  top: 18px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.51 0.025 160);
  content: "";
}

.rhythm-card li.active::before {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(200 246 90 / 13%);
}

.rhythm-card li span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.rhythm-card li strong {
  font-size: 10px;
}

.rhythm-card li small {
  color: oklch(0.64 0.02 160);
  font-size: 8px;
}

.inspector-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  background: rgb(18 37 31 / 28%);
  backdrop-filter: blur(2px);
}

.inspector-backdrop.open {
  display: block;
}

.inspector {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(480px, 92vw);
  height: 100vh;
  padding: 30px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -24px 0 70px rgb(18 37 31 / 20%);
  transform: translateX(105%);
  transition: transform 240ms ease;
}

.inspector.open {
  transform: none;
}

.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.inspector-head > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inspector h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.03;
}

.inspector-lead {
  color: var(--muted);
}

.inspector-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 25px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.inspector-facts span {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inspector-facts small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.inspector-facts strong {
  margin-top: 6px;
  font-size: 10px;
}

.inspector section {
  margin-top: 25px;
}

.inspector-action,
.warning-box {
  margin-top: 8px;
  padding: 13px;
  border: 1px solid color-mix(in oklch, var(--orange) 45%, var(--line));
  background: color-mix(in oklch, var(--orange) 7%, var(--paper));
  font-family: var(--serif);
  font-size: 14px;
}

.warning-box {
  border-color: var(--amber);
}

.inspector ul {
  padding-left: 18px;
  font-size: 11px;
}

.inspector li {
  margin: 7px 0;
}

.inspector-link {
  width: 100%;
  grid-template-columns: auto 1fr;
}

.inspector-link span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 8px;
}

.inspector-link strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 150;
  right: 25px;
  bottom: 25px;
  max-width: 380px;
  padding: 12px 17px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

dialog {
  width: min(720px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 30px 100px rgb(18 37 31 / 36%);
}

dialog::backdrop {
  background: rgb(18 37 31 / 55%);
  backdrop-filter: blur(4px);
}

dialog form {
  padding: 28px;
}

.unsaved-dialog {
  width: min(520px, calc(100vw - 30px));
}

.unsaved-dialog p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dialog-head h2 {
  margin: 5px 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: none;
}

.form-grid textarea {
  min-height: 75px;
  resize: vertical;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Arbeitsmodus: hohe Informationsdichte bei lesbarer Typografie */
.view h2 {
  font-size: clamp(36px, 3.7vw, 56px);
  font-weight: 650;
  line-height: 1;
}

.view h2 em {
  color: oklch(0.43 0.14 151);
  font-style: normal;
  font-weight: 450;
}

.section-head h3,
.business-goal header h3,
.kr-card > strong,
.goal-ticket strong,
.review-goal > strong,
.task-copy strong,
.requirement-card > .card-open > strong {
  font-family: var(--sans);
}

.section-head h3 {
  font-size: 22px;
  font-weight: 700;
}

.result-count,
.mono,
.card-meta,
.card-submitter,
.column-hint,
.metric small,
.review-team small,
.review-goal small,
.dependency-row small {
  font-size: 10px;
}

.badge {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 9px;
}

.badge.red {
  background: oklch(0.95 0.028 25);
  color: oklch(0.38 0.12 27);
}

.badge.amber {
  background: oklch(0.94 0.06 80);
  color: oklch(0.41 0.1 75);
}

.badge.blue {
  background: oklch(0.94 0.035 245);
  color: oklch(0.4 0.1 245);
}

.badge.lime {
  background: var(--lime-soft);
  color: oklch(0.37 0.12 151);
}

.board-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 11px;
}

.board-legend strong {
  color: var(--ink);
}

.refinement-board {
  grid-template-columns: repeat(4, minmax(205px, 1fr));
  align-items: start;
}

.board-column {
  min-width: 205px;
  padding: 10px;
  border-color: oklch(0.86 0.018 145);
  background: oklch(0.945 0.012 145);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.board-column > header strong {
  font-size: 13px;
}

.board-column > header > span {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.board-column.is-drop-target {
  border-color: oklch(0.48 0.15 151);
  background: var(--lime-soft);
  box-shadow: inset 0 0 0 2px oklch(0.48 0.15 151 / 18%);
}

.card-stack {
  max-height: min(66vh, 760px);
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.requirement-card {
  position: relative;
  display: block;
  padding: 0;
}

.requirement-card.is-dragging {
  opacity: 0.45;
}

.card-open {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  border-radius: inherit;
  background: transparent;
  text-align: left;
}

.requirement-card:hover {
  border-color: oklch(0.5 0.11 151);
  transform: translateY(-1px);
}

.requirement-card > .card-open > strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.drag-handle {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: grab;
}

.card-submitter {
  color: var(--muted);
}

.card-submitter b {
  color: var(--ink-soft);
  font-weight: 650;
}

.card-history {
  color: oklch(0.42 0.11 151);
  font-size: 10px;
  font-weight: 650;
}

.next-action span {
  font-size: 10px;
}

.next-action small,
.next-action b {
  font-size: 8px;
}

.planning-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.planning-filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.planning-filters select {
  min-width: 0;
  min-height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 12px;
}

.objective-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.objective-ribbon {
  margin-bottom: 0;
  background: oklch(0.29 0.085 155);
  color: var(--white);
}

.objective-ribbon .eyebrow,
.objective-ribbon a {
  color: oklch(0.8 0.17 145);
}

.section-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 9px;
}

.goal-actions,
.goal-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.goals-hero {
  max-width: none;
}

.goals-hero > div p {
  margin-top: 0;
}

.business-goal.featured > header,
.rhythm-card {
  background:
    radial-gradient(circle at 80% 120%, oklch(0.72 0.18 148 / 22%), transparent 22rem),
    oklch(0.29 0.085 155);
}

.business-goal.featured > header .eyebrow,
.business-goal.featured > header p {
  color: oklch(0.82 0.025 150);
}

.business-goal header h3 {
  font-size: 27px;
  font-weight: 700;
}

.business-goal header p {
  font-size: 12px;
}

.kr-card > strong {
  font-size: 18px;
  font-weight: 700;
}

.kr-card > small,
.kr-head {
  font-size: 9px;
}

.kr-progress span {
  background: oklch(0.48 0.15 151);
}

.icon-text-button {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
}

.review-row {
  position: relative;
  grid-template-columns: 175px minmax(280px, 1fr) 135px 118px auto;
  min-height: 108px;
}

.review-team strong,
.dependency-row strong {
  font-size: 12px;
}

.review-goal > strong {
  font-size: 15px;
  font-weight: 700;
}

.dependency-hover {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  cursor: help;
}

.dependency-hover > strong {
  color: var(--red);
  font-size: 24px;
}

.dependency-hover > span {
  font-size: 9px;
  line-height: 1.2;
}

.dependency-popover {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 8px);
  display: none;
  width: min(420px, 70vw);
  padding: 14px;
  border: 1px solid oklch(0.76 0.025 145);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dependency-hover:hover .dependency-popover,
.dependency-hover:focus-visible .dependency-popover,
.dependency-hover:focus-within .dependency-popover {
  display: block;
}

.dependency-popover article {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.dependency-popover article:first-of-type {
  margin-top: 7px;
}

.dependency-popover article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dependency-popover article strong {
  font-size: 11px;
}

.dependency-popover article small {
  color: var(--muted);
  font-size: 10px;
}

.no-dependencies {
  color: oklch(0.42 0.11 151);
  font-size: 11px;
  font-weight: 650;
}

.dependency-table-head,
.dependency-row {
  grid-template-columns: 1.2fr 1.55fr 0.85fr 0.55fr 0.9fr;
}

.dependency-table-head {
  background: oklch(0.29 0.085 155);
  color: oklch(0.86 0.02 150);
  font-size: 9px;
}

.dependency-row {
  min-height: 122px;
}

.dependency-row.is-overdue {
  background: oklch(0.975 0.014 25);
}

.dependency-row.is-warning {
  background: oklch(0.975 0.04 85);
}

.provider,
.consumer {
  min-height: 82px;
  padding: 7px 4px;
}

.provider strong,
.consumer strong {
  font-size: 10px;
}

.dependency-action {
  gap: 8px;
}

.text-button {
  color: oklch(0.38 0.12 151);
  font-size: 10px;
}

.task-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 0;
  cursor: default;
}

.task-open {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: transparent;
  text-align: left;
}

.task-status-marker {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid oklch(0.72 0.02 145);
  border-radius: 50%;
  color: var(--white);
  font-size: 10px;
}

.task-status-marker.active {
  border-color: oklch(0.48 0.15 151);
  background: oklch(0.48 0.15 151);
}

.task-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.task-copy > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  align-items: center;
}

.task-row.is-done {
  opacity: 0.62;
}

.inspector {
  width: min(620px, 96vw);
  padding: 28px;
}

.inspector-title-row,
.inspector-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inspector-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.inspector-form label,
.comment-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.inspector-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.inspector-form label.wide {
  grid-column: 1 / -1;
}

.inspector-form input,
.inspector-form select,
.inspector-form textarea,
.comment-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 12px;
}

.inspector-form textarea,
.comment-form textarea {
  min-height: 78px;
  resize: vertical;
}

.inspector-form select[multiple] {
  min-height: 88px;
}

.inspector-actions {
  margin-top: 16px;
}

.comment-form {
  margin-top: 8px;
}

.comment-form .quiet-button {
  align-self: flex-end;
}

.history-list {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.entity-history {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.history-list li {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 3px 10px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.history-list li > span {
  grid-row: 1 / 3;
  color: oklch(0.4 0.12 151);
  font-size: 10px;
  font-weight: 750;
}

.history-list li strong {
  font-size: 11px;
  font-weight: 650;
}

.history-list li small {
  color: var(--muted);
  font-size: 9px;
}

.dialog-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.form-grid label {
  font-size: 10px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  font-size: 12px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 13px;
  }

  .intro-grid,
  .goals-hero {
    grid-template-columns: 1fr;
  }

  .goals-hero h2,
  .goals-hero p {
    grid-column: 1;
  }

  .planning-hero,
  .dependency-hero,
  .task-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .planning-summary,
  .dependency-metrics {
    width: 100%;
    min-width: 0;
  }

  .objective-ribbon {
    grid-template-columns: 120px 1fr 1fr;
  }

  .objective-ribbon a {
    display: none;
  }

  .review-row {
    grid-template-columns: 160px minmax(240px, 1fr) 110px;
  }

  .traffic-control {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .attention-panel {
    grid-template-columns: 120px 1fr 1fr;
  }

  .attention-panel a {
    display: none;
  }

  .dependency-table-head {
    display: none;
  }

  .dependency-row {
    grid-template-columns: 1fr 1.5fr 0.8fr;
  }

  .dependency-row > div:nth-child(4),
  .dependency-action {
    grid-column: auto;
  }

  .scope-log article {
    grid-template-columns: auto 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    z-index: 80;
    align-items: center;
    padding: 19px 9px;
    overflow: visible;
  }

  .sidebar .brand > .brand-copy,
  .train-card,
  .nav-label,
  #main-nav a > span:nth-child(2),
  #main-nav a small,
  .ceremony-card > div:last-child,
  .profile > span:nth-child(2),
  .profile button {
    display: none;
  }

  .brand {
    justify-content: center;
    width: 45px;
    padding-inline: 0;
    overflow: hidden;
  }

  #main-nav a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    width: 45px;
  }

  #main-nav a:hover::after,
  #main-nav a:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }

  .ceremony-card {
    display: block;
    padding: 13px 0;
  }

  .ceremony-date {
    padding: 0;
    border: 0;
  }

  .review-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .review-score {
    width: 100%;
    margin: 0;
  }

  .team-lane {
    grid-template-columns: 160px 1fr;
  }

  .objective-ribbon {
    grid-template-columns: 1fr;
  }

  .objective-ribbon .eyebrow {
    display: none;
  }

  .objective-ribbon p {
    display: none;
  }

  .task-layout {
    grid-template-columns: 1fr;
  }

  .rhythm-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 60;
    top: 0;
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 12px;
    overflow: visible;
  }

  .brand {
    margin: 0;
    padding: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  #main-nav {
    display: flex;
    min-width: 0;
    flex-direction: row;
    gap: 3px;
    margin: 0 8px;
    overflow-x: auto;
  }

  #main-nav a {
    width: 39px;
    flex: 0 0 auto;
    min-height: 39px;
  }

  .ceremony-card,
  .profile .icon-button {
    display: none;
  }

  .profile {
    display: none;
  }

  .topbar {
    min-height: auto;
    padding: 15px 16px;
  }

  .top-actions {
    gap: 5px;
  }

  .search {
    width: 40px;
    padding: 0;
    place-content: center;
  }

  .search input {
    display: block;
    width: 1px;
    flex: 0 0 1px;
    padding: 0;
    opacity: 0;
  }

  .search kbd {
    display: none;
  }

  .search-shell:focus-within {
    position: absolute;
    z-index: 140;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .search-shell:focus-within .search {
    position: static;
    width: 100%;
    padding: 0 12px;
    place-content: initial;
  }

  .search-shell:focus-within input {
    display: block;
    width: auto;
    flex: 1;
    opacity: 1;
  }

  .search-results {
    top: 48px;
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 190px);
  }

  .search-results button {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .search-results button > .mono {
    display: none;
  }

  .primary-button {
    padding-inline: 11px;
  }

  .primary-button span {
    display: none;
  }

  .control-strip {
    align-items: flex-start;
    padding: 11px 16px;
  }

  .pi-progress {
    display: none;
  }

  .filters {
    width: 100%;
    justify-content: space-between;
  }

  #view-root {
    padding: 26px 16px 50px;
  }

  .view h2 {
    font-size: 39px;
  }

  .intro-grid {
    gap: 25px;
  }

  .metric strong {
    font-size: 34px;
  }

  .board-section,
  .unplanned,
  .scope-log,
  .task-list {
    padding: 14px;
    border-radius: 13px;
  }

  .refinement-board {
    margin-right: -14px;
    padding-right: 14px;
  }

  .planning-summary {
    flex-wrap: wrap;
  }

  .planning-summary span {
    min-width: 33%;
  }

  .team-lane {
    display: block;
  }

  .team-lane > header {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lane-goals {
    padding: 8px;
  }

  .review-date {
    width: 75px;
    height: 75px;
  }

  .review-date strong {
    font-size: 29px;
  }

  .review-hero > div:nth-child(2) {
    flex: 1;
  }

  .review-score {
    justify-content: space-between;
  }

  .attention-panel {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }

  .attention-panel > .eyebrow {
    grid-column: 1 / -1;
  }

  .attention-panel > div {
    padding-left: 0;
    border: 0;
  }

  .review-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .review-goal {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dependency-count {
    grid-column: 1;
  }

  .traffic-control {
    grid-column: 2;
    grid-row: 3;
  }

  .scope-log article {
    grid-template-columns: auto 1fr;
  }

  .scope-log article > div {
    grid-column: 2;
  }

  .dependency-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 16px;
  }

  .delivery-chain,
  .dependency-row > div:nth-child(2) {
    grid-column: 1 / -1;
  }

  .dependency-action {
    align-items: flex-end;
  }

  .goal-map {
    margin-inline: -3px;
  }

  .business-goal > header {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .goal-owner {
    grid-column: 2;
    width: fit-content;
  }

  .kr-grid {
    grid-template-columns: 1fr;
  }

  .kr-card {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .focus-orbit {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label.wide {
    grid-column: auto;
  }

  dialog form {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1120px) {
  .planning-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .review-row {
    grid-template-columns: 160px minmax(240px, 1fr) 130px;
  }

  .traffic-control {
    grid-column: 2;
  }

  .review-row > .icon-text-button {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .control-strip.has-local-filters {
    display: none;
  }

  .topbar h1 {
    font-size: 21px;
  }

  .filters {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .filters select {
    max-width: 150px;
  }

  .board-legend {
    justify-content: flex-start;
  }

  .refinement-board {
    grid-template-columns: repeat(4, minmax(270px, 82vw));
  }

  .card-stack {
    max-height: 60vh;
  }

  .planning-filters {
    grid-template-columns: 1fr;
  }

  .objective-ribbon {
    display: block;
  }

  .objective-ribbon > strong {
    display: block;
    margin: 6px 0;
  }

  .review-row {
    grid-template-columns: 1fr auto;
  }

  .dependency-hover {
    grid-column: 1;
    width: fit-content;
  }

  .traffic-control {
    grid-column: 2;
    grid-row: 3;
  }

  .review-row > .icon-text-button {
    grid-column: 2;
    grid-row: 1;
  }

  .dependency-popover {
    right: auto;
    left: 0;
    width: min(360px, calc(100vw - 48px));
  }

  .goal-actions {
    margin-top: 12px;
  }

  .task-row {
    grid-template-columns: 1fr;
  }

  .task-actions {
    justify-content: flex-start;
    padding-left: 36px;
  }

  .inspector {
    padding: 20px;
  }

  .inspector-form {
    grid-template-columns: 1fr;
  }

  .inspector-form label.wide {
    grid-column: auto;
  }

  .history-list li {
    grid-template-columns: 72px 1fr;
  }
}

/* HDI-nahe Produktgrammatik: geradlinig, hell, funktionsorientiert */
html,
body,
main {
  background: var(--paper);
}

body {
  background-image: none;
  color: var(--ink);
  font-size: 16px;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.brand-mark {
  position: relative;
  border-radius: 0;
  background: var(--lime);
  color: var(--white);
}

.brand-mark::after {
  position: absolute;
  top: 0;
  right: -5px;
  width: 5px;
  height: 10px;
  background: var(--red);
  content: "";
}

.brand small,
.sidebar .eyebrow,
.sidebar .nav-label,
.train-card > span:last-child,
.ceremony-card small,
.profile small {
  color: var(--muted);
}

.train-card {
  border-color: var(--line);
  border-radius: 2px;
  background: var(--lime-soft);
}

#main-nav a {
  border-radius: 2px;
  color: var(--ink-soft);
}

#main-nav a:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

#main-nav a[aria-current="page"] {
  background: var(--lime);
  color: var(--white);
  box-shadow: none;
}

#main-nav a[aria-current="page"] small {
  background: rgb(255 255 255 / 18%);
}

.ceremony-card {
  border-color: var(--line);
}

.ceremony-date {
  border-color: var(--line);
}

.ceremony-date span,
.notification-popover a,
.text-button,
.card-history,
.no-dependencies {
  color: oklch(0.43 0.1 190);
}

.topbar {
  min-height: 96px;
  background: var(--white);
  backdrop-filter: none;
}

.topbar h1 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.breadcrumb,
.eyebrow,
.kicker,
.nav-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.search,
.notifications summary,
.notification-popover,
.primary-button,
.quiet-button,
.filters select,
.planning-filters,
.planning-filters select,
.board-filters select,
.review-filters select,
.icon-text-button,
.danger-button {
  border-radius: 2px;
}

.primary-button {
  background: var(--lime);
  box-shadow: none;
  color: var(--white);
}

.primary-button:hover {
  background: oklch(0.38 0.12 145);
  transform: none;
}

.quiet-button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.control-strip {
  background: var(--white);
}

.control-strip .filters[hidden] {
  display: none;
}

.progress-track span {
  background: var(--lime);
}

#view-root {
  padding-block: 34px 54px;
}

.view h2,
.view h2 em {
  color: var(--ink);
  font-size: 42px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.intro-grid {
  align-items: center;
  margin-bottom: 28px;
}

.section-intro p {
  font-size: 16px;
  line-height: 1.5;
}

.metric-grid {
  border-bottom: 1px solid var(--ink);
}

.metric {
  min-height: 92px;
  padding: 10px 12px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.metric:first-child {
  padding-left: 12px;
}

.metric:hover,
.metric.active {
  background: var(--lime-soft);
}

.metric:focus-visible {
  position: relative;
  z-index: 1;
}

.metric strong {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 700;
}

.metric small {
  font-size: 12px;
}

.metric .eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.metric.lime strong {
  color: var(--lime);
}

.board-section,
.unplanned,
.scope-log,
.task-list,
.business-goal,
.dependency-table-wrap {
  border-radius: 2px;
  background: var(--white);
  box-shadow: none;
}

.board-filters,
.review-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: -4px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.attention-panel {
  border: 1px solid color-mix(in oklch, var(--lime) 30%, var(--line));
  border-radius: 2px;
  background: var(--lime-soft);
  color: var(--ink);
}

.attention-panel p {
  color: var(--ink-soft);
}

.review-filters {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  margin: 0 0 16px;
}

.board-filters label,
.review-filters label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.board-filters select,
.review-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
}

.board-column {
  border-radius: 2px;
  background: var(--paper-deep);
}

.requirement-card,
.card-open {
  border-radius: 2px;
}

.requirement-card:hover {
  transform: none;
}

.planning-filters {
  background: var(--paper);
}

.objective-ribbon,
.business-goal.featured > header,
.rhythm-card {
  background: var(--lime-soft);
  color: var(--ink);
}

.objective-ribbon .eyebrow,
.objective-ribbon p,
.objective-ribbon a,
.business-goal.featured > header .eyebrow,
.business-goal.featured > header p {
  color: var(--ink-soft);
}

.goal-number {
  color: var(--lime);
}

.kr-card > strong {
  margin-bottom: 8px;
}

.kr-description {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.kr-progress span {
  background: var(--lime);
}

.mapping-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--lime-soft);
}

.mapping-panel > strong {
  font-size: 18px;
}

.mapping-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in oklch, var(--lime) 28%, var(--line));
}

.mapping-panel > div > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-size: 13px;
}

.mapping-panel > div small,
.mapping-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.carry-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 6px;
  background: var(--lime-soft);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.change-target-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.change-target-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.status-choice-grid button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  text-align: left;
}

.status-choice-grid button:hover {
  border-color: var(--lime);
}

.status-choice-grid button[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--white);
  font-weight: 700;
}

dialog {
  border: 1px solid var(--ink);
  border-radius: 2px;
}

dialog::backdrop {
  background: rgb(18 37 31 / 52%);
  backdrop-filter: none;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.inspector-form input,
.inspector-form select,
.inspector-form textarea {
  border-radius: 2px;
  background: var(--white);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .board-filters,
  .review-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar h1 {
    font-size: 22px;
  }

  .view h2,
  .view h2 em {
    font-size: 34px;
  }

  .metric {
    min-height: 84px;
    padding: 10px;
  }

  .metric:first-child {
    padding-left: 10px;
  }

  .metric strong {
    font-size: 28px;
  }

  .objective-ribbon .eyebrow,
  .objective-ribbon p {
    display: block;
  }

  .objective-ribbon a {
    display: inline-block;
    margin-top: 8px;
  }

  .board-filters,
  .review-filters {
    grid-template-columns: 1fr;
  }

  .mapping-panel > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* Einheitliche Seitenachsen und bewusst kantige Produktoberflächen */
.page-hero {
  margin-bottom: 34px;
}

.page-hero .hero-copy {
  align-self: flex-start;
}

.goals-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
}

.goals-hero > .hero-copy {
  grid-column: 1;
}

.goals-hero > div:last-child {
  grid-column: 2;
}

.review-hero {
  align-items: flex-start;
}

.review-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 24px;
}

.review-date {
  display: grid;
  width: auto;
  height: auto;
  min-width: 88px;
  grid-template-columns: auto 1fr;
  place-content: end;
  align-items: baseline;
  gap: 0 6px;
  padding: 7px 0 7px 14px;
  border: 0;
  border-left: 1px solid var(--ink);
  text-align: left;
}

.review-date small {
  grid-column: 1 / -1;
}

.review-score {
  align-self: flex-end;
}

.task-hero {
  align-items: flex-start;
}

.focus-orbit {
  width: 360px;
  height: auto;
  min-height: 92px;
  border-width: 1px 0;
}

.focus-orbit::before {
  content: none;
}

.rhythm-card::after {
  content: none;
}

.focus-orbit span {
  width: auto;
  min-height: 90px;
  flex: 1;
  justify-content: center;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.focus-orbit span:last-child {
  border-right: 0;
}

.team-logo {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.team-logo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  background: transparent;
}

.team-logo.has-contrast-bg {
  background: var(--team-logo-bg);
}

.team-logo.has-contrast-bg img {
  padding: 3px;
}

.inspector[aria-hidden="true"] {
  display: none;
}

:root {
  --radius: 0;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
}

.train-card i,
.notifications summary b,
.column-dot,
.next-action i,
.traffic-dot,
.traffic-control button,
.review-score i,
.linked-goals i,
.inspector-link i,
.rhythm-card li::before,
.task-status-marker {
  border-radius: 50% !important;
}

@media (max-width: 1120px) {
  .goals-hero {
    grid-template-columns: 1fr;
  }

  .goals-hero > .hero-copy,
  .goals-hero > div:last-child {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .review-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .review-date {
    min-width: 0;
    grid-template-columns: auto auto 1fr;
    gap: 6px;
    padding: 7px 0 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .review-date small {
    grid-column: auto;
  }

  .focus-orbit {
    width: 100%;
  }
}

.train-card-head {
  display: flex;
  justify-content: center;
}

.train-logo {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  overflow: hidden;
}

.train-logo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  background: transparent;
}

.logo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.card-ownership {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.card-ownership b {
  color: var(--ink-soft);
  font-weight: 700;
}

.card-team-logos {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.team-logo.is-compact {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 8px;
}

.card-topline .team-logo.is-compact {
  width: 36px;
  height: 30px;
  flex-basis: 36px;
}

.form-grid select[multiple],
.inspector-form select[multiple] {
  min-height: 112px;
  padding-block: 7px;
}

.tag-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-grid .tag-field.wide,
.inspector-form .tag-field.wide {
  grid-column: 1 / -1;
}

.tag-field legend,
.settings-card label > span {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.entity-choice-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.entity-choice-field legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.goal-tag-picker label {
  flex: 1 1 220px;
}

.goal-tag-picker label > span {
  text-transform: none;
}

.tag-picker label {
  position: relative;
  cursor: pointer;
}

.tag-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tag-picker label > span {
  display: flex;
  min-height: 40px;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  line-height: 1.2;
}

.tag-picker label > span b {
  font-size: 11px;
}

.tag-picker label > span small {
  color: var(--muted);
  font-size: 8px;
}

.tag-picker input:checked + span {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--white);
}

.tag-picker input:checked + span small {
  color: rgb(255 255 255 / 78%);
}

.tag-picker input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.team-tag-picker label > span {
  min-width: 132px;
  min-height: 52px;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.team-tag-picker .team-logo.is-compact {
  width: 44px;
  height: 38px;
  flex-basis: 44px;
  margin: 0;
}

.team-tag-picker label > span b {
  font-size: 12px;
}

#main-nav a[data-view="settings"] {
  margin-top: 6px;
  box-shadow: inset 0 1px var(--line);
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.settings-summary {
  display: flex;
  border-block: 1px solid var(--ink);
}

.settings-summary span {
  display: flex;
  min-width: 115px;
  flex-direction: column;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.settings-summary span:last-child {
  border-right: 0;
}

.settings-summary strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.settings-workspace {
  scroll-margin-top: 12px;
}

.settings-subnav {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border-block: 1px solid var(--ink);
  background: var(--white);
}

.settings-subnav button {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-content: center;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
  background: var(--white);
  text-align: left;
}

.settings-subnav button:last-child {
  border-right: 0;
}

.settings-subnav button:hover {
  background: var(--paper-deep);
}

.settings-subnav button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--white);
}

.settings-subnav button > span {
  grid-row: 1 / -1;
  align-self: center;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.settings-subnav button[aria-pressed="true"] > span,
.settings-subnav button[aria-pressed="true"] > small {
  color: oklch(0.94 0.025 125);
}

.settings-subnav strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-subnav small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-panel[hidden] {
  display: none;
}

.settings-panel > .settings-card {
  width: 100%;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.control-strip[hidden],
#new-requirement[hidden] {
  display: none !important;
}

.settings-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.settings-card.people-settings {
  grid-column: 1 / -1;
}

.settings-card.schedule-settings {
  grid-column: 1 / -1;
}

.settings-card.access-settings {
  grid-column: 1 / -1;
}

.access-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.demo-control {
  display: flex;
  min-width: 310px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.demo-control > span {
  display: flex;
  flex-direction: column;
}

.demo-control b {
  font-size: 12px;
}

.demo-control small {
  color: var(--muted);
  font-size: 9px;
}

.access-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.access-section + .access-section {
  border-left: 1px solid var(--line);
}

.access-section > header {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.access-section h4 {
  margin: 3px 0;
  font-size: 18px;
}

.account-add,
.account-settings-row {
  grid-template-columns: minmax(150px, 1fr) minmax(125px, .7fr) minmax(120px, .7fr) auto;
}

.account-settings-row {
  grid-template-columns: minmax(150px, 1fr) minmax(125px, .7fr) minmax(120px, .7fr) auto auto auto;
}

.role-add,
.role-settings-row {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.role-add {
  background: var(--paper-deep);
}

.role-add > label,
.role-settings-title label {
  display: flex;
  flex-direction: column;
}

.role-add input,
.role-settings-title input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.permission-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.permission-picker label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 9px;
}

.permission-picker label:has(input:checked) {
  background: var(--lime-soft);
  color: var(--ink);
}

.permission-picker input {
  accent-color: var(--green);
}

.role-settings-title,
.role-settings-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.role-settings-title label {
  flex: 1;
}

.role-settings-title small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.role-settings-actions {
  justify-content: flex-end;
}

.admin-locked {
  max-width: 680px;
  padding: 24px;
  border-block: 1px solid var(--ink);
  background: var(--white);
}

.admin-locked strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

.admin-locked p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.pi-timeline {
  margin: -8px 0 28px;
  border-block: 1px solid var(--ink);
  background: var(--white);
}

.pi-timeline > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.pi-timeline h3 {
  display: inline;
  margin: 0 8px 0 0;
  font-size: 20px;
}

.pi-timeline header p {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.pi-timeline header a {
  color: oklch(0.39 0.11 151);
  font-size: 11px;
  font-weight: 700;
}

.pi-timeline-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.pi-timeline-track {
  display: grid;
  min-width: 1080px;
  grid-template-columns: 82px repeat(5, minmax(150px, 1fr)) 82px 150px;
  border-bottom: 1px solid var(--line);
}

.pi-timeline-track article {
  display: flex;
  min-width: 0;
  min-height: 102px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.pi-timeline-track article:last-child {
  border-right: 0;
}

.pi-timeline-track article > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.pi-timeline-track article > strong {
  font-size: 14px;
}

.pi-timeline-track article > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.refinement-stop {
  background: var(--paper);
}

.refinement-stop > span:first-child {
  color: var(--blue) !important;
}

.schedule-boundary.is-start {
  background: var(--lime-soft);
}

.schedule-boundary.is-end {
  background: oklch(0.94 0.045 27);
}

.planning-stop {
  background: var(--paper-deep);
}

.milestone-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  padding: 10px 18px;
}

.milestone-strip > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 3px 12px;
  border-right: 1px solid var(--line);
}

.milestone-strip > span:last-child {
  border-right: 0;
}

.milestone-strip b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.milestone-strip small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.schedule-status {
  width: fit-content;
  margin-top: 4px;
  padding: 2px 5px;
  background: var(--paper-deep);
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 7px !important;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.schedule-status.is-done {
  background: oklch(0.9 0.055 135);
  color: oklch(0.34 0.1 145) !important;
}

.schedule-status.is-cancelled {
  background: oklch(0.93 0.018 27);
  color: var(--red) !important;
}

.pi-add {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 180px auto;
  gap: 10px;
  align-items: end;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.pi-settings-list {
  display: grid;
}

.pi-settings-entry {
  border-bottom: 1px solid var(--line);
}

.pi-settings-entry > summary,
.past-pis > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  list-style: none;
}

.pi-settings-entry > summary::-webkit-details-marker,
.past-pis > summary::-webkit-details-marker {
  display: none;
}

.pi-settings-entry > summary::before,
.past-pis > summary::before {
  flex: 0 0 auto;
  content: "＋";
}

.pi-settings-entry[open] > summary::before,
.past-pis[open] > summary::before {
  content: "−";
}

.pi-settings-entry > summary > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.pi-settings-entry > summary strong {
  font-size: 14px;
}

.pi-settings-entry > summary small {
  color: var(--muted);
  font-size: 9px;
}

.pi-state {
  padding: 4px 7px;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.pi-state.is-active {
  background: var(--lime);
  color: var(--white);
}

.pi-state.is-completed {
  background: oklch(0.9 0.055 135);
  color: oklch(0.34 0.1 145);
}

.pi-settings-entry > form {
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.past-pis {
  background: var(--paper);
}

.past-pis > summary {
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.past-pis > summary span {
  flex: 1;
}

.past-pis:not([open]) > .pi-settings-list {
  display: none;
}

.schedule-settings-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.schedule-settings-group legend {
  width: 100%;
  grid-column: 1 / -1;
  margin-bottom: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.schedule-settings label {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.schedule-settings input,
.schedule-settings select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.schedule-edit-list,
.milestone-edit-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.schedule-edit-row {
  display: grid;
  grid-template-columns: 100px 150px 120px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: var(--paper);
}

.milestone-edit-list .schedule-edit-row {
  grid-template-columns: minmax(0, 1fr) 170px 130px;
}

.schedule-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.schedule-settings-actions span {
  color: var(--muted);
  font-size: 10px;
}

.schedule-settings-actions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.settings-card > header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.settings-card h3 {
  margin: 3px 0 4px;
  font-size: 22px;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.settings-add,
.settings-row {
  display: grid;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.settings-add {
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--paper-deep);
}

.people-add {
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.7fr) minmax(140px, 0.7fr) auto;
}

.settings-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.person-settings-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(130px, 0.7fr) minmax(140px, 0.7fr) auto auto auto;
}

.settings-add label,
.settings-row label {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.settings-add input,
.settings-add select,
.settings-row input,
.settings-row select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.settings-row small {
  align-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .settings-hero {
    grid-template-columns: 1fr;
  }

  .settings-summary {
    width: fit-content;
  }

  .people-add,
  .person-settings-row,
  .account-add,
  .account-settings-row,
  .pi-add {
    grid-template-columns: 1fr 1fr;
  }

  .access-settings-grid {
    grid-template-columns: 1fr;
  }

  .access-section + .access-section {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

}

@media (max-width: 760px) {
  .settings-subnav {
    position: static;
    display: flex;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .settings-subnav button {
    flex: 0 0 188px;
    border-left: 1px solid var(--line);
  }

  .settings-subnav button:last-child {
    border-right: 1px solid var(--line);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-card.people-settings {
    grid-column: auto;
  }

  .settings-card.schedule-settings {
    grid-column: auto;
  }

  .settings-card.access-settings {
    grid-column: auto;
  }

  .settings-summary {
    width: 100%;
  }

  .settings-summary span {
    min-width: 0;
    flex: 1;
    padding-inline: 10px;
  }

  .settings-add,
  .people-add,
  .settings-row,
  .person-settings-row,
  .account-add,
  .account-settings-row,
  .pi-add {
    grid-template-columns: 1fr;
  }

  .access-settings-head,
  .demo-control {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-control {
    min-width: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .permission-picker {
    grid-template-columns: 1fr;
  }

  .settings-row small {
    justify-self: start;
  }

  .pi-timeline {
    margin-top: 0;
  }

  .pi-timeline > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .milestone-strip {
    display: flex;
    overflow-x: auto;
  }

  .milestone-strip > span {
    flex: 0 0 130px;
  }

  .schedule-settings-group,
  .schedule-edit-row,
  .milestone-edit-list .schedule-edit-row {
    grid-template-columns: 1fr;
  }

  .schedule-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-settings-actions > div {
    justify-content: stretch;
  }

  .schedule-settings-actions button {
    flex: 1;
  }
}

.sidebar-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  justify-self: end;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

@media (min-width: 761px) {
  .app-shell.sidebar-collapsed {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .sidebar-collapsed .sidebar {
    z-index: 80;
    padding-inline: 12px;
    overflow: visible;
  }

  .sidebar-collapsed .brand {
    justify-content: center;
    padding-inline: 0;
  }

  .sidebar-collapsed .brand > .brand-copy,
  .sidebar-collapsed .train-card,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed #main-nav a > span:nth-child(2),
  .sidebar-collapsed #main-nav a small,
  .sidebar-collapsed .ceremony-card,
  .sidebar-collapsed .profile > span:nth-child(2) {
    display: none;
  }

  .sidebar-collapsed #main-nav {
    margin-top: 12px;
  }

  .sidebar-collapsed #main-nav a {
    position: relative;
    grid-template-columns: 1fr;
    padding-inline: 0;
    place-items: center;
  }

  .sidebar-collapsed #main-nav a:hover::after,
  .sidebar-collapsed #main-nav a:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-collapsed .profile {
    grid-template-columns: 1fr;
    gap: 7px;
    place-items: center;
  }

  .sidebar-collapsed .sidebar-toggle {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .linked-requirements button {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .linked-requirements .badge {
    grid-column: 2;
    justify-self: start;
  }

  .sidebar-toggle {
    display: none;
  }
}
