:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: rgba(18, 20, 22, 0.74);
  --panel-strong: rgba(28, 31, 34, 0.84);
  --line: rgba(235, 238, 242, 0.13);
  --text-muted: #a5a9ad;
  --warm: #d7dce1;
  --warm-soft: rgba(235, 238, 242, 0.1);
  --steel: #b7bcc1;
  --red: #d7dce1;
  --red-soft: rgba(235, 238, 242, 0.1);
  --green: #c3c8cd;
  --green-soft: rgba(225, 229, 233, 0.09);
  --blue: #eef2f5;
  --blue-soft: rgba(238, 242, 245, 0.1);
  --ink: #010203;
  --ink-line: rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.1), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(180, 185, 190, 0.09), transparent 28rem),
    radial-gradient(circle at 50% 100%, rgba(100, 104, 108, 0.08), transparent 34rem),
    linear-gradient(135deg, #050506 0%, #17191b 48%, #08090a 100%);
}

button,
input {
  font: inherit;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.brand-block,
.top-actions,
.customer-row,
.section-head,
.action-row,
.follow-up,
.timeline-item {
  display: flex;
  align-items: center;
}

.brand-block h2 {
  display: block;
  font-weight: 800;
}

.brand-block span,
.profile-chip span,
.customer-row span,
.summary-box span,
.analysis-metrics span,
.follow-up span,
.section-head span,
.timeline-item span {
  color: var(--text-muted);
  font-size: 12px;
}

.mark,
.brand-logo,
.icon-chip,
.timeline-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #79b486;
  box-shadow: 0 0 16px rgba(121, 180, 134, 0.72);
}

.status-dot.inactive {
  background: var(--warm);
  box-shadow: 0 0 14px rgba(200, 31, 45, 0.45);
}

.main-panel {
  min-width: 0;
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(320px, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.72);
  background: rgba(7, 10, 13, 0.78);
  backdrop-filter: blur(18px);
  min-height: 82px;
  padding: 12px 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.22);
}

.brand-block {
  gap: 12px;
  min-width: 0;
}

.brand-block > div {
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  filter: drop-shadow(0 0 14px rgba(235, 238, 242, 0.18));
  transform: translateY(-1px);
  outline: 0;
}

.brand-block h2 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(235, 248, 255, 0.045);
  padding: 0 14px;
}

.search-box input {
  width: 100%;
  outline: 0;
  background: transparent;
  color: #f5f0e8;
}

.search-box input::placeholder {
  color: #807a73;
}

.top-actions {
  gap: 12px;
  justify-self: end;
  min-width: 0;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #eee6dc;
  transition: border-color 180ms ease, background 180ms ease;
}

.icon-button:hover {
  border-color: rgba(200, 31, 45, 0.45);
  background: rgba(200, 31, 45, 0.1);
}

.notification-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px 10px 7px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.profile-chip:hover,
.profile-chip:focus-visible {
  border-color: rgba(235, 238, 242, 0.22);
  background: rgba(235, 238, 242, 0.07);
  outline: 0;
}

.profile-avatar,
.avatar-mark {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #26333c, #101419);
  border: 1px solid rgba(235, 238, 242, 0.14);
  color: #f0f0f0;
  font-weight: 800;
}

.profile-avatar {
  width: 36px;
  height: 36px;
}

.profile-avatar svg {
  width: 19px;
  height: 19px;
}

.content-wrap {
  padding: 28px 28px 112px;
}

.dashboard-shell .topbar,
.dashboard-shell [data-section-picker] {
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms ease;
}

body:not(.dashboard-entered) .dashboard-shell .topbar,
body:not(.dashboard-entered) .dashboard-shell [data-section-picker] {
  display: none;
}

body.dashboard-entered .dashboard-shell .welcome-intro {
  display: none;
}

body.dashboard-entered:not(.dashboard-section-open) {
  overflow: hidden;
}

body.dashboard-entered.dashboard-section-open {
  overflow: hidden;
}

body.dashboard-entered:not(.dashboard-section-open) .dashboard-shell {
  height: 100vh;
  overflow: hidden;
}

body.dashboard-entered.dashboard-section-open .dashboard-shell {
  height: 100vh;
  overflow: hidden;
}

body.dashboard-entered:not(.dashboard-section-open) .content-wrap {
  height: calc(100vh - 82px);
  overflow: hidden;
  padding-bottom: 104px;
}

body.dashboard-entered.dashboard-section-open .content-wrap {
  height: calc(100vh - 82px);
  overflow: hidden;
  padding-bottom: 104px;
}

.welcome-intro {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(235, 248, 255, 0.075), rgba(12, 16, 20, 0.46) 44%),
    repeating-linear-gradient(90deg, rgba(235, 248, 255, 0.03) 0 1px, transparent 1px 72px),
    rgba(9, 12, 15, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 30px 90px rgba(0, 0, 0, 0.26);
  padding: 28px;
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.welcome-intro.is-leaving {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(8px);
  pointer-events: none;
}

.welcome-card {
  width: min(100%, 560px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(10, 14, 17, 0.68);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
  padding: 28px;
  text-align: center;
}

.welcome-entry-card {
  display: block;
  color: inherit;
  cursor: default;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.welcome-entry-card:hover,
.welcome-entry-card:focus-visible {
  border-color: rgba(235, 238, 242, 0.24);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.32), 0 0 36px rgba(235, 238, 242, 0.08);
  transform: translateY(-3px);
  outline: 0;
}

.welcome-card img {
  width: clamp(170px, 24vw, 260px);
  height: clamp(170px, 24vw, 260px);
  margin: 0 auto 22px;
  border-radius: 34px;
  object-fit: contain;
}

.welcome-card h1 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.25;
}

.welcome-card > span {
  display: inline-flex;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(235, 248, 255, 0.05);
  color: #dceaf0;
  padding: 7px 12px;
  direction: ltr;
  font-size: 12px;
  font-weight: 700;
}

.welcome-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px auto 0;
  color: #bdb6ad;
  line-height: 1.9;
}

