:root {
  color-scheme: light;
  --paper: #f6f3ed;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1f2528;
  --muted: #667074;
  --line: #ddd8cd;
  --line-strong: #c7c0b5;
  --teal: #0e766f;
  --teal-dark: #0a4f4d;
  --coral: #c9573d;
  --amber: #a27828;
  --plum: #6f4d7c;
  --shadow: 0 18px 45px rgba(39, 36, 30, 0.12);
  --soft-shadow: 0 8px 24px rgba(39, 36, 30, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(14, 118, 111, 0.06), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, var(--paper) 100%);
  color: var(--ink);
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(560px, 1fr) 360px;
  grid-template-rows: 72px minmax(0, 1fr);
  min-height: 100vh;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 246px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
}

.nav-button,
.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.ask-button,
.chip-button,
.response-action {
  border: 0;
  border-radius: 7px;
  min-height: 34px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.nav-button {
  position: relative;
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-count {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #f4efe5;
  color: #6b5840;
  font-size: 12px;
  font-weight: 850;
}

.nav-button.active,
.nav-button:hover {
  background: var(--ink);
  color: #fff;
}

.nav-button.active .nav-count,
.nav-button:hover .nav-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nav-button.active {
  box-shadow: inset 0 -3px 0 0 var(--teal);
}

.nav-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.top-actions .secondary-button,
.top-actions .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.top-actions .secondary-button:hover {
  background: var(--surface-strong);
  border-color: var(--ink);
}

.top-actions button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.primary-button {
  background: var(--teal);
  color: #fff;
  padding: 0 14px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(14, 118, 111, 0.18);
}

.primary-button:hover,
.ask-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ask-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.secondary-button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 0 13px;
  font-weight: 700;
}

.ghost-button {
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-weight: 700;
}

.icon-button {
  width: 38px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 18px;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 22px;
  background: rgba(255, 253, 248, 0.72);
}

.side-section {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.side-section h2 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.artifact-summary p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.artifact-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.artifact-metrics button {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--ink);
  text-align: left;
  padding: 9px;
}

.artifact-metrics strong,
.artifact-metrics span {
  display: block;
}

.artifact-metrics strong {
  font-size: 20px;
}

.artifact-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.live-card {
  display: grid;
  gap: 12px;
  border-color: rgba(14, 118, 111, 0.35);
}

.live-card.paused {
  border-color: rgba(162, 120, 40, 0.42);
  background: #fff9ed;
}

.recording-head {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.recording-head > div {
  min-width: 0;
}

.live-card span,
.participant small,
.policy-assurance-item span,
.policy-assurance-item small,
.policy-status-grid small {
  color: var(--muted);
}

.recording-head strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(201, 87, 61, 0.12);
}

.live-card.paused .live-dot {
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(162, 120, 40, 0.14);
}

.recording-toggle {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--teal-dark);
  padding: 0 10px;
  font-weight: 800;
}

.live-card.paused .recording-toggle {
  color: #785914;
}

.capture-channel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.capture-channel {
  position: relative;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 9px 9px 12px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: #edf7f4;
  overflow: hidden;
}

.capture-channel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.capture-channel strong,
.capture-channel small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-channel strong {
  color: var(--ink);
  font-size: 13px;
}

.capture-channel small {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
}

.capture-channel.held {
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
}

.capture-channel.held::before {
  background: var(--amber);
}

.capture-channel.held small {
  color: #785914;
}

.participant-list {
  display: grid;
  gap: 8px;
}

.participant {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 9px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  overflow: hidden;
  --speaker-accent: var(--teal);
}

.participant::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--speaker-accent);
}

.participant.speaker-laura {
  --speaker-accent: var(--teal);
}

.participant.speaker-andrew {
  --speaker-accent: var(--plum);
}

.participant.speaker-priya {
  --speaker-accent: var(--amber);
}

.participant-copy {
  min-width: 0;
}

.participant-copy strong,
.participant-copy span {
  display: block;
}

.participant-copy strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 8px 18px rgba(31, 37, 40, 0.12);
}

.laura {
  background: var(--teal-dark);
}

.andrew {
  background: var(--plum);
}

.priya {
  background: var(--amber);
}

.participant small {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f8f4ec;
  color: #6b5840;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.participant small.live {
  background: #fff1ed;
  color: #9b3d2b;
}

.policy-card {
  display: grid;
  gap: 12px;
}

.policy-card h2 {
  margin-bottom: 0;
}

.policy-assurance-list {
  display: grid;
  gap: 8px;
}

.policy-assurance-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-height: 58px;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: #edf7f4;
  overflow: hidden;
}

.policy-assurance-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.policy-assurance-item:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
}

.policy-assurance-item:nth-child(2)::before {
  background: var(--amber);
}

.policy-assurance-item:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: #fbf7fc;
}

.policy-assurance-item:nth-child(3)::before {
  background: var(--plum);
}

.policy-assurance-item span,
.policy-assurance-item strong,
.policy-assurance-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-assurance-item span {
  font-size: 12px;
  font-weight: 800;
}

.policy-assurance-item strong {
  color: var(--teal-dark);
  font-size: 12px;
}

.policy-assurance-item:nth-child(2) strong {
  color: #785914;
}

.policy-assurance-item:nth-child(3) strong {
  color: var(--plum);
}

.policy-assurance-item small {
  grid-column: 1 / -1;
  font-size: 12px;
}

.policy-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.policy-status-grid span {
  display: grid;
  align-content: center;
  min-height: 52px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.policy-status-grid small,
.policy-status-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-status-grid small {
  font-size: 11px;
  font-weight: 850;
}

.policy-status-grid strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.workspace {
  position: relative;
  min-width: 0;
  padding: 24px 28px 60px;
  overflow: auto;
}

.meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

.meeting-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.signal-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signal-pill strong {
  color: var(--ink);
  font-size: 14px;
}

.meeting-meter {
  width: 232px;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--soft-shadow);
  color: var(--muted);
  font-weight: 700;
}

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

.meter-head span,
.meter-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meter-head span {
  font-size: 12px;
}

.meter-head strong {
  color: var(--ink);
  font-size: 16px;
}

.meter-track {
  height: 8px;
  border-radius: 999px;
  background: #e8e1d6;
  overflow: hidden;
}

.meter-track div {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}

.meter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meter-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f8f4ec;
  color: #6b5840;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.bulk-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(14, 118, 111, 0.28);
  border-radius: 8px;
  background: #edf7f4;
  box-shadow: var(--soft-shadow);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.bulk-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.selection-summary {
  min-width: 0;
}

.selection-summary > strong,
.selection-summary > span,
.selection-summary > small {
  display: block;
}

.selection-summary > strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.selection-summary > span:not(.selection-kicker),
.selection-summary > small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.selection-count-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.selection-count-line span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-count-chip {
  flex: 0 0 auto;
  min-width: 28px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px rgba(14, 118, 111, 0.18), 0 6px 14px rgba(8, 45, 53, 0.08);
}

.selection-kicker {
  margin-bottom: 3px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.bulk-bar #askSelected,
.bulk-bar #clearSelection {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
}

.bulk-bar #askSelected {
  padding-left: 18px;
  background: linear-gradient(135deg, var(--teal) 0%, #129487 58%, #6b8e3f 100%);
  box-shadow: 0 10px 22px rgba(14, 118, 111, 0.22);
}

.bulk-bar #askSelected::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, 0.72);
}

.bulk-bar #askSelected:hover,
.bulk-bar #askSelected:focus-visible {
  background: linear-gradient(135deg, #0b6963 0%, var(--teal) 56%, #8c6b20 100%);
  box-shadow: 0 13px 28px rgba(14, 118, 111, 0.26);
}

.bulk-bar #clearSelection {
  border-color: rgba(111, 77, 124, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #6b5840;
  box-shadow: 0 7px 16px rgba(31, 37, 40, 0.06);
}

.bulk-bar #clearSelection:hover,
.bulk-bar #clearSelection:focus-visible {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(31, 37, 40, 0.09);
}

.bulk-bar #askSelected:focus-visible,
.bulk-bar #clearSelection:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
}

.transcript-panel {
  position: relative;
}

.filter-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--soft-shadow);
}

.filter-chip {
  position: relative;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.filter-chip::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  background: #f7f2e9;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.07);
  transform: translateY(-1px);
}

.filter-chip:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--ink) 0%, #2e4a4c 100%);
  color: #fff;
  box-shadow: 0 9px 20px rgba(31, 37, 40, 0.12);
}

.filter-chip.active::before {
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.filter-count {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #f4efe5;
  color: #6b5840;
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(111, 77, 124, 0.08);
}

.filter-chip.active .filter-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.filter-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px 12px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(111, 77, 124, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #f8fbf7 58%, #fff7ec 100%);
  box-shadow: 0 12px 30px rgba(31, 37, 40, 0.08);
  overflow: hidden;
}

.filter-summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.filter-summary-copy {
  min-width: 0;
}

.filter-summary-copy strong,
.filter-summary-copy span {
  display: block;
}

.filter-summary-copy strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-summary-copy span:not(.filter-summary-kicker) {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.filter-summary-kicker {
  width: fit-content;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.1);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.filter-summary-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f6f2 0%, #fff7ec 100%);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(14, 118, 111, 0.16), 0 7px 16px rgba(31, 37, 40, 0.06);
}

.timeline-rule {
  position: absolute;
  left: 24px;
  top: 142px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--line-strong), rgba(221, 216, 205, 0));
}

.transcript-feed {
  display: grid;
  gap: 0;
}

.transcript-empty {
  position: relative;
  margin-left: 62px;
  padding: 18px 18px 18px 22px;
  border: 1px solid rgba(111, 77, 124, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #f8fbf7 58%, #fff7ec 100%);
  color: var(--muted);
  box-shadow: 0 12px 30px rgba(31, 37, 40, 0.08);
  overflow: hidden;
}

.transcript-empty::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.transcript-empty strong,
.transcript-empty span {
  display: block;
}

.transcript-empty strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.transcript-empty span {
  max-width: 520px;
  line-height: 1.45;
}

.segment-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.segment-wrap.grouped {
  margin-bottom: 6px;
}

.select-column {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 22px;
}

.select-column input {
  appearance: none;
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(14, 118, 111, 0.24);
  border-radius: 7px;
  background: linear-gradient(135deg, #fffdfa 0%, #edf7f4 100%);
  box-shadow: 0 7px 16px rgba(31, 37, 40, 0.07);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.select-column input::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  background: transparent;
}

.select-column input:hover,
.select-column input:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 10px 20px rgba(14, 118, 111, 0.14);
  transform: translateY(-1px);
}

.select-column input:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
}

.select-column input:checked {
  border-color: rgba(14, 118, 111, 0.72);
  background: linear-gradient(135deg, var(--teal) 0%, #129487 62%, #6b8e3f 100%);
}

.select-column input:checked::after {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.bubble {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  --speaker-accent: var(--teal);
}

.bubble::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--speaker-accent);
}

.bubble.speaker-laura {
  --speaker-accent: var(--teal);
}

.bubble.speaker-andrew {
  --speaker-accent: var(--plum);
}

.bubble.speaker-priya {
  --speaker-accent: var(--amber);
}

