.kaidan-sante {
  --kdn-sante-surface: rgba(17, 24, 36, 0.94);
  --kdn-sante-surface-2: rgba(28, 38, 55, 0.92);
  --kdn-sante-surface-3: rgba(38, 51, 72, 0.92);
  --kdn-sante-text: #f4f7fb;
  --kdn-sante-muted: rgba(226, 233, 243, 0.72);
  --kdn-sante-accent: #7bdcb5;
  --kdn-sante-accent-2: #5fc8ff;
  --kdn-sante-shadow: 0 22px 48px rgba(3, 10, 20, 0.34);
  color: var(--kdn-sante-text);
}

[data-theme="light"] .kaidan-sante {
  --kdn-sante-surface: rgba(248, 251, 255, 0.98);
  --kdn-sante-surface-2: rgba(237, 244, 251, 0.98);
  --kdn-sante-surface-3: rgba(228, 238, 248, 0.98);
  --kdn-sante-text: #102033;
  --kdn-sante-muted: rgba(33, 53, 78, 0.72);
  --kdn-sante-accent: #1c9c73;
  --kdn-sante-accent-2: #0d8adb;
  --kdn-sante-shadow: 0 18px 38px rgba(113, 141, 175, 0.18);
}

[data-theme="blue"] .kaidan-sante {
  --kdn-sante-surface: rgba(11, 28, 54, 0.96);
  --kdn-sante-surface-2: rgba(18, 38, 70, 0.96);
  --kdn-sante-surface-3: rgba(28, 51, 89, 0.96);
  --kdn-sante-text: #eef6ff;
  --kdn-sante-muted: rgba(210, 224, 242, 0.72);
  --kdn-sante-accent: #78d3ff;
  --kdn-sante-accent-2: #8ff0c4;
  --kdn-sante-shadow: 0 22px 52px rgba(2, 11, 28, 0.42);
}

.kaidan-sante .dashboard-block {
  color: inherit;
}

.kdn-sante-stage-card {
  background:
    radial-gradient(circle at top right, rgba(123, 220, 181, 0.18), transparent 42%),
    linear-gradient(160deg, var(--kdn-sante-surface-2), var(--kdn-sante-surface));
  border-radius: 28px;
  padding: 24px;
}

[data-theme="light"] .kdn-sante-stage-card {
  background:
    radial-gradient(circle at top right, rgba(28, 156, 115, 0.12), transparent 42%),
    linear-gradient(160deg, var(--kdn-sante-surface-2), var(--kdn-sante-surface));
}

[data-theme="blue"] .kdn-sante-stage-card {
  background:
    radial-gradient(circle at top right, rgba(120, 211, 255, 0.16), transparent 42%),
    linear-gradient(160deg, var(--kdn-sante-surface-2), var(--kdn-sante-surface));
}

.kdn-sante-stage-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.kdn-sante-stage-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(123, 220, 181, 0.2), rgba(95, 200, 255, 0.22));
  color: var(--kdn-sante-text);
}

[data-theme="light"] .kdn-sante-stage-icon {
  background: linear-gradient(145deg, rgba(28, 156, 115, 0.12), rgba(13, 138, 219, 0.14));
}

.kdn-sante-stage-icon .material-symbols-rounded {
  font-size: 29px;
}

.kdn-sante-stage-copy h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--kdn-sante-text);
}

.kdn-sante-stage-copy p {
  margin: 8px 0 0;
  color: var(--kdn-sante-muted);
  font-size: 15px;
  line-height: 1.6;
}

.kdn-sante-stage-eyebrow {
  margin: 0 0 8px;
  font-size: 12px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kdn-sante-accent) !important;
}

.kdn-sante-stage-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kdn-sante-stage-points li {
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: var(--kdn-sante-text);
  font-size: 14px;
  line-height: 1.45;
}

[data-theme="light"] .kdn-sante-stage-points li {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 252, 0.86));
}

[data-theme="blue"] .kdn-sante-stage-points li {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(138, 197, 255, 0.05));
}

.kdn-sante-module {
  color: var(--kdn-sante-text);
}

.kdn-sante-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.kdn-sante-panel-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.kdn-sante-panel-head p {
  margin: 8px 0 0;
  color: var(--kdn-sante-muted);
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
}

.kdn-sante-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kdn-sante-medical-topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.kdn-sante-medical-summary-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  min-width: 0;
}

.kdn-sante-btn,
.kdn-sante-iconbtn {
  appearance: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: var(--kdn-sante-text);
}

[data-theme="light"] .kdn-sante-btn,
[data-theme="light"] .kdn-sante-iconbtn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 245, 251, 0.92));
}

.kdn-sante-btn {
  border-radius: 18px;
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
      cursor: pointer;
}

.kdn-sante-btn--primary,
.kdn-sante-btn--primary:hover {
  background: linear-gradient(135deg, #64d2ff, #007aff);
  color: #000;
  font-weight: 700;
}

.kdn-sante-iconbtn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kdn-sante-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kdn-sante-stat-card {
  min-height: 110px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(155deg, var(--kdn-sante-surface-2), var(--kdn-sante-surface));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kdn-sante-stat-card span {
  color: var(--kdn-sante-muted);
  font-size: 13px;
}

.kdn-sante-stat-card strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.kdn-sante-state {
  margin: 0 0 14px;
  color: var(--kdn-sante-muted);
  font-size: 13px;
}

[data-kdn-sante-medical-state]:empty {
  display: none;
}

.kdn-sante-list {
  display: grid;
  gap: 12px;
}

.kdn-sante-item {
  border-radius: 24px;
  padding: 18px 20px;
}

.kdn-sante-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kdn-sante-medical-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.kdn-sante-medical-item-titleline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.kdn-sante-item-top h3,
.kdn-sante-addictions-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.08;
}

.kdn-sante-medical-item-titleline h3 {
  min-width: 0;
  flex: 0 1 auto;
}

.kdn-sante-medical-info-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--kdn-sante-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kdn-sante-medical-info-btn .material-symbols-rounded {
  font-size: 14px;
  line-height: 1;
}

.kdn-sante-medical-alert-indicator {
  color: #ffd88c;
  background: linear-gradient(145deg, rgba(255, 216, 140, 0.18), rgba(255, 177, 66, 0.12));
}

.kdn-sante-medical-alert-indicator .material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
}