.entry-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0;
  border: 1px solid rgba(235, 238, 242, 0.18);
  border-radius: 999px;
  background: rgba(235, 238, 242, 0.08);
  color: #fff1f2;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
}

.intro-login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 20px auto 0;
}

.intro-login-form label {
  display: grid;
  gap: 7px;
  text-align: right;
}

.intro-login-form label span {
  color: #d4cec7;
  font-size: 12px;
  font-weight: 800;
}

.intro-login-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #f7f2ed;
  padding: 0 13px;
}

.intro-login-form input:focus {
  border-color: rgba(235, 238, 242, 0.28);
  box-shadow: 0 0 0 3px rgba(235, 238, 242, 0.08);
}

.intro-login-form .entry-hint,
.login-error {
  grid-column: 1 / -1;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: #ff9aa1;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.app-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 70px minmax(92px, 1fr);
  gap: 10px;
  align-items: center;
  width: min(390px, calc(100vw - 36px));
  min-height: 72px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(12, 13, 12, 0.76);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
  padding: 10px;
}

.app-bottom-bar.compact {
  display: block;
  width: max-content;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

body:not(.dashboard-entered) .app-bottom-bar {
  display: none;
}

body:not(.dashboard-entered) .ai-chat-panel {
  display: none;
}

.bottom-nav-button,
.bottom-ai-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  color: #eee9e5;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.bottom-nav-button {
  grid-template-columns: auto auto;
  gap: 7px;
  min-height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.bottom-ai-button {
  position: relative;
  width: 104px;
  height: 58px;
  margin: 0 auto;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(26, 33, 38, 0.92), rgba(9, 12, 15, 0.92));
  border-color: rgba(220, 245, 255, 0.16);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: visible;
}

.bottom-ai-button::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid rgba(220, 245, 255, 0.08);
  pointer-events: none;
}

.bottom-ai-button img {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 46px;
  object-fit: contain;
  padding: 0;
  filter:
    grayscale(1)
    brightness(1.28)
    contrast(1.08)
    drop-shadow(0 0 4px rgba(235, 252, 255, 0.36));
  transform: scale(1);
}

.bottom-nav-button:hover,
.bottom-nav-button:focus-visible,
.bottom-ai-button:hover,
.bottom-ai-button:focus-visible {
  border-color: rgba(220, 245, 255, 0.28);
  transform: translateY(-2px);
  outline: 0;
}

.ai-chat-panel {
  position: fixed;
  left: 50%;
  bottom: 116px;
  z-index: 69;
  display: none;
  width: min(390px, calc(100vw - 32px));
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(210, 244, 255, 0.13), transparent 46%),
    rgba(10, 13, 14, 0.94);
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.48), 0 0 40px rgba(145, 216, 255, 0.1);
  backdrop-filter: blur(24px);
}

.ai-chat-panel.is-open {
  display: block;
  animation: pickerEnter 180ms ease both;
}

.chat-drag-handle {
  display: none;
}

.ai-chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.ai-chat-head img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5) contrast(1.2) drop-shadow(0 0 10px rgba(235, 252, 255, 0.8)) drop-shadow(0 0 16px rgba(150, 220, 255, 0.45));
}

.ai-chat-head strong,
.ai-chat-head span {
  display: block;
}

.ai-chat-head strong {
  font-weight: 900;
}

.ai-chat-head span {
  margin-top: 3px;
  color: #a8def5;
  font-size: 12px;
  font-weight: 800;
}

.ai-chat-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.chat-status-orb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 58px;
  margin: 0 auto;
  border: 1px solid rgba(218, 247, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(223, 249, 255, 0.2), transparent 64%),
    rgba(255, 255, 255, 0.035);
}

.chat-status-orb img {
  width: 92px;
  height: 52px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.55) contrast(1.18) drop-shadow(0 0 14px rgba(235, 252, 255, 0.8));
}

.chat-message {
  position: relative;
  border: 1px solid rgba(190, 232, 255, 0.16);
  border-radius: 18px 18px 6px 18px;
  background: rgba(255, 255, 255, 0.055);
  color: #f1f7f8;
  padding: 14px;
}

.chat-message span {
  display: block;
  margin-bottom: 7px;
  color: #a8def5;
  font-size: 11px;
  font-weight: 900;
}

.chat-message p {
  line-height: 1.8;
}

.chat-disabled-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border: 1px dashed rgba(218, 247, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #9fb3ba;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
}

.chat-disabled-input svg {
  width: 17px;
  height: 17px;
  color: #a8def5;
}

.section-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  animation: pickerEnter 320ms ease both;
}

body.dashboard-entered:not(.dashboard-section-open) .section-picker {
  height: 100%;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

body.dashboard-entered.dashboard-section-open .section-picker {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.section-picker .section-panel {
  min-height: 286px;
  margin-top: 0;
  cursor: pointer;
  transition: min-height 220ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.dashboard-entered:not(.dashboard-section-open) .section-picker .section-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 20px;
}

body.dashboard-entered:not(.dashboard-section-open) .section-picker .knowledge-panel:not(.is-open) {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.19), rgba(47, 50, 54, 0.78) 42%),
    rgba(42, 45, 49, 0.72);
  background-size: 26px 26px, 26px 26px, auto, auto;
}

body.dashboard-entered:not(.dashboard-section-open) .section-picker .phone-panel:not(.is-open) {
  border-color: rgba(210, 214, 218, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, rgba(170, 175, 180, 0.13), rgba(24, 27, 30, 0.76) 42%),
    rgba(22, 25, 28, 0.72);
}

body.dashboard-entered:not(.dashboard-section-open) .section-picker .marketing-panel:not(.is-open) {
  border-color: rgba(150, 155, 160, 0.2);
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(135deg, rgba(95, 100, 105, 0.14), rgba(8, 9, 10, 0.82) 42%),
    rgba(8, 9, 10, 0.78);
}

body.dashboard-entered.dashboard-section-open .section-picker .section-panel:not(.is-open) {
  display: none;
}

body.dashboard-entered.dashboard-section-open .section-picker .section-panel.is-open {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 16px 18px;
  overflow: hidden;
}

body.dashboard-entered:not(.dashboard-section-open) .section-title-row {
  align-items: center;
}

