* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, -apple-system, sans-serif;
  background: #0c0f1a;
  color: #e1e5f0;
  font-size: 14px;
  line-height: 1.5;
}
body[data-mode="user"] #progress-card {
  display: none !important;
}
main {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 28px;
}
main > * {
  width: 100%;
}
@media (min-width: 1200px) {
  main { max-width: 1080px; }
  body[data-mode="call_center"] main { max-width: 1360px; }
}

.brand-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #1a2b4a;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(64, 123, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(11, 22, 39, 0.96), rgba(9, 17, 31, 0.96));
}
.brand-banner-copy {
  min-width: 0;
  text-align: left;
}
.brand-banner-logo {
  width: min(100%, 280px);
  justify-self: end;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.96) drop-shadow(0 18px 42px rgba(4, 10, 22, 0.42));
}
.banner-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #25416f;
  background: rgba(16, 31, 56, 0.85);
  color: #85b5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-banner h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.journey-toggle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #1a2b4a;
  border-radius: 18px;
  background: rgba(10, 20, 37, 0.9);
}
.journey-toggle-card > div {
  min-width: 0;
}

.journey-route-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.demo-scenario-controls {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  align-items: center;
  gap: 8px;
}

.demo-scenario-controls select {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #26395c;
  border-radius: 6px;
  background: #0b1220;
  color: #d9e8ff;
  padding: 6px 10px;
}

.demo-scenario-controls button {
  min-height: 36px;
  white-space: nowrap;
}

.demo-scenario-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.demo-scenario-presets button {
  min-height: 30px;
  padding: 6px 10px;
  border-color: rgba(96, 165, 250, 0.32);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #a9c8ff;
  font-size: 11px;
  font-weight: 800;
}

.demo-scenario-presets button.active,
.demo-scenario-presets button:hover {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.32);
  color: #f2f7ff;
}

.journey-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  width: 204px;
  padding: 3px;
  border: 1px solid #26395c;
  border-radius: 8px;
  background: #0b1220;
}

.journey-switch button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8ea6c8;
  font-size: 12px;
  font-weight: 700;
}

.journey-switch button:hover {
  background: #15213a;
  color: #d9e8ff;
}

.journey-switch button.active {
  background: #2463d4;
  color: #ffffff;
}

.journey-route-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 180px;
}

.route-subtype {
  color: #8ea6c8;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.ad-context-card {
  padding: 14px 18px;
  border: 1px solid #20456b;
  border-radius: 8px;
  background: #0b1728;
}

.ad-context-head,
.ad-context-details,
.ad-context-demo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-context-head {
  justify-content: space-between;
}

.ad-context-head > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ad-context-kicker {
  color: #67d7c4;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-context-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.ad-context-details > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 9px 10px;
  border-left: 2px solid #2d6f83;
  background: #0e1d31;
}

.ad-context-details strong,
.ad-context-demo-controls label {
  color: #7f94b1;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.ad-context-details span span {
  overflow: hidden;
  color: #e3edf9;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-context-status {
  margin: 10px 0 0;
  color: #a8b9ce;
  font-size: 12px;
}

.ad-context-demo-controls {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  margin-top: 12px;
}

.ad-context-demo-controls select {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #2a4365;
  border-radius: 6px;
  background: #081321;
  color: #e3edf9;
  padding: 6px 10px;
}

.call-center-panel-toggle {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 45;
  width: auto !important;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(79, 140, 255, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(10, 18, 35, 0.34);
  font-weight: 800;
}

body[data-mode="call_center"] .call-center-panel-toggle {
  display: none !important;
}

.csr-assist-quickbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(79, 140, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%),
    rgba(10, 20, 37, 0.92);
}

.csr-workspace-dock {
  display: grid;
  gap: 8px;
  min-width: 0;
}

/* One sticky container follows its actual content height, including wrapped controls. */
body[data-mode="call_center"] .csr-workspace-dock {
  position: sticky;
  top: 0;
  z-index: 37;
  padding-block: 8px;
  background: #0c0f1a;
}

body[data-mode="call_center"] #progress-card {
  padding: 10px 14px;
}

body[data-mode="call_center"] #progress-card .progress-meta {
  max-height: 3em;
  overflow: auto;
}

.csr-assist-quickbar strong {
  display: block;
  color: #edf5ff;
  font-size: 13px;
}

.csr-assist-heading span {
  display: block;
  margin-top: 3px;
  color: #9fb0ca;
  font-size: 12px;
}

.csr-assist-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.csr-assist-quick-actions button {
  min-height: 36px;
  padding-inline: 12px;
}

.csr-assist-quick-actions button.active {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(37, 99, 235, 0.32);
  color: #f2f7ff;
}

.csr-prompt-toast {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #263348;
  border-radius: 10px;
  background: #111b2b;
}

.csr-suggestion-copy {
  min-width: 0;
  max-height: 86px;
  overflow: auto;
  overflow-wrap: anywhere;
}

.csr-suggestion-copy:focus-visible {
  outline: 2px solid #829bb9;
  outline-offset: 2px;
}

.csr-prompt-toast button {
  min-height: 36px;
  white-space: nowrap;
}

