:root {
  --navy-980: #03111f;
  --navy-950: #061a2d;
  --navy-930: #08243a;
  --navy-900: #0c2f46;
  --navy-860: #15435e;
  --teal-500: #18c6bf;
  --teal-400: #5adfd9;
  --teal-200: rgba(24, 198, 191, 0.18);
  --orange-500: #ff9b52;
  --orange-300: #ffbd85;
  --red-500: #ff646e;
  --red-200: rgba(255, 100, 110, 0.2);
  --green-500: #49cc96;
  --white: #f5fbff;
  --white-soft: rgba(245, 251, 255, 0.8);
  --muted: #93aac0;
  --muted-strong: #bad0e1;
  --border: rgba(151, 199, 228, 0.14);
  --border-strong: rgba(151, 199, 228, 0.26);
  --surface: rgba(8, 36, 58, 0.76);
  --surface-strong: rgba(10, 45, 71, 0.92);
  --surface-soft: rgba(9, 31, 49, 0.56);
  --surface-light: rgba(255, 255, 255, 0.06);
  --shadow: 0 14px 36px rgba(2, 13, 24, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 240ms ease;
  --font-base: "IBM Plex Sans Arabic", "Tajawal", "Noto Kufi Arabic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(24, 198, 191, 0.12), transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(255, 155, 82, 0.12), transparent 18%),
    linear-gradient(180deg, #04101c 0%, #081f33 40%, #03101e 100%);
  color: var(--white);
  font-family: var(--font-base);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeSpeed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.12;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

#app {
  position: relative;
  z-index: 1;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.35;
  pointer-events: none;
}

.aurora--one {
  top: 80px;
  right: 8%;
  width: 220px;
  height: 220px;
  background: rgba(24, 198, 191, 0.14);
}

.aurora--two {
  top: 280px;
  left: 10%;
  width: 260px;
  height: 260px;
  background: rgba(255, 155, 82, 0.12);
}

.shell-panel {
  background: linear-gradient(180deg, rgba(14, 47, 72, 0.92), rgba(6, 27, 43, 0.84));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  content-visibility: auto;
  contain: layout paint;
  contain-intrinsic-size: 420px;
}

.shell-panel--soft {
  background: linear-gradient(180deg, rgba(16, 42, 63, 0.72), rgba(6, 23, 37, 0.62));
}

.shell-panel--warm {
  background:
    radial-gradient(circle at top left, rgba(255, 155, 82, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(12, 43, 66, 0.94), rgba(6, 26, 41, 0.86));
}

.shell-panel--highlight {
  background:
    radial-gradient(circle at top right, rgba(24, 198, 191, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(13, 50, 77, 0.96), rgba(7, 30, 46, 0.9));
  border-color: rgba(24, 198, 191, 0.25);
}

.shell-panel--danger {
  background:
    radial-gradient(circle at top left, rgba(255, 100, 110, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(75, 15, 22, 0.94), rgba(42, 10, 18, 0.92));
  border-color: rgba(255, 100, 110, 0.3);
}

.shell-panel--danger-soft {
  background:
    radial-gradient(circle at top left, rgba(255, 100, 110, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(51, 13, 20, 0.88), rgba(27, 9, 15, 0.78));
  border-color: rgba(255, 100, 110, 0.22);
}

.eyebrow,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-400);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-topbar {
  width: min(1400px, calc(100% - 48px));
  margin: 28px auto 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 20px;
  z-index: 20;
}

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

.brand img {
  width: 164px;
  height: auto;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(4, 18, 30, 0.16);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text strong {
  font-size: 1rem;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.76rem;
}

.landing-nav,
.topbar-actions,
.filter-row,
.search-pills,
.hero-actions,
.inline-tags,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-nav a {
  color: var(--white-soft);
  font-weight: 500;
  transition: color var(--transition);
}

.landing-nav a:hover,
.nav-link:hover,
.ghost-button:hover {
  color: var(--white);
}

.primary-button,
.ghost-button,
.icon-button,
.mini-button,
.filter-chip {
  border: 0;
  outline: 0;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--teal-500), #10afa8);
  color: #07253b;
  box-shadow: 0 10px 22px rgba(24, 198, 191, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.filter-chip:hover,
.mini-button:hover,
.nav-link:hover,
.feature-card:hover,
.provider-card:hover,
.gallery-card:hover,
.notification-card:hover,
.protocol-card:hover,
.team-card:hover,
.conversation-item:hover,
.kpi-card:hover {
  transform: translateY(-2px);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost-button--light {
  background: rgba(255, 255, 255, 0.08);
}

.primary-button--large {
  min-height: 56px;
  padding-inline: 26px;
}

.landing-main {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-preview,
.page-hero,
.kpi-card,
.provider-card,
.assistant-result-card,
.crisis-banner {
  animation: rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy {
  padding: 38px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 198, 191, 0.1);
  color: var(--teal-400);
  border: 1px solid rgba(24, 198, 191, 0.16);
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 1.08;
  max-width: 11ch;
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 63ch;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 30px;
}

.hero-trust-row {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-trust-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-trust-card strong {
  display: block;
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.mini-trust-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-preview {
  padding: 22px;
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--white-soft);
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.preview-dots span:first-child {
  background: var(--teal-500);
}

.preview-layout {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
}

.preview-sidebar {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-sidebar__brand {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-500), var(--orange-500));
  color: #062239;
  font-weight: 800;
}

.preview-sidebar__line {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-sidebar__line.active {
  background: linear-gradient(90deg, rgba(24, 198, 191, 0.7), rgba(24, 198, 191, 0.24));
}

.preview-sidebar__line.short {
  width: 58%;
}

.preview-content {
  display: grid;
  gap: 16px;
}

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

.preview-metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.preview-metric span,
.preview-metric small {
  display: block;
  color: var(--muted);
}

.preview-metric strong {
  display: block;
  font-size: 1.65rem;
  margin: 10px 0 4px;
}

.preview-chart,
.preview-table {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
}

.preview-table {
  min-height: 88px;
  display: grid;
  gap: 10px;
}

.preview-table span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-table span:nth-child(2) {
  width: 84%;
}

.preview-table span:nth-child(3) {
  width: 66%;
}

.section-block {
  margin-top: 34px;
}

.section-header,
.panel-header,
.chat-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-header h2,
.stats-strip__copy h2,
.cta-banner h2,
.showcase-card h3,
.page-hero h2,
.provider-profile-hero h2,
.assistant-recommendation__summary h2 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  line-height: 1.15;
}

.section-header p,
.stats-strip__copy p,
.showcase-card p,
.cta-banner p,
.page-hero p,
.provider-profile-hero p,
.assistant-recommendation__summary p,
.notification-card p,
.alert-card p,
.team-card p,
.protocol-summary,
.field span,
.list-row span,
.definition-row span,
.focus-item > span {
  color: var(--muted-strong);
}

.feature-grid,
.provider-grid,
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.protocol-card {
  padding: 24px;
}

.feature-card__icon,
.contact-option__icon,
.notification-card__icon,
.kpi-card__icon {
  flex-shrink: 0;
}

.feature-card__icon,
.contact-option__icon,
.notification-card__icon,
.provider-mark,
.kpi-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.feature-card__icon,
.contact-option__icon,
.notification-card__icon,
.kpi-card__icon {
  background: linear-gradient(135deg, rgba(24, 198, 191, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(24, 198, 191, 0.18);
}

.feature-card h3,
.feature-card p,
.protocol-card h3,
.protocol-card p {
  margin: 16px 0 0;
}

.stats-strip {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

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

.stat-badge {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-badge strong {
  display: block;
  font-size: 2rem;
}

.stat-badge span {
  color: var(--muted);
}

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

.showcase-card,
.cta-banner,
.page-hero,
.form-card,
.info-card,
.checklist-card,
.provider-profile-hero,
.assistant-result-card {
  padding: 28px;
}

.recommendation-chip {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 22px;
}

.recommendation-chip span {
  display: block;
  color: var(--muted);
}

.recommendation-chip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-right: 26px;
  color: var(--white-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal-500);
  box-shadow: 0 0 0 6px rgba(24, 198, 191, 0.12);
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  width: min(1580px, calc(100% - 36px));
  margin: 18px auto;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  min-height: calc(100vh - 36px);
  padding: 24px 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(11, 33, 52, 0.96), rgba(6, 24, 38, 0.92)),
    radial-gradient(circle at top right, rgba(24, 198, 191, 0.12), transparent 38%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand--sidebar img {
  width: 126px;
}

.sidebar__summary {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__summary h3 {
  margin: 10px 0 6px;
}

.sidebar__summary p,
.sidebar__footer span,
.nav-group__title,
.chat-card__header .eyebrow,
.conversation-item__body p,
.timeline-item__body p,
.attachment-list h4,
.field span,
.mini-metric span,
.alternative-item span,
.toggle-row span:first-child {
  color: var(--muted);
}

.sidebar__nav {
  display: grid;
  gap: 18px;
  padding-inline: 4px;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-group__title {
  font-size: 0.82rem;
  font-weight: 700;
  padding-inline: 14px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--white-soft);
  font-weight: 600;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition);
}

.nav-link.is-active {
  background: linear-gradient(90deg, rgba(24, 198, 191, 0.16), rgba(255, 255, 255, 0.04));
  color: var(--white);
  border: 1px solid rgba(24, 198, 191, 0.18);
}

.sidebar__footer {
  padding: 18px;
}

.sidebar__footer strong {
  display: block;
  margin: 8px 0 4px;
}

.dashboard-stage {
  position: relative;
  display: grid;
  gap: 20px;
}

.mobile-overlay {
  display: none;
}

.dashboard-topbar {
  padding: 22px 24px;
  border-radius: 30px;
  background: rgba(8, 31, 49, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-topbar__start,
.dashboard-topbar__end,
.profile-chip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-topbar h1 {
  margin: 4px 0;
  font-size: 1.8rem;
}

.dashboard-topbar p {
  margin: 0;
  color: var(--muted);
}

.search-field {
  min-width: 320px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.topbar-date {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.profile-chip {
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-chip__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), #ffb06e);
  color: #062239;
  font-weight: 800;
}

.profile-chip strong {
  display: block;
}

.profile-chip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.page-container {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-hero p {
  max-width: 58ch;
  margin: 12px 0 0;
}

.split-layout,
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 18px;
}

.stacked-column,
.assistant-results {
  display: grid;
  gap: 18px;
}

.form-card__header h3,
.panel-header h3,
.settings-panel h3,
.chat-card__header h3,
.crisis-banner h2,
.showcase-card h3,
.provider-card h3,
.conversation-item__head strong,
.assistant-result-card h3,
.protocol-card h3,
.notification-card h4,
.focus-item strong,
.gallery-card h4,
.certificate-card span,
.contact-option strong,
.provider-profile-hero__identity h2 {
  margin: 0;
}

.form-card__header p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.field,
.toggle-row,
.integration-card,
.focus-item,
.team-card,
.alert-card,
.certificate-card,
.contact-option,
.list-row,
.definition-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

.field {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  width: 100%;
  outline: none;
}

.field select option {
  color: #062239;
}

.field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.list-rows,
.focus-list,
.attachment-list,
.toggle-list,
.certificate-list,
.contact-options,
.timeline-list,
.alternative-list,
.response-team,
.alert-stack {
  display: grid;
  gap: 12px;
}

.list-row,
.definition-row,
.toggle-row,
.focus-item,
.integration-card,
.team-card,
.alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.compliance-score,
.distribution-card,
.assistant-recommendation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.donut {
  --donut-accent: var(--teal-500);
  width: 158px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(var(--donut-accent) calc(var(--donut-value) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: grid;
  place-items: center;
}

.donut--teal {
  --donut-accent: var(--teal-500);
}

.donut--orange {
  --donut-accent: var(--orange-500);
}

.donut--navy {
  --donut-accent: #71c5ff;
}

.donut--green {
  --donut-accent: var(--green-500);
}

.donut--red {
  --donut-accent: var(--red-500);
}

.donut__inner {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-950);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
}

.donut__inner strong {
  font-size: 1.7rem;
  line-height: 1;
}

.donut__inner span {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.kpi-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.kpi-card__content span,
.mini-metric span,
.vertical-bar small {
  color: var(--muted);
}

.kpi-card__content strong {
  display: block;
  font-size: 2.05rem;
  margin: 8px 0 6px;
}

.kpi-card__content small {
  color: var(--muted-strong);
}

.tone-teal .kpi-card__icon,
.status-badge--teal,
.progress-row__track .tone-teal,
.vertical-bar__track .tone-teal,
.conversation-item.is-active .conversation-item__avatar {
  background: linear-gradient(135deg, rgba(24, 198, 191, 0.28), rgba(24, 198, 191, 0.16));
}

.tone-orange .kpi-card__icon,
.status-badge--orange,
.progress-row__track .tone-orange,
.vertical-bar__track .tone-orange {
  background: linear-gradient(135deg, rgba(255, 155, 82, 0.28), rgba(255, 155, 82, 0.14));
}

.tone-green .kpi-card__icon,
.status-badge--green,
.progress-row__track .tone-green,
.vertical-bar__track .tone-green {
  background: linear-gradient(135deg, rgba(73, 204, 150, 0.28), rgba(73, 204, 150, 0.14));
}

.tone-navy .kpi-card__icon,
.status-badge--navy,
.progress-row__track .tone-navy,
.vertical-bar__track .tone-navy {
  background: linear-gradient(135deg, rgba(113, 197, 255, 0.26), rgba(113, 197, 255, 0.12));
}

.tone-red .kpi-card__icon,
.status-badge--red,
.progress-row__track .tone-red,
.vertical-bar__track .tone-red {
  background: linear-gradient(135deg, rgba(255, 100, 110, 0.28), rgba(255, 100, 110, 0.14));
}

.tone-primary {
  border-color: rgba(255, 255, 255, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  color: var(--white);
}

.status-badge--teal {
  border-color: rgba(24, 198, 191, 0.18);
}

.status-badge--orange {
  border-color: rgba(255, 155, 82, 0.18);
}

.status-badge--green {
  border-color: rgba(73, 204, 150, 0.18);
}

.status-badge--navy {
  border-color: rgba(113, 197, 255, 0.16);
}

.status-badge--red {
  border-color: rgba(255, 100, 110, 0.22);
}

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

.analytics-grid--campaigns {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.chart-card {
  display: grid;
  gap: 14px;
}

.line-chart {
  width: 100%;
  height: 220px;
}

.line-chart line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 6 10;
}

.line-chart__area {
  fill: url(#areaGradient);
}

.line-chart__line {
  fill: none;
  stroke: var(--teal-500);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.line-chart circle {
  fill: var(--white);
  stroke: var(--teal-500);
  stroke-width: 3;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.stack-bars,
.distribution-list {
  display: grid;
  gap: 14px;
}

.progress-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-row__track,
.progress-pill__track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-row__track span,
.progress-pill__track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.progress-pill {
  min-width: 140px;
}

.progress-pill__track {
  margin-bottom: 8px;
}

.progress-pill__track span {
  background: linear-gradient(90deg, var(--teal-500), var(--orange-500));
}

.progress-pill strong {
  font-size: 0.88rem;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.data-table td {
  color: var(--white-soft);
}

.bar-cluster {
  min-height: 240px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.vertical-bar {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.vertical-bar__track {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
  display: flex;
  align-items: flex-end;
}

.vertical-bar__track span {
  width: 100%;
  border-radius: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-item__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 7px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.timeline-item--teal .timeline-item__dot {
  background: var(--teal-500);
}

.timeline-item--orange .timeline-item__dot {
  background: var(--orange-500);
}

.timeline-item--navy .timeline-item__dot {
  background: #71c5ff;
}

.timeline-item--green .timeline-item__dot {
  background: var(--green-500);
}

.timeline-item--red .timeline-item__dot {
  background: var(--red-500);
}

.timeline-item__body {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-item__body small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.timeline-item__body strong {
  display: block;
  margin-bottom: 6px;
}

.focus-item__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.providers-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-pills span,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white-soft);
}

.provider-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.provider-card__head,
.provider-card__footer,
.provider-card__stats,
.recommendation-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.provider-card__stats .mini-metric,
.provider-profile-hero__stats .mini-metric {
  min-width: 120px;
}

.mini-metric {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.provider-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.provider-profile-hero__identity,
.provider-profile-hero__stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.provider-mark {
  background: linear-gradient(135deg, var(--teal-500), var(--orange-500));
  color: #07253b;
  font-size: 1.2rem;
  font-weight: 800;
}

.definition-list {
  display: grid;
  gap: 12px;
}

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

.gallery-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.gallery-card__visual {
  height: 160px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.visual-1 {
  background:
    linear-gradient(135deg, rgba(24, 198, 191, 0.28), rgba(7, 35, 53, 0.28)),
    linear-gradient(180deg, #12415e, #0a2539);
}

.visual-2 {
  background:
    linear-gradient(135deg, rgba(255, 155, 82, 0.24), rgba(7, 35, 53, 0.28)),
    linear-gradient(180deg, #0e3450, #082033);
}

.visual-3 {
  background:
    linear-gradient(135deg, rgba(113, 197, 255, 0.28), rgba(7, 35, 53, 0.28)),
    linear-gradient(180deg, #11344f, #071d2d);
}

.messages-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  gap: 18px;
}

.messages-list,
.chat-card,
.message-details {
  padding: 22px;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: right;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.conversation-item.is-active {
  border-color: rgba(24, 198, 191, 0.18);
  background: rgba(24, 198, 191, 0.08);
}

.conversation-item__avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}

.conversation-item__body {
  flex: 1;
}

.conversation-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.conversation-item__body p {
  margin: 0;
}

.notification-dot {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--teal-500);
  color: #07253b;
  font-size: 0.82rem;
  font-weight: 800;
}

.chat-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 720px;
}

.chat-thread {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-block: 12px;
}

.bubble {
  max-width: 72%;
  padding: 14px 16px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
}

.bubble p {
  margin: 0;
}

.bubble span {
  color: var(--muted);
  font-size: 0.82rem;
}

.bubble--them {
  justify-self: start;
  background: rgba(255, 255, 255, 0.05);
}

.bubble--me {
  justify-self: end;
  background: rgba(24, 198, 191, 0.14);
  border: 1px solid rgba(24, 198, 191, 0.16);
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.chat-input input {
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  padding: 0 18px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.notification-list {
  display: grid;
  gap: 14px;
}

.notification-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 20px;
}

.notification-card__body small {
  color: var(--muted);
}

.tone-teal.notification-card {
  border-color: rgba(24, 198, 191, 0.22);
}

.tone-orange.notification-card {
  border-color: rgba(255, 155, 82, 0.2);
}

.tone-navy.notification-card {
  border-color: rgba(113, 197, 255, 0.18);
}

.tone-green.notification-card {
  border-color: rgba(73, 204, 150, 0.18);
}

.tone-red.notification-card {
  border-color: rgba(255, 100, 110, 0.22);
}

.crisis-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.crisis-banner__stats,
.result-grid,
.integration-grid,
.contact-options,
.assistant-recommendation,
.provider-card__stats {
  display: grid;
  gap: 12px;
}

.crisis-banner__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 360px;
}

.alert-card--red {
  border-color: rgba(255, 100, 110, 0.24);
}

.alert-card--orange {
  border-color: rgba(255, 155, 82, 0.2);
}

.alert-card--navy {
  border-color: rgba(113, 197, 255, 0.18);
}

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

.settings-panel {
  padding: 24px;
}

.toggle-row {
  padding: 14px 16px;
}

.toggle {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-flex;
  align-items: center;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background var(--transition);
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--transition);
}

.toggle.is-on span {
  background: linear-gradient(90deg, var(--teal-500), #0ea9a3);
}

.toggle.is-on span::after {
  transform: translateX(-24px);
}

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

.integration-card {
  min-height: 100px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.assistant-form {
  padding: 24px;
}

.assistant-recommendation {
  grid-template-columns: 1fr auto;
  margin-top: 10px;
}

.assistant-recommendation__summary {
  display: grid;
  gap: 14px;
}

.alternative-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.protocol-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.protocols-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  background: #f6fbff;
  color: #12344f;
}

.protocols-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #09254a 0%, #041c39 100%);
  color: #fff;
  padding: 18px 16px 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.protocols-sidebar__brand {
  display: grid;
  place-items: center;
}

.protocols-sidebar__logo {
  width: 132px;
  border-radius: 18px;
}

.protocols-sidebar__nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.protocols-nav-link {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
  transition: background var(--transition), transform var(--transition);
}

.protocols-nav-link .icon {
  width: 20px;
  height: 20px;
}

.protocols-nav-link.is-active {
  background: linear-gradient(135deg, #16c5be, #0fb2ab);
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 197, 190, 0.2);
}

.protocols-sidebar__support {
  display: grid;
  gap: 14px;
}

.protocols-sidebar__support-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.protocols-sidebar__support-card strong,
.protocols-sidebar__support-card bdi,
.protocols-sidebar__logout {
  color: #fff;
}

.protocols-sidebar__support-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.protocols-sidebar__logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px;
}

.protocols-stage {
  background: #fbfdff;
  padding: 0;
  gap: 0;
}

.protocols-topbar {
  background: #fff;
  border-bottom: 1px solid #e6eef5;
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 30px;
}

.protocols-topbar__profile,
.protocols-topbar__search,
.protocols-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.protocols-user__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b6cb0, #1b9aaa);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.protocols-user strong {
  display: block;
  color: #18324a;
}

.protocols-user span {
  color: #7f93a8;
  font-size: 0.9rem;
}

.protocols-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid #e0e8f1;
  border-radius: 12px;
  background: #fff;
  color: #254865;
  display: inline-grid;
  place-items: center;
  position: relative;
}

.protocols-icon-button--badge em {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ea445a;
  color: #fff;
  font-size: 0.7rem;
  font-style: normal;
  display: grid;
  place-items: center;
}

.protocols-search {
  height: 42px;
  min-width: 260px;
  border-radius: 12px;
  border: 1px solid #e0e8f1;
  background: #fff;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #6a8199;
}

.protocols-search input {
  border: 0;
  background: transparent;
  width: 100%;
  color: #6a8199;
}

.protocols-search--wide {
  min-width: 330px;
}

.protocols-page-container {
  background: #f7fbff;
  padding: 24px 28px 32px;
}

.protocols-page {
  display: grid;
  gap: 18px;
  color: #17324b;
}

.protocols-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.protocols-header h1 {
  margin: 8px 0 0;
  font-size: 2rem;
  color: #18324a;
}

.protocols-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8ba0b6;
}

.protocols-breadcrumb .icon {
  color: #17324b;
}

.protocols-breadcrumb small {
  color: #b1bfcc;
}

.protocols-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.protocols-actions__left,
.protocols-actions__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.protocols-primary-button,
.protocols-secondary-button,
.protocols-filter-button,
.protocols-outline-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #dce6ef;
  background: #fff;
  color: #17324b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.protocols-primary-button {
  background: linear-gradient(135deg, #18c6bf, #13b0aa);
  border-color: transparent;
  color: #fff;
}

.protocols-filter-button {
  min-width: 160px;
  justify-content: space-between;
}

.protocols-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}

.protocols-left-rail,
.protocols-main-column,
.protocols-right-rail {
  display: grid;
  gap: 18px;
}

.protocols-light-card {
  background: #fff;
  border: 1px solid #e5edf4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(14, 31, 53, 0.06);
}

.protocols-light-card--accent {
  background: linear-gradient(180deg, #f8fefc 0%, #ffffff 100%);
}

.protocols-card-title,
.protocols-card-head h3,
.protocols-guide__header h3 {
  margin: 0;
  color: #17324b;
  font-size: 1.1rem;
}

.protocols-card-title {
  font-weight: 800;
  margin-bottom: 16px;
}

.protocols-card-title--star {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.protocols-card-title--star .icon {
  color: #f3b322;
}

.protocols-categories,
.protocols-featured-list,
.protocols-benefits,
.protocols-stats,
.protocols-result-steps {
  display: grid;
  gap: 12px;
}

.protocols-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.protocols-category-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
  color: #314d68;
}

.protocols-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f2f6fa;
  color: #758ca4;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
}

.protocols-category-item__icon,
.protocols-quick-tile__icon,
.protocols-table__protocol-icon,
.protocols-benefit__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
}

.protocols-category-item__icon.tone-teal,
.protocols-quick-tile__icon.tone-teal,
.protocols-table__protocol-icon.tone-teal,
.protocols-benefit__icon.tone-teal {
  background: #ecfbfa;
  color: #12a9a2;
  border-color: #d4f4f1;
}

.protocols-category-item__icon.tone-orange,
.protocols-quick-tile__icon.tone-orange,
.protocols-table__protocol-icon.tone-orange,
.protocols-benefit__icon.tone-orange {
  background: #fff7ed;
  color: #eb9c22;
  border-color: #fee3c7;
}

.protocols-category-item__icon.tone-purple,
.protocols-quick-tile__icon.tone-purple,
.protocols-table__protocol-icon.tone-purple,
.protocols-benefit__icon.tone-purple,
.protocols-category-item__icon.tone-violet,
.protocols-quick-tile__icon.tone-violet,
.protocols-table__protocol-icon.tone-violet,
.protocols-benefit__icon.tone-violet {
  background: #f6efff;
  color: #8d5ee8;
  border-color: #e6d7ff;
}

.protocols-category-item__icon.tone-pink,
.protocols-quick-tile__icon.tone-pink,
.protocols-table__protocol-icon.tone-pink,
.protocols-benefit__icon.tone-pink {
  background: #fff0f5;
  color: #e1709d;
  border-color: #ffd9e7;
}

.protocols-category-item__icon.tone-blue,
.protocols-quick-tile__icon.tone-blue,
.protocols-table__protocol-icon.tone-blue,
.protocols-benefit__icon.tone-blue {
  background: #edf6ff;
  color: #4296f4;
  border-color: #d8e9fb;
}

.protocols-category-item__icon.tone-green,
.protocols-quick-tile__icon.tone-green,
.protocols-table__protocol-icon.tone-green,
.protocols-benefit__icon.tone-green {
  background: #eefcf4;
  color: #35b373;
  border-color: #d5f4e3;
}

.protocols-category-item__icon.tone-slate,
.protocols-quick-tile__icon.tone-slate,
.protocols-table__protocol-icon.tone-slate,
.protocols-benefit__icon.tone-slate {
  background: #f4f6fa;
  color: #61758b;
  border-color: #e2e8f0;
}

.protocols-outline-button {
  width: 100%;
  margin-top: 18px;
}

.protocols-featured-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #eef3f7;
}

.protocols-featured-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.protocols-featured-item strong,
.protocols-benefit strong,
.protocols-stat-row strong,
.protocols-table__protocol strong,
.protocols-quick-tile strong {
  display: block;
  color: #17324b;
}

.protocols-featured-item span,
.protocols-side-text,
.protocols-benefit span,
.protocols-stat-row span,
.protocols-table__protocol span,
.protocols-guide__header p,
.protocols-mini-title,
.protocols-result-step p {
  color: #7d93a8;
}

.protocols-text-link {
  color: #2581c4;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
}

.protocols-text-link--center {
  display: block;
  margin: 18px auto 0;
}

.protocols-guide {
  background: linear-gradient(135deg, #f6fffd 0%, #fbfffe 60%, #f7fbff 100%);
}

.protocols-guide__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.protocols-guide__header p {
  margin: 8px 0 0;
}

.protocols-guide__wand {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eefaf7;
  color: #7fc7bb;
}

.protocols-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.protocols-quick-tile {
  border: 1px solid #ebf1f6;
  border-radius: 16px;
  background: #fff;
  min-height: 118px;
  padding: 14px 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  color: #17324b;
}

.protocols-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.protocols-table {
  display: grid;
}

.protocols-table__head,
.protocols-table__row {
  display: grid;
  grid-template-columns: 2.1fr 1fr 0.8fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.protocols-table__head {
  color: #94a8bb;
  font-size: 0.88rem;
  padding: 0 6px 12px;
}

.protocols-table__row {
  padding: 18px 6px;
  border-top: 1px solid #eef2f6;
}

.protocols-table__protocol {
  display: flex;
  align-items: center;
  gap: 14px;
}

.protocols-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.protocols-row-icon {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #44627d;
  display: inline-grid;
  place-items: center;
}

.protocols-benefit,
.protocols-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.protocols-benefit {
  align-items: start;
}

.protocols-assistant-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.protocols-ai-form .field,
.protocols-ai-result .protocols-subcard {
  background: #fbfdff;
  border-color: #e7eef5;
}

.protocols-ai-form .field input,
.protocols-ai-form .field select,
.protocols-ai-form .field textarea {
  background: #fff;
  border-color: #e1e8f0;
  color: #17324b;
}

.protocols-ai-form .field span {
  color: #6c849c;
}

.protocols-ai-result {
  display: grid;
  gap: 14px;
}

.protocols-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e8edf4;
  color: #6a8199;
  background: #f9fbfd;
  font-weight: 700;
}

.protocols-result-step {
  padding: 14px 16px;
  border: 1px solid #ebf1f6;
  border-right-width: 4px;
  border-radius: 14px;
  background: #fbfdff;
}

.protocols-result-step small {
  display: block;
  color: #96a9bb;
  margin-bottom: 6px;
}

.protocols-result-step strong {
  display: block;
  color: #17324b;
  margin-bottom: 6px;
}

.protocols-result-step--teal {
  border-right-color: #18c6bf;
}

.protocols-result-step--orange {
  border-right-color: #f6a545;
}

.protocols-result-step--navy {
  border-right-color: #4486d8;
}

.protocols-result-step--green {
  border-right-color: #4ab980;
}

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

.protocols-subcard {
  padding: 16px;
  border: 1px solid #ebf1f6;
  border-radius: 14px;
  background: #fff;
}

.protocols-page .tag {
  background: #f5f9fd;
  border-color: #e5edf4;
  color: #34526d;
}

.filter-chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.filter-chip.is-active {
  background: rgba(24, 198, 191, 0.14);
  border-color: rgba(24, 198, 191, 0.22);
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-grid;
  place-items: center;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-only,
.desktop-hidden {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1380px) {
  .hero-grid,
  .split-layout,
  .assistant-layout,
  .messages-layout,
  .analytics-grid--campaigns,
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 290px minmax(0, 1fr);
  }

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

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

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

  .messages-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .message-details {
    grid-column: 1 / -1;
  }

  .protocols-layout,
  .protocols-assistant-layout {
    grid-template-columns: 1fr;
  }

  .protocols-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body::before,
  .aurora {
    display: none;
  }

  .landing-nav,
  .search-field,
  .topbar-date {
    display: none;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .protocols-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 18px;
    bottom: 18px;
    right: 18px;
    width: min(320px, calc(100% - 36px));
    min-height: auto;
    transform: translateX(calc(100% + 24px));
    transition: transform var(--transition);
    z-index: 40;
  }

  .protocols-sidebar {
    position: fixed;
    top: 16px;
    bottom: 16px;
    right: 16px;
    width: min(280px, calc(100% - 32px));
    min-height: auto;
    border-radius: 24px;
    transform: translateX(calc(100% + 30px));
    transition: transform var(--transition);
    z-index: 40;
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-open .protocols-sidebar {
    transform: translateX(0);
  }

  .sidebar-open .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 19, 0.56);
    z-index: 35;
  }

  .desktop-hidden,
  .mobile-only {
    display: inline-grid;
  }

  .dashboard-topbar {
    position: sticky;
    top: 18px;
    z-index: 20;
  }

  .page-hero,
  .stats-strip,
  .provider-profile-hero,
  .crisis-banner,
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .kpi-grid,
  .analytics-grid,
  .grid-two-columns,
  .settings-grid,
  .feature-grid,
  .provider-grid,
  .protocol-grid,
  .gallery-grid,
  .integration-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .protocols-table__head,
  .protocols-table__row {
    grid-template-columns: 1.7fr 1fr 1fr;
  }

  .protocols-table__head span:last-child,
  .protocols-table__row > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .landing-topbar,
  .landing-main,
  .dashboard-shell {
    width: calc(100% - 24px);
  }

  .landing-topbar {
    padding: 16px;
    margin-top: 12px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.4rem;
  }

  .hero-trust-row,
  .preview-metrics,
  .stats-strip__grid,
  .form-grid,
  .crisis-banner__stats {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    padding: 18px;
  }

  .protocols-topbar,
  .protocols-actions {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .protocols-topbar {
    min-height: auto;
  }

  .protocols-topbar__profile,
  .protocols-topbar__search,
  .protocols-actions__left,
  .protocols-actions__right {
    justify-content: space-between;
  }

  .protocols-search,
  .protocols-search--wide {
    min-width: 0;
    width: 100%;
  }

  .dashboard-topbar__end {
    justify-content: flex-end;
  }

  .profile-chip span {
    display: none;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .chat-card {
    min-height: auto;
  }

  .compliance-score,
  .distribution-card,
  .assistant-recommendation {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .protocols-page-container {
    padding: 18px;
  }

  .protocols-quick-grid,
  .protocols-result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .shell-panel,
  .dashboard-topbar {
    backdrop-filter: none;
  }

  .landing-topbar,
  .dashboard-topbar {
    border-radius: 22px;
  }

  .brand__text,
  .topbar-actions .ghost-button {
    display: none;
  }

  .hero-actions,
  .form-actions,
  .chat-input,
  .provider-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .ghost-button,
  .chat-input .primary-button {
    width: 100%;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }

  .protocols-topbar__profile,
  .protocols-actions__left,
  .protocols-actions__right {
    display: grid;
    justify-content: stretch;
  }

  .protocols-quick-grid,
  .protocols-result-grid {
    grid-template-columns: 1fr;
  }

  .protocols-primary-button,
  .protocols-secondary-button,
  .protocols-filter-button,
  .protocols-outline-button {
    width: 100%;
  }

  .protocols-table__head {
    display: none;
  }

  .protocols-table__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Smart PR Hub V2 */

.landing-shell {
  overflow: hidden;
}

.sph-home,
.sph-light-shell,
.sph-request-shell,
.sph-auth-shell {
  --sph-page: #f4f8fc;
  --sph-card: #ffffff;
  --sph-ink: #0a1d34;
  --sph-muted: #6a7e93;
  --sph-line: #e6eef5;
  --sph-shadow: 0 22px 60px rgba(8, 25, 49, 0.1);
  --sph-sidebar: #071b3a;
  --sph-sidebar-2: #0a244c;
  --sph-teal: #19c9bf;
  --sph-teal-soft: #eaf9f7;
  --sph-orange: #ff9d2e;
  --sph-orange-soft: #fff5e9;
  --sph-blue: #2f84f5;
  --sph-blue-soft: #edf5ff;
  --sph-green: #23b96b;
  --sph-green-soft: #ebfbf2;
  --sph-violet: #7b61ff;
  --sph-violet-soft: #f1edff;
  --sph-red: #ee5151;
  --sph-red-soft: #fff0f0;
  color: var(--sph-ink);
}

.sph-home {
  min-height: 100vh;
  padding: 26px min(4vw, 44px) 72px;
  background:
    radial-gradient(circle at 10% 20%, rgba(18, 214, 196, 0.18), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(255, 164, 66, 0.16), transparent 18%),
    linear-gradient(180deg, #04142f 0%, #061a3f 56%, #041531 100%);
  color: #f7fbff;
  position: relative;
}

.sph-home::before,
.sph-home::after,
.sph-auth-side::before,
.sph-request-sidebar::before {
  content: "";
  position: absolute;
  inset: auto auto 6% -6%;
  width: 92%;
  height: 44%;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(24, 198, 191, 0.18), transparent 55%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 9px);
  opacity: 0.12;
  filter: blur(0.2px);
  transform: rotate(-8deg);
}

.sph-home::after,
.sph-auth-side::before,
.sph-request-sidebar::before {
  inset: auto -16% 0 auto;
  width: 96%;
  height: 52%;
  transform: rotate(4deg);
  opacity: 0.16;
}

.sph-home__nav,
.sph-home__hero,
.sph-home__screen,
.sph-home__hero-panels,
.sph-light-topbar,
.sph-toolbar,
.sph-card__head--space,
.sph-flow-header,
.sph-messages-shell,
.sph-notifications-shell,
.sph-settings-shell,
.sph-crisis-layout,
.sph-provider-detail-top,
.sph-selection-card,
.sph-compare-table,
.sph-provider-hero,
.sph-dashboard-grid {
  direction: ltr;
}

.sph-home__nav,
.sph-home__hero,
.sph-home__stats,
.sph-light-topbar,
.sph-light-page,
.sph-request-topbar,
.sph-request-page,
.sph-auth-main {
  width: min(1440px, 100%);
  margin-inline: auto;
}

.sph-home__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 12px;
}

.sph-home__brand img {
  width: 128px;
  height: auto;
}

.sph-home__links,
.sph-home__actions,
.sph-home__hero-actions,
.sph-home__highlights,
.sph-inline-actions,
.sph-tabs,
.sph-criteria-row,
.sph-provider-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sph-home__links {
  direction: rtl;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
}

.sph-home__links a {
  padding: 10px 0;
  position: relative;
  transition: color var(--transition);
}

.sph-home__links a.is-active,
.sph-home__links a:hover {
  color: #fff;
}

.sph-home__links a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sph-teal), #4bd9ff);
  box-shadow: 0 0 18px rgba(24, 198, 191, 0.5);
}

.sph-home__actions {
  justify-content: flex-end;
}

.sph-home__login,
.sph-home__cta,
.sph-home__secondary,
.sph-auth-next,
.sph-primary-action,
.sph-secondary-action,
.sph-outline-mini,
.sph-outline-mini--wide,
.sph-link-button,
.sph-support-card,
.sph-danger-action,
.sph-request-actions button {
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.sph-home__cta,
.sph-auth-next,
.sph-primary-action,
.sph-danger-action {
  background: linear-gradient(135deg, #ffad2f, #ff8e23);
  color: #fff;
  box-shadow: 0 16px 30px rgba(255, 147, 35, 0.22);
}

.sph-home__cta:hover,
.sph-auth-next:hover,
.sph-primary-action:hover,
.sph-danger-action:hover {
  transform: translateY(-2px);
}

.sph-home__cta {
  padding: 16px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.sph-home__cta--large {
  padding-inline: 34px;
  min-width: 210px;
  justify-content: center;
}

.sph-home__login,
.sph-home__secondary,
.sph-secondary-action,
.sph-outline-mini,
.sph-link-button {
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.22);
}

.sph-home__login,
.sph-home__secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 700;
}

.sph-home__secondary {
  min-width: 210px;
  justify-content: center;
}

.sph-home__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 52px;
}

.sph-home__copy,
.sph-home__visual,
.sph-home__links,
.sph-home__stats,
.sph-flow-copy,
.sph-auth-page,
.sph-card,
.sph-filter-panel,
.sph-messages-list,
.sph-chat-v2,
.sph-message-aside,
.sph-request-summary,
.sph-request-help,
.sph-selection-card > *,
.sph-compare-column,
.sph-compare-table__aside,
.sph-provider-row > *,
.sph-provider-detail-main,
.sph-light-sidebar,
.sph-light-stage,
.sph-auth-side,
.sph-request-sidebar {
  direction: rtl;
}

.sph-home__copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.15rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sph-home__copy h1 span {
  color: #24d0db;
}

.sph-home__copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(244, 251, 255, 0.86);
  font-size: 1.42rem;
  line-height: 1.9;
}

.sph-home__hero-actions {
  margin-top: 34px;
}

.sph-home__highlights {
  margin-top: 40px;
  gap: 26px;
  color: rgba(246, 251, 255, 0.92);
}

.sph-home__highlights > div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
}

.sph-home__highlights .icon {
  color: var(--sph-teal);
}

.sph-home__visual {
  position: relative;
}

.sph-home__laptop {
  position: relative;
}

.sph-home__screen {
  display: flex;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
  min-height: 510px;
}

.sph-home__screen-sidebar {
  width: 168px;
  background: linear-gradient(180deg, #051835, #071a3d);
  color: #f8fbff;
  padding: 24px 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.sph-home__screen-logo {
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.sph-home__screen-sidebar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.sph-home__screen-sidebar > div.is-active {
  background: linear-gradient(135deg, rgba(24, 198, 191, 0.86), rgba(20, 165, 175, 0.96));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.sph-home__screen-main {
  direction: rtl;
  flex: 1;
  padding: 24px 26px;
  display: grid;
  align-content: start;
  gap: 22px;
}

.sph-home__screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sph-home__screen-top h3,
.sph-light-topbar__title h1,
.sph-auth-heading h1,
.sph-flow-copy h2,
.sph-provider-hero h2 {
  margin: 0;
  color: var(--sph-ink);
}

.sph-home__mini-search,
.sph-top-search,
.sph-small-search,
.sph-filter-mini,
.sph-mini-field,
.sph-auth-select,
.sph-auth-phone__code {
  border: 1px solid var(--sph-line);
  background: #fff;
  color: var(--sph-muted);
  border-radius: 16px;
}

.sph-home__mini-search {
  min-width: 190px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sph-home__hero-metrics,
.sph-home__stats-grid,
.sph-metrics-grid,
.sph-auth-grid,
.sph-settings-preferences,
.sph-provider-feature-grid,
.sph-crisis-facts,
.sph-crisis-mini-cards,
.sph-selection-stack,
.sph-files {
  display: grid;
  gap: 18px;
}

.sph-home__hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sph-home-metric,
.sph-home-alert,
.sph-home-stat,
.sph-metric-card,
.sph-card,
.sph-filter-panel,
.sph-messages-list,
.sph-chat-v2,
.sph-request-summary,
.sph-request-help,
.sph-message-aside > .sph-card {
  background: var(--sph-card);
  border: 1px solid var(--sph-line);
  border-radius: 24px;
  box-shadow: var(--sph-shadow);
}

.sph-home-metric {
  padding: 18px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
}

.sph-home-metric span,
.sph-metric-card span,
.sph-home-alert span,
.sph-home-stat span,
.sph-profile-card span,
.sph-light-topbar__title p,
.sph-request-summary small,
.sph-auth-heading p,
.sph-auth-field input::placeholder,
.sph-auth-select span,
.sph-provider-row span,
.sph-ranked-item small,
.sph-ranked-item span,
.sph-notification-row p,
.sph-notification-row em,
.sph-settings-nav__item span,
.sph-mini-feature span,
.sph-request-help span,
.sph-provider-hero small,
.sph-provider-hero p,
.sph-conversation-v2 p,
.sph-chat-bubble span,
.sph-auth-feature span,
.sph-settings-input span,
.sph-preference-box span,
.sph-request-summary .list-row span,
.sph-request-summary .definition-row span {
  color: var(--sph-muted);
}

.sph-home-metric strong,
.sph-home-stat strong,
.sph-metric-card strong,
.sph-request-summary .list-row strong,
.sph-request-summary .definition-row strong,
.sph-provider-row strong,
.sph-ranked-item strong,
.sph-card h3,
.sph-flow-copy h2,
.sph-provider-hero strong,
.sph-settings-nav__item,
.sph-mini-feature strong,
.sph-auth-feature strong,
.sph-compare-cell strong,
.sph-chat-bubble p,
.sph-conversation-v2 strong,
.sph-provider-row h4,
.sph-provider-hero h2,
.sph-selection-card strong,
.sph-request-help strong {
  color: var(--sph-ink);
}

.sph-home-metric.tone-danger {
  background: linear-gradient(180deg, #fff, #fff3f1);
}

.sph-home-metric.tone-teal {
  background: linear-gradient(180deg, #fff, #effbf9);
}

.sph-home-metric.tone-blue {
  background: linear-gradient(180deg, #fff, #eff5ff);
}

.sph-home-metric.tone-green {
  background: linear-gradient(180deg, #fff, #eefaf2);
}

.sph-home__hero-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.sph-home__hero-chart,
.sph-home__hero-alerts {
  border: 1px solid var(--sph-line);
  border-radius: 20px;
  background: #fff;
  padding: 20px;
}

.sph-home__panel-title {
  margin-bottom: 16px;
  color: var(--sph-ink);
  font-weight: 800;
}

.sph-home__hero-alerts {
  display: grid;
  gap: 12px;
  align-content: start;
}

.sph-home-alert {
  padding: 14px 16px;
  display: grid;
  gap: 2px;
  border-radius: 16px;
  box-shadow: none;
}

.sph-home-alert strong {
  color: var(--sph-ink);
}

.sph-home-alert small {
  color: var(--sph-muted);
}

.sph-home-alert.tone-red {
  background: #fff3f3;
}

.sph-home-alert.tone-green {
  background: #eefaf3;
}

.sph-home-alert.tone-blue {
  background: #eff6ff;
}

.sph-home__laptop-base {
  width: 86%;
  height: 18px;
  margin: -2px auto 0;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #f7f7f7, #d4d7de);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.sph-home__stats {
  margin-top: 58px;
}

.sph-home__stats h2 {
  margin: 0 0 30px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: #fff9f6;
}

.sph-home__stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sph-home-stat {
  padding: 28px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: rgba(6, 22, 48, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.sph-home-stat span {
  color: rgba(247, 251, 255, 0.72);
}

.sph-home-stat h3 {
  margin: 8px 0 4px;
  color: #fff;
  font-size: 1.6rem;
}

.sph-home-stat strong {
  color: #fff;
  font-size: 3rem;
  line-height: 1;
}

.sph-home-stat__icon,
.sph-metric-card__icon,
.sph-auth-feature__icon,
.sph-preference-box__icon,
.sph-action-card__icon,
.sph-mini-feature__icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.sph-home-stat__icon .icon,
.sph-metric-card__icon .icon,
.sph-auth-feature__icon .icon,
.sph-preference-box__icon .icon,
.sph-action-card__icon .icon,
.sph-mini-feature__icon .icon {
  width: 32px;
  height: 32px;
}

.tone-blue .sph-home-stat__icon,
.sph-metric-card.tone-blue .sph-metric-card__icon,
.sph-preference-box .sph-preference-box__icon,
.sph-auth-feature__icon,
.sph-action-card.tone-blue .sph-action-card__icon {
  background: linear-gradient(135deg, #2f84f5, #1f66db);
}

.tone-green .sph-home-stat__icon,
.sph-metric-card.tone-green .sph-metric-card__icon,
.sph-action-card.tone-green .sph-action-card__icon {
  background: linear-gradient(135deg, #32c874, #20a95d);
}

.tone-violet .sph-home-stat__icon,
.sph-metric-card.tone-violet .sph-metric-card__icon,
.tone-purple .sph-home-stat__icon,
.sph-metric-card.tone-purple .sph-metric-card__icon,
.sph-action-card.tone-purple .sph-action-card__icon {
  background: linear-gradient(135deg, #8a73ff, #6a4cff);
}

.tone-orange .sph-home-stat__icon,
.sph-metric-card.tone-orange .sph-metric-card__icon,
.sph-action-card.tone-orange .sph-action-card__icon {
  background: linear-gradient(135deg, #ffbf3a, #ff9616);
}

.tone-teal .sph-home-stat__icon,
.sph-metric-card.tone-teal .sph-metric-card__icon {
  background: linear-gradient(135deg, #24cdbf, #16a6a3);
}

.tone-red .sph-home-stat__icon,
.sph-metric-card.tone-red .sph-metric-card__icon {
  background: linear-gradient(135deg, #f16868, #db4040);
}

.sph-light-shell,
.sph-request-shell,
.sph-auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(24, 198, 191, 0.09), transparent 18%),
    radial-gradient(circle at 88% 0%, rgba(255, 156, 46, 0.1), transparent 15%),
    linear-gradient(180deg, #f9fbfe 0%, #f3f7fb 100%);
}

.sph-light-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.sph-light-sidebar,
.sph-request-sidebar,
.sph-auth-side {
  display: grid;
  background:
    radial-gradient(circle at 18% 8%, rgba(24, 198, 191, 0.08), transparent 20%),
    linear-gradient(180deg, var(--sph-sidebar) 0%, var(--sph-sidebar-2) 100%);
  color: #f7fbff;
  border-radius: 30px;
  padding: 26px 22px;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  box-shadow: 0 26px 56px rgba(4, 14, 31, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sph-light-sidebar {
  grid-template-rows: auto 1fr auto;
}

.sph-light-sidebar__brand,
.sph-auth-side img,
.sph-request-sidebar > img {
  position: relative;
  z-index: 1;
  justify-self: center;
}

.sph-light-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.sph-light-sidebar__brand img,
.sph-auth-side img,
.sph-request-sidebar > img {
  width: 150px;
  height: auto;
}

.sph-light-sidebar__nav {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.sph-side-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  color: rgba(247, 251, 255, 0.92);
  transition:
    background var(--transition),
    transform var(--transition);
}

.sph-side-link .icon,
.sph-logout-link .icon {
  color: inherit;
}

.sph-side-link.is-active {
  background: linear-gradient(135deg, rgba(24, 198, 191, 0.96), rgba(21, 170, 175, 0.98));
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 198, 191, 0.26);
}

.sph-side-link.is-danger {
  background: linear-gradient(135deg, rgba(241, 85, 85, 0.94), rgba(223, 60, 60, 0.98));
}

.sph-side-link em {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.84rem;
}

.sph-light-sidebar__footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.sph-support-card {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.sph-logout-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
}

.sph-light-stage,
.sph-request-stage {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.sph-light-topbar,
.sph-request-topbar {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--sph-shadow);
}

.sph-light-topbar__profile,
.sph-light-topbar__search {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sph-light-topbar__title {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  text-align: right;
}

.sph-light-topbar__title h1 {
  font-size: 3rem;
  line-height: 1.1;
}

.sph-light-topbar__title p {
  margin: 10px 0 0;
  font-size: 1rem;
}

.sph-title-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.sph-title-badge--violet {
  background: linear-gradient(135deg, #7b61ff, #5b45d7);
  color: #fff;
  box-shadow: 0 14px 28px rgba(111, 88, 230, 0.2);
}

.sph-title-badge--danger {
  background: #fff1f1;
  color: #e25151;
}

.sph-light-topbar__title.is-danger h1 {
  color: #d54949;
}

.sph-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sph-profile-card__avatar,
.sph-settings-profile__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1abbb6, #1066d0);
  color: #fff;
  font-weight: 900;
}

.sph-profile-card strong {
  color: var(--sph-ink);
  display: block;
}

.sph-top-icon,
.sph-secondary-icon,
.sph-row-actions button,
.sph-pagination__controls button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--sph-line);
  background: #fff;
  color: var(--sph-ink);
  display: inline-grid;
  place-items: center;
}

.sph-top-icon,
.sph-secondary-icon {
  position: relative;
}

.sph-top-icon em {
  position: absolute;
  top: -7px;
  left: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ed4646;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.78rem;
}

.sph-top-search,
.sph-small-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.sph-top-search {
  min-width: min(420px, 100%);
  height: 52px;
}

.sph-small-search {
  min-width: min(340px, 100%);
  height: 50px;
}

.sph-top-search input,
.sph-small-search input,
.sph-chat-v2__composer input,
.sph-auth-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--sph-ink);
}

.sph-light-page,
.sph-request-page {
  padding: 4px;
}

.sph-page {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.sph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sph-filter-mini,
.sph-secondary-action,
.sph-outline-mini,
.sph-primary-action,
.sph-link-button,
.sph-criteria-chip,
.sph-provider-tabs button,
.sph-crisis-tabs button {
  padding: 14px 18px;
  font-weight: 700;
}

.sph-filter-mini,
.sph-secondary-action,
.sph-outline-mini,
.sph-criteria-chip,
.sph-provider-tabs button,
.sph-crisis-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--sph-ink);
  border: 1px solid var(--sph-line);
  border-radius: 16px;
}

.sph-outline-mini {
  padding: 11px 16px;
}

.sph-outline-mini--wide,
.sph-link-button {
  justify-self: center;
  min-width: 220px;
}

.sph-link-button {
  color: #128bd8;
  padding: 12px 22px;
}

.sph-primary-action,
.sph-danger-action,
.sph-auth-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  font-weight: 800;
}

.sph-secondary-action--danger {
  color: #d54545;
  border-color: rgba(233, 80, 80, 0.24);
  background: #fff6f6;
}

.sph-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sph-metrics-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sph-metrics-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sph-metric-card {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sph-metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  line-height: 1.1;
}

.sph-metric-card small,
.sph-pagination span,
.sph-goal-impact small,
.sph-mini-crisis-card small,
.sph-crisis-note small,
.sph-selection-card small,
.sph-provider-row small {
  color: var(--sph-muted);
}

.sph-card,
.sph-filter-panel,
.sph-messages-list,
.sph-chat-v2 {
  padding: 22px;
}

.sph-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.sph-card__head h3 {
  margin: 0;
  font-size: 2rem;
}

.sph-dashboard-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.sph-dashboard-grid--three {
  grid-template-columns: 320px minmax(0, 1fr) 360px;
}

.sph-dashboard-grid > * {
  direction: rtl;
}

.sph-dashboard-grid--reports {
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr) 360px;
}

.sph-donut-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.sph-segment-donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 18px;
  margin-inline: auto;
}

.sph-segment-donut__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(7, 26, 50, 0.05);
}

.sph-segment-donut__inner strong {
  font-size: 2.2rem;
  line-height: 1;
}

.sph-legend-list,
.sph-list-stack,
.sph-notification-list-v2,
.sph-flow-steps,
.sph-request-actions,
.sph-conversations-v2,
.sph-files,
.sph-settings-nav,
.sph-team-stack,
.sph-provider-list,
.sph-bullet-list {
  display: grid;
  gap: 12px;
}

.sph-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f7fafc;
}

.sph-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sph-chart-wrap {
  display: grid;
  gap: 12px;
}

.sph-light-shell .line-chart line,
.sph-request-shell .line-chart line,
.sph-auth-shell .line-chart line,
.sph-home .sph-home__hero-chart .line-chart line {
  stroke: rgba(10, 29, 52, 0.08);
}

.sph-light-shell .line-chart__line,
.sph-request-shell .line-chart__line,
.sph-auth-shell .line-chart__line,
.sph-home .sph-home__hero-chart .line-chart__line {
  stroke: var(--sph-blue);
}

.sph-light-shell .line-chart circle,
.sph-request-shell .line-chart circle,
.sph-auth-shell .line-chart circle,
.sph-home .sph-home__hero-chart .line-chart circle {
  fill: #fff;
  stroke: var(--sph-blue);
}

.sph-light-shell .chart-labels,
.sph-request-shell .chart-labels,
.sph-auth-shell .chart-labels,
.sph-home .sph-home__hero-chart .chart-labels {
  color: var(--sph-muted);
}

.sph-ranked-item {
  direction: ltr;
  display: grid;
  grid-template-columns: 40px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.sph-ranked-item__rank,
.sph-event-date {
  width: 40px;
  min-height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f4f7fb;
  color: var(--sph-ink);
  font-weight: 800;
}

.sph-event-date {
  width: 74px;
  height: 74px;
  gap: 2px;
}

.sph-ranked-item__visual {
  width: 76px;
  height: 76px;
  margin-bottom: 0;
  border-radius: 16px;
}

.sph-ranked-item__body {
  direction: rtl;
  min-width: 0;
}

.sph-table-wrap {
  overflow: auto;
  border: 1px solid var(--sph-line);
  border-radius: 20px;
}

.sph-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
  background: #fff;
}

.sph-table th,
.sph-table td {
  padding: 18px 16px;
  text-align: right;
  border-bottom: 1px solid var(--sph-line);
  vertical-align: middle;
  color: var(--sph-ink);
}

.sph-table th {
  color: var(--sph-muted);
  font-size: 0.94rem;
  font-weight: 700;
  background: #fcfdff;
}

.sph-table tbody tr:hover {
  background: #fbfdff;
}

.sph-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.sph-status--green,
.sph-status--mint {
  background: #eaf9f1;
  color: #17904e;
}

.sph-status--blue {
  background: #edf4ff;
  color: #2f84f5;
}

.sph-status--yellow {
  background: #fff7de;
  color: #d58b06;
}

.sph-status--red {
  background: #fff1f1;
  color: #d34d4d;
}

.sph-status--orange {
  background: #fff5ea;
  color: #eb8c18;
}

.sph-status--teal {
  background: #e9faf8;
  color: #118f8b;
}

.sph-status--gray {
  background: #f2f5f8;
  color: #6e7b89;
}

.sph-inline-progress {
  display: grid;
  gap: 8px;
}

.sph-inline-progress div,
.sph-score-row__bar,
.sph-simple-progress,
.sph-goal-impact__bar {
  height: 10px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.sph-inline-progress i,
.sph-score-row__bar i,
.sph-simple-progress i,
.sph-goal-impact__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c36d, #14a85d);
}

.sph-inline-progress .tone-orange {
  background: linear-gradient(90deg, #ffc24f, #ff9f1c);
}

.sph-inline-progress .tone-gray {
  background: linear-gradient(90deg, #d7e0ea, #c3d0dc);
}

.sph-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.sph-pagination {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sph-pagination__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sph-pagination__controls .is-active {
  background: var(--sph-blue);
  color: #fff;
  border-color: transparent;
}

.sph-provider-list {
  gap: 16px;
}

.sph-provider-row {
  direction: ltr;
  display: grid;
  grid-template-columns: 0.92fr 0.92fr 0.84fr 0.92fr 1.45fr 1.2fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--sph-line);
}

.sph-provider-row > * {
  direction: rtl;
}

.sph-provider-row__status {
  display: grid;
  gap: 12px;
}

.sph-provider-row__projects,
.sph-provider-row__rating,
.sph-provider-row__location {
  display: grid;
  gap: 8px;
}

.sph-provider-row__services {
  display: grid;
  gap: 10px;
}

.sph-provider-row__identity {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-grid .tag,
.sph-provider-row .tag {
  background: #eef8f3;
  color: #1f8c58;
}

.sph-logo-box {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f6fbff, #e7eef7);
  border: 1px solid #dbe7f0;
  color: #103e88;
  font-size: 1.28rem;
  font-weight: 900;
}

.sph-logo-box--large {
  width: 102px;
  height: 102px;
  font-size: 1.6rem;
}

.sph-messages-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.sph-messages-list,
.sph-chat-v2,
.sph-message-aside {
  min-width: 0;
}

.sph-conversation-v2 {
  direction: ltr;
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: #f8fbfd;
  text-align: right;
}

.sph-conversation-v2.is-active {
  border-color: rgba(24, 198, 191, 0.24);
  background: linear-gradient(180deg, #f7fffe, #ebfbf8);
}

.sph-conversation-v2__body,
.sph-conversation-v2__head {
  direction: rtl;
  min-width: 0;
}

.sph-conversation-v2__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.sph-conversation-v2 p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sph-conversation-v2 em {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--sph-teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.8rem;
}

.sph-chat-v2 {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  min-height: 760px;
}

.sph-chat-v2__header,
.sph-chat-v2__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sph-chat-v2__thread {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sph-chat-bubble {
  align-self: flex-start;
  max-width: 72%;
  padding: 16px 18px;
  border-radius: 20px 20px 20px 6px;
  background: #f1f5f9;
  display: grid;
  gap: 8px;
}

.sph-chat-bubble.is-me {
  align-self: flex-end;
  background: linear-gradient(180deg, #f1fbf7, #e4faf0);
  border-radius: 20px 20px 6px 20px;
}

.sph-chat-bubble p {
  margin: 0;
}

.sph-chat-v2__composer {
  direction: ltr;
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--sph-line);
  background: #fff;
}

.sph-primary-send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #16c6be, #109ec2);
  color: #fff;
}

.sph-message-aside {
  display: grid;
  gap: 18px;
}

.sph-files {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sph-file-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--sph-line);
  background: #fbfdff;
  display: grid;
  gap: 8px;
}

.sph-file-card__visual {
  height: 92px;
  margin-bottom: 0;
}

.sph-file-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f2f6fb;
  color: var(--sph-blue);
}

.sph-notifications-shell,
.sph-settings-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sph-settings-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.sph-filter-panel {
  display: grid;
  gap: 18px;
}

.sph-filter-panel__group {
  display: grid;
  gap: 12px;
}

.sph-filter-panel__group h4 {
  margin: 0;
  color: var(--sph-ink);
}

.sph-notification-feed {
  min-height: 100%;
}

.sph-tabs button {
  border: 0;
  background: transparent;
  color: var(--sph-muted);
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 16px;
}

.sph-tabs button.is-active {
  color: #10999d;
  border-bottom-color: #10bcb6;
}

.sph-tabs em {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  margin-inline-start: 6px;
  background: #edf5ff;
  border-radius: 999px;
  color: var(--sph-blue);
  font-style: normal;
}

.sph-notification-row {
  direction: ltr;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 74px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--sph-line);
  background: #fff;
}

.sph-notification-row__meta {
  direction: rtl;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.sph-notification-row__body {
  direction: rtl;
}

.sph-notification-row__meta button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #f3f6fa;
}

.sph-notification-row__body p {
  margin: 8px 0;
}

.sph-notification-row__body em {
  font-style: normal;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0f6ff;
  color: var(--sph-blue);
}

.sph-notification-row__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #f2f7fb;
}

.sph-notification-row.tone-green .sph-notification-row__icon {
  background: #edf9f1;
  color: #1ea05e;
}

.sph-notification-row.tone-blue .sph-notification-row__icon {
  background: #eef4ff;
  color: var(--sph-blue);
}

.sph-notification-row.tone-purple .sph-notification-row__icon {
  background: #f2efff;
  color: var(--sph-violet);
}

.sph-notification-row.tone-orange .sph-notification-row__icon {
  background: #fff5e8;
  color: var(--sph-orange);
}

.sph-notification-row.tone-teal .sph-notification-row__icon {
  background: #ebfbf8;
  color: #10a49e;
}

.sph-notification-row.tone-gray .sph-notification-row__icon {
  background: #f1f4f7;
  color: #748395;
}

.sph-settings-main {
  display: grid;
  gap: 22px;
}

.sph-settings-profile {
  direction: ltr;
  display: grid;
  grid-template-columns: 180px 110px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sph-settings-profile__fields {
  direction: rtl;
  display: grid;
  gap: 12px;
}

.sph-settings-profile__media,
.sph-crisis-left,
.sph-crisis-main,
.sph-crisis-right {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.sph-settings-input {
  display: grid;
  gap: 8px;
}

.sph-settings-input input {
  height: 52px;
  border: 1px solid var(--sph-line);
  background: #fff;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--sph-ink);
}

.sph-upload-box {
  min-height: 140px;
  border: 1px dashed #bfd1e2;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #fbfdff;
  color: var(--sph-muted);
  margin-bottom: 16px;
}

.sph-settings-preferences {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sph-preference-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--sph-line);
  background: #fbfdff;
  display: grid;
  gap: 10px;
}

.sph-preference-box__icon,
.sph-mini-feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: none;
  background: #eef6ff;
  color: var(--sph-blue);
}

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

.sph-settings-menu {
  height: fit-content;
}

.sph-settings-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
}

.sph-settings-nav__item.is-active {
  background: linear-gradient(180deg, #f4fffd, #eafbf7);
  color: #149f98;
}

.sph-request-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 16px;
  padding: 16px;
}

.sph-request-page {
  display: grid;
  gap: 24px;
}

.sph-request-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sph-request-summary {
  position: relative;
  z-index: 1;
  padding: 18px;
  background: rgba(8, 25, 57, 0.52);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.sph-request-summary__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #19d0c4;
  margin-bottom: 14px;
}

.sph-request-summary .list-row,
.sph-request-summary .definition-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 14px 0;
}

.sph-request-summary .list-row strong,
.sph-request-summary .definition-row strong,
.sph-request-help strong {
  color: #fff;
}

.sph-request-summary .list-row span,
.sph-request-summary .definition-row span,
.sph-request-summary small,
.sph-request-help span {
  color: rgba(247, 251, 255, 0.74);
}

.sph-flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.sph-flow-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #cddbf2;
  font-weight: 800;
}

.sph-flow-step.is-active {
  background: rgba(24, 198, 191, 0.16);
  color: #fff;
}

.sph-flow-step.is-active span {
  background: linear-gradient(135deg, #24cfc1, #14aba9);
  color: #fff;
}

.sph-flow-step.is-done span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sph-request-actions button {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  text-align: right;
}

.sph-request-help {
  position: relative;
  z-index: 1;
  padding: 22px 18px;
  background: rgba(8, 25, 57, 0.52);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.sph-request-help bdi {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.sph-flow-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.sph-flow-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
}

.sph-flow-ribbon__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 12px 8px 0;
}

.sph-flow-ribbon__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(-50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: #d9e5ef;
}

.sph-flow-ribbon__step span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #d8e3ed;
  color: #5b6f83;
  font-weight: 800;
}

.sph-flow-ribbon__step.is-active span {
  background: linear-gradient(135deg, #27cec0, #14a5ac);
  color: #fff;
  border-color: transparent;
}

.sph-flow-ribbon__step.is-done span {
  background: #effaf7;
  color: #169868;
  border-color: #c7eada;
}

.sph-flow-copy p {
  margin: 12px 0 0;
  color: var(--sph-muted);
}

.sph-flow-footer {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sph-info-strip {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #edf8ff, #eaf5ff);
  color: #2c617e;
  font-weight: 700;
}

.sph-selection-card {
  display: grid;
  grid-template-columns: 220px 168px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--sph-line);
  background: #fff;
  overflow: hidden;
}

.sph-selection-card.is-highlighted {
  border-color: rgba(24, 198, 191, 0.34);
  box-shadow: 0 18px 48px rgba(24, 198, 191, 0.12);
}

.sph-selection-card__price,
.sph-selection-card__meta,
.sph-selection-card__scores,
.sph-selection-card__provider {
  padding: 22px 20px;
}

.sph-selection-card__price,
.sph-selection-card__meta,
.sph-selection-card__scores {
  border-left: 1px solid var(--sph-line);
}

.sph-selection-card__price {
  background: linear-gradient(180deg, #f8fffd, #effaf7);
  display: grid;
  align-content: start;
  gap: 10px;
}

.sph-selection-card__price strong {
  font-size: 2.1rem;
}

.sph-selection-card__meta {
  display: grid;
  align-content: center;
  gap: 16px;
}

.sph-selection-card__meta span {
  display: grid;
  gap: 4px;
}

.sph-selection-card__scores {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sph-selection-card__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sph-selection-card__provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sph-provider-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sph-muted);
  margin-top: 8px;
}

.sph-score-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.sph-simple-progress {
  min-width: 120px;
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 10px;
}

.sph-criteria-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sph-criteria-chip.is-active,
.sph-provider-tabs button.is-active,
.sph-crisis-tabs button.is-active {
  background: linear-gradient(180deg, #f4fffd, #eafbf8);
  color: #149f98;
  border-color: rgba(24, 198, 191, 0.3);
}

.sph-compare-table {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: auto;
}

.sph-compare-table__aside,
.sph-compare-table__grid {
  min-width: 0;
}

.sph-compare-table__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(270px, 1fr));
}

.sph-compare-cell {
  padding: 18px 16px;
  border-bottom: 1px solid var(--sph-line);
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 76px;
}

.sph-compare-table__aside .sph-compare-cell {
  background: #fcfdff;
  font-weight: 700;
  color: var(--sph-ink);
}

.sph-compare-column {
  border-right: 1px solid var(--sph-line);
}

.sph-compare-column.is-recommended {
  background: linear-gradient(180deg, #ffffff, #f8fffd);
}

.sph-compare-cell.is-head {
  min-height: 220px;
  align-content: start;
}

.sph-compare-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sph-compare-cell.is-foot {
  min-height: 104px;
}

.sph-compare-cell.is-foot.recommended {
  background: linear-gradient(180deg, #f1fff8, #ebfaf2);
}

.sph-provider-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sph-provider-detail-layout {
  display: grid;
  gap: 22px;
}

.sph-provider-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.sph-provider-hero__identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sph-provider-hero__identity > div:last-child {
  direction: rtl;
}

.sph-provider-hero__rating {
  display: grid;
  gap: 12px;
}

.sph-provider-hero__rating strong {
  font-size: 3rem;
}

.sph-provider-tabs {
  gap: 10px;
}

.sph-provider-tabs button {
  background: transparent;
}

.sph-provider-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.sph-mini-feature {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--sph-line);
  background: #fbfdff;
  display: grid;
  gap: 8px;
}

.sph-bullet-list span {
  position: relative;
  padding-right: 20px;
}

.sph-bullet-list span::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sph-teal);
}

.sph-rating-summary {
  text-align: center;
  padding: 12px 0 18px;
}

.sph-rating-summary strong {
  font-size: 3rem;
}

.sph-page--ai {
  display: grid;
  gap: 20px;
}

.sph-ai-top {
  direction: ltr;
  display: flex;
  justify-content: flex-start;
}

.sph-ai-layout {
  direction: ltr;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.sph-ai-layout > * {
  direction: rtl;
}

.sph-ai-card {
  display: grid;
  gap: 18px;
}

.sph-ai-alternatives {
  grid-column: 2 / 4;
}

.sph-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-inline-start: 10px;
  background: linear-gradient(135deg, #7b61ff, #9a6cff);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
}

.sph-page--ai .sph-card__head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sph-ai-fields {
  display: grid;
  gap: 16px;
}

.sph-ai-field {
  display: grid;
  gap: 10px;
}

.sph-ai-field span {
  color: var(--sph-ink);
  font-weight: 700;
}

.sph-ai-control {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--sph-line);
  background: #fff;
}

.sph-ai-control select,
.sph-ai-control input,
.sph-ai-control textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sph-ink);
  font: inherit;
  outline: 0;
}

.sph-ai-control select {
  appearance: none;
}

.sph-ai-control input::placeholder,
.sph-ai-control textarea::placeholder {
  color: #93a5b6;
}

.sph-ai-control .icon {
  flex: 0 0 auto;
  color: #8ea3b6;
}

.sph-ai-control--dual {
  justify-content: space-between;
}

.sph-ai-control--dual small,
.sph-ai-control--budget select {
  flex: 0 0 auto;
  color: var(--sph-muted);
  font-weight: 700;
}

.sph-ai-control--budget {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.sph-ai-control--budget select,
.sph-ai-control--budget input {
  padding: 0 18px;
}

.sph-ai-control--budget select {
  border-left: 1px solid var(--sph-line);
}

.sph-ai-control input[type="date"] {
  direction: ltr;
  text-align: right;
}

.sph-ai-control--textarea {
  min-height: 148px;
  align-items: stretch;
  padding: 14px 18px;
}

.sph-ai-control--textarea textarea {
  min-height: 120px;
  resize: none;
  line-height: 1.8;
}

.sph-ai-field--full {
  grid-column: 1 / -1;
}

.sph-ai-submit {
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #7a5df7, #5d46d8);
  box-shadow: 0 18px 34px rgba(107, 89, 235, 0.22);
}

.sph-ai-submit .icon {
  color: inherit;
}

.sph-ai-note-box {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(123, 97, 255, 0.16);
  background: linear-gradient(180deg, #faf8ff, #f5f1ff);
}

.sph-ai-note-box__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7a5df7, #5d46d8);
  color: #fff;
}

.sph-ai-note-box strong {
  display: block;
  margin-bottom: 10px;
}

.sph-ai-note-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--sph-muted);
}

.sph-ai-note-box li {
  position: relative;
  padding-right: 16px;
}

.sph-ai-note-box li::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6e58eb;
}

.sph-ai-orb-wrap {
  display: grid;
  gap: 14px;
  text-align: center;
}

.sph-ai-orb-wrap h4 {
  margin: 0;
  font-size: 2.15rem;
}

.sph-ai-orb-wrap p {
  margin: 0;
  color: var(--sph-muted);
  line-height: 1.8;
}

.sph-ai-orb {
  width: 180px;
  height: 180px;
  margin-inline: auto;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72) 38%, rgba(123, 97, 255, 0.2) 62%, rgba(123, 97, 255, 0.08) 100%),
    linear-gradient(135deg, rgba(123, 97, 255, 0.24), rgba(24, 198, 191, 0.14));
  box-shadow: 0 28px 52px rgba(114, 99, 234, 0.2);
}

.sph-ai-orb::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(123, 97, 255, 0.18);
}

.sph-ai-orb span {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #725de9;
}

.sph-ai-steps {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 8px;
}

.sph-ai-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.sph-ai-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(-50% + 22px);
  width: calc(100% - 44px);
  height: 3px;
  border-radius: 999px;
  background: #e4eaf1;
}

.sph-ai-step__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d7e1eb;
  background: #fff;
  color: #9cacbc;
}

.sph-ai-step.is-done .sph-ai-step__dot {
  background: #f1edff;
  color: #6f58e6;
  border-color: rgba(111, 88, 230, 0.2);
}

.sph-ai-step.is-active .sph-ai-step__dot {
  background: linear-gradient(135deg, #7a5df7, #5d46d8);
  color: #fff;
  border-color: transparent;
}

.sph-ai-step span {
  direction: rtl;
  color: var(--sph-muted);
  font-size: 0.95rem;
}

.sph-ai-score-list {
  display: grid;
  gap: 14px;
}

.sph-ai-score-list__title,
.sph-ai-service-box__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sph-ink);
}

.sph-ai-score-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.sph-ai-score-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sph-muted);
}

.sph-ai-score-row__track,
.sph-ai-confidence__ring {
  background: #edf1f6;
}

.sph-ai-score-row__track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.sph-ai-score-row__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #27d0c3, #7a5df7);
}

.sph-ai-success {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f5fffb, #eefbf7);
  color: #178b6b;
}

.sph-ai-success strong,
.sph-ai-confidence strong {
  display: block;
}

.sph-ai-success span,
.sph-ai-confidence span {
  color: var(--sph-muted);
}

.sph-ai-success .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22c27a;
  color: #fff;
}

.sph-ai-provider-box {
  display: grid;
  gap: 18px;
}

.sph-ai-provider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sph-ai-provider-copy h3 {
  margin: 0 0 6px;
  font-size: 2.1rem;
}

.sph-ai-provider-copy p {
  margin: 0;
  color: var(--sph-muted);
}

.sph-ai-provider-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.sph-ai-provider-rating strong {
  font-size: 2rem;
}

.sph-ai-logo {
  width: 112px;
  min-height: 112px;
  padding: 16px 12px;
  border-radius: 28px;
  border: 1px solid var(--sph-line);
  background: linear-gradient(180deg, #ffffff, #f5fafc);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(10, 29, 52, 0.03);
}

.sph-ai-logo strong {
  color: #148f7f;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.sph-ai-logo span {
  font-size: 0.72rem;
  color: var(--sph-muted);
  letter-spacing: 0.08em;
}

.sph-ai-provider-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sph-ai-provider-stat {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--sph-line);
  background: #fbfdff;
  text-align: center;
}

.sph-ai-provider-stat strong {
  display: block;
  font-size: 2rem;
}

.sph-ai-provider-stat span {
  color: var(--sph-muted);
}

.sph-ai-service-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--sph-line);
  background: #fbfdff;
}

.sph-ai-service-box ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sph-ai-service-box li {
  position: relative;
  padding-right: 18px;
}

.sph-ai-service-box li::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sph-teal);
}

.sph-ai-price-box {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 198, 191, 0.18);
  background: linear-gradient(180deg, #fbfffd, #eefbf8);
  text-align: center;
}

.sph-ai-price-box strong {
  font-size: 2.25rem;
  line-height: 1.12;
}

.sph-ai-price-box small {
  color: var(--sph-muted);
}

.sph-ai-confidence {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(24, 198, 191, 0.18);
  background: linear-gradient(180deg, #f8fffd, #effaf7);
}

.sph-ai-confidence__ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  padding: 7px;
  background: conic-gradient(#1bc9bf 0 95%, #e8edf4 95% 100%);
}

.sph-ai-confidence__ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

.sph-ai-confidence__ring strong {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
}

.sph-ai-actions {
  direction: ltr;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sph-ai-alt-list {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sph-ai-alt-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--sph-line);
  background: #fff;
}

.sph-ai-alt-card > div {
  direction: rtl;
}

.sph-ai-alt-card strong {
  display: block;
  margin-bottom: 6px;
}

.sph-ai-alt-card span,
.sph-ai-alt-card small {
  color: var(--sph-muted);
}

.sph-ai-alt-card bdi {
  color: var(--sph-ink);
  font-size: 1.4rem;
  font-weight: 800;
}

.sph-ai-alt-card .sph-ai-logo {
  width: 82px;
  min-height: 82px;
  padding: 12px 10px;
  border-radius: 22px;
}

.sph-ai-alt-card .sph-ai-logo strong {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.sph-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 0;
  align-items: stretch;
}

.sph-auth-main {
  padding: 28px 34px 36px;
}

.sph-auth-page {
  max-width: 980px;
  display: grid;
  gap: 24px;
}

.sph-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sph-ink);
  font-size: 1.5rem;
}

.sph-auth-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
}

.sph-auth-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding-top: 2px;
}

.sph-auth-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(-50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #dbe5ee;
}

.sph-auth-step span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #d8e1ea;
  color: #66798f;
  font-weight: 800;
}

.sph-auth-step.is-active span {
  background: linear-gradient(135deg, #27cec0, #15a9a3);
  color: #fff;
  border-color: transparent;
}

.sph-auth-heading {
  text-align: center;
}

.sph-auth-heading h1 {
  font-size: 3rem;
}

.sph-auth-heading p {
  margin: 12px 0 0;
  font-size: 1.3rem;
}

.sph-auth-section {
  padding-top: 8px;
}

.sph-auth-section__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sph-ink);
}

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

.sph-auth-field {
  display: grid;
  gap: 10px;
}

.sph-auth-field span {
  color: var(--sph-ink);
  font-weight: 700;
}

.sph-auth-field em {
  color: #db4e4e;
  font-style: normal;
}

.sph-auth-field input,
.sph-auth-select,
.sph-auth-phone {
  min-height: 64px;
  border: 1px solid var(--sph-line);
  border-radius: 18px;
  background: #fff;
}

.sph-auth-field input {
  padding: 0 18px;
}

.sph-auth-select {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sph-auth-field--full {
  grid-column: 1 / -1;
}

.sph-auth-phone {
  display: grid;
  grid-template-columns: 1fr 128px;
  overflow: hidden;
}

.sph-auth-phone input {
  border: 0;
  background: transparent;
  padding: 0 18px;
}

.sph-auth-phone__code {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--sph-line);
  border-radius: 0;
  background: #fff;
}

.sph-auth-check {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sph-muted);
}

