/* Tokens visuels, aide guidee et composants transverses. */
:root {
  --bg: #f7f3ec;
  --bg-strong: #f1e9dc;
  --panel: #fffdfa;
  --panel-strong: #ffffff;
  --text: #1e1a17;
  --muted: #74685a;
  --muted-strong: #3d342b;
  --ink-strong: #1e1a17;
  --ink-muted: #74685a;
  --line: rgba(44, 37, 29, 0.12);
  --accent: #c6a56d;
  --accent-strong: #8b6c3e;
  --accent-soft: rgba(198, 165, 109, 0.14);
  --accent-deep: #0f1115;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.1);
  --warn: #a57636;
  --warn-soft: rgba(165, 118, 54, 0.12);
  --success: #14745b;
  --success-soft: rgba(20, 116, 91, 0.12);
  --shadow-sm: 0 10px 30px rgba(15, 17, 21, 0.04);
  --shadow-md: 0 18px 42px rgba(15, 17, 21, 0.06);
  --shadow-lg: 0 28px 60px rgba(15, 17, 21, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  color-scheme: light;
  font-family:
    "Aptos",
    "Segoe UI Variable",
    "Segoe UI",
    "Trebuchet MS",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* Guided help stays local to the static client and does not alter project data. */
.tutorial-checklist-card {
  margin-bottom: 18px;
  border-color: rgba(198, 165, 109, 0.32);
  background:
    radial-gradient(circle at 94% 12%, rgba(198, 165, 109, 0.17), transparent 34%),
    rgba(255, 255, 255, 0.97);
}

.tutorial-checklist-head {
  align-items: center;
}

.tutorial-checklist {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tutorial-checklist-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tutorial-checklist-summary > div {
  display: grid;
  gap: 4px;
}

.tutorial-checklist-summary span:not(.status-pill),
.tutorial-checklist-step p {
  color: var(--muted);
}

.tutorial-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.08);
}

.tutorial-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #17816b);
  transition: width 0.24s ease;
}

.tutorial-checklist-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tutorial-checklist-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 10px;
  padding: 14px;
  border: 1px solid rgba(15, 17, 21, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
}

.tutorial-checklist-step.is-recommended {
  border-color: rgba(198, 165, 109, 0.7);
  box-shadow: inset 0 0 0 1px rgba(198, 165, 109, 0.2);
  background: rgba(251, 244, 230, 0.82);
}

.tutorial-checklist-step.is-complete {
  background: rgba(23, 129, 107, 0.06);
}

.tutorial-step-marker {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 17, 21, 0.14);
  border-radius: 50%;
  color: white;
  font-weight: 900;
}

.tutorial-checklist-step.is-complete .tutorial-step-marker {
  border-color: #17816b;
  background: #17816b;
}

.tutorial-checklist-step > div {
  min-width: 0;
}

