:root {
  --bg-color: #0d1117;
  --bg-surface: #161b22;
  --bg-card: #21262d;
  --bg-card-hover: #292f39;
  --border-color: #30363d;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --accent-primary: #ff6347;
  --accent-primary-hover: #ff7860;
  --accent-coffee: #ffc107;
  --accent-coffee-hover: #ffca2c;
  --accent-blue: #58a6ff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
/* Header / Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #30363d;
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 24px;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f0f6fc;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.brand-badge {
  background: #ff6347;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap !important;
}

.brand-text {
  white-space: nowrap !important;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.nav-link {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap !important;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #f0f6fc;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #f0f6fc;
  background: #21262d;
  border: 1px solid #30363d;
}

.github-link {
  display: flex;
  align-items: center;
  color: #8b949e;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.github-link:hover {
  color: #f0f6fc;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #21262d;
  color: #f0f6fc;
  border: 1px solid #30363d;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  background: #30363d;
  border-color: #58a6ff;
}

.header-coffee-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 6px;
}

.header-kofi-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}

.header-kofi-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.header-kofi-badge img {
  display: block;
  height: 28px;
  width: auto;
  border-radius: 6px;
}

.btn-header-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #72A4F2;
  color: #0d1117 !important;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap !important;
  transition: all 0.15s ease;
}

.btn-header-coffee:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.coffee-cup-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.coffee-text-short {
  display: none;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.86rem;
    padding: 5px 8px;
  }
  .coffee-text-full {
    display: none;
  }
  .coffee-text-short {
    display: inline;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}


/* Hero */
.hero-section {
  padding: 80px 0 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  background: rgba(255, 99, 71, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 99, 71, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ff6347, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
}

.btn-coffee {
  background-color: #0070ba;
  color: #fff;
}

.btn-coffee:hover {
  background-color: #005ea6;
}

.preview-card {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Features */
.features-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Gallery / Showcase */
.gallery-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.showcase-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  max-width: 1050px;
  margin: 0 auto;
}

.showcase-frame img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mobile-frame {
  max-width: 440px;
}

.caption {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Slicer Section */
.slicer-section {
  padding: 80px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin-bottom: 30px;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.profile-table th, .profile-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.profile-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 600;
}

.btn-sm {
  background: var(--bg-surface);
  color: var(--accent-blue);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-sm:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
}

.callout-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout-box h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.callout-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.callout-box code {
  background: #0d1117;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
}

/* Steps */
.install-section {
  padding: 80px 0;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 850px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 20px;
  background: var(--bg-surface);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag-list li code {
  background: var(--bg-card);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue);
  border: 1px solid var(--border-color);
}

.code-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.code-pill-list span code {
  background: var(--bg-card);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
}

.sub-text {
  font-size: 0.88rem !important;
  color: var(--text-muted);
}

details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-blue);
  outline: none;
}

.details-content {
  margin-top: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* Coffee / Sponsor */
.coffee-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-color) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.coffee-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: #0d1117;
  border: 1px solid #30363d;
  padding: 32px 24px;
  border-radius: var(--radius-md);
}

.coffee-icon {
  display: none;
}

.coffee-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f6fc;
}

.coffee-lead {
  font-size: 0.95rem;
  color: #8b949e;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-coffee-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #f0f6fc;
  padding: 0;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-coffee-large:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.coffee-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Credits */
.credits-section {
  padding: 80px 0;
}

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

.credit-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
}

.credit-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.credit-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.credit-item a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.credit-item a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #090c10;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-content a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .header-container {
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    gap: 14px;
  }
}


/* Operator Guide & FAQ */
.guide-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-primary);
}