.sph-auth-actions {
  margin-top: 22px;
}

.sph-auth-side {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 28px;
  padding: 34px 30px;
}

.sph-auth-side__copy,
.sph-auth-side__features,
.sph-auth-side__footer {
  position: relative;
  z-index: 1;
}

.sph-auth-side__copy h2 {
  margin: 0;
  color: #fff;
  font-size: 3.15rem;
  line-height: 1.22;
}

.sph-auth-side__copy p,
.sph-auth-side__footer span {
  color: rgba(247, 251, 255, 0.86);
  margin: 16px 0 0;
}

.sph-auth-feature {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.sph-auth-feature strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.sph-auth-feature span {
  color: rgba(247, 251, 255, 0.78);
}

.sph-auth-feature__icon {
  background: linear-gradient(135deg, rgba(36, 207, 193, 0.96), rgba(22, 161, 176, 0.96));
}

.sph-auth-side__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sph-auth-side__footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(24, 198, 191, 0.4);
  color: #24d0c4;
}

.sph-page--crisis .sph-card {
  box-shadow: 0 18px 42px rgba(159, 32, 32, 0.06);
}

.sph-crisis-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  direction: ltr;
}

.sph-crisis-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.sph-card--danger {
  background: linear-gradient(180deg, #fff8f8, #fff1f1);
  border-color: rgba(238, 81, 81, 0.18);
}

.sph-card--danger-soft {
  background: linear-gradient(180deg, #fff9f9, #fff4f4);
  border-color: rgba(238, 81, 81, 0.18);
}

.sph-impact-gauge {
  display: grid;
  gap: 18px;
}

.sph-impact-gauge__ring {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  margin-inline: auto;
  padding: 22px;
  background: conic-gradient(#ee5151 0 82%, #edf1f6 82% 100%);
}

.sph-impact-gauge__ring strong,
.sph-impact-gauge__ring span {
  display: block;
}

.sph-impact-gauge__ring::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #fff;
}

.sph-impact-gauge__ring {
  display: grid;
  place-items: center;
  position: relative;
}

.sph-impact-gauge__ring strong,
.sph-impact-gauge__ring span {
  position: relative;
  z-index: 1;
}

.sph-impact-gauge__ring strong {
  font-size: 3rem;
  margin-top: 8px;
}

.sph-impact-gauge__ring span {
  color: var(--sph-muted);
}

.sph-impact-metrics {
  display: grid;
  gap: 12px;
}

.sph-impact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
}

.sph-impact-row.down strong,
.sph-goal-impact small {
  color: #dd5353;
}

.sph-impact-row.up strong {
  color: #e45b5b;
}

.sph-crisis-alert-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.sph-crisis-alert-head__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: #ee5151;
  display: grid;
  place-items: center;
}

