:root {
  --ink: #11120f;
  --ink-soft: #171814;
  --surface: #1c1d18;
  --surface-raised: #24251f;
  --surface-light: #2b2c25;
  --limestone: #e8e0cf;
  --limestone-bright: #fffaf0;
  --limestone-muted: #c9bfac;
  --muted: #aaa18f;
  --line: #45463c;
  --line-soft: #33342c;
  --brass: #d2ad70;
  --brass-bright: #f0cb8c;
  --brass-dark: #8f6c3e;
  --green: #9bc697;
  --green-bg: #203423;
  --amber: #f0c77a;
  --amber-bg: #3a2f1c;
  --red: #f0a08b;
  --red-bg: #3d241f;
  --blue: #a9cbe2;
  --blue-bg: #1d303d;
  --shadow: 0 24px 80px rgb(0 0 0 / 32%);
  --radius: 3px;
  --shell: 1480px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 11% 9%, rgb(210 173 112 / 7%), transparent 27rem),
    linear-gradient(180deg, #141510 0, var(--ink) 38rem);
  color: var(--limestone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  min-width: 320px;
}

body::before {
  background-image:
    linear-gradient(90deg, transparent 49.7%, rgb(255 255 255 / 1.5%) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgb(255 255 255 / 1.2%) 50%, transparent 50.3%);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.evaluation-login-page {
  min-height: 100vh;
}

.evaluation-login-shell {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.72fr);
  min-height: 100vh;
  padding-block: clamp(2rem, 7vw, 6.5rem);
}

.evaluation-login-copy,
.evaluation-login-access {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.evaluation-login-copy {
  background:
    radial-gradient(circle at 15% 15%, rgb(210 173 112 / 14%), transparent 28rem),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.evaluation-login-copy h1 {
  max-width: 12ch;
}

.evaluation-login-copy > p:not(.eyebrow) {
  color: var(--limestone-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 38rem;
}

.evaluation-login-boundary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
  margin-top: clamp(2rem, 5vw, 4.5rem);
  max-width: 38rem;
  padding-top: 1.4rem;
}

.evaluation-login-boundary strong {
  color: var(--brass-bright);
}

.evaluation-login-boundary span,
.evaluation-login-access > p:not(.eyebrow) {
  color: var(--muted);
}

.evaluation-login-access {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 0;
}

.evaluation-login-access h2 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  max-width: 11ch;
}

.evaluation-login-form {
  background: var(--surface);
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.evaluation-login-form .button {
  margin-top: 0.75rem;
  min-height: 3.4rem;
  width: 100%;
}

@media (max-width: 820px) {
  .evaluation-login-shell {
    grid-template-columns: 1fr;
    padding-block: 1rem;
  }

  .evaluation-login-copy,
  .evaluation-login-access {
    padding: clamp(2rem, 9vw, 4rem) clamp(1.25rem, 7vw, 3rem);
  }

  .evaluation-login-access {
    border-left: 1px solid var(--line);
    border-top: 0;
  }
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--brass-bright);
  text-decoration-color: rgb(240 203 140 / 50%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--limestone-bright);
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

h2 {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

h3 {
  color: var(--limestone-bright);
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

small,
.muted {
  color: var(--muted);
}

code,
pre {
  font-family: "Cascadia Mono", Consolas, monospace;
}

code {
  overflow-wrap: anywhere;
}

pre {
  background: #10110e;
  border: 1px solid var(--line-soft);
  color: var(--limestone-muted);
  font-size: 0.78rem;
  max-width: 34rem;
  overflow: auto;
  padding: 0.85rem;
  white-space: pre-wrap;
}

.shell {
  margin-inline: auto;
  max-width: var(--shell);
  padding-inline: clamp(1rem, 3.3vw, 3.5rem);
  width: 100%;
}

.main-shell {
  min-height: calc(100vh - 15rem);
  padding-block: clamp(2.75rem, 6vw, 6.5rem) 7rem;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--brass-bright);
  color: var(--ink);
  font-weight: 800;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -8rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgb(17 18 15 / 94%);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-shell {
  align-items: center;
  display: flex;
  gap: 2rem;
  margin-inline: auto;
  max-width: var(--shell);
  min-height: 82px;
  padding-inline: clamp(1rem, 3.3vw, 3.5rem);
}

.brand {
  align-items: center;
  color: var(--limestone-bright);
  display: inline-flex;
  gap: 0.85rem;
  margin-right: auto;
  min-height: 48px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  display: inline-flex;
  font-family: var(--serif);
  font-size: 1rem;
  height: 43px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 43px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-top: 0.28rem;
  text-transform: uppercase;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 0.2rem;
}

.primary-nav a {
  border: 1px solid transparent;
  color: var(--limestone-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  min-height: 44px;
  padding: 0.75rem 0.72rem;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--limestone-bright);
}

.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--brass);
  color: var(--brass-bright);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.nav-toggle span:not(.sr-only) {
  background: var(--limestone);
  display: block;
  height: 1px;
  width: 21px;
}

.safety-rail {
  background: #191a15;
  border-bottom: 1px solid var(--line-soft);
}

.safety-rail-inner {
  align-items: center;
  display: flex;
  gap: 1rem 2rem;
  justify-content: space-between;
  min-height: 45px;
}

.safety-rail p {
  align-items: center;
  color: var(--limestone-muted);
  display: flex;
  font-size: 0.7rem;
  gap: 0.55rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.safety-rail strong {
  color: var(--amber);
  text-transform: uppercase;
}

.safety-lock {
  color: var(--muted) !important;
  text-transform: uppercase;
}

.safety-lock span {
  color: var(--brass);
}

.status-light {
  background: var(--muted);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 5%);
  display: inline-block;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.status-light--green { background: var(--green); }
.status-light--amber { background: var(--amber); }
.status-light--red { background: var(--red); }

.site-footer {
  background: #0d0e0c;
  border-top: 1px solid var(--line-soft);
  padding-block: 2.6rem;
}

.footer-grid {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.5fr auto;
}

.footer-grid p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}

.footer-grid strong {
  color: var(--limestone);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.footer-meta {
  letter-spacing: 0.09em;
  text-align: right;
}

.eyebrow {
  color: var(--brass);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.page-header {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.8rem);
}

.page-header > div {
  max-width: 65rem;
}

.page-header h1 {
  max-width: 18ch;
}

.page-intro {
  color: var(--limestone-muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 66ch;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 0.77rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.07em;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #17120b;
}

.button--primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  color: #17120b;
}

.button--secondary {
  background: transparent;
  border-color: var(--brass-dark);
  color: var(--brass-bright);
}

.button--secondary:hover {
  background: rgb(210 173 112 / 10%);
  border-color: var(--brass);
  color: var(--limestone-bright);
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--limestone-muted);
}

.button--ghost:hover {
  border-color: var(--limestone-muted);
  color: var(--limestone-bright);
}

.button--full {
  width: 100%;
}

.text-link,
.source-link {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-link {
  display: block;
  margin-top: 0.45rem;
  width: fit-content;
}

.notice {
  align-items: center;
  background: var(--green-bg);
  border: 1px solid #446c48;
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding: 0.9rem 1rem;
}

.notice > span {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: #132015;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.notice p {
  margin: 0;
}

.notice button {
  background: transparent;
  border: 0;
  color: var(--limestone);
  font-size: 1.5rem;
  height: 44px;
  margin-left: auto;
  width: 44px;
}

.panel {
  background: linear-gradient(145deg, rgb(39 40 33 / 94%), rgb(26 27 22 / 96%));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(255 255 255 / 2%) inset;
  padding: clamp(1.15rem, 2.4vw, 2rem);
}

.panel-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 0;
}

.panel-heading .eyebrow {
  margin-bottom: 0.4rem;
}

.panel-count {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--limestone-muted);
  display: inline-flex;
  font-family: var(--serif);
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0.3rem;
}

.badge {
  background: #303129;
  border: 1px solid #515247;
  color: var(--limestone-muted);
  display: inline-flex;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.15;
  max-width: 17rem;
  padding: 0.35rem 0.47rem;
  text-transform: uppercase;
}

.badge--verified,
.badge--pass,
.badge--approved,
.badge--healthy,
.badge--receipt-verified,
.badge--awarded {
  background: var(--green-bg);
  border-color: #426646;
  color: var(--green);
}

.badge--needs-human,
.badge--unknown,
.badge--mandatory,
.badge--high,
.badge--degraded,
.badge--human-go,
.badge--compliance-review,
.badge--estimating {
  background: var(--amber-bg);
  border-color: #6c5730;
  color: var(--amber);
}

.badge--failed,
.badge--no-bid,
.badge--rejected,
.badge--withdrawn,
.badge--error {
  background: var(--red-bg);
  border-color: #754137;
  color: var(--red);
}

.badge--synthetic,
.badge--public-html,
.badge--public-api-key,
.badge--grade-a,
.badge--competitive-context-only {
  background: var(--blue-bg);
  border-color: #3c5c70;
  color: var(--blue);
}

.badge--not-menza,
.badge--unverified {
  background: #33273a;
  border-color: #664875;
  color: #d5b2e3;
}

.tag-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  border: 1px solid var(--line);
  color: var(--limestone-muted);
  font-size: 0.66rem;
  padding: 0.23rem 0.42rem;
}

.metric-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 185px;
  padding: 1.5rem;
  position: relative;
}

.metric-card::before {
  background: var(--line);
  content: "";
  height: 2px;
  left: 1.5rem;
  position: absolute;
  right: 1.5rem;
  top: 0;
}

.metric-card--attention::before {
  background: var(--amber);
}

.metric-card p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--limestone-bright);
  display: block;
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 400;
  line-height: 1;
}

.metric-card a {
  bottom: 1.35rem;
  font-size: 0.69rem;
  font-weight: 800;
  position: absolute;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr 0.72fr;
}

.panel--span-2 {
  grid-column: span 2;
}

.readiness-pulse {
  display: flex;
  flex-direction: column;
}

.readiness-pulse > p {
  color: var(--limestone-muted);
  font-size: 0.88rem;
}

.readiness-pulse .button {
  margin-top: auto;
}

.readiness-count {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-block: 0.5rem 1.2rem;
  padding-block: 1.2rem;
}

.readiness-count strong,
.readiness-count span {
  display: block;
}

.readiness-count strong {
  color: var(--amber);
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 1;
}

.readiness-count span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
  padding: 1rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 0;
  text-transform: uppercase;
}

tbody th {
  color: var(--limestone);
  font-weight: 700;
}

tbody tr:hover {
  background: rgb(255 255 255 / 2%);
}

