:root {
  --bg: #f3efe6;
  --ink: #12242b;
  --muted: #5b6d73;
  --panel: #fffdf8;
  --line: rgba(18, 36, 43, 0.1);
  --teal: #0e6b63;
  --teal-2: #16867c;
  --navy: #16324a;
  --clay: #b4532a;
  --ok: #2a8f62;
  --facility: #0e6b63;
  --family: #2a6f97;
  --call: #b4532a;
  --note: #6b7c82;
  --radius: 14px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(14, 107, 99, 0.08), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(180, 83, 42, 0.06), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

.app {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: var(--s5) 0 80px;
}

.kicker {
  margin: 0 0 var(--s2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--teal);
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
h1 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.2; }
h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }

.chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.chrome-copy { min-width: 0; }
.logo {
  height: 88px;
  width: auto;
  max-width: 360px;
  display: block;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(18, 36, 43, 0.06);
}
.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(18, 36, 43, 0.06);
  white-space: nowrap;
}
.mark.hospital { background: var(--facility); }
.chrome-copy .kicker { margin-bottom: var(--s2); }
.lead {
  margin: 0 0 var(--s3);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 42rem;
}
.command.playing .play,
body.playing .play,
body.autoplay .play {
  animation: pulse-cta 1.1s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(180, 83, 42, 0.2); }
  50% { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(180, 83, 42, 0.35); }
}
.chrome-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}
#clock {
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge {
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.live {
  border-color: var(--clay);
  color: #fff8f3;
  background: linear-gradient(180deg, #c46234, var(--clay));
}
body.live-call .command {
  box-shadow: 0 0 0 2px rgba(180, 83, 42, 0.28), 0 18px 40px rgba(18, 36, 43, 0.05);
}

.command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: var(--s5);
  align-items: center;
  margin-bottom: var(--s5);
  padding: var(--s5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(18, 36, 43, 0.05);
}
.command-copy { min-width: 0; }
.command h2 { margin-bottom: var(--s3); font-size: clamp(20px, 2vw, 26px); }
blockquote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: rgba(14, 107, 99, 0.06);
  color: #24383e;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.command-actions { display: grid; gap: var(--s3); min-width: 0; }
.play, .dial {
  display: grid;
  gap: var(--s1);
  justify-items: start;
  text-decoration: none;
  border: 0;
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
}
.play {
  color: #fff8f3;
  background: linear-gradient(180deg, #c46234, var(--clay));
  box-shadow: 0 10px 24px rgba(180, 83, 42, 0.2);
}
.dial {
  color: #06221f;
  background: linear-gradient(180deg, #2eb8a0, var(--teal));
}
.play span, .play em, .dial span, .dial em {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.78;
}
.play strong, .dial strong {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.2;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: var(--s4);
  align-items: start;
}
.side { display: grid; gap: var(--s4); min-width: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--s4);
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.panel-head > div { min-width: 0; }
.panel-head p {
  margin: var(--s2) 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.count {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e7f3f1;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2);
  margin-bottom: var(--s4);
  align-items: stretch;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  border: 1px solid rgba(18, 36, 43, 0.12);
  background: #faf7f1;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.45;
}
textarea:focus, button:focus-visible, .play:focus-visible, .dial:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
button { border: 0; cursor: pointer; font: inherit; }
button[type="submit"] {
  align-self: end;
  height: 40px;
  padding: 0 16px;
  background: var(--navy);
  color: #f6f3ec;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  white-space: nowrap;
}

.timeline, .holds, .campaigns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}

.item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--radius);
  background: #f7f3ea;
  border: 1px solid rgba(18, 36, 43, 0.06);
  min-width: 0;
}
.item.fresh {
  outline: 2px solid rgba(14, 107, 99, 0.45);
  background: rgba(14, 107, 99, 0.08);
  border-color: rgba(14, 107, 99, 0.45);
  box-shadow: 0 0 0 1px rgba(14, 107, 99, 0.16);
  animation: land 0.7s ease-out;
}
@keyframes land {
  from { transform: translateY(-8px); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.mark.facility { background: rgba(14, 107, 99, 0.14); color: var(--facility); }
.mark.family { background: rgba(42, 111, 151, 0.14); color: var(--family); }
.mark.call { background: rgba(180, 83, 42, 0.14); color: var(--call); }
.mark.note { background: rgba(107, 124, 130, 0.14); color: var(--note); }
.item h3 { margin-bottom: var(--s1); }
.item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin-top: var(--s2);
  font-size: 12px;
  line-height: 1.35;
  color: #3d5258;
}
.next { color: var(--teal); overflow-wrap: anywhere; }

.hold, .campaign {
  display: grid;
  gap: var(--s1);
  padding: var(--s3);
  border-radius: var(--radius);
  background: #f7f3ea;
  border: 1px solid rgba(18, 36, 43, 0.06);
  min-width: 0;
}
.hold {
  grid-template-columns: 4.75rem minmax(0, 1fr);
  align-items: start;
}
.hold time {
  display: grid;
  gap: 2px;
  font-family: Fraunces, Georgia, serif;
  color: var(--teal);
  line-height: 1.2;
}
.hold .day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hold .hm { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hold p, .campaign p {
  margin: var(--s1) 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.campaign .status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.close {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--s5);
  margin-top: var(--s5);
  padding: var(--s5);
  background: var(--navy);
  color: #eef4f2;
  border-radius: 18px;
}
.close .kicker { color: #8fd4c6; }
.close h2 { color: #fffdf8; margin-bottom: var(--s3); }
.close p { margin: 0; color: #c9d6d3; font-size: 15px; line-height: 1.55; }
.close-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s3);
}
.close-steps li {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #d7e3e0;
  font-size: 14px;
  line-height: 1.45;
}
.close-steps strong { color: #fffdf8; }

.closer {
  margin: var(--s5) 0 0;
  text-align: center;
  color: var(--clay);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .app { width: min(100% - 28px, 1220px); }
  .chrome, .command, .workspace, .composer, .close { display: block; }
  .logo { margin-bottom: var(--s3); max-width: 100%; }
  .chrome-meta { margin-top: var(--s3); }
  .command-actions { margin-top: var(--s4); }
  .composer button { width: 100%; margin-top: var(--s2); }
  .close-steps { margin-top: var(--s4); }
  .hold { grid-template-columns: 4.5rem minmax(0, 1fr); }
}
