.kaidan-objectifs .dashboard-block,
.kgo-panel,
.kgo-panel > :not(.kdn-popup),
.kgo-panel > :not(.kdn-popup) *,
.kgo-form,
.kgo-form *,
.kgo-fallback-menu,
.kgo-fallback-menu * {
  box-sizing: border-box;
  border:0;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.kgo-panel {
  --kgo-bg: #10131f;
  --kgo-bg-soft: rgba(255, 255, 255, .055);
  --kgo-bg-strong: rgba(255, 255, 255, .09);
  --kgo-card: rgba(255, 255, 255, .075);
  --kgo-card-2: rgba(255, 255, 255, .11);
  --kgo-text: rgba(255, 255, 255, .94);
  --kgo-muted: rgba(255, 255, 255, .62);
  --kgo-soft: rgba(255, 255, 255, .44);
  --kgo-accent: #8b7dff;
  --kgo-accent-2: #4fd1c5;
  --kgo-danger: #ff6b6b;
  --kgo-warning: #ffd166;
  --kgo-success: #55d98b;
  width: 100%;
  padding: 20px 0;
  color: var(--kgo-text);
  border-radius: 28px;
  overflow: hidden;
}

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

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

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

.kgo-head-text {
  min-width: 0;
}

.kgo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--kgo-bg-soft);
  color: var(--kgo-accent-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kgo-head h2 {
  margin: 0;
  color: var(--kgo-text);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.kgo-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--kgo-muted);
  font-size: .98rem;
  line-height: 1.5;
}

.kgo-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.kgo-btn,
.kgo-icon-btn,
.kgo-filters button,
.kgo-period-card,
.kgo-check,
.kgo-search-toggle,
.kgo-select-trigger,
.kgo-step-add,
.kgo-step-remove,
.kgo-card-step,
.kgo-fallback-panel button {
  appearance: none;
  -webkit-appearance: none;
  border:0;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer;
  font: inherit;
}

.kgo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--kgo-card);
  color: var(--kgo-text);
  font-weight: 800;
  transition: transform .18s ease, opacity .18s ease;
}

.kgo-btn:hover,
.kgo-btn:focus,
.kgo-btn:focus-visible,
.kgo-icon-btn:hover,
.kgo-icon-btn:focus,
.kgo-icon-btn:focus-visible,
.kgo-filters button:hover,
.kgo-filters button:focus,
.kgo-filters button:focus-visible,
.kgo-period-card:hover,
.kgo-period-card:focus,
.kgo-period-card:focus-visible,
.kgo-check:hover,
.kgo-check:focus,
.kgo-check:focus-visible,
.kgo-search-toggle:hover,
.kgo-search-toggle:focus,
.kgo-search-toggle:focus-visible,
.kgo-select-trigger:hover,
.kgo-select-trigger:focus,
.kgo-select-trigger:focus-visible,
.kgo-step-add:hover,
.kgo-step-add:focus,
.kgo-step-add:focus-visible,
.kgo-step-remove:hover,
.kgo-step-remove:focus,
.kgo-step-remove:focus-visible,
.kgo-card-step:hover,
.kgo-card-step:focus,
.kgo-card-step:focus-visible,
.kgo-fallback-panel button:hover,
.kgo-fallback-panel button:focus,
.kgo-fallback-panel button:focus-visible {
  transform: translateY(-1px);
  outline:none;
}

.kgo-btn:active,
.kgo-icon-btn:active,
.kgo-filters button:active,
.kgo-period-card:active,
.kgo-check:active,
.kgo-search-toggle:active,
.kgo-select-trigger:active,
.kgo-step-add:active,
.kgo-step-remove:active,
.kgo-card-step:active,
.kgo-fallback-panel button:active {
  transform: translateY(0) scale(.98);
}

.kgo-btn-primary {
  background: linear-gradient(135deg, var(--kgo-accent), var(--kgo-accent-2));
  color: #fff;
}

.kgo-btn:hover,
.kgo-btn:focus,
.kgo-btn:focus-visible {
  background: var(--kgo-card);
  color: var(--kgo-text);
}

.kgo-btn-primary:hover,
.kgo-btn-primary:focus,
.kgo-btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--kgo-accent), var(--kgo-accent-2));
  color: #fff;
}