.csr-prompt-toast span,
.call-center-ops-head span {
  display: block;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.csr-prompt-toast #csr-toast-text {
  display: block;
  margin: 3px 0 0;
  color: #bdc9da;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.csr-prompt-toast span {
  color: #91a5bd;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.call-center-ops {
  position: fixed;
  top: 92px;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  width: min(540px, calc(100vw - 32px));
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(79, 140, 255, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 36%),
    rgba(8, 17, 33, 0.98);
  box-shadow: -28px 26px 90px rgba(0, 0, 0, 0.45);
  transform: translateX(calc(100% + 36px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.call-center-ops.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.call-center-ops-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.call-center-ops-head strong {
  display: block;
  margin-top: 4px;
  color: #edf5ff;
  font-size: 15px;
}

.call-center-ops .card {
  background: rgba(17, 23, 40, 0.94);
}

.csr-auth-card {
  border-color: rgba(79, 140, 255, 0.28);
  background:
    radial-gradient(circle at top right, rgba(79, 140, 255, 0.1), transparent 35%),
    #111728;
}

.csr-auth-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.session-history-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px 12px;
}

.session-history-header > p {
  grid-column: 1;
  margin-top: 0;
  font-size: 12px;
}

.session-toolbar {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.session-toolbar .pill {
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: auto;
}

.session-toolbar button {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 12px;
  white-space: nowrap;
}

.session-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}

.session-history-item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #1a2b4a;
  background: #0c1528;
  text-align: left;
}

.session-history-item.active {
  border-color: #3b5bdb;
  background: linear-gradient(180deg, rgba(22, 40, 78, 0.96), rgba(13, 24, 44, 0.96));
}

.session-history-item-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  color: #edf3ff;
}

.session-history-item-meta,
.session-history-empty {
  color: #8ea6c8;
  font-size: 12px;
  line-height: 1.55;
}

.assist-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}

.auto-push-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #1a2b4a;
  border-radius: 8px;
  background: rgba(8, 17, 33, 0.7);
  color: #d7e4f7;
  cursor: pointer;
}

.assist-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex-wrap: nowrap;
  gap: 8px;
}

.assist-actions button {
  min-height: 58px;
  padding-inline: 13px;
  white-space: nowrap;
}

.auto-push-toggle input {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.auto-push-toggle strong,
.auto-push-toggle small {
  display: block;
}

.auto-push-toggle strong {
  font-size: 12px;
  line-height: 1.2;
}

.auto-push-toggle small {
  margin-top: 3px;
  color: #8ea6c8;
  font-size: 11px;
  line-height: 1.25;
}

.auto-push-track {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #284067;
  background: #0b1426;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.auto-push-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #8ea6c8;
  transition: transform 0.18s ease, background 0.18s ease;
}

.auto-push-toggle input:checked + .auto-push-track {
  border-color: #3b82f6;
  background: #174ea6;
}

.auto-push-toggle input:checked + .auto-push-track span {
  transform: translateX(18px);
  background: #fff;
}

.assist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.assist-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.call-note-box {
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #1a1f35;
  background: #0c1426;
  color: #a5b7d2;
  white-space: pre-wrap;
}

.call-facts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #1f345d;
  background: rgba(15, 28, 50, 0.94);
  color: #d7e4f7;
  font-size: 12px;
  line-height: 1.2;
}

/* ── Header ────────────────────────────────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a1f35;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #151b30;
  border: 1px solid #242d4a;
  object-fit: cover;
}
.typing {
  font-size: 12px;
  color: #8892b0;
  padding: 5px 12px;
  border: 1px solid #1e2845;
  border-radius: 20px;
  background: #111728;
  animation: pulse 1.5s ease-in-out infinite;
}
.header-home-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hidden { display: none !important; }

body:not([data-mode="call_center"]) #csr-auth-card,
body:not([data-mode="call_center"]) #call-center-ops,
body:not([data-mode="call_center"]) #call-center-panel-toggle,
body:not([data-mode="call_center"]) #csr-assist-quickbar,
body:not([data-mode="call_center"]) #csr-prompt-toast {
  display: none !important;
}
h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.sub {
  margin: 3px 0 0 0;
  color: #8892b0;
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ── Chat ──────────────────────────────────────────── */
#chat {
  flex: 1;
  background: #0e1225;
  border: 1px solid #1a1f35;
  border-radius: 14px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
}
.msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.55;
  font-size: 14px;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.msg.user {
  align-self: flex-end;
  background: #1e3a6e;
  color: #d4e0f7;
  border-bottom-right-radius: 4px;
}
.msg.assistant {
  align-self: flex-start;
  background: #161c33;
  color: #c8cee0;
  border-bottom-left-radius: 4px;
}
.msg.rich {
  width: min(92%, 760px);
  max-width: 92%;
  white-space: normal;
}
.guidance-update,
.care-journey-update {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guidance-update p,
.care-journey-update p {
  margin: 0;
}
.guidance-update-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.guidance-score {
  color: #72dec8;
  font-size: 13px;
  font-weight: 700;
}
.guidance-evidence {
  display: grid;
  gap: 5px;
  color: #9eabc9;
  font-size: 12px;
  line-height: 1.5;
}
.guidance-next {
  padding-top: 9px;
  border-top: 1px solid #2b3655;
  color: #edf3ff;
}
.guidance-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.guidance-options .btn-subtle {
  min-height: 34px;
}

.progressive-symptom-options {
  display: grid;
  gap: 8px;
  width: 100%;
}

.progressive-choice-note {
  margin: 0;
  color: #9fb3d3;
  font-size: 11.5px;
  font-weight: 700;
}

.multi-select-options {
  display: grid;
  gap: 10px;
}

.multi-select-instructions {
  color: #9fb3d3;
  font-size: 11.5px;
  font-weight: 700;
}

.multi-select-grid,
.symptom-picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 10px;
}

.multi-select-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 72px;
  padding: 11px;
  border: 1px solid #263a5c;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 27, 49, 0.98), rgba(9, 18, 35, 0.98));
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
}

.multi-select-card:hover,
.multi-select-card:focus-visible,
.multi-select-card.is-selected,
.symptom-option-card.is-selected {
  border-color: #60a5fa;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34);
}

.multi-select-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(147, 197, 253, 0.48);
  border-radius: 7px;
  background: rgba(5, 14, 28, 0.76);
}

.multi-select-card.is-selected .multi-select-check,
.symptom-option-card.is-selected .multi-select-check {
  border-color: #72dec8;
  background: rgba(20, 184, 166, 0.18);
}