body.dashboard-entered.dashboard-section-open .section-title-row {
  align-items: center;
  flex-shrink: 0;
}

body.dashboard-entered:not(.dashboard-section-open) .section-title-row h2 {
  font-size: 21px;
}

body.dashboard-entered.dashboard-section-open .section-title-row h2 {
  font-size: 21px;
}

body.dashboard-entered:not(.dashboard-section-open) .section-title-row p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.dashboard-entered.dashboard-section-open .section-title-row p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.section-picker .section-panel:not(.is-open):hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.24);
}

.section-picker .app-accordion-section.is-open {
  grid-column: 1 / -1;
  cursor: default;
}

.section-picker .accordion-toggle {
  display: none;
}

.section-picker .app-accordion-section.is-open .accordion-toggle {
  display: inline-flex;
}

.collapsed-preview {
  display: grid;
  grid-template-columns: auto minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  border: 1px solid rgba(235, 238, 242, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.13)),
    rgba(255, 255, 255, 0.03);
  padding: 16px 18px;
  box-shadow: none;
}

body.dashboard-entered:not(.dashboard-section-open) .collapsed-preview {
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  padding: 12px 14px;
}

.app-accordion-section.is-open .collapsed-preview {
  display: none;
}

.section-symbol {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(235, 238, 242, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.035),
    inset 0 0 0 1px rgba(0, 0, 0, 0.62);
}

body.dashboard-entered:not(.dashboard-section-open) .section-symbol {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.section-symbol svg {
  width: 44px;
  height: 44px;
}

body.dashboard-entered:not(.dashboard-section-open) .section-symbol svg {
  width: 36px;
  height: 36px;
}

.knowledge-panel .section-symbol {
  color: #f2f4f6;
  background: rgba(245, 247, 249, 0.08);
}

.phone-panel .section-symbol {
  color: #d8dde2;
  background: rgba(210, 214, 218, 0.08);
}

.marketing-panel .section-symbol {
  color: #c3c8cd;
  background: rgba(170, 175, 180, 0.09);
}

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

.preview-metrics span {
  min-height: 68px;
  border: 1px solid rgba(235, 238, 242, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(235, 248, 255, 0.045), rgba(2, 7, 10, 0.16)),
    rgba(2, 7, 10, 0.16);
  color: #cfdae0;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.68);
}

body.dashboard-entered:not(.dashboard-section-open) .preview-metrics span {
  min-height: 56px;
  padding: 8px 10px;
}

.preview-metrics b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

body.dashboard-entered:not(.dashboard-section-open) .preview-metrics b {
  margin-bottom: 2px;
  font-size: 18px;
}

.collapsed-preview p {
  color: #d6e0e6;
  line-height: 1.8;
}

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

.sentiment-preview span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 7px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(220, 225, 230, 0.13);
  border-radius: 14px;
  background: rgba(220, 225, 230, 0.045);
  padding: 7px 9px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.72);
}

.sentiment-preview svg {
  grid-row: span 2;
  width: 19px;
  height: 19px;
  color: #d8dde2;
}

.sentiment-preview b,
.sentiment-preview em {
  display: block;
}

.sentiment-preview b {
  color: #f5fbf7;
  font-size: 11px;
  font-weight: 900;
}

.sentiment-preview em {
  color: #9fb2aa;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  width: fit-content;
  max-width: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 3px 7px;
  white-space: nowrap;
}

body.dashboard-entered:not(.dashboard-section-open) .phone-panel .collapsed-preview {
  grid-template-columns: auto minmax(220px, 0.72fr) minmax(320px, 1fr);
  gap: 14px;
}

body.dashboard-entered:not(.dashboard-section-open) .phone-panel .preview-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.dashboard-entered:not(.dashboard-section-open) .collapsed-preview p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.65;
}

@keyframes pickerEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-strip,
.glass-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 184px;
  border-radius: 24px;
  padding: 26px;
}

.eyebrow {
  color: var(--warm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-strip h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.25;
}

.hero-strip p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 12px;
  color: #bdb5aa;
}

.hero-status-group,
.hero-status {
  display: flex;
  align-items: center;
}

.hero-status-group {
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.hero-status {
  gap: 9px;
  min-width: max-content;
  border: 1px solid rgba(121, 180, 134, 0.24);
  border-radius: 999px;
  padding: 10px 14px;
  color: #cfe8d5;
  background: rgba(121, 180, 134, 0.08);
  font-size: 13px;
}

.hero-status.inactive {
  border-color: rgba(200, 31, 45, 0.28);
  background: rgba(200, 31, 45, 0.09);
  color: #ffb8bd;
}

.module-grid,
.kpi-grid,
.dashboard-grid,
.analytics-grid,
.marketing-kpi-grid,
.marketing-grid,
.system-overview-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.system-overview-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.system-status-card,
.system-activity-card {
  padding: 22px;
}

.section-panel {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(235, 238, 242, 0.12);
  border-radius: 24px;
  background: rgba(13, 18, 22, 0.5);
  padding: 18px;
}

.section-panel {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-panel::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 5px;
  height: calc(100% - 36px);
  border-radius: 999px 0 0 999px;
}

.section-panel::before {
  box-shadow: none;
}

.section-panel .section-title-row::before {
  position: absolute;
  top: 10px;
  left: 18px;
  color: rgba(255, 255, 255, 0.06);
  font-size: clamp(46px, 8vw, 86px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

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

.app-accordion-section {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.app-accordion-section:not(.is-open) {
  padding-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(235, 248, 255, 0.045), rgba(13, 18, 22, 0.44)),
    rgba(13, 18, 22, 0.42);
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 4px 0;
}

.section-title-row h2 {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 800;
}

.section-title-row p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-title-row > span {
  min-width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.accordion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  width: calc(100% - 8px);
  margin: 14px 4px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #eee8df;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease;
}

.accordion-toggle:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.accordion-toggle svg {
  transition: transform 180ms ease;
}

.app-accordion-section.is-open .accordion-toggle svg {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
}

.app-accordion-section.is-open .accordion-body {
  display: block;
}

body.dashboard-entered.dashboard-section-open .accordion-toggle {
  flex-shrink: 0;
  min-height: 36px;
  margin-top: 10px;
}

body.dashboard-entered.dashboard-section-open .accordion-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 232, 255, 0.28) transparent;
}

body.dashboard-entered.dashboard-section-open .accordion-body::-webkit-scrollbar,
body.dashboard-entered.dashboard-section-open .priority-call-carousel::-webkit-scrollbar,
body.dashboard-entered.dashboard-section-open .flow-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body.dashboard-entered.dashboard-section-open .accordion-body::-webkit-scrollbar-thumb,
body.dashboard-entered.dashboard-section-open .priority-call-carousel::-webkit-scrollbar-thumb,
body.dashboard-entered.dashboard-section-open .flow-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(190, 232, 255, 0.24);
}

