/* =========================================================
   RELAY STRATA
   CORE APPLICATION STYLES
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

:root {

  /* =======================================================
     CORE BRAND
     ======================================================= */

  --relay-black: #111111;
  --relay-ink: #111111;
  --relay-text: #111111;

  --relay-mint: #A7DCC1;
  --relay-orange: #F28A30;


  /* =======================================================
     NEUTRALS
     ======================================================= */

  --relay-muted: #6B7280;
  --relay-grey: #6B7280;

  --relay-page: #FFFFFF;
  --relay-panel: #FFFFFF;

  --relay-surface: #F3F4F6;
  --relay-line: #E5E7EB;
  --relay-soft-line: #F0F1F3;


  /* =======================================================
     STATUS
     ======================================================= */

  --relay-positive: #217A59;
  --relay-critical: #B42318;

  --relay-positive-soft: rgba(167, 220, 193, 0.22);
  --relay-attention-soft: rgba(242, 138, 48, 0.12);
  --relay-neutral-soft: #F3F4F6;


  /* =======================================================
     BRAND DEVICE
     ======================================================= */

  --relay-watermark: rgba(17, 17, 17, 0.045);


  /* =======================================================
     SHAPE
     ======================================================= */

  --relay-radius-small: 4px;
  --relay-radius: 6px;
  --relay-radius-large: 8px;


  /* =======================================================
     BUTTON SIGNATURE
     ======================================================= */

  --relay-shadow-mint: 5px 5px 0 var(--relay-mint);


  /* =======================================================
     LAYOUT
     ======================================================= */

  --relay-max-width: 1320px;


  /* =======================================================
     LEGACY COLOUR COMPATIBILITY
     Existing components can continue using old variable
     names while inheriting the new Relay identity.
     ======================================================= */

  --relay-pink: var(--relay-orange);
  --relay-pink-soft: var(--relay-attention-soft);

  --relay-aqua: var(--relay-mint);
  --relay-aqua-soft: var(--relay-positive-soft);

  --relay-yellow: var(--relay-orange);
  --relay-yellow-soft: var(--relay-attention-soft);


  /* =======================================================
     LEGACY SHADOW COMPATIBILITY
     ======================================================= */

  --relay-shadow-pink: var(--relay-shadow-mint);
  --relay-shadow-aqua: var(--relay-shadow-mint);
  --relay-shadow-yellow: var(--relay-shadow-mint);
}
/* =========================================================
   02. RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}


/* =========================================================
   03. GLOBAL TYPOGRAPHY + PAGE
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

body {
  background: var(--relay-page);
  color: var(--relay-text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1 {
  margin-bottom: 14px;

  color: var(--relay-black);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

h2 {
  color: var(--relay-black);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

h3 {
  color: var(--relay-black);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h4 {
  color: var(--relay-black);
  font-weight: 700;
}

p {
  line-height: 1.55;
}


/* SMALL SECTION LABEL */

.eyebrow {
  display: inline-flex;
  align-items: center;

  margin-bottom: 18px;
  padding: 0;

  background: transparent;
  border-radius: 0;

  color: var(--relay-mint);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: none;
}


/* MAJOR HEADING PUNCTUATION */

.heading-stop {
  color: var(--relay-orange);
}

/* =========================================================
   04. APPLICATION SHELL
   ========================================================= */

#app {
  min-height: 100vh;
}

.relay-main {
  width: 100%;
  min-height: calc(100vh - 94px);
}


/* =========================================================
   05. HEADER
   ========================================================= */

.relay-header {
  position: relative;
  z-index: 50;

  width: 100%;
  min-height: 94px;

  background: var(--relay-panel);
  border-bottom: 1px solid var(--relay-line);
}

.relay-header-inner {
  width: min(calc(100% - 48px), var(--relay-max-width));
  min-height: 94px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.relay-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 0;
  border: 0;
  background: transparent;

  color: var(--relay-black);
}

.relay-logo-mark {
  display: inline-flex;
  align-items: center;

  color: var(--relay-black);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.16em;
}

.relay-wordmark {
  display: inline-flex;
  align-items: baseline;

  color: var(--relay-black);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.relay-wordmark::after {
  content: ".";
  margin-left: 1px;

  color: var(--relay-mint);
  font-weight: 700;
}

.relay-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.relay-user {
  text-align: right;
  margin-right: 5px;
}

.relay-user-org,
.relay-user-name {
  display: block;
}

.relay-user-org {
  color: var(--relay-black);
  font-size: 12px;
  font-weight: 700;
}

.relay-user-name {
  margin-top: 3px;

  color: var(--relay-muted);
  font-size: 12px;
}

/* =========================================================
   06. PAGE CONTAINERS
   ========================================================= */

.page {
  width: min(calc(100% - 48px), var(--relay-max-width));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.page-narrow {
  max-width: 980px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 38px;
}

.page-heading-copy {
  max-width: 820px;
}

.page-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;

  color: var(--relay-muted);
  font-size: 17px;
}

/* =========================================================
   06A. WATERMARK / BRAND DEVICE
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.relay-watermark {
  position: absolute;
  top: 18px;
  right: -55px;
  z-index: 0;

  pointer-events: none;
  user-select: none;

  color: var(--relay-watermark);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(180px, 24vw, 360px);
  line-height: 0.75;
  font-weight: 700;
  letter-spacing: -0.16em;

  white-space: nowrap;
}


/* PAGE CONTENT MUST SIT ABOVE WATERMARK */

.page,
.relay-page,
.relay-main {
  position: relative;
}

.page > *,
.relay-page > *,
.relay-main > * {
  position: relative;
  z-index: 1;
}


/* LEFT-HAND EXCEPTION
   Use sparingly — right is the standard placement.
*/

.relay-watermark--left {
  right: auto;
  left: -55px;
}


/* =========================================================
   MOBILE WATERMARK
   ========================================================= */

@media (max-width: 700px) {

  .relay-watermark {
    top: 10px;
    right: -40px;

    font-size: 150px;
    line-height: 0.8;
  }

}

/* =========================================================
   07. BUTTONS
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.button {
  min-height: 46px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  background: var(--relay-white);
  border: 1px solid var(--relay-black);
  border-radius: var(--relay-radius);

  color: var(--relay-black);
  font-weight: 700;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.button:hover {
  transform: translate(1px, 1px);
}


/* PRIMARY
   White button + black border + mint offset shadow
   This is the main Relay button treatment.
*/

.button-primary {
  background: var(--relay-white);
  color: var(--relay-black);
  border: 1px solid var(--relay-black);
  box-shadow: var(--relay-shadow-mint);
}

.button-primary:hover {
  box-shadow: 3px 3px 0 var(--relay-mint);
}


/* SECONDARY
   White button + pale grey border
*/

.button-secondary {
  background: var(--relay-white);
  color: var(--relay-black);
  border: 1px solid var(--relay-line);
}

.button-secondary:hover {
  border-color: var(--relay-black);
}


/* LEGACY COLOUR BUTTON CLASSES
   Keep these for compatibility with existing HTML,
   but make them use the Relay button system.
*/

.button-yellow,
.button-aqua {
  background: var(--relay-white);
  color: var(--relay-black);
  border: 1px solid var(--relay-black);
  box-shadow: var(--relay-shadow-mint);
}

.button-yellow:hover,
.button-aqua:hover {
  box-shadow: 3px 3px 0 var(--relay-mint);
}


/* LARGE */

.button-large {
  min-height: 54px;
  padding: 0 25px;
  font-size: 15px;
}


/* TEXT / TERTIARY */

.button-text {
  min-height: auto;
  padding: 5px 0;

  border: 0;
  border-radius: 0;
  background: transparent;

  color: var(--relay-black);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.button-text:hover {
  transform: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* DISABLED */

.button:disabled,
.button[disabled] {
  cursor: not-allowed;

  color: #9CA3AF;
  background: var(--relay-surface);
  border-color: var(--relay-line);
  box-shadow: none;

  transform: none;
}

/* =========================================================
   08. CARDS + PANELS
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.relay-card {
  background: var(--relay-panel);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
  box-shadow: none;
}


/* LEGACY CARD SHADOW CLASSES
   Keep them working without carrying the old
   pink / aqua / yellow visual system forward.
*/

.relay-card-shadow-pink,
.relay-card-shadow-aqua,
.relay-card-shadow-yellow {
  box-shadow: none;
}


/* STANDARD PANEL */

.relay-panel {
  padding: 30px;

  background: var(--relay-panel);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  box-shadow: none;
}


/* =========================================================
   09. STATUS PILLS
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}


/* COMPLETE / CURRENT / CONNECTED */

.status-live {
  background: var(--relay-positive-soft);
  color: var(--relay-positive);
}

.status-live::before {
  background: var(--relay-mint);
}


/* ATTENTION / OUTSTANDING / ACTION */

.status-attention,
.status-action {
  background: var(--relay-attention-soft);
  color: #A94F00;
}

.status-attention::before,
.status-action::before {
  background: var(--relay-orange);
}


/* NEUTRAL / DRAFT / NOT STARTED */

.status-neutral {
  background: var(--relay-neutral-soft);
  color: var(--relay-muted);
}

.status-neutral::before {
  background: #B8BEC7;
}

/* =========================================================
   10. RISKS — LIST
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.risks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 22px;
}

.risks-search {
  width: min(100%, 520px);
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  color: var(--relay-black);
  outline: none;

  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.input:focus {
  border-color: var(--relay-black);
  box-shadow: 3px 3px 0 var(--relay-mint);
}

.risks-list {
  overflow: hidden;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}

.risk-row {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) 1fr 1fr 1fr auto;
  align-items: center;
  gap: 22px;

  padding: 22px 24px;

  border-bottom: 1px solid var(--relay-soft-line);

  transition: background 120ms ease;
}

.risk-row:last-child {
  border-bottom: 0;
}

.risk-row:hover {
  background: rgba(167, 220, 193, 0.08);
}

.risk-name {
  color: var(--relay-black);
  font-weight: 700;
}

.risk-meta-label {
  display: block;
  margin-bottom: 4px;

  color: var(--relay-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.risk-meta-value {
  color: var(--relay-text);
  font-size: 14px;
}


/* =========================================================
   12. INGEST — UPLOAD AREA
   ========================================================= */

.ingest-shell {
  max-width: 1050px;
}

.ingest-card {
  padding: 42px;
}

.upload-zone {
  min-height: 300px;
  padding: 42px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: #fbfcfe;
  border: 2px dashed #aeb8c7;
  border-radius: 20px;

  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  background: var(--relay-pink-soft);
  border-color: var(--relay-pink);
}

.upload-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--relay-aqua);
  border: 2px solid var(--relay-ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--relay-ink);

  color: var(--relay-ink);
  font-size: 30px;
  font-weight: 900;
}

.upload-zone h2 {
  margin-bottom: 10px;
}

.upload-zone p {
  max-width: 580px;
  margin-bottom: 22px;

  color: var(--relay-muted);
}

.upload-file-types {
  margin-top: 16px;

  color: var(--relay-muted);
  font-size: 12px;
}

.upload-input {
  display: none;
}


/* =========================================================
   13. INGEST — DOCUMENT QUEUE
   ========================================================= */

.document-queue {
  margin-top: 28px;
}

.document-queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 14px;
}

.document-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;

  padding: 15px 17px;

  background: #ffffff;
  border: 1px solid var(--relay-line);
  border-radius: 13px;

  margin-bottom: 9px;
}

.document-icon {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--relay-page);
  border-radius: 9px;

  color: var(--relay-ink);
  font-size: 11px;
  font-weight: 900;
}

.document-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: var(--relay-ink);
  font-weight: 700;
}

.document-meta {
  margin-top: 3px;

  color: var(--relay-muted);
  font-size: 12px;
}


/* =========================================================
   14. INGEST — PROCESSING
   ========================================================= */

.ingest-progress {
  padding: 42px;
}

.progress-header {
  max-width: 720px;
  margin-bottom: 35px;
}

.progress-track {
  width: 100%;
  height: 10px;

  overflow: hidden;

  background: #e6eaf0;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;

  background: var(--relay-pink);
  border-radius: inherit;

  transition: width 350ms ease;
}

.progress-steps {
  display: grid;
  gap: 12px;

  margin-top: 28px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 16px;

  border: 1px solid var(--relay-soft-line);
  border-radius: 12px;
}

.progress-step-marker {
  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border-radius: 50%;
  background: #e8ecf2;

  color: var(--relay-muted);
  font-size: 12px;
  font-weight: 900;
}

.progress-step.is-complete .progress-step-marker {
  background: var(--relay-aqua);
  color: var(--relay-ink);
}

.progress-step.is-current {
  border-color: var(--relay-yellow);
  background: var(--relay-yellow-soft);
}

.progress-step.is-current .progress-step-marker {
  background: var(--relay-yellow);
  color: var(--relay-ink);
}


/* =========================================================
   15. REVIEW EXTRACTED RISK
   ========================================================= */

.extraction-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;

  margin-bottom: 30px;
}

.summary-card {
  padding: 20px;

  background: #ffffff;
  border: 1px solid var(--relay-line);
  border-radius: 14px;
}

.summary-number {
  display: block;

  margin-bottom: 5px;

  color: var(--relay-ink);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.summary-label {
  color: var(--relay-muted);
  font-size: 12px;
  font-weight: 700;
}

.extracted-section {
  margin-bottom: 20px;
  padding: 26px;

  background: #ffffff;
  border: 1px solid var(--relay-line);
  border-radius: 16px;
}

.extracted-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 20px;
}

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

.extracted-field {
  padding: 15px;

  background: #f8fafc;
  border-radius: 11px;
}

.extracted-field-label {
  display: block;

  margin-bottom: 6px;

  color: var(--relay-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.extracted-field-value {
  color: var(--relay-ink);
  font-weight: 700;
}


/* =========================================================
   16. RISK RECORD — HEADER
   ========================================================= */

.risk-record-header {
  margin-bottom: 28px;
}

.risk-record-title {
  max-width: 1000px;
}

.risk-record-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;

  margin-top: 20px;
}

.risk-record-fact {
  color: var(--relay-muted);
  font-size: 13px;
}

.risk-record-fact strong {
  margin-right: 5px;
  color: var(--relay-ink);
}


/* =========================================================
   17. RISK RECORD — TABS
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.risk-record-navigation {
  width: 100%;
  margin-bottom: 20px;
}


/* PRIMARY TABS */

.risk-tabs {
  display: flex;
  align-items: flex-end;
  gap: 30px;

  width: 100%;
  height: 52px;

  margin: 0;

  border-bottom: 1px solid var(--relay-line);

  overflow: hidden;
}

.risk-tab {
  position: relative;

  flex: 0 0 auto;

  height: 52px;

  padding: 15px 0 13px;

  border: 0;
  background: transparent;

  color: #8A94A5;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.risk-tab.is-live,
.risk-tab.is-active {
  color: var(--relay-black);
}

.risk-tab.is-active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -1px;

  height: 3px;

  background: var(--relay-mint);

  border-radius: 999px 999px 0 0;
}

.risk-tab:not(.is-live) {
  cursor: default;
}


/* SECONDARY TABS */

.risk-record-subtabs {
  display: flex;
  align-items: center;
  gap: 22px;

  height: 42px;

  margin-top: 4px;

  overflow: hidden;
}

.risk-record-subtab {
  position: relative;

  flex: 0 0 auto;

  padding: 9px 0;

  border: 0;
  background: transparent;

  color: #8A94A5;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}

.risk-record-subtab.active {
  color: var(--relay-black);
}

.risk-record-subtab.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 2px;

  height: 2px;

  background: var(--relay-mint);

  border-radius: 999px;
}

.risk-record-subtab.future {
  color: #A5ADBA;
  cursor: default;
}

/* =========================================================
   18. RISK RECORD — CONTENT
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.risk-record-panel {
  padding: 32px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  box-shadow: none;
}

.risk-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.risk-data-card {
  padding: 20px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  box-shadow: none;
}

.risk-data-card h3 {
  margin-bottom: 10px;

  color: var(--relay-black);
  font-weight: 700;
}

.risk-data-card p {
  margin-bottom: 0;

  color: var(--relay-muted);
  font-size: 13px;
}


/* =========================================================
   19. EMPTY STATES
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.empty-state {
  padding: 70px 30px;

  text-align: center;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  box-shadow: none;
}

.empty-state h2 {
  margin-bottom: 10px;

  color: var(--relay-black);
  font-weight: 700;
}

.empty-state p {
  max-width: 580px;
  margin: 0 auto 24px;

  color: var(--relay-muted);
}

/* =========================================================
   20. LOADING SCREEN
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.loading-screen {
  min-height: calc(100vh - 94px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 40px;

  text-align: center;
}

.loading-screen h1 {
  font-size: 38px;
  color: var(--relay-black);
  font-weight: 700;
}

.loading-screen p:not(.eyebrow) {
  color: var(--relay-muted);
}

.loading-mark {
  width: 48px;
  height: 48px;

  margin-bottom: 25px;

  border: 5px solid var(--relay-line);
  border-top-color: var(--relay-mint);
  border-radius: 50%;

  animation: relay-spin 850ms linear infinite;
}

@keyframes relay-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   21. TOAST / NOTIFICATIONS
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

.relay-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;

  max-width: 420px;
  padding: 15px 18px;

  background: var(--relay-white);
  border: 1px solid var(--relay-black);
  border-radius: var(--relay-radius);

  color: var(--relay-black);
  font-size: 13px;
  font-weight: 700;

  box-shadow: 4px 4px 0 var(--relay-mint);
}


/* =========================================================
   22. UTILITIES
   RELAY STRATA — VISUAL IDENTITY v1
   ========================================================= */

[hidden] {
  display: none !important;
}

.muted {
  color: var(--relay-muted);
}


/* BRAND COLOUR UTILITIES */

.text-mint,
.text-aqua {
  color: var(--relay-mint);
}

.text-orange,
.text-pink,
.text-yellow {
  color: var(--relay-orange);
}

.text-black {
  color: var(--relay-black);
}

.text-grey {
  color: var(--relay-muted);
}


/* HEADING PUNCTUATION */

.heading-stop {
  color: var(--relay-orange);
}


/* =========================================================
   23. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

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

  .new-risk-option-primary,
  .new-risk-option-secondary {
    min-height: auto;
  }

  .extraction-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-row {
    grid-template-columns: minmax(220px, 2fr) 1fr 1fr auto;
  }

  .risk-row > *:nth-child(4) {
    display: none;
  }
}


/* =========================================================
   24. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .relay-header {
    min-height: 78px;
  }

  .relay-header-inner {
    width: min(calc(100% - 28px), var(--relay-max-width));
    min-height: 78px;
  }

  .relay-brand {
    gap: 8px;
  }

  .relay-logo-mark {
    width: auto;
    height: auto;

    font-size: 24px;
    letter-spacing: -0.16em;
  }

  .relay-wordmark {
    font-size: 19px;
  }

  .relay-user {
    display: none;
  }

  .page {
    width: min(calc(100% - 28px), var(--relay-max-width));
    padding: 38px 0 65px;
  }

  h1 {
    font-size: 43px;
  }

  .page-heading {
    flex-direction: column;
  }

  .page-heading .button {
    width: 100%;
  }

  .new-risk-option,
  .ingest-card,
  .ingest-progress {
    padding: 25px;
  }

  .upload-zone {
    min-height: 260px;
    padding: 28px 20px;
  }

  .extraction-summary {
    grid-template-columns: 1fr 1fr;
  }

  .extracted-fields {
    grid-template-columns: 1fr;
  }

  .risk-record-grid {
    grid-template-columns: 1fr;
  }

  .risks-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .risk-row {
    grid-template-columns: 1fr auto;
  }

  .risk-row > *:nth-child(2),
  .risk-row > *:nth-child(3),
  .risk-row > *:nth-child(4) {
    display: none;
  }

}


/* =========================================================
   33. AUTH PLACEHOLDER
   ========================================================= */

.relay-auth-placeholder {
  max-width: 760px;
  margin: 70px auto 0;
  padding: 46px;
}

.relay-auth-placeholder p:not(.eyebrow) {
  max-width: 620px;
  color: var(--relay-muted);
}

.relay-auth-actions {
  margin-top: 26px;
}


/* =========================================================
   34. AUTH — PAGE
   ========================================================= */

.relay-auth-page {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 54px 0 70px;
}


/* LOGIN PAGE ONLY */

.relay-auth-page:has(.relay-auth-intro-new) {
  width: min(calc(100% - 48px), 1320px);
}

.relay-auth-page:has(.relay-auth-intro-new) .relay-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 70px;

  align-items: start;

  min-height: 520px;
}

