/* Wisp AI Design System — GPL Voice Workspace Stylesheet */

/* --- Fonts & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&family=Poppins:wght@300;400;500&display=swap');

@font-face {
  font-family: 'Glancyr';
  src: url('/static/fonts/glancyr-regular-webfont.woff2') format('woff2'),
       url('/static/fonts/glancyr-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Glancyr';
  src: url('/static/fonts/glancyr-semibold-webfont.woff2') format('woff2'),
       url('/static/fonts/glancyr-semibold-webfont.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Glancyr';
  src: url('/static/fonts/glancyr-bold-webfont.woff2') format('woff2'),
       url('/static/fonts/glancyr-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* --- Design Tokens --- */
:root {
  /* Surface & Page */
  --bg-page: #ffffff;
  --bg-subtle: #fbfdfe;
  --bg-muted: #f6fafb;

  /* Typography Colors */
  --text-ink: #0d1a22;
  --text-body: #5a7382;
  --text-muted: #93a9b5;
  --text-faint: #a9bcc6;

  /* Brand Accents */
  --cyan: #3fd2f2;
  --cyan-electric: #00C5FF;
  --cyan-core: #29c2e8;
  --cyan-grad-top: #12C2EA;
  --blue-mid: #0799BB;
  --blue-deep: #1b6fa8;
  --blue-ink: #005681;

  /* Button Teals */
  --teal-hi: #85BCD0;
  --teal: #3A85A8;
  --teal-hover: #59ACD2;

  /* Borders & Dividers */
  --border-subtle: rgba(13, 26, 34, 0.09);
  --border-input: rgba(13, 26, 34, 0.16);
  --border-accent: rgba(63, 210, 242, 0.4);
  --border-accent-strong: #29c2e8;
  --border-divider: rgba(13, 26, 34, 0.07);

  /* Gradients */
  --grad-cta: linear-gradient(to bottom, #85BCD0, #3A85A8);
  --grad-cta-hover: linear-gradient(to bottom, #9ecbdc, #59ACD2);
  --grad-arc: linear-gradient(90deg, rgba(63, 210, 242, 0.85), rgba(27, 111, 168, 0.85));

  /* Glows */
  --glow-btn: 0 0 24px rgba(41, 194, 232, 0.25);
  --glow-arc: 0 0 120px rgba(41, 194, 232, 0.22);

  /* Typography Families */
  --font-display: 'Glancyr', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-body-alt: 'Poppins', sans-serif;
}

/* --- Global Resets & Elements --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  background: var(--bg-page);
  color: var(--text-ink);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

a {
  color: var(--blue-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-mid);
}

::selection {
  background: rgba(41, 194, 232, 0.28);
  color: var(--text-ink);
}

/* Scrollbars */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(13, 26, 34, 0.14);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 26, 34, 0.26);
}

/* Inputs */
input::placeholder {
  color: var(--text-faint);
}

input:focus {
  outline: none;
  border-color: rgba(41, 194, 232, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(41, 194, 232, 0.12);
}

/* --- Keyframe Animations --- */
@keyframes wisp-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

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

@keyframes wisp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wisp-drift {
  0% { transform: translate(-50%, -50%) scale(0.94); }
  100% { transform: translate(-50%, -50%) scale(1.08); }
}

/* --- Layout Structure --- */
.wisp-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  font-family: var(--font-body);
  color: var(--text-ink);
  overflow: hidden;
  position: relative;
}

/* --- Top Header Navigation --- */
.wisp-header {
  flex-shrink: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
  position: relative;
  z-index: 40;
}

.wisp-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.wisp-brand-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.wisp-brand-btn img {
  height: 20px;
  width: auto;
  display: block;
}

.wisp-divider-v {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: rgba(13, 26, 34, 0.12);
}

.wisp-subtitle {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wisp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Live indicators */
.wisp-live-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px;
}

.wisp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-core);
  box-shadow: 0 0 8px rgba(41, 194, 232, 0.8);
  flex-shrink: 0;
  animation: wisp-live 1.8s infinite ease-in-out;
}