.multi-select-card.is-selected .multi-select-check::after,
.symptom-option-card.is-selected .multi-select-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #72dec8;
  border-bottom: 2px solid #72dec8;
  transform: rotate(-45deg) translate(1px, -1px);
}

.multi-select-copy {
  display: grid;
  gap: 4px;
}

.multi-select-copy strong {
  color: #edf5ff;
  font-size: 12px;
  line-height: 1.25;
}

.multi-select-copy small {
  color: #93a7c8;
  font-size: 10.5px;
  line-height: 1.35;
}

.multi-select-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cue-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.guidance-options .cue-answer-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border-color: #263a5c;
  background: linear-gradient(145deg, rgba(15, 28, 51, 0.96), rgba(9, 18, 35, 0.96));
  color: #dbe8ff;
  text-align: left;
}

.cue-answer-card:hover,
.cue-answer-card:focus-visible {
  border-color: #60a5fa;
}

.cue-answer-copy {
  display: grid;
  gap: 3px;
}

.cue-answer-copy strong {
  color: #eef6ff;
  font-size: 12px;
  line-height: 1.2;
}

.cue-answer-copy small {
  color: #91a4c6;
  font-size: 10.5px;
  line-height: 1.35;
}

.prompt-cue-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.prompt-cue-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  background: rgba(9, 20, 39, 0.68);
}

.prompt-cue-card strong {
  color: #e9f3ff;
  font-size: 12px;
  line-height: 1.2;
}

.prompt-cue-card small {
  grid-column: 1 / -1;
  color: #95a9c9;
  font-size: 11px;
  line-height: 1.42;
}

.visual-cue-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
}

.visual-cue-strip + .prompt-cue-strip,
.prompt-cue-strip + .visual-cue-strip,
.visual-cue-strip + .guidance-options {
  margin-top: 10px;
}

.visual-cue-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 44%),
    rgba(9, 20, 39, 0.74);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.visual-cue-card:hover,
