@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/space-grotesk:vf@latest/latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@latest/latin-wght-normal.woff2") format("woff2");
}

:root {
  --sidebar-width: 272px;
  --mono-darkest: #162e2d;
  --mono-second-dark: #26514f;
  --mono-normal: #2e6260;
  --brand-logo-bg: #162e2d;
  --brand-logo-fg: #d9efec;
  --brand-logo-text: #26514f;
  --brand-ink: var(--mono-darkest);
  --brand-accent: var(--mono-normal);
  --brand-soft: #e6f4f1;
  --bs-body-color: #162e2d;
  --bs-body-color-rgb: 22, 46, 45;
  --bs-emphasis-color: #162e2d;
  --bs-emphasis-color-rgb: 22, 46, 45;
  --bs-primary: #2e6260;
  --bs-primary-rgb: 46, 98, 96;
  --bs-primary-text-emphasis: #162e2d;
  --bs-primary-bg-subtle: #d9efec;
  --bs-primary-border-subtle: #9ecbc4;
  --bs-secondary: #2e6260;
  --bs-secondary-rgb: 46, 98, 96;
  --bs-secondary-color: #26514f;
  --bs-secondary-color-rgb: 38, 81, 79;
  --bs-secondary-text-emphasis: #162e2d;
  --bs-secondary-bg: #e8f2f1;
  --bs-secondary-bg-rgb: 232, 242, 241;
  --bs-secondary-bg-subtle: #e8f2f1;
  --bs-secondary-border-subtle: #8eb8b4;
  --bs-link-color: #26514f;
  --bs-link-hover-color: #162e2d;
  --surface-0: #f8fafc;
  --surface-1: #ffffff;
  --surface-2: #f3f5f8;
  --surface-muted: #f3f5f8;
  --text-main: var(--mono-darkest);
  --text-muted: #1f4543;
  --text-muted-soft: var(--mono-second-dark);
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.1);
  --focus-ring: 0 0 0 0.2rem rgba(12, 95, 99, 0.14);
  --elev-1: 0 12px 30px rgba(15, 23, 42, 0.08);
  --elev-2: 0 24px 50px rgba(15, 23, 42, 0.14);
}

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

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 440;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(12, 95, 99, 0.12) 0, transparent 30%),
    radial-gradient(circle at 95% 95%, rgba(246, 201, 106, 0.14) 0, transparent 28%),
  var(--surface-0);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.lead {
  color: var(--text-muted);
  font-weight: 520;
  letter-spacing: -0.008em;
  line-height: 1.62;
}

.platform-admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.14) 0, transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.1) 0, transparent 30%),
    var(--surface-0);
}

::selection {
  color: #f8fafc;
  background: #0c5f63;
}

img,
svg {
  max-width: 100%;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.min-w-0 {
  min-width: 0;
}

body.landing-body {
  background: #f3f8f7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.landing-brand,
.landing-title {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: -0.01em;
}

main {
  animation: reveal-up 320ms ease-out;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex: 1 1 auto;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  border-right: 1px solid var(--card-border);
  background: linear-gradient(180deg, var(--surface-1) 0%, #eef3f5 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: flex-basis 220ms ease, width 220ms ease, opacity 180ms ease, transform 220ms ease, border-color 180ms ease;
}

.app-main {
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: width 220ms ease;
}

.app-main-content {
  flex: 1 0 auto;
}

.public-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

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

.platform-admin-topbar {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.97), rgba(229, 244, 249, 0.92));
  border-color: var(--card-border) !important;
}

.platform-admin-nav .nav-link {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
}

.platform-admin-nav .nav-link.active {
  background: linear-gradient(120deg, rgba(12, 95, 99, 0.94), rgba(15, 118, 110, 0.9));
  border-color: rgba(12, 95, 99, 0.58);
  color: #f8fafc;
}

.navbar {
  backdrop-filter: blur(8px);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 1035;
  padding: 0.75rem 0.9rem 0;
}

.public-header-shell {
  min-height: 58px;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(233, 244, 241, 0.92));
  box-shadow: var(--elev-1);
}

.public-header-actions {
  min-width: 0;
}

.public-header-actions-wrap {
  min-width: 0;
}

.public-header-actions > * {
  flex: 0 0 auto;
}

.public-header-actions .app-action-btn {
  border-radius: 999px;
  font-weight: 650;
}

.public-header-primary {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.public-header-menu-toggle {
  border-radius: 0.7rem;
}

.public-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  border: 1px solid var(--mono-normal);
  border-radius: 999px;
  padding: 0.32rem 0.72rem 0.32rem 0.48rem;
  background: var(--mono-normal);
  box-shadow: 0 10px 22px rgba(22, 46, 45, 0.16);
  color: #fff !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
}

.brand-mark {
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 999px;
  display: inline-block;
  background-image: url("../img/favicon-jurixa-law.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 8px 16px rgba(12, 95, 99, 0.22);
  flex: 0 0 auto;
}

.brand-dot {
  display: none;
}

.brand-wordmark {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: currentColor;
}

.brand-version {
  margin-left: -0.28rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.68;
  color: currentColor;
  transform: translateY(0.08rem);
}

.public-header-brand .brand-wordmark {
  color: currentColor;
  font-size: 1rem;
}

.sidebar .offcanvas-title .brand-wordmark {
  color: var(--text-main);
  font-size: 1rem;
}

.public-header-brand:hover,
.public-header-brand:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(46, 98, 96, 0.42);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(12, 95, 99, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  color: var(--mono-second-dark) !important;
}

.app-topbar {
  margin: 0.8rem 1rem 0;
  border: 1px solid var(--card-border);
  border-radius: 1.1rem;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.97), rgba(232, 243, 240, 0.9));
  box-shadow: var(--elev-1);
  position: relative;
  overflow: hidden;
}

.app-topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(12, 95, 99, 0.82), rgba(15, 118, 110, 0.66), rgba(245, 158, 11, 0.6));
}

.app-topbar .container-fluid {
  min-height: 68px;
  padding: 0.5rem 0.68rem;
  position: relative;
  z-index: 1;
}

.app-topbar-main {
  min-width: 0;
  gap: 0.55rem;
  flex: 1 1 auto;
}

.app-topbar-brand {
  align-items: center;
  gap: 0.56rem;
  border: 1px solid var(--mono-normal);
  border-radius: 999px;
  padding: 0.3rem 0.68rem 0.3rem 0.48rem;
  background: var(--mono-normal);
  box-shadow: 0 10px 22px rgba(22, 46, 45, 0.16);
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-topbar-brand .brand-wordmark {
  color: currentColor;
  font-size: 0.98rem;
}

.app-topbar-brand:hover,
.app-topbar-brand:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(46, 98, 96, 0.42);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(12, 95, 99, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  color: var(--mono-second-dark);
}

.app-topbar-role {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(12, 95, 99, 0.26);
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  background: rgba(255, 255, 255, 0.76);
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.app-topbar-role .bi {
  opacity: 0.78;
}

.app-sidebar-toggle {
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  padding-inline: 0.62rem;
  border-radius: 0.76rem;
  white-space: nowrap;
}

.app-sidebar-toggle [data-sidebar-toggle-icon],
[data-sidebar-toggle] [data-sidebar-toggle-icon] {
  color: currentColor;
  font-size: 1.08rem;
  line-height: 1;
  transition: transform 180ms ease;
}

[data-sidebar-toggle]:hover [data-sidebar-toggle-icon],
[data-sidebar-toggle]:focus-visible [data-sidebar-toggle-icon] {
  transform: translateX(-1px);
}

.app-topbar-toggler {
  border: 1px solid rgba(71, 85, 105, 0.24);
  border-radius: 0.76rem;
  padding: 0.28rem 0.5rem;
  background: rgba(255, 255, 255, 0.88);
}

.app-topbar-actions-wrap {
  flex-grow: 0;
}

.app-topbar-actions {
  justify-content: flex-end;
}

.app-topbar-actions .btn {
  white-space: nowrap;
  border-color: rgba(71, 85, 105, 0.26);
  background: rgba(255, 255, 255, 0.7);
}

.app-topbar-actions .btn:hover,
.app-topbar-actions .btn:focus {
  background: rgba(255, 255, 255, 0.92);
}

.app-action-btn {
  border-radius: 0.74rem;
}

.app-topbar-actions .btn i {
  opacity: 0.9;
}

.app-topbar-actions .btn span {
  line-height: 1.1;
}

.app-topbar-actions form {
  margin: 0;
}

.app-topbar-actions form .btn {
  width: 100%;
}

.app-language-form {
  min-width: 9rem;
}

.app-language-select {
  min-height: 36px;
  border-radius: 999px;
  border-color: rgba(15, 23, 42, 0.22);
  background-color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.app-language-select:focus {
  border-color: rgba(12, 95, 99, 0.58);
  box-shadow: 0 0 0 0.18rem rgba(12, 95, 99, 0.14);
}

.nav-link {
  border-radius: 0.8rem;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover,
.nav-link:focus {
  background-color: #e3edf2;
  color: #0f172a;
}

.sidebar .nav-link.is-active {
  background: linear-gradient(120deg, rgba(12, 95, 99, 0.16), rgba(15, 118, 110, 0.12));
  color: #08373a;
  border: 1px solid rgba(12, 95, 99, 0.24);
}

.sidebar .nav-link.is-plan-locked {
  color: #64748b;
  background: rgba(226, 232, 240, 0.5);
  border: 1px dashed rgba(148, 163, 184, 0.55);
}

.sidebar .nav-link i {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 95, 99, 0.08);
  color: var(--brand-accent);
  transition: all 160ms ease;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link:focus i {
  background: rgba(12, 95, 99, 0.18);
  color: #08373a;
}

.sidebar .nav-link.is-active i {
  background: rgba(12, 95, 99, 0.22);
  color: #08373a;
}

.sidebar .nav-link.is-plan-locked:hover,
.sidebar .nav-link.is-plan-locked:focus {
  background: rgba(226, 232, 240, 0.78);
  color: #334155;
}

.sidebar .nav-link.is-plan-locked i {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

.sidebar .nav-link.is-plan-locked:hover i,
.sidebar .nav-link.is-plan-locked:focus i {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.sidebar-section-title {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.sidebar-link-badge {
  border-radius: 999px;
  background: rgba(12, 95, 99, 0.14);
  color: #0c4a4d;
  border: 1px solid rgba(12, 95, 99, 0.22);
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 1.8rem;
}

.sidebar-priority-glance {
  margin-top: 0.8rem;
  border: 1px solid rgba(12, 95, 99, 0.14);
  border-radius: 0.72rem;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(226, 245, 241, 0.78));
  padding: 0.48rem 0.58rem;
  display: grid;
  gap: 0.35rem;
}

.sidebar-priority-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: #475569;
  font-size: 0.78rem;
}

.sidebar-priority-stat strong {
  color: #0f172a;
  font-size: 0.85rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.sidebar .offcanvas-title.brand-lockup {
  gap: 0.52rem;
}

.sidebar .offcanvas-title .brand-wordmark {
  font-size: 1.02rem;
  color: var(--text-main);
}

.client-portal-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(12, 95, 99, 0.14) 0, transparent 32%),
    radial-gradient(circle at 98% 2%, rgba(37, 99, 235, 0.1) 0, transparent 35%),
    radial-gradient(circle at 92% 95%, rgba(245, 158, 11, 0.1) 0, transparent 28%),
    var(--surface-0);
}

.client-portal-body .public-header {
  display: none;
}

.client-portal-page .container-xxl {
  max-width: 1460px;
}

.client-portal-shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  transition: grid-template-columns 220ms ease;
}

.client-portal-sidebar {
  position: sticky;
  top: 0.35rem;
  align-self: start;
  transition: opacity 180ms ease, transform 220ms ease;
}

.client-portal-sidebar-card {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(231, 244, 240, 0.9));
  box-shadow: var(--elev-1);
  padding: 1rem;
}

.client-portal-mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.48rem 0.62rem;
  font-size: 0.84rem;
  color: #475569;
}

.client-portal-mini-stat strong {
  color: #0f172a;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
}

.client-portal-nav-label {
  letter-spacing: 0.07em;
}

.client-portal-nav .nav-link {
  border: 1px solid rgba(12, 95, 99, 0.18);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  padding: 0.56rem 0.7rem;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.client-portal-nav .nav-link:hover,
.client-portal-nav .nav-link:focus {
  border-color: rgba(12, 95, 99, 0.35);
  box-shadow: 0 8px 18px rgba(12, 95, 99, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.client-portal-nav .nav-link i {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 95, 99, 0.1);
  color: #0c5f63;
}

.client-portal-nav .nav-link.active,
.client-portal-nav .nav-link.show {
  border-color: rgba(12, 95, 99, 0.48);
  background: linear-gradient(125deg, #0c5f63, #0f766e);
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.client-portal-nav .nav-link.active i,
.client-portal-nav .nav-link.show i {
  background: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.client-portal-assigned {
  border-top: 1px dashed rgba(71, 85, 105, 0.35);
  padding-top: 0.85rem;
}

.client-portal-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.client-portal-welcome {
  min-width: 0;
}

.client-portal-welcome-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.client-portal-welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid var(--mono-normal);
  border-radius: 999px;
  padding: 0.28rem 0.68rem 0.28rem 0.46rem;
  background: var(--mono-normal);
  box-shadow: 0 10px 22px rgba(22, 46, 45, 0.16);
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.client-portal-welcome-brand .brand-wordmark {
  color: currentColor;
  font-size: 0.94rem;
}

.client-portal-welcome-brand:hover,
.client-portal-welcome-brand:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(46, 98, 96, 0.42);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 22px rgba(12, 95, 99, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  color: var(--mono-second-dark);
}

.client-portal-welcome-title {
  color: var(--mono-second-dark);
  font-size: clamp(1.12rem, 1rem + 0.7vw, 1.4rem);
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.client-portal-welcome-subtitle {
  color: var(--text-muted) !important;
  font-size: 0.98rem;
  font-weight: 480;
}

.client-portal-header {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(230, 243, 248, 0.92));
  box-shadow: var(--elev-1);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.client-portal-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(12, 95, 99, 0.78), rgba(37, 99, 235, 0.68), rgba(245, 158, 11, 0.62));
}

.client-portal-header-actions {
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.client-portal-header-menu-toggle {
  border-radius: 0.7rem;
}

.client-portal-header-actions form {
  margin: 0;
}

.client-portal-header-actions .btn {
  white-space: nowrap;
}

.client-portal-mobile-controls {
  margin-bottom: 1rem;
}

.client-portal-mobile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.client-portal-mobile-tabs .nav-link {
  border: 1px solid rgba(12, 95, 99, 0.22);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  padding: 0.55rem 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
}

.client-portal-mobile-tabs .nav-link i {
  opacity: 0.82;
}

.client-portal-mobile-tabs .nav-link.active,
.client-portal-mobile-tabs .nav-link.show {
  border-color: rgba(12, 95, 99, 0.48);
  background: linear-gradient(125deg, #0c5f63, #0f766e);
  color: #f8fafc;
}

.client-portal-mobile-summary .client-portal-mini-stat {
  font-size: 0.82rem;
}

.client-portal-main .tab-pane {
  animation: reveal-up 240ms ease;
}

.client-portal-stat-card--link {
  display: block;
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(236, 253, 245, 0.9));
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.client-portal-stat-card--link .display-6 {
  color: #065f46;
}

.client-portal-stat-card-link-label {
  color: #0f766e;
}

.client-portal-stat-card--link:hover,
.client-portal-stat-card--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(5, 150, 105, 0.52);
  box-shadow: 0 16px 28px rgba(5, 150, 105, 0.16);
}

.client-procedures-card {
  overflow: hidden;
  border-color: rgba(12, 95, 99, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(12, 95, 99, 0.11), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95));
}

.client-procedure-card {
  height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.95rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.client-procedure-card.is-selected {
  border-color: rgba(12, 95, 99, 0.42);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.95));
  box-shadow: 0 16px 34px rgba(12, 95, 99, 0.14);
}

.client-procedure-card:hover,
.client-procedure-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(12, 95, 99, 0.36);
  box-shadow: 0 18px 36px rgba(12, 95, 99, 0.13);
}

.client-procedure-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(12, 95, 99, 0.16);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.78);
  color: #164e4a;
  font-weight: 700;
  padding: 0.24rem 0.56rem;
}

.client-procedure-switch-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  padding: 0.68rem 0.72rem;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.client-procedure-switch-link small {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
}

.client-procedure-switch-link:hover,
.client-procedure-switch-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(12, 95, 99, 0.36);
  background: rgba(236, 253, 245, 0.82);
  color: #0f172a;
}

.client-procedure-switch-link.is-selected {
  border-color: rgba(12, 95, 99, 0.42);
  background: rgba(12, 95, 99, 0.1);
}

.procedure-timeline-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(12, 95, 99, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(224, 242, 254, 0.9));
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.36rem 0.72rem;
  white-space: nowrap;
}

.procedure-timeline {
  --timeline-active: #0c5f63;
  --timeline-complete: #10b981;
  --timeline-upcoming: #94a3b8;
  --timeline-line: #d7e0ee;
  --timeline-step-height: 9.5rem;
  --timeline-hover-space: 5rem;
  position: relative;
}

.procedure-timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0.15rem var(--timeline-hover-space);
  scrollbar-width: thin;
}

.procedure-timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(128px, 1fr));
  min-width: 1024px;
  gap: 0;
  padding: 0.25rem 0 0.5rem;
}

.procedure-timeline-track::before,
.procedure-timeline-track::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  top: 5.9rem;
  height: 0.48rem;
  border-radius: 999px;
}

.procedure-timeline-track::before {
  background: var(--timeline-line);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

.procedure-timeline-track::after {
  right: calc(100% - var(--procedure-progress, 0%));
  background: linear-gradient(90deg, var(--timeline-complete), var(--timeline-active));
}

.procedure-timeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: var(--timeline-step-height);
  text-align: center;
  color: #475569;
}

.procedure-timeline-link {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: inherit;
  width: 100%;
  color: inherit;
  text-align: center;
  text-decoration: none;
  outline: none;
}

.procedure-timeline-link:hover,
.procedure-timeline-link:focus-visible {
  color: inherit;
}

.procedure-timeline-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.28rem;
  border-radius: 0.55rem;
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.42rem 0.68rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.procedure-timeline-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.42rem;
  width: 0.84rem;
  height: 0.84rem;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-radius: 0 0 0.18rem 0;
}

.procedure-timeline-date {
  margin-top: 1.15rem;
  color: #31537c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.procedure-timeline-node {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: 0.62rem;
  border: 0.22rem solid #f8fafc;
  border-radius: 999px;
  background: var(--timeline-upcoming);
  color: #fff;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.procedure-timeline-label {
  width: min(11rem, 94%);
  margin-top: 0.68rem;
  color: #0f172a;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
}

.procedure-timeline-step.is-done .procedure-timeline-flag {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ecfdf5;
}

.procedure-timeline-step.is-current .procedure-timeline-flag {
  background: linear-gradient(135deg, #0c5f63, #2563eb);
  color: #f8fafc;
  transform: translateY(-0.08rem);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.procedure-timeline-step.is-done .procedure-timeline-node {
  background: var(--timeline-complete);
}

.procedure-timeline-step.is-current .procedure-timeline-node {
  width: 2.45rem;
  height: 2.45rem;
  margin-top: 0.44rem;
  background: var(--timeline-active);
  box-shadow: 0 0 0 0.42rem rgba(12, 95, 99, 0.11), 0 14px 24px rgba(12, 95, 99, 0.24);
}

.procedure-timeline-link:hover .procedure-timeline-node,
.procedure-timeline-link:focus-visible .procedure-timeline-node {
  transform: translateY(-0.18rem) scale(1.04);
  box-shadow: 0 16px 28px rgba(12, 95, 99, 0.22);
}

.procedure-timeline-hover-card {
  position: absolute;
  top: 8.65rem;
  left: 50%;
  z-index: 6;
  width: min(15rem, 92vw);
  transform: translate(-50%, 0.38rem);
  border: 1px solid rgba(12, 95, 99, 0.18);
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.98);
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  padding: 0.68rem 0.78rem;
  pointer-events: none;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.15);
  transition: opacity 170ms ease, transform 170ms ease;
}

