:root {
  --bg: #f0f8ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #334455;
  --muted: #64748b;
  --subtle: #94a3b8;
  --teal: #33ccbb;
  --teal-dark: #28b3a4;
  --teal-soft: rgba(51, 204, 187, 0.12);
  --pink: #ff6699;
  --pink-soft: #fff0f5;
  --amber-bg: #fffbeb;
  --amber-border: #fef3c7;
  --amber-text: #92400e;
  --border: rgba(226, 232, 240, 0.9);
  --shadow-sm: 0 6px 20px -6px rgba(51, 68, 85, 0.08);
  --shadow-teal: 0 18px 40px -14px rgba(51, 204, 187, 0.22);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --topbar-h: 62px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--teal);
  color: #ffffff;
}

/* Decorative background matching haruki_register/kazuhira.html */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-orb-tr {
  position: absolute;
  top: -10%;
  right: -6%;
  width: 520px;
  height: 520px;
  background: rgba(51, 204, 187, 0.11);
  border-radius: 9999px;
  filter: blur(72px);
}
.bg-orb-bl {
  position: absolute;
  bottom: -12%;
  left: -6%;
  width: 440px;
  height: 440px;
  background: rgba(255, 102, 153, 0.1);
  border-radius: 9999px;
  filter: blur(72px);
}
.bg-geo-1 {
  position: absolute;
  top: 18%;
  left: 7%;
  width: 78px;
  height: 78px;
  border: 4px solid rgba(51, 204, 187, 0.2);
  border-radius: 1rem;
  transform: rotate(12deg);
}
.bg-geo-2 {
  position: absolute;
  bottom: 24%;
  right: 8%;
  width: 62px;
  height: 62px;
  background: rgba(51, 204, 187, 0.1);
  border-radius: 0.75rem;
  transform: rotate(45deg);
}

/* Sticky Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--topbar-h);
  background: rgba(240, 248, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}
.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.38rem 0.72rem;
  border-radius: 0.75rem;
  cursor: pointer;
}
.sidebar-toggle:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(51, 204, 187, 0.25);
}
.brand-accent {
  color: var(--teal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.nav-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.42rem 0.88rem;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-tab:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.nav-tab.active {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(51, 204, 187, 0.55);
}
.nav-tab.haruki-link {
  background: var(--pink-soft);
  color: var(--pink);
  border-color: rgba(255, 102, 153, 0.22);
}
.nav-tab.haruki-link:hover {
  background: var(--pink);
  color: #ffffff;
}

.search-wrap {
  position: relative;
  flex: 1 1 210px;
  max-width: 280px;
}
.search-input {
  width: 100%;
  padding: 0.45rem 2.1rem 0.45rem 2.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(51, 204, 187, 0.18);
}
.search-icon {
  position: absolute;
  left: 0.78rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--subtle);
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #e2e8f0;
  color: #475569;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.search-clear.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Two-Column Docs Shell (Sidebar + Main) */
