:root {
  --navy: #0B1F3A;
  --navy-mid: #143052;
  --hivis: #FFD100;
  --ink: #111827;
  --muted: #4B5563;
  --line: #D1D5DB;
  --paper: #F4EFE4;
  --site: #E7E1D4;
  --ok: #15803D;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 10% 0%, #f7f1e4 0%, transparent 42%),
    var(--site);
  color: var(--ink);
}

.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--hivis) 0 10px, #111 10px 20px);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: var(--navy);
  color: #fff;
  gap: 0.75rem;
}

.brand { display: flex; gap: 0.7rem; align-items: center; }
.mark {
  width: 2.4rem; height: 2.4rem;
  background: var(--hivis); color: var(--navy);
  font-family: var(--cond); font-weight: 800;
  font-size: 1.2rem; letter-spacing: 0.04em;
  display: grid; place-items: center;
}
.word {
  font-family: var(--cond);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.sub { color: #c9d4e3; font-size: 0.82rem; margin-top: 0.15rem; }

.top-right { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: flex-end; }

.live-pill {
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid #3a5474;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  color: #d7e3f3;
}
.dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}
.home {
  color: var(--hivis);
  font-size: 0.82rem;
  text-decoration: none;
}
.home:hover { text-decoration: underline; }

.banner {
  background: var(--navy);
  color: #e8eef6;
  padding: 0.45rem 1.2rem 0.85rem;
  font-size: 0.88rem;
}

.compare {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: #fff8e6;
  border-bottom: 1px solid #e6d7a8;
  align-items: stretch;
}
.compare-card, .stat {
  background: #fff;
  border: 1px solid #eadfb8;
  padding: 0.65rem 0.75rem;
}
.compare-card.us { border-left: 5px solid var(--ok); }
.compare-card.them { border-left: 5px solid #9a3412; }
.compare .k, .stat .l { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.compare .v {
  font-family: var(--cond);
  font-size: 2rem;
  line-height: 1;
  margin: 0.15rem 0;
}
.compare-card.them .v { color: #9a3412; }
.compare .hint { font-size: 0.75rem; color: var(--muted); }
.vs {
  align-self: center;
  font-family: var(--cond);
  font-size: 1.2rem;
  color: #9a3412;
}
.stat .n {
  font-family: var(--cond);
  font-size: 2rem;
  line-height: 1;
  margin: 0.2rem 0;
}

.desk {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(14rem, 18rem) 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem 1.6rem;
  align-items: start;
}

.steve-ticket {
  background: #fffdf3;
  border: 3px solid var(--navy);
  box-shadow: 4px 4px 0 var(--navy);
  padding: 0.85rem 0.9rem 1rem;
}
.ticket-k {
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--navy);
}
.ticket-job {
  font-family: var(--cond);
  font-size: 1.55rem;
  line-height: 1.05;
  margin: 0.25rem 0 0.7rem;
}
.steve-ticket dl { display: grid; gap: 0.65rem; }
.steve-ticket dt {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.steve-ticket dd { font-size: 0.92rem; margin-top: 0.12rem; }

.jobs {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 36rem;
}
.jobs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.jobs-head h1 {
  font-family: var(--cond);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.jobs-head button, .chips button, #composer button, #newJob {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
}
#jobList { list-style: none; }
#jobList li {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  background: #fff;
}
#jobList li.active { background: #fff8d6; }
#jobList .name { font-weight: 600; }
#jobList .preview { color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.35rem;
  background: #e5e7eb;
}
.badge.new { background: #dbeafe; }
.badge.qualifying { background: #fef3c7; }
.badge.qualified { background: #dcfce7; }

.phone-wrap { display: grid; place-items: start center; }
.phone {
  width: min(100%, 26rem);
  background: #0e1621;
  border-radius: 1.6rem;
  padding: 0.7rem 0.55rem 0.7rem;
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.28);
}
.notch {
  width: 7rem; height: 0.45rem;
  background: #1c2838;
  border-radius: 999px;
  margin: 0.15rem auto 0.55rem;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem 0.6rem;
  color: #e8eef6;
}
.who { font-weight: 600; }
.meta { color: #93a4b8; font-size: 0.75rem; margin-top: 0.1rem; }
.thread {
  background: #ece5dd;
  min-height: 22rem;
  max-height: 28rem;
  overflow: auto;
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.msg {
  max-width: 88%;
  padding: 0.45rem 0.55rem 0.3rem;
  border-radius: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: pre-wrap;
}
.msg.customer { align-self: flex-end; background: #d9fdd3; }
.msg.agent { align-self: flex-start; background: #fff; }
.msg .time {
  display: block;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #667781;
  margin-top: 0.2rem;
}
.msg.system {
  align-self: center;
  background: transparent;
  color: #5c6b7a;
  font-size: 0.75rem;
  text-align: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.45rem 0.4rem 0.15rem;
  background: #111b26;
}
.chips button {
  background: #1c2a3a;
  color: #f3f4f6;
  font-size: 0.72rem;
}
#composer {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem;
  background: #111b26;
}
#box {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  font: inherit;
}
.silenced {
  color: var(--hivis);
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem 0.35rem;
  text-align: center;
}
.empty {
  color: #6b7280;
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .vs { display: none; }
  .desk { grid-template-columns: 1fr; }
  .jobs { min-height: auto; }
}

.msg.typing { padding: 0.65rem 0.8rem; }
.dots { display: inline-flex; gap: 0.28rem; align-items: center; }
.dots i {
  width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: #667781;
  animation: bounce 1s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .dot { box-shadow: none; }
  .dots i { animation: none; opacity: 0.7; }
}