.kgo-icon-btn:hover,
.kgo-icon-btn:focus,
.kgo-icon-btn:focus-visible,
.kgo-search-toggle:hover,
.kgo-search-toggle:focus,
.kgo-search-toggle:focus-visible {
  background: var(--kgo-card);
  color: var(--kgo-text);
}

.kgo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--kgo-card);
  color: var(--kgo-text);
}

.kgo-icon-btn .material-symbols-rounded,
.kgo-btn .material-symbols-rounded,
.kgo-check .material-symbols-rounded {
  font-size: 22px;
  line-height: 1;
}

.kgo-stats,
.kgo-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.kgo-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 10px;
  padding: 14px;
  border-radius: 22px;
  background: var(--kgo-card);
  color: var(--kgo-text);
}

.kgo-stat .material-symbols-rounded {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--kgo-bg-soft);
  color: var(--kgo-accent-2);
  font-size: 21px;
}

.kgo-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--kgo-text);
}

.kgo-stat small {
  display: block;
  color: var(--kgo-muted);
  font-size: .8rem;
  line-height: 1.2;
  text-transform: lowercase;
}

.kgo-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.kgo-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kgo-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--kgo-card);
  color: var(--kgo-text);
  transition: transform .18s ease, opacity .18s ease;
}

.kgo-search-shell.is-open .kgo-search-toggle {
  background: var(--kgo-card);
  color: var(--kgo-text);
}

.kgo-search {
  display: none;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--kgo-card);
  color: var(--kgo-muted);
}

.kgo-search-shell.is-open .kgo-search {
  display: flex;
}

.kgo-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--kgo-text);
  outline:none;
  font: inherit;
}

.kgo-search input::placeholder {
  color: var(--kgo-soft);
}

.kgo-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kgo-filters::-webkit-scrollbar {
  display: none;
}

.kgo-filters button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--kgo-card);
  color: var(--kgo-muted);
  font-weight: 800;
  white-space: nowrap;
}

.kgo-filters button.is-active {
  background: linear-gradient(135deg, var(--kgo-accent), var(--kgo-accent-2));
  color: #fff;
}

.kgo-list,
.kgo-mini-list {
  display: grid;
  gap: 10px;
}

.kgo-card,
.kgo-mini-goal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 22px;
  background: var(--kgo-card);
  color: var(--kgo-text);
}

.kgo-card.is-late {
  background: linear-gradient(135deg, rgba(255, 107, 107, .18), var(--kgo-card));
}

.kgo-card.is-progress {
  background: linear-gradient(135deg, rgba(79, 209, 197, .14), var(--kgo-card));
}

.kgo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--kgo-bg-soft);
  color: var(--kgo-soft);
}

.kgo-check.is-done {
  color: var(--kgo-success);
  background: rgba(85, 217, 139, .14);
}

.kgo-card-main {
  min-width: 0;
}

.kgo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kgo-card h3,
.kgo-mini-goal strong,
.kgo-section-title h3 {
  margin: 0;
  color: var(--kgo-text);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.kgo-card p,
.kgo-card small,
.kgo-mini-goal small {
  display: block;
  margin: 4px 0 0;
  color: var(--kgo-muted);
  font-size: .84rem;
  line-height: 1.35;
}

.kgo-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--kgo-bg-soft);
  color: var(--kgo-muted);
  font-size: .74rem;
  font-weight: 800;
}

.kgo-progress {
  width: 100%;
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--kgo-bg-soft);
}

.kgo-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kgo-accent), var(--kgo-accent-2));
}

.kgo-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.kgo-progress-line .kgo-progress {
  margin-top: 0;
}

.kgo-progress-number {
  color: var(--kgo-accent-2);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
}

.kgo-card-steps {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.kgo-card-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 14px;
  background: var(--kgo-bg-soft);
  color: var(--kgo-muted);
  text-align: left;
  font-size: .82rem;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.kgo-card-step .material-symbols-rounded {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: var(--kgo-soft);
}

.kgo-card-step span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kgo-card-step.is-done {
  background: rgba(85, 217, 139, .12);
  color: var(--kgo-text);
}

.kgo-card-step.is-done .material-symbols-rounded {
  color: var(--kgo-success);
}

.kgo-card-step.is-done span:last-child {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--kgo-success);
}

.kgo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 22px;
  border-radius: 24px;
  background: var(--kgo-card);
  color: var(--kgo-muted);
  text-align: center;
  line-height: 1.5;
}

.kgo-overview {
  display: grid;
  gap: 14px;
}

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