.guide-card.card-blue::before {
  background: var(--accent-blue);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.guide-punchline {
  background: rgba(255, 99, 71, 0.1);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.card-blue .guide-punchline {
  background: rgba(88, 166, 255, 0.1);
  color: var(--accent-blue);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.guide-step-item {
  display: flex;
  gap: 12px;
}

.guide-step-item strong {
  color: var(--text-main);
  min-width: 130px;
  flex-shrink: 0;
  font-size: 0.92rem;
}

.guide-step-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.guide-pro-tip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-pro-tip strong {
  color: var(--accent-coffee);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-container details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
}

.faq-container summary {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-container summary::-webkit-details-marker {
  display: none;
}

.faq-container summary::after {
  content: '＋';
  color: var(--accent-blue);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.faq-container details[open] summary::after {
  content: '－';
}

.faq-container .details-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Header Coffee CTA Button (Permanent Top Right) */
.header-coffee-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0070ba 0%, #005ea6 100%);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 112, 186, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  margin-left: 6px;
}

.header-coffee-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 112, 186, 0.7);
  background: linear-gradient(135deg, #007acb 0%, #0068b5 100%);
}

.header-coffee-btn .coffee-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.header-coffee-btn .coffee-text-short {
  display: none;
}

@media (max-width: 768px) {
  .header-coffee-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 580px) {
  .header-coffee-btn .coffee-text-full {
    display: none;
  }
  .header-coffee-btn .coffee-text-short {
    display: inline;
  }
}

/* Browser Mockup & Interactive Scrollable Frame */

/* Clean Screenshot Card (No fake browser address bar) */
.screenshot-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
}

.screenshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  gap: 12px;
}

.screenshot-hint {
  font-size: 0.82rem;
  color: #8b949e;
}

.screenshot-viewport {
  width: 100%;
  max-height: 720px;
  overflow-y: auto;
  background: #010409;
}

.screenshot-viewport img {
  width: 100%;
  height: auto;
  display: block;
}

.browser-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  max-width: 1080px;
  margin: 0 auto;
}

.browser-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #1c2128;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d1117;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  flex: 1;
  max-width: 480px;
}

.browser-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mockup-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.mockup-btn-tour {
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.4);
  color: var(--accent-blue);
}

.mockup-btn-tour:hover {
  background: var(--accent-blue);
  color: #fff;
}

.browser-viewport {
  height: 600px;
  max-height: 72vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #0d1117;
  position: relative;
}

/* Sleek custom scrollbar */
.browser-viewport::-webkit-scrollbar {
  width: 10px;
}

.browser-viewport::-webkit-scrollbar-track {
  background: #161b22;
}

.browser-viewport::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 5px;
}

.browser-viewport::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.full-dashboard-img {
  width: 100%;
  display: block;
  height: auto;
}

.browser-footer {
  padding: 10px 18px;
  background: #161b22;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Photo Showcase Container */
.photo-showcase-container {
  max-width: 900px;
  margin: 0 auto;
}

.photo-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.photo-toggle-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.photo-display-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}

.photo-display-frame img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Mobile Phone Mockup */
.mobile-phone-mockup {
  max-width: 410px;
  margin: 0 auto;
  background: #161b22;
  border: 8px solid #2d333b;
  border-radius: 36px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  padding-top: 18px;
}

.mobile-phone-speaker {
  width: 60px;
  height: 5px;
  background: #444c56;
  border-radius: 99px;
  margin: 0 auto 14px;
}

.mobile-viewport {
  height: 560px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #0d1117;
}

.mobile-viewport::-webkit-scrollbar {
  width: 6px;
}

.mobile-viewport::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 3px;
}

.mobile-viewport img {
  width: 100%;
  display: block;
}

/* Cutaway View Switcher */
.cutaway-toggle-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cutaway-toggle-btn {
  background: #1c2128;
  border: 1px solid #30363d;
  color: #adbac7;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cutaway-toggle-btn:hover {
  background: #2d333b;
  color: #f0f6fc;
}

/* Tools & Material Deep Dive */
.telemetry-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  border-top: 1px solid #30363d;
  border-bottom: 1px solid #30363d;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
  margin-top: 36px;
}