.tutorial-checklist-step p {
  margin: 5px 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.tutorial-checklist-step button {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 36px;
}

.help-center-overlay {
  z-index: 72;
}

.confirm-panel.help-center-panel {
  top: 50%;
  left: 50%;
  width: min(1180px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  transform: translate(-50%, -50%);
}

.help-center-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(15, 17, 21, 0.09);
  border-radius: 18px;
  background: rgba(250, 248, 244, 0.74);
}

.help-center-tab {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.help-center-tab.active {
  background: linear-gradient(135deg, #f4e4c4, #e3c486);
  color: #6f5528;
  box-shadow: 0 8px 22px rgba(135, 97, 42, 0.14);
}

.help-center-content {
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 12px;
}

.help-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(198, 165, 109, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 18%, rgba(198, 165, 109, 0.27), transparent 36%),
    linear-gradient(135deg, #fffdfa, #f7f0e4);
}

.help-welcome-card h4,
.tutorial-demo-head h4,
.tutorial-demo-scene h4,
.help-guide-card h4 {
  margin: 4px 0 8px;
  font-size: 1.25rem;
}

.help-welcome-card p,
.help-guide-card p,
.tutorial-demo-head p,
.tutorial-demo-scene p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.help-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.help-principles-grid,
.help-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.help-principles-grid article,
.help-guide-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(15, 17, 21, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.help-principles-grid article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(198, 165, 109, 0.2);
  color: #765a2c;
  font-weight: 900;
}

.help-principles-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.help-guides-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.help-guide-card {
  min-height: 205px;
  justify-content: stretch;
}

.help-guide-card.is-highlighted {
  border-color: rgba(198, 165, 109, 0.72);
  background: rgba(251, 244, 230, 0.82);
  box-shadow: inset 0 0 0 1px rgba(198, 165, 109, 0.2);
}

.help-guide-card button {
  align-self: end;
  justify-self: start;
}

.help-inline-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(198, 165, 109, 0.35);
  border-radius: 14px;
  background: rgba(251, 244, 230, 0.72);
  color: #765a2c;
  font-weight: 700;
}

.tutorial-demo-shell {
  display: grid;
  gap: 18px;
}

.tutorial-demo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(198, 165, 109, 0.34);
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdfa, #f5ead5);
}

.tutorial-demo-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tutorial-demo-stage {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 8px;
  border: 1px solid rgba(15, 17, 21, 0.1);
  border-radius: 16px;
  background: white;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.tutorial-demo-stage > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.07);
}

.tutorial-demo-stage.active {
  border-color: rgba(198, 165, 109, 0.72);
  background: #fbf3e4;
  color: #765a2c;
}

.tutorial-demo-stage.complete > span {
  background: #17816b;
  color: white;
}

.tutorial-demo-scene {
  min-height: 275px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 26px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(15, 17, 21, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.94)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(198, 165, 109, 0.05) 18px 19px);
}

.tutorial-demo-scene ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 18px 18px 38px;
  border-radius: 18px;
  background: rgba(251, 244, 230, 0.74);
}

.tutorial-demo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tutorial-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 84;
  pointer-events: none;
}

.tutorial-tour-guard {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.tutorial-spotlight {
  position: fixed;
  z-index: 1;
  border: 3px solid #d3ae68;
  border-radius: 18px;
  background: transparent;
  box-shadow:
    0 0 0 9999px rgba(15, 17, 21, 0.5),
    0 14px 40px rgba(15, 17, 21, 0.28);
  transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.tutorial-tour-card {
  position: fixed;
  z-index: 2;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(198, 165, 109, 0.48);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 17, 21, 0.28);
  pointer-events: auto;
  outline: none;
}

.tutorial-tour-card h3,
.tutorial-tour-card p {
  margin: 0;
}

.tutorial-tour-card > .muted {
  line-height: 1.6;
}

.tutorial-tour-progress,
.tutorial-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tutorial-tour-progress > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.tutorial-tour-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .tutorial-checklist-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-principles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tutorial-checklist-head,
  .tutorial-checklist-summary,
  .help-welcome-card,
  .tutorial-demo-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .tutorial-checklist-steps,
  .help-guides-grid,
  .tutorial-demo-timeline,
  .tutorial-demo-scene {
    grid-template-columns: 1fr;
  }

  .confirm-panel.help-center-panel {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    padding: 16px;
  }

  .help-welcome-actions,
  .tutorial-demo-actions {
    justify-content: stretch;
  }

  .help-welcome-actions button,
  .tutorial-demo-actions button {
    flex: 1 1 auto;
  }

  .tutorial-demo-timeline {
    display: flex;
    overflow-x: auto;
  }

  .tutorial-demo-stage {
    min-width: 130px;
  }

  .tutorial-demo-scene {
    min-height: 0;
    padding: 20px;
  }

  .tutorial-tour-card {
    left: 16px !important;
    right: 16px;
    bottom: 16px;
    top: auto !important;
    width: auto;
  }
}