.visual-cue-card:focus-visible,
.visual-cue-card.is-expanded {
  border-color: rgba(96, 165, 250, 0.62);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

.visual-cue-thumb {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 6px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(2, 8, 23, 0.38);
}

.visual-cue-thumb img {
  width: 100%;
  height: 86px;
  object-fit: contain;
}

.visual-cue-copy {
  display: grid;
  gap: 4px;
  padding: 9px;
}

.visual-cue-copy strong {
  color: #edf5ff;
  font-size: 11.5px;
  line-height: 1.2;
}

.visual-cue-copy small {
  color: #95a9c9;
  font-size: 10.5px;
  line-height: 1.35;
}

.visual-cue-more {
  display: none;
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  color: #cde0ff;
  font-size: 10.5px;
  line-height: 1.42;
}

.visual-cue-card.is-expanded .visual-cue-more {
  display: block;
}

.cue-icon {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 12px;
  background: rgba(15, 32, 58, 0.9);
  overflow: hidden;
}

.cue-icon::before,
.cue-icon::after,
.cue-icon span {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.cue-icon.cue-consent::before {
  width: 18px;
  height: 10px;
  border-left: 3px solid #72dec8;
  border-bottom: 3px solid #72dec8;
  transform: rotate(-45deg) translate(1px, -2px);
}

.cue-icon.cue-privacy::before {
  width: 18px;
  height: 16px;
  border: 2px solid #a78bfa;
  border-radius: 4px;
  bottom: 8px;
}

.cue-icon.cue-privacy::after {
  width: 14px;
  height: 12px;
  border: 2px solid #a78bfa;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  top: 6px;
}

.cue-icon.cue-contact::before,
.cue-icon.cue-record::before {
  width: 23px;
  height: 17px;
  border: 2px solid #60a5fa;
  border-radius: 4px;
}

.cue-icon.cue-contact::after {
  width: 18px;
  height: 2px;
  background: #60a5fa;
  transform: rotate(28deg);
}

.cue-icon.cue-record span {
  width: 14px;
  height: 2px;
  background: #60a5fa;
  box-shadow: 0 6px 0 #60a5fa;
}

.cue-icon.cue-phone::before {
  width: 13px;
  height: 24px;
  border: 2px solid #38bdf8;
  border-radius: 7px;
  transform: rotate(-18deg);
}

.cue-icon.cue-location::before {
  width: 18px;
  height: 18px;
  background: #f59e0b;
  border-radius: 999px 999px 999px 4px;
  transform: rotate(-45deg);
}

.cue-icon.cue-location::after {
  width: 7px;
  height: 7px;
  background: #091423;
}

.cue-icon.cue-provider::before {
  width: 24px;
  height: 24px;
  border: 2px solid #72dec8;
  border-radius: 50%;
}

.cue-icon.cue-provider::after {
  width: 18px;
  height: 4px;
  background: #72dec8;
  box-shadow: 0 -7px 0 -1px #72dec8;
}

.cue-icon.cue-exposure::before,
.cue-icon.cue-product::before {
  width: 25px;
  height: 14px;
  border: 2px solid #22c55e;
  border-radius: 10px 10px 6px 6px;
}

.cue-icon.cue-exposure::after,
.cue-icon.cue-product::after {
  width: 11px;
  height: 15px;
  border: 2px solid #22c55e;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  top: 19px;
}

.cue-icon.cue-injury::before {
  width: 24px;
  height: 8px;
  background: #fb7185;
  transform: rotate(-25deg);
  box-shadow: 0 10px 0 #fda4af;
}

.cue-icon.cue-liability::before {
  width: 26px;
  height: 22px;
  border: 2px solid #fbbf24;
  border-radius: 4px;
}

.cue-icon.cue-liability::after {
  width: 18px;
  height: 2px;
  background: #fbbf24;
  box-shadow: 0 6px 0 #fbbf24;
}

.cue-icon.cue-time::before {
  width: 24px;
  height: 24px;
  border: 2px solid #93c5fd;
}

.cue-icon.cue-time::after {
  width: 2px;
  height: 10px;
  background: #93c5fd;
  transform-origin: bottom;
  transform: translateY(-3px) rotate(35deg);
}

.cue-icon.cue-memory::before,
.cue-icon.cue-upload::before,
.cue-icon.cue-general::before {
  width: 22px;
  height: 22px;
  border: 2px solid #c084fc;
}

.cue-icon.cue-memory::after {
  width: 6px;
  height: 6px;
  background: #c084fc;
  box-shadow: 8px 0 0 #c084fc, -8px 0 0 #c084fc;
}

.cue-icon.cue-upload::after {
  width: 12px;
  height: 12px;
  border-left: 3px solid #c084fc;
  border-top: 3px solid #c084fc;
  transform: rotate(45deg) translate(2px, 3px);
}

.symptom-picture-options {
  display: grid;
  gap: 10px;
}

.symptom-option-card {
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-height: 92px;
  padding: 11px;
  border: 1px solid #263a5c;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 27, 49, 0.98), rgba(9, 18, 35, 0.98));
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
}

.symptom-option-card:hover,
.symptom-option-card:focus-visible {
  border-color: #60a5fa;
  outline: none;
}

.symptom-option-card:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.symptom-option-card strong {
  color: #edf5ff;
  font-size: 12px;
  line-height: 1.25;
}

.symptom-option-card small {
  grid-column: 1 / -1;
  color: #93a7c8;
  font-size: 10.5px;
  line-height: 1.35;
}

.symptom-visual {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #11203a;
  overflow: hidden;
}

.symptom-visual::before,
.symptom-visual::after,
.symptom-visual span {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.symptom-organ::before {
  width: 18px;
  height: 28px;
  background: #38bdf8;
  transform: rotate(-18deg) translateX(-5px);
}

.symptom-organ::after {
  width: 18px;
  height: 28px;
  background: #60a5fa;
  transform: rotate(18deg) translateX(5px);
}

.symptom-blood::before {
  width: 25px;
  height: 25px;
  background: #ef4444;
  transform: rotate(45deg);
}

.symptom-blood::after {
  width: 18px;
  height: 18px;
  background: #fb7185;
  top: 8px;
}

.symptom-surface::before {
  width: 32px;
  height: 22px;
  border: 2px solid #f59e0b;
}

.symptom-surface::after {
  width: 6px;
  height: 6px;
  background: #fde68a;
  box-shadow: 10px 6px 0 #fde68a, -8px 7px 0 #fde68a;
}

.symptom-digestive::before {
  width: 30px;
  height: 30px;
  border: 3px solid #22c55e;
  border-left-color: transparent;
}

.symptom-device::before {
  width: 28px;
  height: 18px;
  border: 2px solid #a78bfa;
}

.symptom-device::after {
  width: 22px;
  height: 2px;
  background: #a78bfa;
  transform: rotate(35deg) translate(12px, -3px);
}

.symptom-injury::before {
  width: 28px;
  height: 8px;
  background: #f8fafc;
  transform: rotate(35deg);
}

.symptom-injury::after {
  width: 28px;
  height: 8px;
  background: #f8fafc;
  transform: rotate(-35deg);
}

.symptom-general::before {
  width: 30px;
  height: 30px;
  border: 3px solid #38bdf8;
}

.symptom-general::after {
  width: 8px;
  height: 8px;
  background: #38bdf8;
}
.base-recognition-context {
  display: grid;
  gap: 3px;
  color: #9eabc9;
  font-size: 11px;
  line-height: 1.45;
}
.base-recognition-context > span {
  color: #f2c45a;
  font-size: 12px;
  font-weight: 700;
}
.base-reference-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.base-reference-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2b3655;
  border-radius: 8px;
  background: #10172a;
}
.base-reference-visual {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #eef1f4;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.base-reference-visual:hover,
.base-reference-visual:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.55);
  outline-offset: -3px;
}
.base-reference-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.base-reference-visual.is-map img {
  object-fit: contain;
}
.base-reference-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
}
.base-reference-copy > span {
  color: #f2c45a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.base-reference-copy strong,
.base-reference-copy p {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.base-reference-copy strong {
  color: #edf3ff;
  font-size: 13px;
  line-height: 1.3;
}
.base-reference-copy p {
  color: #9eabc9;
  font-size: 11px;
  line-height: 1.4;
}
.base-reference-copy .btn-subtle {
  width: 100%;
  margin-top: auto;
  white-space: normal;
}
.base-reference-copy a {
  color: #8fb7ff;
  font-size: 10px;
}
.base-area-choices {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
}
.base-area-choices .btn-subtle {
  max-width: 100%;
  white-space: normal;
}
.weed-product-context {
  display: grid;
  gap: 3px;
  color: #9eabc9;
  font-size: 11px;
  line-height: 1.45;
}
.weed-product-context > span {
  color: #72dec8;
  font-size: 12px;
  font-weight: 700;
}
.weed-product-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.weed-product-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #2b3655;
  border-radius: 8px;
  background: #10172a;
}
.weed-product-visual {
  display: grid;
  width: 100%;
  min-height: 164px;
  place-items: center;
  padding: 8px;
  border: 0;
  background: #f7f8fa;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.weed-product-visual:hover,
.weed-product-visual:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.55);
  outline-offset: -3px;
}
.weed-product-visual img {
  width: 100%;
  height: 146px;
  object-fit: contain;
}
.weed-product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
}
.weed-product-copy strong,
.weed-product-copy p {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.weed-product-copy strong {
  color: #edf3ff;
  font-size: 13px;
  line-height: 1.3;
}
.weed-product-copy p {
  color: #9eabc9;
  font-size: 11px;
  line-height: 1.4;
}
.weed-product-brand {
  color: #72dec8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.weed-product-copy .btn-subtle {
  width: 100%;
  margin-top: auto;
}
.weed-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10px;
}
.weed-product-links a {
  color: #8fb7ff;
}
.weed-product-none {
  grid-column: 1 / -1;
  justify-self: start;
}
.care-journey-update .btn-subtle {
  align-self: flex-start;
}
.msg.system {
  align-self: center;
  background: transparent;
  color: #6b7394;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px dashed #242d4a;
  max-width: 90%;
}

