/* Prime Mediation — brand system aligned to logo (royal blue #1A4789, serif + clean sans) */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --brand: #1a4789;
  --brand-hover: #153a73;
  --brand-light: #2d5cad;
  --brand-soft: rgba(26, 71, 137, 0.14);
  --brand-glow: rgba(26, 71, 137, 0.22);
  --bg-deep: #0a1524;
  --bg-mid: #101f35;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-solid: #ffffff;
  --text: #e8eef7;
  --text-dark: #0f172a;
  --muted: #94a3b8;
  --muted-dark: #64748b;
  --blue: #3b82f6;
  --blue-deep: var(--brand);
  --cyan: #7eb8e8;
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(26, 71, 137, 0.35);
  --radius: 1rem;
  --radius-sm: 0.6rem;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --shadow-soft: 0 12px 40px rgba(15, 23, 42, 0.12);
  --max: 1120px;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  min-height: 100vh;
}

/* Light page variant (home, privacy, legal) */
body.site-light {
  color: var(--text-dark);
  background:
    radial-gradient(1000px 520px at 12% -8%, var(--brand-soft), transparent 52%),
    radial-gradient(800px 480px at 92% 5%, rgba(26, 71, 137, 0.08), transparent 48%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 45%, #f4f6f8 100%);
}

body.site-light .site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

body.site-light .brand {
  color: var(--text-dark);
}

body.site-light .nav a {
  color: var(--text-dark);
}

body.site-light .nav a:hover {
  color: var(--brand);
}

body.site-light .nav a.btn-primary,
body.site-light .nav a.btn-primary:hover,
body.site-light .nav a.btn-primary:focus {
  color: #ffffff;
  text-decoration: none;
}

/* Hero and other primary links: body.site-light a { color: brand } would otherwise win over .btn-primary */
body.site-light a.btn-primary,
body.site-light a.btn-primary:hover,
body.site-light a.btn-primary:focus {
  color: #ffffff;
  text-decoration: none;
}

body.site-light .site-footer {
  background: linear-gradient(180deg, #fafbfc 0%, #0e1a2e 72%, #0a1524 100%);
  color: #cbd5e1;
  border-top: none;
}

body.site-light .site-footer a {
  color: #93c5fd;
}

body.site-light .section-panel,
body.site-light .card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

body.site-light .lead {
  color: var(--muted-dark);
}

body.site-light .small-note {
  color: var(--muted-dark);
}

body.site-light .quote {
  color: var(--text-dark);
  border-left-color: var(--brand);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

body.site-light a {
  color: var(--brand);
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.75);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  font-family: var(--font-display);
  color: var(--text);
}

.brand img {
  height: clamp(52px, 9vw, 72px);
  width: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(232, 238, 247, 0.92);
}

.nav a:hover {
  color: #bfdbfe;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--brand-glow);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(26, 71, 137, 0.4);
  color: #ffffff;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

body.site-light .btn-secondary {
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

body.site-light .btn-secondary:hover {
  background: #f8fafc;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

/* Hero (home) */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 1.25rem;
  background: radial-gradient(circle at 30% 30%, var(--brand-soft), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(26, 71, 137, 0.12), transparent 50%);
  z-index: -1;
}

.hero-media img {
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Home: split-screen scheduling gate */
.hero-gate {
  padding: 2.75rem 0 1.5rem;
  background:
    linear-gradient(180deg, rgba(26, 71, 137, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26, 71, 137, 0.12), transparent 60%);
}

.hero-gate-inner {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-gate-copy {
  margin-bottom: 2rem;
  text-align: center;
}

.hero-gate-note {
  margin: 0.75rem 0 0;
  color: var(--muted-dark);
}

.hero-gate-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 22px 56px rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.hero-gate-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.85rem 1.5rem;
  min-height: 11.5rem;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  position: relative;
}

.hero-gate-panel:hover {
  transform: translateY(-4px);
  filter: brightness(1.04);
  z-index: 1;
}

.hero-gate-panel:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
  z-index: 2;
}

.hero-gate-panel--primary {
  background: linear-gradient(155deg, #153a72 0%, #1a4789 28%, #2563eb 62%, #1d4ed8 100%);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-gate-panel--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 48px rgba(26, 71, 137, 0.45);
}

.hero-gate-panel--join {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 45%, #334155 100%);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-gate-panel--join:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 48px rgba(15, 23, 42, 0.5);
}

.hero-gate-panel-title {
  font-family: var(--font-heading, Georgia, "Times New Roman", serif);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
}

.hero-gate-panel--primary .hero-gate-panel-title,
.hero-gate-panel--join .hero-gate-panel-title {
  color: #fff;
}

.hero-gate-panel-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 17rem;
  flex: 0;
  color: inherit;
  opacity: 0.92;
}

.hero-gate-panel--primary .hero-gate-panel-desc,
.hero-gate-panel--join .hero-gate-panel-desc {
  color: rgba(248, 250, 252, 0.9);
  opacity: 1;
}

.hero-gate-panel-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.25rem;
  color: inherit;
  opacity: 0.95;
}

.hero-gate-panel--primary .hero-gate-panel-arrow,
.hero-gate-panel--join .hero-gate-panel-arrow {
  color: #fff;
}

.hero-gate-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 2.75rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}

.hero-gate-rail-line {
  width: 1px;
  flex: 1;
  min-height: 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(26, 71, 137, 0.35), transparent);
}

.hero-gate-rail-or {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.hero-gate-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted-dark);
}