.docs-shell {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

/* Sticky Left Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  max-height: calc(100vh - var(--topbar-h) - 2rem);
  display: flex;
  flex-direction: column;
}
.sidebar-mobile-head {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
.sidebar-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #ffffff;
  border-radius: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 2rem);
  overflow: hidden;
}
.sidebar-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.75rem 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}
.sb-mode-btn {
  border: 1px solid transparent;
  background: rgba(241, 245, 249, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sb-mode-btn:hover {
  color: var(--ink);
  background: #ffffff;
}
.sb-mode-btn.active {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 6px 14px -5px rgba(51, 204, 187, 0.6);
}
.sb-mode-btn.active.pink {
  background: var(--pink);
  box-shadow: 0 6px 14px -5px rgba(255, 102, 153, 0.55);
}

.sidebar-server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(248, 250, 252, 0.7);
}
.sb-srv-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}
.sb-srv-btns {
  display: flex;
  gap: 0.25rem;
}

.sidebar-scroll {
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
}

.sb-group-divider {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  padding: 0.45rem 0.5rem 0.25rem;
  margin-top: 0.25rem;
}
.sb-group-divider.pink {
  color: var(--pink);
}

.sb-cat {
  margin-bottom: 0.5rem;
}
.sb-cat-btn {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.42rem 0.55rem;
  border-radius: 0.65rem;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 0.15s ease, color 0.15s ease;
}
.sb-cat-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}
.sb-cat-btn.active {
  color: var(--teal-dark);
  background: rgba(51, 204, 187, 0.1);
}
.sb-cat-btn.active.pink {
  color: var(--pink);
  background: rgba(255, 102, 153, 0.1);
}
.sb-cat-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.sb-cat-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--teal);
  padding: 0.08rem 0.38rem;
  border-radius: 0.4rem;
  flex-shrink: 0;
}
.sb-cat-num.pink {
  background: var(--pink);
}
.sb-cat-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-chevron {
  width: 14px;
  height: 14px;
  color: var(--subtle);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.sb-cat.collapsed .sb-chevron {
  transform: rotate(-90deg);
}
.sb-cat.collapsed .sb-items {
  display: none;
}

.sb-items {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.2rem 0 0.2rem 0.65rem;
  margin-left: 0.72rem;
  border-left: 2px solid rgba(203, 213, 225, 0.65);
}
.sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.32rem 0.55rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.sb-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}
.sb-item.active {
  color: var(--teal-dark);
  background: rgba(51, 204, 187, 0.13);
  font-weight: 700;
}
.sb-item.active.pink {
  color: var(--pink);
  background: rgba(255, 102, 153, 0.12);
}
.sb-item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-pv-dot {
  font-size: 0.7rem;
  opacity: 0.75;
  flex-shrink: 0;
}

.sidebar-foot {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-ext-link {
  display: block;
  padding: 0.38rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.15s ease;
}
.sidebar-ext-link:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.sidebar-ext-link.pink {
  background: var(--pink-soft);
  color: var(--pink);
  border-color: rgba(255, 102, 153, 0.25);
}
.sidebar-ext-link.pink:hover {
  background: var(--pink);
  color: #ffffff;
}

/* Main Content Column */
.main-col {
  min-width: 0;
}

/* Mobile Drawer Behavior */
@media (max-width: 960px) {
  .docs-shell {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }
  .sidebar-toggle {
    display: inline-flex;
  }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    max-height: 100vh;
    z-index: 70;
    padding: 0.75rem;
    background: #f0f8ff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.25rem 0.6rem;
  }
  .sidebar-mobile-title {
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--ink);
  }
  .sidebar-close {
    border: none;
    background: #ffffff;
    color: var(--ink);
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .sidebar-card {
    max-height: calc(100vh - 3.6rem);
  }
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 18px 36px -12px rgba(51, 204, 187, 0.35);
}
.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}
.hero h1 span {
  color: var(--teal);
}
.hero-sub {
  max-width: 680px;
  margin: 0 auto 1.15rem;
  font-size: 1rem;
  color: var(--muted);
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: 0.84rem;
  color: var(--subtle);
}
.hero-meta strong {
  color: var(--teal-dark);
}

