:root {
  --ink: #191719;
  --muted: #6b6668;
  --paper: #f3f1ee;
  --card: #fffefd;
  --line: #d8d2cc;
  --navy: #263f7d;
  --navy-soft: #e8edf8;
  --red: #ad3b27;
  --red-soft: #f7e9e5;
  --violet: #5c46a8;
  --violet-soft: #eeeafd;
  --shadow: 0 18px 60px rgb(33 27 28 / 8%);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
body > header, body > footer, body > main { width: min(100%, 1320px); margin: auto; }
body > header { padding: 24px 32px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .75rem; }
body > main { min-height: calc(100vh - 190px); padding: 2vh 32px 10vh; }

.login { max-width: 680px; margin: 6vh auto; padding: clamp(32px, 7vw, 78px); border: 1px solid var(--line); border-radius: 28px; background: var(--card); }
.eyebrow, .panel-label, .record-kicker { margin: 0 0 12px; color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login h1, .profile-shell-head h1, .owner-home h1 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.lede { color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }
.button { display: inline-block; margin-top: 24px; padding: 15px 22px; border: 0; border-radius: 999px; background: var(--ink); color: white; font: inherit; font-weight: 700; text-decoration: none; }
.button-light { margin: 0; background: white; color: var(--ink); }
.fine { margin-top: 24px; color: var(--muted); font-size: .875rem; }
.notice { padding: 14px 16px; border: 1px solid #d9cff6; border-radius: 12px; background: var(--violet-soft); }
.text-button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

.client-workspace, .owner-home { width: 100%; }
.profile-shell-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 18px 0 30px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--muted); }
.account-block { display: grid; min-width: 230px; justify-items: end; gap: 7px; padding-top: 4px; color: var(--muted); font-size: .875rem; }
.access-active, .owner-preview { color: var(--violet); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.owner-preview { color: var(--red); }

.profile-nav { position: sticky; z-index: 5; top: 0; display: flex; gap: 4px; overflow-x: auto; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 254 253 / 95%); box-shadow: 0 8px 24px rgb(33 27 28 / 5%); scrollbar-width: none; }
.profile-nav::-webkit-scrollbar { display: none; }
.profile-nav a { flex: 0 0 auto; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: .875rem; font-weight: 700; text-decoration: none; }
.profile-nav a:hover { background: var(--paper); color: var(--ink); }
.profile-nav a[aria-current="page"] { background: var(--ink); color: white; }
.workspace-view { padding-top: 28px; }

.focus-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 16px; }
.focus-panel, .next-action-panel { min-height: 310px; padding: clamp(28px, 5vw, 54px); border-radius: 24px; }
.focus-panel { display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: white; box-shadow: var(--shadow); }
.focus-panel .panel-label { color: #c7cff0; }
.focus-panel h2 { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.35rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
.focus-panel > p:last-child { max-width: 740px; margin: 28px 0 0; color: #d5d1d4; font-size: 1.0625rem; }
.next-action-panel { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); }
.next-action-panel .panel-label { color: var(--red); }
.next-action-panel h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; line-height: 1.1; }
.next-action-panel > p:not(.panel-label) { margin: 0; color: var(--muted); }
.next-action-panel > div { display: flex; justify-content: space-between; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); font-size: .875rem; }

