@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #f3f5fa;
  --surface: #ffffff;
  --text: #15233b;
  --muted: #4b5f7e;
  --line: #d4def0;
  --accent: #294ff0;
  --accent-hover: #193cd0;
  --on-accent: #ffffff;
  --soft: #e7edff;
  --warn: #875000;
  --warn-bg: #fff4df;
  --error: #a52b35;
  --error-bg: #fff0f1;
  --focus: #294ff0;
  --radius: 14px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  font-family:
    "Hanken Grotesk",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 5;
  padding: 12px;
  background: var(--surface);
}
.skip:focus {
  top: 8px;
}
.topbar {
  height: 76px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1536px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 4px;
  transform: rotate(-8deg);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px 3px;
  border-radius: 1px;
  background: var(--on-accent);
}
.topbar-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}
.topbar-meta a {
  color: var(--muted);
}
.read-only-label {
  color: var(--muted);
}
.app-shell {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 32px;
  width: min(1536px, 100%);
  margin: auto;
  padding: 28px 24px 24px;
  align-items: start;
}
.app-content {
  min-width: 0;
}
.section-nav {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.nav-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 12px 12px;
}
.nav-secondary {
  margin-top: 24px;
}
.section-nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.section-nav a:hover,
.section-nav a[aria-current="location"] {
  background: var(--soft);
  color: var(--accent);
}
.nav-step {
  font-size: 12px;
  width: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.nav-note {
  border-top: 1px solid var(--line);
  padding: 20px 12px 0;
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.8;
}
.workspace-context {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.mode-label {
  font-weight: 650;
  color: var(--accent);
}
.example-banner {
  background: var(--soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.example-banner strong {
  color: var(--accent);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
p {
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 20px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 14px;
  margin: 0;
}
.revision {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.overview > div {
  padding: 22px 24px;
  min-width: 0;
}
.overview > div + div {
  border-left: 1px solid var(--line);
}
.overview dt {
  font-size: 13px;
}
.overview dd {
  max-width: none;
  text-align: left;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  margin: 10px 0 8px;
  overflow-wrap: anywhere;
}
.overview .overview-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  margin: 0;
}
.next-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 4px 0 28px;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.next-step h2 {
  font-size: 19px;
  margin-bottom: 6px;
}
.next-step p {
  font-size: 13px;
  max-width: 65ch;
  margin: 0;
}
.next-step > .button {
  flex-shrink: 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  align-items: start;
  gap: 24px;
}
.review-column {
  min-width: 0;
}
section {
  scroll-margin-top: 24px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
section > p,
.integration-body > p {
  font-size: 14px;
  margin-bottom: 20px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
summary {
  cursor: pointer;
  min-height: 44px;
  font-size: 14px;
}
.integration {
  padding: 0;
}
.integration > details > summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.integration > details > summary {
  position: relative;
  padding-right: 44px;
}
.integration > details > summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 27px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
.integration > details[open] > summary::after {
  transform: rotate(225deg);
}
.integration h2 {
  font-size: 16px;
  margin: 0;
}
.integration-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.integration-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--line);
}
.integration-body > p:first-child {
  padding-top: 20px;
}
.record {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: clip;
}
.record > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.record > summary:focus-visible {
  outline-offset: -4px;
  border-radius: 8px;
}
.record > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  justify-self: center;
}
.record[open] > summary::after {
  transform: rotate(225deg);
}
.record > summary:hover {
  background: var(--bg);
}
.record-main {
  min-width: 0;
}
.record-title {
  display: block;
  font-weight: 650;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.record-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.record-right {
  text-align: right;
  min-width: 0;
  max-width: 200px;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.record-right > .amount {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 4px;
}
.record-body {
  border-top: 1px solid var(--line);
  padding: 20px 16px;
}
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 550;
  padding: 4px 8px;
  border-radius: 5px;
  line-height: 1.5;
}
.good {
  color: var(--accent);
  background: var(--soft);
}
.warning {
  color: var(--warn);
  background: var(--warn-bg);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.field {
  margin-bottom: 20px;
  min-width: 0;
}
.field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
input[type="text"],
textarea,
select {
  display: block;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  min-height: 46px;
  caret-color: var(--accent);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}
small:empty {
  display: none;
}
[aria-invalid="true"] {
  border-color: var(--error);
}
[aria-invalid="true"] + small {
  color: var(--error);
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
button:disabled,
button[aria-busy="true"] {
  opacity: 0.65;
  cursor: wait;
}
button.quiet,
.quiet-link {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--line);
}
button.quiet:hover,
.quiet-link:hover {
  color: var(--accent);
  background: var(--soft);
}
button.danger {
  color: var(--error);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  margin: 16px 0 20px;
  cursor: pointer;
  min-height: 40px;
}
.check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 2px 0 0;
}
.terms-summary {
  font-size: 16px;
  padding: 12px 0;
  font-weight: 600;
}
.terms-summary > span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.terms-body {
  padding-top: 20px;
}
.closeout {
  position: sticky;
  top: 24px;
  scroll-margin-top: 24px;
  min-width: 0;
}
.closeout-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.closeout-panel h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.closeout-panel > .eyebrow {
  margin-bottom: 10px;
}
.proposal {
  margin: 24px 0 20px;
  padding: 20px;
  background: var(--soft);
  border-radius: 10px;
}
.proposal h3 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.proposal-amount {
  color: var(--text);
  font-weight: 650;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.proposal > p:last-child {
  font-size: 12px;
  margin-bottom: 0;
}
.calculation {
  border-block: 1px solid var(--line);
  margin-bottom: 24px;
}
.calculation > summary {
  padding-block: 12px;
  color: var(--muted);
  font-size: 13px;
}
.totals {
  margin: 12px 0 20px;
}
.totals > div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 14px 0;
}
.totals > div:last-child {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  font-weight: 600;
}
dt {
  color: var(--muted);
  font-size: 12px;
}
dd {
  margin: 0;
  text-align: right;
  flex-shrink: 0;
  max-width: 55%;
  overflow-wrap: anywhere;
}
.reconciled,
.small {
  font-size: 12px;
}
.blockers {
  margin: 12px 0 24px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.blockers li {
  margin: 12px 0;
  padding-left: 2px;
}
.closeout .button {
  width: 100%;
  margin-top: 12px;
}
.closeout .small {
  margin: 12px 0 0;
}
.notice,
.error,
.empty {
  padding: 16px;
  border-radius: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.notice {
  color: var(--accent);
  background: var(--soft);
}
.error {
  color: var(--error);
  background: var(--error-bg);
  margin-bottom: 20px;
}
.empty {
  color: var(--muted);
  background: var(--bg);
}
footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
footer p {
  font-size: 12px;
}
footer > form {
  margin-bottom: 20px;
}
#saved-work > details > summary {
  color: var(--accent);
  font-weight: 550;
}
#saved-work .terms-body > form,
#saved-work .terms-body > details {
  margin-bottom: 28px;
}
#saved-work h3 {
  margin-top: 28px;
}
#saved-work .terms-body > details > summary {
  padding-block: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --surface: #131f30;
    --text: #eaf0ff;
    --muted: #b6c7e3;
    --line: #2e415a;
    --accent: #a4c1ff;
    --accent-hover: #c6d7ff;
    --on-accent: #14243d;
    --soft: #1e2e48;
    --warn: #f5d18b;
    --warn-bg: #443620;
    --error: #ffb5bf;
    --error-bg: #452832;
    --focus: #a4c1ff;
  }
}
@media (max-width: 1199px) {
  .app-shell {
    display: block;
    max-width: 1160px;
  }
  .section-nav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 20px;
    gap: 4px;
    scrollbar-width: thin;
  }
  .section-nav a {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .nav-label,
  .nav-note {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 308px;
    gap: 20px;
  }
  .closeout-panel {
    padding: 20px;
  }
  .overview > div {
    padding: 20px;
  }
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .closeout {
    position: static;
  }
  .closeout-panel {
    padding: 24px;
  }
  .page-heading {
    flex-direction: column;
    gap: 8px;
  }
  .revision {
    margin: 0;
  }
  .next-step {
    align-items: flex-start;
  }
  .overview > div {
    padding: 18px 16px;
  }
  .overview dd {
    font-size: 23px;
  }
  .overview .overview-hint {
    font-size: 12px;
  }
}
@media (max-width: 540px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .wordmark {
    font-size: 17px;
    gap: 8px;
  }
  .read-only-label {
    display: none;
  }
  .topbar-meta {
    font-size: 12px;
  }
  .app-shell {
    padding: 16px;
  }
  .workspace-context {
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .example-banner {
    font-size: 12px;
    padding: 12px;
    margin-bottom: 24px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .overview {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 24px;
  }
  .overview > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 16px;
    padding: 16px;
    align-items: center;
  }
  .overview > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .overview dd {
    text-align: right;
    font-size: 24px;
    margin: 0;
  }
  .overview .overview-hint {
    grid-column: 1/-1;
    text-align: left;
    font-size: 12px;
  }
  .next-step {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
  }
  section {
    padding: 20px 16px;
  }
  .integration {
    padding: 0;
  }
  .integration > details > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 20px 16px;
  }
  .integration-body {
    padding: 0 16px 20px;
  }
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  input[type="text"],
  textarea,
  select {
    font-size: 16px;
  }
  .record > summary {
    grid-template-columns: minmax(0, 1fr) 12px;
    gap: 8px 12px;
    padding: 16px 12px;
  }
  .record > summary::after {
    grid-column: 2;
    grid-row: 1;
  }
  .record-right {
    grid-column: 1/-1;
    display: flex;
    text-align: left;
    max-width: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .record-right > .amount {
    margin: 0;
  }
  .record-right .status {
    flex-shrink: 0;
  }
  .record-body {
    padding: 20px 12px;
  }
  .closeout-panel {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button {
    transition:
      background-color 140ms ease,
      transform 140ms var(--ease);
  }
  button:active,
  .button:active {
    transform: scale(0.98);
  }
  .section-nav a {
    transition:
      background-color 140ms ease,
      color 140ms ease;
  }
}
/* Customer review workflow: create, enter records, review and export. */
.start-shell {
  max-width: 1000px;
  margin: auto;
  padding: 48px 24px;
}
.start-intro {
  font-size: 17px;
  line-height: 1.65;
  max-width: 66ch;
}
.start-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.start-choices section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}
.start-choices h2 {
  font-size: 25px;
}
.start-choices .button {
  margin-top: auto;
}
.start-choices .small {
  margin: 16px 0 0;
}
.resume-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}
.resume-row h2 {
  font-size: 19px;
}
.resume-row p {
  font-size: 14px;
  margin: 0;
}
.resume-row .button {
  flex-shrink: 0;
}
.demo-disclosure {
  background: var(--soft);
  color: var(--text);
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 24px;
}
.flow-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 0 0 32px;
}
.flow-progress a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
}
.flow-progress a[aria-current="step"] {
  color: var(--accent);
  background: var(--soft);
  font-weight: 650;
}
.flow-progress a:hover {
  text-decoration: underline;
}
.flow-progress span {
  font-variant-numeric: tabular-nums;
}
.story-step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.story-step h1 {
  font-size: clamp(28px, 4vw, 42px);
}
.story-step > p {
  font-size: 16px;
  line-height: 1.7;
}
.story-facts {
  margin: 28px 0;
  padding: 20px;
  background: var(--bg);
  border-radius: 10px;
}
.story-facts p:last-child {
  margin-bottom: 0;
}
.example-document,
.demo-result {
  background: var(--soft);
  padding: 24px;
  border-radius: 10px;
  margin: 24px 0;
}
.example-document dl > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.example-document dd {
  max-width: none;
  text-align: left;
  font-size: 15px;
}
.story-number {
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.flow-actions {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 16px;
}
.guided .app-shell {
  display: block;
  max-width: 980px;
  padding-top: 36px;
}
.guided .section-nav,
.guided .workspace-context,
.guided .page-heading,
.guided .overview,
.guided .next-step,
.guided footer {
  display: none;
}
.guided .workspace {
  display: block;
}
.guided .review-column > section,
.guided .closeout {
  display: none;
}
.guided[data-step="source"] #near-check,
.guided[data-step="terms"] #terms,
.guided[data-step="payments"] #payments,
.guided[data-step="commitments"] #commitments,
.guided[data-step="scope"] #coverage,
.guided[data-step="result"] .closeout {
  display: block;
}
.guided[data-step="source"] .example-banner {
  display: none;
}
.guided .closeout {
  position: static;
}
.guided[data-step="result"] .review-column {
  display: none;
}
.guide-heading {
  margin-bottom: 24px;
}
.guide-heading .flow-progress {
  margin-block: 20px;
}
.guide-state {
  padding: 16px;
  background: var(--soft);
  color: var(--text);
  font-size: 14px;
  border-radius: 8px;
}
.guide-sample {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}
.guide-sample p {
  font-size: 13px;
  margin: 10px 0 0;
}
.guided .integration > details > summary {
  cursor: default;
}
@media (max-width: 650px) {
  .start-shell {
    padding: 28px 16px;
  }
  .start-choices {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .start-choices section,
  .story-step {
    padding: 24px 20px;
  }
  .resume-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .flow-progress {
    gap: 4px;
  }
  .flow-progress a {
    padding-inline: 8px;
    font-size: 12px;
  }
  .flow-actions {
    flex-wrap: wrap;
  }
  .example-document,
  .demo-result {
    padding: 20px 16px;
  }
  .example-document dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .guided .app-shell {
    padding-top: 24px;
  }
}
.dashboard-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.dashboard-totals > div {
  min-width: 0;
}
.dashboard-totals dd {
  max-width: none;
  text-align: left;
  font-size: 23px;
  font-weight: 650;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.review-card h2 {
  font-size: 26px;
  overflow-wrap: anywhere;
}
#create-form {
  max-width: 650px;
}
@media (max-width: 540px) {
  .dashboard-totals {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .dashboard-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }
  .dashboard-totals dd {
    font-size: 20px;
    margin: 0;
    text-align: right;
  }
}
@media print {
  .topbar,
  .section-nav,
  button,
  .button,
  .skip,
  footer,
  .next-step {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .app-shell,
  .workspace {
    display: block;
  }
  .closeout {
    position: static;
  }
  section {
    break-inside: avoid;
  }
}

/* Receipt facts use the existing review workspace's tokens; they are not editable evidence claims. */
.chain-facts {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.chain-facts > p {
  font-size: 13px;
  margin: 10px 0;
}
.chain-facts dl > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  margin: 10px 0;
}
.chain-facts dd {
  max-width: none;
  text-align: left;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.chain-facts code,
.source-details code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.source-details {
  margin-top: 18px;
}
.source-details summary {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}
.source-details p {
  font-size: 13px;
  margin: 8px 0;
}
input[readonly] {
  background: var(--soft);
}
input[type="file"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 8px 0;
  font: inherit;
  font-size: 14px;
}
input[type="file"]::file-selector-button {
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.quiet-link {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--line);
}
@media (max-width: 460px) {
  .chain-facts dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}