.relay-auth-page:has(.relay-auth-intro-new) .relay-auth-intro-new {
  width: 100%;
  max-width: 760px;

  margin: 0;
  padding: 0;
}


/* LOGIN HERO */

.relay-auth-page:has(.relay-auth-intro-new) .relay-auth-hero-title {
  margin: 0;

  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;

  white-space: nowrap;
}

.relay-auth-hero-black {
  color: var(--relay-black);
}

.relay-auth-hero-mint {
  color: var(--relay-mint);
}

.relay-auth-hero-title .heading-stop {
  color: var(--relay-orange);
}

.relay-auth-hero-rule {
  width: 34px;
  height: 3px;

  margin: 28px 0 22px;

  background: var(--relay-mint);
}

.relay-auth-hero-statement {
  margin: 0 0 12px;

  color: var(--relay-black);

  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.relay-auth-hero-description {
  max-width: 680px;

  margin: 0;

  color: #4F5968;

  font-size: 16px;
  line-height: 1.55;
}

.relay-auth-hero-bracket {
  display: none;
}


/* =========================================================
   35. AUTH — CARD + FORM
   ========================================================= */

.relay-auth-card {
  padding: 36px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}


/* LOGIN CARD ONLY */

.relay-auth-page:has(.relay-auth-intro-new) .relay-auth-card {
  width: 100%;
  max-width: 430px;

  margin: 0;

  justify-self: end;
  align-self: start;

  transform: none;
}

.relay-auth-card h2 {
  margin-bottom: 25px;
}

.relay-auth-page:has(.relay-auth-intro-new) .relay-auth-card h2 {
  margin-top: 0;

  font-size: 30px;
  line-height: 1.05;
}

.relay-auth-form {
  display: grid;
  gap: 19px;
}

.relay-field {
  display: grid;
  gap: 7px;
}

.relay-field > span {
  color: var(--relay-black);

  font-size: 12px;
  font-weight: 700;
}

.relay-field small {
  color: var(--relay-muted);
  font-size: 11px;
}

.relay-auth-submit {
  width: 100%;
}

.relay-forgot-button {
  margin-top: 14px;
}

.relay-auth-divider {
  position: relative;

  margin: 27px 0 20px;

  text-align: center;
}

.relay-auth-divider::before {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  top: 50%;

  height: 1px;

  background: var(--relay-line);
}

.relay-auth-divider span {
  position: relative;
  z-index: 1;

  padding: 0 10px;

  background: var(--relay-white);

  color: var(--relay-muted);
  font-size: 11px;
  font-weight: 700;
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .relay-auth-page:has(.relay-auth-intro-new) .relay-auth-layout {
    grid-template-columns: 1fr;
    gap: 38px;

    min-height: 0;
  }

  .relay-auth-page:has(.relay-auth-intro-new) .relay-auth-card {
    max-width: none;
    justify-self: stretch;
  }

  .relay-auth-page:has(.relay-auth-intro-new) .relay-auth-hero-title {
    font-size: 48px;
    white-space: normal;
  }

}

@media (max-width: 600px) {

  .relay-auth-page {
    width: min(calc(100% - 28px), 1180px);
  }

  .relay-auth-page:has(.relay-auth-intro-new) .relay-auth-card {
    padding: 26px;
  }

  .relay-auth-page:has(.relay-auth-intro-new) .relay-auth-hero-title {
    font-size: 42px;
  }

}
/* =========================================================
   36. AUTH — CREATE ACCOUNT
   ========================================================= */

.relay-auth-create-wrap {
  width: min(100%, 720px);
  margin: 0 auto;
}

.relay-auth-create-wrap > .button-text {
  margin-bottom: 25px;
}

.relay-auth-create-card {
  padding: 42px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}

.relay-auth-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}


/* =========================================================
   37. AUTH — MESSAGES
   ========================================================= */

.relay-form-message {
  padding: 13px 15px;

  border-radius: var(--relay-radius);

  font-size: 12px;
  line-height: 1.5;
}

.relay-form-message.is-error {
  background: rgba(180, 35, 24, 0.06);
  border-left: 3px solid var(--relay-critical);
}

.relay-form-message.is-success {
  background: var(--relay-positive-soft);
  border-left: 3px solid var(--relay-mint);
}


/* =========================================================
   38. AUTH — MOBILE
   ========================================================= */

@media (max-width: 850px) {

  .relay-auth-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .relay-auth-page {
    padding-top: 40px;
  }

}

@media (max-width: 600px) {

  .relay-auth-page {
    width: min(calc(100% - 28px), 1180px);
  }

  .relay-auth-card,
  .relay-auth-create-card {
    padding: 26px;
  }

  .relay-auth-two-column {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   44. ACCOUNT — SELECTED PARTICIPANT + ACCESS MODEL
   ========================================================= */

.relay-selected-participant {
  padding: 18px;

  background: var(--relay-positive-soft);
  border: 1px solid var(--relay-mint);
  border-radius: var(--relay-radius);
}

.relay-selected-participant strong {
  display: block;

  margin: 6px 0 5px;

  color: var(--relay-black);
  font-size: 17px;
}

.relay-selected-participant p {
  margin: 0;

  color: var(--relay-muted);
  font-size: 12px;
}

.relay-setup-model-note {
  padding: 18px;

  background: var(--relay-surface);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}

.relay-setup-model-note p {
  margin: 7px 0 0;

  color: var(--relay-muted);
  font-size: 12px;
}


/* =========================================================
   45. ACCOUNT — ORGANISATION TYPE HELP
   ========================================================= */

.relay-organisation-type-help {
  padding: 16px;

  background: var(--relay-surface);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}

.relay-organisation-type-help strong {
  display: block;

  margin-bottom: 5px;

  color: var(--relay-black);
  font-size: 13px;
}

.relay-organisation-type-help p {
  margin: 0;

  color: var(--relay-muted);
  font-size: 12px;
}


/* =========================================================
   46. ACCOUNT — WORKSPACE SETUP LAYOUT
   ========================================================= */

.relay-account-setup-page {
  width: 100%;
  padding: 58px 24px 90px;
}

.relay-account-setup-shell {
  width: min(100%, 820px);
  margin: 0 auto;
}

.relay-account-setup-intro {
  max-width: 720px;
  margin-bottom: 30px;
}

.relay-account-setup-intro h1 {
  margin-bottom: 14px;
}

.relay-account-setup-intro p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;

  color: var(--relay-muted);
  font-size: 16px;
}

.relay-organisation-form-card {
  width: 100%;
  padding: 34px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}

.relay-organisation-form-card .relay-auth-form {
  gap: 20px;
}

.relay-organisation-form-card .button-primary {
  width: 100%;
  margin-top: 4px;
}


/* =========================================================
   47. ACCOUNT — WORKSPACE SETUP RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  .relay-account-setup-page {
    padding: 38px 14px 65px;
  }

  .relay-account-setup-shell {
    width: 100%;
  }

  .relay-organisation-form-card {
    padding: 24px;
  }

  .relay-account-setup-intro h1 {
    font-size: 42px;
  }

}


/* =========================================================
   48. AUTH — MERGED REGISTRATION
   ========================================================= */

.relay-registration-section {
  margin-top: 8px;
  padding-top: 20px;

  border-top: 1px solid var(--relay-soft-line);
}

.relay-registration-section:first-child {
  margin-top: 0;
  padding-top: 0;

  border-top: 0;
}

.relay-registration-section .risk-meta-label {
  margin: 0;

  color: var(--relay-mint);

  font-size: 11px;
}


/* =========================================================
   49. AUTH — PASSWORD / JOB TITLE ALIGNMENT
   ========================================================= */

.relay-auth-two-column {
  align-items: start;
}

.relay-auth-two-column .relay-field {
  align-self: start;
}

.relay-auth-two-column .input {
  width: 100%;
}


/* =========================================================
   50. INGEST — NEXT STEP
   ========================================================= */

.ingest-next-step {
  margin: 0 0 22px;
  padding: 18px 22px;

  background: var(--relay-positive-soft);
  border: 1px solid var(--relay-mint);
  border-radius: var(--relay-radius);
}

.ingest-next-step-label {
  margin-bottom: 6px;

  color: var(--relay-black);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ingest-next-step-copy {
  color: var(--relay-muted);

  font-size: 15px;
  line-height: 1.55;
}

.ingest-next-step-copy strong {
  color: var(--relay-black);
  font-weight: 700;
}


/* =========================================================
   51. RISK RECORD — OVERVIEW
   ========================================================= */

.risk-overview-panel {
  padding: 38px 40px 42px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}


/* PROPERTY SUMMARY */

.risk-overview-property {
  padding-bottom: 34px;

  border-bottom: 1px solid var(--relay-line);
}

.risk-overview-property h2 {
  margin: 0;

  color: var(--relay-black);

  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.risk-overview-address {
  margin: 10px 0 0;

  color: var(--relay-muted);
  font-size: 15px;
}

.risk-overview-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 54px;

  margin-top: 28px;
}

.risk-overview-facts > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.risk-overview-facts span {
  color: var(--relay-muted);

  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.risk-overview-facts strong {
  color: var(--relay-black);

  font-size: 15px;
  font-weight: 700;
}


/* STAKEHOLDERS */

.risk-overview-stakeholders {
  padding-top: 32px;
}

.risk-overview-section-header {
  margin-bottom: 18px;
}

.risk-overview-section-header h3 {
  margin: 5px 0 0;

  color: var(--relay-black);

  font-size: 22px;
  line-height: 1.15;
}

.risk-overview-stakeholder-table {
  width: 100%;
}

.risk-overview-stakeholder-table table {
  width: 100%;

  border-collapse: collapse;
  table-layout: fixed;

  background: var(--relay-white);
}

.risk-overview-stakeholder-table th {
  padding: 0 18px 12px 0;

  border-bottom: 1px solid var(--relay-black);

  color: var(--relay-muted);

  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.risk-overview-stakeholder-table td {
  padding: 17px 18px 17px 0;

  border-bottom: 1px solid var(--relay-line);

  color: var(--relay-black);

  font-size: 14px;
  vertical-align: middle;
}

.risk-overview-stakeholder-table tbody tr {
  transition: background 120ms ease;
}

.risk-overview-stakeholder-table tbody tr:hover {
  background: rgba(167, 220, 193, 0.08);
}

.risk-overview-stakeholder-table th:nth-child(1),
.risk-overview-stakeholder-table td:nth-child(1) {
  width: 24%;
}

.risk-overview-stakeholder-table th:nth-child(2),
.risk-overview-stakeholder-table td:nth-child(2) {
  width: 38%;
}

.risk-overview-stakeholder-table th:nth-child(3),
.risk-overview-stakeholder-table td:nth-child(3) {
  width: 38%;
}

.risk-overview-stakeholder-table td strong {
  font-weight: 700;
  text-transform: capitalize;
}

.risk-overview-stakeholder-table .muted {
  color: var(--relay-muted);
}

.risk-overview-empty {
  padding: 18px 0;

  color: var(--relay-muted);
  font-size: 14px;
}

@media (max-width: 700px) {

  .risk-overview-panel {
    padding: 26px 22px 30px;
  }

  .risk-overview-facts {
    gap: 20px 32px;
  }

}


/* =========================================================
   52. RISK RECORD — DOCUMENTS
   ========================================================= */

.risk-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;

  margin-bottom: 28px;
}

.risk-section-heading > div {
  min-width: 0;
}

.risk-section-heading h2 {
  margin-bottom: 12px;
}

.risk-section-heading p {
  max-width: 780px;
  margin-bottom: 0;

  color: var(--relay-muted);
}

.risk-document-register,
.risk-document-register-table {
  width: 100%;

  overflow-x: auto;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}

.risk-document-register table {
  width: 100%;

  border-collapse: collapse;
  text-align: left;
}

.risk-document-register th {
  padding: 15px 18px;

  background: var(--relay-white);
  border-bottom: 1px solid var(--relay-black);

  color: var(--relay-muted);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  white-space: nowrap;
}

.risk-document-register td {
  padding: 18px;

  border-bottom: 1px solid var(--relay-line);

  color: var(--relay-black);
  font-size: 13px;

  vertical-align: middle;
}

.risk-document-register tbody tr:last-child td {
  border-bottom: 0;
}

.risk-document-register tbody tr {
  transition: background 120ms ease;
}

.risk-document-register tbody tr:hover {
  background: rgba(167, 220, 193, 0.08);
}

.risk-document-register td:first-child {
  min-width: 300px;
}

.risk-document-register td strong {
  display: block;

  color: var(--relay-black);

  font-size: 14px;
  font-weight: 700;
}

.document-register-type {
  display: block;

  margin-top: 4px;

  color: var(--relay-muted);
  font-size: 11px;
}

.risk-document-empty-row {
  padding: 46px 24px;

  text-align: center;

  color: var(--relay-muted);
  font-size: 14px;
}

.risk-document-dropzone {
  min-height: 130px;

  margin-top: 20px;
  padding: 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: var(--relay-white);

  border: 1px dashed var(--relay-line);
  border-radius: var(--relay-radius);

  color: var(--relay-muted);

  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.risk-document-dropzone:hover {
  background: rgba(167, 220, 193, 0.06);
  border-color: var(--relay-black);

  box-shadow: 3px 3px 0 var(--relay-mint);
}

.risk-document-dropzone strong {
  color: var(--relay-black);

  font-size: 14px;
}

.risk-document-dropzone span {
  font-size: 13px;
}

.risk-document-dropzone-icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--relay-black);
  border-radius: var(--relay-radius);

  background: var(--relay-white);

  color: var(--relay-black);

  font-size: 20px;
  font-weight: 700;

  box-shadow: 3px 3px 0 var(--relay-mint);
}


/* =========================================================
   52A. RISK RECORD — DOCUMENTS RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

  .risk-section-heading {
    flex-direction: column;
  }

  .risk-section-heading .button {
    width: 100%;
  }

  .risk-document-register {
    overflow-x: auto;
  }

  .risk-document-register table {
    min-width: 850px;
  }

  .risk-document-dropzone {
    flex-direction: column;
    text-align: center;
  }

}


/* =========================================================
   53. NEW RISK — LAYOUT
   ========================================================= */

.new-risk-intro {
  max-width: 900px;
  margin: 0 auto 42px;
}

.new-risk-intro h1 {
  margin: 10px 0 18px;
}

.new-risk-intro p:last-child {
  max-width: 850px;
  margin: 0;

  line-height: 1.6;
}

.new-risk-options {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 24px;

  align-items: stretch;
}

.new-risk-option {
  min-height: 320px;
  padding: 34px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-sizing: border-box;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  box-shadow: none;
}

.new-risk-option h2 {
  margin: 14px 0 18px;

  line-height: 1.08;
}

.new-risk-option p {
  max-width: 760px;

  color: var(--relay-muted);
  line-height: 1.55;
}

.new-risk-option-primary {
  min-height: 360px;
}

.new-risk-option-secondary {
  min-height: 320px;
}

.new-risk-option-tag {
  margin-bottom: 10px;
}

.new-risk-option .button {
  margin-top: 28px;
}

@media (max-width: 800px) {

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

  .new-risk-option,
  .new-risk-option-primary,
  .new-risk-option-secondary {
    min-height: auto;
  }

}


/* =========================================================
   54. INSURANCE DATA TABLE
   ========================================================= */

.insurance-data-section {
  margin-top: 30px;
}

.insurance-data-section-header {
  margin-bottom: 10px;
}

.insurance-data-table {
  width: 100%;

  border-collapse: collapse;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  overflow: hidden;
}

.insurance-data-table th {
  padding: 12px 16px;

  text-align: left;

  color: var(--relay-muted);
  background: var(--relay-white);

  border-bottom: 1px solid var(--relay-black);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insurance-data-table td {
  padding: 15px 16px;

  border-bottom: 1px solid var(--relay-line);

  vertical-align: top;

  color: var(--relay-black);
  font-size: 14px;
}

.insurance-data-table tbody tr {
  transition: background 120ms ease;
}

.insurance-data-table tbody tr:hover {
  background: rgba(167, 220, 193, 0.08);
}

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

.insurance-table-label {
  width: 34%;

  color: var(--relay-black);
  font-weight: 700;
}

.insurance-table-value {
  width: 46%;

  color: var(--relay-black);
}

.insurance-table-status {
  width: 20%;

  color: var(--relay-muted);
  font-size: 12px;
}

.insurance-not-confirmed {
  color: var(--relay-muted);
}

.insurance-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
}

.insurance-status-included {
  background: var(--relay-positive-soft);
  color: var(--relay-positive);
}

.insurance-status-excluded {
  background: rgba(180, 35, 24, 0.06);
  color: var(--relay-critical);
}

.insurance-confirmation {
  margin-top: 30px;
  padding: 20px 22px;

  border: 1px solid var(--relay-orange);
  border-radius: var(--relay-radius);

  background: var(--relay-attention-soft);
}

.insurance-confirmation h3 {
  margin: 5px 0 12px;
}

.insurance-confirmation ul {
  margin: 0;
  padding-left: 20px;
}

.insurance-confirmation li {
  margin: 7px 0;
}

@media (max-width: 800px) {

  .insurance-data-table th,
  .insurance-data-table td {
    padding: 10px 11px;
  }

  .insurance-table-label {
    width: 40%;
  }

  .insurance-table-value {
    width: 60%;
  }

  .insurance-table-status {
    display: none;
  }

}

/* =========================================================
   RELAY STRATA — FINAL BRAND OVERRIDES
   ========================================================= */


/* =========================================================
   01. LOGO
   Compact black [ ] + black wordmark + mint period
   ========================================================= */

.relay-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.relay-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px !important;
  height: 30px !important;

  gap: 7px;

  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;

  color: var(--relay-black);
}

.relay-bracket {
  display: block;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 29px;
  line-height: 1;
  font-weight: 700;
}

.relay-wordmark {
  display: inline-flex;
  align-items: baseline;

  color: var(--relay-black);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;

  letter-spacing: -0.04em;
}

.relay-wordmark::after {
  content: ".";
  margin-left: 1px;

  color: var(--relay-mint);
}


/* =========================================================
   02. WATERMARK
   Auth / setup pages only
   Risk Record watermark is handled inside its panel
   ========================================================= */


/* REMOVE PAGE-LEVEL WATERMARK FROM MAIN APP PAGES */

.page::before,
.page::after {
  content: none;
  display: none;
}


/* AUTH + ACCOUNT SETUP WATERMARK */

.relay-account-setup-page {
  position: relative;
  overflow: hidden;
}


.relay-account-setup-page::before {
  content: "[";

  position: absolute;
  top: 28px;
  right: 140px;
  z-index: 0;

  color: rgba(17, 17, 17, 0.022);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(260px, 27vw, 430px);
  line-height: 0.8;
  font-weight: 700;

  pointer-events: none;
  user-select: none;
}


.relay-account-setup-page::after {
  content: "]";

  position: absolute;
  top: 28px;
  right: -95px;
  z-index: 0;

  color: rgba(17, 17, 17, 0.022);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(260px, 27vw, 430px);
  line-height: 0.8;
  font-weight: 700;

  pointer-events: none;
  user-select: none;
}


.relay-account-setup-page > * {
  position: relative;
  z-index: 1;
}


@media (max-width: 700px) {

  .relay-auth-page::before,
  .relay-account-setup-page::before {
    top: 20px;
    right: 55px;
    font-size: 170px;
  }


  .relay-auth-page::after,
  .relay-account-setup-page::after {
    top: 20px;
    right: -55px;
    font-size: 170px;
  }

}
/* =========================================================
   03. ORANGE PUNCTUATION
   ========================================================= */

.heading-stop {
  color: var(--relay-orange);
}


/* =========================================================
   04. ORANGE ACTION CUES
   Keep buttons white. Orange is used sparingly.
   ========================================================= */

.button-text,
.relay-action-link {
  color: var(--relay-orange);
}

.button-text:hover,
.relay-action-link:hover {
  color: var(--relay-black);
}


/* =========================================================
   05. PRIMARY BUTTON
   White + black border + mint offset shadow
   ========================================================= */

.button-primary,
.button-aqua,
.button-yellow {
  background: var(--relay-white) !important;
  color: var(--relay-black) !important;

  border: 1px solid var(--relay-black) !important;

  box-shadow: 5px 5px 0 var(--relay-mint) !important;
}

.button-primary:hover,
.button-aqua:hover,
.button-yellow:hover {
  box-shadow: 3px 3px 0 var(--relay-mint) !important;
}


/* =========================================================
   06. STATUS
   Mint = positive/current
   Orange = attention/action
   ========================================================= */

.status-live,
.insurance-status-included {
  background: var(--relay-positive-soft);
  color: var(--relay-positive);
}

.status-live::before {
  background: var(--relay-mint);
}

.status-attention,
.status-action {
  background: var(--relay-attention-soft);
  color: #A94F00;
}

.status-attention::before,
.status-action::before {
  background: var(--relay-orange);
}


/* =========================================================
   07. TABS
   Mint = current/selected
   ========================================================= */

.risk-tab.is-active::after,
.risk-record-subtab.active::after {
  background: var(--relay-mint);
}

.risk-tab.is-active,
.risk-record-subtab.active {
  color: var(--relay-black);
}


/* =========================================================
   08. MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .relay-logo-mark {
    font-size: 22px;
  }

  .relay-wordmark {
    font-size: 19px;
  }

  .page::before,
  .relay-auth-page::before,
  .relay-account-setup-page::before {
    top: 24px;
    right: -34px;

    font-size: 135px;
  }

  .relay-auth-page::before {
    top: 80px;
  }

}

/* =========================================================
   RELAY STRATA — BREADCRUMBS + FOOTER
   ========================================================= */


/* HEADER LAYOUT */

.relay-header-inner {
  display: flex;
  align-items: center;
}


/* BREADCRUMBS */

.relay-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-left: 34px;

  color: var(--relay-muted);

  font-size: 11px;
  line-height: 1;
}

