.iridescence-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f7fbff;
  pointer-events: none;
}

.iridescence-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.shiny-text {
  display: inline-block;
  background-repeat: repeat-x;
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .shiny-text {
    background-position: center !important;
  }
}
.animated-gradient-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.animated-gradient-text.with-border {
  padding: 4px 10px;
  border-radius: 8px;
}

.animated-gradient-text .gradient-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.24;
  pointer-events: none;
}

.animated-gradient-text .text-content {
  position: relative;
  z-index: 1;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .animated-gradient-text .gradient-overlay,
  .animated-gradient-text .text-content {
    background-position: 50% 50% !important;
  }
}
:root {
  color: #1e1b4b;
  background: #f3f0ff;
  --healing-ink: #1e1b4b;
  --healing-muted: #64748b;
  --healing-primary: #6d5dfc;
  --healing-blue: #3b82f6;
  --healing-purple: #a78bfa;
  --healing-border: rgba(129, 140, 248, 0.18);
  --healing-surface: rgba(255, 255, 255, 0.74);
  --healing-surface-strong: rgba(255, 255, 255, 0.86);
  --healing-shadow: 0 18px 45px rgba(80, 70, 180, 0.1);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(147, 197, 253, 0.42),
      transparent 28rem
    ),
    radial-gradient(
      circle at 92% 8%,
      rgba(196, 181, 253, 0.48),
      transparent 30rem
    ),
    radial-gradient(
      circle at 70% 88%,
      rgba(221, 214, 254, 0.5),
      transparent 26rem
    ),
    linear-gradient(135deg, #f3f0ff 0%, #eef7ff 48%, #f7f2ff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(109, 93, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 72%);
}

.ant-layout {
  background: transparent;
}

.ant-card {
  overflow: hidden;
  background: var(--healing-surface) !important;
  border: 1px solid var(--healing-border) !important;
  box-shadow: var(--healing-shadow);
  backdrop-filter: blur(14px);
}

.ant-card-head {
  border-bottom-color: rgba(129, 140, 248, 0.14) !important;
}

.ant-card-head-title,
.ant-typography {
  color: var(--healing-ink) !important;
}

.app-sider {
  position: sticky !important;
  top: 0;
  height: 100vh;
  overflow: hidden auto;
  background: rgba(255, 255, 255, 0.56) !important;
  border-right: 1px solid var(--healing-border);
  box-shadow: 12px 0 40px rgba(80, 70, 180, 0.06);
  backdrop-filter: blur(18px);
}

.brand-panel {
  padding: 24px 20px 20px;
}

.brand-title.ant-typography {
  margin: 0 0 5px;
  background: linear-gradient(
    135deg,
    var(--healing-blue),
    var(--healing-primary),
    var(--healing-purple)
  );
  background-clip: text;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.12;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  color: var(--healing-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.app-sider .ant-menu {
  padding: 0 12px;
  background: transparent;
  border-inline-end: 0 !important;
}

.app-sider .ant-menu-item {
  height: 54px;
  margin-block: 8px;
  margin-inline: 0;
  padding-inline: 18px !important;
  border: 1px solid transparent;
  border-radius: 27px;
  color: #4338ca;
  font-size: 16px;
  font-weight: 700;
  line-height: 54px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.app-sider .ant-menu-item .ant-menu-title-content {
  font-weight: 700;
}

.app-sider .ant-menu-item .anticon {
  font-size: 18px;
}

.app-sider .ant-menu-item:hover {
  border-color: rgba(129, 140, 248, 0.2);
  background: rgba(255, 255, 255, 0.58);
  color: #4338ca;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(80, 70, 180, 0.08);
  transform: translateY(-1px);
}

.app-sider .ant-menu-item-selected {
  border-color: rgba(129, 140, 248, 0.34);
  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(255, 255, 255, 0.82),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(224, 231, 255, 0.92),
      rgba(221, 214, 254, 0.82)
    ) !important;
  color: #4338ca !important;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -10px 24px rgba(129, 140, 248, 0.08),
    0 14px 34px rgba(80, 70, 180, 0.13);
}

.app-sider .ant-menu-item-selected .ant-menu-title-content {
  font-weight: 800;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 64px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.58) !important;
  border-bottom: 1px solid var(--healing-border);
  box-shadow: 0 12px 38px rgba(80, 70, 180, 0.05);
  backdrop-filter: blur(18px);
}

.header-kicker {
  color: #5b5f8f;
}

.app-loading {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app-error-screen {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 32px;
}

.app-error-stack {
  overflow: auto;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #7f1d1d;
  white-space: pre-wrap;
}

.app-content {
  box-sizing: border-box;
  width: 100%;
  max-width: min(1920px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 2.2vw, 54px);
}

.page-intro {
  max-width: 760px;
  margin-bottom: 22px;
}

.page-intro .ant-typography {
  margin-bottom: 6px;
}

.page-gradient-title.ant-typography {
  display: inline-flex;
  width: fit-content;
  color: inherit !important;
  line-height: 1.2;
}

.diagnosis-page-intro {
  max-width: none;
}

.diagnosis-page-intro .ant-typography:last-child {
  white-space: nowrap;
}

.soft-card-extra {
  color: #7c7aa5;
  font-size: 12px;
}

.account-panel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  margin: 22px 12px 16px;
  padding: 12px;
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78),
    rgba(240, 253, 244, 0.58)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.account-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  overflow: hidden;
  flex-shrink: 0;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.account-copy .ant-typography {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  box-sizing: border-box;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  background: #f7fbff;
}

.auth-screen::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(
      ellipse at 18% 20%,
      rgba(255, 255, 255, 0.5),
      transparent 34rem
    ),
    radial-gradient(
      ellipse at 82% 72%,
      rgba(255, 255, 255, 0.42),
      transparent 28rem
    ),
    linear-gradient(
      90deg,
      rgba(247, 251, 255, 0.48),
      rgba(247, 251, 255, 0.18) 48%,
      rgba(247, 251, 255, 0.56)
    );
}

.auth-screen::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.032) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(
    110deg,
    rgba(0, 0, 0, 0.36),
    rgba(0, 0, 0, 0.08) 48%,
    transparent 82%
  );
  opacity: 0.72;
}

.auth-intro {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.auth-intro::before {
  position: absolute;
  top: -26px;
  left: 0;
  width: 108px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.8),
    rgba(124, 58, 237, 0.62),
    rgba(20, 184, 166, 0.32)
  );
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.28);
  content: "";
}

.auth-brand.ant-typography {
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 18px 46px rgba(79, 70, 229, 0.18);
}

.auth-brand-shine {
  filter: drop-shadow(0 18px 38px rgba(79, 70, 229, 0.18));
}

.auth-copy.ant-typography {
  max-width: 560px;
  margin: 0;
  color: #52547f !important;
  font-size: 17px;
  line-height: 1.85;
}

.auth-card.ant-card {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.22)
    ),
    radial-gradient(
      circle at 10% 0%,
      rgba(219, 234, 254, 0.34),
      transparent 15rem
    ) !important;
  box-shadow:
    0 34px 90px rgba(45, 54, 135, 0.2),
    0 14px 36px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}

.auth-card.ant-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 42%),
    linear-gradient(315deg, rgba(124, 58, 237, 0.08), transparent 52%);
}

.auth-card.ant-card::after {
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.86),
    transparent
  );
}

.auth-card .ant-card-body {
  position: relative;
  z-index: 1;
  padding: 30px 28px 28px;
}

.auth-tabs.ant-tabs {
  margin-bottom: 4px;
}

.auth-tabs .ant-tabs-nav {
  margin-bottom: 20px;
}

.auth-tabs .ant-tabs-nav::before {
  border-bottom-color: rgba(255, 255, 255, 0.42) !important;
}

.auth-tabs .ant-tabs-tab {
  padding: 0 0 13px;
  color: rgba(49, 46, 129, 0.72);
  transition:
    color 0.24s ease,
    transform 0.24s ease;
}

.auth-tabs .ant-tabs-tab + .ant-tabs-tab {
  margin-left: 34px;
}

.auth-tabs .ant-tabs-tab-btn {
  transition:
    color 0.24s ease,
    text-shadow 0.24s ease;
}

.auth-tabs .ant-tabs-tab:hover,
.auth-tabs .ant-tabs-tab-active {
  color: #4f46e5;
}

.auth-tabs .ant-tabs-tab:hover .ant-tabs-tab-btn,
.auth-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #4f46e5 !important;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.18);
}

