:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: #24322d;
  background: #f4f1eb;
  font-synthesis: none;
  --ink: #24322d;
  --muted: #738079;
  --green: #1d5a46;
  --green-soft: #e5eee9;
  --cream: #f4f1eb;
  --paper: #fffdf9;
  --line: #dddcd5;
  --terracotta: #ba6048;
  --shadow: 0 12px 32px rgb(44 55 49 / 7%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(29 90 70 / 28%);
  outline-offset: 3px;
}

.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: 32px 24px 24px;
  background: #183d31;
  color: #eff5f1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 45px;
  color: inherit;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand small,
.sidebar__footer small {
  display: block;
  margin-top: 2px;
  color: #9db6ac;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 12px 4px 12px 4px;
  background: #2e6653;
  font-family: serif;
  font-size: 22px;
}

.sidebar nav {
  display: grid;
  gap: 7px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #b9cdc5;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link span {
  width: 20px;
  color: #8dac9f;
  font-size: 20px;
  text-align: center;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.sidebar__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 5px 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 13px;
}

.sidebar__footer button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9db6ac;
  cursor: pointer;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #d6ad85;
  color: #183d31;
  font-size: 12px;
  font-weight: 700;
}

main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 60px;
}

.notification > span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #b63d2f;
  color: white;
  font-size: 9px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}

.attention-inbox-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgb(24 61 49 / 25%);
}

.attention-inbox-dialog::backdrop {
  background: rgb(24 61 49 / 45%);
  backdrop-filter: blur(3px);
}

.attention-inbox-dialog__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 14px;
}

.attention-inbox-dialog__heading h2,
.attention-inbox-dialog__heading p {
  margin: 4px 0 0;
}

.attention-inbox-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 24px 18px;
}

.attention-inbox-summary span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
}

.attention-inbox-summary strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.attention-inbox-sections {
  display: grid;
  gap: 18px;
  padding: 0 24px 18px;
}

.attention-inbox-sections h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.attention-signal-list {
  display: grid;
  gap: 7px;
}

.attention-signal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.attention-signal:hover {
  border-color: #96afa3;
  background: #f7faf8;
}

.attention-signal__label {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3e9df;
  color: #805126;
  font-size: 9px;
  font-weight: 800;
}

.attention-signal--deadline .attention-signal__label {
  background: #f7dfdc;
  color: #963e32;
}

.attention-signal--change .attention-signal__label {
  background: #e6f0eb;
  color: var(--green);
}

.attention-signal strong,
.attention-signal small,
.attention-signal em {
  display: block;
}

.attention-signal small,
.attention-signal em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.attention-signal em {
  font-style: normal;
}

.attention-signal > span:last-child {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.attention-inbox-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.attention-inbox-safety {
  margin: 0;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 680px) {
  .attention-inbox-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .attention-signal {
    grid-template-columns: 1fr;
  }

  .attention-signal__label {
    width: max-content;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 25px;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 3px 0 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.today-date,
.section-kicker,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 253 249 / 65%);
  cursor: pointer;
}

.brief-button {
  height: 42px;
  padding: 0 15px;
  border: 1px solid #9fb3a9;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.focus-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: white;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.focus-dialog {
  width: min(660px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgb(24 61 49 / 25%);
}

.focus-dialog::backdrop {
  background: rgb(24 61 49 / 55%);
  backdrop-filter: blur(4px);
}

.focus-dialog__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 16px;
}

.focus-dialog__heading h2,
.focus-dialog__heading p {
  margin: 4px 0 0;
}

.focus-priority {
  margin: 0 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.focus-priority h3 {
  margin: 8px 0;
  font-size: 22px;
}

.focus-priority > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.focus-priority-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.focus-priority-meta span {
  padding: 10px;
  border-radius: 10px;
  background: #f5f4ef;
  color: var(--muted);
  font-size: 10px;
}

.focus-priority-meta strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.focus-dialog__actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
}

.focus-dialog__actions > :last-child {
  justify-self: end;
}

.focus-dialog__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.focus-safety {
  margin: 0;
  padding: 14px 26px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.focus-empty {
  padding: 20px;
  text-align: center;
}

.focus-empty strong {
  color: var(--green);
  font-size: 18px;
}

@media (max-width: 680px) {
  .topbar__actions .focus-button {
    display: inline-flex;
  }

  .focus-priority-meta {
    grid-template-columns: 1fr;
  }

  .focus-dialog__actions {
    grid-template-columns: 1fr 1fr;
  }

  .focus-dialog__actions .approve-button {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

.daily-brief-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgb(24 61 49 / 25%);
}

.daily-brief-dialog::backdrop {
  background: rgb(24 61 49 / 45%);
  backdrop-filter: blur(3px);
}

.daily-brief-dialog__heading,
.daily-brief-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}

.daily-brief-dialog__heading {
  border-bottom: 1px solid var(--line);
}

.daily-brief-dialog__heading h2,
.daily-brief-dialog__heading p {
  margin: 0;
}

.daily-brief-dialog__heading h2 {
  margin-top: 4px;
}

.daily-brief-dialog__heading p:last-child,
.daily-brief-dialog__footer p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.local-search-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgb(24 61 49 / 25%);
}

.local-search-dialog::backdrop {
  background: rgb(24 61 49 / 45%);
  backdrop-filter: blur(3px);
}

.local-search-dialog__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 14px;
}