.hero-illustration {
  padding: 0 0 2.5rem;
}

.hero-illustration .hero-media {
  max-width: 42rem;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .hero-gate-split {
    grid-template-columns: 1fr;
  }

  .hero-gate-rail {
    flex-direction: row;
    width: 100%;
    min-height: 2.5rem;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .hero-gate-rail-line {
    width: auto;
    height: 1px;
    flex: 1;
    min-height: 0;
    min-width: 1.25rem;
    background: linear-gradient(90deg, transparent, rgba(26, 71, 137, 0.35), transparent);
  }
}

/* Home page: center main copy (header nav unchanged) */
body.home-page main {
  text-align: center;
}

body.home-page .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.home-page .section-panel {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
  text-align: center;
}

body.home-page .card-grid {
  text-align: center;
}

body.home-page .blog-teaser .hero-cta {
  justify-content: center;
}

body.home-page .quote {
  border-left: none;
  padding-left: 0;
  padding-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
  border-top: 3px solid var(--brand);
  text-align: center;
}

body.home-page .contact-grid {
  grid-template-columns: 1fr;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

body.home-page .contact-grid .section-panel {
  max-width: none;
}

body.home-page #consultation-form {
  text-align: center;
}

body.home-page #consultation-form input,
body.home-page #consultation-form textarea,
body.home-page #consultation-form select {
  text-align: left;
}

body.home-page .site-footer .container {
  text-align: center;
}

body.home-page .hero-illustration .hero-media {
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
section {
  padding: 2rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

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

.card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  opacity: 0.9;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.98rem;
}

.section-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.quote {
  border-left: 4px solid var(--brand);
  padding-left: 1.25rem;
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(26, 71, 137, 0.45);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea {
  min-height: 130px;
}

.form-success {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #166534;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  color: var(--muted);
}

body.site-light .site-footer .container {
  color: #94a3b8;
}

.site-footer a {
  color: #bfdbfe;
}

.small-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bookings page (dark immersive) */
body.site-bookings {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(26, 71, 137, 0.45), transparent 55%),
    radial-gradient(700px 380px at 85% 0%, rgba(26, 71, 137, 0.18), transparent 50%),
    linear-gradient(180deg, #070f18 0%, #0c1a2e 45%, #070f18 100%);
}

body.site-bookings .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(26, 71, 137, 0.12);
  backdrop-filter: blur(14px);
}

body.site-bookings .brand {
  color: var(--text-dark);
}

body.site-bookings .nav a {
  color: var(--text-dark);
}

body.site-bookings .nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

body.site-bookings .nav-toggle {
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
}

.bookings-page {
  padding-bottom: 3rem;
}

.scheduling-entry {
  min-height: min(76vh, 48rem);
  display: grid;
  gap: 1.15rem;
  align-content: center;
  padding: 0.4rem 0 1.6rem;
}

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

.scheduling-entry-card {
  position: relative;
  min-height: clamp(25rem, 54vh, 34rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.85rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7)),
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 22px);
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.35);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.scheduling-entry-card::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto auto;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  filter: blur(8px);
  pointer-events: none;
}