.wisp-live-tag {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-ink);
  font-weight: 600;
  white-space: nowrap;
}

.wisp-live-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-ink);
  white-space: nowrap;
}

.wisp-resume-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: rgba(41, 194, 232, 0.06);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.wisp-resume-btn:hover {
  border-color: var(--cyan-core);
  background: rgba(41, 194, 232, 0.12);
}

/* Start a Call Menu */
.wisp-menu-wrapper {
  position: relative;
}

.wisp-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(13, 26, 34, 0.14);
  background: #ffffff;
  color: var(--blue-ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wisp-menu-trigger:hover,
.wisp-menu-trigger.active {
  border-color: var(--cyan-core);
  background: rgba(41, 194, 232, 0.1);
}

.wisp-menu-chevron {
  transition: transform 0.25s ease;
}
.wisp-menu-trigger.active .wisp-menu-chevron {
  transform: rotate(180deg);
}

.wisp-dropdown {
  position: absolute;
  top: 46px;
  right: 0;
  width: 292px;
  border-radius: 18px;
  border: 1px solid rgba(13, 26, 34, 0.12);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(13, 26, 34, 0.12);
  overflow: hidden;
  z-index: 50;
  animation: wisp-rise 0.22s ease-out both;
}

.wisp-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border: none;
  border-bottom: 1px solid rgba(13, 26, 34, 0.07);
  background: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wisp-dropdown-item:last-child {
  border-bottom: none;
}
.wisp-dropdown-item:hover {
  background: var(--bg-muted);
}
.wisp-dropdown-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-ink);
}
.wisp-dropdown-desc {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-body);
}

/* Icon Buttons */
.wisp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}
.wisp-icon-btn:hover {
  border-color: rgba(13, 26, 34, 0.16);
  color: var(--text-ink);
}

/* --- View Containers --- */
.wisp-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
}
.wisp-view.hidden {
  display: none !important;
}

/* --- VIEW 1: AGENT LAUNCHER --- */
.wisp-launcher {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.wisp-launcher-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(41, 194, 232, 0.09), rgba(27, 111, 168, 0.02) 55%, transparent 72%);
  transform: translateX(-50%);
  pointer-events: none;
}

.wisp-launcher-container {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 32px 60px;
}

.wisp-hero-header {
  max-width: 600px;
}

.wisp-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-ink);
}

.wisp-hero-subtitle {
  margin: 15px 0 0;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-body);
}

.wisp-cards-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
}

.wisp-agent-card {
  background: #ffffff;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
}
.wisp-agent-card:hover {
  background: var(--bg-subtle);
}

.wisp-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.2;
  color: var(--text-ink);
}

.wisp-card-desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--text-body);
  flex-grow: 1;
}

.wisp-card-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--text-ink);
}

.wisp-card-input-group {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wisp-input-label {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-body);
}

.wisp-pill-input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  border-radius: 50px;
  border: 1px solid var(--border-input);
  background: #ffffff;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-ink);
  transition: all 0.25s ease;
}

.wisp-card-btn {
  margin-top: 22px;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: none;
  color: var(--blue-ink);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.wisp-card-btn:hover {
  border-color: var(--cyan-core);
  background: rgba(41, 194, 232, 0.1);
  box-shadow: var(--glow-btn);
}

/* --- VIEW 2: LIVE CALL --- */
.wisp-live-substrip {
  flex-shrink: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.wisp-live-agent-name {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text-ink);
  white-space: nowrap;
}

/* Welcome call stage progress strip */
.wisp-stage-progress {
  flex: 1;
  min-width: 0;
  max-width: 440px;
  position: relative;
  padding: 9px 0;
}

.wisp-stage-track {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 18px;
  height: 1px;
  background: rgba(13, 26, 34, 0.14);
}

.wisp-stage-bar {
  position: absolute;
  left: 10px;
  top: 18px;
  height: 1px;
  background: var(--cyan-core);
  width: 0%;
  box-shadow: 0 0 8px rgba(41, 194, 232, 0.6);
  transition: width 0.7s ease-out;
}

.wisp-stage-steps {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.wisp-stage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 86px;
}

.wisp-stage-circle {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  background: #ffffff;
  border: 1px solid rgba(13, 26, 34, 0.16);
  color: var(--text-faint);
  transition: all 0.3s ease;
}
.wisp-stage-circle.active {
  background: rgba(41, 194, 232, 0.14);
  border-color: var(--cyan-core);
  color: var(--blue-ink);
}
.wisp-stage-circle.completed {
  background: var(--cyan-core);
  border-color: var(--cyan-core);
  color: #ffffff;
}

.wisp-stage-label {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  white-space: nowrap;
}
.wisp-stage-label.active {
  color: var(--text-ink);
}
.wisp-stage-label.completed {
  color: var(--text-body);
}

.wisp-substrip-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--text-body);
  padding: 8px 0;
}

