/* Visual-only polish. No product behavior, routing, business state or persistence lives here. */

:root {
  color-scheme: light;
  --sk-ink: #0b1736;
  --sk-muted: #667892;
  --sk-blue: #2f80ff;
  --sk-blue-strong: #1765e7;
  --sk-blue-soft: #eaf4ff;
  --sk-surface: rgb(255 255 255 / .94);
  --sk-border: rgb(116 145 178 / .18);
  --sk-shadow: 0 16px 42px rgb(48 91 138 / .10);
}

body {
  color: var(--sk-ink);
  background:
    radial-gradient(circle at 8% 2%, rgb(78 177 255 / .25), transparent 20rem),
    radial-gradient(circle at 94% 8%, rgb(184 229 255 / .40), transparent 24rem),
    linear-gradient(180deg, #f4faff 0%, #eaf6ff 42%, #f7fbff 100%);
}

.shell {
  width: min(820px, calc(100% - 20px));
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: 42px;
}

.hero {
  margin: 0 0 24px;
  padding: 4px 6px 2px;
}

.shell[data-primary-area]:not([data-primary-area='home']) > .hero {
  display: block;
  margin-bottom: 8px;
  padding-top: 0;
  padding-bottom: 0;
}

.hero h1 {
  font-size: clamp(2.15rem, 9vw, 3.25rem);
  line-height: .98;
  letter-spacing: -.055em;
  background: linear-gradient(120deg, #091630 6%, #1765e7 62%, #24a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.shell[data-primary-area]:not([data-primary-area='home']) > .hero h1 {
  font-size: 1.45rem;
  letter-spacing: -.04em;
}

.hero p {
  max-width: 34rem;
  margin-top: .55rem;
  color: #6f829b;
  font-size: .98rem;
  font-weight: 650;
}

.shell[data-primary-area]:not([data-primary-area='home']) > .hero p {
  margin-top: .2rem;
  font-size: .78rem;
  opacity: .82;
}

.primary-area-heading {
  margin: 8px 4px 18px;
  color: var(--sk-ink);
  font-size: clamp(2.35rem, 10vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}

.panel,
.messages-placeholder {
  margin: 14px 0;
  border: 1px solid var(--sk-border);
  border-radius: 28px;
  background: var(--sk-surface);
  box-shadow: var(--sk-shadow), inset 0 1px 0 rgb(255 255 255 / .92);
  backdrop-filter: blur(22px) saturate(1.1);
}

.panel {
  padding: 18px;
}

.panel::before {
  display: none;
}

.panel--attention {
  border-color: rgb(244 63 94 / .24);
  background: linear-gradient(145deg, rgb(255 255 255 / .98), rgb(255 246 249 / .96));
  box-shadow: 0 18px 42px rgb(190 24 93 / .09), inset 0 1px 0 white;
}

.panel--attention .disclosure > summary {
  color: #9d163d;
}

.disclosure > summary {
  min-height: 48px;
  gap: 14px;
  color: var(--sk-ink);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -.035em;
}

.disclosure > summary::after {
  width: 2.15rem;
  height: 2.15rem;
  border-color: rgb(116 145 178 / .18);
  background: #f3f8ff;
  color: #64809f;
  box-shadow: none;
}

.disclosure[open] > summary::after {
  background: var(--sk-blue-soft);
  color: var(--sk-blue-strong);
}

.disclosure__content {
  padding-top: 15px;
}

input,
select,
textarea {
  min-height: 48px;
  border-color: rgb(116 145 178 / .24);
  border-radius: 16px;
  background: rgb(249 252 255 / .96);
  color: var(--sk-ink);
  box-shadow: inset 0 1px 0 white;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgb(47 128 255 / .58);
  outline: 4px solid rgb(47 128 255 / .10);
}

button {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sk-blue) 0%, var(--sk-blue-strong) 100%);
  box-shadow: 0 10px 22px rgb(23 101 231 / .18);
}

.lead-list {
  gap: 13px;
}

.lead-card {
  border-color: rgb(116 145 178 / .18);
  border-radius: 22px;
  padding: 16px;
  background: rgb(255 255 255 / .98);
  box-shadow: 0 9px 26px rgb(35 76 120 / .08), inset 0 1px 0 white;
}

.lead-card--action {
  border-color: rgb(244 63 94 / .20);
  background: linear-gradient(145deg, #fff, #fff7f9);
}

.lead-card--paused {
  border-color: rgb(245 158 11 / .24);
  background: linear-gradient(145deg, #fff, #fffaf1);
}

.lead-card--closed {
  background: rgb(249 252 255 / .96);
}

.lead-card h3 {
  color: var(--sk-ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.lead-card__heading {
  padding-bottom: 2px;
}

.lead-card__field-label {
  color: #7a90aa;
  letter-spacing: .07em;
}

.lead-card__meta-item,
.lead-card__need {
  border-color: rgb(116 145 178 / .14);
  background: #f7fbff;
}

.lead-card__need {
  border-radius: 14px;
}

.lead-card__next {
  border-left: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf5ff, #f5faff);
  color: #174f85;
}

.reason {
  color: #6d8199;
}

.reason--action {
  color: #a11b40;
}

.lead-badge {
  padding: .3rem .62rem;
  border-radius: 999px;
  font-size: .67rem;
}

.lead-badge--paused {
  border-color: rgb(245 158 11 / .26);
  background: #fff3da;
  color: #a15300;
}

.lead-badge--reopened {
  border-color: rgb(47 128 255 / .18);
  background: #ebf5ff;
  color: #245b95;
}

.lead-card__actions > summary {
  color: #2d5d8f;
}

.list-pagination__status,
.empty,
.status,
.helper,
.lead-details {
  color: #71849b;
}

.messages-placeholder {
  padding: 24px;
}

.messages-placeholder h3 {
  color: var(--sk-ink);
  font-size: 1.3rem;
  font-weight: 900;
}

.messages-placeholder p {
  font-size: .96rem;
}

.primary-navigation {
  border-color: rgb(116 145 178 / .20);
  border-radius: 26px;
  background: rgb(255 255 255 / .96);
  box-shadow: 0 18px 44px rgb(29 78 130 / .15), inset 0 1px 0 white;
  backdrop-filter: blur(24px) saturate(1.14);
}

.primary-navigation__item {
  min-height: 56px;
  border-radius: 19px;
  color: #74869b;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.primary-navigation__item--active {
  position: relative;
  background: linear-gradient(180deg, #edf7ff 0%, #dfeeff 100%);
  color: var(--sk-blue);
}

.primary-navigation__item--active::after {
  content: "";
  position: absolute;
  right: 27%;
  bottom: 2px;
  left: 27%;
  height: 4px;
  border-radius: 999px;
  background: var(--sk-blue);
}

.primary-navigation__icon {
  width: 1.35rem;
  height: 1.35rem;
}

.primary-navigation__label {
  font-size: .67rem;
  font-weight: 850;
}

.primary-more-menu {
  border-color: rgb(116 145 178 / .18);
  border-radius: 24px;
  background: rgb(255 255 255 / .99);
  box-shadow: 0 26px 60px rgb(31 66 105 / .20), inset 0 1px 0 white;
}

.primary-more-menu__item {
  min-height: 54px;
  border-radius: 16px;
  color: var(--sk-ink);
}

.primary-more-menu__item:active:not(:disabled) {
  background: #edf6ff;
}

.panel--focused {
  background:
    radial-gradient(circle at 90% 0%, rgb(73 168 255 / .17), transparent 22rem),
    linear-gradient(180deg, #f7fcff 0%, #eaf6ff 100%);
}

.panel--focused > .disclosure > summary {
  background: linear-gradient(180deg, rgb(247 252 255 / .99) 72%, rgb(247 252 255 / 0));
}

.lead-card--actions-screen,
.lead-card--actions-screen.lead-card--action,
.lead-card--actions-screen.lead-card--paused {
  background:
    radial-gradient(circle at 88% 0%, rgb(73 168 255 / .18), transparent 22rem),
    linear-gradient(180deg, #f7fcff 0%, #eaf6ff 100%);
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 8% 0%, rgb(85 180 255 / .24), transparent 18rem),
      radial-gradient(circle at 98% 12%, rgb(185 228 255 / .34), transparent 20rem),
      linear-gradient(180deg, #f4faff 0%, #e8f5ff 50%, #f7fbff 100%);
  }

  .shell {
    width: min(100% - 16px, 820px);
  }

  .hero {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .shell[data-primary-area]:not([data-primary-area='home']) > .hero h1 {
    font-size: 1.35rem;
  }

  .primary-area-heading {
    margin-top: 6px;
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 11vw, 2.95rem);
  }

  .panel,
  .messages-placeholder {
    border-radius: 24px;
  }

  .panel {
    padding: 16px;
  }

  .lead-card {
    border-radius: 20px;
    padding: 15px;
  }

  .primary-navigation {
    width: min(calc(100% - 16px), 500px);
    padding: 5px;
    border-radius: 25px;
  }

  .primary-navigation__item {
    min-height: 56px;
    border-radius: 18px;
  }

  .primary-more-menu {
    right: 2px;
    width: min(300px, calc(100vw - 22px));
  }
}
