:root {
  --bg: #0b0e14;
  --bg-elevated: #121722;
  --bg-card: #171d2b;
  --border: #2a3348;
  --text: #e8edf7;
  --muted: #9aa6c0;
  --accent: #e8a23a;
  --accent-soft: #f0c06a;
  --accent-dim: #8a5a14;
  --success: #3ecf8e;
  --danger: #ef6b6b;
}

html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 162, 58, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(70, 110, 180, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container-site {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-soft);
}

.nav-tools {
  position: relative;
}

.nav-tools-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-tools-btn::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.nav-tools-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 12.5rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(11, 14, 20, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 60;
}

.nav-tools-menu[hidden] {
  display: none !important;
}

.nav-tools-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-tools-menu a:hover {
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.04);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(232, 162, 58, 0.45);
  transform: translateY(-2px);
}

.ad-slot {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.04) 8px,
      rgba(255, 255, 255, 0.04) 16px
    ),
    var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-banner {
  min-height: 90px;
}

.ad-inline {
  min-height: 250px;
}

.ad-sidebar {
  min-height: 280px;
  position: static;
  top: auto;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #1a1205;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.7rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.7rem 1.15rem;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(232, 162, 58, 0.12);
  border: 1px solid rgba(232, 162, 58, 0.28);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prose-guide h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 1.75rem 0 0.75rem;
}

.prose-guide h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.35rem 0 0.55rem;
  color: var(--accent-soft);
}

.prose-guide p,
.prose-guide li {
  color: var(--muted);
  line-height: 1.75;
}

.prose-guide ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
}

.prose-guide ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
}

.prose-guide code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
  border: 1px solid #2a3348;
  background: rgba(0, 0, 0, 0.28);
  color: #e8a23a;
}

.prose-guide a {
  color: #e8a23a;
  font-weight: 600;
  text-decoration: none;
}

.prose-guide a:hover {
  text-decoration: underline;
}

.prose-guide strong {
  color: var(--text);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.015);
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a1205;
  background: var(--accent);
}

.shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f1522;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.shot img,
.shot-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f1522;
}

