:root {
  --ink: #101c24;
  --ink-2: #25343c;
  --muted: #6e7b83;
  --faint: #98a2a7;
  --line: #d8dcd8;
  --line-strong: #bec7c2;
  --paper: #f7f6f1;
  --surface: #fcfbf8;
  --white: #fff;
  --teal: #066d67;
  --teal-dark: #075550;
  --teal-pale: #e8f1ee;
  --sand: #b99045;
  --sand-pale: #f5eddd;
  --red: #a24f38;
  --red-pale: #f8ebe5;
  --shadow: 0 14px 38px rgba(19, 38, 39, .09);
  --sans: "Sora", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-width: 320px; max-width: 100%; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 14px/1.48 var(--sans); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.shell { width: 100%; min-width: 0; min-height: 100vh; overflow-x: clip; }
.topbar {
  height: 60px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 23px; background: rgba(252,251,248,.96);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; padding-right: 19px; border-right: 1px solid var(--line); }
.brand-mark { width: 29px; height: 29px; position: relative; display: grid; place-items: center; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 5px; border: 1.5px solid var(--teal); transform: rotate(45deg); }
.brand-mark::after { inset: 10px; border-color: var(--sand); transform: rotate(22.5deg); }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.brand-name { font-size: 1.08rem; font-weight: 800; letter-spacing: -.055em; }
.brand-ar { font: 700 .94rem "Noto Kufi Arabic", sans-serif; margin-left: 2px; }
.nav { display: flex; gap: 20px; height: 100%; }
.nav a { display: flex; align-items: center; color: var(--muted); border-bottom: 2px solid transparent; font-size: .86rem; }
.nav a:hover, .nav a.active { color: var(--teal); }
.nav a.active { border-bottom-color: var(--teal); font-weight: 700; }
.nav-spacer { flex: 1; }
.role-wrap { position: relative; }
.role-switch { min-width: 146px; min-height: 38px; border: 1px solid var(--line); background: var(--white); padding: 7px 11px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .73rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.role-switch:hover, .logout-control:hover { border-color: var(--teal); color: var(--teal); }
.role-popover { position: absolute; right: 0; top: calc(100% + 8px); width: 330px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); z-index: 40; animation: fade .18s ease; }
.role-popover-label { padding: 8px 13px 7px; color: var(--muted); font: 500 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.role-option { display: grid; gap: 3px; width: 100%; border: 0; border-left: 2px solid transparent; padding: 12px 13px; background: transparent; text-align: left; cursor: pointer; }
.role-option:hover, .role-option.selected { background: var(--teal-pale); border-left-color: var(--teal); }
.role-option strong { font-size: .84rem; white-space: nowrap; }
.role-option span { color: var(--muted); font-size: .76rem; }
.user { display: flex; align-items: center; gap: 10px; }
.user-copy { text-align: right; line-height: 1.25; font-size: .78rem; color: var(--muted); }
.user-copy strong { display: block; color: var(--ink); font-size: .83rem; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--teal); font-size: .69rem; font-weight: 800; }
.account-summary { min-width: 118px; text-align: right; line-height: 1.2; }
.account-summary span { display: block; color: var(--muted); font: 500 .65rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.account-summary strong { display: block; margin-top: 2px; font-size: .79rem; white-space: nowrap; }
.logout-control { min-height: 38px; border: 1px solid var(--line); background: var(--white); padding: 7px 11px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .73rem; cursor: pointer; white-space: nowrap; }

.page { width: min(1240px, 100%); min-width: 0; margin: 0 auto; padding: 30px 28px 58px; }
.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 19px; }
.page-head > div:first-child { min-width: 0; }
.kicker, .meta-label { font: 500 .69rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker { margin-bottom: 10px; }
.page-title { margin: 0 0 6px; font-size: clamp(1.75rem, 2.5vw, 2.15rem); line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.page-subtitle { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; max-width: 720px; }
.meta-line { display: inline-flex; flex-wrap: wrap; column-gap: .42em; }
.meta-line > span { white-space: nowrap; }
.meta-line > span + span::before { content: "·"; margin-right: .42em; }
.nowrap { white-space: nowrap; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn { border: 1px solid var(--line-strong); background: var(--surface); padding: 8px 13px; min-height: 36px; cursor: pointer; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap; }
.btn:disabled { opacity: .65; cursor: wait; }
.btn:hover { border-color: var(--teal); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: white; box-shadow: 0 2px 0 var(--teal-dark); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-subdued { color: var(--muted); border-color: var(--line); background: transparent; box-shadow: none; }
.btn-subdued:hover { color: var(--teal); background: var(--surface); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--teal); }
.btn-small { min-height: 32px; padding: 6px 10px; font-size: .74rem; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

.metrics { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); margin-bottom: 27px; }
.metric { min-height: 74px; padding: 12px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.metric:last-child { border-right: 0; }
.metric-value { font-size: 1.27rem; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.metric-note { color: var(--muted); font-size: .76rem; margin-left: 8px; font-weight: 500; letter-spacing: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 22px 0 10px; }
.section-head h2 { margin: 0; font-size: 1.28rem; letter-spacing: -.04em; text-wrap: balance; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.section-actions { display: flex; gap: 8px; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border: 1px solid #8ab8b1; color: var(--teal); background: #f3f8f6; padding: 5px 8px; font: 500 .73rem var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-amber { color: #8a6722; border-color: #d4bb81; background: #fbf5e8; }
.badge-red { color: var(--red); border-color: #d5a08f; background: #fcf1ed; }
.badge-neutral { color: var(--muted); border-color: var(--line-strong); background: var(--surface); }
.text-link { border: 0; padding: 0; background: transparent; color: var(--teal); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }

.project-table { border: 1px solid var(--line); background: var(--surface); }
.project-table-head, .project-row { display: grid; grid-template-columns: minmax(250px, 1.8fr) .8fr .75fr .75fr 1fr 1.1fr 120px; align-items: center; gap: 16px; }
.project-table-head { padding: 9px 18px; background: #eef0ec; border-bottom: 1px solid var(--line); color: var(--muted); font: .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.project-row { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.project-row:last-child { border-bottom: 0; }
.project-row:hover, .project-row.featured { background: var(--teal-pale); }
.project-name { font-size: .94rem; font-weight: 800; letter-spacing: -.02em; }
.project-place { color: var(--muted); margin-top: 4px; font-size: .84rem; }
.project-stat strong { display: block; margin-top: 5px; font-size: .9rem; }
.score-inline { color: var(--teal); }

.project-cover { display: grid; grid-template-columns: minmax(0, 1fr) 250px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.cover-copy { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.cover-copy h2 { font-size: 1.48rem; letter-spacing: -.045em; margin-bottom: 6px; }
.cover-art { min-height: 145px; background: #d9e3df url('/wasl/assets/diriyah-executive-centre.webp') center/cover no-repeat; border-left: 1px solid var(--line); position: relative; }
.cover-art::after { content: "FICTIONAL PROJECT · DIRIYAH"; position: absolute; bottom: 13px; right: 14px; color: white; background: rgba(12,42,40,.72); padding: 5px 8px; font: .62rem var(--mono); letter-spacing: .1em; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.assessment-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .75fr); gap: 16px; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: 15px; }
.panel > h3 { margin-bottom: 13px; font-size: .98rem; letter-spacing: -.02em; }
.readiness { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; }
.score-big { font-size: 4rem; line-height: .95; font-weight: 800; letter-spacing: -.1em; color: var(--teal); margin: 12px 0 14px; }
.score-big span { font-size: 1.1rem; color: var(--muted); letter-spacing: 0; }
.progress { height: 7px; background: #e0e7e3; overflow: hidden; margin-top: 9px; }
.progress > i { display: block; height: 100%; width: var(--value); background: var(--teal); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; }
.dimension-top { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .8rem; }
.dimension-top strong { color: var(--ink); }
.risk-list, .status-list { display: grid; gap: 0; }
.risk-row, .status-row, .document-row, .activity-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.risk-row:last-child, .status-row:last-child, .document-row:last-child, .activity-row:last-child { border-bottom: 0; }
.risk-row span:first-child, .status-row span:first-child { color: var(--muted); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.action-card { width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 14px 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; text-align: left; cursor: pointer; }
.action-card:hover { border-color: var(--teal); transform: translateY(-1px); }
.action-title { font-weight: 800; font-size: .9rem; }
.action-evidence { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.success-banner { margin-top: 15px; border: 1px solid #86b5ad; border-left: 4px solid var(--teal); padding: 15px 17px; background: var(--teal-pale); display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.success-banner h3 { margin: 0 0 5px; font-size: 1.08rem; }
.success-banner p { margin: 0; color: var(--muted); }
.next-step-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; margin: 0 0 20px; padding: 17px 18px; border: 1px solid #86b5ad; border-left: 4px solid var(--teal); background: var(--teal-pale); }
.next-step-panel-pending { border-color: #d4be8c; border-left-color: var(--sand); background: var(--sand-pale); }
.next-step-copy { min-width: 0; }
.next-step-copy .kicker { margin-bottom: 6px; }
.next-step-copy h2 { margin: 0 0 5px; font-size: 1.08rem; line-height: 1.25; }
.next-step-copy p { max-width: 760px; margin: 0; color: var(--muted); font-size: .8rem; }
.next-step-actions { display: flex; flex-direction: column; justify-content: flex-start; justify-self: end; align-items: stretch; gap: 9px; width: 360px; min-width: 0; padding-top: 0; }
.next-step-actions .btn { width: 100%; }
.next-action-note { color: var(--muted); font-size: .72rem; line-height: 1.45; text-align: center; }
.project-next-cta { width: 100%; min-width: 0; padding-inline: 9px; }
.deal-page-head { align-items: flex-start; }
.deal-page-head .head-actions { padding-top: 2px; }
.deal-head-back { font-size: .78rem; }
.deal-utilities { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.deal-utilities .text-link { color: var(--muted); font-size: .73rem; }
.deal-utilities .text-link:hover { color: var(--teal); }
.review-progress { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.review-progress span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 500 .65rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.review-progress span b { width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: .58rem; }
.review-progress span.current { color: var(--teal); }
.review-progress span.current b { color: white; border-color: var(--teal); background: var(--teal); }
.review-progress span.complete { color: var(--teal); }
.review-progress span.complete b { color: white; border-color: var(--teal); background: var(--teal); }
.deal-next-step { grid-template-columns: minmax(0, 1fr) minmax(220px, auto); align-items: stretch; }
.deal-next-actions { min-width: 220px; padding: 0 0 0 22px; border-left: 1px solid rgba(6,109,103,.2); display: flex; flex-direction: column-reverse; align-items: stretch; justify-content: flex-end; gap: 14px; }
.deal-next-actions .next-step-actions { justify-self: stretch; padding-top: 0; }
.deal-next-actions .next-step-actions .btn { width: 100%; }
.deal-next-actions .deal-utilities { margin: 0; justify-content: center; gap: 12px; }

.mandate { margin-bottom: 34px; }
.mandate-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.mandate-item { padding: 17px 18px 0 0; }
.mandate-item strong { display: block; margin-top: 6px; font-size: .86rem; }
.opportunities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.opportunity { border: 1px solid var(--line); background: var(--surface); min-height: 310px; padding: 21px; display: flex; flex-direction: column; }
.opportunity.featured { border-color: #8ebcb5; background: var(--teal-pale); }
.opportunity h3 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.035em; margin: 16px 0 5px; }
.opportunity-meta { color: var(--muted); font-size: .82rem; }
.opportunity-data { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.opportunity-data strong { display: block; margin-top: 5px; }
.opportunity-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.fit-score { font-size: 2rem; line-height: 1; font-weight: 800; color: var(--teal); letter-spacing: -.06em; }

.deal-layout { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 25px; min-width: 0; }
.deal-content { min-width: 0; }
.deal-nav { border-right: 1px solid var(--line); padding-right: 17px; }
.deal-nav button { display: block; width: 100%; padding: 9px 10px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-size: .8rem; }
.deal-nav button:hover, .deal-nav button.active { color: var(--teal); background: var(--teal-pale); border-left-color: var(--teal); font-weight: 700; }
.deal-content .metrics { margin-bottom: 22px; }
.fit-panel { display: grid; grid-template-columns: 1fr 150px; gap: 20px; align-items: center; }
.fit-panel .fit-score { font-size: 3.35rem; text-align: right; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-top: 17px; }
.check { padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--muted); }
.check:nth-child(odd) { border-right: 1px solid var(--line); }
.check:nth-last-child(-n+2) { border-bottom: 0; }
.check b { color: var(--teal); margin-right: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.summary-copy { color: var(--muted); line-height: 1.72; }
.capital-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 28px; margin-top: 20px; }
.capital-grid strong { display: block; margin-top: 4px; }
.document-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.document-row:hover { color: var(--teal); }
.document-icon { width: 30px; height: 34px; border: 1px solid var(--line-strong); display: grid; place-items: center; font: .58rem var(--mono); margin-right: 10px; color: var(--teal); }
.document-name { display: flex; align-items: center; }
.primary-actions { display: flex; gap: 10px; margin-top: 20px; }

.process-columns { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 16px; }
.flow { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; align-items: stretch; margin-top: 18px; }
.flow-node { border: 1px solid var(--line); background: white; padding: 18px; min-height: 176px; }
.flow-node.highlight { border-color: #82b4ac; background: var(--teal-pale); }
.flow-node h3 { font-size: .97rem; margin-bottom: 8px; }
.flow-node p, .flow-node li { font-size: .76rem; color: var(--muted); }
.flow-node ul { padding-left: 16px; margin-bottom: 0; }
.flow-arrow { display: grid; place-items: center; color: var(--teal); font-size: 1.35rem; }
.money-flow { display: grid; gap: 9px; margin-top: 18px; }
.money-node { border: 1px solid var(--line); background: white; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; }
.money-arrow { color: var(--sand); text-align: center; height: 17px; line-height: 17px; }
.side-record { border: 1px solid #82b4ac; background: var(--teal-pale); padding: 17px; margin-top: 17px; position: relative; }
.side-record::before { content: ""; position: absolute; left: -18px; top: 50%; width: 17px; border-top: 1px dashed var(--teal); }
.process-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.process-step { border: 1px solid var(--line); background: var(--surface); padding: 16px; min-height: 105px; }
.step-num { font: .68rem var(--mono); color: var(--faint); margin-bottom: 14px; }

.capital-position { display: grid; grid-template-columns: 34fr 86fr; height: 52px; margin: 18px 0 9px; color: white; font-weight: 800; }
.deployed { background: var(--teal); display: grid; place-items: center; }
.remaining { background: #9db3ad; display: grid; place-items: center; }
.legend { display: flex; gap: 22px; color: var(--muted); font-size: .78rem; }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--teal); }
.legend span:last-child i { background: #9db3ad; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.data-table th { font: 500 .73rem var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; text-align: left; background: #f0f1ed; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th:not(:first-child), .data-table td:not(:first-child) { text-align: right; }
.activity-date { font: .7rem var(--mono); color: var(--muted); min-width: 90px; }
.activity-main { flex: 1; }
.activity-main strong { display: block; }
.activity-main span { color: var(--muted); font-size: .78rem; }

.audit-table td:nth-child(1) { font: .72rem var(--mono); color: var(--muted); white-space: nowrap; }
.audit-table td:nth-child(2), .audit-table th:nth-child(2), .audit-table td:nth-child(3), .audit-table th:nth-child(3), .audit-table td:nth-child(4), .audit-table th:nth-child(4) { text-align: left; }

.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(9, 25, 29, .36); animation: fade .18s ease; }
.drawer { position: absolute; right: 0; top: 0; width: min(500px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); padding: 31px; box-shadow: -18px 0 46px rgba(11,31,31,.14); animation: slide .25s ease; }
.drawer-close { float: right; border: 0; background: transparent; font-size: 1.7rem; cursor: pointer; }
.drawer h2 { clear: both; font-size: 1.8rem; line-height: 1.2; letter-spacing: -.05em; margin: 16px 0 11px; }
.drawer .panel { margin-top: 25px; }
.modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(650px, calc(100% - 30px)); max-height: calc(100% - 30px); overflow: hidden; background: var(--paper); padding: 29px; box-shadow: var(--shadow); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; }
.modal h2 { font-size: 1.7rem; letter-spacing: -.05em; }
.modal-head .page-subtitle { margin-bottom: 0; }
.modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: .77rem; }
.field input, .field select { width: 100%; border: 1px solid var(--line-strong); background: white; padding: 11px 12px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(6,109,103,.09); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.package-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 20px 0; }
.package-item { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.package-item b { color: var(--teal); margin-right: 7px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; background: var(--ink); color: white; padding: 14px 17px; box-shadow: var(--shadow); animation: rise .25s ease; max-width: 360px; }

/* Authentication */
.auth-page { min-height: calc(100vh - 120px); padding: 62px 20px 76px; display: grid; place-items: start center; }
.auth-card { width: min(500px, 100%); border: 1px solid var(--line-strong); background: var(--surface); padding: 36px 38px 30px; box-shadow: 0 8px 28px rgba(19,38,39,.035); }
.auth-back { border: 0; background: transparent; color: var(--teal); padding: 0; margin: 0 0 35px; font-weight: 700; cursor: pointer; }
.auth-card h1 { margin: 0 0 8px; font-size: 2rem; line-height: 1.08; letter-spacing: -.055em; }
.auth-card > p { color: var(--muted); margin-bottom: 26px; max-width: 390px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { font-weight: 700; font-size: .82rem; }
.auth-field input { width: 100%; min-height: 45px; border: 1px solid var(--line-strong); background: var(--white); padding: 10px 12px; outline: 0; }
.auth-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(6,109,103,.09); }
.auth-field input[aria-invalid="true"] { border-color: var(--red); }
.auth-help { margin: 9px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.auth-error { margin: 9px 0 0; color: var(--red); font-size: .76rem; font-weight: 600; }
.auth-submit { width: 100%; margin-top: 14px; min-height: 44px; }
.nafath-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 27px 0 10px; color: var(--ink); font-weight: 700; font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demo-accounts { display: grid; gap: 7px; margin-top: 18px; }
.demo-account { width: 100%; min-height: 59px; border: 1px solid var(--line); background: var(--white); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: left; cursor: pointer; }
.demo-account:hover, .demo-account.selected { border-color: var(--teal); background: var(--teal-pale); }
.demo-account > span { min-width: 0; }
.demo-account strong { display: block; font-size: .82rem; }
.demo-account small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; white-space: normal; }
.demo-account b { flex: 0 0 auto; color: var(--muted); font: 500 .61rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.demo-account.selected b { color: var(--teal); }
.auth-disclaimer { margin: 18px 0 0 !important; font: .64rem var(--mono); letter-spacing: .04em; }
.auth-footer { min-height: 60px; border-top: 1px solid var(--line); padding: 18px max(24px, calc((100vw - 1040px) / 2)); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .7rem; }
.auth-footer strong { color: var(--ink); }
.landing-footer { min-height: 72px; border-top: 1px solid var(--line); padding: 23px max(28px, calc((100vw - 1124px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .74rem; }
.landing-footer strong { color: var(--ink); }
.site-contact { color: var(--teal); font-weight: 700; }
.site-contact:hover { text-decoration: underline; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes route-fade-out { to { opacity: 0; } }
@keyframes route-fade-in { from { opacity: 0; } }

::view-transition-old(root) { animation: route-fade-out .14s ease-out both; }
::view-transition-new(root) { animation: route-fade-in .18s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Landing */
.landing-page { overflow: hidden; }
.landing-topbar { position: relative; }
.landing-hero, .landing-section { width: min(1180px, 100%); margin: 0 auto; padding-inline: 28px; }
.landing-hero { min-height: 520px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: start; gap: 52px; padding-top: 46px; padding-bottom: 50px; }
.hero-copy h1 { max-width: 600px; margin: 0 0 19px; font-size: clamp(2.9rem, 3.85vw, 3.85rem); line-height: .96; letter-spacing: -.068em; text-transform: uppercase; text-wrap: balance; }
.hero-copy h1 em { color: var(--teal); font-style: normal; }
.hero-copy > p { max-width: 560px; color: var(--muted); font-size: .9rem; line-height: 1.68; }
.hero-actions { display: flex; gap: 9px; margin: 20px 0 13px; }
.hero-note { color: var(--muted); font-size: .76rem; }
.hero-visual { position: relative; min-height: 370px; margin-top: 38px; background: #dde6e1; border: 1px solid var(--line-strong); padding: 14px; }
.hero-visual img { width: 100%; height: 340px; object-fit: cover; filter: saturate(.7) contrast(.95); display: block; }
.hero-visual::after { content: ""; position: absolute; inset: 14px; background: linear-gradient(to bottom, transparent 56%, rgba(4,44,42,.28)); pointer-events: none; }
.hero-visual-frame { position: absolute; inset: 27px; border: 1px solid rgba(255,255,255,.5); z-index: 1; }
.hero-visual-linework { min-height: 330px; overflow: hidden; background: #fbfaf6; padding: 0 0 30px; }
.hero-visual-linework img { height: 300px; object-fit: contain; background: #fbfaf6; filter: contrast(1.08) saturate(1.04); transform: scale(1.14); transform-origin: 50% 56%; }
.hero-visual-linework::after,
.hero-visual-linework .hero-visual-frame,
.hero-visual-linework .diagram-label { display: none; }
.hero-visual-linework .visual-caption { left: 16px; right: 16px; bottom: 9px; color: var(--teal); font-size: .56rem; }
.diagram-label { position: absolute; z-index: 2; padding: 6px 8px; color: #eaf5f2; background: rgba(5,66,62,.78); border: 1px solid rgba(255,255,255,.4); font: .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.diagram-label::after { content: ""; position: absolute; width: 38px; border-top: 1px solid rgba(255,255,255,.65); top: 50%; }
.label-a { left: 5px; top: 84px; }.label-a::after { left: 100%; }
.label-b { right: 4px; top: 139px; }.label-b::after { right: 100%; }
.label-c { left: 5px; bottom: 116px; }.label-c::after { left: 100%; }
.label-d { right: 4px; bottom: 76px; }.label-d::after { right: 100%; }
.visual-caption { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 2; display: flex; justify-content: space-between; color: white; font: .62rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.landing-section { padding-top: 60px; padding-bottom: 60px; border-top: 1px solid var(--line); }
.landing-section > h2, .sides-section > div > h2 { margin: 0; font-size: clamp(2.1rem, 3vw, 3rem); line-height: 1; letter-spacing: -.064em; text-transform: uppercase; text-wrap: balance; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--ink); }
.promise-grid article { min-height: 150px; padding: 18px 28px 8px 0; border-right: 1px solid var(--line); }
.promise-grid article:not(:first-child) { padding-left: 28px; }
.promise-grid article:last-child { border-right: 0; }
.section-number { font: .7rem var(--mono); color: var(--teal); }
.promise-grid h3 { margin: 34px 0 6px; font-size: 1.18rem; }
.promise-grid p { color: var(--muted); max-width: 340px; }
.workflow-section { width: 100%; background: var(--ink); color: white; max-width: none; padding-inline: max(28px, calc((100vw - 1124px) / 2)); }
.workflow-section .kicker, .workflow-section .meta-label { color: #a8b4b8; }
.workflow-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.workflow-phase { position: relative; min-width: 0; border: 1px solid #3e4d54; background: #122129; padding: 13px 13px 15px; transition: border-color .18s ease, background .18s ease; }
.workflow-phase:has(.workflow-node.active) { border-color: #5f938a; background: #142b2c; }
.workflow-phase:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -17px; width: 21px; transform: translateY(-50%); color: #71b6aa; background: var(--ink); text-align: center; font-size: .95rem; }
.workflow-phase-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding-bottom: 10px; border-bottom: 1px solid #34444b; }
.workflow-phase-head span { color: #78878c; font: .61rem var(--mono); letter-spacing: .08em; }
.workflow-phase-head strong { color: #eef4f2; font-size: .82rem; letter-spacing: -.01em; }
.workflow-steps { position: relative; display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 4px; padding-top: 12px; }
.workflow-steps::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; border-top: 1px solid #516066; }
.workflow-node { position: relative; z-index: 1; min-width: 0; display: grid; grid-template-rows: auto auto 1fr; gap: 7px; border: 0; background: transparent; color: #aeb8bb; padding: 0 3px 5px; text-align: left; cursor: pointer; }
.workflow-node-index { color: #7f8d91; font: .59rem var(--mono); letter-spacing: .06em; }
.workflow-node-mark { width: 10px; height: 10px; border: 2px solid #758389; border-radius: 50%; background: #122129; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.workflow-node strong { font-size: .84rem; line-height: 1.25; font-weight: 600; }
.workflow-node:hover { color: white; }
.workflow-node:hover .workflow-node-mark { border-color: #71b6aa; transform: scale(1.18); }
.workflow-node.active { color: white; }
.workflow-node.active .workflow-node-index { color: #78c1b4; }
.workflow-node.active .workflow-node-mark { border-color: #78c1b4; background: #78c1b4; box-shadow: 0 0 0 4px rgba(120,193,180,.12); }
.lifecycle-detail { margin-top: 18px; display: grid; grid-template-columns: 118px 190px 1fr; align-items: center; gap: 17px; border-top: 1px solid #3e4d54; padding-top: 17px; }
.selected-stage-title { display: grid; gap: 2px; }
.selected-stage-title small { color: #78c1b4; font: .58rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lifecycle-detail strong { font-size: 1rem; }.lifecycle-detail p { color: #aeb8bb; margin: 0; }
.sides-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: start; }
.side-columns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.side-columns article { padding: 19px 23px 0 0; }.side-columns article + article { border-left: 1px solid var(--line); padding-left: 23px; }
.side-columns h3 { margin: 19px 0 12px; font-size: 1.02rem; }.side-columns ul { color: var(--muted); padding-left: 17px; line-height: 1.85; }
.boundary-section { width: 100%; background: #edf2ef; max-width: none; padding-inline: max(28px, calc((100vw - 1124px) / 2)); }
.boundary-flow { display: grid; grid-template-columns: 1fr 28px 1.35fr 28px 1.2fr 28px 1fr; align-items: center; margin-top: 32px; }
.boundary-flow > div { min-height: 96px; border: 1px solid var(--line-strong); padding: 15px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.boundary-flow > b { color: var(--teal); text-align: center; }.boundary-flow .wasl-node { background: var(--teal); color: white; border-color: var(--teal); }
.wasl-node .meta-label { color: #c7e0da; }.wasl-node small { color: #d8e9e5; }
.boundary-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; }.boundary-foot p { color: var(--muted); max-width: 700px; margin: 0; }

/* Revised workspaces */
.workspace-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: -5px 0 17px; }
.workspace-tabs button { padding: 10px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; cursor: pointer; font-size: .8rem; }
.workspace-tabs button:hover, .workspace-tabs button.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 700; }
.workflow-summary { padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.workflow-summary > div:not(.kicker) { display: grid; grid-template-columns: 140px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.workflow-summary > div:last-child { border-bottom: 0; }
.compact-panel { max-width: 950px; }
.assessment-refresh { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; position: relative; margin: 0 0 15px; padding-top: 12px; }
.refresh-track { position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--line); }.refresh-track i { display: block; width: calc(var(--phase) * 33.333%); height: 100%; background: var(--teal); transition: width .4s ease; }
.assessment-refresh > span { position: relative; color: var(--muted); padding-top: 24px; font-size: .78rem; }.assessment-refresh > span b { position: absolute; top: 0; left: 0; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--line); font: .6rem var(--mono); }
.assessment-refresh > span.done { color: var(--teal); font-weight: 700; }.assessment-refresh > span.done b { color: white; background: var(--teal); }
.priority-groups { display: grid; gap: 10px; }.priority-group { display: grid; grid-template-columns: 120px 1fr; align-items: start; }.priority-label { padding-top: 12px; }.priority-group > div:last-child { border-top: 1px solid var(--line); }.priority-group .action-card { border: 0; border-bottom: 1px solid var(--line); padding: 13px 4px; }
.intelligence-band { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 19px 0; }
.fit-score-button { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 8px 0 8px 25px; text-align: right; cursor: pointer; }.fit-score-button span { display: block; color: var(--teal); font-size: 2.7rem; line-height: 1; font-weight: 800; letter-spacing: -.07em; }.fit-score-button small { color: var(--muted); }
.diligence-head, .diligence-foot { display: flex; justify-content: space-between; align-items: flex-end; }.diligence-head .fit-score { font-size: 1.9rem; }.diligence-foot { margin-top: 13px; color: var(--muted); font-size: .75rem; }.diligence-foot strong { color: var(--sand); }
.review-state { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); }.review-state p { margin: 0; color: var(--muted); }
.qa-workspace { max-width: 920px; }.qa-thread { padding: 20px 0; border-top: 1px solid var(--line); }.qa-author, .qa-answer { display: flex; gap: 12px; align-items: flex-start; }.qa-author strong { display: block; margin-top: 4px; }.qa-answer { margin: 16px 0 0 46px; padding: 16px; background: var(--teal-pale); }.qa-answer p { margin: 5px 0 10px; color: var(--muted); }.avatar.small { width: 34px; height: 34px; flex: 0 0 34px; }.project-avatar { background: var(--sand); }.evidence-link { border: 0; background: transparent; color: var(--teal); padding: 0; cursor: pointer; font-weight: 700; font-size: .78rem; }
.mandate-strip { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); padding: 12px 0; }.mandate-strip > div { padding: 4px 17px; border-right: 1px solid var(--line); }.mandate-strip > div:last-child { border: 0; }.mandate-strip strong { display: block; margin-top: 4px; font-size: .8rem; }
.opportunity-register { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--surface); }.opportunity-head, .opportunity-row { display: grid; grid-template-columns: minmax(220px, 1.7fr) .6fr .65fr .78fr .67fr .78fr .62fr .95fr 178px; min-width: 1120px; gap: 13px; align-items: center; }.opportunity-head { padding: 9px 13px; background: #eef0ec; color: var(--muted); font: .63rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }.opportunity-row { padding: 15px 13px; border-top: 1px solid var(--line); font-size: .78rem; }.opportunity-row.featured { background: var(--teal-pale); }.opportunity-row > div:first-child strong, .opportunity-row > div:first-child small { display: block; }.opportunity-row > div:first-child small { color: var(--muted); margin-top: 3px; }.opportunity-row > :last-child { justify-self: end; }.opportunity-primary { width: 100%; min-width: 0; padding-inline: 9px; }.fit-button { border: 0; background: transparent; color: var(--teal); padding: 0; text-align: left; font-weight: 800; cursor: pointer; white-space: nowrap; }.fit-button small { font-weight: 400; }
.mandate-breakdown { display: grid; gap: 18px; }.concept-note { margin-top: 20px; padding: 18px 0; border-block: 1px solid var(--line); }.concept-note strong { display: block; font-size: 1.35rem; margin: 4px 0; }.concept-note p { color: var(--muted); margin: 0 0 18px; }

/* Revised process and operations */
.process-columns.expanded { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: start; }
.process-timeline { border-top: 1px solid var(--ink); }.timeline-step { display: grid; grid-template-columns: 42px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 0; }.timeline-index { width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font: .7rem var(--mono); color: var(--muted); }.timeline-step.complete .timeline-index { color: white; background: var(--teal); border-color: var(--teal); }.timeline-step.current .timeline-index { color: #76591c; background: var(--sand-pale); border-color: var(--sand); }.timeline-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; }.timeline-heading h3 { margin: 0; font-size: .95rem; }.timeline-detail { display: grid; grid-template-columns: 1fr 1.2fr .8fr; gap: 18px; margin-top: 11px; }.timeline-detail strong { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.capital-flow-panel { position: sticky; top: 86px; padding: 20px; border: 1px solid var(--line); background: #edf2ef; }.capital-flow-panel > p { color: var(--muted); }.role-boundary { margin: 15px 0 18px; padding: 13px 14px; border-left: 3px solid var(--teal); background: var(--surface); }.role-boundary strong { display: block; margin-top: 5px; font-size: .76rem; line-height: 1.5; }.side-record p { margin: 8px 0 0; color: var(--muted); }.boundary-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--teal); font-size: .78rem; }
.operations-empty { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; align-items: center; padding: 30px 0; border-block: 1px solid var(--line); }.operations-empty h3 { font-size: 1.35rem; }.operations-empty p { color: var(--muted); max-width: 530px; }.unlock-strip { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }.unlock-strip::before { content: ""; position: absolute; top: 8px; left: 8%; right: 8%; border-top: 2px solid var(--line); }.unlock-step { position: relative; display: grid; gap: 5px; padding-right: 8px; }.unlock-step span { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--paper); z-index: 1; }.unlock-step.complete span { background: var(--teal); border-color: var(--teal); }.unlock-step.current span { background: var(--sand); border-color: var(--sand); }.unlock-step strong { margin-top: 8px; font-size: .72rem; }.unlock-step small { color: var(--muted); font-size: .68rem; }
.role-changing body { opacity: .72; transition: opacity .19s ease; }

@media (min-width: 1301px) {
  .deal-content .metric-value { font-size: 1rem; }
}

@media (max-width: 1300px) {
  .deal-content .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal-content .metric:nth-child(3n) { border-right: 0; }
  .deal-content .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 1050px) {
  .topbar { padding: 0 19px; gap: 16px; }
  .nav { gap: 16px; }
  .user-copy { display: none; }
  .account-summary span { display: none; }
  .page { padding-inline: 24px; }
  .project-table-head, .project-row { grid-template-columns: minmax(230px, 1.8fr) .8fr .75fr .85fr 116px; }
  .project-table-head > :nth-child(4), .project-row > :nth-child(4), .project-table-head > :nth-child(6), .project-row > :nth-child(6) { display: none; }
  .mandate-grid { grid-template-columns: repeat(3, 1fr); }
  .opportunities { grid-template-columns: 1fr 1fr; }
  .opportunity:last-child { display: none; }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); height: 28px; }
  .process-status { grid-template-columns: repeat(2, 1fr); }
  .landing-hero { gap: 34px; padding-inline: 24px; }
  .hero-copy h1 { font-size: 3.05rem; }
  .landing-section { padding-inline: 24px; }
  .workflow-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-phase:not(:last-child)::after { display: none; }
  .sides-section { grid-template-columns: 1fr; gap: 45px; }
  .boundary-flow { grid-template-columns: 1fr 25px 1fr 25px 1fr; }
  .boundary-flow > div:last-child, .boundary-flow > b:nth-last-child(2) { display: none; }
  .opportunity-register { overflow-x: auto; }
  .opportunity-head, .opportunity-row { grid-template-columns: minmax(220px, 1.7fr) .82fr .7fr .8fr .65fr 1fr 148px; min-width: 960px; }
  .opportunity-head > :nth-child(2), .opportunity-row > :nth-child(2), .opportunity-head > :nth-child(3), .opportunity-row > :nth-child(3) { display: none; }
  .process-columns.expanded { grid-template-columns: 1fr 320px; }
  .timeline-detail { grid-template-columns: 1fr 1fr; }
  .timeline-detail > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
  .topbar { height: 68px; backdrop-filter: none; }
  .nav { position: fixed; left: 0; right: 0; top: 68px; bottom: auto; height: 52px; background: var(--surface); border-top: 0; border-bottom: 1px solid var(--line); justify-content: space-around; gap: 0; z-index: 19; }
  .nav a { min-width: 0; flex: 1; justify-content: center; padding: 0 8px; border-top: 0; border-bottom: 2px solid transparent; font-size: .7rem; text-align: center; }
  .nav a.active { border-bottom-color: var(--teal); }
  .brand { border: 0; padding-right: 0; }
  .brand-ar { display: none; }
  .account-summary { display: none; }
  .role-switch { min-width: 0; width: 42px; height: 40px; padding: 0; font-size: 0; justify-content: center; gap: 3px; }
  .role-switch > span:first-child { display: none; }
  .role-switch::before { content: "⇄"; font-size: .9rem; }
  .role-switch .chevron { font-size: .68rem; }
  .logout-control { width: 42px; height: 40px; padding: 0; justify-content: center; font-size: .92rem; }
  .logout-label { display: none; }
  .page { padding: 28px 16px 44px; }
  .topbar:not(.landing-topbar) + .page { padding-top: 80px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .page-title { font-size: 2rem; }
  .head-actions { width: 100%; flex-wrap: wrap; }
  .head-actions .btn { flex: 1 1 100%; }
  .next-step-panel { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 16px; }
  .next-step-actions { display: flex; width: 100%; min-width: 0; justify-self: stretch; padding-top: 0; }
  .next-step-actions .btn { width: 100%; }
  .deal-page-head .head-actions { display: none; }
  .deal-utilities { justify-content: flex-start; gap: 18px; }
  .deal-next-step { grid-template-columns: 1fr; min-height: 0; }
  .deal-next-actions { min-width: 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(6,109,103,.2); }
  .review-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .review-progress span { min-width: 0; align-items: flex-start; font-size: .55rem; line-height: 1.25; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 96px; border-bottom: 1px solid var(--line); padding: 17px; }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:last-child { border-bottom: 0; }
  .metric:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .metric:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .metric-value { font-size: 1.08rem; }
  .deal-content .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-content .metric:nth-child(3n) { border-right: 1px solid var(--line); }
  .deal-content .metric:nth-child(2n) { border-right: 0; }
  .deal-content .metric:nth-child(n+4) { border-top: 0; }
  .project-table { border: 0; background: transparent; }
  .project-table-head { display: none; }
  .project-row { grid-template-columns: 1fr 1fr; gap: 15px 18px; margin-bottom: 10px; padding: 17px; border: 1px solid var(--line); background: var(--surface); }
  .project-row:last-child { border-bottom: 1px solid var(--line); }
  .project-row > :first-child, .project-row > .next-action, .project-row > .text-link { grid-column: 1 / -1; }
  .project-row > :nth-child(2), .project-row > :nth-child(3), .project-row > :nth-child(4), .project-row > :nth-child(5), .project-row > :nth-child(6) { display: block; }
  .project-row > .text-link { width: 100%; min-height: 38px; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
  .project-row > .project-next-cta { grid-column: 1 / -1; width: 100%; }
  .project-cover { grid-template-columns: 1fr; }
  .cover-art { min-height: 210px; border: 0; border-top: 1px solid var(--line); order: -1; }
  .assessment-grid, .readiness, .process-columns { grid-template-columns: 1fr; }
  .deal-layout { grid-template-columns: minmax(0, 1fr); }
  .dimensions, .action-grid, .two-col, .check-grid, .fit-panel { grid-template-columns: 1fr; }
  .check:nth-child(odd) { border-right: 0; }
  .check:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .opportunities { grid-template-columns: 1fr; }
  .opportunity:last-child { display: flex; }
  .mandate-grid { grid-template-columns: 1fr 1fr; }
  .deal-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 9px; }
  .deal-nav button { width: auto; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .deal-nav button.active { border-left: 0; border-bottom-color: var(--teal); }
  .primary-actions { flex-wrap: wrap; }
  .primary-actions .btn { flex: 1 1 calc(50% - 5px); }
  .primary-actions .btn:first-child { flex-basis: 100%; }
  .process-status { grid-template-columns: 1fr 1fr; }
  .form-grid, .package-list { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .backdrop { height: 100vh; height: 100dvh; overflow: hidden; }
  .modal { position: fixed; inset: 0; transform: none; width: 100%; height: 100vh; height: 100dvh; max-height: none; padding: 0; box-shadow: none; }
  .modal-head { z-index: 2; padding: 20px 18px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .modal-head .kicker { margin-bottom: 7px; }
  .modal-head h2 { margin-bottom: 7px; font-size: 1.6rem; }
  .modal-body { padding: 18px; -webkit-overflow-scrolling: touch; }
  .modal-body .form-grid { margin-top: 0; gap: 13px; }
  .modal-body .package-list { margin: 0 0 18px; }
  .field { gap: 5px; }
  .field input, .field select { min-height: 47px; }
  .modal-actions { z-index: 2; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 9px; margin: 0; padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  .modal-actions .btn { width: 100%; min-width: 0; white-space: normal; line-height: 1.25; }
  .drawer { position: fixed; height: 100vh; height: 100dvh; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; }
  .data-table { display: block; border: 0; background: transparent; font-size: .75rem; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 9px; }
  .data-table tr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--surface); padding: 14px; }
  .data-table td, .data-table th:not(:first-child), .data-table td:not(:first-child) { display: block; padding: 7px 0; border: 0; text-align: left; }
  .data-table td::before { display: block; margin-bottom: 4px; color: var(--muted); font: 500 .59rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .data-table td:nth-child(1) { grid-column: 1 / -1; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-weight: 700; }
  .data-table:not(.audit-table) td:nth-child(1)::before { content: "Participant"; }
  .data-table:not(.audit-table) td:nth-child(2)::before { content: "Commitment"; }
  .data-table:not(.audit-table) td:nth-child(3)::before { content: "Participation"; }
  .data-table:not(.audit-table) td:nth-child(4) { grid-column: 1 / -1; }
  .data-table:not(.audit-table) td:nth-child(4)::before { content: "Status"; }
  .audit-table tr { grid-template-columns: 1fr auto; }
  .audit-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: .78rem; line-height: 1.35; }
  .audit-table td:nth-child(1) { grid-column: 1; grid-row: 2; padding-top: 11px; border-bottom: 0; font-weight: 400; }
  .audit-table td:nth-child(5) { grid-column: 2; grid-row: 2; padding-top: 11px; }
  .audit-table td:nth-child(3), .audit-table td:nth-child(4) { display: none; }
  .audit-table td::before { display: none; }
  .landing-topbar .landing-nav, .landing-topbar .btn-ghost { display: none; }
  .landing-topbar .btn-primary { margin-left: auto; }
  .landing-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px 16px 48px; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(2.15rem, 9.6vw, 2.5rem); line-height: .98; letter-spacing: -.058em; }
  .hero-copy > p { font-size: .84rem; line-height: 1.62; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 270px; margin-top: 0; order: -1; padding: 10px; }.hero-visual img { height: 250px; }.hero-visual::after { inset: 10px; }.hero-visual-frame { inset: 22px; }.visual-caption { left: 24px; right: 24px; bottom: 19px; font-size: .52rem; }.diagram-label { font-size: .55rem; }.label-a { top: 64px; }.label-b { top: 103px; }.label-c { bottom: 82px; }.label-d { bottom: 54px; }
  .hero-visual-linework { min-height: 237px; padding: 0 0 26px; }
  .hero-visual-linework img { height: 210px; object-fit: contain; transform: scale(1.08); transform-origin: 50% 56%; }
  .hero-visual-linework .visual-caption { left: 10px; right: 10px; bottom: 8px; font-size: .46rem; }
  .landing-section { padding: 50px 16px; }.landing-section > h2, .sides-section > div > h2 { font-size: 2rem; line-height: 1.03; }
  .promise-grid, .side-columns { grid-template-columns: 1fr; }.promise-grid article, .promise-grid article:not(:first-child) { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }.promise-grid h3 { margin: 28px 0 6px; }.side-columns article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-top: 25px; }
  .workflow-map { grid-template-columns: 1fr; gap: 9px; }.workflow-phase { padding: 14px; }.workflow-node strong { font-size: .74rem; }.lifecycle-detail { grid-template-columns: 1fr; align-items: start; }.selected-stage-title { grid-template-columns: 1fr 1.5fr; align-items: baseline; }
  .boundary-flow { grid-template-columns: 1fr; gap: 7px; }.boundary-flow > b { transform: rotate(90deg); }.boundary-flow > div:last-child, .boundary-flow > b:nth-last-child(2) { display: flex; }.boundary-flow > b:nth-last-child(2) { display: block; }.boundary-foot { align-items: flex-start; flex-direction: column; }
  .workspace-tabs { margin-top: 0; }.project-cover { grid-template-columns: 1fr; }.cover-art { min-height: 180px; }
  .priority-group { grid-template-columns: 1fr; }.priority-label { padding: 12px 0 5px; }
  .mandate-strip { grid-template-columns: 1fr 1fr; }.mandate-strip > div { min-width: 0; border-bottom: 1px solid var(--line); }.mandate-strip > div:first-child { grid-column: 1 / -1; }.mandate-strip strong { overflow-wrap: anywhere; }
  .opportunity-register { overflow: visible; border: 0; background: transparent; }
  .opportunity-head { display: none; }
  .opportunity-row { min-width: 0; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 10px; padding: 17px; border: 1px solid var(--line); background: var(--surface); font-size: .76rem; }
  .opportunity-row > :nth-child(2), .opportunity-row > :nth-child(3) { display: block; }
  .opportunity-row > :first-child, .opportunity-row > :nth-child(8), .opportunity-row > :last-child { grid-column: 1 / -1; }
  .opportunity-row > :not(:first-child):not(:nth-child(8)):not(:last-child)::before { display: block; margin-bottom: 4px; color: var(--muted); font: 500 .57rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
  .opportunity-row > :nth-child(2)::before { content: "Location"; }
  .opportunity-row > :nth-child(3)::before { content: "Asset"; }
  .opportunity-row > :nth-child(4)::before { content: "Capital required"; }
  .opportunity-row > :nth-child(5)::before { content: "Readiness"; }
  .opportunity-row > :nth-child(6)::before { content: "Risk"; }
  .opportunity-row > :nth-child(7)::before { content: "Mandate fit"; }
  .opportunity-row > :nth-child(8) { padding-top: 3px; }
  .opportunity-row > .text-link { width: 100%; min-height: 38px; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
  .opportunity-row > .opportunity-primary { grid-column: 1 / -1; width: 100%; }
  .process-columns.expanded, .operations-empty { grid-template-columns: 1fr; }.capital-flow-panel { position: static; }.timeline-detail { grid-template-columns: 1fr; }.timeline-detail > div:last-child { grid-column: auto; }.unlock-strip { overflow: visible; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding-bottom: 0; }.unlock-strip::before { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .role-popover { position: fixed; top: 62px; right: 8px; width: min(330px, calc(100vw - 16px)); }
  .auth-page { min-height: calc(100vh - 68px); padding: 28px 16px 44px; place-items: start center; }
  .auth-card { padding: 26px 20px 22px; }
  .auth-back { margin-bottom: 27px; }
  .auth-card h1 { font-size: 1.72rem; }
  .auth-footer, .landing-footer { min-height: 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); flex-direction: column; align-items: flex-start; gap: 8px; }
}