body.dashboard-entered.dashboard-section-open .assistant-access {
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

body.dashboard-entered.dashboard-section-open .assistant-access h2 {
  font-size: 18px;
}

body.dashboard-entered.dashboard-section-open .assistant-access p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.dashboard-entered.dashboard-section-open .admin-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

body.dashboard-entered.dashboard-section-open .module-card {
  min-height: 0;
  padding: 14px;
}

body.dashboard-entered.dashboard-section-open .module-card > div > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.dashboard-entered.dashboard-section-open .module-preview {
  gap: 8px;
}

body.dashboard-entered.dashboard-section-open .module-preview ul {
  display: none;
}

body.dashboard-entered.dashboard-section-open .phone-focus-grid,
body.dashboard-entered.dashboard-section-open .marketing-focus-grid {
  gap: 12px;
  height: 100%;
  margin-top: 12px;
  min-height: 0;
}

body.dashboard-entered.dashboard-section-open .phone-focus-grid {
  grid-template-columns: minmax(230px, 0.52fr) minmax(0, 1.48fr);
}

body.dashboard-entered.dashboard-section-open .marketing-focus-grid {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

body.dashboard-entered.dashboard-section-open .phone-module-stack,
body.dashboard-entered.dashboard-section-open .marketing-module-stack {
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-left: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 195, 200, 0.28) transparent;
}

body.dashboard-entered.dashboard-section-open .phone-module-card,
body.dashboard-entered.dashboard-section-open .marketing-module-card {
  min-height: 0;
}

body.dashboard-entered.dashboard-section-open .priority-calls-card,
body.dashboard-entered.dashboard-section-open .marketing-report {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
}

body.dashboard-entered.dashboard-section-open .priority-calls-card .section-head {
  flex-shrink: 0;
  margin-bottom: 12px;
}

body.dashboard-entered.dashboard-section-open .priority-call-carousel {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-x: auto;
  overflow-y: auto;
  align-items: start;
}

body.dashboard-entered.dashboard-section-open .priority-call-item {
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 14px;
}

body.dashboard-entered.dashboard-section-open .priority-call-item > p,
body.dashboard-entered.dashboard-section-open .flow-list p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.dashboard-entered.dashboard-section-open .priority-call-item > p {
  -webkit-line-clamp: 4;
}

body.dashboard-entered.dashboard-section-open .operator-row,
body.dashboard-entered.dashboard-section-open .call-mini-metrics {
  gap: 8px;
}

body.dashboard-entered.dashboard-section-open .call-mini-metrics {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
}

body.dashboard-entered.dashboard-section-open .call-mini-metrics span {
  min-width: 132px;
  padding: 7px 10px;
  white-space: nowrap;
}

body.dashboard-entered.dashboard-section-open .call-mini-metrics b {
  display: inline;
  margin-right: 4px;
}

body.dashboard-entered.dashboard-section-open .insight-footer {
  display: none;
}

body.dashboard-entered.dashboard-section-open .phone-panel .accordion-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .phone-focus-grid {
  height: auto;
  min-height: 0;
  margin-top: 0;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid {
  display: grid;
  align-items: start;
  margin-top: 0;
  gap: 8px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .chart-card {
  box-sizing: border-box;
  height: 118px;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .section-head.compact {
  margin-bottom: 8px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .section-head h2 {
  font-size: 14px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .section-head span {
  font-size: 11px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .bar-chart,
body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .line-placeholder {
  height: 54px;
  border-radius: 12px;
  padding: 7px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .sentiment-rings {
  align-items: center;
  gap: 8px;
  height: 54px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .ring::before {
  inset: 5px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .ring {
  width: 54px;
  height: 54px;
  aspect-ratio: auto;
  justify-self: center;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .ring strong {
  font-size: 15px;
}

body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .ring span {
  font-size: 10px;
}

@media (min-width: 1181px) {
  body.dashboard-entered.dashboard-section-open .phone-panel .accordion-body {
    grid-template-columns: minmax(240px, 0.56fr) minmax(0, 1.28fr) minmax(220px, 0.54fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "analytics calls modules";
    gap: 12px;
    direction: ltr;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .phone-focus-grid {
    display: contents;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .phone-module-stack {
    grid-area: modules;
    direction: rtl;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .priority-calls-card {
    grid-area: calls;
    direction: rtl;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid {
    grid-area: analytics;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    direction: rtl;
    min-height: 0;
    height: 100%;
    overflow: auto;
    gap: 10px;
    padding-left: 4px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .chart-card {
    height: 150px;
    padding: 13px 14px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .section-head.compact {
    margin-bottom: 10px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .section-head h2 {
    font-size: 15px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .section-head span {
    font-size: 12px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .bar-chart,
  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .line-placeholder,
  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .sentiment-rings {
    height: 78px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .ring {
    width: 70px;
    height: 70px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .ring strong {
    font-size: 17px;
  }

  body.dashboard-entered.dashboard-section-open .phone-panel .analytics-grid .ring span {
    font-size: 11px;
  }
}

body.dashboard-entered.dashboard-section-open .flow-list {
  gap: 10px;
  max-height: calc(100% - 48px);
  overflow: auto;
}

body.dashboard-entered.dashboard-section-open .flow-list div {
  padding: 12px;
}

.knowledge-panel {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.19), rgba(47, 50, 54, 0.78) 42%),
    rgba(42, 45, 49, 0.72);
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow: inset 0 0 0 1px rgba(245, 247, 249, 0.045), 0 24px 70px rgba(0, 0, 0, 0.2);
}

.knowledge-panel::before {
  background: radial-gradient(circle at 5% 0%, rgba(255, 255, 255, 0.18), transparent 26rem);
}

.knowledge-panel::after {
  background: #f4f6f8;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
}

.knowledge-panel .section-title-row::before {
  content: "01";
}

.knowledge-panel .section-title-row > span {
  background: rgba(245, 247, 249, 0.09);
  color: #f2f4f6;
}

.phone-panel {
  border-color: rgba(210, 214, 218, 0.17);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, rgba(170, 175, 180, 0.13), rgba(24, 27, 30, 0.76) 42%),
    rgba(22, 25, 28, 0.72);
  box-shadow: inset 0 0 0 1px rgba(220, 225, 230, 0.035), 0 24px 70px rgba(0, 0, 0, 0.18);
}

.phone-panel::before {
  background: radial-gradient(circle at 5% 0%, rgba(190, 195, 200, 0.12), transparent 27rem);
}

.phone-panel::after {
  background: #a4a9ae;
  box-shadow: 0 0 18px rgba(220, 225, 230, 0.12);
}

.phone-panel .section-title-row::before {
  content: "02";
}

.phone-panel .eyebrow,
.phone-panel .timeline-icon,
.phone-panel .follow-up svg,
.phone-panel .infra-list svg {
  color: #c3c8cd;
}

.phone-panel .section-title-row > span {
  background: rgba(210, 214, 218, 0.08);
  color: #d8dde2;
}

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

.phone-module-card {
  min-height: 0;
}

.phone-focus-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.phone-module-stack {
  display: grid;
  gap: 18px;
}

.phone-focus-grid .priority-calls-card {
  min-width: 0;
}

.phone-panel .icon-chip.red,
.phone-panel .icon-chip.orange {
  color: #d8dde2;
  background: rgba(220, 225, 230, 0.08);
}

.phone-panel .trend,
.phone-panel .priority-badge {
  background: rgba(220, 225, 230, 0.08);
  color: #d8dde2;
}

.phone-panel .kpi-card:hover {
  border-color: rgba(220, 225, 230, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3), 0 0 34px rgba(220, 225, 230, 0.06);
}

.phone-panel .progress span,
.phone-panel .bar-chart span {
  background: linear-gradient(180deg, #3f9b66, rgba(150, 150, 150, 0.24));
}

.phone-panel .progress span {
  background: linear-gradient(90deg, #8e8e8e, #3f9b66);
}

.phone-panel .line-placeholder path {
  stroke: #3f9b66;
}

.phone-panel .line-placeholder circle {
  fill: #aee7c3;
}

.marketing-panel {
  border-color: rgba(150, 155, 160, 0.18);
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(135deg, rgba(95, 100, 105, 0.14), rgba(8, 9, 10, 0.82) 42%),
    rgba(8, 9, 10, 0.78);
  box-shadow: inset 0 0 0 1px rgba(210, 214, 218, 0.035), 0 24px 70px rgba(0, 0, 0, 0.18);
}

.marketing-panel::before {
  background: radial-gradient(circle at 5% 0%, rgba(140, 145, 150, 0.13), transparent 28rem);
}

.marketing-panel::after {
  background: #5f6469;
  box-shadow: 0 0 18px rgba(200, 205, 210, 0.08);
}

.marketing-panel .section-title-row::before {
  content: "03";
}

.marketing-panel .eyebrow {
  color: #d2d6da;
}

.marketing-panel .section-title-row > span {
  background: rgba(180, 185, 190, 0.09);
  color: #d2d6da;
}

.marketing-focus-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.marketing-module-stack {
  display: grid;
  gap: 18px;
}

.marketing-module-card .module-stat-row span {
  border-color: rgba(190, 195, 200, 0.15);
  background: rgba(190, 195, 200, 0.055);
}

.marketing-module-card small {
  border-color: rgba(190, 195, 200, 0.16);
  background: rgba(190, 195, 200, 0.07);
  color: #d2d6da;
}

.marketing-module-card:hover {
  border-color: rgba(220, 225, 230, 0.22);
}

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

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

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

.glass-card {
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  text-align: right;
  gap: 14px;
  min-height: 252px;
  padding: 18px;
  background: rgba(18, 24, 29, 0.62);
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
  box-shadow: none;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 225, 230, 0.22);
  background: rgba(23, 31, 37, 0.72);
}

a.module-card {
  text-decoration: none;
}

.module-card strong {
  display: block;
  font-weight: 800;
}

.module-card span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.module-card small {
  position: absolute;
  top: 14px;
  left: 14px;
  border: 1px solid rgba(220, 225, 230, 0.14);
  border-radius: 999px;
  background: rgba(220, 225, 230, 0.06);
  color: #d8dde2;
  padding: 4px 8px;
  font-size: 11px;
}

.module-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.module-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-stat-row span {
  border: 1px solid rgba(220, 225, 230, 0.12);
  border-radius: 12px;
  background: rgba(220, 225, 230, 0.045);
  color: #cfdae0;
  padding: 10px;
  font-size: 11px;
}

.module-stat-row b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 17px;
}

.phone-module-card .module-stat-row span {
  border-color: rgba(220, 225, 230, 0.12);
  background: rgba(220, 225, 230, 0.045);
}

.phone-module-card small {
  border-color: rgba(220, 225, 230, 0.14);
  background: rgba(220, 225, 230, 0.06);
  color: #d8dde2;
}

.phone-module-card:hover {
  border-color: rgba(220, 225, 230, 0.22);
}

.module-preview ul {
  display: grid;
  gap: 8px;
  color: #d9d2d2;
  font-size: 12px;
  line-height: 1.7;
  list-style: none;
}

.module-preview li {
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(2, 7, 10, 0.18);
  padding: 8px 10px;
}

.assistant-access {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
}

.assistant-access h2 {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 800;
}

.assistant-access p:not(.eyebrow) {
  margin-top: 7px;
  color: #d5d0ca;
  line-height: 1.8;
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 225, 230, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3), 0 0 30px rgba(220, 225, 230, 0.06);
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.icon-chip.orange,
.icon-chip.red {
  color: #ff7680;
  background: var(--warm-soft);
}

.icon-chip.gray {
  color: #d6cec2;
  background: rgba(214, 206, 194, 0.1);
}

.icon-chip.steel {
  color: #b7c2c2;
  background: rgba(142, 150, 150, 0.12);
}

.icon-chip.blue {
  color: #c7dcf2;
  background: var(--blue-soft);
}

.icon-chip.green {
  color: #aee7c3;
  background: var(--green-soft);
}

.kpi-card p {
  color: var(--text-muted);
  font-size: 13px;
}

.kpi-card strong {
  display: block;
  margin-top: 5px;
  font-size: 32px;
  font-weight: 800;
}

.trend,
.priority-badge {
  border-radius: 999px;
  background: rgba(220, 225, 230, 0.08);
  color: #d8dde2;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.call-card,
.priority-calls-card,
.timeline-card,
.workflow-card,
.chart-card {
  padding: 22px;
}

.section-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 19px;
  font-weight: 800;
}

.section-head.compact {
  margin-bottom: 16px;
}

.customer-row {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.avatar-mark {
  width: 52px;
  height: 52px;
}

.customer-row strong,
.analysis-metrics strong {
  display: block;
  margin-top: 4px;
  font-weight: 800;
}

.summary-box,
.follow-up {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  padding: 16px;
}

.summary-box p,
.follow-up p {
  margin-top: 8px;
  color: #e6ded3;
  line-height: 1.9;
}

.analysis-metrics {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.analysis-metrics > div {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  padding: 15px;
}

.positive {
  color: #93d49d;
}

.critical {
  color: #ff9098;
}

.progress {
  height: 7px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fa8b5, #df4654);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  border: 1px solid rgba(200, 31, 45, 0.24);
  border-radius: 999px;
  background: rgba(200, 31, 45, 0.09);
  color: #f0d1d4;
  padding: 7px 12px;
  font-size: 12px;
}

.tag-row.compact {
  margin-top: 12px;
}

.tag-row.compact span {
  padding: 5px 9px;
}

.follow-up {
  gap: 12px;
  align-items: flex-start;
}

.follow-up.compact {
  margin-top: 12px;
  padding: 12px;
}

.follow-up.compact p {
  margin-top: 4px;
  line-height: 1.7;
}

.follow-up svg {
  color: var(--warm);
  margin-top: 4px;
}

.action-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(235, 248, 255, 0.045);
  color: #eef6f8;
  padding: 0 15px;
  transition: background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  background: rgba(235, 248, 255, 0.07);
  border-color: rgba(133, 200, 238, 0.28);
}

.btn-primary {
  background: rgba(223, 70, 84, 0.18);
  border-color: rgba(223, 70, 84, 0.34);
  color: #fff7f8;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.priority-call-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding-bottom: 6px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.priority-call-item {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
  min-height: 520px;
}

.priority-call-item.high {
  border-color: rgba(63, 155, 102, 0.34);
  background: linear-gradient(135deg, rgba(63, 155, 102, 0.11), rgba(255, 255, 255, 0.035));
}

.priority-call-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.priority-call-head strong {
  display: block;
  font-weight: 800;
}

.priority-call-head span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font-size: 12px;
}

.priority-call-head em {
  border-radius: 999px;
  background: rgba(63, 155, 102, 0.12);
  color: #aee7c3;
  padding: 6px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.priority-call-item > p {
  margin-top: 12px;
  color: #e9e4df;
  line-height: 1.8;
  min-height: 0;
}

.call-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.operator-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.operator-row div {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  padding: 10px;
}

.operator-row span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.operator-row strong {
  display: block;
  margin-top: 4px;
  color: #f3f0ed;
  font-size: 13px;
}

.action-row.compact {
  margin-top: auto;
  padding-top: 14px;
}

.call-mini-metrics span {
  border: 1px solid rgba(63, 155, 102, 0.16);
  border-radius: 12px;
  background: rgba(63, 155, 102, 0.06);
  color: var(--text-muted);
  padding: 9px 10px;
  font-size: 12px;
}

.call-mini-metrics b {
  color: #f3f0ed;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  gap: 12px;
}

.timeline-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--warm);
}

.timeline-item strong {
  display: block;
  font-size: 14px;
}

.workflow-list,
.infra-list {
  display: grid;
  gap: 10px;
}

.workflow-list span,
.infra-list div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px 13px;
  color: #d6e0e6;
}

.infra-list div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.infra-note {
  margin: -4px 0 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.9;
}

.infra-list svg {
  color: var(--warm);
}

.infra-list strong {
  color: #d8d8d8;
  font-size: 12px;
}

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

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

.marketing-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.marketing-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 18px;
}

.marketing-card p {
  color: var(--text-muted);
  font-size: 13px;
}

.marketing-card strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  font-weight: 800;
}

.marketing-card > span {
  border-radius: 999px;
  background: rgba(93, 135, 181, 0.12);
  color: #c7dcf2;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.marketing-report,
.content-report {
  padding: 22px;
}

.flow-list,
.content-types {
  display: grid;
  gap: 12px;
}

.flow-list div,
.content-types div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.flow-list strong,
.content-types strong {
  display: block;
  font-weight: 800;
}

.flow-list span,
.content-types span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.flow-list p {
  margin-top: 9px;
  color: #e9e4df;
  font-size: 13px;
  line-height: 1.8;
}

.flow-list small {
  display: block;
  margin-top: 8px;
  color: #9fc0e1;
  font-size: 12px;
}

.flow-list em {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(93, 135, 181, 0.12);
  color: #c7dcf2;
  padding: 5px 9px;
  font-size: 11px;
  font-style: normal;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  padding: 18px;
}

.bar-chart span {
  flex: 1;
  min-width: 16px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #df4654, rgba(150, 180, 195, 0.2));
}

.line-placeholder {
  height: 160px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
}

.line-placeholder svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-placeholder path {
  fill: none;
  stroke: #df4654;
  stroke-width: 4;
  stroke-linecap: round;
}

.line-placeholder circle {
  fill: #ff7680;
}

.sentiment-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ring {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: conic-gradient(var(--ring-color) var(--ring-value), rgba(255,255,255,0.07) 0);
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #10171c;
}

.ring strong,
.ring span {
  position: relative;
}

.ring strong {
  font-size: 20px;
}

.ring span {
  color: var(--text-muted);
  font-size: 12px;
}

.positive-ring {
  --ring-color: #86b98b;
  --ring-value: 64%;
}

.neutral-ring {
  --ring-color: #c9b38f;
  --ring-value: 27%;
}

.alert-ring {
  --ring-color: #df4654;
  --ring-value: 9%;
}

.insight-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
}

.insight-footer h2 {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
}

.insight-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.insight-items span {
  border: 1px solid rgba(200, 31, 45, 0.22);
  border-radius: 999px;
  background: rgba(200, 31, 45, 0.08);
  color: #eee;
  padding: 9px 13px;
  font-size: 13px;
}

.access-toast {
  position: fixed;
  right: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(50%, 16px);
  border: 1px solid rgba(200, 31, 45, 0.34);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  color: #f3eeee;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.access-toast.visible {
  opacity: 1;
  transform: translate(50%, 0);
}

.detail-hero {
  margin-top: 0;
}

.detail-hero h1 {
  margin-top: 6px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #e6e0da;
  font-size: 13px;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.detail-stat {
  padding: 18px;
}

.detail-stat span {
  color: var(--text-muted);
  font-size: 13px;
}

.detail-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}

.detail-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
}

.detail-table-card {
  margin-top: 18px;
  padding: 22px;
}

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

.detail-call-list .priority-call-item {
  min-height: 0;
}

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

.detail-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.detail-table th {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px 4px;
  text-align: right;
}

.detail-table td {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #eee9e5;
  padding: 14px 12px;
  font-size: 13px;
  line-height: 1.8;
}

.detail-table td:first-child {
  border-right: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
}

.detail-table td:last-child {
  border-left: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
}

.documents-panel {
  border-color: rgba(223, 70, 84, 0.2);
  background:
    linear-gradient(135deg, rgba(223, 70, 84, 0.13), rgba(13, 18, 22, 0.66) 38%),
    rgba(13, 18, 22, 0.46);
}

.documents-panel::before {
  background: radial-gradient(circle at 5% 0%, rgba(223, 70, 84, 0.17), transparent 26rem);
}

.documents-panel::after {
  background: #df4654;
  box-shadow: 0 0 28px rgba(223, 70, 84, 0.32);
}

.documents-panel .section-title-row > span,
.projects-panel .section-title-row > span {
  background: rgba(200, 31, 45, 0.1);
  color: #ffb8bd;
}

.projects-panel {
  border-color: rgba(223, 70, 84, 0.2);
  background:
    linear-gradient(135deg, rgba(223, 70, 84, 0.13), rgba(13, 18, 22, 0.66) 38%),
    rgba(13, 18, 22, 0.46);
}

.projects-panel::before {
  background: radial-gradient(circle at 5% 0%, rgba(223, 70, 84, 0.17), transparent 26rem);
}

.projects-panel::after {
  background: #df4654;
  box-shadow: 0 0 28px rgba(223, 70, 84, 0.32);
}

.calls-panel,
.customers-panel {
  border-color: rgba(63, 155, 102, 0.22);
  background:
    linear-gradient(135deg, rgba(63, 155, 102, 0.16), rgba(20, 20, 20, 0.62) 38%),
    rgba(20, 20, 20, 0.42);
}

.calls-panel::before,
.customers-panel::before {
  background: radial-gradient(circle at 5% 0%, rgba(63, 155, 102, 0.23), transparent 27rem);
}

.calls-panel::after,
.customers-panel::after {
  background: #3f9b66;
  box-shadow: 0 0 28px rgba(63, 155, 102, 0.44);
}

.calls-panel .section-title-row > span,
.customers-panel .section-title-row > span {
  background: rgba(63, 155, 102, 0.1);
  color: #aee7c3;
}

.marketing-panel.detail-hero,
.marketing-panel.detail-hero {
  border-color: rgba(93, 135, 181, 0.24);
}

.marketing-panel .detail-stat strong {
  color: #c7dcf2;
}

svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1180px) {
  .section-picker {
    grid-template-columns: 1fr;
  }

  .collapsed-preview {
    grid-template-columns: auto 1fr;
  }

  .collapsed-preview p {
    grid-column: 1 / -1;
  }

  .module-grid,
  .kpi-grid,
  .analytics-grid,
  .marketing-kpi-grid,
  .system-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .phone-focus-grid,
  .marketing-focus-grid,
  .system-overview-grid,
  .marketing-grid {
    grid-template-columns: 1fr;
  }

  .phone-module-stack,
  .marketing-module-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-call-carousel {
    grid-auto-columns: 100%;
  }
}

@media (max-width: 1023px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 760px) {
  body.dashboard-entered:not(.dashboard-section-open) {
    overflow: auto;
  }

  body.dashboard-entered.dashboard-section-open {
    overflow: auto;
  }

  body.dashboard-entered:not(.dashboard-section-open) .dashboard-shell,
  body.dashboard-entered:not(.dashboard-section-open) .content-wrap,
  body.dashboard-entered.dashboard-section-open .dashboard-shell,
  body.dashboard-entered.dashboard-section-open .content-wrap {
    height: auto;
    overflow: visible;
  }

  body.dashboard-entered:not(.dashboard-section-open) .section-picker,
  body.dashboard-entered.dashboard-section-open .section-picker {
    height: auto;
    grid-template-rows: none;
  }

  body.dashboard-entered:not(.dashboard-section-open) .section-picker .section-panel {
    min-height: 0;
    padding: 16px;
  }

  body.dashboard-entered.dashboard-section-open .section-picker .section-panel.is-open {
    height: auto;
    overflow: visible;
    padding: 16px;
  }

  body.dashboard-entered.dashboard-section-open .accordion-body {
    overflow: visible;
  }

  body.dashboard-entered.dashboard-section-open .phone-focus-grid,
  body.dashboard-entered.dashboard-section-open .marketing-focus-grid,
  body.dashboard-entered.dashboard-section-open .admin-module-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  body.dashboard-entered.dashboard-section-open .analytics-grid,
  body.dashboard-entered.dashboard-section-open .insight-footer {
    display: grid;
  }

  .collapsed-preview {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
  }

  .section-symbol,
  body.dashboard-entered:not(.dashboard-section-open) .section-symbol {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .section-symbol svg,
  body.dashboard-entered:not(.dashboard-section-open) .section-symbol svg {
    width: 30px;
    height: 30px;
  }

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

  .sentiment-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1 / -1;
  }

  body.dashboard-entered:not(.dashboard-section-open) .phone-panel .collapsed-preview {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.dashboard-entered:not(.dashboard-section-open) .phone-panel .collapsed-preview p {
    grid-column: 1 / -1;
    -webkit-line-clamp: 2;
    margin-top: 0;
  }

  .sentiment-preview span {
    min-height: 52px;
    padding: 7px;
  }

  .sentiment-preview b {
    font-size: 11px;
  }

  .preview-metrics span,
  body.dashboard-entered:not(.dashboard-section-open) .preview-metrics span {
    min-height: 54px;
    padding: 7px;
    font-size: 10px;
  }

  .preview-metrics b,
  body.dashboard-entered:not(.dashboard-section-open) .preview-metrics b {
    font-size: 16px;
  }

  .collapsed-preview p {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .content-wrap,
  .topbar {
    padding: 18px;
  }

  .content-wrap {
    padding-bottom: 106px;
  }

  .app-bottom-bar {
    bottom: 12px;
    width: min(360px, calc(100vw - 24px));
    min-height: 66px;
    border-radius: 22px;
  }

  .bottom-ai-button {
    width: 96px;
    height: 54px;
    margin: 0 auto;
  }

  .bottom-ai-button img {
    width: 78px;
    height: 42px;
  }

  .app-bottom-bar.compact {
    width: max-content;
    min-height: 0;
  }

  .ai-chat-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 74vh;
    transform: translateY(100%);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 28px 28px 0 0;
  }

  .ai-chat-panel.is-open {
    display: block;
    animation: mobileChatSheet 220ms ease both;
  }

  .chat-drag-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: rgba(220, 245, 255, 0.28);
  }

  .ai-chat-head {
    padding: 12px 16px 14px;
  }

  .ai-chat-body {
    padding: 16px 16px 22px;
  }

  .intro-login-form {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    display: block;
    min-height: auto;
    padding: 20px;
  }

  .hero-status-group {
    width: fit-content;
    margin-top: 18px;
    justify-content: flex-start;
  }

  .assistant-access {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    display: block;
  }

  .section-title-row > span {
    display: inline-flex;
    margin-top: 12px;
  }

  .kpi-grid,
  .module-grid,
  .phone-module-stack,
  .marketing-module-stack,
  .marketing-kpi-grid,
  .analytics-grid,
  .analysis-metrics {
    grid-template-columns: 1fr;
  }

  .priority-call-carousel {
    grid-auto-columns: 100%;
  }

  .carousel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .priority-call-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .priority-call-head em {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .operator-row,
  .call-mini-metrics {
    grid-template-columns: 1fr;
  }

  .customer-row {
    grid-template-columns: auto 1fr;
  }

  .profile-chip div:not(.profile-avatar) {
    display: none;
  }

  .detail-toolbar {
    grid-template-columns: 1fr;
  }

  .detail-table-card {
    padding: 16px;
  }

  .detail-table-wrap {
    overflow: visible;
  }

  .detail-table,
  .detail-table thead,
  .detail-table tbody,
  .detail-table tr,
  .detail-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .detail-table {
    border-spacing: 0;
  }

  .detail-table thead {
    display: none;
  }

  .detail-table tr {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    padding: 12px;
  }

  .detail-table tr + tr {
    margin-top: 12px;
  }

  .detail-table td,
  .detail-table td:first-child,
  .detail-table td:last-child {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 8px 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .detail-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
  }

  .detail-table td:last-child {
    line-height: 1.95;
  }

  .detail-call-list {
    grid-template-columns: 1fr;
  }

  .detail-call-list .priority-call-item {
    padding: 14px;
  }
}

@keyframes mobileChatSheet {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .app-bottom-bar.compact {
    display: block;
    grid-template-columns: 1fr;
    width: max-content;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .bottom-ai-button {
    width: 92px;
    height: 52px;
  }

  .bottom-ai-button img {
    width: 74px;
    height: 40px;
  }

  .bottom-nav-button {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 0 8px;
    font-size: 10px;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .sentiment-preview {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: space-between;
  }

  .customer-row {
    grid-template-columns: 1fr;
  }

  .avatar-mark {
    display: none;
  }

  .sentiment-rings {
    grid-template-columns: 1fr;
  }

  .insight-footer {
    grid-template-columns: 1fr;
  }

  .insight-items {
    justify-content: flex-start;
  }

  .detail-stat-grid,
  .detail-toolbar {
    grid-template-columns: 1fr;
  }

  .ring {
    aspect-ratio: 2.2;
    border-radius: 18px;
  }
}

.phone-panel .line-placeholder circle,
.priority-call-head em,
.call-mini-metrics b {
  color: #d8dde2;
  fill: #d8dde2;
}

.tag-row span,
.insight-items span,
.detail-stat,
.workflow-list span,
.infra-list div {
  border-color: rgba(220, 225, 230, 0.14);
  background: rgba(220, 225, 230, 0.055);
  color: #d8dde2;
}

.progress span,
.bar-chart span {
  background: linear-gradient(180deg, #d8dde2, rgba(145, 150, 155, 0.2));
}

.line-placeholder path {
  stroke: #d8dde2;
}

.alert-ring,
.positive-ring,
.neutral-ring {
  --ring-color: #d8dde2;
}
