/* Ask lite — right-edge shelf (mirrors briefing-shelf patterns) */

html[data-td-contact-embed="1"] #askLiteRoot,
html[data-td-deal-embed="1"] #askLiteRoot,
html[data-td-settings-embed="1"] #askLiteRoot,
html[data-td-quick-add-embed="1"] #askLiteRoot {
  display: none !important;
}

:root {
  --ask-lite-tab-w: 46px;
  --ask-lite-grip-w: 24px;
  --td-right-rail-w: 46px;
  --ask-lite-tab-top: 62%;
  --ask-lite-resize-w: 6px;
  --ask-lite-panel-w: min(320px, calc(100vw - var(--ask-lite-resize-w) - 8px));
}

body.ask-lite-tab-dragging {
  cursor: ns-resize !important;
  user-select: none !important;
}

body.ask-lite-tab-dragging * {
  cursor: ns-resize !important;
}

body.ask-lite-resize-active {
  cursor: ew-resize !important;
  user-select: none !important;
}

body.ask-lite-open:not(.ask-lite--mobile) {
  --ask-lite-shell-reserve: var(--ask-lite-reserve, 344px);
}

@media (min-width: 900px) {
  body.ask-lite-open .app-shell .mainColumn,
  body.ask-lite-open #dealWorkspaceMount.deal-workspace-mount.visible {
    margin-right: var(--ask-lite-shell-reserve, 0px);
    transition: margin-right 0.2s ease;
  }
}

.ask-lite-shelf {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10650;
  pointer-events: none;
  font-family: inherit;
}

.ask-lite-shelf--collapsed {
  pointer-events: none;
}

.ask-lite-shelf--collapsed .ask-lite-shelf__track {
  pointer-events: none;
}

.ask-lite-shelf--collapsed .ask-lite-edge-tab-wrap {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.ask-lite-shelf > * {
  pointer-events: auto;
}

.ask-lite-shelf__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  max-height: 100vh;
  pointer-events: none;
}

.ask-lite-shelf--open .ask-lite-shelf__track {
  pointer-events: auto;
}

/* Left collapse grip — visible when panel is open (like Briefing shelf) */
.ask-lite-shelf__grip {
  flex: 0 0 var(--ask-lite-grip-w, 24px);
  width: var(--ask-lite-grip-w, 24px);
  align-self: stretch;
  margin: 0 0 0 -2px;
  padding: 4px 1px;
  border: none;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #1a1f2e 0%, #12151c 55%, #0f1419 100%);
  color: #5eead4;
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: -4px 0 16px rgba(15, 23, 42, 0.35);
  transition: filter 0.15s ease, color 0.15s ease;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.ask-lite-shelf--open .ask-lite-shelf__grip {
  display: flex;
}

.ask-lite-shelf__grip:hover {
  filter: brightness(1.08);
  color: #99f6e4;
}

.ask-lite-shelf__grip-icon {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.ask-lite-shelf__grip-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
}

.ask-lite-shelf--collapsed .ask-lite-shelf__grip {
  display: none !important;
}

/* Apollo-style edge tab — reopen when collapsed */
.ask-lite-edge-tab-wrap {
  position: fixed;
  top: var(--ask-lite-tab-top, 62%);
  right: 0;
  z-index: 10655;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  filter: drop-shadow(-4px 4px 16px rgba(15, 23, 42, 0.22));
  transition: top 0.05s linear;
}

.ask-lite-edge-tab-wrap--dragging {
  transition: none;
}

.ask-lite-edge-tab-wrap--open {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.ask-lite-shelf--open {
  right: 0;
}

.ask-lite-shelf__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ask-lite-shelf__switch {
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ask-lite-shelf__switch:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.5);
}

.ask-lite-shelf__help {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.06);
  color: #4f46e5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ask-lite-shelf__help:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.45);
}

.ask-lite-shelf__help.is-active {
  background: #4f46e5;
  border-color: #4338ca;
  color: #fff;
}

.ask-lite-empty__help-link {
  margin: 16px 0 0;
  width: 100%;
  max-width: 280px;
}