.kgo-period-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 15px;
  border-radius: 22px;
  background: var(--kgo-card);
  color: var(--kgo-text);
  text-align: left;
}

.kgo-period-card span {
  color: var(--kgo-muted);
  font-weight: 800;
}

.kgo-period-card strong {
  color: var(--kgo-text);
  font-size: 1.8rem;
  line-height: 1;
}

.kgo-period-card small {
  color: var(--kgo-soft);
  font-weight: 700;
}

.kgo-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.kgo-mini-goal {
  grid-template-columns: minmax(0, 1fr) auto;
}














.kgo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
}

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

.kgo-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.kgo-field-full {
  grid-column: 1 / -1;
}

.kgo-field[hidden],
.kgo-field.kdn-hidden {
  display: none !important;
}

.kgo-field span {
  color: var(--kgo-muted, rgba(255, 255, 255, .65));
  font-size: .82rem;
  font-weight: 800;
}

.kgo-field input,
.kgo-field select,
.kgo-field textarea {
  min-height: 46px;
  padding: 0 13px;
  border-radius: 16px;
  background: var(--kgo-card, rgba(255, 255, 255, .08));
  color: var(--kgo-text, #fff);
  outline:none;
  font: inherit;
}

.kgo-field textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.kgo-field input[type="range"] {
  padding: 0;
  min-height: 34px;
  accent-color: var(--kgo-accent, #8b7dff);
}

.kgo-steps-shell {
  padding: 12px;
  border-radius: 20px;
  background: var(--kgo-card, rgba(255, 255, 255, .08));
}

.kgo-steps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kgo-steps-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--kgo-text, #fff);
  font-weight: 850;
  cursor: pointer;
}

.kgo-steps-toggle input[type="checkbox"],
.kgo-step-row input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--kgo-accent, #8b7dff);
}

.kgo-step-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--kgo-bg-soft, rgba(255, 255, 255, .08));
  color: var(--kgo-text, #fff);
  font-weight: 850;
  white-space: nowrap;
}

.kgo-step-add[hidden] {
  display: none !important;
}

.kgo-step-add .material-symbols-rounded {
  font-size: 19px;
}

.kgo-steps-help {
  margin: 8px 0 0;
  color: var(--kgo-muted, rgba(255, 255, 255, .65));
  font-size: .8rem;
  line-height: 1.35;
}

.kgo-steps-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.kgo-steps-list[hidden] {
  display: none !important;
}

.kgo-step-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.kgo-step-row .kgo-step-title {
  min-height: 42px;
}

.kgo-step-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--kgo-bg-soft, rgba(255, 255, 255, .08));
  color: var(--kgo-muted, rgba(255, 255, 255, .65));
}

.kgo-step-remove:disabled {
  cursor: default;
  opacity: .35;
  transform: none !important;
}

.kgo-step-remove .material-symbols-rounded {
  font-size: 19px;
}

.kgo-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.kgo-fallback-menu {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, .42);
}

.kgo-fallback-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 24px;
  background: #121827;
  color: #fff;
}

.kgo-fallback-panel strong {
  display: block;
  padding: 8px 10px 4px;
  color: rgba(255, 255, 255, .66);
  font-size: .82rem;
}

.kgo-fallback-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-align: left;
  font-weight: 800;
}

.kgo-fallback-panel button.is-danger {
  color: #ff8b8b;
}

.kgo-filters button:hover,
.kgo-filters button:focus,
.kgo-filters button:focus-visible {
  background: var(--kgo-card);
  color: var(--kgo-muted);
}

.kgo-filters button.is-active:hover,
.kgo-filters button.is-active:focus,
.kgo-filters button.is-active:focus-visible {
  background: linear-gradient(135deg, var(--kgo-accent), var(--kgo-accent-2));
  color: #fff;
}

.kgo-period-card:hover,
.kgo-period-card:focus,
.kgo-period-card:focus-visible {
  background: var(--kgo-card);
  color: var(--kgo-text);
}

.kgo-check:hover,
.kgo-check:focus,
.kgo-check:focus-visible {
  background: var(--kgo-bg-soft);
  color: var(--kgo-soft);
}

.kgo-check.is-done:hover,
.kgo-check.is-done:focus,
.kgo-check.is-done:focus-visible {
  background: rgba(85, 217, 139, .14);
  color: var(--kgo-success);
}