[data-theme="light"] .kdn-sante-medical-info-btn {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .kdn-sante-medical-alert-indicator {
  color: #9a5b00;
  background: linear-gradient(145deg, rgba(255, 244, 221, 0.96), rgba(255, 232, 186, 0.92));
}

[data-theme="blue"] .kdn-sante-medical-alert-indicator {
  color: #ffe3a6;
  background: linear-gradient(145deg, rgba(255, 214, 120, 0.18), rgba(73, 114, 184, 0.26));
}

.kdn-sante-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  color: var(--kdn-sante-muted);
  font-size: 13px;
}

.kdn-sante-chip {
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(145deg, rgba(123, 220, 181, 0.18), rgba(95, 200, 255, 0.16));
  color: var(--kdn-sante-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .kdn-sante-chip {
  background: linear-gradient(145deg, rgba(28, 156, 115, 0.14), rgba(13, 138, 219, 0.12));
}

.kdn-sante-item-lines {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}

.kdn-sante-item-lines li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kdn-sante-item-lines span,
.kdn-sante-note {
  color: var(--kdn-sante-muted);
      font-weight: 300;
}
.kdn-sante-item-lines strong {  
      font-weight: 300;
}


.kdn-sante-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.kdn-sante-empty {
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(160deg, var(--kdn-sante-surface-2), var(--kdn-sante-surface));
  color: var(--kdn-sante-muted);
  text-align: center;
}

.kdn-sante-wellness-head {
  display: flex;
  align-items: stretch;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.kdn-sante-wellness-summary-grid {
  flex: 1 1 auto;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.kdn-sante-wellness-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kdn-sante-wellness-summary-head > span {
  margin: 0;
}

.kdn-sante-wellness-info-btn {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--kdn-sante-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kdn-sante-wellness-info-btn .material-symbols-rounded {
  font-size: 14px;
  line-height: 1;
}

[data-theme="light"] .kdn-sante-wellness-info-btn {
  background: rgba(255, 255, 255, 0.88);
}

.kdn-sante-wellness-fab {
  display: none;
}

.kdn-sante-wellness-board-wrap {
  margin-top: 2px;
}

.kdn-sante-wellness-board {
  border-radius: 24px;
  padding: 10px 20px;
}

.kdn-sante-wellness-row {
padding: 20px 0;
    border-bottom: 0.75px solid #ffffff10;
}
[data-theme="light"] .kdn-sante-wellness-row {
padding: 20px 0;
    border-bottom: 0.75px solid #00000015;
}

.kdn-sante-wellness-row + .kdn-sante-wellness-row {
}

.kdn-sante-wellness-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.kdn-sante-wellness-row-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.kdn-sante-wellness-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kdn-sante-wellness-date {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kdn-sante-wellness-chip {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--kdn-sante-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.kdn-sante-wellness-chip.is-great {
  background: linear-gradient(145deg, rgba(123, 220, 181, 0.26), rgba(59, 178, 134, 0.16));
}

.kdn-sante-wellness-chip.is-good {
  background: linear-gradient(145deg, rgba(95, 200, 255, 0.24), rgba(10, 132, 255, 0.14));
}

.kdn-sante-wellness-chip.is-tired {
  background: linear-gradient(145deg, rgba(255, 204, 102, 0.24), rgba(255, 170, 0, 0.14));
}

.kdn-sante-wellness-chip.is-low {
  background: linear-gradient(145deg, rgba(255, 144, 179, 0.24), rgba(255, 99, 132, 0.14));
}

.kdn-sante-wellness-chip.is-sick {
  background: linear-gradient(145deg, rgba(192, 157, 255, 0.24), rgba(124, 92, 255, 0.14));
}

.kdn-sante-wellness-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.kdn-sante-wellness-metric {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.kdn-sante-wellness-metric-label {
  color: var(--kdn-sante-muted);
  font-size: 13px;
  font-weight: 600;
}

.kdn-sante-wellness-track {
  position: relative;
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

[data-theme="light"] .kdn-sante-wellness-track {
  background: linear-gradient(145deg, rgba(226, 236, 246, 0.9), rgba(241, 246, 251, 0.9));
}

.kdn-sante-wellness-fill {
  display: block;
  height: 100%;
  min-height: 12px;
  border-radius: inherit;
}

.kdn-sante-wellness-metric.is-energy .kdn-sante-wellness-fill {
  background: linear-gradient(135deg, #64d2ff, #0a84ff);
}

.kdn-sante-wellness-metric.is-mood .kdn-sante-wellness-fill {
  background: linear-gradient(135deg, #7bdcb5, #2fbf94);
}

.kdn-sante-wellness-value {
  font-size: 13px;
  font-weight: 700;
}

.kdn-sante-wellness-note {
  margin-top: 10px;
}

.kdn-sante-form {
  display: grid;
  gap: 14px;
}

.kdn-sante-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}


.kdn-sante-field textarea[data-kdn-sante-medical-note-field="note"] {
      padding: 1em!important;
}

.kdn-sante-medical-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kdn-sante-medical-field--category {
  grid-column: span 2;
}

.kdn-sante-medical-field--mode {
  grid-column: span 1;
}

.kdn-sante-field {
  display: grid;
  gap: 8px;
}

.kdn-sante-field span {
  color: var(--kdn-sante-muted);
  font-size: 1rem;
}

[data-kdn-sante-medical-mode-section][hidden] {
  display: none !important;
}

.kdn-sante-medical-mode-switch {
  min-height: 48px;
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kdn-sante-medical-mode-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--kdn-sante-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.kdn-sante-medical-mode-btn[data-active="1"] {
  background: linear-gradient(135deg, rgba(100, 210, 255, 0.96), rgba(10, 132, 255, 0.88));
  color: #04121c;
}

.kdn-sante-medical-confirm-modal > .kdn-popup__overlay,
.kdn-sante-medical-confirm-modal > .kdn-ar-modal__overlay {
  pointer-events: none;
}

.kdn-sante-medical-confirm-modal .kdn-popup__close,
.kdn-sante-medical-confirm-modal .kdn-ar-modal__close {
  display: none !important;
}

.kdn-sante-medical-confirm-copy {
  display: grid;
  gap: 10px;
}

.kdn-sante-medical-confirm-copy p {
  margin: 0;
  color: var(--kdn-sante-text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.kdn-sante-medical-recommendation {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.kdn-sante-medical-recommendation[hidden] {
  display: none !important;
}

.kdn-sante-medical-recommendation-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.kdn-sante-medical-recommendation-head .material-symbols-rounded {
  font-size: 18px;
  line-height: 1;
  color: #7bdcb5;
  flex: 0 0 auto;
}

.kdn-sante-medical-recommendation-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.kdn-sante-medical-recommendation-copy strong {
  color: var(--kdn-sante-text);
  font-size: 14px;
  line-height: 1.3;
}

.kdn-sante-medical-recommendation-copy p {
  margin: 0;
  color: var(--kdn-sante-muted);
  font-size: 13px;
  line-height: 1.5;
}

[data-theme="light"] .kdn-sante-medical-recommendation {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 251, 0.92));
}

[data-theme="light"] .kdn-sante-medical-mode-switch {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 251, 0.94));
}

[data-theme="light"] .kdn-sante-medical-mode-btn {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="blue"] .kdn-sante-medical-recommendation {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(98, 173, 255, 0.05));
}

.kdn-sante-medical-fab {
  display: none;
}

.kdn-sante-select-trigger {
  min-height: 48px;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: var(--kdn-sante-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  border:0;
}

[data-theme="light"] .kdn-sante-select-trigger {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 251, 0.94));
  color: var(--kdn-sante-text);
}

.kdn-sante-select-trigger .material-symbols-rounded {
  color: var(--kdn-sante-muted);
  flex: 0 0 auto;
}

.kdn-sante-select-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kdn-sante-field textarea {
  min-height: 112px;
  resize: vertical;
}

.kdn-sante-addictions-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.kdn-sante-addictions-topbar [data-kdn-sante-addictions-picker][hidden] {
  display: none !important;
}

.kdn-sante-addictions-head {
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.kdn-sante-addictions-head p {
  margin: 0 0 6px;
  color: var(--kdn-sante-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kdn-sante-addictions-head.is-mint,
.kdn-sante-day.is-mint.is-success {
  background-image: linear-gradient(145deg, rgba(123, 220, 181, 0.2), rgba(10, 24, 37, 0.95));
}

.kdn-sante-addictions-head.is-sky,
.kdn-sante-day.is-sky.is-success {
  background-image: linear-gradient(145deg, rgba(95, 200, 255, 0.2), rgba(10, 24, 37, 0.95));
}

.kdn-sante-addictions-head.is-sun,
.kdn-sante-day.is-sun.is-success {
  background-image: linear-gradient(145deg, rgba(255, 204, 102, 0.22), rgba(10, 24, 37, 0.95));
}

.kdn-sante-addictions-head.is-rose,
.kdn-sante-day.is-rose.is-success {
  background-image: linear-gradient(145deg, rgba(255, 144, 179, 0.22), rgba(10, 24, 37, 0.95));
}

.kdn-sante-addictions-head.is-violet,
.kdn-sante-day.is-violet.is-success {
  background-image: linear-gradient(145deg, rgba(192, 157, 255, 0.22), rgba(10, 24, 37, 0.95));
}

.kdn-sante-calendar-card {
  border-radius: 24px;
  padding: 18px 20px;
}

.kdn-sante-calendar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.kdn-sante-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.kdn-sante-day {
  min-height: 70px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: var(--kdn-sante-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kdn-sante-day.is-fail {
  background-image: linear-gradient(145deg, rgba(255, 122, 122, 0.16), rgba(10, 24, 37, 0.95));
}

.kdn-sante-day.is-empty {
  opacity: 0.82;
}

.kdn-sante-day-number {
  font-size: 12px;
  color: var(--kdn-sante-muted);
}

.kdn-sante-calendar-recent {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.kdn-sante-calendar-recent h4 {
  margin: 0 0 2px;
  font-size: 14px;
  color: var(--kdn-sante-muted);
}

.kdn-sante-recent-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kdn-sante-muted);
}

.kdn-sante-recent-line strong {
  margin-left: auto;
  color: var(--kdn-sante-text);
}

#kdn-sante-steps-tracking-root {
  padding: 0;
  border-radius: 22px !important;
}

.kdn-sante-steps-tracking {
  --ksl-pie-short: #ff9f0a;
  --ksl-pie-target: #64d2ff;
  --ksl-pie-long: #30d158;
  --ksl-visual-soft: rgba(255,255,255,.055);
  --ksl-visual-strong: rgba(255,255,255,.12);
  --steps-chart-line: #64d2ff;
  --steps-chart-fill: rgba(100,210,255,.14);
  --steps-chart-point: #ffffff;
  --steps-chart-grid: rgba(255,255,255,.08);
}

[data-theme="light"] .kdn-sante-steps-tracking {
  --ksl-pie-short: #d97333;
  --ksl-pie-target: #007aff;
  --ksl-pie-long: #248a3d;
  --ksl-visual-soft: rgba(10,20,40,.045);
  --ksl-visual-strong: rgba(255,255,255,.78);
  --steps-chart-line: #007aff;
  --steps-chart-fill: rgba(0,122,255,.12);
  --steps-chart-point: #ffffff;
  --steps-chart-grid: rgba(10,20,40,.08);
}

[data-theme="blue"] .kdn-sante-steps-tracking {
  --ksl-pie-short: #ffd60a;
  --ksl-pie-target: #64d2ff;
  --ksl-pie-long: #55e6d2;
  --ksl-visual-soft: rgba(20,60,160,.16);
  --ksl-visual-strong: rgba(120,170,255,.16);
  --steps-chart-line: #64d2ff;
  --steps-chart-fill: rgba(100,210,255,.13);
  --steps-chart-point: #ffffff;
  --steps-chart-grid: rgba(120,170,255,.12);
}

.kdn-sante-steps-tracking .ksl-tracking-mount {
  display: grid;
  gap: 12px;
}

.kdn-sante-steps-tracking #kdn-sante-steps-range-custom[hidden] {
  display: none !important;
}

.kdn-sante-steps-tracking .ksl-select-trigger,
.kdn-sante-steps-tracking #kdn-sante-steps-period,
.kdn-sante-steps-tracking .ksl-btn {
  border-radius: 14px !important;
}

.kdn-sante-steps-tracking .ksl-kpi,
.kdn-sante-steps-tracking .ksl-chart-card,
.kdn-sante-steps-tracking .ksl-history-table,
.kdn-sante-steps-tracking #kdn-sante-steps-history-toggle {
  border-radius: 18px !important;
  overflow: hidden;
}

.kdn-sante-steps-tracking .ksl-chart,
.kdn-sante-steps-tracking .ksl-iconbtn {
  border-radius: 12px !important;
}

.kdn-sante-steps-tracking .ksl-chart {
  overflow: hidden;
}

.kdn-sante-steps-tracking #kdn-sante-steps-chart {
  display: block;
}

.kdn-sante-steps-tracking #kdn-sante-steps-chart {
  width: 100% !important;
  height: 100% !important;
}

.kdn-sante-steps-tracking #kdn-sante-steps-chart-empty[hidden] {
  display: none !important;
}

.kdn-sante-steps-tracking #kdn-sante-steps-chart-empty:not([hidden]) {
  display: block !important;
}

.kdn-sante-steps-tracking #kdn-sante-steps-chart-empty {
  margin: 0;
  color: var(--ksl-faint);
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
}

.kdn-sante-steps-tracking .ksl-chart-card {
  position: relative;
  border:0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0;
}

.kdn-sante-steps-tracking .ksl-visual-card {
  border:0.75px solid #ffffff15 !important;
  background: transparent !important;
}

[data-theme="light"] .kdn-sante-steps-tracking .ksl-visual-card {
  border:0.75px solid #00000020 !important;
  background: transparent !important;
}

.kdn-sante-steps-tracking .ksl-visual-card .ksl-chart {
  height: 214px;
  border:0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.kdn-sante-steps-tracking .ksl-visual-card .ksl-chart canvas,
.kdn-sante-steps-tracking #kdn-sante-steps-chart {
  border-radius: 0 0 16px 16px !important;
}

.kdn-sante-steps-tracking .ksl-carousel-nav .material-symbols-rounded {
  color: var(--tile-ico-color, var(--ksl-accent-2)) !important;
}

.kdn-sante-steps-tracking .ksl-donut-center small {
  letter-spacing: 0;
}

.kdn-sante-steps-tracking .ksl-bar-strip {
  justify-content: center;
}

.kdn-sante-steps-tracking .ksl-bar-caption {
  margin: -4px 0 0;
  color: var(--ksl-faint);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.kdn-sante-steps-tracking .ksl-bar {
  max-width: 30px;
}

.kdn-sante-steps-tracking #kdn-sante-steps-history-toggle {
  margin-top: 12px;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.06);
}

.kdn-sante-steps-tracking #kdn-sante-steps-history-toggle[aria-expanded="true"] {
}

.kdn-sante-steps-tracking #kdn-sante-steps-history[hidden] {
  display: none !important;
}

.kdn-sante-steps-tracking #kdn-sante-steps-history {
  margin-top: 10px;
}