/* Intro / Quick-start Glass Card */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 1.65rem 1.85rem;
  border: 1px solid #ffffff;
  box-shadow: var(--shadow-teal);
  margin-bottom: 2rem;
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
  margin-top: 1rem;
}
.quick-item {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.1rem;
}
.quick-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.94rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.quick-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.alert-amber {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-size: 0.87rem;
  line-height: 1.6;
}
.alert-pink {
  margin-top: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--pink-soft);
  border: 1px solid rgba(255, 102, 153, 0.22);
  color: var(--ink);
  font-size: 0.87rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.btn-pink {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 1rem;
  border-radius: 9999px;
  background: var(--pink);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  box-shadow: 0 6px 16px -4px rgba(255, 102, 153, 0.45);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-pink:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

/* Mode Switcher (PJSK vs Other) & Server Bar */
.mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}
.segmented {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.28rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}
.segmented-btn {
  border: none;
  background: transparent;
  padding: 0.46rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.segmented-btn.active {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 6px 14px -4px rgba(51, 204, 187, 0.55);
}
.segmented-btn.active.pink {
  background: var(--pink);
  box-shadow: 0 6px 14px -4px rgba(255, 102, 153, 0.5);
}

.server-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.32rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: var(--muted);
}
.srv-btn {
  border: none;
  background: transparent;
  padding: 0.26rem 0.65rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.srv-btn.active {
  background: #334455;
  color: #ffffff;
}

/* Section Container (matching kazuhira.html numbered cards) */
.section-block {
  background: var(--surface-solid);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.85rem;
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}
.section-watermark {
  position: absolute;
  top: 0.35rem;
  right: 1.4rem;
  font-size: 5rem;
  font-weight: 900;
  color: var(--ink);
  opacity: 0.045;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.section-num {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.78rem;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -4px rgba(51, 204, 187, 0.45);
}
.section-num.pink {
  background: var(--pink);
  box-shadow: 0 8px 18px -4px rgba(255, 102, 153, 0.45);
}
.section-title {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--ink);
}
.section-desc {
  margin: 0.15rem 0 0;
  font-size: 0.87rem;
  color: var(--muted);
}

/* Feature Cards Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 1.15rem;
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .section-block {
    padding: 1.3rem 1.05rem;
  }
  .glass-card {
    padding: 1.25rem;
  }
}

.feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(51, 68, 85, 0.14);
  border-color: rgba(51, 204, 187, 0.45);
}
.feature-card.full-span {
  grid-column: 1 / -1;
}
.feature-card.pulse-highlight {
  animation: cardPulse 1.4s ease;
}
@keyframes cardPulse {
  0% { box-shadow: 0 0 0 0 rgba(51, 204, 187, 0.55); border-color: var(--teal); }
  50% { box-shadow: 0 0 0 8px rgba(51, 204, 187, 0); border-color: var(--teal); }
  100% { box-shadow: none; }
}

.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.feature-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex-shrink: 0;
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.badge-teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.badge-pink {
  background: var(--pink-soft);
  color: var(--pink);
}
.badge-slate {
  background: #e2e8f0;
  color: #475569;
}
.badge-amber {
  background: #fef3c7;
  color: #92400e;
}

.feature-summary {
  margin: 0;
  font-size: 0.87rem;
  color: #475569;
}

/* Command List */
.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cmd-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.46rem 0.7rem;
  font-size: 0.82rem;
}
.cmd-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: #0f766e;
  background: rgba(51, 204, 187, 0.1);
  padding: 0.12rem 0.45rem;
  border-radius: 0.4rem;
  cursor: pointer;
  border: 1px solid rgba(51, 204, 187, 0.25);
  transition: background 0.15s, transform 0.1s;
  word-break: break-word;
}
.cmd-code:hover {
  background: rgba(51, 204, 187, 0.22);
}
.cmd-code:active {
  transform: scale(0.98);
}
.cmd-desc {
  color: var(--muted);
  text-align: right;
  flex: 1;
}
@media (max-width: 520px) {
  .cmd-row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .cmd-desc {
    text-align: left;
  }
}

.feature-note {
  font-size: 0.8rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  border-left: 3px solid var(--teal);
  padding: 0.45rem 0.75rem;
  border-radius: 0 0.5rem 0.5rem 0;
}
.feature-note.warn {
  border-left-color: var(--pink);
  background: rgba(255, 240, 245, 0.75);
  color: #831843;
}
.suite-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  padding: 0.48rem 0.75rem;
  border-radius: 0.55rem;
}
.suite-alert a {
  color: #b45309;
  font-size: 0.76rem;
  text-decoration: underline;
  white-space: nowrap;
}
.suite-alert a:hover {
  color: var(--pink);
}

/* Preview Gallery inside Feature Card */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.65rem;
  margin-top: 0.1rem;
}
.preview-thumb {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: zoom-in;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.preview-thumb:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 22px -6px rgba(51, 204, 187, 0.35);
}
.preview-thumb img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top center;
  background: #f1f5f9;
}
.preview-thumb.wide img {
  height: 140px;
  object-fit: contain;
  background: #f8fafc;
}
.preview-caption {
  padding: 0.38rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-zoom-hint {
  color: var(--teal-dark);
  font-size: 0.72rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open {
  display: flex;
}
.lightbox-card {
  max-width: 960px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-top {
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  gap: 1rem;
}
.lightbox-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}
.lightbox-close {
  border: none;
  background: #f1f5f9;
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  font-size: 1.15rem;
  cursor: pointer;
}
.lightbox-close:hover {
  background: var(--pink);
  color: #ffffff;
}
.lightbox-body {
  overflow: auto;
  padding: 0.85rem;
  background: #f8fafc;
  text-align: center;
}
.lightbox-body img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 0.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

/* Toast & Back to top */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: #1e293b;
  color: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: none;
  background: var(--teal);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px -6px rgba(51, 204, 187, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover {
  transform: translateY(-2px);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  border: 1px dashed #cbd5e1;
  color: var(--muted);
}

footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(203, 213, 225, 0.6);
  color: var(--subtle);
  font-size: 0.84rem;
}
footer a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 700;
}
footer a:hover {
  text-decoration: underline;
}
