:root {
  color-scheme: light;
  --navy: #222953;
  --navy-deep: #151a38;
  --orange: #ef5626;
  --orange-dark: #c63d17;
  --aqua: #00a3a3;
  --yellow: #ffc83d;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #151a2d;
  --muted: #667085;
  --line: #d8e0ee;
  --danger: #b42318;
  --focus: #ffc83d;
  --shadow: 0 24px 70px rgba(21, 26, 56, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(239, 86, 38, 0.16), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(0, 163, 163, 0.15), transparent 30%),
    linear-gradient(135deg, #f9fbff 0%, #edf3ff 48%, #fff6ef 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(245, 247, 251, 0.96);
}

.login-screen.hidden {
  display: none;
}

.login-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-logo {
  width: 174px;
  height: auto;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(480px, 1fr) 340px;
  gap: 18px;
  padding: 18px;
}

.brand-rail,
.main-stage,
.settings-panel {
  min-width: 0;
  border: 1px solid rgba(216, 224, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.brand-rail {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 22px;
  color: white;
  background:
    linear-gradient(180deg, rgba(34, 41, 83, 0.98), rgba(21, 26, 56, 0.98)),
    var(--navy);
  border-color: rgba(255, 255, 255, 0.08);
}

.adm-logo {
  width: 176px;
  max-width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 8px;
  background: white;
}

.app-mark-wrap {
  display: grid;
  gap: 16px;
}

.app-mark {
  width: 86px;
  height: 86px;
}

.brand-rail .subtitle,
.brand-rail .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.brand-rail h1 {
  color: white;
}

.status-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.status-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-stage {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.settings-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.settings-heading {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-deep);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 30px;
}

.status {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: white;
  text-align: center;
  font-weight: 900;
}

.status.live {
  border-color: rgba(0, 163, 163, 0.35);
  color: #006b6b;
  background: #e7fbfb;
}

.context-strip {
  display: grid;
  gap: 10px;
}

.context-item {
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.context-item span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.context-item strong {
  display: block;
  color: white;
  font-size: 14px;
  line-height: 1.25;
}

.prospect-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(239, 86, 38, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    var(--surface);
}

.prospect-topline {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 18px;
}

.avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--navy));
  font-size: 24px;
  font-weight: 900;
}

.prospect-score {
  min-width: 92px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  color: var(--navy);
  background: #fff2df;
  text-align: center;
}

.prospect-score span,
.prospect-grid span,
.call-script-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prospect-score strong {
  color: var(--orange-dark);
  font-size: 32px;
  line-height: 1;
}

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

.prospect-grid div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.prospect-grid strong {
  font-size: 16px;
  line-height: 1.35;
}

.call-script-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-left: 5px solid var(--aqua);
  border-radius: 8px;
  background: #ebffff;
}

.call-script-preview p {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
}

.call-console {
  display: grid;
  grid-template-columns: auto minmax(220px, auto) auto auto;
  gap: 12px;
  align-items: center;
  justify-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.recording-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.recording-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.recording-player {
  width: 100%;
}

.recording-link {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: white;
  background: var(--aqua);
  font-weight: 900;
  text-decoration: none;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

select,
input,
button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.mic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 12px 30px rgba(239, 86, 38, 0.28);
}

.mic-button[aria-pressed="true"] {
  background: var(--danger);
}

.mic-icon {
  width: 14px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.mic-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

.secondary-button,
.hangup-button,
.profile-button,
.preview-button {
  padding: 0 18px;
  color: var(--navy);
  background: #e9eef8;
}

.preview-button {
  color: white;
  background: var(--navy);
}

.profile-button {
  min-height: 44px;
  white-space: nowrap;
}

.hangup-button {
  color: white;
  background: #7f1d1d;
}

.secondary-button:disabled,
.hangup-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.timeline {
  min-height: 150px;
  padding: 2px 0 0;
  color: var(--muted);
}

.event {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .settings-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .brand-rail,
  .main-stage,
  .settings-panel {
    padding: 16px;
  }

  .settings-panel,
  .prospect-grid,
  .call-console {
    grid-template-columns: 1fr;
  }

  .prospect-topline {
    grid-template-columns: 56px 1fr;
  }

  .prospect-score {
    grid-column: 1 / -1;
    text-align: left;
  }

  .stage-header {
    display: grid;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 24px;
  }

  .mic-button,
  .preview-button,
  .hangup-button,
  .secondary-button,
  .profile-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }

  button:hover {
    transform: none;
  }
}