.relay-breadcrumbs strong {
  color: var(--relay-black);
  font-weight: 700;
}

.relay-breadcrumb-separator {
  color: #B9BEC5;
}

.relay-header-actions {
  margin-left: auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

.relay-footer {
  width: 100%;

  background: var(--relay-black);
  color: var(--relay-white);
}

.relay-footer-inner {
  width: min(
    calc(100% - 48px),
    var(--relay-max-width)
  );

  min-height: 72px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.relay-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--relay-white);

  font-size: 13px;
  font-weight: 700;
}

.relay-footer-mark {
  color: var(--relay-white);

  font-size: 17px;
  font-weight: 700;
}

.relay-footer-wordmark {
  color: var(--relay-white);
}

.relay-footer-wordmark span {
  color: var(--relay-mint);
}

.relay-footer-line {
  color: #D2D4D7;

  font-size: 12px;
  font-weight: 700;
}


/* =========================================================
   KEEP LOGIN PAGE TOP + TAIL TIGHT
   ========================================================= */

.relay-auth-page {
  padding-bottom: 42px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .relay-breadcrumbs {
    display: none;
  }

  .relay-footer-inner {
    width: min(
      calc(100% - 28px),
      var(--relay-max-width)
    );

    min-height: 82px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 6px;
  }

}

/* =========================================================
   RELAY STRATA — FINAL SHELL RESET
   Clean header + balanced auth canvas + proper footer
   ========================================================= */


/* =========================================================
   01. HEADER
   ========================================================= */

.relay-header {
  min-height: 82px;

  background: var(--relay-white);

  border-bottom: 1px solid var(--relay-line);
}

.relay-header-inner {
  width: min(
    calc(100% - 48px),
    var(--relay-max-width)
  );

  min-height: 82px;

  margin: 0 auto;

  display: flex;
  align-items: center;
}


/* LOGO */

.relay-header .relay-logo-mark,
.relay-header .relay-bracket,
.relay-header .relay-wordmark {
  color: var(--relay-black);
}

.relay-header .relay-wordmark::after {
  color: var(--relay-mint);
}


/* BREADCRUMBS */

.relay-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-left: 36px;

  color: var(--relay-muted);

  font-size: 11px;
  line-height: 1;
}

.relay-breadcrumbs strong {
  color: var(--relay-black);
  font-weight: 700;
}

.relay-breadcrumb-separator {
  color: var(--relay-orange);
}

.relay-header-actions {
  margin-left: auto;
}


/* =========================================================
   02. MAIN SHELL
   ========================================================= */

.relay-main {
  min-height: 0 !important;
}


/* =========================================================
   07. FOOTER
   ========================================================= */

.relay-footer {
  width: 100%;

  background: var(--relay-black);

  border-top: 3px solid var(--relay-mint);

  color: var(--relay-white);
}

.relay-footer-inner {
  width: min(
    calc(100% - 48px),
    var(--relay-max-width)
  );

  min-height: 74px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;
}


/* FOOTER BRAND */

.relay-footer-brand {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: var(--relay-white);

  font-size: 13px;
  font-weight: 700;
}

.relay-footer-mark {
  color: var(--relay-mint);

  font-size: 18px;
  font-weight: 700;
}

.relay-footer-wordmark {
  color: var(--relay-white) !important;

  font-size: 13px;
  font-weight: 700;
}

.relay-footer-wordmark span {
  color: var(--relay-mint);
}


/* FOOTER MESSAGE */

.relay-footer-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 12px;
  font-weight: 700;
}

.relay-footer-line::before {
  content: "";

  width: 6px;
  height: 6px;

  background: var(--relay-orange);

  border-radius: 50%;
}


/* =========================================================
   08. MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .relay-auth-page {
    padding: 38px 0 44px !important;
  }

  .relay-auth-layout {
    grid-template-columns: 1fr;

    gap: 38px;

    min-height: 0 !important;
  }

  .relay-auth-card {
    max-width: none;

    justify-self: stretch;
  }

}


@media (max-width: 700px) {

  .relay-header {
    min-height: 70px;
  }

  .relay-header-inner {
    min-height: 70px;
  }

  .relay-auth-intro h1 {
    font-size: 52px;
  }

  .relay-footer-inner {
    min-height: 82px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 6px;
  }

}

/* =========================================================
   REMOVE SPACE BELOW FOOTER
   ========================================================= */

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
}

#app {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

.relay-main {
  flex: 1 0 auto;
}

.relay-footer {
  flex-shrink: 0;
  margin-bottom: 0 !important;
}

body::after,
#app::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   HEADER — BREADCRUMBS TOP RIGHT
   ========================================================= */

.relay-header-inner {
  display: flex;
  align-items: center;
}

.relay-brand {
  flex-shrink: 0;
}

.relay-breadcrumbs {
  margin-left: auto !important;
  margin-right: 0 !important;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  font-size: 11px;
  line-height: 1;
}

.relay-header-actions:not([hidden]) {
  margin-left: 28px;
}

/* =========================================================
   RELAY STRATA — LOCKED UI CLEANUP
   ========================================================= */


/* =========================================================
   HEADER — KEEP CURRENT LAYOUT
   ========================================================= */

.relay-header {
  background: var(--relay-white);
  border-bottom: 1px solid var(--relay-line);
}

.relay-header-inner {
  display: flex;
  align-items: center;
}

.relay-brand {
  flex-shrink: 0;
}

.relay-breadcrumbs {
  margin-left: auto !important;
  margin-right: 0 !important;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  color: var(--relay-muted);

  font-size: 11px;
  line-height: 1;
}

.relay-breadcrumbs strong {
  color: var(--relay-black);
}

.relay-breadcrumb-separator {
  color: var(--relay-orange);
}

.relay-header-actions {
  margin-left: 28px;
}


/* =========================================================
   PROPERTY LIST — REMOVE GREY BACKGROUND
   ========================================================= */

.risks-list {
  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
  overflow: hidden;
}

.risk-row {
  background: var(--relay-white) !important;

  border: 0;
  border-bottom: 1px solid var(--relay-line);

  box-shadow: none !important;
}

.risk-row:last-child {
  border-bottom: 0;
}

.risk-row:hover {
  background: rgba(167, 220, 193, 0.08) !important;
}


/* REMOVE ANY OLD GREY BUTTON BACKGROUND */

.risk-row-button {
  background: var(--relay-white) !important;
}


/* =========================================================
   PROPERTY LIST TEXT
   ========================================================= */

.risk-name {
  color: var(--relay-black);
  font-weight: 700;
}

.risk-meta-label {
  color: var(--relay-muted);
}

.risk-meta-value {
  color: var(--relay-black);
}


/* =========================================================
   ACTION LINK
   ========================================================= */

.risk-row .button-text {
  color: var(--relay-orange);
  font-weight: 700;
}

.risk-row .button-text:hover {
  color: var(--relay-black);
}


/* =========================================================
   STATUS
   ========================================================= */

.status-live {
  background: var(--relay-positive-soft);
  color: var(--relay-positive);
}

.status-live::before {
  background: var(--relay-mint);
}


/* =========================================================
   WATERMARK — KEEP SUBTLE
   ========================================================= */

.page::before,
.page::after {
  color: rgba(17, 17, 17, 0.022);
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.button-primary {
  background: var(--relay-white) !important;
  color: var(--relay-black) !important;

  border: 1px solid var(--relay-black) !important;

  box-shadow: 5px 5px 0 var(--relay-mint) !important;
}

.button-primary:hover {
  box-shadow: 3px 3px 0 var(--relay-mint) !important;
}

/* =========================================================
   RELAY STRATA — AUTHENTICATED HEADER
   FINAL WORKSPACE TREATMENT
   ========================================================= */


/* HEADER RIGHT SIDE */

.relay-header-actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 18px;
}


/* USER / ORGANISATION */

.relay-user {
  display: flex;
  align-items: center;
  gap: 7px;

  padding-right: 4px;

  white-space: nowrap;
}


/* PERSON */

.relay-user-name {
  color: var(--relay-black);

  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}


/* ORGANISATION */

.relay-user-org {
  color: var(--relay-muted);

  font-size: 12px;
  line-height: 1;
  font-weight: 400;
}


/* DOT BETWEEN PERSON + ORGANISATION */

.relay-user-name:not(:empty) + .relay-user-org:not(:empty)::before {
  content: "·";

  margin-right: 7px;

  color: var(--relay-orange);
}


/* =========================================================
   ACCOUNT + LOGOUT
   Remove large button treatment in authenticated header
   ========================================================= */

.relay-header-actions > .button-secondary {
  min-height: auto;

  padding: 0;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0;

  box-shadow: none !important;

  color: var(--relay-muted);

  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.relay-header-actions > .button-secondary:hover {
  background: transparent !important;

  color: var(--relay-orange);

  border: 0 !important;

  box-shadow: none !important;

  transform: none;
}


/* SMALL SEPARATOR BEFORE ACCOUNT */

#accountButton {
  position: relative;

  margin-left: 7px;
}

#accountButton::before {
  content: "";

  position: absolute;

  left: -14px;
  top: 50%;

  width: 1px;
  height: 16px;

  transform: translateY(-50%);

  background: var(--relay-line);
}


/* =========================================================
   LOGIN BREADCRUMB
   ========================================================= */

.relay-breadcrumbs {
  margin-left: auto !important;
}

.relay-breadcrumbs[hidden] {
  display: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .relay-user-org {
    display: none;
  }

  .relay-user-name:not(:empty) + .relay-user-org:not(:empty)::before {
    display: none;
  }

  .relay-header-actions {
    gap: 14px;
  }

}

/* =========================================================
   55. RISK RECORD — INSURANCE
   RELAY STRATA — FINAL LAYOUT
   ========================================================= */

/* MAIN INSURANCE PANEL */

.risk-record-panel {
  position: relative;

  width: 100%;
  padding: 38px 40px 42px;

  background: var(--relay-white);
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);

  overflow: hidden;
}


/* =========================================================
   INSURANCE HEADER
   ========================================================= */

.risk-insurance-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;

  padding-bottom: 28px;
  margin-bottom: 30px;

  border-bottom: 1px solid var(--relay-line);
}

.risk-insurance-header-copy {
  max-width: 760px;
}

.risk-insurance-header .risk-meta-label {
  margin-bottom: 7px;
}

.risk-insurance-header h2 {
  margin: 0 0 10px;

  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.risk-insurance-header p {
  max-width: 650px;
  margin: 0;

  color: var(--relay-muted);
  font-size: 15px;
}


/* REVIEW STATUS — TOP RIGHT */

.risk-insurance-header .status-pill {
  flex: 0 0 auto;
  margin-top: 2px;
}


/* =========================================================
   INSURER
   ========================================================= */

.risk-insurance-insurer {
  margin-bottom: 30px;
}

.risk-insurance-insurer .risk-meta-label {
  margin-bottom: 6px;
}

.risk-insurance-insurer h3 {
  margin: 0 0 8px;

  font-size: 22px;
  line-height: 1.15;
}

.risk-insurance-reference {
  margin: 0;

  color: var(--relay-muted);
  font-size: 13px;
}

.risk-insurance-reference strong {
  color: var(--relay-black);
}


/* =========================================================
   KEY INSURANCE FACTS
   ========================================================= */

.risk-insurance-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  margin-bottom: 34px;

  border-top: 1px solid var(--relay-line);
  border-bottom: 1px solid var(--relay-line);
}