/* ── Report block in chat ──────────────────────────── */
.msg-report {
  width: min(100%, 980px);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(17, 28, 50, 0.98), rgba(10, 18, 34, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 18px;
  padding: 18px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
}
.msg-report h4 {
  margin: 3px 0 0;
  font-size: 18px;
  color: #edf5ff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.msg-report p {
  margin: 4px 0;
  color: #aebddd;
}
.report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.report-card-head > div > span,
.report-field span {
  display: inline-flex;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.report-field {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 12px;
  background: rgba(7, 15, 29, 0.56);
}
.report-field-wide {
  grid-column: 1 / -1;
}
.report-field p {
  margin-top: 5px;
  color: #c9d8f0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.msg-report .report-score {
  display: inline-block;
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
}
.msg-report .report-score.qualified {
  background: rgba(39, 174, 96, 0.15);
  color: #5dd89a;
  border: 1px solid rgba(39, 174, 96, 0.3);
}
.msg-report .report-score.not-qualified {
  background: rgba(217, 154, 43, 0.15);
  color: #e8b84a;
  border: 1px solid rgba(217, 154, 43, 0.3);
}
.msg-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.msg-report-actions button {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.vault-offer-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 34%),
    #0d1a2d;
}

.vault-offer-card span {
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vault-offer-card strong {
  color: #edf5ff;
  font-size: 13px;
}

.vault-offer-card p {
  margin: 0;
  color: #a9bbd6;
  font-size: 11.5px;
  line-height: 1.55;
}

.vault-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.vault-access-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 12px;
  background: rgba(9, 18, 31, 0.76);
}

.vault-access-card strong,
.vault-access-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #edf5ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.vault-access-card a {
  color: #93c5fd;
}

.vault-handoff {
  margin: 0;
  color: #c7d8ed;
  font-size: 12px;
  line-height: 1.55;
}

.artifact-package-block {
  display: grid;
  gap: 10px;
}

.msg-report .artifact-package-block {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.58);
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.artifact-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(72, 94, 132, 0.56);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 42%),
    rgba(9, 19, 35, 0.9);
  cursor: pointer;
}

.artifact-card:hover,
.artifact-card:focus-visible,
.artifact-card.is-expanded {
  border-color: rgba(96, 165, 250, 0.62);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.artifact-card.has-artifact-thumb {
  grid-template-columns: 68px minmax(0, 1fr);
}

.artifact-thumb {
  display: grid;
  width: 68px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 12px;
  background: rgba(2, 8, 23, 0.45);
}

.artifact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artifact-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.artifact-card-top strong {
  color: #edf5ff;
  font-size: 12.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.artifact-card-top span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(114, 222, 200, 0.26);
  border-radius: 999px;
  color: #86efac;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.artifact-card p,
.artifact-card small {
  display: block;
  margin: 6px 0 0;
  color: #9fb2d2;
  font-size: 11px;
  line-height: 1.45;
}

.artifact-card small {
  color: #c8d8ef;
}

.artifact-card-more {
  display: none;
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px solid rgba(114, 222, 200, 0.18);
  border-radius: 12px;
  background: rgba(7, 18, 32, 0.86);
}

.artifact-card-more strong {
  display: block;
  color: #72dec8;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.artifact-card-more p {
  margin: 5px 0 0;
}

.artifact-card.is-expanded .artifact-card-more {
  display: block;
}

.artifact-preview-list {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: #b8c8e4;
  font-size: 10.5px;
  line-height: 1.4;
}

.artifact-preview-list li::marker {
  color: #60a5fa;
}

.msg-report .artifact-grid {
  grid-template-columns: 1fr;
}

.msg-report .artifact-card,
.msg-report .artifact-card.has-artifact-thumb {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.msg-report .artifact-thumb {
  width: 96px;
  height: 72px;
}

.msg-report .artifact-card > div:not(.artifact-card-more) {
  min-width: 0;
}

.msg-report .artifact-card-top {
  align-items: center;
}

.msg-report .artifact-card-top strong {
  font-size: 14px;
}

.msg-report .artifact-card p,
.msg-report .artifact-card small,
.msg-report .artifact-preview-list {
  font-size: 12px;
}

.artifact-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(18, 40, 70, 0.95), rgba(9, 20, 38, 0.95));
  overflow: hidden;
}

.artifact-icon::before,
.artifact-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.artifact-xray .artifact-icon::before {
  inset: 8px;
  border: 2px solid #93c5fd;
  border-radius: 5px;
}

.artifact-xray .artifact-icon::after {
  width: 20px;
  height: 2px;
  left: 11px;
  top: 20px;
  background: #93c5fd;
  box-shadow: 0 -6px 0 rgba(147, 197, 253, 0.8), 0 6px 0 rgba(147, 197, 253, 0.8);
}

.artifact-blood .artifact-icon::before {
  width: 16px;
  height: 22px;
  left: 13px;
  top: 9px;
  background: #ef4444;
  border-radius: 999px 999px 999px 4px;
  transform: rotate(45deg);
}

.artifact-pathology .artifact-icon::before {
  width: 24px;
  height: 24px;
  left: 9px;
  top: 9px;
  border: 2px solid #c084fc;
}

.artifact-pathology .artifact-icon::after {
  width: 5px;
  height: 5px;
  left: 18px;
  top: 18px;
  background: #c084fc;
  box-shadow: 7px -3px 0 #c084fc, -6px 5px 0 #c084fc;
}

.artifact-treatment .artifact-icon::before {
  width: 24px;
  height: 8px;
  left: 9px;
  top: 17px;
  background: #72dec8;
  box-shadow: 0 -8px 0 rgba(114, 222, 200, 0.7), 0 8px 0 rgba(114, 222, 200, 0.7);
}

.artifact-claim .artifact-icon::before,
.artifact-record .artifact-icon::before,
.artifact-consult .artifact-icon::before {
  width: 24px;
  height: 28px;
  left: 9px;
  top: 7px;
  border: 2px solid #60a5fa;
  border-radius: 5px;
}

.artifact-claim .artifact-icon::after,
.artifact-record .artifact-icon::after,
.artifact-consult .artifact-icon::after {
  width: 14px;
  height: 2px;
  left: 14px;
  top: 17px;
  background: #60a5fa;
  box-shadow: 0 6px 0 #60a5fa;
}

.artifact-photo .artifact-icon::before {
  width: 25px;
  height: 18px;
  left: 8px;
  top: 12px;
  border: 2px solid #fbbf24;
  border-radius: 5px;
}

.artifact-photo .artifact-icon::after {
  width: 8px;
  height: 8px;
  right: 10px;
  top: 15px;
  background: #fbbf24;
}

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: #111728;
  border: 1px solid #1a1f35;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* ── Progress / Stats Card ─────────────────────────── */
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #1a1f35;
  color: #8e9bc0;
  border: 1px solid #242d4a;
}
.pill-good {
  background: rgba(39, 174, 96, 0.12);
  border-color: rgba(39, 174, 96, 0.35);
  color: #5dd89a;
}
.pill-warn {
  background: rgba(217, 154, 43, 0.12);
  border-color: rgba(217, 154, 43, 0.35);
  color: #e8b84a;
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: #0b1020;
  border: none;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar #progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #6366f1);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: 12px;
  color: #8e9bc0;
}