/* Two-column layout */
.wisp-live-main {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* Left Column: Visualizer & Transcript */
.wisp-live-left {
  flex: 1.6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  min-height: 0;
}

.wisp-orb-stage {
  flex: 1 1 auto;
  min-height: 232px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 20px;
  overflow: hidden;
}

.wisp-orb-aura {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(41, 194, 232, 0.06), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: background 0.6s ease;
}

.wisp-orb-canvas-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding-bottom: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

canvas#voice-orb-canvas {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: 280px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.wisp-speaking-status {
  position: relative;
  flex-shrink: 0;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-ink);
  text-align: center;
}

.wisp-speech-bubble {
  position: relative;
  flex-shrink: 0;
  margin: 9px 0 0;
  max-width: 500px;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--text-body);
  text-align: center;
  min-height: 22px;
}

.wisp-controls-row {
  position: relative;
  flex-shrink: 0;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wisp-mic-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.25s ease;
}
.wisp-mic-btn.muted {
  background: var(--text-ink);
  border-color: var(--text-ink);
  color: #ffffff;
}

.wisp-end-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--text-ink);
  background: var(--text-ink);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wisp-end-btn:hover {
  background: #1b3644;
  border-color: #1b3644;
}

/* Transcript Area */
.wisp-transcript-pane {
  flex: 0 1 180px;
  min-height: 110px;
  max-height: 230px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.wisp-transcript-header {
  flex-shrink: 0;
  padding: 12px 24px 8px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-body);
}

