@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("jakarta.7660bd9909fb.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("jakarta-ext.341687eeeb6a.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F;
}

:root {
  color-scheme: light;
  font: 500 100%/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
  --ink: #002c2b;
  --dark: #0d3b36;
  --brand: #224f46;
  --orange: #ff5c1b;
  --paper: #f2f7f5;
  --mint: #deece8;
  --line: #d8e6e0;
  --muted: #4d6760;
  --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--paper); min-width: 290px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.035em; font-weight: 800; }
h1 { font-size: clamp(1.85rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.18rem, 2.2vw, 1.48rem); }
h3 { font-size: 1.04rem; }
address { font-style: normal; }
a { color: #18584d; text-underline-offset: 3px; }
a:hover { color: #942900; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid #c13d04; outline-offset: 3px; }
.container { width: min(1300px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 3; padding: .5rem; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.masthead { background: #dae9e7; border-bottom: 1px solid #ccded7; }
.masthead-inner { min-height: 4.7rem; display: flex; align-items: center; gap: 2rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 179px; height: auto; }
.masthead-label { margin-left: auto; font-weight: 750; color: var(--brand); }
.global-nav { display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.global-nav a { text-decoration: none; color: var(--ink); font-weight: 750; font-size: .9rem; }
.global-nav a:hover { text-decoration: underline; }
.user-menu { position: relative; margin-left: auto; font-size: .88rem; }
.user-menu summary { cursor: pointer; font-weight: 800; padding: .4rem .65rem; overflow-wrap: anywhere; }
.menu-items { display: grid; gap: .5rem; position: absolute; top: calc(100% + .25rem); right: 0; background: var(--white); z-index: 2; min-width: 12rem; border: 1px solid var(--line); border-radius: .6rem; padding: .85rem; box-shadow: 0 7px 22px #17382c18; }
.menu-items > span { color: var(--muted); }
.main { padding-block: 1.6rem 2rem; min-height: 70vh; }
.footer { border-top: 1px solid var(--line); padding-block: 1rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; }
.dark-panel {
  color: var(--white);
  background: var(--dark) linear-gradient(90deg, #09382f 15%, #254e4640 86%);
  border-radius: .95rem;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
.dark-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("brand-pattern.a5f9c11c6cf8.svg") right 13% center / auto 210% no-repeat;
  opacity: .28;
}
.dark-panel p { color: #e0eeea; }
.page-hero, .case-hero { padding: clamp(1.4rem, 4vw, 2.45rem); margin-bottom: 1.25rem; }
.page-hero p, .hero-message { max-width: 60ch; margin-top: .55rem; }
.hero-with-action, .case-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.case-hero h1 { font-size: clamp(1.65rem, 4vw, 2.65rem); }
.case-number { font-size: .9rem; font-weight: 800; letter-spacing: .045em; margin-bottom: .25rem; }
.inline-status { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; font-size: .88rem; }
.hero-actions, .button-group, .form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.65rem;
  border-radius: .45rem;
  padding: .45rem .8rem;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  font-size: .89rem;
  cursor: pointer;
}
.button.primary { color: #222719; background: var(--orange); border-color: var(--orange); }
.button.primary:hover { background: #ff783f; }
.button.secondary { color: #15493d; background: #edf5f0; border-color: #d5e6dd; }
.button.secondary:hover { background: #e0eee6; }
.button.on-dark { background: #ffffff12; color: var(--white); border-color: #cedfd390; }
.button.on-dark:hover { background: #ffffff30; }
.button:disabled { opacity: .65; cursor: wait; }
.text-button { background: transparent; border: 0; color: #19594b; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
.text-button:hover { color: #942900; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: .8rem; padding: clamp(1rem, 2.4vw, 1.55rem); margin-bottom: 1rem; box-shadow: 0 3px 14px #28493408; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .85rem; }
.section-head > a { font-size: .91rem; font-weight: 750; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.metrics-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { display: grid; gap: .16rem; align-content: start; min-width: 0; border: 1px solid var(--line); border-top: 3px solid #6c9f8f; background: var(--white); border-radius: .65rem; padding: .75rem 1rem 1rem; }
.metric-accent { border-top-color: var(--orange); }
.metric > span { color: var(--muted); font-weight: 750; font-size: .9rem; }
.metric strong { font-size: clamp(1.45rem, 4vw, 2.2rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric .metric-detail { font-weight: 500; font-size: .85rem; }
.badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; background: #e9f2ed; color: #225b4d; border-radius: .35rem; padding: .18rem .5rem; font-weight: 800; line-height: 1.35; font-size: .86rem; }
.badge.waiting, .badge.stage-documents, .badge.stage-signing { color: #803310; background: #ffeddf; }
.badge.stage-closed { color: #5c514e; background: #eeebe9; }
.badge.complete, .badge.stage-completed, .badge.stage-approved { color: #175948; background: #dceee5; }
.status-text { display: inline-flex; align-items: center; gap: .33rem; font-size: .88rem; font-weight: 800; white-space: nowrap; color: var(--muted); }
.status-text.complete { color: #196453; }
.status-text.complete::before { content: "✓"; }
.status-text.missing, .status-text.todo { color: #9a3313; }
.status-text.missing::before { content: "×"; font-size: 1.22rem; line-height: 1; }
.status-text.review { color: #805215; }
.status-text.review::before { content: "◷"; }
.row-meta { display: block; color: var(--muted); font-size: .86rem; font-weight: 550; margin-top: .14rem; overflow-wrap: anywhere; }
.no-wrap { white-space: nowrap; }
.case-link { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: #71958a; }
.case-link:hover { color: #942900; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .91rem; }
th, td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { white-space: nowrap; color: var(--muted); font-size: .84rem; font-weight: 800; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th[scope=row] { min-width: 9rem; }
.table-actions, .document-actions { white-space: nowrap; }
.table-actions a, .table-actions form, .document-actions a, .document-actions form { display: inline-block; margin-right: .5rem; }
.table-actions a:last-child, .table-actions form:last-child, .document-actions a:last-child, .document-actions form:last-child { margin-right: 0; }
.empty { color: var(--muted); padding: .7rem .4rem; }
.filters { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .85rem; }
.filters label { font-size: .88rem; font-weight: 800; }
.filters label > * { display: block; margin-top: .28rem; }
.filters input { width: min(100%, 21rem); min-width: 12rem; }
.filters select { max-width: 100%; }
.filters .subtle-link { align-self: center; margin: 0; padding-top: 1.25rem; }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; color: var(--muted); margin-top: 1rem; }
.back-link { display: inline-block; margin-bottom: .7rem; font-size: .91rem; font-weight: 750; }
.back-link::before { content: "‹"; padding-right: .35rem; }
.case-layout { display: grid; grid-template-columns: 13.4rem minmax(0, 1fr); gap: 1rem; }
.case-rail { align-self: start; padding: .6rem; border-radius: .75rem; border: 1px solid var(--line); background: var(--white); }
.case-nav { display: grid; gap: .15rem; }
.case-nav a { border-left: 3px solid transparent; padding: .5rem .58rem; border-radius: .27rem; text-decoration: none; color: var(--brand); font-size: .9rem; font-weight: 750; }
.case-nav a[aria-current], .case-nav a:hover { background: var(--mint); border-left-color: var(--orange); color: var(--ink); }
.rail-status { display: grid; gap: .1rem; color: var(--muted); font-size: .84rem; padding: .7rem .55rem .15rem; margin-top: .45rem; border-top: 1px solid var(--line); }
.jump-nav { display: flex; gap: .65rem 1.4rem; flex-wrap: wrap; margin: 0 0 1rem; font-size: .93rem; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr); gap: 1rem; }
.meeting-card { align-self: start; }
.meeting-card p, .meeting-card address { margin-top: .5rem; }
.meeting-card .button { margin-top: .75rem; }
.meeting-time { font-size: clamp(1.38rem, 2.8vw, 1.8rem); font-weight: 800; color: var(--brand); letter-spacing: -.025em; margin-top: .35rem; }
.meeting-contact { overflow-wrap: anywhere; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); list-style: none; margin: 0; padding: .35rem 0 .15rem; }
.timeline li { display: grid; align-content: start; gap: .46rem; position: relative; min-width: 0; padding-right: .65rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; top: .86rem; left: 0; width: 100%; height: 2px; background: var(--line); }
.timeline-marker { z-index: 1; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #edf3ef; color: #536c61; border: 1px solid #d6e4db; font-size: .8rem; font-weight: 800; }
.timeline-complete .timeline-marker { background: #276452; color: white; border-color: #276452; }
.timeline-active .timeline-marker { background: var(--orange); color: #162921; border-color: var(--orange); }
.timeline-label { color: var(--muted); font-size: .82rem; line-height: 1.35; font-weight: 700; }
.timeline-active .timeline-label { color: var(--ink); font-weight: 800; }
.timeline-label time { display: block; margin-top: .22rem; font-size: .8rem; font-weight: 550; }
.simple-list, .check-list, .document-list, .event-list { list-style: none; padding: 0; margin: 0; }
.simple-list li, .check-list li, .document-list li, .event-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.simple-list li:last-child, .check-list li:last-child, .document-list li:last-child, .event-list li:last-child { border-bottom: 0; }
.check-list li > div, .document-list li > div { min-width: 0; overflow-wrap: anywhere; }
.check-list .status-text { padding-top: .13rem; }
.check-note { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.document-group + .document-group { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.document-group h3 { margin-bottom: .15rem; }
.document-actions { font-size: .87rem; font-weight: 750; }
.history { margin-top: .75rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.history summary { font-weight: 800; color: var(--brand); cursor: pointer; }
.event-list { margin-top: .75rem; }
.event-list li > span { color: var(--muted); font-size: .85rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(19rem, 1fr); gap: 1.2rem; max-width: 73rem; margin: .5rem auto; }
.login-layout .card { margin: 0; }
.login-intro { padding: clamp(1.4rem, 5vw, 3.75rem); display: grid; align-content: center; min-height: 18rem; }
.login-intro p { margin-top: .65rem; max-width: 37ch; }
.form-page { max-width: 52rem; margin: 0 auto; }
.form-card h1 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
.form-card > p { margin-top: .4rem; }
.form-card > .button { margin-top: .65rem; }
.narrow { max-width: 44rem; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; margin-top: .85rem; }
.form-grid.single-column { grid-template-columns: 1fr; }
.form-actions, .form-grid > .errorlist, .field-wide { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, .field legend { font-weight: 780; font-size: .94rem; }
.field label:not(.check-label) { display: block; margin-bottom: .25rem; }
.field fieldset { border: 1px solid var(--line); border-radius: .45rem; padding: .5rem; margin: 0; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; }
input:not([type=checkbox]), select, textarea {
  color: var(--ink); background: #fafdfe; border: 1px solid #c5d9d0; border-radius: .44rem;
  min-height: 2.55rem; padding: .45rem .55rem; max-width: 100%; font-weight: 500; font-size: 1rem;
}
textarea { resize: vertical; }
input[type=checkbox] { accent-color: #21634f; width: 1rem; height: 1rem; vertical-align: middle; }
input[type=file] { background: #f4f8f6; border-style: dashed; }
.field-help { color: var(--muted); font-size: .87rem; margin-top: .21rem; }
.errorlist { color: #8b240c; font-size: .9rem; padding-left: 1.2rem; margin: .25rem 0; }
[aria-invalid=true] { border-color: #b53616 !important; }
.subtle-link { display: inline-block; font-size: .88rem; font-weight: 700; margin-top: .8rem; }
.summary-data { display: grid; gap: .5rem; margin: .8rem 0 1rem; }
.summary-data > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .35rem; padding-top: .42rem; border-top: 1px solid var(--line); }
.summary-data dt { color: var(--muted); font-weight: 700; }
.summary-data dd { margin: 0; overflow-wrap: anywhere; }
.summary-data.distributed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-data.distributed > div { grid-template-columns: 1fr; }
.line { display: block; }
.demo-notice, .flash { margin-bottom: .85rem; padding: .58rem .78rem; color: #3b542e; background: #edf4e6; border: 1px solid #dbe6d2; border-radius: .44rem; font-size: .9rem; }
.demo-notice { background: #fff2df; color: #684813; border-color: #f4dfb8; }
.flash.error, .flash.warning { background: #fff0e7; color: #782715; border-color: #f4d8c3; }
.muted { color: var(--muted); }
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem 0; }
  .timeline li:nth-child(5n)::before { display: none; }
}
@media (max-width: 880px) {
  .container { width: calc(100% - 36px); }
  .global-nav { gap: .7rem; }
  .masthead-inner { gap: .8rem 1rem; flex-wrap: wrap; }
  .global-nav { order: 3; flex-basis: 100%; }
  .case-layout { grid-template-columns: 1fr; }
  .case-nav { display: flex; flex-wrap: wrap; }
  .case-nav a { padding: .3rem .45rem; }
  .rail-status { display: flex; gap: .35rem; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 24px); }
  .brand img { width: 133px; }
  .user-menu { max-width: 55%; }
  .main { padding-top: .8rem; }
  .hero-with-action, .case-hero { display: grid; align-items: start; }
  .hero-actions { margin-top: .15rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .metric { padding: .55rem .62rem .7rem; }
  .metric-detail { display: none; }
  .detail-grid, .login-layout, .form-grid:not(.single-column) { grid-template-columns: 1fr; }
  .login-intro { min-height: 11rem; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { grid-template-columns: 1.75rem 1fr; align-items: start; padding: 0 0 .45rem; }
  .timeline li:not(:last-child)::before { display: block; top: 0; left: .84rem; width: 2px; height: 100%; }
  .timeline-label { padding-top: .21rem; font-size: .9rem; }
  .summary-data > div, .summary-data.distributed { grid-template-columns: 1fr; }
  .document-list li { flex-wrap: wrap; }
  .document-actions { white-space: normal; }
}

.directory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .85rem;
}
.directory-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--white);
  color: var(--brand);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 780;
}
.directory-tabs a:hover, .directory-tabs a[aria-current] {
  background: var(--mint);
  border-color: #9abcb1;
  color: var(--ink);
}
.directory-tabs a span {
  min-width: 1.4rem;
  padding: .03rem .25rem;
  border-radius: .3rem;
  text-align: center;
  background: var(--paper);
  font-size: .85rem;
}
.account-details .summary-data {
  grid-template-columns: minmax(0, 1fr);
}
.field .choice-search[hidden] { display: none; }
.field .choice-search:not([hidden]) { display: grid; gap: .25rem; }
.choice-search + div {
  padding: .35rem;
  max-height: 15rem;
  overflow-y: auto;
}