.procedure-timeline-hover-card::before {
  content: "";
  position: absolute;
  top: -0.38rem;
  left: 50%;
  width: 0.72rem;
  height: 0.72rem;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid rgba(12, 95, 99, 0.18);
  border-left: 1px solid rgba(12, 95, 99, 0.18);
  background: inherit;
}

.procedure-timeline-link:hover .procedure-timeline-hover-card,
.procedure-timeline-link:focus-visible .procedure-timeline-hover-card {
  transform: translate(-50%, 0);
  opacity: 1;
}

.procedure-timeline-detail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.procedure-timeline-detail-arrow {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid rgba(148, 163, 184, 0.34);
  border-left: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.98);
}

.procedure-timeline-detail h6 {
  color: #0f172a;
  font-weight: 800;
}

.procedure-timeline-detail-icon {
  margin-left: auto;
  color: #2563eb;
  font-size: 1.45rem;
}

.procedure-view-header {
  overflow: hidden;
  border-color: rgba(12, 95, 99, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.14), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95));
}

.procedure-view-summary-card {
  border-color: rgba(12, 95, 99, 0.18);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.78));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.procedure-view-progress .progress {
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.procedure-view-progress .progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #0c5f63, #2563eb);
}

.procedure-view-fact-list {
  display: grid;
  gap: 0.68rem;
}

.procedure-view-fact-list > div,
.procedure-view-next-action {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.78rem 0.86rem;
}

.procedure-view-fact-list span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.procedure-view-fact-list strong {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.procedure-view-timeline {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding-left: 0.1rem;
}

.procedure-view-timeline::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.31rem;
  width: 0.24rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.78), rgba(12, 95, 99, 0.38), rgba(148, 163, 184, 0.3));
}

.procedure-view-step {
  position: relative;
}

.procedure-view-details {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.procedure-view-details[open] {
  border-color: rgba(12, 95, 99, 0.28);
  box-shadow: 0 18px 36px rgba(12, 95, 99, 0.12);
}

.procedure-view-details:hover {
  transform: translateY(-1px);
}

.procedure-view-details > summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.05rem;
}

.procedure-view-details > summary::-webkit-details-marker {
  display: none;
}

.procedure-view-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 0.22rem solid #fff;
  border-radius: 999px;
  background: #94a3b8;
  color: #fff;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.procedure-view-step.is-done .procedure-view-marker {
  background: #10b981;
}

.procedure-view-step.is-current .procedure-view-marker {
  background: #0c5f63;
  box-shadow: 0 0 0 0.42rem rgba(12, 95, 99, 0.12), 0 16px 28px rgba(12, 95, 99, 0.24);
}

.procedure-view-summary-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.procedure-view-step-kicker {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.procedure-view-step-title {
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 850;
}

.procedure-view-step-brief {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.4;
}

.procedure-view-expand-icon {
  margin-left: auto;
  color: #2563eb;
  transition: transform 180ms ease;
}

.procedure-view-details[open] .procedure-view-expand-icon {
  transform: rotate(180deg);
}

.procedure-view-panel {
  margin-left: 4.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0 1.05rem 1.05rem 0;
}

.procedure-view-step-summary {
  padding-top: 0.9rem;
}

.procedure-view-sections {
  display: grid;
  gap: 0.78rem;
}

.procedure-view-section {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.88rem;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96));
  padding: 0.88rem 0.94rem;
}

.procedure-view-section h3 {
  color: #0f172a;
}

.procedure-view-section li {
  position: relative;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
  padding-left: 1.1rem;
}

.procedure-view-section li + li {
  margin-top: 0.48rem;
}

.procedure-view-section li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #0c5f63;
}

.document-generator-page {
  --document-border: rgba(15, 23, 42, 0.12);
  --document-muted: #64748b;
  --document-ink: #0f172a;
  --document-accent: #0f766e;
}

.document-generator-hero,
.document-generator-side-panel,
.document-generator-compose-card,
.document-generator-history-card,
.document-generator-output-card,
.document-generator-empty-state,
.document-generator-neutral-panel {
  border: 1px solid var(--document-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.document-generator-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem;
}

.document-generator-hero-main {
  max-width: 52rem;
}

.document-generator-hero h1,
.document-generator-empty-state h2,
.document-generator-output-toolbar h2,
.document-output-placeholder h3 {
  margin: 0;
  color: var(--document-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.document-generator-hero h1 {
  font-size: clamp(1.55rem, 1.9vw, 2.05rem);
}

.document-generator-hero p,
.document-generator-empty-state p,
.document-output-placeholder p {
  max-width: 48rem;
  margin: 0.35rem 0 0;
  color: var(--document-muted);
}

.document-generator-hero-actions,
.document-generator-download-actions,
.document-generator-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.document-generator-empty-state {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
}

.document-generator-neutral-panel {
  padding: 1rem;
  color: var(--document-muted);
}

.document-generator-empty-icon,
.document-output-placeholder i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.5rem;
  background: rgba(15, 118, 110, 0.1);
  color: var(--document-accent);
  font-size: 1.55rem;
}

.document-generator-matter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: inherit;
  padding: 1rem 1.05rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-generator-matter-link strong,
.document-generator-template-item .fw-semibold,
.document-generator-draft-card .fw-semibold,
.document-output-body h4 {
  color: #0f172a;
}

.document-generator-matter-link small {
  display: block;
  color: #64748b;
  margin-top: 0.32rem;
}

.document-generator-matter-link:hover,
.document-generator-matter-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(12, 95, 99, 0.28);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.document-generator-side-panel,
.document-generator-output-card {
  padding: 1rem;
}

.document-generator-side-panel h2,
.document-generator-side-panel h3 {
  margin: 0 0 0.75rem;
  color: var(--document-ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.document-generator-fact-list {
  display: grid;
  gap: 0.72rem;
}

.document-generator-fact-list > div,
.document-generator-status-note,
.document-generator-draft-card,
.document-generator-template-item,
.document-generator-template-sample,
.document-output-placeholder,
.document-generator-visibility-check {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
}

.document-generator-fact-list > div,
.document-generator-status-note,
.document-generator-draft-card,
.document-generator-template-item,
.document-output-placeholder,
.document-generator-visibility-check {
  padding: 0.82rem 0.88rem;
}

.document-generator-fact-list span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.document-generator-fact-list strong {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.document-generator-alert-card {
  border-radius: 0.5rem;
  border-color: rgba(245, 158, 11, 0.35);
}

.document-generator-template-sample {
  color: #334155;
  line-height: 1.55;
  padding: 0.84rem 0.9rem;
}

.document-generator-template-library,
.document-generator-history-groups {
  display: grid;
  gap: 0.85rem;
}

.document-generator-upload-divider {
  height: 1px;
  margin: 1.2rem 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0));
}

.document-generator-law-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(12, 95, 99, 0.18);
  border-radius: 0.5rem;
  background: rgba(236, 253, 245, 0.92);
  color: #0c5f63;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 0.88rem;
}

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

.document-generator-form-wide {
  grid-column: 1 / -1;
}

.document-generator-visibility-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
}

.document-generator-visibility-check input {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.document-generator-visibility-check span {
  display: grid;
  gap: 0.12rem;
}

.document-generator-visibility-check strong {
  color: var(--document-ink);
}

.document-generator-visibility-check small {
  color: var(--document-muted);
}

.document-generator-compose-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 1.1rem;
}

.document-generator-history-group + .document-generator-history-group {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 1rem;
}

.document-generator-output-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.document-output-paper {
  max-width: 52rem;
  min-height: 42rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 2.6vw, 2.4rem);
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 0.25rem;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

.document-output-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid rgba(15, 23, 42, 0.82);
  padding-bottom: 1rem;
}

.document-output-header h3 {
  margin: 0.18rem 0 0;
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.18;
}

.document-output-header span {
  align-self: flex-start;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0.25rem;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.5rem;
  text-transform: uppercase;
}

.document-output-org {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.document-output-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 1rem 0 1.25rem;
}

.document-output-meta div {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 0.48rem;
}

.document-output-meta dt {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.document-output-meta dd {
  margin: 0.18rem 0 0;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 650;
}

.document-output-body {
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.72;
}

.document-output-body h4 {
  margin: 1.25rem 0 0.38rem;
  font-family: var(--bs-body-font-family);
  font-size: 0.96rem;
  font-weight: 800;
}

.document-output-body p {
  margin: 0 0 0.9rem;
}

.document-output-placeholder {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.document-generator-draft-card.is-selected {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.document-generator-draft-card p {
  color: #475569;
}

.client-guidance-overview-card {
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(12, 95, 99, 0.1), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.94));
}

.client-guidance-overview-chat {
  display: grid;
  gap: 0.72rem;
  max-height: 13rem;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.85rem;
}

.client-guidance-overview-message,
.client-guidance-overview-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.client-guidance-overview-message.is-client {
  flex-direction: row-reverse;
}

.client-guidance-overview-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c5f63, #2563eb);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.client-guidance-overview-message.is-client .client-guidance-overview-avatar {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.client-guidance-overview-bubble {
  max-width: min(82%, 620px);
  border: 1px solid rgba(12, 95, 99, 0.18);
  border-radius: 0.95rem 0.95rem 0.95rem 0.25rem;
  background: rgba(236, 253, 245, 0.82);
  padding: 0.6rem 0.72rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.07);
}

.client-guidance-overview-message.is-client .client-guidance-overview-bubble {
  border-color: rgba(37, 99, 235, 0.2);
  border-radius: 0.95rem 0.95rem 0.25rem 0.95rem;
  background: rgba(219, 234, 254, 0.86);
}

.client-guidance-overview-speaker {
  margin-bottom: 0.16rem;
  color: #0c5f63;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-guidance-overview-message.is-client .client-guidance-overview-speaker {
  color: #1d4ed8;
  text-align: right;
}

.client-guidance-overview-text {
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.4;
}

.client-guidance-overview-empty {
  border: 1px dashed rgba(12, 95, 99, 0.24);
  border-radius: 0.9rem;
  background: rgba(236, 253, 245, 0.52);
  padding: 0.8rem;
}

.firm-matters-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.firm-matters-tab-nav {
  flex-wrap: wrap;
  gap: 0.55rem;
}

.firm-matters-tab-nav .nav-link,
.firm-matters-mobile-nav .nav-link {
  border: 1px solid rgba(12, 95, 99, 0.22);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  padding: 0.54rem 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.52rem;
  box-shadow: 0 8px 16px rgba(12, 95, 99, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.firm-matters-tab-nav .nav-link i,
.firm-matters-mobile-nav .nav-link i {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 95, 99, 0.1);
  color: #0c5f63;
}

.firm-matters-tab-nav .nav-link .badge,
.firm-matters-mobile-nav .nav-link .badge {
  font-size: 0.72rem;
}

.firm-matters-tab-nav .nav-link:hover,
.firm-matters-tab-nav .nav-link:focus,
.firm-matters-mobile-nav .nav-link:hover,
.firm-matters-mobile-nav .nav-link:focus {
  border-color: rgba(12, 95, 99, 0.36);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(12, 95, 99, 0.12);
}

.firm-matters-tab-nav .nav-link.active,
.firm-matters-tab-nav .nav-link.show,
.firm-matters-mobile-nav .nav-link.active,
.firm-matters-mobile-nav .nav-link.show {
  border-color: rgba(12, 95, 99, 0.48);
  background: linear-gradient(125deg, #0c5f63, #0f766e);
  color: #f8fafc;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.25);
}

.firm-matters-tab-nav .nav-link.active i,
.firm-matters-tab-nav .nav-link.show i,
.firm-matters-mobile-nav .nav-link.active i,
.firm-matters-mobile-nav .nav-link.show i {
  background: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.firm-matters-mobile-toggle {
  min-height: 2.56rem;
  justify-content: space-between;
}

.firm-matters-mobile-nav {
  border: 1px solid var(--card-border);
  border-radius: 0.92rem;
  padding: 0.55rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(232, 244, 241, 0.9));
  box-shadow: var(--elev-1);
}

.firm-matters-mobile-nav .nav-link {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.firm-matters-tab-content .tab-pane {
  animation: reveal-up 240ms ease;
}

.firm-matters-action-queue .btn {
  white-space: nowrap;
}

.procedure-timeline--compact .procedure-timeline-scroll {
  --timeline-step-height: 8.35rem;
  --timeline-hover-space: 4.75rem;
}

.procedure-timeline--compact .procedure-timeline-track {
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  min-width: 780px;
}

.procedure-timeline--compact .procedure-timeline-track::before,
.procedure-timeline--compact .procedure-timeline-track::after {
  top: 5.15rem;
}

.procedure-timeline--compact .procedure-timeline-step {
  min-height: var(--timeline-step-height);
}

.procedure-timeline--compact .procedure-timeline-flag {
  min-height: 2rem;
  font-size: 0.7rem;
  padding: 0.34rem 0.58rem;
}

.procedure-timeline--compact .procedure-timeline-date {
  margin-top: 0.96rem;
  font-size: 0.72rem;
}

.procedure-timeline--compact .procedure-timeline-node {
  width: 1.88rem;
  height: 1.88rem;
  margin-top: 0.48rem;
  font-size: 0.76rem;
}

.procedure-timeline--compact .procedure-timeline-step.is-current .procedure-timeline-node {
  width: 2.18rem;
  height: 2.18rem;
}

.procedure-timeline--compact .procedure-timeline-label {
  width: min(8.4rem, 96%);
  font-size: 0.76rem;
}

.procedure-timeline--compact .procedure-timeline-hover-card {
  top: 7.7rem;
  width: min(12.4rem, 88vw);
}

.firm-procedure-filter-card {
  border-color: rgba(12, 95, 99, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(12, 95, 99, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95));
}

.firm-procedure-filter-form {
  display: grid;
  gap: 0.85rem;
}

.firm-procedure-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.firm-procedure-filter-summary,
.firm-procedure-signal-list,
.firm-procedure-meta,
.firm-procedure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.firm-procedure-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
}

.firm-procedure-card {
  border-color: rgba(12, 95, 99, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08), transparent 28%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.94));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.firm-procedure-card-empty {
  grid-column: 1 / -1;
}

.firm-procedure-meta-pill,
.firm-procedure-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(12, 95, 99, 0.18);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.76);
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.36rem 0.72rem;
}

.firm-procedure-meta-pill i {
  color: #0c5f63;
}

.firm-procedure-detail {
  scroll-margin-top: 6rem;
}

.firm-procedure-actions .btn,
.firm-procedure-actions form {
  display: inline-flex;
}

.agent-procedure-landing {
  display: grid;
  gap: 1rem;
}

.agent-procedure-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.agent-procedure-hero-copy {
  max-width: 780px;
}

.agent-procedure-hero h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.agent-procedure-hero p {
  margin: 0.75rem 0 0;
  max-width: 720px;
  color: var(--bs-secondary-color);
  font-size: 1rem;
}

.agent-procedure-hero-action {
  white-space: nowrap;
}

.agent-procedure-route {
  display: grid;
  grid-template-columns: auto minmax(32px, 1fr) auto minmax(32px, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.5rem;
  background: #ffffff;
}

.agent-route-caption {
  grid-column: 1 / -1;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agent-route-node {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.68rem 0.76rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.5rem;
  background: #f8fafc;
}

.agent-route-node strong,
.agent-route-node small {
  display: block;
}

.agent-route-node small {
  color: var(--bs-secondary-color);
  font-size: 0.76rem;
  line-height: 1.25;
}

.agent-route-node.is-current {
  border-color: rgba(13, 148, 136, 0.38);
  background: #ecfdf5;
}

.agent-route-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.agent-route-node.is-current .agent-route-index {
  background: #0f766e;
}

.agent-route-connector {
  height: 2px;
  min-width: 32px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.18), rgba(13, 148, 136, 0.42));
}

.agent-procedure-start-panel,
.agent-procedure-frontpage-section {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 1rem;
}

.agent-procedure-start-heading,
.agent-procedure-section-heading,
.agent-procedure-submit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.agent-procedure-start-heading {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.agent-procedure-start-heading h2,
.agent-procedure-section-heading h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.agent-procedure-start-heading p {
  margin: 0.35rem 0 0;
  max-width: 760px;
  color: var(--bs-secondary-color);
}

.agent-step-kicker {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-procedure-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.agent-procedure-fieldset {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.5rem;
  background: #f8fafc;
}

.agent-procedure-fieldset-wide {
  grid-column: 1 / -1;
}

.agent-procedure-fieldset legend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  margin: 0 0 0.15rem;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}

.agent-procedure-fieldset legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
}

.agent-procedure-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.agent-form-field .form-label {
  margin-bottom: 0.28rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-form-field textarea.form-control {
  min-height: 7.5rem;
}

.agent-consent-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.agent-consent-check {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  min-height: 5rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0f172a;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.agent-consent-check:hover,
.agent-consent-check:focus-within {
  border-color: rgba(13, 148, 136, 0.42);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.agent-consent-check:has(.form-check-input:checked) {
  border-color: rgba(13, 148, 136, 0.58);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(204, 251, 241, 0.5));
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.12), 0 14px 30px rgba(13, 148, 136, 0.12);
}

.agent-consent-check input[type="checkbox"],
.agent-consent-check .form-check-input {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  float: none;
  width: 1.08rem;
  height: 1.08rem;
  margin: 0;
  z-index: 2;
}

.agent-consent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1rem;
}

.agent-consent-check:has(.form-check-input:checked) .agent-consent-icon {
  background: #0f766e;
}

.agent-consent-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding-right: 2.05rem;
}

.agent-consent-copy span {
  color: #102a2a;
  font-weight: 800;
  line-height: 1.2;
}

.agent-consent-copy small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.25;
}

.agent-procedure-submit-row {
  align-items: center;
  padding-top: 0.2rem;
  color: var(--bs-secondary-color);
  font-size: 0.88rem;
}

.agent-procedure-submit-row-emphasis {
  margin-top: 0.15rem;
  padding: 0.85rem;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, rgba(240, 253, 250, 0.92), rgba(255, 255, 255, 0.95));
}

.agent-procedure-submit-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: #164e4a;
  font-weight: 650;
}

.agent-procedure-submit-note i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.agent-procedure-primary-action {
  min-height: 2.75rem;
  padding-inline: 1.15rem;
  box-shadow: 0 16px 28px rgba(13, 148, 136, 0.22);
}

.agent-section-count {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
}

.agent-procedure-lane,
.agent-support-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.agent-client-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.5rem;
  background: #f8fafc;
}

.agent-client-summary h3,
.agent-empty-state h3 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.agent-client-summary p,
.agent-empty-state p,
.agent-section-note {
  margin: 0.3rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.88rem;
}

.agent-client-procedure-list {
  display: grid;
  gap: 0.65rem;
}

.agent-procedure-strip,
.agent-support-ticket {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.5rem;
  background: #ffffff;
}

.agent-procedure-strip-main {
  min-width: 0;
}

.agent-procedure-strip h4 {
  margin: 0.14rem 0 0.34rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.agent-procedure-mini-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
}

.agent-procedure-mini-route span {
  min-width: 0;
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-procedure-strip-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

.agent-procedure-status {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.agent-empty-state {
  padding: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 0.5rem;
  background: #f8fafc;
}

.agent-support-ticket p {
  margin: 0.38rem 0 0;
  color: #334155;
  font-size: 0.88rem;
}

.agent-profile-frontpage {
  display: grid;
  gap: 1rem;
}

body.agent-profile-body,
body.provider-profile-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.08), transparent 28%),
    linear-gradient(180deg, #f7faf9, #eef5f3);
}