.auth-tabs .ant-tabs-ink-bar {
  height: 3px !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed 62%, #22d3ee);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.36);
  transition:
    width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    left 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.auth-form .ant-form-item {
  margin-bottom: 20px;
}

.auth-form .ant-form-item-label {
  padding-bottom: 8px;
}

.auth-form .ant-form-item-label > label {
  color: #27305e;
  font-size: 14px;
  font-weight: 600;
}

.auth-form .ant-input-affix-wrapper {
  min-height: 44px;
  padding: 0 14px;
  border-color: rgba(129, 140, 248, 0.28);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.auth-form .ant-input-affix-wrapper:hover {
  border-color: rgba(99, 102, 241, 0.48);
  background: rgba(255, 255, 255, 0.52);
}

.auth-form .ant-input-affix-wrapper-focused,
.auth-form .ant-input-affix-wrapper:focus-within {
  border-color: rgba(79, 70, 229, 0.72) !important;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.13),
    0 12px 28px rgba(79, 70, 229, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: translateY(-1px);
}

.auth-form .ant-input-affix-wrapper .ant-input {
  background: transparent;
  color: #1e1b4b;
}

.auth-form .ant-input-affix-wrapper .ant-input::placeholder {
  color: rgba(100, 116, 139, 0.54);
}

.auth-form .ant-input-prefix,
.auth-form .ant-input-suffix {
  color: rgba(49, 46, 129, 0.62);
}

.auth-form .ant-form-item-explain-error {
  margin-top: 5px;
  color: #dc2626;
}

.auth-form .ant-form-item-has-error .ant-input-affix-wrapper {
  border-color: rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-secondary-action {
  display: flex;
  justify-content: flex-end;
  margin: -14px 0 12px;
}

.auth-secondary-action .ant-btn {
  height: auto;
  padding: 2px 0;
  color: #4f46e5;
  font-weight: 600;
}

.auth-code-action {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.auth-code-action .ant-btn {
  height: auto;
  padding: 4px 0;
  color: #4f46e5;
  font-weight: 600;
}

.auth-mode-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
}

.auth-mode-header > .ant-btn {
  width: 34px;
  height: 34px;
  color: #4f46e5;
}

.auth-mode-header h3.ant-typography {
  margin: 0 0 5px;
  color: #27305e;
  font-size: 22px;
  line-height: 1.3;
}

.auth-mode-header .ant-typography {
  color: #62678b;
  line-height: 1.6;
}

.auth-submit.ant-btn {
  height: 44px;
  margin-top: 2px;
  border: 0;
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #6655f6 52%,
    #7c3aed 100%
  ) !important;
  box-shadow:
    0 16px 34px rgba(79, 70, 229, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #fff;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.auth-submit.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):hover {
  background: linear-gradient(
    135deg,
    #1d4ed8 0%,
    #5b5df8 48%,
    #6d28d9 100%
  ) !important;
  box-shadow:
    0 20px 42px rgba(79, 70, 229, 0.36),
    0 0 0 4px rgba(99, 102, 241, 0.1);
  filter: brightness(1.05);
  transform: translateY(-1px) scale(1.015);
}

.auth-submit.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):active {
  filter: brightness(0.98);
  transform: translateY(0) scale(0.995);
}

.auth-alert {
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(254, 242, 242, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-success {
  background: rgba(240, 253, 244, 0.78);
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen,
  .auth-screen::before,
  .auth-tabs .ant-tabs-ink-bar,
  .auth-form .ant-input-affix-wrapper,
  .auth-submit.ant-btn,
  .orb-core,
  .orb-aura,
  .orb-ring,
  .orb-reflection,
  .orb-particle,
  .recharts-wrapper * {
    animation: none !important;
    transition: none !important;
  }
}

.record-timeline-scroll {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(109, 93, 252, 0.38) rgba(221, 214, 254, 0.28);
  scrollbar-width: thin;
}

.record-timeline-scroll::-webkit-scrollbar {
  width: 8px;
}

.record-timeline-scroll::-webkit-scrollbar-track {
  background: rgba(221, 214, 254, 0.28);
  border-radius: 999px;
}

.record-timeline-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(109, 93, 252, 0.5),
    rgba(59, 130, 246, 0.42)
  );
  border-radius: 999px;
}

.record-list-item {
  padding-inline: 0 !important;
}

.diagnosis-history-item.ant-list-item {
  align-items: center;
  gap: 14px;
  padding-block: 16px;
}

.diagnosis-history-item .ant-list-item-meta {
  min-width: 0;
  margin-block-end: 0;
}

.diagnosis-history-item .ant-list-item-meta-title {
  margin-bottom: 7px;
}

.diagnosis-history-meta {
  row-gap: 5px !important;
}

.diagnosis-history-meta .ant-tag {
  margin-inline-end: 0;
}

.diagnosis-history-date.ant-typography {
  color: #172554;
  font-size: 13px;
  font-weight: 750;
}

.diagnosis-history-content {
  min-width: 0;
}

.diagnosis-history-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.diagnosis-history-summary
  :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, blockquote) {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

.diagnosis-history-summary p:not(:last-child)::after,
.diagnosis-history-summary li:not(:last-child)::after {
  content: " ";
}

.diagnosis-history-summary li::marker {
  content: "";
}

.diagnosis-history-summary strong,
.diagnosis-history-summary em,
.diagnosis-history-summary del,
.diagnosis-history-summary code {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.diagnosis-history-summary a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.diagnosis-history-summary img,
.diagnosis-history-summary table,
.diagnosis-history-summary pre,
.diagnosis-history-summary hr {
  display: none;
}

.diagnosis-history-complaint.ant-typography {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnosis-history-item .ant-list-item-action {
  flex: none;
  margin-inline-start: 6px;
}

.records-collapsed-layout,
.diagnosis-collapsed-layout {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
}

.records-collapsed-layout > .ant-row,
.diagnosis-collapsed-layout > .ant-row {
  width: 100%;
}

.medical-upload-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.medical-upload-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.medical-upload-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 16px;
}

.medical-upload-icon.image {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.medical-upload-icon.pdf {
  background: rgba(248, 113, 113, 0.12);
  color: #dc2626;
}

.medical-upload-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.medical-upload-name {
  overflow: hidden;
  color: var(--healing-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.medical-upload-meta {
  color: var(--healing-muted);
  font-size: 12px;
}

.record-material-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-material-link {
  display: inline-flex;
  max-width: min(100%, 240px);
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.82);
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.record-material-link span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-material-link em {
  flex: none;
  color: #7c7aa5;
  font-style: normal;
}

.time-wellness-card {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--healing-border);
  border-radius: 18px;
  background:
    linear-gradient(
      100deg,
      rgba(255, 252, 246, 0.9) 0%,
      rgba(249, 247, 239, 0.66) 45%,
      rgba(255, 241, 238, 0.72) 100%
    ),
    linear-gradient(
      145deg,
      rgba(232, 245, 234, 0.72),
      rgba(255, 255, 255, 0.36) 48%,
      rgba(255, 226, 218, 0.5)
    );
  box-shadow: var(--healing-shadow);
}

.time-wellness-card::before,
.time-wellness-card::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.time-wellness-card::before {
  inset: -18px;
  opacity: 0.84;
  background:
    linear-gradient(
      26deg,
      transparent 0 42%,
      rgba(123, 92, 57, 0.2) 42.3% 43.2%,
      transparent 43.5% 100%
    ),
    radial-gradient(
      ellipse at 10% 28%,
      rgba(118, 132, 71, 0.34) 0 7%,
      transparent 15%
    ),
    radial-gradient(
      ellipse at 23% 14%,
      rgba(91, 110, 59, 0.34) 0 8%,
      transparent 17%
    ),
    radial-gradient(
      ellipse at 58% 0%,
      rgba(101, 122, 62, 0.28) 0 9%,
      transparent 18%
    ),
    radial-gradient(
      ellipse at 92% 12%,
      rgba(113, 131, 73, 0.32) 0 10%,
      transparent 20%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 76%);
  filter: blur(0.2px);
}

.time-wellness-card::after {
  right: clamp(18px, 7vw, 96px);
  bottom: -60px;
  width: clamp(180px, 23vw, 310px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 188, 174, 0.24);
  border-radius: 46% 54% 51% 49% / 42% 46% 54% 58%;
  background:
    radial-gradient(
      circle at 43% 42%,
      rgba(255, 255, 255, 0.74) 0 18%,
      rgba(255, 244, 241, 0.58) 19% 34%,
      transparent 35%
    ),
    radial-gradient(
      circle at 46% 45%,
      rgba(255, 255, 255, 0.78) 0 9%,
      transparent 10%
    ),
    repeating-radial-gradient(
      circle at 48% 50%,
      rgba(255, 150, 137, 0.2) 0 8px,
      rgba(255, 228, 222, 0.16) 9px 18px
    ),
    linear-gradient(145deg, rgba(246, 105, 95, 0.44), rgba(255, 220, 208, 0.34));
  box-shadow:
    -24px 28px 70px rgba(163, 85, 59, 0.16),
    inset 10px 12px 28px rgba(255, 255, 255, 0.44);
  opacity: 0.78;
}

.time-wellness-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.86fr) minmax(260px, 1.08fr) minmax(
      300px,
      1.3fr
    );
  gap: 14px;
  align-items: stretch;
}

.time-wellness-main,
.time-wellness-meridian,
.time-wellness-season {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(129, 140, 248, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 12px 32px rgba(80, 70, 180, 0.04);
}

.time-wellness-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-wellness-kicker,
.time-wellness-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b6f98;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.time-wellness-kicker .anticon,
.time-wellness-section-title .anticon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.time-wellness-clock {
  margin-top: 10px;
  color: #1e1b4b;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  line-height: 1;
}

.time-wellness-date.ant-typography,
.time-wellness-muted.ant-typography,
.time-wellness-next.ant-typography {
  color: #64748b !important;
  font-size: 13px;
}

.time-wellness-period {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.time-wellness-meridian,
.time-wellness-season {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-wellness-meridian h3.ant-typography,
.time-wellness-season h3.ant-typography {
  margin: 0;
  color: #312e81 !important;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.15;
}

.time-wellness-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.time-wellness-note-grid > div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.56);
}

.time-wellness-note-grid span {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(109, 93, 252, 0.12);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 850;
}

.time-wellness-note-grid p,
.time-wellness-season-tips.ant-typography {
  margin: 8px 0 0;
  color: #475569 !important;
  font-size: 13px;
  line-height: 1.55;
}

.time-wellness-season-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.time-wellness-season-head .ant-typography:last-child {
  color: #0f766e !important;
  font-size: 16px;
  font-weight: 760;
}

.time-wellness-season-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.season-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
}

.season-tag.suitable {
  background: rgba(236, 253, 245, 0.88);
  color: #047857;
}

.season-tag.avoid {
  background: rgba(255, 247, 237, 0.92);
  color: #c2410c;
}

.metric-card.ant-card {
  height: 100%;
}

.metric-card.ant-card > .ant-card-body {
  display: flex;
  min-height: 248px;
  flex-direction: column;
}

.metric-card .ant-statistic {
  flex: none;
}

.metric-card .ant-statistic-title {
  color: #6b6f98;
}

.dashboard-metric-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b6f98;
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-metric-title-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-metric-title-mood .dashboard-metric-title-icon {
  background: rgba(244, 114, 182, 0.12);
  color: #db2777;
}

.dashboard-metric-title-sleep .dashboard-metric-title-icon {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.dashboard-metric-title-exercise .dashboard-metric-title-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.dashboard-metric-title-medical .dashboard-metric-title-icon {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.metric-card .ant-statistic-content {
  color: #312e81;
  font-weight: 760;
  line-height: 1.2;
}

.metric-card .ant-statistic-content-value,
.metric-card .ant-statistic-content-suffix {
  font-weight: inherit;
}

.dashboard-metric-detail {
  min-height: 22px;
  margin: 10px 0 8px;
  color: #6b6f98;
  font-size: 13px;
}

.metric-card .compact-chart-wrapper {
  margin-top: auto;
}

.dashboard-medical-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 14px;
}

.dashboard-medical-summary span {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 14px;
  background: rgba(240, 249, 255, 0.58);
  color: #475569;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.dashboard-medical-summary strong {
  display: inline-block;
  color: #0369a1;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.dashboard-medical-action.ant-btn {
  margin-top: auto;
  border: 0;
  background: linear-gradient(135deg, #0ea5e9, #6d5dfc) !important;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
  font-weight: 750;
}

.medical-records-modal .ant-modal-content {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--healing-border);
  border-radius: 24px;
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(18px);
}

.medical-records-modal .ant-modal-header {
  margin: 0;
  padding: 18px 62px 18px 24px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(
      circle at 4% 0%,
      rgba(219, 234, 254, 0.62),
      transparent 18rem
    ),
    rgba(248, 250, 255, 0.86);
}

.medical-records-modal .ant-modal-title {
  background: transparent;
  color: var(--healing-ink);
}

.medical-records-modal .ant-modal-body {
  padding: 18px 24px 24px;
}

.medical-records-modal .ant-modal-close {
  top: 16px;
  right: 18px;
}

.medical-records-titlebar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.medical-records-title-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--healing-ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.medical-records-title-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  font-size: 18px;
}

.medical-records-content.ant-space {
  display: flex;
  width: 100%;
  max-height: min(72vh, 680px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(109, 93, 252, 0.34) transparent;
  scrollbar-width: thin;
}

.medical-records-content::-webkit-scrollbar {
  width: 8px;
}

.medical-records-content::-webkit-scrollbar-track {
  background: transparent;
}

.medical-records-content::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(109, 93, 252, 0.38);
  background-clip: content-box;
}

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

.medical-records-overview span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: #64748b;
  font-weight: 650;
}

.medical-records-overview strong {
  color: var(--healing-primary);
  font-size: 22px;
  line-height: 1;
}

.medical-records-list .ant-list-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.medical-record-detail.ant-list-item {
  display: block;
  padding: 14px !important;
  border: 1px solid rgba(129, 140, 248, 0.14) !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.medical-record-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.medical-record-detail-body {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.medical-info-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  color: var(--healing-muted);
  font-size: 13px;
  line-height: 1.65;
}

.medical-info-line > span:first-child {
  color: #64748b;
  font-weight: 750;
}

.medical-info-line .ant-typography {
  margin: 0;
  overflow-wrap: anywhere;
}

.medical-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.medical-material-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.74);
}

.medical-material-preview {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  font-size: 24px;
}

.medical-material-preview .ant-image,
.medical-material-preview img {
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.medical-material-preview.image {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.medical-material-preview.pdf {
  background: rgba(248, 113, 113, 0.12);
  color: #dc2626;
}

.medical-material-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.medical-material-open {
  color: var(--healing-primary);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-mini-progress {
  margin-top: 8px;
}

.dashboard-mini-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 34px;
  margin-top: 12px;
}

.dashboard-mini-bar {
  width: 100%;
  min-width: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(
    180deg,
    rgba(109, 93, 252, 0.78),
    rgba(59, 130, 246, 0.52)
  );
  box-shadow: 0 6px 16px rgba(109, 93, 252, 0.16);
}

.dashboard-equal-card.ant-card {
  display: flex;
  height: clamp(430px, 38vw, 520px);
  flex-direction: column;
  overflow: hidden;
}

.dashboard-equal-card > .ant-card-head {
  flex: none;
}

.dashboard-equal-card > .ant-card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.dashboard-equal-card > .ant-card-body::-webkit-scrollbar {
  width: 8px;
}

.dashboard-equal-card > .ant-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-equal-card > .ant-card-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.42);
}

.snapshot-overview {
  padding: 16px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at top left,
      rgba(191, 219, 254, 0.34),
      transparent 18rem
    ),
    rgba(255, 255, 255, 0.54);
}

.snapshot-grid {
  width: 100%;
}