.risk-insurance-fact {
  min-width: 0;
  padding: 22px 26px 22px 0;
}

.risk-insurance-fact + .risk-insurance-fact {
  padding-left: 26px;
  border-left: 1px solid var(--relay-line);
}

.risk-insurance-fact .risk-meta-label {
  margin-bottom: 7px;
}

.risk-insurance-fact strong {
  display: block;

  color: var(--relay-black);

  font-size: 21px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.risk-insurance-fact p {
  margin: 6px 0 0;

  color: var(--relay-muted);
  font-size: 12px;
}


/* =========================================================
   INSURANCE DETAIL GRID
   ========================================================= */

.risk-insurance-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  border-top: 1px solid var(--relay-line);
}

.risk-insurance-detail {
  min-width: 0;

  padding: 25px 30px 25px 0;

  border-bottom: 1px solid var(--relay-line);
}

.risk-insurance-detail:nth-child(even) {
  padding-left: 30px;
  padding-right: 0;

  border-left: 1px solid var(--relay-line);
}

.risk-insurance-detail .risk-meta-label {
  margin-bottom: 7px;
}

.risk-insurance-detail h3 {
  margin: 0 0 9px;

  color: var(--relay-black);

  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.risk-insurance-detail p {
  max-width: 620px;
  margin: 0;

  color: var(--relay-muted);

  font-size: 13px;
  line-height: 1.55;
}


/* =========================================================
   INCLUDED / CONFIRMED
   ========================================================= */

.risk-insurance-detail .insurance-status,
.risk-insurance-detail .status-pill {
  margin-top: 10px;
}

.insurance-status-included {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;

  background: var(--relay-positive-soft);
  border-radius: 999px;

  color: var(--relay-positive);

  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.insurance-status-included::before {
  content: "";

  width: 7px;
  height: 7px;

  flex: 0 0 auto;

  background: var(--relay-mint);
  border-radius: 50%;
}


/* =========================================================
   SOURCE / RECORD NOTE
   ========================================================= */

.risk-insurance-source {
  margin-top: 30px;
  padding: 18px 20px;

  background: var(--relay-surface);

  border-left: 3px solid var(--relay-mint);
}

.risk-insurance-source .risk-meta-label {
  margin-bottom: 6px;
}

.risk-insurance-source p {
  max-width: 1000px;
  margin: 0;

  color: var(--relay-muted);

  font-size: 12px;
  line-height: 1.55;
}


/* =========================================================
   LONG TEXT — EXCESSES ETC
   ========================================================= */

.risk-insurance-long-text {
  max-width: 900px;

  color: var(--relay-muted);

  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   RELAY WATERMARK INSIDE PANEL
   One restrained brand device
   ========================================================= */

.risk-record-panel::after {
  content: "[ ]";

  position: absolute;

  top: 18px;
  right: 28px;

  z-index: 0;

  color: rgba(17, 17, 17, 0.025);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 118px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.14em;

  white-space: nowrap;

  pointer-events: none;
  user-select: none;
}


.risk-record-panel > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  .risk-record-panel {
    padding: 26px 22px 30px;
  }

  .risk-insurance-header {
    flex-direction: column;
    gap: 16px;
  }

  .risk-insurance-facts {
    grid-template-columns: 1fr;
  }

  .risk-insurance-fact {
    padding: 18px 0;
  }

  .risk-insurance-fact + .risk-insurance-fact {
    padding-left: 0;

    border-left: 0;
    border-top: 1px solid var(--relay-line);
  }

  .risk-insurance-details {
    grid-template-columns: 1fr;
  }

  .risk-insurance-detail,
  .risk-insurance-detail:nth-child(even) {
    padding: 20px 0;

    border-left: 0;
  }

}

/* =========================================================
   RELAY STRATA
   CURRENT INSURANCE POSITION
   ========================================================= */

.relay-insurance-position {
  padding: 40px 44px 44px;
}


/* =========================================================
   HEADER
   ========================================================= */

.relay-insurance-position .risk-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.relay-insurance-position .risk-section-heading h2 {
  margin: 4px 0 8px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.relay-insurance-position .risk-section-heading p {
  margin: 0;
  max-width: 620px;
  color: #667085;
  font-size: 16px;
  line-height: 1.55;
}

.relay-insurance-status {
  flex: 0 0 auto;
  padding-top: 2px;
}


/* =========================================================
   INSURER + POLICY PERIOD
   ========================================================= */

.relay-insurance-identity {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid #e7e9ec;
  border-bottom: 1px solid #e7e9ec;
}

.relay-insurance-identity h3 {
  margin: 5px 0 8px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.relay-insurance-identity p {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
}

.relay-insurance-period {
  padding-left: 32px;
  border-left: 1px solid #e7e9ec;
}

.relay-insurance-period > strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.4;
}

.relay-insurance-period > strong span {
  padding: 0 5px;
  color: #98a2b3;
}


/* =========================================================
   KEY FINANCIAL FACTS
   ========================================================= */

.relay-insurance-key-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0;
  border: 1px solid #e3e6e9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.relay-insurance-key-fact {
  min-width: 0;
  padding: 25px 28px;
}

.relay-insurance-key-fact + .relay-insurance-key-fact {
  border-left: 1px solid #e3e6e9;
}

.relay-insurance-key-fact > strong {
  display: block;
  margin-top: 7px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}


/* =========================================================
   COVER / EXCESSES / TERMS / REVIEW
   ========================================================= */

.relay-insurance-summary {
  margin-top: 8px;
  border-top: 1px solid #e7e9ec;
}

.relay-insurance-summary-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 23px 0;
  border-bottom: 1px solid #e7e9ec;
}

.relay-insurance-summary-label strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.3;
}

.relay-insurance-summary-value {
  min-width: 0;
  padding-top: 3px;
  font-size: 15px;
  line-height: 1.55;
}

.relay-insurance-summary-copy {
  max-width: 760px;
  color: #344054;
}

.relay-insurance-separator {
  padding: 0 8px;
  color: #98a2b3;
}

.relay-insurance-review-note {
  display: inline-block;
  margin-left: 12px;
  color: #667085;
}


/* =========================================================
   SOURCE NOTE
   ========================================================= */

.relay-insurance-source-note {
  margin-top: 32px;
  padding: 22px 24px;
  background: #f7f8f8;
  border-left: 3px solid #a7dcc1;
  border-radius: 0 8px 8px 0;
}

.relay-insurance-source-note p {
  margin: 7px 0 0;
  max-width: 920px;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}


/* =========================================================
   LABELS
   ========================================================= */

.relay-insurance-position .risk-meta-label {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
}


/* =========================================================
   STATUS PILLS
   Mint = confirmed/current
   Orange = attention/review
   ========================================================= */

.relay-insurance-position .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.relay-insurance-position .status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}

.relay-insurance-position .status-live {
  color: #247a58;
  background: #edf8f2;
}

.relay-insurance-position .status-live::before {
  background: #a7dcc1;
}

.relay-insurance-position .status-attention {
  color: #a55212;
  background: #fff3e9;
}

.relay-insurance-position .status-attention::before {
  background: #f28a30;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .relay-insurance-position {
    padding: 28px 24px 32px;
  }

  .relay-insurance-identity {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .relay-insurance-period {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid #e7e9ec;
  }

  .relay-insurance-key-facts {
    grid-template-columns: 1fr;
  }

  .relay-insurance-key-fact + .relay-insurance-key-fact {
    border-left: 0;
    border-top: 1px solid #e3e6e9;
  }

  .relay-insurance-summary-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}


@media (max-width: 600px) {

  .relay-insurance-position {
    padding: 24px 18px 28px;
  }

  .relay-insurance-position .risk-section-heading {
    display: block;
  }

  .relay-insurance-status {
    margin-top: 18px;
  }

  .relay-insurance-position .risk-section-heading h2 {
    font-size: 27px;
  }

  .relay-insurance-key-fact > strong {
    font-size: 23px;
  }

}

/* =========================================================
   END — RELAY STRATA CORE STYLES
   VISUAL IDENTITY v1
   ========================================================= */

/* =========================================================
   56. RISK RECORD — INSURANCE COVER REGISTER
   ========================================================= */

.relay-insurance-cover {
  width: 100%;
}


/* HEADER */

.relay-insurance-cover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;

  padding-bottom: 30px;
  margin-bottom: 28px;

  border-bottom: 1px solid var(--relay-line);
}

.relay-insurance-cover-header h2 {
  margin: 5px 0 9px;

  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.relay-insurance-cover-header p {
  max-width: 680px;
  margin: 0;

  color: var(--relay-muted);
  font-size: 15px;
  line-height: 1.55;
}


/* INSURER / POLICY IDENTITY */

.relay-insurance-cover-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 44px;

  padding-bottom: 28px;
  margin-bottom: 30px;

  border-bottom: 1px solid var(--relay-line);
}

.relay-insurance-cover-identity h3 {
  margin: 5px 0 7px;

  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.relay-insurance-cover-identity p {
  margin: 0;

  color: var(--relay-muted);
  font-size: 13px;
}


/* =========================================================
   COVER REGISTER
   ========================================================= */

.relay-cover-register {
  width: 100%;

  border-top: 1px solid var(--relay-black);
}


/* COLUMN HEADINGS */

.relay-cover-register-header {
  display: grid;
  grid-template-columns:
    minmax(300px, 1.4fr)
    minmax(200px, 0.75fr)
    minmax(150px, 0.45fr);

  gap: 28px;

  padding: 13px 0;

  border-bottom: 1px solid var(--relay-line);

  color: var(--relay-muted);

  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* COVER ROW */

.relay-cover-row {
  display: grid;
  grid-template-columns:
    minmax(300px, 1.4fr)
    minmax(200px, 0.75fr)
    minmax(150px, 0.45fr);

  gap: 28px;
  align-items: center;

  min-height: 72px;
  padding: 17px 0;

  border-bottom: 1px solid var(--relay-line);

  transition: background 120ms ease;
}

.relay-cover-row:hover {
  background: rgba(167, 220, 193, 0.055);
}


/* COVER NAME */

.relay-cover-name {
  min-width: 0;

  color: var(--relay-black);

  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}


/* LIMIT */

.relay-cover-limit {
  min-width: 0;

  color: var(--relay-black);

  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.relay-cover-limit.is-empty {
  color: var(--relay-muted);
  font-weight: 400;
}


/* STATUS */

.relay-cover-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  min-width: 0;
}


/* INCLUDED */

.relay-cover-status .insurance-status-included {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: fit-content;

  padding: 6px 10px;

  background: var(--relay-positive-soft);
  border-radius: 999px;

  color: var(--relay-positive);

  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}


/* NOT CONFIRMED */

.relay-cover-not-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--relay-muted);

  font-size: 12px;
  font-weight: 500;
}

.relay-cover-not-confirmed::before {
  content: "";

  width: 6px;
  height: 6px;

  flex: 0 0 6px;

  background: #B8BEC7;
  border-radius: 50%;
}


/* EXCLUDED */

.relay-cover-status .insurance-status-excluded {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: fit-content;

  padding: 6px 10px;

  background: rgba(180, 35, 24, 0.06);
  border-radius: 999px;

  color: var(--relay-critical);

  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}


/* =========================================================
   CONFIRMATION / MISSING INFORMATION
   ========================================================= */

.relay-cover-confirmation {
  margin-top: 30px;
  padding: 20px 22px;

  background: var(--relay-attention-soft);

  border-left: 3px solid var(--relay-orange);
}

.relay-cover-confirmation h3 {
  margin: 5px 0 10px;

  font-size: 17px;
}

.relay-cover-confirmation p {
  max-width: 820px;
  margin: 0;

  color: var(--relay-muted);

  font-size: 13px;
  line-height: 1.55;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .relay-insurance-cover-header {
    display: block;
  }

  .relay-insurance-cover-identity {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .relay-cover-register-header {
    display: none;
  }

  .relay-cover-row {
    grid-template-columns: 1fr;
    gap: 8px;

    padding: 18px 0;
  }

  .relay-cover-limit {
    font-size: 14px;
  }

}

/* =========================================================
   57. RISK RECORD — CLAIMS
   ========================================================= */

.relay-claims-position {
  width: 100%;
}


/* =========================================================
   CLAIMS SECONDARY SUMMARY
   ========================================================= */

.relay-claims-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  margin: 30px 0 34px;

  border-top: 1px solid var(--relay-line);
  border-bottom: 1px solid var(--relay-line);
}


.relay-claims-meta > div {
  min-height: 86px;

  padding: 20px 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}


.relay-claims-meta > div + div {
  border-left: 1px solid var(--relay-line);
}


.relay-claims-meta strong {
  display: block;

  color: var(--relay-black);

  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}


/* =========================================================
   CLAIMS REGISTER
   ========================================================= */

.relay-claims-register {
  width: 100%;

  margin-top: 10px;

  border-top: 1px solid var(--relay-black);
}


.relay-claim-row {
  display: grid;

  grid-template-columns:
    minmax(125px, 0.45fr)
    minmax(320px, 1.65fr)
    minmax(200px, 0.75fr)
    minmax(140px, 0.5fr);

  gap: 28px;

  align-items: start;

  padding: 22px 0;

  border-bottom: 1px solid var(--relay-line);
}


/* HEADER */

.relay-claim-row-header {
  padding: 13px 0;

  color: var(--relay-muted);

  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   CLAIM DATE
   ========================================================= */

.relay-claim-date strong {
  display: block;

  margin-top: 5px;

  color: var(--relay-black);

  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}


/* =========================================================
   CLAIM DESCRIPTION
   ========================================================= */

.relay-claim-description {
  min-width: 0;
}


.relay-claim-description > strong {
  display: block;

  margin-bottom: 4px;

  color: var(--relay-black);

  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}


.relay-claim-description > span {
  display: block;

  margin-bottom: 8px;

  color: var(--relay-muted);

  font-size: 13px;
  line-height: 1.45;
}


.relay-claim-description p {
  max-width: 660px;

  margin: 8px 0 10px;

  color: var(--relay-text);

  font-size: 13px;
  line-height: 1.55;
}


.relay-claim-description small {
  display: block;

  margin-top: 3px;

  color: var(--relay-muted);

  font-size: 11px;
  line-height: 1.4;
}


/* =========================================================
   CLAIM FINANCIAL
   ========================================================= */

.relay-claim-financial strong {
  display: block;

  margin: 5px 0 7px;

  color: var(--relay-black);

  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}


.relay-claim-financial small {
  display: block;

  color: var(--relay-muted);

  font-size: 11px;
  line-height: 1.5;
}


/* =========================================================
   CLAIM STATUS
   ========================================================= */

.relay-claim-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}


.relay-claim-verification {
  display: block;

  color: var(--relay-muted);

  font-size: 11px;
  font-weight: 700;
}


.relay-claim-verification.is-verified {
  color: var(--relay-positive);
}


/* =========================================================
   KNOWN CIRCUMSTANCES
   ========================================================= */

.relay-claims-circumstances {
  margin-top: 42px;
  padding-top: 32px;

  border-top: 1px solid var(--relay-line);
}


.relay-claims-circumstances .risk-section-heading {
  margin-bottom: 8px;
}


.relay-claims-circumstances .risk-section-heading h3 {
  margin: 5px 0 0;

  font-size: 21px;
}


.relay-claims-circumstance-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(190px, 0.3fr);

  gap: 32px;

  align-items: start;

  padding: 20px 0;

  border-bottom: 1px solid var(--relay-line);
}


.relay-claims-circumstance-row strong {
  color: var(--relay-black);

  font-size: 14px;
  font-weight: 700;
}


.relay-claims-circumstance-row p {
  max-width: 760px;

  margin: 7px 0 0;

  color: var(--relay-muted);

  font-size: 13px;
  line-height: 1.55;
}


/* =========================================================
   CLAIMS RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

  .relay-claims-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .relay-claims-meta > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--relay-line);
  }


  .relay-claims-meta > div:nth-child(4) {
    border-top: 1px solid var(--relay-line);
  }


  .relay-claim-row {
    grid-template-columns:
      minmax(115px, 0.4fr)
      minmax(260px, 1.5fr)
      minmax(170px, 0.7fr)
      minmax(120px, 0.45fr);

    gap: 20px;
  }

}


@media (max-width: 760px) {

  .relay-claims-meta {
    grid-template-columns: 1fr;
  }


  .relay-claims-meta > div + div {
    border-left: 0;
    border-top: 1px solid var(--relay-line);
  }


  .relay-claim-row {
    grid-template-columns: 1fr;

    gap: 14px;

    padding: 24px 0;
  }


  .relay-claim-row-header {
    display: none;
  }


  .relay-claim-financial {
    padding-top: 4px;
  }


  .relay-claims-circumstance-row {
    grid-template-columns: 1fr;

    gap: 14px;
  }

}

/* =========================================================
   58. RISK RECORD — RENEWAL WORKSPACE
   ========================================================= */

.relay-renewal-panel {
  margin-bottom: 30px;

  background: var(--relay-white);

  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}


.relay-renewal-summary {
  min-height: 108px;

  padding: 24px 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}


.relay-renewal-summary-main {
  min-width: 0;
}


.relay-renewal-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 5px;
}


.relay-renewal-title-line h3 {
  margin: 0;

  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}


.relay-renewal-context {
  margin: 7px 0 0;

  color: var(--relay-muted);

  font-size: 13px;
  line-height: 1.45;
}


.relay-renewal-panel-empty .relay-renewal-summary h3 {
  margin: 5px 0 6px;
}


.relay-renewal-panel-empty .relay-renewal-summary p {
  margin: 0;

  color: var(--relay-muted);

  font-size: 13px;
}


/* RENEWAL WORK */

.relay-renewal-work {
  padding: 24px 26px 26px;

  border-top: 1px solid var(--relay-line);
}


.relay-renewal-work-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 16px;
}


