:root {
  color-scheme: light;
  --bg: #fbf7f5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #2e2938;
  --muted: #706879;
  --line: rgba(82, 72, 98, 0.16);
  --amber: #f59b63;
  --teal: #6fb7ad;
  --rose: #d87493;
  --lavender: #7b6ee6;
  --sage: #88a995;
  --danger: #cf5d5d;
  --shadow: 0 18px 44px rgba(94, 76, 101, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body.light {
  color-scheme: light;
  --bg: #fffaf7;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #ffffff;
  --text: #2e2938;
  --muted: #706879;
  --line: rgba(82, 72, 98, 0.16);
  --shadow: 0 18px 44px rgba(94, 76, 101, 0.13);
}

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

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

.topbar {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(16, 17, 20, 0.72);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 14px clamp(18px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

body.light .topbar {
  background: rgba(247, 245, 239, 0.78);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
}

.brand span {
  align-items: center;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  border-radius: 6px;
  color: #111;
  display: inline-flex;
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

nav {
  display: flex;
  gap: 20px;
  justify-content: center;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
}

.header-workspace-nav {
  align-items: center;
  display: flex;
  gap: 12px;
}

.header-workspace-nav details {
  position: relative;
}

.header-workspace-nav summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.94rem;
  list-style: none;
}

.header-workspace-nav summary::-webkit-details-marker {
  display: none;
}

.header-workspace-nav summary::after {
  content: "▾";
  font-size: 0.72rem;
  margin-left: 5px;
}

.header-workspace-nav details[open] summary {
  color: var(--text);
}

.header-dropdown-menu {
  background: #242424;
  border: 1px solid #464646;
  display: none;
  min-width: 210px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 30;
}

.header-workspace-nav details[open] .header-dropdown-menu {
  display: grid;
}

.header-dropdown-menu button {
  background: #242424;
  border: 0;
  border-bottom: 1px solid #464646;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 9px 10px;
  text-align: left;
}

.header-dropdown-menu button:last-child {
  border-bottom: 0;
}

.header-dropdown-menu button:hover {
  background: #1f1f1f;
  color: var(--text);
}

.topbar-actions,
.profile-chip {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: end;
}

.profile-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}

.profile-text {
  display: grid;
  gap: 2px;
}

.profile-chip > span {
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 220px;
  overflow: hidden;
  padding-left: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-text b,
.profile-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-text b {
  color: var(--text);
  font-size: 0.84rem;
}

.profile-text small {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 850;
}

.owner-role-switch select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  max-width: 180px;
  min-height: 34px;
  padding: 0 8px;
}

.profile-icon {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 7px;
  color: #071210;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.task-assistant-panel {
  border-color: rgba(123, 79, 182, 0.22);
  box-shadow: 0 14px 34px rgba(78, 62, 84, 0.08);
}

.task-assistant-input {
  display: grid;
  gap: 7px;
}

.task-assistant-input span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.task-assistant-input textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.button.compact {
  min-height: 34px;
  padding: 0 10px;
}

.icon-button {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(16, 17, 20, 0.94) 0%, rgba(16, 17, 20, 0.76) 38%, rgba(16, 17, 20, 0.18) 74%);
  inset: 0;
  position: absolute;
}

body.light .hero-overlay {
  background: linear-gradient(90deg, rgba(247, 245, 239, 0.96) 0%, rgba(247, 245, 239, 0.78) 38%, rgba(247, 245, 239, 0.1) 74%);
}

.hero-content {
  display: grid;
  max-width: 760px;
  min-height: 92vh;
  padding: 155px clamp(18px, 7vw, 86px) 90px;
  place-content: center start;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  line-height: 1.2;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 560px;
}

.hero-actions,
.form-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.button.primary {
  background: var(--amber);
  color: #17120a;
}

.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.wide {
  width: 100%;
}

.section {
  padding: 84px clamp(18px, 5vw, 72px);
}

.two-column,
.pricing {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.auth-section {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.muted,
.status {
  color: var(--muted);
  line-height: 1.65;
}

.status.error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.panel,
.metrics article,
.price-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 16px;
}

.auth-section .login-card {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(78, 62, 84, 0.08);
  margin-left: auto;
  max-width: 720px;
  padding: 22px;
}

.auth-card-head {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(260px, 420px);
  justify-content: space-between;
}

.auth-card-head h3 {
  color: #252334;
  font-size: 1.25rem;
  margin: 0;
}

.auth-section .auth-card-head {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.onboarding-form {
  display: grid;
  gap: 16px;
}

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

.login-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.auth-section .login-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.signup-type button {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.signup-type button.active {
  background: rgba(255, 181, 64, 0.14);
  border-color: rgba(255, 181, 64, 0.7);
}

.signup-type span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.training-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.training-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.training-card h4 {
  margin: 0;
}

.training-shot {
  background: linear-gradient(135deg, rgba(255, 181, 64, 0.14), rgba(88, 211, 196, 0.1));
  border: 1px solid rgba(255, 181, 64, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 14px;
}

.training-shot span {
  background: var(--amber);
  border-radius: 999px;
  color: #17120a;
  display: grid;
  font-weight: 900;
  height: 28px;
  place-items: center;
  width: 28px;
}

.training-shot b {
  font-size: 1.1rem;
}

.training-shot em {
  color: var(--muted);
  font-style: normal;
}

.ai-helper-toggle {
  background: var(--amber);
  border: 0;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: #17120a;
  cursor: pointer;
  font-weight: 950;
  height: 58px;
  position: fixed;
  right: 24px;
  width: 58px;
  z-index: 30;
}

.ai-helper-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 96px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px;
  position: fixed;
  right: 24px;
  width: 420px;
  z-index: 31;
}

.ai-helper-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ai-helper-head h3 {
  margin: 0;
}

.ai-helper-result,
.helper-draft-card {
  display: grid;
  gap: 8px;
}

.helper-draft-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-section .login-actions {
  align-items: center;
}

.auth-section .login-actions .button {
  border-radius: 8px;
  box-shadow: none;
  min-height: 42px;
  padding: 0 18px;
}

.auth-section .login-actions .button.primary {
  background: #246a5b;
  border-color: #246a5b;
  color: #ffffff;
}

.auth-section .login-actions .button.ghost {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.16);
  color: #4f485c;
}

.auth-tabs {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
}

.auth-section .auth-tabs {
  background: #f7f8fa;
  border-color: rgba(82, 72, 98, 0.13);
  border-radius: 8px;
  padding: 3px;
}

.auth-section .auth-tabs button {
  border-radius: 6px;
  color: #5f6070;
  min-height: 36px;
}

.auth-tabs button.active {
  background: var(--amber);
  color: #17120a;
}

.auth-section .auth-tabs button.active {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.13);
  box-shadow: 0 4px 10px rgba(78, 62, 84, 0.08);
  color: #252334;
}

.password-rules {
  display: grid;
  gap: 6px;
}

.password-rules span {
  color: var(--muted);
  font-size: 0.88rem;
}

.password-rules span::before {
  content: "x";
  color: var(--danger);
  display: inline-block;
  font-weight: 900;
  width: 18px;
}

.password-rules span.passed::before {
  content: "OK";
  color: var(--teal);
  width: 28px;
}

.workspace-panel {
  display: none;
}

.workspace-panel.active {
  display: block;
}

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

.dashboard-empty-state {
  min-height: 220px;
}

.team-builder-dashboard {
  display: grid;
  gap: 16px;
}

.team-builder-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(260px, 340px);
}

.dashboard-invite-form {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.dashboard-invite-form h4 {
  margin: 0;
}

.dashboard-invite-form label {
  color: #574b63;
  display: grid;
  font-weight: 800;
  gap: 6px;
}

.dashboard-invite-form textarea,
.dashboard-invite-form select {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.16);
  border-radius: 10px;
  color: #2e2938;
  font: inherit;
  padding: 10px;
}

.team-builder-tree,
.team-builder-manager,
.team-builder-coaches,
.team-builder-coach,
.team-builder-reps,
.team-builder-unassigned {
  display: grid;
  gap: 10px;
}

.team-builder-tree {
  max-height: min(64vh, 760px);
  overflow: auto;
  padding-right: 6px;
}

.team-builder-manager,
.team-builder-unassigned {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.team-builder-coaches {
  border-left: 2px solid rgba(123, 79, 182, 0.18);
  margin-left: 14px;
  padding-left: 14px;
}

.team-builder-coach {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.1);
  border-radius: 12px;
  padding: 10px;
}

.team-builder-person span {
  color: #8f4c73;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-builder-person strong {
  color: #2e2938;
  display: block;
}

.team-profile-link {
  background: none;
  border: 0;
  color: #2e2938;
  cursor: pointer;
  display: inline;
  font: inherit;
  font-weight: 850;
  padding: 0;
  text-align: left;
}

.team-profile-link:hover {
  color: #7b4fb6;
  text-decoration: underline;
}

.team-builder-person small,
.team-builder-rep span {
  color: #756b80;
}

.team-builder-rep {
  border-top: 1px solid rgba(82, 72, 98, 0.08);
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.team-builder-rep strong {
  color: #2e2938;
}

.team-builder-assignment {
  color: #574b63;
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 4px;
  margin-top: 8px;
}

.team-builder-assignment select {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.16);
  border-radius: 8px;
  color: #2e2938;
  font: inherit;
  min-height: 34px;
  padding: 0 8px;
}

.team-profile-panel {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 14px;
}

.team-profile-panel h3 {
  margin: 0;
}

.team-profile-status {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 10px;
  width: fit-content;
}

.team-profile-status.active {
  background: rgba(83, 178, 122, 0.14);
  color: #237848;
}

.team-profile-status.blocked {
  background: rgba(205, 83, 107, 0.12);
  color: #a53d59;
}

.team-profile-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-profile-grid div {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.1);
  border-radius: 10px;
  padding: 9px;
}

.team-profile-grid span {
  color: #756b80;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.team-profile-grid strong {
  color: #2e2938;
  display: block;
  margin-top: 3px;
}

.team-profile-actions {
  display: flex;
  gap: 8px;
}

.dashboard-section-label {
  align-items: end;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin: 4px 0 -4px;
}

.dashboard-section-label span {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
  margin-top: 3px;
}

.role-focus-panel {
  border-color: rgba(123, 110, 230, 0.25);
}

.dashboard-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-card-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-route-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
}

.dashboard-route-card strong {
  color: var(--text);
  font-size: 1rem;
}

.dashboard-route-card span {
  color: var(--muted);
  line-height: 1.35;
}

.dashboard-route-card small {
  color: var(--purple);
  font-weight: 850;
}

.dashboard-route-card:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}

.coach-agent-panel {
  display: grid;
  gap: 14px;
}

.coach-sort-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-sort-controls button {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
  min-height: 34px;
  padding: 0 12px;
}