.telemetry-preview-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 90px;
}

.preview-mode-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: #0d1117;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #30363d;
}

.preview-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #8b949e;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-image-wrapper {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #21262d;
}

.telemetry-img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: opacity 0.25s ease;
}

.preview-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.5;
  text-align: center;
}

.telemetry-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.telemetry-feat-item {
  display: flex;
  gap: 16px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.telemetry-feat-item:hover {
  transform: translateY(-2px);
  border-color: #58a6ff;
}

.telemetry-feat-item.highlight-feat {
  border-color: rgba(255, 99, 71, 0.5);
  background: linear-gradient(135deg, #161b22 0%, rgba(255, 99, 71, 0.08) 100%);
}

.feat-icon-box {
  width: 44px;
  height: 44px;
  background: #21262d;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid #30363d;
}

.highlight-feat .feat-icon-box {
  background: rgba(255, 99, 71, 0.15);
  border-color: rgba(255, 99, 71, 0.4);
}

.feat-content h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #f0f6fc;
}

.feat-content p {
  margin: 0;
  font-size: 0.92rem;
  color: #8b949e;
  line-height: 1.55;
}

/* Fertigdruck-Fanfare & Licht Automations Section */
.automations-section {
  padding: 80px 0;
  background: #0d1117;
}

.badge-fanfare {
  background: rgba(210, 153, 34, 0.15);
  border: 1px solid rgba(210, 153, 34, 0.4);
  color: #d29922;
}

.fanfare-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

.fanfare-info-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.fanfare-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fanfare-pill {
  background: #21262d;
  border: 1px solid #30363d;
  color: #adbac7;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
}

.fanfare-pill code {
  color: #ff6347;
  background: transparent;
  padding: 0;
}

.fanfare-info-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  color: #f0f6fc;
}

.fanfare-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fanfare-feature-list li {
  font-size: 0.93rem;
  line-height: 1.55;
  color: #8b949e;
}

.fanfare-feature-list li strong {
  color: #f0f6fc;
  display: block;
  margin-bottom: 2px;
}

.prerequisites-box {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 18px;
}

.prerequisites-box h4 {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  color: #f0f6fc;
}

.prereq-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #8b949e;
}

.prereq-item:last-child {
  margin-bottom: 0;
}

.prereq-item span:first-child {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.prereq-item strong {
  color: #c9d1d9;
}

.fanfare-yaml-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.yaml-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #21262d;
  border-bottom: 1px solid #30363d;
  font-size: 0.88rem;
  color: #adbac7;
}

.copy-code-btn {
  background: #30363d;
  border: none;
  color: #f0f6fc;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-code-btn:hover {
  background: #388bfd;
}

.fanfare-yaml-card .code-block {
  margin: 0;
  padding: 18px;
  background: #090d13;
  color: #c9d1d9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  max-height: 480px;
  overflow-y: auto;
}

.yaml-footer {
  padding: 12px 18px;
  background: #21262d;
  border-top: 1px solid #30363d;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .telemetry-grid,
  .fanfare-card-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-preview-card {
    position: static;
  }
}

/* Credit Support & Ko-fi Links */
.credit-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.credit-repo-link {
  color: #58a6ff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.credit-repo-link:hover {
  color: #79c0ff;
  text-decoration: underline;
}

.credit-kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff5e5b 0%, #e04441 100%) !important;
  border: 1px solid #ff5e5b !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 94, 91, 0.45);
  transition: all 0.2s ease;
  width: fit-content;
  cursor: pointer;
}

.credit-kofi-btn:hover {
  background: linear-gradient(135deg, #ff7b78 0%, #ff5e5b 100%) !important;
  border-color: #ff7b78 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 94, 91, 0.7);
  transform: translateY(-2px);
}

.credit-bmac-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffdd00 0%, #e6c700 100%) !important;
  border: 1px solid #ffdd00 !important;
  color: #000000 !important;
  text-decoration: none !important;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 221, 0, 0.4);
  transition: all 0.2s ease;
  width: fit-content;
  cursor: pointer;
}