body.agent-profile-body .sidebar,
body.agent-profile-body .app-sidebar-toggle,
body.agent-profile-body .app-topbar [data-bs-target="#sidebarCanvas"],
body.provider-profile-body .sidebar,
body.provider-profile-body .app-sidebar-toggle,
body.provider-profile-body .app-topbar [data-bs-target="#sidebarCanvas"] {
  display: none !important;
}

body.agent-profile-body .app-shell,
body.provider-profile-body .app-shell {
  display: block;
}

body.agent-profile-body .app-main,
body.provider-profile-body .app-main {
  width: 100%;
}

body.agent-profile-body .app-main-content,
body.provider-profile-body .app-main-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem !important;
}

body.agent-profile-body .app-topbar,
body.provider-profile-body .app-topbar {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  border-radius: 0.75rem;
}

.agent-profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.1rem;
  padding: 2.25rem;
  border-radius: 0.75rem;
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.94) 58%, rgba(247, 250, 249, 0.76) 100%),
    var(--landing-hero-image, linear-gradient(135deg, #eef7f5, #f8fafc));
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.agent-profile-copy {
  max-width: 52rem;
}

.agent-profile-title {
  max-width: 18ch;
  margin: 0;
  color: #102f2e;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 3.05rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.agent-profile-subtitle {
  max-width: 44rem;
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.agent-profile-flow {
  --agent-flow-line: rgba(12, 95, 99, 0.24);
  --agent-flow-active: #0c5f63;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.8rem, 1fr));
  gap: 0.95rem;
  padding: 1rem 0 0.35rem;
}

.agent-profile-flow::before {
  content: "";
  position: absolute;
  top: 2.12rem;
  left: calc(10% - 0.5rem);
  right: calc(10% - 0.5rem);
  height: 2px;
  background: linear-gradient(90deg, var(--agent-flow-active), rgba(244, 182, 63, 0.72), var(--agent-flow-line));
}

.agent-profile-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  min-height: 5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.agent-profile-node:focus-visible {
  outline: 3px solid rgba(12, 95, 99, 0.2);
  outline-offset: 0.35rem;
  border-radius: 0.9rem;
}

.agent-profile-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(12, 95, 99, 0.26);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #eef7f5);
  color: var(--agent-flow-active);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.13), inset 0 0 0 4px rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.agent-profile-node:hover .agent-profile-marker,
.agent-profile-node:focus-visible .agent-profile-marker {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18), inset 0 0 0 4px rgba(255, 255, 255, 0.74);
}

.agent-profile-node.active .agent-profile-marker {
  border-color: var(--agent-flow-active);
  background: linear-gradient(145deg, var(--agent-flow-active), #16817d);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(12, 95, 99, 0.28), 0 0 0 6px rgba(12, 95, 99, 0.12);
}

.agent-profile-node-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.agent-profile-node-copy > span {
  color: #102f2e;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.agent-profile-node-copy small {
  color: var(--text-muted);
  line-height: 1.2;
}

.agent-profile-panels {
  min-height: 7rem;
}

.agent-profile-panel {
  margin: 0.1rem 0 0;
  padding: 1.05rem;
  border: 1px solid rgba(12, 95, 99, 0.16);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 246, 0.84));
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.agent-profile-panel.active {
  display: flex;
}

.agent-profile-panel-main p {
  max-width: 48rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.38;
}

.agent-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.agent-profile-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.agent-profile-note {
  max-width: 22rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.agent-profile-metrics,
.agent-profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.agent-profile-metric,
.agent-profile-list span {
  display: grid;
  gap: 0.08rem;
  min-width: 8.6rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(12, 95, 99, 0.14);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.76);
}

.agent-profile-metric strong,
.agent-profile-list strong {
  color: #102f2e;
  font-size: 1.02rem;
  line-height: 1.15;
}

.agent-profile-metric small,
.agent-profile-list small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.agent-profile-current {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.86);
}

.agent-profile-current-heading,
.agent-profile-procedure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.agent-profile-current-heading {
  margin-bottom: 0.85rem;
}

.agent-profile-current-heading h2 {
  margin: 0;
  color: #102f2e;
  font-size: 1.25rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.agent-profile-procedure-list {
  display: grid;
  gap: 0.65rem;
}

.agent-profile-procedure {
  padding: 0.78rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: inherit;
  text-decoration: none;
}

.agent-profile-procedure:first-child {
  border-top: 0;
}

.agent-profile-procedure strong,
.agent-profile-procedure small {
  display: block;
}

.agent-profile-procedure strong {
  color: #102f2e;
}

.agent-profile-procedure small,
.agent-profile-procedure-meta,
.agent-profile-empty span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.agent-profile-procedure:hover strong,
.agent-profile-procedure:focus-visible strong {
  color: #0c5f63;
}

.agent-profile-procedure-meta {
  flex: 0 0 auto;
}

.agent-profile-empty {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.firm-communication-thread-list {
  max-height: 520px;
  overflow: auto;
}

.firm-communication-thread-list .list-group-item {
  border: 1px solid rgba(12, 95, 99, 0.16);
  border-radius: 0.76rem;
  margin-bottom: 0.48rem;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.firm-communication-thread-list .list-group-item:last-child {
  margin-bottom: 0;
}

.firm-communication-thread-list .list-group-item:hover,
.firm-communication-thread-list .list-group-item:focus {
  transform: translateY(-1px);
  border-color: rgba(12, 95, 99, 0.32);
  box-shadow: 0 10px 20px rgba(12, 95, 99, 0.12);
}

.firm-communication-thread-list .list-group-item.active {
  border-color: rgba(12, 95, 99, 0.44);
  background: linear-gradient(125deg, #0c5f63, #0f766e);
}

.firm-communication-chat-log {
  max-height: 430px;
  overflow: auto;
}

.firm-communication-message {
  display: flex;
  margin-bottom: 0.7rem;
}

.firm-communication-message:last-child {
  margin-bottom: 0;
}

.firm-communication-message.is-attorney {
  justify-content: flex-end;
}

.firm-communication-message.is-client {
  justify-content: flex-start;
}

.firm-communication-bubble {
  max-width: min(94%, 690px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.84rem;
  background: #fff;
  padding: 0.62rem 0.72rem;
}

.firm-communication-message.is-attorney .firm-communication-bubble {
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.76), rgba(224, 242, 254, 0.9));
}

.firm-communication-select,
.client-portal-chat-select {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.firm-communication-select .form-check-input,
.client-portal-chat-select .form-check-input {
  margin-top: 0;
}

.client-portal-chat-log {
  max-height: 430px;
  overflow: auto;
}

.card,
.hero-console,
.feature-card,
.workflow-card,
.auth-panel,
.auth-info {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: var(--elev-1);
  background: var(--card-bg);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-title i {
  opacity: 0.92;
}

.kpi-card {
  border: 1px solid var(--card-border);
  box-shadow: var(--elev-1);
  border-radius: 0.9rem;
}

.admin-command-card {
  border: 1px solid rgba(12, 95, 99, 0.22);
  background:
    radial-gradient(circle at 98% 0%, rgba(59, 130, 246, 0.12) 0, transparent 30%),
    radial-gradient(circle at 2% 100%, rgba(245, 158, 11, 0.13) 0, transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 240, 0.95));
}

.admin-command-item {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.86rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem 0.92rem;
}

.admin-command-kpi {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-top: 0.2rem;
  margin-bottom: 0.1rem;
  color: #0f172a;
}

.dashboard-luxe-shell {
  position: relative;
  isolation: isolate;
}

.dashboard-luxe-shell::before {
  display: none;
}

.dashboard-luxe-shell > * {
  position: relative;
  z-index: 1;
}

.dashboard-toolbar {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-toolbar h2 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: -0.01em;
}

.dashboard-toolbar .app-filter-form {
  margin: 0;
}

.dashboard-toolbar .app-filter-form .form-control,
.dashboard-toolbar .app-filter-form .form-select {
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-command-shell {
  border-color: rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at 95% 8%, rgba(59, 130, 246, 0.1) 0, transparent 34%),
    radial-gradient(circle at 4% 90%, rgba(16, 185, 129, 0.11) 0, transparent 38%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 246, 0.95));
  overflow: hidden;
}

.dashboard-command-shell--admin {
  background:
    radial-gradient(circle at 95% 8%, rgba(59, 130, 246, 0.13) 0, transparent 34%),
    radial-gradient(circle at 4% 90%, rgba(245, 158, 11, 0.14) 0, transparent 38%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.94));
}

.dashboard-command-shell--modules {
  background:
    radial-gradient(circle at 94% 10%, rgba(45, 212, 191, 0.15) 0, transparent 34%),
    radial-gradient(circle at 6% 90%, rgba(99, 102, 241, 0.1) 0, transparent 38%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(240, 249, 255, 0.94));
}

.dashboard-stage-card {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.dashboard-priority-bucket {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dashboard-priority-bucket .admin-command-kpi {
  font-size: 1.68rem;
}

.dashboard-priority-bucket:hover,
.dashboard-priority-bucket:focus {
  transform: translateY(-2px);
  border-color: rgba(14, 116, 144, 0.3);
  box-shadow: 0 16px 30px rgba(14, 116, 144, 0.14);
}

.dashboard-queue-list .dashboard-queue-item {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.1);
}

.dashboard-kpi-grid .kpi-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
  border-color: rgba(15, 23, 42, 0.1);
}

.dashboard-kpi-grid .kpi-card .h3 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: -0.01em;
}

.form-control,
.form-select {
  border-radius: 0.7rem;
  border-color: rgba(71, 85, 105, 0.3);
  min-height: 44px;
  background: var(--surface-1);
  color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
  border-color: #0c5f63;
  box-shadow: var(--focus-ring);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(12, 95, 99, 0.16);
}

.form-control::placeholder {
  color: color-mix(in srgb, var(--text-muted) 85%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  vertical-align: middle;
  border-radius: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  box-shadow: var(--focus-ring);
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #0c5f63, #0f766e);
  border-color: #0b5458;
  color: #f8fafc;
  box-shadow: 0 10px 22px rgba(12, 95, 99, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0b5458, #0d635d);
  border-color: #0a4d50;
  color: #f8fafc;
}

.btn-outline-primary {
  color: #0c5f63;
  border-color: rgba(12, 95, 99, 0.42);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #f8fafc;
  background: linear-gradient(135deg, #0c5f63, #0f766e);
  border-color: rgba(12, 95, 99, 0.58);
}

.text-bg-primary {
  background-color: #0c5f63 !important;
  color: #f8fafc !important;
}

.btn-dark {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  border-color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.btn-dark:hover,
.btn-dark:focus {
  background: linear-gradient(135deg, #111c31, #243347);
  border-color: #111827;
}

.btn-outline-dark {
  border-color: rgba(15, 23, 42, 0.28);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.firm-signin-btn {
  font-weight: 600;
}

.table > :not(caption) > * > * {
  background-color: transparent;
  color: inherit;
  border-bottom-color: var(--card-border);
}

.table thead th {
  color: var(--text-muted);
  font-weight: 700;
}

.table tbody tr {
  transition: background-color 130ms ease;
}

.table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.list-group-item {
  border-color: var(--card-border);
  background: transparent;
}

.badge.text-bg-light {
  color: #334155 !important;
  background: #f8fafc !important;
}

.badge-soft-secondary {
  color: #334155 !important;
  background: rgba(148, 163, 184, 0.22) !important;
  border: 1px solid rgba(148, 163, 184, 0.38) !important;
}

.badge-sensitivity {
  border-width: 1px;
}

.badge-sensitivity-low {
  color: #166534 !important;
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(22, 163, 74, 0.35) !important;
}

.badge-sensitivity-high {
  color: #991b1b !important;
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(220, 38, 38, 0.34) !important;
}

.badge-sensitivity-neutral {
  color: #334155 !important;
  background: rgba(148, 163, 184, 0.2) !important;
  border-color: rgba(100, 116, 139, 0.34) !important;
}

.badge-live {
  color: #14532d !important;
  background: rgba(34, 197, 94, 0.2) !important;
  border: 1px solid rgba(22, 163, 74, 0.38) !important;
}

.inbox-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 0.34rem 0.62rem;
}

.inbox-channel-badge i {
  font-size: 0.82rem;
  opacity: 0.95;
}

.inbox-channel-badge-email {
  color: #1d4ed8 !important;
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.32) !important;
}

.inbox-channel-badge-web {
  color: #0c5f63 !important;
  background: rgba(12, 95, 99, 0.14) !important;
  border-color: rgba(12, 95, 99, 0.3) !important;
}

.alert {
  border-radius: 0.85rem;
  border-width: 1px;
}

.text-secondary {
  color: var(--text-muted) !important;
}

p.text-secondary,
ul.text-secondary,
ol.text-secondary,
.lead.text-secondary,
.text-secondary.lead {
  font-weight: 540;
}

.small.text-secondary,
.text-secondary.small {
  font-weight: 600;
}

.btn-outline-secondary {
  --bs-btn-color: var(--mono-second-dark);
  --bs-btn-border-color: rgba(46, 98, 96, 0.42);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--mono-normal);
  --bs-btn-hover-border-color: var(--mono-normal);
  --bs-btn-focus-shadow-rgb: 46, 98, 96;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--mono-darkest);
  --bs-btn-active-border-color: var(--mono-darkest);
  --bs-btn-disabled-color: rgba(38, 81, 79, 0.64);
  --bs-btn-disabled-border-color: rgba(46, 98, 96, 0.26);
  background-color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
  background-color: var(--mono-normal);
  border-color: var(--mono-normal);
  color: #fff;
}

.btn-outline-secondary.app-sidebar-toggle {
  background-color: rgba(255, 255, 255, 0.72);
  border-color: rgba(46, 98, 96, 0.42);
  color: var(--mono-second-dark);
}

.btn-outline-secondary.app-sidebar-toggle:hover,
.btn-outline-secondary.app-sidebar-toggle:focus-visible,
.btn-outline-secondary.app-sidebar-toggle:active,
.btn-outline-secondary.app-sidebar-toggle.active {
  background-color: var(--mono-normal);
  border-color: var(--mono-normal);
  color: #fff;
}

.btn-secondary {
  --bs-btn-bg: var(--mono-normal);
  --bs-btn-border-color: var(--mono-normal);
  --bs-btn-hover-bg: var(--mono-second-dark);
  --bs-btn-hover-border-color: var(--mono-second-dark);
  --bs-btn-active-bg: var(--mono-darkest);
  --bs-btn-active-border-color: var(--mono-darkest);
  --bs-btn-disabled-bg: rgba(46, 98, 96, 0.6);
  --bs-btn-disabled-border-color: rgba(46, 98, 96, 0.18);
  color: #fff;
  font-weight: 700;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(150deg, rgba(230, 244, 241, 0.85), rgba(248, 250, 252, 1) 50%, rgba(255, 242, 214, 0.85));
}

.auth-grid {
  min-height: 70vh;
}

.auth-info {
  padding: 2rem;
  background: linear-gradient(165deg, #0f172a, #14323a);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.auth-info::after {
  content: "";
  position: absolute;
  inset: auto -35% -35% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.auth-panel {
  background: rgba(255, 255, 255, 0.96);
  padding: 2rem;
}

.form-shell-header {
  margin-bottom: 1rem;
}

.form-shell-header h3,
.form-shell-header h4 {
  letter-spacing: -0.01em;
}

.form-label {
  letter-spacing: 0.005em;
}

.auth-info--timeline {
  display: flex;
  flex-direction: column;
}

.signup-kicker {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-timeline {
  display: grid;
  gap: 1rem;
}

.signup-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  position: relative;
}

.signup-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.88rem;
  top: 2.65rem;
  width: 1px;
  height: calc(100% + 0.2rem);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0.08));
}

.signup-step-marker {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-weight: 700;
  flex: 0 0 auto;
}

.signup-timeline-step--active .signup-step-marker {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.95), rgba(45, 212, 191, 0.92));
  border-color: rgba(153, 246, 228, 0.8);
  color: #042f2e;
  box-shadow: 0 10px 25px rgba(45, 212, 191, 0.24);
}

.signup-timeline-step h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: #f8fafc;
}

.signup-timeline-step p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.45;
}

.signup-trial-note {
  margin-top: auto;
  display: flex;
  gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.signup-trial-note-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  flex: 0 0 auto;
}

.signup-panel {
  position: relative;
  overflow: hidden;
}

.signup-panel::before {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(12, 95, 99, 0.08);
  pointer-events: none;
}

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

.signup-mini-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.signup-mini-step {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: rgba(248, 250, 252, 0.95);
  color: #475569;
  font-size: 0.83rem;
  font-weight: 600;
}

.signup-mini-step--active {
  background: linear-gradient(135deg, rgba(12, 95, 99, 0.12), rgba(45, 212, 191, 0.14));
  border-color: rgba(12, 95, 99, 0.24);
  color: #0b4b4e;
}

.signup-highlight {
  border: 1px solid rgba(12, 95, 99, 0.16);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 32%),
    linear-gradient(140deg, rgba(240, 249, 247, 0.95), rgba(255, 248, 235, 0.96));
}

.signup-highlight-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b4b4e;
  margin-bottom: 0.35rem;
}

.signup-role-grid {
  display: grid;
  gap: 0.75rem;
}

.signup-role-card {
  display: grid;
  grid-template-columns: auto 2.35rem 1fr;
  align-items: flex-start;
  gap: 0.72rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(248, 250, 252, 0.94);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.signup-role-card:hover,
.signup-role-card:focus-within,
.signup-role-card.is-selected {
  border-color: rgba(12, 95, 99, 0.42);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.signup-role-card:hover {
  transform: translateY(-1px);
}

.signup-role-card .form-check-input {
  margin-top: 0.34rem;
}

.signup-role-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(12, 95, 99, 0.1);
  color: #0b4b4e;
  flex: 0 0 auto;
}

.signup-role-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.signup-role-title {
  color: #0f172a;
  font-weight: 750;
  line-height: 1.25;
}

.signup-role-description {
  color: #64748b;
  font-size: 0.91rem;
  line-height: 1.48;
}

.demo-panel {
  min-height: 100%;
}

.demo-role-grid {
  grid-template-columns: 1fr;
}

.demo-approved-route {
  display: grid;
  gap: 1rem;
}

.demo-route-option {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 0.9rem;
  border: 1px solid rgba(12, 95, 99, 0.16);
  border-radius: 0.85rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 32%),
    linear-gradient(140deg, rgba(248, 250, 252, 0.96), rgba(238, 248, 246, 0.92));
}

.demo-route-marker {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.82rem;
  background: linear-gradient(145deg, rgba(12, 95, 99, 0.12), rgba(244, 182, 63, 0.18));
  color: #0b4b4e;
}

.demo-route-option h4 {
  font-size: 1.02rem;
  margin: 0 0 0.28rem;
}

.demo-route-option p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.ai-draft-create-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(12, 95, 99, 0.24);
  background:
    radial-gradient(circle at 95% 6%, rgba(15, 118, 110, 0.12) 0, transparent 34%),
    radial-gradient(circle at 4% 98%, rgba(245, 158, 11, 0.12) 0, transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 246, 0.9));
}

.ai-draft-create-card::before {
  content: "";
  position: absolute;
  inset: auto -140px -140px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(12, 95, 99, 0.09);
  filter: blur(1px);
  pointer-events: none;
}

.ai-draft-create-card .card-body {
  position: relative;
  z-index: 1;
}

.ai-draft-create-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ai-draft-create-intro {
  max-width: 760px;
}

.ai-draft-create-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(12, 95, 99, 0.34);
  background: rgba(12, 95, 99, 0.1);
  color: #0a5053;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.56rem;
  margin-bottom: 0.52rem;
}