.local-search-dialog__heading h2 {
  margin: 4px 0 0;
}

.local-search-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 24px;
  padding: 0 14px;
  border: 1px solid #9fb3a9;
  border-radius: 12px;
  background: white;
}

.local-search-field > span {
  color: var(--muted);
  font-size: 20px;
}

.local-search-field input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.local-search-count,
.local-search-safety {
  margin: 10px 24px;
  color: var(--muted);
  font-size: 11px;
}

.local-search-results {
  display: grid;
  gap: 7px;
  max-height: 52vh;
  overflow: auto;
  padding: 4px 24px 16px;
}

.local-search-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  text-align: left;
}

.local-search-result:not(:disabled) {
  cursor: pointer;
}

.local-search-result:not(:disabled):hover {
  border-color: #96afa3;
  background: #f7faf8;
}

.local-search-result:disabled {
  color: inherit;
  opacity: 1;
}

.local-search-result strong,
.local-search-result small,
.local-search-result em {
  display: block;
}

.local-search-result small,
.local-search-result em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.local-search-result em {
  font-style: normal;
}

.local-search-result > span:last-child {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.local-search-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.local-search-safety {
  margin-top: 0;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 680px) {
  .local-search-result {
    grid-template-columns: 1fr;
  }

  .local-search-result .type-badge {
    width: max-content;
  }
}

.daily-brief-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.daily-brief-summary span {
  padding: 13px;
  background: #f7f5ef;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.daily-brief-summary strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.daily-brief-preview {
  max-height: 52vh;
  overflow: auto;
  padding: 20px 24px;
}

.daily-brief-preview pre {
  margin: 0;
  color: #435049;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.daily-brief-dialog__footer {
  border-top: 1px solid var(--line);
}

.daily-brief-dialog__footer p {
  margin: 0;
}

@media (max-width: 680px) {
  .topbar__actions .brief-button {
    padding: 0 10px;
    font-size: 11px;
  }

  .daily-brief-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-brief-dialog__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-brief-dialog__footer .primary-button {
    width: 100%;
  }
}

.icon-button {
  width: 42px;
  font-size: 21px;
}

.notification {
  position: relative;
}

.notification::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  content: "";
}

.primary-button {
  padding: 0 17px;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 13px;
  border: 1px solid #d9d3bd;
  border-radius: 9px;
  background: #f8f2dc;
  color: #6f6648;
  font-size: 12px;
}

.demo-notice span {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #a69b73;
  border-radius: 50%;
  font-family: serif;
  font-weight: 700;
}

.demo-notice p {
  margin: 0;
}

.demo-notice .text-button {
  margin-left: auto;
  white-space: nowrap;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 0 39px;
}

.hero h2 {
  max-width: 600px;
  margin: 8px 0 9px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.09;
  letter-spacing: -0.052em;
}

.hero > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.summary {
  display: flex;
  min-width: 300px;
  padding: 16px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 253 249 / 55%);
}

