:root {
  --ink: #142638;
  --ink-deep: #0d1c2d;
  --teal: #0d756e;
  --mint: #8be6d6;
  --lime: #d7f2a9;
  --peach: #ffc8a9;
  --paper: #f7f8f5;
  --line: #dde8e4;
  --muted: #60747a;
  color: var(--ink);
  background: var(--paper);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 3%, #d6f2e9 0, transparent 23%),
    radial-gradient(circle at 35% 39%, #e9e7fb 0, transparent 34%),
    #f7f8f5;
}

h1, h2, h3 { color: var(--ink); }
.muted { color: var(--muted); }

.shell aside {
  width: 244px;
  padding: 29px 21px;
  overflow: hidden;
  background:
    radial-gradient(circle at -30% -3%, #236c70 0, transparent 36%),
    radial-gradient(circle at 115% 88%, #21445a 0, transparent 43%),
    linear-gradient(158deg, #142c3b 0%, #0c1d2d 100%);
  border-right: 1px solid #a3e7d424;
  box-shadow: 12px 0 32px #10253813;
}
.shell aside::after {
  content: "";
  position: absolute;
  left: -94px;
  bottom: 126px;
  width: 310px;
  height: 310px;
  border: 1px solid #89e4d01c;
  border-radius: 50%;
  box-shadow: 0 0 0 42px #89e4d00a, 0 0 0 102px #89e4d008;
  pointer-events: none;
}
.brand { gap: 11px; color: #f5fffd; font-size: 19px; }
.brand-symbol {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #aff4df, #d9f5ac);
  color: #143d40;
  box-shadow: 0 8px 26px #78d9c34a, inset 0 1px 1px #fff8;
  font-size: 12px;
}
.brand small { color: #a5cfc6; letter-spacing: 1.45px; }
.navlabel { color: #89aeb2; margin-top: 66px; }
.nav { border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.nav.active {
  color: white;
  border-color: #9ce7d450;
  background: linear-gradient(90deg, #70dcca2c, #a9e2d910);
  box-shadow: inset 3px 0 0 #95e9d7;
}
.nav.active::before { width: 8px; height: 8px; background: #a5f1d4; box-shadow: 0 0 0 4px #a5f1d423; }
.nav:hover { transform: translateX(2px); }
.sidebar-bottom {
  z-index: 1;
  left: 19px;
  right: 19px;
  bottom: 21px;
  padding: 16px;
  border: 1px solid #9bdec82d;
  border-radius: 15px;
  background: #d8fff40c;
  backdrop-filter: blur(10px);
}
.sidebar-user { display: flex; align-items: center; gap: 7px; }
.sidebar-user .dot { width: 8px; height: 8px; margin: 0; background: #adf0c3; box-shadow: 0 0 0 4px #adf0c31d, 0 0 13px #adf0c3a8; }
.sidebar-bottom small { color: #a6bdc0; }

.workspace {
  margin-left: 244px;
  width: calc(100% - 244px);
  max-width: 1660px;
  padding: 31px 39px 48px;
}
.workspace > header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 260px;
  padding: 38px 43px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #87dbc34f;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 16%, #27828285 0, transparent 28%),
    linear-gradient(112deg, #112b3d 0%, #134d57 58%, #147266 100%);
  box-shadow: 0 22px 55px #1b4b5261, inset 0 1px 1px #c4f6df30;
  margin-bottom: 19px;
}
.workspace > header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(90deg, #d3fff824 1px, transparent 1px), linear-gradient(#d3fff824 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.workspace > header::after {
  right: -110px;
  top: -207px;
  width: 490px;
  height: 490px;
  border-color: #b7fff13b;
  box-shadow: 0 0 0 39px #b7fff110, 0 0 0 93px #b7fff108;
}
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.workspace > header .eyebrow { display: flex; align-items: center; gap: 10px; color: #b5f2e3; font-size: 10px; letter-spacing: 2px; }
.eyebrow-line { display: inline-block; width: 20px; height: 2px; background: #a0efdd; box-shadow: 0 0 13px #a0efdd; }
.workspace > header h1 { margin: 0 0 12px; color: #fbfffd; font-size: clamp(31px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -2.1px; font-weight: 730; }
.workspace > header h1 em { color: #b7f1da; font-style: normal; }
.workspace > header p { max-width: 500px; margin: 0; color: #d6e9e7; line-height: 1.5; font-size: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.hero-tags span { padding: 6px 9px; border: 1px solid #b9e7dc4d; border-radius: 6px; background: #e4fff013; color: #daf7ec; font-size: 9px; font-weight: 760; letter-spacing: 1px; }
.workspace > header .pill {
  position: absolute;
  z-index: 3;
  right: 22px;
  top: 20px;
  padding: 8px 11px;
  color: #173d3f;
  background: #ddf3b8;
  box-shadow: 0 4px 18px #051f222b;
  font-size: 10px;
  letter-spacing: .3px;
}
.hero-art { position: absolute; z-index: 1; right: 75px; top: 50%; width: 230px; height: 230px; transform: translateY(-50%); }
.hero-orbit { position: absolute; inset: 0; border: 1px solid #b4f5e366; border-radius: 50%; box-shadow: 0 0 27px #85e6cf12; }
.orbit-one { inset: 18px; border-style: dashed; opacity: .6; }
.orbit-two { inset: -20px; opacity: .38; }
.hero-core { position: absolute; inset: 40px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 29% 22%, #e6fff9, #93eadc 34%, #239e9a 74%, #136b79); box-shadow: 0 0 0 11px #a9f9e128, 0 0 0 24px #a9f9e10d, 0 20px 50px #001d2f80, inset -14px -17px 29px #0e667961; }
.hero-core::after { content: ""; position: absolute; inset: 10px; border: 1px solid #effff689; border-radius: 50%; }
.hero-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 65px; }
.hero-wave i { width: 4px; height: 20px; border-radius: 8px; background: #f8fffb; box-shadow: 0 0 9px #e5fff8; animation: voice-pulse 1.65s ease-in-out infinite; }
.hero-wave i:nth-child(2n) { height: 37px; animation-delay: -.31s; }
.hero-wave i:nth-child(3n) { height: 56px; animation-delay: -.8s; }
.hero-wave i:nth-child(5n) { height: 13px; animation-delay: -1.1s; }
.hero-art-label { position: absolute; padding: 6px 9px; border: 1px solid #a6eee063; border-radius: 6px; background: #0e4753d1; color: #d9fff3; font-size: 8px; font-weight: 790; letter-spacing: 1.25px; box-shadow: 0 8px 24px #00192f42; }
.label-top { left: -56px; top: 10px; }
.label-bottom { right: -31px; bottom: 4px; }
@keyframes voice-pulse { 0%, 100% { transform: scaleY(.75); opacity: .78; } 50% { transform: scaleY(1.13); opacity: 1; } }

.stats { gap: 13px; margin-bottom: 20px; }
.stats article {
  position: relative;
  min-height: 119px;
  overflow: hidden;
  padding: 19px 22px;
  border: 1px solid #dce9e7;
  border-radius: 16px;
  background: linear-gradient(130deg, #fff 48%, #f6fbf9);
  box-shadow: 0 10px 26px #1335480c;
}
.stats article::before { position: absolute; right: 17px; top: 10px; color: #237e7840; font-size: 37px; font-weight: 820; line-height: 1; letter-spacing: -2px; }
.stat-calls::before { content: "01"; }
.stat-active::before { content: "02"; }
.stat-usage::before { content: "03"; }
.stats article::after { content: ""; position: absolute; left: 0; bottom: 0; width: 50%; height: 3px; background: linear-gradient(90deg, #52c5af, transparent); }
.stats .stat-active { background: linear-gradient(128deg, #eff8f4, #e2f7ef); }
.stats .stat-active::after { background: linear-gradient(90deg, #6ebda0, transparent); }
.stats .stat-usage { background: linear-gradient(128deg, #fff, #f7f5ff); }
.stats .stat-usage::after { background: linear-gradient(90deg, #a4a1e4, transparent); }
.stats span { color: #5e7676; font-size: 11px; font-weight: 720; letter-spacing: .3px; }
.stats strong { position: relative; z-index: 1; margin: 9px 0 1px; color: #183b40; font-size: 31px; letter-spacing: -1.3px; }
.stats small { position: relative; z-index: 1; color: #74888a; }

.panel {
  border: 1px solid #dce8e5;
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 0 10px 30px #203d4710, inset 0 1px 0 #fff;
}
.section-heading { padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid #e8efeb; }
.section-heading h2 { color: #17323e; font-size: 20px; }
.section-heading p { color: #718488; }
.section-heading > span { color: #36736c; background: #e5f4ed; border: 1px solid #d0e9dc; }
.recipients { background: linear-gradient(125deg, #fffdfa 45%, #f9fdf9); }
.recipient-item { border: 1px solid #dde9e6; background: #fff; transition: transform .16s, box-shadow .16s; }
.recipient-item:hover { transform: translateY(-2px); box-shadow: 0 6px 15px #1c535018; }
.recipient-item strong { color: #1b3b42; }
.recipient-form { border-color: #d4e7df; background: linear-gradient(145deg, #e9f7f1, #f8fbf2); }
.recipient-form h3 { color: #18473f; }
.recipient-form button:not(:disabled) { background: #176e63; box-shadow: 0 4px 11px #0d625125; }

.composer { border-top: 4px solid #3fb6ac; }
.conversation { border-top: 4px solid #9ba5e3; }
.composer label { margin: 17px 0; color: #365661; font-size: 12px; letter-spacing: .1px; }
input:not([type=checkbox]), select, textarea { min-height: 44px; border: 1px solid #d6e4e0; border-radius: 10px; background: #fbfdfa; color: #1b3840; transition: border-color .18s, box-shadow .18s, background .18s; }
textarea { background: #fcfdfb; }
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: #91c7b8; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { outline: none; border-color: #24a99b; background: #fff; box-shadow: 0 0 0 4px #35b9a628; }
.composer select { padding-right: 30px; background-color: #fbfdfa; }
.call-details { justify-content: space-between; flex-wrap: wrap; gap: 7px; color: #72898b; }
.call-details span { padding: 5px 8px; border: 1px solid #e0ebe7; border-radius: 7px; background: #f5faf7; }
.primary {
  min-height: 50px;
  border-radius: 11px;
  color: #0e3032;
  background: linear-gradient(110deg, #9ae9cc, #daf1a2);
  box-shadow: 0 8px 20px #32997842, inset 0 1px 0 #ffffffaa;
  font-size: 14px;
  letter-spacing: .15px;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.primary:hover:enabled { background: linear-gradient(110deg, #8ce1c3, #cff092); transform: translateY(-2px); box-shadow: 0 11px 25px #32997855; }
.primary:active:enabled { transform: translateY(0); }
.budget { border-color: #dde8e4; background: #f5f8f7; color: #516c6f; }
.budget strong { color: #315554; }
.script-preview { border-color: #b7ded2; border-left-color: #23a996; background: linear-gradient(140deg, #e9faf3, #f9fcf6); }
.script-preview strong { color: #146d65; }
.setup { background: #fff9e9; border-color: #f0ddb1; color: #765d34; }
.alert { background: #fff3ef; border-color: #f1cbbf; }

.conversation { background: linear-gradient(160deg, #fffdfa 56%, #f9fafb); }
.conversation .section-heading > div { min-width: 0; }
.conversation .section-heading p { overflow-wrap: anywhere; }
.empty { position: relative; overflow: hidden; padding: 88px 12px 100px; background: radial-gradient(circle at center 44%, #e7f8f3, transparent 50%); }
.empty-signal { display: flex; align-items: center; justify-content: center; gap: 5px; width: 88px; height: 88px; margin: 0 auto 20px; border: 1px solid #bee6dd; border-radius: 50%; background: #dbf4ec; box-shadow: 0 0 0 10px #d9f3ea7a, 0 0 0 23px #e5f7f04d; }
.empty-signal i { width: 4px; height: 16px; border-radius: 5px; background: #38a99e; }
.empty-signal i:nth-child(2n) { height: 29px; }
.empty-signal i:nth-child(4) { height: 39px; }
.empty h3 { color: #214651; font-weight: 730; }
.empty p { color: #648087; }
.transcript { padding: 5px 5px 5px 2px; max-height: 440px; }
.utterance { position: relative; padding: 15px 16px 15px 47px; margin: 0 27px 13px 0; border: 1px solid #e1e9ee; border-radius: 13px 13px 13px 3px; background: #f3f6fb; box-shadow: 0 3px 10px #233c5010; }
.utterance::before { content: ""; position: absolute; left: 16px; top: 19px; width: 15px; height: 15px; border-radius: 5px; background: linear-gradient(135deg, #a3a4ec, #c7c6f3); box-shadow: 0 0 0 3px #e3e3fb; }
.utterance.recipient { margin: 0 0 13px 27px; border-color: #d7ebe3; border-radius: 13px 13px 3px 13px; background: #ebf8f1; }
.utterance.recipient::before { border-radius: 50%; background: linear-gradient(135deg, #7ed8b7, #b6e8cc); box-shadow: 0 0 0 3px #d6f1df; }
.speaker { color: #637b86; font-size: 10px; letter-spacing: 1px; }
.utterance.recipient .speaker { color: #3b806f; }
.utterance p { color: #244049; font-size: 13px; line-height: 1.55; }
.call-toolbar { color: #688189; }
.result { border-color: #bfe2d0; background: linear-gradient(145deg, #e6f7eb, #f7fdf5); box-shadow: inset 3px 0 0 #49b991; }
.result h3 { color: #245947; }
.badge { border: 1px solid #e1e9e9; }
.badge.completed { border-color: #b7dec4; }
.badge.in-progress, .badge.ringing { border-color: #bfd1ef; }
.danger { border: 1px solid #f4d5ca; }

.auditions { background: linear-gradient(170deg, #fffdfa, #fafcff); }
.audition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.audition-grid > div { position: relative; overflow: hidden; min-width: 0; padding: 15px; border-radius: 13px; border-color: #e2e9e8; background: #fff; box-shadow: 0 3px 12px #133d4710; transition: transform .18s, box-shadow .18s, border-color .18s; }
.audition-grid > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #75cdbb; }
.audition-grid > div[data-preview-id^="gemini-live/"]::before { background: linear-gradient(90deg, #9ea1e8, #c9b9ef); }
.audition-grid > div[data-preview-id^="grok/"]::before { background: linear-gradient(90deg, #48c3c1, #91eadb); }
.audition-grid > div[data-preview-id^="openai-live/"]::before { background: linear-gradient(90deg, #f5ad9a, #f4d6ad); }
.audition-grid > div:hover { transform: translateY(-3px); border-color: #a5d6cb; box-shadow: 0 10px 20px #173b4a18; }
.audition-grid strong { color: #243e4a; line-height: 1.35; }
.audition-grid audio { height: 38px; margin-top: 4px; }
.voice-drag-handle { border-color: #c5d8d6; background: #f1f7f5; color: #406c72; }
.voice-visibility { color: #667e82; }
.voice-visibility input, .consent input { accent-color: #137e76; }
.hidden-voices { border-color: #e1e9e9; }
.hidden-voice { border-color: #dfebe8; background: #f7faf9; }
.auditions > .small { color: #6c8289; }

.history { overflow: hidden; }
.history .table-wrap { max-height: 560px; overflow: auto; border: 1px solid #e8efed; border-radius: 11px; }
.history thead { position: sticky; top: 0; z-index: 1; background: #edf5f3; }
.history th { padding: 13px 11px; color: #4f7377; font-weight: 790; }
.history td { padding: 13px 11px; color: #385057; border-color: #e8efee; }
.history tbody tr:nth-child(even) { background: #f9fbfa; }
.history tbody tr:hover { background: #eff8f4; }
.text-button { color: #097c71; font-weight: 750; }
.text-button:hover { text-decoration: underline; }
footer { color: #79898b; }

.login { border-radius: 22px; border-color: #d5e7e0; box-shadow: 0 28px 75px #142f3b24; }
.login button { background: linear-gradient(110deg, #9ae9cc, #daf1a2); color: #133e3f; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #38b8a7; outline-offset: 3px; }

@media (max-width: 1250px) {
  .workspace { padding: 27px 29px 43px; }
  .hero-art { right: 31px; transform: translateY(-50%) scale(.81); transform-origin: right center; }
  .hero-copy { max-width: 57%; }
  .audition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .shell aside { width: 195px; }
  .shell aside .brand { gap: 8px; font-size: 17px; }
  .shell aside .brand-symbol { flex-basis: 36px; width: 36px; height: 36px; }
  .shell aside .nav { padding: 12px 10px; gap: 9px; font-size: 13px; }
  .workspace { width: calc(100% - 195px); margin-left: 195px; }
  .hero-copy { max-width: 72%; }
  .workspace > header h1 { font-size: 30px; letter-spacing: -1.4px; }
  .hero-art { right: -20px; transform: translateY(-50%) scale(.57); }
  .hero-art-label { display: none; }
}
@media (max-width: 760px) {
  .hero-art { opacity: .34; right: -50px; transform: translateY(-50%) scale(.64); }
  .hero-copy { max-width: 82%; }
  .workspace > header h1 { font-size: 34px; }
  .audition-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .shell aside { position: relative; width: 100%; padding: 13px 17px; }
  .shell aside::after, .navlabel, .nav, .sidebar-bottom { display: none; }
  .brand { font-size: 16px; }
  .brand-symbol { width: 35px; height: 35px; border-radius: 10px; }
  .shell aside .brand-symbol { flex-basis: 35px; width: 35px; height: 35px; }
  .workspace { width: 100%; margin: 0; padding: 14px 12px 30px; }
  .workspace > header { min-height: 0; padding: 29px 24px 28px; border-radius: 18px; }
  .workspace > header h1 { font-size: 32px; letter-spacing: -1.45px; }
  .workspace > header p { font-size: 13px; }
  .workspace > header .pill { right: 14px; top: 13px; padding: 6px 8px; font-size: 8px; }
  .hero-copy { max-width: 100%; }
  .hero-art { display: none; }
  .hero-tags { margin-top: 19px; }
  .hero-tags span { font-size: 8px; padding: 5px 7px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stats article { min-height: 108px; padding: 16px; }
  .stats .stat-usage { grid-column: span 2; min-height: 93px; }
  .stats strong { font-size: 26px; }
  .panel { padding: 19px; border-radius: 15px; }
  .section-heading h2 { font-size: 18px; }
  .recipient-layout { grid-template-columns: 1fr; gap: 14px; }
  .recipient-fields { grid-template-columns: 1fr; }
  .call-details { justify-content: flex-start; }
  .history .table-wrap { max-height: 480px; }
}
@media (max-width: 360px) {
  .workspace > header { padding-top: 51px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave i { animation: none; }
  .nav, .primary, .recipient-item, .audition-grid > div { transition: none; }
}
