:root {
  --theme-color: #087f6a;
  --chargeflow-green: #087f6a;
  --chargeflow-dark: #123c36;
  --chargeflow-soft: #eef8f5;
  --chargeflow-border: #d7e7e2;
}

body {
  color: #263532;
  background: #ffffff;
}

#reading-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1db87a, #087f6a);
  transition: width 80ms linear;
}

.app-name-link {
  color: var(--chargeflow-dark) !important;
  font-weight: 800;
}

.app-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e9efed;
  padding: 8px 24px;
}

.sidebar {
  background: #fbfdfc;
  border-right: 1px solid #e9efed;
}

.sidebar-nav > ul > li > strong {
  color: var(--chargeflow-dark);
}

.markdown-section {
  max-width: 1040px;
  padding-bottom: 80px;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3 {
  color: var(--chargeflow-dark);
}

.markdown-section h1 {
  border-bottom: 2px solid var(--chargeflow-border);
  padding-bottom: 12px;
}

.markdown-section blockquote {
  background: var(--chargeflow-soft);
  border-left-color: var(--chargeflow-green);
  color: #31534d;
  padding: 12px 16px;
}

.markdown-section table {
  display: table;
  width: 100%;
}

.markdown-section img {
  display: block;
  width: auto;
  max-width: min(100%, 760px);
  max-height: 820px;
  margin: 20px auto 8px;
  border: 1px solid #e4ece9;
  border-radius: 10px;
  background: #fff;
}

.manual-hero {
  background: linear-gradient(135deg, #eaf8f3 0%, #f8fbf9 55%, #eef4f1 100%);
  border: 1px solid var(--chargeflow-border);
  border-radius: 24px;
  margin: 18px 0 28px;
  padding: 28px;
}

.manual-hero h2,
.manual-hero p { margin-top: 0; }

.task-grid,
.choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 30px;
}

.task-card,
.choice-card {
  background: #fff;
  border: 1px solid var(--chargeflow-border);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(18, 60, 54, 0.05);
  color: inherit !important;
  display: block;
  min-height: 145px;
  padding: 18px;
  text-decoration: none !important;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.task-card:hover,
.choice-card:hover {
  border-color: #8fcabb;
  box-shadow: 0 14px 30px rgba(18, 60, 54, 0.1);
  transform: translateY(-2px);
}

.task-card strong,
.choice-card strong {
  color: var(--chargeflow-dark);
  display: block;
  font-size: 1.05rem;
  margin: 8px 0 6px;
}

.task-card span,
.choice-card span {
  color: #60726e;
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
}

.task-icon {
  align-items: center;
  background: var(--chargeflow-soft);
  border-radius: 12px;
  color: var(--chargeflow-green);
  display: inline-flex;
  font-size: 1.25rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.quickbar {
  align-items: center;
  background: #123c36;
  border-radius: 16px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 18px 0 24px;
  padding: 14px 16px;
}

.quickbar a {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff !important;
  padding: 6px 11px;
  text-decoration: none !important;
}

.steps {
  counter-reset: visual-step;
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
}

.step {
  align-items: start;
  background: #f8fbfa;
  border: 1px solid var(--chargeflow-border);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr;
  padding: 13px 15px;
}

.step::before {
  align-items: center;
  background: var(--chargeflow-green);
  border-radius: 50%;
  color: white;
  content: counter(visual-step);
  counter-increment: visual-step;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.screen-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 26px;
}

.screen-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.screen-card {
  background: #fbfdfc;
  border: 1px solid var(--chargeflow-border);
  border-radius: 18px;
  overflow: hidden;
  padding: 10px;
}

.screen-card img,
.markdown-section img.app-shot {
  border: 0;
  border-radius: 12px;
  margin: 0 auto;
  max-height: none;
  width: 100%;
}

.screen-card.app img,
.markdown-section img.app-shot { max-width: 360px; }

.screen-card p,
.figure-caption {
  color: #60726e;
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 10px 4px 2px;
  text-align: center;
}

.callout-choice {
  background: #fff8e9;
  border: 1px solid #f0dab0;
  border-radius: 16px;
  margin: 18px 0;
  padding: 15px 17px;
}

.manual-footer {
  border-top: 1px solid #e4ece9;
  color: #6b7c78;
  font-size: 0.85rem;
  margin-top: 56px;
  padding: 18px 0 8px;
}

.section-break {
  border: 0;
  border-top: 2px solid var(--chargeflow-border);
  margin: 72px 0 44px;
}

.markdown-section h2 {
  scroll-margin-top: 84px;
}

@media (max-width: 768px) {
  .app-nav {
    padding: 6px 12px;
  }

  .markdown-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .markdown-section table {
    display: block;
    overflow-x: auto;
  }

  .task-grid,
  .choice-grid,
  .screen-grid,
  .screen-grid.three { grid-template-columns: 1fr; }

  .manual-hero {
    border-radius: 18px;
    padding: 20px;
  }
}