.credit-bmac-btn:hover {
  background: #ffe633 !important;
  color: #000000 !important;
  box-shadow: 0 6px 20px rgba(255, 221, 0, 0.6);
  transform: translateY(-2px);
}

.credit-sponsor-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ea4aaa 0%, #bf3989 100%) !important;
  border: 1px solid #ea4aaa !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(234, 74, 170, 0.4);
  transition: all 0.2s ease;
  width: fit-content;
  cursor: pointer;
}

.credit-sponsor-btn:hover {
  background: #ff5ec2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(234, 74, 170, 0.6);
  transform: translateY(-2px);
}

.kofi-icon {
  font-size: 0.95rem;
}

/* Page Hero Banner */
.page-banner {
  padding: 60px 0 36px;
  background: linear-gradient(180deg, #161b22 0%, #0d1117 100%);
  border-bottom: 1px solid #30363d;
  text-align: center;
}

.banner-lead {
  max-width: 800px;
  margin: 16px auto 0;
  font-size: 1.1rem;
  color: #8b949e;
  line-height: 1.6;
}

.quick-jump-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.jump-pill {
  background: #1c2128;
  border: 1px solid #30363d;
  color: #adbac7;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.jump-pill:hover {
  background: #ff6347;
  color: #ffffff;
  border-color: #ff6347;
  box-shadow: 0 0 10px rgba(255, 99, 71, 0.35);
  transform: translateY(-1px);
}

/* Hub Navigation Cards (Startseite) */
.hub-cards-section {
  padding: 50px 0 70px;
  background: #0d1117;
}

.hub-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.hub-module-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.hub-module-card:hover {
  transform: translateY(-4px);
  border-color: #ff6347;
  box-shadow: 0 16px 36px rgba(255, 99, 71, 0.15);
}

.module-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.hub-module-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #f0f6fc;
}

.hub-module-card p {
  margin: 0;
  color: #8b949e;
  font-size: 0.93rem;
  line-height: 1.55;
  flex-grow: 1;
}

.module-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

.module-tags span {
  background: #0d1117;
  border: 1px solid #2d333b;
  color: #8b949e;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* OrcaSlicer Installation Box */
.slicer-install-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.install-path-group h4 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: #f0f6fc;
}

.path-code-box {
  background: #090d13;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #79c0ff;
  user-select: all;
}

.path-hint {
  margin: 8px 0 0 0;
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.5;
}

/* Filament Brand Grid */
.filament-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.filament-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
}

.filament-card h4 {
  margin: 0 0 14px 0;
  font-size: 1.1rem;
  color: #f0f6fc;
  border-bottom: 1px solid #21262d;
  padding-bottom: 8px;
}

.filament-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filament-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #adbac7;
}

.btn-xs {
  background: #21262d;
  border: 1px solid #30363d;
  color: #58a6ff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-xs:hover {
  background: #388bfd;
  color: #ffffff;
  border-color: #388bfd;
}

/* My Home Assistant One-Click Badges */
.ha-my-badge {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ha-my-badge img {
  height: 38px;
  display: block;
}

.ha-my-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}


/* ==========================================================================
   Set & Send Plugin & Credits Hall of Fame Styles
   ========================================================================== */

/* Set & Send Grid */
.plugin-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .plugin-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.plugin-preview-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.plugin-img-wrapper {
  background: #0d1117;
  padding: 12px;
  text-align: center;
}

.plugin-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.plugin-img-caption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.5;
  border-top: 1px solid #30363d;
  background: #161b22;
}

.plugin-info-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plugin-feature-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
}

.plugin-feature-box h4 {
  color: #f0f6fc;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.plugin-feature-box p {
  color: #8b949e;
  font-size: 0.92rem;
  line-height: 1.6;
}