.ai-draft-create-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.ai-draft-create-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(248, 250, 252, 0.86);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.58rem;
}

.ai-draft-create-form {
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
}

.ai-draft-section {
  border: 1px solid rgba(12, 95, 99, 0.18);
  border-radius: 0.96rem;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.92rem 0.95rem;
}

.ai-draft-section-title {
  margin-bottom: 0.68rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0b4f52;
}

.ai-draft-section .row {
  --bs-gutter-y: 0.75rem;
}

.ai-draft-field .form-label {
  margin-bottom: 0.32rem;
}

.ai-draft-field .form-control,
.ai-draft-field .form-select {
  background: #fff;
}

.ai-draft-field textarea.form-control {
  min-height: 132px;
}

.ai-draft-field .form-text {
  margin-top: 0.26rem;
}

.ai-draft-field .invalid-feedback {
  margin-top: 0.2rem;
}

.ai-draft-field--checkbox {
  border: 1px dashed rgba(12, 95, 99, 0.22);
  border-radius: 0.78rem;
  padding: 0.72rem 0.75rem;
  background: rgba(12, 95, 99, 0.04);
}

.ai-draft-submit-row {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 0.92rem;
}

.ai-draft-submit-row .btn {
  min-height: 2.8rem;
  min-width: 210px;
}

.ai-draft-submit-note {
  flex: 1 1 360px;
  margin: 0;
}

.landing-page {
  position: relative;
  padding: 0.75rem 0 2rem;
}

.landing-topbar {
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 0.75rem;
  background: rgba(12, 38, 44, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.65rem 0.8rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.landing-topbar-row {
  min-height: 2.4rem;
}

.landing-topbar-actions-wrap {
  min-width: 0;
  width: 100%;
}

.landing-topbar-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.landing-topbar-menu-toggle {
  border-radius: 0.7rem;
}

.landing-topbar-actions > * {
  width: 100%;
  min-width: 0;
}

.landing-topbar-actions .btn {
  border-radius: 999px;
  width: 100%;
  white-space: normal;
  min-height: 2.3rem;
  font-weight: 650;
}

.landing-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 8.4rem));
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 4rem;
  background-image: var(--landing-hero-image);
  background-size: cover;
  background-position: center;
  color: #f8fafc;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 24, 30, 0.86) 0%, rgba(10, 24, 30, 0.64) 48%, rgba(10, 24, 30, 0.24) 100%);
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.landing-hero .hero-pill {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #e5f6f2;
}

.landing-hero .landing-title {
  max-width: 14ch;
  color: #ffffff;
}

.landing-hero-subtitle {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: rgba(248, 250, 252, 0.88);
  font-size: 1.18rem;
  line-height: 1.65;
}

.landing-hero-route {
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: 1.5rem;
  max-width: 680px;
}

.landing-hero-route > div {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.6rem;
  padding: 0.78rem 0.9rem;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.landing-hero-route span {
  display: block;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-hero-route strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.25;
  margin-top: 0.12rem;
}

.landing-hero-route > i {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.landing-hero .hero-cta-group .btn {
  border-radius: 999px;
  font-weight: 700;
}

.landing-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: rgba(248, 250, 252, 0.92);
}

.landing-hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.44rem 0.72rem;
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.9rem;
  font-weight: 650;
}

.landing-start-hero {
  position: relative;
  min-height: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.8rem, 1.6vw, 1.15rem);
  align-items: start;
  padding: clamp(1.1rem, 2.6vw, 2.35rem);
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.94) 54%, rgba(247, 250, 249, 0.78) 100%),
    var(--landing-hero-image) center / cover;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.landing-start-copy {
  max-width: 52rem;
}

.landing-start-copy .landing-title {
  max-width: 18ch;
  font-size: 3.05rem;
  line-height: 0.98;
}

.landing-start-copy .hero-pill {
  margin-bottom: 0.55rem !important;
}

.landing-start-subtitle {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
  max-width: 44rem;
}

.landing-start-flow {
  --start-line: rgba(12, 95, 99, 0.24);
  --start-active: #0c5f63;
  --start-warm: #f4b63f;
  --start-panel: rgba(255, 255, 255, 0.82);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
  padding: 3.35rem 0 0.65rem;
}

.landing-start-flow::before {
  content: "";
  position: absolute;
  top: 4.45rem;
  left: calc(12.5% - 1rem);
  right: calc(12.5% - 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--start-active), rgba(244, 182, 63, 0.72), var(--start-line));
}

.landing-start-flow::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1.35rem;
  left: 25%;
  right: 25%;
  height: 3.1rem;
  border-top: 2px solid rgba(12, 95, 99, 0.28);
  border-right: 2px solid rgba(12, 95, 99, 0.34);
  border-left: 2px solid rgba(244, 182, 63, 0.9);
  border-bottom: 0;
  border-radius: 1.35rem 1.35rem 0 0;
  background:
    radial-gradient(circle, rgba(244, 182, 63, 0.92) 0 3px, rgba(244, 182, 63, 0.18) 3.5px 6px, transparent 6.5px) 0 100% / 14px 14px no-repeat,
    radial-gradient(circle, rgba(12, 95, 99, 0.5) 0 3px, rgba(12, 95, 99, 0.12) 3.5px 6px, transparent 6.5px) 100% 100% / 14px 14px no-repeat;
}

.landing-start-node {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.38rem;
  justify-items: center;
  align-items: start;
  min-height: 5rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
  color: inherit;
}

.landing-start-node:focus-visible {
  outline: 3px solid rgba(12, 95, 99, 0.2);
  outline-offset: 0.35rem;
  border-radius: 0.9rem;
}

.landing-start-marker {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #eef7f5);
  border: 2px solid rgba(12, 95, 99, 0.26);
  color: var(--start-active);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.13), inset 0 0 0 4px rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.landing-start-node:hover .landing-start-marker,
.landing-start-node:focus-visible .landing-start-marker {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18), inset 0 0 0 4px rgba(255, 255, 255, 0.74);
}

.landing-start-node.active .landing-start-marker {
  background: linear-gradient(145deg, var(--start-active), #16817d);
  color: #ffffff;
  border-color: var(--start-active);
  box-shadow: 0 18px 34px rgba(12, 95, 99, 0.28), 0 0 0 6px rgba(12, 95, 99, 0.12);
}

.landing-start-marker,
.landing-start-summary {
  position: relative;
  z-index: 1;
}

.landing-demo-branch {
  position: absolute;
  top: 0.28rem;
  left: calc(50% - 1.075rem);
  z-index: 3;
  display: inline-grid;
  grid-template-columns: 2.15rem minmax(0, 15rem);
  gap: 0.6rem;
  align-items: center;
  color: #184947;
  text-decoration: none;
}

.landing-demo-branch::before {
  content: "";
  display: none;
  position: absolute;
  z-index: 0;
  left: 1.1rem;
  top: 1.05rem;
  width: 0;
  height: 3.14rem;
  border-left: 2px solid rgba(244, 182, 63, 0.9);
}

.landing-demo-branch > span {
  position: relative;
  z-index: 1;
}

.landing-demo-branch-dot {
  position: relative;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(244, 182, 63, 0.72);
  background: linear-gradient(145deg, #fffaf0, #fef3c7);
  color: #9a6700;
  box-shadow: 0 0 0 7px rgba(244, 182, 63, 0.16), 0 14px 28px rgba(180, 83, 9, 0.18);
}

.landing-demo-branch-dot::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: inherit;
  border: 1px solid rgba(244, 182, 63, 0.3);
}

.landing-demo-branch strong,
.landing-demo-branch small {
  display: block;
}

.landing-demo-branch strong {
  color: #123836;
  font-weight: 800;
  line-height: 1.04;
}

.landing-demo-branch small {
  color: var(--text-muted);
  line-height: 1.2;
}

.landing-demo-branch:hover,
.landing-demo-branch:focus-visible {
  color: #0c5f63;
  transform: translateY(-1px);
}

.landing-demo-branch:hover .landing-demo-branch-dot,
.landing-demo-branch:focus-visible .landing-demo-branch-dot {
  box-shadow: 0 14px 26px rgba(180, 83, 9, 0.2);
}

.landing-start-hero.is-known-user .landing-start-node.active .landing-start-marker {
  background: linear-gradient(145deg, #f4b63f, #f97316);
  border-color: #f4b63f;
  color: #1f2937;
  box-shadow: 0 18px 34px rgba(244, 182, 63, 0.28), 0 0 0 6px rgba(244, 182, 63, 0.16);
}

.landing-start-summary {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.landing-start-summary > span {
  color: #102f2e;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.landing-start-summary small {
  color: var(--text-muted);
  line-height: 1.2;
}

.landing-start-panels {
  position: relative;
  min-height: 7rem;
}

.landing-start-panel {
  margin: 0.1rem 0 0;
  padding: clamp(0.82rem, 1.6vw, 1.05rem);
  border: 1px solid rgba(12, 95, 99, 0.16);
  border-radius: 0.8rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 246, 0.84)),
    var(--start-panel);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.landing-start-panel.active {
  display: flex;
}

.landing-start-panel p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48rem;
  font-size: 0.96rem;
  line-height: 1.38;
}

.landing-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.24rem;
  color: #0c5f63;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.landing-start-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border-radius: 999px;
  font-weight: 700;
  min-height: 2.32rem;
  white-space: normal;
}

.organization-type-tooltip {
  position: relative;
}

.organization-type-tooltip::after {
  content: attr(data-role-hint);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  z-index: 5;
  width: max-content;
  max-width: min(18rem, 78vw);
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(18, 47, 45, 0.14);
  border-radius: 0.6rem;
  background: #ffffff;
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.14);
  color: #1f4543;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.25rem);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.organization-type-tooltip:hover::after,
.organization-type-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.landing-login-switcher {
  width: min(100%, 34rem);
  display: grid;
  gap: 0.72rem;
}

.landing-login-toggle {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.landing-login-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.42rem;
  min-width: 2.42rem;
  min-height: 2.32rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(71, 85, 105, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #295b58;
  line-height: 1.15;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.landing-login-toggle button i {
  font-size: 1rem;
  line-height: 1;
}

.landing-login-toggle button:hover,
.landing-login-toggle button:focus-visible {
  color: #0c5f63;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(12, 95, 99, 0.14);
  transform: translateY(-1px);
}

.landing-login-toggle button:focus-visible {
  outline: 3px solid rgba(12, 95, 99, 0.18);
  outline-offset: 0.16rem;
}

.landing-login-toggle button.active {
  display: none;
}

.landing-login-switcher .tab-content {
  width: 100%;
}

.landing-login-switcher .tab-pane {
  min-height: 4.9rem;
}

.landing-inline-login {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 13rem) auto;
  gap: 0.65rem;
  align-items: end;
}

.landing-inline-login .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f4543;
}

.landing-inline-login .form-control {
  border-radius: 0.65rem;
  min-height: 2.55rem;
}

.landing-start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  grid-column: 1 / -1;
  font-size: 0.93rem;
  font-weight: 650;
}

.landing-hidden-sections[hidden] {
  display: none !important;
}

.landing-demo-dropdown .dropdown-toggle {
  width: 100%;
}

.landing-demo-dropdown .dropdown-menu {
  min-width: 12.5rem;
}

.landing-brand-wrap {
  border: 1px solid rgba(12, 95, 99, 0.22);
  border-radius: 999px;
  padding: 0.38rem 0.92rem 0.38rem 0.5rem;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.94), rgba(231, 246, 242, 0.9));
  box-shadow: 0 10px 24px rgba(12, 95, 99, 0.13), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-brand-wrap:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 95, 99, 0.36);
  box-shadow: 0 14px 26px rgba(12, 95, 99, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.landing-brand {
  line-height: 1;
  background: linear-gradient(108deg, #0f172a 0%, #0c5f63 58%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pill {
  display: inline-block;
  border: 1px solid rgba(12, 95, 99, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-weight: 600;
  color: #115e59;
  background: rgba(230, 244, 241, 0.92);
}

.landing-title {
  max-width: 16ch;
}

.hero-cta-group .btn {
  border-radius: 0.9rem;
}

.cta-primary {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.24);
}

.cta-primary:hover {
  transform: translateY(-1px);
}

.stat-chip {
  border: 1px solid var(--card-border);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.95rem;
  box-shadow: var(--elev-1);
}

.hero-console {
  background: linear-gradient(180deg, #ffffff, #f2f7f8);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.console-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem 0.85rem;
}

.console-note {
  border-radius: 0.75rem;
  background: var(--brand-soft);
  border: 1px dashed rgba(12, 95, 99, 0.45);
  color: #134e4a;
  padding: 0.75rem;
  font-weight: 600;
}

.feature-card {
  background: #fff;
  padding: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-media {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 1rem;
  background: #f8fafc;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-2);
}

.feature-card:hover .feature-media img {
  transform: scale(1.025);
}

.icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--brand-soft);
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(12, 95, 99, 0.15);
}

.icon-wrap i,
.usecase-icon i,
.sidebar .nav-link i,
.app-topbar .bi {
  transform: translateZ(0);
}

.workflow-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 1.5rem;
}

.cta-strip {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(230, 244, 241, 0.9), rgba(255, 250, 236, 0.94));
  padding: 1.3rem;
  box-shadow: var(--elev-1);
}

.step-pill {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
}

.step-pill span {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
  font-size: 0.8rem;
}

.section-card {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: var(--elev-1);
  background: #fff;
}

.automations-shell {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.automations-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(12, 95, 99, 0.22);
  background:
    radial-gradient(circle at 96% 8%, rgba(37, 99, 235, 0.1) 0, transparent 32%),
    radial-gradient(circle at 6% 94%, rgba(16, 185, 129, 0.14) 0, transparent 34%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 246, 0.95));
}

.automations-hero::before {
  content: "";
  position: absolute;
  inset: auto -130px -145px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(12, 95, 99, 0.08);
  pointer-events: none;
}

.automations-hero .card-body {
  position: relative;
  z-index: 1;
}

.automations-hero-copy {
  max-width: 760px;
}

.automations-hero-icon {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 95, 99, 0.14);
  color: #0c5f63;
  border: 1px solid rgba(12, 95, 99, 0.26);
}

.automations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.automations-actions .btn {
  min-height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.automations-kpi-grid .admin-command-item {
  min-height: 100%;
}

.automations-note-banner {
  border-color: rgba(14, 116, 144, 0.22);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(219, 234, 254, 0.82));
}

.automations-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.92));
}

.automations-form-shell form > .mb-3:last-of-type {
  margin-bottom: 1rem !important;
}

.automations-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(248, 250, 252, 0.72);
  --bs-table-border-color: rgba(15, 23, 42, 0.08);
}

.automations-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom-width: 1px;
}

.automations-list .list-group-item {
  border-color: rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.82);
}

.automations-list .list-group-item:first-child {
  border-top-left-radius: 0.74rem;
  border-top-right-radius: 0.74rem;
}

.automations-list .list-group-item:last-child {
  border-bottom-left-radius: 0.74rem;
  border-bottom-right-radius: 0.74rem;
}

.about-hero {
  background: linear-gradient(135deg, rgba(12, 95, 99, 0.08), rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.1));
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 95, 99, 0.3);
  background: rgba(230, 244, 241, 0.95);
  color: #115e59;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.34rem 0.72rem;
}

.about-value-card,
.about-point-card,
.about-principle-card {
  border: 1px solid var(--card-border);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: var(--elev-1);
  padding: 1rem;
}

.about-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  background: rgba(12, 95, 99, 0.14);
  color: #0c5f63;
}

.legal-doc h2 {
  letter-spacing: 0.01em;
}

.legal-nav {
  background: linear-gradient(120deg, rgba(230, 244, 241, 0.86), rgba(255, 250, 236, 0.85));
}

.settings-card {
  position: relative;
  overflow: hidden;
}

.settings-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(12, 95, 99, 0.8), rgba(37, 99, 235, 0.72), rgba(245, 158, 11, 0.68));
}

.faq-teaser-card {
  border: 1px solid var(--card-border);
  border-radius: 0.9rem;
  padding: 1rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.landing-live-card {
  animation: landing-card-float 420ms ease both;
}

.landing-live-card--delay-1 {
  animation-delay: 60ms;
}

.landing-live-card--delay-2 {
  animation-delay: 140ms;
}

@keyframes landing-card-float {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.usecase-card {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: linear-gradient(160deg, #ffffff, #f8fafc);
  box-shadow: var(--elev-1);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.usecase-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% auto;
  width: 50%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 95, 99, 0.12) 0, rgba(12, 95, 99, 0) 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.usecase-card .feature-media {
  margin-bottom: 1.05rem;
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-2);
}

.usecase-card:hover .feature-media img {
  transform: scale(1.03);
}

.usecase-card:hover::after {
  opacity: 1;
}

.usecase-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-accent);
}

.faq-page {
  min-height: calc(100vh - 90px);
}

.faq-hero {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--elev-1);
  background: #fff;
}

.faq-accordion-item {
  border: 1px solid var(--card-border);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: var(--elev-1);
}

.faq-answer-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  padding: 1rem;
  background: #fff;
}

.faq-qa-prefix {
  color: var(--mono-second-dark);
  font-weight: 800;
}

.faq-question-text {
  font-weight: 800;
  color: var(--mono-darkest);
}

.pricing-card {
  border-width: 1px;
}

.billing-plans-grid {
  align-items: stretch;
}

.billing-plan-card {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: var(--surface-1);
  box-shadow: var(--elev-1);
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.billing-plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.4));
}

.billing-plan-card--starter {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), #fff 30%);
}

.billing-plan-card--starter::before {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.95), rgba(125, 211, 252, 0.9));
}

.billing-plan-card--growth {
  background: linear-gradient(180deg, rgba(12, 95, 99, 0.09), #fff 30%);
}

.billing-plan-card--growth::before {
  background: linear-gradient(90deg, rgba(12, 95, 99, 0.95), rgba(45, 212, 191, 0.9));
}

.billing-plan-card--pro {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), #fff 30%);
}

.billing-plan-card--pro::before {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(251, 191, 36, 0.9));
}

.billing-plan-card--featured {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22), var(--elev-1);
}

.billing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  border-bottom: 1px dashed rgba(71, 85, 105, 0.25);
  padding-bottom: 0.7rem;
}

.plan-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.plan-icon--starter {
  background: rgba(14, 165, 233, 0.14);
  color: #0f4c68;
}

.plan-icon--growth {
  background: rgba(12, 95, 99, 0.16);
  color: #0a4e52;
}

.plan-icon--pro {
  background: rgba(245, 158, 11, 0.16);
  color: #7c4200;
}

.billing-price-value {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.billing-feature-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px dashed rgba(71, 85, 105, 0.2);
  padding: 0.56rem 0;
}

.billing-feature-list li:last-child {
  border-bottom: 0;
}

.billing-feature-list strong {
  font-weight: 600;
  max-width: 58%;
}

.onboarding-journey-card {
  border: 1px solid rgba(12, 95, 99, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.12), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(251, 191, 36, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 248, 0.96));
}

.onboarding-journey-hero {
  position: sticky;
  top: 1rem;
}

.onboarding-journey-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(12, 95, 99, 0.2);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: rgba(12, 95, 99, 0.08);
  color: #0b4b4e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.onboarding-timeline {
  display: grid;
  gap: 1rem;
}

.onboarding-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  position: relative;
}

.onboarding-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2.8rem;
  width: 1px;
  height: calc(100% + 0.25rem);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.42), rgba(148, 163, 184, 0.08));
}

.onboarding-timeline-marker {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  flex: 0 0 auto;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.onboarding-timeline-step--complete .onboarding-timeline-marker {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.92));
  border-color: rgba(16, 185, 129, 0.62);
  color: #ecfdf5;
}