.scheduling-entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(125, 211, 252, 0.1) 49%, transparent 56%),
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.28));
}

.scheduling-entry-card--gold {
  border-color: rgba(251, 191, 36, 0.34);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(46, 34, 10, 0.62)),
    repeating-linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0 1px, transparent 1px 22px);
}

.scheduling-entry-card--gold::before {
  background: rgba(251, 191, 36, 0.16);
}

.scheduling-entry-card:hover,
.scheduling-entry-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(191, 219, 254, 0.66);
  box-shadow: 0 28px 82px rgba(2, 6, 23, 0.46);
  outline: none;
}

.scheduling-entry-card--gold:hover,
.scheduling-entry-card--gold:focus-visible {
  border-color: rgba(251, 191, 36, 0.72);
}

.scheduling-entry-card > span {
  position: relative;
  z-index: 1;
}

.scheduling-entry-index {
  position: absolute !important;
  top: 1.2rem;
  left: 1.2rem;
  color: rgba(191, 219, 254, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.scheduling-entry-title {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.8vw, 4.15rem);
  font-weight: 700;
  line-height: 0.98;
  color: #ffffff;
}

.scheduling-entry-copy {
  max-width: 31rem;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.96rem;
  line-height: 1.55;
}

.scheduling-entry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  margin-top: 0.3rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.scheduling-entry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.92rem;
}

.scheduling-entry-links a {
  color: rgba(226, 232, 240, 0.88);
  font-weight: 700;
  text-decoration: none;
}

.scheduling-entry-links a:hover,
.scheduling-entry-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 820px) {
  .scheduling-entry {
    min-height: auto;
    padding-top: 0.5rem;
  }

  .scheduling-entry-grid {
    grid-template-columns: 1fr;
  }

  .scheduling-entry-card {
    min-height: 15rem;
  }
}

.bookings-code-sample {
  color: #bfdbfe;
  font-size: 0.9em;
}