.ask-lite-help-link {
  border: none;
  background: transparent;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ask-lite-help-link:hover {
  color: #4338ca;
}

.ask-lite-help {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  color: var(--text-primary, #0f172a);
}

.ask-lite-help__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ask-lite-help__heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.ask-lite-help__sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.ask-lite-help__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.ask-lite-help__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.ask-lite-help__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ask-lite-help__item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ask-lite-help__item--featured {
  border-color: rgba(99, 102, 241, 0.28);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.95) 55%);
}

.ask-lite-help__item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ask-lite-help__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.ask-lite-help__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
}

.ask-lite-help__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  color: #1e293b;
}

.ask-lite-help__example {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  font-style: italic;
}

.ask-lite-help__try {
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ask-lite-help__try:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.5);
}

.ask-lite-help__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ask-lite-help__nav-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ask-lite-help__nav-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
}

.ask-lite-help__nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ask-lite-help__nav-btn--primary {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
}

.ask-lite-help__nav-btn--primary:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.5);
}

.ask-lite-help__nav-meta {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

/* Briefing edge tab — stacks above Ask on the right rail */
.briefing-edge-tab-wrap {
  position: fixed;
  top: var(--briefing-edge-tab-top, 48%);
  right: 0;
  z-index: 10656;
  transform: translateY(-50%);
  display: flex;
  filter: drop-shadow(-4px 4px 16px rgba(79, 70, 229, 0.28));
}

.briefing-edge-tab-wrap[hidden] {
  display: none !important;
}

.briefing-edge-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: var(--td-right-rail-w, 46px);
  min-height: 58px;
  padding: 10px 8px 10px 6px;
  border: none;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(165deg, #4f46e5 0%, #4338ca 55%, #3730a3 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.briefing-edge-tab:hover {
  filter: brightness(1.06);
}

.briefing-edge-tab--active,
.briefing-edge-tab-wrap--open .briefing-edge-tab {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.briefing-edge-tab__icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.95;
}

.briefing-edge-tab__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

body.td-right-rail--dual {
  --briefing-edge-tab-top: 48%;
  --ask-lite-tab-top: 66%;
}

body.td-right-rail--dual .briefing-shelf__grip {
  display: none !important;
}

body.td-right-rail--dual .briefing-shelf {
  right: 0 !important;
}

body.td-right-rail--dual.ask-lite-open .briefing-shelf,
body.ask-lite-open.td-right-rail--dual .briefing-shelf {
  right: var(--ask-lite-reserve, 0px) !important;
}

.briefing-edge-tab-wrap--open {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.ask-lite-edge-tab__drag {
  flex: 0 0 0;
  width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  touch-action: none;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.92);
  opacity: 0;
  transition: width 0.15s ease, flex-basis 0.15s ease, opacity 0.15s ease;
}

.ask-lite-edge-tab-wrap:hover .ask-lite-edge-tab__drag,
.ask-lite-edge-tab-wrap:focus-within .ask-lite-edge-tab__drag,
.ask-lite-edge-tab-wrap--dragging .ask-lite-edge-tab__drag,
.ask-lite-edge-tab-wrap--open .ask-lite-edge-tab__drag {
  flex: 0 0 14px;
  width: 14px;
  opacity: 1;
}

.ask-lite-edge-tab__grip {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.55) 0 2px,
    transparent 2px 5px
  );
}

.ask-lite-edge-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: var(--ask-lite-tab-w, 46px);
  min-height: 58px;
  padding: 10px 8px 10px 6px;
  border: none;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(165deg, #1a1f2e 0%, #12151c 100%);
  color: #5eead4;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ask-lite-edge-tab:hover {
  background: linear-gradient(165deg, #222838 0%, #171b24 100%);
  color: #99f6e4;
}

.ask-lite-edge-tab--active,
.ask-lite-edge-tab-wrap--open .ask-lite-edge-tab {
  background: linear-gradient(165deg, #1e3a5f 0%, #12151c 100%);
  color: #7dd3fc;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.ask-lite-edge-tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.ask-lite-edge-tab__svg {
  width: 26px;
  height: 26px;
  display: block;
}

.ask-lite-edge-tab__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
}

.ask-lite-edge-tab--active .ask-lite-edge-tab__label {
  color: rgba(255, 255, 255, 0.9);
}

.ask-lite-shelf__resize {
  flex: 0 0 var(--ask-lite-resize-w);
  width: var(--ask-lite-resize-w);
  cursor: ew-resize;
  background: transparent;
  touch-action: none;
}

.ask-lite-shelf__resize:hover {
  background: rgba(37, 99, 235, 0.15);
}

.ask-lite-shelf__panel {
  box-sizing: border-box;
  width: var(--ask-lite-panel-w);
  flex: 0 0 var(--ask-lite-panel-w);
  max-width: calc(100vw - 8px);
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated, #fff);
  border-left: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease, flex-basis 0.2s ease;
  pointer-events: auto;
}

.ask-lite-shelf--collapsed .ask-lite-shelf__panel {
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  border-left-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.ask-lite-shelf--collapsed .ask-lite-shelf__resize {
  display: none;
}

.ask-lite-shelf__header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.ask-lite-shelf__header-text {
  min-width: 0;
  flex: 1;
}

.ask-lite-shelf__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ask-lite-shelf__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-primary, #0f172a);
}

.ask-lite-shelf__context {
  margin-top: 8px;
}

.ask-lite-context-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ask-lite-shelf__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.ask-lite-shelf__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary, #0f172a);
}