.bubble.selected {
  border-color: var(--teal);
  background: linear-gradient(135deg, #fffdfa 0%, #e8f5f1 100%);
  box-shadow: 0 0 0 2px rgba(14, 118, 111, 0.22), 0 14px 32px rgba(14, 118, 111, 0.11);
}

.bubble.search-hit {
  border-color: rgba(162, 120, 40, 0.65);
  box-shadow: 0 0 0 3px rgba(162, 120, 40, 0.14), var(--soft-shadow);
}

.bubble.partial {
  border-style: dashed;
}

.bubble-header {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 8px 18px;
}

.speaker-meta strong,
.speaker-meta span {
  display: block;
}

.speaker-meta span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.source-badge,
.transcript-status,
.turn-marker {
  min-height: 24px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(31, 37, 40, 0.05);
}

.source-badge {
  border: 1px solid rgba(162, 120, 40, 0.2);
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
  color: #6b5840 !important;
}

.source-badge.source-microphone {
  border-color: rgba(14, 118, 111, 0.2);
  background: linear-gradient(135deg, #edf7f4 0%, #ffffff 100%);
  color: var(--teal-dark) !important;
}

.source-badge.source-room {
  border-color: rgba(111, 77, 124, 0.2);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
  color: var(--plum) !important;
}

.source-badge.source-application {
  border-color: rgba(162, 120, 40, 0.22);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
  color: #785914 !important;
}

.turn-marker {
  margin-top: 5px;
  border: 1px solid rgba(111, 77, 124, 0.35);
  background: #fff;
  color: #6f4d7c !important;
  font-weight: 900;
}

.transcript-status.final {
  border: 1px solid rgba(14, 118, 111, 0.18);
  background: linear-gradient(135deg, #e8f5f1 0%, #ffffff 100%);
  color: var(--teal-dark);
}

.transcript-status.partial {
  border: 1px solid rgba(201, 87, 61, 0.2);
  background: linear-gradient(135deg, #fff1ed 0%, #ffffff 100%);
  color: #9b3d2b;
}

.bubble-status {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified {
  color: var(--teal);
  font-weight: 900;
}

.bubble-text {
  padding: 8px 16px 12px 66px;
  font-size: 17px;
  line-height: 1.5;
}

.bubble-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid #eee9df;
  background: #fcfaf5;
}

.ask-button {
  position: relative;
  min-width: 98px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  background: linear-gradient(135deg, #e8f6f2 0%, #f8fbf7 58%, #fff7ec 100%);
  color: var(--teal-dark);
  padding: 0 13px 0 17px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(14, 118, 111, 0.13);
  overflow: hidden;
}

.ask-button::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.ask-button:hover:not(:disabled),
.ask-button:focus-visible {
  background: linear-gradient(135deg, #dcf2ee 0%, #f5fbf8 52%, #fff3dc 100%);
  color: var(--ink);
  box-shadow: 0 11px 22px rgba(14, 118, 111, 0.17);
}

.ask-button:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
}

.ask-readiness {
  position: relative;
  min-height: 30px;
  max-width: min(360px, 46%);
  display: inline-flex;
  align-items: center;
  padding: 4px 9px 4px 13px;
  border: 1px solid rgba(162, 120, 40, 0.22);
  border-radius: 8px;
  background: #fff9ed;
  color: #785914;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ask-readiness::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--amber);
}

.response-pill {
  position: relative;
  border: 1px solid rgba(111, 77, 124, 0.16);
  border-radius: 999px;
  background: #fbf7fc;
  color: #6b5840;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  max-width: min(360px, 48%);
  padding: 5px 10px 5px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  box-shadow: 0 5px 12px rgba(31, 37, 40, 0.04);
  overflow: hidden;
  --response-indicator-accent: var(--plum);
}

.response-pill::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--response-indicator-accent);
}

.response-pill-count,
.response-pill-detail {
  display: block;
  white-space: nowrap;
}

.response-pill-count {
  flex: 0 0 auto;
}

.response-pill-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.response-pill.response-streaming {
  --response-indicator-accent: var(--teal);
  border-color: rgba(14, 118, 111, 0.22);
  background: #e8f5f1;
  color: var(--teal-dark);
}

.response-pill.response-failed {
  --response-indicator-accent: var(--coral);
  border-color: rgba(201, 87, 61, 0.28);
  background: #fff1ed;
  color: #9b3d2b;
}

.response-pill.response-stopped {
  --response-indicator-accent: var(--amber);
  border-color: rgba(162, 120, 40, 0.26);
  background: #f8f4ec;
  color: #785914;
}

.more-button {
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 77, 124, 0.16);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(31, 37, 40, 0.04);
  color: var(--plum);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.more-button:hover,
.more-button:focus-visible {
  border-color: rgba(111, 77, 124, 0.28);
  background: #fbf7ee;
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.08);
  color: #4c3156;
  transform: translateY(-1px);
}

.more-button:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
}

.more-button:active {
  transform: translateY(0);
}

.ai-stack {
  display: grid;
  gap: 10px;
  margin: 10px 0 2px 76px;
}

.ai-card,
.multi-ai-card {
  position: relative;
  border: 1px solid rgba(111, 77, 124, 0.24);
  border-radius: 8px;
  background: #fffafc;
  box-shadow: var(--soft-shadow);
}

.ai-card::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -10px;
  width: 18px;
  height: 32px;
  border-left: 2px solid rgba(111, 77, 124, 0.35);
  border-bottom: 2px solid rgba(111, 77, 124, 0.35);
  border-bottom-left-radius: 8px;
}

.ai-card.collapsed,
.multi-ai-card.collapsed {
  background: #fbf7ee;
}

.multi-response-zone {
  position: relative;
  margin: 20px 0 0 62px;
  display: grid;
  gap: 10px;
  padding-left: 14px;
}

.multi-response-zone::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--plum));
}

.multi-ai-card {
  background: #fffdf6;
  border-color: rgba(14, 118, 111, 0.28);
}

.scope-note {
  position: relative;
  margin-top: 10px !important;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(111, 77, 124, 0.16);
  border-radius: 8px;
  background: #fbf7fc;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
  overflow: hidden;
}

.scope-note::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--plum);
}

.ai-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(111, 77, 124, 0.15);
  background: linear-gradient(90deg, #f8fcfa 0%, #fffdf9 100%);
}

.ai-header > span[aria-hidden="true"] {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(31, 37, 40, 0.05);
}

.ai-provider {
  flex: 1;
  min-width: 0;
}

.ai-provider strong,
.ai-provider span {
  display: block;
}

.ai-provider span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.ai-provider strong {
  color: var(--ink);
  font-size: 13px;
}

.status-badge {
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(111, 77, 124, 0.16);
  background: #fbf7fc;
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(31, 37, 40, 0.04);
  white-space: nowrap;
}

.status-badge.streaming {
  border-color: rgba(14, 118, 111, 0.22);
  background: #edf7f4;
  color: var(--teal-dark);
}

.status-badge.stopped {
  border-color: rgba(162, 120, 40, 0.26);
  background: #fbf3e4;
  color: #785914;
}

.status-badge.failed {
  border-color: rgba(201, 87, 61, 0.28);
  background: #fae9e4;
  color: #9b3d2b;
}

.ai-card.response-streaming,
.multi-ai-card.response-streaming {
  border-color: rgba(14, 118, 111, 0.36);
  box-shadow: 0 12px 28px rgba(14, 118, 111, 0.1);
}

.ai-card.response-failed,
.multi-ai-card.response-failed {
  background: #fff8f6;
  border-color: rgba(201, 87, 61, 0.34);
}

.ai-body {
  padding: 14px;
  color: #303235;
  line-height: 1.55;
}

.ai-body p {
  margin: 0;
}

.response-skeleton {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 11px 11px 11px 15px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 8px;
  background: #f8fcfa;
  box-shadow: 0 7px 16px rgba(31, 37, 40, 0.04);
  overflow: hidden;
}

.response-skeleton::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.skeleton-line {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7f2ef 0%, #ffffff 46%, #efe7dc 100%);
  background-size: 220% 100%;
  animation: response-shimmer 1.2s ease-in-out infinite;
}

.skeleton-line.long {
  width: 92%;
}

.skeleton-line.medium {
  width: 72%;
}

.skeleton-line.short {
  width: 44%;
}

.typing-indicator {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 6px);
  gap: 4px;
  align-items: center;
  margin-top: 11px;
  min-height: 24px;
  padding: 7px 9px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 999px;
  background: #f8fcfa;
  box-shadow: 0 7px 16px rgba(31, 37, 40, 0.05);
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.08);
  animation: typing-pulse 900ms ease-in-out infinite;
}

.typing-indicator span:first-child {
  background: var(--teal);
}

.typing-indicator span:nth-child(2) {
  background: var(--amber);
  animation-delay: 120ms;
}

.typing-indicator span:nth-child(3) {
  background: var(--plum);
  animation-delay: 240ms;
}

.response-state {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 11px 11px 11px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfaf6;
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.05);
  overflow: hidden;
}

.response-state::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.response-state strong {
  font-size: 13px;
}

.response-state p {
  margin: 0;
  line-height: 1.42;
}

.response-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  padding-top: 2px;
}

.response-recovery-actions .response-action {
  background: #ffffff;
}

.response-action[data-retry-response] {
  border-color: rgba(14, 118, 111, 0.24);
  background: #edf7f4;
  color: var(--teal-dark);
}

.response-action[data-change-question] {
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
  color: #785914;
}

.response-action[data-close-failed] {
  border-color: rgba(111, 77, 124, 0.24);
  background: #fbf7fc;
  color: var(--plum);
}

.request-error {
  gap: 8px;
  padding: 13px 13px 13px 17px;
  border-color: rgba(201, 87, 61, 0.32);
  background: linear-gradient(135deg, #fff7f3 0%, #fffdfa 58%, #fbf3e4 100%);
  box-shadow: 0 14px 28px rgba(122, 47, 34, 0.1);
}

.request-error::before {
  width: 4px;
  background: linear-gradient(180deg, #c9573d, var(--amber));
}

.request-error::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c9573d;
  box-shadow: 0 0 0 4px rgba(201, 87, 61, 0.12);
}

.request-error strong {
  padding-right: 24px;
  color: #7a2f22;
}

.request-error p {
  padding: 9px 10px;
  border: 1px solid rgba(201, 87, 61, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.74);
  color: #703327;
  box-shadow: inset 3px 0 0 rgba(201, 87, 61, 0.16);
  overflow-wrap: anywhere;
}

.request-error .response-recovery-actions {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 87, 61, 0.12);
}

.request-error .response-action {
  box-shadow: 0 6px 14px rgba(122, 47, 34, 0.08);
}

.request-error #retryComposerRequest {
  border-color: rgba(14, 118, 111, 0.24);
  background: #edf7f4;
  color: var(--teal-dark);
}

.request-error #editComposerQuestion {
  border-color: rgba(162, 120, 40, 0.26);
  background: #fbf3e4;
  color: #785914;
}

.response-state.failed {
  background: #fff1ed;
  border-color: rgba(201, 87, 61, 0.28);
  color: #7a2f22;
}

.response-state.failed::before {
  background: #c9573d;
}

.response-state.stopped {
  background: #f8f4ec;
  border-color: rgba(162, 120, 40, 0.32);
}

.response-state.stopped::before {
  background: var(--amber);
}

.response-insight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.response-insight-card {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  padding: 9px 9px 9px 12px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4fbf8 0%, #edf7f4 100%);
  box-shadow: 0 9px 20px rgba(21, 52, 48, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.response-insight-card:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 13px 26px rgba(21, 52, 48, 0.11);
  transform: translateY(-1px);
}

.response-insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.response-insight-card::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 26px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.response-insight-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fff8ec 0%, #fbf3e4 100%);
}

.response-insight-card:nth-child(2)::before {
  background: var(--amber);
}

.response-insight-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fffaff 0%, #fbf7fc 100%);
}

.response-insight-card:nth-child(3)::before {
  background: var(--plum);
}

.response-insight-card span,
.response-insight-card strong,
.response-insight-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.response-insight-card span,
.response-insight-card small {
  color: var(--muted);
}