.hero-visual-home {
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-quick-picks {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-quick-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-pick {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(23, 29, 43, 0.9);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-pick:hover {
  border-color: rgba(232, 162, 58, 0.5);
  transform: translateY(-2px);
}

.home-pick img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #0f1522;
}

.home-pick span {
  display: grid;
  gap: 0.15rem;
  padding: 0 0.85rem 0.85rem;
}

.home-pick strong {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.home-pick em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.home-sidebar {
  align-self: start;
}

.thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.45rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.article-thumb-link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.article-thumb-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

.accordion-panel {
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-link {
  color: var(--muted);
}

.footer-link:hover {
  color: var(--accent-soft);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.meta-chip.hard {
  color: #ffb4b4;
  border-color: rgba(239, 107, 107, 0.35);
  background: rgba(239, 107, 107, 0.1);
}

.meta-chip.medium {
  color: var(--accent-soft);
  border-color: rgba(232, 162, 58, 0.35);
  background: rgba(232, 162, 58, 0.1);
}

.meta-chip.easy {
  color: #9be7c4;
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.filter-input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 0.55rem;
  padding: 0.7rem 0.9rem;
  outline: none;
}

.filter-input:focus {
  border-color: rgba(232, 162, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 162, 58, 0.12);
}

.filter-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--accent-soft);
  border-color: rgba(232, 162, 58, 0.45);
  background: rgba(232, 162, 58, 0.1);
}

.shot img {
  transition: transform 0.45s ease;
}

.card:hover .shot img {
  transform: scale(1.04);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Keep homepage core blocks visible even if IO is late */
#start-here,
#tools,
.home-quick-picks,
.home-utility-row,
.home-side-stack {
  opacity: 1;
  transform: none;
}

.home-utility-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .home-utility-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.home-utility-row > * {
  min-width: 0;
  height: 100%;
}

.side-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.side-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(232, 162, 58, 0.35);
  background: rgba(232, 162, 58, 0.1);
  color: var(--accent-soft);
  flex-shrink: 0;
}

.side-heading-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.home-route-panel {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(232, 162, 58, 0.07), transparent 50%), var(--bg-card);
  padding: 1.1rem;
}

.home-route-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

@media (min-width: 640px) {
  .home-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-route-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.55rem;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-route-card:hover {
  border-color: rgba(232, 162, 58, 0.5);
  transform: translateY(-1px);
}

.home-route-card img {
  width: 4.5rem;
  height: 3.1rem;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.home-route-card span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.home-route-card strong {
  font-size: 0.95rem;
  color: #fff;
}

.home-route-card em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

.home-route-card.is-done {
  opacity: 0.72;
  border-color: rgba(90, 200, 140, 0.35);
}

.home-route-card.is-done em {
  color: #9fd9b5;
}

.home-route-card.is-next {
  border-color: rgba(232, 162, 58, 0.65);
  background: rgba(232, 162, 58, 0.08);
}

.home-route-card.is-next em {
  color: var(--accent-soft);
}

#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  pointer-events: none;
}

#back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 14, 20, 0.92);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

#support-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 65;
  max-width: 420px;
  margin-inline: auto;
  background: rgba(18, 23, 34, 0.96);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#support-notice[hidden] {
  display: none !important;
}

.toc {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #121826;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.toc-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.55rem;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.28rem 0;
}

.toc a:hover {
  color: var(--accent-soft);
}

.related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.callout {
  border-left: 3px solid var(--accent);
  background: rgba(232, 162, 58, 0.08);
  border-radius: 0 0.65rem 0.65rem 0;
  padding: 0.9rem 1rem;
  color: var(--muted);
  margin: 1rem 0;
}

@media (max-width: 767px) {
  .ad-sidebar {
    position: static;
  }

  #support-notice {
    bottom: 4.5rem;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: #1a1205;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 0.45rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.skip-link-secondary:focus {
  top: 3.35rem;
}

/* Sticky TOC disabled site-wide: single-column layout caused content overlap on scroll */
.toc-sticky {
  position: static;
  top: auto;
  z-index: auto;
  max-height: none;
  overflow: visible;
  box-shadow: none;
}

.toc a.is-active {
  color: var(--accent);
}

.resist-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.resist-pill.is-strong {
  color: #d8ffe9;
  background: rgba(63, 157, 106, 0.2);
}

.resist-pill.is-mid {
  color: #ffe8c2;
  background: rgba(232, 162, 58, 0.18);
}

.resist-pill.is-weak {
  color: #ffd5d5;
  background: rgba(180, 84, 84, 0.2);
}

.search-recent {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 0.85rem;
}

.search-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-recent-head button {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.search-recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-recent-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: #d7deee;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.search-recent-chip:hover {
  border-color: rgba(232, 162, 58, 0.5);
  color: #fff;
}

.path-resume {
  border: 1px dashed rgba(232, 162, 58, 0.45);
  border-radius: 0.85rem;
  padding: 1rem;
  background: rgba(232, 162, 58, 0.06);
}


a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-link:focus-visible,
.quiz-choice:focus-visible,
.path-option:focus-visible,
.filter-chip:focus-visible,
.tool-btn:focus-visible,
.tool-tile:focus-visible,
.history-item:focus-visible,
.planner-boss:focus-visible,
.planner-day:focus-visible,
.note-item:focus-visible,
.home-pick:focus-visible,
.home-route-card:focus-visible,
.search-result:focus-visible,
.a11y-controls button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tool-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mist, var(--muted));
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.whats-new kbd,
.tip-card kbd {
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.72rem;
  color: var(--accent-soft);
}

.tool-btn:hover,
.tool-btn.is-active {
  color: var(--accent-soft);
  border-color: rgba(232, 162, 58, 0.45);
  background: rgba(232, 162, 58, 0.1);
}

.checklist-box {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
  padding: 1rem;
}

.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.meta-chip.is-complete-chip {
  color: #1a1205;
  background: var(--accent);
  border-color: var(--accent);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid rgba(232, 162, 58, 0.7);
  border-radius: 0.2rem;
}

.checklist li:has(.check-toggle)::before {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.compare-table th {
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table a {
  color: var(--accent-soft);
  font-weight: 700;
}

.compare-table a:hover {
  text-decoration: underline;
}

.saved-list {
  display: grid;
  gap: 0.65rem;
}

.saved-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.saved-item-row .saved-item {
  flex: 1;
  min-width: 0;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 600;
}

.saved-item:hover {
  border-color: rgba(232, 162, 58, 0.45);
}

.saved-item img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 90;
  background: rgba(18, 23, 34, 0.96);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  margin-right: 0.55rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.search-trigger:hover {
  color: var(--accent-soft);
  border-color: rgba(232, 162, 58, 0.45);
}

.search-trigger kbd {
  display: none;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.68rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .search-trigger kbd {
    display: inline-block;
  }
}

@media (max-width: 420px) {
  .search-trigger-label {
    display: none;
  }
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 10vh 1rem 1rem;
}

.search-modal[hidden] {
  display: none !important;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.search-panel {
  position: relative;
  width: min(640px, 100%);
  background: #121722;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.search-panel-head input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 1rem;
}

.search-esc {
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.2rem 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.search-results {
  max-height: min(50vh, 420px);
  overflow: auto;
  padding: 0.45rem;
}

.search-result {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  color: var(--text);
}

.search-result:hover,
.search-result.is-active {
  background: rgba(232, 162, 58, 0.1);
}

.search-result img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--border);
}

.search-result strong {
  display: block;
  font-size: 0.95rem;
}

.search-result small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.search-empty {
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-group + .search-group {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(42, 51, 72, 0.8);
}

.search-group-title {
  margin: 0.2rem 0.7rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(5, 8, 14, 0.9);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 80vh;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
}

.lightbox-caption {
  max-width: min(900px, 100%);
  margin-top: 0.75rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 23, 34, 0.9);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}

.zoomable {
  cursor: zoom-in;
}

.zoomable:focus-visible {
  outline: 2px solid #e8a23a;
  outline-offset: 3px;
}

.article-feedback .btn-primary[disabled],
.article-feedback .btn-ghost[disabled] {
  opacity: 0.55;
  cursor: default;
}

.path-finder {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(232, 162, 58, 0.08), transparent 45%), var(--bg-card);
  padding: 1.25rem;
}

.path-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.path-fieldset legend {
  padding: 0;
  float: left;
  width: 100%;
}

.path-fieldset::after {
  content: "";
  display: table;
  clear: both;
}

.path-options {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .path-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.path-option {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 0.65rem;
  padding: 0.9rem 0.85rem;
  font-weight: 700;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.path-option:hover {
  border-color: rgba(232, 162, 58, 0.5);
  background: rgba(232, 162, 58, 0.08);
  color: var(--accent-soft);
}

header .container-site {
  gap: 0.75rem;
}

.check-toggle {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid rgba(232, 162, 58, 0.7);
  border-radius: 0.2rem;
  background: transparent;
  padding: 0;
}

.checklist li {
  cursor: default;
}

.checklist li.is-done {
  color: #9be7c4;
  text-decoration: line-through;
  text-decoration-color: rgba(155, 231, 196, 0.45);
}

.checklist li.is-done .check-toggle,
.check-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px #1a1205;
}

#consent-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 85;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 23, 34, 0.97);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

#consent-bar a {
  color: var(--accent-soft);
  font-weight: 700;
}

.consent-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

.a11y-controls {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  gap: 0.3rem;
  background: rgba(11, 14, 20, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
}

.a11y-controls button {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.8rem;
}

.a11y-controls button.is-active,
.a11y-controls button:hover {
  color: #1a1205;
  background: var(--accent);
}

html[data-text-size="large"] {
  font-size: 112.5%;
}

html[data-read-width="narrow"] .prose-guide {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

html[data-reading-theme="sepia"] body {
  background:
    radial-gradient(circle at top, rgba(232, 162, 58, 0.12), transparent 42%),
    linear-gradient(180deg, #1a1510 0%, #120e0a 55%, #0d0b08 100%);
  color: #e8dcc8;
}

html[data-reading-theme="sepia"] .prose-guide,
html[data-reading-theme="sepia"] .card,
html[data-reading-theme="sepia"] .rounded-xl.border {
  background: #221b14;
  border-color: #3b2f22;
}

html[data-reading-theme="sepia"] .text-mist,
html[data-reading-theme="sepia"] .prose-guide p,
html[data-reading-theme="sepia"] .prose-guide li {
  color: #cbb79a;
}

html[data-reading-theme="sepia"] header {
  background: rgba(18, 14, 10, 0.94);
}

.note-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.8rem;
  text-align: left;
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.note-item strong {
  color: #fff;
  font-size: 0.92rem;
}

.note-item span {
  font-size: 0.75rem;
}

.note-item:hover,
.note-item.is-active {
  border-color: rgba(232, 162, 58, 0.55);
  background: rgba(232, 162, 58, 0.08);
  color: #d7deee;
}

.empty-state {
  display: grid;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.planner-boss {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 0.95rem;
  text-align: left;
  color: var(--muted);
}

.planner-boss strong {
  color: #fff;
  font-size: 0.95rem;
}

.planner-boss span {
  font-size: 0.75rem;
}

.planner-boss.is-active,
.planner-boss:hover {
  border-color: rgba(232, 162, 58, 0.55);
  background: rgba(232, 162, 58, 0.08);
}

.planner-row {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(23, 29, 43, 0.85);
  padding: 1rem;
}

@media (min-width: 768px) {
  .planner-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.planner-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.planner-day {
  min-width: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.planner-day.is-today:not(.is-done) {
  color: var(--accent);
  border-color: rgba(232, 162, 58, 0.75);
  box-shadow: inset 0 0 0 1px rgba(232, 162, 58, 0.35);
}

.planner-day.is-done,
.planner-day:hover {
  color: #1a1205;
  background: var(--accent);
  border-color: var(--accent);
}

.planner-day.is-today.is-done {
  box-shadow: 0 0 0 2px rgba(232, 162, 58, 0.45);
}

.tools-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tools-grid-home {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tools-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tools-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.path-finder .path-options {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .path-finder .path-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tool-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(23, 29, 43, 0.9);
  padding: 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tool-tile:hover {
  border-color: rgba(232, 162, 58, 0.55);
  transform: translateY(-2px);
}

.tool-tile strong {
  color: #fff;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.tool-tile span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.quiz-bar {
  width: 100%;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.quiz-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c47b1d, var(--accent));
  transition: width 0.2s ease;
}

.quiz-choices {
  display: grid;
  gap: 0.65rem;
}

.quiz-choice {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem;
  color: #d7deee;
  font-weight: 600;
}

.quiz-choice:hover:not(:disabled) {
  border-color: rgba(232, 162, 58, 0.5);
  background: rgba(232, 162, 58, 0.08);
}

.quiz-choice.is-correct {
  border-color: #3f9d6a;
  background: rgba(63, 157, 106, 0.15);
  color: #d8ffe9;
}

.quiz-choice.is-wrong {
  border-color: #b45454;
  background: rgba(180, 84, 84, 0.15);
  color: #ffd5d5;
}

.quiz-feedback {
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
  padding: 0.75rem 0.9rem;
  background: rgba(232, 162, 58, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

#quiz-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.history-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.85rem;
  text-align: left;
  color: var(--muted);
}

.history-item strong {
  color: #fff;
  font-size: 0.9rem;
}

.history-item span {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.history-item:hover {
  border-color: rgba(232, 162, 58, 0.5);
  background: rgba(232, 162, 58, 0.08);
}

.progress-bar {
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.3s ease;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
}

.progress-row.is-done {
  border-color: rgba(62, 207, 142, 0.35);
}

.progress-row img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
}

.next-up-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(232, 162, 58, 0.4);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 162, 58, 0.14), transparent 42%),
    var(--bg-card);
}

.next-up-card.is-complete {
  border-color: rgba(62, 207, 142, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 207, 142, 0.12), transparent 42%),
    var(--bg-card);
}

.next-up-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.card {
  position: relative;
}

.card.is-complete {
  box-shadow: inset 0 0 0 1px rgba(62, 207, 142, 0.28);
}

.card-done-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 207, 142, 0.45);
  background: rgba(62, 207, 142, 0.12);
  color: #7dffb5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recovery-panel {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(23, 29, 43, 0.9);
  padding: 1rem 1.1rem;
}

.recovery-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .recovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .recovery-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.planner-snapshot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 0% 50%, rgba(232, 162, 58, 0.12), transparent 45%),
    var(--bg-card);
}

.quiz-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.45rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(232, 162, 58, 0.4);
  background: rgba(232, 162, 58, 0.12);
  color: #e8a23a;
  font-size: 0.72rem;
  font-weight: 800;
}

.whats-new {
  border: 1px solid rgba(232, 162, 58, 0.35);
  background: rgba(232, 162, 58, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.whats-new p {
  color: var(--muted);
  font-size: 0.92rem;
}

.whats-new strong {
  color: var(--accent-soft);
}

.tip-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
  padding: 1rem;
}

.tip-card p {
  color: var(--mist, var(--muted));
  line-height: 1.6;
}

.shortcuts-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.shortcuts-modal[hidden] {
  display: none !important;
}

.shortcuts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.72);
}