.snapshot-section {
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.snapshot-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.snapshot-section-header .ant-typography,
.snapshot-recommendations .ant-typography {
  margin: 0;
}

.snapshot-recommendations {
  height: auto;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 96px;
  padding: 10px 6px 0;
  border-radius: 14px;
  background: rgba(243, 240, 255, 0.55);
}

.mini-bar-item {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 6px;
}

.mini-bar-track {
  display: flex;
  width: 100%;
  min-width: 10px;
  max-width: 24px;
  height: 68px;
  align-items: end;
  justify-content: center;
}

.mini-bar {
  width: 100%;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(
    180deg,
    rgba(109, 93, 252, 0.86),
    rgba(56, 189, 248, 0.58)
  );
  box-shadow: 0 8px 18px rgba(80, 70, 180, 0.12);
}

.mini-bar-label {
  overflow: hidden;
  max-width: 42px;
  color: #7c7aa5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-chart-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.compact-chart-expand {
  position: absolute !important;
  top: 2px;
  right: 2px;
  z-index: 2;
  color: var(--healing-primary) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(129, 140, 248, 0.16) !important;
  opacity: 0;
  box-shadow: 0 8px 20px rgba(80, 70, 180, 0.1);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.compact-chart-wrapper:hover .compact-chart-expand,
.compact-chart-expand:focus-visible {
  opacity: 1;
}

.compact-chart-expand:hover {
  transform: translateY(-1px);
}

.compact-chart-empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(243, 240, 255, 0.44);
}

.compact-chart-empty .ant-empty {
  margin: 0;
}

.compact-chart-empty .ant-empty-image {
  height: 28px;
  margin-bottom: 4px;
}

.compact-chart-empty .ant-empty-description {
  color: var(--healing-muted);
  font-size: 12px;
}

.chart-tooltip {
  padding: 10px 14px;
  background: var(--healing-surface-strong);
  border: 1px solid var(--healing-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(80, 70, 180, 0.12);
  backdrop-filter: blur(12px);
}

.chart-tooltip-detail {
  min-width: 138px;
}

.chart-tooltip-label {
  color: var(--healing-muted);
  font-size: 12px;
}

.chart-tooltip-value {
  margin-top: 2px;
  color: var(--healing-ink);
  font-weight: 600;
}

.trend-detail-modal .ant-modal-content {
  background: rgba(243, 240, 255, 0.86) !important;
  border: 1px solid var(--healing-border);
  border-radius: 22px !important;
  box-shadow: 0 28px 80px rgba(80, 70, 180, 0.18);
  backdrop-filter: blur(20px);
}

.trend-detail-modal .ant-modal-header {
  background: transparent !important;
  border-bottom: 1px solid var(--healing-border);
}

.trend-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 28px;
}

.trend-detail-title .ant-typography {
  margin: 0;
}

.trend-detail-chart {
  height: 400px;
  padding-top: 10px;
}

.trend-detail-empty {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
}

.trend-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--healing-border);
}

.trend-stats-bar .stat-item {
  min-width: 120px;
}

.trend-stats-bar .stat-label {
  color: var(--healing-muted) !important;
  font-size: 12px;
}

.trend-stats-bar .stat-value {
  color: var(--healing-ink) !important;
  font-size: 18px;
  font-weight: 600;
}

.recharts-area-curve,
.recharts-line-curve {
  filter: drop-shadow(0 2px 4px rgba(109, 93, 252, 0.18));
}

.settings-card .ant-tabs-nav {
  margin-bottom: 22px;
}

.settings-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-users-card.ant-card .ant-card-body {
  padding: 20px;
}

.admin-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-users-heading {
  min-width: 0;
}

.admin-users-heading-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-users-search {
  width: min(100%, 320px);
}

.admin-users-card .ant-table {
  background: transparent;
}

.admin-users-card .ant-table-thead > tr > th {
  background: rgba(248, 250, 252, 0.68) !important;
  color: #6b6f98;
  font-weight: 800;
}

.admin-users-card .ant-table-tbody > tr > td {
  border-bottom-color: rgba(129, 140, 248, 0.12);
}

.admin-user-identity .ant-typography {
  margin: 0;
}

.admin-user-actions .ant-btn {
  font-weight: 700;
}

.settings-tab-panel {
  max-width: 980px;
}

.settings-tab-panel > .ant-typography:first-child {
  margin-top: 0;
}

.settings-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.settings-avatar-preview {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--healing-blue),
    var(--healing-purple)
  ) !important;
  box-shadow: 0 8px 22px rgba(109, 93, 252, 0.24);
}

.settings-section-divider {
  padding-top: 16px;
  margin: 24px 0 16px;
  border-top: 1px solid var(--healing-border);
}

.settings-section-title {
  margin-bottom: 16px;
  color: var(--healing-ink);
  font-size: 14px;
  font-weight: 700;
}

.settings-section-card {
  padding: 18px;
  margin-top: 18px;
  border: 1px solid var(--healing-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.settings-actions {
  margin-top: 8px;
}

.settings-advanced-collapse.ant-collapse {
  margin-top: 8px;
}

.settings-advanced-collapse .ant-collapse-header {
  padding: 8px 0 !important;
}

.settings-advanced-collapse .ant-collapse-content-box {
  padding: 16px 0 0 !important;
}

.settings-bmi-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--healing-border);
  border-radius: 12px;
  background: var(--healing-surface);
}

.settings-bmi-display strong {
  color: var(--healing-primary);
  font-size: 18px;
}

.settings-data-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.settings-data-stat-card {
  padding: 14px 18px;
  border: 1px solid var(--healing-border);
  border-radius: 14px;
  background: var(--healing-surface);
}

.settings-data-stat-card .stat-number {
  color: var(--healing-primary);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.settings-data-stat-card .stat-label {
  margin-top: 4px;
  color: var(--healing-muted);
  font-size: 13px;
}

.settings-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-color-swatch {
  width: 36px;
  height: 36px;
  border: 1px solid var(--healing-border);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.settings-muted-note {
  margin-top: 18px;
}

.settings-danger-zone {
  padding: 20px;
  margin-top: 28px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 16px;
  background: rgba(254, 242, 242, 0.5);
}

.settings-danger-zone .ant-typography {
  margin-top: 0;
}

@media (max-width: 640px) {
  .trend-detail-modal {
    max-width: calc(100vw - 16px);
  }

  .trend-detail-title {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 20px;
  }

  .trend-detail-chart {
    height: 320px;
  }

  .trend-stats-bar {
    gap: 12px;
  }

  .trend-stats-bar .stat-item {
    min-width: calc(50% - 8px);
  }
}

.chat-layout {
  position: relative;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
  height: calc(100vh - clamp(48px, 4.4vw, 108px));
  transition:
    grid-template-columns 0.24s ease,
    gap 0.24s ease;
}

.chat-layout-sidebar-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
}

.chat-sidebar-open-button.ant-btn {
  position: sticky;
  top: 14px;
  z-index: 5;
  align-self: start;
  justify-self: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin-top: 14px;
  border: 0;
  background: linear-gradient(
    135deg,
    var(--healing-primary),
    var(--healing-blue)
  );
  box-shadow:
    0 14px 30px rgba(80, 70, 180, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.chat-sidebar-open-button.ant-btn:hover {
  box-shadow:
    0 18px 36px rgba(80, 70, 180, 0.3),
    0 0 0 4px rgba(109, 93, 252, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.chat-sidebar {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  background: rgba(248, 250, 255, 0.74);
  border: 1px solid var(--healing-border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chat-new-button.ant-btn {
  width: 100%;
  height: 42px;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    var(--healing-primary),
    var(--healing-blue)
  );
  border: 0;
  box-shadow: 0 14px 26px rgba(109, 93, 252, 0.22);
  font-weight: 700;
}

.chat-sidebar-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-sidebar-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #312e81;
}

.chat-sidebar-title .anticon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  font-size: 14px;
}

.chat-sidebar-collapse-button.ant-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  color: #4f46e5;
}

.chat-sidebar-collapse-button.ant-btn:hover {
  background: rgba(109, 93, 252, 0.1);
  color: #4338ca;
}

.chat-thread-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 2px 6px 4px 2px;
  scroll-padding-top: 2px;
  scrollbar-color: rgba(129, 140, 248, 0.22) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.chat-thread-list::-webkit-scrollbar {
  width: 8px;
}

.chat-thread-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.chat-thread-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: transparent;
}

.chat-thread-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.22);
  background-clip: content-box;
}

.chat-thread-list:hover::-webkit-scrollbar-thumb {
  background: rgba(109, 93, 252, 0.38);
  background-clip: content-box;
}

.chat-sidebar-state {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
}

.chat-thread-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 11px 10px;
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-left: 3px solid rgba(129, 140, 248, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.88),
      rgba(238, 242, 255, 0.7)
    ),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 18px rgba(80, 70, 180, 0.05);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.chat-thread-card:hover,
.chat-thread-card.active {
  border-left-color: var(--healing-primary);
  border-color: rgba(109, 93, 252, 0.3);
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.18),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      rgba(238, 242, 255, 0.96),
      rgba(245, 243, 255, 0.82)
    );
  box-shadow: 0 12px 26px rgba(80, 70, 180, 0.12);
}

.chat-thread-card:hover {
  transform: translateY(-1px);
}

.chat-thread-card.active {
  border-left-color: #4f46e5;
  box-shadow:
    0 12px 26px rgba(80, 70, 180, 0.12),
    inset 0 0 0 1px rgba(79, 70, 229, 0.08);
  transform: none;
}

.chat-thread-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.chat-thread-card:hover .chat-thread-icon,
.chat-thread-card.active .chat-thread-icon {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  transform: scale(1.04);
}

.chat-thread-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.chat-thread-copy .ant-typography {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-delete-wrap {
  display: inline-flex;
  justify-content: flex-end;
}

.chat-thread {
  cursor: pointer;
  align-items: flex-start !important;
  gap: 8px;
  border-radius: 14px;
  padding: 10px !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.chat-thread:hover,
.chat-thread.active {
  background: rgba(109, 93, 252, 0.12);
  transform: translateY(-1px);
}

.chat-thread .ant-list-item-meta-title {
  margin-bottom: 2px !important;
}

.chat-thread .ant-list-item-meta-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--healing-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chat-thread .ant-list-item-action {
  margin-inline-start: 4px;
}

.chat-thread-delete {
  opacity: 0.48;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}

.chat-thread:hover .chat-thread-delete,
.chat-thread.active .chat-thread-delete,
.chat-thread-card:hover .chat-thread-delete,
.chat-thread-card.active .chat-thread-delete {
  opacity: 1;
}

.chat-main {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--healing-border);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 18% 8%,
      rgba(191, 219, 254, 0.42),
      transparent 20rem
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(243, 240, 255, 0.76) 100%
    );
  box-shadow:
    var(--healing-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.chat-window {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 22px 22px 14px;
}

.chat-window-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-empty {
  position: relative;
  display: flex;
  width: min(520px, 100%);
  min-height: 300px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  padding: 36px 22px 28px;
  text-align: center;
  animation: orb-entrance 0.8s ease-out both;
}

@keyframes orb-entrance {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.orb-aura {
  position: absolute;
  z-index: -2;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 45% 42%,
      rgba(109, 93, 252, 0.14),
      transparent 55%
    ),
    radial-gradient(
      circle at 58% 56%,
      rgba(59, 130, 246, 0.1),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(167, 139, 250, 0.08),
      transparent 65%
    );
  filter: blur(28px);
  transform: translateY(-40px);
  animation: orb-aura-breathe 4.5s ease-in-out infinite;
}

@keyframes orb-aura-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(-40px) scale(1.06);
  }

  50% {
    opacity: 1;
    transform: translateY(-42px) scale(0.94);
  }
}

.orb-rings {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  transform: translateY(-40px);
}

.orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 50%;
  animation: orb-ring-spin 36s linear infinite;
}

.orb-ring::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(129, 140, 248, 0.1);
  border-radius: 50%;
  content: "";
}

.orb-ring-reverse {
  inset: 24px;
  border-color: rgba(167, 139, 250, 0.12);
  animation-direction: reverse;
  animation-duration: 28s;
}

.orb-ring-reverse::before {
  inset: 14px;
  border-color: rgba(167, 139, 250, 0.08);
}