.response-insight-card span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.response-insight-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.response-insight-card small {
  margin-top: 4px;
  font-size: 12px;
}

.response-source-snapshot {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px 11px 14px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 9px 20px rgba(21, 52, 48, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.response-source-snapshot:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 13px 26px rgba(21, 52, 48, 0.11);
  transform: translateY(-1px);
}

.response-source-snapshot::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--plum));
}

.response-source-snapshot::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 28px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.response-source-head {
  position: relative;
  z-index: 1;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 250, 0.82));
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.18), 0 6px 14px rgba(8, 45, 53, 0.04);
  overflow: hidden;
}

.response-source-head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--plum));
}

.response-source-head span,
.response-source-head strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-source-head span {
  width: fit-content;
  max-width: 52%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.response-source-head span::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.response-source-head strong {
  max-width: 48%;
  padding: 4px 9px;
  border: 1px solid rgba(111, 77, 124, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaff 100%);
  color: var(--plum);
  font-size: 12px;
  box-shadow: 0 5px 12px rgba(111, 77, 124, 0.06);
}

.response-source-snapshot p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #4b5255;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.correction-review-panel {
  min-height: 100%;
}

.correction-review-state {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(44, 127, 112, 0.24);
  border-radius: 8px;
  background: #edf7f4;
  color: #23443e;
}

.correction-review-state strong {
  font-size: 13px;
}

.correction-review-state p {
  margin: 0;
  line-height: 1.4;
}

.correction-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.correction-review-card {
  position: relative;
  min-height: 70px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: #edf7f4;
  overflow: hidden;
}

.correction-review-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.correction-review-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
}

.correction-review-card:nth-child(2)::before {
  background: var(--amber);
}

.correction-review-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: #fbf7fc;
}

.correction-review-card:nth-child(3)::before {
  background: var(--plum);
}

.correction-review-card span,
.correction-review-card strong,
.correction-review-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.correction-review-card span,
.correction-review-card small {
  color: var(--muted);
}

.correction-review-card span {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.correction-review-card span::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.correction-review-card:nth-child(2) span {
  border-color: rgba(162, 120, 40, 0.18);
  background: rgba(162, 120, 40, 0.12);
  color: #785914;
}

.correction-review-card:nth-child(2) span::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(162, 120, 40, 0.15);
}

.correction-review-card:nth-child(3) span {
  border-color: rgba(111, 77, 124, 0.18);
  background: rgba(111, 77, 124, 0.1);
  color: var(--plum);
}

.correction-review-card:nth-child(3) span::before {
  background: var(--plum);
  box-shadow: 0 0 0 3px rgba(111, 77, 124, 0.13);
}

.correction-review-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.correction-review-card small {
  margin-top: 4px;
  font-size: 12px;
}

.correction-source,
.correction-suggestion {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 12px 15px;
  border-color: rgba(14, 118, 111, 0.18);
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 9px 20px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.correction-source::before,
.correction-suggestion::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.correction-suggestion {
  border-color: rgba(111, 77, 124, 0.26);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.correction-suggestion::before {
  background: var(--plum);
}

.correction-source .scope-label,
.correction-suggestion .scope-label {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.correction-source .scope-label::before,
.correction-suggestion .scope-label::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.correction-suggestion .scope-label {
  border-color: rgba(111, 77, 124, 0.18);
  background: rgba(111, 77, 124, 0.1);
  color: var(--plum);
}

.correction-suggestion .scope-label::before {
  background: var(--plum);
  box-shadow: 0 0 0 3px rgba(111, 77, 124, 0.13);
}

.correction-source .quote,
.correction-suggestion .quote {
  position: relative;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 250, 0.82));
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.22), 0 5px 12px rgba(8, 45, 53, 0.04);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.correction-suggestion .quote {
  border-color: rgba(111, 77, 124, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 252, 0.88));
  box-shadow: inset 3px 0 0 rgba(111, 77, 124, 0.24), 0 5px 12px rgba(63, 43, 74, 0.04);
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 12px 12px;
}

.compact-actions {
  align-items: flex-start;
}

.response-action {
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(111, 77, 124, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.05);
}

.response-action[data-save],
.response-action[data-followup],
.response-action[data-followup-multi] {
  border-color: rgba(14, 118, 111, 0.24);
  background: #edf7f4;
  color: var(--teal-dark);
}

.response-action[data-action],
.response-action[data-regenerate] {
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
  color: #785914;
}

.response-action[data-report],
.response-action[data-stop],
.response-action[data-stop-multi] {
  border-color: rgba(111, 77, 124, 0.24);
  background: #fbf7fc;
  color: var(--plum);
}

.response-more-menu {
  position: relative;
  display: inline-flex;
  z-index: 2;
}

.response-more-menu summary {
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.response-more-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 1px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.response-more-menu summary::-webkit-details-marker {
  display: none;
}

.response-more-menu[open] {
  z-index: 24;
}

.response-more-menu[open] summary {
  border-color: rgba(111, 77, 124, 0.28);
  background: #f4efe5;
  color: var(--ink);
  box-shadow: 0 9px 18px rgba(31, 37, 40, 0.09);
}

.response-more-menu[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.response-more-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: min(360px, 82vw);
  padding: 9px 9px 9px 12px;
  border: 1px solid rgba(111, 77, 124, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  box-shadow: 0 18px 36px rgba(31, 37, 40, 0.14);
  overflow: hidden;
}

.response-more-list::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 7px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--amber), var(--plum));
}

.response-more-list .response-action {
  position: relative;
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding-left: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  color: #303235;
  white-space: nowrap;
  overflow: hidden;
}

.response-more-list .response-action::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.1);
  transform: translateY(-50%);
}

.response-more-list .response-action:hover,
.response-more-list .response-action:focus-visible {
  border-color: rgba(14, 118, 111, 0.24);
  background: #f8fcfa;
  color: var(--teal-dark);
  box-shadow: 0 7px 16px rgba(14, 118, 111, 0.08);
}

.response-history-panel {
  min-height: 100%;
}

.history-panel-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.04);
  overflow: hidden;
}

.history-panel-head::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.history-panel-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.history-panel-copy .eyebrow {
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: #edf7f4;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-panel-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-panel-count {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 999px;
  background: #edf7f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(14, 118, 111, 0.08);
}

.history-panel-count::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.1);
}

.history-source-preview {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-strong) 0%, #fffdf9 100%);
  box-shadow: 0 10px 24px rgba(31, 37, 40, 0.06);
  overflow: hidden;
  --speaker-accent: var(--teal);
}

.history-source-preview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--speaker-accent);
}

.history-source-preview::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 7px;
  pointer-events: none;
}

.history-source-preview.speaker-laura {
  --speaker-accent: var(--teal);
}

.history-source-preview.speaker-andrew {
  --speaker-accent: var(--plum);
}

.history-source-preview.speaker-priya {
  --speaker-accent: var(--amber);
}

.history-source-preview header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.history-source-preview .avatar {
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 0 0 3px rgba(14, 118, 111, 0.12), 0 9px 20px rgba(31, 37, 40, 0.13);
}

.history-source-speaker {
  position: relative;
  min-width: 0;
  padding: 6px 8px 6px 11px;
  border: 1px solid rgba(14, 118, 111, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
  overflow: hidden;
}

.history-source-speaker::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--speaker-accent);
}

.history-source-speaker strong,
.history-source-speaker span {
  display: block;
}

.history-source-speaker strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-source-speaker span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.history-source-badges {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
}

.history-source-badges .source-badge,
.history-source-badges .transcript-status {
  min-height: 22px;
  box-shadow: none;
}

.history-source-preview p {
  position: relative;
  margin: 0;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(14, 118, 111, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #30363a;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-shadow: inset 3px 0 0 var(--speaker-accent);
}

.history-source-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.history-source-stat {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
  overflow: hidden;
  --history-source-stat-accent: var(--teal);
}

.history-source-stat::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--history-source-stat-accent);
}

.history-source-stat small,
.history-source-stat strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-source-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.history-source-stat strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.history-source-stat.responses {
  --history-source-stat-accent: var(--teal);
  border-color: rgba(14, 118, 111, 0.24);
  background: #edf7f4;
}

.history-source-stat.latest {
  --history-source-stat-accent: var(--amber);
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
}

.history-source-stat.source {
  --history-source-stat-accent: var(--plum);
  border-color: rgba(111, 77, 124, 0.22);
  background: #fbf7fc;
}

.history-list {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 10px;
}

.history-list::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 118, 111, 0.34), rgba(162, 120, 40, 0.3), rgba(111, 77, 124, 0.26));
}

.history-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 12px 15px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-strong) 0%, #fffdf9 100%);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.04);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  --history-item-accent: var(--amber);
}

.history-item::before,
.history-item::after {
  content: "";
  position: absolute;
}

.history-item::before {
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--history-item-accent);
}

.history-item::after {
  inset: 1px;
  border: 1px solid transparent;
  border-radius: 7px;
  pointer-events: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.history-item:hover,
.history-item:focus-within {
  border-color: rgba(14, 118, 111, 0.28);
  box-shadow: 0 11px 24px rgba(31, 37, 40, 0.07);
}

.history-item.selected {
  --history-item-accent: var(--teal);
  border-color: rgba(14, 118, 111, 0.42);
  background: linear-gradient(135deg, #e9f5f2 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.1), 0 11px 24px rgba(31, 37, 40, 0.06);
}

.history-item.selected::after {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(14, 118, 111, 0.08);
}

.history-item.selected .history-preview-card {
  border-color: rgba(14, 118, 111, 0.22);
  box-shadow: 0 9px 18px rgba(14, 118, 111, 0.08);
}

.history-open {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.history-row strong,
.history-index,
.history-meta,
.history-preview {
  display: block;
}

.history-row > span:first-child {
  min-width: 0;
}

.history-row .status-badge {
  align-self: start;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-width: 1px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.05);
}

.history-row .status-badge.streaming {
  box-shadow: 0 6px 14px rgba(14, 118, 111, 0.08);
}

.history-row .status-badge.stopped {
  box-shadow: 0 6px 14px rgba(162, 120, 40, 0.08);
}

.history-row .status-badge.failed {
  box-shadow: 0 6px 14px rgba(201, 87, 61, 0.08);
}

.history-index {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 23px;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(162, 120, 40, 0.16);
  background: #f8f4ec;
  color: #6b5840;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(31, 37, 40, 0.04);
  --history-index-accent: var(--amber);
}

.history-index::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--history-index-accent);
  box-shadow: 0 0 0 3px rgba(162, 120, 40, 0.1);
}

.history-index.latest {
  --history-index-accent: var(--teal);
  border-color: rgba(14, 118, 111, 0.24);
  background: #edf7f4;
  color: var(--teal-dark);
}

.history-index.older {
  --history-index-accent: var(--amber);
  border-color: rgba(162, 120, 40, 0.2);
}

.history-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.history-item.selected .history-row strong {
  color: var(--teal-dark);
}

.history-meta {
  width: fit-content;
  max-width: 100%;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(111, 77, 124, 0.12);
  border-radius: 999px;
  background: rgba(251, 247, 252, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(31, 37, 40, 0.035);
}

.history-preview-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 7px 16px rgba(31, 37, 40, 0.04);
  overflow: hidden;
}

.history-preview-card::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.history-preview-card small {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.history-preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.history-item-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(31, 37, 44, 0.08);
}

.history-item-meta-cell {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
  overflow: hidden;
  --history-meta-accent: var(--teal);
}

.history-item-meta-cell::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--history-meta-accent);
}

.history-item-meta-cell small,
.history-item-meta-cell b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-meta-cell small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.history-item-meta-cell b {
  color: #303235;
  font-size: 12px;
  font-weight: 850;
}

