/* AthleteOS visual refinement pass: preserves structure, tightens theme polish. */

body[data-theme='light'] {
  --bg: #eaf1fb;
  --bg-elevated: #ffffff;
  --surface: #f7faff;
  --surface-2: #eef4ff;
  --surface-3: #e3ecfb;
  --text: #0b1220;
  --text-muted: #54637d;
  --muted: var(--text-muted);
  --border: #cbd8eb;
  --border-strong: #aebed7;
  --accent: #0b6df6;
  --accent-2: #00a9df;
  --accent-soft: rgba(11, 109, 246, 0.11);
  --warning: #b18a00;
  --warning-soft: rgba(247, 214, 74, 0.18);
  --shadow-sm: 0 12px 28px rgba(16, 32, 61, 0.1);
  --shadow-md: 0 22px 54px rgba(16, 32, 61, 0.16);
  background:
    radial-gradient(circle at 17% 5%, rgba(0, 169, 223, 0.16), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(11, 109, 246, 0.16), transparent 31%),
    linear-gradient(180deg, #f7fbff 0%, #edf4ff 46%, #e7effa 100%);
}

body[data-theme='light']::before {
  opacity: 0.54;
  background-image:
    linear-gradient(rgba(52, 74, 109, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 74, 109, 0.06) 1px, transparent 1px);
}

body[data-theme='light'] .top-nav,
body[data-theme='light'] .mobile-nav,
body[data-theme='light'] .app-footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
  border-color: rgba(174, 190, 215, 0.78);
  box-shadow: 0 16px 38px rgba(16, 32, 61, 0.1);
}

body[data-theme='light'] .brand-mark {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  box-shadow: 0 10px 24px rgba(16, 32, 61, 0.14);
}

body[data-theme='light'] .brand-logo-image {
  content: url('../brand/athleteos-app-icon-dark.png');
}

body[data-theme='light'] .brand-wordmark {
  content: url('../brand/athleteos-wordmark-light-transparent.png');
  filter: none;
}