.records-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #8e9bc0;
  min-width: 0;
}
.records-field span {
  line-height: 1.35;
}
.records-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Patient identity confirmation ─────────────────── */
.people-finder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #1f2c46;
  border-bottom: 1px solid #1f2c46;
}

.people-finder.hidden {
  display: none;
}

.people-finder-header,
.people-finder-header-actions,
.people-search-actions,
.people-candidate-heading,
.people-candidate-meta {
  display: flex;
  align-items: center;
}

.people-finder-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.people-finder-header strong {
  display: block;
  margin-top: 4px;
  color: #edf5ff;
  font-size: 17px;
}

.people-finder-kicker {
  color: #f5bd4f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.people-finder-header-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.people-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(140px, 0.5fr);
  gap: 10px;
}

.people-consent-toggle,
.people-phone-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #c7d2e8;
  font-size: 12px;
  line-height: 1.45;
}

.people-consent-toggle {
  padding: 11px 12px;
  border: 1px solid #293954;
  border-radius: 6px;
  background: #0d1728;
}

.people-consent-toggle input,
.people-phone-toggle input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.people-search-actions {
  justify-content: space-between;
  gap: 14px;
}

.people-search-status {
  min-height: 20px;
}

.people-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.people-candidate {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 9px;
  padding: 13px;
  border: 1px solid #263a5c;
  border-radius: 6px;
  background: #111a2c;
}

.people-candidate-heading {
  justify-content: space-between;
  gap: 10px;
}

.people-candidate-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #edf5ff;
  font-size: 13px;
}

.people-candidate-meta {
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #91a2c2;
  font-size: 11px;
}

.people-candidate-source {
  color: #f5bd4f;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.people-candidate button {
  align-self: flex-start;
}