.priority-section, .home-lower, .owner-client-list { margin-top: 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2, .view-intro h2, .facts-section h3, .owner-client-list h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.section-heading > span, .section-heading > a { color: var(--muted); font-size: .875rem; }
.priority-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.priority-list > li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 24px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.priority-number, .decision-index { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.priority-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.priority-title-line h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.priority-copy > p { max-width: 850px; margin: 8px 0 20px; color: var(--muted); }

.status-pill { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 26px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1.1; }
.status-waiting { border-color: #e2beb5; background: var(--red-soft); color: #8d2f20; }
.status-research { border-color: #bec9e3; background: var(--navy-soft); color: var(--navy); }
.status-planned { border-color: #d7cdf5; background: var(--violet-soft); color: var(--violet); }
.compact-fields, .record-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0; }
.compact-fields div, .record-fields div { min-width: 0; }
.compact-fields dt, .record-fields dt, .evidence-grid dt { margin-bottom: 3px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.compact-fields dd, .record-fields dd, .evidence-grid dd { margin: 0; }

.home-lower { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.decision-snapshot, .positioning-note { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.decision-snapshot ol { margin: 0; padding: 0; list-style: none; }
.decision-snapshot li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.positioning-note { background: var(--navy); color: white; }
.positioning-note .eyebrow { color: #ced7f3; }
.positioning-note blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; line-height: 1.35; }
.positioning-note > p:last-child { margin: 24px 0 0; color: #d8dff3; font-size: .875rem; }

.view-intro { display: grid; max-width: 900px; margin: 16px 0 42px; }
.view-intro > p:last-child { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 1.0625rem; }
.decision-list, .phase-list { border-top: 1px solid var(--line); }
.decision-list article, .phase-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.decision-list article > div:last-child > p { max-width: 820px; color: var(--muted); }

.record-list, .opportunity-list { border-top: 1px solid var(--line); }
.record, .opportunity { border-bottom: 1px solid var(--line); background: transparent; }
.record summary, .opportunity summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; }
.record summary::-webkit-details-marker, .opportunity summary::-webkit-details-marker { display: none; }
.record summary > span, .opportunity summary > span { display: grid; gap: 2px; }
.record summary > span:last-child { justify-items: end; }
.record summary small, .opportunity summary small { color: var(--muted); font-size: .875rem; }
.record summary b { font-size: .875rem; }
.record[open] summary, .opportunity[open] summary { color: var(--navy); }
.record-fields { padding: 6px 0 26px 70px; }
.record-fields > div { padding-top: 12px; border-top: 1px solid #e6e1dc; }
.missing-value { color: var(--red); font-weight: 700; }

.journey-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.journey-list article { display: flex; flex-direction: column; min-height: 580px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.journey-list article > header { display: flex; gap: 16px; padding: 26px; border-bottom: 1px solid var(--line); }
.journey-list article > header > span { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.journey-list h3 { margin: 0; font-size: 1.25rem; }
.journey-list header p { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.journey-list ol { display: grid; gap: 0; margin: 0; padding: 12px 26px 18px; list-style: none; counter-reset: steps; }
.journey-list li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); counter-increment: steps; }
.journey-list li::before { position: absolute; left: 0; color: var(--navy); content: counter(steps); font-size: .75rem; font-weight: 700; }
.gap-note { margin-top: auto; padding: 24px 26px; background: var(--paper); }
.gap-note strong { color: var(--navy); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.gap-note p { margin: 5px 0 16px; color: var(--muted); }
.gap-note p:last-child { margin-bottom: 0; color: var(--ink); }

.phase-list article { grid-template-columns: minmax(220px, .5fr) minmax(0, 1.5fr); }
.phase-name { display: grid; align-content: start; justify-items: start; gap: 8px; }
.phase-name > span { color: var(--red); font-size: .875rem; font-weight: 700; text-transform: uppercase; }
.phase-name h3 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; font-weight: 400; text-transform: uppercase; }
.phase-work > p { max-width: 760px; margin: 0 0 24px; font-size: 1.125rem; }

.opportunity-intro { max-width: none; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
.count-strip { display: grid; grid-template-columns: repeat(4, 90px); margin: 0; align-self: end; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.count-strip div { padding: 14px; border-right: 1px solid var(--line); text-align: center; }
.count-strip div:last-child { border-right: 0; }
.count-strip dt { color: var(--muted); font-size: .75rem; }
.count-strip dd { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; }
.lane-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.lane-nav a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; }
.lane-nav a[aria-current="page"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.lane-nav strong { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; }
.lane-nav span { font-size: .875rem; font-weight: 700; }
.list-caption { display: flex; justify-content: space-between; padding: 12px 0; color: var(--muted); font-size: .875rem; }
.opportunity .record-fields { padding-left: 0; }

.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence-grid article { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.evidence-grid article > p { margin: 0 0 28px; color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.evidence-grid h3 { margin: 0 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; }
.evidence-grid dl { display: flex; gap: 28px; margin: 0 0 28px; }
.evidence-link { font-weight: 700; text-underline-offset: 4px; }
.facts-section { display: grid; grid-template-columns: .6fr 1.4fr; gap: 32px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.fact-grid div { display: grid; padding: 24px; background: var(--card); }
.fact-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 400; }
.fact-grid span { margin-top: 2px; }
.fact-grid small { margin-top: 10px; color: var(--muted); }

.owner-client-list article { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; border-radius: 20px; background: var(--navy); color: white; }
.owner-client-list h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.25rem; font-weight: 400; }
.owner-client-list article p:not(.record-kicker) { margin: 8px 0 0; color: #d8dff3; }
.owner-client-list .record-kicker { color: #d8dff3; }
.boundary-note { display: flex; gap: 12px; margin-top: 28px; padding: 18px 2px; color: var(--muted); font-size: .875rem; }
.boundary-note strong { color: var(--ink); }

body > footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
body > footer nav { display: flex; gap: 14px; }

@media (max-width: 900px) {
  .focus-layout, .home-lower, .opportunity-intro, .facts-section { grid-template-columns: 1fr; }
  .journey-list { grid-template-columns: 1fr; }
  .journey-list article { min-height: 0; }
  .count-strip { justify-self: start; }
}

@media (max-width: 680px) {
  body > header, body > main, body > footer { padding-right: 18px; padding-left: 18px; }
  .profile-shell-head { display: grid; gap: 18px; }
  .account-block { min-width: 0; justify-items: start; }
  .profile-meta span { display: none; }
  .profile-meta { display: grid; gap: 1px; }
  .focus-panel, .next-action-panel { min-height: 0; padding: 26px; border-radius: 18px; }
  .focus-panel h2 { font-size: 2.5rem; }
  .section-heading { display: grid; gap: 6px; }
  .priority-list > li, .decision-list article, .phase-list article { grid-template-columns: 1fr; gap: 12px; }
  .priority-title-line { display: grid; }
  .status-pill { justify-self: start; }
  .compact-fields, .record-fields, .evidence-grid, .fact-grid { grid-template-columns: 1fr; }
  .decision-snapshot li { grid-template-columns: 1fr; gap: 8px; }
  .record summary, .opportunity summary { align-items: flex-start; }
  .record summary > span:last-child { justify-items: end; text-align: right; }
  .record-fields { padding-left: 0; }
  .count-strip { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .count-strip div { padding: 10px 4px; }
  .lane-nav { grid-template-columns: 1fr; }
  .evidence-grid dl { display: grid; gap: 12px; }
  .owner-client-list article { display: grid; }
  .boundary-note, body > footer { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
