:root {
  --ink: #111827;
  --muted: #647084;
  --line: #dfe4ec;
  --violet: #6671e5;
  --violet-soft: #8c96ef;
  --blue: #4ba8da;
  --mint: #35cfb8;
  --green: #20c997;
  --page: #eef0f8;
  --surface: #ffffff;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Onest", "Inter", sans-serif;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 28%, rgba(120, 131, 235, 0.1), transparent 27%),
    radial-gradient(circle at 88% 78%, rgba(40, 207, 171, 0.1), transparent 28%),
    linear-gradient(145deg, #f0f1f9 0%, #eceff6 52%, #f4f8f7 100%);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  color: inherit;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
[tabindex]:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(101, 115, 221, 0.72);
  outline-offset: 2px;
}

.ui-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

button:active {
  transform: scale(0.96);
}

svg {
  display: block;
}

.container {
  width: min(1168px, calc(100% - 40px));
  margin-inline: auto;
  padding: 0;
}

.site-header {
  height: var(--header-height);
  background: rgba(244, 246, 250, 0.88);
  border-bottom: 1px solid rgba(215, 220, 231, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(48px, 4.6vw, 88px);
}

.header-inner {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font: 800 20px/1 var(--display);
  letter-spacing: -0.045em;
}

.logo-mark {
  width: 104px;
  height: 104px;
  display: block;
  object-fit: contain;
}

.logo-text {
  display: none;
}

.logo-text span {
  color: #2bc9b2;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.7vw, 28px);
  margin: 0;
  color: #3f4b61;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a,
.login,
.phone {
  transition: color 0.2s ease;
}

.main-nav__actions {
  display: none;
}

.main-nav a:hover,
.login:hover,
.phone:hover {
  color: var(--violet);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
}

.phone {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.login {
  border: 0;
  background: transparent;
  color: #3f4b61;
  font-weight: 500;
  font: inherit;
  cursor: pointer;
}

.trial-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(105deg, #7080ea 0%, #28cbb3 60%, #19bf72 100%);
  box-shadow: 0 12px 30px rgba(61, 179, 159, 0.2);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trial-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(61, 179, 159, 0.27);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(35, 47, 78, 0.08);
  cursor: pointer;
  position: relative;
}

.menu-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}

.menu-button span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}

.menu-button.is-open span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.feature-showcase {
  /*min-height: calc(100vh - var(--header-height));*/
  padding: 10px 0 44px;
  margin-bottom: clamp(24px, 4vh, 44px);
}

.hero-copy h1 {
  max-width: 600px;
  font: 800 27px/1.08 var(--display);
  letter-spacing: -0.035em;
}

.hero-copy p {
  margin-top: 9px;
  color: #596478;
  font-size: 11px;
  line-height: 1.55;
}

.feature-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.feature-tab {
  position: relative;
  min-width: 0;
  height: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(222, 227, 236, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 14px rgba(36, 51, 82, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.feature-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  opacity: 0;
}

.feature-tab::after {
  content: none;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.feature-tab:hover,
.feature-tab.is-active {
  z-index: 1;
  border-color: rgba(80, 197, 181, 0.56);
  background:
    radial-gradient(circle at 92% 10%, rgba(62, 207, 176, 0.1), transparent 34%),
    rgba(250, 252, 255, 0.92);
  box-shadow: 0 8px 20px rgba(52, 74, 108, 0.08);
}

.feature-tab:hover .feature-icon {
  transform: none;
}

.feature-tab.is-active .feature-icon {
  animation: none;
}

.feature-tab.is-active::before {
  opacity: 1;
}

.feature-tab.is-active::after {
  opacity: 0;
  animation: none;
}

.feature-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 12px rgba(88, 105, 218, 0.18);
  transition: none;
}

.feature-icon svg {
  width: 15px;
  height: 15px;
}

.feature-icon--violet {
  background: linear-gradient(145deg, #7b87ed, #606ddd);
}

.feature-icon--blue {
  background: linear-gradient(145deg, #6696ed, #4cc6d4);
}

.feature-icon--green {
  background: linear-gradient(145deg, #4ccbc2, #40d9a0);
}

.feature-tab:active {
  transform: none;
}

.feature-tab > span:last-child {
  min-width: 0;
}

.feature-tab strong,
.feature-tab small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-tab strong {
  font-size: 9px;
  line-height: 1.25;
}

.feature-tab small {
  margin-top: 2px;
  color: #9aa3b1;
  font-size: 6.8px;
  line-height: 1.25;
}

.workspace-card {
  min-width: 0;
  max-width: 100%;
  height: 358px;
  min-height: 0;
  display: grid;
  grid-template-columns: 46.5% 53.5%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(76, 195, 180, 0.52);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(41, 60, 92, 0.11);
}

.scenario {
  position: relative;
  min-height: 0;
  padding: 22px 24px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.scenario::before {
  position: absolute;
  top: -95px;
  left: -80px;
  width: 240px;
  height: 240px;
  content: none;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 127, 230, 0.12), transparent 68%);
}

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

.scenario-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 11px;
  color: #5365e2;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 255, 251, 0.94)) padding-box,
    linear-gradient(105deg, rgba(101, 116, 224, 0.7), rgba(54, 210, 183, 0.82)) border-box;
  box-shadow:
    0 8px 20px rgba(54, 210, 183, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 7.2px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.scenario h2 {
  max-width: 520px;
  margin-top: 16px;
  color: #142033;
  font: 800 19px/1.2 var(--display);
  letter-spacing: -0.03em;
}

.scenario > p {
  max-width: 540px;
  margin-top: 14px;
  color: #263248;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.72;
}

.scenario ul {
  display: grid;
  gap: 8px;
  max-width: 540px;
  margin-top: 16px;
  list-style: none;
}

.scenario li {
  position: relative;
  padding-left: 18px;
  color: #263248;
  font-size: 9.4px;
  font-weight: 400;
  line-height: 1.45;
}

.scenario li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58c3d4;
  box-shadow: 0 0 0 4px rgba(88, 195, 212, 0.1);
}

.scenario.is-changing > * {
  animation: scenario-in 0.5s cubic-bezier(.2,.8,.2,1) both;
}

.scenario.is-changing > *:nth-child(2) {
  animation-delay: 0.04s;
}

.scenario.is-changing > *:nth-child(3) {
  animation-delay: 0.08s;
}

.scenario.is-changing > *:nth-child(4) {
  animation-delay: 0.12s;
}

@keyframes scenario-in {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.product-preview {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  padding: 15px 17px 17px 0;
  isolation: isolate;
}

.product-preview::before {
  position: absolute;
  z-index: -1;
  inset: 8px 9px 8px -24px;
  content: none;
  pointer-events: none;
  border-radius: 22px;
  background: none;
  background-size: auto;
}

.app-view {
  display: none;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.app-view.is-active {
  display: block;
  animation: preview-in 0.65s cubic-bezier(.45,.05,.15,1) both;
}

@keyframes preview-in {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(28px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

.app-window {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  border: 1px solid rgba(211, 219, 232, 0.88);
  border-radius: 11px;
  background: #fff;
  box-shadow:
    0 18px 36px rgba(35, 53, 85, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-window button,
.app-window a,
.app-window input,
.app-window textarea,
.app-window select,
.app-window [tabindex] {
  cursor: default;
}

.app-view[data-preview="calls"] {
  --screen-glow: rgba(91, 112, 225, 0.16);
  --screen-tint: rgba(238, 245, 252, 0.97);
}

.app-view[data-preview="scripts"] {
  --screen-glow: rgba(131, 111, 226, 0.17);
  --screen-tint: rgba(246, 241, 252, 0.97);
}

.app-view[data-preview="reports"] {
  --screen-glow: rgba(65, 183, 221, 0.07);
  --screen-tint: rgba(244, 250, 250, 0.96);
}

.app-view[data-preview="tasks"] {
  --screen-glow: rgba(57, 204, 167, 0.17);
  --screen-tint: rgba(239, 249, 246, 0.97);
}

.app-view[data-preview="ai"] {
  --screen-glow: rgba(97, 111, 222, 0.17);
  --screen-tint: rgba(240, 244, 252, 0.97);
}

.app-nav-popover {
  position: absolute;
  z-index: 40;
  top: 42px;
  right: 10px;
  width: 150px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  background: rgba(248, 250, 255, 0.84);
  box-shadow: 0 14px 35px rgba(39, 54, 91, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.2,.8,.2,1);
}

.app-nav-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.app-nav-popover strong,
.app-nav-popover p {
  display: block;
}

.app-nav-popover strong {
  padding-right: 16px;
  color: #263248;
  font-size: 7px;
}

.app-nav-popover p {
  margin-top: 4px;
  color: #69758a;
  font-size: 5.5px;
  line-height: 1.45;
}

.app-nav-popover button {
  position: absolute;
  top: 6px;
  right: 7px;
  color: #7e889a;
  font-size: 10px;
}

.app-topbar {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 11px;
  border-bottom: 1px solid #edf0f5;
  background: rgba(247, 249, 253, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #8791a2;
  font-size: 6.5px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #263248;
  font-weight: 800;
}

.app-brand span {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 4px;
  background: linear-gradient(145deg, #8290ef, #6271de);
  font-size: 8px;
}

.app-topbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-topbar nav a {
  padding: 7px 0;
}

.app-topbar nav .is-current {
  color: #5f6fdb;
  border-bottom: 1px solid #6d79e1;
}

.app-window .app-topbar nav {
  display: none;
}

.call-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 8px;
  color: #31a77f;
  border-radius: 999px;
  background: #ebfaf4;
  font-weight: 600;
}

.call-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #37c894;
  box-shadow: 0 0 0 3px rgba(55, 200, 148, 0.12);
}

.call-live.is-ended {
  color: #778295;
  background: #f0f2f5;
}

.call-live.is-ended i {
  background: #98a1af;
  box-shadow: none;
}

.app-grid {
  height: calc(100% - 37px);
  display: grid;
  grid-template-columns: 28fr 45fr 27fr;
}

.client-column,
.history-column,
.stages-column {
  min-width: 0;
}

.client-column {
  padding: 10px;
  border-right: 1px solid #edf0f5;
}

.client-name strong,
.client-name span {
  display: block;
}

.client-name strong {
  font-size: 8px;
}

.client-name span {
  margin-top: 2px;
  color: #9aa3b0;
  font-size: 6px;
}

.call-button {
  width: 100%;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 7px;
  color: #fff;
  border-radius: 5px;
  background: linear-gradient(90deg, #6070dc, #727be6);
  font-size: 6.5px;
  font-weight: 700;
}

.call-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(91, 104, 218, 0.25);
}

.call-button.is-calling {
  background: linear-gradient(90deg, #6270dd, #747de6);
  animation: call-button-live 2s ease-in-out infinite;
}

.call-button.is-ended {
  color: #596679;
  background: #edf0f5;
  box-shadow: none;
}

@keyframes call-button-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 115, 221, 0); }
  50% { box-shadow: 0 0 0 4px rgba(102, 115, 221, 0.12); }
}

.call-button svg {
  width: 9px;
  height: 9px;
}

.phone-card {
  position: relative;
  margin-top: 8px;
  padding: 7px;
  border-radius: 6px;
  background: linear-gradient(100deg, #e9fbf3, #dff9ef);
  font-size: 5.5px;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.phone-card.is-hidden {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
}
.phone-card span,
.phone-card b {
  display: block;
}

.phone-card span {
  color: #30a77f;
  font-weight: 700;
}

.phone-card strong {
  position: absolute;
  top: 7px;
  right: 27px;
  color: #158b67;
  font-size: 7px;
}

.phone-card b {
  margin-top: 3px;
  font-size: 6.5px;
}

.phone-card button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #fa676c;
  font-size: 10px;
  line-height: 1;
}

.client-details {
  margin-top: 8px;
}

.client-details div {
  padding: 4px 0;
  border-bottom: 1px solid #f0f2f6;
}

.client-details dt {
  color: #a4acb8;
  font-size: 5px;
}

.client-details dd {
  margin-top: 1px;
  color: #465166;
  font-size: 5.8px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.client-details dd:hover,
.client-details dd:focus-visible {
  color: #5e6ed8;
}

.history-column {
  position: relative;
  padding: 7px 9px 47px;
  border-right: 1px solid #edf0f5;
}

.history-tabs {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef1f5;
}

.history-tabs button {
  color: #9ca5b2;
  font-size: 5.5px;
}

.history-tabs .is-active {
  color: #5d6dd6;
  font-weight: 700;
}

.history-tabs button {
  position: relative;
}

.history-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: #6673dc;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.history-tabs button.is-active::after {
  transform: scaleX(1);
}

.call-tab-content {
  display: none;
}

.call-tab-content.is-active {
  display: block;
  animation: content-slide-in 0.3s ease both;
}

@keyframes content-slide-in {
  from { opacity: 0; transform: translateX(5px); }
  to { opacity: 1; transform: translateX(0); }
}

.live-script-card {
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #dfe3f8;
  border-radius: 6px;
  background: #f5f7ff;
}

.live-script-card small,
.live-script-card strong {
  display: block;
}

.live-script-card small {
  color: #8d97a8;
  font-size: 4.7px;
}

.live-script-card strong {
  margin-top: 3px;
  font-size: 6px;
}

.live-script-card p {
  margin-top: 5px;
  color: #5e697c;
  font-size: 5px;
  line-height: 1.5;
}

.live-objection {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 7px;
  color: #5e697b;
  border: 1px solid #edf0f4;
  border-radius: 5px;
  text-align: left;
  font-size: 5px;
}

.live-objection b {
  color: #6371d7;
  font-size: 4.5px;
}

.live-objection.is-open {
  border-color: #d0d8fb;
  background: #f5f7ff;
}
.event {
  display: grid;
  grid-template-columns: 13px 1fr auto;
  gap: 5px;
  align-items: start;
  min-height: 42px;
  padding: 7px 4px;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.event:hover,
.event.is-selected {
  background: #f6f8ff;
  transform: translateX(2px);
}

.event.is-new {
  animation: event-enter 0.4s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes event-enter {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.event--live {
  margin-top: 5px;
  border: 0;
  border-radius: 6px;
  background: #e9faf3;
}

.event--live.is-ended {
  background: #f3f5f8;
}

.event-icon {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  color: #6180d9;
  border-radius: 50%;
  background: #edf1ff;
  font-size: 6px;
}

.event-icon--check {
  color: #2fb58a;
  background: #e8faf3;
}

.event div {
  min-width: 0;
}

.event small,
.event strong,
.event p {
  display: block;
}

.event small {
  color: #43b890;
  font-size: 4.8px;
}

.event strong {
  margin-top: 1px;
  font-size: 6px;
}

.event p {
  margin-top: 2px;
  overflow: hidden;
  color: #9ba4b1;
  font-size: 4.7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event time {
  color: #8e98a8;
  font-size: 5px;
}

.current-stage {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #9ca4b2;
  font-size: 5px;
}

.current-stage strong {
  color: #657187;
}

.comment-box {
  width: 100%;
  height: 25px;
  display: block;
  margin-top: 6px;
  padding: 7px;
  color: #4f5a6d;
  border: 1px solid #edf0f4;
  border-radius: 5px;
  background: #fff;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 4.8px;
  line-height: 1.35;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-box::placeholder {
  color: #b1b7c1;
}

.comment-box:focus {
  border-color: #aab5ef;
  box-shadow: 0 0 0 2px rgba(103, 116, 220, 0.09);
}

.comment-box.is-invalid {
  border-color: #e99098;
  animation: field-shake 0.35s ease;
}

@keyframes field-shake {
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}

.history-actions {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-actions button {
  padding: 5px 6px;
  color: #5f697a;
  border: 1px solid #e6eaf0;
  border-radius: 4px;
  font-size: 5px;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.history-actions button:hover {
  border-color: #cfd6f2;
  background: #f5f7ff;
  transform: translateY(-1px);
}

.history-actions .next-button {
  margin-left: auto;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #6672dc, #6978e1);
}

.stages-column {
  padding: 10px 9px;
}

.stages-column h3 {
  font-size: 7px;
}

.stages-column ol {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  list-style: none;
}

.stages-column li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a1a9b6;
  font-size: 5.5px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.stages-column li:hover {
  transform: translateX(2px);
  background: #f6f7fa;
}
.stages-column li span {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #f0f2f6;
  font-size: 5px;
  font-weight: 700;
}

.stages-column li.is-done {
  color: #667183;
}

.stages-column li.is-done span {
  color: #32aa80;
  background: #e8f9f2;
}

.stages-column li.is-active {
  color: #536174;
  font-weight: 700;
}

.stages-column li.is-active span {
  color: #fff;
  background: #6975de;
}

/* Shared product panels */
.panel-heading,
.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-heading small,
.report-heading small {
  display: block;
  color: #99a3b2;
  font-size: 5px;
}

.panel-heading h3,
.report-heading h3 {
  margin-top: 2px;
  font-size: 7px;
}

.progress-pill,
.date-filter,
.analysis-ready {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  color: #6170d7;
  border-radius: 999px;
  background: #eef1ff;
  font-size: 5px;
  font-weight: 700;
}

/* Scripts */
.scripts-reference {
  position: relative;
  height: calc(100% - 37px);
  overflow: hidden;
  perspective: 820px;
  perspective-origin: 58% 46%;
  transform-style: preserve-3d;
  background: #fff;
}

.scripts-surface {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 24fr 49fr 27fr;
  transform-style: preserve-3d;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: none;
}

.scripts-contact,
.scripts-table,
.scripts-empty-panel {
  min-width: 0;
}

.scripts-contact,
.scripts-table {
  border-right: 1px solid #edf0f5;
}

.scripts-contact {
  padding: 10px;
}

.scripts-contact .call-button {
  margin-top: 8px;
}

.scripts-table {
  position: relative;
  z-index: 6;
  padding: 7px 8px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: translateY(-3px);
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1), box-shadow 0.42s ease;
}

.scripts-table::after {
  content: none;
}

.scripts-table-tabs {
  display: flex;
  gap: 13px;
  padding-bottom: 5px;
  border-bottom: 1px solid #edf0f5;
}

.scripts-table-tabs button {
  padding: 2px 0;
  color: #9ba4b2;
  font-size: 5px;
}

.scripts-table-tabs button.is-active {
  color: #6673d9;
  border-bottom: 1px solid #6673d9;
  font-weight: 700;
}

.scripts-table-head {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}

.add-script-button {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 7px;
  color: #6170d7;
  border: 1px solid #dce2f7;
  border-radius: 5px;
  background: #fff;
  font-size: 4.2px;
  font-weight: 700;
}

.add-script-button .ui-icon {
  width: 7px;
  height: 7px;
}

.add-script-button:hover {
  background: #f2f4ff;
  box-shadow: 0 4px 10px rgba(92, 105, 204, 0.12);
}

.script-table-content {
  display: none;
}

.script-table-content.is-active {
  display: block;
  animation: content-slide-in 0.28s ease both;
}

.scripts-table-head small {
  color: #a1a9b5;
  font-size: 4.5px;
}

.scripts-table-head h3 {
  margin-top: 2px;
  font-size: 7px;
}

.objection-tags {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.objection-tags button {
  min-width: 0;
  padding: 4px 5px;
  overflow: hidden;
  color: #697486;
  border: 1px solid #e9ecf1;
  border-radius: 4px;
  background: #fff;
  font-size: 4.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.objection-tags button:hover,
.objection-tags button.is-active {
  color: #5c6bd2;
  border-color: #cfd7f8;
  background: #f4f6ff;
}

.script-history-row {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 7px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.script-history-row:hover,
.script-history-row.is-selected {
  background: #f1f4ff;
  transform: translateX(2px);
}

.script-history-row strong,
.script-history-row p {
  display: block;
}

.script-history-row strong {
  font-size: 5.5px;
}

.script-history-row p {
  margin-top: 2px;
  color: #9aa3b1;
  font-size: 4.6px;
}
.objection-row {
  margin-top: 6px;
  padding: 7px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.objection-row--active {
  border-color: #d8e5f3;
  background: #f1f8fd;
  box-shadow: 0 3px 9px rgba(56, 96, 131, 0.05);
}

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

.objection-row__head strong {
  font-size: 5.5px;
}

.objection-row__head button {
  color: #6170d7;
  font-size: 4.3px;
}

.objection-row small {
  display: block;
  margin-top: 5px;
  color: #7080db;
  font-size: 4.4px;
  font-weight: 700;
}

.objection-row p {
  margin-top: 3px;
  color: #5e697b;
  font-size: 5px;
  line-height: 1.45;
}

.scripts-empty-panel {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: #fff;
  opacity: 1;
  filter: none;
}

.scripts-empty-panel span {
  height: 44px;
  display: block;
  margin-top: 8px;
  border: 1px solid #f0f2f6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.script-glass-modal {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 16px;
  width: 166px;
  padding: 10px;
  border: 1px solid rgba(196, 230, 220, 0.92);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(70, 207, 177, 0.09), transparent 36%),
    linear-gradient(145deg, #ffffff, #f4fffb);
  box-shadow:
    0 14px 28px rgba(45, 92, 85, 0.12),
    0 4px 12px rgba(65, 99, 93, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, 2px) scale(0.94);
  transform-origin: top right;
  transition: opacity 0.3s ease, transform 0.38s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}

.script-glass-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 2px) scale(1);
}

.script-glass-modal.is-submitting {
  animation: modal-success 0.45s ease;
}

@keyframes modal-success {
  0%, 100% { transform: translate(0, 2px) scale(1); }
  50% { transform: translate(0, 0) scale(1.02); box-shadow: 0 20px 48px rgba(57, 158, 135, 0.2); }
}
.script-glass-modal::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 16% -4%, rgba(255, 255, 255, 0.92), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(134, 149, 244, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(130, 143, 238, 0.05), rgba(76, 209, 183, 0.035));
  pointer-events: none;
}

.script-glass-modal::after {
  content: none;
  position: absolute;
  top: 1px;
  right: 14px;
  left: 14px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98), transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.script-glass-modal h3 {
  padding-right: 15px;
  color: #263248;
  font-size: 8px;
}

.script-modal-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #7f8999;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(215, 219, 230, 0.58);
  font-size: 8px;
}

.script-glass-modal > label {
  display: block;
  margin-top: 7px;
}

.script-glass-modal > label > span {
  display: block;
  margin-bottom: 3px;
  color: #4d5a70;
  font-size: 5.2px;
  font-weight: 800;
}

.script-glass-modal input[type="text"],
.script-glass-modal textarea {
  width: 100%;
  display: block;
  color: #263248;
  border: 1px solid rgba(190, 202, 222, 0.95);
  border-radius: 5px;
  outline: none;
  background: #fff;
  box-shadow:
    inset 0 1px 2px rgba(38, 50, 78, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.8);
  font: 600 5.5px/1.4 var(--font);
}

.script-glass-modal input[type="text"] {
  height: 24px;
  padding: 5px 6px;
}

.script-glass-modal textarea {
  height: 48px;
  padding: 6px;
  resize: none;
}

.script-access {
  margin-top: 7px;
}

.script-access label {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 4px;
  padding: 5px;
  border: 1px solid rgba(198, 209, 227, 0.92);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.script-access label.is-selected {
  border-color: rgba(82, 197, 173, 0.55);
  background: #f5fffb;
}

.script-access input {
  width: 7px;
  height: 7px;
  margin-top: 1px;
  accent-color: #6875df;
}

.script-access strong,
.script-access small {
  display: block;
}

.script-access strong {
  color: #344158;
  font-size: 5.4px;
}

.script-access small {
  margin-top: 1px;
  color: #59677d;
  font-size: 4.5px;
}

.script-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 7px;
}

.script-modal-actions button {
  padding: 4px 6px;
  color: #59667b;
  border-radius: 5px;
  font-size: 4.6px;
}

.script-modal-actions button:last-child {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #fff;
  background: linear-gradient(100deg, #5f70dc, #41c4aa);
  box-shadow: 0 4px 10px rgba(64, 173, 151, 0.22);
}

.script-modal-actions button:last-child .ui-icon {
  width: 7px;
  height: 7px;
}

.script-layout,
.tasks-layout,
.ai-layout {
  height: calc(100% - 37px);
  display: grid;
}

.script-layout {
  grid-template-columns: 27fr 46fr 27fr;
}

.script-client,
.script-main,
.objection-panel,
.task-filters,
.task-list,
.task-detail,
.ai-score-panel,
.transcript-panel,
.ai-insights {
  min-width: 0;
  padding: 10px;
}

.script-client,
.script-main,
.task-filters,
.task-list,
.ai-score-panel,
.transcript-panel {
  border-right: 1px solid #edf0f5;
}

.script-call-card {
  position: relative;
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #e9faf3;
}

.script-call-card small,
.script-call-card strong {
  display: block;
}

.script-call-card small {
  color: #2cab82;
  font-size: 5px;
}

.script-call-card strong {
  margin-top: 3px;
  font-size: 6.5px;
}

.script-call-card span {
  position: absolute;
  top: 10px;
  right: 8px;
  color: #15956e;
  font-size: 7px;
  font-weight: 700;
}

.script-client h4,
.script-questions h4,
.ai-score-panel h4 {
  margin-top: 13px;
  font-size: 6px;
}

.mini-steps {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  list-style: none;
}

.mini-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #929baa;
  font-size: 5.5px;
}

.mini-steps span {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #f0f2f6;
  font-size: 5px;
}

.mini-steps .is-done {
  color: #536174;
}

.mini-steps .is-done span {
  color: #2dad83;
  background: #e8faf3;
}

.mini-steps .is-active {
  color: #35425a;
  font-weight: 700;
}

.mini-steps .is-active span {
  color: #fff;
  background: #6875df;
}

.script-main {
  position: relative;
  padding-bottom: 42px;
}

.script-progress {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #eef0f5;
}

.script-progress span {
  width: 58%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #6573de, #43c9b5);
}

.script-prompt {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dfe3fb;
  border-radius: 7px;
  background: #f6f7ff;
}

.script-prompt small,
.answer-card small {
  color: #6573d8;
  font-size: 5px;
  font-weight: 700;
}

.script-prompt p,
.answer-card p,
.tip-card p {
  margin-top: 5px;
  color: #445166;
  font-size: 6px;
  line-height: 1.55;
}

.script-questions {
  margin-top: 10px;
}

.script-questions button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 6px;
  color: #596578;
  border: 1px solid #edf0f5;
  border-radius: 5px;
  text-align: left;
  font-size: 5.5px;
}

.script-questions button span {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #6170d7;
  border-radius: 50%;
  background: #eef1ff;
  font-size: 5px;
  font-weight: 700;
}

.script-footer {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  justify-content: space-between;
}

.script-footer button {
  padding: 5px 7px;
  color: #667184;
  border: 1px solid #e6eaf0;
  border-radius: 4px;
  font-size: 5px;
}

.script-footer .next-button {
  color: #fff;
  border-color: transparent;
  background: #6874df;
}

.objection-chip {
  width: 100%;
  margin-top: 6px;
  padding: 6px 7px;
  color: #687386;
  border: 1px solid #edf0f5;
  border-radius: 5px;
  text-align: left;
  font-size: 5.5px;
}

.objection-chip.is-active {
  color: #5667ce;
  border-color: #cdd4fa;
  background: #f4f6ff;
  font-weight: 700;
}

.answer-card,
.tip-card {
  margin-top: 10px;
  padding: 8px;
  border-radius: 6px;
}

.answer-card {
  background: #f0fdf8;
}

.tip-card {
  border: 1px solid #f0e5bd;
  background: #fffaf0;
}

.tip-card strong {
  color: #a77b13;
  font-size: 5px;
}

/* Reports */
.date-filter {
  margin-left: auto;
  color: #647084;
  background: #f0f2f6;
}

.report-dashboard {
  height: calc(100% - 37px);
  padding: 10px;
  background: #fbfcfe;
}

.report-heading button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  color: #6170d7;
  border: 1px solid #dfe3f7;
  border-radius: 5px;
  background: #fff;
  font-size: 5px;
}

.report-heading button:hover {
  background: #f3f5ff;
  box-shadow: 0 4px 10px rgba(89, 103, 201, 0.1);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.metric-grid article {
  position: relative;
  padding: 8px;
  border: 1px solid #e8ebf1;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-grid article:hover,
.metric-grid article.is-selected {
  transform: translateY(-2px);
  border-color: #cbd3f6;
  background: #f9faff;
  box-shadow: 0 7px 16px rgba(40, 54, 86, 0.08);
}
.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  color: #909aa9;
  font-size: 5px;
}

.metric-grid strong {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: -0.04em;
}

.metric-grid em {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: #20a579;
  font-size: 5px;
  font-style: normal;
  font-weight: 700;
}

.report-content {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 7px;
  height: 190px;
  margin-top: 7px;
}

.chart-panel,
.managers-panel {
  padding: 9px;
  border: 1px solid #e8ebf1;
  border-radius: 7px;
  background: #fff;
}

.chart-legend {
  color: #8993a3;
  font-size: 4.8px;
}

.chart-legend i {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin: 0 2px 0 6px;
  border-radius: 50%;
  background: #6875df;
}

.chart-legend i:last-of-type {
  background: #3ecab0;
}

.chart-bars {
  height: 135px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 7px 15px;
  border-bottom: 1px solid #edf0f4;
  background: repeating-linear-gradient(to bottom, #fff 0 26px, #f0f2f6 27px);
}

.chart-bars div {
  position: relative;
  width: 22px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.chart-bars span,
.chart-bars b {
  width: 7px;
  height: var(--h);
  display: block;
  border-radius: 3px 3px 1px 1px;
  background: #6875df;
  transform: scaleY(0);
  transform-origin: bottom;
}

.chart-bars b {
  background: #43cbb0;
}

.app-view.is-active .chart-bars span,
.app-view.is-active .chart-bars b,
.chart-bars.is-restarting span,
.chart-bars.is-restarting b {
  animation: chart-grow 0.75s cubic-bezier(.2,.8,.2,1) forwards;
}

.chart-bars div:nth-child(2) span,
.chart-bars div:nth-child(2) b { animation-delay: 0.06s !important; }
.chart-bars div:nth-child(3) span,
.chart-bars div:nth-child(3) b { animation-delay: 0.12s !important; }
.chart-bars div:nth-child(4) span,
.chart-bars div:nth-child(4) b { animation-delay: 0.18s !important; }
.chart-bars div:nth-child(5) span,
.chart-bars div:nth-child(5) b { animation-delay: 0.24s !important; }
.chart-bars div:nth-child(6) span,
.chart-bars div:nth-child(6) b { animation-delay: 0.3s !important; }
.chart-bars div:nth-child(7) span,
.chart-bars div:nth-child(7) b { animation-delay: 0.36s !important; }

@keyframes chart-grow {
  to { transform: scaleY(1); }
}

.chart-bars small {
  position: absolute;
  bottom: -13px;
  color: #929cab;
  font-size: 4.7px;
}

.manager-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid #eff1f5;
}

.manager-avatar {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(145deg, #7885e7, #4cc9bc);
  font-size: 5.5px;
  font-weight: 700;
}

.manager-row strong,
.manager-row small {
  display: block;
}

.manager-row strong {
  font-size: 5.5px;
}

.manager-row small {
  margin-top: 2px;
  color: #98a1af;
  font-size: 4.5px;
}

.manager-row > b {
  color: #27aa81;
  font-size: 7px;
}

.manager-row {
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.manager-row:hover,
.manager-row.is-selected {
  background: #f4f6ff;
  transform: translateX(2px);
}

/* KPI workspace */
.kpi-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 7px;
}

.kpi-overview article {
  position: relative;
  padding: 6px 8px;
  border: 1px solid #e8ebf1;
  border-radius: 6px;
  background: #fff;
}

.kpi-overview span,
.kpi-overview strong,
.kpi-overview em {
  display: block;
}

.kpi-overview span {
  color: #929cab;
  font-size: 4.5px;
}

.kpi-overview strong {
  margin-top: 2px;
  font-size: 10px;
}

.kpi-overview em {
  position: absolute;
  right: 7px;
  bottom: 7px;
  color: #8c96a6;
  font-size: 4.3px;
  font-style: normal;
}

.kpi-overview em.is-positive {
  color: #22a87d;
}

.kpi-workspace {
  height: 270px;
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 8px;
  margin-top: 6px;
}

.kpi-workspace.is-refreshing {
  animation: report-refresh 0.42s ease;
}

@keyframes report-refresh {
  from { opacity: 0.6; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.kpi-create-card,
.kpi-managers-panel,
.report-drilldown {
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #e6eaf0;
  border-radius: 7px;
  background: #fff;
}

.kpi-create-card {
  position: relative;
  border-color: rgba(103, 91, 219, 0.55);
  background:
    radial-gradient(circle at 100% 0, rgba(104, 117, 223, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.9));
  box-shadow:
    0 0 0 1px rgba(103, 91, 219, 0.12),
    0 14px 32px rgba(64, 55, 123, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.kpi-create-card::before {
  position: absolute;
  inset: 0;
  content: none;
  pointer-events: none;
  background: none;
  background-size: auto;
  opacity: 0;
}

.kpi-card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-card-head small,
.kpi-card-head h3 {
  display: block;
}

.kpi-card-head small {
  color: #7783de;
  font-size: 4px;
}

.kpi-card-head h3 {
  margin-top: 2px;
  font-size: 7px;
}

.kpi-card-head > span {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #8a94a7;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(213, 219, 233, 0.78);
  font-size: 8px;
}

.kpi-template-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.kpi-template-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  padding: 3px 5px;
  color: #627087;
  border: 1px solid rgba(218, 224, 237, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  line-height: 1.15;
}

.kpi-create-card > label,
.kpi-form-row label {
  position: relative;
  display: block;
  margin-top: 4px;
  color: #7b8596;
  font-size: 4.2px;
}

.kpi-create-card input,
.kpi-create-card select {
  width: 100%;
  height: 21px;
  display: block;
  margin-top: 3px;
  padding: 0 6px;
  color: #3f4b60;
  border: 1px solid #e5e9f0;
  border-radius: 4px;
  background: rgba(251, 252, 255, 0.92);
  outline: none;
  font: inherit;
  font-size: 4.6px;
}

.kpi-create-card input:focus,
.kpi-create-card select:focus {
  border-color: #aab5ef;
  box-shadow: 0 0 0 2px rgba(103, 116, 220, 0.08);
}

.kpi-form-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5px;
}

.kpi-color-dots {
  position: relative;
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.kpi-color-dots span {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: #6875df;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(214, 220, 233, 0.82);
}

.kpi-color-dots span:nth-child(2) { background: #43c9b1; }
.kpi-color-dots span:nth-child(3) { background: #f0a842; }
.kpi-color-dots span:nth-child(4) { background: #ef5e7c; }
.kpi-color-dots span:nth-child(5) { background: #53a9df; }

.kpi-color-dots span.is-active {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(104, 117, 223, 0.58);
}

.kpi-rule-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 5px;
}

.kpi-rule-grid span {
  min-width: 0;
  display: block;
  padding: 4px;
  border: 1px solid rgba(219, 225, 237, 0.9);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.kpi-rule-grid span.is-active {
  border-color: rgba(103, 91, 219, 0.58);
  background: rgba(244, 245, 255, 0.92);
}

.kpi-rule-grid strong,
.kpi-rule-grid small {
  display: block;
}

.kpi-rule-grid small {
  display: none;
}

.kpi-plan-input {
  position: relative;
}

.kpi-plan-input input {
  padding-right: 42px;
}

.kpi-plan-input span {
  position: absolute;
  top: 8px;
  right: 6px;
  color: #929cab;
  font-size: 4px;
}

.kpi-create-card .kpi-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px;
  border-radius: 4px;
  background: #f5f7fb;
  cursor: pointer;
}

.kpi-toggle input {
  position: absolute;
  opacity: 0;
}

.kpi-toggle > i {
  position: relative;
  width: 17px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #d9dee8;
}

.kpi-toggle > i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.kpi-toggle input:checked + i {
  background: #49c5a8;
}

.kpi-toggle input:checked + i::after {
  transform: translateX(8px);
}

.kpi-toggle strong,
.kpi-toggle small {
  display: block;
}

.kpi-toggle strong {
  color: #4d596c;
  font-size: 4.1px;
}

.kpi-toggle small {
  margin-top: 1px;
  color: #99a2af;
  font-size: 3.6px;
}

.kpi-create-card > button {
  width: 100%;
  margin-top: 4px;
  padding: 4px;
  color: #fff;
  border-radius: 4px;
  background: linear-gradient(90deg, #6875df, #43c9b1);
  font-size: 4.8px;
  font-weight: 700;
}

.kpi-create-card.is-created {
  animation: kpi-created 0.48s ease;
}

@keyframes kpi-created {
  50% { border-color: #65cdb4; box-shadow: 0 0 0 3px rgba(67, 201, 177, 0.12); }
}

.kpi-period {
  padding: 3px 5px;
  color: #6170d7;
  border-radius: 99px;
  background: #f0f2ff;
  font-size: 4px;
}

.manager-kpi-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.manager-kpi-row:hover,
.manager-kpi-row.is-selected {
  background: #f3f5ff;
  transform: translateX(2px);
}

.manager-kpi-row .manager-avatar {
  width: 19px;
  height: 19px;
}

.manager-kpi-row strong,
.manager-kpi-row small {
  display: block;
}

.manager-kpi-row strong {
  font-size: 4.8px;
}

.manager-kpi-row small {
  margin-top: 1px;
  color: #98a1af;
  font-size: 3.8px;
}

.manager-kpi-row div > i {
  height: 3px;
  display: block;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9edf3;
}

.manager-kpi-row div > i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c78df, #43c9ae);
  transform-origin: left;
  animation: score-grow 0.75s cubic-bezier(.2,.8,.2,1) both;
}

.manager-kpi-row > em {
  color: #22a87d;
  font-size: 5.5px;
  font-style: normal;
  font-weight: 700;
}

.report-tabs {
  display: flex;
  gap: 3px;
  padding: 2px;
  border-radius: 5px;
  background: #f1f3f7;
}

.report-tabs button {
  flex: 1;
  padding: 4px;
  color: #8892a3;
  border-radius: 4px;
  font-size: 4.3px;
}

.report-tabs button.is-active {
  color: #5667ce;
  background: #fff;
  box-shadow: 0 2px 7px rgba(43, 56, 88, 0.08);
  font-weight: 700;
}

.report-tab-panel {
  display: none;
}

.report-tab-panel.is-active {
  display: block;
  animation: report-tab-in 0.28s ease both;
}

@keyframes report-tab-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.report-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  background: linear-gradient(100deg, #f0f2ff, #edfaf6);
}

.report-focus small {
  color: #677286;
  font-size: 4.2px;
}

.report-focus strong {
  color: #5364ca;
  font-size: 5px;
}

.call-record {
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 7px 1px;
  border-bottom: 1px solid #edf0f4;
}

.call-record button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #6471d8;
  border-radius: 50%;
  background: #eef1ff;
  font-size: 5px;
}

.call-record button.is-playing {
  color: #fff;
  background: linear-gradient(145deg, #6875df, #43c9b0);
  animation: record-pulse 1.1s ease-in-out infinite;
}

@keyframes record-pulse {
  50% { box-shadow: 0 0 0 3px rgba(84, 111, 215, 0.11); }
}

.call-record strong,
.call-record small {
  display: block;
}

.call-record strong {
  font-size: 4.8px;
}

.call-record small,
.call-record em {
  margin-top: 2px;
  color: #929cab;
  font-size: 3.8px;
  font-style: normal;
}

.deal-stage {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  font-size: 4.3px;
}

.deal-stage > span {
  color: #687386;
}

.deal-stage > i {
  height: 7px;
  overflow: hidden;
  border-radius: 2px;
  background: #eef1f5;
}

.deal-stage > i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #6875df, #43c9b1);
  animation: funnel-grow 0.65s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes funnel-grow {
  from { transform: scaleX(0); transform-origin: left; }
}

.deal-stage > strong {
  color: #4d596d;
  text-align: right;
}

.stage-conversion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 7px;
  border-radius: 5px;
  background: #effaf6;
  font-size: 4.5px;
}

.stage-conversion strong {
  color: #1ca47a;
  font-size: 7px;
}

/* Tasks */
.new-task-button {
  margin-left: auto;
  padding: 5px 8px;
  color: #fff;
  border-radius: 5px;
  background: #6875df;
  font-size: 5px;
}

.new-task-button,
.call-task-button,
.complete-task-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.missed-call-automation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 7px 0 8px;
  padding: 6px;
  border: 1px solid #dceee9;
  border-radius: 6px;
  background: linear-gradient(105deg, #f4f7ff, #effbf7);
}

.missed-call-automation .automation-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  column-gap: 5px;
}

.missed-call-automation .automation-step > div {
  min-width: 0;
}

.missed-call-automation .automation-step > span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}

.automation-phone {
  color: #fff;
  background: #6875df;
}

.automation-phone .ui-icon {
  width: 9px;
  height: 9px;
}

.automation-check {
  color: #fff;
  background: #43c8aa;
  font-size: 7px;
  font-weight: 800;
}

.missed-call-automation > i {
  justify-self: center;
  color: #6e7b91;
  font-size: 7px;
  font-style: normal;
  line-height: 1;
  transform: rotate(90deg);
}

.missed-call-automation strong,
.missed-call-automation small {
  display: block;
}

.missed-call-automation strong {
  overflow: hidden;
  font-size: 8px !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.missed-call-automation small {
  margin-top: 1px;
  color: #929cab;
  font-size: 7px !important;
  line-height: 1.25;
}

.tasks-layout {
  grid-template-columns: 24fr 46fr 30fr;
}

.task-filters h3,
.task-detail > h3 {
  font-size: 8px;
}

.task-filters > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  padding: 6px;
  color: #697487;
  border-radius: 5px;
  font-size: 5.5px;
}

.task-filters > button.is-active {
  color: #5667ce;
  background: #f0f2ff;
  font-weight: 700;
}

.task-filters b {
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  color: #35425a;
  border-radius: 999px;
  background: rgba(226, 233, 245, 0.85);
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
}

.task-filters b.is-danger {
  color: #fff;
  background: #e85e6b;
}

.task-filters > button.is-active b {
  color: #fff;
  background: #6573df;
}

.task-filters h4 {
  margin: 15px 6px 7px;
  color: #9ba4b1;
  font-size: 5px;
  text-transform: uppercase;
}

.task-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  color: #687386;
  border-radius: 5px;
  font-size: 5px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.task-filters label:hover,
.task-filters label.is-active {
  color: #5667ce;
  background: #f0f2ff;
  transform: translateX(2px);
}

.task-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #6975df;
}

.task-dot--green { background: #3cc8a6; }
.task-dot--blue { background: #54a9dc; }

.task-item {
  display: grid;
  grid-template-columns: 15px 1fr auto;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.25s ease;
}

.task-item:hover {
  transform: translateX(2px);
  border-color: #d9def1;
}

.task-item.is-selected {
  border-color: #ccd4f8;
  background: #f7f8ff;
}

.task-item.is-complete {
  opacity: 0.55;
  background: #f7faf8;
}

.task-item.is-complete strong {
  text-decoration: line-through;
}

.task-item.is-new {
  animation: task-enter 0.45s cubic-bezier(.2,.8,.2,1) both;
}

.task-item.is-filtered-out {
  display: none;
}

@keyframes task-enter {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.task-item > button {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  font-size: 6px;
}

.task-item.is-selected > button {
  border-color: #6573dd;
  background: #6573dd;
}

.task-item strong,
.task-item p {
  display: block;
}

.task-item strong {
  font-size: 5.5px;
}

.task-item p {
  margin-top: 2px;
  color: #9aa3b1;
  font-size: 4.7px;
}

.task-item time {
  color: #667184;
  font-size: 5px;
}

.task-detail .scenario-tag {
  min-height: auto;
  padding: 3px 6px;
  font-size: 4.5px;
}

.task-detail > h3 {
  margin-top: 9px;
}

.task-person {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf0f4;
}

.task-person strong,
.task-person small {
  display: block;
}

.task-person strong {
  font-size: 6px;
}

.task-person small {
  margin-top: 2px;
  color: #969fad;
  font-size: 5px;
}

.task-detail dl {
  margin-top: 6px;
}

.task-detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 5px;
}

.task-detail dt {
  color: #99a2af;
}

.task-detail dd {
  color: #536075;
  text-align: right;
}

.task-note {
  margin-top: 9px;
  padding: 7px;
  color: #697487;
  border-radius: 5px;
  background: #f5f7fa;
  font-size: 5px;
  line-height: 1.5;
}

.call-task-button,
.complete-task-button {
  width: 100%;
  margin-top: 7px;
  padding: 6px;
  border-radius: 5px;
  font-size: 5px;
  font-weight: 700;
}

.call-task-button {
  color: #fff;
  background: linear-gradient(90deg, #6875df, #42c7b2);
}

.complete-task-button {
  color: #5f6dd3;
  border: 1px solid #dfe3f7;
}

.task-create-modal {
  position: absolute;
  z-index: 35;
  top: 48px;
  right: 12px;
  width: 205px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 128, 230, 0.18), transparent 37%),
    rgba(248, 250, 255, 0.86);
  box-shadow: 0 18px 42px rgba(42, 55, 87, 0.22);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.94);
  transform-origin: top right;
  transition: opacity 0.24s ease, transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.task-create-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.task-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.task-modal-head small,
.task-modal-head h3 {
  display: block;
}

.task-modal-head small {
  color: #6977dc;
  font-size: 4px;
}

.task-modal-head h3 {
  margin-top: 2px;
  font-size: 7px;
}

.task-modal-head > button {
  width: 15px;
  height: 15px;
  color: #8490a2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.task-create-modal > label,
.task-modal-row label {
  display: block;
  margin-top: 7px;
  color: #7d8797;
  font-size: 4.2px;
}

.task-create-modal input,
.task-create-modal textarea {
  width: 100%;
  display: block;
  margin-top: 3px;
  padding: 6px;
  color: #435066;
  border: 1px solid rgba(222, 227, 237, 0.9);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.74);
  outline: none;
  font: inherit;
  font-size: 4.7px;
}

.task-create-modal input {
  height: 24px;
}

.task-create-modal textarea {
  height: 42px;
  resize: none;
}

.task-create-modal input:focus,
.task-create-modal textarea:focus {
  border-color: #aab5ef;
  box-shadow: 0 0 0 2px rgba(103, 116, 220, 0.08);
}

.task-modal-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 6px;
}

.task-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 8px;
}

.task-modal-footer button {
  padding: 6px 8px;
  color: #6d788b;
  border-radius: 5px;
  font-size: 4.5px;
}

.task-modal-footer button:last-child {
  color: #fff;
  background: linear-gradient(90deg, #6875df, #43c9b1);
  font-weight: 700;
}

/* AI analysis */
.analysis-ready {
  gap: 4px;
  margin-left: auto;
  color: #259b75;
  background: #eaf9f3;
}

.analysis-ready i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #30bd8e;
}

.ai-layout {
  grid-template-columns: 25fr 48fr 27fr;
}

.ai-score-panel > small {
  color: #6573d8;
  font-size: 5px;
  font-weight: 700;
}

.ai-score-panel > h3 {
  margin-top: 4px;
  font-size: 8px;
}

.ai-score-panel > p {
  margin-top: 2px;
  color: #9aa3b1;
  font-size: 5px;
}

.score-ring {
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
  border: 7px solid #4cc6ad;
  border-right-color: #e9edf3;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.score-ring strong,
.score-ring span {
  transform: rotate(35deg);
}

.score-ring strong {
  font-size: 18px;
  line-height: 1;
}

.score-ring span {
  margin-top: 2px;
  color: #929cab;
  font-size: 5px;
}

.score-line {
  display: grid;
  grid-template-columns: 44px 1fr 23px;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  border-radius: 5px;
  font-size: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.score-line:hover,
.score-line.is-selected {
  background: #f1f4ff;
  transform: translateX(2px);
}

.score-line > span {
  color: #7a8597;
}

.score-line > i {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0f4;
}

.score-line > i b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #6875df, #42c9b0);
  transform: scaleX(0);
  transform-origin: left;
}

.app-view.is-active .score-line > i b {
  animation: score-grow 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes score-grow {
  to { transform: scaleX(1); }
}

.score-line > strong {
  text-align: right;
}

.play-button {
  width: 20px;
  height: 20px;
  display: inline-grid;
  align-items: center;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #fff;
  border-radius: 7px;
  background: #6875df;
  box-shadow: 0 5px 12px rgba(104, 117, 223, 0.22);
}

.voice-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  color: #6572d5;
  border: 1px solid #dfe3f8;
  border-radius: 999px;
  background: #f5f7ff;
  font-size: 4.5px;
  font-weight: 700;
}

.voice-badge .ui-icon {
  width: 8px;
  height: 8px;
}

.play-button .ui-icon {
  width: 8px;
  height: 8px;
}

.audio-time {
  min-width: 22px;
  color: #263248;
  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.voice-controls.is-speaking .voice-badge {
  color: #16976f;
  border-color: #caeee2;
  background: #edfaf5;
  animation: voice-badge-pulse 1.4s ease-in-out infinite;
}

@keyframes voice-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 190, 145, 0); }
  50% { box-shadow: 0 0 0 3px rgba(48, 190, 145, 0.1); }
}

.play-button .pause-icon {
  display: none;
}

.play-button.is-playing .play-icon {
  display: none;
}

.play-button.is-playing .pause-icon {
  display: block;
}

.audio-wave {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(100deg, #f7f9ff 0%, #eefbf7 100%);
}

.audio-wave::before {
  content: "";
  position: absolute;
  right: 8px;
  left: 8px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(104, 117, 223, 0.38), rgba(70, 200, 175, 0.26), rgba(70, 200, 175, 0.4));
  box-shadow: 0 0 8px rgba(70, 200, 175, 0.12);
  transform: translateY(-50%);
}

.audio-wave::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 88px;
  top: 50%;
  height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 13px, rgba(70, 200, 175, 0.18) 13px 14px, transparent 14px 22px);
  opacity: 0.75;
  transform: translateY(-50%);
}

.audio-wave i {
  position: relative;
  z-index: 2;
  width: 3px;
  height: 12px;
  display: block;
  border-radius: 99px;
  background: #7783e2;
  transform-origin: center;
}

.audio-wave i:nth-child(3n) { height: 22px; }
.audio-wave i:nth-child(4n) { height: 17px; background: #46c8af; }
.audio-wave i:nth-child(5n) { height: 8px; }

.audio-wave.is-playing i {
  animation: audio-pulse 0.65s ease-in-out infinite alternate;
}

.audio-wave.is-playing i:nth-child(2n) { animation-delay: -0.18s; }
.audio-wave.is-playing i:nth-child(3n) { animation-delay: -0.34s; }
.audio-wave.is-playing i:nth-child(4n) { animation-delay: -0.48s; }

.audio-timeline {
  display: flex;
  justify-content: space-between;
  margin: 5px 4px 0;
  color: #8894aa;
  font-size: 4.4px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@keyframes audio-pulse {
  from { transform: scaleY(0.45); opacity: 0.55; }
  to { transform: scaleY(1.15); opacity: 1; }
}

.phrase {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 6px;
  margin-top: 7px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.phrase:hover {
  background: #f5f7ff;
  transform: translateX(2px);
}

.phrase > span {
  color: #9da5b2;
  font-size: 4.8px;
}

.phrase strong {
  color: #5f6fd7;
  font-size: 5px;
}

.phrase--client strong {
  color: #24a67b;
}

.phrase p {
  margin-top: 2px;
  color: #536075;
  font-size: 5.2px;
  line-height: 1.4;
}

.phrase.is-highlighted {
  background: #f0fbf7;
}

.phrase.is-current {
  background: #eef1ff;
  box-shadow: inset 2px 0 0 #6975df;
}

.phrase em {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 5px;
  color: #229e76;
  border-radius: 99px;
  background: #daf6eb;
  font-size: 4px;
  font-style: normal;
}

.insight-card {
  margin-top: 5px;
  padding: 6px;
  border: 1px solid #e8ebf1;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover,
.insight-card.is-expanded {
  transform: translateY(-1px);
  box-shadow: 0 7px 15px rgba(42, 57, 88, 0.08);
}

.insight-card.is-expanded p {
  color: #3f4c62;
  font-weight: 500;
}

.insight-card strong {
  font-size: 5.5px;
}

.insight-card p {
  margin-top: 4px;
  color: #697487;
  font-size: 5px;
  line-height: 1.45;
}

.insight-card span {
  display: inline-block;
  margin-top: 5px;
  color: #6573d8;
  font-size: 4.5px;
  font-weight: 700;
}

.insight-card--good {
  border-color: #d8f1e8;
  background: #f2fcf8;
}

.insight-card--warn {
  border-color: #f1e4c7;
  background: #fffaf1;
}

.ai-result {
  margin-top: 6px;
  padding: 7px;
  border-radius: 6px;
  background: linear-gradient(100deg, #edf0ff, #e9faf4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-result:hover,
.ai-result.is-confirmed {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(47, 73, 109, 0.1);
}

.ai-result.is-confirmed {
  outline: 1px solid #8fd9c2;
}

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

.ai-result span {
  color: #929cab;
  font-size: 4.5px;
}

.ai-result strong {
  margin-top: 3px;
  color: #5364ca;
  font-size: 5.5px;
}

.analysis-result-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 7px;
  padding: 7px;
  border: 1px solid #dcefe8;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf8 100%);
}

.analysis-result-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid rgba(216, 231, 226, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.analysis-result-box span,
.analysis-result-box strong {
  display: inline-flex;
  align-items: center;
}

.analysis-result-box span {
  color: #758197;
  font-size: 5.3px;
  font-weight: 700;
  line-height: 1.15;
}

.analysis-result-box strong {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 5.7px;
  line-height: 1;
}

.analysis-result-box .is-good {
  color: #13a577;
  background: rgba(45, 205, 156, 0.13);
}

.analysis-result-box .is-warn {
  color: #e34d5f;
  background: rgba(227, 77, 95, 0.1);
}

.analysis-result-box p {
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid rgba(216, 231, 226, 0.72);
  color: #4e5b70;
  font-size: 5.4px;
  line-height: 1.4;
}

.analysis-result-box b {
  color: #2d394d;
}

/* Product illustration treatment */
.product-preview {
  contain: layout paint;
}

.app-grid {
  background: #fff;
}

.client-column {
  background: #fff;
}

.history-column {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stages-column {
  background: #fff;
}

.event:not(.event--live),
.live-script-card,
.live-objection {
  border-radius: 5px;
  background: #fff;
}

.scripts-reference,
.scripts-surface {
  background: #fff;
}

.scripts-contact {
  background: #fff;
}

.scripts-table {
  background: #fff;
  box-shadow: 0 10px 25px rgba(73, 63, 118, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scripts-empty-panel {
  background: #fff;
}

.scripts-empty-panel span {
  border-color: rgba(210, 215, 231, 0.66);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.36), rgba(226, 232, 250, 0.58));
}

.objection-row,
.script-history-row {
  background: rgba(255, 255, 255, 0.6);
}

.report-dashboard {
  background: #fff;
}

.kpi-overview article {
  border-color: rgba(210, 219, 233, 0.84);
  background: #fff;
  box-shadow: 0 6px 14px rgba(44, 70, 105, 0.05);
}

.kpi-create-card {
  background: #fff;
}

.kpi-managers-panel {
  background: #fff;
}

.report-drilldown {
  background: #fff;
}

.tasks-layout {
  background: #fff;
}

.task-filters {
  background: #fff;
}

.task-list {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.task-detail {
  background: #fff;
}

.task-item {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 11px rgba(45, 68, 103, 0.035);
}

.ai-layout {
  background: #fff;
}

.ai-score-panel {
  background: #fff;
}

.transcript-panel {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ai-insights {
  background: #fff;
}

.insight-card {
  background-color: #fff;
}

/* Floating illustration cards inside every product screen */
.app-window::before,
.app-window::after {
  position: absolute;
  z-index: 0;
  content: none;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.app-window::before {
  top: 62px;
  right: -45px;
  width: 145px;
  height: 145px;
  background: radial-gradient(circle, var(--screen-glow), transparent 68%);
}

.app-window::after {
  bottom: -55px;
  left: 24%;
  width: 165px;
  height: 165px;
  background: radial-gradient(circle, rgba(111, 126, 229, 0.1), transparent 68%);
}

.app-topbar,
.app-grid,
.scripts-reference,
.report-dashboard,
.tasks-layout,
.ai-layout {
  position: relative;
  z-index: 1;
}

.app-grid {
  grid-template-columns: 27fr 46fr 27fr;
  gap: 6px;
  padding: 7px;
}

.client-column,
.history-column,
.stages-column {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(210, 219, 234, 0.72);
  border-radius: 9px;
  box-shadow:
    0 9px 22px rgba(44, 61, 94, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.client-column,
.history-column {
  border-right: 1px solid rgba(210, 219, 234, 0.72);
}

.client-column {
  padding: 9px;
}

.client-name {
  padding: 6px 7px;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.66), rgba(231, 237, 255, 0.72));
}

.client-details {
  display: grid;
  gap: 4px;
}

.client-details div {
  padding: 5px 6px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.46);
}

.history-column {
  padding: 7px 8px 45px;
}

.history-tabs {
  padding: 3px;
  border: 0;
  border-radius: 6px;
  background: rgba(224, 230, 244, 0.55);
}

.history-tabs button {
  flex: 1;
  padding: 4px;
  border: 0;
  border-radius: 4px;
}

.history-tabs button.is-active {
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 3px 8px rgba(49, 65, 99, 0.08);
}

.event,
.event--live {
  min-height: 38px;
  margin-top: 5px;
  padding: 6px;
  border: 1px solid rgba(217, 224, 236, 0.66);
  border-radius: 7px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(239, 244, 252, 0.66));
  box-shadow: 0 4px 10px rgba(49, 65, 99, 0.04);
}

.event--live {
  border-color: rgba(119, 215, 185, 0.34);
  background: linear-gradient(120deg, rgba(231, 250, 243, 0.92), rgba(218, 247, 239, 0.72));
}

.event:hover,
.event.is-selected {
  background: linear-gradient(120deg, rgba(240, 243, 255, 0.9), rgba(229, 248, 243, 0.82));
}

.current-stage {
  padding: 0 3px;
}

.comment-box {
  border-color: rgba(204, 214, 230, 0.76);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 3px rgba(45, 60, 93, 0.035);
}

.history-actions {
  right: 8px;
  bottom: 7px;
  left: 8px;
}

.history-actions button {
  background: rgba(255, 255, 255, 0.62);
}

.stages-column {
  padding: 9px 8px;
}

.stages-column ol {
  gap: 5px;
  margin-top: 8px;
}

.stages-column li {
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.38);
}

.stages-column li.is-done {
  background: rgba(234, 250, 244, 0.62);
}

.stages-column li.is-active {
  border-color: rgba(107, 120, 222, 0.2);
  background: linear-gradient(110deg, rgba(238, 241, 255, 0.9), rgba(230, 248, 243, 0.72));
  box-shadow: 0 5px 12px rgba(64, 78, 119, 0.06);
}

.scripts-reference {
  padding: 7px;
}

.scripts-surface {
  grid-template-columns: 24fr 49fr 27fr;
  gap: 6px;
  border-radius: 9px;
  background: transparent;
}

.scripts-contact,
.scripts-table,
.scripts-empty-panel {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(211, 218, 233, 0.72);
  border-radius: 9px;
  box-shadow:
    0 9px 22px rgba(61, 51, 102, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.scripts-contact,
.scripts-table {
  border-right: 1px solid rgba(211, 218, 233, 0.72);
}

.scripts-table {
  padding: 7px;
  transform: none;
}

.scripts-table-tabs {
  padding: 3px;
  border: 0;
  border-radius: 6px;
  background: rgba(225, 226, 243, 0.55);
}

.scripts-table-tabs button {
  flex: 1;
  padding: 4px;
  border-radius: 4px;
}

.scripts-table-tabs button.is-active {
  border: 0;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 8px rgba(53, 48, 91, 0.08);
}

.objection-tags button {
  background: rgba(255, 255, 255, 0.55);
}

.objection-row,
.script-history-row {
  border-color: rgba(213, 220, 234, 0.7);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.66), rgba(241, 239, 251, 0.58));
  box-shadow: 0 4px 11px rgba(58, 51, 99, 0.04);
}

.objection-row--active {
  background: linear-gradient(120deg, rgba(235, 243, 255, 0.92), rgba(232, 249, 244, 0.72));
}

.scripts-empty-panel {
  display: grid;
  align-content: start;
  gap: 7px;
  border-color: rgba(211, 218, 233, 0.78);
  background: #fff;
  box-shadow: none;
}

.scripts-empty-panel span {
  height: 39px;
  margin: 0;
  border: 0;
  visibility: hidden;
  box-shadow: none;
}

.app-view[data-preview="scripts"] .app-window {
  border: 1px solid rgba(210, 219, 233, 0.86);
  box-shadow:
    0 16px 34px rgba(35, 53, 85, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-view[data-preview="scripts"] .app-topbar {
  border-bottom: 1px solid rgba(225, 231, 241, 0.95);
  box-shadow: none;
}

.app-view[data-preview="scripts"] .scripts-contact,
.app-view[data-preview="scripts"] .scripts-table,
.app-view[data-preview="scripts"] .scripts-empty-panel {
  border: 1px solid rgba(202, 229, 222, 0.78);
  box-shadow: none;
}

.app-view[data-preview="scripts"] .scripts-contact,
.app-view[data-preview="scripts"] .scripts-table {
  border-right: 1px solid rgba(211, 218, 233, 0.78);
}

.app-view[data-preview="scripts"] .scripts-table {
  background: #fff;
}

.app-view[data-preview="scripts"] .scripts-table-tabs,
.app-view[data-preview="scripts"] .scripts-table-tabs button.is-active,
.app-view[data-preview="scripts"] .objection-row,
.app-view[data-preview="scripts"] .script-history-row {
  border: 1px solid rgba(214, 222, 235, 0.78);
  box-shadow: none;
}

.app-view[data-preview="scripts"] .scripts-table-tabs {
  background: #f4f6fb;
}

.app-view[data-preview="scripts"] .objection-row,
.app-view[data-preview="scripts"] .script-history-row {
  background: #fff;
}

.app-view[data-preview="scripts"] .objection-row--active {
  background: #f7fbff;
}

.app-view[data-preview="scripts"] .script-glass-modal {
  border: 1px solid rgba(196, 230, 220, 0.92);
  box-shadow: 0 12px 28px rgba(45, 117, 105, 0.12);
}

.app-view[data-preview="scripts"] .script-glass-modal::after {
  box-shadow: none;
}

.report-dashboard {
  padding: 8px;
}

.app-view[data-preview="reports"] .app-window::before,
.app-view[data-preview="reports"] .app-window::after {
  opacity: 0.35;
}

.app-view[data-preview="reports"] .report-dashboard {
  background: #fff;
}

.app-view[data-preview="reports"] .kpi-workspace {
  height: 270px;
  align-items: stretch;
}

.app-view[data-preview="reports"] .kpi-create-card,
.app-view[data-preview="reports"] .kpi-managers-panel {
  height: 100%;
  align-self: stretch;
  background: #fff;
  overflow: visible;
}

.app-view[data-preview="reports"] .kpi-create-card {
  padding: 7px;
}

.app-view[data-preview="reports"] .kpi-create-card::before {
  content: none;
}

.app-view[data-preview="reports"] .kpi-template-chips,
.app-view[data-preview="reports"] .kpi-color-dots,
.app-view[data-preview="reports"] .kpi-rule-grid {
  margin-top: 4px;
}

.app-view[data-preview="reports"] .kpi-create-card > label,
.app-view[data-preview="reports"] .kpi-form-row label {
  margin-top: 3px;
}

.app-view[data-preview="reports"] .kpi-create-card input,
.app-view[data-preview="reports"] .kpi-create-card select {
  height: 20px;
}

.app-view[data-preview="reports"] .kpi-create-card .kpi-toggle {
  margin-top: 4px;
  padding: 4px 5px;
}

.app-view[data-preview="reports"] .kpi-create-card > button {
  min-height: 15px;
  margin-top: 3px;
  padding: 3px 4px;
}

.app-view[data-preview="reports"] .manager-kpi-row {
  grid-template-columns: 17px 1fr auto;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 5px;
}

.app-view[data-preview="reports"] .manager-kpi-row .manager-avatar {
  width: 17px;
  height: 17px;
}

.app-view[data-preview="reports"] .manager-kpi-row div > i {
  margin-top: 2px;
}

.kpi-overview {
  gap: 5px;
}

.kpi-overview article {
  border-radius: 8px;
  box-shadow:
    0 7px 17px rgba(44, 70, 105, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kpi-workspace {
  gap: 6px;
}

.kpi-create-card,
.kpi-managers-panel,
.report-drilldown {
  border-radius: 9px;
  box-shadow:
    0 10px 24px rgba(44, 66, 101, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.manager-kpi-row {
  border: 1px solid transparent;
}

.manager-kpi-row.is-selected {
  border-color: rgba(107, 120, 222, 0.18);
  background: linear-gradient(110deg, rgba(236, 240, 255, 0.88), rgba(226, 247, 241, 0.72));
}

.call-record {
  margin-top: 5px;
  padding: 6px;
  border: 1px solid rgba(213, 221, 234, 0.64);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 4px 11px rgba(44, 66, 101, 0.04);
}

.tasks-layout {
  grid-template-columns: 24fr 46fr 30fr;
  gap: 6px;
  padding: 7px;
}

.task-filters,
.task-list,
.task-detail {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(210, 220, 233, 0.72);
  border-radius: 9px;
  box-shadow:
    0 9px 22px rgba(44, 66, 101, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.task-filters,
.task-list {
  border-right: 1px solid rgba(210, 220, 233, 0.72);
}

.task-item {
  border-color: rgba(213, 222, 234, 0.68);
  border-radius: 7px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.65), rgba(239, 246, 251, 0.56));
}

.task-item.is-selected {
  border-color: rgba(104, 117, 221, 0.25);
  background: linear-gradient(110deg, rgba(237, 241, 255, 0.9), rgba(227, 248, 242, 0.76));
  box-shadow: 0 6px 14px rgba(63, 78, 118, 0.07);
}

.task-person,
.task-note,
.task-detail dl div {
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
}

.task-person {
  padding: 7px;
}

.task-detail dl {
  display: grid;
  gap: 4px;
}

.task-detail dl div {
  padding: 5px 6px;
}

.ai-layout {
  grid-template-columns: 25fr 48fr 27fr;
  gap: 6px;
  padding: 7px;
}

.ai-score-panel,
.transcript-panel,
.ai-insights {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(210, 219, 233, 0.72);
  border-radius: 9px;
  box-shadow:
    0 9px 22px rgba(44, 64, 102, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.ai-score-panel,
.transcript-panel {
  border-right: 1px solid rgba(210, 219, 233, 0.72);
}

.score-ring {
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.36),
    0 10px 22px rgba(56, 79, 113, 0.09);
}

.score-line {
  padding: 4px;
  background: rgba(255, 255, 255, 0.36);
}

.audio-wave {
  border: 1px solid rgba(215, 222, 235, 0.6);
  background: linear-gradient(110deg, rgba(238, 241, 255, 0.8), rgba(228, 248, 242, 0.68));
}

.phrase {
  margin-top: 5px;
  border: 1px solid rgba(214, 222, 234, 0.62);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 4px 10px rgba(44, 64, 102, 0.035);
}

.phrase.is-highlighted,
.phrase.is-current {
  border-color: rgba(71, 193, 160, 0.22);
  background: linear-gradient(110deg, rgba(235, 243, 255, 0.88), rgba(225, 249, 241, 0.78));
}

.insight-card,
.ai-result {
  border-radius: 7px;
  box-shadow: 0 5px 13px rgba(44, 67, 101, 0.045);
}

/* Keep small product-illustration copy readable on pale glass surfaces. */
.app-window {
  --illustration-text: #29364b;
  --illustration-muted: #637087;
  --illustration-soft: #748197;
}

.app-window .app-topbar,
.app-window .app-topbar nav a,
.app-window .history-tabs button,
.app-window .scripts-table-tabs button,
.app-window .task-filters > button {
  color: var(--illustration-muted);
}

.app-window .app-topbar nav .is-current,
.app-window .history-tabs .is-active,
.app-window .scripts-table-tabs .is-active,
.app-window .task-filters > button.is-active {
  color: #5264d7;
}

.app-window .client-name span,
.app-window .client-details dt,
.app-window .event p,
.app-window .event time,
.app-window .current-stage,
.app-window .panel-heading small,
.app-window .report-heading small,
.app-window .scripts-table-head small,
.app-window .script-history-row p,
.app-window .objection-row p,
.app-window .script-access small,
.app-window .kpi-overview span,
.app-window .kpi-overview em,
.app-window .kpi-card-head small,
.app-window .kpi-create-card > label,
.app-window .kpi-form-row label,
.app-window .kpi-plan-input span,
.app-window .kpi-toggle small,
.app-window .manager-kpi-row small,
.app-window .call-record small,
.app-window .call-record em,
.app-window .deal-stage > span,
.app-window .task-filters label,
.app-window .task-item p,
.app-window .task-item time,
.app-window .task-detail dt,
.app-window .task-note,
.app-window .ai-score-panel > p,
.app-window .score-line > span,
.app-window .phrase > span,
.app-window .phrase p,
.app-window .insight-card p,
.app-window .ai-result span {
  color: var(--illustration-muted);
}

.app-window .script-glass-modal > label > span,
.app-window .script-access small,
.app-window .script-modal-actions button:first-child {
  color: var(--illustration-muted);
}

.app-window .script-glass-modal input[type="text"],
.app-window .script-glass-modal textarea,
.app-window .script-access strong {
  color: var(--illustration-text);
}

.app-window .client-details dd,
.app-window .event strong,
.app-window .objection-row strong,
.app-window .task-item strong,
.app-window .task-detail dd,
.app-window .phrase strong,
.app-window .insight-card strong,
.app-window .ai-result strong {
  color: var(--illustration-text);
}

.app-window .stages-column li {
  color: var(--illustration-soft);
}

.app-window .stages-column li.is-done,
.app-window .stages-column li.is-active {
  color: #4d5b71;
}

.app-window .comment-box::placeholder,
.app-window input::placeholder,
.app-window textarea::placeholder {
  color: #7b8799;
  opacity: 1;
}

.app-window .task-item.is-complete {
  opacity: 0.76;
}

/* Product previews are illustrations, but their copy must remain readable. */
.app-window :is(
  a,
  button,
  label,
  input,
  textarea,
  select,
  p,
  small,
  span,
  em,
  dt,
  dd,
  time
) {
  font-size: 8px !important;
}

.app-window :is(strong, h3, h4) {
  font-size: 9px !important;
}

.app-window .metric-grid strong {
  font-size: 13px !important;
}

.app-window .kpi-overview strong {
  font-size: 11px !important;
}

.app-window .score-ring strong {
  font-size: 20px !important;
}

.app-window .score-ring span {
  font-size: 6.5px !important;
}

.app-window .app-brand span,
.app-window .phone-card strong,
.app-window .stage-conversion strong {
  font-size: 9px !important;
}

.app-window .manager-row > b,
.app-window .manager-kpi-row > em {
  font-size: 8.5px !important;
}

@media (min-width: 901px) {
  .workspace-card {
    height: 470px;
    grid-template-columns: 35% 65%;
  }

  .product-preview {
    padding: 10px 12px 12px 0;
    overflow: hidden;
  }

  .app-window {
    width: 100%;
    height: 100%;
    zoom: 1;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .feature-showcase {
    padding: 4px 0 24px;
  }

  .hero-copy p {
    margin-top: 6px;
    line-height: 1.45;
  }

  .feature-tabs {
    margin-top: 13px;
  }

  .workspace-card {
    height: clamp(395px, calc(100vh - var(--header-height) - 178px), 430px);
    margin-top: 13px;
  }

  .scenario {
    padding: 18px 20px 20px;
  }

  .scenario h2 {
    margin-top: 12px;
    font-size: 18px;
  }

  .scenario > p {
    margin-top: 10px;
    line-height: 1.58;
  }

  .scenario ul {
    gap: 7px;
    margin-top: 12px;
  }

  .product-preview {
    padding: 8px 10px 10px 0;
  }
}

body.landing-modal-open {
  overflow: hidden;
}

.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.landing-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.landing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.landing-modal__panel {
  position: relative;
  width: min(100%, 590px);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 42px);
  border: 1px solid rgba(41, 204, 179, 0.22);
  border-radius: 26px;
  background: #fff;
  color: #161b29;
  box-shadow: 0 30px 76px rgba(17, 24, 39, 0.22);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}

.landing-modal.is-open .landing-modal__panel {
  transform: translateY(0) scale(1);
}

.landing-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #0f172a;
  border: 0;
  border-radius: 50%;
  background: #f5f8fb;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.landing-modal__close:hover {
  color: #18b887;
  background: #ecfbf6;
  transform: rotate(90deg);
}

.landing-form {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-form > :not(.landing-form-lines) {
  position: relative;
  z-index: 1;
}

.landing-form[hidden] {
  display: none;
}

.landing-register-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-register-fields[hidden],
.landing-form h2[hidden] {
  display: none;
}

.landing-register-success {
  display: grid;
  gap: 14px;
  padding: 2px 2px 0;
}

.landing-register-success[hidden] {
  display: none;
}

.landing-register-success__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(105deg, #6f7aea 0%, #26c8bd 54%, #20c56c 100%);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(32, 197, 108, 0.22);
}

.landing-register-success h3 {
  margin: 0;
  color: #171923;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-register-success p {
  margin: 0;
  color: #505b72;
  font-size: 17px;
  line-height: 1.45;
}

.landing-register-success strong {
  color: #171923;
}

.landing-form-lines {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.landing-form-lines path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3.5;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: landingLineDraw 0.95s cubic-bezier(.2,.8,.2,1) 0.08s forwards;
}

.landing-form-lines path:first-child {
  stroke: rgba(38, 200, 189, 0.34);
}

.landing-form-lines path:last-child {
  stroke: rgba(111, 122, 234, 0.28);
  animation-delay: 0.18s;
}

.landing-form-lines--demo-right {
  top: -18px;
  right: -52px;
  width: 220px;
  height: 150px;
}

.landing-form-lines--demo-left {
  left: -70px;
  bottom: -42px;
  width: 220px;
  height: 150px;
}

.landing-form-lines--register-right {
  top: -28px;
  right: -58px;
  width: 230px;
  height: 156px;
}

.landing-form-lines--register-left {
  left: -68px;
  bottom: -40px;
  width: 230px;
  height: 156px;
}

.landing-form-lines--login-right {
  top: -30px;
  right: -58px;
  width: 230px;
  height: 156px;
}

.landing-form-lines--login-left {
  left: -64px;
  bottom: -36px;
  width: 230px;
  height: 156px;
}

.landing-form-lines--forgot-right {
  top: -24px;
  right: -62px;
  width: 230px;
  height: 156px;
}

.landing-form-lines--forgot-left {
  left: -68px;
  bottom: -34px;
  width: 230px;
  height: 156px;
}

.landing-form-lines--feedback-right {
  top: -24px;
  right: -60px;
  width: 230px;
  height: 156px;
}

.landing-form-lines--feedback-left {
  left: -68px;
  bottom: -36px;
  width: 230px;
  height: 156px;
}

@keyframes landingLineDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: 340;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.landing-form h2 {
  max-width: 430px;
  margin: 0 0 8px;
  padding-right: 56px;
  color: #171923;
  font-size: clamp(31px, 3.5vw, 45px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-form h2 span {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(111, 122, 234, 0.16), rgba(38, 200, 189, 0.28), rgba(32, 197, 108, 0.23));
  padding: 0 8px 2px;
}

.landing-field {
  position: relative;
  display: block;
}

.landing-field input,
.landing-field textarea {
  width: 100%;
  padding: 0 22px;
  color: #172033;
  border: 2px solid #d9deeb;
  border-radius: 12px;
  background: #fff;
  font: 500 16px/1.2 var(--body);
  letter-spacing: 0;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-field input {
  height: 54px;
}

.landing-field textarea {
  min-height: 116px;
  padding-block: 16px;
  resize: vertical;
  line-height: 1.45;
}

.landing-field--password input {
  padding-right: 58px;
}

.landing-password-toggle {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #66758f;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.landing-password-toggle:hover,
.landing-password-toggle.is-active {
  color: #15966f;
  background: rgba(39, 201, 178, 0.12);
}

.landing-password-toggle svg {
  width: 21px;
  height: 21px;
}

.landing-field input:focus,
.landing-field textarea:focus {
  border-color: #27c9b2;
  box-shadow: 0 0 0 4px rgba(39, 201, 178, 0.14);
}

.landing-field input::placeholder,
.landing-field textarea::placeholder {
  color: #8b96ad;
}

.landing-field small {
  display: none;
  margin-top: 7px;
  color: #f04438;
  font-size: 13px;
  font-weight: 700;
}

.landing-field.is-invalid input,
.landing-field.is-invalid textarea {
  border-color: #f04438;
}

.landing-field.is-invalid small {
  display: block;
}

.landing-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #202638;
  font-size: 14px;
  line-height: 1.38;
  font-weight: 500;
}

.landing-check input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: #25c7a9;
}

.landing-check.is-invalid {
  color: #202638;
}

.landing-check.is-invalid input {
  outline: 2px solid #f04438;
  outline-offset: 2px;
  accent-color: #f04438;
}

.landing-check a,
.landing-form__switch button {
  color: #0f7ee8;
  text-decoration: none;
}

.landing-check a:hover,
.landing-form__switch button:hover {
  text-decoration: underline;
}

.landing-submit {
  min-height: 56px;
  margin-top: 6px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, #6f7aea 0%, #26c8bd 54%, #20c56c 100%);
  box-shadow: 0 16px 34px rgba(32, 197, 108, 0.22);
  font: 800 20px/1 var(--body);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.landing-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(38, 200, 189, 0.28);
}

.landing-submit:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.landing-form__note {
  margin: 2px 0 0;
  color: #262b37;
  font-size: 15px;
  line-height: 1.45;
  white-space: nowrap;
}

.landing-form__lead {
  margin: -8px 0 4px;
  color: #505b72;
  font-size: 16px;
  line-height: 1.45;
}

.landing-form__switch {
  margin: 0;
  color: #505b72;
  text-align: center;
  font-size: 15px;
}

.landing-form__switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.landing-forgot-link {
  width: fit-content;
  align-self: flex-end;
  margin-top: -4px;
  border: 0;
  background: transparent;
  color: #0f7ee8;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.landing-forgot-link:hover {
  text-decoration: underline;
}

.landing-password-meter {
  display: grid;
  gap: 7px;
  margin: -2px 0 2px;
}

.landing-password-meter__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.landing-password-meter__track span {
  height: 6px;
  border-radius: 999px;
  background: #e8edf6;
  transition: background 0.2s ease, transform 0.2s ease;
}

.landing-password-meter[data-strength="1"] .landing-password-meter__track span:nth-child(-n+1),
.landing-password-meter[data-strength="2"] .landing-password-meter__track span:nth-child(-n+2) {
  background: #ff8a65;
}

.landing-password-meter[data-strength="3"] .landing-password-meter__track span:nth-child(-n+3),
.landing-password-meter[data-strength="4"] .landing-password-meter__track span:nth-child(-n+4) {
  background: linear-gradient(105deg, #ffc857, #26c8bd);
}

.landing-password-meter[data-strength="5"] .landing-password-meter__track span {
  background: linear-gradient(105deg, #6f7aea 0%, #26c8bd 54%, #20c56c 100%);
}

.landing-password-meter[data-strength="5"] .landing-password-meter__track span {
  transform: translateY(-1px);
}

.landing-password-meter p {
  margin: 0;
  color: #66758f;
  font-size: 12px;
  line-height: 1.35;
}

.landing-password-meter.is-strong p {
  color: #15966f;
  font-weight: 700;
}

@media (max-width: 620px) {
  .landing-modal {
    padding: 14px;
  }

  .landing-modal__panel {
    max-height: calc(100vh - 28px);
    padding: 28px 22px 24px;
    border-radius: 18px;
  }

  .landing-modal__close {
    top: 16px;
    right: 16px;
  }

  .landing-form-lines {
    display: none;
  }

  .landing-form h2 {
    max-width: 320px;
    padding-right: 36px;
    font-size: 30px;
  }

  .landing-field input {
    height: 52px;
    padding-inline: 18px;
    font-size: 16px;
  }

  .landing-check {
    font-size: 14px;
  }

  .landing-submit {
    min-height: 54px;
    font-size: 18px;
  }

  .landing-form__note {
    font-size: 16px;
    white-space: normal;
  }
}

.landing-toast {
  position: fixed;
  z-index: 320;
  top: 20px;
  right: 20px;
  width: min(25rem, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  color: #1677d2;
  border: 1px solid rgba(187, 219, 244, 0.96);
  border-radius: 6px;
  background: #e4f4ff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(.2,.8,.2,1);
}

.landing-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.landing-toast__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: #1677d2;
  border-radius: 50%;
}

.landing-toast__icon .ui-icon {
  width: 20px;
  height: 20px;
}

.landing-toast__content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.landing-toast__content strong {
  color: #2a8df2;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.landing-toast__content small {
  color: #1677d2;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.landing-toast__close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: -4px -4px 0 0;
  color: #1677d2;
  border-radius: 8px;
  background: transparent;
}

.landing-toast__close:hover {
  background: rgba(22, 119, 210, 0.08);
}

.landing-toast__close .ui-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 620px) {
  .landing-toast {
    top: 14px;
    right: 12px;
    width: calc(100vw - 24px);
    padding: 13px 12px 13px 14px;
  }

  .landing-toast__icon,
  .landing-toast__icon .ui-icon {
    width: 19px;
    height: 19px;
  }

  .landing-toast__content strong {
    font-size: 15px;
  }

  .landing-toast__content small {
    font-size: 13px;
  }

  .landing-toast__close {
    width: 26px;
    height: 26px;
  }

  .landing-toast__close .ui-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .site-header .container {
    padding-inline: 20px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    height: var(--header-height);
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .site-header.is-open .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header-height) + 14px);
    z-index: 3;
    transform: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(111, 122, 234, 0.16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(25, 35, 70, 0.1);
  }

  .site-header.is-open .main-nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .site-header.is-open .main-nav a:hover {
    background: rgba(111, 122, 234, 0.08);
  }

  .site-header.is-open .main-nav__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(111, 122, 234, 0.12);
  }

  .site-header.is-open .main-nav__actions .login,
  .site-header.is-open .main-nav__actions .trial-button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .site-header.is-open .main-nav__actions .login {
    border: 1px solid rgba(111, 122, 234, 0.16);
    border-radius: 12px;
    background: #fff;
  }

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

  .feature-tab:last-child {
    grid-column: 1 / -1;
  }

  .workspace-card {
    height: auto;
    grid-template-columns: 1fr;
  }

  .scenario {
    padding: 24px;
  }

  .product-preview {
    height: 357px;
    padding: 0 24px 24px;
  }

  .app-window {
    min-height: 325px;
  }
}

/* Keep the reference proportions on large desktop screens. */
@media (min-width: 1400px) {
  .feature-showcase {
    zoom: 1.35;
  }

  .feature-showcase > .container {
    width: calc((100vw - 176px) * 0.74074074);
  }

  /*.feature-showcase {
    min-height: calc(74.074vh - var(--header-height));
  }*/
}

@media (min-width: 1700px) {
  .feature-showcase {
    zoom: 1.62;
    min-height: calc(61.728vh - var(--header-height));
  }

  .feature-showcase > .container {
    width: calc((100vw - 176px) * 0.61728395);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1168px);
  }

  .site-header .container {
    width: 100%;
    padding-inline: 14px;
  }

  .logo {
    font-size: 18px;
    order: 1;
  }

  .logo-mark {
    width: 84px;
    height: 84px;
  }

  .feature-showcase {
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-copy h1 br,
  .hero-copy p br {
    display: none;
  }

  .hero-copy p {
    font-size: 12px;
  }

  .feature-tabs {
    grid-template-columns: 1fr;
  }

  .feature-tab,
  .feature-tab:last-child {
    grid-column: auto;
    height: 56px;
  }

  .feature-tab strong {
    font-size: 11px;
  }

  .feature-tab small {
    font-size: 8.5px;
  }

  .scenario {
    padding: 20px;
  }

  .scenario h2 {
    font-size: 20px;
  }

  .scenario > p,
  .scenario li {
    font-size: 11px;
  }

  .product-preview {
    height: 337px;
    padding: 0 12px 12px;
    overflow-x: auto;
  }

  .app-window {
    width: 590px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.landing-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(48px, 6.5vw, 88px);
}

@media (max-width: 768px) {
  .landing-container {
    padding: 0 20px;
  }
}
