/* Finger Nexus AI CRM v2.02 contextual conversation experience layer */

:root {
  --v2-ink: #f8fafc;
  --v2-muted: #94a3b8;
  --v2-panel: #111827;
  --v2-panel-soft: #172033;
  --v2-line: rgba(148, 163, 184, 0.2);
  --v2-blue: #3b82f6;
  --v2-cyan: #22d3ee;
  --v2-violet: #8b5cf6;
  --v2-green: #34d399;
  --v2-amber: #fbbf24;
  --v2-red: #fb7185;
}

.brand-tag {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.v2-navbar-tool {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.7);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.18s ease;
}

.v2-navbar-tool:hover,
.v2-navbar-tool:focus-visible {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(37, 99, 235, 0.16);
  color: white;
  outline: none;
}

.v2-navbar-tool--primary {
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.78), rgba(124, 58, 237, 0.72));
  color: white;
}

.v2-notification-button {
  position: relative;
  width: 36px;
  justify-content: center;
  padding-inline: 0;
}

.v2-unread-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #0f172a;
  border-radius: 99px;
  background: var(--v2-red);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.v2-prototype-ribbon {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 92;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 32px);
  padding: 6px 10px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 99px;
  background: rgba(2, 6, 23, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  color: #bae6fd;
  font-size: 9px;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.v2-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(9px);
}

.v2-overlay.is-open {
  display: flex;
}

.v2-dialog {
  width: min(1120px, 96vw);
  max-height: min(900px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(10, 15, 27, 0.99));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58);
  color: var(--v2-ink);
}

.v2-dialog--compact { width: min(780px, 96vw); }

.v2-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--v2-line);
  background: rgba(15, 23, 42, 0.65);
}

.v2-dialog__title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.v2-dialog__title-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(124, 58, 237, 0.28));
  color: #93c5fd;
}

.v2-dialog__eyebrow {
  margin-bottom: 4px;
  color: #60a5fa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.v2-dialog__subtitle {
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 11px;
  line-height: 1.55;
}

.v2-dialog__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--v2-line);
  border-radius: 9px;
  color: #cbd5e1;
}

.v2-dialog__close:hover,
.v2-dialog__close:focus-visible {
  border-color: #60a5fa;
  color: white;
  outline: none;
}

.v2-dialog__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.v2-dialog__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--v2-line);
  background: rgba(2, 6, 23, 0.42);
}

.v2-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4f0;
  font-size: 11px;
  font-weight: 800;
}

.v2-button:hover,
.v2-button:focus-visible {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(37, 99, 235, 0.12);
  color: white;
  outline: none;
}

.v2-button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
}

.v2-button--success {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.13);
  color: #6ee7b7;
}

.v2-button--danger {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(244, 63, 94, 0.1);
  color: #fda4af;
}

.v2-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.v2-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.34);
}

.v2-tab {
  flex: none;
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--v2-muted);
  font-size: 10px;
  font-weight: 800;
}

.v2-tab.is-active {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

.v2-grid { display: grid; gap: 12px; }
.v2-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.v2-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.52);
}

.v2-card--accent {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.13), rgba(124, 58, 237, 0.08));
}

.v2-card__label {
  color: #93c5fd;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v2-card__title {
  margin-top: 5px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.v2-card__copy {
  margin-top: 6px;
  color: #aebacd;
  font-size: 10px;
  line-height: 1.6;
}

.v2-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.v2-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.v2-status--active,
.v2-status--completed,
.v2-status--delivered,
.v2-status--read { color: var(--v2-green); border-color: rgba(52, 211, 153, 0.3); }
.v2-status--prototype,
.v2-status--queued,
.v2-status--executing,
.v2-status--verifying { color: var(--v2-cyan); border-color: rgba(34, 211, 238, 0.3); }
.v2-status--awaiting-approval,
.v2-status--action-required { color: var(--v2-amber); border-color: rgba(251, 191, 36, 0.3); }
.v2-status--failed,
.v2-status--partial-failure,
.v2-status--critical { color: var(--v2-red); border-color: rgba(251, 113, 133, 0.3); }

.v2-hub-summary {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.65fr));
  gap: 10px;
  margin-bottom: 14px;
}

.v2-metric {
  padding: 13px;
  border: 1px solid var(--v2-line);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.7);
}

