/* Interactive management guide: focused chapters, progress and direct actions. */
.guide-progress{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  margin:0 0 24px;
  padding:20px 22px;
  border:1px solid #c7d2fe;
  border-radius:20px;
  background:linear-gradient(135deg,#fff,#f4f5ff);
  box-shadow:0 14px 36px rgba(79,70,229,.08);
}
.guide-progress-copy{min-width:0}
.guide-progress-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.guide-progress-head h2{margin:0;font-size:18px}
.guide-progress-count{color:#4338ca;font-size:12px;font-weight:850;white-space:nowrap}
.guide-progress-copy p{margin:5px 0 12px;color:#607087;font-size:12px;line-height:1.55}
.guide-progress-track{height:9px;overflow:hidden;border-radius:999px;background:#e0e7ff}
.guide-progress-fill{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4f46e5,#7c3aed,#06b6d4);transition:width .28s ease}
.guide-progress-reset{min-height:42px;padding:0 14px;border:1px solid #cbd5e1;border-radius:11px;color:#475569;background:#fff;font:inherit;font-size:11px;font-weight:850;cursor:pointer}

.guide-page.guide-enhanced .guide-group{display:none}
.guide-page.guide-enhanced:not(.is-searching) [data-guide-language].is-active .guide-section:not(.is-current){display:none}
.guide-page.guide-enhanced:not(.is-searching) .guide-section.is-current{animation:guideChapterIn .22s ease both}
.guide-page.guide-enhanced .guide-section[hidden]{display:none!important}
.guide-page.guide-enhanced .guide-content{display:grid;gap:14px}

.guide-chapter-nav{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin:0 0 16px;
  padding:10px;
  border:1px solid #dce3ee;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.guide-chapter-nav button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:0 13px;
  border:1px solid #d7deea;
  border-radius:11px;
  color:#334155;
  background:#f8fafc;
  font:inherit;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.guide-chapter-nav button:disabled{opacity:.42;cursor:not-allowed}
.guide-chapter-status{text-align:center}
.guide-chapter-status strong{display:block;color:#142033;font-size:12px}
.guide-chapter-status span{display:block;margin-top:2px;color:#64748b;font-size:10px;font-weight:750}

.guide-check-item{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding-left:14px!important;
  cursor:pointer;
  user-select:none;
}
.guide-check-item::before{display:none!important}
.guide-check-mark{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  margin-top:1px;
  border:2px solid #c7d2fe;
  border-radius:8px;
  color:transparent;
  background:#fff;
  font-size:10px;
  transition:.16s ease;
}
.guide-check-copy{min-width:0}
.guide-check-item.is-complete{
  border-color:#a7f3d0;
  color:#356257;
  background:#f0fdf7;
}
.guide-check-item.is-complete .guide-check-mark{
  border-color:#059669;
  color:#fff;
  background:#059669;
}
.guide-check-item:focus-visible{outline:3px solid rgba(79,70,229,.22);outline-offset:2px}

.guide-section-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #e4e9f1;
}
.guide-open-workspace,
.guide-next-chapter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 15px;
  border-radius:12px;
  font-size:12px;
  font-weight:850;
  text-decoration:none;
}
.guide-open-workspace{color:#fff;background:linear-gradient(135deg,#4f46e5,#6d28d9);box-shadow:0 9px 20px rgba(79,70,229,.2)}
.guide-next-chapter{border:1px solid #d7deea;color:#475569;background:#fff;font-family:inherit;cursor:pointer}
.guide-search-hint{display:none;margin:0 0 12px;padding:11px 13px;border-radius:12px;color:#475569;background:#eef2ff;font-size:12px}
.guide-page.is-searching .guide-search-hint{display:block}
.guide-page.is-searching .guide-chapter-nav{display:none}

@keyframes guideChapterIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

@media(max-width:900px){
  .guide-toc{scroll-snap-type:x proximity;scrollbar-width:none}
  .guide-toc::-webkit-scrollbar{display:none}
  .guide-toc a{scroll-snap-align:start}
}
@media(max-width:600px){
  .guide-progress{grid-template-columns:1fr;padding:17px}
  .guide-progress-reset{width:100%}
  .guide-chapter-nav{grid-template-columns:44px minmax(0,1fr) 44px}
  .guide-chapter-nav button{width:44px;padding:0;font-size:0}
  .guide-chapter-nav button i{font-size:12px}
  .guide-section-actions{align-items:stretch;flex-direction:column}
  .guide-open-workspace,.guide-next-chapter{width:100%}
  .guide-check-item{padding:13px!important}
}
@media(prefers-reduced-motion:reduce){
  .guide-progress-fill,.guide-check-mark{transition:none}
  .guide-page.guide-enhanced:not(.is-searching) .guide-section.is-current{animation:none}
}

@media(max-width:600px){
  .guide-progress{grid-template-columns:1fr;padding:17px}
  .guide-progress-reset{width:100%}
  .guide-chapter-nav{grid-template-columns:42px minmax(0,1fr) 42px;padding:8px}
  .guide-chapter-nav button{width:42px;padding:0}
  .guide-chapter-nav button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .guide-section-actions{display:grid;grid-template-columns:1fr}
  .guide-open-workspace,.guide-next-chapter{width:100%}
}


/* Landing-matched interactive guide controls */
.guide-progress{
  border-color:rgba(99,102,241,.24);
  background:
    radial-gradient(circle at 100% 0%,rgba(99,102,241,.075),transparent 30%),
    linear-gradient(135deg,#ffffff,#f8faff);
  box-shadow:
    inset 0 3px 0 rgba(99,102,241,.28),
    0 16px 38px rgba(15,23,42,.08);
}
.guide-progress-head h2{color:#0f172a;font-weight:850}
.guide-progress-count{color:#4338ca}
.guide-progress-copy p{color:#526175}
.guide-progress-track{background:#e2e8f0}
.guide-progress-fill{background:linear-gradient(90deg,#6366f1,#7c3aed,#22b8cf)}
.guide-progress-reset{
  border-color:#dbe3ef;
  color:#475569;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.045);
}

.guide-chapter-nav{
  border-color:#e2e8f0;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.guide-chapter-nav button{
  border-color:#dbe3ef;
  color:#334155;
  background:#f8fafc;
}
.guide-chapter-nav button:hover:not(:disabled){
  color:#4338ca;
  border-color:rgba(99,102,241,.28);
  background:#f5f3ff;
}
.guide-chapter-status strong{color:#0f172a}
.guide-chapter-status span{color:#64748b}

.guide-check-item{
  border-color:#e2e8f0!important;
  background:#fff!important;
  color:#40506a!important;
  box-shadow:0 7px 18px rgba(15,23,42,.035);
}
.guide-check-mark{
  border-color:#c7d2fe;
  background:#fff;
}
.guide-check-item.is-complete{
  border-color:#a7f3d0!important;
  color:#356257!important;
  background:#f0fdf7!important;
}
.guide-check-item.is-complete .guide-check-mark{
  border-color:#059669;
  color:#fff;
  background:#059669;
}
.guide-check-item:focus-visible{outline:3px solid rgba(99,102,241,.20);outline-offset:2px}

.guide-section-actions{border-top-color:#e2e8f0}
.guide-open-workspace{
  color:#fff;
  background:linear-gradient(135deg,#6366f1,#7c3aed);
  box-shadow:0 10px 24px rgba(99,102,241,.20);
}
.guide-next-chapter{
  border-color:#dbe3ef;
  color:#475569;
  background:#fff;
}
.guide-search-hint{
  color:#475569;
  background:#eef2ff;
}