.shortcuts-panel {
  position: relative;
  width: min(420px, 100%);
  background: #121722;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.1rem;
}

.shortcuts-list {
  display: grid;
  gap: 0.7rem;
}

.shortcuts-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.shortcuts-list kbd {
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-soft);
}

.guide-pager {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .guide-pager {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-pager-link {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  display: block;
}

.guide-pager-link:hover {
  border-color: rgba(232, 162, 58, 0.45);
}

.guide-pager-link span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.25rem;
}

.guide-pager-link.is-next {
  text-align: right;
}

.guide-pager-link.is-end {
  border-style: dashed;
  color: var(--muted);
}

.guide-pager-link.is-end strong {
  color: var(--text);
}

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.welcome-modal[hidden] {
  display: none !important;
}

.welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(3px);
}

.welcome-panel {
  position: relative;
  width: min(480px, 100%);
  background: #121722;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .a11y-controls {
    bottom: auto;
    top: auto;
    left: 0.75rem;
    bottom: 4.75rem;
  }

  #consent-bar {
    bottom: 4.75rem;
  }
}

.field-error {
  min-height: 1.1rem;
  margin-top: 0.35rem;
  color: #ff9b9b;
  font-size: 0.8rem;
}

.input-invalid {
  border-color: #b45454 !important;
  box-shadow: 0 0 0 1px rgba(180, 84, 84, 0.45);
}