.people-no-match {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.people-data-notice {
  margin: 0;
}

.image-analysis-result {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.image-analysis-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.image-analysis-kicker {
  color: #68d8c1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.image-analysis-result > strong {
  color: #edf5ff;
  overflow-wrap: anywhere;
}

.image-analysis-result p {
  margin: 0;
  line-height: 1.55;
}

.image-analysis-result section {
  padding-top: 9px;
  border-top: 1px solid #2a3a58;
}

.image-analysis-result section > span {
  display: block;
  margin-bottom: 5px;
  color: #9eb0cf;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.image-analysis-result ul {
  margin: 0;
  padding-left: 18px;
}

.image-analysis-result li {
  margin: 4px 0;
}

.image-analysis-result li strong {
  color: #dce8fb;
  text-transform: capitalize;
}

.image-analysis-result li small {
  display: block;
  margin-top: 2px;
  color: #8fa4c8;
}

.image-analysis-notice {
  padding: 9px 10px;
  border-left: 3px solid #e8b84a;
  background: #111a2c;
  color: #aebbd2;
  font-size: 11px;
}

/* ── Provider finder ───────────────────────────────── */
.provider-finder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #1f2c46;
  border-bottom: 1px solid #1f2c46;
}

.provider-finder.hidden {
  display: none;
}

.provider-finder-header,
.provider-finder-header-actions,
.provider-search-controls,
.provider-result-heading,
.provider-result-meta,
.provider-result-actions {
  display: flex;
  align-items: center;
}

.provider-finder-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.provider-finder-header > div:first-child {
  min-width: 0;
}

.provider-finder-header strong {
  display: block;
  margin-top: 4px;
  color: #edf5ff;
  font-size: 17px;
}

.provider-finder-kicker {
  color: #4bd6c2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.provider-finder-header-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.provider-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.provider-search-controls button {
  min-height: 43px;
  white-space: nowrap;
}

.provider-search-status {
  min-height: 20px;
  margin: 0;
}

.provider-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.provider-results {
  max-height: 480px;
  overflow-y: auto;
  border-top: 1px solid #1d2b45;
}

.provider-result {
  border-bottom: 1px solid #1d2b45;
  background: #0e1424;
}

.provider-result.selected {
  background: #121e31;
  box-shadow: inset 3px 0 0 #4bd6c2;
}

.provider-result-main {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.provider-result-main:hover {
  border-color: transparent;
  background: rgba(25, 40, 64, 0.72);
}

.provider-result-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.provider-result-name {
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 700;
}

.provider-result-source {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(75, 214, 194, 0.32);
  border-radius: 5px;
  color: #79e5d4;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.provider-result-source.synthetic {
  border-color: rgba(242, 189, 95, 0.38);
  color: #f2bd5f;
}

.provider-result-meta {
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 7px;
  color: #9eb3cd;
  font-size: 12px;
}

.provider-result-address,
.provider-result-note {
  margin-top: 7px;
  color: #879bb6;
  font-size: 12px;
  line-height: 1.45;
}

.provider-result-actions {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.provider-result-actions button,
.provider-result-actions a,
.provider-map-detail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #2a3b5b;
  border-radius: 7px;
  background: #141e32;
  color: #cfe0f5;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.provider-result-actions button {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.provider-map-panel {
  overflow: hidden;
  border: 1px solid #233350;
  border-radius: 8px;
  background: #0c1423;
}

.provider-map-panel iframe {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
  background: #101827;
}

.provider-map-panel iframe.hidden {
  display: none;
}

.provider-map-empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px;
  color: #72839e;
  text-align: center;
}

.provider-map-empty.hidden {
  display: none;
}

.provider-map-detail {
  padding: 12px 14px;
  border-top: 1px solid #233350;
  color: #9eb3cd;
  font-size: 12px;
  line-height: 1.5;
}

.provider-map-detail strong {
  display: block;
  margin-bottom: 4px;
  color: #eaf2ff;
}

.provider-map-detail a {
  margin-top: 9px;
}

.provider-data-notice {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid #364a6a;
  font-size: 11px;
}

.care-chat-card {
  display: grid;
  gap: 14px;
  min-width: min(760px, 100%);
  padding: 4px;
}

.care-chat-head {
  display: grid;
  gap: 4px;
}

.care-chat-head span,
.vault-access-card span {
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.care-chat-head strong {
  color: #f3f7ff;
  font-size: 15px;
}

.care-chat-head p {
  margin: 0;
  color: #a8bad4;
  font-size: 12px;
  line-height: 1.55;
}

.care-chat-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.care-chat-results {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
}

.chat-provider-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #203253;
  border-radius: 13px;
  background: rgba(9, 16, 30, 0.84);
}

.chat-provider-result.selected {
  border-color: rgba(75, 214, 194, 0.5);
  box-shadow: inset 3px 0 0 #4bd6c2;
}

.chat-provider-main {
  display: grid;
  gap: 6px;
}

.chat-provider-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.chat-provider-heading strong {
  color: #edf5ff;
  font-size: 13px;
}

.chat-provider-heading span:last-child {
  flex: 0 0 auto;
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-provider-main p {
  margin: 0;
  color: #9fb0ca;
  font-size: 11.5px;
  line-height: 1.45;
}

.chat-provider-actions,
.care-chat-footer,
.vault-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-provider-actions a,
.vault-access-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #2a3b5b;
  border-radius: 8px;
  background: #141e32;
  color: #cfe0f5;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.care-chat-map {
  overflow: hidden;
  border: 1px solid #233350;
  border-radius: 14px;
  background: #0c1423;
}

.care-chat-map iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #101827;
}

.care-chat-map .provider-map-empty {
  min-height: 320px;
}

/* ── Responsive breakpoints ────────────────────────── */
@media (max-height: 700px) {
  body[data-mode="call_center"] .csr-workspace-dock {
    max-height: 50vh;
    overflow-y: auto;
  }
  .csr-assist-quickbar {
    gap: 8px;
    padding: 10px;
  }
  .csr-assist-quick-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .csr-assist-quick-actions button {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .csr-workspace-dock .csr-suggestion-copy {
    max-height: 36px;
  }
}

@media (min-width: 640px) {
  .progress-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1180px) {
  .call-center-ops {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .call-center-panel-toggle {
    right: 14px;
    bottom: 84px;
  }
  .csr-assist-quickbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .csr-assist-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }
  .csr-assist-quick-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .csr-assist-quick-actions button {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .csr-suggestion-copy {
    max-height: 72px;
  }
  .csr-prompt-toast {
    gap: 8px;
    padding: 8px;
  }
  .call-center-ops {
    top: 74px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 12px;
  }
  .header {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .header-home-btn {
    width: auto;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .brand-banner {
    grid-template-columns: 1fr;
  }
  .brand-banner-logo {
    justify-self: start;
    width: min(100%, 240px);
  }
  .journey-toggle-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .journey-route-summary {
    align-items: flex-start;
  }
  .journey-route-controls {
    width: 100%;
    align-items: flex-start;
  }
  .journey-switch {
    width: min(100%, 240px);
  }
  .demo-scenario-controls {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .demo-scenario-presets {
    justify-content: flex-start;
  }
  .route-subtype {
    text-align: left;
  }
  .ad-context-details,
  .ad-context-demo-controls {
    grid-template-columns: 1fr;
  }
  .ad-context-demo-controls button {
    width: 100%;
  }
  .session-history-header {
    grid-template-columns: 1fr;
  }
  .session-history-header > p,
  .session-toolbar {
    grid-column: 1;
  }
  .session-toolbar {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .session-toolbar .pill {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
  }
  .session-toolbar button {
    width: 100%;
    padding-inline: 8px;
  }
  .call-center-ops,
  .csr-auth-grid,
  .assist-controls,
  .assist-grid,
  .provider-search-controls,
  .provider-workspace,
  .people-search-controls,
  .people-results {
    grid-template-columns: 1fr;
  }
  .people-finder-header,
  .provider-finder-header {
    flex-direction: column;
  }
  .people-finder-header-actions,
  .provider-finder-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .people-search-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .assist-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assist-actions button {
    width: 100%;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 11px;
  }
  .provider-search-controls button {
    width: 100%;
  }
  #chat-form {
    grid-template-columns: auto auto auto minmax(0, 1fr);
  }
  #chat-input {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #upload-btn {
    grid-column: 1;
    grid-row: 2;
  }
  #mic-btn {
    grid-column: 2;
    grid-row: 2;
  }
  #play-btn {
    grid-column: 3;
    grid-row: 2;
  }
  #chat-form button[type="submit"] {
    grid-column: 4;
    grid-row: 2;
    width: 100%;
  }
}

/* ── Form / Input ──────────────────────────────────── */
form {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 6px;
  align-items: stretch;
}

.media-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 8px);
  display: grid;
  min-width: 210px;
  overflow: hidden;
  border: 1px solid #2a3c60;
  border-radius: 8px;
  background: #111a2c;
  box-shadow: 0 18px 38px rgba(2, 7, 18, 0.44);
}