.plugin-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plugin-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #8b949e;
}

.plugin-feat-item strong {
  color: #f0f6fc;
}

.feat-dot {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: -2px;
}

.plugin-install-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
}

.plugin-install-card h4 {
  color: #f0f6fc;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.install-hint {
  font-size: 0.85rem;
  color: #8b949e;
  margin: 10px 0 16px;
}

.plugin-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* AI / MCP Agent Step Card */
.ai-step-card {
  border-color: #58a6ff !important;
  background: linear-gradient(180deg, #161b22 0%, #0d1a2d 100%) !important;
}

.ai-prompt-box {
  margin-top: 14px;
}

.ai-prompt-box pre {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #adbac7;
  line-height: 1.6;
}

/* Credits Hall of Fame Grid */
.credits-hall-section {
  padding: 50px 0 80px;
  background: #090d13;
}

.credits-hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .credits-hall-grid {
    grid-template-columns: 1fr;
  }
}

.hall-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hall-card:hover {
  transform: translateY(-3px);
  border-color: #58a6ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.featured-hall-card {
  border-color: #ff6347;
  background: linear-gradient(180deg, #1c2128 0%, #161b22 100%);
}

.hall-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 99, 71, 0.15);
  color: #ff6347;
  border: 1px solid rgba(255, 99, 71, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hall-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hall-avatar {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #21262d;
  border-radius: 12px;
  border: 1px solid #30363d;
  flex-shrink: 0;
}

.hall-header h3 {
  color: #f0f6fc;
  font-size: 1.15rem;
  margin: 0;
}

.hall-role {
  color: #58a6ff;
  font-size: 0.82rem;
  font-weight: 600;
}

.hall-desc {
  color: #8b949e;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.hall-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #30363d;
  padding-top: 16px;
}

.featured-credit-item {
  border-color: #ff6347 !important;
}


/* Installation Step 0 & Detailed Resource Guide Styles */
.prereq-step-card {
  border-color: #30363d;
  background: linear-gradient(180deg, #161b22 0%, #13171e 100%);
}

.step-header-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.step-pill {
  background: rgba(56, 139, 253, 0.15);
  border: 1px solid rgba(56, 139, 253, 0.4);
  color: #58a6ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-guide-list {
  margin: 10px 0 0 20px;
  padding: 0;
  color: #8b949e;
  font-size: 0.88rem;
  line-height: 1.6;
}

.step-guide-list li {
  margin-bottom: 8px;
}

.step-guide-list strong {
  color: #f0f6fc;
}

.ha-path-explanation-box {
  background: rgba(56, 139, 253, 0.08);
  border: 1px solid rgba(56, 139, 253, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
}

.ha-path-explanation-box h5 {
  color: #58a6ff;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.ha-path-explanation-box p {
  color: #adbac7;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

.step-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.sim-chip {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-chip:hover {
  border-color: #58a6ff;
  color: #fff;
}

/* Keep dashboard navigation and the language control accessible at narrow widths. */
.extra-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; margin: .75rem 0; }
ul.extra-links, .preset-list, .quick-steps { padding-inline-start: 1.25rem; }
.quick-steps li, .preset-list li { margin-block: .6rem; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid #79c0ff; outline-offset: 3px; }
@media (max-width: 900px) {
  .header-container { flex-wrap: wrap; justify-content: space-between; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; flex-wrap: wrap; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .5rem; background: #0d1117; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Muted controls and labels. Badges stay in the document flow. */
:root { --link-muted: #b6c9ed; --panel-muted: #171d26; --border-muted: #3a4658; }
a { color: var(--link-muted); }
.btn-primary, .btn-secondary, .btn-outline, .coffee-link, .ha-my-badge { border: 1px solid var(--border-muted); box-shadow: none; text-shadow: none; }
.btn-primary { background: #344258; color: #edf2fb; }
.btn-primary:hover { background: #40516d; color: #f4f7fd; box-shadow: none; }
.btn-secondary, .btn-outline, .coffee-link, .ha-my-badge { background: var(--panel-muted); color: var(--link-muted); }
.btn-secondary:hover, .btn-outline:hover, .coffee-link:hover, .ha-my-badge:hover { background: #263143; color: #edf2fb; box-shadow: none; }
.coffee-link, .ha-my-badge { display: inline-flex; align-items: center; padding: .35rem .65rem; border-radius: 6px; font-size: .85rem; text-decoration: none; }
.pill-badge, .badge-tag, .step-pill, .hall-badge { background: #202936; color: #c3d1e9; border: 1px solid #3a4658; box-shadow: none; }
.hall-badge { position: static; align-self: flex-start; margin: 0 0 .6rem; }
.hall-card, .hall-card:hover, .featured-hall-card { border-color: var(--border-muted); box-shadow: none; background: var(--panel-muted); }
.hall-role { color: #b0c4e5; }
.page-banner { background: #131923; border-bottom-color: #2f3a4c; }
.page-banner h1, .hero-content h1 { color: #eff3fa; }
.hero-actions { gap: .6rem; }
.quick-steps { max-width: 74ch; }
.quick-steps li { padding-block: .3rem; }
.path-code-box code, .quick-steps code { white-space: normal; overflow-wrap: anywhere; }
.table-wrapper { overflow-x: auto; }

/* Gallery images scroll with the page. Controls share one muted treatment. */
.screenshot-viewport, .mobile-viewport { max-height: none; height: auto; overflow: visible; }
.screenshot-viewport > a, .mobile-viewport > a { display: block; }
.screenshot-card .caption { padding: .75rem 1rem; }
.screenshot-header, .cutaway-toggle-bar, .gallery-tabs, .preview-mode-switch { flex-wrap: wrap; }
.tab-btn, .photo-toggle-btn, .cutaway-toggle-btn, .preview-btn, .sim-chip { background: var(--panel-muted); border: 1px solid var(--border-muted); color: #bac8dc; box-shadow: none; }
.tab-btn[aria-pressed="true"], .photo-toggle-btn[aria-pressed="true"], .cutaway-toggle-btn[aria-pressed="true"], .preview-btn[aria-pressed="true"], .sim-chip[aria-pressed="true"] { background: #29374a; color: #e6edfa; border-color: #7487a5; }
.tab-btn:hover, .photo-toggle-btn:hover, .cutaway-toggle-btn:hover, .preview-btn:hover, .sim-chip:hover { border-color: #7487a5; color: #edf2fb; }
.telemetry-feat-item.highlight-feat, .highlight-feat .feat-icon-box { background: var(--panel-muted); border-color: var(--border-muted); }
.telemetry-preview-card, .telemetry-grid > * { min-width: 0; }

.gallery-detail { margin: .75rem 1rem 1rem; }
.gallery-detail img { display: block; width: 100%; height: auto; margin-block-start: .65rem; }
.gallery-phone img { width: min(100%, 390px); margin-inline: auto; }
.gallery-related { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1rem; }
.gallery-related-link { display: flex; flex: 1 1 13rem; align-items: center; gap: .75rem; padding: .65rem; border: 1px solid var(--border-muted); border-radius: 8px; }
.gallery-related-link img { width: 5rem; height: 3.25rem; object-fit: contain; border-radius: 4px; }

.install-downloads { margin-block: .3rem 0; }
.install-prompt { max-width: 74ch; }
.install-prompt pre { margin-block-start: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#quick-steps, #ai-install { scroll-margin-top: 8rem; }

.controls-preview-trigger { display: block; text-align: center; text-decoration: none; }
.controls-preview-trigger img { display: block; width: 100%; height: auto; margin-inline: auto; }
.controls-preview-trigger .studio-hero-card { max-height: 520px; width: auto; max-width: 100%; object-fit: contain; }
.controls-preview-label { display: inline-block; margin-block-start: .55rem; text-decoration: underline; text-underline-offset: .2em; }
.controls-preview-dialog { margin: auto; overflow-y: auto; width: min(1180px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1rem; border: 1px solid var(--border-muted); border-radius: 12px; background: #171d26; color: #eff3fa; }
.controls-preview-dialog::backdrop { background: rgb(0 0 0 / .7); }
.controls-preview-dialog img { display: block; width: 100%; height: auto; }
.controls-preview-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.controls-preview-dialog p { margin-block: .6rem; }

/* Overview of the dashboard alongside the preview screenshot. */
.hero-container { grid-template-areas: "intro preview"; row-gap: 1.25rem; align-items: center; }
.hero-content { grid-area: intro; }
.hero-content .hero-lead { margin-block-end: 1.1rem; }
.hero-image { grid-area: preview; align-self: center; min-width: 0; }
.hero-preview-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--border-muted); border-radius: var(--radius-md); overflow: hidden; background: #0d1117; cursor: zoom-in; }
.hero-preview-btn img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: top center; }
.dashboard-views { margin-block: 1rem; }
.dashboard-view-link { display: block; text-decoration: none; }
.dashboard-view-link h3 { margin-block-start: .75rem; text-decoration: underline; text-underline-offset: .2em; }
.dashboard-view-link img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 6px; background: #0d1117; }
.dashboard-credit { margin-block-end: 1.1rem; font-size: .9rem; color: var(--text-muted); }
@media (max-width: 900px) { .hero-container { grid-template-areas: "intro" "preview"; } }

/* Top-right header actions & community-style Ko-fi button */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-coffee-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: #ffd666;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.header-coffee-btn:hover {
  background: rgba(255, 193, 7, 0.24);
  border-color: #ffca2c;
  color: #fff3c4;
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .header-coffee-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}

/* GitHub-README-style clear split: Built on Ironoxx vs Added by Reaper2507 */
.section-intro {
  color: var(--text-muted);
  max-width: 72ch;
  margin-top: 8px;
  margin-bottom: 22px;
  font-size: 0.96rem;
}

.split-credit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.split-card {
  background: var(--panel-muted);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-card.reaper-card {
  border-color: rgba(255, 99, 71, 0.48);
  background: linear-gradient(180deg, rgba(255, 99, 71, 0.07) 0%, var(--panel-muted) 100%);
}

.split-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.split-card h3 {
  font-size: 1.12rem;
  color: #eff3fa;
  margin: 0;
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #c5d1e3;
  font-size: 0.92rem;
}

.split-list li {
  position: relative;
  padding-left: 1.2rem;
}

.split-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 800;
}

.split-card.ironoxx-card .split-list li::before {
  color: var(--accent-blue);
}

.split-card-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(58, 70, 88, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Visual Showcase Grid & Lightbox */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.showcase-card {
  background: var(--panel-muted);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-card.showcase-wide {
  grid-column: span 2;
}

.showcase-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0d1117;
  cursor: zoom-in;
  position: relative;
}

.showcase-thumb-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-card.showcase-wide .showcase-thumb-btn img {
  max-height: 680px;
  object-fit: cover;
  object-position: top center;
}

.showcase-card-body {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(58, 70, 88, 0.55);
}

.showcase-card-body h3 {
  font-size: 1rem;
  color: #eff3fa;
  margin-bottom: 4px;
}

.showcase-card-body p {
  font-size: 0.88rem;
  color: #b8c5d8;
  margin: 0;
}

/* Extras Feature Grid */
.extras-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.extra-feature-card {
  background: var(--panel-muted);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extra-feature-card.extra-highlight {
  border-color: rgba(255, 193, 7, 0.42);
}

.extra-card-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.extra-feature-card h3 {
  font-size: 1rem;
  color: #eff3fa;
  margin: 0;
}

.extra-feature-card p {
  font-size: 0.89rem;
  color: #b8c5d8;
  margin: 0;
  line-height: 1.55;
}

.extra-card-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.extra-card-link:hover {
  text-decoration: underline;
}

/* Sub-grid for 3 views */
.views-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .split-credit-grid,
  .showcase-grid,
  .extras-showcase-grid,
  .views-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-card.showcase-wide {
    grid-column: span 1;
  }
}

/* Interactive Filament Picker */
.filament-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel-muted);
  border: 1px solid var(--border-muted);
  margin-bottom: 14px;
}

.filament-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filament-search-input {
  flex: 1 1 260px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 17, 23, 0.85);
  color: #eff3fa;
  font-size: 0.94rem;
}

.filament-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.filament-nozzle-pills,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.filter-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #9cb0c9;
  min-width: 68px;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d2dceb;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-pill:hover {
  border-color: rgba(255, 193, 7, 0.5);
  color: #ffffff;
}

.filter-pill.active {
  background: rgba(255, 193, 7, 0.18);
  border-color: var(--accent);
  color: #ffe082;
}

.picker-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.picker-select-controls,
.picker-download-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.picker-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffe082;
}

.picker-status {
  font-size: 0.86rem;
  color: #b8c5d8;
}

.filament-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filament-card-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--panel-muted);
  border: 1px solid var(--border-muted);
  transition: border-color 0.15s, background 0.15s;
}

.filament-card-row:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.filament-card-row.selected {
  border-color: rgba(255, 193, 7, 0.55);
  background: rgba(255, 193, 7, 0.06);
}

.filament-check {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #ffc107;
  cursor: pointer;
  flex-shrink: 0;
}

.filament-row-body {
  flex: 1 1 auto;
  min-width: 0;
}

.filament-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 4px;
}

.filament-row-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #eff3fa;
  cursor: pointer;
}

.source-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.source-verified {
  background: rgba(46, 160, 67, 0.22);
  color: #7ee787;
  border: 1px solid rgba(46, 160, 67, 0.4);
}

.source-library {
  background: rgba(56, 139, 253, 0.18);
  color: #79c0ff;
  border: 1px solid rgba(56, 139, 253, 0.35);
}

.source-datasheet {
  background: rgba(210, 153, 34, 0.18);
  color: #e3b341;
  border: 1px solid rgba(210, 153, 34, 0.35);
}

.filament-row-specs {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: #9cb0c9;
  margin-bottom: 6px;
}

.filament-row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.81rem;
}

.filament-row-links a {
  color: #79c0ff;
  text-decoration: none;
}

.filament-row-links a:hover {
  text-decoration: underline;
}

.community-tools-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-muted);
  font-size: 0.89rem;
  color: #b8c5d8;
}

@media (max-width: 820px) {
  .filament-picker-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Streamlined Install Page (Variant A: HACS 1-Click + ZIP/CLI Cards) */
.hacs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hacs-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card, #161b22);
  border: 1px solid var(--border-muted, #30363d);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.16s ease, background 0.18s ease;
}

.hacs-card:hover {
  border-color: var(--accent-blue, #58a6ff);
  background: rgba(88, 166, 255, 0.06);
  transform: translateY(-2px);
}

.hacs-primary {
  border-color: rgba(240, 136, 62, 0.55);
  background: rgba(240, 136, 62, 0.06);
}

.hacs-primary:hover {
  border-color: #f0883e;
  background: rgba(240, 136, 62, 0.11);
}

.hacs-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b949e;
}

.hacs-primary .hacs-tag {
  color: #f0883e;
}

.hacs-card strong {
  font-size: 0.98rem;
  color: #f0f6fc;
}

.hacs-cta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #79c0ff;
}

.install-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.install-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card, #161b22);
  border: 1px solid var(--border-muted, #30363d);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-box h3 {
  margin: 0;
  font-size: 1.06rem;
  color: #f0f6fc;
}

.install-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #b8c5d8;
}

.install-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 780px) {
  .install-methods-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