.kgo-fallback-panel button:hover,
.kgo-fallback-panel button:focus,
.kgo-fallback-panel button:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.kgo-fallback-panel button.is-danger:hover,
.kgo-fallback-panel button.is-danger:focus,
.kgo-fallback-panel button.is-danger:focus-visible {
  color: #ff8b8b;
}

.kgo-select-trigger:hover,
.kgo-select-trigger:focus,
.kgo-select-trigger:focus-visible {
  background: var(--kgo-card, rgba(255,255,255,.10));
  color: var(--kgo-text, inherit);
}

.kgo-step-add:hover,
.kgo-step-add:focus,
.kgo-step-add:focus-visible,
.kgo-step-remove:hover,
.kgo-step-remove:focus,
.kgo-step-remove:focus-visible,
.kgo-card-step:hover,
.kgo-card-step:focus,
.kgo-card-step:focus-visible {
  background: var(--kgo-bg-soft, rgba(255,255,255,.08));
  color: var(--kgo-text, inherit);
}

.kgo-card-step.is-done:hover,
.kgo-card-step.is-done:focus,
.kgo-card-step.is-done:focus-visible {
  background: rgba(85, 217, 139, .12);
  color: var(--kgo-text);
}

@media (max-width: 1024px) {
  .kgo-panel {
    padding: 1em 8px;
    border-radius: 24px;
  }

  .kgo-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .kgo-filters {
    padding-bottom: 2px;
  }
}

@media (max-width: 767px) {
  .kgo-panel {
    --kgo-mobile-edge-left: max(14px, env(safe-area-inset-left));
    --kgo-mobile-edge-right: max(14px, env(safe-area-inset-right));
    --kgo-mobile-action-bottom: 55px;
    --kgo-mobile-search-size: 52px;
    --kgo-mobile-action-gap: 10px;
    padding: 14px 8px;
    border-radius: 22px;
  }

  .kgo-head {
    display: grid;
    gap: 14px;
  }

  .kgo-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .kgo-head-actions .kgo-btn {
    flex: 1 1 auto;
  }

  .kgo-head h2 {
    font-size: 1.55rem;
  }

  .kgo-head p {
    font-size: .92rem;
  }

  .kgo-stats,
  .kgo-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .kgo-stat {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 8px;
    text-align: center;
  }

  .kgo-stat .material-symbols-rounded {
    grid-row: auto;
    width: 34px;
    height: 34px;
    font-size: 19px;
    display:none;
  }

  .kgo-stat strong {
    font-size: 1.2rem;
  }

  .kgo-stat small {
    font-size: .72rem;
  }

  .kgo-search-toggle,
  .kgo-search {
    min-height: 46px;
    border-radius: 18px;
  }

  .kgo-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .kgo-search-shell {
    min-height: 0;
  }

  .kgo-search-shell.is-open {
    margin-bottom: 4px;
  }

  .kgo-search {
    width: 100%;
  }

  .kgo-search-toggle {
    position: fixed;
    left: var(--kgo-mobile-edge-left);
    bottom: var(--kgo-mobile-action-bottom);
    z-index: 9991;
    width: var(--kgo-mobile-search-size);
    min-width: var(--kgo-mobile-search-size);
    height: var(--kgo-mobile-search-size);
    border-radius: 999px;
  }

  .kgo-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 20px;
  }

  .kgo-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .kgo-card h3 {
    font-size: .96rem;
  }

  .kgo-pill {
    min-height: 24px;
  }

  .kgo-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kgo-period-card {
    min-height: 102px;
    padding: 13px;
    border-radius: 20px;
  }

  

  

  .kgo-form {
    gap: 10px;
    padding: 0 12px 12px;
  }

  .kgo-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kgo-steps-head {
    align-items: stretch;
    flex-direction: column;
  }

  .kgo-step-add {
    width: 100%;
  }

  .kgo-card-step span:last-child {
    white-space: normal;
  }

  

  .kgo-form-actions {
    position: sticky;
    bottom: 0;
    background: var(--kgo-bg, #10131f);
    padding: 10px 0 0;
  }

  .kgo-form-actions .kgo-btn {
    flex: 1 1 0;
  }
}

/* KAIDAN — actions hautes simplifiées */
.kgo-panel,
.kgo-panel > :not(.kdn-popup),
.kgo-panel > :not(.kdn-popup) *,
.kgo-panel > :not(.kdn-popup) button,
.kgo-form,
.kgo-form *,
.kgo-form button {
  border:0;
}