.history-item-meta-cell.provider {
  --history-meta-accent: var(--teal);
  border-color: rgba(14, 118, 111, 0.22);
  background: #edf7f4;
}

.history-item-meta-cell.saved {
  --history-meta-accent: var(--amber);
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
}

.history-item-meta-cell.reports {
  --history-meta-accent: var(--plum);
  border-color: rgba(111, 77, 124, 0.22);
  background: #fbf7fc;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.followup-context {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(109, 92, 126, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  box-shadow: 0 12px 26px rgba(42, 35, 58, 0.07);
  overflow: hidden;
}

.followup-context::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.followup-context-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 250, 0.86));
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.2), 0 6px 14px rgba(8, 45, 53, 0.04);
  overflow: hidden;
}

.followup-context-head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.followup-context-head > div {
  min-width: 0;
}

.followup-context-head .scope-label {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.followup-context-head .scope-label::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.followup-context-head strong {
  display: block;
  min-width: 0;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.followup-context-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.followup-context-actions .secondary-button {
  position: relative;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px 0 14px;
  border-color: rgba(14, 118, 111, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  color: var(--teal-dark);
  box-shadow: 0 7px 16px rgba(8, 45, 53, 0.06);
  overflow: hidden;
  white-space: nowrap;
}

.followup-context-actions .secondary-button::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--teal);
  pointer-events: none;
}

.followup-context-actions .secondary-button:not(:disabled):hover,
.followup-context-actions .secondary-button:focus-visible {
  border-color: rgba(14, 118, 111, 0.3);
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 10px 20px rgba(8, 45, 53, 0.09);
  transform: translateY(-1px);
}

.followup-context-actions .secondary-button:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.16);
  outline-offset: 2px;
}

.followup-context-actions #clearAddedContext {
  border-color: rgba(162, 120, 40, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #fff8ec 100%);
  color: #785914;
}

.followup-context-actions #clearAddedContext::before {
  background: var(--amber);
}

.followup-context-actions .secondary-button:disabled {
  background: #f7f8f4;
  box-shadow: none;
}

.followup-context-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.followup-context-card {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4fbf8 0%, #edf7f4 100%);
  box-shadow: 0 10px 22px rgba(21, 52, 48, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.followup-context-card:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 14px 28px rgba(21, 52, 48, 0.11);
  transform: translateY(-1px);
}

.followup-context-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.followup-context-card::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 28px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.followup-context-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fff8ec 0%, #fbf3e4 100%);
}

.followup-context-card:nth-child(2)::before {
  background: var(--amber);
}

.followup-context-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fffaff 0%, #fbf7fc 100%);
}

.followup-context-card:nth-child(3)::before {
  background: var(--plum);
}

.followup-context-card span,
.followup-context-card strong,
.followup-context-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.followup-context-card span,
.followup-context-card small {
  color: var(--muted);
}

.followup-context-card span {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.followup-context-card span::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.followup-context-card:nth-child(2) span {
  border-color: rgba(162, 120, 40, 0.18);
  background: rgba(162, 120, 40, 0.12);
  color: #785914;
}

.followup-context-card:nth-child(2) span::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(162, 120, 40, 0.15);
}

.followup-context-card:nth-child(3) span {
  border-color: rgba(111, 77, 124, 0.18);
  background: rgba(111, 77, 124, 0.1);
  color: var(--plum);
}

.followup-context-card:nth-child(3) span::before {
  background: var(--plum);
  box-shadow: 0 0 0 3px rgba(111, 77, 124, 0.13);
}

.followup-context-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.followup-context-card small {
  margin-top: 4px;
  font-size: 12px;
}

.context-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.context-list span {
  position: relative;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f6faf2 100%);
  box-shadow: 0 6px 14px rgba(8, 45, 53, 0.05);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
}

.context-list span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.followup-context button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-panel {
  border-left: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  padding: 18px;
  overflow: auto;
}

.ai-ready-state {
  min-height: calc(100vh - 108px);
  display: grid;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.ready-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
}

.ready-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1f2528;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.ready-hero .eyebrow {
  margin-top: 14px;
}

.ready-hero h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 21px;
}

.ready-hero p {
  margin: 0;
  line-height: 1.45;
  max-width: 284px;
}

.ready-suggestion-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
}

.ready-suggestion-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ready-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ready-stat {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.ready-stat strong,
.ready-stat span {
  display: block;
}

.ready-stat strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.ready-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ready-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(14, 118, 111, 0.22);
  border-radius: 8px;
  background: #edf7f4;
  color: var(--teal-dark);
}

.ready-status-row span,
.ready-status-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.ready-status-row strong {
  color: var(--teal-dark);
}

.panel-empty {
  min-height: calc(100vh - 108px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.panel-empty.compact {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 22px;
}

.panel-empty h2 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 21px;
}

.panel-empty p {
  margin: 0;
  line-height: 1.45;
  max-width: 280px;
}

.panel-glyph {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eee6f1;
}

.composer {
  display: grid;
  gap: 14px;
}

.composer h2 {
  margin: 0;
  font-size: 22px;
}

.composer-hero {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 14px 16px 14px 18px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 58%, #fff7ec 100%);
  box-shadow: 0 10px 24px rgba(8, 45, 53, 0.07);
  overflow: hidden;
}

.composer-hero::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.composer-hero .eyebrow {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.1);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.composer-hero h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.composer-command-dock {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 252, 250, 0.9) 58%, rgba(251, 247, 252, 0.82) 100%);
  box-shadow: 0 12px 26px rgba(8, 45, 53, 0.07);
  overflow: hidden;
}

.composer-command-dock::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.composer-command-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 9px;
  align-items: stretch;
}

.composer-privacy-band,
.composer-context-pill {
  min-width: 0;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.16), 0 6px 14px rgba(8, 45, 53, 0.04);
  overflow: hidden;
}

.composer-privacy-band {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
}

.composer-privacy-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.1);
  box-shadow: inset 0 0 0 1px rgba(14, 118, 111, 0.14);
}

.composer-privacy-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 10px;
  height: 8px;
  border: 2px solid var(--teal);
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.composer-privacy-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  width: 14px;
  height: 9px;
  border-radius: 3px;
  background: var(--teal);
}

.composer-privacy-copy,
.composer-privacy-copy strong,
.composer-privacy-copy small,
.composer-context-pill span,
.composer-context-pill strong,
.composer-context-pill small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-privacy-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.composer-privacy-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.composer-context-pill {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px 8px 13px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaff 100%);
  box-shadow: inset 3px 0 0 rgba(111, 77, 124, 0.18), 0 6px 14px rgba(8, 45, 53, 0.04);
}

.composer-context-pill span {
  color: var(--plum);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.composer-context-pill strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.composer-context-pill small {
  color: var(--muted);
  font-size: 11px;
}

.composer-suggestion-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.composer-suggestion-chip {
  position: relative;
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  color: var(--teal-dark);
  box-shadow: 0 7px 16px rgba(8, 45, 53, 0.06);
  font-weight: 850;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.composer-suggestion-chip::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.composer-suggestion-chip strong,
.composer-suggestion-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-suggestion-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.composer-suggestion-chip:hover,
.composer-suggestion-chip:focus-visible {
  border-color: rgba(14, 118, 111, 0.32);
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 11px 22px rgba(8, 45, 53, 0.1);
  transform: translateY(-1px);
}

.composer-suggestion-chip:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.16);
  outline-offset: 2px;
}

.composer-suggestion-chip.selected {
  border-color: rgba(111, 77, 124, 0.34);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 100%);
  color: var(--plum);
  box-shadow: 0 0 0 3px rgba(111, 77, 124, 0.08), 0 11px 22px rgba(8, 45, 53, 0.09);
}

.composer-suggestion-chip.selected::before {
  background: var(--plum);
  box-shadow: 0 0 0 3px rgba(111, 77, 124, 0.13);
}

.composer .scope {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.composer .scope.context-preview {
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
}

.request-step-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 252, 250, 0.88) 58%, rgba(251, 243, 228, 0.82) 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.request-step-rail::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.request-step-rail .request-step-card {
  z-index: 1;
}

.request-step-card {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7f4 0%, #ffffff 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.07);
  overflow: hidden;
}

.request-step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.request-step-card.prompt {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.request-step-card.prompt::before {
  background: var(--amber);
}

.request-step-card.send {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.request-step-card.send::before {
  background: var(--plum);
}

.request-step-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.12);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.request-step-card.prompt .request-step-index {
  background: rgba(219, 161, 52, 0.18);
  color: #795213;
}

.request-step-card.send .request-step-index {
  background: rgba(111, 77, 124, 0.15);
  color: var(--plum);
}

.request-step-copy {
  display: block;
  min-width: 0;
}

.request-step-copy span,
.request-step-copy strong,
.request-step-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-step-copy span,
.request-step-copy small {
  color: var(--muted);
}

.request-step-copy span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.request-step-copy strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.request-step-copy small {
  margin-top: 4px;
  font-size: 12px;
}

.scope-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote {
  margin: 0;
  color: #353b3f;
  line-height: 1.45;
}

.request-detail-panel {
  min-height: 100%;
}

.request-detail-text-block {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 13px 13px 13px 16px;
  border-color: rgba(14, 118, 111, 0.18);
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.request-detail-text-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.request-detail-text-block.provider {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.request-detail-text-block.provider::before {
  background: var(--amber);
}

.request-detail-text-block .scope-label {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.request-detail-text-block .scope-label::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.request-detail-text-block.provider .scope-label {
  border-color: rgba(162, 120, 40, 0.18);
  background: rgba(162, 120, 40, 0.12);
  color: #785914;
}

.request-detail-text-block.provider .scope-label::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(162, 120, 40, 0.15);
}

.request-detail-text-block .quote {
  position: relative;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 250, 0.82));
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.22), 0 5px 12px rgba(8, 45, 53, 0.04);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.request-detail-text-block.provider .quote {
  border-color: rgba(162, 120, 40, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.86));
  box-shadow: inset 3px 0 0 rgba(162, 120, 40, 0.26), 0 5px 12px rgba(111, 74, 12, 0.04);
}

.request-detail-overview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 250, 0.88) 58%, rgba(251, 247, 252, 0.82) 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.request-detail-overview::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.request-detail-overview .request-detail-card {
  z-index: 1;
}

.request-detail-card {
  position: relative;
  min-height: 70px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7f4 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(8, 45, 53, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.request-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.request-detail-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 45, 53, 0.09);
}

.request-detail-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.request-detail-card:nth-child(2)::before {
  background: var(--amber);
}

.request-detail-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.request-detail-card:nth-child(3)::before {
  background: var(--plum);
}

.request-detail-card span,
.request-detail-card strong,
.request-detail-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-detail-card span,
.request-detail-card small {
  color: var(--muted);
}

.request-detail-card span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.request-detail-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.request-detail-card small {
  margin-top: 4px;
  font-size: 12px;
}

.request-detail-context {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 250, 0.88) 58%, rgba(255, 247, 236, 0.82) 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.request-detail-context::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--plum), var(--amber));
}

.request-detail-context .request-detail-context-card {
  z-index: 1;
}

.request-detail-context-card {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(8, 45, 53, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.request-detail-context-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.request-detail-context-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 45, 53, 0.09);
}

.request-detail-context-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.request-detail-context-card:nth-child(2)::before {
  background: var(--amber);
}

.request-detail-context-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.request-detail-context-card:nth-child(3)::before {
  background: var(--plum);
}

.request-detail-context-card span,
.request-detail-context-card strong,
.request-detail-context-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-detail-context-card span,
.request-detail-context-card small {
  color: var(--muted);
}

.request-detail-context-card span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.request-detail-context-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.request-detail-context-card small {
  margin-top: 4px;
  font-size: 12px;
}