.kdn-sante-steps-tracking .kdn-sante-steps-history-date {
  color: var(--ksl-text);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.kdn-sante-steps-tracking .kdn-sante-steps-history-note {
  margin-top: 6px;
  color: var(--ksl-muted);
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-modal-panel,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-modal-panel {
  width: min(560px, 96vw);
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-form-grid,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field {
  display: grid;
  gap: 8px;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field > span,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field > span {
  color: var(--kdn-ar-muted);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field input[type="number"],
.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field textarea,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field input[type="number"],
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field textarea {
  min-height: 40px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--ksp-surface);
  color: var(--kdn-ar-text) !important;
  -webkit-text-fill-color: var(--kdn-ar-text) !important;
  font-size: 15px;
  outline:none;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field textarea,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field textarea {
  resize: vertical;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field input:hover,
.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field textarea:hover,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field input:hover,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field textarea:hover {
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field input:focus,
.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field input:focus-visible,
.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field textarea:focus,
.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field textarea:focus-visible,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field input:focus,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field input:focus-visible,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field textarea:focus,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field textarea:focus-visible {
  color: var(--kdn-ar-text) !important;
  -webkit-text-fill-color: var(--kdn-ar-text) !important;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-modal-body,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-modal-body {
  overflow-x: hidden;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-wrap,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-wrap {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ksp-surface);
  box-sizing: border-box;
  overflow: hidden;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell:focus-within,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell:focus-within {
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-display,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-display {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--kdn-ar-text);
  pointer-events: none;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-display.is-placeholder,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-display.is-placeholder {
  color: var(--kdn-ar-muted);
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-icon,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: var(--kdn-ar-muted);
  pointer-events: none;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"],
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  opacity: 0.0001;
  background: transparent !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-calendar-picker-indicator,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-date-and-time-value,
.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-datetime-edit,
.kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-date-and-time-value,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-datetime-edit,
.kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-field--date .kdn-cl-modal-date-shell > input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}


/* Scoped RDV médicaux popup field refinements */
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-select-trigger,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-switch,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-btn,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-select-trigger,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-switch,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-btn {
  border: 0 !important;
  outline:none;
}

.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea {
  background: rgba(255, 255, 255, 0.065) !important;
  color: var(--kdn-sante-text) !important;
  -webkit-text-fill-color: var(--kdn-sante-text) !important;
}

.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-select-trigger,
.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-switch,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-select-trigger,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-switch {
  background: rgba(255, 255, 255, 0.085) !important;
}

.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-btn,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-btn {
  background: rgba(255, 255, 255, 0.07) !important;
}

.kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-btn[data-active="1"],
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-btn[data-active="1"] {
  background: linear-gradient(135deg, rgba(100, 210, 255, 0.96), rgba(10, 132, 255, 0.88)) !important;
}

[data-theme="light"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
[data-theme="light"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
[data-theme="light"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea,
[data-theme="light"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
[data-theme="light"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
[data-theme="light"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea {
  background: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="light"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-select-trigger,
[data-theme="light"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-switch,
[data-theme="light"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-select-trigger,
[data-theme="light"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-medical-mode-switch {
  background: rgba(239, 245, 251, 0.86) !important;
}

[data-theme="blue"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
[data-theme="blue"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
[data-theme="blue"] .kdn-popup[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea,
[data-theme="blue"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field input,
[data-theme="blue"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field select,
[data-theme="blue"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] .kdn-sante-field textarea {
  background: rgba(255, 255, 255, 0.075) !important;
}

.kdn-popup[data-modal="kdn-sante-medical-modal"] input[type="date"],
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] input[type="date"] {
  min-width: 0;
  line-height: normal;
  text-align: left;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}

[data-theme="light"] .kdn-popup[data-modal="kdn-sante-medical-modal"] input[type="date"],
[data-theme="light"] .kdn-ar-modal[data-modal="kdn-sante-medical-modal"] input[type="date"] {
  color-scheme: light;
}

.kdn-popup[data-modal="kdn-sante-medical-modal"] input[type="date"]::-webkit-date-and-time-value,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.35em;
  text-align: left;
  color: var(--kdn-sante-text);
}

.kdn-popup[data-modal="kdn-sante-medical-modal"] input[type="date"]::-webkit-calendar-picker-indicator,
.kdn-ar-modal[data-modal="kdn-sante-medical-modal"] input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
}

@media (max-width: 767px) {
  .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-stat--global,
  .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-stat--best {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .kdn-sante-module[data-kdn-sante-medical="1"],
  .kdn-sante-module[data-kdn-sante-addictions="1"],
  .kdn-sante-module[data-kdn-sante-wellness="1"],
  #kdn-sante-steps-tracking-root,
  .kaidan-sante #kaidan-sleep-tracking-root {
    padding: 1em 8px !important;
    --kdn-ov-gap: 1px;
  }
}

@media (max-width: 767px) {
  .kdn-sante-steps-tracking .ksl-carousel-nav {
    display: none !important;
  }

  .kdn-sante-steps-tracking #kdn-sante-steps-period {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
  }

  .kdn-sante-steps-tracking #kdn-sante-steps-add {
    position: fixed;
    right: 6vw;
    bottom: 80px;
    z-index: 9999;
    width: auto;
    min-width: 52px;
    height: 52px;
    padding: 0 18px;
    gap: 8px;
    border-radius: 99px;
    background: linear-gradient(135deg, rgba(10,132,255,0.96), rgba(100,210,255,0.86));
    color: rgba(255,255,255,0.98);
    justify-content: center;
    white-space: nowrap;
  }

  .kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-modal-panel,
  .kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-modal-panel {
    width: 94vw;
  }

  .kdn-popup[data-modal="kdn-sante-steps-manual"] .ksl-form-grid,
  .kdn-ar-modal[data-modal="kdn-sante-steps-manual"] .ksl-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .kdn-sante-stage-card {
    border-radius: 24px;
    padding: 18px;
  }

  .kdn-sante-stage-head {
    gap: 14px;
  }

  .kdn-sante-stage-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
  }

  .kdn-sante-stage-copy h3 {
    font-size: 22px;
  }

  .kdn-sante-stage-copy p {
    font-size: 14px;
  }

  .kdn-sante-stage-points {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kdn-sante-stage-points li {
    min-height: 0;
    border-radius: 18px;
    padding: 14px 16px;
  }

  .kdn-sante-addictions-topbar {
    justify-content: stretch;
  }

  .kdn-sante-addictions-topbar .kdn-sante-btn {
    flex: 1 1 calc(50% - 5px);
  }

  .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }


  .kdn-sante-wellness-add-btn {
    display: none !important;
  }

  .kdn-sante-wellness-fab,
  .kdn-sante-wellness-fab:hover,
  .kdn-sante-wellness-fab:focus {
    display: inline-flex !important;
    position: fixed;
    right: 6vw;
    bottom: 80px;
    z-index: 9999;
    width: auto;
    min-width: 52px;
    height: 52px;
    padding: 0 18px;
    border-radius: 99px !important;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.96), rgba(100, 210, 255, 0.86)) !important;
    color: #05111c;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
  }

  .kdn-sante-wellness-fab .material-symbols-rounded {
    font-size: 24px;
    line-height: 1;
    color: #05111c;
    flex: 0 0 auto;
  }

  .kdn-sante-wellness-fablabel {
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .kdn-sante-wellness-head {
    display: block;
    margin-bottom: 12px;
  }

  .kdn-sante-wellness-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-bottom: 0;
  }

  .kdn-sante-wellness-board {
    border-radius: 20px;
    padding: 6px 16px;
  }

  .kdn-sante-wellness-row {
    padding: 14px 0;
  }

  .kdn-sante-wellness-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kdn-sante-wellness-metric {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .kdn-sante-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .kdn-sante-panel-actions,
  .kdn-sante-summary-grid,
  .kdn-sante-form-grid {
    grid-template-columns: 1fr;
  }

  .kdn-sante-medical-field--category,
  .kdn-sante-medical-field--mode {
    grid-column: auto;
  }

  .kdn-sante-summary-grid {
    display: grid;
  }

  .kdn-sante-wellness-summary-grid {
    display: grid;
  }

  .kdn-sante-medical-topbar {
    display: block;
    margin-bottom: 14px;
  }

  .kdn-sante-medical-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kdn-sante-medical-add-btn {
    display: none;
  }

  .kdn-sante-medical-fab,
  .kdn-sante-medical-fab:hover,
  .kdn-sante-medical-fab:focus {
    display: inline-flex;
    position: fixed;
    right: 6vw;
    bottom: 80px;
    z-index: 9999;
    width: 128px !important;
    height: 52px;
    padding: 0 18px;
    border-radius: 99px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.96), rgba(100, 210, 255, 0.86)) !important;
    color: #05111c;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-wrap: nowrap;
    text-align: center;
  }

  .kdn-sante-medical-fab .material-symbols-rounded {
    font-size: 24px;
    line-height: 1;
    color: #05111c;
    flex: 0 0 auto;
  }

  .kdn-sante-medical-fablabel {
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .kdn-sante-stat-card,
  .kdn-sante-item,
  .kdn-sante-calendar-card,
  .kdn-sante-addictions-head,
  .kdn-sante-empty {
    border-radius: 20px;
  }

  .kdn-sante-calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kdn-sante-day {
    min-height: 62px;
  }
}


@media (min-width: 1025px) {
  .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item [data-kdn-sante-medical-menu],
  .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-row [data-kdn-sante-wellness-menu] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item:hover [data-kdn-sante-medical-menu],
  .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item:focus-within [data-kdn-sante-medical-menu],
  .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item [data-kdn-sante-medical-menu]:focus,
  .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item [data-kdn-sante-medical-menu]:focus-visible,
  .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-row:hover [data-kdn-sante-wellness-menu],
  .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-row:focus-within [data-kdn-sante-wellness-menu],
  .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-row [data-kdn-sante-wellness-menu]:focus,
  .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-row [data-kdn-sante-wellness-menu]:focus-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@media (min-width: 768px) {
  .kdn-sante-wellness-metrics {
    gap: 10px 85px;
  }

  .kdn-sante-wellness-metric {
    grid-template-columns: minmax(0, 1fr) auto max-content;
    align-items: center;
    gap: 10px;
  }

  .kdn-sante-wellness-track,
  .kdn-sante-wellness-value,
  .kdn-sante-wellness-metric-label {
    grid-row: 1;
  }

  .kdn-sante-wellness-track {
    grid-column: 1;
  }

  .kdn-sante-wellness-value {
    grid-column: 2;
    justify-self: start;
    white-space: nowrap;
  }

  .kdn-sante-wellness-metric-label {
    grid-column: 3;
    justify-self: start;
    text-align: left;
    white-space: nowrap;
  }
}
/* ==========================================================================
   Objectifs / Tâches skin — RDV médicaux + Addictions uniquement
   Scope strict : onglets Santé ciblés, sans modification fonctionnelle.
   ========================================================================== */

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"],
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] {
  --ksgo-bg: #10131f;
  --ksgo-bg-soft: rgba(255, 255, 255, .055);
  --ksgo-bg-strong: rgba(255, 255, 255, .09);
  --ksgo-card: rgba(255, 255, 255, .075);
  --ksgo-card-2: rgba(255, 255, 255, .11);
  --ksgo-text: rgba(255, 255, 255, .94);
  --ksgo-muted: rgba(255, 255, 255, .62);
  --ksgo-soft: rgba(255, 255, 255, .44);
  --ksgo-accent: #8b7dff;
  --ksgo-accent-2: #4fd1c5;
  --ksgo-success: #55d98b;
  --ksgo-danger: #ff6b6b;
  --ksgo-warning: #ffd166;
  width: 100%;
  color: var(--ksgo-text);
  padding: 20px 0;
  border-radius: 28px;
  overflow: visible;
}

html[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"],
html[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"],
[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"],
[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] {
  --ksgo-bg: #f5f6fb;
  --ksgo-bg-soft: rgba(20, 24, 40, .055);
  --ksgo-bg-strong: rgba(20, 24, 40, .085);
  --ksgo-card: rgba(20, 24, 40, .065);
  --ksgo-card-2: rgba(20, 24, 40, .095);
  --ksgo-text: rgba(12, 18, 32, .92);
  --ksgo-muted: rgba(12, 18, 32, .58);
  --ksgo-soft: rgba(12, 18, 32, .42);
  --ksgo-accent: #6557ff;
  --ksgo-accent-2: #0f9f94;
  --ksgo-success: #0f9f5f;
  --ksgo-danger: #d94141;
  --ksgo-warning: #b87900;
}

html[data-theme="blue"] .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"],
html[data-theme="blue"] .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"],
[data-theme="blue"] .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"],
[data-theme="blue"] .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] {
  --ksgo-bg: #07172f;
  --ksgo-bg-soft: rgba(130, 190, 255, .07);
  --ksgo-bg-strong: rgba(130, 190, 255, .12);
  --ksgo-card: rgba(130, 190, 255, .09);
  --ksgo-card-2: rgba(130, 190, 255, .135);
  --ksgo-text: rgba(239, 247, 255, .96);
  --ksgo-muted: rgba(239, 247, 255, .64);
  --ksgo-soft: rgba(239, 247, 255, .46);
  --ksgo-accent: #64a8ff;
  --ksgo-accent-2: #55e6d2;
  --ksgo-success: #65e59d;
  --ksgo-danger: #ff7b7b;
  --ksgo-warning: #ffd36f;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] *,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] * {
  box-sizing: border-box;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-topbar,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 10px 14px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-topbar {
  align-items: stretch;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-summary-grid,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-summary-grid {
  display: grid;
  gap: 10px;
  margin: 0 10px 14px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-stat-card,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-stat-card {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  padding: 14px;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-stat-card span,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-stat-card span {
  grid-column: 1 / -1;
  display: block;
  color: var(--ksgo-muted) !important;
  font-size: .8rem;
  line-height: 1.2;
  text-transform: lowercase;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-stat-card strong,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-stat-card strong {
  grid-column: 1 / -1;
  display: block;
  color: var(--ksgo-text) !important;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-iconbtn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-iconbtn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  cursor: pointer;
  font: inherit;
  outline:none;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn--primary,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn--primary:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn--primary:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn--primary:focus-visible,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn--primary,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn--primary:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn--primary:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn--primary:focus-visible {
  background: linear-gradient(135deg, var(--ksgo-accent), var(--ksgo-accent-2)) !important;
  color: #fff !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn:focus-visible,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-iconbtn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-iconbtn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-iconbtn:focus-visible,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn:focus-visible,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-iconbtn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-iconbtn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-iconbtn:focus-visible,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day:focus-visible {
  outline:none;
  transform: none !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-iconbtn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-iconbtn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-iconbtn .material-symbols-rounded,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-iconbtn .material-symbols-rounded,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-btn .material-symbols-rounded,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-btn .material-symbols-rounded {
  font-size: 22px;
  line-height: 1;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item {
position: relative;
    overflow: visible;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 68px;
    margin: 0 10px;
    padding: 20px 10px 25px 10px;
    border-bottom: 1px solid #ffffff10;
    border-radius: 0;
    /* background: var(--ksgo-card) !important; */
    color: var(--ksgo-text) !important;
}

[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item {
    border-bottom: 1px solid #00000015;
}

@media (max-width:1024px) {
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item {
    padding: 10px 0 15px;
}
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-item-titleline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-item-titleline h3 {
  min-width: 0;
  margin: 0;
  color: var(--ksgo-text) !important;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -.02em;
  word-break: break-word;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-info-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0 !important;
  cursor:pointer;
  border-radius: 999px !important;
  background: var(--ksgo-bg-soft) !important;
  color: var(--ksgo-muted) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-info-btn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-info-btn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-info-btn:focus-visible {
  background: var(--ksgo-bg-soft) !important;
  color: var(--ksgo-muted) !important;
  outline:none;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-item-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-item-actions .kdn-sante-iconbtn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-alert-indicator {
  width: 38px;
  min-width: 38px;
  height: 38px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-alert-indicator,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-alert-indicator:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-alert-indicator:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-alert-indicator:focus-visible {
  background: color-mix(in oklab, var(--ksgo-warning), transparent 78%) !important;
  color: var(--ksgo-warning) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--ksgo-muted) !important;
  font-size: .83rem;
  line-height: 1.35;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ksgo-bg-soft) !important;
  color: var(--ksgo-accent-2) !important;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-lines {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-lines span {
  color: var(--ksgo-muted) !important;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.3;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-lines strong {
  min-width: 0;
  color: var(--ksgo-text) !important;
  font-size: .9rem;
  font-weight: 680;
  line-height: 1.3;
  text-align: right;
  word-break: break-word;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-empty,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-empty {
  margin: 0 10px;
  padding: 22px 18px;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-muted) !important;
  text-align: center;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-current {
  margin: 0 10px 10px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-current .kdn-sante-empty {
  margin: 0;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px;
  min-height: 68px;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-head:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-head:focus-within {
  background: var(--ksgo-card) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-head p {
  margin: 0 0 5px;
  color: var(--ksgo-muted) !important;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-head h3 {
  margin: 0;
  color: var(--ksgo-text) !important;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -.02em;
  word-break: break-word;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-card {
  margin: 0 10px;
  padding: 13px;
  border: 0 !important;
  border-radius: 22px !important;
  color: var(--ksgo-text) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-head strong {
  color: var(--ksgo-text) !important;
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -.02em;
  text-align: center;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 18px !important;
  background: var(--ksgo-bg-soft) !important;
  color: var(--ksgo-text) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day.is-empty {
  opacity: 1;
  color: var(--ksgo-soft) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day.is-success {
  background: color-mix(in oklab, var(--ksgo-success), transparent 82%) !important;
  color: var(--ksgo-success) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day.is-fail {
  background: color-mix(in oklab, var(--ksgo-danger), transparent 84%) !important;
  color: var(--ksgo-danger) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day-number {
  color: currentColor !important;
  opacity: .72;
  font-size: .76rem;
  line-height: 1;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day .material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
  color: currentColor !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-recent {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ksgo-bg-soft) !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-recent h4 {
  margin: 0;
  color: var(--ksgo-muted) !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-recent-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--ksgo-muted) !important;
  font-size: .88rem;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-recent-line strong {
  margin-left: 0;
  color: var(--ksgo-text) !important;
  font-weight: 680;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-select-trigger,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-mode-switch {
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
  outline:none;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-select-trigger:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-select-trigger:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-select-trigger:focus-visible,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-mode-switch:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-mode-switch:focus-within {
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
  outline:none;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-mode-btn {
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ksgo-muted) !important;
  outline:none;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-mode-btn[data-active="1"],
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-mode-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--ksgo-accent), var(--ksgo-accent-2)) !important;
  color: #fff !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-recommendation {
  padding: 13px;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
}

@media (max-width: 767px) {
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"],
  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] {
    padding: 1em 8px !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-topbar,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-empty,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-current,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-summary-grid,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-card,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-empty {
    margin-left: 0;
    margin-right: 0;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-topbar {
    display: block;
    margin-bottom: 14px;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar .kdn-sante-btn {
    width: 100%;
    min-width: 0;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar [data-kdn-sante-addictions-open] {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar [data-kdn-sante-addictions-open] span:not(.material-symbols-rounded) {
    display: none;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-summary-grid,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-lines li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-item-lines strong {
    text-align: left;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-day {
    min-height: 56px;
    border-radius: 16px !important;
  }
}
/* ==========================================================================
   Correctifs Santé — boutons Objectifs + gestion Addictions
   Scope strict : RDV médicaux, Addictions, État de forme.
   ========================================================================== */

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] [hidden],
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] [hidden],
.kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] [hidden] {
  display: none !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] {
  --ksgo-bg: #10131f;
  --ksgo-bg-soft: rgba(255, 255, 255, .055);
  --ksgo-card: rgba(255, 255, 255, .095);
  --ksgo-card-2: rgba(255, 255, 255, .125);
  --ksgo-text: rgba(255, 255, 255, .95);
  --ksgo-muted: rgba(255, 255, 255, .63);
  --ksgo-accent: #8a7cff;
  --ksgo-accent-2: #58d5d0;
}

[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"],
html[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"],
body[data-theme="light"] .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] {
  --ksgo-bg: #f4f7fb;
  --ksgo-bg-soft: rgba(20, 34, 55, .065);
  --ksgo-card: rgba(255, 255, 255, .84);
  --ksgo-card-2: rgba(255, 255, 255, .96);
  --ksgo-text: #172033;
  --ksgo-muted: rgba(23, 32, 51, .62);
  --ksgo-accent: #6f6cff;
  --ksgo-accent-2: #13b8b4;
}

[data-theme="blue"] .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"],
html[data-theme="blue"] .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"],
body[data-theme="blue"] .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] {
  --ksgo-bg: #08172b;
  --ksgo-bg-soft: rgba(255, 255, 255, .06);
  --ksgo-card: rgba(255, 255, 255, .10);
  --ksgo-card-2: rgba(255, 255, 255, .14);
  --ksgo-text: rgba(255, 255, 255, .96);
  --ksgo-muted: rgba(255, 255, 255, .65);
  --ksgo-accent: #64d2ff;
  --ksgo-accent-2: #7bdcb5;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-current[hidden] {
  display: none !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px auto;
  align-items: center;
  gap: 10px;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar [data-kdn-sante-addictions-picker] {
  width: 100%;
  min-width: 0;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-manage-btn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-manage-btn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-manage-btn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-manage-btn:focus-visible {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  background: var(--ksgo-card) !important;
  color: var(--ksgo-text) !important;
  outline:none;
  transform: none !important;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-add-btn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-add-btn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-add-btn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-add-btn:focus-visible,
.kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-add-btn,
.kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-add-btn:hover,
.kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-add-btn:focus,
.kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-add-btn:focus-visible {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    align-self: center;
    padding: 0 15px;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--ksgo-accent), var(--ksgo-accent-2)) !important;
    color: #fff !important;
    font: inherit;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    outline:none;
    transform: none !important;
    white-space: nowrap;
}

.kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab,
.kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab {
  display: none !important;
}

@media (min-width: 768px) {
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab {
    display: none !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-add-btn,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-add-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 767px) {
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-add-btn,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-add-btn {
    display: none !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab:hover,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab:focus,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab:focus-visible,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab:hover,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab:focus,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab:focus-visible {
    position: fixed !important;
    left: max(14px, env(safe-area-inset-left)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: 60px !important;
    z-index: 9990 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--ksgo-accent), var(--ksgo-accent-2)) !important;
    color: #fff !important;
    font: inherit !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    outline:none;
    transform: none !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab .material-symbols-rounded,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab .material-symbols-rounded {
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fablabel,
  .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fablabel {
    color: #fff !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar {
    grid-template-columns: minmax(0, 1fr) 44px 44px !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar [data-kdn-sante-addictions-open] {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }

  .kaidan-sante .kdn-sante-module[data-kdn-sante-addictions="1"] .kdn-sante-addictions-topbar [data-kdn-sante-addictions-open] span:not(.material-symbols-rounded) {
    display: none !important;
  }
}

/* KAIDAN — Harmonisation Objectifs : Nombre de pas — bouton Ajouter */
.kdn-sante-steps-tracking #kdn-sante-steps-add,
.kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
.kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
.kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible {
  background: linear-gradient(135deg, #8b7dff, #4fd1c5) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  outline:none;
}

html[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
html[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
html[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
html[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible,
body[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
body[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
body[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
body[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible,
[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible {
  background: linear-gradient(135deg, #6557ff, #0f9f94) !important;
  color: #fff !important;
}

html[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
html[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
html[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
html[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible,
body[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
body[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
body[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
body[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible,
[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible {
  background: linear-gradient(135deg, #64a8ff, #55e6d2) !important;
  color: #fff !important;
}

.kdn-sante-steps-tracking #kdn-sante-steps-add .material-symbols-rounded {
  color: #fff !important;
  line-height: 1 !important;
}


@media (max-width: 767px) {
  .kdn-sante-steps-tracking #kdn-sante-steps-add {
    position: fixed !important;
    left: max(14px, env(safe-area-inset-left)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: 60px !important;
    z-index: 9990 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #8b7dff, #4fd1c5) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    outline:none;
    transform: none !important;
  }

  html[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
  body[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
  [data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add {
    background: linear-gradient(135deg, #6557ff, #0f9f94) !important;
    color: #fff !important;
  }

  html[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
  body[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
  [data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add {
    background: linear-gradient(135deg, #64a8ff, #55e6d2) !important;
    color: #fff !important;
  }
}

/* Kaidan/Objectifs button match: steps add */
.kdn-sante-steps-tracking #kdn-sante-steps-add,
.kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
.kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
.kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #8b7dff, #4fd1c5) !important;
  color: #fff !important;
  font: inherit !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  outline:none;
}

html[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
body[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
[data-theme="light"] .kdn-sante-steps-tracking #kdn-sante-steps-add {
  background: linear-gradient(135deg, #6557ff, #0f9f94) !important;
  color: #fff !important;
}

html[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
body[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add,
[data-theme="blue"] .kdn-sante-steps-tracking #kdn-sante-steps-add {
  background: linear-gradient(135deg, #64a8ff, #55e6d2) !important;
  color: #fff !important;
}

.kdn-sante-steps-tracking #kdn-sante-steps-add .material-symbols-rounded {
  color: #fff !important;
  line-height: 1 !important;
}

.kdn-sante-steps-tracking #kdn-sante-steps-add .ksl-addlabel--short {
  display: none !important;
}

@media (max-width: 767px) {
  .kdn-sante-steps-tracking {
    padding-bottom: 132px !important;
  }

  .kdn-sante-steps-tracking #kdn-sante-steps-add .ksl-addlabel--short {
    display: inline !important;
  }

  .kdn-sante-steps-tracking #kdn-sante-steps-add .ksl-addlabel--long {
    display: none !important;
  }

  .kdn-sante-steps-tracking #kdn-sante-steps-add,
  .kdn-sante-steps-tracking #kdn-sante-steps-add:hover,
  .kdn-sante-steps-tracking #kdn-sante-steps-add:focus,
  .kdn-sante-steps-tracking #kdn-sante-steps-add:focus-visible {
    position: fixed !important;
    left: max(14px, env(safe-area-inset-left)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: 60px !important;
    z-index: 9990 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    transform: none !important;
  }
}

@media (max-width:767px) {
  body.kaidan-capacitor-android .kdn-sante-steps-tracking #kdn-sante-steps-add,
  body.kaidan-capacitor-android .kdn-sante-wellness-fab,
  body.kaidan-capacitor-android .kdn-sante-medical-fab,
  body.kaidan-capacitor-android .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab,
  body.kaidan-capacitor-android .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab {
    bottom: 90px !important;
  }

  body.kaidan-capacitor-ios .kdn-sante-steps-tracking #kdn-sante-steps-add,
  body.kaidan-capacitor-ios .kdn-sante-wellness-fab,
  body.kaidan-capacitor-ios .kdn-sante-medical-fab,
  body.kaidan-capacitor-ios .kaidan-sante .kdn-sante-module[data-kdn-sante-wellness="1"] .kdn-sante-wellness-fab,
  body.kaidan-capacitor-ios .kaidan-sante .kdn-sante-module[data-kdn-sante-medical="1"] .kdn-sante-medical-fab {
    bottom: 85px !important;
  }
}