body[data-theme='light'] .desktop-nav,
body[data-theme='light'] .mobile-nav-inner {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(174, 190, 215, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(16, 32, 61, 0.09);
}

body[data-theme='light'] .nav-tab,
body[data-theme='light'] .mobile-tab {
  color: #40516c;
}

body[data-theme='light'] .nav-tab.active,
body[data-theme='light'] .mobile-tab.active {
  background:
    linear-gradient(135deg, rgba(11, 109, 246, 0.16), rgba(0, 169, 223, 0.08)),
    #ffffff;
  color: #0b2448;
  box-shadow:
    inset 0 0 0 1px rgba(11, 109, 246, 0.16),
    0 10px 24px rgba(11, 109, 246, 0.11);
}

body[data-theme='light'] .dashboard-performance-console {
  background:
    radial-gradient(780px 360px at 90% 2%, rgba(0, 169, 223, 0.16), transparent 58%),
    radial-gradient(620px 320px at 8% 0%, rgba(11, 109, 246, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.98));
  border-color: rgba(148, 166, 196, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 30px 80px rgba(16, 32, 61, 0.17);
}

body[data-theme='light'] .dashboard-performance-console::before {
  opacity: 0.2;
  background-size: 88px 88px;
}

body[data-theme='light'] .dashboard-console-title .eyebrow,
body[data-theme='light'] .eyebrow {
  color: #0b6df6;
}

body[data-theme='light'] .dashboard-console-title h1,
body[data-theme='light'] .page-header h1 {
  color: #08111f;
}

body[data-theme='light'] .dashboard-console-title p,
body[data-theme='light'] .page-header p {
  color: #53647f;
}

body[data-theme='light'] .card,
body[data-theme='light'] .card.soft,
body[data-theme='light'] .today-plan-card,
body[data-theme='light'] .dashboard-console-lower .card,
body[data-theme='light'] .dashboard-console-load-card > .card,
body[data-theme='light'] .dashboard-console-detail-grid .card,
body[data-theme='light'] .desktop-dashboard-support-main > .card,
body[data-theme='light'] .desktop-dashboard-primary-stage > .card,
body[data-theme='light'] .desktop-dashboard-primary-columns > .card,
body[data-theme='light'] .desktop-dashboard-support-stack > .card,
body[data-theme='light'] .desktop-dashboard-support-compact-grid > .card,
body[data-theme='light'] .desktop-dashboard-rail > .card {
  background:
    radial-gradient(circle at 100% 0%, rgba(11, 109, 246, 0.065), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.97));
  border-color: rgba(174, 190, 215, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 38px rgba(16, 32, 61, 0.1);
}

body[data-theme='light'] .card:hover {
  border-color: rgba(11, 109, 246, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 52px rgba(16, 32, 61, 0.15);
}

body[data-theme='light'] .dashboard-ring-card.ring-card,
body[data-theme='light'] .dashboard-performance-console .dashboard-ring-card.ring-card {
  background:
    radial-gradient(circle at 50% 25%, rgba(11, 109, 246, 0.075), transparent 54%),
    linear-gradient(180deg, #ffffff, #f2f7ff);
  border-color: rgba(161, 178, 208, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 42px rgba(16, 32, 61, 0.11);
}

body[data-theme='light'] .dashboard-ring-card .ring-card-label {
  color: #65748e;
}

body[data-theme='light'] .dashboard-ring-card .ring-card-footer span {
  color: #465873;
}

.dashboard-real-orb.warning {
  --orb-color: #f7d64a;
  --orb-glow: rgba(247, 214, 74, 0.28);
  --orb-core-glow: rgba(247, 214, 74, 0.16);
}

body[data-theme='light'] .dashboard-real-orb.warning {
  --orb-color: #f7d64a;
  --orb-glow: rgba(247, 214, 74, 0.34);
  --orb-core-glow: rgba(247, 214, 74, 0.18);
}

body[data-theme='light'] .dashboard-real-orb .orb-ring-base {
  background: conic-gradient(from 220deg, #d6e0ef, #edf3fb);
}

body[data-theme='light'] .dashboard-real-orb .orb-core {
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.88) 34%, rgba(222, 232, 247, 0.94) 72%),
    linear-gradient(180deg, #fbfdff, #e7effa);
  border-color: rgba(137, 154, 184, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 20px rgba(89, 108, 139, 0.09),
    0 12px 24px rgba(16, 32, 61, 0.08);
}

body[data-theme='light'] .dashboard-real-orb .orb-core strong {
  color: #0b1220;
}

body[data-theme='light'] .dashboard-performance-console .daily-outlook-row,
body[data-theme='light'] .desktop-dashboard-shell .daily-outlook-row,
body[data-theme='light'] .mobile-dashboard-shell .daily-outlook-row,
body[data-theme='light'] .daily-outlook-row {
  background:
    radial-gradient(circle at 97% 12%, rgba(0, 169, 223, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff, #f3f8ff);
  border-color: rgba(11, 109, 246, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 30px rgba(11, 109, 246, 0.08);
}

body[data-theme='light'] .daily-outlook-copy strong {
  color: #08111f;
}

body[data-theme='light'] .daily-outlook-copy small {
  color: #53647f;
}

body[data-theme='light'] .daily-outlook-icon,
body[data-theme='light'] .settings-hub-icon,
body[data-theme='light'] .settings-fusion-icon,
body[data-theme='light'] .assistant-avatar,
body[data-theme='light'] .assistant-fab-icon,
body[data-theme='light'] .assistant-modal-mark,
body[data-theme='light'] .assistant-composer-mark {
  background:
    radial-gradient(circle at 42% 28%, rgba(0, 169, 223, 0.2), transparent 58%),
    linear-gradient(180deg, #ffffff, #edf5ff);
  border-color: rgba(174, 190, 215, 0.84);
  box-shadow: 0 10px 24px rgba(16, 32, 61, 0.1);
}

body[data-theme='light'] .btn {
  min-height: 2.55rem;
  border-radius: 14px;
}

body[data-theme='light'] .btn.primary {
  background: linear-gradient(135deg, #14b8f8 0%, #2563eb 100%);
  border: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

body[data-theme='light'] .btn.secondary,
body[data-theme='light'] .btn.ghost,
body[data-theme='light'] .pill-btn,
body[data-theme='light'] .status-chip,
body[data-theme='light'] .tag,
body[data-theme='light'] .mini-chip {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(174, 190, 215, 0.86);
  color: #31425d;
  box-shadow: 0 8px 20px rgba(16, 32, 61, 0.06);
}

body[data-theme='light'] .global-sync-status.success,
body[data-theme='light'] .status-chip.success {
  background: rgba(24, 151, 101, 0.1);
  border-color: rgba(24, 151, 101, 0.26);
  color: #047857;
}

body[data-theme='light'] .status-chip.warning,
body[data-theme='light'] .global-sync-status.warning {
  background: rgba(247, 214, 74, 0.18);
  border-color: rgba(247, 214, 74, 0.42);
  color: #836700;
}

body[data-theme='light'] .bar,
body[data-theme='light'] .weekly-bars .bar,
body[data-theme='light'] .analytics-readiness-bar {
  background: linear-gradient(180deg, #4bd0ff 0%, #2563eb 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.17);
}

body[data-theme='light'] .bar-label,
body[data-theme='light'] .bar-value,
body[data-theme='light'] .weekly-bars .bar-label,
body[data-theme='light'] .weekly-bars .bar-value {
  color: #52637d;
}

body[data-theme='light'] .detail-item,
body[data-theme='light'] .stat-card,
body[data-theme='light'] .calendar-cell,
body[data-theme='light'] .dashboard-compact-empty {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.86));
  border-color: rgba(174, 190, 215, 0.72);
}

.card,
.today-plan-card,
.dashboard-ring-card.ring-card,
.daily-outlook-row,
.btn,
.status-chip,
.pill-btn {
  transition:
    transform 160ms ease,
    box-shadow 190ms ease,
    border-color 170ms ease,
    background 170ms ease,
    color 170ms ease;
}

body[data-theme='dark'] .card,
body[data-theme='dark'] .today-plan-card,
body[data-theme='dark'] .dashboard-console-lower .card,
body[data-theme='dark'] .dashboard-console-load-card > .card,
body[data-theme='dark'] .dashboard-console-detail-grid .card {
  border-color: rgba(87, 110, 150, 0.34);
}

body[data-theme='dark'] .btn.primary {
  background: linear-gradient(135deg, #12b8f7 0%, #2563eb 100%);
  border: 1px solid rgba(75, 233, 255, 0.34);
  box-shadow: 0 16px 34px rgba(0, 137, 207, 0.28);
}

body[data-theme='dark'] .btn.secondary,
body[data-theme='dark'] .btn.ghost,
body[data-theme='dark'] .pill-btn {
  border-color: rgba(116, 139, 180, 0.28);
}

@media (max-width: 820px) {
  body[data-theme='light'] .dashboard-performance-console {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body[data-theme='light'] .dashboard-console-title h1,
  body[data-theme='light'] .page-header h1 {
    letter-spacing: -0.045em;
  }

  .dashboard-start-panel {
    padding: 1.15rem;
    border-radius: 24px;
  }

  .dashboard-start-copy {
    max-width: none;
  }

  .dashboard-start-copy h2 {
    max-width: 13ch;
    font-size: clamp(2rem, 10.2vw, 2.45rem);
    line-height: 1.01;
    letter-spacing: -0.055em;
  }

  .dashboard-start-copy p {
    font-size: 0.94rem;
    line-height: 1.5;
  }
}

/* Focused bug-fix pass: logo variants, analytics contrast, chips, and assistant theming. */
.brand-mark,
.assistant-fab-icon,
.assistant-modal-mark,
.assistant-composer-mark,
.assistant-thread-avatar {
  overflow: hidden;
}

.brand-logo-image,
.assistant-brand-mark {
  display: block;
  object-fit: contain;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
}

body[data-theme='light'] .assistant-brand-mark {
  content: url('../brand/athleteos-app-icon-dark.png');
  width: 1.58rem;
  height: 1.58rem;
  border-radius: 0.48rem;
}

body[data-theme='light'] .assistant-thread-avatar .assistant-brand-mark,
body[data-theme='light'] .assistant-composer-mark .assistant-brand-mark,
body[data-theme='light'] .assistant-modal-mark .assistant-brand-mark {
  width: 1.5rem;
  height: 1.5rem;
}

body[data-theme='light'] .assistant-fab-icon .assistant-brand-mark {
  width: 1.65rem;
  height: 1.65rem;
}

body[data-theme='dark'] .brand-logo-image {
  content: url('../brand/athleteos-app-icon-dark.png');
}

body[data-theme='light'] .analytics-shell .analytics-trend-chart,
body[data-theme='light'] .analytics-shell .cardio-trend-chart,
body[data-theme='light'] .analytics-command-shell .analytics-load-trend-panel .analytics-trend-chart,
body[data-theme='light'] .analytics-command-shell .analytics-recovery-trend-panel .analytics-trend-chart,
body[data-theme='light'] .analytics-command-shell .analytics-running-trend-panel .analytics-trend-chart {
  background:
    radial-gradient(circle at 76% 10%, rgba(30, 128, 255, 0.075), transparent 34%),
    linear-gradient(180deg, #ffffff, #eef5ff);
  border-color: rgba(135, 162, 207, 0.34);
}

body[data-theme='light'] .analytics-shell .cardio-chart-svg {
  filter: none;
}

body[data-theme='light'] .analytics-shell .cardio-grid-line,
body[data-theme='light'] .analytics-shell .recovery-chart-svg .cardio-grid-line,
body[data-theme='light'] .analytics-shell .sleep-chart-svg .cardio-grid-line {
  stroke: rgba(61, 77, 106, 0.22);
  stroke-width: 1.35;
}

body[data-theme='light'] .analytics-shell .cardio-line-path,
body[data-theme='light'] .analytics-shell .cardio-line-path.muted,
body[data-theme='light'] .analytics-shell .sleep-line-path,
body[data-theme='light'] .analytics-shell .sleep-muted-path,
body[data-theme='light'] .analytics-shell .recovery-muted-path {
  stroke: rgba(38, 112, 231, 0.42);
  stroke-width: 3.2;
  opacity: 1;
}

body[data-theme='light'] .analytics-shell .sleep-muted-path {
  stroke: rgba(71, 132, 235, 0.34);
}

body[data-theme='light'] .analytics-shell .cardio-line-area,
body[data-theme='light'] .analytics-shell .cardio-line-area.muted,
body[data-theme='light'] .analytics-shell .sleep-line-area {
  fill: rgba(37, 99, 235, 0.105);
  opacity: 1;
}

body[data-theme='light'] .analytics-shell .cardio-grid-label,
body[data-theme='light'] .analytics-shell .cardio-axis-label,
body[data-theme='light'] .analytics-shell .cardio-month-axis,
body[data-theme='light'] .analytics-shell .cardio-week-day,
body[data-theme='light'] .analytics-shell .cardio-week-date,
body[data-theme='light'] .analytics-shell .cardio-week-value,
body[data-theme='light'] .analytics-shell .cardio-month-value,
body[data-theme='light'] .analytics-shell .cardio-month-change,
body[data-theme='light'] .analytics-shell .sleep-grid-label,
body[data-theme='light'] .analytics-shell .sleep-axis-day,
body[data-theme='light'] .analytics-shell .sleep-axis-date,
body[data-theme='light'] .analytics-shell .sleep-six-value,
body[data-theme='light'] .analytics-shell .sleep-six-change,
body[data-theme='light'] .analytics-shell .sleep-week-value,
body[data-theme='light'] .analytics-shell .sleep-last-value {
  fill: #52627c;
  opacity: 1;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.74);
  stroke-width: 3px;
}

body[data-theme='light'] .analytics-shell .cardio-month-segment,
body[data-theme='light'] .analytics-shell .sleep-six-segment {
  stroke: rgba(38, 112, 231, 0.24);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 1;
}

body[data-theme='light'] .analytics-shell .cardio-month-segment.success {
  stroke: rgba(28, 166, 116, 0.28);
}

body[data-theme='light'] .analytics-shell .cardio-month-segment.warning {
  stroke: rgba(205, 146, 20, 0.3);
}

body[data-theme='light'] .analytics-shell .cardio-month-segment.danger {
  stroke: rgba(225, 77, 100, 0.28);
}

body[data-theme='light'] .analytics-shell .cardio-week-point-ring,
body[data-theme='light'] .analytics-shell .cardio-line-point-outline,
body[data-theme='light'] .analytics-shell .sleep-point-ring {
  fill: #ffffff;
  stroke: #2670e7;
  stroke-width: 2.6;
}

body[data-theme='light'] .analytics-shell .cardio-week-point-core,
body[data-theme='light'] .analytics-shell .sleep-point-core {
  fill: #1ea8ff;
}

body[data-theme='light'] .analytics-shell .analytics-readiness-card {
  max-width: 100%;
}

body[data-theme='light'] .analytics-shell .analytics-readiness-grid {
  gap: 0.5rem;
  margin-top: 0.85rem;
}

body[data-theme='light'] .analytics-shell .analytics-readiness-day {
  min-height: 134px;
  padding: 0.68rem 0.6rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 245, 255, 0.92));
  border-color: rgba(135, 162, 207, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-theme='light'] .analytics-shell .analytics-readiness-bar {
  background: linear-gradient(180deg, #47d2ff 0%, #2563eb 100%);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

body[data-theme='light'] .analytics-shell .analytics-readiness-value {
  color: #14213a;
}

body[data-theme='light'] .analytics-shell .analytics-readiness-day-label,
body[data-theme='light'] .analytics-shell .analytics-readiness-date-label {
  color: #65748e;
}

.cardio-trend-chip,
.status-chip,
.trend-chip,
.mini-chip,
.tag {
  min-height: 1.75rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.36rem 0.64rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.05;
}

.analytics-shell .cardio-trend-chip,
.analytics-shell .status-chip,
.analytics-shell .trend-chip {
  min-height: 1.58rem;
  padding: 0.3rem 0.58rem;
  font-size: 0.74rem;
}

body[data-theme='light'] .cardio-trend-chip.warning,
body[data-theme='light'] .trend-chip.warning,
body[data-theme='light'] .status-chip.warning {
  background: rgba(247, 214, 74, 0.17);
  border-color: rgba(212, 160, 24, 0.32);
  color: #806600;
}

body[data-theme='light'] .analytics-sleep-entry-card .mini-chip,
body[data-theme='light'] .analytics-sleep-entry-card .stage-chip,
body[data-theme='light'] .analytics-sleep-entry-card [class*='stage'] .mini-chip {
  background: rgba(68, 86, 117, 0.1);
  border-color: rgba(82, 101, 134, 0.18);
  color: #4a5b75;
}

.btn,
.pill-btn,
.assistant-send-btn,
.assistant-followup-btn,
.assistant-action-btn,
.assistant-header-btn,
.nav-tab,
.mobile-tab {
  background-clip: padding-box;
}

.btn,
.pill-btn,
.assistant-send-btn,
.assistant-action-btn {
  overflow: hidden;
}

.btn::before,
.pill-btn::before,
.assistant-send-btn::before,
.assistant-followup-btn::before,
.assistant-action-btn::before,
.assistant-header-btn::before {
  pointer-events: none;
}

body[data-theme='light'] .modal.assistant-modal {
  background:
    radial-gradient(circle at 12% 0%, rgba(32, 170, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 247, 255, 0.985));
  border-color: rgba(170, 190, 221, 0.8);
  box-shadow: 0 30px 90px rgba(24, 42, 78, 0.18);
}

body[data-theme='light'] .modal.assistant-modal:has(.assistant-empty-shell) {
  height: auto;
  min-height: 0;
  max-height: min(94vh, 860px);
}

body[data-theme='light'] .assistant-modal-shell.assistant-empty-shell {
  min-height: 0;
  align-content: start;
}

body[data-theme='light'] .assistant-modal-title h3 {
  color: #0b1220;
}

body[data-theme='light'] .assistant-modal-title p {
  color: #54637d;
}

body[data-theme='light'] .assistant-open-stage {
  width: 100%;
  max-width: 100%;
  padding: 1.55rem 1.05rem 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 180, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #0a1422, #060b13);
  border-color: rgba(83, 122, 174, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(24, 42, 78, 0.18);
}

body[data-theme='light'] .assistant-starter-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(180deg, #111c2d, #0a111d);
  border-color: rgba(103, 130, 172, 0.34);
}

body[data-theme='light'] .assistant-starter-copy small,
body[data-theme='light'] .assistant-open-hero p {
  color: rgba(219, 228, 243, 0.74);
}

body[data-theme='light'] .assistant-thread-wrap {
  background: transparent;
  box-shadow: none;
}

body[data-theme='light'] .assistant-message.assistant .assistant-bubble {
  background: #ffffff;
  border-color: rgba(170, 190, 221, 0.72);
  box-shadow: 0 10px 24px rgba(24, 42, 78, 0.07);
}

body[data-theme='light'] .assistant-message.user .assistant-bubble {
  background: linear-gradient(145deg, #eef6ff, #ffffff);
  border-color: rgba(30, 128, 255, 0.28);
  color: #0b1220;
  box-shadow: 0 12px 26px rgba(30, 128, 255, 0.11);
}

body[data-theme='light'] .assistant-composer {
  background:
    linear-gradient(180deg, #ffffff, #f2f7ff);
  border-color: rgba(0, 180, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 42px rgba(24, 42, 78, 0.13);
}

body[data-theme='light'] .assistant-input-form textarea {
  color: #0b1220;
}

body[data-theme='light'] .assistant-input-form textarea::placeholder {
  color: #7a89a2;
}

body[data-theme='light'] .assistant-fab {
  background:
    radial-gradient(circle at 22% 22%, rgba(0, 180, 255, 0.1), transparent 42%),
    linear-gradient(145deg, #ffffff, #eef5ff);
  border-color: rgba(170, 190, 221, 0.82);
  box-shadow: 0 18px 40px rgba(24, 42, 78, 0.14);
}

body[data-theme='light'] .assistant-fab-copy strong {
  color: #0b1220;
}

body[data-theme='light'] .assistant-fab-copy small {
  color: #61708a;
}

@media (max-width: 860px) {
  body[data-theme='light'] .analytics-shell .analytics-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Strict visual bug-fix pass: keep current layout, remove regressions. */
.assistant-fab,
.assistant-send-btn,
.assistant-action-btn,
.assistant-followup-btn,
.assistant-header-btn,
.nav-tab,
.mobile-tab,
.btn,
.pill-btn,
.daily-outlook-row {
  isolation: isolate;
  background-clip: padding-box;
}

.assistant-fab,
.assistant-send-btn,
.btn.primary,
[data-action='open-assistant'].btn.primary {
  border-color: transparent !important;
}

.assistant-fab {
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(58, 85, 122, 0.64),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.btn.primary,
[data-action='open-assistant'].btn.primary {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 14px 30px rgba(0, 91, 168, 0.28);
}

.assistant-fab-icon,
.assistant-modal-mark,
.assistant-composer-mark,
.assistant-thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 26%, rgba(0, 180, 255, 0.2), transparent 42%),
    linear-gradient(145deg, #07101c, #0a1421) !important;
  border: 1px solid rgba(73, 108, 153, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.assistant-brand-mark,
body[data-theme='light'] .assistant-brand-mark,
body[data-theme='light'] .assistant-thread-avatar .assistant-brand-mark,
body[data-theme='light'] .assistant-composer-mark .assistant-brand-mark,
body[data-theme='light'] .assistant-modal-mark .assistant-brand-mark,
body[data-theme='light'] .assistant-fab-icon .assistant-brand-mark {
  content: normal !important;
  width: 1.34rem;
  height: auto;
  max-width: 70%;
  max-height: 54%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.assistant-fab-icon .assistant-brand-mark,
body[data-theme='light'] .assistant-fab-icon .assistant-brand-mark {
  width: 1.45rem;
  max-width: 72%;
}

body[data-theme='light'] .assistant-fab {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.94));
  border-color: transparent !important;
  box-shadow:
    inset 0 0 0 1px rgba(170, 190, 221, 0.8),
    0 18px 40px rgba(24, 42, 78, 0.14);
}

body[data-theme='light'] .modal.assistant-modal {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 180, 255, 0.12), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.1), transparent 28%),
    linear-gradient(180deg, #08111d, #050912) !important;
  border-color: rgba(72, 103, 145, 0.54);
  color: #f7fbff;
  box-shadow: 0 30px 90px rgba(7, 16, 30, 0.34);
}

body[data-theme='light'] .assistant-modal-title h3,
body[data-theme='light'] .assistant-open-hero h4,
body[data-theme='light'] .assistant-starter-copy strong,
body[data-theme='light'] .assistant-message.assistant .assistant-answer-copy,
body[data-theme='light'] .assistant-message.assistant .assistant-bubble {
  color: #f7fbff;
}

body[data-theme='light'] .assistant-modal-title p,
body[data-theme='light'] .assistant-open-hero p,
body[data-theme='light'] .assistant-starter-copy small,
body[data-theme='light'] .assistant-open-footnote,
body[data-theme='light'] .assistant-message-time {
  color: rgba(205, 218, 238, 0.72);
}

body[data-theme='light'] .assistant-header-btn.close {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(113, 141, 181, 0.34);
  color: #eaf2ff;
}

body[data-theme='light'] .assistant-open-stage {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 180, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(12, 22, 36, 0.96), rgba(6, 10, 18, 0.98)) !important;
  border-color: rgba(87, 123, 170, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(3, 8, 18, 0.24);
}

body[data-theme='light'] .assistant-starter-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(180deg, #111c2d, #0a111d);
  border-color: rgba(103, 130, 172, 0.36);
}

body[data-theme='light'] .assistant-message.assistant .assistant-bubble {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-theme='light'] .assistant-message.user .assistant-bubble {
  background: linear-gradient(180deg, rgba(113, 138, 255, 0.14), rgba(10, 18, 34, 0.72));
  border-color: rgba(35, 156, 255, 0.4);
  color: #f7fbff;
}

body[data-theme='light'] .assistant-composer {
  background:
    linear-gradient(90deg, rgba(13, 24, 38, 0.98), rgba(4, 13, 24, 0.99)) !important;
  border-color: rgba(0, 180, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(3, 8, 18, 0.24) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-input-form textarea,
body[data-theme='light'] .assistant-input-form textarea {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f7fbff;
}

body[data-theme='light'] .assistant-input-form textarea::placeholder {
  color: rgba(184, 199, 222, 0.72);
}

body[data-theme='light'] .assistant-action-btn,
body[data-theme='light'] .assistant-followup-btn,
body[data-theme='light'] .assistant-citation-pill {
  background: rgba(10, 21, 34, 0.88);
  border-color: rgba(0, 180, 255, 0.26);
  color: #dbe8f8;
}

.ring-card.warning,
.ring-card.is-warning {
  --orb-color: #f7d64a;
}

.ring-card.warning .ring-orb,
.ring-card.is-warning .ring-orb,
.ring-card.warning .real-orb,
.ring-card.is-warning .real-orb,
.dashboard-real-orb.warning,
.dashboard-ring-visual.warning .real-orb,
.metric-ring.warning .ring-orb,
.metric-ring.is-warning .ring-orb {
  --orb-color: #f7d64a;
}

body[data-theme='light'] .dashboard-stage-legend {
  gap: 0.5rem;
}

body[data-theme='light'] .dashboard-stage-key {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(141, 160, 194, 0.42);
  color: #34435c;
  box-shadow: 0 8px 18px rgba(24, 42, 78, 0.06);
}

body[data-theme='light'] .dashboard-stage-key b,
body[data-theme='light'] .dashboard-stage-key strong {
  color: #162138;
}

body[data-theme='light'] .analytics-shell .analytics-trend-chart svg text,
body[data-theme='light'] .analytics-shell .running-trend-chart svg text,
body[data-theme='light'] .analytics-shell .cardio-trend-chart svg text {
  fill: #4c5d78 !important;
  opacity: 1 !important;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 3px;
}

body[data-theme='light'] .analytics-shell .recovery-grid-label.success,
body[data-theme='light'] .analytics-shell svg text.recovery-grid-label.success {
  fill: #119e70 !important;
}

body[data-theme='light'] .analytics-shell .recovery-grid-label.warning,
body[data-theme='light'] .analytics-shell svg text.recovery-grid-label.warning {
  fill: #9f7a00 !important;
}

body[data-theme='light'] .analytics-shell .recovery-grid-label.danger,
body[data-theme='light'] .analytics-shell svg text.recovery-grid-label.danger {
  fill: #ce2447 !important;
}

body[data-theme='light'] .analytics-shell .sleep-six-change,
body[data-theme='light'] .analytics-shell .cardio-month-change,
body[data-theme='light'] .analytics-shell .sleep-week-value,
body[data-theme='light'] .analytics-shell .sleep-six-value,
body[data-theme='light'] .analytics-shell .cardio-month-value {
  fill: #58708f !important;
}

.analytics-shell .benchmark-card .status-chip,
.analytics-shell .analytics-support-card.benchmark-card .status-chip,
.analytics-shell .cardio-trend-chip,
.analytics-shell .status-chip {
  min-height: 1.38rem;
  padding: 0.22rem 0.48rem;
  font-size: 0.68rem;
  line-height: 1;
  border-radius: 999px;
}

.analytics-shell .benchmark-card .detail-item small {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.analytics-shell .benchmark-card .detail-item span {
  line-height: 1.04;
}

body[data-theme='light'] .cardio-trend-chip.warning,
body[data-theme='light'] .trend-chip.warning,
body[data-theme='light'] .status-chip.warning,
body[data-theme='light'] .benchmark-card .status-chip.warning {
  background: rgba(247, 214, 74, 0.18);
  border-color: rgba(214, 174, 32, 0.36);
  color: #806200;
}

@media (max-width: 760px) {
  body[data-theme='light'] .modal.assistant-modal {
    width: min(100%, calc(100% - 1rem)) !important;
    max-width: calc(100% - 1rem) !important;
  }

  .assistant-brand-mark,
  body[data-theme='light'] .assistant-brand-mark {
    width: 1.22rem;
  }
}

/* Ask AthleteOS focused UI polish: scoped to the assistant modal and launcher only. */
.modal.assistant-modal {
  width: min(760px, calc(100% - 2rem)) !important;
  max-width: calc(100% - 2rem) !important;
  height: min(86vh, 760px) !important;
  max-height: min(86vh, 760px) !important;
  padding: 1rem !important;
  border-radius: 26px !important;
  border: 1px solid rgba(61, 89, 128, 0.62) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 180, 255, 0.105), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(45, 102, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #08111d, #050913) !important;
  box-shadow:
    0 32px 88px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  color: #f7fbff !important;
}

.modal.assistant-modal.assistant-empty-modal {
  height: auto !important;
  min-height: 0 !important;
  max-height: min(92vh, 720px) !important;
}

.modal.assistant-modal .assistant-modal-shell {
  gap: 0.82rem !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.modal.assistant-modal .assistant-modal-shell.assistant-empty-shell {
  grid-template-rows: auto auto auto !important;
  min-height: 0 !important;
  height: auto !important;
  align-content: start !important;
}

.modal.assistant-modal .assistant-modal-header {
  align-items: center !important;
  padding: 0.08rem 0.04rem 0.12rem !important;
}

.modal.assistant-modal .assistant-modal-title {
  gap: 0.16rem !important;
}

.modal.assistant-modal .assistant-title-row {
  gap: 0.68rem !important;
}

.modal.assistant-modal .assistant-modal-title h3 {
  font-size: clamp(1.18rem, 2vw, 1.42rem) !important;
  letter-spacing: -0.045em !important;
  color: #f8fbff !important;
}

.modal.assistant-modal .assistant-modal-title p {
  margin: 0 0 0 3.18rem !important;
  color: rgba(184, 199, 222, 0.76) !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

.assistant-fab-icon,
.modal.assistant-modal .assistant-modal-mark,
.modal.assistant-modal .assistant-composer-mark,
.modal.assistant-modal .assistant-thread-avatar {
  border-radius: 14px !important;
  background:
    linear-gradient(145deg, rgba(18, 28, 42, 0.98), rgba(8, 13, 21, 0.98)) !important;
  border: 1px solid rgba(78, 113, 158, 0.56) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

.assistant-fab-icon {
  width: 2.38rem !important;
  height: 2.38rem !important;
}

.modal.assistant-modal .assistant-modal-mark {
  width: 2.56rem !important;
  height: 2.56rem !important;
}

.modal.assistant-modal .assistant-composer-mark,
.modal.assistant-modal .assistant-thread-avatar {
  width: 2.08rem !important;
  height: 2.08rem !important;
}

.assistant-brand-mark,
body[data-theme='light'] .assistant-brand-mark,
.assistant-fab-icon .assistant-brand-mark,
body[data-theme='light'] .assistant-fab-icon .assistant-brand-mark,
.modal.assistant-modal .assistant-modal-mark .assistant-brand-mark,
.modal.assistant-modal .assistant-composer-mark .assistant-brand-mark,
.modal.assistant-modal .assistant-thread-avatar .assistant-brand-mark {
  width: 1.52rem !important;
  height: 1.52rem !important;
  max-width: 76% !important;
  max-height: 76% !important;
  object-fit: contain !important;
  border-radius: 0.42rem !important;
  content: normal !important;
}

.assistant-fab-icon .assistant-brand-mark,
body[data-theme='light'] .assistant-fab-icon .assistant-brand-mark {
  width: 1.6rem !important;
  height: 1.6rem !important;
}

.modal.assistant-modal .assistant-header-btn.close {
  width: 2.36rem !important;
  height: 2.36rem !important;
  min-width: 2.36rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(103, 130, 172, 0.34) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #e9f2ff !important;
  box-shadow: none !important;
}

.modal.assistant-modal .assistant-header-btn.close:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(0, 180, 255, 0.3) !important;
}

.modal.assistant-modal .assistant-open-stage {
  width: 100% !important;
  max-width: 100% !important;
  padding: 1.08rem !important;
  gap: 0.88rem !important;
  border-radius: 22px !important;
  border: 1px solid rgba(76, 110, 154, 0.52) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 180, 255, 0.115), transparent 32%),
    linear-gradient(180deg, rgba(12, 21, 35, 0.98), rgba(6, 10, 18, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.22) !important;
}

.modal.assistant-modal .assistant-open-hero {
  gap: 0.3rem !important;
  padding: 0.12rem 0 0 !important;
}

.modal.assistant-modal .assistant-open-orb {
  width: 3.1rem !important;
  height: 3.1rem !important;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    0 16px 30px rgba(20, 67, 214, 0.28) !important;
}

.modal.assistant-modal .assistant-open-orb svg {
  width: 1.22rem !important;
  height: 1.22rem !important;
}

.modal.assistant-modal .assistant-open-hero h4 {
  max-width: 18ch !important;
  margin: 0 !important;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.055em !important;
  color: #f8fbff !important;
}

.modal.assistant-modal .assistant-open-hero p {
  max-width: 42ch !important;
  margin: 0 !important;
  color: rgba(207, 219, 237, 0.76) !important;
  font-size: 0.88rem !important;
  line-height: 1.44 !important;
}

.modal.assistant-modal .assistant-starter-grid {
  gap: 0.62rem !important;
}

.modal.assistant-modal .assistant-starter-card {
  min-height: 68px !important;
  padding: 0.74rem 0.78rem !important;
  gap: 0.66rem !important;
  border-radius: 15px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent),
    linear-gradient(180deg, rgba(15, 24, 38, 0.96), rgba(9, 14, 23, 0.98)) !important;
  border: 1px solid rgba(75, 103, 141, 0.52) !important;
  box-shadow: none !important;
}

.modal.assistant-modal .assistant-starter-card:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(0, 180, 255, 0.38) !important;
  background:
    linear-gradient(180deg, rgba(0, 180, 255, 0.075), transparent),
    linear-gradient(180deg, rgba(16, 28, 44, 0.98), rgba(9, 15, 25, 0.99)) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16) !important;
}

.modal.assistant-modal .assistant-starter-icon {
  width: 1.86rem !important;
  height: 1.86rem !important;
  border-radius: 12px !important;
  color: #bfe7ff !important;
  background: rgba(8, 15, 25, 0.9) !important;
  border-color: rgba(88, 120, 164, 0.5) !important;
}

.modal.assistant-modal .assistant-starter-icon svg {
  width: 0.94rem !important;
  height: 0.94rem !important;
}

.modal.assistant-modal .assistant-starter-copy {
  gap: 0.08rem !important;
}

.modal.assistant-modal .assistant-starter-copy strong {
  color: #f8fbff !important;
  font-size: 0.86rem !important;
  line-height: 1.22 !important;
}

.modal.assistant-modal .assistant-starter-copy small {
  color: rgba(190, 203, 224, 0.7) !important;
  font-size: 0.73rem !important;
  line-height: 1.32 !important;
}

.modal.assistant-modal .assistant-open-footnote {
  color: rgba(190, 203, 224, 0.7) !important;
  font-size: 0.72rem !important;
}

.modal.assistant-modal .assistant-thread-wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.4rem 0 0.2rem !important;
}

.modal.assistant-modal .assistant-thread {
  padding: 0.1rem 0.24rem 0.4rem 0 !important;
  gap: 0.88rem !important;
}

.modal.assistant-modal .assistant-message {
  gap: 0.62rem !important;
}

.modal.assistant-modal .assistant-message.user .assistant-message-body {
  max-width: min(62%, 420px) !important;
}

.modal.assistant-modal .assistant-message.assistant .assistant-message-body {
  max-width: min(78%, 600px) !important;
}

.modal.assistant-modal .assistant-message.assistant .assistant-bubble {
  background: rgba(8, 13, 21, 0.38) !important;
  border: 1px solid rgba(76, 104, 143, 0.3) !important;
  box-shadow: none !important;
}

.modal.assistant-modal .assistant-message.user .assistant-bubble {
  background: linear-gradient(180deg, rgba(21, 42, 79, 0.98), rgba(11, 25, 48, 0.98)) !important;
  border-color: rgba(0, 180, 255, 0.36) !important;
  box-shadow: none !important;
}

.modal.assistant-modal .assistant-answer-copy {
  color: #f5f8ff !important;
  font-size: 1rem !important;
  line-height: 1.66 !important;
}

.modal.assistant-modal .assistant-message.user .assistant-bubble p {
  color: #f8fbff !important;
}

.modal.assistant-modal .assistant-message-time {
  color: rgba(181, 196, 219, 0.7) !important;
}

.modal.assistant-modal .assistant-input-form {
  margin-top: 0 !important;
}

.modal.assistant-modal .assistant-composer {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.44rem 0.5rem !important;
  gap: 0.56rem !important;
  border-radius: 22px !important;
  background:
    linear-gradient(90deg, rgba(9, 18, 31, 0.99), rgba(5, 13, 23, 0.99)) !important;
  border: 1px solid rgba(0, 180, 255, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(0, 0, 0, 0.18) !important;
}

.modal.assistant-modal .assistant-composer-field {
  gap: 0.58rem !important;
}

.modal.assistant-modal .assistant-input-form textarea {
  min-height: 2.22rem !important;
  padding: 0.38rem 0 !important;
  color: #f8fbff !important;
  font-size: 0.95rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.modal.assistant-modal .assistant-input-form textarea::placeholder {
  color: rgba(172, 188, 213, 0.72) !important;
}

.modal.assistant-modal .assistant-send-btn {
  width: 3.28rem !important;
  min-width: 3.28rem !important;
  height: 2.48rem !important;
  min-height: 2.48rem !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(0, 112, 224, 0.22) !important;
}

.assistant-fab {
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 24% 22%, rgba(0, 180, 255, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(8, 14, 23, 0.97), rgba(13, 21, 33, 0.98)) !important;
  border: 1px solid rgba(75, 105, 146, 0.58) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.assistant-fab:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(0, 180, 255, 0.34) !important;
}

.assistant-fab-copy strong {
  color: #f8fbff !important;
}

.assistant-fab-copy small {
  color: rgba(190, 203, 224, 0.72) !important;
}

body[data-theme='light'] .modal.assistant-modal {
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 180, 255, 0.105), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff, #f3f7ff) !important;
  border-color: rgba(174, 194, 225, 0.9) !important;
  color: #10182c !important;
  box-shadow:
    0 30px 80px rgba(22, 35, 64, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-modal-title h3 {
  color: #10182c !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-modal-title p {
  color: #61708a !important;
}

body[data-theme='light'] .assistant-fab-icon,
body[data-theme='light'] .modal.assistant-modal .assistant-modal-mark,
body[data-theme='light'] .modal.assistant-modal .assistant-composer-mark,
body[data-theme='light'] .modal.assistant-modal .assistant-thread-avatar {
  background: linear-gradient(145deg, #ffffff, #edf4ff) !important;
  border-color: rgba(178, 197, 226, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(22, 35, 64, 0.08) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-header-btn.close {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(176, 195, 224, 0.9) !important;
  color: #20304c !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-open-stage {
  background:
    radial-gradient(circle at 50% 0%, rgba(33, 166, 255, 0.105), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.98)) !important;
  border-color: rgba(174, 194, 225, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 42px rgba(22, 35, 64, 0.1) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-open-hero h4,
body[data-theme='light'] .modal.assistant-modal .assistant-starter-copy strong {
  color: #10182c !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-open-hero p,
body[data-theme='light'] .modal.assistant-modal .assistant-starter-copy small,
body[data-theme='light'] .modal.assistant-modal .assistant-open-footnote {
  color: #66758e !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-starter-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96)) !important;
  border-color: rgba(176, 195, 224, 0.86) !important;
  color: #10182c !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-starter-card:hover {
  border-color: rgba(0, 148, 235, 0.36) !important;
  background:
    linear-gradient(180deg, #ffffff, #eef6ff) !important;
  box-shadow: 0 14px 28px rgba(22, 35, 64, 0.08) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-starter-icon {
  background: #ffffff !important;
  color: #0c60f8 !important;
  border-color: rgba(176, 195, 224, 0.82) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-message.assistant .assistant-bubble {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(176, 195, 224, 0.62) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-message.user .assistant-bubble {
  background: linear-gradient(180deg, #eef6ff, #ffffff) !important;
  border-color: rgba(30, 128, 255, 0.28) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-message.user .assistant-bubble p,
body[data-theme='light'] .modal.assistant-modal .assistant-answer-copy {
  color: #111b30 !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-message-time {
  color: #6b7a94 !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-composer {
  background: linear-gradient(180deg, #ffffff, #f4f8ff) !important;
  border-color: rgba(0, 148, 235, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 40px rgba(22, 35, 64, 0.1) !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-input-form textarea {
  color: #10182c !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-input-form textarea::placeholder {
  color: #8390a7 !important;
}

body[data-theme='light'] .assistant-fab {
  background:
    radial-gradient(circle at 22% 20%, rgba(0, 180, 255, 0.09), transparent 38%),
    linear-gradient(145deg, #ffffff, #eef5ff) !important;
  border-color: rgba(176, 195, 224, 0.92) !important;
  box-shadow:
    0 18px 40px rgba(22, 35, 64, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body[data-theme='light'] .assistant-fab-copy strong {
  color: #10182c !important;
}

body[data-theme='light'] .assistant-fab-copy small {
  color: #60708a !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-followup-btn,
body[data-theme='light'] .modal.assistant-modal .assistant-action-btn,
body[data-theme='light'] .modal.assistant-modal .assistant-citation-pill {
  background: rgba(255, 255, 255, 0.84) !important;
  border-color: rgba(30, 128, 255, 0.26) !important;
  color: #20304c !important;
}

body[data-theme='light'] .modal.assistant-modal .assistant-why-drawer {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(176, 195, 224, 0.72) !important;
}

@media (max-width: 860px) {
  .modal.assistant-modal {
    width: min(100%, calc(100% - 1rem)) !important;
    max-width: calc(100% - 1rem) !important;
  }

  .modal.assistant-modal .assistant-message.user .assistant-message-body,
  .modal.assistant-modal .assistant-message.assistant .assistant-message-body {
    max-width: min(88%, 540px) !important;
  }
}

@media (max-width: 620px) {
  .modal.assistant-modal {
    width: calc(100% - 0.5rem) !important;
    max-width: calc(100% - 0.5rem) !important;
    height: calc(100dvh - 0.5rem) !important;
    max-height: calc(100dvh - 0.5rem) !important;
    padding: 0.78rem !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .modal.assistant-modal.assistant-empty-modal {
    height: auto !important;
    max-height: calc(100dvh - 0.5rem) !important;
  }

  .modal.assistant-modal .assistant-modal-title p {
    margin-left: 2.84rem !important;
    font-size: 0.72rem !important;
  }

  .modal.assistant-modal .assistant-open-stage {
    padding: 0.88rem !important;
  }

  .modal.assistant-modal .assistant-open-orb {
    width: 2.76rem !important;
    height: 2.76rem !important;
  }

  .modal.assistant-modal .assistant-open-hero h4 {
    font-size: 1.32rem !important;
  }

  .modal.assistant-modal .assistant-starter-grid {
    grid-template-columns: 1fr !important;
  }

  .modal.assistant-modal .assistant-starter-card {
    min-height: 62px !important;
  }

  .modal.assistant-modal .assistant-message.user .assistant-message-body,
  .modal.assistant-modal .assistant-message.assistant .assistant-message-body {
    max-width: 100% !important;
  }

  .modal.assistant-modal .assistant-composer {
    padding: 0.42rem !important;
  }

  .modal.assistant-modal .assistant-send-btn {
    width: 3rem !important;
    min-width: 3rem !important;
  }
}