.sph-danger-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0f0;
  color: #d54c4c;
  font-weight: 800;
  margin-bottom: 10px;
}

.sph-crisis-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.sph-crisis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sph-crisis-summary {
  display: grid;
  gap: 16px;
}

.sph-crisis-mini-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sph-mini-crisis-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--sph-line);
  background: #fbfdff;
  display: grid;
  gap: 8px;
}

.sph-crisis-cause {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff6f6;
  color: #985353;
}

.sph-crisis-goals {
  display: grid;
  gap: 14px;
}

.sph-goal-impact {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 60px 56px;
  gap: 12px;
  align-items: center;
}

.sph-crisis-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--sph-line);
  background: #fff;
}

.sph-crisis-note.is-urgent {
  background: #fff3f3;
  border-color: rgba(238, 81, 81, 0.18);
}

.sph-crisis-note.is-open {
  background: #fffaf0;
  border-color: rgba(255, 157, 46, 0.16);
}

.sph-crisis-note.is-live {
  background: #fffdf8;
}

.sph-crisis-note em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 34px;
  border-radius: 999px;
  background: #fff5e8;
  color: #d98f0d;
  font-weight: 700;
}

.sph-crisis-note.is-urgent em {
  background: #fff0f0;
  color: #d54c4c;
}