.bookings-hero {
  margin: 1.25rem -1rem 1.75rem;
  border-radius: 1.25rem;
  padding: 2.25rem 1.5rem;
  background:
    radial-gradient(800px 220px at 20% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(600px 260px at 80% 25%, rgba(26, 71, 137, 0.5), transparent 60%),
    linear-gradient(135deg, #1a4789 0%, #153a73 48%, #1e4a8f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.bookings-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
}

.bookings-hero h1 {
  font-family: var(--font-display);
}

.lead-strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.12rem;
}

.bookings-hero-meta {
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.85rem;
}

.bookings-hero-side {
  display: grid;
  gap: 0.6rem;
  justify-content: end;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.9rem;
}

.tech-badge-gold {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.tech-badge-blue {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(191, 219, 254, 0.35);
}

.tech-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.1rem;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(12px);
}

.tech-panel h2,
.tech-panel h3 {
  color: #fff;
}

.tech-panel .small-note {
  color: rgba(203, 213, 225, 0.95);
}

.tech-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tech-panel-header.tech-panel-header--thank-you {
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tech-panel-header.tech-panel-header--thank-you .tech-pill {
  display: none !important;
}

.tech-panel-header.tech-panel-header--thank-you h2 {
  font-size: clamp(1rem, 2.5vw, 1.32rem);
  line-height: 1.38;
  font-weight: 700;
  max-width: 42rem;
  margin: 0;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 71, 137, 0.35);
  color: #dbeafe;
  border: 1px solid rgba(191, 219, 254, 0.3);
  font-weight: 700;
  font-size: 0.85rem;
}

.tech-pill-outline {
  background: transparent;
  color: #bfdbfe;
  border-color: rgba(191, 219, 254, 0.35);
}

.tech-panel-intake label,
.tech-panel-scheduling label {
  color: #e2e8f0;
}

.tech-panel-intake input,
.tech-panel-intake select,
.tech-panel-intake textarea,
.tech-panel-scheduling input,
.tech-panel-scheduling select {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}

.scheduling-messages {
  margin: 1rem 0;
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.scheduling-msg {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.scheduling-msg-user {
  align-self: flex-end;
  margin-left: 2rem;
  background: rgba(26, 71, 137, 0.45);
  border: 1px solid rgba(191, 219, 254, 0.35);
  color: #f8fafc;
}

.scheduling-msg-assistant {
  align-self: flex-start;
  margin-right: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.scheduling-msg-loading {
  opacity: 0.75;
  font-style: italic;
}

.scheduling-input-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 0.25rem;
}

.scheduling-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font: inherit;
}

.scheduling-complete {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(191, 219, 254, 0.35);
  background: rgba(26, 71, 137, 0.2);
}

.scheduling-complete--minimal {
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(145deg, rgba(26, 71, 137, 0.38), rgba(15, 23, 42, 0.42));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.scheduling-complete--at-top {
  margin-top: 0;
}

.mediation-cancellation-row {
  margin-top: 0.65rem;
}

.mediation-scheduled-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.bookings-minimal-finalized main.bookings-page {
  padding-top: 1rem;
  max-width: 42rem;
}

.scheduling-complete .small-note {
  color: rgba(226, 232, 240, 0.95);
}

.scheduling-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.mediation-zoom-details {
  margin-top: 0.85rem;
  color: rgba(226, 232, 240, 0.95);
}

.mediation-zoom-details details {
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.35);
}

.mediation-zoom-details summary {
  cursor: pointer;
  padding: 0.75rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #bfdbfe;
}

.mediation-zoom-details-body {
  padding: 0 0.95rem 0.85rem;
}

.mediation-zoom-details p {
  margin: 0.45rem 0;
}

.mediation-zoom-details p:first-child {
  margin-top: 0;
}

.mediation-zoom-details p:last-child {
  margin-bottom: 0;
}

.mediation-zoom-details a {
  color: #bfdbfe;
  overflow-wrap: anywhere;
}

.mediation-zoom-details dl {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.mediation-zoom-details dl div {
  display: grid;
  grid-template-columns: minmax(5.5rem, max-content) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
}

.mediation-zoom-details dt {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mediation-zoom-details dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.scheduling-summary-inline {
  display: block;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 500;
}

.tech-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.mediation-create-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.95);
}

.mediation-create-loading[hidden] {
  display: none !important;
}

.mediation-spinner {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-top-color: rgba(96, 165, 250, 0.95);
  border-radius: 50%;
  animation: mediation-spin 0.7s linear infinite;
}

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

.assistant-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: start;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(26, 71, 137, 0.35);
  border: 1px solid rgba(191, 219, 254, 0.3);
  color: #dbeafe;
}

.step-text {
  padding-top: 0.15rem;
  color: rgba(203, 213, 225, 0.95);
  font-weight: 600;
}

.zoom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.zoom-cards-single {
  grid-template-columns: 1fr;
  max-width: 36rem;
}

.zoom-card {
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

.zoom-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.zoom-card-alt {
  border-color: rgba(191, 219, 254, 0.28);
  background: rgba(26, 71, 137, 0.12);
}

.zoom-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

@media (max-width: 700px) {
  .zoom-cards {
    grid-template-columns: 1fr;
  }
}

.intake-form {
  display: grid;
  gap: 0.65rem;
}

.agent-result {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
}

.agent-result:empty {
  display: none;
}

.agent-result .btn-primary {
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .hero-inner,
  .card-grid,
  .contact-grid,
  .bookings-hero-inner,
  .assistant-grid {
    grid-template-columns: 1fr;
  }

  .bookings-hero {
    margin-inline: 0;
  }

  .bookings-hero-side {
    justify-content: start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 1rem;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    box-shadow: var(--shadow);
  }

  body.site-light .nav,
  body.site-bookings .nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.1);
  }

  body.site-bookings .nav a {
    color: var(--text-dark);
  }

  .nav.open {
    display: flex;
  }
}