.relay-renewal-work-heading h3 {
  margin: 4px 0 0;

  font-size: 20px;
  line-height: 1.15;
}


.relay-renewal-progress-count {
  display: flex;
  align-items: baseline;
  gap: 5px;

  color: var(--relay-muted);

  font-size: 12px;
}


.relay-renewal-progress-count strong {
  color: var(--relay-black);

  font-size: 15px;
}


/* PROGRESS */

.relay-renewal-progress-track {
  width: 100%;
  height: 4px;

  margin-bottom: 20px;

  overflow: hidden;

  background: var(--relay-surface);
}


.relay-renewal-progress-bar {
  height: 100%;

  background: var(--relay-mint);

  transition: width 220ms ease;
}


/* REGISTER */

.relay-renewal-work-register {
  width: 100%;

  border-top: 1px solid var(--relay-black);
}


.relay-renewal-work-row {
  display: grid;

  grid-template-columns:
    minmax(180px, 0.7fr)
    minmax(320px, 1.6fr)
    minmax(120px, 0.45fr);

  gap: 28px;
  align-items: center;

  min-height: 64px;

  padding: 14px 0;

  border-bottom: 1px solid var(--relay-line);
}


.relay-renewal-work-row-header {
  min-height: auto;

  padding: 10px 0;

  color: var(--relay-muted);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}


.relay-renewal-work-name strong {
  color: var(--relay-black);

  font-size: 14px;
}


.relay-renewal-work-description {
  color: var(--relay-muted);

  font-size: 12px;
  line-height: 1.45;
}


.relay-renewal-work-status {
  display: flex;
  justify-content: flex-start;
}


/* =========================================================
   59. RISK RECORD — PROPERTY
   ========================================================= */

.relay-property-position {
  padding: 40px 44px 44px;
}


.relay-property-heading {
  max-width: 780px;

  margin-bottom: 32px;
}


.relay-property-heading h2 {
  margin: 5px 0 10px;

  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}


.relay-property-heading p {
  max-width: 700px;

  margin: 0;

  color: var(--relay-muted);

  font-size: 15px;
  line-height: 1.55;
}


/* PROPERTY FACTS */

.relay-property-facts {
  display: grid;

  grid-template-columns:
    minmax(280px, 1.6fr)
    minmax(130px, 0.55fr)
    minmax(110px, 0.45fr)
    minmax(190px, 0.7fr);

  margin-bottom: 38px;

  border-top: 1px solid var(--relay-line);
  border-bottom: 1px solid var(--relay-line);
}


.relay-property-fact {
  min-width: 0;

  padding: 22px 24px;
}


.relay-property-fact:first-child {
  padding-left: 0;
}


.relay-property-fact + .relay-property-fact {
  border-left: 1px solid var(--relay-line);
}


.relay-property-fact strong {
  display: block;

  margin-top: 6px;

  color: var(--relay-black);

  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}


.relay-property-fact-address strong {
  font-size: 16px;
}


/* PROPERTY REGISTER */

.relay-property-section-heading {
  margin-bottom: 16px;
}


.relay-property-section-heading h3 {
  margin: 5px 0 0;

  font-size: 21px;
}


.relay-property-register {
  width: 100%;

  border-top: 1px solid var(--relay-black);
}


.relay-property-register-row {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(180px, 0.65fr)
    minmax(360px, 1.7fr)
    minmax(110px, 0.4fr);

  gap: 28px;
  align-items: center;

  min-height: 68px;

  padding: 15px 0;

  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--relay-line);

  color: var(--relay-black);

  text-align: left;

  transition: background 120ms ease;
}


button.relay-property-register-row:hover {
  background: rgba(167, 220, 193, 0.06);
}


.relay-property-register-row-header {
  min-height: auto;

  padding: 10px 0;

  color: var(--relay-muted);

  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;

  cursor: default;
}


.relay-property-area-name strong {
  font-size: 14px;
}


.relay-property-area-description {
  color: var(--relay-muted);

  font-size: 12px;
  line-height: 1.45;
}


.relay-property-area-status {
  display: flex;
  justify-content: flex-start;
}


/* =========================================================
   RENEWAL + PROPERTY RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .relay-property-position {
    padding: 28px 24px 32px;
  }


  .relay-property-facts {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .relay-property-fact {
    padding: 18px 20px;
  }


  .relay-property-fact:first-child {
    padding-left: 20px;
  }


  .relay-property-fact:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--relay-line);
  }


  .relay-property-fact:nth-child(4) {
    border-top: 1px solid var(--relay-line);
  }


  .relay-renewal-work-row,
  .relay-property-register-row {
    grid-template-columns:
      minmax(150px, 0.7fr)
      minmax(220px, 1.3fr)
      minmax(100px, 0.4fr);

    gap: 18px;
  }

}


@media (max-width: 700px) {

  .relay-renewal-summary {
    align-items: flex-start;
    flex-direction: column;

    padding: 20px;
  }


  .relay-renewal-work {
    padding: 20px;
  }


  .relay-renewal-work-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }


  .relay-renewal-work-row,
  .relay-property-register-row {
    grid-template-columns: 1fr;

    gap: 7px;

    padding: 17px 0;
  }


  .relay-renewal-work-row-header,
  .relay-property-register-row-header {
    display: none;
  }


  .relay-property-facts {
    grid-template-columns: 1fr;
  }


  .relay-property-fact,
  .relay-property-fact:first-child {
    padding: 18px 0;

    border-left: 0 !important;
    border-top: 1px solid var(--relay-line);
  }


  .relay-property-fact:first-child {
    border-top: 0;
  }

}

/* =========================================================
   60. RENEWAL WORKSTREAM RESPONSIBILITY
   ========================================================= */

.relay-renewal-work-row {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.6fr)
    minmax(180px, 1fr)
    130px
    90px;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e8eaed;
}

.relay-renewal-work-row-header {
  padding: 11px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #dfe3e8;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}

.relay-renewal-work-name {
  min-width: 0;
}

.relay-renewal-work-name > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.35;
  color: #111;
}

.relay-renewal-work-description {
  display: block;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.5;
  color: #68758b;
}

.relay-renewal-work-owner {
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
}

.relay-renewal-work-owner strong {
  display: block;
  overflow-wrap: anywhere;
}

.relay-renewal-work-status {
  display: flex;
  align-items: center;
}

.relay-renewal-work-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.relay-renewal-work-action .button-text {
  margin: 0;
  padding: 4px 0;
  font-weight: 700;
}

@media (max-width: 900px) {

  .relay-renewal-work-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .relay-renewal-work-row-header {
    display: none;
  }

  .relay-renewal-work-action {
    justify-content: flex-start;
  }

}

/* =========================================================
   60A. COMPACT RENEWAL REGISTER
   ========================================================= */

.relay-renewal-work-row {
  padding-top: 12px;
  padding-bottom: 12px;
}

.relay-renewal-work-row-header {
  padding-top: 9px;
  padding-bottom: 9px;
}

.relay-renewal-work-name > strong {
  margin-bottom: 2px;
}

.relay-renewal-work-description {
  line-height: 1.35;
}

.relay-renewal-work-register {
  margin-top: 14px;
}

/* =========================================================
   EMBEDDED RISK RECORD MODE
   ---------------------------------------------------------
   The Renewal Review now lives inside the Relay Risk Record.

   Remove:
   - old standalone header
   - old internal Documents tab
   - old Documents workspace
   - unnecessary bottom whitespace

   Documents are managed by the master Risk Record Documents tab.
   ========================================================= */


/* ---------------------------------------------------------
   01. REMOVE STANDALONE HEADER
   --------------------------------------------------------- */

.topbar{
  display:none !important;
}


/* ---------------------------------------------------------
   02. REMOVE INTERNAL DOCUMENTS TAB
   --------------------------------------------------------- */

.view-button[data-view="documents"]{
  display:none !important;
}

#documentsView{
  display:none !important;
}


/* ---------------------------------------------------------
   03. REMOVE STANDALONE PAGE SPACING
   --------------------------------------------------------- */

.main{
  padding-top:18px !important;
  padding-bottom:0 !important;
}

.page{
  min-height:0 !important;
}

html,
body{
  min-height:0 !important;
  height:auto !important;
}


/* ---------------------------------------------------------
   04. REMOVE BOTTOM SPACE AFTER LAST REVIEW SECTION
   --------------------------------------------------------- */

#reviewView{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

#comparisonSection,
#costsSection{
  margin-bottom:0 !important;
}

body:not(.editing){
  padding-bottom:0 !important;
}

/* =========================================================
   RELAY RENEWAL JOURNEY
   ========================================================= */

.relay-renewal-journey {
  padding: 26px;
}

.relay-renewal-journey-header {
  margin-bottom: 28px;
}

.relay-renewal-journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 28px;
}

.relay-renewal-journey-step {
  position: relative;
  padding: 18px 20px 20px;
  border-right: 1px solid #e5e7eb;
  color: #68758b;
}

.relay-renewal-journey-step:last-child {
  border-right: 0;
}

.relay-renewal-journey-step span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #9aa4b2;
}

.relay-renewal-journey-step strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  color: #111;
}

.relay-renewal-journey-step small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.relay-renewal-journey-step.is-active {
  background: #f7faf8;
}

.relay-renewal-journey-step.is-active strong {
  color: #111;
}

.relay-renewal-journey-step.is-active span {
  color: #6fbd99;
}

.relay-renewal-journey-step.is-next {
  background: #fff;
}

.relay-renewal-journey-step.is-next strong {
  color: #f28a30;
}

.relay-renewal-journey-content {
  margin-top: 0;
}


/* ---------------------------------------------------------
   NEXT ACTION
   --------------------------------------------------------- */

.relay-renewal-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  background: #fafcfb;
}

.relay-renewal-next-action strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.relay-renewal-next-action p {
  margin: 0;
  color: #68758b;
  font-size: 13px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .relay-renewal-journey-steps {
    grid-template-columns: 1fr 1fr;
  }

  .relay-renewal-journey-step:nth-child(2) {
    border-right: 0;
  }

}

@media (max-width: 600px) {

  .relay-renewal-journey {
    padding: 18px;
  }

  .relay-renewal-journey-steps {
    grid-template-columns: 1fr;
  }

  .relay-renewal-journey-step {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .relay-renewal-journey-step:last-child {
    border-bottom: 0;
  }

}

/* =========================================================
   RENEWAL WORKSTREAM TABLE
   ========================================================= */

.relay-renewal-work-header,
.relay-renewal-work-row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(150px, 1.2fr) 130px 70px;
  column-gap: 28px;
  align-items: center;
}

.relay-renewal-work-header {
  padding: 12px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #dfe3e8;
  color: #68758b;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.relay-renewal-work-row {
  min-height: 76px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.relay-renewal-work-row > div:first-child {
  min-width: 0;
}

.relay-renewal-work-row strong {
  display: block;
  margin-bottom: 5px;
  color: #111;
  font-size: 14px;
  line-height: 1.3;
}

.relay-renewal-work-row p {
  margin: 0;
  color: #68758b;
  font-size: 12px;
  line-height: 1.45;
}

.relay-renewal-work-row > div:nth-child(2) {
  color: #68758b;
  font-size: 13px;
}

.relay-renewal-work-row > div:nth-child(3) {
  display: flex;
  align-items: center;
}

.relay-renewal-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f6;
  color: #68758b;
  font-size: 11px;
  white-space: nowrap;
}

.relay-renewal-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7bec8;
}

.relay-renewal-status.is-complete {
  background: #edf8f2;
  color: #16815a;
}

.relay-renewal-status.is-complete span {
  background: #a7dcc1;
}

.relay-renewal-action {
  border: 0;
  padding: 0;
  background: none;
  color: #f28a30;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.relay-renewal-action:hover {
  text-decoration: underline;
}

.relay-renewal-action-empty {
  color: #68758b;
  font-size: 13px;
}


/* =========================================================
   RENEWAL READINESS SUMMARY
   ========================================================= */

.relay-renewal-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}

.relay-renewal-progress-count {
  margin-top: 4px;
  color: #68758b;
  font-size: 13px;
}

.relay-renewal-progress-score {
  text-align: right;
}

.relay-renewal-progress-score strong {
  font-size: 24px;
  line-height: 1;
}

.relay-renewal-progress-score span {
  margin-left: 5px;
  color: #68758b;
  font-size: 12px;
}

.relay-renewal-progress-score div {
  margin-top: 5px;
  color: #68758b;
  font-size: 12px;
}

.relay-renewal-progress-bar {
  width: 100%;
  height: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f2;
}

.relay-renewal-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #a7dcc1;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  .relay-renewal-work-header {
    display: none;
  }

  .relay-renewal-work-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .relay-renewal-work-row > div:nth-child(2) {
    display: none;
  }

  .relay-renewal-work-row > div:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .relay-renewal-work-row > div:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

}

/* =========================================================
   RELAY STRATA — PROPERTY PORTFOLIO
   ========================================================= */

.relay-portfolio-page {
  padding-top: 54px;
}


/* HEADING */

.relay-portfolio-heading {
  margin-bottom: 34px;
}

.relay-portfolio-heading h1 {
  margin: 0;

  font-size: clamp(46px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.relay-portfolio-connected {
  color: var(--relay-mint);
}


/* SEARCH + NEW PROPERTY */

.relay-portfolio-page .risks-toolbar {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 22px;

  margin: 0 0 26px;
}

.relay-portfolio-page .risks-search {
  flex: 1 1 auto;

  width: auto;
  max-width: none;
}

.relay-portfolio-page .risks-search .input {
  width: 100%;
}

.relay-portfolio-page #newRiskButton {
  flex: 0 0 auto;

  min-height: 50px;

  white-space: nowrap;
}


/* TABLE */

.relay-portfolio-page .risks-list {
  width: 100%;

  overflow: hidden;

  background: var(--relay-white);

  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius);
}


/* ONE HEADER ROW */

.relay-portfolio-page .risk-table-header,
.relay-portfolio-page .risk-row {
  display: grid;

  grid-template-columns:
    minmax(300px, 2fr)
    minmax(180px, 1fr)
    minmax(150px, 0.8fr)
    minmax(160px, 0.9fr)
    90px;

  column-gap: 32px;

  align-items: center;

  width: 100%;

  text-align: left;
}


.relay-portfolio-page .risk-table-header {
  padding: 14px 24px;

  background: #FAFAFA;

  border-bottom: 1px solid var(--relay-black);

  color: var(--relay-muted);

  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;

  letter-spacing: 0.07em;
  text-transform: uppercase;
}


/* PROPERTY ROW */

.relay-portfolio-page .risk-row {
  min-height: 82px;

  padding: 17px 24px;

  background: var(--relay-white);

  border: 0;
  border-bottom: 1px solid var(--relay-line);

  cursor: pointer;

  transition: background 120ms ease;
}

.relay-portfolio-page .risk-row:last-child {
  border-bottom: 0;
}

.relay-portfolio-page .risk-row:hover {
  background: rgba(167, 220, 193, 0.07);
}


/* ALL TEXT LEFT */

.relay-portfolio-page .risk-row > div,
.relay-portfolio-page .risk-table-header > div {
  min-width: 0;

  text-align: left;
}


/* PROPERTY */

