:root {
  --paper: #f6f3ec;
  --card: #ffffff;
  --ink: #1d1b16;
  --soft: #6d685e;
  --line: #e5e0d4;
  --green: #17624f;
  --green-deep: #12211c;
  --green-soft: #e2efe9;
  --amber: #a86300;
  --amber-soft: #fbefd8;
  --red: #b3382c;
  --red-soft: #fae6e3;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--soft);
}

.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  background: var(--green-deep);
  color: #d5dfda;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
}

.logo i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid #6fd3b3;
}

.side nav { display: grid; gap: 4px; margin-top: 34px; flex: 1; align-content: start; }

.side nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.side nav a:hover { background: rgba(255, 255, 255, 0.06); }

.side nav a.on { background: rgba(111, 211, 179, 0.16); color: #ffffff; }

.leave {
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  color: #9fb0a9;
  cursor: pointer;
}

.leave:hover { color: #ffffff; }

#view { padding: 44px 52px 90px; max-width: 1180px; width: 100%; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-head h1 { font-size: 34px; line-height: 1.15; }

.page-head p { margin: 6px 0 0; color: var(--soft); }

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 14px;
}

.back::before { content: "\2190  "; }

.back:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn.solid { background: var(--green); color: #ffffff; }

.btn.solid:hover { background: #124f40; }

.btn.line { background: var(--card); border-color: var(--line); }

.btn.line:hover { border-color: var(--ink); }

.btn.wait { background: var(--amber-soft); color: var(--amber); cursor: default; }

.btn.hang { background: var(--red); color: #ffffff; }

.btn.wide { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.text {
  background: none;
  border: none;
  padding: 6px 0;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.text:hover { text-decoration: underline; }

.text.red { color: var(--red); }

label {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}

input, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 400;
  outline: none;
}

input:focus, select:focus { border-color: var(--green); }

.oops { color: var(--red); font-size: 13px; min-height: 20px; margin: 10px 0 0; }

.fine { color: var(--green); font-size: 13px; min-height: 20px; margin: 10px 0 0; }

.note { color: var(--soft); font-size: 14px; margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.agent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.agent.failed { border-color: #e6bdb7; }

.agent-top h3 { font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }

.agent-top span { color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }

.agent-top:hover h3 { color: var(--green); }

.agent footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.line-no { margin: 0; font-size: 13px; font-weight: 600; }

.track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.track li { height: 5px; border-radius: 3px; background: var(--line); }

.track li.done { background: var(--green); }

.track li.now { background: #e0a23a; animation: fade 1.1s ease-in-out infinite; }

@keyframes fade { 50% { opacity: 0.35; } }

.blank {
  padding: 64px 24px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.blank h2 { font-size: 26px; }

.blank p { color: var(--soft); margin: 8px 0 22px; }

.wizard { max-width: 620px; }

.wizard-steps { display: flex; gap: 22px; margin-bottom: 18px; color: var(--soft); font-weight: 600; }

.wizard-steps .on { color: var(--green); border-bottom: 2px solid var(--green); }

.wizard-steps .past { color: var(--ink); }

.wizard-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.wizard-card h2 { font-size: 26px; line-height: 1.2; }

.wizard-card > p { color: var(--soft); margin: 8px 0 0; }

.rows { display: grid; gap: 4px; margin: 14px 0 8px; }

.wizard-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }

.split { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

.know {
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.know p { margin: 0 0 8px; }

.know ul { margin: 0; padding-left: 18px; }

.know li { margin-bottom: 4px; }

.svc { width: 100%; border-collapse: collapse; margin-bottom: 10px; }

.svc td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }

.svc tr:first-child td { border-top: none; padding-top: 0; }

.svc td:first-child span { display: block; color: var(--soft); font-size: 13px; }

.svc td:not(:first-child) { white-space: nowrap; font-weight: 600; text-align: right; }

details { border-top: 1px solid var(--line); padding: 10px 0; }

details:first-of-type { border-top: none; padding-top: 0; }

summary { cursor: pointer; font-weight: 600; }

details p { margin: 8px 0 0; color: var(--soft); }

.panel {
  position: sticky;
  top: 24px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.panel h4:not(:first-child) { margin-top: 22px; }

.panel label:first-of-type { margin-top: 0; }

.panel .btn { margin-top: 6px; }

.panel .text { display: block; margin-top: 8px; }

.panel dl { margin: 0; }

.panel dt { font-size: 12px; color: var(--soft); margin-top: 10px; }

.panel dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.panel p { margin: 10px 0 0; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: #ece8de;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.tag.booked, .tag.completed { background: var(--green-soft); color: var(--green); }

.tag.interested, .tag.in_progress { background: var(--amber-soft); color: var(--amber); }

.tag.not_interested, .tag.cancelled { background: var(--red-soft); color: var(--red); }

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}

.log { width: 100%; border-collapse: collapse; }

.log th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}

.log td { padding: 14px 18px; border-bottom: 1px solid var(--line); }

.log tbody tr { cursor: pointer; }

.log tbody tr:hover { background: #faf8f3; }

.log tbody tr:last-child td { border-bottom: none; }

.script {
  padding: 8px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.say { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }

.say:first-child { border-top: none; }

.say span { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--soft); padding-top: 2px; }

.say.us span { color: var(--green); }

.say p { margin: 0; }

.script .note { padding: 16px 0; }

.day { margin-bottom: 26px; }

.day h3 { font-size: 20px; margin-bottom: 10px; }

.slot {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 10px;
}

.slot time { font-weight: 700; }

.slot div span, .slot div em { display: block; color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }

.slot.off { border-left-color: var(--line); }

.slot.off time, .slot.off strong { text-decoration: line-through; color: var(--soft); }

.stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--paper);
  overflow-y: auto;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--green);
}

.pre { width: 440px; max-width: 100%; text-align: center; }

.pre h2 { font-size: 32px; line-height: 1.15; }

.pre p { color: var(--soft); }

.pre label { text-align: left; }

.pre .hint { font-size: 13px; margin: 14px 0 0; }

.dial {
  display: block;
  width: 100%;
  margin: 18px 0 8px;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.dial:hover { background: #124f40; }

.dial:disabled { opacity: 0.5; }

.pre .text { text-align: center; }

.live {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  width: 980px;
  max-width: 100%;
  align-items: start;
}

.live-main { text-align: center; }

.orb {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 18px auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #49b596, var(--green));
  transition: transform 0.3s;
}

.orb::before, .orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
}

.orb.speaking::before { animation: ring 1.5s ease-out infinite; }

.orb.speaking::after { animation: ring 1.5s ease-out 0.75s infinite; }

.orb.thinking { animation: fade 1.1s ease-in-out infinite; }

.orb.listening { transform: scale(0.9); }

.orb.initializing { background: #c9c3b4; }

@keyframes ring {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(1.5); opacity: 0; }
}

.live-main h2 { font-size: 26px; }

.clock { margin: 2px 0 18px; color: var(--soft); font-variant-numeric: tabular-nums; }

.caps {
  height: 210px;
  overflow-y: auto;
  padding: 16px 20px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cap { margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--green); }

.cap.them { border-left-color: #c9c3b4; color: var(--soft); }

.controls { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

.check {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.check ul { list-style: none; margin: 0; padding: 0; }

.check li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }

.check li:first-child { border-top: none; padding-top: 0; }

.check li i {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.check li.wait i { border-color: #e0a23a; background: var(--amber-soft); }

.check li.done i { border-color: var(--green); background: var(--green); }

.check li span { display: block; color: var(--soft); overflow-wrap: anywhere; }

.check li.done span, .check li.wait span { color: var(--ink); }

.check li small { color: var(--amber); font-weight: 600; }

.gate { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }

.gate-pitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: var(--green-deep);
  color: #d5dfda;
}

.gate-pitch .logo { padding: 0; margin-bottom: 60px; }

.gate-pitch h1 { font-size: 40px; line-height: 1.15; color: #ffffff; max-width: 480px; }

.gate-pitch p { max-width: 420px; margin-top: 18px; }

.gate-form { display: grid; place-items: center; padding: 40px 24px; }

.gate-form form { width: 340px; max-width: 100%; }

.gate-form h2 { font-size: 28px; margin-bottom: 8px; }

.gate-form .btn { margin-top: 8px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
  }
  .logo { flex: 1; }
  .side nav { order: 3; width: 100%; grid-auto-flow: column; margin-top: 4px; }
  .side nav a { text-align: center; padding: 8px 6px; }
  #view { padding: 26px 16px 70px; }
  .page-head h1 { font-size: 28px; }
  .split, .live { grid-template-columns: 1fr; }
  .panel { position: static; }
  .slot { grid-template-columns: 1fr; gap: 6px; }
  .stage { place-items: start center; }
  .gate { grid-template-columns: 1fr; }
  .gate-pitch { padding: 36px 24px; }
  .gate-pitch .logo { margin-bottom: 28px; }
  .gate-pitch h1 { font-size: 28px; }
  .wizard-card { padding: 22px; }
}