.kgo-top-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 14px;
}

.kgo-top-actions .kgo-btn-main,
.kgo-top-actions .kgo-btn-primary {
  flex: 0 0 auto;
}

.kgo-native-select[data-kdn-sheet-enhanced="1"] {
  display: none !important;
}

.kgo-select-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border:0;
  border-radius: 16px;
  background: var(--kgo-card, rgba(255,255,255,.10));
  color: var(--kgo-text, inherit);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.kgo-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .kgo-top-actions {
    min-height: 0;
    margin-bottom: 0;
  }

  .kgo-top-actions .kgo-btn-main,
  .kgo-top-actions .kgo-btn-primary {
    position: fixed;
    left: calc(var(--kgo-mobile-edge-left) + var(--kgo-mobile-search-size) + var(--kgo-mobile-action-gap));
    right: var(--kgo-mobile-edge-right);
    bottom: var(--kgo-mobile-action-bottom);
    z-index: 9990;
    width: auto;
    min-height: 52px;
    border-radius: 999px;
  }
}

/* Desktop : afficher les options d'un item uniquement au survol */
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .kgo-card > .kgo-icon-btn,
  .kgo-mini-goal .kgo-icon-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .kgo-card:hover > .kgo-icon-btn,
  .kgo-card:focus-within > .kgo-icon-btn,
  .kgo-mini-goal:hover .kgo-icon-btn,
  .kgo-mini-goal:focus-within .kgo-icon-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* KAIDAN — Objectifs : partage temps réel */
.kgo-pill-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.kgo-share-avatars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 28px;
  min-height: 28px;
}

.kgo-share-avatars img + img {
  margin-left: -8px;
}

.kgo-share-avatars--grid {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(2, 16px);
  grid-template-rows: repeat(2, 16px);
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.kgo-share-avatars--grid img {
  width: 16px;
  height: 16px;
}

.kgo-share-avatars--grid img + img {
  margin-left: 0;
}

.kgo-share-avatars--pill {
  min-height: 24px;
  padding: 0 2px;
}

.kgo-share-btn {
  appearance: none;
  border:0;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--kgo-accent), var(--kgo-accent-2));
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.kgo-share-btn[hidden] {
  display: none !important;
}

.kgo-share-btn .material-symbols-rounded {
  font-size: 19px;
}

.kgo-share-btn--footer {
  flex: 0 0 auto;
}

.kgo-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.kgo-share-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--kgo-muted);
  font-size: 12px;
  font-weight: 800;
}

.kgo-share-info[hidden],
.kgo-share-info.kdn-hidden {
  display: none !important;
}

.kgo-share-pending {
  display: flex;
  width: 100%;
  justify-content: flex-start;
margin-top: 6px;
}

.kgo-share-pending.kdn-hidden,
.kgo-share-pending[hidden] {
  display: none !important;
}

.kgo-share-info--banner {
  padding: 0 2px;
  border-radius: 0;
  background: transparent !important;
}

.kgo-share-info .kgo-share-avatars {
  min-height: 24px;
}

.kgo-share-info .kgo-share-avatars img {
  width: 22px;
  height: 22px;
}

.kgo-share-avatars img {
  width: 22px;
  height: 22px;
  border:0;
  outline:none;
  border-radius: 999px;
  object-fit: cover;
  background: var(--kgo-card-2, rgba(255,255,255,.12));
}

@media (min-width: 768px) {
  .kgo-pill-row .kgo-share-avatars {
    order: 1;
  }

  .kgo-pill-row .kgo-pill {
    order: 2;
  }
}