.onboarding-timeline-step--current .onboarding-timeline-marker {
  background: linear-gradient(135deg, rgba(12, 95, 99, 0.92), rgba(15, 118, 110, 0.9));
  border-color: rgba(12, 95, 99, 0.5);
  color: #f8fafc;
}

.onboarding-timeline-step--pending .onboarding-timeline-marker {
  background: rgba(248, 250, 252, 0.92);
}

.onboarding-timeline-body {
  min-width: 0;
  flex: 1 1 auto;
}

.onboarding-timeline-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.28rem;
}

.billing-trial-helper {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid rgba(12, 95, 99, 0.14);
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  background: rgba(12, 95, 99, 0.06);
  color: #0b4b4e;
  font-size: 0.92rem;
}

.billing-module-bundle {
  border-top: 1px dashed rgba(71, 85, 105, 0.24);
  padding-top: 0.7rem;
}

.billing-module-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.42rem;
  line-height: 1.3;
}

.billing-module-list li:last-child {
  margin-bottom: 0;
}

.billing-module-list i {
  color: #0c5f63;
  font-size: 0.95rem;
  margin-top: 0.02rem;
}

.billing-module-list--billable i {
  color: #b45309;
}

.plans-matrix {
  border-collapse: separate;
  border-spacing: 0;
}

.plans-matrix thead th {
  font-weight: 700;
  background: #f8fafc;
  border-top: 1px solid var(--card-border);
}

.plans-matrix th,
.plans-matrix td {
  border-color: var(--card-border);
  vertical-align: middle;
  min-width: 180px;
}

.plans-matrix th:first-child,
.plans-matrix td:first-child {
  min-width: 200px;
}

.plan-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
}

.plan-table-scroll .plans-matrix {
  min-width: 940px;
}

.plan-col-heading {
  min-width: 220px;
}

.plans-matrix .plan-col--starter {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04));
}

.plans-matrix .plan-col--growth {
  background: linear-gradient(180deg, rgba(12, 95, 99, 0.12), rgba(12, 95, 99, 0.04));
}

.plans-matrix .plan-col--pro {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.05));
}

.plan-col-featured {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.2);
}

.plans-price {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.plans-matrix .btn {
  white-space: nowrap;
}

.app-filter-form {
  align-items: end;
}

.app-filter-form .form-control,
.app-filter-form .form-select {
  min-width: 178px;
}

.action-row .btn {
  white-space: nowrap;
}

.action-row,
.app-topbar-actions,
.public-header-actions,
.landing-topbar-actions,
.client-portal-header-actions,
.client-portal-mobile-tabs,
.hero-cta-group,
.mobile-sticky-wrap {
  align-items: center;
}

.action-row > .btn,
.app-topbar-actions > .btn,
.public-header-actions > .btn,
.landing-topbar-actions > .btn,
.client-portal-header-actions > .btn,
.client-portal-mobile-tabs > .btn,
.hero-cta-group > .btn,
.mobile-sticky-wrap > .btn,
.action-row > form .btn,
.app-topbar-actions > form .btn,
.public-header-actions > form .btn,
.landing-topbar-actions > form .btn,
.client-portal-header-actions > form .btn,
.client-portal-mobile-tabs > form .btn,
.hero-cta-group > form .btn,
.mobile-sticky-wrap > form .btn {
  justify-content: center;
  align-items: center;
}

.chart-shell {
  position: relative;
  height: 340px;
  min-height: 260px;
  max-height: 62vh;
}

.chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}

.analytics-kpi-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.01));
}

.analytics-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.05), rgba(5, 150, 105, 0.01));
}

.analytics-kpi-card--score {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.02));
}

.analytics-kpi-card--reminders {
  background: linear-gradient(180deg, rgba(12, 95, 99, 0.14), rgba(12, 95, 99, 0.03));
}

.analytics-kpi-card--noshow {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.11), rgba(220, 38, 38, 0.02));
}

.analytics-kpi-card--completion {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.02));
}

.analytics-kpi-card--sla {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.11), rgba(124, 58, 237, 0.02));
}

.analytics-kpi-card--backlog {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.02));
}

.analytics-card--ocean {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.02));
}

.analytics-card--emerald {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.03));
}

.analytics-card--violet {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.13), rgba(139, 92, 246, 0.03));
}

.analytics-card--amber {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03));
}

.analytics-card--rose {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.11), rgba(244, 63, 94, 0.03));
}

.analytics-card--teal {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(20, 184, 166, 0.03));
}

.analytics-card--cyan {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.11), rgba(6, 182, 212, 0.02));
}

.analytics-card--indigo {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.11), rgba(99, 102, 241, 0.02));
}

.analytics-card--sun {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.11), rgba(234, 88, 12, 0.02));
}

.analytics-card--mint {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.13), rgba(45, 212, 191, 0.03));
}

.dashboard-mini-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05), rgba(124, 58, 237, 0.01));
}

.dashboard-mini-card--gauge {
  background: linear-gradient(180deg, rgba(12, 95, 99, 0.13), rgba(12, 95, 99, 0.02));
}

.dashboard-mini-card--status {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.02));
}

.dashboard-mini-card--channel {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.02));
}

.analytics-card .card-body {
  display: flex;
  flex-direction: column;
}

.chart-shell--sm {
  height: 240px;
  min-height: 220px;
}

.chart-shell--md {
  height: 300px;
  min-height: 240px;
}

.chart-shell--lg {
  height: 360px;
  min-height: 260px;
}

.chart-shell--map {
  height: 380px;
  min-height: 260px;
}

.analytics-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #64748b;
  background: rgba(248, 250, 252, 0.86);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 0.75rem;
}

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding: 0.75rem 0.9rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.95) 35%, rgba(248, 250, 252, 0.98));
  backdrop-filter: blur(5px);
}

.mobile-sticky-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mobile-sticky-wrap .btn {
  border-radius: 0.8rem;
  min-height: 44px;
}

.app-footer {
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  border-top: 1px solid var(--card-border);
}

.app-footer-main {
  padding-bottom: 0.15rem;
}

.app-footer-copy {
  line-height: 1.2;
}

.app-footer-nav a {
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--card-border) 85%, transparent);
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  line-height: 1.15;
}

.app-footer a {
  color: var(--text-muted);
}

.app-footer a:hover,
.app-footer a:focus {
  color: var(--text-main);
}

.app-footer-note {
  margin-top: 0.04rem;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.58;
}

.assistant-root {
  --assistant-base-bottom: 1.25rem;
  --assistant-footer-offset: 0px;
  position: fixed;
  right: 1rem;
  bottom: calc(var(--assistant-base-bottom) + var(--assistant-footer-offset) + env(safe-area-inset-bottom));
  z-index: 1060;
}

.assistant-toggle {
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.assistant-panel {
  width: min(380px, calc(100vw - 1.6rem));
  margin-top: 0.65rem;
  padding: 0.9rem;
}

.assistant-header {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.assistant-messages {
  height: 300px;
  overflow-y: auto;
  padding: 0.65rem 0.2rem 0.25rem;
}

.assistant-message {
  margin-bottom: 0.7rem;
  display: flex;
}

.assistant-message--user {
  justify-content: flex-end;
}

.assistant-message--bot {
  justify-content: flex-start;
}

.assistant-bubble {
  max-width: 92%;
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: #f8fafc;
}

.assistant-message--user .assistant-bubble {
  background: #0f172a;
  border-color: #0f172a;
  color: #f8fafc;
}

.assistant-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.assistant-chip {
  border-radius: 999px;
}

.assistant-primary-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.assistant-primary-action .btn {
  margin-top: 0 !important;
}

.assistant-response-links,
.assistant-response-topics {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.assistant-response-topics {
  margin-top: 0.85rem !important;
}

[data-bs-theme="dark"] {
  --bs-primary: #2dd4bf;
  --bs-primary-rgb: 45, 212, 191;
  --bs-primary-text-emphasis: #99f6e4;
  --bs-primary-bg-subtle: rgba(45, 212, 191, 0.2);
  --bs-primary-border-subtle: rgba(45, 212, 191, 0.44);
  --bs-link-color: #5eead4;
  --bs-link-hover-color: #99f6e4;
}

[data-bs-theme="dark"] body {
  --brand-ink: #d7eeea;
  --brand-accent: #8ccfca;
  --bs-body-color: #e2f0ee;
  --bs-body-color-rgb: 226, 240, 238;
  --bs-emphasis-color: #f6fffd;
  --bs-emphasis-color-rgb: 246, 255, 253;
  --bs-secondary: #9ccfca;
  --bs-secondary-rgb: 156, 207, 202;
  --bs-secondary-color: #c0ded9;
  --bs-secondary-color-rgb: 192, 222, 217;
  --bs-secondary-text-emphasis: #d7eeea;
  --bs-secondary-bg: #183331;
  --bs-secondary-bg-rgb: 24, 51, 49;
  --bs-secondary-bg-subtle: rgba(46, 98, 96, 0.26);
  --bs-secondary-border-subtle: rgba(156, 207, 202, 0.38);
  --surface-0: #020617;
  --surface-1: #0b1220;
  --surface-2: #111827;
  --surface-muted: #0f172a;
  --text-main: #e2e8f0;
  --text-muted: #bcd9d5;
  --card-bg: #0b1220;
  --card-border: rgba(148, 163, 184, 0.24);
  --elev-1: 0 10px 24px rgba(2, 6, 23, 0.56);
  --elev-2: 0 18px 40px rgba(2, 6, 23, 0.68);
  --focus-ring: 0 0 0 0.2rem rgba(56, 189, 248, 0.24);
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12) 0, transparent 33%),
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.08) 0, transparent 28%),
    linear-gradient(180deg, #0f172a, #020617);
}

[data-bs-theme="dark"] body.landing-body {
  background:
    radial-gradient(circle at 8% 6%, rgba(45, 212, 191, 0.16) 0, transparent 34%),
    radial-gradient(circle at 95% 5%, rgba(251, 191, 36, 0.16) 0, transparent 30%),
    linear-gradient(180deg, #0f172a, #020617);
}

[data-bs-theme="dark"] .assistant-response-links,
[data-bs-theme="dark"] .assistant-response-topics {
  border-top-color: rgba(156, 207, 202, 0.18);
}

[data-bs-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #111827, #0f172a);
  border-right-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .platform-admin-topbar {
  background: linear-gradient(125deg, rgba(15, 23, 42, 0.96), rgba(14, 28, 43, 0.94));
}

[data-bs-theme="dark"] .platform-admin-nav .nav-link {
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
}

[data-bs-theme="dark"] .platform-admin-nav .nav-link.active {
  border-color: rgba(94, 234, 212, 0.52);
  color: #f8fafc;
  background: linear-gradient(120deg, rgba(12, 95, 99, 0.92), rgba(15, 118, 110, 0.92));
}

[data-bs-theme="dark"] .nav-link {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link:focus {
  background-color: #1e293b;
  color: #fff;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color: #c0ded9;
  --bs-btn-border-color: rgba(156, 207, 202, 0.44);
  --bs-btn-hover-color: #102321;
  --bs-btn-hover-bg: #9ccfca;
  --bs-btn-hover-border-color: #9ccfca;
  --bs-btn-focus-shadow-rgb: 156, 207, 202;
  --bs-btn-active-color: #102321;
  --bs-btn-active-bg: #d7eeea;
  --bs-btn-active-border-color: #d7eeea;
  --bs-btn-disabled-color: rgba(192, 222, 217, 0.6);
  --bs-btn-disabled-border-color: rgba(156, 207, 202, 0.22);
  background-color: rgba(24, 51, 49, 0.36);
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus-visible,
[data-bs-theme="dark"] .btn-outline-secondary:active,
[data-bs-theme="dark"] .btn-outline-secondary.active {
  background-color: #9ccfca;
  border-color: #9ccfca;
  color: #102321;
}

[data-bs-theme="dark"] .btn-outline-secondary.app-sidebar-toggle {
  background-color: #9ccfca;
  border-color: #9ccfca;
  color: #102321;
}

[data-bs-theme="dark"] .btn-outline-secondary.app-sidebar-toggle:hover,
[data-bs-theme="dark"] .btn-outline-secondary.app-sidebar-toggle:focus-visible,
[data-bs-theme="dark"] .btn-outline-secondary.app-sidebar-toggle:active,
[data-bs-theme="dark"] .btn-outline-secondary.app-sidebar-toggle.active {
  background-color: rgba(24, 51, 49, 0.36);
  border-color: rgba(156, 207, 202, 0.44);
  color: #c0ded9;
}

[data-bs-theme="dark"] .btn-secondary {
  --bs-btn-color: #102321;
  --bs-btn-bg: #9ccfca;
  --bs-btn-border-color: #9ccfca;
  --bs-btn-hover-color: #102321;
  --bs-btn-hover-bg: #d7eeea;
  --bs-btn-hover-border-color: #d7eeea;
  --bs-btn-active-color: #102321;
  --bs-btn-active-bg: #b8ddd8;
  --bs-btn-active-border-color: #b8ddd8;
}

[data-bs-theme="dark"] .sidebar .nav-link.is-active {
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.16), rgba(45, 212, 191, 0.18));
  color: #dcfce7;
  border-color: rgba(74, 222, 128, 0.3);
}

[data-bs-theme="dark"] .sidebar .nav-link.is-plan-locked {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(100, 116, 139, 0.45);
}

[data-bs-theme="dark"] .sidebar .nav-link i {
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

[data-bs-theme="dark"] .sidebar .nav-link:hover i,
[data-bs-theme="dark"] .sidebar .nav-link:focus i {
  background: rgba(56, 189, 248, 0.24);
  color: #e0f2fe;
}

[data-bs-theme="dark"] .sidebar .nav-link.is-active i {
  background: rgba(74, 222, 128, 0.22);
  color: #dcfce7;
}

[data-bs-theme="dark"] .sidebar .nav-link.is-plan-locked:hover,
[data-bs-theme="dark"] .sidebar .nav-link.is-plan-locked:focus {
  background: rgba(30, 41, 59, 0.92);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .sidebar .nav-link.is-plan-locked i {
  background: rgba(100, 116, 139, 0.22);
  color: #cbd5e1;
}

[data-bs-theme="dark"] .sidebar .nav-link.is-plan-locked:hover i,
[data-bs-theme="dark"] .sidebar .nav-link.is-plan-locked:focus i {
  background: rgba(100, 116, 139, 0.3);
  color: #f8fafc;
}

[data-bs-theme="dark"] .sidebar-section-title {
  color: #93a4bc;
}

[data-bs-theme="dark"] .sidebar-link-badge {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.28);
  color: #bae6fd;
}

[data-bs-theme="dark"] .sidebar-priority-glance {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(17, 24, 39, 0.95));
  border-color: rgba(56, 189, 248, 0.22);
}

[data-bs-theme="dark"] .sidebar-priority-stat {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .sidebar-priority-stat strong {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .client-portal-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.14) 0, transparent 34%),
    radial-gradient(circle at 98% 2%, rgba(96, 165, 250, 0.14) 0, transparent 35%),
    radial-gradient(circle at 94% 95%, rgba(251, 191, 36, 0.1) 0, transparent 28%),
    linear-gradient(180deg, #0f172a, #020617);
}

[data-bs-theme="dark"] .client-portal-sidebar-card {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(165deg, rgba(11, 18, 32, 0.96), rgba(15, 35, 43, 0.9));
}

[data-bs-theme="dark"] .client-portal-mini-stat {
  background: rgba(15, 23, 42, 0.76);
  border-color: rgba(148, 163, 184, 0.26);
  color: #cbd5e1;
}

[data-bs-theme="dark"] .client-portal-mini-stat strong {
  color: #f8fafc;
}

[data-bs-theme="dark"] .client-portal-nav .nav-link {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .client-portal-nav .nav-link i {
  background: rgba(56, 189, 248, 0.2);
  color: #d6f3ff;
}

[data-bs-theme="dark"] .client-portal-nav .nav-link:hover,
[data-bs-theme="dark"] .client-portal-nav .nav-link:focus {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.45);
}

[data-bs-theme="dark"] .client-portal-nav .nav-link.active,
[data-bs-theme="dark"] .client-portal-nav .nav-link.show {
  background: linear-gradient(125deg, rgba(12, 95, 99, 0.9), rgba(15, 118, 110, 0.92));
  border-color: rgba(94, 234, 212, 0.5);
}

[data-bs-theme="dark"] .client-portal-mobile-tabs .nav-link {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .client-portal-mobile-tabs .nav-link.active,
[data-bs-theme="dark"] .client-portal-mobile-tabs .nav-link.show {
  background: linear-gradient(125deg, rgba(12, 95, 99, 0.9), rgba(15, 118, 110, 0.92));
  border-color: rgba(94, 234, 212, 0.5);
}

[data-bs-theme="dark"] .client-portal-welcome-brand {
  border-color: #9ccfca;
  background: #9ccfca;
  box-shadow: 0 10px 22px rgba(156, 207, 202, 0.14);
  color: #102321;
}

[data-bs-theme="dark"] .client-portal-welcome-brand .brand-wordmark {
  color: currentColor;
}

[data-bs-theme="dark"] .client-portal-welcome-brand:hover,
[data-bs-theme="dark"] .client-portal-welcome-brand:focus-visible {
  border-color: rgba(156, 207, 202, 0.44);
  background: rgba(24, 51, 49, 0.36);
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.55), inset 0 0 0 1px rgba(217, 239, 236, 0.18);
  color: #c0ded9;
}

[data-bs-theme="dark"] .client-portal-welcome-title {
  color: #e2f2ef;
}

[data-bs-theme="dark"] .client-portal-welcome-subtitle {
  color: #bcd9d5 !important;
}

[data-bs-theme="dark"] .client-portal-assigned {
  border-top-color: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .client-portal-header {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(132deg, rgba(11, 18, 32, 0.96), rgba(19, 38, 47, 0.92));
}

[data-bs-theme="dark"] .client-portal-header::before {
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.78), rgba(129, 140, 248, 0.72), rgba(251, 191, 36, 0.62));
}

[data-bs-theme="dark"] .client-portal-stat-card--link {
  border-color: rgba(45, 212, 191, 0.44);
  background: linear-gradient(145deg, rgba(11, 18, 32, 0.96), rgba(15, 35, 43, 0.9));
}

[data-bs-theme="dark"] .client-portal-stat-card--link .display-6 {
  color: #9af0cf;
}

[data-bs-theme="dark"] .client-portal-stat-card-link-label {
  color: #99f6e4;
}

[data-bs-theme="dark"] .client-portal-stat-card--link:hover,
[data-bs-theme="dark"] .client-portal-stat-card--link:focus-visible {
  border-color: rgba(94, 234, 212, 0.62);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.48);
}

[data-bs-theme="dark"] .client-procedures-card {
  border-color: rgba(94, 234, 212, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.12), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
}

[data-bs-theme="dark"] .client-procedure-card,
[data-bs-theme="dark"] .client-procedure-switch-link {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.68);
  color: #f8fafc;
}

[data-bs-theme="dark"] .client-procedure-card.is-selected,
[data-bs-theme="dark"] .client-procedure-switch-link.is-selected {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(20, 83, 75, 0.32);
}

[data-bs-theme="dark"] .client-procedure-pill {
  border-color: rgba(94, 234, 212, 0.24);
  background: rgba(20, 83, 75, 0.34);
  color: #ccfbf1;
}

[data-bs-theme="dark"] .client-procedure-switch-link small {
  color: #bcd9d5;
}

[data-bs-theme="dark"] .client-procedure-switch-link:hover,
[data-bs-theme="dark"] .client-procedure-switch-link:focus-visible {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(20, 83, 75, 0.44);
  color: #f8fafc;
}

[data-bs-theme="dark"] .procedure-timeline-progress-pill {
  border-color: rgba(94, 234, 212, 0.32);
  background: linear-gradient(135deg, rgba(12, 95, 99, 0.42), rgba(30, 64, 175, 0.35));
  color: #ccfbf1;
}