.audit-event-list {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-strong) 100%);
  box-shadow: 0 10px 22px rgba(31, 37, 40, 0.05);
  overflow: hidden;
}

.audit-event-list::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.audit-event-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 9px 8px 12px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 250, 0.86));
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.2), 0 6px 14px rgba(8, 45, 53, 0.04);
  overflow: hidden;
}

.audit-event-head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.audit-event-head span {
  min-width: 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-event-head strong {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: #edf7f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.audit-event-head strong::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.audit-event {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 9px 9px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
  overflow: hidden;
}

.audit-event::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.audit-event span,
.audit-empty {
  color: var(--muted);
  font-size: 12px;
}

.audit-event.latest {
  border-color: rgba(14, 118, 111, 0.24);
  background: #f8fcfa;
  box-shadow: 0 9px 18px rgba(14, 118, 111, 0.08);
}

.audit-event.latest::before {
  background: linear-gradient(180deg, var(--teal), var(--plum));
}

.audit-event.latest .audit-event-index {
  background: #edf7f4;
  color: var(--teal-dark);
}

.audit-event-index {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f8f4ec;
  color: #6b5840;
  font-size: 11px;
  font-weight: 850;
}

.audit-event strong {
  color: var(--ink);
  font-size: 13px;
}

.audit-event-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 37, 44, 0.08);
}

.audit-event-meta-item {
  min-width: 0;
  display: grid;
  gap: 3px;
  min-height: 44px;
  align-content: center;
  padding: 7px 8px;
  border: 1px solid rgba(111, 77, 124, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.audit-event-meta-item:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.18);
  background: #fffaf0;
}

.audit-event-meta-item:nth-child(3) {
  border-color: rgba(14, 118, 111, 0.16);
  background: #f8fcfa;
}

.audit-event-meta-item small,
.audit-event-meta-item b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-event-meta-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.audit-event-meta-item b {
  color: #303235;
  font-size: 12px;
  font-weight: 850;
}

.audit-empty {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 12px 12px 15px;
  border: 1px dashed rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 6px 14px rgba(8, 45, 53, 0.05);
  line-height: 1.45;
  overflow: hidden;
}

.audit-empty::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.context-preview-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px 9px 15px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #f8fcfa 58%, #fff7ec 100%);
  box-shadow: 0 8px 18px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.context-preview-head::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.context-preview-head .scope-label {
  margin: 0;
  color: var(--teal-dark);
  letter-spacing: 0;
}

.context-preview-head strong {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.1);
  color: var(--teal-dark);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(14, 118, 111, 0.1);
}

.context-preview-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
}

.context-preview-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #ffffff 58%, #f8fcfa 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.07);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  --speaker-accent: var(--teal);
}

.context-preview-card:hover {
  border-color: var(--speaker-accent);
  box-shadow: 0 14px 28px rgba(8, 45, 53, 0.1);
  transform: translateY(-1px);
}

.context-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--speaker-accent);
}

.context-preview-card.speaker-laura {
  --speaker-accent: var(--teal);
}

.context-preview-card.speaker-andrew {
  --speaker-accent: var(--plum);
}

.context-preview-card.speaker-priya {
  --speaker-accent: var(--amber);
}

.context-preview-card header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.context-speaker {
  min-width: 0;
}

.context-speaker strong,
.context-speaker span {
  display: block;
}

.context-speaker strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-speaker span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.context-preview-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.context-preview-card p {
  margin: 0;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(14, 118, 111, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: #30363a;
  line-height: 1.42;
  box-shadow: inset 3px 0 0 var(--speaker-accent);
  overflow-wrap: anywhere;
}

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-preset-grid {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 252, 250, 0.88) 60%, rgba(255, 247, 236, 0.82) 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.action-preset-grid::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.action-preset-grid .action-preset {
  z-index: 1;
}

.chip-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 750;
}

.chip-button.action-preset {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 12px 11px 16px;
  border-color: rgba(14, 118, 111, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 58%, #fff7ec 100%);
  text-align: left;
  box-shadow: 0 10px 20px rgba(8, 45, 53, 0.06);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.chip-button.action-preset::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.chip-button.action-preset:hover,
.chip-button.action-preset:focus-visible {
  border-color: rgba(14, 118, 111, 0.3);
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 48%, #fff7ec 100%);
  box-shadow: 0 13px 26px rgba(8, 45, 53, 0.1);
  transform: translateY(-1px);
}

.chip-button.action-preset:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.16);
  outline-offset: 2px;
}

.chip-button.action-preset strong,
.chip-button.action-preset span {
  display: block;
}

.chip-button.action-preset strong {
  line-height: 1.18;
}

.chip-button.action-preset span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.chip-button.selected {
  border-color: var(--teal);
  background: #e9f5f2;
  color: var(--teal-dark);
}

.chip-button.action-preset.selected {
  border-color: rgba(14, 118, 111, 0.42);
  background: linear-gradient(135deg, #e8f6f2 0%, #ffffff 58%, #fff7ec 100%);
  color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.1), 0 13px 26px rgba(8, 45, 53, 0.1);
}

.chip-button.action-preset.selected::before {
  background: linear-gradient(180deg, var(--teal), var(--plum));
}

.chip-button.selected span {
  color: #366864;
}

.question-field {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 13px 13px 13px 17px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #f8fcfa 58%, #fff7ec 100%);
  box-shadow: 0 12px 24px rgba(8, 45, 53, 0.07);
  overflow: hidden;
}

.question-field::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.question-field .scope-label {
  margin: 0;
}

.question-field strong,
.question-field small {
  display: block;
}

.question-field strong {
  color: var(--ink);
  line-height: 1.2;
}

.question-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.question-field textarea {
  margin-top: 6px;
  border-color: rgba(14, 118, 111, 0.18);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.16), 0 6px 14px rgba(8, 45, 53, 0.04);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.question-field textarea:focus {
  border-color: rgba(14, 118, 111, 0.42);
  background: #ffffff;
  box-shadow: inset 3px 0 0 var(--teal), 0 0 0 3px rgba(14, 118, 111, 0.12);
  outline: 0;
}

.prompt-preview {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 13px 13px 13px 17px;
  border: 1px solid rgba(14, 118, 111, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 58%, #fff7ec 100%);
  box-shadow: 0 12px 24px rgba(8, 45, 53, 0.07);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.prompt-preview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.prompt-preview:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 14px 28px rgba(8, 45, 53, 0.1);
  transform: translateY(-1px);
}

.prompt-preview-head,
.prompt-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prompt-preview-head span,
.prompt-preview-head strong,
.prompt-preview-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-preview-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.prompt-preview-head strong {
  color: var(--teal-dark);
  font-size: 12px;
}

.prompt-preview p {
  margin: 0;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.42;
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.18);
  overflow-wrap: anywhere;
}

.prompt-preview-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.1);
  color: #3f6a63;
  font-size: 12px;
  font-weight: 800;
}

.prompt-preview-meta span:last-child {
  background: rgba(162, 120, 40, 0.14);
  color: #785914;
}

.send-readiness-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 250, 0.88) 58%, rgba(251, 247, 252, 0.82) 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.send-readiness-strip::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--plum), var(--amber));
}

.send-readiness-strip .send-readiness-item {
  z-index: 1;
}

.send-readiness-item {
  position: relative;
  min-height: 62px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.07);
  overflow: hidden;
}

.send-readiness-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.send-readiness-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #dcefea;
  box-shadow: inset 0 0 0 6px #f4fbf8;
}

.send-readiness-item.boundary {
  border-color: rgba(66, 102, 174, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
}

.send-readiness-item.boundary::before {
  background: #5b7cc7;
}

.send-readiness-item.boundary .send-readiness-icon {
  background: #d9e7ff;
}

.send-readiness-item.transcript {
  border-color: rgba(162, 120, 40, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #fff8ec 100%);
}

.send-readiness-item.transcript::before {
  background: var(--amber);
}

.send-readiness-item.transcript .send-readiness-icon {
  background: #f6dfb9;
}

.send-readiness-copy {
  display: block;
  min-width: 0;
}

.send-readiness-copy span,
.send-readiness-copy strong,
.send-readiness-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-readiness-copy span,
.send-readiness-copy small {
  color: var(--muted);
}

.send-readiness-copy span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.send-readiness-copy strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.send-readiness-copy small {
  margin-top: 4px;
  font-size: 12px;
}

.report-panel .quote {
  overflow-wrap: anywhere;
}

.report-preview {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 12px 15px;
  border-color: rgba(14, 118, 111, 0.18);
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 9px 20px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.report-preview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.report-preview.source {
  border-color: rgba(162, 120, 40, 0.22);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.report-preview.source::before {
  background: var(--amber);
}

.report-preview .scope-label {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.report-preview .scope-label::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.report-preview.source .scope-label {
  border-color: rgba(162, 120, 40, 0.18);
  background: rgba(162, 120, 40, 0.12);
  color: #785914;
}

.report-preview.source .scope-label::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(162, 120, 40, 0.15);
}

.report-preview .quote {
  position: relative;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 250, 0.82));
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.22), 0 5px 12px rgba(8, 45, 53, 0.04);
  line-height: 1.48;
}

.report-preview.source .quote {
  border-color: rgba(162, 120, 40, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.86));
  box-shadow: inset 3px 0 0 rgba(162, 120, 40, 0.26), 0 5px 12px rgba(111, 74, 12, 0.04);
}

.report-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.report-review-card {
  position: relative;
  min-height: 70px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7f4 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(8, 45, 53, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.report-review-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.report-review-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 45, 53, 0.09);
}

.report-review-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.report-review-card:nth-child(2)::before {
  background: var(--amber);
}

.report-review-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.report-review-card:nth-child(3)::before {
  background: var(--plum);
}

.report-review-card span,
.report-review-card strong,
.report-review-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-review-card span,
.report-review-card small {
  color: var(--muted);
}

.report-review-card span {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.report-review-card span::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.13);
}

.report-review-card:nth-child(2) span {
  border-color: rgba(162, 120, 40, 0.18);
  background: rgba(162, 120, 40, 0.12);
  color: #785914;
}

.report-review-card:nth-child(2) span::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(162, 120, 40, 0.15);
}

.report-review-card:nth-child(3) span {
  border-color: rgba(111, 77, 124, 0.18);
  background: rgba(111, 77, 124, 0.1);
  color: var(--plum);
}

.report-review-card:nth-child(3) span::before {
  background: var(--plum);
  box-shadow: 0 0 0 3px rgba(111, 77, 124, 0.13);
}

.report-review-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.report-review-card small {
  margin-top: 4px;
  font-size: 12px;
}

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

.chip-button.report-reason-card {
  position: relative;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px 10px 15px;
  border-color: rgba(111, 77, 124, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.05);
  text-align: left;
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.report-reason-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--amber);
}

.report-reason-card:hover,
.report-reason-card:focus-visible {
  border-color: rgba(14, 118, 111, 0.24);
  background: #f8fcfa;
  box-shadow: 0 12px 24px rgba(31, 37, 40, 0.08);
  transform: translateY(-1px);
}

.report-reason-card strong,
.report-reason-card span {
  display: block;
  min-width: 0;
}

.report-reason-card strong {
  color: var(--ink);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.report-reason-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.report-reason-card.selected {
  padding-right: 36px;
  border-color: var(--plum);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(111, 77, 124, 0.1);
}

.report-reason-card.selected::before {
  background: var(--plum);
}

.report-reason-card.selected::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(111, 77, 124, 0.22);
  border-radius: 999px;
  background: radial-gradient(circle at center, var(--plum) 0 4px, rgba(255, 255, 255, 0.96) 4.5px 100%);
  box-shadow: 0 4px 10px rgba(111, 77, 124, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.report-reason-card.selected span {
  color: var(--plum);
}

.report-reason-card:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
}

.composer textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-strong);
  color: var(--ink);
}

