:root {
  color-scheme: light;
  --ink: #172126;
  --ink-soft: #2b373d;
  --steel: #54636b;
  --steel-light: #7b898f;
  --paper: #f5f3ee;
  --paper-deep: #ece9e2;
  --surface: #fffefb;
  --line: #ccd1d0;
  --line-dark: #9fa9aa;
  --blue: #165774;
  --blue-dark: #0d4059;
  --blue-soft: #e7f0f3;
  --copper: #b85732;
  --copper-dark: #8b3e22;
  --copper-soft: #f4e7df;
  --success: #28715a;
  --warning: #9a6a21;
  --warning-soft: #f6edda;
  --danger: #9b3d32;
  --focus: #1683ba;
  --shadow: 0 18px 42px rgba(23, 33, 38, 0.09);
  font-family: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, white);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

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

h1 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(2.55rem, 6vw, 5.15rem);
  font-weight: 690;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #354147;
  color: #fff;
  background: var(--ink);
}

.site-header__inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #778288;
  color: #fff;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand__mark::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  content: "";
}

.brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.brand__name small {
  color: #aeb8bc;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-label,
.identity-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  border-left: 1px solid #58656b;
  padding-left: 17px;
  color: #d2d9dc;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.portal-label > span,
.identity-label > span {
  width: 7px;
  height: 7px;
  background: #6dbea4;
  box-shadow: 0 0 0 3px rgba(109, 190, 164, 0.12);
}

.identity-label--verified {
  color: #d9eee7;
  text-transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero::after {
  position: absolute;
  right: -85px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid #daddd9;
  box-shadow: -32px -32px 0 -31px #daddd9, -64px -64px 0 -63px #daddd9;
  content: "";
  rotate: 45deg;
}

.hero--home {
  padding: 86px 0 78px;
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(275px, 0.7fr);
  align-items: end;
  gap: clamp(48px, 9vw, 120px);
}

.hero__copy {
  max-width: 780px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-label > span {
  color: var(--copper-dark);
}

.section-label::after {
  width: 30px;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--steel);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.assurance {
  border-top: 3px solid var(--copper);
  padding-top: 19px;
}

.assurance__title {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.assurance dl {
  margin-bottom: 0;
}

.assurance dl > div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.assurance dt {
  color: var(--steel-light);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assurance dd {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 620;
}

.content-shell {
  padding-top: 64px;
  padding-bottom: 86px;
}

.invitation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.invitation-panel__intro {
  padding: clamp(30px, 5vw, 54px);
}

.invitation-panel__intro h2 {
  max-width: 650px;
}

.invitation-panel__intro > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--steel);
  line-height: 1.65;
}

.link-note {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  border-left: 1px solid var(--line);
  padding: clamp(30px, 5vw, 52px) clamp(28px, 4vw, 44px);
  background: var(--blue-soft);
}

.link-note__index {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--blue);
  font-size: 1.1rem;
}

.link-note strong {
  display: block;
  margin: 3px 0 9px;
  font-size: 0.92rem;
}

.link-note p {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 0.86rem;
  line-height: 1.58;
}

.process-section {
  padding: 78px 0 68px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading .section-label,
.section-heading h2 {
  margin-bottom: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.process-grid li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  min-height: 180px;
  border-right: 1px solid var(--line);
  padding: 28px 28px 24px 0;
}

.process-grid li + li {
  padding-left: 28px;
}

.process-grid li:last-child {
  border-right: 0;
}

.process-number {
  color: var(--copper-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
}

.process-grid p {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 0.89rem;
  line-height: 1.58;
}

.availability {
  display: grid;
  grid-template-columns: 12px minmax(260px, 0.75fr) minmax(300px, 1fr);
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.availability__mark {
  width: 10px;
  height: 10px;
  background: var(--success);
  box-shadow: 0 0 0 5px #dcece6;
}

.availability .section-label {
  margin-bottom: 6px;
}

.availability .section-label::after {
  display: none;
}

.availability h2 {
  margin-bottom: 5px;
  font-size: 1.12rem;
}

.availability p {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 0.82rem;
  line-height: 1.55;
}

.availability__notice {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.site-footer {
  border-top: 4px solid var(--copper);
  color: #d9dfe1;
  background: var(--ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.35fr;
  gap: 50px;
  padding-top: 38px;
  padding-bottom: 42px;
}

.site-footer strong {
  color: white;
  font-size: 0.88rem;
}

.site-footer p,
.site-footer address {
  margin: 5px 0 0;
  color: #aeb8bc;
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.6;
}

.site-footer a {
  color: white;
  text-underline-offset: 3px;
}

.site-footer__warning {
  border-left: 1px solid #4b575d;
  padding-left: 22px;
}

/* Staff workspace */
.workspace-page {
  background: #eef0ef;
}

.workspace-shell {
  padding-top: 50px;
  padding-bottom: 70px;
}

.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.workspace-heading h1 {
  margin-bottom: 9px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.workspace-heading > div > p:last-child {
  margin-bottom: 0;
  color: var(--steel);
}

.workspace-heading .section-label {
  margin-bottom: 12px;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-explainer {
  max-width: 112px;
  color: var(--steel-light);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-dark);
  border-radius: 0;
  padding: 11px 19px;
  color: #fff;
  background: var(--blue);
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--ink);
  background: var(--blue-dark);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  border-color: #a8b0b1;
  color: #687579;
  background: #d9dddc;
  cursor: not-allowed;
  transform: none;
}

.workspace-metrics {
  display: grid;
  grid-template-columns: 0.58fr 0.72fr 1.7fr;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 33, 38, 0.06);
}

.metric {
  min-height: 132px;
  border-right: 1px solid var(--line);
  padding: 24px 25px;
}

.metric:last-child {
  border-right: 0;
}

.metric__label {
  display: block;
  margin-bottom: 10px;
  color: var(--steel-light);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 2rem;
  line-height: 1;
}

.metric > .metric__word {
  color: var(--warning);
  font-size: 1.35rem;
}

.metric small {
  color: var(--steel);
  font-size: 0.75rem;
}

.session-line {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 17px;
}

.session-line strong {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 630;
  line-height: 1.5;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 5px;
  background: var(--success);
  box-shadow: 0 0 0 4px #dcece6;
}

.status-dot--warning {
  background: var(--warning);
  box-shadow: 0 0 0 4px var(--warning-soft);
}

.workspace-section {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 33, 38, 0.05);
}

.workspace-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding: 28px 30px 24px;
}

.workspace-section__heading .section-label {
  margin-bottom: 9px;
}

.workspace-section__heading h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.workspace-section__heading > p {
  max-width: 430px;
  margin-bottom: 2px;
  color: var(--steel);
  font-size: 0.8rem;
  line-height: 1.52;
  text-align: right;
}

.form-subsection {
  border-bottom: 1px solid var(--line);
}

.form-subsection__heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 25px 30px 0;
}

.form-subsection__heading > span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-subsection__heading p {
  margin-bottom: 0;
  color: var(--steel);
  font-size: 0.72rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
  padding: 30px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 740;
}

.optional {
  color: var(--steel-light);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}

.field input:disabled,
.field select:disabled {
  border-color: #d7dbda;
  color: #748085;
  background: #f3f4f1;
  opacity: 1;
}

.field input::placeholder {
  color: #8b9497;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
}

.field small {
  color: var(--steel);
  font-size: 0.72rem;
  line-height: 1.45;
}

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

.disabled-notice {
  margin: 0 30px 30px;
  border-left: 3px solid var(--warning);
  padding: 12px 15px;
  color: #72531d;
  background: var(--warning-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.product-fieldset {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 28px 30px 30px;
}

.product-fieldset legend {
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-fieldset > p {
  margin: 8px 0 18px;
  color: var(--steel);
  font-size: 0.75rem;
  line-height: 1.5;
}

.product-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.check-card {
  position: relative;
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 11px 13px;
  color: var(--ink-soft);
  background: #fafaf7;
  font-size: 0.74rem;
  font-weight: 630;
  cursor: pointer;
}

.check-card:hover {
  border-color: var(--line-dark);
  background: white;
}

.check-card:has(input:checked) {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.check-card--review:has(input:checked) {
  border-color: var(--warning);
  color: #72531d;
  background: var(--warning-soft);
}

.check-card input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--blue);
}

.form-message {
  margin: 24px 30px 0;
  border-left: 3px solid var(--danger);
  padding: 12px 14px;
  color: #7a3028;
  background: #f7e9e6;
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-message--success {
  border-left-color: var(--success);
  color: #1f5b48;
  background: #e7f2ed;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 27px 30px 30px;
}

.form-actions strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.form-actions p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--steel);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-actions .button {
  min-width: 150px;
}

.invitation-result {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 35px;
  border-top: 4px solid var(--success);
  padding: 28px 30px 30px;
  background: #edf5f1;
}

.invitation-result .section-label {
  margin-bottom: 8px;
}

.invitation-result h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.invitation-result p {
  margin-bottom: 0;
  color: #356354;
  font-size: 0.78rem;
  line-height: 1.55;
}

.copy-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
}

.copy-row > div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.copy-row input {
  min-width: 0;
  border: 1px solid #8eb3a5;
  border-right: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.copy-row small {
  display: block;
  margin-top: 8px;
  color: #517064;
  font-size: 0.66rem;
  line-height: 1.45;
}

.text-button {
  border: 0;
  padding: 5px 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 0.73rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button:disabled {
  color: var(--steel-light);
  cursor: wait;
}

.disabled-notice strong {
  margin-right: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 17px;
  text-align: left;
}

.data-table th {
  color: var(--steel);
  background: #f4f5f2;
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  height: 130px;
  text-align: center !important;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state--error {
  color: var(--danger);
}

.reference-cell {
  color: var(--blue-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 750;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  padding: 4px 7px;
  color: var(--steel);
  background: #f4f5f2;
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-chip--invited,
.status-chip--verified {
  border-color: #99b9ad;
  color: var(--success);
  background: #e7f2ed;
}

.status-chip--draft {
  border-color: #d4bd89;
  color: #7a571e;
  background: var(--warning-soft);
}

.empty-state strong {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.empty-state span {
  color: var(--steel);
}

.workspace-footer {
  border-top: 1px solid #3b474d;
  padding: 24px 0;
  color: #aeb8bc;
  background: var(--ink);
  font-size: 0.7rem;
  line-height: 1.5;
}

/* Customer evidence capture */
.capture-page {
  background: var(--paper);
}

.capture-shell {
  max-width: 980px;
  padding-top: 34px;
  padding-bottom: 72px;
}

.progress-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 58px;
  border-bottom: 1px solid var(--line-dark);
}

.progress-track span {
  position: relative;
  padding: 14px 16px 13px 23px;
  color: var(--steel-light);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

.progress-track span::before {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  content: "";
  transform: translateX(-50%);
}

.progress-track__complete {
  color: var(--success) !important;
}

.progress-track__complete::before {
  border-color: var(--success) !important;
  background: var(--success) !important;
}

.progress-track__current {
  color: var(--ink) !important;
}

.progress-track__current::before {
  border-color: var(--copper) !important;
  background: var(--copper) !important;
  box-shadow: 0 0 0 4px var(--copper-soft);
}

.capture-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.capture-heading h1 {
  font-size: clamp(2.65rem, 6.5vw, 4.8rem);
}

.capture-panel,
.error-panel {
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.capture-instructions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  border-bottom: 1px solid var(--line);
  padding: 30px 34px 26px;
}

.capture-instructions .section-label {
  margin-bottom: 8px;
}

.capture-instructions h2 {
  margin-bottom: 0;
}

.capture-instructions ul {
  display: grid;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 7px;
}

.capture-instructions li {
  position: relative;
  padding-left: 18px;
  color: var(--steel);
  font-size: 0.79rem;
}

.capture-instructions li::before {
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--copper);
  content: "";
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.evidence-card {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  align-items: stretch;
  padding: 32px 34px 30px;
}

.evidence-card + .evidence-card {
  border-left: 1px solid var(--line);
}

.evidence-side {
  margin-bottom: 7px;
  color: var(--copper-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.evidence-card h3 {
  margin-bottom: 17px;
  font-size: 1.1rem;
}

.capture-guide {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.58;
  margin-bottom: 18px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-dark);
  color: var(--steel-light);
  background: #f1f2ef;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.capture-guide::before,
.capture-guide::after {
  position: absolute;
  width: 18px;
  height: 18px;
  content: "";
}

.capture-guide::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}

.capture-guide::after {
  right: 10px;
  bottom: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
}

.capture-guide--stored {
  border-style: solid;
  border-color: #b8cec5;
  color: var(--success);
  background: #edf5f1;
}

.evidence-preview {
  width: 100%;
  aspect-ratio: 1.58;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #eef0ee;
}

.evidence-button {
  width: 100%;
  margin-top: auto;
}

.evidence-status {
  min-height: 42px;
  margin: 12px 0 0;
  color: var(--steel);
  font-size: 0.74rem;
  line-height: 1.45;
}

.evidence-status--success {
  color: var(--success);
}

.evidence-status--error {
  color: var(--danger);
}

.completion-strip {
  border-top: 1px solid #aac9bc;
  padding: 22px 34px;
  color: #1f5b48;
  background: #e7f2ed;
}

.completion-strip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.completion-strip p {
  margin-bottom: 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.privacy-strip {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  border-top: 1px solid #bfd0d4;
  padding: 20px 34px;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.privacy-strip strong {
  font-size: 0.77rem;
  text-transform: uppercase;
}

.privacy-strip p {
  margin-bottom: 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.capture-disclaimer {
  max-width: 780px;
  margin: 28px auto 0;
  color: var(--steel);
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: center;
}

.error-panel {
  border-top-color: var(--danger);
  padding: clamp(32px, 7vw, 62px);
}

.error-panel > p:last-child {
  margin-bottom: 0;
  color: var(--steel);
  line-height: 1.6;
}

.error-page {
  background: var(--paper);
}

.error-shell {
  max-width: 850px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

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

@media (max-width: 900px) {
  .hero__layout,
  .invitation-panel {
    grid-template-columns: 1fr;
  }

  .assurance {
    max-width: 520px;
  }

  .link-note {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid li,
  .process-grid li + li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 23px 0;
  }

  .process-grid li:last-child {
    border-bottom: 0;
  }

  .availability {
    grid-template-columns: 12px 1fr;
  }

  .availability__notice {
    grid-column: 2;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__warning {
    grid-column: span 2;
    border-top: 1px solid #4b575d;
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .workspace-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric--wide {
    grid-column: span 2;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .shell,
  .site-header__inner {
    width: min(100% - 30px, 1180px);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__name {
    font-size: 0.86rem;
  }

  .portal-label,
  .identity-label {
    max-width: 145px;
    padding-left: 12px;
    font-size: 0.61rem;
    line-height: 1.35;
  }

  .hero--home {
    padding: 62px 0 54px;
  }

  .hero::after {
    display: none;
  }

  .content-shell {
    padding-top: 34px;
    padding-bottom: 60px;
  }

  .invitation-panel__intro,
  .link-note {
    padding: 28px 24px;
  }

  .process-section {
    padding: 56px 0 48px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .section-label {
    margin-bottom: 11px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .site-footer__warning {
    grid-column: auto;
  }

  .workspace-shell {
    padding-top: 35px;
  }

  .workspace-heading {
    display: block;
  }

  .action-group {
    margin-top: 24px;
    justify-content: space-between;
  }

  .action-explainer {
    max-width: 150px;
    text-align: left;
  }

  .workspace-metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric--wide {
    grid-column: auto;
    border-top: 0;
    border-bottom: 0;
  }

  .workspace-section__heading {
    display: block;
    padding: 24px 22px 20px;
  }

  .form-subsection__heading {
    display: block;
    padding: 22px 22px 0;
  }

  .form-subsection__heading p {
    margin-top: 6px;
  }

  .workspace-section__heading > p {
    margin-top: 14px;
    text-align: left;
  }

  .field-grid {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }

  .product-fieldset {
    padding: 25px 22px;
  }

  .product-options {
    grid-template-columns: 1fr;
  }

  .form-message {
    margin-right: 22px;
    margin-left: 22px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 22px;
  }

  .form-actions .button {
    width: 100%;
  }

  .invitation-result {
    grid-template-columns: 1fr;
    padding: 25px 22px;
  }

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

  .disabled-notice {
    margin: 0 22px 24px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .data-table {
    min-width: 650px;
  }

  .capture-shell {
    padding-top: 22px;
    padding-bottom: 52px;
  }

  .progress-track {
    margin-bottom: 42px;
  }

  .progress-track span {
    padding: 12px 3px;
    font-size: 0.55rem;
  }

  .capture-heading {
    margin-bottom: 30px;
  }

  .capture-instructions {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 22px 22px;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .evidence-card {
    min-height: 400px;
    padding: 28px 22px;
  }

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

  .privacy-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 22px;
  }
}

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