.ask-lite-shelf__chips {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}

.ask-lite-shelf__chips[hidden] {
  display: none !important;
}

.ask-lite-chip {
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: #fff;
  color: #4338ca;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.ask-lite-chip:hover {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.38);
}

.ask-lite-chip:active {
  transform: scale(0.97);
  background: rgba(99, 102, 241, 0.12);
}

.ask-lite-shelf__thread {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 16px;
  min-height: 120px;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 28%);
}

.ask-lite-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 8px 12px;
  color: var(--text-secondary, #64748b);
  font-size: 14px;
  line-height: 1.5;
}

.ask-lite-empty p {
  margin: 0;
}

.ask-lite-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.14) 0%, rgba(79, 70, 229, 0.06) 100%);
  color: #4f46e5;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.ask-lite-empty__icon svg {
  width: 24px;
  height: 24px;
}

.ask-lite-empty__examples {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 280px;
}

.ask-lite-empty__examples li {
  font-size: 12px;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ask-lite-empty__examples strong {
  color: #334155;
  font-weight: 600;
}

.ask-lite-empty__queue {
  width: 100%;
  max-width: 280px;
  margin: 0 0 14px;
  text-align: left;
}

.ask-lite-empty__queue-lead {
  margin: 0 0 10px !important;
  font-size: 12px;
  line-height: 1.45;
  color: var(--td-text-muted, #64748b);
  text-align: center;
}

.ask-lite-action-queue {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: ask-lite-action;
}

.ask-lite-action-queue > li {
  counter-increment: ask-lite-action;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.ask-lite-action-queue > li::before {
  content: counter(ask-lite-action) ".";
  flex: 0 0 auto;
  min-width: 1.1rem;
  padding-top: 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #6366f1;
  text-align: right;
}

.ask-lite-action-queue__item {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.ask-lite-action-queue__item:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.ask-lite-action-queue__item:active {
  transform: scale(0.99);
  background: rgba(99, 102, 241, 0.1);
}

.ask-lite-action-queue__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
}

.ask-lite-action-queue__hint {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #64748b;
}

.ask-lite-card__body .ask-lite-action-queue,
.ask-lite-chat-body .ask-lite-action-queue {
  max-width: 100%;
}

.ask-lite-turn {
  margin-bottom: 14px;
  animation: ask-lite-turn-in 0.28s ease both;
}

@keyframes ask-lite-turn-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ask-lite-turn--user {
  display: flex;
  justify-content: flex-end;
}

.ask-lite-bubble--user {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(145deg, #4f46e5 0%, #4338ca 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.22);
}

.ask-lite-card {
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-subtle, #f8fafc);
}

.ask-lite-card--loading {
  opacity: 0.85;
}

.ask-lite-card__headline {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.ask-lite-card__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, #334155);
}

.ask-lite-card__body p {
  margin: 0 0 8px;
}

.ask-lite-list {
  margin: 0;
  padding-left: 18px;
}

.ask-lite-list li {
  margin-bottom: 6px;
}

.ask-lite-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary, #475569);
}

.ask-lite-steps li {
  margin-bottom: 4px;
}

.ask-lite-sources {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.ask-lite-sources__lead {
  margin-right: 4px;
}

.ask-lite-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 4px 2px 0;
  vertical-align: middle;
}

.ask-lite-source-pill .ask-lite-record-link {
  font-size: 11px;
}

.ask-lite-source-quote {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted, #94a3b8);
  font-style: italic;
}

.ask-lite-proposal-list--steps > li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.ask-lite-proposal-step.is-skipped .ask-lite-proposal-step__label {
  opacity: 0.45;
  text-decoration: line-through;
}

.ask-lite-proposal-step__toggles {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.ask-lite-cta--micro {
  margin-top: 0;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
}

.ask-lite-cta--micro.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ask-lite-empty__meetings {
  width: 100%;
  margin: 0 0 12px;
  text-align: left;
}

.ask-lite-empty__meeting-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ask-lite-empty__meeting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ask-lite-empty__meeting-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ask-lite-empty__meeting-meta {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.ask-lite-empty__meeting-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ask-lite-cta {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ask-lite-cta:hover {
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.32);
}

.ask-lite-cta--secondary {
  background: transparent;
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.35);
  margin-left: 8px;
  box-shadow: none;
}

.ask-lite-cta--secondary:hover {
  background: rgba(99, 102, 241, 0.08);
  box-shadow: none;
}

.ask-lite-cta--ghost {
  background: transparent;
  color: #64748b;
  border: none;
  margin-left: 8px;
  box-shadow: none;
  font-weight: 600;
}

.ask-lite-cta--ghost:hover {
  color: #334155;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

.ask-lite-subhead {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ask-lite-proposal {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.06);
}

.ask-lite-proposal__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6366f1;
}

.ask-lite-proposal-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
}

.ask-lite-proposal__pref {
  margin: 8px 0 10px;
  font-size: 12px;
  color: #475569;
}

.ask-lite-proposal__pref label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.ask-lite-proposal__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ask-lite-proposal__amend {
  margin: 0 0 10px;
}

.ask-lite-proposal__amend-hint {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.ask-lite-proposal__work-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}

.ask-lite-chip--amend {
  font-size: 11px;
}

.ask-lite-proposal__progress {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.ask-lite-proposal__progress-count {
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
}

.ask-lite-proposal__progress-count strong {
  color: #4338ca;
  font-weight: 700;
}

.ask-lite-batch-progress {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.ask-lite-batch-progress__lead {
  margin: 0 0 8px;
  font-size: 12px;
  color: #475569;
}

.ask-lite-batch-progress__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.ask-lite-batch-progress__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.2s ease;
}

.ask-lite-batch-item {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.ask-lite-batch-item__hint {
  font-weight: 500;
  color: #64748b;
}

.ask-lite-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ask-lite-filter-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.ask-lite-card--chat .ask-lite-card__headline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.ask-lite-chat-prose p {
  margin: 0 0 10px;
  line-height: 1.55;
  font-size: 14px;
}

.ask-lite-chat-highlights {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary, #475569);
}

.ask-lite-deal-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ask-lite-deal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.ask-lite-deal-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.ask-lite-deal-card:active {
  transform: scale(0.98);
}

.ask-lite-deal-card__name {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary, #0f172a);
}

.ask-lite-deal-card__meta {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.ask-lite-deal-card__reason {
  font-size: 11px;
  color: #b45309;
}

.ask-lite-soft-links {
  margin-top: 10px;
}

/* ── v2 chat mode (Attio-style conversational) ─────────────────────── */
.ask-lite-bubble--assistant {
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, #334155);
}

.ask-lite-bubble--chat {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbff 0%, #fff 52%);
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

.ask-lite-chat-body {
  padding: 12px 14px 10px;
}

.ask-lite-bubble--pending {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.ask-lite-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ask-lite-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: ask-lite-typing-bounce 1.2s infinite ease-in-out;
}

.ask-lite-typing span:nth-child(2) { animation-delay: 0.15s; }
.ask-lite-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ask-lite-typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ask-lite-typing-label {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.ask-lite-stats-ribbon {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(79, 70, 229, 0.03) 100%);
}

.ask-lite-health {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ask-lite-health__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ask-lite-health--good .ask-lite-health__dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.ask-lite-health--watch .ask-lite-health__dot { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.ask-lite-health--risk .ask-lite-health__dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

.ask-lite-health__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.ask-lite-health__score {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.ask-lite-stats-ribbon__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ask-lite-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.ask-lite-stat__value {
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary, #0f172a);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ask-lite-stat__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.ask-lite-chat-prose strong {
  color: var(--text-primary, #0f172a);
  font-weight: 700;
}

.ask-lite-chat-takeaways {
  margin: 10px 0 0;
  padding: 10px 12px 10px 28px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  font-size: 13px;
  color: var(--text-secondary, #475569);
}

.ask-lite-deal-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.ask-lite-deal-card__row-end {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ask-lite-deal-card__chev {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
  transition: color 0.15s ease, transform 0.12s ease;
}

.ask-lite-deal-card:hover .ask-lite-deal-card__chev {
  color: #6366f1;
  transform: translateX(2px);
}

.ask-lite-deal-card__prob {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  flex-shrink: 0;
}

.ask-lite-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 14px 12px;
  border-top: 1px dashed rgba(99, 102, 241, 0.14);
  background: rgba(248, 250, 252, 0.6);
}

.ask-lite-chip--follow {
  border-style: dashed;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.9);
}

.ask-lite-sources--chat {
  padding: 0 14px 10px;
  margin: 0;
}

.ask-lite-empty__lead {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
  margin-bottom: 6px !important;
}

.ask-lite-empty__hint {
  margin: 0 0 12px;
  color: var(--td-text-muted, #64748b);
  font-size: 13px;
  line-height: 1.45;
  max-width: 260px;
}

.ask-lite-empty__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 14px;
  padding: 0;
}

.ask-lite-empty__chips .ask-lite-chip {
  font-size: 12px;
}

.ask-lite-display-hint {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin: 0 0 8px;
}

.ask-lite-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
}

.ask-lite-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.ask-lite-status__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ask-lite-status__title {
  margin: 0 0 2px;
  font-weight: 700;
}

.ask-lite-status__message {
  margin: 0;
  opacity: 0.92;
}

.ask-lite-status--info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #1e3a8a;
}

.ask-lite-status--info .ask-lite-status__icon {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.ask-lite-status--success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #14532d;
}

.ask-lite-status--success .ask-lite-status__icon {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.ask-lite-status--warning {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #78350f;
}

.ask-lite-status--warning .ask-lite-status__icon {
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
}

.ask-lite-status--error {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #7f1d1d;
}

.ask-lite-status--error .ask-lite-status__icon {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.ask-lite-saved-segments {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.04);
}

.ask-lite-saved-segments__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.ask-lite-saved-segments__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ask-lite-saved-segment {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ask-lite-saved-segment__open {
  flex: 1;
  text-align: left;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #312e81;
  cursor: pointer;
}

.ask-lite-saved-segment__open:hover {
  background: rgba(99, 102, 241, 0.08);
}

.ask-lite-saved-segment__delete {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.ask-lite-saved-segment__delete:hover {
  color: #b91c1c;
}

.ask-lite-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.ask-lite-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.ask-lite-filter-chip--editable {
  padding: 2px 4px 2px 8px;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.ask-lite-filter-chip__prefix {
  font-size: 11px;
  font-weight: 650;
  color: #4338ca;
  white-space: nowrap;
}

.ask-lite-filter-chip__input {
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: #1d4ed8;
  min-width: 4.5em;
  max-width: 12em;
  padding: 2px 0;
}

.ask-lite-filter-chip__input:focus {
  box-shadow: inset 0 -1px 0 rgba(99, 102, 241, 0.45);
}

.ask-lite-filter-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.65;
}

.ask-lite-filter-chip__remove:hover {
  opacity: 1;
  background: rgba(99, 102, 241, 0.12);
}

.ask-lite-filter-add {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ask-lite-filter-add__toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  border: 1px dashed rgba(99, 102, 241, 0.45);
  background: transparent;
  color: #4338ca;
  cursor: pointer;
}

.ask-lite-filter-add__toggle:hover {
  background: rgba(99, 102, 241, 0.08);
}

.ask-lite-filter-add__form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 180px;
}

.ask-lite-filter-add__form[hidden] {
  display: none !important;
}

.ask-lite-filter-add__input {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 12px;
}

.ask-lite-filter-add__submit {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.ask-lite-filter-add__submit:hover {
  background: rgba(99, 102, 241, 0.18);
}

.ask-lite-shelf__clear {
  margin-left: auto;
  margin-right: 8px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  cursor: pointer;
}

.ask-lite-shelf__clear:hover {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.ask-lite-error {
  color: #b91c1c;
}

.ask-lite-snippet {
  font-style: italic;
}

.ask-lite-summary-list {
  margin: 8px 0 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary, #1e293b);
}

.ask-lite-summary-list li + li {
  margin-top: 4px;
}

.ask-workspace-artifact {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.ask-workspace-artifact__title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-primary, #0f172a);
  line-height: 1.35;
}

.ask-workspace-artifact__meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.ask-workspace-artifact__preview {
  margin-top: 10px;
}

.ask-workspace-artifact__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ask-context-bundle {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
}

.ask-context-bundle--compact {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.14);
}

.ask-context-bundle__title {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary, #0f172a);
}

.ask-context-bundle__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.ask-context-bundle__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ask-context-bundle__stat {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
}

.ask-context-bundle__section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.ask-context-bundle__heading {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.ask-context-bundle__empty {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  font-style: italic;
}

.ask-context-bundle__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.1);
}

.ask-close-gap-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.ask-close-gap {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
}

.ask-close-gap--high {
  border-color: rgba(185, 28, 28, 0.25);
  background: rgba(254, 242, 242, 0.65);
}

.ask-close-gap__title {
  font-size: 13px;
  font-weight: 650;
}

.ask-close-gap__detail {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-primary, #334155);
}

.ask-close-gap__citation {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted, #64748b);
  font-style: italic;
}

.ask-close-gap__actions {
  margin-top: 8px;
}

.contact-virtual-link-action--outreach {
  color: #0a66c2;
}

.contact-virtual-link-action--outreach:hover {
  background: rgba(10, 102, 194, 0.12);
}

.ask-lite-chips--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ask-lite-chips--recovery {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(99, 102, 241, 0.2);
}

.ask-lite-recovery-lead {
  flex: 1 0 100%;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
}

.ask-lite-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ask-create-deal,
.ask-create-contact,
.ask-create-invoice,
.ask-create-task {
  margin-top: 4px;
}

.ask-create-deal__lede,
.ask-create-contact__lede,
.ask-create-invoice__lede,
.ask-create-task__lede {
  margin: 0 0 10px;
}

.ask-create-deal__modes,
.ask-create-contact__modes,
.ask-create-invoice__modes,
.ask-create-task__modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ask-create-deal__mode,
.ask-create-contact__mode,
.ask-create-invoice__mode,
.ask-create-task__mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: var(--surface, #fff);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ask-create-deal__mode:hover,
.ask-create-contact__mode:hover,
.ask-create-invoice__mode:hover,
.ask-create-task__mode:hover {
  border-color: var(--primary, #2563eb);
  background: var(--primary-50, #eff6ff);
}

.ask-create-deal__mode strong,
.ask-create-contact__mode strong,
.ask-create-invoice__mode strong,
.ask-create-task__mode strong {
  font-size: 14px;
}

.ask-create-deal__mode span,
.ask-create-contact__mode span,
.ask-create-invoice__mode span,
.ask-create-task__mode span {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.ask-create-deal__form,
.ask-create-contact__form,
.ask-create-invoice__form,
.ask-create-task__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ask-create-deal__field,
.ask-create-contact__field,
.ask-create-invoice__field,
.ask-create-task__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.ask-create-deal__input,
.ask-create-contact__input,
.ask-create-invoice__input,
.ask-create-task__input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font: inherit;
  color: inherit;
  background: var(--surface, #fff);
}

.ask-create-deal__preview-wrap,
.ask-create-contact__preview-wrap,
.ask-create-invoice__preview-wrap,
.ask-create-task__preview-wrap {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted, #f8fafc);
  border: 1px dashed var(--border, #cbd5e1);
}

.ask-create-deal__preview-label,
.ask-create-contact__preview-label,
.ask-create-invoice__preview-label,
.ask-create-task__preview-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #64748b);
  margin-bottom: 6px;
}

.ask-create-deal__preview,
.ask-create-contact__preview,
.ask-create-invoice__preview,
.ask-create-task__preview {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, #334155);
}

.ask-create-deal__actions,
.ask-create-contact__actions,
.ask-create-invoice__actions,
.ask-create-task__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.ask-create-deal__example em,
.ask-create-contact__example em,
.ask-create-invoice__example em,
.ask-create-task__example em {
  font-style: normal;
  color: var(--text-secondary, #475569);
}

/* Weather card (Ask fun feature) */
.ask-weather {
  margin-top: 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
}

.ask-weather__hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  color: #0f172a;
}

.ask-weather__hero--clear {
  background: linear-gradient(135deg, #fef9c3 0%, #bae6fd 55%, #7dd3fc 100%);
}

.ask-weather__hero--partly {
  background: linear-gradient(135deg, #e0f2fe 0%, #cbd5e1 100%);
}

.ask-weather__hero--cloudy,
.ask-weather__hero--fog {
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  color: #1e293b;
}

.ask-weather__hero--rain {
  background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
  color: #f8fafc;
}

.ask-weather__hero--snow {
  background: linear-gradient(135deg, #f8fafc 0%, #bfdbfe 100%);
}

.ask-weather__hero--storm {
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  color: #f8fafc;
}

.ask-weather__icon-wrap {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.12));
}

.ask-weather__svg {
  display: block;
}

.ask-weather__temp {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ask-weather__condition {
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.ask-weather__feels {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

.ask-weather__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-muted, #f8fafc);
}

.ask-weather__pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text-secondary, #475569);
}

.ask-weather__forecast {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 8px 12px;
  border-top: 1px solid var(--border, #e2e8f0);
}

.ask-weather__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
}

.ask-weather__day-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ask-weather__day-icon .ask-weather__svg {
  width: 36px;
  height: 36px;
}

.ask-weather__day-temps {
  display: flex;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ask-weather__day-low {
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

@media (max-width: 420px) {
  .ask-weather__forecast {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ask-weather__day:nth-child(n + 4) {
    display: none;
  }
}


.ask-lite-deal-doctor + .ask-lite-deal-doctor-email {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ask-lite-shelf__composer {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  transition: box-shadow 0.2s ease;
}

.ask-lite-shelf__composer:focus-within {
  box-shadow: inset 0 1px 0 rgba(99, 102, 241, 0.12);
}

.ask-lite-shelf__composer-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ask-lite-shelf__input-wrap {
  position: relative;
}

.ask-lite-shelf__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 10px 40px 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ask-lite-shelf__voice {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.ask-lite-shelf__voice svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ask-lite-shelf__voice:hover {
  background: #f1f5f9;
  color: #334155;
}

.ask-lite-shelf__voice.is-recording {
  background: #fef2f2;
  color: #dc2626;
}

.ask-lite-shelf__voice:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

.speech-input-banner {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 50%, #ffe4e6 100%);
  border: 2px solid #fca5a5;
}

.speech-input-banner__bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(90deg, transparent, transparent 8px, #ef4444 8px, #ef4444 9px);
  animation: voiceSlide 2s linear infinite;
}

.speech-input-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.speech-input-banner__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: voicePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.speech-input-banner__meta {
  flex: 1;
  min-width: 0;
}

.speech-input-banner__title {
  font-weight: 700;
  font-size: 13px;
  color: #991b1b;
  margin-bottom: 2px;
}

.speech-input-banner__status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.speech-input-banner__timer {
  font-size: 12px;
  color: #b91c1c;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.speech-input-banner__wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.speech-input-banner__wave span:nth-child(1) { width: 3px; height: 6px; background: #ef4444; border-radius: 2px; animation: voiceBar1 0.8s ease-in-out infinite; }
.speech-input-banner__wave span:nth-child(2) { width: 3px; height: 12px; background: #ef4444; border-radius: 2px; animation: voiceBar2 0.8s ease-in-out infinite 0.1s; }
.speech-input-banner__wave span:nth-child(3) { width: 3px; height: 8px; background: #ef4444; border-radius: 2px; animation: voiceBar3 0.8s ease-in-out infinite 0.2s; }
.speech-input-banner__wave span:nth-child(4) { width: 3px; height: 14px; background: #ef4444; border-radius: 2px; animation: voiceBar2 0.8s ease-in-out infinite 0.3s; }
.speech-input-banner__wave span:nth-child(5) { width: 3px; height: 6px; background: #ef4444; border-radius: 2px; animation: voiceBar1 0.8s ease-in-out infinite 0.4s; }
.speech-input-banner__wave span:nth-child(6) { width: 3px; height: 10px; background: #ef4444; border-radius: 2px; animation: voiceBar3 0.8s ease-in-out infinite 0.15s; }
.speech-input-banner__wave span:nth-child(7) { width: 3px; height: 4px; background: #ef4444; border-radius: 2px; animation: voiceBar1 0.8s ease-in-out infinite 0.35s; }

.speech-input-banner__status {
  font-size: 11px;
  color: #dc2626;
}

.speech-input-banner__stop {
  padding: 8px 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.speech-input-banner__stop:hover {
  background: #dc2626;
}

@keyframes voicePulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes voiceSlide {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(20px); }
}

@keyframes voiceBar1 {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

@keyframes voiceBar2 {
  0%, 100% { height: 8px; }
  50% { height: 16px; }
}

@keyframes voiceBar3 {
  0%, 100% { height: 6px; }
  50% { height: 12px; }
}

.ask-lite-shelf__input::placeholder {
  color: #94a3b8;
}

.ask-lite-shelf__input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.ask-lite-shelf__send {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.ask-lite-shelf__send svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ask-lite-shelf__send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.42);
}

.ask-lite-shelf__send:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.ask-lite-shelf__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.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) {
  .ask-lite-turn,
  .ask-lite-typing span {
    animation: none !important;
  }

  .ask-lite-shelf__thread {
    scroll-behavior: auto;
  }

  .ask-lite-chip,
  .ask-lite-deal-card,
  .ask-lite-shelf__send {
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .ask-lite-shelf {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    height: auto;
  }

  .ask-lite-edge-tab-wrap {
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    transform: none;
  }

  .ask-lite-edge-tab-wrap--open {
    bottom: calc(85vh + 12px);
  }

  .ask-lite-edge-tab__drag {
    display: none !important;
  }

  .ask-lite-edge-tab {
    border-radius: 16px;
    width: 52px;
    min-height: 52px;
    padding: 10px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.35);
  }

  .ask-lite-edge-tab__label {
    display: none;
  }

  .ask-lite-shelf__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100% !important;
    flex: none !important;
    max-width: 100%;
    max-height: 85vh;
    border-left: none;
    border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: 16px 16px 0 0;
  }

  .ask-lite-shelf__track {
    flex-direction: column-reverse;
    justify-content: flex-end;
    height: auto;
    bottom: 0;
    top: auto;
    position: fixed;
    left: 0;
    right: 0;
  }

  .ask-lite-shelf:not(.ask-lite-shelf--collapsed) .ask-lite-shelf__track {
    height: 85vh;
  }

  .ask-lite-shelf__chips {
    padding-bottom: 10px;
  }

  .ask-lite-chip {
    font-size: 11px;
    padding: 5px 10px;
  }

  .ask-lite-empty {
    padding-top: 12px;
  }

  .ask-lite-shelf__voice {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }

  .ask-lite-shelf .speech-input-banner {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 3;
    margin-bottom: 6px;
  }

  .ask-lite-shelf .speech-input-banner__stop {
    min-height: 40px;
    padding: 0 14px;
  }

  .ask-lite-shelf__thread {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .ask-lite-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .ask-lite-table {
    min-width: 240px;
  }

  .ask-lite-shelf__panel {
    overflow: hidden;
  }
}

.ask-lite-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.ask-lite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 8px 0;
}
.ask-lite-table th,
.ask-lite-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
}
.ask-lite-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.ask-lite-table--linked .ask-lite-table__actions {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}

.ask-lite-table__na {
  color: #94a3b8;
}

.ask-lite-open-btn {
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: #fff;
  color: #4338ca;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.ask-lite-open-btn--compact {
  padding: 2px 8px;
  font-size: 10px;
}

.ask-lite-open-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.45);
}

.ask-lite-open-btn:active {
  transform: scale(0.97);
}

.ask-lite-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.ask-lite-record-link {
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: #fff;
  color: #4338ca;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.ask-lite-record-link:hover {
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.38);
}

.ask-lite-record-link:active {
  transform: scale(0.97);
}