.composer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.composer-send-footer {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 250, 0.88) 58%, rgba(255, 247, 236, 0.82) 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.composer-send-footer::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.composer-send-footer > * {
  z-index: 1;
}

.composer-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.composer-footer-actions .primary-button {
  position: relative;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px 0 22px;
  background: linear-gradient(135deg, var(--teal) 0%, #0b6963 62%, #8c6b20 100%);
  box-shadow: 0 12px 24px rgba(14, 118, 111, 0.24);
  overflow: hidden;
}

.composer-footer-actions .primary-button::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, 0.72);
}

.composer-footer-actions .primary-button::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.13);
}

.composer-footer-actions .primary-button:hover,
.composer-footer-actions .primary-button:focus-visible {
  background: linear-gradient(135deg, #095b56 0%, var(--teal) 58%, #a07524 100%);
  box-shadow: 0 15px 30px rgba(14, 118, 111, 0.28);
}

.composer-footer-actions .primary-button:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.2);
  outline-offset: 2px;
}

.composer-footer-actions #closePanel {
  position: relative;
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px 0 17px;
  border: 1px solid rgba(111, 77, 124, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 58%, #f8f4ec 100%);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.08);
  overflow: hidden;
}

.composer-footer-actions #closePanel::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--plum), var(--amber));
}

.composer-footer-actions #closePanel:hover,
.composer-footer-actions #closePanel:focus-visible {
  border-color: rgba(111, 77, 124, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 52%, #fff7ec 100%);
  box-shadow: 0 11px 22px rgba(31, 37, 40, 0.1);
  transform: translateY(-1px);
}

.composer-footer-actions #closePanel:focus-visible {
  outline: 3px solid rgba(111, 77, 124, 0.18);
  outline-offset: 2px;
}

.send-summary {
  position: relative;
  min-height: 46px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgba(14, 118, 111, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #edf7f4 58%, #fff7ec 100%);
  box-shadow: 0 14px 28px rgba(8, 45, 53, 0.1);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.send-summary::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.send-summary:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 16px 32px rgba(8, 45, 53, 0.12);
  transform: translateY(-1px);
}

.send-summary-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(14, 118, 111, 0.2), rgba(219, 161, 52, 0.26)),
    #ffffff;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.82), 0 7px 14px rgba(14, 118, 111, 0.12);
}

.send-summary-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.12);
}

.send-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.send-summary-copy strong,
.send-summary-copy span {
  min-width: 0;
}

.send-summary-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-summary-copy span {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 999px;
  background: rgba(14, 118, 111, 0.09);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-summary-copy span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.1);
}

.artifact-panel {
  min-height: 100%;
}

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

.artifact-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.artifact-overview-card {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7f4 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(8, 45, 53, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.artifact-overview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.artifact-overview-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 45, 53, 0.09);
}

.artifact-overview-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.artifact-overview-card:nth-child(2)::before {
  background: var(--amber);
}

.artifact-overview-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.artifact-overview-card:nth-child(3)::before {
  background: var(--plum);
}

.artifact-overview-card span,
.artifact-overview-card strong,
.artifact-overview-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-overview-card span,
.artifact-overview-card small {
  color: var(--muted);
}

.artifact-overview-card span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.artifact-overview-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.artifact-overview-card small {
  margin-top: 4px;
  font-size: 12px;
}

.artifact-empty-guide {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(14, 118, 111, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7f4 0%, #ffffff 100%);
  box-shadow: 0 10px 22px rgba(8, 45, 53, 0.06);
  overflow: hidden;
}

.artifact-empty-guide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.artifact-empty-head {
  display: grid;
  gap: 3px;
}

.artifact-empty-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.artifact-empty-head strong {
  color: var(--teal-dark);
  font-size: 13px;
  line-height: 1.3;
}

.artifact-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.artifact-empty-card {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 7px 16px rgba(8, 45, 53, 0.05);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.artifact-empty-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.artifact-empty-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(8, 45, 53, 0.08);
}

.artifact-empty-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.artifact-empty-card:nth-child(2)::before {
  background: var(--amber);
}

.artifact-empty-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.artifact-empty-card:nth-child(3)::before {
  background: var(--plum);
}

.artifact-empty-card span,
.artifact-empty-card strong,
.artifact-empty-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-empty-card span,
.artifact-empty-card small {
  color: var(--muted);
}

.artifact-empty-card span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.artifact-empty-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.artifact-empty-card small {
  margin-top: 4px;
  font-size: 12px;
}

.artifact-card {
  position: relative;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcfa 0%, #ffffff 100%);
  box-shadow: 0 9px 20px rgba(8, 45, 53, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.artifact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.artifact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(8, 45, 53, 0.09);
}

.artifact-card.artifact-action {
  border-color: rgba(162, 120, 40, 0.24);
  background: linear-gradient(135deg, #fbf3e4 0%, #ffffff 100%);
}

.artifact-card.artifact-action::before {
  background: var(--amber);
}

.artifact-card.artifact-report {
  border-color: rgba(111, 77, 124, 0.24);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.artifact-card.artifact-report::before {
  background: var(--plum);
}

.artifact-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.artifact-card strong,
.artifact-card span,
.artifact-card .artifact-meta-pill {
  display: block;
}

.artifact-card strong {
  overflow-wrap: anywhere;
}

.artifact-card .artifact-meta-pill {
  position: relative;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px 0 11px;
  border: 1px solid rgba(14, 118, 111, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #edf7f4 100%);
  box-shadow: 0 6px 14px rgba(8, 45, 53, 0.06);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
}

.artifact-card .artifact-meta-pill::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.artifact-card.artifact-action .artifact-meta-pill {
  border-color: rgba(162, 120, 40, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #fbf3e4 100%);
  color: #785914;
}

.artifact-card.artifact-action .artifact-meta-pill::before {
  background: var(--amber);
}

.artifact-card.artifact-report .artifact-meta-pill {
  border-color: rgba(111, 77, 124, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 100%);
  color: var(--plum);
}

.artifact-card.artifact-report .artifact-meta-pill::before {
  background: var(--plum);
}

.artifact-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 37, 44, 0.08);
}

.artifact-card .artifact-card-meta-item {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 2px;
  min-height: 44px;
  align-content: center;
  padding: 7px 8px 7px 10px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 250, 0.78));
  box-shadow: 0 6px 14px rgba(8, 45, 53, 0.05);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.artifact-card .artifact-card-meta-item:hover {
  border-color: rgba(14, 118, 111, 0.26);
  box-shadow: 0 9px 18px rgba(8, 45, 53, 0.08);
  transform: translateY(-1px);
}

.artifact-card .artifact-card-meta-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--teal);
}

.artifact-card .artifact-card-meta-item::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 3px;
  height: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.artifact-card .artifact-card-meta-item:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.artifact-card .artifact-card-meta-item:nth-child(2)::before {
  background: var(--amber);
}

.artifact-card .artifact-card-meta-item:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 100%);
}

.artifact-card .artifact-card-meta-item:nth-child(3)::before {
  background: var(--plum);
}

.artifact-card-meta-item small,
.artifact-card-meta-item b {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-card-meta-item small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.artifact-card-meta-item b {
  color: #303235;
  font-size: 12px;
  font-weight: 850;
}

.artifact-card p {
  position: relative;
  margin: 10px 0 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 250, 0.82));
  box-shadow: inset 3px 0 0 rgba(14, 118, 111, 0.22), 0 6px 14px rgba(8, 45, 53, 0.04);
  color: #303235;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.artifact-card.artifact-action p {
  border-color: rgba(162, 120, 40, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.86));
  box-shadow: inset 3px 0 0 rgba(162, 120, 40, 0.26), 0 6px 14px rgba(111, 74, 12, 0.04);
}

.artifact-card.artifact-report p {
  border-color: rgba(111, 77, 124, 0.13);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 252, 0.88));
  box-shadow: inset 3px 0 0 rgba(111, 77, 124, 0.24), 0 6px 14px rgba(63, 43, 74, 0.04);
}

.export-panel {
  min-height: 100%;
}

.export-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.export-summary section {
  position: relative;
  min-height: 76px;
  padding: 11px 11px 11px 14px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 9px 20px rgba(21, 52, 48, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.export-summary section:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 13px 26px rgba(21, 52, 48, 0.11);
  transform: translateY(-1px);
}

.export-summary section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.export-summary section::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 28px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.export-summary section:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.22);
  background: linear-gradient(135deg, #fffdfa 0%, #fbf3e4 100%);
}

.export-summary section:nth-child(2)::before {
  background: var(--amber);
}

.export-summary section:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 100%);
}

.export-summary section:nth-child(3)::before {
  background: var(--plum);
}

.export-summary strong,
.export-summary span {
  position: relative;
  z-index: 1;
  display: block;
}

.export-summary strong {
  font-size: 23px;
}

.export-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.export-preview {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(14, 118, 111, 0.2);
  border-radius: 8px;
  background: #edf7f4;
}

.export-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.export-preview-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.export-preview-head strong {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 12px;
}

.export-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.export-preview-card {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 9px 20px rgba(21, 52, 48, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.export-preview-card:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 13px 26px rgba(21, 52, 48, 0.11);
  transform: translateY(-1px);
}

.export-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.export-preview-card::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 28px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.export-preview-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.22);
  background: linear-gradient(135deg, #fffdfa 0%, #fbf3e4 100%);
}

.export-preview-card:nth-child(2)::before {
  background: var(--amber);
}

.export-preview-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 100%);
}

.export-preview-card:nth-child(3)::before {
  background: var(--plum);
}

.export-preview-card span,
.export-preview-card strong,
.export-preview-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.export-preview-card span,
.export-preview-card small {
  color: var(--muted);
}

.export-preview-card span {
  font-size: 11px;
  font-weight: 850;
}

.export-preview-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.export-preview-card small {
  margin-top: 3px;
  font-size: 12px;
}

.export-options {
  display: grid;
  gap: 8px;
}

.export-choice {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 12px 12px 15px;
  border: 1px solid rgba(111, 77, 124, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fffdfa 100%);
  box-shadow: 0 9px 20px rgba(31, 37, 40, 0.07);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.export-choice:hover {
  border-color: rgba(14, 118, 111, 0.28);
  box-shadow: 0 13px 26px rgba(31, 37, 40, 0.11);
  transform: translateY(-1px);
}

.export-choice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--plum);
}

.export-choice::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 28px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.export-choice.selected {
  border-color: rgba(14, 118, 111, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf8 100%);
  box-shadow: 0 13px 26px rgba(14, 118, 111, 0.11);
}

.export-choice.selected::before {
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.export-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.export-choice-mark {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 97, 110, 0.3);
  border-radius: 999px;
  background: #fff;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.export-choice.selected .export-choice-mark {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.export-choice input:focus-visible + .export-choice-mark {
  outline: 2px solid rgba(14, 118, 111, 0.35);
  outline-offset: 2px;
}

.export-choice-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.export-choice-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.export-choice strong,
.export-choice small,
.export-choice em,
.export-choice-meta {
  display: block;
  min-width: 0;
}

.export-choice strong,
.export-choice em,
.export-choice-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-choice strong {
  color: var(--ink);
}

.export-choice em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #fbf3e4;
  color: #785914;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.export-choice.selected em {
  background: #dff3ee;
  color: var(--teal-dark);
}