@keyframes orb-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.orb-core {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 38% 32%,
      rgba(255, 255, 255, 0.5),
      transparent 28px
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(196, 181, 253, 0.85) 24%,
      rgba(167, 139, 250, 0.7) 42%,
      rgba(109, 93, 252, 0.55) 62%,
      rgba(59, 130, 246, 0.3) 82%,
      transparent 100%
    );
  box-shadow:
    0 0 40px rgba(109, 93, 252, 0.2),
    0 0 80px rgba(109, 93, 252, 0.1),
    inset 0 -8px 24px rgba(59, 130, 246, 0.15),
    inset 0 8px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-40px);
  animation: orb-core-breathe 4.5s ease-in-out infinite;
}

@keyframes orb-core-breathe {
  0%,
  100% {
    box-shadow:
      0 0 36px rgba(109, 93, 252, 0.18),
      0 0 72px rgba(109, 93, 252, 0.08),
      inset 0 -8px 24px rgba(59, 130, 246, 0.15),
      inset 0 8px 20px rgba(255, 255, 255, 0.25);
    transform: translateY(-40px) scale(0.96);
  }

  50% {
    box-shadow:
      0 0 52px rgba(109, 93, 252, 0.28),
      0 0 96px rgba(109, 93, 252, 0.14),
      inset 0 -8px 24px rgba(59, 130, 246, 0.18),
      inset 0 8px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-40px) scale(1.04);
  }
}

.orb-highlight {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 26px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(3px);
  transform: rotate(-20deg);
}

.orb-inner-glow {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 38%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
}

.orb-reflection {
  position: absolute;
  z-index: 0;
  width: 120px;
  height: 24px;
  margin-top: -16px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(109, 93, 252, 0.1),
    transparent 70%
  );
  filter: blur(6px);
  animation: orb-reflection-breathe 4.5s ease-in-out infinite;
}

@keyframes orb-reflection-breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scaleX(1.04);
  }

  50% {
    opacity: 0.9;
    transform: scaleX(0.96);
  }
}

.orb-particles {
  position: absolute;
  z-index: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
  transform: translateY(-40px);
}

.orb-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
  transform: translate(var(--px), var(--py));
  animation: orb-particle-drift var(--duration, 9s) ease-in-out infinite;
}

.orb-particle:nth-child(2) {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.orb-particle:nth-child(3) {
  width: 3px;
  height: 3px;
  background: rgba(109, 93, 252, 0.4);
}

.orb-particle:nth-child(4) {
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
}

@keyframes orb-particle-drift {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(var(--px), var(--py));
  }

  25% {
    opacity: 0.8;
    transform: translate(calc(var(--px) + 8px), calc(var(--py) - 6px));
  }

  50% {
    opacity: 0.4;
    transform: translate(calc(var(--px) - 4px), calc(var(--py) + 10px));
  }

  75% {
    opacity: 0.7;
    transform: translate(calc(var(--px) + 6px), calc(var(--py) + 4px));
  }
}

.orb-empty-copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 480px;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.orb-empty-copy .ant-typography {
  margin: 0;
}

.orb-empty-copy .ant-typography:not(h4) {
  color: #5b5f8f !important;
  font-size: 14px;
  line-height: 1.75;
}

.orb-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.orb-prompts button {
  cursor: pointer;
  padding: 5px 12px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #6b6f98;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(80, 70, 180, 0.06);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.orb-prompts button:hover {
  background: rgba(109, 93, 252, 0.12);
  color: var(--healing-primary);
  transform: translateY(-1px);
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  white-space: normal;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message-stack {
  display: flex;
  max-width: 76%;
  flex-direction: column;
  gap: 8px;
}

.chat-message.user .chat-message-stack {
  width: min(100%, 940px);
  max-width: 92%;
  align-items: flex-end;
}

.chat-message-avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(80, 70, 180, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.chat-message-avatar.assistant {
  background: linear-gradient(
    135deg,
    var(--healing-primary),
    var(--healing-purple)
  );
  color: #fff;
}

.chat-message-avatar.user {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.chat-message-avatar.user img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bubble {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e1b4b;
  line-height: 1.7;
  text-align: left;
  box-shadow: 0 8px 22px rgba(80, 70, 180, 0.08);
}

.chat-message.user .chat-bubble {
  align-self: flex-end;
  background: linear-gradient(
    135deg,
    rgba(109, 93, 252, 0.9),
    rgba(59, 130, 246, 0.86)
  );
  color: #fff;
  border-top-right-radius: 8px;
}

.chat-message.assistant .chat-bubble {
  align-self: flex-start;
  border-top-left-radius: 8px;
}

.chat-markdown {
  color: inherit;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.chat-markdown > :first-child {
  margin-top: 0 !important;
}

.chat-markdown > :last-child {
  margin-bottom: 0 !important;
}

.chat-markdown p {
  margin: 0 0 10px;
}

.chat-markdown h1,
.chat-markdown h2,
.chat-markdown h3,
.chat-markdown h4,
.chat-markdown h5,
.chat-markdown h6 {
  margin: 18px 0 10px;
  color: inherit;
  font-weight: 800;
  line-height: 1.45;
}

.chat-markdown h1 {
  font-size: 22px;
}

.chat-markdown h2 {
  font-size: 19px;
}

.chat-markdown h3 {
  font-size: 17px;
}

.chat-markdown h4,
.chat-markdown h5,
.chat-markdown h6 {
  font-size: 15px;
}

.chat-markdown strong {
  font-weight: 800;
}

.chat-markdown ul,
.chat-markdown ol {
  margin: 8px 0 12px;
  padding-left: 1.45em;
}

.chat-markdown li {
  margin: 4px 0;
}

.chat-markdown li > p {
  margin: 4px 0;
}

.chat-markdown blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 3px solid rgba(109, 93, 252, 0.28);
  border-radius: 0 12px 12px 0;
  background: rgba(109, 93, 252, 0.08);
  color: #475569;
}

.chat-markdown hr {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: rgba(129, 140, 248, 0.18);
}

.chat-markdown code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(109, 93, 252, 0.1);
  color: #4f46e5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.chat-markdown pre {
  margin: 12px 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  line-height: 1.7;
  white-space: pre;
}

.chat-markdown pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
}

.chat-markdown-table-wrap {
  width: 100%;
  margin: 12px 0;
  overflow-x: auto;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.chat-markdown table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}

.chat-markdown th,
.chat-markdown td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.14);
  text-align: left;
  vertical-align: top;
}

.chat-markdown tr:last-child td {
  border-bottom: 0;
}

.chat-markdown th {
  background: rgba(109, 93, 252, 0.08);
  color: #312e81;
  font-weight: 800;
}

.chat-markdown a {
  color: var(--healing-primary);
  font-weight: 700;
  text-decoration: none;
}

.chat-markdown a:hover {
  text-decoration: underline;
}

.chat-message.user .chat-markdown blockquote {
  border-left-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.chat-message.user .chat-markdown code {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.chat-message.user .chat-markdown-table-wrap {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.chat-message.user .chat-markdown th {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.chat-message.user .chat-markdown th,
.chat-message.user .chat-markdown td {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.chat-message.user .chat-markdown a {
  color: #fff;
  text-decoration: underline;
}

.chat-message.error .chat-bubble {
  background: #fee2e2;
  color: #991b1b;
}

.chat-message.stopped .chat-bubble {
  color: #475569;
}

.chat-status {
  color: var(--healing-muted);
  font-size: 12px;
}

.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.composer-attachments {
  margin: 0 16px 8px;
}

.chat-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--healing-ink);
  font-size: 12px;
  text-decoration: none;
}

.chat-attachment-chip button {
  border: 0;
  background: transparent;
  color: var(--healing-muted);
  cursor: pointer;
}

.chat-image-link {
  display: inline-flex;
}

.chat-attachments .ant-image {
  display: inline-flex;
}

.chat-image-thumb {
  cursor: zoom-in;
  max-width: 180px;
  max-height: 140px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(80, 70, 180, 0.14);
}

.chat-rag-status {
  margin-top: 8px;
  color: var(--healing-muted);
  font-size: 12px;
}

.chat-citations {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(129, 140, 248, 0.18);
}

.chat-citations-title {
  margin-bottom: 6px;
  color: var(--healing-muted);
  font-size: 12px;
  font-weight: 700;
}

.chat-citation-item {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(245, 243, 255, 0.72);
  font-size: 12px;
}

.chat-citation-item p {
  margin: 4px 0 0;
  color: #475569;
}

.knowledge-document-strip {
  display: grid;
  max-height: 184px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding: 0 2px 2px;
  scrollbar-color: rgba(129, 140, 248, 0.28) transparent;
  scrollbar-width: thin;
}

.knowledge-document-strip::-webkit-scrollbar {
  width: 8px;
}

.knowledge-document-strip::-webkit-scrollbar-track {
  background: transparent;
}

.knowledge-document-strip::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.28);
  background-clip: content-box;
}

.message-attachment-strip {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 8px;
  align-self: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 2px 4px;
  scrollbar-color: rgba(129, 140, 248, 0.26) transparent;
  scrollbar-width: thin;
}

.chat-message.user .message-attachment-strip {
  align-self: flex-end;
  justify-content: flex-end;
}

.message-attachment-strip::-webkit-scrollbar {
  height: 6px;
}

.message-attachment-strip::-webkit-scrollbar-track {
  background: transparent;
}

.message-attachment-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.26);
}

.message-document-card {
  width: clamp(176px, 24vw, 248px);
  min-width: 176px;
  min-height: 54px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 10px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.message-document-card:hover {
  color: inherit;
  text-decoration: none;
}

.message-image-attachment {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none;
}

.knowledge-document-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 40px 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(248, 250, 252, 0.76)
    ),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.message-document-card.knowledge-document-card:hover {
  transform: translateY(-1px);
}

.message-document-card .knowledge-document-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 16px;
}

.message-document-card .knowledge-document-copy {
  gap: 2px;
}

.message-document-card .knowledge-document-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.message-document-card .knowledge-document-copy span {
  font-size: 11px;
}

.knowledge-document-card:hover {
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 30px rgba(80, 70, 180, 0.11);
  transform: translateY(-1px);
}

.knowledge-document-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  font-size: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 16px rgba(15, 23, 42, 0.12);
}