.v2-metric span { display: block; color: var(--v2-muted); font-size: 9px; }
.v2-metric strong { display: block; margin-top: 5px; color: white; font-size: 17px; }
.v2-metric--hero strong { font-size: 14px; line-height: 1.4; }

.v2-journey {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.v2-journey__aside {
  align-self: start;
  position: sticky;
  top: 0;
}

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

.v2-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.66);
}

.v2-step__number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
}

.v2-step strong { display: block; font-size: 11px; }
.v2-step small { display: block; margin-top: 3px; color: var(--v2-muted); font-size: 9px; line-height: 1.45; }

.v2-module-groups { display: grid; gap: 14px; margin-top: 14px; }
.v2-module-group-title { margin-bottom: 7px; color: #cbd5e1; font-size: 10px; font-weight: 900; }
.v2-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v2-module {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--v2-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}
.v2-module__number { color: #60a5fa; font-size: 9px; font-weight: 900; }
.v2-module strong { display: block; font-size: 10px; }
.v2-module small { display: block; margin-top: 2px; color: var(--v2-muted); font-size: 8px; }

.v2-domain-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.v2-domain-card {
  min-height: 134px;
  padding: 13px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  color: #dbe4f0;
  text-align: left;
}
.v2-domain-card:hover,
.v2-domain-card:focus-visible,
.v2-domain-card.is-active {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.1));
  outline: none;
}
.v2-domain-card__icon { color: #93c5fd; font-size: 18px; }
.v2-domain-card strong { display: block; margin-top: 10px; font-size: 12px; }
.v2-domain-card small { display: block; margin-top: 5px; color: var(--v2-muted); font-size: 9px; line-height: 1.45; }

.v2-diff {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.v2-diff__item { padding: 10px; border: 1px solid var(--v2-line); border-radius: 9px; background: rgba(2, 6, 23, 0.32); }
.v2-diff__item span { display: block; color: var(--v2-muted); font-size: 8px; }
.v2-diff__item strong { display: block; margin-top: 4px; color: white; font-size: 10px; line-height: 1.45; }

.v2-notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
}

.v2-notification-list { display: grid; gap: 8px; margin-top: 10px; }
.v2-notification {
  padding: 12px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.66);
}
.v2-notification.is-unread { border-left: 3px solid var(--v2-blue); }
.v2-notification.is-critical { border-color: rgba(251, 113, 133, 0.45); }
.v2-notification__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.v2-notification__title { color: white; font-size: 11px; font-weight: 900; }
.v2-notification__time { color: var(--v2-muted); font-size: 8px; white-space: nowrap; }
.v2-notification__copy { margin-top: 5px; color: #aebacd; font-size: 9px; line-height: 1.55; }
.v2-notification__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.v2-notification__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

.v2-channel-list { display: grid; gap: 8px; }
.v2-channel {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.64);
}
.v2-channel__icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(59, 130, 246, 0.13); color: #93c5fd; }
.v2-channel strong { display: block; font-size: 10px; }
.v2-channel small { display: block; margin-top: 3px; color: var(--v2-muted); font-size: 8px; }

.v2-switch {
  width: 38px;
  height: 22px;
  position: relative;
  border-radius: 99px;
  background: #334155;
}
.v2-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  content: '';
  transition: 0.2s ease;
}
.v2-switch.is-on { background: #2563eb; }
.v2-switch.is-on::after { translate: 16px 0; }

.v2-policy-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.v2-policy-table th,
.v2-policy-table td { padding: 9px 8px; border-bottom: 1px solid var(--v2-line); text-align: left; vertical-align: top; }
.v2-policy-table th { color: #93c5fd; background: rgba(37, 99, 235, 0.08); font-size: 8px; }
.v2-policy-table td { color: #cbd5e1; }

.v2-delivery-list { display: grid; gap: 7px; }
.v2-delivery {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 90px auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
}

.v2-plan-card {
  width: 100%;
  max-width: 760px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
}
.v2-plan-card__head { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--v2-line); }
.v2-plan-card__head strong { display: block; color: white; font-size: 12px; }
.v2-plan-card__head small { display: block; margin-top: 4px; color: var(--v2-muted); font-size: 9px; }
.v2-plan-card__body { padding: 10px 12px; }
.v2-plan-timeline { display: grid; gap: 6px; }
.v2-plan-step { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: #cbd5e1; font-size: 9px; }
.v2-plan-step__dot { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--v2-line); border-radius: 50%; color: var(--v2-muted); font-size: 7px; }
.v2-plan-step.is-complete .v2-plan-step__dot { border-color: var(--v2-green); background: rgba(16, 185, 129, 0.15); color: var(--v2-green); }
.v2-plan-step.is-current .v2-plan-step__dot { border-color: var(--v2-cyan); background: rgba(34, 211, 238, 0.15); color: var(--v2-cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.07); }
.v2-plan-card__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--v2-line); }
.v2-plan-step__button { min-height: 32px; padding: 5px 9px; font-size: 9px; }