.wisp-transcript-feed {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.wisp-transcript-empty {
  padding: 24px 0;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.wisp-transcript-line {
  padding: 8px 0 8px 14px;
  border-left: 2px solid rgba(13, 26, 34, 0.14);
  animation: wisp-rise 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.wisp-transcript-line.agent {
  border-left-color: var(--blue-ink);
}
.wisp-transcript-line.user {
  border-left-color: var(--teal-hi);
}
.wisp-transcript-line.flag {
  border-left-color: var(--cyan-core);
}

.wisp-transcript-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.wisp-transcript-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.wisp-transcript-speaker {
  flex-shrink: 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.wisp-transcript-speaker.agent { color: var(--blue-ink); }
.wisp-transcript-speaker.user { color: var(--teal); }
.wisp-transcript-speaker.saved { color: var(--text-muted); }
.wisp-transcript-speaker.flagged { color: var(--blue-ink); }

.wisp-transcript-body {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Right Column: Customer info & Inspector */
.wisp-live-right {
  flex: 1;
  min-width: 312px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  min-height: 0;
}

/* Customer card */
.wisp-customer-card {
  flex-shrink: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.wisp-customer-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.wisp-avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
  background: rgba(41, 194, 232, 0.08);
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--blue-ink);
}

.wisp-customer-details {
  min-width: 0;
  flex: 1;
}

.wisp-customer-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wisp-customer-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wisp-dl {
  margin: 16px 0 0;
}

.wisp-dl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--border-divider);
}

.wisp-dt {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

.wisp-dd {
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-ink);
  text-align: right;
  word-break: break-word;
}

/* Session Inspector */
.wisp-inspector {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.wisp-inspector-header {
  flex-shrink: 0;
  padding: 18px 24px 0;
}

.wisp-inspector-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.wisp-inspector-label {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-body);
}

.wisp-inspector-count {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.wisp-tabs-row {
  margin-top: 12px;
  display: flex;
  gap: 6px;
}

.wisp-tab-pill {
  flex: 1;
  padding: 7px 0;
  border-radius: 999px;
  border: 1px solid rgba(13, 26, 34, 0.14);
  background: #ffffff;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.wisp-tab-pill:hover {
  border-color: var(--cyan-core);
}
.wisp-tab-pill.active {
  background: rgba(41, 194, 232, 0.12);
  border-color: rgba(41, 194, 232, 0.55);
  color: var(--blue-ink);
}

.wisp-tab-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 24px 22px;
}

.wisp-pre-payload {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #33505f;
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- VIEW 3: CALL SUMMARY --- */
.wisp-summary-view {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.wisp-summary-horizon-arc {
  position: absolute;
  bottom: -520px;
  left: 50%;
  width: 1200px;
  height: 640px;
  border-radius: 50%;
  transform: translateX(-50%);
  border-top: 1px solid rgba(41, 194, 232, 0.35);
  box-shadow: 0 0 120px rgba(41, 194, 232, 0.12);
  pointer-events: none;
}

.wisp-summary-container {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 58px 32px 68px;
  animation: wisp-rise 0.9s ease-out both;
}

.wisp-summary-heading-group {
  display: flex;
  align-items: center;
  gap: 13px;
}

.wisp-summary-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text-ink);
}

.wisp-summary-lead {
  margin: 14px 0 0;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: 0.035em;
  color: var(--text-body);
}

.wisp-summary-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.wisp-summary-stat {
  padding: 20px 22px 20px 0;
  border-right: 1px solid var(--border-subtle);
}
.wisp-summary-stat:last-child {
  border-right: none;
  padding-left: 22px;
}
.wisp-summary-stat:nth-child(2) {
  padding-left: 22px;
}

.wisp-stat-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.wisp-stat-val-big {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text-ink);
}

.wisp-stat-val-text {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text-ink);
}
.wisp-stat-val-text.outcome {
  color: var(--blue-ink);
}

.wisp-flags-box {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(41, 194, 232, 0.35);
  background: rgba(41, 194, 232, 0.05);
}

.wisp-flags-heading {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--blue-ink);
  font-weight: 500;
}

.wisp-email-box {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.wisp-rcp-box {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wisp-card-panel {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  overflow: hidden;
}

.wisp-card-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-divider);
}

.wisp-copy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(13, 26, 34, 0.14);
  background: none;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wisp-copy-btn:hover {
  border-color: var(--cyan-core);
  color: var(--blue-ink);
}

.wisp-summary-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wisp-primary-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: none;
  color: var(--blue-ink);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wisp-primary-action-btn:hover {
  border-color: var(--cyan-core);
  background: rgba(41, 194, 232, 0.1);
  box-shadow: var(--glow-btn);
}

.wisp-secondary-action-btn {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(13, 26, 34, 0.16);
  background: none;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wisp-secondary-action-btn:hover {
  border-color: rgba(13, 26, 34, 0.4);
  color: var(--text-ink);
  background: var(--bg-muted);
}

/* --- Channel Partner Modal --- */
.wisp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(246, 250, 251, 0.82);
  backdrop-filter: blur(8px);
  animation: wisp-fade 0.25s ease both;
}
.wisp-modal-backdrop.hidden {
  display: none !important;
}

.wisp-modal-box {
  width: 100%;
  max-width: 840px;
  max-height: 100%;
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(13, 26, 34, 0.12);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(13, 26, 34, 0.10);
  animation: wisp-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wisp-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.wisp-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: var(--text-ink);
}

.wisp-modal-subtitle {
  margin: 9px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-body);
}

.wisp-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
}

.wisp-partner-card {
  background: #ffffff;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease;
}
.wisp-partner-card:hover {
  background: var(--bg-subtle);
}