@media print {
  #adsense-top-banner,
  #adsense-inline,
  #adsense-sidebar,
  #support-notice,
  #back-to-top,
  #read-progress,
  #toast,
  #consent-bar,
  #welcome-modal,
  #search-modal,
  #shortcuts-modal,
  #lightbox,
  #connection-status,
  #continue-guide,
  #practice-habit,
  #whats-new,
  .article-feedback,
  #start-here,
  #tools,
  header,
  footer,
  aside,
  .guide-toolbar,
  .guide-pager,
  .a11y-controls,
  .ad-slot,
  .whats-new,
  .filter-bar,
  .filter-input,
  .resume-banner,
  .nav-tools,
  .checklist-head,
  [data-copy-checklist],
  .no-print {
    display: none !important;
  }

  thead {
    display: table-header-group;
  }

  tr,
  .table-wrap {
    break-inside: avoid;
  }

  [data-accordion-panel].hidden,
  .accordion-panel.hidden {
    display: block !important;
  }

  body.printing-loadout #loadout-form,
  body.printing-loadout #loadout-history,
  body.printing-loadout #loadout-history-card,
  body.printing-loadout #adsense-inline {
    display: none !important;
  }

  body.printing-loadout #tool-panel {
    display: block !important;
  }

  body.printing-loadout #loadout-result,
  body.printing-loadout .loadout-print-card {
    border: 1px solid #ccc;
    box-shadow: none;
    color: #111;
  }

  body.printing-sheet #tool-panel,
  body.printing-sheet .empty-actions,
  body.printing-sheet .related-grid,
  body.printing-sheet section .callout {
    display: none !important;
  }

  body.printing-sheet #quiz-panel,
  body.printing-sheet #quiz-result {
    display: block !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .prose-guide p,
  .prose-guide li,
  .meta-chip,
  .badge {
    color: #222 !important;
  }

  .checklist li.is-done::before {
    content: "[x] ";
  }

  .checklist li:not(.is-done)::before {
    content: "[ ] ";
  }

  .check-toggle {
    display: none !important;
  }

  .card,
  .hero-visual,
  .checklist-box,
  .toc {
    break-inside: avoid;
    border-color: #ccc;
  }

  main::after {
    content: "Weapon Builds - printed from local guide copy";
    display: block;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #666;
  }
}

