:root,
html[data-theme="dark"] {
  /* Ciemny motyw (domyślny) — akcenty MyDevil */
  --md-primary: #1a0a04;
  --md-primary-deep: #120604;
  --md-text: #f5e6dc;
  --md-accent: #e24828;
  --md-accent-hot: #f37129;
  --md-accent-soft: #3a1810;
  --md-border: #4a2a1c;
  --md-cream: #22110a;
  --md-code: #3a2a10;
  --md-white: #ffffff;
  --md-muted: #c4a090;

  --bg: #140a06;
  --bg-panel: #1e100a;
  --line: var(--md-border);
  --text: var(--md-text);
  --muted: var(--md-muted);
  --accent: var(--md-accent);
  --accent-hot: var(--md-accent-hot);
  --header: #1a0a04;
  --input-bg: #160c08;
  --chip-bg: #2a1610;
  --tip-bg: #2a160e;
  --code-bg: #2a1008;
  --code-fg: #ffe8c8;
  --radius: 10px;
  --font: "Roboto", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

html[data-theme="light"] {
  --md-primary: #290b01;
  --md-primary-deep: #1f0a01;
  --md-text: #310f06;
  --md-accent: #e24828;
  --md-accent-hot: #f37129;
  --md-accent-soft: #fbeae1;
  --md-border: #fae2d6;
  --md-cream: #fefaf8;
  --md-code: #fffccc;
  --md-white: #ffffff;
  --md-muted: #7a5a4e;

  --bg: var(--md-cream);
  --bg-panel: var(--md-white);
  --line: var(--md-border);
  --text: var(--md-text);
  --muted: var(--md-muted);
  --accent: var(--md-accent);
  --accent-hot: var(--md-accent-hot);
  --header: var(--md-primary);
  --input-bg: var(--md-white);
  --chip-bg: var(--md-cream);
  --tip-bg: #fff8f0;
  --code-bg: #2a1008;
  --code-fg: #ffe8c8;
  --shadow: 0 8px 28px rgba(41, 11, 1, 0.08);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #d42223, #f2722e, #d42223);
  background-size: 200% 100%;
  animation: stripe 8s linear infinite;
  z-index: 20;
}

@keyframes stripe {
  to {
    background-position: 200% 0;
  }
}

.site-header {
  background: var(--header);
  color: var(--md-white);
  box-shadow: 0 2px 12px rgba(41, 11, 1, 0.25);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  flex-shrink: 0;
  border-radius: 0.55rem;
  object-fit: cover;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}

.brand-md {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--md-white);
}

.brand-installer {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d42223, #f37129);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo {
  height: 2.6rem;
  width: auto;
  display: block;
}

.brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-fallback img {
  width: 2.4rem;
  height: auto;
}

.brand-fallback .name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-fallback .name span {
  font-weight: 400;
  background: linear-gradient(90deg, #d42223, #f2722e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.header-meta a {
  color: #f69159;
  text-decoration: none;
}

.header-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--md-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--md-white);
  background: rgba(255, 255, 255, 0.14);
}

.nav-ext {
  color: #f69159;
}

.nav-ext:hover {
  color: #ffb07a;
}

.theme-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.theme-toggle-icon::before {
  content: "☀";
  font-size: 1rem;
  line-height: 1;
}

html[data-theme="light"] .theme-toggle-icon::before {
  content: "☾";
}

.ref-banner-wrap {
  max-width: 1080px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
}

.ref-banner {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ref-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ref-banner-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.ref-banner-note {
  position: absolute;
  right: 0.65rem;
  bottom: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  pointer-events: none;
}

.layout {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  gap: 1.1rem;
  min-width: 0;
  box-sizing: border-box;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  animation: rise 0.4s ease both;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text);
}

h1 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.2rem;
  height: 3px;
  background: var(--accent);
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.lead {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead.intro {
  max-width: 52rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-toolbar {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.kind-tabs {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
}

.kind-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.kind-tab.active {
  background: var(--input-bg);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(41, 11, 1, 0.1);
}

.search-field {
  flex: 1 1 14rem;
  max-width: 22rem;
}

.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--input-bg);
  color: var(--text);
}

.search-field input:focus {
  outline: 2px solid rgba(226, 72, 40, 0.35);
  border-color: var(--accent);
}

.tag-filters {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.tag-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tag-chip.active {
  background: var(--md-accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.empty-hint {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.module-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.9rem;
}

.module-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: inherit;
  padding: 0.95rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.module-card:hover:not(.soon),
.module-card:focus-visible:not(.soon) {
  border-color: var(--accent);
  background: var(--md-accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(226, 72, 40, 0.12);
  outline: none;
}

.module-card.active {
  border-color: var(--accent);
  background: var(--md-accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.module-card.soon {
  cursor: default;
  opacity: 0.88;
  pointer-events: none;
}

.module-card.soon:hover {
  transform: none;
  box-shadow: none;
  background: var(--input-bg);
  border-color: var(--line);
}

.card-icon-wrap {
  flex: 0 0 auto;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
}

.card-body {
  min-width: 0;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.module-card .badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  color: var(--md-white);
  background: var(--md-primary);
}

.badge.php {
  background: #777bb3;
}

.badge.nodejs {
  background: var(--accent);
}

.badge.ruby {
  background: #a91401;
}

.badge.other {
  background: var(--md-muted);
}

.soon-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.16rem 0.42rem;
  border-radius: 4px;
  color: var(--accent);
  background: var(--md-accent-soft);
  border: 1px solid var(--line);
}

.module-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.ver-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: var(--md-white);
  background: var(--md-primary);
  vertical-align: middle;
}

#module-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.module-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.mini-tag {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.form-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.form-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.back-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: var(--md-accent-soft);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--accent);
  color: var(--md-white);
  border-color: var(--accent);
}

.fields {
  display: grid;
  gap: 0.95rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.field .hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.98rem;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 72, 40, 0.15);
}

.field.checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field.checkbox .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.field.checkbox input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.field.checkbox label {
  margin: 0;
}

.field.checkbox .hint {
  margin: 0;
  padding-left: 1.55rem;
}

.advanced-fields {
  margin-top: 0.35rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.85rem 0.85rem;
  background: var(--chip-bg);
}

.advanced-fields summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
}

.advanced-fields summary::-webkit-details-marker {
  display: none;
}

.advanced-fields summary::before {
  content: "▸ ";
  color: var(--accent);
}

.advanced-fields[open] summary::before {
  content: "▾ ";
}

.advanced-box {
  margin-top: 0.85rem;
}

.form-actions {
  margin-top: 1.2rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1.05rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn.ghost {
  background: var(--input-bg);
  border-color: var(--line);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--md-accent-soft);
}

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

.script-actions {
  display: flex;
  gap: 0.5rem;
}

.hint {
  margin: 0.6rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hint code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--md-accent-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--text);
}

.script-box {
  margin: 0;
  max-height: min(55vh, 520px);
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--md-primary);
  padding: 1rem;
  box-sizing: border-box;
}