/* Two-party mediation scheduler (bookings) */
.thread-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tech-panel-scheduling input,
.tech-panel-scheduling select,
.tech-panel-scheduling textarea {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}

.tech-panel-scheduling input[type="file"] {
  padding: 0.55rem 0.75rem;
}

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

.mediation-attachment-status--ok {
  color: #86efac !important;
}

.mediation-attachment-status--warn {
  color: #fde68a !important;
}

@media (max-width: 720px) {
  .mediation-intake-grid {
    grid-template-columns: 1fr;
  }
}

.thread-events {
  margin-top: 1.05rem;
  display: grid;
  gap: 0.85rem;
}

.mediation-chat-console .thread-events--chat {
  margin: 0.85rem 0 0;
  gap: 0.62rem;
}

.thread-events-header {
  color: rgba(226, 232, 240, 0.95);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.thread-events-header::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.34), transparent);
}

.thread-events--chat .thread-events-header {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.84);
}

.thread-events--chat .thread-events-header::after {
  display: none;
}

.thread-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.75rem;
}

.thread-codes-block code.thread-invite-code {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  font-size: 0.88rem;
  word-break: break-all;
  max-width: 100%;
}

.mediation-calendar-wrap {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
}

.mediation-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.9);
}

.mediation-cal-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.mediation-cal-swatch.yours {
  background: rgba(59, 130, 246, 0.55);
  border: 1px solid rgba(147, 197, 253, 0.5);
}

.mediation-cal-swatch.other {
  background: rgba(245, 158, 11, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.mediation-cal-swatch.both {
  background: rgba(34, 197, 94, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.mediation-cal-swatch.times {
  background: rgba(191, 219, 254, 0.48);
  border: 1px solid rgba(219, 234, 254, 0.62);
}

.mediation-calendar-summary {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.8rem;
}

.mediation-calendar-summary .small-note {
  margin: 0;
}

.mediation-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.mediation-cal-month-label {
  font-weight: 700;
  color: rgba(226, 232, 240, 0.98);
}

.mediation-cal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.mediation-cal-weekhead {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  min-width: 44rem;
}

.mediation-cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.95);
  padding: 0.25rem 0;
}

.mediation-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  min-width: 44rem;
}

.mediation-cal-day {
  min-height: 7rem;
  padding: 0.35rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
  color: #f1f5f9;
  font: inherit;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.mediation-cal-day:hover:not(.mediation-cal-day-muted) {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.45);
}

.mediation-cal-date-toggle {
  width: 100%;
  min-height: 1.65rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.mediation-cal-day:not(.mediation-cal-day-has-events) .mediation-cal-date-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mediation-cal-date-toggle:hover:not(:disabled),
.mediation-cal-date-toggle:focus-visible {
  background: rgba(191, 219, 254, 0.12);
  outline: none;
}

.mediation-cal-day-muted {
  opacity: 0.35;
}

.mediation-cal-day-muted .mediation-cal-date-toggle {
  cursor: not-allowed;
}

.mediation-cal-day-select-times-only .mediation-cal-date-toggle {
  cursor: default;
}

.mediation-cal-day-empty {
  visibility: hidden;
  pointer-events: none;
}

.mediation-cal-day-yours {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(96, 165, 250, 0.45);
}

.mediation-cal-day-other {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.4);
}

.mediation-cal-day-both {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(74, 222, 128, 0.55);
}

.mediation-cal-day-has-events {
  border-color: rgba(191, 219, 254, 0.42);
  background: rgba(15, 23, 42, 0.5);
}

.mediation-cal-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
}

.mediation-cal-event {
  width: 100%;
  min-height: 2.1rem;
  border: 1px solid rgba(191, 219, 254, 0.35);
  border-radius: 0.42rem;
  background: rgba(191, 219, 254, 0.12);
  color: #f8fafc;
  padding: 0.32rem 0.4rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mediation-cal-event:hover:not(:disabled),
.mediation-cal-event:focus-visible {
  border-color: rgba(219, 234, 254, 0.76);
  background: rgba(59, 130, 246, 0.28);
  outline: none;
}

.mediation-cal-event span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.18;
}