.summary div {
  flex: 1;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.summary div:last-child {
  border: 0;
}

.summary strong,
.summary span {
  display: block;
}

.summary strong {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 22px;
}

.summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.priorities,
.agenda {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 253 249 / 50%);
  box-shadow: var(--shadow);
}

.priorities {
  padding: 25px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.filters {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #ece9e2;
}

.filters button {
  display: flex;
  gap: 5px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.filters button span {
  color: #98a09c;
}

.filters button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px rgb(36 50 45 / 8%);
}

.priority-list {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.priority-card {
  position: relative;
  overflow: hidden;
  padding: 17px 18px 14px;
  border: 1px solid #dfded8;
  border-radius: 13px;
  background: var(--paper);
}

.priority-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #8fa89f;
  content: "";
}

.priority-card--critical::before {
  background: var(--terracotta);
}

.priority-card--high::before {
  background: #d09a50;
}

.priority-card__topline,
.priority-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.type-badge {
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.type-badge--decision {
  background: #e9e4f2;
  color: #65547d;
}

.type-badge--commitment {
  background: #f7eadb;
  color: #8b6337;
}

.due {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.due--critical {
  color: var(--terracotta);
}

.priority-card__body {
  align-items: end;
  margin-top: 15px;
}

.priority-card h3 {
  margin: 4px 0 4px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.card-description {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.round-action {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.round-action:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.provenance {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eeece7;
  color: var(--muted);
  font-size: 10px;
}

.provenance summary {
  width: max-content;
  cursor: pointer;
  font-weight: 600;
}

.provenance__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 11px;
}

.provenance__content strong,
.provenance__content span {
  display: block;
}

.provenance__content strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-state {
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.agenda {
  padding: 25px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.agenda ol {
  position: relative;
  display: grid;
  gap: 0;
  margin: 20px 0 16px;
  padding: 0;
  list-style: none;
}

.agenda li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 15px;
  min-height: 67px;
}

.agenda time {
  padding-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.agenda li > span {
  position: relative;
  padding: 0 0 19px 17px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.agenda li > span::before {
  position: absolute;
  top: 3px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8aa99d;
  content: "";
}

.agenda li:first-child > span::before {
  box-shadow: 0 0 0 4px #e1e9e5;
  background: var(--green);
}

.agenda li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
}

.focus-card {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
}

.focus-card > span {
  font-size: 18px;
}

.focus-card strong {
  font-size: 12px;
}

.focus-card p {
  margin: 3px 0 0;
  color: #668075;
  font-size: 10px;
  line-height: 1.45;
}

.mobile-nav {
  display: none;
}

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

  main {
    padding-inline: 28px;
  }

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

  .agenda {
    display: none;
  }

  .hero {
    align-items: start;
    flex-direction: column;
  }
}

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

  .sidebar {
    display: none;
  }

  main {
    padding: 0 16px 100px;
  }

  .topbar {
    padding: 22px 0 17px;
  }

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

  .icon-button {
    display: none;
  }

  .primary-button {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .primary-button span {
    font-size: 19px;
  }

  .demo-notice {
    align-items: start;
    line-height: 1.4;
  }

  .hero {
    gap: 24px;
    padding: 34px 0 28px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .summary {
    width: 100%;
    min-width: 0;
  }

  .summary div {
    padding: 0 13px;
  }

  .priorities {
    padding: 18px 14px;
    border-radius: 15px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
  }

  .filters button {
    flex: 1 0 auto;
    justify-content: center;
  }

  .priority-card {
    padding: 15px 14px 13px;
  }

  .priority-card__body {
    align-items: center;
  }

  .card-description {
    font-size: 11px;
  }

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

  .mobile-nav {
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgb(255 253 249 / 94%);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a {
    display: grid;
    gap: 3px;
    place-items: center;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-nav a span {
    font-size: 19px;
  }

  .mobile-nav a.is-active {
    color: var(--green);
  }
}


.capture-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(23 45 36 / 24%);
}

.capture-dialog::backdrop {
  background: rgb(24 61 49 / 45%);
  backdrop-filter: blur(3px);
}

.capture-dialog form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.dialog-heading,
.dialog-actions,
.form-row {
  display: flex;
  gap: 14px;
}

.dialog-heading {
  align-items: start;
  justify-content: space-between;
}

.dialog-heading h2 {
  margin: 4px 0;
  font-size: 24px;
}

.dialog-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}

.capture-dialog label {
  display: grid;
  flex: 1;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.capture-dialog input,
.capture-dialog select,
.capture-dialog textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.capture-dialog textarea {
  resize: vertical;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--terracotta);
  font-size: 12px;
}

.dialog-actions {
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  .capture-dialog form {
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
  }
}


.approval-queue {
  margin-bottom: 24px;
  padding: 22px 25px;
  border: 1px solid #d9d3bd;
  border-radius: 16px;
  background: #f8f2dc;
}

.approval-queue .section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  font-size: 11px;
}

.approval-explanation {
  max-width: 330px;
  margin: 0;
  color: #6f6648;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.approval-list {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.approval-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 18px;
  border: 1px solid #ded6bc;
  border-radius: 12px;
  background: var(--paper);
}

.approval-card h3 {
  margin: 5px 0;
  font-size: 15px;
}

.approval-card p:not(.eyebrow) {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.confidence {
  color: #7f765a;
  font-size: 10px;
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.approve-button,
.reject-button {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.approve-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
}

.reject-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.approval-empty {
  margin: 0;
  padding: 13px;
  border: 1px dashed #d7cfb4;
  border-radius: 9px;
  color: #7f765a;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .approval-queue {
    padding: 18px 14px;
  }

  .approval-explanation {
    text-align: left;
  }

  .approval-card {
    align-items: stretch;
    flex-direction: column;
  }

  .approval-actions button {
    flex: 1;
  }
}


.risk-view {
  margin-bottom: 24px;
  padding: 22px 25px;
  border: 1px solid #e0d8d1;
  border-radius: 16px;
  background: rgb(255 253 249 / 58%);
}

.risk-summary {
  display: flex;
  gap: 7px;
}

.risk-summary span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #ece9e2;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.risk-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.risk-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.risk-item {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #d09a50;
  border-radius: 10px;
  background: var(--paper);
}

.risk-item--overdue {
  border-left-color: var(--terracotta);
}

.risk-item--today {
  border-left-color: #c9823a;
}

.risk-item--unknown {
  border-left-color: #8c8794;
}

.risk-item h3 {
  margin: 3px 0 0;
  font-size: 13px;
}

.risk-status {
  color: #895443;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.risk-due {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.risk-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .risk-view {
    padding: 18px 14px;
  }

  .risk-summary {
    width: 100%;
    overflow-x: auto;
  }

  .risk-item {
    grid-template-columns: 1fr auto;
  }

  .risk-item > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}


.progress-journal {
  margin-bottom: 24px;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 253 249 / 58%);
}

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

.journal-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.journal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.journal-event {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #ebe8e1;
}

.journal-mark {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #8aa99d;
}

.journal-event--completed .journal-mark,
.journal-event--approved .journal-mark {
  background: var(--green);
}

.journal-event--rejected .journal-mark {
  background: var(--terracotta);
}

.journal-event p,
.journal-event h3 {
  margin: 0;
}

.journal-event p {
  color: var(--muted);
  font-size: 9px;
}

.journal-event h3 {
  margin-top: 3px;
  font-size: 12px;
}

.journal-event div > span {
  color: var(--muted);
  font-size: 9px;
}

.journal-event time {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.journal-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .progress-journal {
    padding: 18px 14px;
  }

  .journal-list {
    grid-template-columns: 1fr;
  }
}


.projects-view {
  padding: 42px 0 20px;
}

.projects-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.projects-hero h2 {
  max-width: 680px;
  margin: 8px 0 9px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.05em;
}

.projects-hero p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.projects-total {
  display: grid;
  min-width: 120px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 253 249 / 58%);
}

.projects-total strong {
  font-size: 24px;
}

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

.projects-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: start;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 253 249 / 58%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.project-card:hover,
.project-card.is-selected {
  border-color: #8aa99d;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-card__topline,
.project-card__metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.project-card__topline strong {
  font-size: 14px;
}

.project-card__topline > span,
.project-card__deadline {
  color: var(--muted);
  font-size: 9px;
}

.project-card__context {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.project-card__metrics {
  padding: 10px 0;
  border-block: 1px solid #ebe8e1;
  color: var(--muted);
  font-size: 9px;
}

.project-card__metrics b {
  color: var(--ink);
  font-size: 12px;
}

.project-detail {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-detail__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.project-detail__heading h3 {
  margin: 6px 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.project-detail__heading p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.project-attention {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f7eadb;
  color: #8b6337;
  font-size: 10px;
  font-weight: 700;
}

.project-next-step {
  display: grid;
  gap: 4px;
  margin: 22px 0;
  padding: 15px;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--green);
}

.project-next-step span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-next-step strong {
  font-size: 13px;
}

.project-detail__section-title,
.project-detail__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.project-detail__section-title h4 {
  margin: 0;
  font-size: 14px;
}

.project-detail__section-title span,
.project-detail__footer {
  color: var(--muted);
  font-size: 10px;
}

.project-item-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.project-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ebe8e1;
  border-radius: 10px;
}

.project-item strong,
.project-item small {
  display: block;
}

.project-item strong {
  font-size: 12px;
}

.project-item small,
.project-item time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.project-detail__footer {
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.project-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 5px;
  }
}

@media (max-width: 720px) {
  .projects-view {
    padding-top: 30px;
  }

  .projects-hero {
    align-items: start;
    flex-direction: column;
  }

  .projects-total {
    width: 100%;
  }

  .project-detail {
    padding: 18px 14px;
  }

  .project-detail__heading {
    flex-direction: column;
  }

  .project-item {
    grid-template-columns: 1fr auto;
  }

  .project-item .type-badge {
    width: max-content;
    grid-column: 1 / -1;
  }
}


.demo-notice__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}

.demo-guide {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100% - 32px));
  overflow: hidden;
  padding: 22px;
  border: 1px solid #b8c9c2;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgb(23 45 36 / 28%);
}

.demo-guide__progress {
  height: 4px;
  margin: -22px -22px 19px;
  background: #e2e8e5;
}

.demo-guide__progress span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 240ms ease;
}