.knowledge-document-icon.markdown,
.knowledge-document-icon.text {
  background: linear-gradient(135deg, #6384ff, #4f6df5);
}

.knowledge-document-icon.sheet {
  background: linear-gradient(135deg, #67c77a, #22a455);
}

.knowledge-document-icon.pdf {
  background: linear-gradient(135deg, #fb7185, #dc2626);
}

.knowledge-document-icon.word {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.knowledge-document-icon.image {
  background: linear-gradient(135deg, #38bdf8, #0f766e);
}

.knowledge-document-icon.code {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.knowledge-document-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.knowledge-document-copy strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-document-copy span {
  color: #7c8798;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.message-document-card.knowledge-document-card {
  width: clamp(176px, 24vw, 248px);
  min-width: 176px;
  min-height: 54px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 10px;
  border-radius: 14px;
}

.message-document-card .knowledge-document-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 16px;
}

.message-document-card .knowledge-document-copy {
  gap: 2px;
}

.message-document-card .knowledge-document-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.message-document-card .knowledge-document-copy span {
  font-size: 11px;
}

.knowledge-document-delete.ant-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  color: #94a3b8;
  opacity: 0.72;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.knowledge-document-card:hover .knowledge-document-delete.ant-btn,
.knowledge-document-delete.ant-btn:focus-visible {
  opacity: 1;
}

.knowledge-document-delete.ant-btn:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.12);
  color: #dc2626;
  transform: scale(1.04);
}

.chat-composer {
  flex-shrink: 0;
  width: 100%;
  padding: 6px 22px 10px;
  border-top: 0;
  background: transparent;
}

.chat-composer-shell {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 18px 46px rgba(80, 70, 180, 0.14),
    0 0 0 6px rgba(255, 255, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.chat-composer-shell:focus-within {
  border-color: rgba(109, 93, 252, 0.52);
  box-shadow:
    0 20px 48px rgba(109, 93, 252, 0.18),
    0 0 0 4px rgba(109, 93, 252, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chat-composer-input.ant-input {
  flex: none;
  width: 100%;
  min-height: 74px !important;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--healing-ink);
  font-size: 18px;
  line-height: 1.7;
  resize: none;
  box-shadow: none;
}

.chat-composer-input.ant-input:focus,
.chat-composer-input.ant-input-focused {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.chat-composer-input.ant-input::placeholder {
  color: rgba(100, 116, 139, 0.58);
  font-weight: 600;
}

.chat-composer-toolbar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-composer-modes {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-mode-pill {
  position: relative;
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(100, 116, 139, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.96),
      rgba(226, 232, 240, 0.88)
    ),
    rgba(226, 232, 240, 0.9);
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(15, 23, 42, 0.04);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.chat-mode-pill.active {
  border-color: rgba(67, 56, 202, 0.78);
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.34),
      transparent 34%
    ),
    linear-gradient(135deg, #1d4ed8 0%, #4f46e5 52%, #6d28d9 100%);
  color: #fff;
  box-shadow:
    0 14px 32px rgba(67, 56, 202, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.chat-mode-pill:hover:not(:disabled) {
  border-color: rgba(99, 102, 241, 0.58);
  box-shadow:
    0 14px 30px rgba(80, 70, 180, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.chat-mode-pill.active:hover:not(:disabled) {
  box-shadow:
    0 18px 38px rgba(79, 70, 229, 0.34),
    0 0 0 4px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chat-mode-pill:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.chat-mode-pill:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.chat-mode-pill.active:focus-visible {
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.2),
    0 14px 32px rgba(67, 56, 202, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.chat-mode-pill:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.chat-mode-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.chat-mode-pill.active .chat-mode-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chat-mode-pill:hover:not(:disabled) .chat-mode-icon {
  transform: rotate(-8deg) scale(1.04);
}

.chat-mode-icon .anticon {
  font-size: 15px;
}

.chat-mode-label {
  white-space: nowrap;
}

.chat-mode-switch {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 20px;
  align-items: center;
  flex: none;
  padding: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.16);
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.chat-mode-pill.active .chat-mode-switch {
  background: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 3px rgba(30, 27, 75, 0.16),
    0 0 14px rgba(255, 255, 255, 0.18);
}

.chat-mode-switch-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  transform: translateX(0);
  transition:
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease;
}

.chat-mode-pill.active .chat-mode-switch-thumb {
  transform: translateX(14px);
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.28);
}

.chat-composer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.chat-composer-actions .ant-upload-wrapper,
.chat-composer-actions .ant-upload {
  display: inline-flex;
}

.chat-upload-button.ant-btn {
  width: 46px;
  min-width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  color: #111827;
  font-size: 24px;
  box-shadow: none;
}

.chat-upload-button.ant-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
}

.chat-composer-action.ant-btn {
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(109, 93, 252, 0.24);
}

.chat-composer-action.ant-btn:disabled {
  border-color: transparent;
  background: rgba(167, 177, 242, 0.54);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.chat-safety-note {
  margin-top: 8px;
  color: rgba(100, 116, 139, 0.78);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.diagnosis-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.diagnosis-report-page {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.diagnosis-report-header {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.16);
}

.diagnosis-report-back.ant-btn {
  margin: 0 0 14px -12px;
  color: #475569;
}

.diagnosis-report-kicker.ant-typography {
  display: block;
  margin-bottom: 5px;
  color: var(--healing-primary) !important;
  font-size: 12px;
  font-weight: 800;
}

.diagnosis-report-header h2.ant-typography {
  margin: 0 0 8px;
  color: #172554 !important;
  font-size: 30px;
  line-height: 1.3;
}

.diagnosis-report-meta .ant-typography {
  font-size: 13px;
}

.diagnosis-form-card .ant-card-body {
  padding-bottom: 18px;
}

.diagnosis-form-steps {
  padding: 2px 4px 6px;
}

.diagnosis-form-step-panel {
  min-height: 420px;
  padding-top: 2px;
}

.diagnosis-form-step-panel > .ant-typography {
  margin: 0 0 16px;
}

.diagnosis-step-heading {
  margin-bottom: 16px;
}

.diagnosis-step-heading .ant-typography {
  margin-bottom: 4px;
}

.diagnosis-step-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.diagnosis-question-card {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  margin-bottom: 18px;
  padding: 0;
}

.diagnosis-question-card.is-loading {
  display: none !important;
}

.diagnosis-followup-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
}

.diagnosis-question-header {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.diagnosis-question-summary.ant-typography {
  margin: 0 0 12px;
  color: #5f638e !important;
  line-height: 1.7;
}

.diagnosis-question-icon {
  flex: 0 0 auto;
  color: #5b5df6;
  font-size: 18px;
}

.diagnosis-question-list {
  display: grid !important;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
  color: #201d4f;
}

.diagnosis-question-item {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
}

.diagnosis-question-title {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.diagnosis-question-title .ant-typography {
  display: block;
  margin: 0;
  line-height: 1.75;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.diagnosis-question-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #5b5df6;
  font-size: 13px;
  font-weight: 800;
  background: #eef2ff;
  border-radius: 999px;
}

.diagnosis-question-answer.ant-form-item {
  margin-bottom: 0;
}

.diagnosis-quick-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px 36px;
}

.diagnosis-quick-answers .ant-btn {
  height: auto;
  min-height: 32px;
  padding-block: 4px;
  border-radius: 6px;
  white-space: normal;
}

.diagnosis-optional-label {
  display: block;
  margin: 2px 0 4px;
  font-size: 13px;
}

.diagnosis-safety-check {
  margin: 2px 0 8px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.diagnosis-safety-options .ant-radio-button-wrapper {
  min-width: 104px;
  text-align: center;
}

.diagnosis-severity-group .ant-radio-button-wrapper {
  min-width: 64px;
  text-align: center;
}

.diagnosis-quick-optional .ant-collapse-header {
  padding-inline: 0 !important;
  color: #475569 !important;
  font-weight: 600;
}

.diagnosis-quick-optional .ant-collapse-content-box {
  padding-inline: 0 !important;
}

.diagnosis-context-option.ant-form-item {
  margin: 8px 0 0;
}

.diagnosis-red-flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.diagnosis-red-flag-grid .ant-checkbox-wrapper {
  min-height: 42px;
  margin-inline-start: 0;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
}

.diagnosis-collapsible-fields {
  margin-top: 10px;
  border-top: 1px solid rgba(129, 140, 248, 0.12);
}

.diagnosis-collapsible-fields .ant-collapse-item {
  border-bottom-color: rgba(129, 140, 248, 0.12);
}

.diagnosis-collapsible-fields .ant-collapse-header {
  padding-inline: 0 !important;
  font-weight: 700;
}

.diagnosis-collapsible-fields .ant-collapse-content-box {
  padding-inline: 0 !important;
  padding-bottom: 6px !important;
}

.diagnosis-form-hint {
  margin-bottom: 16px;
  border-radius: 14px;
}

.diagnosis-option-group.ant-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.diagnosis-option-group .ant-radio-button-wrapper {
  height: 34px;
  border-inline-start: 1px solid #d9d9d9;
  border-radius: 9px;
  line-height: 32px;
}

.diagnosis-option-group .ant-radio-button-wrapper::before {
  display: none;
}

.diagnosis-form-card .ant-slider {
  margin-inline: 8px;
}

.diagnosis-form-footer {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(129, 140, 248, 0.14);
}

.diagnosis-form-footer .ant-btn:last-child {
  justify-self: end;
}

.diagnosis-empty-card .ant-empty {
  margin-block: 28px;
}

.diagnosis-decision-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.diagnosis-summary-card.ant-card {
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-top: 4px solid #3b82f6;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(191, 219, 254, 0.42),
      transparent 20rem
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(221, 214, 254, 0.52),
      transparent 22rem
    ),
    rgba(255, 255, 255, 0.72) !important;
}

.diagnosis-summary-card.safety-emergency {
  border-top-color: #ef4444;
}

.diagnosis-summary-card.safety-urgent {
  border-top-color: #f97316;
}

.diagnosis-summary-card.safety-clinician_recommended {
  border-top-color: #3b82f6;
}

.diagnosis-summary-card.safety-supportive {
  border-top-color: #22c55e;
}

.diagnosis-summary-card > .ant-card-body {
  padding: 24px 28px 26px;
}

.diagnosis-summary-head,
.diagnosis-expert-header,
.diagnosis-advice-header,
.diagnosis-section-title,
.diagnosis-mini-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diagnosis-summary-head,
.diagnosis-expert-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.diagnosis-summary-head .ant-typography,
.diagnosis-expert-header .ant-typography,
.diagnosis-advice-header .ant-typography,
.diagnosis-section-title .ant-typography,
.diagnosis-mini-title .ant-typography,
.diagnosis-info-list .ant-typography {
  margin: 0;
}

.diagnosis-eyebrow {
  display: inline-flex;
  margin-bottom: 4px;
  color: #6b6f98 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnosis-safety-tag {
  margin-inline-end: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.diagnosis-quality-alert,
.diagnosis-disclaimer {
  margin: 12px 0 14px;
  border-radius: 16px;
}

.diagnosis-followup-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
  padding: 10px 12px;
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.diagnosis-followup-hint .ant-typography {
  line-height: 1.65;
}

.diagnosis-conclusion-panel {
  margin: 0 0 16px;
  padding: 14px 20px;
  border: 0;
  border-left: 5px solid #22c55e;
  border-radius: 0 8px 8px 0;
  background: rgba(240, 253, 244, 0.58);
  box-shadow: none;
}

.diagnosis-conclusion-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
}

.diagnosis-conclusion-text {
  max-width: 920px;
  color: #172554 !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.diagnosis-conclusion-text > :first-child {
  margin-top: 0 !important;
}

.diagnosis-conclusion-text > :last-child {
  margin-bottom: 0 !important;
}

.diagnosis-conclusion-text p {
  margin: 0 0 12px;
}

.diagnosis-conclusion-text strong {
  font-weight: 800;
}

.diagnosis-conclusion-text ul,
.diagnosis-conclusion-text ol {
  margin: 8px 0 14px;
  padding-left: 1.55em;
}

.diagnosis-conclusion-text li {
  margin: 7px 0;
  padding-left: 3px;
}

.diagnosis-conclusion-text li::marker {
  color: #15803d;
  font-weight: 800;
}

.diagnosis-conclusion-text li > p {
  margin: 0;
}

.diagnosis-conclusion-text h1,
.diagnosis-conclusion-text h2,
.diagnosis-conclusion-text h3,
.diagnosis-conclusion-text h4,
.diagnosis-conclusion-text h5,
.diagnosis-conclusion-text h6 {
  margin: 16px 0 8px;
  color: inherit;
  font-size: 1em;
  font-weight: 800;
  line-height: 1.5;
}

.diagnosis-conclusion-text blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 3px solid rgba(21, 128, 61, 0.4);
  background: rgba(255, 255, 255, 0.48);
  color: inherit;
}

.diagnosis-markdown-table-wrap {
  width: 100%;
  margin: 12px 0;
  overflow-x: auto;
  border: 1px solid rgba(21, 128, 61, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.diagnosis-conclusion-text table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 14px;
}

.diagnosis-conclusion-text th,
.diagnosis-conclusion-text td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(21, 128, 61, 0.14);
  text-align: left;
  vertical-align: top;
}

.diagnosis-conclusion-text th {
  background: rgba(21, 128, 61, 0.08);
  font-weight: 800;
}

.diagnosis-conclusion-text a {
  color: var(--healing-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.diagnosis-summary-text.ant-typography {
  margin: 0 0 16px;
  color: #312e81 !important;
  font-size: 16px;
  line-height: 1.9;
}

.diagnosis-detail-section {
  padding-top: 4px;
  border-top: 1px solid rgba(129, 140, 248, 0.16);
}

.diagnosis-report-section-head {
  padding: 18px 2px 4px;
}

.diagnosis-report-section-head .ant-typography {
  margin: 0;
}

.diagnosis-report-section-head h3.ant-typography {
  color: #172554 !important;
  font-size: 22px;
  line-height: 1.4;
}

.diagnosis-focus-row,
.diagnosis-detail-row,
.diagnosis-advice-grid,
.diagnosis-expert-grid {
  width: 100%;
}

.diagnosis-focus-card,
.diagnosis-section,
.diagnosis-info-list,
.diagnosis-rationale-box,
.diagnosis-mini-section {
  height: 100%;
  padding: 15px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.diagnosis-focus-card {
  min-height: 148px;
}

.diagnosis-focus-card.tone-emergency {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.72);
}

.diagnosis-focus-card.tone-urgent {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 247, 237, 0.72);
}

.diagnosis-focus-card.tone-clinician_recommended {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(239, 246, 255, 0.72);
}

.diagnosis-focus-card.tone-supportive {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(240, 253, 244, 0.72);
}

.diagnosis-focus-icon,
.diagnosis-advice-icon,
.diagnosis-expert-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 12px;
  background: rgba(109, 93, 252, 0.12);
  color: var(--healing-primary);
  font-size: 18px;
}

.diagnosis-focus-card .ant-typography:last-child {
  margin: 8px 0 0;
  line-height: 1.75;
}

.diagnosis-advice-card.ant-card,
.diagnosis-expert-card.ant-card {
  height: 100%;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 16px;
}

.diagnosis-advice-card .ant-card-body,
.diagnosis-expert-card .ant-card-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.diagnosis-advice-card.western,
.diagnosis-expert-card.western {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(147, 197, 253, 0.38),
      transparent 16rem
    ),
    rgba(255, 255, 255, 0.72) !important;
}

.diagnosis-advice-card.tcm,
.diagnosis-expert-card.tcm {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(134, 239, 172, 0.28),
      transparent 16rem
    ),
    rgba(255, 255, 255, 0.72) !important;
}

.diagnosis-advice-card.integrated {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(196, 181, 253, 0.38),
      transparent 16rem
    ),
    rgba(255, 255, 255, 0.72) !important;
}

.diagnosis-action-card.ant-card {
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(20, 184, 166, 0.14),
      transparent 18rem
    ),
    rgba(255, 255, 255, 0.74) !important;
}

.diagnosis-coordinator-card.ant-card {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(56, 189, 248, 0.2),
      transparent 16rem
    ),
    rgba(255, 255, 255, 0.74) !important;
}

.diagnosis-followup-alert {
  border-radius: 16px;
}

.diagnosis-decision-card.ant-card,
.diagnosis-arbitration-card.ant-card {
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(251, 191, 36, 0.16),
      transparent 16rem
    ),
    rgba(255, 255, 255, 0.74) !important;
}

.diagnosis-coordinator-head .ant-typography {
  margin-bottom: 6px;
}

.diagnosis-coordinator-step {
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.diagnosis-coordinator-step .ant-typography {
  margin-bottom: 0;
}

.diagnosis-coordinator-step .ant-space + .ant-typography {
  margin-top: 8px;
  color: #5f638e !important;
}

.diagnosis-event-timeline {
  margin: 12px 0 4px;
}

.diagnosis-event-item .ant-typography {
  margin-bottom: 0;
}

.diagnosis-event-item .ant-space + .ant-typography {
  margin-top: 6px;
  color: #5f638e !important;
}

.diagnosis-advice-header {
  margin-bottom: 14px;
}

.diagnosis-advice-card.western .diagnosis-advice-icon,
.diagnosis-expert-card.western .diagnosis-expert-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.diagnosis-advice-card.tcm .diagnosis-advice-icon,
.diagnosis-expert-card.tcm .diagnosis-expert-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.diagnosis-advice-card.integrated .diagnosis-advice-icon {
  background: rgba(109, 93, 252, 0.12);
  color: var(--healing-primary);
}

.diagnosis-detail-tabs.ant-tabs {
  padding: 0;
}

.diagnosis-detail-tabs .ant-tabs-nav {
  margin-bottom: 12px;
}

.diagnosis-detail-tabs .ant-tabs-tab {
  min-width: 92px;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
}

.diagnosis-detail-tabs .ant-tabs-tab-active {
  background: rgba(109, 93, 252, 0.1);
}

.diagnosis-detail-tabs .ant-tabs-ink-bar {
  display: none;
}

.diagnosis-advice-body,
.diagnosis-mini-list,
.diagnosis-expert-body {
  width: 100%;
}

.diagnosis-section.compact,
.diagnosis-mini-section.compact,
.diagnosis-rationale-box.compact {
  height: auto;
  padding: 12px;
}

.diagnosis-section-title {
  margin-bottom: 12px;
  color: var(--healing-primary);
}

.diagnosis-integrated-summary,
.diagnosis-low-urgency-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(109, 93, 252, 0.14);
  border-radius: 15px;
  background: rgba(245, 243, 255, 0.68);
}

.diagnosis-priority-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagnosis-priority-group > .ant-typography {
  margin: 0;
  color: #312e81 !important;
}

.diagnosis-recommendation-card,
.diagnosis-mini-item,
.diagnosis-decision-item,
.diagnosis-arbitration-item,
.diagnosis-viewpoint-box {
  padding: 12px;
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 20px rgba(80, 70, 180, 0.06);
}

.diagnosis-recommendation-card.priority-immediate {
  border-left: 4px solid #ef4444;
  background: rgba(254, 242, 242, 0.72);
}

.diagnosis-recommendation-card.priority-soon {
  border-left: 4px solid #f97316;
  background: rgba(255, 247, 237, 0.72);
}

.diagnosis-recommendation-card.priority-routine {
  border-left: 4px solid #3b82f6;
}

.diagnosis-recommendation-card .ant-typography,
.diagnosis-mini-item .ant-typography,
.diagnosis-decision-item .ant-typography,
.diagnosis-arbitration-item .ant-typography,
.diagnosis-viewpoint-box .ant-typography {
  margin-bottom: 0;
}

.diagnosis-recommendation-card .ant-typography + .ant-typography,
.diagnosis-mini-item .ant-typography + .ant-typography,
.diagnosis-mini-item .ant-space + .ant-typography,
.diagnosis-decision-item .ant-space + .ant-typography,
.diagnosis-arbitration-item .ant-space + .ant-typography,
.diagnosis-viewpoint-box .ant-typography + .ant-typography {
  margin-top: 8px;
}

.diagnosis-routine-collapse.ant-collapse {
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.46);
}

.diagnosis-routine-collapse .ant-collapse-header {
  align-items: center !important;
  padding: 12px 14px !important;
  color: #475569 !important;
  font-weight: 700;
}

.diagnosis-routine-collapse .ant-collapse-content-box {
  padding: 0 12px 12px !important;
}

.diagnosis-action-card .ant-card-body {
  padding: 22px 26px 12px;
}

.diagnosis-action-steps .ant-steps-item-title {
  color: #172554 !important;
  font-weight: 800;
}

.diagnosis-action-steps .ant-steps-item-description {
  max-width: 100% !important;
  color: #475569 !important;
  line-height: 1.7;
}

.diagnosis-disclaimer-text {
  padding: 8px 2px 0;
  color: rgba(71, 85, 105, 0.72);
  font-size: 12px;
  line-height: 1.7;
}

.diagnosis-disclaimer-text .ant-typography {
  color: inherit !important;
  font-size: inherit;
  line-height: inherit;
}

.diagnosis-expert-collapse.ant-collapse {
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.diagnosis-expert-collapse .ant-collapse-header {
  align-items: center !important;
  padding: 14px 16px !important;
  color: #334155 !important;
  font-weight: 800;
}

.diagnosis-expert-collapse .ant-collapse-content-box {
  padding: 0 16px 16px !important;
}

.diagnosis-expert-collapse-body {
  width: 100%;
}

.diagnosis-decision-item,
.diagnosis-arbitration-item {
  height: 100%;
}

.diagnosis-decision-item .ant-typography h5,
.diagnosis-decision-item h5.ant-typography {
  margin: 10px 0 8px;
}

.diagnosis-arbitration-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnosis-viewpoint-box.western {
  border-color: rgba(59, 130, 246, 0.16);
  background: rgba(239, 246, 255, 0.68);
}

.diagnosis-viewpoint-box.tcm {
  border-color: rgba(34, 197, 94, 0.16);
  background: rgba(240, 253, 244, 0.68);
}

.diagnosis-cross-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(129, 140, 248, 0.16);
}

.diagnosis-mini-item.tone-warning {
  border-color: rgba(249, 115, 22, 0.2);
  background: rgba(255, 247, 237, 0.76);
}

.diagnosis-info-list .ant-list-item,
.diagnosis-mini-section .ant-list-item {
  padding-inline: 0 !important;
  color: #475569;
  line-height: 1.7;
}

.diagnosis-disclaimer {
  margin-bottom: 0;
}

@media (min-width: 1600px) {
  .auth-brand.ant-typography {
    font-size: 60px;
  }

  .auth-card.ant-card {
    max-width: 486px;
  }

  .page-intro {
    max-width: 980px;
    margin-bottom: 28px;
  }

  .record-timeline-scroll {
    max-height: 680px;
  }

  .chat-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
  }

  .chat-layout-sidebar-collapsed {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
  }

  .chat-window {
    min-height: 0;
  }

  .chat-image-thumb {
    max-width: 240px;
    max-height: 180px;
  }
}

@media (max-width: 900px) {
  .app-sider {
    position: relative !important;
    height: auto;
  }

  .app-content {
    padding: 20px;
  }

  .time-wellness-grid {
    grid-template-columns: 1fr;
  }

  .time-wellness-clock {
    font-size: 34px;
  }

  .account-panel {
    margin-inline: 16px;
  }

  .admin-users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-users-search {
    width: 100%;
  }

  .auth-screen {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 36px 22px;
  }

  .auth-intro {
    width: min(100%, 560px);
  }

  .auth-intro::before {
    top: -18px;
  }

  .auth-brand.ant-typography {
    font-size: 40px;
  }

  .auth-copy.ant-typography {
    font-size: 16px;
  }

  .auth-card.ant-card {
    justify-self: stretch;
    max-width: 560px;
  }

  .auth-card .ant-card-body {
    padding: 24px;
  }

  .diagnosis-page-intro .ant-typography:last-child {
    white-space: normal;
  }

  .diagnosis-summary-head,
  .diagnosis-expert-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnosis-report-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .diagnosis-report-header h2.ant-typography {
    font-size: 26px;
  }

  .diagnosis-summary-card > .ant-card-body {
    padding: 20px;
  }

  .diagnosis-focus-card,
  .diagnosis-section,
  .diagnosis-info-list,
  .diagnosis-rationale-box,
  .diagnosis-mini-section {
    padding: 12px;
  }

  .diagnosis-focus-card {
    min-height: auto;
  }

  .diagnosis-form-step-panel {
    min-height: auto;
  }

  .diagnosis-red-flag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .diagnosis-quick-answers {
    margin-left: 0;
  }

  .diagnosis-safety-options .ant-radio-button-wrapper,
  .diagnosis-severity-group .ant-radio-button-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .diagnosis-form-footer {
    grid-template-columns: 1fr;
  }

  .diagnosis-form-footer .ant-btn,
  .diagnosis-form-footer .ant-btn:last-child {
    width: 100%;
    justify-self: stretch;
  }

  .diagnosis-form-footer .ant-typography {
    text-align: center;
  }

  .diagnosis-conclusion-panel {
    padding: 12px 14px;
  }

  .diagnosis-conclusion-text {
    font-size: 16px;
  }

  .diagnosis-detail-tabs .ant-tabs-nav-list {
    width: 100%;
  }

  .diagnosis-detail-tabs .ant-tabs-tab {
    min-width: 0;
    flex: 1;
  }

  .diagnosis-summary-text.ant-typography {
    font-size: 15px;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - clamp(48px, 4.4vw, 108px));
  }

  .chat-layout-sidebar-collapsed {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .chat-layout-sidebar-collapsed .chat-sidebar-open-button.ant-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin-top: 10px;
  }

  .chat-sidebar {
    height: auto;
    max-height: 340px;
  }

  .chat-main {
    height: calc(100vh - 400px);
    min-height: 360px;
  }

  .chat-layout-sidebar-collapsed .chat-main {
    height: calc(100vh - clamp(48px, 4.4vw, 108px));
    min-height: 520px;
  }

  .chat-window {
    min-height: 0;
  }

  .chat-message-stack {
    max-width: 88%;
  }

  .chat-composer-shell {
    min-height: 150px;
    gap: 14px;
    padding: 18px 18px 14px;
    border-radius: 26px;
  }

  .chat-composer-input.ant-input {
    min-height: 70px !important;
    font-size: 16px;
  }

  .chat-composer-toolbar {
    align-items: flex-end;
  }

  .chat-mode-pill {
    height: 40px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .chat-composer-actions {
    margin-left: auto;
    gap: 6px;
  }

  .chat-upload-button.ant-btn,
  .chat-composer-action.ant-btn {
    height: 44px;
  }

  .chat-upload-button.ant-btn {
    width: 44px;
    min-width: 44px;
    flex-basis: 44px;
  }

  .chat-composer-action.ant-btn {
    width: 48px;
    min-width: 48px;
  }
}

.agent-insights-card .ant-list-item,
.agent-runs-card .ant-list-item {
  align-items: flex-start;
  padding-inline: 0 !important;
}

.agent-insight-list .ant-list-item-meta-title {
  margin-bottom: 6px !important;
}

.agent-insight-copy {
  width: 100%;
  line-height: 1.7;
}

.agent-run-item {
  width: 100%;
  min-width: 0;
}

.agent-run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.agent-run-detail {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.agent-run-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--healing-primary);
  font-size: 13px;
  font-weight: 700;
}

.agent-run-detail-page {
  width: 100%;
}

.agent-run-page-intro {
  margin-bottom: 0;
}

.agent-run-loading {
  padding: 42px 0;
  text-align: center;
}

.agent-run-summary-card .ant-descriptions-item-label {
  color: var(--healing-muted);
}

.agent-run-id {
  max-width: 220px;
}

.agent-run-error {
  margin-top: 16px;
  border-radius: 14px;
}

.agent-run-explain-card,
.agent-run-timeline-card,
.agent-run-raw-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.agent-run-explain-card > .ant-card-body,
.agent-run-timeline-card > .ant-card-body,
.agent-run-raw-card > .ant-card-body {
  flex: 1;
  min-height: 0;
  max-height: clamp(340px, 48vh, 520px);
  overflow-y: auto;
  padding-right: 18px;
  scrollbar-color: rgba(109, 93, 252, 0.34) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.agent-run-explain-card-formation > .ant-card-body {
  max-height: clamp(420px, 56vh, 640px);
}

.agent-run-timeline-card > .ant-card-body {
  max-height: clamp(360px, 50vh, 560px);
}

.agent-run-raw-card > .ant-card-body {
  max-height: clamp(360px, 52vh, 600px);
}

.agent-run-explain-card > .ant-card-body::-webkit-scrollbar,
.agent-run-timeline-card > .ant-card-body::-webkit-scrollbar,
.agent-run-raw-card > .ant-card-body::-webkit-scrollbar {
  width: 8px;
}

.agent-run-explain-card > .ant-card-body::-webkit-scrollbar-track,
.agent-run-timeline-card > .ant-card-body::-webkit-scrollbar-track,
.agent-run-raw-card > .ant-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.agent-run-explain-card > .ant-card-body::-webkit-scrollbar-thumb,
.agent-run-timeline-card > .ant-card-body::-webkit-scrollbar-thumb,
.agent-run-raw-card > .ant-card-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(109, 93, 252, 0.36);
  background-clip: content-box;
}

.agent-run-explain-card > .ant-card-body:hover::-webkit-scrollbar-thumb,
.agent-run-timeline-card > .ant-card-body:hover::-webkit-scrollbar-thumb,
.agent-run-raw-card > .ant-card-body:hover::-webkit-scrollbar-thumb {
  background: rgba(109, 93, 252, 0.52);
  background-clip: content-box;
}

.agent-run-explain-card .ant-card-head-title {
  min-width: 0;
}

.agent-run-section-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 10px;
  background: rgba(109, 93, 252, 0.1);
  color: var(--healing-primary);
}

.agent-run-step-list {
  width: 100%;
}

.agent-run-step-card {
  padding: 14px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.agent-run-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.agent-run-step-summary {
  display: block;
  overflow-wrap: anywhere;
  color: #475569;
  line-height: 1.75;
}

.agent-run-step-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.agent-run-step-fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.82);
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.agent-run-step-fact strong {
  min-width: 0;
  color: #1e293b;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.agent-run-json-collapse {
  margin-top: 8px;
}

.agent-run-json-collapse .ant-collapse-header {
  padding: 6px 0 !important;
  color: var(--healing-primary) !important;
  font-size: 12px;
  font-weight: 700;
}

.agent-run-json-collapse .ant-collapse-content-box {
  padding: 0 !important;
}

.agent-run-json {
  max-height: 360px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #e0e7ff;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-run-timeline-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}

.agent-run-parallel-tag {
  margin-inline-end: 0;
}

.diagnosis-workflow {
  display: flex;
  width: min(100%, 980px);
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.diagnosis-workflow-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(71, 85, 105, 0.14);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

.diagnosis-workflow-meta > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}

.diagnosis-workflow-node {
  width: min(100%, 680px);
  padding: 14px;
  border: 1px solid rgba(71, 85, 105, 0.16);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.diagnosis-workflow-node-compact {
  width: 100%;
  height: 100%;
}

.diagnosis-workflow-node-western {
  border-left-color: #2563eb;
  background: #f8fbff;
}

.diagnosis-workflow-node-tcm {
  border-left-color: #16a34a;
  background: #f7fcf8;
}

.diagnosis-workflow-node-integrator {
  border-left-color: #7c3aed;
  background: #fbf9ff;
}

.diagnosis-workflow-node-safety {
  border-left-color: #dc2626;
  background: #fffafa;
}

.diagnosis-workflow-node-final {
  border-left-color: #059669;
  background: #f6fdf9;
}

.diagnosis-workflow-node-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.diagnosis-workflow-node-icon,
.diagnosis-workflow-parallel-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  background: rgba(71, 85, 105, 0.08);
  color: #334155;
  font-size: 17px;
}

.diagnosis-workflow-node-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.diagnosis-workflow-node-title > * {
  overflow-wrap: anywhere;
}

.diagnosis-workflow-node-title .ant-typography-secondary {
  font-size: 12px;
}

.diagnosis-workflow-node-note {
  display: block;
  margin-top: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.diagnosis-workflow-node-time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
}

.diagnosis-workflow-connector {
  position: relative;
  display: flex;
  width: 100%;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.diagnosis-workflow-connector > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(71, 85, 105, 0.28);
}

.diagnosis-workflow-connector > .anticon,
.diagnosis-workflow-connector > em {
  position: relative;
  z-index: 1;
  padding: 3px 7px;
  border: 1px solid rgba(71, 85, 105, 0.14);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.diagnosis-workflow-parallel {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(8, 145, 178, 0.22);
  border-radius: 8px;
  background: #f8fcfd;
}

.diagnosis-workflow-parallel-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.diagnosis-workflow-parallel-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.diagnosis-workflow-parallel-head .ant-typography-secondary {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.diagnosis-workflow-parallel-icon {
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
}

.diagnosis-workflow-lanes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
}

.diagnosis-workflow-lanes::before {
  position: absolute;
  top: 0;
  right: 25%;
  left: 25%;
  height: 1px;
  background: rgba(8, 145, 178, 0.32);
  content: "";
}

.diagnosis-workflow-lanes > .diagnosis-workflow-node {
  position: relative;
}

.diagnosis-workflow-lanes > .diagnosis-workflow-node::before {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 1px;
  height: 10px;
  background: rgba(8, 145, 178, 0.32);
  content: "";
}

.diagnosis-workflow-bypass {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  background: #fff7f7;
  color: #b91c1c;
}

.diagnosis-workflow-bypass > .anticon {
  font-size: 22px;
}

.diagnosis-workflow-bypass > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

@media (max-width: 900px) {
  .agent-run-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-run-step-head {
    flex-direction: column;
  }

  .diagnosis-workflow-lanes {
    grid-template-columns: 1fr;
  }

  .diagnosis-workflow-lanes::before,
  .diagnosis-workflow-lanes > .diagnosis-workflow-node::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .diagnosis-workflow-meta,
  .diagnosis-workflow-parallel-head,
  .diagnosis-workflow-bypass {
    align-items: flex-start;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .diagnosis-workflow-meta {
    flex-direction: column;
  }

  .diagnosis-workflow-parallel-head > .ant-tag,
  .diagnosis-workflow-bypass > .ant-tag {
    grid-column: 2;
    justify-self: start;
  }

  .diagnosis-workflow-node-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .diagnosis-workflow-node-head > .ant-tag {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .auth-screen {
    align-content: start;
    padding: 54px 16px 28px;
  }

  .auth-brand.ant-typography {
    font-size: 30px;
  }

  .auth-card .ant-card-body {
    padding: 22px 18px 20px;
  }

  .auth-tabs .ant-tabs-tab + .ant-tabs-tab {
    margin-left: 26px;
  }

  .time-wellness-card {
    padding: 12px;
  }

  .time-wellness-main,
  .time-wellness-meridian,
  .time-wellness-season {
    padding: 14px;
  }

  .time-wellness-note-grid {
    grid-template-columns: 1fr;
  }

  .time-wellness-season-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
.app-sider {
  transition:
    width 0.24s ease,
    max-width 0.24s ease,
    min-width 0.24s ease;
}

.app-sider .ant-layout-sider-children {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-sider-collapsed .ant-layout-sider-children {
  align-items: center;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.brand-copy {
  min-width: 0;
  padding-top: 1px;
}

.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92),
      rgba(238, 242, 255, 0.76)
    ),
    radial-gradient(
      circle at 30% 20%,
      rgba(59, 130, 246, 0.22),
      transparent 24px
    );
  color: var(--healing-primary);
  font-weight: 800;
  box-shadow:
    0 12px 28px rgba(80, 70, 180, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sider-collapse-btn.ant-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin-top: 1px;
  color: #4f46e5;
  font-size: 17px;
}

.sider-collapse-btn.ant-btn:hover {
  background: rgba(109, 93, 252, 0.1);
  color: #4338ca;
}

.app-sider-collapsed .brand-panel {
  box-sizing: border-box;
  width: 100%;
  padding: 20px 12px 16px;
}

.app-sider-collapsed .brand-row {
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.app-sider .account-panel {
  margin-top: auto;
}

.app-sider-collapsed .account-panel {
  box-sizing: border-box;
  width: 58px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  margin-inline: 0;
  padding: 10px 0;
}

.app-sider-collapsed .account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.app-sider-collapsed .account-panel .ant-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.compact-nav {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0 18px;
}

.compact-nav-item.ant-btn {
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #4f46e5;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.compact-nav-item.ant-btn:hover {
  border-color: rgba(129, 140, 248, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #4338ca;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 26px rgba(80, 70, 180, 0.1);
  transform: translateY(-1px);
}

.compact-nav-item.ant-btn.active {
  border-color: rgba(129, 140, 248, 0.34);
  background:
    radial-gradient(
      circle at 28% 20%,
      rgba(255, 255, 255, 0.86),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(224, 231, 255, 0.95),
      rgba(221, 214, 254, 0.84)
    );
  color: #4338ca;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -8px 18px rgba(129, 140, 248, 0.08),
    0 14px 30px rgba(80, 70, 180, 0.14);
}

.compact-nav-item.ant-btn .anticon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.appearance-settings-panel {
  max-width: 680px;
}

.theme-mode-control.ant-segmented {
  padding: 4px;
  border: 1px solid var(--healing-border);
  background: color-mix(
    in srgb,
    var(--healing-surface-strong) 84%,
    transparent
  );
}

.theme-mode-control .ant-segmented-item {
  min-height: 44px;
}

.theme-mode-control .ant-segmented-item-label {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.theme-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.theme-mode-status {
  margin-top: 14px;
}

.theme-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16);
}

.theme-status-dot.dark {
  background: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

:root[data-theme="dark"] {
  color: #e8ecf7;
  background: #10131d;
  --healing-ink: #e8ecf7;
  --healing-muted: #aab3c7;
  --healing-primary: #8b83ff;
  --healing-blue: #60a5fa;
  --healing-purple: #c4b5fd;
  --healing-border: rgba(148, 163, 184, 0.2);
  --healing-surface: rgba(25, 29, 42, 0.9);
  --healing-surface-strong: rgba(31, 36, 51, 0.96);
  --healing-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] body {
  background: #10131d;
}

:root[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(139, 131, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.035) 1px, transparent 1px);
}

:root[data-theme="dark"] .ant-typography-secondary,
:root[data-theme="dark"] .ant-form-item-extra,
:root[data-theme="dark"] .ant-empty-description {
  color: var(--healing-muted) !important;
}

:root[data-theme="dark"] .app-sider {
  background: rgba(19, 23, 34, 0.96) !important;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .app-sider .ant-menu-item,
:root[data-theme="dark"] .compact-nav-item.ant-btn {
  color: #c7cedd;
}

:root[data-theme="dark"] .app-sider .ant-menu-item:hover,
:root[data-theme="dark"] .compact-nav-item.ant-btn:hover {
  border-color: rgba(139, 131, 255, 0.24);
  background: rgba(139, 131, 255, 0.1);
  color: #e4e1ff;
  box-shadow: none;
}

:root[data-theme="dark"] .app-sider .ant-menu-item-selected,
:root[data-theme="dark"] .compact-nav-item.ant-btn.active {
  border-color: rgba(139, 131, 255, 0.34);
  background: rgba(139, 131, 255, 0.16) !important;
  color: #e4e1ff !important;
  box-shadow: inset 3px 0 0 #8b83ff;
}

:root[data-theme="dark"] .account-panel,
:root[data-theme="dark"] .settings-section-card,
:root[data-theme="dark"] .settings-bmi-display,
:root[data-theme="dark"] .settings-data-stat-card {
  background: rgba(28, 33, 47, 0.82);
  box-shadow: none;
}

:root[data-theme="dark"] .settings-danger-zone {
  background: rgba(127, 29, 29, 0.14);
}

:root[data-theme="dark"] .trend-detail-modal .ant-modal-content {
  background: rgba(25, 29, 42, 0.98) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .compact-chart-empty,
:root[data-theme="dark"] .compact-chart-expand {
  background: rgba(31, 36, 51, 0.92) !important;
}

:root[data-theme="dark"] .admin-users-card .ant-table-thead > tr > th {
  background: rgba(31, 36, 51, 0.86) !important;
  color: #c7cedd;
}

:root[data-theme="dark"] .chat-sidebar,
:root[data-theme="dark"] .chat-main {
  background: rgba(21, 25, 37, 0.92);
  box-shadow: var(--healing-shadow);
}

:root[data-theme="dark"] .chat-thread-card {
  background: rgba(29, 34, 49, 0.9);
  border-color: var(--healing-border);
  box-shadow: none;
}

:root[data-theme="dark"] .chat-thread-card:hover,
:root[data-theme="dark"] .chat-thread-card.active {
  background: rgba(45, 48, 72, 0.94);
  border-color: rgba(139, 131, 255, 0.4);
}

:root[data-theme="dark"] .chat-message.assistant .chat-bubble,
:root[data-theme="dark"] .chat-citations,
:root[data-theme="dark"] .chat-composer-shell,
:root[data-theme="dark"] .knowledge-document-card {
  background: rgba(29, 34, 49, 0.94);
  border-color: var(--healing-border);
  color: var(--healing-ink);
  box-shadow: none;
}

:root[data-theme="dark"] .chat-markdown blockquote,
:root[data-theme="dark"] .chat-markdown-table-wrap {
  background: rgba(139, 131, 255, 0.08);
  color: #c7cedd;
}

:root[data-theme="dark"] .diagnosis-question-item,
:root[data-theme="dark"] .diagnosis-followup-loading,
:root[data-theme="dark"] .diagnosis-conclusion-panel,
:root[data-theme="dark"] .diagnosis-info-list,
:root[data-theme="dark"] .diagnosis-rationale-box,
:root[data-theme="dark"] .diagnosis-mini-section,
:root[data-theme="dark"] .diagnosis-recommendation-card {
  background: rgba(29, 34, 49, 0.9);
  border-color: var(--healing-border);
  color: var(--healing-ink);
  box-shadow: none;
}

:root[data-theme="dark"] .diagnosis-conclusion-text {
  color: var(--healing-ink) !important;
}

:root[data-theme="dark"] .diagnosis-report-header h2.ant-typography,
:root[data-theme="dark"] .diagnosis-report-section-head h3.ant-typography,
:root[data-theme="dark"] .diagnosis-action-steps .ant-steps-item-title {
  color: var(--healing-ink) !important;
}

:root[data-theme="dark"] .diagnosis-conclusion-text blockquote,
:root[data-theme="dark"] .diagnosis-markdown-table-wrap {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .diagnosis-workflow-meta,
:root[data-theme="dark"] .diagnosis-workflow-parallel,
:root[data-theme="dark"] .diagnosis-workflow-node,
:root[data-theme="dark"] .diagnosis-workflow-connector > .anticon,
:root[data-theme="dark"] .diagnosis-workflow-connector > em {
  border-color: var(--healing-border);
  background: rgba(29, 34, 49, 0.94);
  color: var(--healing-ink);
  box-shadow: none;
}

:root[data-theme="dark"] .diagnosis-workflow-node-western {
  border-left-color: #60a5fa;
}

:root[data-theme="dark"] .diagnosis-workflow-node-tcm,
:root[data-theme="dark"] .diagnosis-workflow-node-final {
  border-left-color: #4ade80;
}

:root[data-theme="dark"] .diagnosis-workflow-node-integrator {
  border-left-color: #c4b5fd;
}

:root[data-theme="dark"] .diagnosis-workflow-node-safety {
  border-left-color: #fb7185;
}

:root[data-theme="dark"] .diagnosis-workflow-bypass {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(127, 29, 29, 0.18);
  color: #fda4af;
}

:root[data-theme="dark"] .diagnosis-workflow-node-time {
  color: var(--healing-muted);
}

:root[data-theme="dark"] .diagnosis-red-flag-grid .ant-checkbox-wrapper {
  background: rgba(31, 36, 51, 0.92);
  border-color: var(--healing-border);
}

:root[data-theme="dark"] .theme-mode-control.ant-segmented {
  background: rgba(25, 29, 42, 0.94);
}

:root[data-theme="dark"] .time-wellness-card {
  background:
    linear-gradient(
      100deg,
      rgba(25, 34, 38, 0.98),
      rgba(31, 34, 43, 0.96) 48%,
      rgba(42, 29, 34, 0.94)
    ),
    #1a1f2c;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .time-wellness-card::before {
  opacity: 0.24;
  filter: saturate(0.72);
}

:root[data-theme="dark"] .time-wellness-card::after {
  border-color: rgba(248, 113, 113, 0.12);
  background:
    radial-gradient(
      circle at 43% 42%,
      rgba(254, 226, 226, 0.18) 0 18%,
      rgba(127, 29, 29, 0.12) 19% 34%,
      transparent 35%
    ),
    repeating-radial-gradient(
      circle at 48% 50%,
      rgba(248, 113, 113, 0.12) 0 8px,
      rgba(127, 29, 29, 0.08) 9px 18px
    ),
    rgba(127, 29, 29, 0.12);
  box-shadow: -24px 28px 70px rgba(0, 0, 0, 0.16);
  opacity: 0.5;
}

:root[data-theme="dark"] .time-wellness-main,
:root[data-theme="dark"] .time-wellness-meridian,
:root[data-theme="dark"] .time-wellness-season {
  background: rgba(22, 27, 39, 0.76);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .time-wellness-kicker,
:root[data-theme="dark"] .time-wellness-section-title,
:root[data-theme="dark"] .time-wellness-period,
:root[data-theme="dark"] .dashboard-metric-title,
:root[data-theme="dark"] .dashboard-metric-detail {
  color: var(--healing-muted);
}

:root[data-theme="dark"] .time-wellness-kicker .anticon,
:root[data-theme="dark"] .time-wellness-section-title .anticon,
:root[data-theme="dark"] .dashboard-metric-title-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .time-wellness-clock,
:root[data-theme="dark"] .time-wellness-meridian h3.ant-typography,
:root[data-theme="dark"] .time-wellness-season h3.ant-typography,
:root[data-theme="dark"] .metric-card .ant-statistic-content {
  color: var(--healing-ink) !important;
}

:root[data-theme="dark"] .time-wellness-date.ant-typography,
:root[data-theme="dark"] .time-wellness-muted.ant-typography,
:root[data-theme="dark"] .time-wellness-next.ant-typography,
:root[data-theme="dark"] .time-wellness-note-grid p,
:root[data-theme="dark"] .time-wellness-season-tips.ant-typography {
  color: var(--healing-muted) !important;
}

:root[data-theme="dark"] .time-wellness-note-grid > div,
:root[data-theme="dark"] .dashboard-medical-summary span,
:root[data-theme="dark"] .medical-records-overview span,
:root[data-theme="dark"] .medical-record-detail.ant-list-item,
:root[data-theme="dark"] .medical-material-card,
:root[data-theme="dark"] .medical-upload-item,
:root[data-theme="dark"] .record-material-link,
:root[data-theme="dark"] .snapshot-overview,
:root[data-theme="dark"] .snapshot-section,
:root[data-theme="dark"] .mini-bars {
  background: rgba(28, 33, 47, 0.84);
  border-color: var(--healing-border) !important;
  color: var(--healing-muted);
  box-shadow: none;
}

:root[data-theme="dark"] .season-tag.suitable {
  background: rgba(6, 95, 70, 0.28);
  color: #6ee7b7;
}

:root[data-theme="dark"] .season-tag.avoid {
  background: rgba(154, 52, 18, 0.26);
  color: #fdba74;
}

:root[data-theme="dark"] .time-wellness-season-head .ant-typography:last-child {
  color: #5eead4 !important;
}

:root[data-theme="dark"] .dashboard-medical-summary span,
:root[data-theme="dark"] .record-material-link {
  color: #c7cedd;
}

:root[data-theme="dark"] .dashboard-medical-summary strong,
:root[data-theme="dark"] .medical-records-title-icon {
  color: #7dd3fc;
}

:root[data-theme="dark"] .medical-records-modal .ant-modal-content,
:root[data-theme="dark"] .medical-records-modal .ant-modal-header {
  background: rgba(24, 29, 42, 0.98) !important;
  border-color: var(--healing-border);
}

:root[data-theme="dark"] .medical-records-content::-webkit-scrollbar-thumb,
:root[data-theme="dark"]
  .dashboard-equal-card
  > .ant-card-body::-webkit-scrollbar-thumb {
  border-color: rgba(24, 29, 42, 0.92);
}

:root[data-theme="dark"] .auth-screen {
  background: #10131d;
}

:root[data-theme="dark"] .auth-screen::before {
  background: rgba(16, 19, 29, 0.72);
}

:root[data-theme="dark"] .auth-card.ant-card {
  border-color: var(--healing-border) !important;
  background: rgba(25, 29, 42, 0.88) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .auth-card.ant-card::before,
:root[data-theme="dark"] .auth-card.ant-card::after {
  opacity: 0.14;
}

:root[data-theme="dark"] .auth-copy.ant-typography,
:root[data-theme="dark"] .auth-form .ant-form-item-label > label,
:root[data-theme="dark"] .auth-mode-header h3.ant-typography,
:root[data-theme="dark"] .auth-mode-header .ant-typography {
  color: #c7cedd !important;
}

:root[data-theme="dark"] .auth-form .ant-input-affix-wrapper,
:root[data-theme="dark"] .auth-form .ant-input-affix-wrapper:hover,
:root[data-theme="dark"] .auth-form .ant-input-affix-wrapper-focused,
:root[data-theme="dark"] .auth-form .ant-input-affix-wrapper:focus-within {
  background: rgba(15, 19, 29, 0.72);
  box-shadow: none;
}

@media (max-width: 640px) {
  .theme-mode-control .ant-segmented-item-label {
    padding-inline: 8px;
  }

  .theme-mode-option {
    gap: 5px;
    font-size: 13px;
  }
}