[data-bs-theme="dark"] .procedure-timeline {
  --timeline-active: #2dd4bf;
  --timeline-complete: #34d399;
  --timeline-upcoming: #64748b;
  --timeline-line: rgba(100, 116, 139, 0.42);
}

[data-bs-theme="dark"] .procedure-timeline-date {
  color: #bfdbfe;
}

[data-bs-theme="dark"] .procedure-timeline-node {
  border-color: #0f172a;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.48);
}

[data-bs-theme="dark"] .procedure-timeline-hover-card {
  border-color: rgba(94, 234, 212, 0.24);
  background: rgba(15, 23, 42, 0.98);
  color: #cbd5e1;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.48);
}

[data-bs-theme="dark"] .procedure-timeline-label,
[data-bs-theme="dark"] .procedure-timeline-detail h6 {
  color: #f8fafc;
}

[data-bs-theme="dark"] .procedure-timeline-detail {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.42);
}

[data-bs-theme="dark"] .procedure-timeline-detail-arrow {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.96);
}

[data-bs-theme="dark"] .procedure-timeline-detail-icon {
  color: #67e8f9;
}

[data-bs-theme="dark"] .procedure-view-header {
  border-color: rgba(94, 234, 212, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 212, 191, 0.13), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
}

[data-bs-theme="dark"] .procedure-view-summary-card,
[data-bs-theme="dark"] .procedure-view-details {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.42);
}

[data-bs-theme="dark"] .procedure-view-fact-list > div,
[data-bs-theme="dark"] .procedure-view-next-action,
[data-bs-theme="dark"] .procedure-view-section {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.62);
}

[data-bs-theme="dark"] .procedure-view-fact-list strong,
[data-bs-theme="dark"] .procedure-view-step-title,
[data-bs-theme="dark"] .procedure-view-section h3 {
  color: #f8fafc;
}

[data-bs-theme="dark"] .procedure-view-step-brief,
[data-bs-theme="dark"] .procedure-view-section li,
[data-bs-theme="dark"] .procedure-view-fact-list span {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .procedure-view-marker {
  border-color: #0f172a;
}

[data-bs-theme="dark"] .procedure-view-panel {
  border-top-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .document-generator-hero,
[data-bs-theme="dark"] .document-generator-side-panel,
[data-bs-theme="dark"] .document-generator-compose-card,
[data-bs-theme="dark"] .document-generator-history-card,
[data-bs-theme="dark"] .document-generator-output-card,
[data-bs-theme="dark"] .document-generator-empty-state,
[data-bs-theme="dark"] .document-generator-neutral-panel {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.42);
}

[data-bs-theme="dark"] .document-generator-empty-icon,
[data-bs-theme="dark"] .document-output-placeholder i {
  background: rgba(45, 212, 191, 0.13);
  color: #99f6e4;
}

[data-bs-theme="dark"] .document-generator-matter-link,
[data-bs-theme="dark"] .document-generator-fact-list > div,
[data-bs-theme="dark"] .document-generator-status-note,
[data-bs-theme="dark"] .document-generator-draft-card,
[data-bs-theme="dark"] .document-generator-template-item,
[data-bs-theme="dark"] .document-generator-template-sample,
[data-bs-theme="dark"] .document-output-placeholder,
[data-bs-theme="dark"] .document-generator-visibility-check {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.62);
}

[data-bs-theme="dark"] .document-generator-matter-link strong,
[data-bs-theme="dark"] .document-generator-fact-list strong,
[data-bs-theme="dark"] .document-generator-template-item .fw-semibold,
[data-bs-theme="dark"] .document-generator-draft-card .fw-semibold,
[data-bs-theme="dark"] .document-generator-hero h1,
[data-bs-theme="dark"] .document-generator-empty-state h2,
[data-bs-theme="dark"] .document-generator-output-toolbar h2,
[data-bs-theme="dark"] .document-output-placeholder h3,
[data-bs-theme="dark"] .document-generator-side-panel h2,
[data-bs-theme="dark"] .document-generator-side-panel h3,
[data-bs-theme="dark"] .document-generator-visibility-check strong {
  color: #f8fafc;
}

[data-bs-theme="dark"] .document-generator-matter-link small,
[data-bs-theme="dark"] .document-generator-fact-list span,
[data-bs-theme="dark"] .document-generator-template-sample,
[data-bs-theme="dark"] .document-generator-draft-card,
[data-bs-theme="dark"] .document-generator-template-item,
[data-bs-theme="dark"] .document-generator-hero p,
[data-bs-theme="dark"] .document-generator-empty-state p,
[data-bs-theme="dark"] .document-output-placeholder p,
[data-bs-theme="dark"] .document-generator-visibility-check small,
[data-bs-theme="dark"] .document-generator-neutral-panel {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .document-generator-law-chip {
  border-color: rgba(45, 212, 191, 0.26);
  background: rgba(12, 95, 99, 0.35);
  color: #99f6e4;
}

[data-bs-theme="dark"] .document-generator-compose-footer,
[data-bs-theme="dark"] .document-generator-history-group + .document-generator-history-group {
  border-top-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .document-output-paper {
  border-color: rgba(148, 163, 184, 0.2);
  background: #f8fafc;
}

[data-bs-theme="dark"] .client-guidance-overview-card {
  border-color: rgba(96, 165, 250, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.12), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
}

[data-bs-theme="dark"] .client-guidance-overview-chat {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(2, 6, 23, 0.24);
}

[data-bs-theme="dark"] .client-guidance-overview-bubble {
  border-color: rgba(45, 212, 191, 0.26);
  background: rgba(12, 95, 99, 0.35);
}

[data-bs-theme="dark"] .client-guidance-overview-message.is-client .client-guidance-overview-bubble {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(30, 64, 175, 0.36);
}

[data-bs-theme="dark"] .client-guidance-overview-speaker {
  color: #99f6e4;
}

[data-bs-theme="dark"] .client-guidance-overview-message.is-client .client-guidance-overview-speaker {
  color: #bfdbfe;
}

[data-bs-theme="dark"] .client-guidance-overview-text {
  color: #f8fafc;
}

[data-bs-theme="dark"] .client-guidance-overview-empty {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(12, 95, 99, 0.2);
}

[data-bs-theme="dark"] .firm-matters-tab-nav .nav-link,
[data-bs-theme="dark"] .firm-matters-mobile-nav .nav-link {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.34);
}

[data-bs-theme="dark"] .firm-matters-tab-nav .nav-link i,
[data-bs-theme="dark"] .firm-matters-mobile-nav .nav-link i {
  background: rgba(56, 189, 248, 0.2);
  color: #d6f3ff;
}

[data-bs-theme="dark"] .firm-matters-tab-nav .nav-link:hover,
[data-bs-theme="dark"] .firm-matters-tab-nav .nav-link:focus,
[data-bs-theme="dark"] .firm-matters-mobile-nav .nav-link:hover,
[data-bs-theme="dark"] .firm-matters-mobile-nav .nav-link:focus {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.45);
}

[data-bs-theme="dark"] .firm-matters-tab-nav .nav-link.active,
[data-bs-theme="dark"] .firm-matters-tab-nav .nav-link.show,
[data-bs-theme="dark"] .firm-matters-mobile-nav .nav-link.active,
[data-bs-theme="dark"] .firm-matters-mobile-nav .nav-link.show {
  background: linear-gradient(125deg, rgba(12, 95, 99, 0.9), rgba(15, 118, 110, 0.92));
  border-color: rgba(94, 234, 212, 0.5);
  color: #f8fafc;
}

[data-bs-theme="dark"] .firm-matters-mobile-nav {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(145deg, rgba(11, 18, 32, 0.95), rgba(12, 36, 43, 0.9));
}

[data-bs-theme="dark"] .firm-matters-mobile-toggle {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .firm-procedure-filter-card,
[data-bs-theme="dark"] .firm-procedure-card {
  border-color: rgba(94, 234, 212, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(12, 95, 99, 0.26), transparent 28%),
    linear-gradient(150deg, rgba(15, 23, 42, 0.94), rgba(11, 18, 32, 0.9));
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.36);
}

[data-bs-theme="dark"] .firm-procedure-meta-pill,
[data-bs-theme="dark"] .firm-procedure-signal {
  border-color: rgba(94, 234, 212, 0.24);
  background: rgba(12, 95, 99, 0.24);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .firm-procedure-meta-pill i {
  color: #99f6e4;
}

[data-bs-theme="dark"] .agent-procedure-route,
[data-bs-theme="dark"] .agent-procedure-start-panel,
[data-bs-theme="dark"] .agent-procedure-frontpage-section,
[data-bs-theme="dark"] .agent-procedure-strip,
[data-bs-theme="dark"] .agent-support-ticket {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.84);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .agent-procedure-hero {
  border-bottom-color: rgba(148, 163, 184, 0.28);
}

[data-bs-theme="dark"] .agent-route-node,
[data-bs-theme="dark"] .agent-procedure-fieldset,
[data-bs-theme="dark"] .agent-client-row,
[data-bs-theme="dark"] .agent-empty-state,
[data-bs-theme="dark"] .agent-section-count {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .agent-route-node.is-current {
  border-color: rgba(94, 234, 212, 0.38);
  background: rgba(20, 83, 75, 0.34);
}

[data-bs-theme="dark"] .agent-procedure-fieldset legend,
[data-bs-theme="dark"] .agent-client-summary h3,
[data-bs-theme="dark"] .agent-empty-state h3,
[data-bs-theme="dark"] .agent-procedure-strip h4 {
  color: #f8fafc;
}

[data-bs-theme="dark"] .agent-form-field .form-label,
[data-bs-theme="dark"] .agent-procedure-status,
[data-bs-theme="dark"] .agent-support-ticket p {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .agent-consent-check {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .agent-consent-check:has(.form-check-input:checked) {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(20, 83, 75, 0.34);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.1), 0 14px 30px rgba(2, 6, 23, 0.18);
}

[data-bs-theme="dark"] .agent-consent-icon {
  background: rgba(15, 23, 42, 0.95);
  color: #ccfbf1;
}

[data-bs-theme="dark"] .agent-consent-check:has(.form-check-input:checked) .agent-consent-icon {
  background: #14b8a6;
  color: #042f2e;
}

[data-bs-theme="dark"] .agent-consent-copy span {
  color: #f8fafc;
}

[data-bs-theme="dark"] .agent-consent-copy small {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .agent-procedure-submit-row-emphasis {
  border-color: rgba(94, 234, 212, 0.2);
  background: rgba(15, 23, 42, 0.66);
}

[data-bs-theme="dark"] .agent-procedure-submit-note {
  color: #ccfbf1;
}

[data-bs-theme="dark"] .agent-procedure-submit-note i {
  background: rgba(94, 234, 212, 0.12);
  color: #5eead4;
}

[data-bs-theme="dark"] .agent-profile-hero {
  background:
    linear-gradient(90deg, rgba(9, 18, 27, 0.98) 0%, rgba(11, 25, 31, 0.94) 58%, rgba(11, 25, 31, 0.78) 100%),
    var(--landing-hero-image, linear-gradient(135deg, #0f172a, #132238));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

[data-bs-theme="dark"] body.agent-profile-body,
[data-bs-theme="dark"] body.provider-profile-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.12), transparent 28%),
    linear-gradient(180deg, #0f172a, #07111f);
}

[data-bs-theme="dark"] .agent-profile-title,
[data-bs-theme="dark"] .agent-profile-node-copy > span,
[data-bs-theme="dark"] .agent-profile-metric strong,
[data-bs-theme="dark"] .agent-profile-list strong,
[data-bs-theme="dark"] .agent-profile-current-heading h2,
[data-bs-theme="dark"] .agent-profile-procedure strong {
  color: #e2f6f4;
}

[data-bs-theme="dark"] .agent-profile-subtitle,
[data-bs-theme="dark"] .agent-profile-node-copy small,
[data-bs-theme="dark"] .agent-profile-panel-main p,
[data-bs-theme="dark"] .agent-profile-metric small,
[data-bs-theme="dark"] .agent-profile-list small,
[data-bs-theme="dark"] .agent-profile-procedure small,
[data-bs-theme="dark"] .agent-profile-procedure-meta,
[data-bs-theme="dark"] .agent-profile-note,
[data-bs-theme="dark"] .agent-profile-empty span {
  color: #b6c7cc;
}

[data-bs-theme="dark"] .agent-profile-flow {
  --agent-flow-line: rgba(45, 212, 191, 0.25);
  --agent-flow-active: #2dd4bf;
}

[data-bs-theme="dark"] .agent-profile-marker {
  border-color: rgba(45, 212, 191, 0.34);
  background: linear-gradient(145deg, #0f172a, #132238);
}

[data-bs-theme="dark"] .agent-profile-node.active .agent-profile-marker {
  border-color: rgba(45, 212, 191, 0.85);
  background: linear-gradient(145deg, #2dd4bf, #f4b63f);
  color: #05201f;
}

[data-bs-theme="dark"] .agent-profile-panel,
[data-bs-theme="dark"] .agent-profile-current {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.76));
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.34);
}

[data-bs-theme="dark"] .agent-profile-metric,
[data-bs-theme="dark"] .agent-profile-list span {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.58);
}

[data-bs-theme="dark"] .agent-profile-procedure,
[data-bs-theme="dark"] .agent-profile-empty {
  border-top-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .firm-communication-thread-list .list-group-item {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .firm-communication-thread-list .list-group-item:hover,
[data-bs-theme="dark"] .firm-communication-thread-list .list-group-item:focus {
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.45);
}

[data-bs-theme="dark"] .firm-communication-thread-list .list-group-item.active {
  border-color: rgba(94, 234, 212, 0.5);
}

[data-bs-theme="dark"] .firm-communication-chat-log {
  background: rgba(15, 23, 42, 0.52) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
}

[data-bs-theme="dark"] .firm-communication-bubble {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .firm-communication-message.is-attorney .firm-communication-bubble {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(130deg, rgba(30, 58, 138, 0.56), rgba(30, 64, 175, 0.4));
}

[data-bs-theme="dark"] .client-portal-chat-log {
  background: rgba(15, 23, 42, 0.52) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
}

[data-bs-theme="dark"] .admin-command-card {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at 95% 6%, rgba(56, 189, 248, 0.18) 0, transparent 30%),
    radial-gradient(circle at 5% 95%, rgba(251, 191, 36, 0.16) 0, transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(11, 18, 32, 0.94));
}

[data-bs-theme="dark"] .admin-command-item {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.26);
}

[data-bs-theme="dark"] .admin-command-kpi {
  color: #f8fafc;
}

[data-bs-theme="dark"] .dashboard-luxe-shell::before {
  display: none;
}

[data-bs-theme="dark"] .dashboard-toolbar {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

[data-bs-theme="dark"] .dashboard-toolbar .app-filter-form .form-control,
[data-bs-theme="dark"] .dashboard-toolbar .app-filter-form .form-select {
  background: rgba(15, 23, 42, 0.82);
}

[data-bs-theme="dark"] .dashboard-command-shell {
  border-color: rgba(148, 163, 184, 0.26);
  background:
    radial-gradient(circle at 95% 8%, rgba(56, 189, 248, 0.2) 0, transparent 34%),
    radial-gradient(circle at 4% 90%, rgba(45, 212, 191, 0.18) 0, transparent 38%),
    linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(10, 16, 30, 0.95));
}

[data-bs-theme="dark"] .dashboard-command-shell--admin {
  background:
    radial-gradient(circle at 95% 8%, rgba(56, 189, 248, 0.22) 0, transparent 34%),
    radial-gradient(circle at 4% 90%, rgba(251, 191, 36, 0.2) 0, transparent 38%),
    linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(10, 16, 30, 0.95));
}

[data-bs-theme="dark"] .dashboard-command-shell--modules {
  background:
    radial-gradient(circle at 94% 10%, rgba(45, 212, 191, 0.23) 0, transparent 34%),
    radial-gradient(circle at 6% 90%, rgba(129, 140, 248, 0.2) 0, transparent 38%),
    linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(10, 16, 30, 0.95));
}

[data-bs-theme="dark"] .dashboard-stage-card {
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.4);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.86));
}

[data-bs-theme="dark"] .dashboard-priority-bucket:hover,
[data-bs-theme="dark"] .dashboard-priority-bucket:focus {
  border-color: rgba(103, 232, 249, 0.54);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.48);
}

[data-bs-theme="dark"] .dashboard-queue-list .dashboard-queue-item {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .dashboard-kpi-grid .kpi-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.82));
}

[data-bs-theme="dark"] .automations-hero {
  border-color: rgba(45, 212, 191, 0.34);
  background:
    radial-gradient(circle at 95% 8%, rgba(56, 189, 248, 0.18) 0, transparent 34%),
    radial-gradient(circle at 6% 90%, rgba(45, 212, 191, 0.2) 0, transparent 36%),
    linear-gradient(140deg, rgba(15, 23, 42, 0.96), rgba(10, 16, 30, 0.94));
}

[data-bs-theme="dark"] .automations-hero::before {
  background: rgba(45, 212, 191, 0.14);
}

[data-bs-theme="dark"] .automations-hero-icon {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.15);
  color: #99f6e4;
}

[data-bs-theme="dark"] .automations-note-banner {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(130deg, rgba(17, 24, 39, 0.86), rgba(30, 41, 59, 0.82));
  color: #e2e8f0;
}

[data-bs-theme="dark"] .automations-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.9), rgba(11, 18, 32, 0.82));
}