.demo-guide__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.demo-guide__heading button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 23px;
  cursor: pointer;
}

.demo-guide h2 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.demo-guide > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.demo-guide__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.demo-guide__actions .primary-button {
  flex: 0 0 auto;
}

.demo-highlight {
  position: relative;
  z-index: 1;
  outline: 4px solid rgb(208 154 80 / 38%);
  outline-offset: 5px;
  transition: outline-color 300ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .demo-guide__progress span,
  .demo-highlight {
    transition: none;
  }
}

@media (max-width: 720px) {
  .demo-notice {
    flex-wrap: wrap;
  }

  .demo-notice__actions {
    width: 100%;
    margin-left: 28px;
  }

  .demo-guide {
    right: 16px;
    bottom: 82px;
    padding: 19px;
  }

  .demo-guide__progress {
    margin: -19px -19px 17px;
  }
}


.mvp-review {
  padding: 42px 0 24px;
}

.review-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.review-hero h2 {
  max-width: 720px;
  margin: 8px 0 9px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.05em;
}

.review-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.review-score {
  display: grid;
  min-width: 150px;
  padding: 17px 20px;
  border: 1px solid #b8c9c2;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}

.review-score strong {
  font-size: 25px;
}

.review-score > span {
  color: #668075;
  font-size: 10px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.review-panel,
.deferred-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.review-panel--decisions {
  background: #fffaf0;
}

.review-panel__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.review-panel__heading h3,
.deferred-panel h3 {
  margin: 5px 0 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.review-status {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.criteria-list {
  display: grid;
  gap: 8px;
}

.criterion-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  padding: 13px;
  border: 1px solid #e5e3dc;
  border-radius: 10px;
}

.criterion-card > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.criterion-card h4,
.criterion-card p {
  margin: 0;
}

.criterion-card h4 {
  font-size: 12px;
}

.criterion-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.decision-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-list li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 11px;
  padding-top: 13px;
  border-top: 1px solid #e8dfcd;
}

.decision-list li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #f1e3c8;
  color: #85673d;
  font-size: 10px;
  font-weight: 800;
}

.decision-list h4,
.decision-list p {
  margin: 0;
}

.decision-list h4 {
  font-size: 12px;
}

.decision-list p,
.decision-list small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.decision-list p strong {
  color: var(--ink);
}

.deferred-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 22px;
  box-shadow: none;
}