.export-choice small {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.export-choice-meta {
  color: var(--plum);
  font-size: 11px;
  font-weight: 850;
}

.search-panel {
  min-height: 100%;
}

.search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(111, 77, 124, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #f8fbf7 58%, #fff7ec 100%);
  box-shadow: 0 12px 30px rgba(31, 37, 40, 0.08);
  overflow: hidden;
}

.search-form::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.search-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(111, 77, 124, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 0 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.search-form input:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
  border-color: rgba(14, 118, 111, 0.42);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(14, 118, 111, 0.12), 0 8px 18px rgba(14, 118, 111, 0.1);
}

.search-results {
  display: grid;
  gap: 8px;
}

.search-guide {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(14, 118, 111, 0.2);
  border-radius: 8px;
  background: #edf7f4;
}

.search-guide p {
  margin: 0;
  color: #2d504b;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.search-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.search-guide-card {
  position: relative;
  min-height: 68px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 9px 20px rgba(21, 52, 48, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-guide-card:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 13px 26px rgba(21, 52, 48, 0.11);
  transform: translateY(-1px);
}

.search-guide-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.search-guide-card::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 28px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.search-guide-card:nth-child(2)::before {
  background: var(--amber);
}

.search-guide-card:nth-child(3)::before {
  background: var(--plum);
}

.search-guide-card span,
.search-guide-card strong,
.search-guide-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.search-guide-card span,
.search-guide-card small {
  color: var(--muted);
}

.search-guide-card span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.search-guide-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.search-guide-card small {
  margin-top: 4px;
  font-size: 12px;
}

.search-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.search-insight-card {
  position: relative;
  min-height: 66px;
  display: grid;
  align-content: center;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(14, 118, 111, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdfa 0%, #fbfaf6 100%);
  box-shadow: 0 9px 20px rgba(31, 37, 40, 0.07);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-insight-card:hover {
  border-color: rgba(14, 118, 111, 0.3);
  box-shadow: 0 13px 26px rgba(31, 37, 40, 0.11);
  transform: translateY(-1px);
}

.search-insight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--teal);
}

.search-insight-card::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 4px;
  height: 28px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.search-insight-card:nth-child(2) {
  border-color: rgba(162, 120, 40, 0.22);
}

.search-insight-card:nth-child(2)::before {
  background: var(--amber);
}

.search-insight-card:nth-child(3) {
  border-color: rgba(111, 77, 124, 0.22);
}

.search-insight-card:nth-child(3)::before {
  background: var(--plum);
}

.search-insight-card span,
.search-insight-card strong,
.search-insight-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.search-insight-card span,
.search-insight-card small {
  color: var(--muted);
}

.search-insight-card span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.search-insight-card strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.search-insight-card small {
  margin-top: 4px;
  font-size: 12px;
}

.search-result,
.search-empty {
  position: relative;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
}

.search-result {
  padding-left: 16px;
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.05);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: rgba(14, 118, 111, 0.24);
  background: linear-gradient(135deg, #fffdfa 0%, #f8fbf7 100%);
  box-shadow: 0 12px 28px rgba(31, 37, 40, 0.09);
  transform: translateY(-1px);
}

.search-result:focus-visible {
  outline: 3px solid rgba(14, 118, 111, 0.18);
  outline-offset: 2px;
}

.search-result::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.search-result.search-ai-response::before {
  background: var(--plum);
}

.search-result.search-multi-ai::before {
  background: var(--amber);
}

.search-result-type,
.search-result strong,
.search-result small {
  display: block;
}

.search-result-type {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf7f4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.search-ai-response .search-result-type {
  background: #fbf7fc;
  color: var(--plum);
}

.search-multi-ai .search-result-type {
  background: #fbf3e4;
  color: #785914;
}

.search-result strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.search-result small,
.search-empty {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.search-result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 37, 44, 0.08);
}

.search-result-meta-item {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-result-meta-item small,
.search-result-meta-item b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta-item small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.search-result-meta-item b {
  color: #303235;
  font-size: 12px;
  font-weight: 850;
}

.segment-action-panel {
  position: relative;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 252, 250, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 26px rgba(31, 37, 40, 0.05);
  overflow: hidden;
}

.segment-action-panel::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--plum));
}

.segment-action-head {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 11px 12px 11px 16px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.04);
  overflow: hidden;
}

.segment-action-head::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.segment-action-head .eyebrow {
  margin-bottom: 0;
}

.segment-action-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-action-preview {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  overflow: hidden;
  --speaker-accent: var(--teal);
}

.segment-action-preview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--speaker-accent);
}

.segment-action-preview.speaker-laura {
  --speaker-accent: var(--teal);
}

.segment-action-preview.speaker-andrew {
  --speaker-accent: var(--plum);
}

.segment-action-preview.speaker-priya {
  --speaker-accent: var(--amber);
}

.segment-action-preview header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.segment-action-speaker {
  min-width: 0;
}

.segment-action-speaker strong,
.segment-action-speaker span {
  display: block;
}

.segment-action-speaker strong {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-action-speaker span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.segment-action-badges {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
}

.segment-action-badges .source-badge,
.segment-action-badges .transcript-status {
  min-height: 22px;
  box-shadow: none;
}

.segment-action-preview p {
  position: relative;
  margin: 0;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(14, 118, 111, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #30363a;
  line-height: 1.45;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.segment-action-preview p::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--speaker-accent);
}

.segment-action-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.segment-action-stat {
  position: relative;
  min-width: 0;
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(14, 118, 111, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(31, 37, 40, 0.04);
  overflow: hidden;
  --segment-action-stat-accent: var(--teal);
}

.segment-action-stat::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--segment-action-stat-accent);
}

.segment-action-stat small,
.segment-action-stat strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segment-action-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.segment-action-stat strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.segment-action-stat.selected,
.segment-action-stat.ready {
  --segment-action-stat-accent: var(--teal);
  border-color: rgba(14, 118, 111, 0.22);
  background: #edf7f4;
}

.segment-action-stat.history {
  --segment-action-stat-accent: var(--amber);
  border-color: rgba(162, 120, 40, 0.24);
  background: #fbf3e4;
}

.segment-action-stat.blocked {
  --segment-action-stat-accent: var(--plum);
  border-color: rgba(111, 77, 124, 0.24);
  background: #fbf7fc;
}

.segment-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segment-meta-grid section {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.segment-meta-grid strong,
.segment-meta-grid span {
  display: block;
}

.segment-meta-grid strong {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.segment-meta-grid span {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.segment-action-list {
  padding: 6px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segment-action-list .primary-button,
.segment-action-list .secondary-button {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: none;
  --segment-action-command-accent: var(--teal);
}

.segment-action-list .primary-button::before,
.segment-action-list .secondary-button::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--segment-action-command-accent);
}

.segment-action-list .secondary-button:hover {
  border-color: rgba(14, 118, 111, 0.22);
  background: #f8fbfa;
  transform: translateY(-1px);
}

.segment-action-list #copySegmentText {
  --segment-action-command-accent: var(--amber);
}

.segment-action-list #toggleSegmentSelection {
  --segment-action-command-accent: var(--plum);
}

.segment-action-list #searchSegmentSpeaker,
.segment-action-list #askSegmentAi {
  --segment-action-command-accent: var(--teal);
}

.segment-action-footer {
  padding: 6px;
  border: 1px solid rgba(14, 118, 111, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(31, 37, 40, 0.04);
}

.segment-action-footer #closePanel {
  min-width: 104px;
  justify-self: end;
  border-color: rgba(111, 77, 124, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #fbf7fc 100%);
  color: var(--plum);
  box-shadow: none;
}

.segment-action-footer #closePanel:hover {
  border-color: rgba(111, 77, 124, 0.28);
  background: #fbf7fc;
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(31, 37, 40, 0.1);
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.toast-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf7f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.toast-message {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.toast-success {
  border-color: rgba(14, 118, 111, 0.24);
}

.toast-success .toast-icon {
  background: #edf7f4;
  color: var(--teal-dark);
}

.toast-warning {
  border-color: rgba(162, 120, 40, 0.28);
}

.toast-warning .toast-icon {
  background: #fbf3e4;
  color: #785914;
}

.toast-danger {
  border-color: rgba(201, 87, 61, 0.3);
}

.toast-danger .toast-icon {
  background: #fff1ed;
  color: #9b3d2b;
}

.toast-info .toast-icon {
  background: #eee6f1;
  color: var(--plum);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes response-shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@keyframes typing-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(460px, 1fr);
  }

  .ai-panel {
    grid-column: 2;
    position: fixed;
    right: 18px;
    top: 88px;
    bottom: 18px;
    width: min(380px, calc(100vw - 260px));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateX(calc(100% + 36px));
    transition: transform 180ms ease;
    z-index: 20;
  }

  .ai-panel:not(.empty) {
    transform: translateX(0);
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .topbar {
    gap: 12px;
    overflow-x: auto;
  }

  .brand {
    min-width: auto;
  }

  .brand span,
  .sidebar,
  .topnav {
    display: none;
  }

  .workspace {
    padding: 18px 14px 52px;
  }

  .meeting-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .meeting-meter {
    width: 100%;
  }

  .segment-wrap {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .bubble-header {
    grid-template-columns: 1fr auto;
  }

  .bubble-header .avatar {
    display: none;
  }

  .bubble-text {
    padding-left: 18px;
    font-size: 16px;
  }

  .ai-stack {
    margin-left: 42px;
  }

  .multi-response-zone {
    margin-left: 42px;
  }

  .composer-footer {
    grid-template-columns: 1fr;
  }

  .composer-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bulk-bar {
    grid-template-columns: 1fr;
  }

  .bulk-bar .primary-button,
  .bulk-bar .secondary-button {
    width: 100%;
  }
}

.composer-input-dock {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
}

.composer-input-dock .question-field,
.composer-input-dock .prompt-preview,
.composer-input-dock .send-readiness-strip,
.composer-input-dock .composer-send-footer {
  margin: 0;
}

.composer-input-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.composer-context-chip strong {
  color: var(--teal-dark);
  font-weight: 800;
}

.composer-context-chip span {
  color: var(--muted);
}

.composer-context-chip small {
  display: none;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 400px) {
  .composer-context-chip small {
    display: inline;
  }
}

.composer-suggestion-chip .action-category,
.chip-button.action-preset .action-category {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.composer-suggestion-chip .action-category {
  padding: 1px 6px;
  border: 1px solid rgba(14, 118, 111, 0.2);
  border-radius: 999px;
  background: #fff;
}

.chip-button.action-preset .action-category {
  justify-self: start;
  padding: 2px 7px;
  border: 1px solid rgba(14, 118, 111, 0.2);
  border-radius: 999px;
  background: #fff;
}

.response-command-row {
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(111, 77, 124, 0.12);
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
}

.response-command-row::-webkit-scrollbar {
  display: none;
}

.status-badge.completed {
  border-color: rgba(14, 118, 111, 0.22);
  background: #edf7f4;
  color: var(--teal-dark);
}

.ai-card.response-stopped,
.multi-ai-card.response-stopped {
  background: #fffbf4;
  border-color: rgba(162, 120, 40, 0.34);
}

.ai-card.response-completed,
.multi-ai-card.response-completed {
  border-color: rgba(14, 118, 111, 0.32);
  background: #f8fcfa;
}

.review-flow-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
}

.review-flow-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.review-flow-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.review-flow-card small {
  color: var(--muted);
  font-size: 12px;
}

.review-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.review-comparison .scope,
.review-comparison .sheet-quote {
  margin: 0;
}

.search-experience {
  display: grid;
  gap: 14px;
}

.search-experience-form {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
}

.search-experience-form label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.search-experience-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.12);
  outline: 0;
}

.search-experience .search-result,
.search-experience .search-results > .search-result {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.search-experience .search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.search-experience .search-result-meta-item {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 11px;
}

.artifact-workspace-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
}

.artifact-workspace-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artifact-workspace-card header strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.artifact-workspace-card .artifact-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artifact-workspace-card .artifact-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.meeting-signal-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
  box-shadow: var(--soft-shadow);
}

