:root {
  color-scheme: light;
  --bg: #eef4f0;
  --bg-accent: linear-gradient(160deg, #e8f2ec 0%, #f4f7fa 45%, #faf8f3 100%);
  --surface: #ffffff;
  --text: #1a2332;
  --text-body: #152033;
  --muted: #5c6b7a;
  --primary: #1b4332;
  --primary-light: #2d6a4f;
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.14);
  --primary-soft: rgba(27, 67, 50, 0.1);
  --success: #059669;
  --danger: #dc2626;
  --border: #d4e2da;
  --shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 67, 50, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --read-area-h-mobile: min(40vh, 280px);
  --read-area-h-tablet: min(52vh, 380px);
  --read-area-h-desktop: 450px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  background: var(--bg-accent);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 90%;
  max-width: none;
  margin: 0 auto;
  padding: 12px 0 32px;
}

@media (min-width: 1024px) {
  .wrap {
    width: 75%;
    padding: 24px 0 48px;
  }
}

/* ── Progress ── */
.progress-bar {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.progress-step {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  text-align: center;
  position: relative;
  border: none;
  background: transparent;
  cursor: default;
  font: inherit;
  color: var(--muted);
  transition: color 0.25s ease;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -1px;
  width: 2px;
  height: 24px;
  background: var(--border);
  transform: translateX(50%);
}

@media (min-width: 560px) {
  .progress-step {
    min-width: 0;
    padding: 14px 8px;
  }
}

.progress-step .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: #eef2f0;
  border: 2px solid var(--border);
  color: var(--muted);
  transition: all 0.3s ease;
}

.progress-step .step-label {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 64px;
}

@media (min-width: 480px) {
  .progress-step .step-label {
    font-size: 0.68rem;
    max-width: none;
  }
}

.progress-step.is-active {
  color: var(--primary);
}

.progress-step.is-active .step-dot {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.12);
}

.progress-step.is-complete {
  color: var(--primary-light);
}

.progress-step.is-complete .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.progress-step.is-clickable {
  cursor: pointer;
}

.progress-step:disabled {
  cursor: default;
  opacity: 0.65;
}

.progress-step:disabled:hover .step-dot {
  transform: none;
}