.script-box.command-box {
  max-height: none;
  padding: 1.1rem 1.2rem;
}

.script-box.command-box code {
  display: block;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.45;
}

.script-box code {
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: pre;
  color: #ffe8d8;
  line-height: 1.55;
}

.full-script-details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.full-script-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.full-script-details .script-box {
  max-height: min(40vh, 360px);
}

.full-script-details .script-box code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.next-steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.next-steps li::marker {
  color: var(--accent);
}

.next-steps li + li {
  margin-top: 0.35rem;
}

.site-footer {
  background: var(--md-primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.88rem;
}

.site-footer-inner p {
  margin: 0;
}

.site-footer-inner p + p {
  margin-top: 0.65rem;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 52rem;
}

.footer-sitemap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-sitemap-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-sitemap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
}

.footer-sitemap-list a {
  text-decoration: none;
}

.footer-sitemap-list a:hover {
  text-decoration: underline;
}

.site-footer a {
  color: #f69159;
}

.site-footer code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 0.05em 0.3em;
}

/* Przewodniki (SSH, Jak to działa) */
.guide-panel .guide-block {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.guide-panel .guide-block:first-of-type {
  margin-top: 1rem;
}

.guide-panel h1 {
  scroll-margin-top: 5.5rem;
}

.guide-panel h2,
.guide-panel h3 {
  scroll-margin-top: 5.5rem;
}

.guide-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.guide-panel h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.02rem;
}

.guide-panel p {
  color: var(--text);
  margin: 0 0 0.75rem;
}

.guide-panel .guide-steps,
.guide-panel .guide-list {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--text);
}

.guide-panel .guide-steps li + li,
.guide-panel .guide-list li + li {
  margin-top: 0.4rem;
}

.guide-panel .guide-steps li::marker,
.guide-panel .guide-list li::marker {
  color: var(--accent);
}

/* Przewodnik SSH (alias klas) */
.ssh-panel .guide-block {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.ssh-panel .guide-block:first-of-type {
  margin-top: 1rem;
}

.ssh-panel h1 {
  scroll-margin-top: 5.5rem;
}

.guide-toc {
  margin: 1rem 0 0.25rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
}

.guide-toc-label {
  margin: 0 0 0.45rem !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.guide-toc li + li {
  margin-top: 0.28rem;
}

.guide-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-heading-link {
  color: inherit;
  text-decoration: none;
}

.guide-heading-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.ssh-panel h2,
.ssh-panel h3 {
  scroll-margin-top: 5.5rem;
}

.ssh-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.ssh-panel h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.ssh-panel p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.ssh-panel .guide-steps,
.ssh-panel .guide-list {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.ssh-panel .guide-steps li + li,
.ssh-panel .guide-list li + li {
  margin-top: 0.4rem;
}

.ssh-panel .guide-steps li::marker,
.ssh-panel .guide-list li::marker {
  color: var(--accent);
}

.callout {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--md-accent-soft);
  color: var(--text);
  font-size: 0.94rem;
}

.callout.tip {
  background: var(--tip-bg);
}

.callout a {
  color: var(--accent);
}

.guide-figure {
  margin: 1rem 0 0.25rem;
  padding: 0;
}

.guide-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
  box-shadow: none;
}

.guide-figure figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.guide-source {
  font-size: 0.85rem;
}

.inline-cmd {
  display: block;
  margin: 0.45rem 0;
  padding: 0.65rem 0.85rem;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.9rem;
  overflow-x: auto;
}

.inline-cmd code {
  font-family: inherit;
  background: none;
  padding: 0;
  color: inherit;
}

kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0.08em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--chip-bg);
  color: var(--text);
}

@media (max-width: 640px) {
  .brand-logo {
    height: 2.2rem;
  }

  .panel {
    padding: 1.1rem;
  }

  .script-actions {
    width: 100%;
  }

  .script-actions .btn {
    flex: 1;
  }

  .site-nav {
    width: 100%;
  }
}

/* Scrollbar jak w docs */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