.chat-msg--v2-plan { width: min(100%, 800px); max-width: 100%; }
.chat-msg--v2-plan .msg-body,
.chat-msg--v2-plan .msg-text { width: 100%; }
.chat-msg--v2-plan .msg-text { padding: 0; border: 0; background: transparent; box-shadow: none; }
.chat-msg--v2-plan .avatar-ai { margin-top: 4px; }

.v2-action-state {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.v2-action-state__node { flex: none; padding: 5px 7px; border: 1px solid var(--v2-line); border-radius: 7px; color: var(--v2-muted); font-size: 8px; font-weight: 800; }
.v2-action-state__node.is-done { border-color: rgba(52, 211, 153, 0.34); color: var(--v2-green); }
.v2-action-state__node.is-current { border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.08); color: var(--v2-cyan); }
.v2-action-state__arrow { color: #475569; font-size: 8px; }

.v2-graph {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.v2-graph-node { min-height: 72px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--v2-line); border-radius: 12px; background: rgba(15, 23, 42, 0.8); color: #cbd5e1; font-size: 9px; text-align: center; line-height: 1.45; }
.v2-graph-node.is-risk { border-color: rgba(251, 113, 133, 0.6); background: rgba(244, 63, 94, 0.08); color: #fecdd3; }

.v2-contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-contract-pane { padding: 13px; border: 1px solid var(--v2-line); border-radius: 11px; background: rgba(15, 23, 42, 0.68); }
.v2-contract-pane h4 { margin-bottom: 8px; font-size: 11px; }
.v2-contract-clause { padding: 9px; border-radius: 8px; color: #cbd5e1; font-size: 9px; line-height: 1.6; }
.v2-contract-clause.is-risk { border: 1px solid rgba(251, 113, 133, 0.38); background: rgba(244, 63, 94, 0.09); }
.v2-contract-clause.is-safe { border: 1px solid rgba(52, 211, 153, 0.32); background: rgba(16, 185, 129, 0.07); }

.v2-voice-player { padding: 16px; border: 1px solid rgba(139, 92, 246, 0.38); border-radius: 14px; background: linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(37, 99, 235, 0.08)); }
.v2-voice-wave { height: 48px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 13px 0; }
.v2-voice-wave span { width: 4px; border-radius: 99px; background: linear-gradient(#22d3ee, #8b5cf6); animation: v2-wave 1.2s ease-in-out infinite; }
.v2-voice-wave span:nth-child(2n) { animation-delay: -0.35s; }
.v2-voice-wave span:nth-child(3n) { animation-delay: -0.7s; }
@keyframes v2-wave { 0%, 100% { height: 12px; opacity: 0.55; } 50% { height: 42px; opacity: 1; } }
.v2-voice-player.is-paused .v2-voice-wave span { animation-play-state: paused; }

.v2-range { width: 100%; accent-color: #3b82f6; }
.v2-whatif-metric { padding: 14px; border-radius: 11px; background: rgba(15, 23, 42, 0.72); border: 1px solid var(--v2-line); }
.v2-whatif-metric span { color: var(--v2-muted); font-size: 9px; }
.v2-whatif-metric strong { display: block; margin-top: 4px; font-size: 21px; }

.v2-dashboard-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  background: linear-gradient(115deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.08));
}
.v2-dashboard-banner strong { display: block; color: white; font-size: 12px; }
.v2-dashboard-banner p { margin-top: 4px; color: #aebacd; font-size: 9px; line-height: 1.5; }
.v2-dashboard-banner__actions { display: flex; gap: 6px; }

.v2-kpi-rollup { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--v2-line); }
.v2-kpi-rollup__title { display: flex; justify-content: space-between; color: #bfdbfe; font-size: 9px; font-weight: 900; }
.v2-kpi-rollup__rows { display: grid; gap: 5px; margin-top: 7px; }
.v2-kpi-rollup__row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px; gap: 7px; color: #aebacd; font-size: 8px; }

.v2-personal-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v2-personal-channel { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--dark-border); border-radius: 9px; background: rgba(255, 255, 255, 0.03); }
.v2-personal-channel strong { display: block; font-size: 11px; }
.v2-personal-channel small { display: block; margin-top: 3px; color: var(--dark-text-sub); font-size: 9px; }

.sidebar-thread-item {
  width: 100%;
  min-width: 0;
  font: inherit;
  text-align: left;
}
.sidebar-thread-item:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

.v201-thread-dashboard {
  width: 100%;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 0, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
}
.v201-thread-dashboard--schedule {
  background:
    radial-gradient(circle at 90% 0, rgba(16, 185, 129, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
}
.v201-thread-dashboard__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}
.v201-thread-dashboard__heading { min-width: 0; }
.v201-thread-dashboard__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.v201-thread-dashboard--schedule .v201-thread-dashboard__eyebrow { color: #6ee7b7; }
.v201-thread-dashboard__heading h2 { margin: 0; color: #fff; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.3; }
.v201-thread-dashboard__heading p { max-width: 900px; margin: 7px 0 0; color: #b6c2d2; font-size: 11px; line-height: 1.65; }
.v201-thread-dashboard__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.v201-thread-dashboard__source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 13px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  color: #7f8fa6;
  font-size: 9px;
}
.v201-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #93c5fd;
  font-size: 9px;
  font-weight: 800;
}
.v201-thread-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}
.v201-thread-metric {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.026);
}
.v201-thread-metric span { display: block; color: #8292a8; font-size: 9px; font-weight: 800; }
.v201-thread-metric strong { display: block; overflow: hidden; margin-top: 4px; color: #fff; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.v201-thread-metric small { display: block; overflow: hidden; margin-top: 4px; color: #9fb0c5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.v201-thread-metric.is-complete { border-color: rgba(52, 211, 153, 0.28); }
.v201-thread-metric.is-progress { border-color: rgba(34, 211, 238, 0.28); }
.v201-thread-metric.is-scheduled { border-color: rgba(251, 191, 36, 0.28); }
.v201-thread-layout,
.v201-schedule-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.v201-schedule-layout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); }
.v201-thread-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.24);
}
.v201-thread-panel__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #dbeafe; font-size: 11px; font-weight: 900; }
.v201-thread-panel__title span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.v201-thread-panel__title b { flex: none; padding: 3px 7px; border-radius: 999px; background: rgba(96, 165, 250, 0.1); color: #93c5fd; font-size: 9px; }
.v201-thread-list { display: grid; gap: 7px; margin-top: 9px; }
.v201-thread-list__item {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #cbd5e1;
  text-align: left;
}
.v201-thread-list__item > div { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.v201-thread-list__item strong { min-width: 0; color: #f8fafc; font-size: 10px; line-height: 1.45; }
.v201-thread-list__item p { margin: 5px 0 0; color: #9fb0c5; font-size: 9px; line-height: 1.55; }
.v201-thread-list__item small { display: block; margin-top: 5px; color: #7f8fa6; font-size: 8px; }
.v201-thread-list__item.is-high { border-left: 3px solid #fb7185; }
.v201-thread-list__item.is-medium { border-left: 3px solid #fbbf24; }
.v201-thread-list__item.is-action { border-left: 3px solid #60a5fa; }
.v201-thread-list__item.is-claim { border-left: 3px solid #f472b6; }
.v201-thread-list__item.is-activity { border-left: 3px solid #34d399; }
.v201-thread-list__button { width: 100%; font: inherit; cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease; }
.v201-thread-list__button:hover,
.v201-thread-list__button:focus-visible { border-color: rgba(244, 114, 182, 0.48); background: rgba(244, 114, 182, 0.06); outline: none; }
.v201-priority { flex: none; padding: 2px 5px; border-radius: 5px; background: rgba(96, 165, 250, 0.1); color: #93c5fd; font-size: 8px; font-weight: 900; }
.v201-thread-empty { display: flex; align-items: center; gap: 7px; min-height: 54px; padding: 10px; border: 1px dashed rgba(148, 163, 184, 0.18); border-radius: 9px; color: #8292a8; font-size: 9px; line-height: 1.5; }
.v201-status-dot { flex: none; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #fbbf24; }
.v201-status-dot.is-completed { background: #34d399; }
.v201-status-dot.is-in_progress { background: #22d3ee; }
.v201-activity-table { display: grid; gap: 7px; margin-top: 9px; }
.v201-activity-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}
.v201-activity-row__date { color: #dbeafe; font-size: 11px; font-weight: 900; text-align: center; }
.v201-activity-row__date small { display: block; margin-top: 2px; color: #7f8fa6; font-size: 8px; }
.v201-activity-row__body { min-width: 0; }
.v201-activity-row__body strong { display: block; overflow: hidden; color: #f8fafc; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.v201-activity-row__body small,
.v201-activity-row__body em { display: block; overflow: hidden; margin-top: 3px; color: #8899ae; font-size: 8px; font-style: normal; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.v201-activity-row__body em { color: #aebccd; }
.v201-activity-row__status { min-width: 48px; padding: 4px 6px; border-radius: 999px; background: rgba(251, 191, 36, 0.1); color: #fcd34d; font-size: 8px; font-weight: 900; text-align: center; }
.v201-activity-row__status.is-completed { background: rgba(52, 211, 153, 0.1); color: #6ee7b7; }
.v201-activity-row__status.is-in_progress { background: rgba(34, 211, 238, 0.1); color: #67e8f9; }
.v201-insight-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.v201-insight-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.v201-insight-list li > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: rgba(52, 211, 153, 0.1); color: #6ee7b7; font-size: 9px; font-weight: 900; }
.v201-insight-list p { margin: 1px 0 0; color: #c1ccda; font-size: 9px; line-height: 1.6; }
.v201-ai-disclaimer { margin-top: 10px; padding: 9px; border: 1px solid rgba(96, 165, 250, 0.16); border-radius: 9px; background: rgba(37, 99, 235, 0.06); color: #93a4ba; font-size: 8px; line-height: 1.55; }
.v201-general-status {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  background: linear-gradient(115deg, rgba(6, 182, 212, 0.08), rgba(37, 99, 235, 0.06));
}
.v201-general-status__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.v201-general-status__head span:first-child { display: block; color: #67e8f9; font-size: 9px; font-weight: 900; }
.v201-general-status__head strong { display: block; margin-top: 3px; color: #e2e8f0; font-size: 10px; }
.v201-general-status__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.v201-general-status__grid button { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 9px; background: rgba(15, 23, 42, 0.5); color: #cbd5e1; font: inherit; text-align: left; cursor: pointer; }
.v201-general-status__grid button:hover,
.v201-general-status__grid button:focus-visible { border-color: rgba(34, 211, 238, 0.38); outline: none; }
.v201-general-status__grid button i { color: #67e8f9; }
.v201-general-status__grid button span { min-width: 0; color: #8fa0b5; font-size: 9px; }
.v201-general-status__grid button strong { display: block; margin-top: 2px; color: #f8fafc; font-size: 13px; }
.v201-general-status .v201-thread-dashboard__source { margin-top: 9px; padding-top: 8px; }

@media (max-width: 1280px) {
  .v2-navbar-tool span { display: none; }
  .v2-navbar-tool { width: 36px; justify-content: center; padding-inline: 0; }
  .v2-hub-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-domain-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .v2-overlay { align-items: stretch; padding: 0; }
  .v2-dialog { width: 100%; max-height: 100dvh; border-radius: 0; }
  .v2-dialog__header, .v2-dialog__body, .v2-dialog__footer { padding-left: 14px; padding-right: 14px; }
  .v2-grid--2, .v2-grid--3, .v2-grid--4,
  .v2-module-list, .v2-notification-layout,
  .v2-contract-grid, .v2-journey { grid-template-columns: 1fr; }
  .v2-journey__aside { position: static; }
  .v2-domain-list, .v2-diff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-graph { grid-template-columns: 1fr; }
  .v2-graph-node { min-height: 54px; }
  .v2-delivery { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .v2-delivery > :nth-child(3) { display: none; }
  .v201-thread-dashboard__header { grid-template-columns: 1fr; }
  .v201-thread-dashboard__actions { justify-content: flex-start; }
  .v201-thread-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v201-thread-layout,
  .v201-schedule-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .global-navbar {
    justify-content: flex-start;
    gap: 6px;
    padding-inline: 8px;
    overflow: hidden;
  }
  .brand-wrapper { gap: 0; }
  .brand-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
  .brand-text,
  .global-search-wrapper,
  .navbar-actions > .roi-badge,
  #tokenBadgeNav,
  #personaSelect { display: none !important; }
  .mode-switcher { flex: none; }
  .mode-btn {
    width: 32px;
    min-width: 32px;
    padding: 7px;
    justify-content: center;
    font-size: 0;
  }
  .mode-btn i { font-size: 13px; }
  .navbar-actions {
    min-width: 0;
    margin-left: auto;
    gap: 4px;
  }
  .display-mode-switcher { padding: 2px; }
  .display-mode-btn { width: 27px; min-width: 27px; height: 28px; padding: 4px; }
  .v2-navbar-tool { width: 32px; height: 32px; }
  .personal-account-button { width: 32px; min-width: 32px; height: 32px; }
}

@media (max-width: 520px) {
  .v2-hub-summary, .v2-domain-list, .v2-diff, .v2-personal-channel-grid { grid-template-columns: 1fr; }
  .v2-step { grid-template-columns: 28px minmax(0, 1fr); }
  .v2-step > .v2-button { grid-column: 1 / -1; }
  .v2-dashboard-banner { grid-template-columns: 1fr; }
  .v2-dashboard-banner__actions { width: 100%; }
  .v2-dashboard-banner__actions .v2-button { flex: 1; }
  .v2-prototype-ribbon { display: none; }
  .v201-thread-dashboard { padding: 13px; border-radius: 13px; }
  .v201-thread-dashboard__actions { width: 100%; }
  .v201-thread-dashboard__actions .v2-button { flex: 1; }
  .v201-thread-metrics,
  .v201-general-status__grid { grid-template-columns: 1fr; }
  .v201-activity-row { grid-template-columns: 40px minmax(0, 1fr); }
  .v201-activity-row__status { grid-column: 2; justify-self: start; }
  .v2-plan-step { grid-template-columns: 18px minmax(0, 1fr); }
  .v2-plan-step__button { grid-column: 2; justify-self: start; min-width: 72px; }
  .v2-plan-card__actions .v2-button { flex: 1 1 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-voice-wave span { animation: none; height: 22px; }
  .v2-switch::after, .v2-navbar-tool { transition: none; }
}

/* Release 2.02: conversation typography readability only */
.thread-group-title {
  color: #aebccd;
  font-size: 11px;
  line-height: 1.4;
}

.chat-studio-sidebar .sidebar-thread-item {
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

#threadListGeneral .sidebar-thread-item > span:last-child,
#threadListProjects .sidebar-thread-item > div span,
#threadListSchedule .sidebar-thread-item > div span {
  color: #b6c2d2 !important;
  font-size: 10px !important;
  opacity: 0.85 !important;
}

#threadListSchedule .sidebar-thread-item > div i {
  font-size: 11px !important;
}

.v201-thread-dashboard__eyebrow,
.v201-thread-dashboard__source,
.v201-source-badge,
.v201-thread-metric span,
.v201-thread-metric small {
  font-size: 11px;
}

.v201-thread-dashboard__heading p,
.v201-thread-panel__title,
.v201-general-status__head strong {
  font-size: 12px;
}

.v201-thread-panel__title b,
.v201-priority,
.v201-thread-list__item small,
.v201-thread-empty,
.v201-activity-row__date small,
.v201-activity-row__status,
.v201-ai-disclaimer {
  font-size: 10px;
}

.v201-thread-list__item strong,
.v201-thread-list__item p,
.v201-activity-row__body strong,
.v201-activity-row__body small,
.v201-activity-row__body em,
.v201-insight-list p,
.v201-general-status__head span:first-child,
.v201-general-status__grid button span {
  font-size: 11px;
}

.v201-thread-dashboard__heading p,
.v201-thread-metric span,
.v201-thread-metric small,
.v201-thread-list__item p,
.v201-thread-list__item small,
.v201-thread-empty,
.v201-activity-row__body small,
.v201-activity-row__body em,
.v201-insight-list p,
.v201-ai-disclaimer {
  color: #aebccd;
}

.v2-plan-card__head strong {
  font-size: 14px;
}

.v2-plan-card__head small,
.v2-plan-card .v2-card__copy {
  font-size: 11px;
  line-height: 1.5;
}

.v2-plan-step {
  font-size: 12px;
  line-height: 1.45;
}

.v2-plan-card .v2-status,
.v2-action-state__node {
  font-size: 10px;
}

.v2-plan-card .v2-button,
.v2-plan-card .v2-plan-step__button {
  font-size: 11px;
}
