:root {
  color-scheme: light;
  --navy: #132d3d;
  --navy-light: #203f50;
  --cream: #f6f4ee;
  --paper: #fffefb;
  --white: #ffffff;
  --ink: #213a49;
  --muted: #627581;
  --line: #dde3e1;
  --line-strong: #bdcbc9;
  --teal: #287578;
  --teal-dark: #205f62;
  --teal-pale: #eaf3ee;
  --coral: #cb7865;
  --coral-pale: #fcf0e8;
  --gold: #96764a;
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, [role='button'] { cursor: pointer; }
button, a { touch-action: manipulation; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-underline-offset: 4px; }
button svg, a svg { flex-shrink: 0; }
svg { max-width: 100%; vertical-align: middle; }
input, textarea, select { min-width: 0; }
[hidden] { display: none !important; }
::selection { background: #cee7dc; color: var(--navy); }
:focus-visible { outline: 3px solid #a1c3b3; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 14px; transform: translateY(-180%); padding: 11px 18px; border-radius: 5px; background: #d9eee2; color: var(--navy); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }
.demo-banner { padding: 9px 20px; border-bottom: 1px solid #dce4dc; background: #edf2e9; color: #526b62; font-size: 11px; line-height: 1.7; text-align: center; letter-spacing: .05px; }
.demo-banner strong { font-weight: 600; }
.demo-banner .badge { margin: 0 8px 0 0; background: #e1eadd; font-size: 9px; }

/* The sidebar is the stable spine of the desktop matter workspace. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 240px; padding: 34px 24px 23px; overflow-y: auto; background: var(--navy); color: #f3f7f4; }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 36px; color: #b5d8cb; font-family: var(--serif); font-size: 34px; line-height: 1; }
.brand-mark svg { width: 31px; height: 36px; }
.brand-name { display: block; color: #f5f8f3; font-size: 23px; font-weight: 500; letter-spacing: -.75px; line-height: 1.1; }
.brand-subtitle { display: block; margin-top: 6px; color: #a0b9c0; font-size: 9px; font-weight: 400; letter-spacing: 2.25px; text-transform: uppercase; line-height: 1.5; }
.side-label { margin: 49px 0 13px 11px; color: #a2b6bc; font-size: 9px; font-weight: 550; letter-spacing: 1.7px; text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; padding: 12px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #acc1c8; font-size: 12px; font-weight: 450; text-align: left; text-decoration: none; transition: color .18s, background .18s, border-color .18s; }
.nav-item svg { width: 18px; height: 18px; color: #8fadb7; stroke-width: 1.5; }
.nav-item:hover { background: #ffffff07; color: #f2f7f2; }
.nav-item[aria-current='page'] { border-color: #ffffff12; background: #ffffff0c; color: #fbfcf7; }
.nav-item[aria-current='page'] svg { color: #b4d5c6; }
.nav-item .badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-color: #829d9c3b; background: #ffffff09; color: #bad2ca; font-size: 9px; }
.side-note { margin-top: auto; padding: 35px 10px 21px; color: #abc0c5; font-size: 11px; line-height: 1.9; }
.side-note > svg { width: 20px; height: 20px; margin-bottom: 11px; color: #b8d8c9; }
.side-note h3, .side-note strong { display: block; margin: 0 0 10px; font-family: var(--serif); color: #eff5ef; font-size: 23px; font-weight: 400; line-height: 1.2; }
.side-note p { margin: 0; }
.side-footer { padding: 18px 10px 0; border-top: 1px solid #ffffff17; color: #a1b9be; font-size: 10px; line-height: 1.9; }
.side-footer .button { padding: 0; min-height: 34px; color: #c1d7d4; justify-content: flex-start; font-size: 11px; }
.side-footer .button:hover { background: transparent; color: #fff; }
.side-footer p { margin: 7px 0 0; }
.sidebar .status-pill { border-color: #ffffff1c; background: #ffffff08; color: #c4d8cb; }

.main { margin-left: 240px; min-width: 0; padding: 0 42px 38px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 85px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #6b7e85; font-size: 11px; }
.breadcrumb svg { width: 13px; height: 13px; color: #78918e; }
.breadcrumb strong, .breadcrumb span:last-child { color: #344e59; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 9px; border: 1px solid #d8e2dc; border-radius: 50px; background: #edf3eb; color: #557461; font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 11px 17px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #425f65; font-size: 12px; font-weight: 550; line-height: 1.5; text-align: center; text-decoration: none; transition: background .18s, border-color .18s, box-shadow .18s; }
.button svg { width: 15px; height: 15px; }
.button.primary, .button-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.button.primary:hover, .button-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); box-shadow: 0 3px 9px #153f3f13; }
.button.secondary, .button-secondary { border-color: #c8d4ce; background: #fffefa; color: #345c5e; }
.button.secondary:hover, .button-secondary:hover { border-color: #8cab9e; background: #f2f7ef; }
.button.ghost, .button-ghost { padding-inline: 7px; color: #56716e; }
.button.ghost:hover, .button-ghost:hover { background: #e9f0e7; color: #284e4b; }
.button.danger { color: #a24e3d; border-color: #dfb7a7; background: #fff9f5; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin: 37px 0 30px; }
.page-heading > div { min-width: 0; }
.eyebrow { margin: 0 0 9px; color: #687f79; font-size: 9px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; line-height: 1.7; }
.eyebrow::before { content: ''; display: inline-block; width: 17px; height: 1px; margin: 0 8px 3px 0; background: #93b7a7; }
.page-heading h1 { margin: 0; color: #233e4e; font-family: var(--serif); font-size: clamp(35px,3.15vw,47px); font-weight: 400; letter-spacing: -.85px; line-height: 1.12; overflow-wrap: anywhere; }
.subtitle { max-width: 660px; margin: 12px 0 0; color: #657a80; font-size: 13px; line-height: 1.8; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex-shrink: 0; padding-bottom: 2px; }
#content { min-width: 0; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: 24px; align-items: start; }
.main-column, .aside-column { display: flex; flex-direction: column; gap: 23px; min-width: 0; }
.card { min-width: 0; padding: 25px 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 15px #173b2f03; }
.card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 19px; }
.card h2, .section-heading h2 { margin: 0; color: #294856; font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -.2px; line-height: 1.22; }
.card > h2 { margin-bottom: 15px; }
.card h3 { margin: 0 0 10px; color: #355461; font-size: 14px; font-weight: 550; line-height: 1.5; }
.card-heading > .muted { font-size: 11px; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.85; }
p.muted { margin: 9px 0 15px; }
.aside-column .card { padding: 24px 22px; }
.aside-column .card h2 { font-size: 24px; }
.aside-column .card-heading { margin-bottom: 16px; }
.inline-link { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0; border: 0; background: transparent; color: #326f70; font-size: 11px; font-weight: 550; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-link:hover { color: #1c4b50; }
.inline-link svg { width: 13px; height: 13px; }

/* The property is a calm, visual anchor for the matter. */
.property-card { display: grid; grid-template-columns: minmax(170px,.9fr) minmax(0,1.3fr); padding: 0; overflow: hidden; }
.property-art { display: grid; place-items: center; min-height: 217px; padding: 16px; background: #e8eee5; color: #537b70; }
.property-art svg { display: block; width: 100%; max-width: 250px; height: auto; }
.property-copy { min-width: 0; padding: 26px 26px 24px; }
.property-copy .eyebrow { margin-bottom: 11px; color: #647f72; font-size: 8px; }
.property-copy .eyebrow::before { display: none; }
.property-copy h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
.property-copy > p { margin: 0 0 12px; color: #657b7b; font-size: 12px; line-height: 1.8; }
.property-price { display: block; margin: 17px 0 7px; color: #2c5355; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.45px; line-height: 1.2; }
.property-price small, .property-price span { font-family: var(--sans); font-size: 11px; color: #657d78; font-weight: 400; letter-spacing: 0; }
.property-copy .badge { padding: 4px 8px; margin-right: 4px; font-size: 9px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fffefb; }
.stat { min-width: 0; padding: 20px 22px 21px; border-right: 1px solid #e1e7e0; }
.stat:last-child { border-right: 0; }
.stat-value { display: block; margin-bottom: 6px; color: #2b575a; font-family: var(--serif); font-size: 32px; line-height: 1; font-weight: 400; }
.stat-value small { font-family: var(--sans); font-size: 11px; }
.stat-label { display: block; color: #647c7b; font-size: 10px; line-height: 1.7; }
.journey { position: relative; display: flex; flex-direction: column; gap: 0; margin: 5px 0 0; }
.journey-step { position: relative; display: flex; align-items: flex-start; gap: 13px; min-height: 64px; padding-bottom: 20px; }
.journey-step:not(:last-child)::after { content: ''; position: absolute; top: 25px; bottom: 0; left: 10px; width: 1px; background: #dce5dd; }
.journey-step:last-child { min-height: 0; padding-bottom: 0; }
.step-dot { z-index: 1; display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; margin-top: 2px; border: 1px solid #d0dcd3; border-radius: 50%; background: #fbfcf8; color: #819489; font-size: 9px; line-height: 1; }
.step-dot svg { width: 11px; height: 11px; }
.step-copy { min-width: 0; }
.step-copy strong, .step-copy .task-title { display: block; color: #6b7e7e; font-size: 11px; font-weight: 500; line-height: 1.7; }
.step-copy p, .step-copy small { display: block; margin: 2px 0 0; color: #6c817f; font-size: 10px; line-height: 1.7; }
.journey-step.is-done .step-dot { border-color: #c5ddca; background: #e7f1e6; color: #447d60; }
.journey-step.is-done .step-copy strong { color: #456e61; }
.journey-step.is-current .step-dot { border-color: #2b7777; background: #2b7777; color: #fff; box-shadow: 0 0 0 4px #edf4eb; }
.journey-step.is-current .step-copy strong { color: #235a5b; font-weight: 600; }
.journey-step.is-current .step-copy p { color: #547c6d; }
.progress-track { width: 100%; height: 5px; overflow: hidden; border-radius: 5px; background: #e8ede5; }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: #598e7c; transition: width .3s; }

/* Action states are named in text as well as distinguished by colour. */
.action-row { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-top: 1px solid #e9ede8; }
.action-row:first-child { border-top: 0; padding-top: 2px; }
.action-row:last-child { padding-bottom: 0; }
.task-check { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; padding: 0; margin-top: 3px; border: 1px solid #b9cfbf; border-radius: 6px; color: #427c67; background: #f7faf3; accent-color: var(--teal); }
input.task-check { cursor: pointer; }
.task-check svg { width: 12px; height: 12px; }
.action-copy { flex: 1 1 auto; min-width: 0; }
.task-title { display: block; margin: 0 0 5px; color: #35555c; font-size: 12px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 3px 0 0; color: #657c79; font-size: 10px; line-height: 1.7; }
.task-meta .status-pill { margin-right: 4px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 4px 8px; border: 1px solid #d7e2d9; border-radius: 50px; background: #eff4ec; color: #59745e; font-size: 9px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.status-pill::before { content: ''; flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-pill.review { border-color: #efd9c5; background: #fcf2e6; color: #8c6435; }
.status-pill.progress { border-color: #cddfe1; background: #eaf3f2; color: #356f72; }
.status-pill.done { border-color: #cfe2cf; background: #edf5e8; color: #4b7952; }
.status-pill.open { border-color: #dbe2df; background: #f2f5f1; color: #60766e; }
.task-list { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; list-style: none; }
.task-row { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 19px 0; border-top: 1px solid #e5ebe5; }
.task-row:first-child { border-top: 0; padding-top: 5px; }
.task-row:last-child { padding-bottom: 3px; }
.task-body { flex: 1 1 auto; min-width: 0; }
.task-row .task-title { font-size: 13px; }
.task-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 5px 0 0; color: #617a79; font-size: 11px; line-height: 1.7; }
.task-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-height: 44px; padding: 10px 12px; border: 1px solid #cfddd3; border-radius: 6px; background: #fffefa; color: #3b7470; font-size: 11px; text-decoration: none; }
.task-open:hover { background: #f1f6eb; border-color: #abc6b2; }
.task-open svg { width: 13px; height: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.search { flex: 1 1 230px; min-width: 0; width: 100%; max-width: 390px; min-height: 44px; padding: 11px 14px; border: 1px solid #cedbd2; border-radius: 6px; background: #fffefa; color: #345c5e; font-size: 12px; }
.search::placeholder { color: #6f8580; }
.search:focus, .select:focus { border-color: #749b88; }
.select { min-height: 44px; padding: 10px 32px 10px 12px; border: 1px solid #cedbd2; border-radius: 6px; background: #fffefa; color: #466a66; font-size: 12px; }
.filter-button { min-height: 44px; padding: 9px 12px; border: 1px solid #d9e2d8; border-radius: 6px; background: #fafcf6; color: #647b71; font-size: 11px; }
.filter-button.active { border-color: #a8c9b3; background: #eaf2e5; color: #375e45; }
.filter-button:hover { border-color: #97b69e; }
.stage-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 6px; border: 1px solid #dce5da; border-radius: 8px; background: #eef2e8; }
.stage-tab { flex: 1 1 auto; min-height: 44px; padding: 10px 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #5d7c70; font-size: 11px; font-weight: 500; text-align: center; }
.stage-tab.active { border-color: #d0ddcf; background: #fffefa; color: #345d50; box-shadow: 0 1px 3px #26432d06; }
.stage-tab:hover { background: #f8fbf3; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 27px 0 17px; }
.section-heading:first-child { margin-top: 0; }
.section-heading > .muted { margin: 0; font-size: 11px; }
.case-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin-top: 17px; }
.fact { min-width: 0; }
.fact dt, .fact > span:first-child, .fact > label { display: block; margin: 0 0 5px; color: #6a817d; font-size: 10px; font-weight: 400; }
.fact dd, .fact > strong { display: block; margin: 0; color: #355c5a; font-size: 12px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.aside-column .case-facts { grid-template-columns: 1fr; gap: 17px; }
.callout { padding: 19px 21px; border: 1px solid #d5e3d4; border-radius: 8px; background: #edf4e8; color: #4c7060; font-size: 12px; line-height: 1.85; }
.callout > h3, .callout > strong { margin: 0 0 6px; color: #395f4f; font-size: 13px; font-weight: 550; }
.callout p { margin: 6px 0 0; }
.callout svg { width: 18px; height: 18px; margin-right: 7px; color: #668c70; }
.notes { margin: 15px 0 0; padding: 0; list-style: none; }
.notes li { position: relative; padding: 0 0 13px 17px; color: #5a7972; font-size: 12px; line-height: 1.8; }
.notes li::before { content: ''; position: absolute; width: 4px; height: 4px; top: 8px; left: 0; border-radius: 50%; background: #8eaf92; }
.notes li:last-child { padding-bottom: 0; }
.notes strong { font-weight: 550; color: #355d53; }
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.document-card { min-width: 0; padding: 23px 20px 19px; border: 1px solid #dce5db; border-radius: 9px; background: #fffefb; }
.document-card h3 { margin: 17px 0 7px; color: #365c59; font-size: 13px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.document-card .status-pill { margin-top: 15px; }
.document-card .button, .document-card .inline-link { margin-top: 12px; }
.doc-icon { display: grid; place-items: center; width: 40px; height: 46px; border: 1px solid #dae6d5; border-radius: 6px; background: #eef5e8; color: #638e74; font-size: 19px; }
.doc-icon svg { width: 23px; height: 26px; }
.document-meta { margin: 0; color: #667f76; font-size: 10px; line-height: 1.8; }
.buyer-hero { padding: 29px 31px; border: 1px solid #d0e0d3; border-radius: 10px; background: #eaf2e7; }
.buyer-hero h1, .buyer-hero h2 { margin: 0 0 13px; color: #2e5751; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.15; letter-spacing: -.5px; }
.buyer-hero p { max-width: 700px; margin: 0; color: #57776c; font-size: 13px; line-height: 1.85; }
.buyer-hero .eyebrow { margin-bottom: 12px; color: #527666; font-size: 9px; }
.buyer-hero .button { margin-top: 21px; }
.buyer-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 23px; margin-top: 25px; align-items: start; }
.buyer-request { display: flex; align-items: flex-start; gap: 13px; padding: 20px 0; border-top: 1px solid #e1e9df; }
.buyer-request:first-child { border-top: 0; padding-top: 3px; }
.buyer-request > svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 2px; color: #6b917a; }
.buyer-request > div { flex: 1; min-width: 0; }
.buyer-request h3 { margin: 0 0 7px; color: #3a645a; font-size: 13px; font-weight: 550; }
.buyer-request p { margin: 0; color: #617e73; font-size: 12px; line-height: 1.8; }
.buyer-request .button { margin-top: 13px; }
.empty-state { padding: 43px 28px; border: 1px dashed #c6d8c4; border-radius: 9px; background: #f6faf0; text-align: center; }
.empty-state h2, .empty-state h3 { margin: 0 0 13px; font-family: var(--serif); font-size: 27px; font-weight: 400; color: #3a6152; }
.empty-state p { max-width: 460px; margin: 0 auto; color: #64806f; font-size: 12px; line-height: 1.8; }
.empty-state .button { margin-top: 19px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 25px; background: #0e233b8c; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 590px; max-height: calc(100dvh - 50px); overflow: auto; border: 1px solid #dbe4dd; border-radius: 11px; background: #fffefa; box-shadow: 0 20px 80px #0b233536; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 27px 18px; }
.modal-header h2 { margin: 0; color: #2e535b; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.3px; line-height: 1.2; }
.modal-header > button { display: grid; place-items: center; flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #dce5dc; border-radius: 50%; background: #f0f5e9; color: #628374; font-size: 22px; }
.modal-body { padding: 0 27px 27px; color: #5c7a70; font-size: 13px; line-height: 1.85; }
.modal-body p:first-child { margin-top: 0; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body h3 { margin: 22px 0 9px; color: #3e685a; font-size: 14px; font-weight: 550; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 20px 27px; border-top: 1px solid #e1e8df; background: #f7f9f1; }
.field { min-width: 0; margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 7px; color: #3b6258; font-size: 12px; font-weight: 550; }
.field input, .field textarea, .field select { display: block; width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid #cddccf; border-radius: 6px; background: #fff; color: #31594f; font-size: 13px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #69867a; }
.field textarea { min-height: 103px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7aa48b; }
.field input[type='checkbox'] { display: inline-block; width: 16px; min-height: 16px; margin-right: 7px; accent-color: var(--teal); }
.field [aria-invalid='true'] { border-color: #bd715c; background: #fff9f4; }
.field .error { color: #a24f3a; font-size: 12px; margin: 7px 0 0; }
.note-box { padding: 15px 17px; margin: 17px 0; border: 1px solid #e7d6c4; border-radius: 7px; background: #fcf3e9; color: #866748; font-size: 11px; line-height: 1.85; }
.note-box strong { color: #705134; font-weight: 550; }
.note-box p { margin: 5px 0 0; }
#toast { position: fixed; z-index: 110; bottom: 25px; right: 27px; max-width: min(460px,calc(100vw - 36px)); padding: 14px 19px; border: 1px solid #557a72; border-radius: 8px; background: #153e43; color: #f1f8ef; box-shadow: 0 5px 25px #153d401a; font-size: 12px; line-height: 1.8; }

/* Concrete application controls share the shell without inheriting button chrome. */
.brand-move { color: #b6d7cb; font-family: var(--serif); font-size: 24px; font-weight: 400; font-style: italic; letter-spacing: -.65px; }
.nav-item > span[aria-hidden='true'] { width: 18px; flex: 0 0 18px; text-align: center; color: #9ab7be; font-size: 19px; line-height: 1; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; padding: 1px 6px; min-width: 21px; border: 1px solid #8faeaa2e; border-radius: 50px; color: #c5ded0; background: #ffffff06; font-size: 9px; }
.side-note > .side-label { display: block; margin: 0 0 14px; color: #9eb5b9; font-size: 8px; letter-spacing: 1.3px; }
.side-note p { color: #bed0cd; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.side-line { display: block; width: 27px; height: 1px; margin-top: 23px; background: #668e87; }
.side-footer { display: flex; align-items: center; gap: 11px; padding-inline: 3px; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border: 1px solid #74928d3d; border-radius: 50%; background: #27464c; color: #c8ded1; font-size: 10px; letter-spacing: .5px; }
.side-footer strong { display: block; color: #e0ebe3; font-size: 11px; font-weight: 500; line-height: 1.6; }
.side-footer div > span { display: block; color: #abc1c3; font-size: 9px; line-height: 1.8; }
.demo-banner { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 7px; padding: 9px 13px; margin-top: 21px; border: 1px solid #dde5d8; border-radius: 6px; background: #eff3e9; text-align: left; font-size: 9px; }
.demo-banner strong { color: #577262; font-size: 8px; font-weight: 600; letter-spacing: .75px; }
.demo-banner > span:not(.demo-dot) { color: #65796d; }
.demo-banner > .inline-link { margin-left: auto; min-height: 26px; color: #4e7364; font-size: 9px; }
.demo-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #c8866c; margin-right: 1px; }
.page-heading > .button { flex: 0 0 auto; margin-bottom: 2px; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #647b79; font-size: 10px; line-height: 1.8; }
.page-footer .inline-link { font-size: 10px; }
.button.task-check { position: relative; display: grid; place-items: center; flex: 0 0 28px; width: 28px; min-height: 44px; height: 44px; margin: -6px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #3f7960; font-size: 13px; line-height: 1; }
.button.task-check::before { content: ''; position: absolute; z-index: 0; top: 11px; left: 3px; width: 21px; height: 21px; border: 1px solid #b7cdbb; border-radius: 5px; background: #f5f9f0; }
.button.task-check.is-done { color: #fff; background: #3b7b64; border-radius: 6px; }
.button.task-check.is-done::before { background: transparent; border-color: transparent; }
.button.task-check:hover::before { border-color: #7ba58a; background: #e7f1df; }
.button.task-check.is-done:hover { background: #2b674f; }
.button.task-check.is-done:hover::before { background: transparent; }
.button.task-title { display: block; width: fit-content; min-height: 44px; margin: 0; padding: 2px 0 6px; border: 0; border-radius: 0; background: transparent; color: #35555c; font-size: 12px; font-weight: 550; line-height: 1.7; text-align: left; }
.button.task-title:hover { color: #236d6b; text-decoration: underline; text-underline-offset: 4px; }
.button.task-open { display: grid; place-items: center; flex: 0 0 33px; width: 33px; min-height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #668e81; font-size: 17px; }
.button.task-open:hover { background: #ecf4e6; color: #366b58; }
.action-row > .status-pill { align-self: flex-start; margin-top: 5px; }
.action-row > .task-open { margin-top: -4px; }
.task-row > .status-pill { flex: 0 0 auto; }
.task-row > .task-check { margin-top: 0; align-self: flex-start; }
.task-row > .task-open { align-self: flex-start; }
.button.journey-step { width: 100%; justify-content: flex-start; min-height: 66px; padding: 0 0 21px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.button.journey-step:last-child { min-height: 44px; padding-bottom: 17px; }
.button.journey-step:hover .step-copy { color: #28695e; text-decoration: underline; text-underline-offset: 4px; }
.journey-step > .step-copy { flex: 1 1 auto; padding-top: 3px; color: #647b77; font-size: 12px; font-weight: 500; line-height: 1.7; text-align: left; }
.journey-step > .task-meta { flex: 0 0 auto; max-width: 100px; margin: 4px 0 0; color: #627e71; font-size: 10px; }
.journey-step.is-current > .step-copy { color: #255d57; font-weight: 600; }
.journey-step.is-done > .step-copy { color: #47715e; }
.journey + .stat-grid { margin-top: 17px; }
.button.stage-tab { flex: 1 1 auto; min-height: 44px; padding: 10px 13px; font-size: 11px; font-weight: 500; }
.button.stage-tab.active { color: #335e50; }
.property-price { font-size: 24px; line-height: 1.4; }
.property-copy > .status-pill { padding-inline: 9px; font-size: 9px; }
.case-facts + .button { width: 100%; margin-top: 23px; }
.buyer-handoff { background: #eef4e8; border-color: #d5e2d1; }
.buyer-handoff .eyebrow { font-size: 8px; letter-spacing: 1px; }
.buyer-handoff .eyebrow::before { display: none; }
.buyer-handoff .button { width: 100%; margin-top: 5px; font-size: 11px; }
textarea.notes { display: block; width: 100%; min-height: 130px; margin: 14px 0 0; padding: 12px 13px; resize: vertical; border: 1px solid #cdddcf; border-radius: 6px; background: #fcfef8; color: #365c50; font-family: var(--sans); font-size: 12px; line-height: 1.85; }
textarea.notes::placeholder { color: #6f8777; }
.document-card { position: relative; }
.document-card h2 { margin: 20px 0 9px; color: #365c59; font-family: var(--sans); font-size: 14px; font-weight: 550; letter-spacing: 0; line-height: 1.6; }
.document-card > .status-pill { position: absolute; top: 24px; right: 20px; max-width: calc(100% - 90px); margin-top: 0; font-size: 8px; white-space: normal; text-align: left; }
.document-card > .button { margin: 10px 0 0; padding-inline: 0; font-size: 10px; }
.buyer-hero .journey { max-width: 600px; margin: 28px 0 0; }
.buyer-hero .journey > .button { margin-top: 0; }
.buyer-hero h2 { white-space: pre-line; }
.choice { display: flex; align-items: flex-start; gap: 11px; padding: 16px; margin-top: 20px; border: 1px solid #d7e4d0; border-radius: 7px; background: #f1f7e9; color: #496f5b; font-size: 12px; line-height: 1.8; }
.choice input { flex: 0 0 16px; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--teal); }

@media (min-width: 1600px) {
  .main { padding-inline: 60px; }
  #content, .topbar { max-width: 1320px; }
  .overview-grid { grid-template-columns: minmax(0,1fr) 325px; gap: 28px; }
  .main-column, .aside-column { gap: 26px; }
  .card { padding: 29px 31px; }
  .aside-column .card { padding: 27px; }
  .page-heading { margin-top: 45px; margin-bottom: 34px; }
  .page-heading h1 { font-size: 51px; }
  .property-copy { padding: 30px; }
}
@media (max-width: 1190px) and (min-width: 901px) {
  .main { padding-inline: 28px; }
  .overview-grid { grid-template-columns: minmax(0,1fr) 250px; gap: 18px; }
  .card { padding: 23px; }
  .aside-column .card { padding: 22px 20px; }
  .property-card { grid-template-columns: minmax(130px,.85fr) minmax(0,1fr); padding: 0; }
  .property-copy { padding: 22px 20px; }
  .property-copy h2 { font-size: 24px; }
  .property-art { min-height: 210px; padding: 12px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 39px; }
  .heading-actions { max-width: 170px; justify-content: flex-end; }
  .stat { padding: 18px; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .sidebar { position: relative; inset: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; width: 100%; padding: 22px 28px 14px; overflow: visible; }
  .brand { width: 100%; }
  .brand-name { font-size: 24px; }
  .brand-subtitle { margin-top: 4px; font-size: 8px; letter-spacing: 1.8px; }
  .side-label, .side-note, .side-footer { display: none; }
  .sidebar .side-note, .sidebar .side-footer { display: none; }
  .sidebar nav { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .nav-item { flex: 1 1 auto; width: auto; min-height: 44px; padding: 10px 12px; gap: 8px; font-size: 11px; }
  .nav-item svg { width: 16px; height: 16px; }
  .nav-item .badge { margin-left: 4px; }
  .main { margin-left: 0; padding-inline: 30px; }
  .topbar { min-height: 75px; }
  .page-heading { margin: 31px 0 27px; }
  .page-heading h1 { font-size: 42px; }
  .overview-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 20px; }
  .card { padding: 24px; }
  .property-card { display: block; padding: 0; }
  .property-art { min-height: 178px; padding: 10px; }
  .property-art svg { max-width: 205px; max-height: 165px; }
  .property-copy { padding: 23px 24px; }
  .stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat { padding: 18px 15px; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .overview-grid, .buyer-grid { grid-template-columns: 1fr; }
  .aside-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .aside-column > :last-child:nth-child(odd) { grid-column: 1/-1; }
  .property-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
  .property-art { min-height: 205px; }
  .property-copy h2 { font-size: 27px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { max-width: 150px; justify-content: flex-end; }
  .buyer-grid { margin-top: 21px; gap: 21px; }
}
@media (max-width: 500px) {
  .sidebar { padding: 21px 19px 13px; gap: 18px; }
  .brand-name { font-size: 25px; }
  .brand-subtitle { font-size: 8px; }
  .sidebar nav { gap: 4px; }
  .nav-item { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 9px 5px; font-size: 10px; gap: 6px; }
  .nav-item svg { width: 14px; height: 14px; }
  .nav-item .badge { font-size: 8px; min-width: 16px; padding-inline: 4px; margin-left: 0; }
  .main { padding: 0 18px 29px; }
  .topbar { min-height: 71px; gap: 10px; }
  .breadcrumb { font-size: 9px; gap: 6px; }
  .top-actions { gap: 5px; }
  .top-actions .button { padding: 10px 9px; font-size: 10px; }
  .top-actions .badge { font-size: 8px; padding: 4px 7px; }
  .demo-banner { padding: 9px 18px; font-size: 10px; }
  .page-heading { display: block; margin: 29px 0 25px; }
  .page-heading > .button { margin-top: 19px; }
  .page-heading h1 { font-size: 39px; line-height: 1.1; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .subtitle { margin-top: 13px; font-size: 12px; }
  .heading-actions { justify-content: flex-start; max-width: none; margin-top: 20px; padding: 0; }
  .heading-actions .button { min-height: 44px; font-size: 11px; }
  .overview-grid { gap: 21px; }
  .main-column { gap: 21px; }
  .aside-column { display: flex; flex-direction: column; gap: 20px; }
  .card, .aside-column .card { padding: 23px 21px; }
  .card h2 { font-size: 26px; }
  .card-heading { margin-bottom: 17px; }
  .property-card { display: block; padding: 0; }
  .property-art { min-height: 175px; padding: 11px; }
  .property-art svg { max-width: 225px; max-height: 168px; }
  .property-copy { padding: 24px; }
  .property-copy h2 { font-size: 30px; }
  .property-copy > p { font-size: 12px; }
  .property-price { font-size: 32px; }
  .stat { padding: 20px 13px; }
  .stat-value { font-size: 30px; }
  .stat-label { font-size: 9px; }
  .task-row { gap: 11px; padding-block: 18px; flex-wrap: wrap; }
  .task-row, .action-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 26px; gap: 7px 11px; }
  .task-row > .task-check, .action-row > .task-check { grid-column: 1; grid-row: 1/3; }
  .task-row > .task-body, .action-row > .action-copy { grid-column: 2; grid-row: 1; }
  .task-row > .status-pill, .action-row > .status-pill { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 0; }
  .task-row > .task-open, .action-row > .task-open { grid-column: 3; grid-row: 1/3; margin: 0; width: 26px; }
  .task-row .task-body { flex-basis: calc(100% - 37px); }
  .task-row .task-open { margin-left: 34px; }
  .task-row > .task-open { margin-left: 0; }
  .task-title, .task-row .task-title { font-size: 13px; }
  .task-sub { font-size: 10px; gap: 6px; }
  .task-meta { font-size: 10px; }
  .status-pill { font-size: 9px; }
  .toolbar { gap: 10px; margin-bottom: 20px; }
  .search { max-width: none; flex-basis: 100%; font-size: 16px; }
  .select { min-width: 0; max-width: 100%; font-size: 16px; }
  .filter-button { font-size: 10px; min-height: 44px; padding-inline: 10px; }
  .stage-tabs { gap: 3px; padding: 5px; }
  .stage-tab { flex: 1 1 calc(50% - 5px); font-size: 10px; padding: 10px; }
  .section-heading h2 { font-size: 27px; }
  .case-facts { gap: 18px; }
  .document-grid { grid-template-columns: 1fr; gap: 15px; }
  .document-card { padding: 23px; }
  .document-card h3 { font-size: 14px; }
  .document-meta { font-size: 11px; }
  .document-card h2 { font-size: 15px; }
  .document-card > .status-pill { font-size: 9px; }
  .journey-step > .task-meta { font-size: 9px; }
  .journey-step > .step-copy { font-size: 11px; }
  .demo-banner { gap: 5px 7px; }
  .demo-banner > .inline-link { margin-left: 12px; }
  .page-footer { align-items: flex-start; margin-top: 27px; font-size: 9px; }
  textarea.notes { font-size: 16px; }
  .buyer-hero { padding: 25px 23px; }
  .buyer-hero h1, .buyer-hero h2 { font-size: 34px; }
  .buyer-hero p { font-size: 12px; }
  .buyer-request { padding-block: 19px; }
  .buyer-request p { font-size: 12px; }
  .modal-backdrop { padding: 16px; }
  .modal { max-height: calc(100dvh - 32px); }
  .modal-header { padding: 23px 21px 17px; }
  .modal-header h2 { font-size: 28px; }
  .modal-body { padding: 0 21px 23px; font-size: 12px; }
  .modal-actions { padding: 18px 21px; justify-content: flex-start; }
  .field input, .field textarea, .field select { min-height: 47px; font-size: 16px; }
  .field label { font-size: 12px; }
  #toast { right: 16px; bottom: 16px; left: 16px; max-width: none; padding: 13px 16px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #111; font-size: 10pt; }
  .sidebar, .topbar, button, .button, .modal-backdrop, #toast, .skip-link, .toolbar, .stage-tabs, .task-open { display: none !important; }
  .main { margin: 0; padding: 0; }
  .demo-banner { padding: 0 0 12px; text-align: left; background: #fff; color: #444; }
  .page-heading { margin: 20px 0 25px; }
  .page-heading h1 { font-size: 28pt; }
  .overview-grid, .buyer-grid { display: block; }
  .main-column, .aside-column { display: block; }
  .card, .stat-grid, .document-card { margin-bottom: 18px; box-shadow: none; border-color: #aaa; break-inside: avoid; }
  .card, .aside-column .card { padding: 17px; }
  .card h2 { font-size: 21pt; }
  .document-card h2 { font-size: 12pt; }
  .muted, .task-sub, .task-meta, .subtitle { color: #444; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .property-card { display: grid; grid-template-columns: 180px 1fr; padding: 0; }
  .property-art { min-height: 170px; }
  .status-pill { color: #333; border-color: #aaa; background: #fff; }
  .buyer-hero, .callout, .note-box { border-color: #aaa; background: #fff; color: #333; }
  a { text-decoration: none; }
}