td small,
th small {
  display: block;
  font-size: 0.66rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

.record-title {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.score {
  align-items: baseline;
  border: 1px solid var(--line);
  color: var(--limestone);
  display: inline-flex;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 1.25rem;
  gap: 0.15rem;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 0.3rem;
}

.score small {
  font-family: var(--sans);
  font-size: 0.55rem;
  margin: 0;
}

.score--high { border-color: #4e7a51; color: var(--green); }
.score--medium { border-color: #7b6338; color: var(--amber); }
.score--low { border-color: #754137; color: var(--red); }

.task-list,
.record-list,
.control-list,
.note-list,
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-list li {
  align-items: start;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1rem;
}

.task-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.task-list p,
.task-list small {
  font-size: 0.72rem;
  margin-bottom: 0;
}

.task-list p { color: var(--limestone-muted); margin-top: 0.25rem; }
.task-list--plain li:first-child { padding-top: 1rem; }

.record-list li {
  border-top: 1px solid var(--line-soft);
  padding-block: 0.9rem;
}

.record-list li:first-child { border-top: 0; padding-top: 0; }
.record-list a { display: flex; gap: 0.5rem; justify-content: space-between; }
.record-list a strong { color: var(--limestone-bright); }
.record-list a span { color: var(--limestone-muted); font-size: 0.72rem; }
.record-list p { color: var(--muted); font-size: 0.72rem; margin: 0.35rem 0; }

.empty-state {
  align-items: center;
  border: 1px dashed var(--line);
  display: flex;
  gap: 1rem;
  min-height: 125px;
  padding: 1.25rem;
}

.empty-state-mark {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 2rem;
}

.empty-state h3,
.empty-state p {
  margin-bottom: 0.25rem;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-panel {
  margin-top: 1.5rem;
}

.generated-at {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: -3rem;
}

.section-nav {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 3rem;
}

.section-nav a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--limestone);
  display: flex;
  font-size: 0.73rem;
  font-weight: 800;
  justify-content: space-between;
  min-height: 54px;
  padding: 0.8rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.section-nav span {
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.record-card {
  background: #1a1b17;
  border: 1px solid var(--line-soft);
  padding: 1rem;
}

.record-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.record-card h3 { margin: 0.7rem 0 0.3rem; }
.record-card p { color: var(--limestone-muted); font-size: 0.78rem; }

.control-list li {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.control-list li:first-child { border-top: 0; }
.control-list strong,
.control-list span { display: block; }
.control-list span { color: var(--muted); font-size: 0.68rem; }

.toolbar {
  align-items: center;
  background: #181914;
  border: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  min-height: 70px;
  padding: 0.7rem 1rem;
}

.toolbar label {
  color: var(--limestone-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar p {
  color: var(--muted);
  font-size: 0.7rem;
  margin: 0 0 0 auto;
}

.search-field {
  align-items: center;
  display: flex;
  flex: 1 1 30rem;
  max-width: 42rem;
  position: relative;
}

.search-field > span {
  color: var(--muted);
  font-size: 1.4rem;
  left: 0.8rem;
  position: absolute;
}

.search-field input {
  padding-left: 2.4rem;
}

.filter-empty {
  color: var(--muted);
  margin: 2rem 0 0;
  text-align: center;
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  gap: 0.65rem;
  margin-bottom: 2.3rem;
  text-transform: uppercase;
}

.detail-hero {
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 1.5rem;
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
}

.detail-hero--compact {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.detail-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 5.2rem);
  max-width: 18ch;
}

.detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.7rem;
}

.score-card,
.next-action-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.score-card > span,
.next-action-card > span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-card > strong {
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 0.95;
  margin-top: 0.8rem;
}

.score-card ul {
  border-top: 1px solid var(--line);
  color: var(--limestone-muted);
  font-size: 0.7rem;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1rem 0 0;
}

.score-card li::before { color: var(--brass); content: "+ "; }

.next-action-card strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.25;
  margin-block: 0.8rem;
}

.fact-strip {
  background: #181914;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.5rem;
}

.fact-strip > div {
  border-left: 1px solid var(--line-soft);
  min-height: 105px;
  padding: 1.1rem;
}

.fact-strip > div:first-child { border-left: 0; }
.fact-strip span,
.fact-strip strong,
.fact-strip small { display: block; }
.fact-strip > div > span { color: var(--muted); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 0.5rem; text-transform: uppercase; }
.fact-strip strong { color: var(--limestone-bright); font-family: var(--serif); font-size: 1rem; font-weight: 400; overflow-wrap: anywhere; }

.detail-grid {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 345px;
}

.detail-main {
  display: grid;
  gap: 1.5rem;
}

.sticky-panel {
  position: sticky;
  top: 9rem;
}

.sticky-panel > p:not(.eyebrow) {
  color: var(--limestone-muted);
  font-size: 0.82rem;
}

.sticky-panel hr,
.form-disclosure + hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 1.5rem;
}

.callout {
  border: 1px solid var(--line);
  border-left-width: 3px;
  margin-block: 1rem;
  padding: 0.9rem 1rem;
}

.callout strong { display: block; font-size: 0.78rem; margin-bottom: 0.25rem; }
.callout p,
.callout li { color: var(--limestone-muted); font-size: 0.75rem; }
.callout p { margin-bottom: 0; }
.callout ul { margin-bottom: 0; padding-left: 1.2rem; }
.callout--warning { background: var(--amber-bg); border-color: #725b32; color: var(--amber); }
.callout--danger { background: var(--red-bg); border-color: #81483d; color: var(--red); }
.callout--neutral { background: #20251f; border-color: #465745; color: var(--green); }

.requirement-list,
.note-list {
  display: grid;
  gap: 1rem;
}

.requirement-card,
.note-list > li {
  background: #181914;
  border: 1px solid var(--line-soft);
  padding: 1.1rem;
}

.requirement-top,
.note-top,
.timeline-top {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}

.requirement-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-block: 1rem;
}

.citation-grid,
.mini-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.citation-grid > div,
.mini-facts > div {
  border-top: 1px solid var(--line-soft);
  padding: 0.75rem 0.75rem 0.75rem 0;
}

.citation-grid dt,
.mini-facts dt,
.evidence-card dt,
.hash-list dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.citation-grid dd,
.mini-facts dd,
.evidence-card dd,
.hash-list dd {
  color: var(--limestone-muted);
  font-size: 0.72rem;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.short-hash {
  color: var(--muted);
  display: block;
  font-size: 0.61rem;
  margin-top: 0.35rem;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline li {
  display: grid;
  gap: 1rem;
  grid-template-columns: 15px 1fr;
  position: relative;
}

.timeline li:not(:last-child)::before {
  background: var(--line);
  content: "";
  left: 7px;
  position: absolute;
  top: 17px;
  bottom: -1px;
  width: 1px;
}

.timeline-mark {
  background: var(--brass);
  border: 4px solid var(--surface-raised);
  border-radius: 50%;
  height: 15px;
  margin-top: 0.2rem;
  position: relative;
  width: 15px;
  z-index: 1;
}

.timeline li > div {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1.25rem;
}

.timeline li + li { padding-top: 1.2rem; }
.timeline p { color: var(--limestone-muted); font-size: 0.78rem; margin: 0.45rem 0; }
.timeline time { color: var(--muted); font-size: 0.66rem; }

.stack-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

label {
  color: var(--limestone);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

label span {
  color: var(--muted);
  font-weight: 500;
}

input,
select,
textarea {
  background: #11120f;
  border: 1px solid #55564a;
  border-radius: 0;
  color: var(--limestone-bright);
  min-height: 46px;
  padding: 0.68rem 0.75rem;
  width: 100%;
}

textarea {
  line-height: 1.45;
  min-height: 7rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #817a6c; }
input:hover,
select:hover,
textarea:hover { border-color: #76776a; }

.stack-form .button { margin-top: 0.7rem; }

.form-disclosure {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}

.form-disclosure summary,
details summary {
  color: var(--brass-bright);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  min-height: 44px;
  padding-block: 0.7rem;
}

.form-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.form-panel,
.estimator-form {
  padding: clamp(1.25rem, 3vw, 3rem);
}

.form-section-heading {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  margin-block: 2.4rem 1.4rem;
  padding-top: 1.2rem;
}

.form-section-heading:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.form-section-heading > span { color: var(--brass); font-family: var(--serif); font-size: 1.15rem; }
.form-section-heading h2 { font-size: 1.45rem; margin-bottom: 0.25rem; }
.form-section-heading p { color: var(--muted); font-size: 0.75rem; margin: 0; }

.form-grid {
  display: grid;
  gap: 1.15rem;
}

.form-grid--2 { grid-template-columns: repeat(2, 1fr); }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid--narrow { max-width: 52rem; }
.field--span-2 { grid-column: span 2; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.field small {
  font-size: 0.66rem;
  line-height: 1.4;
}

.confirmation {
  align-items: start;
  background: var(--amber-bg);
  border: 1px solid #6c5730;
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 1rem;
}

.confirmation input {
  flex: 0 0 auto;
  height: 21px;
  min-height: 21px;
  margin-top: 0.15rem;
  width: 21px;
}

.confirmation span {
  color: var(--limestone-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.confirmation strong { color: var(--amber); }

.form-actions {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.guidance-panel {
  background: #e3dac6;
  color: #2a2923;
  padding: 2rem;
  position: sticky;
  top: 9rem;
}

.guidance-panel .eyebrow { color: #75562f; }
.guidance-panel h2 { color: #1b1c17; }
.guidance-panel ol { list-style: none; margin: 2rem 0 0; padding: 0; }
.guidance-panel li { border-top: 1px solid #bdb39e; display: grid; gap: 0.8rem; grid-template-columns: 25px 1fr; padding-block: 1rem; }
.guidance-panel li > span { color: #75562f; font-family: var(--serif); font-size: 1.1rem; }
.guidance-panel strong { display: block; font-size: 0.78rem; }
.guidance-panel p { font-size: 0.75rem; margin: 0.3rem 0 0; }

.note-list blockquote {
  border-left: 2px solid var(--brass-dark);
  color: var(--limestone);
  font-family: var(--serif);
  font-size: 1.08rem;
  margin: 1rem 0;
  padding-left: 1rem;
}

.estimator-principles {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.5rem;
}

.estimator-principles > div {
  background: #181914;
  border: 1px solid var(--line);
  padding: 1.3rem;
}

.estimator-principles span { color: var(--brass); font-family: var(--serif); }
.estimator-principles strong { color: var(--limestone-bright); display: block; margin-block: 0.6rem 0.3rem; }
.estimator-principles p { color: var(--muted); font-size: 0.74rem; margin: 0; }

.estimator-form section + section {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.cost-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.cost-field {
  background: #191a16;
  border: 1px solid var(--line-soft);
  padding: 1rem;
}

.cost-field label > span,
.cost-field label > small { display: block; }
.cost-field label > small { font-size: 0.62rem; font-weight: 400; margin-block: 0.25rem 0.65rem; min-height: 2.5em; }

.money-input,
.suffix-input {
  align-items: center;
  display: flex;
  position: relative;
}

.money-input > span {
  color: var(--brass);
  left: 0.7rem;
  position: absolute;
}

.money-input input { padding-left: 1.7rem; }
.suffix-input > span { color: var(--muted); position: absolute; right: 0.8rem; }
.suffix-input input { padding-right: 2rem; }

.result-hero {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 3rem;
}

.result-hero h1 { max-width: 18ch; }
.result-hero h1 em { color: var(--brass); font-weight: 400; }

.result-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.5rem;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 210px;
  padding: 1.5rem;
}

.result-card > span { color: var(--muted); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.result-card > strong { color: var(--limestone-bright); display: block; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; line-height: 1; margin-block: 1.4rem; }
.result-card > p { color: var(--muted); font-size: 0.73rem; margin: 0; }
.result-card--primary { background: #d8c9aa; border-color: #d8c9aa; color: #1c1c17; }
.result-card--primary > span,
.result-card--primary > p { color: #5a523f; }
.result-card--primary > strong { color: #1c1c17; }

.result-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 350px;
}

.evidence-card dl { margin: 1.4rem 0; }
.evidence-card dl > div { border-top: 1px solid var(--line-soft); padding-block: 0.8rem; }

.gate-summary {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  margin-bottom: 1.5rem;
}

.gate-summary > div { border-left: 1px solid var(--line); padding: 1.4rem; }
.gate-summary > div:first-child { border-left: 3px solid var(--amber); }
.gate-summary p { color: var(--muted); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; margin: 0; text-transform: uppercase; }
.gate-summary strong,
.gate-summary span { color: var(--limestone-bright); display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1.1; margin-bottom: 0.35rem; }
.gate-summary--pass > div:first-child { border-left-color: var(--green); }
.gate-summary--no-bid > div:first-child { border-left-color: var(--red); }

.readiness-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.readiness-card header,
.source-card header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.readiness-card h2,
.source-card h2 { font-size: 1.3rem; margin-bottom: 0; }
.control-key,
.source-slug { color: var(--brass); display: block; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 0.4rem; text-transform: uppercase; }
.applies-to { color: var(--muted); font-size: 0.69rem; margin-block: 1rem; text-transform: uppercase; }

.identity-card {
  background: #ddd2bc;
  color: #292821;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
}

.identity-card .eyebrow { color: #75562f; }
.identity-card h2 { color: #171813; font-size: clamp(1.8rem, 3.2vw, 3.2rem); }
.identity-card p { font-size: 0.8rem; max-width: 65ch; }
.identity-card a { color: #62471f; }
.identity-card dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.identity-card dl > div { border-top: 1px solid #b5aa94; padding: 1rem; }
.identity-card dt { color: #6d6554; font-size: 0.61rem; font-weight: 800; text-transform: uppercase; }
.identity-card dd { font-family: var(--serif); margin: 0.25rem 0 0; }

.research-status {
  align-items: center;
  background: var(--amber-bg);
  border: 1px solid #725b32;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem;
}

.research-status > span {
  align-items: center;
  border: 1px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--serif);
  height: 36px;
  justify-content: center;
  width: 36px;
}

.research-status strong { color: var(--amber); }
.research-status p { color: var(--limestone-muted); font-size: 0.76rem; margin: 0.25rem 0 0; }
.panel--market { border-color: #664875; }

.evidence-grade-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.5rem;
}

.evidence-grade-grid > h2 { grid-column: 1 / -1; margin: 1rem 0; }
.evidence-grade-grid article { background: var(--surface); border: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: 42px 1fr; padding: 1.2rem; }
.evidence-grade-grid article > strong { align-items: center; border: 1px solid var(--brass-dark); color: var(--brass-bright); display: inline-flex; font-family: var(--serif); font-size: 1.3rem; height: 42px; justify-content: center; width: 42px; }
.evidence-grade-grid h3 { font-size: 0.78rem; margin-bottom: 0.3rem; }
.evidence-grade-grid p { color: var(--muted); font-size: 0.68rem; margin: 0; }

.source-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.source-card > .source-link { margin-top: 1rem; }
.source-card .status-light { height: 11px; margin: 0.5rem; width: 11px; }

.audit-table details { min-width: 7rem; }
.hash-list { margin: 0.5rem 0; }
.hash-list > div { border-top: 1px solid var(--line-soft); padding-block: 0.5rem; }
.hash-list code { display: block; font-size: 0.61rem; max-width: 25rem; }

.error-state {
  margin: 6vh auto;
  max-width: 65rem;
  padding-block: 4rem;
  text-align: center;
}

.error-state > span {
  color: var(--brass-dark);
  display: block;
  font-family: var(--serif);
  font-size: clamp(6rem, 20vw, 15rem);
  line-height: 0.75;
  opacity: 0.35;
}

.error-state h1 { margin-inline: auto; max-width: 15ch; }
.error-state > p:not(.eyebrow) { color: var(--muted); margin-inline: auto; max-width: 60ch; }
.error-state > div { display: flex; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

@media (max-width: 1180px) {
  .primary-nav a { font-size: 0.7rem; padding-inline: 0.5rem; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .readiness-pulse { grid-column: span 2; }
  .detail-grid,
  .result-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .evidence-grade-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    align-items: stretch;
    background: #11120f;
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    inset: 82px 0 auto;
    max-height: calc(100vh - 82px);
    overflow: auto;
    padding: 1rem;
    position: fixed;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { align-items: center; border-bottom: 1px solid var(--line-soft); display: flex; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; min-height: 58px; padding-inline: 0.5rem; text-transform: none; }
  .safety-rail-inner { align-items: start; flex-direction: column; padding-block: 0.65rem; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid,
  .form-layout,
  .result-layout { grid-template-columns: 1fr; }
  .detail-aside { order: -1; }
  .sticky-panel,
  .guidance-panel { position: static; }
  .form-grid--3,
  .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .identity-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 760px) {
  h1 { font-size: clamp(2.45rem, 13vw, 4.3rem); }
  .main-shell { padding-block: 2.5rem 5rem; }
  .page-header,
  .result-hero { align-items: start; flex-direction: column; }
  .page-header .button { width: 100%; }
  .metric-grid,
  .dashboard-grid,
  .section-nav,
  .card-grid--3,
  .result-grid,
  .readiness-grid,
  .source-grid,
  .estimator-principles,
  .gate-summary,
  .evidence-grade-grid { grid-template-columns: 1fr; }
  .panel--span-2,
  .readiness-pulse { grid-column: auto; }
  .detail-hero,
  .detail-hero--compact { gap: 1.5rem; grid-template-columns: 1fr; }
  .score-card { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: start; }
  .score-card > strong { font-size: 3.5rem; margin: 0; }
  .score-card ul { flex-basis: 100%; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .fact-strip > div:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar p { margin-left: 0; }
  .search-field { flex-basis: auto; width: 100%; }
  .form-grid--2,
  .form-grid--3,
  .cost-grid { grid-template-columns: 1fr; }
  .field--span-2 { grid-column: auto; }
  .citation-grid,
  .mini-facts { grid-template-columns: 1fr; }
  .identity-card dl { grid-template-columns: 1fr; }
  .evidence-grade-grid > h2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .table-wrap { margin-inline: -0.4rem; width: calc(100% + 0.8rem); }
  th,
  td { min-width: 8.5rem; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .header-shell { min-height: 72px; }
  .primary-nav { inset-block-start: 72px; max-height: calc(100vh - 72px); }
  .safety-lock { display: none !important; }
  .metric-card { min-height: 160px; }
  .metric-card strong { font-size: 3rem; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip > div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .fact-strip > div:first-child { border-top: 0; }
  .panel { padding: 1rem; }
  .error-state > div { flex-direction: column; }
}

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

@media print {
  body { background: #fff; color: #111; }
  body::before,
  .site-header,
  .safety-rail,
  .site-footer,
  .button,
  form,
  .toolbar { display: none !important; }
  .main-shell { max-width: none; padding: 0; }
  .panel { background: #fff; border-color: #aaa; box-shadow: none; color: #111; }
  h1,
  h2,
  h3,
  strong,
  p,
  td,
  th,
  small { color: #111 !important; }
  a { color: #111; text-decoration: underline; }
}

/* Vic evaluation: new-job-first capture and evidence coverage */
.vp-job-mode { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0; }
.vp-job-mode label { display:flex; gap:.7rem; align-items:flex-start; border:1px solid var(--line); padding:1rem; cursor:pointer; min-height:4.8rem; }
.vp-job-mode input { margin-top:.25rem; inline-size:1.2rem; block-size:1.2rem; accent-color:var(--gold); }
.vp-job-mode span { display:grid; gap:.2rem; }
.vp-job-mode small { color:var(--muted); }
.vp-existing-job { display:grid; gap:.55rem; padding:1rem; border:1px solid var(--line); background:color-mix(in srgb,var(--surface) 92%,transparent); }
.vp-existing-job input,.vp-existing-job select { inline-size:100%; }
.vp-new-job-prompt { margin-top:.85rem; padding:.9rem 1rem; border-left:3px solid var(--gold); background:var(--surface); color:var(--muted); }
.vp-new-job-prompt strong { color:var(--ink); }
.vp-photo-count { margin:.75rem 0 .35rem; color:var(--muted); font-size:.9rem; }
.vp-photo-preview figure > div { display:flex; gap:.35rem; padding:.45rem; }
.vp-photo-preview figure button { min-inline-size:2.4rem; min-block-size:2.4rem; border:1px solid var(--line); background:transparent; color:inherit; cursor:pointer; }
.vp-coverage-coach { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:1rem; }
.vp-coverage-coach strong { inline-size:100%; }
.vp-coverage-coach span { border:1px solid var(--line); border-radius:999px; padding:.35rem .65rem; color:var(--muted); font-size:.82rem; }
.vp-generated-title { display:grid; gap:.2rem; padding:1rem; border:1px solid var(--line); background:var(--surface); }
.vp-generated-title span,.vp-generated-title small { color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.vp-generated-title strong { font-family:var(--serif); font-size:1.15rem; }
.vp-duplicate-warning { padding:1rem; border-left:3px solid #b96f36; background:color-mix(in srgb,#b96f36 10%,transparent); }
.vp-evidence-findings { display:grid; gap:.65rem; margin-top:1rem; }
.vp-evidence-findings article { border:1px solid var(--line); padding:.85rem; }
.vp-evidence-findings article > div { display:flex; gap:.65rem; align-items:center; }
.vp-evidence-findings article span { color:var(--gold); font-size:.72rem; letter-spacing:.08em; }
.vp-evidence-findings article p { margin:.55rem 0; }
.vp-evidence-findings article small { display:block; margin-top:.45rem; color:var(--muted); }
.vp-missing-views { margin-top:1rem; padding:1rem; background:var(--surface); }
.vp-editable-lines { display:grid; gap:.75rem; }
.vp-editable-line { display:grid; grid-template-columns:4.5rem minmax(0,1fr); gap:.75rem; padding:1rem; border:1px solid var(--line); background:var(--surface); }
.vp-editable-line__number { display:grid; align-content:start; gap:.6rem; }
.vp-editable-line__number > span { font-family:var(--serif); font-size:1.5rem; color:var(--gold); }
.vp-editable-line__number > div { display:flex; flex-wrap:wrap; gap:.25rem; }
.vp-editable-line__number button { inline-size:2rem; block-size:2rem; border:1px solid var(--line); background:transparent; color:inherit; cursor:pointer; }
.vp-editable-line__fields { display:grid; grid-template-columns:repeat(5,minmax(7rem,1fr)); gap:.65rem; }
.vp-editable-line__fields label { display:grid; gap:.35rem; }
.vp-editable-line__fields label > span:first-child { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; }
.vp-editable-line__fields input,.vp-editable-line__fields select { inline-size:100%; }
.vp-editable-line__fields output { display:flex; align-items:center; min-block-size:2.75rem; font-weight:700; }
.vp-line-description { grid-column:span 2; }
.vp-editable-line__evidence { grid-column:2; display:flex; gap:.65rem; align-items:center; color:var(--muted); }
.vp-editable-line__evidence span { color:var(--gold); font-size:.72rem; letter-spacing:.08em; }
.vp-direct-cost-edit { margin-top:1rem; padding:1rem; border:1px solid var(--gold); }
.vp-direct-cost-edit label { display:grid; gap:.4rem; }
.vp-direct-cost-edit small { color:var(--muted); }
.vp-live-estimate { display:grid; grid-template-columns:repeat(3,1fr); margin-top:1rem; border:1px solid var(--line); }
.vp-live-estimate article { padding:1rem; border-right:1px solid var(--line); }
.vp-live-estimate article:last-child { border-right:0; }
.vp-live-estimate span { display:block; color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.vp-live-estimate strong { display:block; margin-top:.25rem; font-family:var(--serif); font-size:1.4rem; }
@media (max-width:720px) { .vp-job-mode { grid-template-columns:1fr; } }
@media (max-width:980px) { .vp-editable-line__fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .vp-line-description { grid-column:span 2; } }
@media (max-width:620px) { .vp-editable-line { grid-template-columns:1fr; } .vp-editable-line__number { display:flex; justify-content:space-between; } .vp-editable-line__evidence { grid-column:1; } .vp-editable-line__fields { grid-template-columns:1fr; } .vp-line-description { grid-column:span 1; } .vp-live-estimate { grid-template-columns:1fr; } .vp-live-estimate article { border-right:0; border-bottom:1px solid var(--line); } }

/* Vic Voice Estimate Assistant
   -------------------------------------------------------------- */

.vp-text-warning {
  color: var(--amber) !important;
}

.vp-version {
  align-items: center;
  border-left: 1px solid var(--line);
  color: var(--limestone-muted);
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  min-height: 28px;
  padding-left: 0.7rem;
  text-transform: uppercase;
}

.vp-command-hero {
  background:
    linear-gradient(120deg, rgb(210 173 112 / 10%), transparent 44%),
    linear-gradient(145deg, #24251e, #171813 72%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  margin-bottom: 1px;
  overflow: hidden;
  position: relative;
}

.vp-command-hero::before {
  background:
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
  position: absolute;
}

.vp-command-hero__copy,
.vp-workflow-card {
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
}

.vp-command-hero__copy h1 {
  font-size: clamp(3rem, 10vw, 6.8rem);
  max-width: 10ch;
}

.vp-command-hero__copy .page-intro {
  max-width: 62ch;
}

.vp-command-hero__actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.vp-record-cta {
  align-items: center;
  background: var(--brass);
  border: 1px solid var(--brass-bright);
  color: #17120b;
  display: inline-flex;
  gap: 1rem;
  min-height: 76px;
  padding: 0.8rem 1.25rem 0.8rem 0.8rem;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.vp-record-cta:hover {
  background: var(--brass-bright);
  color: #17120b;
  transform: translateY(-2px);
}

.vp-record-cta__mark {
  align-items: center;
  background: #191712;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 54px;
  height: 54px;
  justify-content: center;
}

.vp-record-cta__mark span {
  background: #f2a07f;
  border-radius: 50%;
  height: 18px;
  width: 18px;
}

.vp-record-cta strong,
.vp-record-cta small {
  display: block;
}

.vp-record-cta strong {
  font-size: 0.86rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.vp-record-cta small {
  color: #493922;
  font-size: 0.69rem;
  margin-top: 0.12rem;
}

.vp-workflow-card {
  background: rgb(10 11 9 / 55%);
  border-top: 1px solid var(--line);
}

.vp-workflow-card h2 {
  max-width: 12ch;
}

.vp-step-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.vp-step-list li {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.3rem 1fr;
  padding: 0.9rem 0;
}

.vp-step-list li > span {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.vp-step-list strong,
.vp-step-list small {
  display: block;
}

.vp-step-list strong {
  color: var(--limestone-bright);
  font-size: 0.78rem;
}

.vp-step-list small {
  color: var(--muted);
  font-size: 0.67rem;
}

.vp-control-note {
  align-items: center;
  color: var(--limestone-muted);
  display: flex;
  font-size: 0.7rem;
  gap: 0.65rem;
  margin: 0;
}

.vp-control-note span {
  color: var(--green);
}

.vp-metric-strip {
  border: 1px solid var(--line);
  display: grid;
  margin-bottom: 1.25rem;
}

.vp-metric-strip article {
  background: #1a1b16;
  border-top: 1px solid var(--line-soft);
  min-height: 130px;
  padding: 1.2rem;
}

.vp-metric-strip article:first-child {
  border-top: 0;
}

.vp-metric-strip article > span:first-child {
  color: var(--muted);
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vp-metric-strip article > strong {
  color: var(--limestone-bright);
  display: block;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  margin: 0.75rem 0;
}

.vp-metric-strip article > a,
.vp-metric-strip__quiet {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vp-metric-strip__quiet {
  color: var(--green) !important;
}

.vp-dashboard-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.vp-queue-panel {
  padding: 0;
}

.vp-queue-panel > .panel-heading {
  padding: 1.25rem 1.25rem 0;
}

.vp-note-queue {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vp-note-queue > li {
  border-top: 1px solid var(--line-soft);
}

.vp-note-card {
  align-items: start;
  color: inherit;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  min-height: 108px;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.vp-note-card:hover {
  background: rgb(210 173 112 / 8%);
  color: inherit;
}

.vp-note-card__icon {
  align-items: center;
  border: 1px solid var(--brass-dark);
  color: var(--brass-bright);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.vp-note-card__icon svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 20px;
}

.vp-note-card__body,
.vp-note-card__top {
  min-width: 0;
}

.vp-note-card__top {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.vp-note-card__top > strong {
  color: var(--limestone-bright);
  font-size: 0.9rem;
}

.vp-note-card__customer,
.vp-note-card__excerpt,
.vp-note-card__meta {
  display: block;
}

.vp-note-card__customer {
  color: var(--brass-bright);
  font-size: 0.68rem;
  font-weight: 800;
  margin: 0.2rem 0;
  text-transform: uppercase;
}

.vp-note-card__excerpt {
  color: var(--limestone-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.vp-note-card__meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.63rem;
  gap: 0.4rem 0.9rem;
  margin-top: 0.65rem;
}

.vp-note-card__arrow {
  color: var(--brass);
  font-size: 1.2rem;
  padding-top: 0.55rem;
}

.vp-today-card h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
  max-width: 10ch;
}

.vp-decision-list {
  margin: 2rem 0;
}

.vp-decision-list > div {
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 4.5rem 1fr;
  padding: 0.9rem 0;
}

.vp-decision-list dt {
  color: var(--brass-bright);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-decision-list dd {
  color: var(--limestone-muted);
  font-size: 0.72rem;
  margin: 0;
}

.vp-callout {
  border: 1px solid var(--line);
  border-left-width: 3px;
  padding: 1rem;
}

.vp-callout--safe {
  background: var(--green-bg);
  border-color: #456647;
}

.vp-callout strong {
  color: var(--green);
  font-size: 0.75rem;
}

.vp-callout p {
  color: var(--limestone-muted);
  font-size: 0.69rem;
  margin: 0.25rem 0 0;
}

.vp-proposal-panel {
  margin-top: 1.25rem;
}

.vp-proposal-grid {
  display: grid;
  gap: 1rem;
}

.vp-proposal-card {
  background: #181914;
  border: 1px solid var(--line-soft);
  min-width: 0;
  padding: 1.25rem;
}

.vp-proposal-card__top {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.vp-proposal-card__top > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: end;
}

.vp-document-mark {
  align-items: center;
  border: 1px solid var(--brass-dark);
  color: var(--brass-bright);
  display: inline-flex;
  flex: 0 0 40px;
  font-family: var(--serif);
  font-size: 1.2rem;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 40px;
}

.vp-document-mark::after {
  border-left: 8px solid transparent;
  border-top: 8px solid var(--brass-dark);
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
}

.vp-proposal-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.vp-proposal-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.73rem;
  min-height: 2.3rem;
}

.vp-proposal-card dl {
  border-block: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1rem 0;
}

.vp-proposal-card dl > div {
  padding: 0.8rem 0;
}

.vp-proposal-card dl > div + div {
  border-left: 1px solid var(--line-soft);
  padding-left: 0.8rem;
}

.vp-proposal-card dt {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-proposal-card dd {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0.2rem 0 0;
}

.vp-card-actions,
.vp-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.vp-card-actions .button {
  flex: 1 1 9rem;
}

/* Capture */

.vp-capture-header,
.vp-review-header,
.vp-editor-header,
.vp-preview-toolbar {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.vp-capture-header > div:first-child,
.vp-review-header > div:first-child,
.vp-editor-header > div:first-child {
  max-width: 64rem;
}

.vp-capture-header h1,
.vp-review-header h1,
.vp-editor-header h1 {
  max-width: 12ch;
}

.vp-local-status {
  align-items: center;
  background: var(--green-bg);
  border: 1px solid #486b4a;
  color: var(--green);
  display: inline-flex;
  font-size: 0.66rem;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
}

.vp-local-status > span {
  background: currentColor;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.vp-local-status.is-offline {
  background: var(--amber-bg);
  border-color: #755d34;
  color: var(--amber);
}

.vp-capture-layout,
.vp-review-layout,
.vp-editor-layout {
  display: grid;
  gap: 1.25rem;
}

.vp-capture-main,
.vp-editor-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.vp-capture-main > .panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.25rem minmax(0, 1fr);
}

.vp-section-number {
  color: var(--brass-dark);
  font-family: var(--serif);
  font-size: 1.25rem;
  padding-top: 0.1rem;
}

.vp-section-body {
  min-width: 0;
}

.vp-section-body > label:first-child,
.vp-file-fallback > label,
.vp-photo-picker .vp-section-body > label:first-child {
  color: var(--limestone-bright);
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.vp-section-body > label:first-child span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-section-body > p,
.vp-file-fallback > p {
  color: var(--muted);
  font-size: 0.72rem;
}

.vp-section-body select,
.vp-section-body input[type="text"],
.vp-section-body input[type="file"],
.vp-editor-field textarea,
.vp-revision-panel input,
.vp-fact-fields input {
  background: #11120f;
  border: 1px solid #56574b;
  border-radius: 0;
  color: var(--limestone-bright);
  min-height: 50px;
  padding: 0.8rem;
  width: 100%;
}

.vp-section-body select:hover,
.vp-section-body input:hover,
.vp-editor-field textarea:hover,
.vp-revision-panel input:hover,
.vp-fact-fields input:hover {
  border-color: var(--limestone-muted);
}

.vp-section-body select:focus,
.vp-section-body input:focus,
.vp-editor-field textarea:focus,
.vp-revision-panel input:focus,
.vp-fact-fields input:focus {
  border-color: var(--brass-bright);
}

.vp-section-body input[type="file"] {
  color: var(--limestone-muted);
  min-height: 58px;
}

.vp-section-body input[type="file"]::file-selector-button {
  background: var(--surface-light);
  border: 1px solid var(--line);
  color: var(--limestone-bright);
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 800;
  margin: -0.35rem 0.75rem -0.35rem -0.35rem;
  min-height: 42px;
  padding: 0.6rem 0.85rem;
  text-transform: uppercase;
}

.vp-field-help {
  color: var(--muted);
  font-size: 0.66rem !important;
  margin: 0.45rem 0 0;
}

.vp-recorder {
  border-color: #5b513f;
}

.vp-recorder__heading {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: space-between;
}

.vp-recorder__heading h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.vp-recording-state {
  align-items: center;
  background: #181914;
  border: 1px solid var(--line);
  color: var(--limestone-muted);
  display: inline-flex;
  font-size: 0.66rem;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
}

.vp-recording-state span {
  background: currentColor;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.vp-recording-state[data-state="recording"] {
  background: var(--red-bg);
  border-color: #72463b;
  color: var(--red);
}

.vp-recording-state[data-state="paused"],
.vp-recording-state[data-state="processing"] {
  background: var(--amber-bg);
  border-color: #725b32;
  color: var(--amber);
}

.vp-recording-state[data-state="complete"] {
  background: var(--green-bg);
  border-color: #456747;
  color: var(--green);
}

.vp-recording-state[data-state="error"] {
  background: var(--red-bg);
  border-color: #774a3d;
  color: var(--red);
}

.vp-recorder__prompt {
  align-items: center;
  border-block: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
  padding: 0.85rem 0;
}

.vp-recorder__prompt strong {
  color: var(--limestone-muted);
  font-size: 0.67rem;
  margin-right: 0.25rem;
}

.vp-recorder__prompt span {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.3rem 0.45rem;
  text-transform: uppercase;
}

.vp-recorder__stage {
  align-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgb(210 173 112 / 12%), transparent 14rem),
    #12130f;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 2rem 1rem;
  text-align: center;
}

.vp-recorder__clock > span,
.vp-recorder__clock > small {
  display: block;
}

.vp-recorder__clock > span {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 10vw, 4.8rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.vp-recorder__clock > small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.vp-recorder__wave {
  align-items: center;
  display: flex;
  gap: 3px;
  height: 48px;
  justify-content: center;
  margin: 1.3rem 0;
  max-width: 28rem;
  overflow: hidden;
  width: 100%;
}

.vp-recorder__wave span {
  background: var(--brass-dark);
  height: 5px;
  opacity: 0.52;
  width: 3px;
}

.vp-recorder__wave span:nth-child(3n) { height: 15px; }
.vp-recorder__wave span:nth-child(4n) { height: 25px; }
.vp-recorder__wave span:nth-child(7n) { height: 36px; }

.vp-recorder.is-recording .vp-recorder__wave span {
  animation: vp-wave 720ms ease-in-out infinite alternate;
  background: var(--red);
  opacity: 0.9;
  transform-origin: center;
}

.vp-recorder.is-recording .vp-recorder__wave span:nth-child(2n) { animation-delay: 130ms; }
.vp-recorder.is-recording .vp-recorder__wave span:nth-child(3n) { animation-delay: 260ms; }
.vp-recorder.is-recording .vp-recorder__wave span:nth-child(5n) { animation-delay: 390ms; }

@keyframes vp-wave {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1.15); }
}

.vp-recorder__controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
}

.vp-record-button,
.vp-control-button,
.vp-action-button {
  align-items: center;
  border-radius: 0;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
}

.vp-record-button {
  background: var(--brass);
  border: 1px solid var(--brass-bright);
  color: #17120b;
  gap: 0.65rem;
  padding: 0.8rem 1.15rem;
}

.vp-record-button > span {
  background: #8d372c;
  border-radius: 50%;
  height: 13px;
  width: 13px;
}

.vp-control-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--limestone-bright);
  gap: 0.55rem;
  padding: 0.8rem 1rem;
}

.vp-record-button:disabled,
.vp-control-button:disabled,
.vp-action-button:disabled,
.vp-approval-card button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.43;
}

.vp-pause-icon {
  border-inline: 3px solid currentColor;
  height: 13px;
  width: 10px;
}

.vp-stop-icon {
  background: currentColor;
  height: 12px;
  width: 12px;
}

.vp-browser-note {
  color: var(--amber);
  font-size: 0.7rem;
  margin: auto 0;
  max-width: 50ch;
}

.vp-audio-preview {
  background: var(--green-bg);
  border: 1px solid #486a4b;
  margin-top: 1rem;
  padding: 1rem;
}

.vp-audio-preview > div:first-child {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.vp-preview-check {
  align-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
}

.vp-audio-preview strong,
.vp-audio-preview small {
  display: block;
}

.vp-audio-preview small {
  color: var(--limestone-muted);
  font-size: 0.65rem;
}

.vp-audio-preview audio,
.vp-source-card audio {
  display: block;
  margin: 1rem 0;
  min-height: 50px;
  width: 100%;
}

.vp-file-fallback {
  border-top: 1px solid var(--line-soft);
  margin-top: 1rem;
  padding-top: 1.25rem;
}

.vp-file-fallback > label {
  font-size: 1.1rem;
}

.vp-file-name {
  color: var(--limestone-muted) !important;
  margin: 0.5rem 0 0;
}

.vp-photo-drop {
  align-items: center;
  background: #151610;
  border: 1px dashed #666655;
  color: var(--limestone-bright);
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  font-family: var(--sans) !important;
  gap: 0.25rem;
  justify-content: center;
  margin: 1rem 0 0 !important;
  min-height: 160px;
  padding: 1.25rem;
  text-align: center;
}

.vp-photo-drop:hover {
  background: rgb(210 173 112 / 7%);
  border-color: var(--brass);
}

.vp-photo-drop:focus-within {
  border-color: var(--brass-bright);
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}

.vp-photo-drop svg {
  fill: var(--brass);
  height: 34px;
  margin-bottom: 0.5rem;
  width: 34px;
}

.vp-photo-drop strong {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vp-photo-drop span {
  color: var(--muted);
  font-size: 0.66rem;
}

.vp-photo-preview {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0.8rem;
}

.vp-photo-preview:empty {
  display: none;
}

.vp-photo-preview figure {
  background: #11120f;
  border: 1px solid var(--line-soft);
  margin: 0;
  min-width: 0;
  padding: 0.35rem;
}

.vp-photo-preview img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.vp-photo-preview figure.vp-photo-preview--unavailable::before {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  color: var(--limestone-muted);
  content: "Preview unavailable";
  display: flex;
  font-size: 0.64rem;
  justify-content: center;
  text-align: center;
}

.vp-photo-preview figure.vp-photo-preview--unavailable img {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.vp-photo-preview figcaption {
  color: var(--muted);
  font-size: 0.58rem;
  overflow: hidden;
  padding: 0.4rem 0.2rem 0.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-check-row {
  align-items: start;
  cursor: pointer;
  display: grid !important;
  font-family: var(--sans) !important;
  gap: 0.75rem;
  grid-template-columns: 24px minmax(0, 1fr);
  margin: 0 !important;
}

.vp-check-row input {
  height: 24px;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 24px;
}

.vp-check-row > span {
  background: #11120f;
  border: 1px solid var(--limestone-muted);
  display: inline-block;
  height: 24px;
  position: relative;
  width: 24px;
}

.vp-check-row input:checked + span {
  background: var(--green-bg);
  border-color: var(--green);
}

.vp-check-row input:checked + span::after {
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
  content: "";
  height: 11px;
  left: 7px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 6px;
}

.vp-check-row input:focus-visible + span {
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}

.vp-check-row strong {
  font-size: 0.76rem;
  line-height: 1.5;
}

.vp-check-row--separated {
  border-top: 1px solid var(--line-soft);
  margin-top: 1rem !important;
  padding-top: 1rem;
}

.vp-save-bar {
  align-items: stretch;
  background: #0f100d;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.2rem;
}

.vp-save-bar strong,
.vp-save-bar span {
  display: block;
}

.vp-save-bar strong {
  color: var(--limestone-bright);
  font-size: 0.78rem;
}

.vp-save-bar span {
  color: var(--muted);
  font-size: 0.67rem;
  margin-top: 0.2rem;
}

.vp-form-error {
  background: var(--red-bg);
  border: 1px solid #78483c;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1rem;
}

.vp-capture-aside,
.vp-editor-aside {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.vp-coach-card blockquote {
  border-left: 2px solid var(--brass);
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.vp-coach-card__result {
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}

.vp-coach-card__result > strong {
  color: var(--green);
  font-size: 0.71rem;
}

.vp-coach-card__result ul {
  color: var(--limestone-muted);
  font-size: 0.7rem;
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
}

.vp-privacy-card,
.vp-not-sent-card {
  align-items: start;
  background: var(--green-bg);
  border: 1px solid #456947;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 22px 1fr;
  padding: 1rem;
}

.vp-privacy-card > span,
.vp-not-sent-card > span {
  color: var(--green);
}

.vp-privacy-card strong,
.vp-not-sent-card strong {
  color: var(--green);
  font-size: 0.73rem;
}

.vp-privacy-card p,
.vp-not-sent-card p {
  color: var(--limestone-muted);
  font-size: 0.67rem;
  margin: 0.25rem 0 0;
}

/* Fact review */

.vp-review-progress {
  background: #1b1c17;
  border: 1px solid var(--line);
  min-width: min(100%, 250px);
  padding: 1rem;
}

.vp-review-progress > span,
.vp-review-progress > strong,
.vp-review-progress > small {
  display: block;
}

.vp-review-progress > span {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vp-review-progress > strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  margin-top: 0.55rem;
}

.vp-review-progress > strong small {
  color: var(--muted);
  display: inline;
  font-family: var(--sans);
  font-size: 0.7rem;
}

.vp-progress-track {
  appearance: none;
  background: #0e0f0c;
  border: 0;
  height: 5px;
  margin: 0.8rem 0 0.45rem;
  overflow: hidden;
  width: 100%;
}

.vp-progress-track::-webkit-progress-bar {
  background: #0e0f0c;
}

.vp-progress-track::-webkit-progress-value {
  background: var(--green);
}

.vp-progress-track::-moz-progress-bar {
  background: var(--green);
}

.vp-review-progress > small {
  font-size: 0.63rem;
}

.vp-source-column,
.vp-fact-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.vp-source-card,
.vp-transcript-card {
  min-width: 0;
}

.vp-source-meta {
  display: grid;
  margin: 1rem 0 0;
}

.vp-source-meta > div {
  border-top: 1px solid var(--line-soft);
  min-width: 0;
  padding: 0.75rem 0;
}

.vp-source-meta dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-source-meta dd {
  color: var(--limestone-bright);
  font-size: 0.7rem;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.vp-source-meta code {
  color: var(--limestone-muted);
  font-size: 0.61rem;
}

.vp-original-gallery__grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vp-original-gallery figure {
  background: #11120f;
  border: 1px solid var(--line-soft);
  margin: 0;
  min-width: 0;
  padding: 0.3rem;
}

.vp-original-gallery figure a {
  display: block;
  min-height: 44px;
}

.vp-original-gallery img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.vp-original-gallery figcaption {
  padding: 0.45rem 0.25rem 0.2rem;
}

.vp-original-gallery figcaption strong,
.vp-original-gallery figcaption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-original-gallery figcaption strong {
  color: var(--limestone-bright);
  font-size: 0.61rem;
}

.vp-original-gallery figcaption small {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.52rem;
  margin-top: 0.15rem;
}

.vp-source-unavailable {
  align-items: center;
  background: var(--red-bg);
  border: 1px solid #77493e;
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem;
}

.vp-source-unavailable > span {
  align-items: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  display: inline-flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
}

.vp-source-unavailable p {
  color: var(--limestone-muted);
  font-size: 0.68rem;
  margin: 0;
}

.vp-source-unavailable strong {
  color: var(--red);
}

.vp-transcript-card__heading,
.vp-fact-heading {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.vp-transcript-card blockquote {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 1.2rem 0;
}

.vp-fact-heading {
  padding: 0.25rem 0 0.5rem;
}

.vp-fact-heading > span {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  padding: 0.4rem 0.55rem;
  text-transform: uppercase;
}

.vp-fact-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vp-fact-card {
  background: linear-gradient(145deg, #24251f, #191a16);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  min-width: 0;
  padding: 1rem;
}

.vp-fact-card--confirmed {
  border-left-color: var(--green);
}

.vp-fact-card--unknown {
  border-left-color: var(--amber);
}

.vp-fact-card--removed {
  border-left-color: var(--red);
  opacity: 0.72;
}

.vp-fact-card > header {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: space-between;
}

.vp-fact-card > header > div:first-child {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.vp-fact-index {
  align-items: center;
  border: 1px solid var(--brass-dark);
  color: var(--brass-bright);
  display: inline-flex;
  flex: 0 0 38px;
  font-family: var(--serif);
  height: 38px;
  justify-content: center;
}

.vp-fact-card header p {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin: 0 0 0.15rem;
  text-transform: uppercase;
}

.vp-fact-card header h3 {
  margin: 0;
}

.vp-raw-statement {
  background: #12130f;
  border: 1px solid var(--line-soft);
  margin: 1rem 0;
  padding: 0.8rem;
}

.vp-raw-statement > span {
  color: var(--muted);
  display: block;
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-raw-statement blockquote {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0.45rem 0;
}

.vp-raw-statement a {
  font-size: 0.64rem;
}

.vp-fact-fields {
  display: grid;
  gap: 0.7rem;
}

.vp-fact-fields label > span {
  color: var(--limestone-muted);
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.vp-fact-actions {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1rem;
}

.vp-action-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--limestone-muted);
  font-size: 0.65rem;
  gap: 0.35rem;
  padding: 0.65rem;
  text-transform: uppercase;
}

.vp-action-button > span {
  font-size: 1rem;
}

.vp-action-button--confirm:hover,
.vp-action-button--confirm:focus-visible {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green);
}

.vp-action-button--edit:hover,
.vp-action-button--edit:focus-visible {
  background: var(--blue-bg);
  border-color: var(--blue);
  color: var(--blue);
}

.vp-action-button--unknown:hover,
.vp-action-button--unknown:focus-visible {
  background: var(--amber-bg);
  border-color: var(--amber);
  color: var(--amber);
}

.vp-action-button--remove:hover,
.vp-action-button--remove:focus-visible {
  background: var(--red-bg);
  border-color: var(--red);
  color: var(--red);
}

.vp-review-finish {
  align-items: start;
  background: linear-gradient(120deg, rgb(210 173 112 / 10%), #181914 50%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding: 1.25rem;
}

.vp-review-finish p {
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 0;
}

.vp-snapshot-form {
  display: grid;
  gap: 0.8rem;
  max-width: 34rem;
}

.vp-snapshot-form .vp-check-row {
  background: #11120f;
  border: 1px solid var(--line-soft);
  padding: 0.75rem;
}

.vp-button-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  text-decoration: none;
}

/* Proposal editor */

.vp-editor-header__actions,
.vp-preview-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vp-stage-rail {
  border: 1px solid var(--line);
  display: grid;
  margin-bottom: 1.25rem;
}

.vp-stage-rail__item {
  align-items: center;
  background: #181914;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.1rem 0.7rem;
  grid-template-columns: 34px 1fr;
  min-height: 74px;
  padding: 0.8rem;
}

.vp-stage-rail__item:first-child {
  border-top: 0;
}

.vp-stage-rail__item > span {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  grid-row: span 2;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.vp-stage-rail__item strong {
  color: var(--limestone-muted);
  font-size: 0.72rem;
}

.vp-stage-rail__item small {
  font-size: 0.6rem;
}

.vp-stage-rail__item--done > span {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green);
}

.vp-stage-rail__item--current {
  background: rgb(210 173 112 / 8%);
  box-shadow: inset 3px 0 var(--brass);
}

.vp-stage-rail__item--current > span {
  border-color: var(--brass);
  color: var(--brass-bright);
}

.vp-stage-rail__item--current strong {
  color: var(--limestone-bright);
}

.vp-editor-section {
  min-width: 0;
}

.vp-editor-section__heading {
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.vp-editor-section__heading > span {
  color: var(--brass-dark);
  flex: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.vp-editor-section__heading h2 {
  margin: 0;
}

.vp-project-summary dl {
  display: grid;
  margin: 0;
}

.vp-project-summary dl > div {
  border-top: 1px solid var(--line-soft);
  padding: 0.75rem 0;
}

.vp-project-summary dl > div:first-child {
  border-top: 0;
}

.vp-project-summary dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-project-summary dd {
  color: var(--limestone-bright);
  margin: 0.2rem 0 0;
}

.vp-project-summary > p {
  font-size: 0.7rem;
  margin: 0.8rem 0 0;
}

.vp-editor-field {
  display: block;
}

.vp-editor-field > span,
.vp-editor-field > small {
  display: block;
}

.vp-editor-field > span {
  color: var(--limestone-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vp-editor-field > small {
  font-size: 0.64rem;
  margin: 0.2rem 0 0.55rem;
}

.vp-editor-field textarea {
  line-height: 1.65;
  min-height: 9rem;
  resize: vertical;
}

.vp-editor-field input[type="text"] {
  background: #11120f;
  border: 1px solid #56574b;
  border-radius: 0;
  color: var(--limestone-bright);
  min-height: 50px;
  padding: 0.8rem;
  width: 100%;
}

.vp-editor-field--spaced {
  border-top: 1px solid var(--line-soft);
  margin-top: 1rem;
  padding-top: 1rem;
}

.vp-editor-pair {
  display: grid;
  gap: 1rem;
}

.vp-revision-panel {
  align-items: stretch;
  border-top: 3px solid var(--brass);
  display: grid;
  gap: 1rem;
}

.vp-revision-panel p {
  color: var(--muted);
  font-size: 0.69rem;
  margin: 0;
}

.vp-editor-aside {
  align-content: start;
}

.vp-price-card {
  background:
    radial-gradient(circle at 100% 0, rgb(240 203 140 / 18%), transparent 15rem),
    linear-gradient(145deg, #2e291e, #1b1a15);
  border: 1px solid var(--brass-dark);
  padding: 1.25rem;
}

.vp-price-card__top {
  align-items: start;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.vp-price-card h2 {
  font-size: clamp(2.7rem, 10vw, 4.6rem);
  margin: 1.4rem 0 0.5rem;
  overflow-wrap: anywhere;
}

.vp-price-card > p {
  color: var(--limestone-muted);
  font-size: 0.7rem;
}

.vp-price-card dl {
  margin: 1.25rem 0;
}

.vp-price-card dl > div {
  border-top: 1px solid rgb(210 173 112 / 22%);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.65rem 0;
}

.vp-price-card dt,
.vp-price-card dd {
  font-size: 0.62rem;
}

.vp-price-card dt {
  color: var(--muted);
  text-transform: uppercase;
}

.vp-price-card dd {
  color: var(--limestone-bright);
  margin: 0;
  text-align: right;
}

.vp-approval-card .vp-check-row {
  background: #141510;
  border: 1px solid var(--line-soft);
  margin: 1rem 0 !important;
  padding: 0.9rem;
}

.vp-blocked-reason {
  background: var(--amber-bg);
  border: 1px solid #735d35;
  color: var(--limestone-muted);
  font-size: 0.65rem;
  margin: 0.8rem 0 0;
  padding: 0.8rem;
}

.vp-blocked-reason strong {
  color: var(--amber);
}

.vp-export-list {
  display: grid;
  gap: 0.5rem;
}

.vp-export-list a {
  align-items: center;
  border: 1px solid var(--line-soft);
  color: inherit;
  display: grid;
  gap: 0.1rem 0.7rem;
  grid-template-columns: 46px 1fr;
  min-height: 62px;
  padding: 0.55rem;
  text-decoration: none;
}

.vp-export-disabled {
  align-items: center;
  background: #151610;
  border: 1px solid var(--line-soft);
  color: inherit;
  display: grid;
  gap: 0.1rem 0.7rem;
  grid-template-columns: 46px 1fr;
  min-height: 62px;
  opacity: 0.72;
  padding: 0.55rem;
}

.vp-export-disabled > span {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 800;
  grid-row: span 2;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.vp-export-disabled strong {
  color: var(--limestone-muted);
  font-size: 0.7rem;
}

.vp-export-disabled small {
  font-size: 0.61rem;
}

.vp-export-list a:hover {
  background: rgb(210 173 112 / 8%);
  border-color: var(--brass-dark);
}

.vp-export-list a > span {
  align-items: center;
  border: 1px solid var(--brass-dark);
  color: var(--brass-bright);
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 800;
  grid-row: span 2;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.vp-export-list strong {
  color: var(--limestone-bright);
  font-size: 0.7rem;
}

.vp-export-list small {
  font-size: 0.61rem;
}

/* Proposal preview */

.vp-preview-toolbar h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  margin-bottom: 0.65rem;
}

.vp-preview-toolbar p {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0;
  max-width: 62ch;
}

.vp-version-rail {
  border: 1px solid var(--line);
  display: grid;
  margin-bottom: 1.25rem;
}

.vp-version-rail > div {
  background: #191a15;
  border-top: 1px solid var(--line-soft);
  min-width: 0;
  padding: 0.8rem;
}

.vp-version-rail > div:first-child {
  border-top: 0;
}

.vp-version-rail span,
.vp-version-rail strong {
  display: block;
}

.vp-version-rail span {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-version-rail strong {
  color: var(--limestone-bright);
  font-size: 0.69rem;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.vp-proposal-sheet {
  background: #eee8dc;
  border: 1px solid #c8bda7;
  box-shadow: 0 35px 100px rgb(0 0 0 / 34%);
  color: #25241e;
  margin-inline: auto;
  max-width: 1120px;
  overflow: hidden;
}

.vp-draft-watermark {
  background: #5c2b22;
  border-bottom: 1px solid #8c5144;
  color: #fff4ee;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.75rem 1rem;
  text-align: center;
  text-transform: uppercase;
}

.vp-proposal-sheet .eyebrow {
  color: #7a5b31;
}

.vp-proposal-sheet h1,
.vp-proposal-sheet h2,
.vp-proposal-sheet strong {
  color: #1d1e18;
}

.vp-proposal-sheet__header {
  align-items: center;
  background: #1b1c17;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  padding: 1.3rem;
  text-align: center;
}

.vp-proposal-brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.vp-proposal-brand > span {
  align-items: center;
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  display: inline-flex;
  font-family: var(--serif);
  height: 48px;
  justify-content: center;
  width: 48px;
}

.vp-proposal-brand strong,
.vp-proposal-brand small {
  display: block;
}

.vp-proposal-brand strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.vp-proposal-brand small {
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vp-proposal-id span,
.vp-proposal-id strong,
.vp-proposal-id small {
  display: block;
}

.vp-proposal-id span {
  color: var(--brass);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vp-proposal-id strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.vp-proposal-id small {
  color: var(--muted);
  font-size: 0.58rem;
}

.vp-proposal-sheet__intro {
  border-bottom: 1px solid #c2b8a4;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.vp-proposal-sheet__intro h1,
.vp-proposal-sheet__intro h2 {
  font-size: clamp(2.3rem, 8vw, 5.2rem);
  margin-bottom: 0.5rem;
  max-width: 12ch;
}

.vp-proposal-sheet__intro > div > p:not(.eyebrow) {
  color: #5f5a4d;
  margin: 0;
}

.vp-proposal-sheet__intro .vp-proposal-sheet__project-title {
  color: #2f2e27;
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.vp-proposal-sheet__intro dl {
  margin: 0;
}

.vp-proposal-sheet__intro dl > div {
  border-top: 1px solid #c8bda9;
  padding: 0.65rem 0;
}

.vp-proposal-sheet__intro dt {
  color: #6f6758;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-proposal-sheet__intro dd {
  color: #25241e;
  font-size: 0.72rem;
  margin: 0.2rem 0 0;
}

.vp-proposal-section {
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 3rem);
  position: relative;
}

.vp-proposal-section--lead {
  border-bottom: 1px solid #c2b8a4;
}

.vp-proposal-section h2 {
  color: #25241e;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.vp-proposal-section__mark {
  color: #9b7c4d;
  font-family: var(--serif);
  font-size: 2rem;
  position: absolute;
  right: 1.3rem;
  top: 1rem;
}

.vp-proposal-columns {
  display: grid;
}

.vp-proposal-columns > * + * {
  border-top: 1px solid #c2b8a4;
}

.vp-proposal-prose {
  color: #4c493f;
  font-size: 0.8rem;
  line-height: 1.75;
  white-space: pre-line;
}

.vp-proposal-introduction {
  border-left: 2px solid #9b7c4d;
  color: #3f3d35;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  white-space: pre-line;
}

.vp-proposal-section--tinted {
  background: #e3dbc9;
  border-block: 1px solid #bfb39d;
}

.vp-proposal-price {
  align-items: start;
  background: #1b1c17;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.vp-proposal-price h2 {
  color: var(--limestone-bright);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.vp-proposal-price p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.68rem;
  margin: 0;
  max-width: 55ch;
}

.vp-proposal-price > strong {
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 10vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.vp-proposal-sheet__footer {
  align-items: start;
  border-top: 1px solid #bfb49e;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 clamp(1.4rem, 4vw, 3rem);
  padding: 1.5rem 0 2rem;
}

.vp-proposal-sheet__footer strong,
.vp-proposal-sheet__footer span {
  display: block;
}

.vp-proposal-sheet__footer strong {
  font-family: var(--serif);
}

.vp-proposal-sheet__footer span,
.vp-proposal-sheet__footer p {
  color: #70695a;
  font-size: 0.61rem;
}

.vp-proposal-sheet__footer p {
  margin: 0;
  max-width: 45ch;
}

.vp-detail-lower {
  display: grid;
  gap: 1rem;
  margin: 1.25rem auto 0;
  max-width: 1120px;
}

.vp-audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vp-audit-list li {
  align-items: start;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 12px 1fr;
  padding: 0.85rem 0;
}

.vp-audit-list li > span {
  background: var(--brass);
  border-radius: 50%;
  height: 7px;
  margin-top: 0.45rem;
  width: 7px;
}

.vp-audit-list strong {
  color: var(--limestone-bright);
  font-size: 0.72rem;
  text-transform: capitalize;
}

.vp-audit-list p {
  color: var(--limestone-muted);
  font-size: 0.68rem;
  margin: 0.15rem 0;
}

.vp-audit-list small {
  font-size: 0.61rem;
}

/* Private deterministic estimate */

.vp-estimate-header {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.vp-estimate-header > div:first-child {
  max-width: 68rem;
}

.vp-estimate-header h1 {
  max-width: 13ch;
}

.vp-estimate-job-card {
  background: linear-gradient(145deg, #2a281f, #181914);
  border: 1px solid var(--brass-dark);
  min-width: min(100%, 280px);
  padding: 1rem;
}

.vp-estimate-job-card > span,
.vp-estimate-job-card > strong {
  display: block;
}

.vp-estimate-job-card > span {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-estimate-job-card > strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0.45rem;
}

.vp-estimate-job-card p {
  color: var(--limestone-muted);
  font-size: 0.7rem;
  margin: 0.2rem 0 0.65rem;
}

.vp-estimate-job-card a {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-estimate-layout,
.vp-estimate-detail-grid {
  display: grid;
  gap: 1.25rem;
}

.vp-estimate-main,
.vp-estimate-detail-main,
.vp-estimate-aside,
.vp-estimate-control-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.vp-human-entry {
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.59rem;
  font-weight: 800;
  padding: 0.4rem 0.55rem;
  text-transform: uppercase;
}

.vp-section-intro {
  color: var(--muted);
  font-size: 0.72rem;
  max-width: 75ch;
}

.vp-cost-grid {
  display: grid;
  gap: 0.7rem;
}

.vp-cost-input {
  background: #151610;
  border: 1px solid var(--line-soft);
  display: block;
  padding: 0.9rem;
}

.vp-cost-input:hover,
.vp-cost-input:focus-within {
  border-color: var(--brass-dark);
}

.vp-cost-input:focus-within {
  outline: 3px solid var(--brass-bright);
  outline-offset: 2px;
}

.vp-cost-input__top {
  display: block;
  min-height: 3rem;
}

.vp-cost-input__top strong,
.vp-cost-input__top small {
  display: block;
}

.vp-cost-input__top strong {
  color: var(--limestone-bright);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.vp-cost-input__top small {
  font-size: 0.61rem;
  line-height: 1.4;
  margin-top: 0.2rem;
}

.vp-money-input,
.vp-suffix-input {
  align-items: center;
  background: #0e0f0c;
  border: 1px solid #55564a;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  margin-top: 0.7rem;
  min-height: 50px;
}

.vp-money-input > span,
.vp-suffix-input > span {
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: center;
}

.vp-money-input input,
.vp-suffix-input input {
  background: transparent;
  border: 0;
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  min-height: 48px;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

.vp-money-input input:focus,
.vp-suffix-input input:focus {
  outline: 0;
}

.vp-money-input:focus-within,
.vp-suffix-input:focus-within {
  border-color: var(--brass-bright);
}

.vp-rule-grid {
  display: grid;
  gap: 0.8rem;
}

.vp-rule-grid > label,
.vp-lock-card form > label:not(.vp-check-row) {
  display: block;
}

.vp-rule-grid label > span:first-child,
.vp-rule-grid label > small,
.vp-lock-card label > span:first-child {
  display: block;
}

.vp-rule-grid label > span:first-child,
.vp-lock-card label > span:first-child {
  color: var(--limestone-bright);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-rule-grid label > small {
  font-size: 0.61rem;
  margin: 0.15rem 0 0.45rem;
  min-height: 2rem;
}

.vp-rule-grid input,
.vp-lock-card input[type="text"],
.vp-lock-card textarea {
  background: #10110e;
  border: 1px solid #55564a;
  color: var(--limestone-bright);
  min-height: 50px;
  padding: 0.75rem;
  width: 100%;
}

.vp-suffix-input {
  grid-template-columns: minmax(0, 1fr) 32px;
  margin-top: 0;
}

.vp-estimate-submit {
  align-items: stretch;
  background: #11120f;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.15rem;
}

.vp-estimate-submit > div {
  align-items: start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 18px 1fr;
}

.vp-estimate-submit > div > span {
  color: var(--green);
}

.vp-estimate-submit p {
  color: var(--muted);
  font-size: 0.67rem;
  margin: 0;
}

.vp-estimate-submit strong {
  color: var(--limestone-bright);
}

.vp-fact-snapshot > p {
  color: var(--muted);
  font-size: 0.69rem;
}

.vp-fact-snapshot dl,
.vp-fact-detail dl,
.vp-estimate-provenance dl,
.vp-locked-card dl {
  margin: 0;
}

.vp-fact-snapshot dl > div,
.vp-estimate-provenance dl > div,
.vp-locked-card dl > div {
  border-top: 1px solid var(--line-soft);
  padding: 0.65rem 0;
}

.vp-fact-snapshot dt,
.vp-estimate-provenance dt,
.vp-locked-card dt {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-fact-snapshot dd,
.vp-estimate-provenance dd,
.vp-locked-card dd {
  color: var(--limestone-bright);
  font-size: 0.68rem;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.vp-fact-snapshot > small {
  display: block;
  font-size: 0.59rem;
  margin-top: 1rem;
}

.vp-guard-card {
  align-items: start;
  background: var(--green-bg);
  border: 1px solid #466948;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 20px 1fr;
  padding: 1rem;
}

.vp-guard-card > span,
.vp-guard-card strong {
  color: var(--green);
}

.vp-guard-card strong {
  font-size: 0.71rem;
}

.vp-guard-card p {
  color: var(--limestone-muted);
  font-size: 0.66rem;
  margin: 0.2rem 0 0;
}

.vp-estimate-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.vp-estimate-summary {
  border: 1px solid var(--line);
  display: grid;
  margin-bottom: 1.25rem;
}

.vp-estimate-summary article {
  background: #191a15;
  border-top: 1px solid var(--line-soft);
  min-width: 0;
  padding: 1rem;
}

.vp-estimate-summary article:first-child {
  border-top: 0;
}

.vp-estimate-summary article > span,
.vp-estimate-summary article > strong,
.vp-estimate-summary article > small {
  display: block;
}

.vp-estimate-summary article > span {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-estimate-summary article > strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 7vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  margin: 0.75rem 0 0.4rem;
  overflow-wrap: anywhere;
}

.vp-estimate-summary article > small {
  font-size: 0.6rem;
}

.vp-estimate-summary__final {
  background: var(--green-bg) !important;
  box-shadow: inset 3px 0 var(--green);
}

.vp-estimate-summary__final > strong {
  color: var(--green) !important;
}

.vp-estimate-summary__pending {
  background: var(--amber-bg) !important;
  box-shadow: inset 3px 0 var(--amber);
}

.vp-estimate-summary__pending > strong {
  color: var(--amber) !important;
}

.vp-shadow-pricing {
  background:
    linear-gradient(135deg, rgb(210 173 112 / 10%), transparent 58%),
    var(--surface);
  border: 1px solid rgb(210 173 112 / 48%);
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(1.25rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  margin: 0 0 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.vp-shadow-pricing__intro h2 {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0.35rem 0 0.75rem;
  max-width: 18ch;
}

.vp-shadow-pricing__intro > p:last-child {
  color: var(--limestone-muted);
  margin-bottom: 0;
  max-width: 64ch;
}

.vp-shadow-pricing__stages {
  border-block: 1px solid var(--line);
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vp-shadow-pricing__stages li {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.2rem 0.85rem;
  grid-template-columns: 1fr;
  padding: 0.85rem 0;
}

.vp-shadow-pricing__stages li:last-child {
  border-bottom: 0;
}

.vp-shadow-pricing__stages span {
  color: var(--brass-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vp-shadow-pricing__stages strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.vp-shadow-pricing__stages small {
  color: var(--muted);
}

.vp-shadow-pricing__guard {
  align-items: baseline;
  border-top: 1px solid var(--line);
  color: var(--limestone-muted);
  display: flex;
  gap: 0.65rem;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
}

.vp-shadow-pricing__guard span {
  color: var(--brass-bright);
}

.vp-shadow-pricing__guard strong {
  color: var(--limestone-bright);
}

.vp-estimate-table th:last-child,
.vp-estimate-table td:last-child {
  text-align: right;
}

.vp-estimate-table tbody th {
  color: var(--limestone-bright);
  text-transform: capitalize;
}

.vp-fact-detail dl {
  display: grid;
  gap: 0.65rem;
}

.vp-fact-detail dl > div {
  background: #151610;
  border: 1px solid var(--line-soft);
  padding: 0.8rem;
}

.vp-fact-detail dt {
  color: var(--brass-bright);
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-fact-detail dd {
  margin: 0.3rem 0 0;
}

.vp-fact-detail dd strong,
.vp-fact-detail dd span {
  display: block;
}

.vp-fact-detail dd strong {
  color: var(--limestone-bright);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.vp-fact-detail dd span {
  color: var(--muted);
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

.vp-lock-card,
.vp-locked-card {
  background:
    radial-gradient(circle at 100% 0, rgb(210 173 112 / 15%), transparent 13rem),
    linear-gradient(145deg, #29261d, #181914);
  border: 1px solid var(--brass-dark);
  padding: 1.25rem;
}

.vp-lock-card > p:not(.eyebrow),
.vp-locked-card > p:not(.eyebrow) {
  color: var(--limestone-muted);
  font-size: 0.69rem;
}

.vp-lock-card form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.vp-lock-card form > label:not(.vp-check-row) > span:first-child {
  margin-bottom: 0.35rem;
}

.vp-money-input--large input {
  font-size: 1.55rem;
}

.vp-locked-card__mark {
  align-items: center;
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 44px;
}

.vp-locked-card h2 {
  color: var(--green);
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  overflow-wrap: anywhere;
}

.vp-locked-card form {
  margin-top: 1rem;
}

.vp-estimate-provenance code,
.vp-locked-card code {
  color: var(--limestone-muted);
  font-size: 0.58rem;
}

/* Vic readability and motor-access overrides
   Primary task language stays at 16px or larger. Compact record metadata
   never drops below 12px. These rules intentionally come after the visual
   system so the premium layout remains intact while the working text scales. */
.button,
label,
.breadcrumb,
.vp-record-cta strong,
.vp-record-cta small,
.vp-step-list strong,
.vp-step-list small,
.vp-control-note,
.vp-metric-strip article > span:first-child,
.vp-metric-strip article > a,
.vp-metric-strip__quiet,
.vp-note-card__customer,
.vp-note-card__excerpt,
.vp-decision-list dt,
.vp-decision-list dd,
.vp-callout strong,
.vp-callout p,
.vp-proposal-card > p:not(.eyebrow),
.vp-section-body > p,
.vp-file-fallback > p,
.vp-section-body input[type="file"]::file-selector-button,
.vp-field-help,
.vp-recorder__prompt strong,
.vp-browser-note,
.vp-audio-preview small,
.vp-photo-drop strong,
.vp-photo-drop span,
.vp-check-row strong,
.vp-save-bar strong,
.vp-save-bar span,
.vp-form-error,
.vp-coach-card__result > strong,
.vp-coach-card__result ul,
.vp-privacy-card strong,
.vp-not-sent-card strong,
.vp-privacy-card p,
.vp-not-sent-card p,
.vp-source-unavailable p,
.vp-source-meta dd,
.vp-raw-statement a,
.vp-fact-fields label > span,
.vp-action-button,
.vp-review-finish p,
.vp-stage-rail__item strong,
.vp-project-summary dd,
.vp-project-summary > p,
.vp-editor-field > span,
.vp-editor-field > small,
.vp-revision-panel p,
.vp-price-card > p,
.vp-blocked-reason,
.vp-export-disabled strong,
.vp-export-list strong,
.vp-preview-toolbar p,
.vp-version-rail strong,
.vp-proposal-sheet__intro dd,
.vp-proposal-prose,
.vp-proposal-price p:not(.eyebrow),
.vp-proposal-sheet__footer p,
.vp-audit-list strong,
.vp-audit-list p,
.vp-estimate-job-card p,
.vp-estimate-job-card a,
.vp-section-intro,
.vp-cost-input__top strong,
.vp-cost-input__top small,
.vp-rule-grid label > span:first-child,
.vp-lock-card label > span:first-child,
.vp-rule-grid label > small,
.vp-estimate-submit p,
.vp-fact-snapshot > p,
.vp-fact-snapshot dd,
.vp-estimate-provenance dd,
.vp-locked-card dd,
.vp-guard-card strong,
.vp-guard-card p,
.vp-shadow-pricing__stages small,
.vp-fact-detail dd span,
.vp-lock-card > p:not(.eyebrow),
.vp-locked-card > p:not(.eyebrow) {
  font-size: 1rem;
}

.eyebrow,
.badge,
.tag,
.vp-version,
.vp-note-card__meta,
.vp-proposal-card dt,
.vp-local-status,
.vp-section-body > label:first-child span,
.vp-recording-state,
.vp-recorder__prompt span,
.vp-recorder__clock > small,
.vp-photo-preview figcaption,
.vp-review-progress > span,
.vp-review-progress > strong small,
.vp-review-progress > small,
.vp-source-meta dt,
.vp-source-meta code,
.vp-original-gallery figcaption strong,
.vp-original-gallery figcaption small,
.vp-fact-heading > span,
.vp-fact-card header p,
.vp-raw-statement > span,
.vp-stage-rail__item small,
.vp-project-summary dt,
.vp-price-card dt,
.vp-price-card dd,
.vp-export-disabled > span,
.vp-export-disabled small,
.vp-export-list a > span,
.vp-export-list small,
.vp-version-rail span,
.vp-draft-watermark,
.vp-proposal-brand small,
.vp-proposal-id span,
.vp-proposal-id small,
.vp-proposal-sheet__intro dt,
.vp-proposal-sheet__footer span,
.vp-audit-list small,
.vp-estimate-job-card > span,
.vp-human-entry,
.vp-fact-snapshot dt,
.vp-estimate-provenance dt,
.vp-locked-card dt,
.vp-fact-snapshot > small,
.vp-estimate-summary article > span,
.vp-estimate-summary article > small,
.vp-shadow-pricing__stages span,
.vp-fact-detail dt,
.vp-estimate-provenance code,
.vp-locked-card code {
  font-size: 0.75rem;
}

.breadcrumb a,
.vp-metric-strip article > a,
.vp-raw-statement a,
.vp-estimate-job-card a,
.vp-project-summary a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding-block: 0.35rem;
}

.vp-section-body input[type="file"]::file-selector-button {
  min-height: 44px;
}

.vp-check-row {
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 44px;
}

.vp-check-row input {
  height: 36px;
  width: 36px;
}

.vp-check-row > span {
  height: 36px;
  width: 36px;
}

.vp-check-row input:checked + span::after {
  height: 15px;
  left: 11px;
  top: 6px;
  width: 8px;
}

.vp-fact-actions {
  border: 0;
  margin-inline: 0;
  min-width: 0;
  padding: 0;
}

.vp-technical-details {
  border-top: 1px solid var(--line-soft);
  margin-top: 0.75rem;
}

.vp-technical-details summary {
  align-items: center;
  color: var(--limestone-muted);
  cursor: pointer;
  display: flex;
  font-size: 0.75rem;
  font-weight: 800;
  min-height: 44px;
  text-transform: uppercase;
}

.vp-technical-details p {
  color: var(--limestone-muted);
  font-size: 0.75rem;
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

input::placeholder,
textarea::placeholder {
  color: #9b9383;
}

.vp-section-number,
.vp-editor-section__heading > span {
  color: var(--brass);
}

.vp-proposal-sheet__footer span,
.vp-proposal-sheet__footer p {
  color: #625c4f;
}

.vp-button-disabled,
.vp-export-disabled,
.vp-fact-card--removed {
  opacity: 1;
}

@media (min-width: 600px) {
  .vp-command-hero__actions {
    align-items: center;
    flex-direction: row;
  }

  .vp-metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-metric-strip article:nth-child(2) {
    border-top: 0;
  }

  .vp-metric-strip article:nth-child(even) {
    border-left: 1px solid var(--line-soft);
  }

  .vp-proposal-grid,
  .vp-photo-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-recorder__heading,
  .vp-fact-card > header,
  .vp-review-finish,
  .vp-save-bar {
    align-items: center;
    flex-direction: row;
  }

  .vp-fact-fields,
  .vp-project-summary dl {
    grid-template-columns: 1fr 0.38fr;
  }

  .vp-project-summary dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-project-summary dl > div:nth-child(2) {
    border-top: 0;
  }

  .vp-project-summary dl > div:nth-child(even) {
    border-left: 1px solid var(--line-soft);
    padding-left: 1rem;
  }

  .vp-fact-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  .vp-revision-panel {
    align-items: end;
    grid-template-columns: 1fr minmax(16rem, 1.2fr) auto;
  }

  .vp-proposal-sheet__header,
  .vp-proposal-brand,
  .vp-proposal-sheet__footer {
    flex-direction: row;
    text-align: left;
  }

  .vp-proposal-id {
    text-align: right;
  }

  .vp-proposal-sheet__intro {
    grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 0.6fr);
  }

  .vp-cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-rule-grid,
  .vp-fact-detail dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-estimate-submit {
    align-items: center;
    flex-direction: row;
  }

  .vp-estimate-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-estimate-summary article:nth-child(2) {
    border-top: 0;
  }

  .vp-estimate-summary article:nth-child(even) {
    border-left: 1px solid var(--line-soft);
  }

  .vp-proposal-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-proposal-columns > * + * {
    border-left: 1px solid #c2b8a4;
    border-top: 0;
  }

  .vp-proposal-price {
    align-items: center;
    flex-direction: row;
  }
}

@media (min-width: 820px) {
  .vp-command-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.75fr);
  }

  .vp-workflow-card {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .vp-metric-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .vp-metric-strip article,
  .vp-metric-strip article:nth-child(2) {
    border-left: 1px solid var(--line-soft);
    border-top: 0;
  }

  .vp-metric-strip article:first-child {
    border-left: 0;
  }

  .vp-stage-rail {
    grid-template-columns: repeat(4, 1fr);
  }

  .vp-stage-rail__item,
  .vp-stage-rail__item:first-child {
    border-left: 1px solid var(--line-soft);
    border-top: 0;
  }

  .vp-stage-rail__item:first-child {
    border-left: 0;
  }

  .vp-version-rail {
    grid-template-columns: repeat(5, 1fr);
  }

  .vp-version-rail > div,
  .vp-version-rail > div:first-child {
    border-left: 1px solid var(--line-soft);
    border-top: 0;
  }

  .vp-version-rail > div:first-child {
    border-left: 0;
  }

  .vp-detail-lower {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .vp-cost-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vp-shadow-pricing {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  }

  .vp-shadow-pricing__stages li {
    grid-template-columns: 8rem minmax(0, 1fr);
  }

  .vp-shadow-pricing__stages span {
    grid-row: 1 / span 2;
  }

  .vp-estimate-summary {
    grid-template-columns: repeat(4, 1fr);
  }

  .vp-estimate-summary article,
  .vp-estimate-summary article:nth-child(2) {
    border-left: 1px solid var(--line-soft);
    border-top: 0;
  }

  .vp-estimate-summary article:first-child {
    border-left: 0;
  }

  .vp-not-sent-card {
    align-self: start;
  }
}

@media (min-width: 1040px) {
  .vp-capture-header,
  .vp-review-header,
  .vp-editor-header,
  .vp-preview-toolbar {
    align-items: end;
    flex-direction: row;
  }

  .vp-capture-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .vp-capture-aside,
  .vp-editor-aside {
    align-content: start;
    position: sticky;
    top: 8.5rem;
  }

  .vp-review-layout {
    align-items: start;
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .vp-source-column {
    position: sticky;
    top: 8.5rem;
  }

  .vp-editor-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .vp-editor-pair {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-preview-toolbar__actions,
  .vp-editor-header__actions {
    justify-content: end;
  }

  .vp-estimate-header {
    align-items: end;
    flex-direction: row;
  }

  .vp-estimate-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .vp-estimate-detail-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .vp-estimate-aside,
  .vp-estimate-control-column {
    align-content: start;
    position: sticky;
    top: 8.5rem;
  }
}

@media (min-width: 1180px) {
  .vp-dashboard-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.65fr);
  }

  .vp-proposal-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vp-capture-main > .panel {
    gap: 1.5rem;
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .vp-section-number {
    font-size: 1.7rem;
  }

  .vp-fact-card {
    padding: 1.25rem;
  }
}

@media (max-width: 479px) {
  .vp-capture-main > .panel {
    grid-template-columns: 1fr;
  }

  .vp-section-number {
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 0.45rem;
  }

  .vp-recorder__controls > * {
    width: 100%;
  }

  .vp-editor-header__actions,
  .vp-preview-toolbar__actions {
    width: 100%;
  }

  .vp-editor-header__actions .button,
  .vp-preview-toolbar__actions .button {
    width: 100%;
  }

  .vp-note-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .vp-note-card__icon {
    height: 36px;
    width: 36px;
  }

  .vp-note-card__arrow {
    display: none;
  }

  .vp-fact-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .vp-recorder.is-recording .vp-recorder__wave span {
    animation: none;
  }

  .vp-record-cta {
    transition: none;
  }
}

@media print {
  .vp-no-print,
  .vp-detail-lower {
    display: none !important;
  }

  .vp-proposal-sheet {
    border: 0;
    box-shadow: none;
    max-width: none;
  }

  .vp-proposal-sheet__header {
    background: #1b1c17 !important;
    print-color-adjust: exact;
  }

  .vp-proposal-sheet h1,
  .vp-proposal-sheet h2,
  .vp-proposal-sheet h3,
  .vp-proposal-sheet strong,
  .vp-proposal-sheet p,
  .vp-proposal-sheet span,
  .vp-proposal-sheet div,
  .vp-proposal-sheet dt,
  .vp-proposal-sheet dd {
    color: inherit;
  }

  .vp-proposal-price,
  .vp-proposal-price h2,
  .vp-proposal-price > strong,
  .vp-proposal-brand strong,
  .vp-proposal-id strong {
    color: #fff !important;
    print-color-adjust: exact;
  }

  .vp-proposal-price .eyebrow,
  .vp-proposal-price p,
  .vp-proposal-brand small,
  .vp-proposal-id span,
  .vp-proposal-id small {
    color: #ddd !important;
  }

  .vp-draft-watermark {
    background: #5c2b22 !important;
    color: #fff !important;
    print-color-adjust: exact;
  }

  .vp-proposal-section,
  .vp-proposal-price {
    break-inside: avoid;
  }
}
