:root {
  color-scheme: light;
  --ink: #1b302b;
  --muted: #65766e;
  --line: #dce3dc;
  --paper: #f5f6f1;
  --green: #29634c;
  --lime: #e0edba;
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
}
button:hover {
  background: #edf2e9;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #174c36;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 650;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-bottom: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 225px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fdfefb;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 750;
  display: flex;
  gap: 10px;
  align-items: center;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--lime);
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 24px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  border: 0;
  text-align: left;
  background: transparent;
  font-weight: 500;
  padding: 12px;
}
.sidebar nav button[aria-current="page"] {
  background: #e9f0e4;
  color: #23583f;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.private {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}
.content {
  min-width: 0;
  padding: 32px 44px 64px;
  max-width: 1500px;
  width: 100%;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
  margin-bottom: 35px;
  gap: 12px;
}
.topbar p {
  font-size: 13px;
}
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eaf0e5;
  color: #426144;
}
.pill.warn {
  background: #f6ecd2;
  color: #846521;
}
.pill.neutral {
  background: #eef0ef;
  color: #64716b;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 9px;
  max-width: 660px;
  color: var(--muted);
}
.hero {
  background: var(--ink);
  color: white;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
  margin: 26px 0;
}
.hero .eyebrow {
  color: #b4ccb8;
}
.hero p {
  color: #cfdbd2;
  margin-top: 12px;
  max-width: 530px;
}
.hero button {
  align-self: center;
  white-space: nowrap;
  background: var(--lime);
  border: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0 32px;
}
.stat,
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 23px;
}
.stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 12px 0 6px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.panel + .panel {
  margin-top: 20px;
}
.empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 9px;
}
.empty button {
  margin-top: 16px;
}
.row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.row:first-child {
  border-top: 0;
}
.row p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.row button {
  flex-shrink: 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
  min-width: 170px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd6cc;
  border-radius: 7px;
  background: #fff;
  padding: 10px 11px;
  color: var(--ink);
}
textarea {
  min-height: 94px;
  resize: vertical;
}
.toolbar select {
  width: auto;
  max-width: 180px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 18px;
  font-size: 13px;
  vertical-align: top;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f9faf6;
  color: var(--muted);
}
td:first-child {
  min-width: 240px;
}
td small {
  display: block;
  margin-top: 6px;
}
td button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}
.tabs button.active {
  border-bottom: 3px solid var(--green);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-value {
  margin: 16px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.field-value small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 10px;
  margin-bottom: 7px;
}
.evidence {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  overflow-wrap: anywhere;
}
.evidence blockquote {
  margin: 12px 0;
  white-space: pre-wrap;
  line-height: 1.6;
}
.evidence small {
  display: block;
  margin-top: 6px;
}
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}
.column {
  background: #edf0e9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  min-height: 180px;
}
.column h3 {
  margin-bottom: 15px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin: 12px 0;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.card button {
  margin-top: 8px;
}
.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.warning {
  padding: 14px 18px;
  background: #fff7e4;
  border: 1px solid #eadbb4;
  border-radius: 8px;
  font-size: 13px;
  margin: 16px 0;
}
.landing {
  max-width: 1120px;
  margin: auto;
  padding: 40px 30px;
}
.landing header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing section {
  padding: 100px 0 70px;
  max-width: 780px;
}
.landing h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -3px;
  line-height: 1.08;
}
.landing section p {
  max-width: 550px;
  font-size: 19px;
  margin: 25px 0;
  color: var(--muted);
}
.landing .principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  border-top: 1px solid var(--line);
  padding-top: 35px;
}
.principles p {
  margin-top: 10px;
  color: var(--muted);
}
.login {
  max-width: 430px;
  margin: 70px auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.login h1 {
  font-size: 28px;
}
.account-password {
  display: grid;
  gap: 15px;
  max-width: 430px;
  margin-top: 25px;
}
.login form {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 10px;
  background: white;
  padding: 14px;
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #a7bf70;
  outline-offset: 3px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 660px;
  width: calc(100% - 32px);
  padding: 28px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #142a2370;
}
dialog h2 {
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 15px 0 6px;
}
dialog label small {
  font-weight: 400;
}
dialog footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
  position: sticky;
  bottom: -28px;
  background: white;
  padding: 16px 0;
}
#form-error {
  color: #a33629;
  font-size: 13px;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: var(--ink);
  color: white;
  padding: 0;
  border-radius: 8px;
  z-index: 10;
}
#notice:not(:empty) {
  padding: 16px 22px;
}
button.link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
}
.progress {
  height: 4px;
  background: #e6ece3;
  border-radius: 4px;
  margin-top: 8px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}
.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.section-space {
  margin-top: 30px;
}
@media (max-width: 1050px) {
  .content {
    padding: 25px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .sidebar-bottom {
    display: none;
  }
  .content {
    padding: 22px 17px;
  }
  .topbar {
    margin-bottom: 25px;
    padding-bottom: 18px;
  }
  .hero {
    padding: 23px;
    display: block;
  }
  .hero button {
    margin-top: 20px;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 29px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .landing section {
    padding: 65px 0;
  }
  .landing .principles {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .row {
    align-items: flex-start;
  }
  .panel {
    padding: 18px;
  }
  .topbar p {
    font-size: 11px;
  }
  .page-head > button {
    font-size: 12px;
  }
}

.discovery-hero {
  align-items: start;
  gap: 32px;
}
.discovery-hero .list-actions {
  margin-top: 24px;
}
.autopilot-status {
  min-width: 230px;
  border-left: 1px solid #b8c6ba;
  padding-left: 24px;
}
.discovery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.discovery-steps article {
  border-top: 2px solid #9db29e;
  padding-top: 16px;
}
.discovery-steps b {
  font-size: 13px;
  color: #42644c;
}
.discovery-steps p {
  font-size: 14px;
  line-height: 1.6;
  color: #657069;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.concept-card {
  border: 1px solid #dce4dd;
  border-radius: 12px;
  padding: 24px;
  background: #fcfdfb;
}
.concept-card h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 18px 0 10px;
}
.concept-option {
  border-left: 3px solid #a1bba5;
  padding-left: 14px;
  margin: 20px 0;
}
.concept-option small {
  letter-spacing: 0.08em;
  color: #55725b;
  font-size: 10px;
  font-weight: 700;
}
.concept-option p {
  margin: 6px 0;
  line-height: 1.6;
}
button[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}
@media (max-width: 1000px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }
  .discovery-hero {
    flex-direction: column;
  }
  .autopilot-status {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 600px) {
  .discovery-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .concept-card {
    padding: 16px;
  }
}

.discovery-hero button {
  color: var(--ink);
}
.discovery-hero .autopilot-status small {
  color: #cfdbd2;
}
.discovery-hero .autopilot-status {
  padding-top: 2px;
}
.concept-grid:has(> .concept-card:only-child) {
  grid-template-columns: 1fr;
}
.concept-card .source-trigger {
  margin-top: 12px;
}
.discovery-steps + .stats {
  margin-top: 26px;
}
@media (max-width: 1000px) {
  .discovery-hero .autopilot-status {
    margin-top: 18px;
  }
}