.deferred-panel ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deferred-panel li {
  padding: 7px 9px;
  border-radius: 8px;
  background: #ece9e2;
  color: var(--muted);
  font-size: 9px;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid #d9d3bd;
  border-radius: 11px;
  background: #f8f2dc;
}

.review-footer p {
  margin: 0;
  color: #6f6648;
  font-size: 11px;
}

@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mvp-review {
    padding-top: 30px;
  }

  .review-hero,
  .deferred-panel,
  .review-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .review-score {
    width: 100%;
  }

  .review-panel,
  .deferred-panel {
    padding: 18px 14px;
  }

  .review-panel__heading {
    flex-direction: column;
  }

  .deferred-panel ul {
    justify-content: flex-start;
  }

  .review-footer .primary-button {
    width: 100%;
    font-size: 12px;
  }
}


.pilot-configuration {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #cfd9d3;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbf9 0%, var(--paper) 60%);
  box-shadow: var(--shadow);
}

.pilot-configuration__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pilot-configuration__heading h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.pilot-configuration__heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.pilot-configuration__status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.pilot-decision {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pilot-decision legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
}

.pilot-decision legend > span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 0.75rem;
}

.pilot-decision__options {
  display: grid;
  gap: 8px;
}

.pilot-option {
  position: relative;
  display: block;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pilot-option:hover {
  border-color: #96afa3;
  transform: translateY(-1px);
}

.pilot-option:focus-within {
  outline: 3px solid rgb(29 90 70 / 18%);
  outline-offset: 2px;
}

.pilot-option.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgb(29 90 70 / 10%);
}