[data-bs-theme="dark"] .automations-table {
  --bs-table-striped-bg: rgba(30, 41, 59, 0.56);
  --bs-table-border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .automations-table thead th {
  color: #94a3b8;
}

[data-bs-theme="dark"] .automations-list .list-group-item {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .hero-console,
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .feature-media,
[data-bs-theme="dark"] .workflow-card,
[data-bs-theme="dark"] .auth-panel,
[data-bs-theme="dark"] .stat-chip,
[data-bs-theme="dark"] .console-item,
[data-bs-theme="dark"] .section-card,
[data-bs-theme="dark"] .faq-teaser-card,
[data-bs-theme="dark"] .faq-hero,
[data-bs-theme="dark"] .faq-answer-card,
[data-bs-theme="dark"] .faq-accordion-item,
[data-bs-theme="dark"] .assistant-bubble {
  background: var(--card-bg);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .landing-start-hero {
  background:
    linear-gradient(90deg, rgba(9, 18, 27, 0.98) 0%, rgba(11, 25, 31, 0.94) 58%, rgba(11, 25, 31, 0.78) 100%),
    var(--landing-hero-image) center / cover;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

[data-bs-theme="dark"] .landing-start-subtitle,
[data-bs-theme="dark"] .landing-start-summary small,
[data-bs-theme="dark"] .landing-start-panel p {
  color: #b6c7cc;
}

[data-bs-theme="dark"] .landing-start-flow {
  --start-line: rgba(45, 212, 191, 0.25);
  --start-active: #2dd4bf;
  --start-panel: rgba(15, 23, 42, 0.76);
}

[data-bs-theme="dark"] .landing-start-flow::after {
  border-top-color: rgba(45, 212, 191, 0.28);
  border-right-color: rgba(45, 212, 191, 0.4);
  border-left-color: rgba(251, 191, 36, 0.86);
  background:
    radial-gradient(circle, rgba(251, 191, 36, 0.9) 0 3px, rgba(251, 191, 36, 0.18) 3.5px 6px, transparent 6.5px) 0 100% / 14px 14px no-repeat,
    radial-gradient(circle, rgba(45, 212, 191, 0.54) 0 3px, rgba(45, 212, 191, 0.12) 3.5px 6px, transparent 6.5px) 100% 100% / 14px 14px no-repeat;
}

[data-bs-theme="dark"] .landing-start-summary > span {
  color: #e2f6f4;
}

[data-bs-theme="dark"] .landing-start-marker {
  background: linear-gradient(145deg, #0f172a, #132238);
  border-color: rgba(45, 212, 191, 0.34);
}

[data-bs-theme="dark"] .landing-start-node.active .landing-start-marker {
  color: #05201f;
  background: linear-gradient(145deg, #2dd4bf, #f4b63f);
  border-color: rgba(45, 212, 191, 0.85);
}

[data-bs-theme="dark"] .landing-demo-branch {
  color: #e2f6f4;
}

[data-bs-theme="dark"] .landing-demo-branch::before {
  border-color: rgba(251, 191, 36, 0.86);
}

[data-bs-theme="dark"] .landing-demo-branch-dot {
  border-color: rgba(251, 191, 36, 0.56);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(45, 212, 191, 0.14));
  color: #fde68a;
}

[data-bs-theme="dark"] .landing-demo-branch-dot::after {
  border-color: rgba(251, 191, 36, 0.28);
}

[data-bs-theme="dark"] .landing-demo-branch strong {
  color: #fff7ed;
}

[data-bs-theme="dark"] .landing-demo-branch small {
  color: #b6c7cc;
}

[data-bs-theme="dark"] .landing-start-hero.is-known-user .landing-start-node.active .landing-start-marker {
  background: linear-gradient(145deg, #fbbf24, #fb923c);
  border-color: rgba(251, 191, 36, 0.92);
  color: #111827;
}

[data-bs-theme="dark"] .landing-start-panel {
  border-color: rgba(45, 212, 191, 0.22);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(13, 37, 43, 0.82)),
    var(--start-panel);
}

[data-bs-theme="dark"] .landing-panel-kicker {
  color: #7dd3fc;
}

[data-bs-theme="dark"] .landing-login-toggle {
  background: transparent;
  box-shadow: none;
}

[data-bs-theme="dark"] .landing-login-toggle button {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.72);
  color: #b6c7cc;
}

[data-bs-theme="dark"] .landing-login-toggle button:hover,
[data-bs-theme="dark"] .landing-login-toggle button:focus-visible {
  color: #e2f6f4;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 24px rgba(45, 212, 191, 0.12);
}

[data-bs-theme="dark"] .landing-login-toggle button.active {
  display: none;
}

[data-bs-theme="dark"] .landing-inline-login .form-label {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .ai-draft-create-card {
  border-color: rgba(45, 212, 191, 0.36);
  background:
    radial-gradient(circle at 94% 8%, rgba(45, 212, 191, 0.19) 0, transparent 36%),
    radial-gradient(circle at 8% 92%, rgba(251, 191, 36, 0.14) 0, transparent 34%),
    linear-gradient(145deg, rgba(11, 18, 32, 0.96), rgba(15, 31, 40, 0.92));
}

[data-bs-theme="dark"] .ai-draft-create-card::before {
  background: rgba(45, 212, 191, 0.12);
}

[data-bs-theme="dark"] .ai-draft-create-kicker {
  border-color: rgba(45, 212, 191, 0.46);
  background: rgba(45, 212, 191, 0.17);
  color: #99f6e4;
}

[data-bs-theme="dark"] .ai-draft-create-pill {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(15, 23, 42, 0.74);
  color: #cbd5e1;
}

[data-bs-theme="dark"] .ai-draft-section {
  border-color: rgba(94, 234, 212, 0.28);
  background: rgba(11, 18, 32, 0.7);
}

[data-bs-theme="dark"] .ai-draft-section-title {
  color: #99f6e4;
}

[data-bs-theme="dark"] .ai-draft-field .form-control,
[data-bs-theme="dark"] .ai-draft-field .form-select {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.34);
}

[data-bs-theme="dark"] .ai-draft-field--checkbox {
  border-color: rgba(45, 212, 191, 0.36);
  background: rgba(45, 212, 191, 0.1);
}

[data-bs-theme="dark"] .ai-draft-submit-row {
  border-top-color: rgba(148, 163, 184, 0.3);
}

[data-bs-theme="dark"] .console-note {
  background: rgba(12, 95, 99, 0.2);
  color: #cde8e1;
}

[data-bs-theme="dark"] .analytics-kpi-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.04));
}

[data-bs-theme="dark"] .analytics-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0.03));
}

[data-bs-theme="dark"] .analytics-kpi-card--score {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.25), rgba(96, 165, 250, 0.06));
}

[data-bs-theme="dark"] .analytics-kpi-card--reminders {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.28), rgba(45, 212, 191, 0.07));
}

[data-bs-theme="dark"] .analytics-kpi-card--noshow {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.24), rgba(248, 113, 113, 0.06));
}

[data-bs-theme="dark"] .analytics-kpi-card--completion {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.25), rgba(74, 222, 128, 0.07));
}

[data-bs-theme="dark"] .analytics-kpi-card--sla {
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.25), rgba(192, 132, 252, 0.06));
}

[data-bs-theme="dark"] .analytics-kpi-card--backlog {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.06));
}

[data-bs-theme="dark"] .analytics-card--ocean {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.24), rgba(96, 165, 250, 0.06));
}

[data-bs-theme="dark"] .analytics-card--emerald {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.22), rgba(74, 222, 128, 0.06));
}

[data-bs-theme="dark"] .analytics-card--violet {
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.24), rgba(192, 132, 252, 0.06));
}

[data-bs-theme="dark"] .analytics-card--amber {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.24), rgba(251, 191, 36, 0.06));
}

[data-bs-theme="dark"] .analytics-card--rose {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.22), rgba(251, 113, 133, 0.06));
}

[data-bs-theme="dark"] .analytics-card--teal {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0.06));
}

[data-bs-theme="dark"] .analytics-card--cyan {
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.2), rgba(103, 232, 249, 0.05));
}

[data-bs-theme="dark"] .analytics-card--indigo {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.21), rgba(129, 140, 248, 0.06));
}

[data-bs-theme="dark"] .analytics-card--sun {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.21), rgba(251, 146, 60, 0.05));
}

[data-bs-theme="dark"] .analytics-card--mint {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.24), rgba(45, 212, 191, 0.06));
}

[data-bs-theme="dark"] .dashboard-mini-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.18), rgba(192, 132, 252, 0.03));
}

[data-bs-theme="dark"] .dashboard-mini-card--gauge {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.24), rgba(45, 212, 191, 0.05));
}

[data-bs-theme="dark"] .dashboard-mini-card--status {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.24), rgba(96, 165, 250, 0.05));
}

[data-bs-theme="dark"] .dashboard-mini-card--channel {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.24), rgba(251, 191, 36, 0.05));
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.34);
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: #8ea2bc;
}

[data-bs-theme="dark"] .landing-topbar,
[data-bs-theme="dark"] .cta-strip {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .auth-wrap {
  background:
    linear-gradient(145deg, rgba(14, 23, 42, 0.94), rgba(8, 13, 24, 0.96));
}

[data-bs-theme="dark"] .auth-panel {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.97), rgba(15, 23, 42, 0.97));
}

[data-bs-theme="dark"] .auth-info {
  background: linear-gradient(165deg, #0b1220, #13303c);
}

[data-bs-theme="dark"] .auth-info .text-light-emphasis {
  color: rgba(226, 232, 240, 0.88) !important;
}

[data-bs-theme="dark"] .signup-mini-step {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #d5deea;
}

[data-bs-theme="dark"] .signup-mini-step--active {
  border-color: rgba(45, 212, 191, 0.36);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
}

[data-bs-theme="dark"] .signup-highlight {
  border-color: rgba(45, 212, 191, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(140deg, rgba(11, 18, 32, 0.92), rgba(17, 24, 39, 0.94));
}

[data-bs-theme="dark"] .signup-highlight-title {
  color: #99f6e4;
}

[data-bs-theme="dark"] .signup-role-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.78);
}

[data-bs-theme="dark"] .signup-role-card:hover,
[data-bs-theme="dark"] .signup-role-card:focus-within,
[data-bs-theme="dark"] .signup-role-card.is-selected {
  border-color: rgba(45, 212, 191, 0.46);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.34);
}

[data-bs-theme="dark"] .signup-role-icon {
  background: rgba(45, 212, 191, 0.13);
  color: #99f6e4;
}

[data-bs-theme="dark"] .signup-role-title {
  color: #f8fafc;
}

[data-bs-theme="dark"] .signup-role-description {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .demo-route-option {
  border-color: rgba(45, 212, 191, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.16), transparent 32%),
    linear-gradient(140deg, rgba(15, 23, 42, 0.82), rgba(11, 18, 32, 0.9));
}

[data-bs-theme="dark"] .demo-route-marker {
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.16), rgba(251, 191, 36, 0.13));
  color: #99f6e4;
}

[data-bs-theme="dark"] .demo-route-option p {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: #0f766e;
  color: #eafff8;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.28);
}

[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus {
  background: linear-gradient(135deg, #0d5f59, #11998a);
  border-color: #0d5f59;
  color: #f8fffd;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #99f6e4;
  border-color: rgba(94, 234, 212, 0.56);
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus {
  color: #081b19;
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  border-color: rgba(94, 234, 212, 0.72);
}

[data-bs-theme="dark"] .text-bg-primary {
  background-color: #0f766e !important;
  color: #f8fffd !important;
}

[data-bs-theme="dark"] .btn-dark {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #bfdbfe;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

[data-bs-theme="dark"] .btn-dark:hover,
[data-bs-theme="dark"] .btn-dark:focus {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #dbeafe;
  color: #0f172a;
}

[data-bs-theme="dark"] .btn-outline-dark {
  color: #d8e3f0;
  border-color: rgba(148, 163, 184, 0.55);
}

[data-bs-theme="dark"] .btn-outline-dark:hover,
[data-bs-theme="dark"] .btn-outline-dark:focus {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-bs-theme="dark"] .firm-signin-btn.btn-outline-dark {
  color: #f8fafc !important;
  border-color: rgba(94, 234, 212, 0.68) !important;
  background: linear-gradient(135deg, rgba(12, 95, 99, 0.5), rgba(15, 23, 42, 0.56));
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.28);
}

[data-bs-theme="dark"] .firm-signin-btn.btn-outline-dark:hover,
[data-bs-theme="dark"] .firm-signin-btn.btn-outline-dark:focus {
  color: #ffffff !important;
  border-color: rgba(94, 234, 212, 0.9) !important;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.68), rgba(15, 23, 42, 0.64));
}

[data-bs-theme="dark"] .badge.text-bg-light {
  color: #dbe7f5 !important;
  background: #1e293b !important;
}

[data-bs-theme="dark"] .badge-soft-secondary {
  color: #e2e8f0 !important;
  background: rgba(71, 85, 105, 0.5) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

[data-bs-theme="dark"] .badge-sensitivity-low {
  color: #bbf7d0 !important;
  background: rgba(34, 197, 94, 0.24) !important;
  border-color: rgba(74, 222, 128, 0.4) !important;
}

[data-bs-theme="dark"] .badge-sensitivity-high {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
}

[data-bs-theme="dark"] .badge-sensitivity-neutral {
  color: #e2e8f0 !important;
  background: rgba(100, 116, 139, 0.34) !important;
  border-color: rgba(148, 163, 184, 0.42) !important;
}

[data-bs-theme="dark"] .badge-live {
  color: #dcfce7 !important;
  background: rgba(34, 197, 94, 0.3) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
}

[data-bs-theme="dark"] .inbox-channel-badge-email {
  color: #bfdbfe !important;
  background: rgba(59, 130, 246, 0.3) !important;
  border-color: rgba(96, 165, 250, 0.48) !important;
}

[data-bs-theme="dark"] .inbox-channel-badge-web {
  color: #99f6e4 !important;
  background: rgba(12, 95, 99, 0.34) !important;
  border-color: rgba(45, 212, 191, 0.44) !important;
}

[data-bs-theme="dark"] .about-hero {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(96, 165, 250, 0.16), rgba(251, 191, 36, 0.14));
}

[data-bs-theme="dark"] .about-pill {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(15, 23, 42, 0.75);
  color: #8bf3e0;
}

[data-bs-theme="dark"] .about-value-card,
[data-bs-theme="dark"] .about-point-card,
[data-bs-theme="dark"] .about-principle-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.9));
  border-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .about-icon {
  background: rgba(45, 212, 191, 0.2);
  color: #7ee9d9;
}

[data-bs-theme="dark"] .legal-nav {
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.12), rgba(251, 191, 36, 0.09));
}

[data-bs-theme="dark"] .app-footer {
  background: color-mix(in srgb, #0b1220 90%, transparent);
  border-top-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .app-footer a {
  color: #a5b4c9;
}

[data-bs-theme="dark"] .app-footer a:hover,
[data-bs-theme="dark"] .app-footer a:focus {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .app-footer-nav a {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(30, 41, 59, 0.62);
}

[data-bs-theme="dark"] .app-footer-note {
  opacity: 0.52;
}

[data-bs-theme="dark"] .table thead th {
  color: #c7d6e7;
}

[data-bs-theme="dark"] .list-group-item {
  border-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .table tbody tr:hover {
  background: rgba(30, 41, 59, 0.65);
}

[data-bs-theme="dark"] .alert-info {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.3);
  color: #d8f3ff;
}

[data-bs-theme="dark"] .alert-secondary {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
  color: #d7e2f0;
}

[data-bs-theme="dark"] .brand-mark {
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.56), inset 0 0 0 1px rgba(226, 232, 240, 0.12);
  filter: saturate(1.04) brightness(1.02);
}

[data-bs-theme="dark"] .brand-dot {
  display: none;
}

[data-bs-theme="dark"] .public-header-brand {
  border-color: #9ccfca;
  background: #9ccfca;
  box-shadow: 0 10px 22px rgba(156, 207, 202, 0.14);
  color: #102321 !important;
}

[data-bs-theme="dark"] .public-header-brand .brand-wordmark,
[data-bs-theme="dark"] .sidebar .offcanvas-title .brand-wordmark {
  color: #d9efec;
}

[data-bs-theme="dark"] .public-header-brand:hover,
[data-bs-theme="dark"] .public-header-brand:focus-visible {
  border-color: rgba(156, 207, 202, 0.44);
  background: rgba(24, 51, 49, 0.36);
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.55), inset 0 0 0 1px rgba(217, 239, 236, 0.18);
  color: #c0ded9 !important;
}

[data-bs-theme="dark"] .public-header-brand .brand-wordmark {
  color: currentColor;
}

[data-bs-theme="dark"] .landing-brand-wrap {
  border-color: rgba(94, 234, 212, 0.34);
  background: linear-gradient(132deg, rgba(11, 18, 32, 0.88), rgba(12, 36, 43, 0.84));
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.46), inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .landing-brand {
  background: linear-gradient(106deg, #f8fafc 0%, #99f6e4 48%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-bs-theme="dark"] .landing-topbar .btn-outline-dark {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
}

[data-bs-theme="dark"] .landing-topbar .btn-outline-dark:hover,
[data-bs-theme="dark"] .landing-topbar .btn-outline-dark:focus {
  background: #1e293b;
  color: #fff;
}

[data-bs-theme="dark"] .landing-topbar .btn-dark {
  background: #dbeafe;
  border-color: #dbeafe;
  color: #0f172a;
}

[data-bs-theme="dark"] .plans-matrix thead th {
  background: #111827;
  color: #e2e8f0;
  border-top-color: rgba(148, 163, 184, 0.32);
}

[data-bs-theme="dark"] .plans-matrix th,
[data-bs-theme="dark"] .plans-matrix td {
  border-color: rgba(148, 163, 184, 0.28);
}

[data-bs-theme="dark"] .plans-matrix .plan-col--starter {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.25), rgba(14, 165, 233, 0.1));
}

[data-bs-theme="dark"] .plans-matrix .plan-col--growth {
  background: linear-gradient(180deg, rgba(12, 95, 99, 0.3), rgba(12, 95, 99, 0.12));
}

[data-bs-theme="dark"] .plans-matrix .plan-col--pro {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.26), rgba(245, 158, 11, 0.11));
}

[data-bs-theme="dark"] .plans-matrix .plan-col-featured {
  box-shadow: inset 0 0 0 1px rgba(241, 245, 249, 0.45);
}

[data-bs-theme="dark"] .plans-matrix .text-secondary {
  color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .billing-plan-card {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.28);
}

[data-bs-theme="dark"] .billing-plan-card--starter {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.22), #0b1220 34%);
}

[data-bs-theme="dark"] .billing-plan-card--growth {
  background: linear-gradient(180deg, rgba(12, 95, 99, 0.28), #0b1220 34%);
}

[data-bs-theme="dark"] .billing-plan-card--pro {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.26), #0b1220 34%);
}

[data-bs-theme="dark"] .billing-plan-card--featured {
  box-shadow: 0 0 0 1px rgba(241, 245, 249, 0.44), var(--elev-1);
}

[data-bs-theme="dark"] .plan-icon {
  border-color: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .plan-icon--starter {
  background: rgba(56, 189, 248, 0.22);
  color: #d6f3ff;
}

[data-bs-theme="dark"] .plan-icon--growth {
  background: rgba(45, 212, 191, 0.2);
  color: #d3fff7;
}

[data-bs-theme="dark"] .plan-icon--pro {
  background: rgba(251, 191, 36, 0.2);
  color: #fff0cf;
}

[data-bs-theme="dark"] .billing-price-row,
[data-bs-theme="dark"] .billing-feature-list li {
  border-bottom-color: rgba(148, 163, 184, 0.28);
}

[data-bs-theme="dark"] .billing-module-bundle {
  border-top-color: rgba(148, 163, 184, 0.28);
}

[data-bs-theme="dark"] .billing-module-list li {
  color: #d6deea;
}

[data-bs-theme="dark"] .billing-module-list i {
  color: #5eead4;
}

[data-bs-theme="dark"] .billing-module-list--billable i {
  color: #fbbf24;
}

[data-bs-theme="dark"] .billing-feature-list .text-secondary {
  color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .onboarding-journey-card {
  border-color: rgba(45, 212, 191, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 191, 0.18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(251, 191, 36, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(11, 18, 32, 0.98), rgba(15, 31, 40, 0.95));
}

[data-bs-theme="dark"] .onboarding-journey-kicker {
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
}

[data-bs-theme="dark"] .onboarding-timeline-marker {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.9);
  color: #d5deea;
}

[data-bs-theme="dark"] .billing-trial-helper {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.1);
  color: #b7fff3;
}

[data-bs-theme="dark"] .app-topbar {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(132deg, rgba(11, 18, 32, 0.96), rgba(18, 38, 47, 0.9));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
}

[data-bs-theme="dark"] .app-topbar::before {
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.75), rgba(129, 140, 248, 0.7), rgba(251, 191, 36, 0.62));
}

[data-bs-theme="dark"] .app-topbar-brand {
  border-color: #9ccfca;
  background: #9ccfca;
  box-shadow: 0 10px 22px rgba(156, 207, 202, 0.14);
  color: #102321;
}

[data-bs-theme="dark"] .app-topbar-brand .brand-wordmark {
  color: currentColor;
}

[data-bs-theme="dark"] .app-topbar-brand:hover,
[data-bs-theme="dark"] .app-topbar-brand:focus-visible {
  border-color: rgba(156, 207, 202, 0.44);
  background: rgba(24, 51, 49, 0.36);
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.55), inset 0 0 0 1px rgba(217, 239, 236, 0.18);
  color: #c0ded9;
}

[data-bs-theme="dark"] .app-topbar-role {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(15, 23, 42, 0.64);
  color: #dff8f2;
}

[data-bs-theme="dark"] .app-topbar-actions .btn {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.4);
  color: #dbeafe;
}