.mediation-cal-event small {
  display: block;
  margin-top: 0.12rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.68rem;
  line-height: 1.12;
}

.mediation-cal-event--you-picked {
  border-color: rgba(147, 197, 253, 0.82);
  background: rgba(59, 130, 246, 0.38);
}

.mediation-cal-event--other-picked {
  border-color: rgba(251, 191, 36, 0.72);
  background: rgba(245, 158, 11, 0.24);
}

.mediation-cal-event--both-picked {
  border-color: rgba(74, 222, 128, 0.82);
  background: rgba(34, 197, 94, 0.34);
}

.mediation-cal-event:disabled {
  cursor: default;
}

.mediation-calendar-confirmed .mediation-cal-weekhead,
.mediation-calendar-confirmed .mediation-cal-week {
  min-width: 0;
}

.mediation-calendar-confirmed .mediation-cal-day {
  min-height: 2.35rem;
  padding: 0;
}

.mediation-calendar-confirmed {
  padding-top: 0.25rem;
}

.mediation-confirmed-datetime {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.45;
}

.mediation-cal-nav-static {
  justify-content: center;
}

.mediation-cal-day-readonly {
  cursor: default;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  font-size: 0.85rem;
  aspect-ratio: 1;
  min-height: 2.35rem;
}

.mediation-cal-day-confirmed {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.5), rgba(26, 71, 137, 0.5));
  border: 2px solid rgba(74, 222, 128, 0.9);
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.2);
  font-weight: 700;
}

.mediation-cal-day-num {
  font-size: 1.05rem;
}

.mediation-cal-confirmed-check {
  font-size: 0.8rem;
  color: #bbf7d0;
  line-height: 1;
}

.mediation-confirmed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.mediation-calendar-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.85rem;
}

.mediation-case-title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.25;
}

.mediation-case-title--thread {
  margin-top: 1rem;
}

.mediation-zoom-launch {
  font-size: 1rem;
  padding: 0.85rem 1.35rem;
}

.mediation-zoom-embed-slot {
  margin-top: 1rem;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  min-height: 0;
}

.mediation-zoom-embed {
  width: 100%;
  min-height: 320px;
  border: none;
  display: block;
  background: #0f172a;
}

.mediation-assist-block,
.mediation-chat-inline {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.64)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 18px);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.08), 0 18px 48px rgba(2, 6, 23, 0.22);
}

.mediation-chat-inline {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
}

.mediation-chat-inline::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.08), transparent),
    linear-gradient(180deg, rgba(251, 191, 36, 0.08), transparent 42%);
  opacity: 0.85;
}

.mediation-chat-inline > * {
  position: relative;
  z-index: 1;
}

.mediation-chat-inline label {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
}

.mediation-chat-inline textarea {
  min-height: 6rem;
  border-color: rgba(125, 211, 252, 0.34);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(15, 23, 42, 0.32)),
    rgba(2, 6, 23, 0.24);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.06);
}

.mediation-chat-hint {
  margin: -0.25rem 0 0;
}

.mediation-chat-head {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.mediation-assist-block .thread-events-header,
.mediation-chat-inline .thread-events-header {
  margin-bottom: 0.15rem;
  letter-spacing: 0.01em;
}

.mediation-assist-hint {
  margin: 0;
  opacity: 0.9;
}

.vr-secretary-avatar {
  position: relative;
  width: 3rem;
  height: 3.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.15)),
    rgba(2, 6, 23, 0.36);
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.06), 0 8px 22px rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.vr-secretary-avatar::before,
.vr-secretary-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.vr-secretary-avatar::before {
  top: 0.45rem;
  width: 1.65rem;
  height: 1.55rem;
  border-radius: 0.75rem 0.75rem 0.58rem 0.58rem;
  border: 1px solid rgba(248, 250, 252, 0.35);
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.88), rgba(148, 163, 184, 0.44));
}

.vr-secretary-avatar::after {
  bottom: 0.78rem;
  width: 2.05rem;
  height: 0.95rem;
  border-radius: 0.85rem 0.85rem 0.35rem 0.35rem;
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.34), rgba(30, 41, 59, 0.16));
}