.pilot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pilot-option > span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
}

.pilot-option strong {
  line-height: 1.25;
}

.pilot-option em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.45;
}

.recommended-badge {
  align-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pilot-configuration__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pilot-configuration__footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pilot-configuration__footer p strong {
  color: var(--ink);
}

.pilot-configuration__footer > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

@media (max-width: 980px) {
  .pilot-options {
    grid-template-columns: 1fr;
  }

  .pilot-option {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .pilot-configuration {
    padding: 20px;
    border-radius: 18px;
  }

  .pilot-configuration__heading,
  .pilot-configuration__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pilot-configuration__status {
    align-self: flex-start;
  }

  .pilot-configuration__footer > div {
    flex-direction: column-reverse;
  }
}


.pilot-brief {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(320px, 1.35fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #d9ddd9;
  border-radius: 18px;
  background: #f4f7f5;
}

.pilot-brief h4 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.pilot-brief p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pilot-brief__preview {
  max-height: 156px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.pilot-brief pre {
  margin: 0;
  padding: 14px 16px;
  color: #435049;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.pilot-brief button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.5;
}

@media (max-width: 980px) {
  .pilot-brief {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pilot-brief button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .pilot-brief {
    padding: 16px;
  }

  .pilot-brief button {
    width: 100%;
  }
}
.source-simulation {
  margin-top: 16px;
  padding: 20px;
  border: 1px dashed #aebfb6;
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
}

.source-simulation__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.source-simulation h4 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.source-simulation p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.source-simulation button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.5;
}

.source-simulation__result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.source-simulation__summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.source-simulation__summary span,
.source-simulation__summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.source-simulation__summary small {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
}

.source-proposal-list {
  display: grid;
  gap: 8px;
}

.source-proposal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.source-proposal h5 {
  margin: 2px 0 3px;
  font-size: 0.9rem;
}

.source-proposal small {
  color: var(--muted);
  font-size: 0.72rem;
}

.source-simulation__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.source-simulation__action p {
  max-width: 640px;
}

@media (max-width: 680px) {
  .source-simulation__heading,
  .source-simulation__summary,
  .source-simulation__action {
    align-items: stretch;
    flex-direction: column;
  }

  .source-simulation__heading button {
    width: 100%;
  }

  .source-simulation__action button {
    width: 100%;
  }

  .source-simulation__summary small {
    margin-left: 0;
  }

  .source-proposal {
    grid-template-columns: 1fr;
  }
}
