:root {
  --bg: #0a0f14;
  --bg-panel: rgba(15, 20, 28, 0.92);
  --surface: #111821;
  --surface-strong: #18212d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --accent: #8aa4c8;
  --accent-strong: #dce7f5;
  --accent-soft: rgba(138, 164, 200, 0.14);
  --danger: #ff7b7b;
  --danger-strong: #ffd3d3;
  --danger-soft: rgba(255, 123, 123, 0.14);
  --danger-line: rgba(255, 123, 123, 0.3);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --serif: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --sans: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(138, 164, 200, 0.09), transparent 34%),
    linear-gradient(180deg, #090d12 0%, #0d131a 46%, #101820 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.05), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(138, 164, 200, 0.07), transparent 24%);
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 4rem;
  position: relative;
}

.page--wide-guide {
  --max-width: 1280px;
}

.site-frame,
.site-footer {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-frame {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.94), rgba(10, 15, 21, 0.94));
}

.site-frame + .breadcrumb {
  margin-top: 1rem;
}

.site-brand,
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.site-brand {
  text-decoration: none;
}

.site-brand-copy {
  min-width: 0;
}

.site-brand-copy strong,
.site-brand-copy span {
  display: block;
}

.site-brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-brand-mark {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(138, 164, 200, 0.28);
  background: linear-gradient(180deg, rgba(138, 164, 200, 0.24), rgba(17, 24, 33, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.site-brand-mark--image {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  padding: 0.12rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-brand-mark__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-brand-mark__bar,
.site-brand-mark__eye {
  position: absolute;
}

.site-brand-mark__bar {
  top: 0.8rem;
  left: 0.68rem;
  right: 0.68rem;
  height: 0.18rem;
  border-radius: 999px;
  background: rgba(220, 231, 245, 0.82);
}

.site-brand-mark__eye {
  bottom: 0.84rem;
  width: 0.96rem;
  height: 0.58rem;
  border: 2px solid rgba(220, 231, 245, 0.95);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.site-brand-mark__eye--left {
  left: 0.5rem;
  transform: skewX(-16deg);
}

.site-brand-mark__eye--right {
  right: 0.5rem;
  transform: skewX(16deg);
}

.site-frame-links,
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.site-shell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.site-shell-link:hover,
.site-shell-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(138, 164, 200, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.site-footer {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(16, 22, 30, 0.96), rgba(11, 16, 23, 0.96));
}

.site-footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
}

.site-footer-panel {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer-panel h2 {
  font-size: 1.02rem;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer-email {
  color: var(--accent-strong);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer-links {
  display: grid;
  gap: 0.7rem;
}

.site-footer-links a {
  color: var(--accent-strong);
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible,
.site-footer-email:hover,
.site-footer-email:focus-visible {
  text-decoration: underline;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero,
.section {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  margin-top: 1rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(180deg, rgba(18, 24, 32, 0.96), rgba(12, 17, 24, 0.94));
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 164, 200, 0.16) 0%, rgba(138, 164, 200, 0) 72%);
  pointer-events: none;
}

.eyebrow,
.badge,
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.025em;
}

h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

h3 {
  font-size: 1.3rem;
}

.lede,
.section-heading p,
.card-copy,
.note-card p,
.note-card li,
.meta {
  color: var(--muted);
}

.lede {
  margin: 1rem 0 0;
  max-width: 52rem;
  font-size: clamp(1.02rem, 1.55vw, 1.12rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.button {
  background: linear-gradient(180deg, #44556c, #2b3747);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.button:hover,
.button-secondary:hover,
.button:focus-visible,
.button-secondary:focus-visible,
.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-1px);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(138, 164, 200, 0.34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(138, 164, 200, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.button.is-disabled,
.button-secondary.is-disabled {
  cursor: default;
  color: var(--danger-strong);
  border-color: var(--danger-line);
  background: rgba(255, 123, 123, 0.09);
  box-shadow: none;
}

.button.is-disabled:hover,
.button.is-disabled:focus-visible,
.button-secondary.is-disabled:hover,
.button-secondary.is-disabled:focus-visible {
  transform: none;
  border-color: var(--danger-line);
  background: rgba(255, 123, 123, 0.09);
  box-shadow: none;
}

.section {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.92), rgba(12, 18, 24, 0.9));
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.part-catalogue-button {
  white-space: nowrap;
}

.section-heading p {
  margin: 0.35rem 0 0;
  max-width: 46rem;
  line-height: 1.6;
}

.inline-links {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.inline-links a {
  color: var(--accent-strong);
  text-decoration: none;
}

.inline-links a:hover,
.inline-links a:focus-visible {
  text-decoration: underline;
}

.product-grid,
.guide-grid,
.notes {
  display: grid;
  gap: 1rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-link,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  min-height: 100%;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  border-color: rgba(138, 164, 200, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.card-link.is-disabled {
  cursor: default;
  border-color: var(--danger-line);
  background: linear-gradient(180deg, rgba(54, 22, 26, 0.96), rgba(28, 11, 14, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 123, 123, 0.05);
}

.card-link.is-disabled:hover,
.card-link.is-disabled:focus-visible {
  transform: none;
  border-color: var(--danger-line);
  box-shadow: inset 0 0 0 1px rgba(255, 123, 123, 0.05);
}

.card-link.is-disabled .icon-chip,
.badge--wip {
  color: var(--danger-strong);
  background: var(--danger-soft);
  border-color: var(--danger-line);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.icon-chip {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(138, 164, 200, 0.2);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-copy {
  margin: 0;
  line-height: 1.65;
}

.meta {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.94rem;
}

.path {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.note-card {
  padding: 1.1rem 1.15rem;
}

.note-card--info {
  border-color: rgba(103, 164, 236, 0.24);
  background: linear-gradient(180deg, rgba(103, 164, 236, 0.12), rgba(103, 164, 236, 0.05));
}

.note-card--warning {
  border-color: rgba(224, 190, 88, 0.26);
  background: linear-gradient(180deg, rgba(224, 190, 88, 0.12), rgba(224, 190, 88, 0.05));
}

.note-card--serious {
  border-color: rgba(255, 110, 110, 0.24);
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.12), rgba(255, 110, 110, 0.05));
}

.note-card h3 {
  margin-bottom: 0.65rem;
}

.note-card p,
.note-card li {
  line-height: 1.65;
}

.note-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.guide-intro {
  display: grid;
  gap: 1rem;
}

.guide-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.guide-list li + li {
  margin-top: 0.7rem;
}

.guide-list strong {
  color: var(--text);
}

.notice {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(138, 164, 200, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(138, 164, 200, 0.11), rgba(138, 164, 200, 0.05));
}

.notice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(138, 164, 200, 0.75);
}

.notice--info {
  border-color: rgba(103, 164, 236, 0.24);
  background: linear-gradient(180deg, rgba(103, 164, 236, 0.12), rgba(103, 164, 236, 0.05));
}

.notice--info::before {
  background: #67a4ec;
}

.notice--warning {
  border-color: rgba(224, 190, 88, 0.24);
  background: linear-gradient(180deg, rgba(224, 190, 88, 0.12), rgba(224, 190, 88, 0.05));
}

.notice--warning::before {
  background: #e0be58;
}

.notice--serious {
  border-color: rgba(255, 110, 110, 0.24);
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.12), rgba(255, 110, 110, 0.05));
}

.notice--serious::before {
  background: #ff6969;
}

.notice--tip {
  border-color: rgba(99, 186, 143, 0.24);
  background: linear-gradient(180deg, rgba(99, 186, 143, 0.12), rgba(99, 186, 143, 0.05));
}

.notice--tip::before {
  background: #63ba8f;
}

.notice--subtle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.notice--subtle::before {
  background: rgba(138, 164, 200, 0.52);
}

.notice h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.notice p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.notice p + p {
  margin-top: 0.6rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.overview-link {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.overview-link:hover,
.overview-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(138, 164, 200, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.overview-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(138, 164, 200, 0.2);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.overview-link h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.08rem;
}

.overview-link p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.step-list {
  display: grid;
  gap: 1rem;
}

.step-card {
  scroll-margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
  overflow: hidden;
}

.step-body {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(138, 164, 200, 0.2);
}

.step-title {
  margin: 0;
  font-size: 1.22rem;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.step-body figure {
  margin: 0;
}

.step-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 15, 0.9);
}

.step-body figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-figure--compact {
  width: fit-content;
  max-width: min(100%, 34rem);
}

.step-figure--compact img {
  width: auto;
  max-width: 100%;
}

.step-figure--compact figcaption {
  max-width: 34rem;
}

.step-figure--compact.is-small {
  max-width: min(100%, 20rem);
}

.step-figure--compact.is-small figcaption {
  max-width: 20rem;
}

.step-figure--compact.is-medium {
  max-width: min(100%, 24rem);
}

.step-figure--compact.is-medium figcaption {
  max-width: 24rem;
}

.step-image-flow {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.step-image-flow__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.step-image-flow__figure {
  margin: 0;
}

.step-image-flow__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 15, 0.9);
}

.step-image-flow__figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-image-flow__arrow {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 164, 200, 0.24);
  background: rgba(138, 164, 200, 0.12);
  color: var(--accent-strong);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.step-image-flow__caption {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1000px) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .guide-grid,
  .notes {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-bottom: 2rem;
  }

  .site-frame,
  .site-footer {
    border-radius: 20px;
  }

  .site-frame-links {
    width: 100%;
  }

  .site-shell-link {
    flex: 1 1 0;
  }

  .hero,
  .section {
    border-radius: 20px;
  }

  .card-link,
  .note-card,
  .step-card,
  .overview-link {
    border-radius: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .site-footer-panel {
    padding: 0.95rem;
  }

  .step-image-flow {
    padding: 0.85rem;
  }

  .step-image-flow__track {
    grid-template-columns: 1fr;
  }

  .step-image-flow__arrow {
    width: 2.7rem;
    height: 2.7rem;
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .button-secondary,
  .card-link,
  .overview-link,
  .site-shell-link {
    transition: none;
  }
}

/* Guide article layouts */
.guide-stack {
  display: grid;
  gap: 1rem;
}

.guide-grid-two,
.guide-intro-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid-two--sidebar-right {
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 22rem);
  align-items: start;
}

.guide-grid-two--sidebar-right > .guide-stack {
  width: 100%;
  max-width: 22rem;
  justify-self: end;
}

.guide-block,
.guide-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
}

.guide-block {
  padding: 1.2rem;
  scroll-margin-top: 1rem;
}

.guide-block h3,
.guide-block h4 {
  margin: 0;
}

.guide-block > h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guide-block > h3::after {
  content: "";
  flex: 1 1 auto;
  min-width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 164, 200, 0.32), rgba(138, 164, 200, 0));
}

.guide-block h3 + p,
.guide-block h4 + p,
.guide-block h3 + .guide-note-card,
.guide-block h4 + .guide-note-card,
.guide-block h3 + .guide-figure,
.guide-block h4 + .guide-figure,
.guide-block h3 + .table-wrap,
.guide-block h3 + .guide-detail-grid,
.guide-block h4 + .table-wrap,
.guide-block h4 + .guide-detail-grid,
.guide-block h4 + ul,
.guide-block h4 + ol,
.guide-block p + p,
.guide-block p + .guide-note-card,
.guide-block p + .guide-detail-grid,
.guide-block p + ul,
.guide-block p + ol,
.guide-block p + .table-wrap,
.guide-block p + .notice,
.guide-block ul + p,
.guide-block ol + p,
.guide-block ul + h4,
.guide-block ol + h4,
.guide-block figure + h3,
.guide-block .guide-figure + .guide-note-card,
.guide-block .guide-note-card + .guide-card-grid,
.guide-block .guide-note-card + .guide-detail-grid,
.guide-block .guide-note-card + p,
.guide-block .guide-figure + .guide-card-grid,
.guide-block .guide-detail-grid + p,
.guide-block .guide-detail-grid + h4,
.guide-block .guide-detail-grid + .notice,
.guide-block .table-wrap + .notice,
.guide-block .table-wrap + p {
  margin-top: 0.9rem;
}

.guide-block p,
.guide-block li,
.guide-block figcaption {
  color: var(--muted);
  line-height: 1.68;
}

.guide-block p {
  margin: 0;
}

.guide-block ul,
.guide-block ol {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-block li + li {
  margin-top: 0.65rem;
}

.section > :is(.guide-grid-two, .guide-intro-grid, .guide-block, .guide-card-grid, .guide-stack) + :is(.guide-grid-two, .guide-intro-grid, .guide-block, .guide-card-grid, .guide-stack) {
  margin-top: 1rem;
}

.guide-block strong,
.guide-block h4,
.guide-table th,
.guide-table td strong,
.guide-pill strong,
.diagram-callout {
  color: var(--text);
}

.guide-block h4 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.guide-inline-value {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.46rem;
  border: 1px solid rgba(138, 164, 200, 0.22);
  border-radius: 999px;
  background: rgba(138, 164, 200, 0.12);
  color: var(--text);
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-figure {
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.guide-figure--compact {
  width: fit-content;
  max-width: min(100%, 32rem);
}

.guide-grid-two > .guide-figure,
.guide-intro-grid > .guide-figure {
  border: 0;
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 0;
  background: transparent;
}

.guide-figure--compact img {
  width: auto;
  max-width: 100%;
}

.guide-figure figcaption {
  margin: 0;
}

.page--app-usage-guide .guide-section-content > .guide-figure,
.page--app-usage-guide .guide-block > .guide-figure {
  padding: 0;
  border: 0;
  background: transparent;
}

.diagram-stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  border: 0;
}

.diagram-stage img {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.diagram-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.diagram-overlay line {
  stroke: #ff5252;
  stroke-width: 4;
  stroke-linecap: round;
}

.diagram-callout {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: min(11rem, calc(100% - 2rem));
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 3px solid rgba(255, 82, 82, 0.72);
  background: rgba(14, 19, 26, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  font-weight: 600;
  line-height: 1.4;
}

.guide-pill-list {
  display: grid;
  gap: 0.8rem;
}

.guide-detail-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-detail-grid > :only-child {
  grid-column: 1 / -1;
}

.guide-mini-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-mini-card--full {
  grid-column: 1 / -1;
}

.guide-note-card {
  padding: 1rem 1.05rem;
}

.guide-mini-card--warning {
  border-color: rgba(224, 190, 88, 0.26);
  background: linear-gradient(180deg, rgba(224, 190, 88, 0.12), rgba(224, 190, 88, 0.05));
}

.guide-mini-card--info {
  border-color: rgba(103, 164, 236, 0.24);
  background: linear-gradient(180deg, rgba(103, 164, 236, 0.12), rgba(103, 164, 236, 0.05));
}

.guide-mini-card--serious {
  border-color: rgba(255, 110, 110, 0.24);
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.12), rgba(255, 110, 110, 0.05));
}

.guide-mini-card--button {
  border-color: rgba(99, 186, 143, 0.24);
  background: linear-gradient(180deg, rgba(99, 186, 143, 0.12), rgba(99, 186, 143, 0.05));
}

.guide-mini-card p,
.guide-mini-card ul {
  margin: 0;
}

.guide-mini-card p + p,
.guide-mini-card p + ul,
.guide-mini-card ul + p {
  margin-top: 0.55rem;
}

.guide-mini-card figure {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.guide-mini-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 15, 0.9);
}

.guide-mini-card figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.guide-mini-card strong {
  color: var(--text);
}

.guide-mini-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 164, 200, 0.22);
  background: rgba(138, 164, 200, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-mini-kicker.is-green {
  border-color: rgba(99, 186, 143, 0.28);
  background: rgba(99, 186, 143, 0.14);
  color: #bfeccc;
}

.guide-mini-kicker.is-blue {
  border-color: rgba(103, 164, 236, 0.28);
  background: rgba(103, 164, 236, 0.14);
  color: #c7deff;
}

.guide-mini-kicker.is-yellow {
  border-color: rgba(224, 190, 88, 0.3);
  background: rgba(224, 190, 88, 0.16);
  color: #f5e6a8;
}

.guide-mini-kicker.is-red {
  border-color: rgba(255, 110, 110, 0.28);
  background: rgba(255, 110, 110, 0.14);
  color: #ffc7c7;
}

.guide-mini-kicker.is-white {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.page--app-usage-guide #settings .guide-card-grid > .guide-mini-card:not(.guide-note-card) {
  border-color: rgba(99, 186, 143, 0.24);
  background: linear-gradient(180deg, rgba(99, 186, 143, 0.12), rgba(99, 186, 143, 0.05));
}

.page--app-usage-guide #settings .guide-card-grid > .guide-mini-card:not(.guide-note-card) .guide-mini-kicker {
  border-color: rgba(99, 186, 143, 0.28);
  background: rgba(99, 186, 143, 0.14);
  color: #bfeccc;
}

.page--app-usage-guide #direct-controls .guide-card-grid > .guide-mini-card {
  border-color: rgba(99, 186, 143, 0.24);
  background: linear-gradient(180deg, rgba(99, 186, 143, 0.12), rgba(99, 186, 143, 0.05));
}

.page--app-usage-guide #direct-controls .guide-card-grid > .guide-mini-card .guide-mini-kicker {
  border-color: rgba(99, 186, 143, 0.28);
  background: rgba(99, 186, 143, 0.14);
  color: #bfeccc;
}

.guide-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.guide-checklist li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(138, 164, 200, 0.92);
  box-shadow: 0 0 0 0.22rem rgba(138, 164, 200, 0.14);
}

.guide-pill {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-pill p {
  margin-top: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.guide-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.light-switch-table {
  min-width: 31rem;
}

.light-switch-table th,
.light-switch-table td {
  vertical-align: middle;
}

.light-switch-table th.switch-icon-heading,
.light-switch-table td.switch-icon-cell {
  width: 7.5rem;
  text-align: center;
}

.light-switch-table td.switch-icon-cell {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  overflow: visible;
}

.switch-icon {
  display: inline-block;
  line-height: 0;
  overflow: visible;
}

.switch-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.switch-icon.is-head {
  width: 5rem;
}

.switch-icon.is-tail {
  width: 3.25rem;
}

.switch-icon.is-hold {
  width: 2rem;
}

.switch-icon.is-off {
  width: 3.4rem;
}

.guide-link-list {
  display: grid;
  gap: 0.7rem;
}

.guide-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-strong);
  text-decoration: none;
}

.guide-link-list a::after {
  content: "Open";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-link-list a:hover,
.guide-link-list a:focus-visible {
  border-color: rgba(138, 164, 200, 0.28);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: underline;
}

.sleepy-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sleepy-state-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
}

.sleepy-state-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.sleepy-state-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.sleepy-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.sleepy-state-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at top center, rgba(138, 164, 200, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(12, 18, 24, 0.98), rgba(10, 15, 20, 0.94));
  overflow: hidden;
}

.sleepy-state-pod {
  position: relative;
  min-height: 6.6rem;
  border-radius: 18px 18px 14px 14px;
  border: 1px solid rgba(138, 164, 200, 0.16);
  background: linear-gradient(180deg, rgba(33, 43, 56, 0.98), rgba(16, 23, 31, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sleepy-state-bucket,
.sleepy-state-door {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sleepy-state-bucket {
  bottom: 1rem;
  width: 72%;
  height: 1.55rem;
  border: 1px solid rgba(220, 231, 245, 0.16);
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, rgba(22, 31, 40, 0.98), rgba(11, 16, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sleepy-state-bucket::after {
  content: "";
  position: absolute;
  inset: 0.3rem 0.42rem 0.28rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(235, 241, 248, 0.95), rgba(138, 164, 200, 0.58));
}

.sleepy-state-door {
  bottom: 2.1rem;
  width: 78%;
  height: 0.78rem;
  border: 1px solid rgba(220, 231, 245, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(93, 109, 128, 0.98), rgba(35, 44, 56, 0.98));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  transform-origin: center 100%;
}

.sleepy-state-door--left {
  transform: translateX(-50%) rotate(calc(var(--sleepy-angle) * -1));
}

.sleepy-state-door--right {
  transform: translateX(-50%) rotate(var(--sleepy-angle));
}

@media (max-width: 900px) {
  .guide-grid-two,
  .guide-intro-grid,
  .guide-detail-grid {
    grid-template-columns: 1fr;
  }

  .guide-table {
    min-width: 28rem;
  }

  .guide-section-summary {
    flex-direction: column;
  }

  .guide-section-toggle {
    align-self: start;
  }
}


.guide-figure figcaption {
  color: var(--muted);
  line-height: 1.6;
}

.guide-link-list {
  margin-top: 0.9rem;
}

.guide-section-list {
  display: grid;
  gap: 1rem;
}

.guide-section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
  overflow: hidden;
  scroll-margin-top: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.guide-section-card[open] {
  border-color: rgba(138, 164, 200, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.guide-section-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem;
}

.guide-section-card summary::-webkit-details-marker {
  display: none;
}

.guide-section-card summary::marker {
  content: "";
}

.guide-section-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.guide-section-summary-copy {
  min-width: 0;
}

.guide-section-summary-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.guide-section-summary-copy p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 46rem;
}

.guide-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.guide-section-toggle::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.guide-section-card[open] .guide-section-toggle::after {
  content: "-";
}

.guide-section-content {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid var(--line);
}

/* Parts catalogue */
.parts-stack {
  display: grid;
  gap: 1rem;
}

.part-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
  overflow: hidden;
  scroll-margin-top: 1rem;
  will-change: height;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.part-card[open] {
  border-color: rgba(138, 164, 200, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.part-card.is-wip {
  border-color: var(--danger-line);
  background: linear-gradient(180deg, rgba(54, 22, 26, 0.96), rgba(28, 11, 14, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 123, 123, 0.05);
}

.part-card.is-wip[open] {
  border-color: rgba(255, 123, 123, 0.42);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 123, 123, 0.05);
}

.part-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.part-card summary::-webkit-details-marker {
  display: none;
}

.part-card summary::marker {
  content: "";
}

.part-card:hover,
.part-card:focus-within {
  border-color: rgba(138, 164, 200, 0.35);
}

.part-card.is-wip:hover,
.part-card.is-wip:focus-within {
  border-color: rgba(255, 123, 123, 0.42);
}

.part-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.9rem;
}

.part-summary-copy h3 {
  margin: 0;
}

.part-summary-meta,
.part-source-note,
.part-badge-row,
.part-summary-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.part-summary-pricing {
  gap: 0.7rem;
}

.part-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.part-toggle::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.part-card[open] .part-toggle::after {
  content: "-";
}

.part-card[data-animating="collapse"] .part-toggle::after {
  content: "+";
}

.part-card.is-wip .part-toggle {
  border-color: var(--danger-line);
  background: rgba(255, 123, 123, 0.08);
  color: var(--danger-strong);
}

.part-thumb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 8.5rem;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.part-thumb-wrap img {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

.part-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 18rem;
  object-fit: contain;
  border: 0;
  background: transparent;
  padding: 0;
}

.part-content {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-top: 1px solid var(--line);
}

.part-content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
}

.part-copy-stack,
.part-gallery {
  display: grid;
  gap: 1rem;
}

.part-price-pill {
  padding: 1rem;
  border: 1px solid rgba(103, 164, 236, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(103, 164, 236, 0.16), rgba(103, 164, 236, 0.06));
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.62rem 0.78rem;
}

.part-price-pill__label {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 206, 235, 0.28);
  background: rgba(186, 206, 235, 0.1);
  color: #dce7f5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.part-price-pill__label {
  flex: 0 0 auto;
}

.part-price-pill__value {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.part-card.is-wip .part-price-pill {
  border-color: rgba(255, 215, 215, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.part-copy-stack > p,
.part-copy-stack li,
.part-figure figcaption {
  color: var(--muted);
  line-height: 1.68;
}

.part-copy-stack > p,
.part-figure {
  margin: 0;
}

.part-gallery {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.part-related {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.part-related h4 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.part-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.part-related-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(138, 164, 200, 0.22);
  border-radius: 999px;
  background: rgba(138, 164, 200, 0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.part-related-link:hover,
.part-related-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(186, 206, 235, 0.34);
  background: rgba(138, 164, 200, 0.18);
}

.part-figure {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.part-figure figcaption {
  margin: 0.6rem 0 0;
}

.part-gallery .part-actions {
  margin-top: 0.1rem;
}

.part-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.part-actions .button-secondary {
  min-width: 0;
  background: linear-gradient(180deg, #556b8a, #34455e);
  border-color: rgba(186, 206, 235, 0.28);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.part-actions .button-secondary:hover,
.part-actions .button-secondary:focus-visible {
  border-color: rgba(205, 221, 244, 0.45);
  background: linear-gradient(180deg, #667e9f, #3e5270);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.26);
}

.purchase-package-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.purchase-package-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 37, 0.96), rgba(13, 19, 26, 0.96));
}

.purchase-package-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.purchase-package-head p,
.purchase-package-copy p,
.purchase-package-item-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.purchase-package-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.purchase-package-copy {
  display: grid;
  gap: 0.75rem;
}

.purchase-package-list {
  display: grid;
  gap: 0.8rem;
}

.purchase-package-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.purchase-package-item[href] {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.purchase-package-item[href]:hover,
.purchase-package-item[href]:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(138, 164, 200, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.purchase-package-item--remote {
  border-color: rgba(99, 186, 143, 0.26);
  background: linear-gradient(180deg, rgba(99, 186, 143, 0.12), rgba(99, 186, 143, 0.05));
}

.purchase-package-item--remote[href]:hover,
.purchase-package-item--remote[href]:focus-visible {
  border-color: rgba(99, 186, 143, 0.4);
  background: linear-gradient(180deg, rgba(99, 186, 143, 0.18), rgba(99, 186, 143, 0.08));
}

.purchase-package-item-thumb {
  display: grid;
  place-items: center;
  min-height: 4.75rem;
}

.purchase-package-item-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 4.75rem;
}

.purchase-package-item-copy {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.purchase-package-item-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.purchase-package-item-title h3 {
  font-size: 1.02rem;
}

.purchase-package-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 164, 200, 0.22);
  background: rgba(138, 164, 200, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purchase-package-kicker--remote {
  border-color: rgba(99, 186, 143, 0.3);
  background: rgba(99, 186, 143, 0.14);
  color: #bfeccc;
}

.purchase-package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.purchase-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.part-gallery-actions {
  display: grid;
}

.part-gallery-actions .button-secondary {
  width: 100%;
}

@media (max-width: 900px) {
  .purchase-package-grid,
  .part-card summary,
  .part-content-grid {
    grid-template-columns: 1fr;
  }

  .part-thumb-wrap {
    height: 7rem;
  }
}

.back-to-top-button {
  position: fixed;
  right: calc(clamp(1rem, 2vw, 1.6rem) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(1rem, 2vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(186, 206, 235, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44, 58, 77, 0.96), rgba(18, 27, 37, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.55rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    visibility 0ms linear 160ms;
}

.back-to-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0ms;
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  border-color: rgba(205, 221, 244, 0.42);
  background: linear-gradient(180deg, rgba(58, 75, 98, 0.98), rgba(23, 34, 48, 0.98));
}

.back-to-top-button__icon {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(220, 231, 245, 0.14);
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1;
}

.back-to-top-button__label {
  font-size: 0.78rem;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .purchase-package-item {
    grid-template-columns: 1fr;
  }

  .purchase-package-item-thumb {
    min-height: 0;
  }

  .back-to-top-button {
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    min-height: 2.85rem;
    padding: 0.68rem 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-button {
    transition: none;
  }
}