[data-bs-theme="dark"] .app-topbar-actions .btn:hover,
[data-bs-theme="dark"] .app-topbar-actions .btn:focus {
  background: rgba(30, 41, 59, 0.88);
  color: #f8fafc;
}

[data-bs-theme="dark"] .app-topbar-toggler {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.72);
}

[data-bs-theme="dark"] .app-topbar .badge.text-bg-dark {
  color: #0f172a !important;
  background: #dbeafe !important;
}

[data-bs-theme="dark"] .plans-matrix th:first-child,
[data-bs-theme="dark"] .plans-matrix td:first-child {
  background: #0b1220;
}

[data-bs-theme="dark"] .plans-price {
  color: #f8fafc;
}

[data-bs-theme="dark"] code {
  color: #c8dcff;
}

[data-bs-theme="dark"] .settings-card::before {
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.78), rgba(129, 140, 248, 0.72), rgba(251, 191, 36, 0.72));
}

[data-bs-theme="dark"] .usecase-card {
  border-color: rgba(148, 163, 184, 0.26);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.93));
}

[data-bs-theme="dark"] .hero-pill {
  color: #a7f3d0;
  background: rgba(12, 95, 99, 0.28);
  border-color: rgba(110, 231, 183, 0.35);
}

[data-bs-theme="dark"] .mobile-sticky-cta {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.92) 35%, rgba(2, 6, 23, 0.98));
}

[data-bs-theme="dark"] .analytics-empty-state {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.3);
}

[data-bs-theme="dark"] .assistant-message--user .assistant-bubble {
  background: #1e293b;
  border-color: #334155;
}

@media (max-width: 992px) {
  .public-header {
    padding: 0.55rem 0.6rem 0;
  }

  .public-header-shell {
    padding: 0.45rem 0.62rem;
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 0.55rem;
  }

  .public-header-actions-wrap {
    width: 100%;
    margin-top: 0.25rem;
  }

  .public-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .public-header-actions form,
  .public-header-actions .btn {
    width: 100%;
  }

  .landing-page {
    padding-top: 0.55rem;
  }

  .landing-hero {
    min-height: auto;
    padding: 2.25rem;
    background-position: 58% center;
  }

  .landing-hero::before {
    background: rgba(10, 24, 30, 0.78);
  }

  .landing-hero-content {
    max-width: 100%;
  }

  .landing-hero .landing-title {
    max-width: 100%;
  }

  .landing-hero-route {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero-route > i {
    justify-content: center;
    transform: rotate(90deg);
  }

  .landing-start-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 1.55rem;
    gap: 1rem;
    background:
      linear-gradient(180deg, rgba(247, 250, 249, 0.98), rgba(247, 250, 249, 0.9)),
      var(--landing-hero-image) center / cover;
  }

  [data-bs-theme="dark"] .landing-start-hero {
    background:
      linear-gradient(180deg, rgba(9, 18, 27, 0.98), rgba(11, 25, 31, 0.9)),
      var(--landing-hero-image) center / cover;
  }

  .landing-start-copy .landing-title {
    max-width: 100%;
  }

  .landing-login-switcher,
  .landing-login-toggle {
    width: auto;
  }

  .landing-inline-login {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    margin: 0.65rem 0.6rem 0;
  }

  .app-language-form {
    min-width: 0;
  }

  .app-main {
    width: 100%;
  }

  .sidebar.offcanvas-start {
    width: min(86vw, 320px);
  }

  .app-topbar .container-fluid {
    align-items: flex-start;
  }

  .app-topbar-actions-wrap {
    width: 100%;
    flex-basis: 100%;
  }

  .app-topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 0.65rem 0 0.2rem;
  }

  .app-topbar-actions .btn,
  .app-topbar-actions form {
    width: 100%;
  }

  .app-filter-form .form-control,
  .app-filter-form .form-select {
    min-width: 0;
  }

  .dashboard-luxe-shell::before {
    display: none;
  }

  .dashboard-toolbar {
    padding: 0;
  }

  .dashboard-toolbar .app-filter-form {
    width: 100%;
  }

  .dashboard-toolbar .app-filter-form > div {
    flex: 1 1 100%;
  }

  .dashboard-priority-bucket .admin-command-kpi {
    font-size: 1.48rem;
  }

  .client-portal-shell {
    grid-template-columns: 1fr;
  }

  .client-portal-header {
    flex-direction: column;
  }

  .client-portal-header-menu-toggle {
    align-self: flex-start;
  }

  .client-portal-header-actions.show,
  .client-portal-header-actions.collapsing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .client-portal-header-actions .btn,
  .client-portal-header-actions form {
    width: 100%;
  }

  .firm-matters-action-queue {
    align-items: stretch !important;
  }

  .firm-matters-action-buttons {
    width: 100%;
  }

  .firm-matters-action-buttons .btn {
    width: 100%;
  }

  .firm-matters-mobile-nav .nav-link {
    min-height: 2.46rem;
  }

  .firm-communication-thread-list {
    max-height: none;
  }

  .firm-communication-chat-log {
    max-height: 340px;
  }

  .client-portal-chat-log {
    max-height: 340px;
  }

  .procedure-timeline-track {
    grid-template-columns: repeat(8, minmax(116px, 1fr));
    min-width: 928px;
  }

  .procedure-timeline {
    --timeline-step-height: 8.9rem;
    --timeline-hover-space: 4.7rem;
  }

  .procedure-timeline-step {
    min-height: var(--timeline-step-height);
  }

  .procedure-timeline-track::before,
  .procedure-timeline-track::after {
    top: 5.55rem;
  }

  .procedure-timeline-flag {
    font-size: 0.7rem;
    padding-inline: 0.52rem;
  }

  .procedure-timeline-date {
    font-size: 0.72rem;
  }

  .procedure-timeline-label {
    font-size: 0.78rem;
  }

  .procedure-timeline-hover-card {
    top: 8.15rem;
    width: min(13rem, 82vw);
  }

  .procedure-timeline-detail {
    align-items: flex-start;
  }

  .procedure-timeline-detail-icon {
    display: none;
  }

  .procedure-view-header-actions,
  .procedure-view-header-actions .btn {
    width: 100%;
  }

  .procedure-view-details > summary {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .procedure-view-marker {
    width: 2.2rem;
    height: 2.2rem;
  }

  .procedure-view-panel {
    margin-left: 0;
    padding: 0 0.92rem 0.92rem;
  }

  .procedure-view-timeline::before {
    left: 1.18rem;
  }

  .client-guidance-overview-chat {
    max-height: 15rem;
  }

  .client-guidance-overview-bubble {
    max-width: 86%;
  }

  .ai-draft-create-header {
    align-items: stretch;
  }

  .ai-draft-create-pills {
    justify-content: flex-start;
  }

  .ai-draft-submit-row .btn {
    width: 100%;
    min-width: 0;
  }

  .plan-table-scroll .plans-matrix {
    min-width: 860px;
  }

  .plans-matrix th:first-child,
  .plans-matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 1px 0 0 var(--card-border);
  }

  .plans-matrix thead th:first-child {
    z-index: 4;
  }

  [data-bs-theme="dark"] .plans-matrix th:first-child,
  [data-bs-theme="dark"] .plans-matrix td:first-child {
    background: #0b1220;
  }

  .auth-info {
    display: none;
  }

  .signup-mini-steps {
    gap: 0.4rem;
  }

  .signup-mini-step {
    width: 100%;
    justify-content: center;
  }

  .onboarding-journey-hero {
    position: static;
  }

  .onboarding-timeline-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  body.landing-body {
    padding-bottom: 5.4rem;
  }

  .landing-topbar-actions-wrap {
    width: 100%;
    margin-top: 0.55rem;
  }

  .landing-topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .landing-topbar-actions > * {
    width: 100%;
    min-width: 0;
  }

  .landing-topbar-actions .btn {
    width: 100%;
    white-space: normal;
    min-height: 2.3rem;
  }

  .landing-demo-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    margin-top: 0.45rem;
  }

  .landing-title {
    max-width: 100%;
    font-size: clamp(2rem, 7.5vw, 2.6rem);
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .chart-shell {
    height: 300px;
    min-height: 240px;
  }

  .chart-shell--lg,
  .chart-shell--map {
    height: 320px;
  }

  .landing-body .assistant-root {
    --assistant-base-bottom: 5.8rem;
  }

  .assistant-panel {
    width: min(360px, calc(100vw - 1.2rem));
  }
}

@media (max-width: 576px) {
  .landing-hero {
    padding: 1.35rem;
    border-radius: 0.6rem;
  }

  .landing-hero-subtitle {
    font-size: 1rem;
    line-height: 1.55;
  }

  .landing-start-hero {
    padding: 1.25rem;
    border-radius: 0.6rem;
  }

  .landing-start-subtitle {
    font-size: 1rem;
    line-height: 1.55;
  }

  .landing-start-flow {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.45rem 0 0 0.35rem;
  }

  .landing-start-flow::before {
    top: 1.32rem;
    bottom: 1.32rem;
    left: 1.55rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--start-active), var(--start-line));
  }

  .landing-start-flow::after {
    display: none;
  }

  .landing-start-node {
    grid-template-columns: 2.45rem minmax(0, 1fr);
    text-align: left;
    justify-items: start;
    align-items: center;
    min-height: auto;
  }

  .landing-demo-branch {
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: 2.45rem minmax(0, 1fr);
    margin: -0.1rem 0 0 0;
    padding-left: 0;
  }

  .landing-demo-branch::before {
    display: block;
    height: 2.1rem;
    width: 0;
    left: 1.2rem;
    top: -1.45rem;
    border-left: 2px solid rgba(244, 182, 63, 0.9);
    border-bottom: 0;
    border-radius: 0;
    background: none;
    transform: none;
  }

  .landing-start-panel {
    margin-left: 0;
    padding: 0.8rem;
  }

  .landing-start-panel.active {
    display: grid;
  }

  .landing-start-actions .btn {
    width: 100%;
  }

  .landing-hero-facts span,
  .landing-hero .hero-cta-group .btn {
    width: 100%;
  }

  .public-header-actions,
  .landing-topbar-actions,
  .client-portal-mobile-tabs {
    grid-template-columns: 1fr;
  }

  .firm-matters-mobile-nav .nav-link {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .app-shell.is-sidebar-collapsed .sidebar,
  html.firm-sidebar-precollapsed .app-shell[data-sidebar-scope="firm"] .sidebar {
    flex-basis: 0 !important;
    width: 0 !important;
    min-width: 0;
    overflow: hidden;
    border-right-color: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-1rem);
  }

  .app-shell.is-sidebar-collapsed .app-main,
  html.firm-sidebar-precollapsed .app-shell[data-sidebar-scope="firm"] .app-main {
    width: 100%;
  }

  .client-portal-shell.is-sidebar-collapsed,
  html.client-sidebar-precollapsed .client-portal-shell[data-sidebar-scope="client"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-portal-shell.is-sidebar-collapsed .client-portal-sidebar,
  html.client-sidebar-precollapsed .client-portal-shell[data-sidebar-scope="client"] .client-portal-sidebar {
    display: none !important;
  }

  .client-portal-header-actions {
    display: flex !important;
  }

  .procedure-view-summary-card {
    position: sticky;
    top: 1rem;
  }

  .app-topbar-actions {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .app-topbar-actions .btn {
    font-size: 0.82rem;
    padding-inline: 0.62rem;
  }
}

@media (min-width: 1200px) {
  .app-topbar-actions .btn {
    font-size: 0.86rem;
    padding-inline: 0.74rem;
  }
}

.appointment-calendar-shell {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: var(--card-bg);
  padding: 0.75rem;
}

.appointment-calendar {
  min-height: 620px;
}

.appointment-calendar .fc .fc-toolbar-title {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.appointment-calendar .fc .fc-toolbar {
  gap: 0.5rem;
}

.appointment-calendar .fc .fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.appointment-calendar .fc .fc-button {
  border-radius: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.appointment-calendar .fc .fc-col-header-cell-cushion {
  text-decoration: none;
}

.appointment-calendar .fc .fc-event-title {
  white-space: normal;
  line-height: 1.2;
}

.appointment-calendar .fc .fc-list-day-cushion,
.appointment-calendar .fc .fc-scrollgrid-section-header th {
  background: rgba(17, 24, 39, 0.03);
}

[data-bs-theme="dark"] .appointment-calendar .fc .fc-list-day-cushion,
[data-bs-theme="dark"] .appointment-calendar .fc .fc-scrollgrid-section-header th {
  background: rgba(148, 163, 184, 0.09);
}

.appointment-calendar .fc .fc-event.appt-status-scheduled {
  background-color: var(--bs-primary-bg-subtle) !important;
  border-color: var(--bs-primary-border-subtle) !important;
  color: var(--bs-primary-text-emphasis) !important;
}

.appointment-calendar .fc .fc-event.appt-status-confirmed {
  background-color: var(--bs-success-bg-subtle) !important;
  border-color: var(--bs-success-border-subtle) !important;
  color: var(--bs-success-text-emphasis) !important;
}

.appointment-calendar .fc .fc-event.appt-status-canceled {
  background-color: var(--bs-danger-bg-subtle) !important;
  border-color: var(--bs-danger-border-subtle) !important;
  color: var(--bs-danger-text-emphasis) !important;
}

.appointment-calendar .fc .fc-event.appt-status-reschedule-requested {
  background-color: var(--bs-warning-bg-subtle) !important;
  border-color: var(--bs-warning-border-subtle) !important;
  color: var(--bs-warning-text-emphasis) !important;
}

.appointment-calendar .fc .fc-event.appt-status-no-show {
  background-color: var(--bs-secondary-bg-subtle) !important;
  border-color: var(--bs-secondary-border-subtle) !important;
  color: var(--bs-secondary-text-emphasis) !important;
}

.appointment-calendar .fc .fc-event.appt-status-completed {
  background-color: var(--bs-info-bg-subtle) !important;
  border-color: var(--bs-info-border-subtle) !important;
  color: var(--bs-info-text-emphasis) !important;
}

[data-bs-theme="dark"] .appointment-calendar .fc .fc-button-primary {
  background: #334155;
  border-color: #334155;
}

[data-bs-theme="dark"] .appointment-calendar .fc .fc-button-primary:hover,
[data-bs-theme="dark"] .appointment-calendar .fc .fc-button-primary:focus {
  background: #475569;
  border-color: #475569;
}

@media (max-width: 768px) {
  .document-generator-hero,
  .document-generator-empty-state,
  .document-generator-output-toolbar,
  .document-output-header,
  .document-output-placeholder {
    flex-direction: column;
    align-items: stretch;
  }

  .document-generator-form-grid,
  .document-output-meta {
    grid-template-columns: 1fr;
  }

  .document-output-paper {
    min-height: 0;
    padding: 1.1rem;
  }

  .document-generator-hero-actions .btn,
  .document-generator-download-actions .btn,
  .document-generator-draft-actions .btn {
    flex: 1 1 auto;
  }

  .automations-actions {
    width: 100%;
  }

  .automations-actions .btn {
    flex: 1 1 100%;
  }

  .automations-panel {
    padding: 1rem !important;
  }

  .appointment-calendar-shell {
    padding: 0.5rem;
  }

  .appointment-calendar {
    min-height: 560px;
  }
}

@media (max-width: 420px) {
  .app-topbar-actions {
    grid-template-columns: 1fr;
  }

  .client-portal-header-actions.show,
  .client-portal-header-actions.collapsing {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-wrap {
    grid-template-columns: 1fr;
  }

  body.landing-body {
    padding-bottom: 7.6rem;
  }

  .assistant-root {
    right: 0.6rem;
    left: 0.6rem;
  }

  .assistant-panel {
    width: 100%;
  }
}


.firm-client-procedure-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.firm-client-procedure-group {
  border-color: rgba(12, 95, 99, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08), transparent 28%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.94));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.firm-client-procedure-group[open] {
  grid-column: 1 / -1;
}

.firm-client-procedure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.firm-client-procedure-summary::-webkit-details-marker {
  display: none;
}

.firm-client-procedure-summary-main {
  min-width: 0;
}

.firm-client-procedure-summary-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: center;
}

.firm-client-procedure-expand-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(12, 95, 99, 0.1);
  color: #0c5f63;
  transition: transform 180ms ease, background-color 180ms ease;
}

.firm-client-procedure-group[open] .firm-client-procedure-expand-indicator {
  transform: rotate(180deg);
}

.firm-client-procedure-group-body {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0 1.25rem 1.25rem;
}

.firm-client-procedure-list {
  display: grid;
  gap: 0.9rem;
  padding-top: 1rem;
}

.firm-client-procedure-item {
  border: 1px solid rgba(12, 95, 99, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.05rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.firm-client-procedure-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.firm-procedure-detail-link {
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.firm-procedure-detail-link:hover,
.firm-procedure-detail-link:focus-visible {
  color: inherit;
  transform: translateY(-1px);
  border-color: rgba(12, 95, 99, 0.28);
  box-shadow: 0 14px 28px rgba(12, 95, 99, 0.12);
}

.procedure-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.procedure-view-action-form {
  display: inline-flex;
}

.firm-procedure-summary-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.78));
}

.firm-procedure-view-header {
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.14), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(12, 95, 99, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.95));
}

[data-bs-theme="dark"] .firm-client-procedure-group,
[data-bs-theme="dark"] .firm-client-procedure-item {
  border-color: rgba(110, 231, 183, 0.16);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94));
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.36);
}

[data-bs-theme="dark"] .firm-client-procedure-group-body {
  border-top-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme="dark"] .firm-client-procedure-expand-indicator {
  background: rgba(110, 231, 183, 0.12);
  color: #d9efec;
}

[data-bs-theme="dark"] .firm-procedure-detail-link:hover,
[data-bs-theme="dark"] .firm-procedure-detail-link:focus-visible {
  border-color: rgba(110, 231, 183, 0.24);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.42);
}

[data-bs-theme="dark"] .firm-procedure-summary-card,
[data-bs-theme="dark"] .firm-procedure-view-header {
  border-color: rgba(110, 231, 183, 0.16);
}

@media (max-width: 991.98px) {
  .agent-procedure-hero,
  .agent-procedure-start-heading,
  .agent-procedure-section-heading,
  .agent-procedure-submit-row,
  .agent-procedure-strip,
  .agent-support-ticket {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-procedure-route {
    grid-template-columns: 1fr;
  }

  .agent-procedure-hero h1 {
    font-size: 2rem;
  }

  .agent-route-connector {
    width: 2px;
    height: 1.2rem;
    min-width: 2px;
    margin-left: 1.7rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(13, 148, 136, 0.42));
  }

  .agent-procedure-start-grid,
  .agent-procedure-field-pair,
  .agent-consent-row,
  .agent-client-row {
    grid-template-columns: 1fr;
  }

  .agent-procedure-fieldset-wide {
    grid-column: auto;
  }

  .agent-procedure-strip-actions {
    justify-content: flex-start;
  }

  .agent-procedure-mini-route span {
    max-width: 100%;
  }

  .agent-profile-hero {
    padding: 1.15rem;
  }

  .agent-profile-title {
    font-size: 2rem;
  }

  .agent-profile-flow {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-top: 0.4rem;
  }

  .agent-profile-flow::before {
    top: 1rem;
    bottom: 1.6rem;
    left: 1.1rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--agent-flow-active), rgba(244, 182, 63, 0.72), var(--agent-flow-line));
  }

  .agent-profile-node {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    min-height: 3.4rem;
    text-align: left;
  }

  .agent-profile-panel.active,
  .agent-profile-current-heading,
  .agent-profile-procedure {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-profile-metrics,
  .agent-profile-list {
    justify-content: flex-start;
  }

  .agent-profile-metric,
  .agent-profile-list span {
    min-width: min(12rem, 100%);
  }

  .firm-client-procedure-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .firm-client-procedure-summary-facts {
    justify-content: flex-start;
  }

  .firm-client-procedure-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