.relay-portfolio-page .risk-property-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.relay-portfolio-page .risk-name {
  color: var(--relay-black);

  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.relay-portfolio-page .risk-address {
  color: var(--relay-muted);

  font-size: 12px;
  line-height: 1.4;
}


/* VALUES */

.relay-portfolio-page .risk-table-value {
  color: var(--relay-black);

  font-size: 14px;
  line-height: 1.4;
}


/* ACTION */

.relay-portfolio-page .risk-table-action {
  display: flex;
  justify-content: flex-start;
}

.relay-portfolio-page .risk-open-button {
  min-height: 34px;

  padding: 0 16px;

  background: var(--relay-white);

  border: 1px solid var(--relay-black);
  border-radius: var(--relay-radius);

  color: var(--relay-black);

  font-size: 12px;
  font-weight: 700;

  box-shadow: 3px 3px 0 var(--relay-mint);

  cursor: pointer;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.relay-portfolio-page .risk-open-button:hover {
  transform: translate(1px, 1px);

  box-shadow: 2px 2px 0 var(--relay-mint);
}


/* MOBILE */

@media (max-width: 900px) {

  .relay-portfolio-page .risks-toolbar {
    align-items: stretch;
  }

  .relay-portfolio-page .risk-table-header {
    display: none;
  }

  .relay-portfolio-page .risk-row {
    grid-template-columns: 1fr auto;

    gap: 12px;
  }

  .relay-portfolio-page .risk-row > div:nth-child(2),
  .relay-portfolio-page .risk-row > div:nth-child(3),
  .relay-portfolio-page .risk-row > div:nth-child(4) {
    display: none;
  }

  .relay-portfolio-page .risk-table-action {
    justify-content: flex-end;
  }

}


@media (max-width: 600px) {

  .relay-portfolio-page .risks-toolbar {
    flex-direction: column;
  }

  .relay-portfolio-page #newRiskButton {
    width: 100%;
  }

}

/* =========================================================
   LOGIN — POSITION + WATERMARK FIX
   ========================================================= */

.relay-auth-page {
  position: relative !important;
  overflow: hidden !important;
}

.relay-auth-layout {
  align-items: start !important;
}

.relay-auth-layout > .relay-auth-card {
  margin-top: 0 !important;
  align-self: start !important;
  transform: none !important;
}


/* RESTORE PALE [ ] WATERMARK */

.relay-auth-page::before {
  content: "[" !important;
  display: block !important;

  position: absolute !important;
  top: 65px !important;
  right: 245px !important;
  z-index: 0 !important;

  color: rgba(17, 17, 17, 0.025) !important;

  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 360px !important;
  line-height: 0.8 !important;
  font-weight: 700 !important;

  pointer-events: none !important;
}

.relay-auth-page::after {
  content: "]" !important;
  display: block !important;

  position: absolute !important;
  top: 65px !important;
  right: 20px !important;
  z-index: 0 !important;

  color: rgba(17, 17, 17, 0.025) !important;

  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 360px !important;
  line-height: 0.8 !important;
  font-weight: 700 !important;

  pointer-events: none !important;
}

.relay-auth-layout {
  position: relative !important;
  z-index: 1 !important;
}

/* =========================================================
   LOGIN — STRONGER HERO HIERARCHY
   ========================================================= */

.relay-auth-intro-new {
  max-width: 820px !important;
}


/* MAIN BANNER */

.relay-auth-hero-title,
.relay-auth-intro h1.relay-auth-hero-title {
  margin: 0 !important;

  font-size: clamp(64px, 5.4vw, 78px) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.055em !important;

  font-weight: 700 !important;

  white-space: nowrap !important;
}


/* BRAND RULE */

.relay-auth-hero-rule {
  width: 46px !important;
  height: 4px !important;

  margin: 32px 0 26px !important;

  background: var(--relay-mint) !important;
}


/* SUB-BANNER */

.relay-auth-hero-statement {
  max-width: 760px !important;

  margin: 0 0 16px !important;

  color: var(--relay-black) !important;

  font-size: 25px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;

  font-weight: 700 !important;
}


/* SUPPORTING COPY */

.relay-auth-hero-description {
  max-width: 720px !important;

  margin: 0 !important;

  color: #4F5968 !important;

  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* =========================================================
   LOGIN — CARD POSITION + PROPORTION
   ========================================================= */

.relay-auth-layout > .relay-auth-card {
  margin-top: -165px !important;

  padding: 28px 32px !important;

  max-width: 430px !important;
}


/* LOGIN TITLE */

.relay-auth-card h2 {
  margin: 0 0 20px !important;

  font-size: 28px !important;
  line-height: 1.05 !important;
}


/* FORM SPACING */

.relay-auth-form {
  gap: 15px !important;
}

.relay-auth-card .input {
  min-height: 48px !important;
}


/* FORGOT PASSWORD */

.relay-forgot-button {
  margin-top: 10px !important;
}


/* DIVIDER */

.relay-auth-divider {
  margin: 20px 0 16px !important;
}

/* =========================================================
   LOGIN CARD — DIRECT TARGET
   ========================================================= */

.relay-auth-card:has(#relayLoginForm) {
  position: relative !important;
  top: auto !important;

  margin: -190px 0 0 !important;
  padding: 28px 32px !important;

  width: 100% !important;
  max-width: 430px !important;

  align-self: start !important;
  justify-self: end !important;

  transform: none !important;
}


/* Tighten the contents */

.relay-auth-card:has(#relayLoginForm) h2 {
  margin: 0 0 20px !important;
  font-size: 28px !important;
}

.relay-auth-card:has(#relayLoginForm) .relay-auth-form {
  gap: 15px !important;
}

.relay-auth-card:has(#relayLoginForm) .input {
  min-height: 48px !important;
}

.relay-auth-card:has(#relayLoginForm) .relay-forgot-button {
  margin-top: 10px !important;
}

.relay-auth-card:has(#relayLoginForm) .relay-auth-divider {
  margin: 20px 0 16px !important;
}

/* BOOK A DEMO — POSITION */

.relay-auth-hero-actions {
  margin-top: 40px !important;
}

/* LOGIN — FINAL POSITION */

.relay-auth-card:has(#relayLoginForm) {
  position: relative !important;
  top: -110px !important;
}

/* =========================================================
   LOGIN — REMOVE EXCESS BOTTOM SPACE
   ========================================================= */

body:has(.relay-auth-page) #app {
  min-height: 0 !important;
}

.relay-main:has(.relay-auth-page) {
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

.relay-auth-page {
  padding-bottom: 20px !important;
}

.relay-auth-layout {
  min-height: 0 !important;
}
/* =========================================================
   RELAY STRATA — APPROVED LOGIN DESIGN
   FINAL ISOLATED LOGIN SYSTEM
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.relay-login-2026 {
  position: relative !important;

  width: min(calc(100% - 72px), 1560px) !important;
  max-width: 1560px !important;

  margin: 0 auto !important;

  padding: 48px 0 46px !important;

  overflow: visible !important;

  min-height: 690px !important;
}


/* KILL ALL PREVIOUS LOGIN PSEUDO WATERMARKS */

.relay-login-2026::before,
.relay-login-2026::after {
  content: none !important;
  display: none !important;
}


/* =========================================================
   THREE-COLUMN COMPOSITION
   ========================================================= */

.relay-login-2026 .relay-login-stage {
  position: relative;

  display: grid !important;

  grid-template-columns:
    minmax(510px, 1.15fr)
    minmax(360px, 0.78fr)
    430px !important;

  gap: 16px !important;

  align-items: start !important;

  width: 100%;

  min-height: 620px !important;
}


/* =========================================================
   LEFT HERO
   ========================================================= */

.relay-login-hero {
  position: relative;
  z-index: 5;

  padding-top: 8px;
}


.relay-login-title {
  margin: 0 !important;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(72px, 5.8vw, 96px) !important;

  line-height: 0.93 !important;

  letter-spacing: -0.065em !important;

  font-weight: 700 !important;
}


.relay-login-title > span {
  display: block;
}


.relay-login-title-black {
  color: #111111;
}


.relay-login-title-mint {
  margin-top: 12px;

  color: #A7DCC1;
}


.relay-login-title .heading-stop {
  color: #F28A30 !important;
}


/* MINT RULE */

.relay-login-rule {
  width: 62px;
  height: 5px;

  margin: 42px 0 34px;

  background: #A7DCC1;
}


/* SUB-BANNER */

.relay-login-statement {
  max-width: 660px;

  margin: 0 0 20px !important;

  color: #111111;

  font-size: 20px;
  line-height: 1.3;

  font-weight: 700;
  letter-spacing: -0.02em;
}


/* BODY COPY */

.relay-login-description {
  max-width: 650px;

  margin: 0 !important;

  color: #586477;

  font-size: 17px;
  line-height: 1.65;
}


/* =========================================================
   BOOK A DEMO
   ========================================================= */

.relay-login-demo-wrap {
  margin-top: 50px;
}


.relay-login-demo {
  min-width: 190px;
  min-height: 58px;

  padding: 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #FFFFFF !important;

  border: 1.5px solid #111111 !important;
  border-radius: 7px !important;

  color: #111111 !important;

  font-size: 16px;
  font-weight: 700;

  text-decoration: none !important;

  box-shadow:
    5px 5px 0 #F28A30 !important;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}


.relay-login-demo:hover {
  transform: translate(1px, 1px);

  box-shadow:
    3px 3px 0 #F28A30 !important;
}


/* =========================================================
   CENTRE GRAPHIC
   ========================================================= */

.relay-login-visual {
  position: relative;

  z-index: 1;

  width: 100%;
  height: 610px;

  margin-top: -10px;
}


/* =========================================================
   [ ] WATERMARK
   ========================================================= */

.relay-login-watermark {
  position: absolute;

  inset: 0;

  z-index: 0;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 0 5px;

  pointer-events: none;
  user-select: none;
}


.relay-login-watermark span {
  color: rgba(17, 17, 17, 0.028);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 470px;
  line-height: 0.95;
  font-weight: 700;

  transform: scaleX(0.82);
}


/* NETWORK */

.relay-login-network {
  position: absolute;

  top: 38px;
  left: 50%;

  z-index: 2;

  width: 420px;
  height: 560px;

  transform: translateX(-50%);

  overflow: visible;

  opacity: 0.9;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.relay-login-2026 .relay-login-card {
  position: relative !important;

  top: 0 !important;

  z-index: 10 !important;

  width: 100% !important;
  max-width: 430px !important;

  margin: 0 !important;

  padding: 36px 36px 34px !important;

  justify-self: end !important;
  align-self: start !important;

  transform: none !important;

  background: rgba(255, 255, 255, 0.95) !important;

  border:
    1px solid #E0E3E7 !important;

  border-radius:
    9px !important;

  box-shadow:
    0 8px 28px rgba(17, 17, 17, 0.09) !important;
}


.relay-login-label {
  margin: 0 0 10px !important;

  color: #78CBA5 !important;
}


/* LOGIN HEADING */

.relay-login-card h2 {
  margin: 0 0 28px !important;

  color: #111111;

  font-size: 29px !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em !important;

  font-weight: 700 !important;
}


/* =========================================================
   FORM
   ========================================================= */

.relay-login-card .relay-auth-form {
  gap: 20px !important;
}


.relay-login-card .relay-field {
  gap: 8px !important;
}


.relay-login-card .relay-field > span {
  color: #111111;

  font-size: 13px;
  font-weight: 700;
}


.relay-login-card .input {
  min-height: 54px !important;

  padding: 0 17px !important;

  background: #EEF4FD !important;

  border:
    1px solid #DCE4EF !important;

  border-radius:
    6px !important;

  box-shadow: none !important;

  color: #111111;

  font-size: 15px;
}


.relay-login-card .input:focus {
  background: #FFFFFF !important;

  border-color:
    #111111 !important;

  box-shadow:
    3px 3px 0 #A7DCC1 !important;
}


/* =========================================================
   LOG IN BUTTON
   ========================================================= */

.relay-login-submit {
  width: 100% !important;

  min-height: 58px !important;

  margin-top: 3px;

  background: #FFFFFF !important;

  border:
    1.5px solid #111111 !important;

  border-radius:
    6px !important;

  color: #111111 !important;

  font-size: 16px !important;
  font-weight: 700 !important;

  box-shadow:
    5px 5px 0 #F28A30 !important;
}


.relay-login-submit:hover {
  transform: translate(1px, 1px);

  box-shadow:
    3px 3px 0 #F28A30 !important;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.relay-login-card .relay-forgot-button {
  margin-top: 17px !important;

  padding: 0 !important;

  color: #F28A30 !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  text-decoration: none !important;
}


.relay-login-card .relay-forgot-button:hover {
  color: #111111 !important;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.relay-login-card .relay-auth-divider {
  margin: 29px 0 22px !important;
}


.relay-login-card .relay-auth-divider::before {
  background: #E2E5E9 !important;
}


.relay-login-card .relay-auth-divider span {
  color: #647084 !important;

  font-size: 12px !important;
  font-weight: 500 !important;
}


/* =========================================================
   CREATE ACCOUNT
   ========================================================= */

.relay-login-create {
  width: 100% !important;

  min-height: 54px !important;

  background: #FFFFFF !important;

  border:
    1px solid #B9BEC6 !important;

  border-radius:
    6px !important;

  color: #111111 !important;

  font-size: 15px !important;
  font-weight: 700 !important;

  box-shadow: none !important;
}


.relay-login-create:hover {
  border-color: #111111 !important;

  transform: none !important;
}


/* =========================================================
   REMOVE OLD LOGIN POSITIONING RULES
   ========================================================= */

.relay-login-2026
.relay-auth-card:has(#relayLoginForm) {
  position: relative !important;

  top: 0 !important;

  margin: 0 !important;

  transform: none !important;
}


.relay-login-2026
.relay-auth-layout {
  min-height: 0 !important;
}


/* =========================================================
   FOOTER / PAGE HEIGHT
   ========================================================= */

body:has(.relay-login-2026) #app {
  min-height: 100vh !important;
}


body:has(.relay-login-2026)
.relay-main {
  flex: 1 0 auto !important;

  min-height: 0 !important;
}


body:has(.relay-login-2026)
.relay-footer {
  flex-shrink: 0;

  min-height: 98px;

  background: #111111 !important;

  border-top:
    0 !important;

  border-bottom:
    3px solid #A7DCC1;
}


body:has(.relay-login-2026)
.relay-footer-inner {
  min-height: 98px !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1250px) {

  .relay-login-2026
  .relay-login-stage {
    grid-template-columns:
      minmax(480px, 1fr)
      300px
      400px !important;

    gap: 5px !important;
  }


  .relay-login-title {
    font-size:
      clamp(66px, 6vw, 82px) !important;
  }


  .relay-login-network {
    width: 370px;
  }


  .relay-login-watermark span {
    font-size: 410px;
  }

}


/* =========================================================
   SMALLER TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .relay-login-2026 {
    width:
      min(calc(100% - 48px), 900px) !important;
  }


  .relay-login-2026
  .relay-login-stage {
    grid-template-columns:
      1fr
      400px !important;

    gap: 42px !important;
  }


  .relay-login-visual {
    display: none;
  }


  .relay-login-title {
    font-size:
      64px !important;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .relay-login-2026 {
    width:
      min(calc(100% - 28px), 700px) !important;

    padding:
      34px 0 38px !important;

    min-height:
      0 !important;
  }


  .relay-login-2026
  .relay-login-stage {
    grid-template-columns:
      1fr !important;

    gap:
      44px !important;

    min-height:
      0 !important;
  }


  .relay-login-title {
    font-size:
      53px !important;
  }


  .relay-login-title-mint {
    margin-top:
      7px;
  }


  .relay-login-rule {
    margin:
      28px 0 25px;
  }


  .relay-login-statement {
    font-size:
      18px;
  }


  .relay-login-description {
    font-size:
      15px;
  }


  .relay-login-demo-wrap {
    margin-top:
      34px;
  }


  .relay-login-2026
  .relay-login-card {
    max-width:
      none !important;

    justify-self:
      stretch !important;
  }

}

/* =========================================================
   RELAY LOGIN — SHORT DESKTOP VIEWPORT
   Match approved reference proportions
   ========================================================= */

@media (min-width: 1051px) and (max-height: 800px) {

  .relay-login-2026 {
    padding-top: 26px !important;
    padding-bottom: 22px !important;
    min-height: 0 !important;
  }

  .relay-login-2026 .relay-login-stage {
    min-height: 0 !important;

    grid-template-columns:
      minmax(500px, 1.12fr)
      minmax(320px, 0.72fr)
      430px !important;

    align-items: start !important;
  }


  /* HERO */

  .relay-login-title {
    font-size: 76px !important;
    line-height: 0.92 !important;
  }

  .relay-login-title-mint {
    margin-top: 6px !important;
  }

  .relay-login-rule {
    width: 48px !important;
    height: 4px !important;

    margin: 25px 0 22px !important;
  }

  .relay-login-statement {
    margin-bottom: 15px !important;

    font-size: 18px !important;
  }

  .relay-login-description {
    max-width: 650px !important;

    font-size: 15px !important;
    line-height: 1.55 !important;
  }


  /* BOOK DEMO */

  .relay-login-demo-wrap {
    margin-top: 32px !important;
  }

  .relay-login-demo {
    min-width: 175px !important;
    min-height: 50px !important;
  }


  /* CENTRE GRAPHIC */

  .relay-login-visual {
    height: 490px !important;
    margin-top: -4px !important;
  }

  .relay-login-network {
    top: 0 !important;

    width: 340px !important;
    height: 455px !important;
  }

  .relay-login-watermark span {
    font-size: 380px !important;
  }


  /* LOGIN CARD */

  .relay-login-2026 .relay-login-card {
    padding: 27px 32px 26px !important;
  }

  .relay-login-card h2 {
    margin-bottom: 20px !important;

    font-size: 26px !important;
  }

  .relay-login-card .relay-auth-form {
    gap: 14px !important;
  }

  .relay-login-card .input {
    min-height: 48px !important;
  }

  .relay-login-submit {
    min-height: 52px !important;
  }

  .relay-login-card .relay-forgot-button {
    margin-top: 12px !important;
  }

  .relay-login-card .relay-auth-divider {
    margin: 20px 0 16px !important;
  }

  .relay-login-create {
    min-height: 48px !important;
  }


  /* FOOTER */

  body:has(.relay-login-2026) .relay-footer {
    min-height: 72px !important;
  }

  body:has(.relay-login-2026) .relay-footer-inner {
    min-height: 72px !important;
  }

}

/* =========================================================
   RELAY STRATA LOGIN — MOCKUP MATCH
   HEADER / GRAPHIC / FOOTER ALIGNMENT
   ========================================================= */


/* =========================================================
   ONE SHARED PAGE WIDTH
   Header, hero and footer all use exactly the same edges
   ========================================================= */

body:has(.relay-login-2026) .relay-header-inner,
body:has(.relay-login-2026) .relay-login-2026,
body:has(.relay-login-2026) .relay-footer-inner {
  width: min(calc(100% - 96px), 1720px) !important;
  max-width: 1720px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}


/* =========================================================
   HEADER
   ========================================================= */

body:has(.relay-login-2026) .relay-header {
  min-height: 88px !important;
}

body:has(.relay-login-2026) .relay-header-inner {
  min-height: 88px !important;
}


/* =========================================================
   MAIN LOGIN CANVAS
   ========================================================= */

body:has(.relay-login-2026) .relay-login-2026 {
  padding: 34px 0 28px !important;

  min-height: 0 !important;

  overflow: visible !important;
}


/* THREE-COLUMN COMPOSITION */

body:has(.relay-login-2026) .relay-login-stage {
  display: grid !important;

  grid-template-columns:
    minmax(560px, 1.25fr)
    minmax(350px, 0.72fr)
    430px !important;

  column-gap: 32px !important;

  align-items: start !important;

  min-height: 575px !important;
}


/* =========================================================
   LEFT HERO
   ========================================================= */

body:has(.relay-login-2026) .relay-login-hero {
  padding-top: 16px !important;
}


/* Keep approved hero proportions */

body:has(.relay-login-2026) .relay-login-title {
  font-size: clamp(72px, 5vw, 92px) !important;

  line-height: 0.93 !important;
}


/* =========================================================
   CENTRE GRAPHIC
   Smaller, higher, centred
   ========================================================= */

body:has(.relay-login-2026) .relay-login-visual {
  position: relative !important;

  width: 100% !important;
  height: 530px !important;

  margin-top: -2px !important;

  align-self: start !important;

  overflow: visible !important;
}


/* THE NETWORK */

body:has(.relay-login-2026) .relay-login-network {
  position: absolute !important;

  top: 4px !important;
  left: 50% !important;

  width: 350px !important;
  height: 468px !important;

  transform: translateX(-50%) !important;

  opacity: 0.82 !important;

  z-index: 2 !important;
}


/* =========================================================
   WATERMARK
   Large [ ] but integrated behind network
   ========================================================= */

body:has(.relay-login-2026) .relay-login-watermark {
  position: absolute !important;

  top: -14px !important;
  left: 50% !important;

  width: 390px !important;
  height: 500px !important;

  transform: translateX(-50%) !important;

  padding: 0 !important;

  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;

  z-index: 0 !important;

  pointer-events: none !important;
}


body:has(.relay-login-2026) .relay-login-watermark span {
  display: block !important;

  color: rgba(17, 17, 17, 0.025) !important;

  font-family: Arial, Helvetica, sans-serif !important;

  font-size: 390px !important;
  line-height: 1 !important;
  font-weight: 700 !important;

  transform: scaleX(0.72) !important;

  transform-origin: center top !important;
}


/* =========================================================
   LOGIN CARD
   Keep it aligned with the visual rather than dropping down
   ========================================================= */

body:has(.relay-login-2026) .relay-login-card {
  top: 0 !important;

  margin: 0 !important;

  align-self: start !important;

  transform: none !important;
}


/* =========================================================
   FOOTER — APPROVED MOCKUP
   ========================================================= */

body:has(.relay-login-2026) .relay-footer {
  width: 100% !important;

  min-height: 94px !important;

  background: #111111 !important;

  border-top: 0 !important;
  border-bottom: 3px solid var(--relay-mint) !important;

  color: #FFFFFF !important;
}


body:has(.relay-login-2026) .relay-footer-inner {
  min-height: 94px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 40px !important;
}


/* LEFT FOOTER GROUP */

body:has(.relay-login-2026) .relay-footer-left {
  display: flex !important;
  align-items: center !important;

  gap: 70px !important;

  min-width: 0;
}


/* FOOTER BRAND */

body:has(.relay-login-2026) .relay-footer-brand {
  display: inline-flex !important;
  align-items: center !important;

  gap: 10px !important;

  flex: 0 0 auto;

  color: #FFFFFF !important;
}


body:has(.relay-login-2026) .relay-footer-mark {
  color: #FFFFFF !important;

  font-size: 22px !important;
  font-weight: 700 !important;
}


body:has(.relay-login-2026) .relay-footer-wordmark {
  color: #FFFFFF !important;

  font-size: 13px !important;
  font-weight: 700 !important;

  letter-spacing: -0.02em;
}


body:has(.relay-login-2026) .relay-footer-wordmark span {
  color: var(--relay-mint) !important;
}


/* COPYRIGHT */

body:has(.relay-login-2026) .relay-footer-copyright {
  color: rgba(255, 255, 255, 0.68) !important;

  font-size: 12px !important;
  font-weight: 400 !important;

  white-space: nowrap;
}


/* FOOTER LINKS */

body:has(.relay-login-2026) .relay-footer-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  gap: 46px !important;

  flex: 0 0 auto;
}


body:has(.relay-login-2026) .relay-footer-links a {
  color: #FFFFFF !important;

  font-size: 12px !important;
  font-weight: 700 !important;

  text-decoration: none !important;

  white-space: nowrap;
}


body:has(.relay-login-2026) .relay-footer-links a:hover {
  color: var(--relay-mint) !important;
}


/* Remove old footer orange-dot treatment */

body:has(.relay-login-2026) .relay-footer-line {
  display: none !important;
}


/* =========================================================
   PAGE HEIGHT
   Footer sits directly beneath composition
   ========================================================= */

body:has(.relay-login-2026) #app {
  min-height: 100vh !important;
}


body:has(.relay-login-2026) .relay-main {
  min-height: 0 !important;

  flex: 1 0 auto !important;
}


/* =========================================================
   SHORTER DESKTOP SCREENS
   ========================================================= */

@media (min-width: 1051px) and (max-height: 820px) {

  body:has(.relay-login-2026) .relay-login-2026 {
    padding-top: 24px !important;
    padding-bottom: 18px !important;
  }


  body:has(.relay-login-2026) .relay-login-stage {
    min-height: 510px !important;
  }


  body:has(.relay-login-2026) .relay-login-title {
    font-size: 74px !important;
  }


  body:has(.relay-login-2026) .relay-login-rule {
    margin-top: 26px !important;
    margin-bottom: 22px !important;
  }


  body:has(.relay-login-2026) .relay-login-demo-wrap {
    margin-top: 30px !important;
  }


  body:has(.relay-login-2026) .relay-login-visual {
    height: 480px !important;
  }


  body:has(.relay-login-2026) .relay-login-network {
    width: 325px !important;
    height: 435px !important;
  }


  body:has(.relay-login-2026) .relay-login-watermark {
    width: 355px !important;
    height: 455px !important;
  }


  body:has(.relay-login-2026) .relay-login-watermark span {
    font-size: 355px !important;
  }


  body:has(.relay-login-2026) .relay-footer,
  body:has(.relay-login-2026) .relay-footer-inner {
    min-height: 82px !important;
  }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 1050px) {

  body:has(.relay-login-2026) .relay-header-inner,
  body:has(.relay-login-2026) .relay-login-2026,
  body:has(.relay-login-2026) .relay-footer-inner {
    width: min(calc(100% - 48px), 900px) !important;
  }


  body:has(.relay-login-2026) .relay-footer-left {
    gap: 24px !important;
  }


  body:has(.relay-login-2026) .relay-footer-links {
    gap: 20px !important;
  }

}


@media (max-width: 760px) {

  body:has(.relay-login-2026) .relay-header-inner,
  body:has(.relay-login-2026) .relay-login-2026,
  body:has(.relay-login-2026) .relay-footer-inner {
    width: calc(100% - 28px) !important;
  }


  body:has(.relay-login-2026) .relay-footer-inner {
    padding: 20px 0 !important;

    flex-direction: column !important;
    align-items: flex-start !important;

    gap: 18px !important;
  }


  body:has(.relay-login-2026) .relay-footer-left {
    flex-direction: column !important;
    align-items: flex-start !important;

    gap: 8px !important;
  }


  body:has(.relay-login-2026) .relay-footer-links {
    flex-wrap: wrap !important;

    justify-content: flex-start !important;

    gap: 18px !important;
  }

}

/* =========================================================
   RELAY STRATA — APPROVED LOGIN DESIGN
   FINAL ISOLATED LOGIN SYSTEM
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.relay-login-2026 {
  position: relative !important;

  width: min(calc(100% - 72px), 1560px) !important;
  max-width: 1560px !important;

  margin: 0 auto !important;

  padding: 48px 0 46px !important;

  overflow: visible !important;

  min-height: 690px !important;
}


/* KILL ALL PREVIOUS LOGIN PSEUDO WATERMARKS */

.relay-login-2026::before,
.relay-login-2026::after {
  content: none !important;
  display: none !important;
}


/* =========================================================
   THREE-COLUMN COMPOSITION
   ========================================================= */

.relay-login-2026 .relay-login-stage {
  position: relative;

  display: grid !important;

  grid-template-columns:
    minmax(510px, 1.15fr)
    minmax(360px, 0.78fr)
    430px !important;

  gap: 16px !important;

  align-items: start !important;

  width: 100%;

  min-height: 620px !important;
}


/* =========================================================
   LEFT HERO
   ========================================================= */

.relay-login-hero {
  position: relative;
  z-index: 5;

  padding-top: 8px;
}


.relay-login-title {
  margin: 0 !important;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(72px, 5.8vw, 96px) !important;

  line-height: 0.93 !important;

  letter-spacing: -0.065em !important;

  font-weight: 700 !important;
}


.relay-login-title > span {
  display: block;
}


.relay-login-title-black {
  color: #111111;
}


.relay-login-title-mint {
  margin-top: 12px;

  color: #A7DCC1;
}


.relay-login-title .heading-stop {
  color: #F28A30 !important;
}


/* MINT RULE */

.relay-login-rule {
  width: 62px;
  height: 5px;

  margin: 42px 0 34px;

  background: #A7DCC1;
}


/* SUB-BANNER */

.relay-login-statement {
  max-width: 660px;

  margin: 0 0 20px !important;

  color: #111111;

  font-size: 20px;
  line-height: 1.3;

  font-weight: 700;
  letter-spacing: -0.02em;
}


/* BODY COPY */

.relay-login-description {
  max-width: 650px;

  margin: 0 !important;

  color: #586477;

  font-size: 17px;
  line-height: 1.65;
}


/* =========================================================
   LIVE DEMO CTA
   ========================================================= */

.relay-login-demo-wrap {
  margin-top: 42px;
  max-width: 420px;
}


.relay-login-demo {
  min-width: 250px;
  min-height: 64px;

  padding: 0 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #A7DCC1 !important;

  border: 1.5px solid #111111 !important;
  border-radius: 7px !important;

  color: #111111 !important;

  font-size: 18px;
  font-weight: 700;

  text-decoration: none !important;

  box-shadow:
    6px 6px 0 #F28A30 !important;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}


.relay-login-demo:hover {
  transform: translate(1px, 1px);

  box-shadow:
    4px 4px 0 #F28A30 !important;
}


.relay-login-demo-note {
  margin: 16px 0 0;
  color: #F28A30;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   CENTRE GRAPHIC
   ========================================================= */

.relay-login-visual {
  position: relative;

  z-index: 1;

  width: 100%;
  height: 610px;

  margin-top: -10px;
}


/* =========================================================
   [ ] WATERMARK
   ========================================================= */

.relay-login-watermark {
  position: absolute;

  inset: 0;

  z-index: 0;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 0 5px;

  pointer-events: none;
  user-select: none;
}


.relay-login-watermark span {
  color: rgba(17, 17, 17, 0.028);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 470px;
  line-height: 0.95;
  font-weight: 700;

  transform: scaleX(0.82);
}


/* NETWORK */

.relay-login-network {
  position: absolute;

  top: 38px;
  left: 50%;

  z-index: 2;

  width: 420px;
  height: 560px;

  transform: translateX(-50%);

  overflow: visible;

  opacity: 0.9;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.relay-login-2026 .relay-login-card {
  position: relative !important;

  top: 0 !important;

  z-index: 10 !important;

  width: 100% !important;
  max-width: 430px !important;

  margin: 0 !important;

  padding: 36px 36px 34px !important;

  justify-self: end !important;
  align-self: start !important;

  transform: none !important;

  background: rgba(255, 255, 255, 0.95) !important;

  border:
    1px solid #E0E3E7 !important;

  border-radius:
    9px !important;

  box-shadow:
    0 8px 28px rgba(17, 17, 17, 0.09) !important;
}


.relay-login-label {
  margin: 0 0 10px !important;

  color: #78CBA5 !important;
}


/* LOGIN HEADING */

.relay-login-card h2 {
  margin: 0 0 28px !important;

  color: #111111;

  font-size: 29px !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em !important;

  font-weight: 700 !important;
}


/* =========================================================
   FORM
   ========================================================= */

.relay-login-card .relay-auth-form {
  gap: 20px !important;
}


.relay-login-card .relay-field {
  gap: 8px !important;
}


.relay-login-card .relay-field > span {
  color: #111111;

  font-size: 13px;
  font-weight: 700;
}


.relay-login-card .input {
  min-height: 54px !important;

  padding: 0 17px !important;

  background: #EEF4FD !important;

  border:
    1px solid #DCE4EF !important;

  border-radius:
    6px !important;

  box-shadow: none !important;

  color: #111111;

  font-size: 15px;
}


.relay-login-card .input:focus {
  background: #FFFFFF !important;

  border-color:
    #111111 !important;

  box-shadow:
    3px 3px 0 #A7DCC1 !important;
}


/* =========================================================
   LOG IN BUTTON
   ========================================================= */

.relay-login-submit {
  width: 100% !important;

  min-height: 58px !important;

  margin-top: 3px;

  background: #FFFFFF !important;

  border:
    1.5px solid #111111 !important;

  border-radius:
    6px !important;

  color: #111111 !important;

  font-size: 16px !important;
  font-weight: 700 !important;

  box-shadow:
    5px 5px 0 #F28A30 !important;
}


.relay-login-submit:hover {
  transform: translate(1px, 1px);

  box-shadow:
    3px 3px 0 #F28A30 !important;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.relay-login-card .relay-forgot-button {
  margin-top: 17px !important;

  padding: 0 !important;

  color: #F28A30 !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  text-decoration: none !important;
}


.relay-login-card .relay-forgot-button:hover {
  color: #111111 !important;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.relay-login-card .relay-auth-divider {
  margin: 29px 0 22px !important;
}


.relay-login-card .relay-auth-divider::before {
  background: #E2E5E9 !important;
}


.relay-login-card .relay-auth-divider span {
  color: #647084 !important;

  font-size: 12px !important;
  font-weight: 500 !important;
}


/* =========================================================
   CREATE ACCOUNT
   ========================================================= */

.relay-login-create {
  width: 100% !important;

  min-height: 54px !important;

  background: #FFFFFF !important;

  border:
    1px solid #B9BEC6 !important;

  border-radius:
    6px !important;

  color: #111111 !important;

  font-size: 15px !important;
  font-weight: 700 !important;

  box-shadow: none !important;
}


.relay-login-create:hover {
  border-color: #111111 !important;

  transform: none !important;
}


/* =========================================================
   REMOVE OLD LOGIN POSITIONING RULES
   ========================================================= */

.relay-login-2026
.relay-auth-card:has(#relayLoginForm) {
  position: relative !important;

  top: 0 !important;

  margin: 0 !important;

  transform: none !important;
}


.relay-login-2026
.relay-auth-layout {
  min-height: 0 !important;
}


/* =========================================================
   FOOTER / PAGE HEIGHT
   ========================================================= */

body:has(.relay-login-2026) #app {
  min-height: 100vh !important;
}


body:has(.relay-login-2026)
.relay-main {
  flex: 1 0 auto !important;

  min-height: 0 !important;
}


body:has(.relay-login-2026)
.relay-footer {
  flex-shrink: 0;

  min-height: 98px;

  background: #111111 !important;

  border-top:
    0 !important;

  border-bottom:
    3px solid #A7DCC1;
}


body:has(.relay-login-2026)
.relay-footer-inner {
  min-height: 98px !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1250px) {

  .relay-login-2026
  .relay-login-stage {
    grid-template-columns:
      minmax(480px, 1fr)
      300px
      400px !important;

    gap: 5px !important;
  }


  .relay-login-title {
    font-size:
      clamp(66px, 6vw, 82px) !important;
  }


  .relay-login-network {
    width: 370px;
  }


  .relay-login-watermark span {
    font-size: 410px;
  }

}


/* =========================================================
   SMALLER TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .relay-login-2026 {
    width:
      min(calc(100% - 48px), 900px) !important;
  }


  .relay-login-2026
  .relay-login-stage {
    grid-template-columns:
      1fr
      400px !important;

    gap: 42px !important;
  }


  .relay-login-visual {
    display: none;
  }


  .relay-login-title {
    font-size:
      64px !important;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .relay-login-2026 {
    width:
      min(calc(100% - 28px), 700px) !important;

    padding:
      34px 0 38px !important;

    min-height:
      0 !important;
  }


  .relay-login-2026
  .relay-login-stage {
    grid-template-columns:
      1fr !important;

    gap:
      44px !important;

    min-height:
      0 !important;
  }


  .relay-login-title {
    font-size:
      53px !important;
  }


  .relay-login-title-mint {
    margin-top:
      7px;
  }


  .relay-login-rule {
    margin:
      28px 0 25px;
  }


  .relay-login-statement {
    font-size:
      18px;
  }


  .relay-login-description {
    font-size:
      15px;
  }


  .relay-login-demo-wrap {
    margin-top:
      34px;
  }


  .relay-login-2026
  .relay-login-card {
    max-width:
      none !important;

    justify-self:
      stretch !important;
  }

}

/* =========================================================
   LOGIN — LARGER CENTRE GRAPHIC + WIDER WATERMARK
   ========================================================= */

body:has(.relay-login-2026) .relay-login-visual {
  height: 570px !important;
  overflow: visible !important;
}


/* WIDER [ ] */

body:has(.relay-login-2026) .relay-login-watermark {
  top: -2px !important;
  left: 50% !important;

  width: 620px !important;
  height: 570px !important;

  transform: translateX(-50%) !important;
}

body:has(.relay-login-2026) .relay-login-watermark span {
  font-size: 465px !important;
  line-height: 1 !important;

  transform: scaleX(0.90) !important;
}


/* LARGER NETWORK */

body:has(.relay-login-2026) .relay-login-network {
  top: 8px !important;
  left: 50% !important;

  width: 475px !important;
  height: 555px !important;

  transform: translateX(-50%) !important;

  opacity: 0.92 !important;
}


/* YOUR CURRENT DESKTOP WIDTH — DON'T SHRINK IT AGAIN */

@media (max-width: 1500px) {

  body:has(.relay-login-2026) .relay-login-watermark {
    width: 560px !important;
    height: 550px !important;
  }

  body:has(.relay-login-2026) .relay-login-watermark span {
    font-size: 435px !important;
    transform: scaleX(0.88) !important;
  }

  body:has(.relay-login-2026) .relay-login-network {
    width: 445px !important;
    height: 525px !important;
  }

}

/* =========================================================
   LOGIN — CENTRE GRAPHIC BALANCED SIZE
   ========================================================= */

body:has(.relay-login-2026) .relay-login-visual {
  height: 535px !important;
}


/* WATERMARK — WIDE BUT RESTRAINED */

body:has(.relay-login-2026) .relay-login-watermark {
  top: 2px !important;
  left: 50% !important;

  width: 520px !important;
  height: 535px !important;

  transform: translateX(-50%) !important;
}

body:has(.relay-login-2026) .relay-login-watermark span {
  font-size: 405px !important;
  line-height: 1 !important;

  transform: scaleX(0.82) !important;
}


/* NETWORK — LARGER THAN ORIGINAL, SMALLER THAN NOW */

body:has(.relay-login-2026) .relay-login-network {
  top: 18px !important;
  left: 50% !important;

  width: 405px !important;
  height: 480px !important;

  transform: translateX(-50%) !important;

  opacity: 0.9 !important;
}

/* CENTRE VISUAL — SHIFT LEFT */

body:has(.relay-login-2026) .relay-login-visual {
  transform: translateX(-35px) !important;
}

/* WATERMARK — SLIGHTLY TALLER */

body:has(.relay-login-2026) .relay-login-watermark {
  height: 565px !important;
}

body:has(.relay-login-2026) .relay-login-watermark span {
  transform: scaleX(0.82) scaleY(1.08) !important;
  transform-origin: center top !important;
}

/* =========================================================
   RELAY STRATA — ACCOUNT WORKSPACE
   ========================================================= */


/* =========================================================
   PAGE + HEADING
   ========================================================= */

.relay-account-page {
  padding-top: 42px !important;
}

.relay-account-heading {
  max-width: 820px;
  margin: 24px 0 34px;
}

.relay-account-heading h1 {
  margin: 7px 0 12px;

  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.relay-account-heading p {
  max-width: 720px;
  margin: 0;

  color: var(--relay-muted);
  font-size: 16px;
  line-height: 1.55;
}


/* =========================================================
   PROFILE + ORGANISATION SUMMARY
   ========================================================= */

.relay-account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin-bottom: 42px;
}

.relay-account-summary {
  min-height: 190px;
  padding: 26px 28px;

  background: #ffffff;
  border: 1px solid var(--relay-line);
  border-radius: 8px;
}

.relay-account-summary h3 {
  margin: 7px 0 14px;

  font-size: 22px;
  line-height: 1.15;
}

.relay-account-summary p {
  margin: 7px 0;

  color: var(--relay-muted);
  font-size: 14px;
}

.relay-account-summary-footer {
  margin-top: 24px;
  padding-top: 18px;

  border-top: 1px solid var(--relay-line);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.relay-account-summary-footer .risk-meta-label {
  margin: 0;
}

.relay-account-summary-footer strong {
  font-size: 14px;
}


/* =========================================================
   ACCOUNT SECTIONS
   ========================================================= */

.relay-account-section {
  margin-top: 38px;
  padding-top: 36px;

  border-top: 1px solid var(--relay-line);
}

.relay-account-section > .risk-section-heading {
  margin-bottom: 24px;
}

.relay-account-section .risk-section-heading h2 {
  margin: 6px 0 10px;

  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.relay-account-section .risk-section-heading p {
  max-width: 760px;

  color: var(--relay-muted);
  font-size: 14px;
}


/* =========================================================
   BRANDING — TWO COLUMN WORKSPACE
   ========================================================= */

.relay-branding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 36px;

  align-items: start;
}


/* =========================================================
   BRAND CONTROLS
   ========================================================= */

.relay-branding-controls {
  padding: 28px;

  background: #ffffff;
  border: 1px solid var(--relay-line);
  border-radius: 8px;
}

.relay-branding-controls .relay-auth-form {
  gap: 20px !important;
}

.relay-branding-controls .relay-field > span {
  font-size: 12px;
  font-weight: 700;
}

.relay-branding-controls .input {
  min-height: 48px;
}

.relay-brand-logo-input {
  padding: 10px 12px !important;
}


/* COLOURS */

.relay-brand-colour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.relay-brand-colour {
  width: 100%;
  height: 48px;

  padding: 4px;

  background: #ffffff;

  border: 1px solid var(--relay-line);
  border-radius: 6px;

  cursor: pointer;
}


/* =========================================================
   BRAND PREVIEW
   ========================================================= */

.relay-brand-preview {
  position: sticky;
  top: 24px;

  overflow: hidden;

  min-height: 410px;

  background: #ffffff;

  border: 1px solid var(--relay-line);
  border-radius: 9px;

  box-shadow:
    0 12px 32px rgba(17, 17, 17, 0.06);

  font-family:
    var(--brand-body-font),
    Arial,
    sans-serif;
}

.relay-brand-preview::before {
  content: "[ ]";

  position: absolute;
  right: 24px;
  top: 58px;

  color: rgba(17, 17, 17, 0.025);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 175px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.13em;

  pointer-events: none;
}

.relay-brand-preview-top {
  position: relative;
  z-index: 2;

  min-height: 74px;
  padding: 18px 22px;

  display: flex;
  align-items: center;
  gap: 14px;

  border-bottom: 1px solid var(--relay-line);
}

.relay-brand-preview-logo {
  width: 44px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  color: var(--brand-primary);

  font-size: 22px;
  font-weight: 700;
}

.relay-brand-preview-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.relay-brand-preview-top strong {
  color: var(--brand-primary);

  font-family:
    var(--brand-heading-font),
    Arial,
    sans-serif;

  font-size: 17px;
}

.relay-brand-preview-content {
  position: relative;
  z-index: 2;

  padding: 34px 28px 28px;
}

.relay-brand-preview-content > span {
  color: var(--brand-secondary);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.relay-brand-preview-content h3 {
  max-width: 320px;

  margin: 10px 0 14px;

  color: var(--brand-primary);

  font-family:
    var(--brand-heading-font),
    Arial,
    sans-serif;

  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.relay-brand-preview-content p {
  max-width: 330px;

  margin: 0 0 26px;

  color: #667085;

  font-size: 13px;
  line-height: 1.55;
}

.relay-brand-preview-content button {
  min-height: 46px;
  padding: 0 20px;

  background: #ffffff;

  border: 1px solid var(--brand-primary);
  border-radius: 6px;

  color: var(--brand-primary);

  font-weight: 700;

  box-shadow:
    4px 4px 0 var(--brand-accent);
}

.relay-brand-preview-powered {
  position: absolute;
  left: 28px;
  bottom: 20px;

  color: #98A2B3;

  font-size: 10px;
  font-weight: 700;
}


/* =========================================================
   YOUR TEAM
   ========================================================= */

.relay-members-list {
  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--relay-line);
  border-radius: 8px;
}

.relay-member-row {
  min-height: 72px;
  padding: 16px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  border-bottom: 1px solid var(--relay-line);
}

.relay-member-row:last-child {
  border-bottom: 0;
}

.relay-member-row > div {
  min-width: 0;
}

.relay-member-row strong {
  color: var(--relay-black);

  font-size: 14px;
}

.relay-member-id {
  display: block;

  margin-top: 5px;

  color: var(--relay-muted);
  font-size: 12px;
}


/* =========================================================
   STAKEHOLDER REGISTER
   ========================================================= */

.relay-account-stakeholders {
  width: 100%;
}

.relay-stakeholder-table {
  width: 100%;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--relay-line);
  border-radius: 8px;
}


/* HEADER */

.relay-stakeholder-header,
.relay-stakeholder-row {
  display: grid;

  grid-template-columns:
    minmax(190px, 1.15fr)
    minmax(180px, 1fr)
    minmax(130px, 0.75fr)
    minmax(220px, 1.25fr)
    minmax(150px, 0.85fr);

  gap: 22px;

  align-items: center;
}

.relay-stakeholder-header {
  min-height: 44px;
  padding: 0 20px;

  background: #F8F9FA;

  border-bottom: 1px solid var(--relay-black);

  color: var(--relay-muted);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}


/* ROW */

.relay-stakeholder-row {
  min-height: 76px;
  padding: 14px 20px;

  border-bottom: 1px solid var(--relay-line);

  font-size: 13px;
}

.relay-stakeholder-row:last-child {
  border-bottom: 0;
}

.relay-stakeholder-row:hover {
  background: rgba(167, 220, 193, 0.06);
}

.relay-stakeholder-row > div {
  min-width: 0;

  color: #475467;
}

.relay-stakeholder-row strong {
  display: block;

  color: var(--relay-black);

  font-size: 13px;
  line-height: 1.35;
}

.relay-stakeholder-row span:not(.status-pill) {
  display: block;

  margin-top: 4px;

  color: var(--relay-muted);
  font-size: 11px;
}

.relay-stakeholder-row .status-pill {
  margin-top: 7px;
}


/* =========================================================
   BUTTONS ON ACCOUNT PAGE
   ========================================================= */

.relay-account-page .button-primary {
  min-height: 48px;
}

#relaySaveBrandingButton {
  margin-top: 3px;
}

#relayInviteMemberButton {
  flex: 0 0 auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .relay-branding-layout {
    grid-template-columns: 1fr;
  }

  .relay-brand-preview {
    position: relative;
    top: auto;
  }

  .relay-stakeholder-table {
    overflow-x: auto;
  }

  .relay-stakeholder-header,
  .relay-stakeholder-row {
    min-width: 1000px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .relay-account-heading h1 {
    font-size: 42px;
  }

  .relay-account-summary-grid {
    grid-template-columns: 1fr;
  }

  .relay-account-summary {
    min-height: auto;
  }

  .relay-branding-controls {
    padding: 22px;
  }

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

  .relay-account-section .risk-section-heading {
    flex-direction: column;
  }

  #relayInviteMemberButton {
    width: 100%;
  }

}

/* =========================================================
   RELAY FOOTER — FINAL FIX
   ========================================================= */

.relay-footer {
  width: 100% !important;
  min-height: 82px !important;

  background: #111111 !important;
  border-top: 0 !important;
  border-bottom: 3px solid #A7DCC1 !important;

  color: #ffffff !important;
}

.relay-footer-inner {
  width: min(calc(100% - 96px), 1500px) !important;
  min-height: 82px !important;

  margin: 0 auto !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 40px !important;
}


/* LEFT SIDE */

.relay-footer-left {
  display: flex !important;
  align-items: center !important;

  gap: 42px !important;
}

.relay-footer-brand {
  display: inline-flex !important;
  align-items: center !important;

  gap: 10px !important;

  white-space: nowrap !important;
}

.relay-footer-mark {
  display: inline-block !important;

  color: #ffffff !important;

  font-size: 20px !important;
  font-weight: 700 !important;
}

.relay-footer-wordmark {
  display: inline-block !important;

  color: #ffffff !important;

  font-size: 13px !important;
  font-weight: 700 !important;

  letter-spacing: -0.01em !important;
}

.relay-footer-wordmark span {
  color: #A7DCC1 !important;
}

.relay-footer-copyright {
  display: block !important;

  color: rgba(255,255,255,0.58) !important;

  font-size: 11px !important;
  font-weight: 400 !important;

  white-space: nowrap !important;
}


/* RIGHT SIDE */

.relay-footer-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  gap: 0 !important;
}

.relay-footer-links a {
  position: relative !important;

  display: inline-block !important;

  padding: 0 18px !important;

  color: rgba(255,255,255,0.78) !important;

  font-size: 11px !important;
  font-weight: 600 !important;

  text-decoration: none !important;

  white-space: nowrap !important;
}

.relay-footer-links a:first-child {
  padding-left: 0 !important;
}

.relay-footer-links a:last-child {
  padding-right: 0 !important;
}

.relay-footer-links a + a::before {
  content: "|" !important;

  position: absolute !important;
  left: 0 !important;

  color: rgba(255,255,255,0.25) !important;
}

.relay-footer-links a:hover {
  color: #A7DCC1 !important;
}


/* KILL ANY OLD FOOTER STYLES */

.relay-footer a:visited {
  color: rgba(255,255,255,0.78) !important;
}

.relay-footer-line {
  display: none !important;
}


/* MOBILE */

@media (max-width: 760px) {

  .relay-footer-inner {
    width: calc(100% - 32px) !important;

    padding: 20px 0 !important;

    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .relay-footer-left {
    flex-direction: column !important;
    align-items: flex-start !important;

    gap: 6px !important;
  }

  .relay-footer-links {
    flex-wrap: wrap !important;
  }

}

/* =========================================================
   CONNECTED STAKEHOLDERS — LOCK SIX-COLUMN TABLE
   ========================================================= */

.relay-stakeholder-header,
.relay-stakeholder-row {
  display: grid !important;

  grid-template-columns:
    1.2fr
    1fr
    0.85fr
    1.3fr
    0.85fr
    90px !important;

  grid-template-areas:
    "person organisation stakeholder properties status action" !important;

  gap: 22px !important;
  align-items: center !important;

  width: 100% !important;
}


/* HEADER POSITIONS */

.relay-stakeholder-header > div:nth-child(1) {
  grid-area: person !important;
}

.relay-stakeholder-header > div:nth-child(2) {
  grid-area: organisation !important;
}

.relay-stakeholder-header > div:nth-child(3) {
  grid-area: stakeholder !important;
}

.relay-stakeholder-header > div:nth-child(4) {
  grid-area: properties !important;
}

.relay-stakeholder-header > div:nth-child(5) {
  grid-area: status !important;
}

.relay-stakeholder-header > div:nth-child(6) {
  grid-area: action !important;
  text-align: right !important;
}


/* ROW POSITIONS */

.relay-stakeholder-row > div:nth-child(1) {
  grid-area: person !important;
}

.relay-stakeholder-row > div:nth-child(2) {
  grid-area: organisation !important;
}

.relay-stakeholder-row > div:nth-child(3) {
  grid-area: stakeholder !important;
}

.relay-stakeholder-row > div:nth-child(4) {
  grid-area: properties !important;
}

.relay-stakeholder-row > div:nth-child(5) {
  grid-area: status !important;
}

.relay-stakeholder-row > div:nth-child(6) {
  grid-area: action !important;
  justify-self: end !important;
}


/* MANAGE BUTTON */

.relay-stakeholder-action .button-text {
  margin: 0 !important;
  padding: 0 !important;

  color: var(--relay-orange) !important;
  font-weight: 700 !important;
}

/* =========================================================
   YOUR TEAM — MATCH STAKEHOLDER TABLE
   ========================================================= */

.relay-members-list {
  overflow: hidden !important;

  background: #ffffff !important;
  border: 1px solid var(--relay-line) !important;
  border-radius: 8px !important;
}


/* HEADER */

.relay-members-header,
.relay-member-row {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    180px
    100px !important;

  gap: 24px !important;

  align-items: center !important;
}


.relay-members-header {
  min-height: 48px !important;

  padding: 0 22px !important;

  background: #F8F9FA !important;

  border-bottom: 1px solid #111111 !important;

  color: var(--relay-muted) !important;

  font-size: 10px !important;
  font-weight: 700 !important;

  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}


/* ROW */

.relay-member-row {
  min-height: 76px !important;

  padding: 14px 22px !important;

  border-bottom: 1px solid var(--relay-line) !important;
}

.relay-member-row:last-child {
  border-bottom: 0 !important;
}


/* COLUMNS */

.relay-member-role {
  justify-self: start !important;
}

.relay-member-action {
  justify-self: end !important;
  text-align: right !important;
}

/* =========================================================
   ACCOUNT — RENEWAL REMINDERS
   ========================================================= */

.relay-renewal-settings-section {
  margin-top: 38px;
  padding: 28px 30px;

  background: #FFFFFF;
  border: 1px solid var(--relay-line);
  border-radius: var(--relay-radius-large);
}


.relay-renewal-settings-section > .risk-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 22px;
}


.relay-renewal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  flex: 0 0 auto;

  padding: 8px 12px;

  border: 1px solid var(--relay-line);
  border-radius: 999px;

  color: var(--relay-black);
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}