.vr-secretary-visor,
.vr-secretary-face,
.vr-secretary-base {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.vr-secretary-visor {
  top: 0.94rem;
  width: 1.42rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), rgba(125, 211, 252, 0.96), rgba(251, 191, 36, 0.82));
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.46);
}

.vr-secretary-face {
  top: 1.42rem;
  width: 0.55rem;
  height: 0.18rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.36);
}

.vr-secretary-base {
  bottom: 0.45rem;
  width: 1.7rem;
  height: 0.18rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.28);
}

.mediation-agent-reply {
  position: relative;
  margin: 0.8rem 0 0;
  padding: 0.82rem 0.95rem 0.82rem 2.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.08);
  color: rgba(241, 245, 249, 0.96);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.mediation-agent-reply::before {
  content: "P";
  position: absolute;
  left: 0.85rem;
  top: 0.82rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.9);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
}

.mediation-agent-reply--info {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.2);
}

.thread-propose-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.thread-propose-form label {
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.92);
}

.thread-propose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.34);
}

.thread-propose-row input {
  flex: 1;
  min-width: min(100%, 14rem);
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  background: transparent;
  color: #f1f5f9;
}

.thread-propose-row input:focus {
  outline: none;
}

.thread-propose-row:focus-within {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.thread-propose-row .btn {
  border-radius: 999px;
  min-width: 5.25rem;
  padding-inline: 1.15rem;
}

.mediation-event-card {
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.38));
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.mediation-chat-console .mediation-chat-option {
  width: min(100%, 36rem);
  margin-left: 2.35rem;
  padding: 0.82rem 0.9rem;
  border-radius: 1rem 1rem 1rem 0.35rem;
  border-color: rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.46)),
    rgba(14, 165, 233, 0.06);
}

.mediation-chat-console .mediation-chat-option .mediation-event-top h3 {
  display: none;
}

.mediation-chat-console .mediation-chat-option .mediation-event-window {
  margin-bottom: 0.35rem;
  font-size: 0.94rem;
}

.mediation-chat-console .mediation-chat-option .mediation-event-notes {
  display: none;
}

.mediation-chat-console .mediation-chat-option .mediation-agree-btn {
  margin-top: 0.2rem;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .mediation-chat-console .mediation-chat-option {
    margin-left: 0;
  }
}

.mediation-event-card:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.42);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.45));
}

.mediation-event-card--other-picked {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
  background: rgba(30, 58, 138, 0.22);
}

.mediation-event-card--you-picked {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
  background: rgba(6, 78, 59, 0.22);
}

.mediation-event-card--other-picked.mediation-event-card--you-picked {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.28),
    inset 0 0 0 1px rgba(59, 130, 246, 0.2);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.18), rgba(30, 58, 138, 0.18));
}

.mediation-event-other-badge {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e0f2fe;
  background: rgba(37, 99, 235, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.mediation-event-your-badge {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ecfdf5;
  background: rgba(5, 150, 105, 0.55);
  border: 1px solid rgba(110, 231, 183, 0.45);
}

.mediation-event-top h3 {
  margin: 0 0 0.35rem;
  color: rgba(248, 250, 252, 0.98);
  font-size: 1.05rem;
}

.mediation-chat-console .mediation-chat-option.mediation-event-card--other-picked,
.mediation-chat-console .mediation-chat-option.mediation-event-card--you-picked {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.2), rgba(30, 58, 138, 0.12));
}

.mediation-event-window {
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.mediation-event-notes {
  margin-top: 0;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.mediation-scheduling-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

.mediation-scheduling-banner--split {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.22);
}

.mediation-scheduling-banner--waiting {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(30, 58, 138, 0.28);
}

.mediation-scheduling-banner-title {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: #f8fafc;
}

.mediation-scheduling-banner-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.92);
}

.mediation-set-subhead {
  margin: 0 0 0.75rem;
  color: rgba(226, 232, 240, 0.88);
}

.mediation-agree-btn {
  width: 100%;
  margin-top: 0.15rem;
}

.thread-error {
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.28);
  color: #fee2e2;
  font-size: 0.92rem;
}

.thread-party-context {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}