.progress-step.is-clickable:not(:disabled):hover .step-dot {
  transform: scale(1.06);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ── Agreement header (colorful branded banner + logo) ── */
.agreement-header-branded {
  padding: 0;
  overflow: hidden;
}

.agreement-header-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(120deg, #1b4332 0%, #2d6a4f 52%, #3d8b63 78%, #b45309 120%);
  color: #fff;
}

.agreement-header {
  padding: 18px 20px;
}

.agreement-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.agreement-logo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.agreement-logo-placeholder {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.agreement-header-copy {
  min-width: 0;
  flex: 1;
}

.agreement-company-name {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.agreement-page-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .agreement-page-title {
    font-size: 1.65rem;
  }
}

.agreement-ref {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.agreement-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 18px 20px 20px;
}

@media (min-width: 560px) {
  .agreement-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.summary-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.summary-item-wide {
  grid-column: 1 / -1;
}

.summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.summary-sub {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
  word-break: break-all;
}

.hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
}

@media (min-width: 560px) {
  .hero-card {
    padding: 28px 24px;
  }
}

.hero-card .muted {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hero-card .label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.hero-card h1 {
  color: #fff;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

@media (min-width: 560px) {
  .hero-card h1 {
    font-size: 1.75rem;
  }
}

.hero-card .price {
  color: var(--accent);
  font-size: 1.45rem;
}

/* Client details — larger, easy to read on mobile */
.client-details {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .client-details {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.detail-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.detail-item-wide {
  grid-column: 1 / -1;
}

.detail-value {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  word-break: break-word;
}

@media (min-width: 560px) {
  .detail-value {
    font-size: 1.2rem;
  }
}

.detail-sub {
  margin-top: 6px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.hero-card .detail-value.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

@media (min-width: 560px) {
  .hero-card .detail-value.price {
    font-size: 1.65rem;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid rgba(212, 160, 23, 0.35);
}

.hero-card .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

@media (min-width: 560px) {
  h1 {
    font-size: 1.65rem;
  }
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.price {
  font-size: 1.2rem;
  font-weight: 800;
}

/* ── Accordion ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-right: 6px solid #fbbf24;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.accordion-item.is-pending {
  border-right-color: #f59e0b;
  background: #fff;
}

.accordion-item.is-reviewed {
  border-right-color: #059669;
  background: #fff;
}

.accordion-item.is-open {
  box-shadow: var(--shadow-lg);
}

.accordion-item.is-reviewed.is-open {
  border-right-color: #059669;
}

.accordion-item.is-locked {
  opacity: 0.72;
  pointer-events: none;
}

.accordion-item.is-locked .accordion-header {
  cursor: not-allowed;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: rgba(251, 191, 36, 0.12);
}

.accordion-item.is-reviewed .accordion-header:hover {
  background: rgba(5, 150, 105, 0.12);
}

.accordion-item.is-open .accordion-header {
  background: rgba(251, 191, 36, 0.15);
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
}

.accordion-item.is-reviewed .accordion-header {
  background: rgba(5, 150, 105, 0.1);
}

.accordion-item.is-reviewed.is-open .accordion-header {
  background: rgba(5, 150, 105, 0.14);
  border-bottom-color: rgba(5, 150, 105, 0.25);
}

.accordion-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.accordion-item.is-pending .accordion-icon {
  background: #fef3c7;
  color: #d97706;
}

.accordion-item.is-reviewed .accordion-icon {
  background: var(--success);
  color: #fff;
}

.accordion-item.is-open .accordion-icon {
  background: #f59e0b;
  color: #fff;
}

.accordion-item.is-reviewed.is-open .accordion-icon {
  background: var(--success);
  color: #fff;
}

.accordion-icon svg {
  width: 20px;
  height: 20px;
}

.accordion-title-wrap {
  flex: 1;
  min-width: 0;
}

.accordion-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .accordion-title {
    font-size: 1.2rem;
  }
}

.accordion-item.is-pending .accordion-title {
  color: #b45309;
}

.accordion-item.is-reviewed .accordion-title {
  color: var(--success);
}

.accordion-item.is-open:not(.is-reviewed) .accordion-title {
  color: #b45309;
}

.accordion-status {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: #fbbf24;
  color: #fff;
  line-height: 1;
}

.accordion-status.is-complete {
  background: var(--success);
  color: #fff;
}

.accordion-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 2px 0 0;
}

.accordion-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
  padding: 0 8px 0 14px;
  box-sizing: border-box;
}

.accordion-body {
  width: 100%;
  padding: 16px 0 20px;
  font-size: 1rem;
  color: var(--text-body);
  background: #fff;
  max-height: var(--read-area-h-mobile);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.accordion-body p {
  white-space: pre-wrap;
  margin: 0 0 0.75em;
  width: 100%;
  max-width: none;
  line-height: inherit;
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

/* ── Legal content (formatted from HTML source) ── */
.legal-content .legal-subhead {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--primary);
  margin: 1.1em 0 0.45em;
}

.legal-content .legal-subhead:first-child {
  margin-top: 0;
}

.legal-content strong {
  font-weight: 700;
  color: var(--text-body);
}

.legal-content ul,
.legal-content ol {
  margin: 0.5em 0 0.85em;
  padding-left: 1.35em;
}

.legal-content li {
  margin-bottom: 0.35em;
}

.legal-content li strong {
  color: var(--primary);
}

.legal-callout {
  margin: 0.85em 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.65;
}

.legal-callout-note {
  background: #eef8ff;
  border-right: 5px solid var(--primary-light);
  border-left: none;
  color: var(--text-body);
}

.legal-callout-warning {
  background: #fef2f2;
  border-right: 5px solid #dc2626;
  border-left: none;
  color: #7f1d1d;
}

.legal-callout strong {
  color: inherit;
}

@media (min-width: 640px) {
  .accordion-body {
    padding: 20px 0 24px;
    font-size: 1.0625rem;
    line-height: 1.7;
    max-height: var(--read-area-h-tablet);
  }

  .accordion-body p {
    line-height: 1.75;
  }
}

@media (min-width: 1024px) {
  .accordion-body {
    padding: 24px 0 28px;
    font-size: 1.125rem;
    min-height: 400px;
    max-height: var(--read-area-h-desktop);
  }

  .accordion-body p {
    line-height: 1.8;
  }
}

.accordion-item.is-open .accordion-body {
  cursor: pointer;
}

.accordion-close-hint {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
}

.accordion-close-hint[hidden] {
  display: none;
}

/* ── Signature section (always open, same yellow/green accordion look) ── */
.sign-section.accordion-item {
  margin-top: 0;
}

.sign-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.sign-section.is-reviewed .sign-section-header {
  border-bottom-color: rgba(5, 150, 105, 0.25);
}

.sign-section-body {
  padding: 18px;
}

.sign-section.is-locked .sign-section-body {
  opacity: 0.65;
}

.sign-section.is-locked .sig-wrap,
.sign-section.is-locked input,
.sign-section.is-locked button,
.sign-section.is-locked .checkbox {
  pointer-events: none;
}

.sign-lock-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.sign-lock-notice[hidden] {
  display: none;
}

/* ── Signature form ── */
.sign-card .accordion-body {
  padding-top: 4px;
}

label.field {
  display: block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

input[type='text'] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type='text']:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.sig-wrap {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: #fafcfb;
  touch-action: none;
  transition: border-color 0.2s;
}

.sig-wrap:focus-within {
  border-color: var(--primary);
}

canvas {
  display: block;
  width: 100%;
  height: 160px;
}

@media (min-width: 560px) {
  canvas {
    height: 180px;
  }
}

.sig-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
  margin-top: 4px;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.32);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: #eef4f0;
  color: var(--primary);
  border: 1px solid var(--border);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  margin: 18px 0;
  padding: 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 160, 23, 0.25);
}

.checkbox input {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: var(--radius-sm);
}

.center {
  text-align: center;
  padding: 48px 16px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
}

.loading {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

#app.loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: 16px auto 0;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.accordion-hint {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #b91c1c;
  margin: 0 0 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: var(--radius-sm);
  border: 2px solid #ef4444;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.18);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .accordion-hint {
    font-size: 1.125rem;
    padding: 18px 24px;
  }
}

.accordion-hint.is-hidden {
  display: none;
}

/* ── Client contact footer ── */
.portal-footer {
  margin-top: 24px;
  padding: 20px 18px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portal-footer-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

/* Wrapping chip layout: phone / email / website / ABN each drop to the
   next line on small screens instead of overflowing the card. */
.portal-footer-contact {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.portal-footer-contact a,
.portal-footer-contact > span:not(.portal-footer-sep) {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: rgba(27, 67, 50, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

.portal-footer-contact a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

.portal-footer-contact a:hover {
  text-decoration: underline;
}

.portal-footer-contact > span:not(.portal-footer-sep) {
  color: var(--muted);
}

/* Chips replace the dot separators */
.portal-footer-sep {
  display: none;
}

.portal-footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.signing-party-card {
  margin-top: 20px;
  padding: 24px 20px;
}

.signing-party-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.signing-party-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.signing-party-options {
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .signing-party-options {
    grid-template-columns: 1fr 1fr;
  }
}

.signing-party-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 18px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.signing-party-option:hover,
.signing-party-option:focus-visible {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: none;
}

.signing-party-option-agent {
  border-color: rgba(27, 67, 50, 0.25);
  background: linear-gradient(180deg, rgba(27, 67, 50, 0.05) 0%, #fff 100%);
}

.signing-party-option-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.signing-party-option-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.signing-party-option-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