.sph-team-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.sph-team-person .sph-profile-card__avatar {
  width: 42px;
  height: 42px;
}

.sph-team-person__actions {
  display: flex;
  gap: 8px;
}

.sph-team-person__actions button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--sph-line);
  background: #fff;
  color: var(--sph-ink);
}

.sph-team-person__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sph-team-person__status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25c976;
  box-shadow: 0 0 0 4px rgba(37, 201, 118, 0.12);
}

.sph-crisis-footer-note {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(238, 81, 81, 0.16);
  background: #fff7f7;
  color: #b55252;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 1360px) {
  .sph-home__hero,
  .sph-auth-shell,
  .sph-request-shell {
    gap: 22px;
  }

  .sph-dashboard-grid,
  .sph-crisis-layout,
  .sph-ai-layout {
    grid-template-columns: 1fr;
  }

  .sph-dashboard-grid--reports {
    grid-template-columns: 1fr;
  }

  .sph-ai-alternatives {
    grid-column: auto;
  }

  .sph-selection-card {
    grid-template-columns: 1fr 1fr;
  }

  .sph-selection-card__price,
  .sph-selection-card__meta {
    border-left: 0;
    border-bottom: 1px solid var(--sph-line);
  }

  .sph-selection-card__scores {
    border-left: 0;
  }
}