/* Resume + continue reading */
.resume-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 162, 58, 0.35);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(232, 162, 58, 0.12), rgba(23, 29, 43, 0.9));
}

.resume-banner p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3f6ff;
}

.continue-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(232, 162, 58, 0.4);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 162, 58, 0.16), transparent 45%),
    #171d2b;
}

.continue-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid #2a3348;
  flex-shrink: 0;
}

.continue-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.continue-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8a23a, #f0c070);
}

.read-pct-chip {
  border-color: rgba(232, 162, 58, 0.45) !important;
  color: #e8a23a !important;
}

.connection-status {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 60;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 200, 140, 0.45);
  background: rgba(12, 18, 28, 0.92);
  color: #9fd9b5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.85;
}

.connection-status.is-offline {
  border-color: rgba(232, 120, 90, 0.55);
  color: #f0b090;
  pointer-events: auto;
  cursor: pointer;
  max-width: min(18rem, calc(100vw - 2rem));
  text-transform: none;
  letter-spacing: 0.02em;
}

html[data-compact="1"] .prose-guide {
  font-size: 0.95rem;
  line-height: 1.55;
}

html[data-compact="1"] .prose-guide h2 {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
}

html[data-compact="1"] .prose-guide p,
html[data-compact="1"] .prose-guide li {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}

html[data-compact="1"] .hero-visual {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

html[data-compact="1"] .checklist-box,
html[data-compact="1"] .shot {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

@media print {
  .connection-status,
  .resume-banner,
  #continue-guide {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .shot img,
  .card,
  .toast {
    transition: none !important;
  }
}