@media (max-width: 767px) {
  .kgo-pill-row {
    justify-content: flex-start;
  }

  .kgo-pill-row .kgo-pill {
    order: 1;
  }

  .kgo-pill-row .kgo-share-avatars {
    order: 2;
  }

  .kgo-share-avatars img {
    width: 20px;
    height: 20px;
  }

  .kgo-modal-actions {
    align-items: stretch;
  }

  .kgo-share-btn--footer,
  .kgo-modal-actions .kdn-ar-btn {
    flex: 1 1 0;
  }
}
/* KAIDAN — Objectifs : lisibilité de la popup en thème clair */
html[data-theme="light"] .kaidan-objectifs .kgo-modal,
body[data-theme="light"] .kaidan-objectifs .kgo-modal,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal,
[data-theme="light"] .kaidan-objectifs .kgo-modal {
  --kgo-modal-surface: #f6f7fb;
  --kgo-modal-surface-2: rgba(255, 255, 255, .88);
  --kgo-modal-field: rgba(12, 18, 32, .065);
  --kgo-modal-border: rgba(12, 18, 32, .12);
  --kgo-modal-text: rgba(12, 18, 32, .94);
  --kgo-modal-muted: rgba(12, 18, 32, .62);
  --kgo-modal-soft: rgba(12, 18, 32, .44);
  --kdn-ar-text: var(--kgo-modal-text);
  --kdn-ar-muted: var(--kgo-modal-muted);
  --kdn-ar-border: var(--kgo-modal-border);
  --ksp-text: var(--kgo-modal-text);
  --ksp-muted: var(--kgo-modal-muted);
  --ksp-surface: var(--kgo-modal-surface-2);
  --ksp-surface-2: #fff;
  color: var(--kgo-modal-text);
  color-scheme: light;
}

html[data-theme="light"] .kaidan-objectifs .kgo-modal-panel,
body[data-theme="light"] .kaidan-objectifs .kgo-modal-panel,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal-panel,
[data-theme="light"] .kaidan-objectifs .kgo-modal-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), var(--kgo-modal-surface)) !important;
  color: var(--kgo-modal-text) !important;
}

html[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-popup__title,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-ar-modal__title,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field span,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-toggle,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-popup__title,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-ar-modal__title,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field span,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-toggle,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-popup__title,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-ar-modal__title,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field span,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-toggle,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-popup__title,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kdn-ar-modal__title,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field span,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-toggle {
  color: var(--kgo-modal-text) !important;
}

html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field select,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field select,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field select,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field select,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger {
  background: var(--kgo-modal-field) !important;
  color: var(--kgo-modal-text) !important;
  -webkit-text-fill-color: var(--kgo-modal-text) !important;
  caret-color: var(--kgo-accent) !important;
  box-shadow: inset 0 0 0 1px var(--kgo-modal-border) !important;
}

html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input::placeholder,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea::placeholder,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input::placeholder,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea::placeholder,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input::placeholder,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea::placeholder,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input::placeholder,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea::placeholder {
  color: var(--kgo-modal-soft) !important;
  -webkit-text-fill-color: var(--kgo-modal-soft) !important;
  opacity: 1 !important;
}

html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:focus,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea:focus,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger:focus-visible,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:focus,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea:focus,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger:focus-visible,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:focus,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea:focus,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger:focus-visible,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field input:focus,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-field textarea:focus,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-select-trigger:focus-visible {
  background: var(--kgo-modal-surface-2) !important;
  box-shadow: inset 0 0 0 1px rgba(101, 87, 255, .34), 0 0 0 4px rgba(101, 87, 255, .12) !important;
}

html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-shell,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-add,
html[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-remove,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-shell,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-add,
body[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-remove,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-shell,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-add,
.kaidan-insta[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-remove,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-steps-shell,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-add,
[data-theme="light"] .kaidan-objectifs .kgo-modal .kgo-step-remove {
  background: var(--kgo-modal-field) !important;
  color: var(--kgo-modal-text) !important;
}

@media (max-width:767px) {
  body.kaidan-capacitor-android .kgo-panel {
    --kgo-mobile-action-bottom: 90px;
  }

  body.kaidan-capacitor-ios .kgo-panel {
    --kgo-mobile-action-bottom: 85px;
  }
}

.kgo-panel {
  --kgo-search-toggle-bg: rgba(16, 19, 31, .90);
}

html[data-theme="light"] .kgo-panel,
body[data-theme="light"] .kgo-panel,
.kaidan-insta[data-theme="light"] .kgo-panel,
[data-theme="light"] .kgo-panel {
  --kgo-search-toggle-bg: rgba(245, 246, 251, .92);
}

html[data-theme="blue"] .kgo-panel,
body[data-theme="blue"] .kgo-panel,
.kaidan-insta[data-theme="blue"] .kgo-panel,
[data-theme="blue"] .kgo-panel {
  --kgo-search-toggle-bg: rgba(7, 23, 47, .90);
}

.kgo-search-toggle,
.kgo-search-toggle:hover,
.kgo-search-toggle:focus,
.kgo-search-toggle:focus-visible,
.kgo-search-shell.is-open .kgo-search-toggle {
  background: var(--kgo-search-toggle-bg) !important;
}