@media (max-width: 1180px) {
  .sph-light-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sph-light-sidebar {
    position: fixed;
    top: 14px;
    bottom: 14px;
    right: 14px;
    width: min(292px, calc(100% - 28px));
    height: auto;
    transform: translateX(calc(100% + 28px));
    transition: transform var(--transition);
    z-index: 50;
  }

  .sidebar-open .sph-light-sidebar {
    transform: translateX(0);
  }

  .sph-request-shell,
  .sph-auth-shell,
  .sph-home__hero,
  .sph-flow-header,
  .sph-settings-shell,
  .sph-notifications-shell,
  .sph-messages-shell,
  .sph-provider-hero {
    grid-template-columns: 1fr;
  }

  .sph-request-sidebar,
  .sph-auth-side {
    position: relative;
    top: auto;
    height: auto;
  }

  .sph-light-topbar,
  .sph-request-topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .sph-metrics-grid,
  .sph-metrics-grid--five,
  .sph-settings-preferences,
  .sph-provider-feature-grid,
  .sph-ai-provider-stats,
  .sph-crisis-facts,
  .sph-crisis-mini-cards,
  .sph-files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sph-home__hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sph-home__hero-panels,
  .sph-settings-grid,
  .sph-ai-alt-list,
  .sph-compare-table {
    grid-template-columns: 1fr;
  }

  .sph-home__stats-grid,
  .sph-compare-table__grid,
  .sph-auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sph-compare-table__grid {
    overflow: auto;
  }

  .sph-provider-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sph-settings-profile {
    grid-template-columns: 1fr;
  }

  .sph-chat-v2 {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .sph-home {
    padding-inline: 18px;
  }

  .sph-home__nav {
    grid-template-columns: 1fr;
    display: grid;
    justify-items: center;
    gap: 18px;
  }

  .sph-home__copy,
  .sph-home__visual,
  .sph-home__stats {
    text-align: center;
  }

  .sph-home__copy p,
  .sph-home__highlights,
  .sph-home__hero-actions {
    justify-content: center;
    margin-inline: auto;
  }

  .sph-home__screen {
    flex-direction: column;
    min-height: auto;
  }

  .sph-home__screen-sidebar {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .sph-home__screen-main {
    padding: 18px;
  }

  .sph-home__hero-metrics,
  .sph-home__stats-grid,
  .sph-metrics-grid,
  .sph-metrics-grid--five,
  .sph-auth-grid,
  .sph-settings-preferences,
  .sph-settings-grid,
  .sph-provider-feature-grid,
  .sph-ai-provider-stats,
  .sph-crisis-facts,
  .sph-crisis-mini-cards,
  .sph-files,
  .sph-home__hero-panels {
    grid-template-columns: 1fr;
  }

  .sph-flow-ribbon,
  .sph-auth-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sph-provider-row,
  .sph-selection-card,
  .sph-ai-alt-card,
  .sph-notification-row,
  .sph-score-row,
  .sph-goal-impact,
  .sph-ai-score-row {
    grid-template-columns: 1fr;
  }

  .sph-ai-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .sph-selection-card__price,
  .sph-selection-card__meta,
  .sph-selection-card__scores,
  .sph-selection-card__provider {
    border: 0;
    border-bottom: 1px solid var(--sph-line);
  }

  .sph-selection-card__provider {
    border-bottom: 0;
  }

  .sph-donut-layout {
    grid-template-columns: 1fr;
  }

  .sph-table {
    min-width: 780px;
  }
}

@media (max-width: 640px) {
  .sph-home__copy h1,
  .sph-light-topbar__title h1,
  .sph-auth-heading h1,
  .sph-auth-side__copy h2 {
    font-size: 2.2rem;
  }

  .sph-home__copy p,
  .sph-auth-heading p {
    font-size: 1rem;
  }

  .sph-home__hero-actions,
  .sph-home__highlights,
  .sph-toolbar,
  .sph-inline-actions,
  .sph-light-topbar__profile,
  .sph-light-topbar__search,
  .sph-provider-detail-top {
    flex-direction: column;
    align-items: stretch;
  }

  .sph-home__cta,
  .sph-home__secondary,
  .sph-home__login,
  .sph-primary-action,
  .sph-secondary-action,
  .sph-outline-mini,
  .sph-auth-next,
  .sph-support-card,
  .sph-ai-submit {
    width: 100%;
  }

  .sph-home__screen-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sph-chat-v2__composer {
    grid-template-columns: 1fr auto;
  }

  .sph-chat-v2__composer input {
    grid-column: 1 / -1;
    order: -1;
  }

  .sph-ai-note-box,
  .sph-ai-confidence {
    grid-template-columns: 1fr;
  }

  .sph-messages-shell,
  .sph-notifications-shell,
  .sph-settings-shell,
  .sph-request-shell,
  .sph-auth-shell,
  .sph-light-shell {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