.relay-renewal-toggle input {
  position: relative;

  width: 38px;
  height: 22px;
  margin: 0;

  appearance: none;
  -webkit-appearance: none;

  background: #D1D5DB;
  border: 0;
  border-radius: 999px;

  cursor: pointer;

  transition: background 150ms ease;
}


.relay-renewal-toggle input::before {
  content: "";

  position: absolute;
  top: 3px;
  left: 3px;

  width: 16px;
  height: 16px;

  background: #FFFFFF;
  border-radius: 50%;

  transition: transform 150ms ease;
}


.relay-renewal-toggle input:checked {
  background: var(--relay-mint);
}


.relay-renewal-toggle input:checked::before {
  transform: translateX(16px);
}


.relay-renewal-toggle input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


.relay-renewal-setting-row {
  margin-bottom: 24px;
}


.relay-renewal-days-control {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 8px;

  color: var(--relay-black);
  font-weight: 700;
}


.relay-renewal-days-control .input {
  width: 90px;
  min-height: 48px;

  text-align: center;
  font-size: 18px;
  font-weight: 700;
}


.relay-renewal-setting-note {
  max-width: 680px;
  margin: 14px 0 0;

  color: var(--relay-muted);
  font-size: 13px;
  line-height: 1.5;
}


@media (max-width: 700px) {

  .relay-renewal-settings-section {
    padding: 24px 20px;
  }


  .relay-renewal-settings-section > .risk-section-heading {
    flex-direction: column;
  }


  .relay-renewal-days-control {
    flex-wrap: wrap;
  }

}

/* =========================================================
   ACCOUNT — TEAM TABLE ALIGNMENT
   ========================================================= */

.relay-members-header,
.relay-member-row {
  display: grid !important;

  grid-template-columns:
    minmax(180px, 1.4fr)
    minmax(220px, 1.2fr)
    minmax(120px, 0.7fr)
    minmax(120px, 0.7fr)
    minmax(100px, 0.6fr)
    90px !important;

  gap: 22px !important;
  align-items: center !important;
}


.relay-members-header {
  min-height: 48px !important;
  padding: 0 22px !important;
}


.relay-member-row {
  min-height: 72px !important;
  padding: 16px 22px !important;
}


.relay-member-action {
  text-align: right;
}


@media (max-width: 900px) {

  .relay-members-header {
    display: none !important;
  }


  .relay-member-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }


  .relay-member-action {
    text-align: left;
  }

}

/* =========================================================
   ACCOUNT — STAKEHOLDER TABLE FONT ALIGNMENT
   ========================================================= */

.relay-stakeholder-row {
  font-size: 14px;
}

.relay-stakeholder-row strong {
  font-size: 14px;
}