.coach-sort-controls button.active {
  background: var(--amber);
  color: #17120a;
}

.coach-agent-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.coach-rep-table,
.coach-session-list {
  display: grid;
  gap: 8px;
}

.coach-rep-head,
.coach-rep-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 0.8fr 1fr 0.72fr;
}

.coach-rep-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-rep-row {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 11px;
  text-align: left;
}

.coach-rep-row.active {
  border-color: rgba(245, 155, 99, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 155, 99, 0.12);
}

.coach-rep-row span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-rep-detail {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.mini-metrics div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.mini-metrics span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.coach-session-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.coach-session-card label,
.coach-session-card button {
  grid-column: 1 / -1;
}

.coach-session-card textarea {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  margin-top: 6px;
  min-height: 78px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.rep-visible-coach-note {
  background: rgba(245, 155, 99, 0.11);
  border: 1px solid rgba(245, 155, 99, 0.28);
  border-radius: 8px;
  padding: 10px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.metric-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.metric-strip div {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.metric-strip span,
.progress-row span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.metric-strip strong {
  color: var(--amber);
  display: block;
  font-size: 1.8rem;
  margin-top: 4px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-list {
  display: grid;
  gap: 10px;
}

.progress-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto auto;
  padding: 12px;
}

.progress-row b {
  color: var(--teal);
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

.reports-panel {
  display: grid;
  gap: 16px;
}

.report-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-category-row span {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  padding: 7px 10px;
}

.report-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.report-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.report-card-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.report-card h4 {
  margin: 0;
}

.report-card-head strong {
  color: var(--amber);
  font-size: 1.35rem;
}

.report-card p {
  color: var(--muted);
  margin: 0;
}

.report-bars {
  align-items: end;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  height: 76px;
  padding: 10px;
}

.report-bars span {
  background: linear-gradient(180deg, var(--amber), var(--teal));
  border-radius: 999px 999px 2px 2px;
  flex: 1;
  min-height: 12px;
}

.report-table {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding-top: 8px;
}

.report-table div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.report-table span {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-table b {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.manager-command-center {
  background: #f4f6f8;
  color: #142033;
  display: grid;
  gap: 16px;
  margin: -28px -42px 0;
  min-height: calc(100vh - 88px);
  padding: 22px clamp(16px, 3vw, 34px) 34px;
}

.manager-command-center .eyebrow {
  color: #2563eb;
}

.command-header {
  align-items: start;
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
  padding: 20px;
}

.command-header h2 {
  color: #111827;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  line-height: 1.15;
  margin: 4px 0 8px;
  max-width: 900px;
}

.command-header p {
  color: #526172;
  margin: 0;
}

.command-filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-filters label {
  color: #526172;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 4px;
  text-transform: uppercase;
}

.command-filters select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #111827;
  min-height: 36px;
}

.command-filters small {
  color: #64748b;
  justify-self: end;
}

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

.command-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #1f2937;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 54px;
  padding: 12px;
  text-align: left;
}

.command-action.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.command-action:hover,
.branch-card:hover,
.text-action:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.command-kpi-card,
.command-panel,
.branch-card {
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.command-kpi-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 15px;
}

.command-kpi-card span,
.command-kpi-card small {
  color: #64748b;
}

.command-kpi-card span {
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.command-kpi-card strong {
  color: #0f172a;
  font-size: 1.65rem;
  line-height: 1.05;
}

.command-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.command-panel h3 {
  color: #111827;
  margin: 2px 0 0;
}

.command-panel-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.command-panel .button.secondary,
.command-panel .button.ghost,
.command-header .button.secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1f2937;
}

.command-panel .button.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.manager-alert-list,
.queue-list,
.coach-capacity-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.manager-alert-row,
.queue-row,
.coach-capacity-card,
.activity-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.manager-alert-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.manager-alert-row.high {
  border-left: 4px solid #dc2626;
}

.manager-alert-row.medium {
  border-left: 4px solid #f59e0b;
}

.manager-alert-row.low {
  border-left: 4px solid #16a34a;
}

.manager-alert-row strong,
.queue-row strong,
.coach-capacity-card strong,
.branch-card strong,
.report-preview-card strong {
  color: #0f172a;
}

.manager-alert-row p,
.queue-row span,
.queue-row small,
.coach-capacity-card span,
.coach-capacity-card small,
.activity-row p,
.branch-card span,
.report-preview-card span {
  color: #526172;
  margin: 0;
}

.command-two-column {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-table-scroll {
  overflow: auto;
}

.command-table {
  border-collapse: collapse;
  min-width: 850px;
  width: 100%;
}

.command-table.compact-table {
  min-width: 620px;
}

.command-table th {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  letter-spacing: 0;
  padding: 10px;
  text-align: left;
  text-transform: uppercase;
}

.command-table td {
  border-top: 1px solid #e2e8f0;
  color: #1f2937;
  padding: 10px;
  vertical-align: middle;
}

.command-table td span {
  color: #64748b;
  display: block;
  font-size: 0.78rem;
}

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 5px 8px;
  white-space: nowrap;
}

.status-badge.high {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.low {
  background: #dcfce7;
  color: #166534;
}

.status-badge.neutral {
  background: #e2e8f0;
  color: #334155;
}

.text-action {
  background: transparent;
  border: 0;
  color: #2563eb;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0;
}

.score-meter {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  min-width: 90px;
  overflow: hidden;
}

.score-meter span {
  background: linear-gradient(90deg, #dc2626, #f59e0b, #16a34a);
  display: block;
  height: 100%;
}

.report-preview-grid,
.branch-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.activity-row {
  grid-template-columns: 92px minmax(0, 1fr);
}

.activity-row span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 850;
}

.branch-card {
  cursor: pointer;
  display: grid;
  gap: 7px;
  padding: 13px;
  text-align: left;
}

.reports-page-shell {
  background: #f4f6f8;
  display: grid;
  gap: 16px;
  margin: -28px -42px 0;
  min-height: calc(100vh - 88px);
  padding: 22px clamp(16px, 3vw, 34px) 34px;
}

.reports-page-shell .reports-panel {
  background: #ffffff;
  border-color: #d9e1ea;
  color: #142033;
}

.reports-page-shell .report-category-row span,
.reports-page-shell .report-card,
.reports-page-shell .report-bars {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.reports-page-shell .report-card h4,
.reports-page-shell .section-head h3,
.reports-page-shell .report-table span {
  color: #0f172a;
}

.reports-page-shell .report-card p,
.reports-page-shell .report-table b {
  color: #526172;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 12px;
}

.checklist span.passed {
  border-color: rgba(88, 211, 196, 0.52);
  color: var(--teal);
}

.checklist span.blocked {
  border-color: rgba(255, 177, 54, 0.48);
  color: var(--gold);
}

.first-run-guide {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.first-run-guide h4 {
  margin: 4px 0 10px;
}

.first-run-guide ol {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

.builder-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

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

.template-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.template-grid h3 {
  margin-top: 0;
}

.text-link {
  color: var(--amber);
  display: inline-flex;
  font-weight: 800;
  margin-top: 10px;
}

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

.tag-grid span {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.9rem;
  padding: 8px 10px;
}

.builder-form,
.assignment-form {
  display: grid;
  gap: 8px;
}

.builder-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.builder-title-row span {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.builder-title-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.builder-stepper {
  background: #242424;
  border: 1px solid #565656;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
}

.builder-stepper button {
  background: transparent;
  border: 0;
  border-right: 1px solid #4b4b4b;
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  min-height: 30px;
  padding: 5px 10px;
}

.builder-stepper button.active {
  background: #1f1f1f;
  box-shadow: inset 0 -3px 0 var(--amber);
  color: #f4f4f4;
}

.builder-stepper button.complete {
  color: var(--teal);
}

.builder-step {
  display: none;
  gap: 14px;
}

.builder-step.active {
  display: grid;
}

.product-intake {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.reuse-panel,
.scorecard-source-preview {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.reuse-panel h4,
.scorecard-source-preview h3 {
  margin: 0;
}

.reuse-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vertical-chip-list {
  display: grid;
}

.reuse-chip-list button,
.reuse-chip-list span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 10px;
}

.reuse-chip-list span {
  cursor: default;
}

.vertical-chip-list button {
  border-radius: 0;
  text-align: left;
  white-space: normal;
}

.builder-form .button,
.builder-form input,
.builder-form select,
.builder-form textarea,
.builder-form .panel,
.builder-form .setting-form-panel,
.builder-form .buyer-tabs-builder,
.builder-form .script-line-builder,
.builder-form .scorecard-source-preview,
.builder-form .storyboard-preview article {
  border-radius: 0;
}

.scorecard-source-list {
  display: grid;
  gap: 8px;
}

.scorecard-source-list p {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 10px;
}

.buyer-builder-intro {
  display: grid;
  gap: 4px;
}

.buyer-builder-intro h3 {
  margin-bottom: 0;
}

.buyer-profile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.voice-connection-hint {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 6px;
}

.voice-connection-hint.error {
  color: var(--danger);
}

.buyer-tabs-builder,
.script-line-builder {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.script-builder-shell {
  background: #d7d7d7;
  border: 0;
  display: grid;
  gap: 0;
  min-height: calc(100vh - 220px);
}

.builder-form.script-editor-mode {
  background: #d7d7d7;
  border: 0;
  gap: 0;
  padding: 0;
}

.builder-form.script-editor-mode > .builder-title-row,
.builder-form.script-editor-mode > .builder-stepper,
.builder-form.script-editor-mode > .builder-nav {
  display: none;
}

.sr-only {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.script-editor-topbar {
  align-items: center;
  background: #f4f4f1;
  border-bottom: 1px solid #bdbdb8;
  border-radius: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(250px, auto) 1fr auto;
  min-height: 44px;
  padding: 6px 10px;
}

.script-command-left,
.script-command-center {
  align-items: center;
  display: flex;
  gap: 6px;
}

.script-command-center {
  justify-content: center;
}

.script-file-menu select {
  background: #fff;
  border: 1px solid #b9b9b3;
  border-radius: 0;
  color: #1d1d1d;
  font-weight: 900;
  min-height: 32px;
  min-width: 112px;
  padding: 0 8px;
}

.script-editor-topbar .button.compact {
  border-radius: 0;
  min-height: 30px;
  padding: 4px 8px;
}

.script-file-status {
  color: #555;
  font-size: 0.82rem;
  font-weight: 800;
  justify-self: end;
  white-space: nowrap;
}

.script-builder-toolbar {
  align-items: center;
  background: #ececea;
  border-bottom: 1px solid #c7c7c1;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 38px;
  padding: 0 10px;
}

.script-builder-toolbar span {
  color: #555;
  font-size: 0.76rem;
  font-weight: 950;
  margin-right: 8px;
  text-transform: uppercase;
}

.script-builder-toolbar button {
  background: transparent;
  border: 0;
  border-right: 1px solid #d4d4ce;
  border-radius: 0;
  color: #363636;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  min-height: 38px;
  padding: 5px 12px;
}

.script-builder-toolbar button.active,
.script-builder-toolbar button:hover {
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--amber);
  color: #111;
}

.script-workspace,
.setting-workspace,
.builder-side-layout {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
}

.script-document-panel {
  background: #d7d7d7;
  border: 0;
  border-right: 1px solid #bdbdb8;
  border-radius: 0;
  display: grid;
  gap: 0;
  min-height: 760px;
  padding: 0;
}

.script-ai-panel {
  background: #2f2f2f;
  border: 1px solid #5a5a5a;
  border-radius: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.script-ai-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
}

.script-ai-result .helper-draft-card {
  background: #252525;
  border: 1px solid #565656;
  border-radius: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.script-ai-result pre {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
}

.script-insert-ribbon {
  align-items: center;
  background: #f8f8f6;
  border-bottom: 1px solid #c7c7c1;
  display: flex;
  gap: 0;
  min-height: 40px;
  padding-left: 10px;
}

.script-insert-ribbon span {
  border-right: 1px solid #464646;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.script-insert-ribbon button {
  background: transparent;
  border: 0;
  border-right: 1px solid #d4d4ce;
  color: #333;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 40px;
  padding: 6px 14px;
}

.script-insert-ribbon button.active,
.script-insert-ribbon button:hover {
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--amber);
  color: #111;
}

.script-document-head,
.script-compose-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

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

.script-document-textarea {
  background: #fbfbf7;
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  color: #1d1d1d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  justify-self: center;
  margin: 28px clamp(12px, 3vw, 36px);
  max-width: 860px;
  min-height: 720px;
  padding: 58px 64px;
  resize: vertical;
  width: calc(100% - clamp(24px, 6vw, 72px));
}

.word-page::placeholder {
  color: #6f6f6f;
}

.script-help-strip {
  background: #ececea;
  border-top: 1px solid #c7c7c1;
  border-radius: 0;
  color: #4e4e4e;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 8px 12px;
}

.script-resource-summary-grid {
  border-bottom: 1px solid #c7c7c1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.script-resource-summary-grid article {
  align-items: start;
  background: #f4f4f1;
  border-right: 1px solid #d4d4ce;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 96px;
  padding: 10px 12px;
}

.script-resource-summary-grid article:last-child {
  border-right: 0;
}

.script-resource-summary-grid b {
  color: #1d1d1d;
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.script-resource-summary-grid p {
  color: #555;
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 0;
}

.script-product-ai-add {
  border: 1px solid #565656;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.script-resource-panel {
  align-self: stretch;
  background: #f4f4f1;
  border: 0;
  border-radius: 0;
  color: #1d1d1d;
  min-height: 100%;
  padding: 14px;
  position: sticky;
  top: 82px;
}

.script-library-add {
  display: grid;
  gap: 10px;
}

.script-split-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.script-split-preview:empty {
  display: none;
}

.script-split-preview div {
  background: #fff;
  border: 1px solid #c5c5bf;
  border-radius: 0;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.script-split-preview b,
.script-split-preview p {
  margin: 0;
}

.script-split-preview p {
  color: #555;
}

.action-cue-box {
  animation: cuePulse 1.1s ease-in-out infinite alternate;
  border-color: rgba(255, 181, 64, 0.7);
}

@keyframes cuePulse {
  from {
    box-shadow: 0 0 0 rgba(255, 181, 64, 0);
  }
  to {
    box-shadow: 0 0 0 4px rgba(255, 181, 64, 0.18);
  }
}

.builder-main-fields {
  display: grid;
  gap: 14px;
}

.script-insert-panel {
  border: 1px solid #c5c5bf;
  border-radius: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mini-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.mini-tabs button {
  background: #fff;
  border: 1px solid #c5c5bf;
  border-radius: 0;
  color: #363636;
  cursor: pointer;
  padding: 6px 10px;
}

.mini-tabs button.active {
  background: #f8f8f6;
  border-color: #999;
  box-shadow: inset 0 -3px 0 var(--amber);
  color: #111;
}

.script-library-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 360px);
  overflow: auto;
  padding-right: 4px;
}

.script-library-list button {
  background: #fff;
  border: 1px solid #c5c5bf;
  border-radius: 0;
  color: #1d1d1d;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 10px;
  text-align: left;
}

.script-library-list button:hover,
.script-library-list button.selected {
  background: #fafafa;
  border-color: #777;
  box-shadow: none;
}

.script-library-list button.selected {
  box-shadow: inset 3px 0 0 var(--amber);
}

.script-library-list span {
  color: #555;
  line-height: 1.35;
}

.script-studio-shell {
  background: #0f1720;
  border: 1px solid #243244;
  color: #d7e1ea;
  display: grid;
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: calc(100vh - 190px);
}

.script-studio-titlebar {
  align-items: center;
  background: #12324b;
  border-bottom: 1px solid #274862;
  display: flex;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 12px;
}

.script-studio-titlebar strong {
  font-size: 0.88rem;
  letter-spacing: 0;
}

.script-studio-titlebar span {
  color: #b9c8d3;
  font-size: 0.78rem;
}

.script-studio-menubar {
  align-items: center;
  background: #172331;
  border-bottom: 1px solid #2a394b;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
  padding: 8px;
}

.script-studio-menubar > span:not(.script-context-note) {
  border-left: 1px solid rgba(82, 72, 98, 0.16);
  color: #6f6179;
  flex: 1 1 230px;
  min-height: 36px;
  padding: 8px 10px;
}

.script-studio-menubar select,
.script-studio-menubar button,
.script-map-add select,
.script-map-add button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #d7e1ea;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 32px;
  padding: 0 10px;
}

.script-studio-menubar select {
  background: #0f1720;
  border: 1px solid #34495f;
  margin-right: 6px;
}

.script-studio-menubar button:hover,
.script-studio-menubar button.active {
  background: #223247;
}

.script-studio-menubar button.active {
  box-shadow: inset 0 -3px 0 var(--amber);
  color: #ffffff;
}

.script-studio-context {
  align-items: center;
  background: #101923;
  border-bottom: 1px solid #243244;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.script-studio-context span {
  border-right: 1px solid #243244;
  color: #8ea1b2;
  font-size: 0.78rem;
  min-height: 34px;
  overflow: hidden;
  padding: 7px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-studio-context span:last-child {
  border-right: 0;
}

.script-studio-context b {
  color: #d7e1ea;
  font-weight: 700;
}

.script-studio-setup {
  background: rgba(4, 9, 14, 0.78);
  border-bottom: 1px solid #2a394b;
  padding: 14px;
}

.script-studio-setup-card {
  background: #111b26;
  border: 1px solid #34495f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 920px;
}

.script-studio-setup-head,
.script-studio-setup-actions {
  align-items: center;
  background: #172331;
  border-bottom: 1px solid #2a394b;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.script-studio-setup-actions {
  border-bottom: 0;
  border-top: 1px solid #2a394b;
  justify-content: end;
}

.script-studio-setup-head span {
  color: #67d9cf;
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.script-studio-setup-head strong {
  color: #f4f7f9;
}

.script-studio-setup-head button,
.script-studio-setup-actions button {
  background: #223247;
  border: 1px solid #34495f;
  color: #d7e1ea;
  cursor: pointer;
  font-weight: 800;
  min-height: 32px;
  padding: 0 12px;
}

.script-studio-setup-actions button {
  background: #ffb23e;
  border-color: #ffb23e;
  color: #111;
}

.script-studio-setup-body {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.script-studio-setup-body label {
  color: #9fb0bf;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
}

.script-studio-setup-body textarea,
.script-studio-setup-body input {
  background: #0b1118;
  border: 1px solid #34495f;
  color: #d7e1ea;
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 36px;
  padding: 8px;
}

.script-studio-setup-body textarea {
  resize: vertical;
}

.studio-scorecard-editor {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.studio-scorecard-editor > label {
  display: grid;
  gap: 6px;
}

.scorecard-total {
  border: 1px solid #34495f;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.scorecard-total.ready {
  background: rgba(103, 217, 207, 0.1);
  border-color: rgba(103, 217, 207, 0.55);
}

.scorecard-total.warning {
  background: rgba(255, 178, 62, 0.1);
  border-color: rgba(255, 178, 62, 0.55);
}

.scorecard-total strong {
  color: #f4f7f9;
}

.scorecard-total span {
  color: #9fb0bf;
}

.scorecard-total .text-action {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #1d4ed8;
  justify-self: start;
  padding: 6px 10px;
}

.scorecard-category-list {
  display: grid;
  gap: 8px;
}

.scorecard-category-row {
  align-items: start;
  background: #0f1720;
  border: 1px solid #2c4056;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr) minmax(190px, 0.34fr);
  padding: 12px;
}

.scorecard-enable {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
  padding-top: 3px;
}

.scorecard-category-main {
  display: grid;
  gap: 6px;
}

.scorecard-category-name {
  color: #f4f7f9 !important;
  font-weight: 900;
}

.scorecard-category-main p,
.scorecard-category-main small {
  color: #9fb0bf;
  line-height: 1.35;
  margin: 0;
}

.scorecard-slider-cell {
  display: grid;
  gap: 8px;
}

.scorecard-slider-cell b {
  color: #67d9cf;
}

.scorecard-slider-cell input[type="range"] {
  accent-color: #ffb23e;
  padding: 0;
}

.script-studio-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 720px;
}

.script-map-panel {
  background: #111b26;
  border-right: 1px solid #2a394b;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
}

.script-map-head {
  align-items: center;
  border-bottom: 1px solid #2a394b;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.script-map-head span {
  color: #67d9cf;
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.script-map-head strong {
  color: #f4f7f9;
}

.script-map-add {
  border-bottom: 1px solid #2a394b;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
  padding: 8px 10px;
}

.script-map-add label {
  color: #9fb0bf;
  font-size: 0.68rem;
  font-weight: 900;
  grid-column: 1 / -1;
  text-transform: uppercase;
}

.script-map-add select {
  background: #0f1720;
  border: 1px solid #34495f;
}

.script-map-add button {
  background: #ffb23e;
  color: #141414;
}

.script-choice-popover {
  border-bottom: 1px solid #2a394b;
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  position: relative;
}

.script-choice-popover.hidden,
.script-studio-setup.hidden,
.script-ai-panel.hidden {
  display: none;
}

.script-choice-arrow {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 0;
  border-bottom: 12px solid #223247;
  height: 0;
  margin-left: 42px;
  width: 0;
}

.script-choice-head {
  align-items: center;
  background: #223247;
  border: 1px solid #34495f;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.script-choice-head strong {
  color: #f4f7f9;
  font-size: 0.9rem;
}

.script-choice-head button {
  background: transparent;
  border: 0;
  color: #9fb0bf;
  cursor: pointer;
  font-weight: 900;
}

.script-choice-back {
  background: #223247;
  border: 1px solid #34495f;
  color: #d7e1ea;
  cursor: pointer;
  font-weight: 900;
  min-height: 34px;
}

.script-choice-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.script-choice-list button {
  background: #172331;
  border: 1px solid #2c4056;
  color: #d7e1ea;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 10px;
  text-align: left;
}

.script-choice-list button:hover {
  border-color: #67d9cf;
}

.script-choice-list span,
.script-choice-list small {
  color: #9fb0bf;
  line-height: 1.35;
}

.script-choice-list em {
  background: rgba(103, 217, 207, 0.1);
  border-left: 3px solid #67d9cf;
  color: #9ce8df;
  font-style: normal;
  line-height: 1.35;
  padding: 6px 8px;
}

.script-map-list {
  display: grid;
  gap: 0;
  max-height: 680px;
  overflow: auto;
  padding: 0;
}

.script-map-count {
  background: #0f1720;
  border-bottom: 1px solid #2c4056;
  color: #67d9cf;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 8px 12px;
  text-transform: uppercase;
}

.script-map-empty {
  background: transparent;
  border-bottom: 1px solid #2c4056;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.script-map-empty span,
.script-map-node p,
.script-map-node cite {
  color: #9fb0bf;
  line-height: 1.35;
}

.script-map-node {
  background: transparent;
  border-bottom: 1px solid #26384c;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 10px 12px;
  position: relative;
}

.script-map-node > span {
  color: #67d9cf;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 800;
  padding-top: 3px;
}

.script-map-node strong {
  color: #f4f7f9;
  display: block;
  font-size: 0.96rem;
  line-height: 1.25;
  margin: 2px 0 3px;
}

.script-map-node small {
  color: #6f8498;
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.script-map-node p {
  margin: 0;
}

.script-map-node em {
  background: transparent;
  border-left: 2px solid #67d9cf;
  color: #9ce8df;
  display: block;
  font-style: normal;
  line-height: 1.35;
  margin-top: 5px;
  padding: 2px 0 2px 8px;
}

.script-map-node cite {
  display: block;
  font-style: normal;
  margin-top: 6px;
}

.script-map-node button {
  background: transparent;
  border: 0;
  color: #9fb0bf;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  justify-self: end;
  padding: 3px 0;
  text-transform: uppercase;
}

.script-map-node.objection {
  box-shadow: inset 3px 0 0 #ffb23e;
}

.script-map-node.action {
  box-shadow: inset 3px 0 0 #f36d6d;
}

.script-map-node.closing {
  box-shadow: inset 3px 0 0 #67d9cf;
}

.script-map-node.rep-target {
  box-shadow: inset 3px 0 0 #9f8cff;
}

.script-code-panel {
  background: #0b1118;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.script-code-editor {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 620px;
}

.script-line-numbers {
  background: #0f1720;
  border-right: 1px solid #243244;
  color: #586879;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 16px 12px;
  text-align: right;
  user-select: none;
}

.script-code-textarea {
  background: #0b1118;
  border: 0;
  color: #d7e1ea;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.96rem;
  line-height: 1.7;
  min-height: 620px;
  outline: none;
  padding: 16px 18px;
  resize: vertical;
  width: 100%;
}

.script-code-textarea::placeholder {
  color: #637487;
}

.script-helper-output {
  background: #101923;
  border-top: 1px solid #2a394b;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px 14px;
}

.script-helper-output strong {
  color: #ffb23e;
}

.script-helper-output p,
.script-helper-output span {
  color: #9fb0bf;
  margin: 0;
}

.script-helper-output ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.script-helper-output li {
  display: grid;
  gap: 3px;
}

.buyer-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-tab-buttons button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
}

.buyer-tab-buttons button.active {
  background: var(--teal);
  border-color: transparent;
  color: #071210;
}

.buyer-tab-editor {
  display: grid;
  gap: 12px;
}

.range-caption {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 4px;
}

.builder-nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.storyboard-preview {
  display: grid;
  gap: 10px;
}

.story-block {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.sales-cycle-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  margin-bottom: 18px;
}

.sales-cycle-graph {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cycle-stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  min-height: 150px;
  padding: 14px;
  position: relative;
}

.cycle-stage span {
  align-items: center;
  background: var(--amber);
  border-radius: 999px;
  color: #17100a;
  display: inline-flex;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.cycle-stage p,
.cycle-stage small {
  color: var(--muted);
  display: block;
  margin: 4px 0 0;
}

.cycle-stage button {
  grid-column: 1 / -1;
  justify-self: start;
}

.learning-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
}

.learning-panel strong {
  color: var(--teal);
}

.learning-panel p {
  color: var(--muted);
  margin: 0;
  white-space: pre-line;
}

.rep-option-box {
  background: rgba(88, 211, 196, 0.08);
  border: 1px solid rgba(88, 211, 196, 0.26);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.button.active {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.score-explainer {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.score-explainer p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 6px 0 0;
}

.phrase-tracker {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
}

.phrase-tracker strong {
  color: var(--teal);
}

.phrase-tracker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phrase-tracker span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 6px 9px;
}

.phrase-tracker span.used {
  background: rgba(88, 211, 196, 0.16);
  border-color: rgba(88, 211, 196, 0.62);
  color: var(--text);
}

.phrase-tracker span.required::after {
  color: var(--amber);
  content: " required";
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 4px;
  text-transform: uppercase;
}

.history-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
}

.history-rep-list {
  display: grid;
  gap: 10px;
}

.history-rep-list button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font-weight: 900;
  gap: 4px;
  min-height: 54px;
  padding: 10px 12px;
  text-align: left;
}

.history-rep-list button.active {
  background: var(--panel-strong);
  border-color: rgba(88, 211, 196, 0.62);
}

.invite-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.invite-row span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  margin-top: 4px;
}

.invite-row code {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal);
  display: inline-block;
  font-size: 0.84rem;
  margin-top: 8px;
  padding: 6px 8px;
}

.invite-row b {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 7px 10px;
  white-space: nowrap;
}

.invite-row b.sent {
  border-color: rgba(255, 181, 71, 0.52);
  color: var(--amber);
}

.invite-row b.signed {
  border-color: rgba(88, 211, 196, 0.52);
  color: var(--teal);
}

.invite-row b.blocked {
  border-color: rgba(255, 105, 105, 0.48);
  color: #ff8c8c;
}

.history-rep-list span,
.history-session-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.history-session-list,
.history-detail {
  display: grid;
  gap: 12px;
}

.history-session {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.history-session.active {
  background: var(--panel);
}

.history-session-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto auto;
}

.history-session-head > div {
  display: grid;
  gap: 4px;
}

.history-session-head b {
  color: var(--amber);
  font-size: 1.4rem;
}

.history-notes {
  background: rgba(88, 211, 196, 0.08);
  border: 1px solid rgba(88, 211, 196, 0.28);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.history-notes p {
  color: var(--muted);
  margin: 0;
}

.history-notes strong {
  color: var(--text);
}

.history-return-actions {
  margin: 2px 0 6px;
}

.history-transcript {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.assignment-people-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.assignment-picker-head {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.assignment-people-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.assignment-person-option {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px;
}

.assignment-person-option span {
  display: grid;
  gap: 3px;
}

.assignment-person-option small,
.saved-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.trainee-account {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

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

.trainee-summary-grid article,
.trainee-ledger-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.trainee-summary-grid span,
.trainee-ledger-row span,
.trainee-ledger-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.trainee-summary-grid strong {
  color: var(--teal);
  font-size: 1.35rem;
}

.trainee-account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trainee-account-grid section,
.interaction-detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.interaction-timeline {
  display: grid;
  gap: 10px;
}

.interaction-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.interaction-row > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interaction-row span {
  align-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.interaction-row small {
  color: var(--muted);
}

.interaction-row p {
  margin: 0;
}

.interaction-row.rep {
  border-color: rgba(88, 211, 196, 0.38);
}

.interaction-row.buyer {
  background: rgba(255, 255, 255, 0.03);
}

.story-block > span {
  align-items: center;
  background: var(--teal);
  border-radius: 6px;
  color: #071210;
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.story-block p {
  color: var(--muted);
  line-height: 1.45;
  margin: 4px 0 0;
}

.human-settings {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}

.human-settings legend {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 6px;
  text-transform: uppercase;
}

.human-settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

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

.checkbox-row input {
  min-height: auto;
  width: auto;
}

.suggestion-panel {
  display: grid;
  gap: 20px;
}

.builder-summary {
  display: grid;
  gap: 10px;
}

.summary-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.summary-card span,
.builder-summary p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.summary-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-checks span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 7px 9px;
}

.summary-checks span.done {
  border-color: rgba(88, 211, 196, 0.42);
  color: var(--teal);
}

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

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

.suggestion-group strong {
  color: var(--text);
}

.suggestion-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-group button {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 10px;
}

.prompt-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.prompt-details summary {
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}

.prompt-details[open] summary {
  margin-bottom: 12px;
}

.prompt-preview {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.saved-training-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.compact-head {
  align-items: start;
  margin-bottom: 14px;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

.saved-item div {
  display: grid;
  gap: 4px;
}

.saved-item span {
  color: var(--muted);
  line-height: 1.45;
}

.saved-item.disabled-member {
  opacity: 0.62;
}

.team-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.team-form {
  display: grid;
  gap: 14px;
}

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

.inline-select {
  min-width: 180px;
}

.inline-select select {
  min-height: 40px;
}

.admin-dashboard {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  text-align: left;
  padding: 0 12px;
}

.admin-nav button.active {
  background: var(--amber);
  border-color: transparent;
  color: #17120a;
}

.admin-component {
  display: none;
}

.admin-component.active {
  display: block;
}

.admin-tools {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
  margin: 18px 0;
}

.billing-settings,
.billing-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  margin: 18px 0;
}

.billing-settings button {
  align-self: end;
}

.billing-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.billing-metrics span,
.billing-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.billing-metrics strong {
  color: var(--teal);
}

.billing-table {
  display: grid;
  gap: 8px;
}

.billing-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(84px, 0.22fr));
  padding: 10px 12px;
}

.billing-row.header {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-row span:first-child {
  display: grid;
  gap: 3px;
}

.billing-row .positive {
  color: var(--teal);
}

.billing-row .negative {
  color: var(--danger);
}

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

.company-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.company-card-head span,
.company-member-row small {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  margin-top: 4px;
}

.company-member-list {
  display: grid;
  gap: 8px;
}

.company-member-row {
  align-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.25fr) minmax(120px, 0.25fr);
  padding: 10px 12px;
}

.sandbox-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 18px;
}

.sandbox-create {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.admin-user-row span {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.danger-action {
  border-color: rgba(255, 126, 105, 0.5);
  color: var(--danger);
}

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

.cycle-stage {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 14px;
}

.cycle-stage > span {
  align-items: center;
  background: var(--amber);
  border-radius: 6px;
  color: #17120a;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.cycle-stage p {
  color: var(--muted);
  line-height: 1.55;
  margin: 6px 0;
}

.cycle-stage small {
  color: var(--teal);
}

.locked {
  opacity: 0.62;
}

label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.35;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

body.light input,
body.light select,
body.light textarea {
  background: rgba(255, 255, 255, 0.72);
}

textarea {
  resize: vertical;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pill-row span {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  padding: 8px 12px;
}

.practice-flow-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
  max-width: 560px;
}

.practice-flow-controls .button {
  min-height: 38px;
  padding-inline: 14px;
}

.practice-flow-controls .button.active {
  box-shadow: 0 0 0 3px rgba(87, 205, 193, 0.18);
}

.practice-flow-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  min-width: 140px;
  text-align: right;
}

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

.scenario-panel,
.score-panel,
.response-form {
  display: grid;
  gap: 10px;
}

.scenario-brief {
  background: rgba(255, 178, 56, 0.09);
  border: 1px solid rgba(255, 178, 56, 0.2);
  border-radius: 8px;
  padding: 18px;
}

.scenario-brief p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.scenario-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 14px 0 0;
}

.scenario-meta div {
  border-top: 1px solid rgba(255, 178, 56, 0.18);
  padding-top: 8px;
}

.scenario-meta dt {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scenario-meta dd {
  color: var(--muted);
  margin: 2px 0 0;
}

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

.practice-drill-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 7px;
  padding: 9px;
}

.practice-drill-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.practice-drill-head h3 {
  font-size: 1.08rem;
  margin: 0;
}

.practice-drill-head .eyebrow {
  font-size: 0.64rem;
  margin-bottom: 3px;
}

.practice-attempt-status {
  font-size: 0.74rem;
}

.practice-objection-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
}

.practice-objection-box span {
  color: var(--amber);
  display: block;
  font-size: 0.64rem;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.practice-objection-box p {
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.22;
  margin: 0;
}

.rep-practice-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: end;
}

.rep-practice-tools button {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  min-width: 34px;
  padding: 0 9px;
}

.rep-practice-tools button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #06110f;
}

.rep-practice-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.practice-action-alert {
  background: #fff4db;
  border: 1px solid rgba(255, 177, 54, 0.42);
  border-left: 4px solid var(--amber);
  border-radius: 11px;
  color: #3b2a08;
  padding: 7px 9px;
}

.practice-action-alert strong {
  display: block;
  font-size: 0.78rem;
}

.rep-response-line {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  padding: 7px 9px;
}

.rep-response-line.primary {
  border-left: 4px solid var(--teal);
}

.rep-response-line span {
  color: var(--amber);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rep-response-line p {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.25;
  margin: 0;
}

.practice-hints {
  display: grid;
  gap: 5px;
}

.practice-assigned-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.practice-mode-switch {
  background: #fff7fb;
  border: 1px solid rgba(216, 116, 147, 0.18);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.practice-mode-switch button,
.assigned-practice-actions button,
.partner-row button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #574b63;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 0 12px;
}

.practice-mode-switch button.active,
.assigned-practice-actions button:first-child,
.partner-row button {
  background: #7b4fb6;
  color: #ffffff;
}

.assigned-practice-list,
.partner-list {
  display: grid;
  gap: 10px;
}

.assigned-practice-item,
.partner-row {
  align-items: center;
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.assigned-practice-item.active {
  border-color: rgba(123, 79, 182, 0.4);
  box-shadow: inset 4px 0 0 #7b6ee6;
}

.assigned-practice-item strong,
.partner-row strong {
  color: #2e2938;
  display: block;
}

.assigned-practice-item span,
.partner-row span,
.practice-attempt-status {
  color: #756b80;
  display: block;
  font-size: 0.84rem;
}

.assigned-practice-actions {
  display: flex;
  gap: 6px;
}

.assigned-practice-actions button:last-child {
  background: #fff;
  border: 1px solid rgba(216, 116, 147, 0.24);
  color: #574b63;
}

.partner-practice-panel,
.partner-room {
  display: grid;
  gap: 12px;
}

.partner-room {
  background: #edf8f3;
  border: 1px solid rgba(111, 183, 173, 0.3);
  border-radius: 14px;
  padding: 12px;
}

.practice-workspace {
  background: #fffdfb;
  border-radius: 18px;
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 430px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: visible;
  width: min(100%, 430px);
}

.practice-topline {
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid rgba(82, 72, 98, 0.1);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 8px;
}

.practice-focus-nav,
.practice-command-bar,
.practice-tabs {
  align-items: center;
  display: flex;
  gap: 6px;
}

.practice-focus-nav {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.practice-focus-nav button,
.practice-tabs button,
.practice-more-menu summary {
  background: #faf6f8;
  border: 1px solid rgba(82, 72, 98, 0.1);
  border-radius: 12px;
  color: #5c5266;
  cursor: pointer;
  font-weight: 850;
  min-height: 34px;
  padding: 5px 4px;
}

.practice-focus-nav button {
  align-items: center;
  display: grid;
  gap: 1px;
  justify-items: center;
}

.practice-focus-nav button b {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  color: #8b4770;
  display: inline-flex;
  font-size: 0.78rem;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.practice-focus-nav button span {
  font-size: 0.64rem;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.practice-focus-nav button.active,
.practice-tabs button.active {
  background: #fbe8f0;
  border-color: rgba(216, 116, 147, 0.26);
  color: #8b4770;
}

.practice-command-bar {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr 1.2fr 34px 34px 34px;
  justify-content: stretch;
  white-space: nowrap;
}

.practice-command-bar .button {
  border-radius: 12px;
  font-size: 0.78rem;
  min-height: 34px;
  min-width: 0;
  padding: 0 6px;
}

.practice-command-bar .icon-button {
  align-items: center;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  padding: 0;
}

.practice-command-bar .icon-button:active {
  background: #fbe8f0;
  color: #8b4770;
  transform: translateY(1px);
}

.practice-more-menu {
  position: relative;
}

.practice-more-menu summary {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
}

.practice-more-menu summary::-webkit-details-marker {
  display: none;
}

.practice-more-panel {
  background: #fff;
  border: 1px solid rgba(82, 72, 98, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(59, 45, 68, 0.15);
  display: grid;
  gap: 8px;
  max-height: min(420px, calc(100vh - 170px));
  min-width: min(280px, calc(100vw - 28px));
  overflow: auto;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(330px, calc(100vw - 28px));
  white-space: normal;
  z-index: 40;
}

.practice-more-panel label {
  font-size: 0.75rem;
  gap: 5px;
}

.practice-more-panel select,
.practice-more-panel .button {
  min-height: 36px;
}

.practice-workspace > .practice-flow-status {
  border-bottom: 1px solid rgba(82, 72, 98, 0.1);
  font-size: 0.76rem;
  min-width: 0;
  padding: 7px 10px;
  text-align: left;
}

.practice-tabs {
  border-bottom: 1px solid rgba(82, 72, 98, 0.12);
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
}

.practice-tabs button {
  min-height: 34px;
  padding: 4px 8px;
}

.practice-window {
  display: none;
  gap: 8px;
  padding: 10px;
}

.practice-window.active {
  display: grid;
}

.practice-notes-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
}

.practice-activity-notes {
  display: grid;
  gap: 10px;
}

.practice-activity-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.practice-activity-head h3 {
  font-size: 1rem;
  margin: 0;
}

.practice-activity-head span {
  background: #fff4f8;
  border: 1px solid rgba(216, 116, 147, 0.22);
  border-radius: 999px;
  color: #8b4770;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 8px;
}

.practice-activity-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.practice-activity-row {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 12px;
  color: #4c4358;
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 8px;
  text-align: left;
}

.practice-activity-row.active {
  border-color: rgba(111, 183, 173, 0.5);
  box-shadow: inset 4px 0 0 #6fb7ad;
}

.practice-activity-row strong {
  font-size: 0.86rem;
}

.practice-activity-row span {
  color: #7b7285;
  font-size: 0.72rem;
}

.practice-note-detail {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  padding: 10px;
}

.practice-note-detail h4 {
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.practice-note-detail p {
  color: #5e5368;
  font-size: 0.82rem;
  line-height: 1.3;
  margin: 0 0 7px;
}

.practice-workspace .conversation {
  max-height: 170px;
  min-height: 72px;
}

.practice-workspace .response-form label {
  font-size: 0.72rem;
  gap: 5px;
}

.practice-workspace .response-form textarea {
  border-radius: 12px;
  font-size: 0.9rem;
  min-height: 76px;
  padding: 9px;
}

.practice-workspace .response-form .form-actions {
  display: grid;
  gap: 5px;
  grid-template-columns: 1.25fr 1fr 1fr 0.75fr;
}

.practice-workspace .response-form .button {
  border-radius: 12px;
  font-size: 0.74rem;
  min-height: 34px;
  padding: 0 6px;
}

.practice-workspace #voice-status {
  font-size: 0.72rem;
  margin: 0;
}

.test-mode-lock {
  opacity: 0.72;
}

.conversation {
  display: grid;
  gap: 7px;
  max-height: 390px;
  min-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 78%;
  padding: 8px;
}

.message span {
  color: var(--amber);
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.message p {
  font-size: 0.84rem;
  line-height: 1.28;
  margin-bottom: 0;
}

.message strong {
  color: var(--teal);
  display: inline-block;
  margin-top: 10px;
}

.message.seller {
  background: rgba(88, 211, 196, 0.1);
  justify-self: end;
}

.message.buyer {
  background: rgba(255, 255, 255, 0.06);
}

#score-value {
  color: var(--amber);
  display: block;
  font-size: 4.6rem;
  line-height: 1;
}

.score-list {
  display: grid;
  gap: 10px;
}

.score-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.score-list b {
  color: var(--teal);
}

.score-list .miss b {
  color: var(--danger);
}

.score-list small {
  color: var(--muted);
}

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

.metrics span {
  color: var(--amber);
  font-weight: 900;
}

.metrics p {
  color: var(--muted);
  line-height: 1.6;
}

.pricing-page {
  display: grid;
  gap: 24px;
  min-height: 100vh;
  padding-top: 124px;
}

.pricing-hero {
  max-width: 860px;
}

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

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.pricing-card.featured {
  border-color: rgba(255, 178, 56, 0.62);
}

.pricing-card h3 {
  font-size: 2rem;
  margin: 0;
}

.pricing-card ul {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.5;
  margin: 0;
  padding-left: 18px;
}

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

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

.cost-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.cost-grid strong {
  color: var(--teal);
  font-size: 1.05rem;
}

.cost-grid span {
  color: var(--muted);
  line-height: 1.5;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
}

/* Friendly enterprise redesign */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 116, 147, 0.16), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(123, 110, 230, 0.12), transparent 28%),
    linear-gradient(180deg, #fffaf7 0%, #f7f1f6 48%, #f6f8f4 100%);
}

.topbar {
  background: rgba(255, 250, 247, 0.88);
  border-bottom-color: rgba(82, 72, 98, 0.12);
  box-shadow: 0 10px 30px rgba(78, 62, 84, 0.08);
}

body.light .topbar {
  background: rgba(255, 250, 247, 0.9);
}

.brand {
  color: #2e2938;
  letter-spacing: 0;
}

.brand span,
.profile-icon {
  background: linear-gradient(135deg, #d87493, #7b6ee6);
  border-radius: 12px;
  color: #ffffff;
}

nav a,
.header-workspace-nav summary {
  color: #665f72;
  font-weight: 750;
}

nav a:hover,
.header-workspace-nav details[open] summary {
  color: #7b4fb6;
}

.header-dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(78, 62, 84, 0.16);
  overflow: hidden;
}

.header-dropdown-menu button {
  background: #ffffff;
  border-bottom: 1px solid rgba(82, 72, 98, 0.09);
  color: #5e566b;
}

.header-dropdown-menu button:hover {
  background: #f8eff5;
  color: #7b4fb6;
}

.profile-chip,
.icon-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(82, 72, 98, 0.14);
  border-radius: 14px;
}

.profile-text small,
.eyebrow {
  color: #c45f83;
}

.hero-overlay,
body.light .hero-overlay {
  background: linear-gradient(90deg, rgba(255, 250, 247, 0.98) 0%, rgba(255, 250, 247, 0.9) 42%, rgba(255, 250, 247, 0.18) 78%);
}

h1,
h2,
h3 {
  color: #2e2938;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
}

.hero-copy,
.muted,
.status {
  color: #706879;
}

.button,
.auth-tabs button,
.mini-tabs button {
  border-radius: 999px;
}

.button.primary,
.auth-tabs button.active,
.mini-tabs button.active,
.button.active {
  background: linear-gradient(135deg, #d87493, #f59b63);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(216, 116, 147, 0.22);
  color: #ffffff;
}

.auth-section .button,
.auth-section .auth-tabs button {
  border-radius: 8px;
}

.auth-section .button.primary {
  background: #246a5b;
  border-color: #246a5b;
  box-shadow: none;
  color: #ffffff;
}

.auth-section .auth-tabs button.active {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.13);
  box-shadow: 0 4px 10px rgba(78, 62, 84, 0.08);
  color: #252334;
}

.button.secondary {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.16);
  color: #463e52;
}

.button.ghost {
  border-color: rgba(82, 72, 98, 0.16);
  color: #706879;
}

.panel,
.metrics article,
.price-panel,
.pricing-card,
.saved-item,
.admin-user-row,
.company-card,
.invite-row,
.history-session {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(82, 72, 98, 0.13);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(78, 62, 84, 0.1);
}

input,
select,
textarea,
body.light input,
body.light select,
body.light textarea {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.18);
  border-radius: 14px;
  color: #2e2938;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b678d8;
  box-shadow: 0 0 0 4px rgba(182, 120, 216, 0.15);
  outline: none;
}

.pill-row span,
.tag-grid span,
.reuse-chip-list button,
.reuse-chip-list span {
  background: #fff6f8;
  border-color: rgba(216, 116, 147, 0.18);
  border-radius: 999px;
  color: #6d5e72;
}

.workspace,
.builder-form {
  background: transparent;
}

.manager-command-center,
.reports-page-shell {
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 116, 147, 0.14), transparent 30%),
    linear-gradient(180deg, #fffaf7 0%, #f8f2f7 100%);
  color: #2e2938;
}

.command-header,
.command-kpi-card,
.command-panel,
.branch-card,
.reports-page-shell .reports-panel,
.report-preview-card,
.manager-alert-row,
.queue-row,
.coach-capacity-card,
.activity-row {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(82, 72, 98, 0.13);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(78, 62, 84, 0.09);
}

.command-action {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.14);
  border-radius: 16px;
  color: #403849;
}

.command-action.primary,
.command-panel .button.primary {
  background: linear-gradient(135deg, #7b6ee6, #d87493);
  border-color: transparent;
}

.command-table th {
  background: #f7edf5;
  color: #675a73;
}

.command-table td {
  border-top-color: rgba(82, 72, 98, 0.1);
}

.status-badge.high {
  background: #fde7e7;
  color: #a33b4b;
}

.status-badge.medium {
  background: #fff0de;
  color: #a95c22;
}

.status-badge.low {
  background: #e8f5ee;
  color: #357761;
}

.status-badge.neutral {
  background: #f0edf5;
  color: #5c5368;
}

.script-studio-shell {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(78, 62, 84, 0.12);
  overflow: hidden;
  position: relative;
}

.script-studio-titlebar,
.script-studio-menubar,
.script-studio-context,
.script-map-panel,
.script-code-panel {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.12);
}

.script-studio-titlebar strong,
.script-map-head strong,
.script-map-node strong {
  color: #2e2938;
}

.script-studio-titlebar span,
.script-map-head span,
.script-studio-context span,
.script-map-add label,
.script-map-empty span,
.script-map-node p,
.script-map-node cite {
  color: #756b80;
}

.script-studio-menubar select,
.script-studio-menubar button,
.script-map-add select,
.script-map-add button,
.script-map-head button {
  background: #fff7fb;
  border: 1px solid rgba(216, 116, 147, 0.18);
  border-radius: 999px;
  color: #574b63;
  margin: 4px;
}

.script-studio-menubar button:hover,
.script-studio-menubar button.active,
.script-map-head button:hover {
  background: #f0eafa;
  color: #6f55d5;
}

.script-studio-menubar button.active {
  box-shadow: inset 0 -3px 0 #d87493;
}

.script-studio-context b {
  color: #7b4fb6;
}

.script-studio-setup {
  background: rgba(46, 41, 56, 0.24);
  border: 0;
  bottom: 18px;
  left: 18px;
  overflow: auto;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 118px;
  z-index: 20;
}

.script-map-list,
.script-code-editor,
.script-training-helper {
  background: #fffaf7;
}

.script-map-node {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.12);
  border-left-color: #7b6ee6;
  border-radius: 14px;
}

.script-map-node.objection {
  border-left-color: #d87493;
}

.script-map-node.action {
  border-left-color: #f59b63;
}

.script-map-node.closing {
  border-left-color: #6fb7ad;
}

.script-map-node.rep-target {
  border-left-color: #88a995;
}

.script-map-node > span {
  color: #7b6ee6;
}

.script-code-editor {
  border-color: rgba(82, 72, 98, 0.12);
}

.script-line-numbers {
  background: #f6eef4;
  color: #a495ac;
}

.script-code-textarea {
  background: #ffffff;
  color: #2e2938;
}

.script-studio-setup-card,
.script-ai-panel {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(78, 62, 84, 0.16);
}

.script-studio-setup-card {
  margin: 18px auto;
  max-width: 1120px;
}

.script-studio-setup-body:has(.studio-library-picker) {
  display: block;
  padding: 0;
}

.studio-library-picker {
  display: block;
  min-height: 420px;
}

.studio-open-scripts {
  align-content: start;
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  max-height: 560px;
  overflow: auto;
  padding: 18px;
}

.studio-library-search-panel {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 18px;
}

.studio-library-search-panel {
  background: #fff8fb;
}

.studio-library-section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.studio-library-section-head strong {
  color: #2e2938;
}

.studio-library-section-head span {
  color: #756b80;
  font-size: 0.82rem;
}

.studio-library-picker input,
.studio-library-picker textarea {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.16);
  border-radius: 12px;
  color: #2e2938;
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
}

.studio-library-results {
  align-content: start;
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.studio-library-result,
.studio-selected-item {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  color: #2e2938;
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
}

.studio-library-result {
  cursor: pointer;
}

.studio-library-result:hover,
.studio-library-result.selected {
  border-color: rgba(123, 79, 182, 0.42);
  box-shadow: 0 8px 22px rgba(78, 62, 84, 0.1);
}

.studio-library-result span,
.studio-selected-item span,
.studio-library-result small,
.studio-library-empty span {
  color: #756b80;
  line-height: 1.35;
}

.studio-library-result small {
  font-size: 0.76rem;
}

.studio-selected-item {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.studio-selected-item button,
.studio-library-form button {
  background: #f0eafa;
  border: 1px solid rgba(123, 79, 182, 0.22);
  border-radius: 999px;
  color: #6f55d5;
  cursor: pointer;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.studio-library-add-new {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.studio-library-add-new summary {
  color: #7b4fb6;
  cursor: pointer;
  font-weight: 900;
}

.studio-library-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.studio-library-form label {
  color: #574b63;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}

.studio-library-form button {
  background: #7b4fb6;
  border-color: #7b4fb6;
  color: #ffffff;
  justify-self: start;
}

.studio-library-empty {
  background: #fff;
  border: 1px dashed rgba(82, 72, 98, 0.2);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.scorecard-category-row,
.script-ai-result .helper-draft-card {
  background: #fffaf7;
  border-color: rgba(82, 72, 98, 0.12);
  border-radius: 14px;
}

.scorecard-total.ready {
  background: #edf8f3;
  border-color: rgba(111, 183, 173, 0.42);
}

.scorecard-total.warning {
  background: #fff1e9;
  border-color: rgba(245, 155, 99, 0.42);
}

.scorecard-total strong,
.scorecard-category-name,
.scorecard-slider-cell b,
.script-studio-setup-head strong {
  color: #2e2938;
}

.scorecard-total span,
.scorecard-category-main p,
.scorecard-category-main small {
  color: #706879;
}

.content-library-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(216, 116, 147, 0.13), transparent 30%),
    linear-gradient(180deg, #fffaf7 0%, #f8f2f7 100%);
  color: #2e2938;
  display: grid;
  gap: 16px;
  margin: -28px -42px 0;
  min-height: calc(100vh - 88px);
  padding: 22px clamp(16px, 3vw, 34px) 34px;
}

.content-library-head {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.content-library-head h2 {
  margin-bottom: 8px;
}

.content-quality-alerts {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(82, 72, 98, 0.13);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(78, 62, 84, 0.08);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.content-quality-alerts strong {
  color: #2e2938;
}

.content-quality-alerts span {
  color: #706879;
  font-size: 0.9rem;
}

.content-library-tabs {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.content-library-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #665f72;
  cursor: pointer;
  font-weight: 850;
  padding: 10px 14px;
}

.content-library-tabs button.active {
  background: linear-gradient(135deg, #d87493, #7b6ee6);
  color: #ffffff;
}

.content-library-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
}

.content-search-panel,
.content-selection-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(82, 72, 98, 0.13);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(78, 62, 84, 0.1);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.content-selection-panel {
  position: sticky;
  top: 92px;
}

.content-panel-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.content-panel-head h3 {
  margin: 0;
}

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

.content-filter-grid label:first-child {
  grid-column: 1 / -1;
}

.content-result-list {
  display: grid;
  gap: 12px;
  max-height: 880px;
  overflow: auto;
  padding-right: 4px;
}

.content-result-card,
.content-preview-box,
.selected-content-group,
.no-content-results,
.duplicate-hint {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.content-result-card.selected {
  border-color: rgba(216, 116, 147, 0.42);
  box-shadow: 0 10px 24px rgba(216, 116, 147, 0.11);
}

.content-result-card strong,
.content-preview-box h3,
.selected-content-group h4 {
  color: #2e2938;
  margin: 0;
}

.content-result-card p,
.content-preview-box p,
.selected-content-group p {
  color: #706879;
  margin: 0;
}

.content-review-link summary {
  color: #7d4bc2;
  cursor: pointer;
  font-weight: 800;
}

.content-review-link p {
  margin-top: 8px;
}

.content-card-meta,
.content-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-card-meta span,
.content-tag-row span {
  background: #f4edf6;
  border: 1px solid rgba(82, 72, 98, 0.09);
  border-radius: 999px;
  color: #665f72;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 8px;
}

.content-tag-row span {
  background: #fff2f6;
  color: #9d4e70;
}

.selected-content-list {
  display: grid;
  gap: 10px;
}

.selected-content-group article {
  align-items: start;
  border-top: 1px solid rgba(82, 72, 98, 0.1);
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 10px;
}

.selected-content-group article strong,
.selected-content-group article span {
  grid-column: 1;
}

.selected-content-group article button {
  background: transparent;
  border: 0;
  color: #c45f83;
  cursor: pointer;
  font-weight: 850;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.content-form form,
.content-form {
  display: grid;
  gap: 12px;
}

.duplicate-hint {
  background: #fff1e9;
  color: #8d4c26;
}

@media (max-width: 980px) {
  .topbar {
    gap: 12px;
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .profile-chip > span {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
  }

  .two-column,
  .auth-section,
  .pricing,
  .pricing-grid,
  .cost-grid,
  .practice-grid,
  .metrics,
  .dashboard-grid,
  .builder-grid,
  .saved-training-grid,
  .history-grid,
  .admin-dashboard,
  .admin-tools,
  .billing-settings,
  .billing-metrics,
  .billing-row,
  .company-member-row,
  .sandbox-grid,
  .template-grid,
  .buyer-profile-grid,
  .script-workspace,
  .setting-workspace,
  .builder-side-layout,
  .script-resource-summary-grid,
  .script-ai-controls,
  .script-compose-row,
  .script-document-head,
  .script-split-preview,
  .human-settings-grid,
  .sales-cycle-form,
  .command-header,
  .command-action-grid,
  .command-kpi-grid,
  .command-two-column,
  .report-preview-grid,
  .branch-card-grid,
  .content-library-head,
  .content-library-layout,
  .content-filter-grid,
  .content-form-grid,
  .practice-topline,
  .practice-notes-layout,
  .coach-agent-grid,
  .coach-rep-head,
  .coach-rep-row,
  .coach-session-card,
  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .manager-command-center,
  .content-library-page,
  .reports-page-shell {
    margin: -18px -20px 0;
    padding: 16px;
  }

  .content-selection-panel {
    position: static;
  }

  .command-filters {
    grid-template-columns: 1fr;
  }

  .manager-alert-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .practice-assigned-panel {
    border-radius: 0;
    margin-left: -14px;
    margin-right: -14px;
  }

  .assigned-practice-item,
  .partner-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .assigned-practice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .practice-mode-switch {
    border-radius: 12px;
  }

  .auth-card-head,
  .onboarding-grid,
  .login-field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .script-insert-ribbon {
    flex-wrap: wrap;
  }

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

  .script-studio-context,
  .script-studio-workbench,
  .script-studio-setup-body,
  .scorecard-category-row {
    grid-template-columns: 1fr;
  }

  .script-map-panel {
    border-bottom: 1px solid #2a394b;
    border-right: 0;
  }

  .script-map-list {
    max-height: 320px;
  }

  .script-command-center {
    justify-content: start;
  }

  .script-file-status {
    justify-self: start;
  }

  .script-document-textarea {
    margin: 18px 12px;
    min-height: 560px;
    padding: 34px 28px;
    width: calc(100% - 24px);
  }

  .script-resource-panel {
    position: static;
  }

  .practice-focus-nav,
  .practice-command-bar {
    overflow-x: visible;
    padding-bottom: 0;
    width: 100%;
  }

  .practice-command-bar {
    justify-content: stretch;
  }

  .practice-more-panel {
    left: auto;
    min-width: min(300px, calc(100vw - 28px));
    right: 0;
    width: min(330px, calc(100vw - 28px));
  }

  .practice-drill-card,
  .response-form {
    gap: 8px;
  }

  .practice-drill-head {
    align-items: start;
    display: grid;
  }

  .rep-practice-tools {
    justify-content: start;
  }

  .rep-practice-tools button {
    flex: 0 0 auto;
  }

  #continuous-voice {
    order: -1;
  }

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

  .builder-stepper {
    grid-template-columns: 1fr 1fr;
  }

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

  .admin-actions {
    justify-content: start;
  }

  .history-session-head {
    grid-template-columns: 1fr;
  }

  .team-actions {
    justify-content: start;
  }

  .wide-panel {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 3rem;
  }

  .hero-content {
    padding-top: 120px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .builder-title-row,
  .builder-nav,
  .auth-card-head,
  .onboarding-grid,
  .login-field-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 100%;
  }

  footer {
    display: grid;
    gap: 8px;
  }

  .manager-command-center,
  .content-library-page,
  .reports-page-shell {
    margin-left: -14px;
    margin-right: -14px;
  }

  .command-header,
  .command-panel,
  .command-kpi-card {
    border-radius: 6px;
    padding: 14px;
  }

  .command-table {
    min-width: 760px;
  }
}

/* Unified Script Studio skin. Keep this last so older editor rules cannot leak through. */
.script-studio-shell {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(78, 62, 84, 0.12);
  color: #2e2938;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

.script-studio-workbench {
  max-height: calc(100vh - 138px);
  min-height: 0;
  overflow: hidden;
}

.script-map-panel,
.script-code-panel {
  min-height: 0;
}

.script-code-panel {
  max-height: calc(100vh - 158px);
  overflow-y: auto;
  padding-right: 6px;
}

.script-studio-titlebar,
.script-studio-menubar,
.script-map-panel,
.script-map-add,
.script-code-panel,
.script-choice-popover,
.script-training-helper {
  background: #ffffff;
  border-color: rgba(82, 72, 98, 0.12);
  color: #2e2938;
}

.script-studio-titlebar,
.script-studio-menubar,
.script-map-add,
.script-choice-popover {
  border-bottom: 1px solid rgba(82, 72, 98, 0.12);
}

.script-studio-titlebar {
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
}

.script-studio-titlebar strong {
  flex: 0 0 auto;
  font-size: 1rem;
}

.script-studio-titlebar span {
  flex: 1 1 auto;
  max-width: 46vw;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-studio-menubar {
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
}

.script-studio-menubar .script-context-note {
  background: #f8f2fb;
  border-bottom: 1px solid rgba(82, 72, 98, 0.12);
  color: #6f6179;
  flex: 1 0 100%;
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 8px 10px;
}

.script-studio-menubar > span:not(.script-context-note) {
  background: #ffffff;
  color: #6f6179;
}

.script-studio-menubar select,
.script-studio-menubar button,
.script-map-add select,
.script-map-add button {
  background: #fff7fb;
  border: 1px solid rgba(216, 116, 147, 0.18);
  border-radius: 10px;
  color: #574b63;
  min-height: 34px;
}

.script-studio-menubar select {
  flex: 0 0 112px;
  max-width: 112px;
}

.script-studio-menubar button {
  flex: 0 0 auto;
}

.script-studio-menubar button:hover,
.script-studio-menubar button.active,
.script-map-add button:hover {
  background: #f0eafa;
  color: #6f55d5;
}

.script-map-add button {
  background: #7b4fb6;
  border-color: #7b4fb6;
  color: #ffffff;
}

.script-choice-arrow {
  border-bottom-color: #ffffff;
}

.script-choice-popover > strong,
.script-map-node strong,
.script-training-helper strong {
  color: #2e2938;
}

.script-choice-list button {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 12px;
  color: #2e2938;
}

.script-choice-list button:hover {
  border-color: rgba(123, 79, 182, 0.35);
  box-shadow: 0 8px 22px rgba(78, 62, 84, 0.1);
}

.script-summary-screen {
  display: grid;
  gap: 14px;
}

.script-summary-intro,
.script-summary-script,
.script-summary-row {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.script-summary-intro strong,
.script-summary-script strong,
.script-summary-row strong {
  color: #2e2938;
}

.script-summary-intro p,
.script-summary-script p {
  color: #6f6179;
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.script-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.script-summary-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.script-summary-row span,
.script-summary-script span {
  color: #9a5d7d;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.script-summary-row button,
.script-summary-actions button {
  background: #fff7fb;
  border: 1px solid rgba(216, 116, 147, 0.26);
  border-radius: 999px;
  color: #574b63;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 12px;
}

.script-summary-row button:hover,
.script-summary-actions button:hover {
  background: #f0eafa;
  color: #6f55d5;
}

.studio-script-folder {
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.studio-script-folder + .studio-script-folder {
  margin-top: 12px;
}

.studio-script-folder header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.studio-script-folder header strong {
  color: #2e2938;
}

.studio-script-folder header span {
  color: #756b80;
  font-size: 0.78rem;
  font-weight: 800;
}

.script-choice-list span,
.script-choice-list small,
.script-map-count,
.script-map-empty span,
.script-map-node p,
.script-map-node cite,
.script-training-helper li span {
  color: #756b80;
}

.script-choice-list em,
.script-map-node em {
  background: #fff1e9;
  border-left: 3px solid #f59b63;
  color: #6f4632;
}

.script-map-response {
  display: block;
  margin-top: 8px;
}

.script-map-action-list,
.script-map-monitor-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.script-map-action-row,
.script-map-monitor-row {
  align-items: start;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.script-map-action-row {
  background: #f0eafa;
  border-left: 3px solid #7b6ee6;
}

.script-map-monitor-row {
  background: #edf8f3;
  border-left: 3px solid #6fb7ad;
}

.script-map-action-row b,
.script-map-monitor-row b {
  color: #2e2938;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.script-map-action-row span,
.script-map-monitor-row span {
  color: #574b63;
  grid-column: 1;
  line-height: 1.35;
}

.script-map-action-row button,
.script-map-monitor-row button {
  align-self: start;
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.14);
  border-radius: 999px;
  color: #756b80;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 28px;
  padding: 0 10px;
}

.script-map-list,
.script-code-editor,
.script-training-helper {
  background: #fffaf7;
}

.script-map-node {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-left: 4px solid #7b6ee6;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(78, 62, 84, 0.06);
}

.script-code-editor {
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 16px;
}

.script-line-numbers {
  background: #f6eef4;
  color: #a495ac;
}

.script-code-textarea {
  background: #ffffff;
  color: #2e2938;
}

.script-code-textarea.script-line-jump {
  animation: script-line-jump 1.2s ease;
}

@keyframes script-line-jump {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(123, 79, 182, 0);
  }
  25%,
  70% {
    box-shadow: inset 0 0 0 3px rgba(123, 79, 182, 0.28);
  }
}

.script-code-textarea::placeholder {
  color: #9a8fa3;
}

.script-map-list {
  align-content: start;
  gap: 8px;
  max-height: min(620px, calc(100vh - 430px));
  min-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
}

.script-map-count {
  align-items: center;
  background: #fff7fb;
  border: 1px solid rgba(216, 116, 147, 0.18);
  border-radius: 12px;
  color: #574b63;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0;
  margin: 0 0 6px;
  padding: 8px 10px;
  text-transform: none;
}

.script-map-count span {
  color: #574b63;
  font-size: 0.82rem;
  font-weight: 900;
}

.script-map-count b {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 999px;
  color: #756b80;
  font-size: 0.74rem;
  padding: 3px 8px;
}

.script-map-list::-webkit-scrollbar {
  width: 10px;
}

.script-map-list::-webkit-scrollbar-track {
  background: #f6eef4;
}

.script-map-list::-webkit-scrollbar-thumb {
  background: #d9cadd;
  border: 2px solid #f6eef4;
  border-radius: 999px;
}

.script-map-node {
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 0;
  padding: 10px 12px;
}

.script-map-node > span {
  padding-top: 1px;
}

.script-map-node div {
  display: grid;
  gap: 4px;
}

.script-map-node small {
  line-height: 1;
}

.script-map-node strong {
  line-height: 1.15;
}

.script-map-node p {
  line-height: 1.32;
  margin: 2px 0 0;
}

.script-map-node cite,
.script-map-response {
  line-height: 1.3;
  margin-top: 4px;
}

.script-map-action-list,
.script-map-monitor-list {
  gap: 5px;
  margin-top: 5px;
}

.script-map-action-row,
.script-map-monitor-row {
  gap: 2px;
  padding: 7px 9px;
}

.script-map-head-actions {
  display: flex;
  gap: 6px;
}

.script-map-outline {
  border-left: 3px solid rgba(123, 110, 230, 0.72);
  display: grid;
  gap: 5px;
  padding: 7px 0 7px 10px;
}

.script-map-outline.customer-read {
  background: rgba(111, 183, 173, 0.08);
  border-left-color: #61b7a8;
}

.script-map-outline.helper-only {
  background: rgba(216, 116, 147, 0.06);
  border-left-color: #d87493;
}

.script-map-outline.objection {
  border-left-color: #61b7a8;
}

.script-map-outline.product,
.script-map-outline.conversation {
  border-left-color: #61b7a8;
}

.script-map-outline.action {
  border-left-color: #f59b63;
}

.script-map-outline.rep-target {
  border-left-color: #88a995;
}

.script-map-outline-head {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 30px minmax(0, 1fr) auto auto auto;
}

.script-map-outline-head span {
  color: #7b6ee6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
}

.script-map-outline-head small {
  color: #756b80;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.script-map-outline-head em {
  color: #61a697;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.script-map-outline.helper-only .script-map-outline-head em {
  color: #a75d78;
}

.script-map-outline button,
.script-map-guidance button {
  background: transparent;
  border: 0;
  color: #9a7080;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 4px;
}

.script-line-link {
  color: #7b4fb6 !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: left;
  white-space: nowrap;
}

.script-map-edit {
  background: transparent;
  border: 0;
  color: #2e2938;
  font: 0.92rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  min-height: 30px;
  overflow: hidden;
  padding: 2px 4px 4px;
  resize: none;
  width: 100%;
}

.script-map-edit.customer-line {
  color: #1e6f63;
  font-weight: 800;
}

.script-map-edit.response-line {
  color: #7a4961;
}

.script-map-edit.helper-line {
  color: #9a5b1f;
}

.script-map-edit:focus {
  background: #ffffff;
  box-shadow: inset 3px 0 0 #7b6ee6;
  outline: 1px solid rgba(123, 79, 182, 0.2);
}

.script-map-static-line {
  color: #2e2938;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.35;
  margin: 0;
}

.script-map-guidance {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 4px 0 4px 10px;
}

.script-map-guidance b {
  color: #574b63;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.script-map-guidance span {
  color: #574b63;
  grid-column: 1;
  line-height: 1.3;
}

.script-map-guidance .script-map-edit {
  grid-column: 1;
}

.response-guidance {
  border-left: 3px solid #d87493;
}

.action-guidance {
  border-left: 3px solid #f59b63;
}

.script-item-legend {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.script-item-legend span {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 6px 8px;
}

.script-item-legend .read {
  background: rgba(111, 183, 173, 0.12);
  color: #1f7166;
}

.script-item-legend .helper {
  background: rgba(216, 116, 147, 0.1);
  color: #95526c;
}

.monitor-guidance {
  border-left: 3px solid #6fb7ad;
}

.helper-guidance {
  border-left: 3px solid #7b6ee6;
}

.script-helper-output,
.script-training-helper {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  box-shadow: none;
  color: #2e2938;
  margin-top: 12px;
  min-height: 0;
  padding: 12px;
  position: static;
}

.script-helper-output strong,
.script-training-helper strong {
  color: #7b4fb6;
}

.script-helper-output p,
.script-helper-output span,
.script-helper-output li,
.script-training-helper p,
.script-training-helper span,
.script-training-helper li {
  color: #574b63;
}

.script-helper-output ul,
.script-training-helper ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.studio-scorecard-editor {
  background: #ffffff;
  color: #2e2938;
}

.studio-scorecard-editor label,
.scorecard-enable {
  color: #574b63;
}

.studio-scorecard-editor input,
.studio-scorecard-editor textarea,
.scorecard-category-name,
.scorecard-category-main textarea {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.16);
  border-radius: 12px;
  color: #2e2938 !important;
  font: inherit;
}

.studio-scorecard-editor input:focus,
.studio-scorecard-editor textarea:focus {
  border-color: rgba(123, 79, 182, 0.45);
  box-shadow: 0 0 0 3px rgba(123, 79, 182, 0.12);
  outline: 0;
}

.scorecard-category-row {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(78, 62, 84, 0.06);
}

.scorecard-category-main p,
.scorecard-category-main small,
.scorecard-total span {
  color: #706879;
}

.scorecard-slider-cell {
  background: #ffffff;
  border-left: 1px solid rgba(82, 72, 98, 0.08);
  border-radius: 0 14px 14px 0;
  padding: 10px 12px;
}

.scorecard-slider-cell b {
  color: #2e2938;
}

.scorecard-slider-cell input[type="range"] {
  accent-color: #d87493;
}

.scorecard-total {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
}

.sales-component-card {
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.14);
  border-radius: 10px;
  color: #2e2938;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.sales-component-card:hover {
  border-color: rgba(123, 79, 182, 0.38);
  box-shadow: 0 8px 18px rgba(78, 62, 84, 0.1);
}

.sales-component-card span,
.sales-action-head span,
.sales-script-head span {
  color: #8f4c73;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sales-component-card strong,
.sales-script-head strong,
.sales-action-head strong {
  color: #2e2938;
}

.sales-component-card p,
.sales-component-card small {
  color: #756b80;
  line-height: 1.35;
  margin: 0;
}

.sales-script-builder,
.sales-action-editor {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.sales-script-head,
.sales-action-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.sales-script-lines {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.sales-script-empty {
  background: #fffaf7;
  border: 1px dashed rgba(123, 79, 182, 0.3);
  border-radius: 12px;
  padding: 14px;
}

.sales-script-empty p {
  color: #756b80;
  margin: 6px 0 0;
}

.sales-script-line {
  align-items: start;
  background: #fffaf7;
  border: 1px solid rgba(82, 72, 98, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  grid-template-columns: 78px minmax(0, 1fr) 82px;
  padding: 6px;
}

.sales-script-line.active {
  border-color: rgba(123, 79, 182, 0.48);
  box-shadow: 0 0 0 3px rgba(123, 79, 182, 0.12);
}

.sales-line-select,
.sales-line-actions button,
.sales-line-wait {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.14);
  border-radius: 8px;
  color: #574b63;
  cursor: pointer;
  font-weight: 800;
  min-height: 34px;
}

.sales-line-select {
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 5px 7px;
  text-align: left;
}

.sales-line-select span {
  color: #6f55d5;
  font-size: 0.88rem;
}

.sales-line-select small {
  color: #756b80;
  font-size: 0.72rem;
}

.sales-line-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  justify-content: flex-end;
}

.sales-script-line > .sales-line-wait {
  display: none;
}

.sales-line-actions button {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.sales-line-actions svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.sales-line-wait {
  align-items: center;
  color: #574b63;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  width: 34px;
}

.sales-line-wait input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.sales-line-wait span {
  align-items: center;
  display: inline-flex;
  font-size: 1.05rem;
  justify-content: center;
}

.sales-line-wait:has(input:checked) {
  background: rgba(123, 79, 182, 0.12);
  border-color: rgba(123, 79, 182, 0.48);
  color: #6f55d5;
}

.sales-script-line textarea,
.sales-action-editor textarea,
.sales-action-duration input {
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.16);
  border-radius: 10px;
  color: #2e2938;
  font: inherit;
  width: 100%;
}

.sales-script-line textarea,
.sales-action-editor textarea {
  min-height: 40px;
  padding: 7px 9px;
  resize: vertical;
}

.sales-action-duration {
  align-items: center;
  color: #756b80;
  display: flex;
  font-size: 0.84rem;
  font-weight: 800;
  gap: 10px;
}

.sales-action-duration input {
  max-width: 90px;
  min-height: 34px;
  padding: 0 8px;
}

.sales-action-editor #sales-script-status {
  display: none;
}

.voice-preview-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.voice-preview-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(82, 72, 98, 0.16);
  border-radius: 10px;
  color: #574b63;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.voice-preview-button:hover {
  border-color: rgba(123, 79, 182, 0.38);
  color: #7b4fb6;
}

.voice-preview-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

@media (max-width: 760px) {
  .team-builder-layout {
    grid-template-columns: 1fr;
  }

  .sales-script-line {
    grid-template-columns: 1fr;
  }

  .sales-line-actions {
    display: flex;
    grid-column: 1;
    grid-row: auto;
  }

  .sales-action-head {
    align-items: stretch;
    flex-direction: column;
  }

}
