:root {
  --navy: #00263d;
  --navy-2: #0a3a52;
  --bg: #eef2f5;
  --panel: #ffffff;
  --ink: #00263d;
  --muted: #4a5d6b;
  --line: #d4dde4;
  --accent: #e56b12;
  --accent-2: #c85a0c;
  --ok: #1b7f4e;
  --warn: #9a6b12;
  --call: #c85a0c;
  --meeting: #1d5f8a;
  --text: #0f6e62;
  --note: #5c6b7a;
  --radius: 10px;
  --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: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

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

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1, h2, h3 {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  color: var(--navy);
}
h1 { margin: 0; font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; line-height: 1.25; }
h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }

.chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s5);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.chrome-copy { min-width: 0; }
.brand {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(0, 38, 61, 0.04);
}
.logo {
  height: 56px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.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(--line);
  background: #fff;
  color: var(--navy-2);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.live {
  border-color: var(--ok);
  color: var(--ok);
  background: #e8f6ee;
}

.command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: var(--s5);
  align-items: center;
  margin-bottom: var(--s5);
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.command-copy { min-width: 0; }
.command h2 { margin-bottom: 8px; font-size: clamp(18px, 2vw, 22px); }
.lead {
  margin: 0 0 var(--s3);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.steps {
  margin: 0 0 var(--s3);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.steps li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  padding-left: 1.15em;
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #b7c4ce;
}
.steps li.current { color: var(--ink); font-weight: 600; }
.steps li.current::before { background: var(--accent); }
.steps li.done { color: var(--ok); }
.steps li.done::before { background: var(--ok); }
.narrate {
  margin: 0 0 var(--s3);
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.command-actions {
  display: grid;
  gap: var(--s3);
  min-width: 0;
}
.play {
  display: grid;
  gap: 2px;
  justify-items: start;
  width: 100%;
  text-align: left;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  padding: 14px 16px;
}
.play span, .play em, .dial.ghost span, .dial.ghost em {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.78;
}
.play strong, .dial strong {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.play:disabled { opacity: 0.6; cursor: wait; }
.dial.ghost {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  border: 1px solid var(--accent-2);
}
.dial.ghost strong,
.dial.ghost span,
.dial.ghost em { color: #fff; }
.more { margin-bottom: var(--s4); }
.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: var(--s3);
}
.bank-row.aim {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(229, 107, 18, 0.2);
}
blockquote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: #fff7f0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dial {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 0;
}
.dial span, .dial em {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.78;
}

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

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.tips {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(260px, calc(100vw - 32px));
}
.bubble {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 38, 61, 0.1);
  color: var(--ink);
}
.bubble[hidden],
.coach[hidden],
.tips [hidden] {
  display: none !important;
}
.bubble.float { cursor: grab; touch-action: none; }
.bubble.float.dragging, .coach.dragging { cursor: grabbing; }
.bubble b, .coach-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.bubble span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.bubble.quiet {
  background: #f7f9fb;
}
.bubble.quiet b { color: var(--navy-2); }
.bubble-bar, .coach-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bubble-x {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef2f5;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}
.coach {
  position: fixed;
  left: 50%;
  bottom: 20px;
  top: auto;
  transform: translateX(-50%);
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--navy);
  box-shadow: 0 12px 32px rgba(0, 38, 61, 0.14);
  cursor: grab;
  touch-action: none;
}
.coach-kicker { margin: 0; }
.coach-text {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.spotlight {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}
body.playing .tips { opacity: 0.4; }
.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: 6px 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: #eef2f5;
  color: var(--navy);
  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: 96px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.45;
}
textarea:focus, button:focus-visible, .dial:focus-visible, .play:focus-visible {
  outline: 2px solid var(--navy);
  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: #fff;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px;
  white-space: nowrap;
}

.timeline, .holds, .bank {
  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: #f7f9fb;
  border: 1px solid var(--line);
  min-width: 0;
}
.item.fresh {
  border-color: var(--accent);
  background: #fff7f0;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}
.mark.call { background: #fff1e6; color: var(--call); }
.mark.meeting { background: #e6f1f7; color: var(--meeting); }
.mark.text { background: #e7f4f2; color: var(--text); }
.mark.note { background: #eef2f5; color: var(--note); }
.item h3 { margin-bottom: 2px; }
.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: var(--navy-2);
}
.next { color: var(--accent-2); overflow-wrap: anywhere; }

.hold {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding: var(--s3);
  border-radius: var(--radius);
  background: #f7f9fb;
  border: 1px solid var(--line);
  min-width: 0;
}
.hold time {
  display: grid;
  gap: 2px;
  color: var(--navy);
  line-height: 1.2;
}
.hold .day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hold .hm {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.hold h3 { overflow-wrap: anywhere; }
.hold p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }

.bank-row {
  padding: 14px;
  border-radius: var(--radius);
  background: #f7f9fb;
  border: 1px solid var(--line);
  min-width: 0;
}
.bank-row.suggested { border-left: 3px solid var(--accent); }
.bank-row.matched { border-left: 3px solid var(--ok); }
.bank-row.unmatched, .bank-row.skipped { border-left: 3px solid #b7c4ce; }
.amount {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  color: var(--navy);
}
.status {
  display: inline-block;
  margin-bottom: var(--s2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--accent-2);
}
.bank-row.matched .status { color: var(--ok); }
.bank-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.chip {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.chip.ok { background: #e8f6ee; color: var(--ok); }
.chip.warn { background: #f4efe4; color: var(--warn); }

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

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