@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #203c38;
  --muted: #566b63;
  --line: #dee8e4;
  --bg: #f1f6f4;
  --card: #ffffff;
  --primary: #174c43;
  --rail: #103c39;
  --mint: #b9e5c9;
  --know: #2b6287;
  --know-bg: #edf4fa;
  --do: #28724f;
  --do-bg: #edf7f0;
  --decide: #916326;
  --decide-bg: #fbf3e6;
  --learn: #70548f;
  --learn-bg: #f4eff9;
  --warn: #805b19;
  --warn-bg: #fff7e5;
  --ok: #28724f;
  --bad: #ac3838;
  --focus: #28679c;
  --scroll-thumb: #a2b7af;
  --scroll-track: #edf3ef;
  --scroll-hover: #6e8e81;
  --scroll-active: #476e5d;
  --radius: 16px;
  --control-radius: 9px;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: Manrope, "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
html {
  font-size: 16px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
a,
select,
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid transparent;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--control-radius);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
button:hover {
  filter: brightness(0.94);
  box-shadow: 0 3px 9px #103c3914;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
  filter: none;
  box-shadow: none;
  transform: none;
}
button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 550;
}
button.ghost:hover {
  background: #eaf1ed;
}
button.know,
button.do,
button.decide,
button.learn {
  background: var(--primary);
}
button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  min-height: 44px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 14px;
}
select:hover {
  border-color: #7d9e90;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
a {
  color: var(--know);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  transform: translateY(-200%);
  clip-path: inset(50%);
  background: #fff;
  padding: 12px 18px;
  z-index: 50;
  border-radius: 8px;
}
.skip:focus {
  transform: translateY(0);
  clip-path: none;
}
.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  background: var(--rail);
  color: #d5e6de;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-color: #53766c var(--rail);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  padding: 0 12px;
  margin-bottom: 32px;
  cursor: pointer;
}
.logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e8f5ea;
}
.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.logo svg {
  width: 32px;
  color: var(--mint);
}
.name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1.6px;
  line-height: 1.2;
}
.brand-dot {
  color: var(--mint);
}
.workspace-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid #476a62;
  border-radius: 12px;
  margin: 0 4px 32px;
  background: #194540;
}
.org-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 9px;
  background: #385d54;
  color: #e0f2e7;
}
.workspace-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.workspace-card div > span {
  display: block;
  font-size: 11px;
  color: #bdd3ca;
}
.workspace-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.rail-label {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 650;
  color: #bdd3ca;
  margin: 0 16px 13px;
}
.side ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side li {
  margin: 3px 0;
}
.side a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  color: #dbe8e0;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.side a:hover {
  background: #255149;
}
.side a[aria-current="step"] {
  background: #daefe2;
  color: #153f32;
  border-color: #daefe2;
  font-weight: 700;
}
.side .num {
  width: 27px;
  height: 27px;
  border: 1px solid #718e83;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
  background: transparent;
  color: inherit;
}
.side a[aria-current="step"] .num {
  background: #174c43;
  color: #fff;
  border-color: #174c43;
}
.side .done .num::after {
  content: "✓";
  color: inherit;
}
.side .done .num span {
  display: none;
}
.side small {
  display: block;
  color: #bdd3ca;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.side a[aria-current="step"] small {
  color: #426b58;
}
.rail-bottom {
  margin-top: auto;
  padding: 34px 14px 0;
}
.journey-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.journey-progress strong {
  color: #ddf2e3;
  font-weight: 500;
}
.progress-track {
  height: 4px;
  background: #395f54;
  border-radius: 4px;
  margin-top: 11px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--mint);
  transition: width 0.2s;
}
.rail-note {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  color: #c9e0d4;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}
.rail-note-icon {
  font-size: 27px;
  color: var(--mint);
  line-height: 1.4;
}
.rail-company {
  border-top: 1px solid #476a62;
  padding-top: 16px;
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #b8cec4;
}
.rail-company span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-top: 5px;
}
.workspace {
  min-width: 0;
}
.top {
  min-height: 78px;
  padding: 16px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-context {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.top-context strong {
  color: var(--ink);
  font-weight: 600;
}
.context-divider {
  color: #abbdb4;
}
.controls {
  display: flex;
  gap: 9px;
  align-items: center;
}
.controls #reset {
  font-size: 12px;
}
.context-bar {
  padding: 17px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ctx {
  font-size: 11px;
  color: var(--muted);
}
.tag {
  font-size: 10px;
  background: #e2efe6;
  color: #345f45;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 15px 32px 0;
  padding: 12px 15px;
  background: var(--warn-bg);
  border: 1px solid #ebddb8;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.65;
  color: #735a27;
}
.banner-icon {
  border: 1px solid #a58b50;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
  font-weight: 700;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  padding: 28px 32px 40px;
  align-items: start;
}
.layout > * {
  min-width: 0;
}
main {
  min-width: 0;
}
main h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.25vw, 35px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -1.1px;
  margin: 14px 0 18px;
  max-width: 800px;
  overflow-wrap: anywhere;
}
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.45;
}
p {
  margin: 12px 0;
}
.screen-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.step-indicator {
  font-size: 11px;
  font-family: var(--font-display);
  color: var(--muted);
  letter-spacing: 0.3px;
}
.step-indicator strong {
  color: var(--ink);
}
.mod {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.75px;
  padding: 5px 9px;
  border-radius: 6px;
  margin-right: 9px;
}
.mod svg {
  width: 12px;
  height: 12px;
}
.m-know {
  color: var(--know);
  background: var(--know-bg);
}
.m-do {
  color: var(--do);
  background: var(--do-bg);
}
.m-decide {
  color: var(--decide);
  background: var(--decide-bg);
}
.m-learn {
  color: var(--learn);
  background: var(--learn-bg);
}
.screen-eyebrow .meta {
  font-size: 10px;
}
.who {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  font-size: 11px;
  color: var(--muted);
}
.who strong {
  color: var(--ink);
  font-weight: 600;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #dceae1;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.who-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}
.who-copy strong {
  font-size: 12px;
}
.meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px 24px;
  margin: 18px 0;
  background: var(--card);
  box-shadow: 0 3px 10px #103c3903;
}
.card h2 {
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.ask-card {
  padding: 22px;
  background: #fff;
}
.ask-card > label {
  font-size: 12px;
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.ask {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.ask textarea {
  min-height: 105px;
  border: 1px solid #d6e4da;
  border-radius: 10px;
  background: #f7faf8;
  padding: 14px 16px;
  width: 100%;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  resize: none;
}
.ask button {
  align-self: flex-end;
}
.ask button .button-arrow {
  margin-left: 16px;
}
.ai {
  background: #f8fbfe;
  border-color: #dce8f0;
  border-left: 3px solid #548aa8;
}
.ai .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--know);
  font-weight: 650;
  line-height: 1.5;
}
.ai .lbl svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ai p {
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 0;
}
.cite {
  font-size: 10px;
  vertical-align: super;
  color: var(--know);
  font-weight: 700;
}
.alert,
.ok {
  border-radius: 10px;
  padding: 13px 16px;
  margin: 17px 0;
  font-size: 12px;
  line-height: 1.75;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert {
  background: var(--warn-bg);
  border: 1px solid #ebddb8;
  color: var(--warn);
}
.ok {
  background: #edf7f0;
  border: 1px solid #c8e3d2;
  color: #256243;
}
.alert svg,
.ok svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
}
.section-heading h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 700;
}
.section-heading span {
  font-size: 10px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ev {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  position: relative;
  font-size: 13px;
}
.ev .t {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
  margin-bottom: 8px;
}
.ev .meta {
  font-size: 11px;
}
.ev:has(.v-unv) {
  background: #fff9f7;
  border-color: #f0ddd6;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0;
}
.chip {
  font-size: 9px;
  font-weight: 550;
  border-radius: 5px;
  padding: 3px 6px;
  background: #f2f6f4;
  border: 1px solid #e1eae5;
  line-height: 1.6;
}
.chip.g-a,
.chip.g-b,
.chip.v-ver {
  background: #edf7ef;
  color: #346446;
  border-color: #d5e7d8;
}
.chip.g-c,
.chip.v-dec {
  background: #fff6e3;
  color: #7f5c24;
  border-color: #eeddad;
}
.chip.v-unv {
  background: #fbede8;
  color: #973e31;
  border-color: #eed0c6;
}
.chip.v-ai {
  background: var(--know-bg);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.screen-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.screen-bottom button {
  font-size: 12px;
}
.screen-bottom > span {
  font-size: 10px;
  color: var(--muted);
}
.record {
  background: #fcfefc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 20px;
  font-size: 12px;
  position: sticky;
  top: 24px;
  box-shadow: 0 4px 12px #103c3903;
}
.record-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.record-symbol {
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}
.record h2 {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.2px;
  margin: 0;
}
.record-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--primary);
  background: #e5f0e8;
  border-radius: 5px;
  padding: 2px 7px;
}
.record-intro {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 11px 0 23px;
}
.record ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.record li {
  font-size: 11px;
  line-height: 1.75;
  padding: 0 0 24px 20px;
  border-left: 1px solid #d6e3db;
  position: relative;
  margin: 0 0 0 4px;
  overflow-wrap: anywhere;
}
.record li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78a88e;
  border: 2px solid #fcfefc;
}
.record li:last-child {
  padding-bottom: 8px;
}
.record li .meta {
  font-size: 10px;
  display: inline-block;
  margin-top: 4px;
}
.record .when {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.record .empty-record {
  padding: 26px 4px 30px;
  margin: 0;
  text-align: center;
  border: 0;
}
.record .empty-record::before {
  display: none;
}
.empty-record .empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  background: #eef5ef;
  color: #638f76;
  border-radius: 14px;
}
.empty-icon svg {
  width: 24px;
  height: 24px;
}
.empty-record strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 8px;
}
.empty-record span {
  display: block;
  font-size: 10px;
  line-height: 1.8;
}
.record .export-btn {
  margin-top: 22px;
  min-height: 40px;
  width: 100%;
  font-size: 10px;
}
.foot {
  font-size: 10px;
  color: var(--muted);
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}
.route {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 22px 0;
  counter-reset: route;
}
.route .arr {
  display: none;
}
.route .node {
  position: relative;
  border: 1px solid var(--line);
  padding: 16px 16px 16px 53px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 10px;
  background: #fafcfa;
  counter-increment: route;
}
.route .node::before {
  content: counter(route);
  position: absolute;
  left: 15px;
  top: 13px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8efe9;
  color: #617969;
  font-size: 11px;
}
.route .node.active {
  background: var(--decide-bg);
  border-color: #e3d1ac;
  font-weight: 650;
  color: #745020;
}
.route .node.active::before {
  background: #916326;
  color: #fff;
}
.prov {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
}
.prov:first-child {
  padding-top: 0;
}
.prov strong {
  font-weight: 650;
  display: inline-block;
  margin-bottom: 5px;
}
.status {
  font-size: 10px;
  font-weight: 650;
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
  height: fit-content;
}
.s-applies {
  background: var(--do-bg);
  color: var(--do);
}
.s-check {
  background: var(--warn-bg);
  color: var(--warn);
}
.s-none {
  background: #edf0f1;
  color: #606b70;
}
.edit {
  width: 100%;
  min-height: 122px;
  border: 1px solid #d6e4da;
  border-radius: 10px;
  background: #f7faf8;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  resize: none;
  margin-top: 12px;
}
label > strong {
  font-size: 13px;
}
.table-card {
  padding: 0;
  overflow-x: auto;
  scrollbar-gutter: stable;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 560px;
}
th,
td {
  text-align: left;
  padding: 17px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.8;
}
thead th {
  background: #f8fbf9;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 750;
  color: #345448;
}
thead th:last-child {
  background: #e8f4ec;
  color: #256243;
}
tbody th {
  font-size: 11px;
  font-weight: 650;
  min-width: 130px;
  width: 27%;
  background: #fcfdfc;
}
td:last-child {
  background: #f5faf6;
}
td.num {
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.mission-card {
  background: #e5f2e9;
  border-color: #cfdfd2;
  padding: 25px;
}
.mission-card h2 {
  font-size: 19px;
  line-height: 1.65;
  color: #224c37;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}
.steps li:first-child {
  padding-top: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--do-bg);
  color: var(--do);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
.steps li strong {
  font-weight: 650;
}
.steps .meta {
  font-size: 11px;
}
.steps li > div:last-child {
  text-align: right;
}
.clause {
  padding: 23px 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  margin: 14px 0;
  border-left: 3px solid #94b8a2;
}
.clause .lvl {
  font-size: 10px;
  color: var(--do);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.clause p {
  font-size: 13px;
  margin: 10px 0;
  line-height: 1.8;
}
.clause .meta {
  font-size: 11px;
}
.clause .risk {
  font-size: 10px;
  color: var(--warn);
  margin-top: 9px;
}
.clause .risk svg {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 4px;
}
.nugget {
  border: 1px solid #dfd3ec;
  background: #faf7fd;
  border-radius: var(--radius);
  padding: 25px;
}
.nugget ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: learn;
}
.nugget ol li {
  counter-increment: learn;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.8;
}
.nugget ol li::before {
  content: counter(learn);
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: #ede4f5;
  color: var(--learn);
  border-radius: 8px;
}
.quiz {
  border: 0;
  border-top: 1px solid #dfd3ec;
  padding: 20px 0 0;
  margin: 20px 0 0;
}
.quiz legend {
  font-family: var(--font-display);
  font-size: 14px;
  padding-top: 16px;
}
.quiz label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #ded7e7;
  border-radius: 9px;
  margin: 9px 0;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.quiz label:hover {
  background: #f0eaf7;
}
.quiz label:has(input:checked) {
  border-color: var(--learn);
  background: #efe7f7;
}
.quiz input {
  accent-color: var(--learn);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.poster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
.poster p {
  font-size: 12px;
  line-height: 1.8;
}
.qr {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  display: block;
}
.kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.kpi .k {
  padding: 24px 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.kpi .k:first-child {
  background: #e5f2e9;
  border-color: #cfdfd2;
}
.kpi .v {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -1.5px;
  font-weight: 750;
  line-height: 1.3;
  margin-bottom: 11px;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.kpi .u {
  font-size: 11px;
  color: var(--muted);
  min-height: 56px;
  line-height: 1.8;
}
.bar {
  height: 5px;
  background: #e8f0ea;
  border-radius: 3px;
  margin-top: 17px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #7db394;
  border-radius: 3px;
}
.gate .layout {
  grid-template-columns: 1fr;
  min-height: calc(100vh - 240px);
}
.gate .record {
  display: none;
}
.gate .rail-label,
.gate .journey-progress {
  display: none;
}
.gate .rail-note {
  margin-top: 0;
}
.gate-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 50px;
  align-items: center;
  padding: 42px 20px 50px;
  max-width: 1100px;
  margin: 0 auto;
}
.gate-story .gate-eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 650;
  color: var(--do);
  margin-bottom: 22px;
}
.gate-story h1 {
  font-size: clamp(32px, 3.5vw, 53px);
  line-height: 1.25;
  letter-spacing: -2px;
  white-space: pre-line;
  margin: 0 0 22px;
}
.gate-story p {
  max-width: 350px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.gate-flow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
}
.gate-flow .mod {
  margin: 0;
}
.gate-flow > span:not(.mod) {
  font-size: 12px;
  color: #72947f;
}
.gate-orbit {
  width: 145px;
  height: 145px;
  margin-top: 34px;
  border: 1px solid #c5ddd0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle, #ddefe3 0%, #f1f6f4 70%);
}
.gate-orbit::before,
.gate-orbit::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #86b79a;
  border: 3px solid var(--bg);
  border-radius: 50%;
  position: absolute;
  left: 8px;
  top: 30px;
}
.gate-orbit::after {
  left: auto;
  right: 8px;
  top: auto;
  bottom: 30px;
  background: #a4c6b1;
}
.gate-orbit img {
  width: 105px;
  height: 105px;
  object-fit: contain;
}
.gate-card {
  padding: 33px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px #103c3908;
}
.gate-card h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.8px;
  margin: 21px 0 9px;
}
.gate-card > p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 25px;
}
.gate-card label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 8px;
}
.gate-card input {
  padding: 12px 14px;
  min-height: 47px;
  border: 1px solid #d6e4da;
  border-radius: 9px;
  width: 100%;
  background: #fbfdfb;
  font-size: 13px;
  color: var(--ink);
}
.form-field {
  margin-bottom: 19px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px;
}
.password-wrap button {
  position: absolute;
  right: 3px;
  top: 3px;
  min-height: 41px;
  width: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.password-wrap button:hover {
  background: #eaf1ed;
  box-shadow: none;
}
.gate-card .enter-btn {
  width: 100%;
  margin-top: 8px;
}
.gate-private {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  margin: 18px 0 0;
}
.gate-private svg {
  width: 13px;
  height: 13px;
}
.gate-error {
  color: var(--bad);
  font-size: 11px;
  margin: 12px 0;
}
.gate-error:empty {
  display: none;
}
.gate-card input[aria-invalid="true"] {
  border-color: var(--bad);
}
.status-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rail);
  color: #fff;
  box-shadow: 0 6px 20px #103c3920;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 12px;
  max-width: calc(100vw - 32px);
  z-index: 30;
}
.status-message:empty {
  display: none;
}
.status-message button {
  color: #fff;
  border-color: #547d6d;
  margin-left: 12px;
  font-size: 11px;
  min-height: 34px;
  padding: 6px 10px;
}
.status-message button:hover {
  background: #285d4c;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 500px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 80px #103c3930;
}
dialog::backdrop {
  background: #103c3966;
}
dialog h2 {
  font-size: 23px;
  margin: 0 0 12px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 1700px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    max-width: 1500px;
    margin: auto;
    padding: 40px 48px;
  }
  main h1 {
    font-size: 38px;
  }
  .record {
    padding: 25px;
  }
  .record li {
    font-size: 12px;
  }
  .card {
    padding: 28px;
  }
  .ai p {
    font-size: 15px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 25px;
  }
  .record {
    position: static;
  }
  .record ol:not(:has(.empty-record)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .record .empty-record {
    text-align: left;
    padding: 12px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 15px;
  }
  .empty-record .empty-icon {
    grid-row: span 2;
    margin: 0;
  }
  .top {
    padding: 16px 25px;
  }
  .banner {
    margin-inline: 25px;
  }
  .context-bar {
    padding-inline: 25px;
  }
  .gate-stage {
    gap: 30px;
    padding-inline: 0;
  }
  .gate-story h1 {
    font-size: 37px;
  }
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .rail {
    padding: 24px 10px;
  }
  .name {
    font-size: 25px;
  }
  .brand {
    padding-inline: 10px;
    gap: 8px;
  }
  .logo {
    width: 36px;
    height: 36px;
  }
  .logo img {
    width: 33px;
    height: 33px;
  }
  .workspace-card {
    padding: 10px 9px;
    gap: 8px;
  }
  .workspace-card div > span {
    font-size: 9px;
  }
  .side a {
    font-size: 12px;
    padding: 11px 9px;
    gap: 8px;
  }
  .side small {
    font-size: 9px;
  }
  .rail-label {
    font-size: 9px;
    margin-inline: 10px;
    letter-spacing: 1px;
  }
  .rail-bottom {
    padding-inline: 10px;
  }
  .top-context {
    font-size: 11px;
  }
  .top-context > span:first-child {
    display: none;
  }
  .context-divider {
    display: none;
  }
  .top {
    gap: 9px;
  }
  .layout {
    padding: 24px 20px;
  }
  .context-bar {
    padding-inline: 20px;
  }
  .banner {
    margin-inline: 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .gate-stage {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 5px;
  }
  .gate-story h1 {
    font-size: 34px;
  }
  .gate-story .gate-orbit {
    display: none;
  }
  .gate-story p {
    max-width: none;
  }
  .gate-card {
    max-width: 440px;
    width: 100%;
  }
  .gate .layout {
    min-height: 0;
  }
  .gate-story .gate-flow {
    margin-top: 18px;
  }
}
@media (max-width: 640px) {
  html {
    scrollbar-gutter: auto;
  }
  .app-shell {
    display: block;
  }
  .rail {
    position: relative;
    height: auto;
    padding: 16px 16px 0;
    overflow: visible;
  }
  .brand {
    margin-bottom: 16px;
    padding: 0;
    width: max-content;
  }
  .name {
    font-size: 27px;
  }
  .workspace-card,
  .rail-label,
  .rail-bottom {
    display: none;
  }
  .side ol {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-color: #779787 #1b4841;
  }
  .side li {
    flex-shrink: 0;
    margin: 0;
  }
  .side a {
    padding: 10px 11px;
    min-height: 46px;
    gap: 8px;
    font-size: 12px;
  }
  .side .num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 10px;
  }
  .side small {
    display: none;
  }
  .top {
    padding: 12px 16px;
    min-height: 67px;
    gap: 10px;
  }
  .top-context {
    font-size: 11px;
  }
  .controls {
    gap: 6px;
  }
  .controls #reset {
    font-size: 10px;
    padding: 9px 10px;
  }
  .controls select {
    font-size: 11px;
    padding: 8px 6px;
  }
  .context-bar {
    padding: 14px 16px 0;
    gap: 7px;
  }
  .ctx {
    font-size: 10px;
  }
  .tag {
    font-size: 9px;
  }
  .banner {
    margin: 12px 16px 0;
    font-size: 10px;
    padding: 11px 12px;
  }
  .layout {
    padding: 24px 16px 28px;
    gap: 25px;
  }
  main h1 {
    font-size: 28px;
    letter-spacing: -0.85px;
    line-height: 1.4;
    margin-top: 14px;
  }
  .who {
    margin-bottom: 23px;
  }
  .card {
    padding: 19px;
    margin: 16px 0;
    border-radius: 13px;
  }
  .ask textarea {
    font-size: 14px;
  }
  .ask button {
    width: 100%;
  }
  .step-indicator {
    font-size: 9px;
  }
  .screen-eyebrow .meta {
    font-size: 9px;
  }
  .mod {
    font-size: 9px;
    padding: 4px 7px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .kpi {
    gap: 10px;
  }
  .kpi .k {
    padding: 20px 15px;
  }
  .kpi .v {
    font-size: 29px;
  }
  .kpi .u {
    font-size: 10px;
    min-height: 75px;
  }
  .prov {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
  .status {
    width: fit-content;
    grid-row: auto;
  }
  .steps li {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 10px;
  }
  .steps li > div:last-child {
    grid-column: 2;
    text-align: left;
    display: flex;
    gap: 15px;
  }
  .steps li > div:last-child br {
    display: none;
  }
  .nugget {
    padding: 20px;
  }
  .poster {
    grid-template-columns: 1fr 64px;
    gap: 13px;
  }
  .qr {
    width: 64px;
    height: 64px;
  }
  .row > button {
    flex-grow: 1;
  }
  .screen-bottom > span {
    max-width: 145px;
    text-align: right;
  }
  .record ol:not(:has(.empty-record)) {
    grid-template-columns: 1fr;
  }
  .record {
    padding: 20px;
  }
  .foot {
    padding: 18px 16px;
  }
  .gate .rail {
    padding-bottom: 16px;
  }
  .gate .brand {
    margin-bottom: 0;
  }
  .gate .top-context {
    display: none;
  }
  .gate .top {
    justify-content: flex-end;
  }
  .gate-stage {
    padding: 7px 0 20px;
    gap: 28px;
  }
  .gate-story h1 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }
  .gate-card {
    padding: 26px;
    max-width: none;
  }
  .gate-story .gate-eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .gate-story p {
    font-size: 12px;
  }
  .gate-flow {
    gap: 7px;
  }
  .table-card {
    padding: 0;
  }
  .status-message {
    font-size: 11px;
    width: calc(100% - 32px);
    text-align: center;
  }
  .status-message button {
    display: block;
    margin: 8px auto 0;
  }
  .clause {
    padding: 20px;
  }
  .record-intro {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  } /* Required accessibility override for all shared motion. */
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .side a[aria-current="step"] {
    outline: 2px solid Highlight;
  }
  .bar span,
  .progress-track span {
    background: Highlight;
  }
  .logo {
    border: 1px solid CanvasText;
  }
  .chip,
  .mod {
    border: 1px solid CanvasText;
  }
}