.meeting-signal-card.live {
  border-color: rgba(14, 118, 111, 0.32);
  background: linear-gradient(135deg, #ffffff 0%, #f3faf8 100%);
}

.meeting-signal-card.held {
  border-color: rgba(162, 120, 40, 0.32);
  background: linear-gradient(135deg, #fff9ed 0%, #ffffff 100%);
}

.meeting-signal-card.ready {
  border-color: rgba(111, 77, 124, 0.32);
  background: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);
}

.meeting-signal-card .meter-head,
.meeting-signal-card .progress-strip-head {
  margin-bottom: 8px;
}

.meeting-signal-card .meter-head span,
.meeting-signal-card .meter-head strong,
.meeting-signal-card .progress-strip-head span,
.meeting-signal-card .progress-strip-head strong {
  color: var(--ink);
  font-weight: 900;
}

/* Step 12 responsive layout QA */
.workspace,
.meeting-header,
.ai-panel,
.composer,
.transcript-feed,
.search-experience,
.artifact-panel,
.artifact-workspace-card,
.response-command-row {
  min-width: 0;
}

.quote,
.transcript-segment p,
.ai-body p,
.correction-source p,
.correction-suggestion p,
.report-preview p,
.sheet-quote p {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .meeting-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Step 13 accessibility and interaction QA */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Step 14 visual consistency cleanup */
:root {
  --vt-radius-sm: 6px;
  --vt-radius-md: 8px;
  --vt-radius-lg: 10px;
  --vt-radius-pill: 999px;
  --vt-shadow-sm: 0 5px 12px rgba(31, 37, 40, 0.05);
  --vt-shadow-md: 0 9px 18px rgba(31, 37, 40, 0.07);
  --vt-shadow-lg: 0 12px 28px rgba(31, 37, 40, 0.09);
  --vt-line: rgba(111, 77, 124, 0.14);
  --vt-surface: #fff;
  --vt-surface-strong: #fbf7fc;
  --vt-meta-size: 11px;
  --vt-sm-size: 12px;
  --vt-base-size: 13px;
  --vt-heading-size: 14px;
}

.meeting-signal-card,
.composer-input-dock,
.artifact-workspace-card,
.review-flow-card,
.search-experience-form,
.response-command-row,
.ai-card,
.multi-ai-card {
  border-radius: var(--vt-radius-lg);
  box-shadow: var(--vt-shadow-sm);
  border-color: var(--vt-line);
  background: var(--vt-surface);
}

.action-category,
.response-action,
.status-badge,
.artifact-card-meta-item,
.search-result-meta-item {
  border-radius: var(--vt-radius-pill);
  font-size: var(--vt-meta-size);
  font-weight: 800;
}

/* ========== PRICING & SUBSCRIPTION PAGES ========== */

.pricing-page {
  background: linear-gradient(135deg, var(--paper) 0%, var(--surface) 100%);
  min-height: 100vh;
}

.pricing-header {
  background: linear-gradient(135deg, var(--teal) 0%, #0a5a52 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.pricing-header-content h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  font-weight: 900;
}

.pricing-header-content p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.95;
}

.pricing-tiers {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tiers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.tier-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--teal);
}

.tier-card.popular {
  border: 2px solid var(--teal);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.tier-header {
  margin-bottom: 1.5rem;
}

.tier-header h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: var(--ink);
}

.tier-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ink);
}

.period {
  color: var(--muted);
  font-size: 1rem;
}

.tier-benefits {
  background: var(--paper);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.benefit:last-child {
  margin-bottom: 0;
}

.benefit-icon {
  color: var(--teal);
  font-weight: 900;
  font-size: 1.2rem;
}

.tier-cta {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.tier-cta:hover {
  transform: scale(1.02);
}

.tier-features {
  flex-grow: 1;
}

.tier-features h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

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

.tier-features li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.check {
  color: var(--teal);
  font-weight: 900;
}

/* Feature Comparison */
.pricing-comparison {
  background: var(--surface-strong);
  padding: 4rem 2rem;
}

.pricing-comparison h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.comparison-table thead {
  background: var(--teal);
  color: white;
}

.comparison-table th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 800;
}

.comparison-table td {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

.feature-name {
  font-weight: 700;
  background: var(--surface-strong);
}

.included {
  color: var(--teal);
}

.not-included {
  color: var(--muted);
}

.checkmark {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 900;
}

/* FAQ */
.pricing-faq {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.faq-items {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.faq-item h4 {
  margin: 0 0 0.75rem 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Checkout Page */
.checkout-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--paper) 0%, var(--surface) 100%);
}

.checkout-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.checkout-card h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: var(--ink);
}

.checkout-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal);
  margin: 1rem 0 0.5rem 0;
}

.checkout-trial {
  color: var(--muted);
  margin: 0 0 2rem 0;
}

.checkout-summary {
  background: var(--paper);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.checkout-summary h4 {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

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

.checkout-summary li {
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.payment-methods {
  margin-bottom: 2rem;
}

.payment-button {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 2px solid var(--teal);
  background: white;
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 0.75rem;
}

.payment-button:hover {
  background: var(--teal);
  color: white;
}

.payment-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.terms {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.terms input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.terms a {
  color: var(--teal);
  text-decoration: none;
}

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

/* Account Page */
.account-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--paper);
  min-height: 100vh;
}

.account-header {
  background: var(--surface-strong);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}

.account-header h1 {
  margin: 0;
  color: var(--ink);
}

.account-section {
  background: var(--surface-strong);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}

.account-section h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.plan-card {
  background: linear-gradient(135deg, var(--paper) 0%, var(--surface) 100%);
  border: 2px solid var(--teal);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-info {
  flex-grow: 1;
}

.plan-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: var(--ink);
}

.plan-price {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal);
}

.plan-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-actions {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.usage-card {
  display: grid;
  gap: 2rem;
}

.usage-stat {
  display: grid;
  gap: 0.5rem;
}

.usage-stat label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.usage-bar {
  height: 8px;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, #0a5a52 100%);
  transition: width 0.3s;
}

.usage-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.settings-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  color: var(--ink);
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.notification-options {
  display: grid;
  gap: 1rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  cursor: pointer;
}

.danger-zone {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.2);
}

.danger-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.danger-button {
  padding: 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.danger-button:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
}

.pricing-footer,
.account-footer {
  text-align: center;
  padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-header-content h1 {
    font-size: 1.8rem;
  }

  .tiers-container {
    grid-template-columns: 1fr;
  }

  .tier-card.popular {
    transform: scale(1);
  }

  .plan-actions {
    flex-direction: column;
    margin-left: 0;
    margin-top: 1rem;
  }

  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem;
  }

  .checkout-card {
    padding: 2rem;
  }
}

/* ========== MODERN AUTH LOGIN PAGES ========== */

.auth-page {
  background: linear-gradient(135deg, #0e766f 0%, #0a4f4d 50%, #0a4f4d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  background: linear-gradient(135deg, #0e766f 0%, #0a5a52 100%);
  color: white;
  padding: 50px 30px 40px;
  text-align: center;
  position: relative;
}

.auth-header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.auth-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.auth-content {
  padding: 40px;
}

.auth-content h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #1f2937;
  font-weight: 900;
  line-height: 1.3;
}

.auth-subtitle {
  margin: 0 0 32px 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.oauth-buttons {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.oauth-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.oauth-button:hover::before {
  opacity: 1;
}

.oauth-button:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.oauth-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.oauth-button svg {
  width: 20px;
  height: 20px;
}

.oauth-button.google {
  color: #4285f4;
}

.oauth-button.google:hover {
  background: #f8fbff;
  border-color: #dbeafe;
}

.oauth-button.facebook {
  color: #1877f2;
}

.oauth-button.facebook:hover {
  background: #f0f7ff;
  border-color: #bfdbfe;
}

.oauth-button.apple {
  color: #000;
}

.oauth-button.apple:hover {
  background: #f9f7f5;
  border-color: #e5ddd0;
}

.auth-divider {
  text-align: center;
  margin: 28px 0;
  color: #9ca3af;
  font-size: 13px;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: #e5e7eb;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.email-form input {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #f9fafb;
  transition: all 0.2s;
  color: #1f2937;
}

.email-form input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.email-form input:focus {
  outline: none;
  background: white;
  border-color: #0e766f;
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.1);
}

.auth-footer {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
}

.auth-footer a {
  color: #0e766f;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.auth-footer a:hover {
  color: #0a5a52;
  text-decoration: underline;
}

.auth-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 30px 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-top: 1px solid #e5e7eb;
}

.feature {
  text-align: center;
}

.feature-icon {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

.feature:nth-child(2) .feature-icon {
  animation-delay: 0.2s;
}

.feature:nth-child(3) .feature-icon {
  animation-delay: 0.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.feature p {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

@media (max-width: 600px) {
  .auth-container {
    border-radius: 16px;
    margin: 0;
  }

  .auth-header {
    padding: 40px 24px 30px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .auth-content {
    padding: 32px 20px;
  }

  .auth-features {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
}

/* In-App Help System - Web */

.help-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f0fffe 0%, #f9fafb 100%);
  z-index: 10000;
  overflow: hidden;
}

.help-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

.help-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.help-close:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.help-header {
  grid-column: 1 / -1;
  padding: 30px 40px;
  background: linear-gradient(135deg, #0e766f 0%, #0a5a52 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.help-header p {
  margin: 8px 0 0 0;
  opacity: 0.9;
  font-size: 14px;
}

.help-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-column: 1 / -1;
  height: calc(100vh - 110px);
}

.help-nav {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  padding: 20px 0;
}

.help-nav-item {
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid transparent;
  position: relative;
}

.help-nav-item:hover {
  background: #f3f4f6;
  color: #0e766f;
  border-left-color: #0e766f;
}

.help-nav-item.active {
  background: linear-gradient(90deg, #f0fffe 0%, #ffffff 100%);
  color: #0e766f;
  border-left-color: #0e766f;
  font-weight: 700;
  box-shadow: inset -2px 0 4px rgba(14, 118, 111, 0.1);
}

.help-nav-item.active::after {
  content: '→';
  position: absolute;
  right: 16px;
  font-size: 16px;
  opacity: 0.7;
}

.help-icon {
  font-size: 18px;
}

.help-panel {
  overflow-y: auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.7);
}

.help-section {
  display: none;
  animation: slideIn 0.4s ease-out;
  opacity: 0;
}

.help-section.active {
  display: block;
  opacity: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-section h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: #0e766f;
  font-weight: 700;
}

.help-section > p {
  margin: 0 0 24px 0;
  color: #6b7280;
  line-height: 1.6;
}

.help-section-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.help-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.help-card:hover {
  border-color: #0e766f;
  box-shadow: 0 4px 12px rgba(14, 118, 111, 0.1);
}

.help-card h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #0e766f;
}

.help-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.help-card ul,
.help-card ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.help-card li {
  margin: 4px 0;
}

.help-quickstart {
  background: linear-gradient(135deg, rgba(14, 118, 111, 0.05), rgba(14, 118, 111, 0.02));
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #0e766f;
  margin: 20px 0;
}

.help-quickstart h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #0e766f;
}

.help-quickstart ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.faq-item {
  margin-bottom: 16px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.faq-item h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #0e766f;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .help-container {
    grid-template-columns: 1fr;
  }

  .help-content {
    grid-template-columns: 1fr;
  }

  .help-nav {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .help-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 16px;
  }

  .help-section-content {
    grid-template-columns: 1fr;
  }

  .help-panel {
    padding: 24px;
  }
}