.media-menu.hidden {
  display: none;
}

.media-menu button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #202f4a;
  border-radius: 0;
  background: transparent;
  color: #dce8fb;
  text-align: left;
}

.media-menu button:last-child {
  border-bottom: 0;
}

.media-menu button:hover {
  background: #192743;
}

.attachment-preview {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #1f2c46;
  border-radius: 14px;
  background: rgba(10, 18, 34, 0.92);
}

.attachment-preview.hidden {
  display: none;
}

.attachment-preview-visual {
  display: grid;
  width: 116px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  border: 1px solid #2a3c60;
  border-radius: 6px;
  background: #0b1425;
  color: #8fa4c8;
  font-size: 11px;
  text-align: center;
}

.attachment-preview-visual img,
.attachment-preview-visual video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.attachment-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.attachment-preview-copy > strong {
  overflow-wrap: anywhere;
  color: #edf5ff;
}

.attachment-category-field {
  max-width: 320px;
  margin-top: 3px;
}

.attachment-preview-actions {
  display: flex;
  gap: 8px;
}

.media-capture-panel {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(3, 7, 15, 0.86);
}

.media-capture-panel.hidden {
  display: none;
}

.media-capture-dialog {
  display: flex;
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 16px;
  border: 1px solid #2a3c60;
  border-radius: 8px;
  background: #0e1728;
}

.media-capture-header,
.media-capture-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.media-capture-header strong,
.media-capture-header span {
  display: block;
}

#media-live-preview {
  width: 100%;
  max-height: 62vh;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #030711;
  object-fit: contain;
}

.media-capture-actions {
  justify-content: center;
}

@media (max-width: 640px) {
  .attachment-preview {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .attachment-preview-visual {
    width: 88px;
  }
  .attachment-preview-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .media-menu {
    position: fixed;
    right: 12px;
    bottom: 76px;
    left: 12px;
  }
}
input, select {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #1a1f35;
  background: #0e1225;
  color: #e1e5f0;
  font-size: 14px;
  transition: border-color 0.2s;
}
select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
input:focus, select:focus {
  outline: none;
  border-color: #3b5bdb;
}

/* ── Buttons ───────────────────────────────────────── */
button {
  padding: 10px 18px;
  border: 1px solid #242d4a;
  border-radius: 10px;
  background: #1a2040;
  color: #c8cee0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}
button:hover {
  background: #212a4a;
  border-color: #3b5bdb;
  color: #e1e5f0;
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Primary action buttons */
button[type="submit"], button.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}
button[type="submit"]:hover, button.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
/* Secondary / subtle buttons */
button.btn-subtle {
  background: transparent;
  border: 1px solid #242d4a;
  color: #8e9bc0;
  font-size: 12px;
  padding: 7px 14px;
}
button.btn-subtle:hover {
  background: #1a1f35;
  color: #c8cee0;
}
/* Icon buttons */
button#mic-btn, button#play-btn, button#upload-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #141a30;
  border: 1px solid #1a1f35;
  color: #8e9bc0;
  border-radius: 10px;
}

button#mic-btn svg,
button#play-btn svg,
button#upload-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  form {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  }
}
button#mic-btn:hover, button#play-btn:hover, button#upload-btn:hover {
  background: #1a2040;
  color: #c8cee0;
}
button#mic-btn.active,
button#play-btn.active {
  background: rgba(39, 174, 96, 0.15);
  border-color: rgba(39, 174, 96, 0.4);
  color: #5dd89a;
}

/* ── Batch Card ────────────────────────────────────── */
#batch-card {
  background: #111728;
  border: 1px solid #1a1f35;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#batch-card.hidden {
  display: none !important;
}
#batch-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
#batch-card .sub {
  margin: 0;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  text-align: center;
  font-size: 11px;
  color: #4a5278;
  padding: 8px 0;
  border-top: 1px solid #141a30;
}
footer span {
  display: inline-block;
  margin: 0 4px;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #242d4a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4570;
}

@media (max-width: 760px) {
  .care-chat-card {
    min-width: 0;
  }

  .care-chat-layout,
  .vault-access-grid {
    grid-template-columns: 1fr;
  }

  .report-card-head,
  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .report-card-head {
    display: grid;
  }

  .msg-report .artifact-card,
  .msg-report .artifact-card.has-artifact-thumb {
    grid-template-columns: 1fr;
  }

  .msg-report .artifact-thumb {
    width: 100%;
    max-width: 180px;
  }

  .care-chat-map iframe,
  .care-chat-map .provider-map-empty {
    min-height: 240px;
  }
}
.csr-case-action-card {
  border-left: 3px solid #52b9a4;
  padding: 12px;
  margin: 0 0 16px;
  font-size: 13px;
}
.csr-case-action-card p { margin: 6px 0; }
.csr-case-action-card button { margin: 4px 6px 4px 0; white-space: normal; }
