/* ════════════════════════════════════════════════════════════
   Instrukcja obsługi  —  layout identical to KSeF Client 2.0
   ════════════════════════════════════════════════════════════ */

:root {
  --sb-bg:      #f1f5f9;
  --sb-hover:   #e2e8f0;
  --sb-active:  #cbd5e1;
  --sb-text:    #475569;
  --sb-hi:      #0f172a;
  --sb-border:  rgba(0,0,0,.07);
  --sb-w:       240px;

  --top-bg:     #ffffff;
  --body-bg:    #f8fafc;
  --card-bg:    #ffffff;
  --card-border:#e8edf4;

  --brand:      #7c3aed;
  --brand-mid:  #8b5cf6;
  --brand-lite: #a78bfa;
  --brand-pale: #f5f3ff;

  --tx-main:    #0f172a;
  --tx-mid:     #475569;
  --tx-muted:   #64748b;
  --tx-faint:   #94a3b8;

  --r-card:     14px;
  --r-sm:       8px;
  --r-pill:     999px;
  --t:          .18s ease;

  --top-h:      56px;
  --sb-h:       44px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--tx-main);
  background: var(--sb-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Root grid ───────────────────────────────────────────── */
.instr-app {
  display: grid;
  grid-template-rows: var(--top-h) 1fr var(--sb-h);
  height: 100vh;
  overflow: hidden;
}

/* ── Top bar ─────────────────────────────────────────────── */
.instr-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: var(--sb-bg);
  border-bottom: 1px solid var(--sb-border);
}
.instr-top-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-hi);
  flex-shrink: 0;
}
.instr-top-logo img { height: 32px; width: auto; }
.instr-top-logo-text { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; color: var(--sb-hi); }
.instr-top-logo-sep {
  width: 1px; height: 22px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}
.instr-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-hi);
  flex-shrink: 0;
}
.instr-top-title-name { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.instr-top-title-badge {
  font-size: .65rem; font-weight: 700;
  background: rgba(139,92,246,.25);
  color: #c4b5fd;
  padding: 1px 6px; border-radius: var(--r-pill);
  letter-spacing: .04em;
}
.instr-top-spacer { flex: 1 1 auto; }
.instr-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.instr-top-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: .78rem;
  color: var(--sb-text);
  transition: background var(--t), color var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
}
.instr-top-btn:hover { background: var(--sb-hover); color: var(--sb-hi); }
.instr-top-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 4px;
}
.instr-top-user-name { font-size: .78rem; font-weight: 600; color: var(--sb-hi); line-height: 1.2; }
.instr-top-user-nip  { font-size: .68rem; color: var(--sb-text); line-height: 1.2; }

/* ── Body wrap ───────────────────────────────────────────── */
.instr-body-wrap {
  display: flex;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.instr-sidebar {
  background: var(--sb-bg);
  border-right: 1px solid var(--sb-border);
  display: flex;
  flex-direction: column;
  width: var(--sb-w);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  transition: width .22s ease;
}
.instr-sidebar::-webkit-scrollbar { width: 4px; }
.instr-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Sidebar header (brand + toggle) */
.instr-sb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 52px;
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--sb-bg);
}
.instr-sb-head-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.instr-sb-head-icon { font-size: 1.05rem; flex-shrink: 0; }
.instr-sb-head-name {
  font-size: .82rem; font-weight: 700;
  color: var(--sb-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Toggle button */
.instr-sb-toggle-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none; border-radius: var(--r-sm);
  color: var(--sb-text);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  flex-shrink: 0;
}
.instr-sb-toggle-btn:hover { background: var(--sb-hover); color: var(--sb-hi); }
.instr-hbg { display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.instr-hbg span {
  display: block; width: 16px; height: 2px;
  background: currentColor; border-radius: 1px;
  transition: width var(--t);
}

/* ── Sidebar sections ────────────────────────────────────── */
.instr-sb-section { padding: 14px 10px 6px; }
.instr-sb-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sb-text);
  margin-bottom: 6px; padding: 0 4px;
}
.instr-sb-div { height: 1px; background: var(--sb-border); margin: 4px 0; }
.instr-sb-spacer { flex: 1 1 auto; }

/* ── Nav items ───────────────────────────────────────────── */
.instr-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--sb-text);
  font-size: .84rem;
  transition: background var(--t), color var(--t);
  cursor: pointer;
}
.instr-nav-item:hover  { background: var(--sb-hover); color: var(--sb-hi); }
.instr-nav-item.active { background: var(--sb-active); color: #1e293b; }
.instr-nav-item .ni-icon  { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.instr-nav-item .ni-label { flex: 1 1 auto; font-weight: 500; }

.instr-nav-sub {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px 10px 5px 38px;
  border-radius: var(--r-sm);
  color: #3d5070;
  font-size: .78rem;
  transition: background var(--t), color var(--t);
  cursor: pointer;
}
.instr-nav-sub:hover  { background: var(--sb-hover); color: var(--sb-text); }
.instr-nav-sub.active { color: #1e40af; background: #dbeafe; }

/* ── Collapsed state ─────────────────────────────────────── */
.instr-app.sb-collapsed .instr-sidebar       { width: 52px; }
.instr-app.sb-collapsed .instr-sb-head       { justify-content: center; padding: 0; }
.instr-app.sb-collapsed .instr-sb-head-brand { display: none; }
.instr-app.sb-collapsed .instr-hbg span:nth-child(2) { width: 10px; }
.instr-app.sb-collapsed .instr-sb-section    { padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.instr-app.sb-collapsed .instr-sb-label      { display: none; }
.instr-app.sb-collapsed .instr-sb-div        { width: 28px; margin: 4px auto; }
.instr-app.sb-collapsed .instr-sb-spacer     { display: none; }
.instr-app.sb-collapsed .instr-nav-item      { justify-content: center; padding: 10px 0; width: 100%; border-radius: 0; }
.instr-app.sb-collapsed .instr-nav-item .ni-label { display: none; }
.instr-app.sb-collapsed .instr-nav-item .ni-icon  { width: auto; }
.instr-app.sb-collapsed .instr-nav-sub       { display: none; }
.instr-app.sb-collapsed .instr-nip-badge     { display: none; }

/* ── NIP badge at bottom ─────────────────────────────────── */
.instr-nip-badge {
  margin: auto 10px 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  font-size: .73rem;
  color: var(--sb-text);
  line-height: 1.4;
  flex-shrink: 0;
}
.instr-nip-badge strong { color: var(--sb-hi); display: block; font-size: .78rem; }

/* ── Main area ───────────────────────────────────────────── */
.instr-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  background: var(--body-bg);
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

/* ── Status bar (footer) ─────────────────────────────────── */
.instr-statusbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: var(--sb-bg);
  border-top: 1px solid var(--sb-border);
  font-size: .72rem;
  color: var(--sb-text);
}
.instr-statusbar-spacer { flex: 1 1 auto; }

/* ════════════════════════════════════════════════════════════
   Content typography
   ════════════════════════════════════════════════════════════ */
.instr-content {
  width: 100%;
  padding: 28px 32px 60px 32px;
  box-sizing: border-box;
}

.instr-hero {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid #e2e8f0;
}

/* ── Hero card — premium ── */
.instr-hero-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0369a1 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30,58,138,.22), 0 2px 8px rgba(30,58,138,.12);
  position: relative;
  overflow: hidden;
}
/* blask w tle */
.instr-hero-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.instr-hero-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.15);
}
.instr-hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.instr-hero-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.instr-hero-card-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(186,230,253,.8);
}
.instr-hero-card-badge {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 1px 6px rgba(34,211,238,.4);
}
.instr-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.instr-hero-card-name {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(186,230,253,.75);
  margin: 0;
  letter-spacing: .01em;
}

.instr-hero-sub { font-size: .93rem; color: #64748b; line-height: 1.6; margin: 0; }

.instr-section { margin-bottom: 52px; scroll-margin-top: 24px; }
.instr-section-num {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; margin-bottom: 10px; letter-spacing: .04em;
}
.instr-section-title {
  font-size: 1.25rem; font-weight: 800; color: #0f172a;
  margin: 0 0 6px; display: flex; align-items: center; gap: 10px;
}
.instr-section-title-icon { font-size: 1.3rem; }
.instr-section-lead { font-size: .9rem; color: #475569; line-height: 1.7; margin: 0 0 24px; }

.instr-sub { margin-bottom: 32px; scroll-margin-top: 24px; }
.instr-sub-title {
  font-size: 1rem; font-weight: 700; color: #1e293b;
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1.5px solid #e2e8f0;
  display: flex; align-items: center; gap: 8px;
}

.instr-p { font-size: .88rem; color: #334155; line-height: 1.75; margin: 0 0 14px; }
.instr-p strong { color: #0f172a; }

.instr-ul { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 5px; }
.instr-ul li { font-size: .88rem; color: #334155; line-height: 1.65; }
.instr-ul li strong { color: #0f172a; }

/* Callouts */
.instr-tip, .instr-warn, .instr-info, .instr-note {
  display: flex; gap: 12px; padding: 14px 16px;
  border-radius: 10px; margin: 0 0 16px;
  font-size: .85rem; line-height: 1.65;
}
.instr-tip  { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.instr-warn { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.instr-info { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.instr-note { background: #faf5ff; border: 1px solid #d8b4fe; color: #6b21a8; }
.instr-tip-icon, .instr-warn-icon, .instr-info-icon, .instr-note-icon {
  font-size: 1.1rem; flex-shrink: 0; margin-top: 1px;
}

/* Tables */
.instr-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.instr-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.instr-table th {
  background: #f1f5f9; color: #475569; font-weight: 700; text-align: left;
  padding: 9px 14px; border-bottom: 2px solid #e2e8f0; white-space: nowrap;
}
.instr-table td {
  padding: 8px 14px; border-bottom: 1px solid #f1f5f9;
  color: #334155; vertical-align: top; line-height: 1.55;
}
.instr-table tr:last-child td { border-bottom: none; }
.instr-table tr:hover td { background: #f8fafc; }

/* FAQ */
.instr-faq-item {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--r-sm); margin-bottom: 8px; overflow: hidden;
}
.instr-faq-item summary {
  padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--tx-main);
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
}
.instr-faq-item summary::-webkit-details-marker { display: none; }
.instr-faq-item summary::before {
  content: '+'; color: var(--brand); font-weight: 800; font-size: 1.05rem; flex-shrink: 0; width: 14px;
}
.instr-faq-item[open] summary::before { content: '−'; }
.instr-faq-item p { padding: 0 16px 14px 38px; margin: 0; font-size: .86rem; color: var(--tx-mid); line-height: 1.65; }

/* Steps */
.instr-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.instr-step { display: flex; gap: 14px; align-items: flex-start; }
.instr-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.instr-step-body { flex: 1 1 auto; font-size: .88rem; color: #334155; line-height: 1.65; padding-top: 3px; }
.instr-step-body strong { color: #0f172a; }

/* Badges */
.instr-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .77rem; font-weight: 700; white-space: nowrap; }
.instr-badge--green  { background: #dcfce7; color: #15803d; }
.instr-badge--yellow { background: #fef9c3; color: #a16207; }
.instr-badge--red    { background: #fee2e2; color: #b91c1c; }
.instr-badge--gray   { background: #f1f5f9; color: #475569; }
.instr-badge--blue   { background: #dbeafe; color: #1d4ed8; }
.instr-badge--purple { background: #f3e8ff; color: #7c3aed; }

.instr-sep { border: none; border-top: 1px solid #e2e8f0; margin: 32px 0; }

.instr-kbd {
  display: inline-block; background: #f1f5f9; border: 1px solid #cbd5e1;
  border-radius: 5px; padding: 1px 7px; font-family: monospace;
  font-size: .82rem; color: #374151;
}
.instr-ui {
  display: inline-block; background: #ede9fe; border: 1px solid #c4b5fd;
  border-radius: 5px; padding: 1px 8px; font-size: .82rem;
  color: #5b21b6; font-weight: 600;
}

/* Code block */
.instr-code {
  display: block; background: #0f172a; color: #e2e8f0;
  font-family: 'Consolas', 'Monaco', monospace; font-size: .82rem;
  line-height: 1.7; padding: 16px 20px; border-radius: 10px;
  overflow-x: auto; margin: 0 0 16px; white-space: pre;
}
.instr-code .ct { color: #94a3b8; }
.instr-code .cd { color: #7dd3fc; }
.instr-code .cf { color: #86efac; }

/* ── Dark mode toggle button ─────────────────────────────── */
.instr-dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  color: var(--sb-text);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.instr-dark-toggle:hover { background: var(--sb-hover); color: var(--sb-hi); }

/* ── Dark mode ───────────────────────────────────────────── */
.instr-app.instr--dark {
  /* Sidebar — przywrócony ciemnoniebieski */
  --sb-bg:      #0f1629;
  --sb-hover:   #1a2744;
  --sb-active:  #1e3a5f;
  --sb-text:    #94a3b8;
  --sb-hi:      #e2e8f0;
  --sb-border:  rgba(255,255,255,.06);
  /* Reszta */
  --top-bg:     #1e293b;
  --body-bg:    #0f172a;
  --card-bg:    #1e293b;
  --card-border:#334155;
  --tx-main:    #e2e8f0;
  --tx-mid:     #94a3b8;
  --tx-muted:   #64748b;
  --tx-faint:   #475569;
  --brand:      #a78bfa;
  --brand-mid:  #c4b5fd;
  --brand-pale: #1e1b4b;
  color-scheme: dark;
}

/* layout */
.instr-app.instr--dark .instr-main {
  background: var(--body-bg);
  scrollbar-color: #cbd5e1 transparent;
}
.instr-app.instr--dark .instr-content { color: var(--tx-main); }

/* nav sub-items */
.instr-app.instr--dark .instr-nav-sub       { color: #4a6080; }
.instr-app.instr--dark .instr-nav-sub:hover { background: var(--sb-hover); color: var(--sb-text); }
.instr-app.instr--dark .instr-nav-item.active { background: var(--sb-active); color: #fff; }
.instr-app.instr--dark .instr-nav-sub.active  { color: #93c5fd; background: #172033; }

/* hero */
.instr-app.instr--dark .instr-hero      { border-bottom-color: #1e3a5f; }
.instr-app.instr--dark .instr-hero-sub  { color: var(--tx-mid); }
/* hero card — gradient pozostaje, działa na ciemnym tle */
.instr-app.instr--dark .instr-hero-card { box-shadow: 0 8px 32px rgba(0,0,0,.4); }

/* sections */
.instr-app.instr--dark .instr-section-num   { }
.instr-app.instr--dark .instr-section-title { color: var(--tx-main); }
.instr-app.instr--dark .instr-section-lead  { color: var(--tx-mid); }
.instr-app.instr--dark .instr-sub-title     { color: var(--tx-main); border-bottom-color: #1e3a5f; }
.instr-app.instr--dark .instr-p             { color: #94a3b8; }
.instr-app.instr--dark .instr-p strong      { color: var(--tx-main); }
.instr-app.instr--dark .instr-ul li         { color: #94a3b8; }
.instr-app.instr--dark .instr-ul li strong  { color: var(--tx-main); }
.instr-app.instr--dark .instr-sep           { border-top-color: #1e3a5f; }

/* steps */
.instr-app.instr--dark .instr-step-body        { color: #94a3b8; }
.instr-app.instr--dark .instr-step-body strong { color: var(--tx-main); }

/* callouts */
.instr-app.instr--dark .instr-tip  { background: #052e16; border-color: #166534; color: #86efac; }
.instr-app.instr--dark .instr-warn { background: #1c1000; border-color: #92400e; color: #fcd34d; }
.instr-app.instr--dark .instr-info { background: #0c1a3a; border-color: #1e40af; color: #93c5fd; }
.instr-app.instr--dark .instr-note { background: #1a0a2e; border-color: #6b21a8; color: #d8b4fe; }

/* tables */
.instr-app.instr--dark .instr-table th                { background: #1a2744; color: var(--tx-mid); border-bottom-color: #334155; }
.instr-app.instr--dark .instr-table td                { color: #94a3b8; border-bottom-color: #1a2744; }
.instr-app.instr--dark .instr-table td strong         { color: var(--tx-main); }
.instr-app.instr--dark .instr-table tr:last-child td  { border-bottom: none; }
.instr-app.instr--dark .instr-table tr:hover td       { background: #1e2d45; }

/* inline elements */
.instr-app.instr--dark .instr-kbd { background: #1a2744; border-color: #334155; color: #94a3b8; }
.instr-app.instr--dark .instr-ui  { background: #1e1b4b; border-color: #4c1d95; color: #c4b5fd; }

/* badges */
.instr-app.instr--dark .instr-badge--green  { background: #052e16; color: #86efac; }
.instr-app.instr--dark .instr-badge--yellow { background: #1c1000; color: #fcd34d; }
.instr-app.instr--dark .instr-badge--red    { background: #2d0000; color: #fca5a5; }
.instr-app.instr--dark .instr-badge--gray   { background: #1a2744; color: #94a3b8; }
.instr-app.instr--dark .instr-badge--blue   { background: #0c1a3a; color: #93c5fd; }
.instr-app.instr--dark .instr-badge--purple { background: #1a0a2e; color: #d8b4fe; }

/* ══════════════════════════════════════════════════════════
   ILUSTRACJE — statyczne makiety UI (nie interaktywne), do
   wizualnego pokazania jak wygląda dany fragment aplikacji.
   ══════════════════════════════════════════════════════════ */
.instr-mockup {
  border: 1.5px solid var(--card-border, #e2e8f0);
  border-radius: 12px;
  background: var(--card-bg, #fff);
  padding: 16px;
  margin: 14px 0 18px;
}
.instr-mockup-label {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tx-faint, #94a3b8); margin-bottom: 12px;
}
.instr-mockup-item {
  border: 1.5px solid var(--card-border, #e2e8f0); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px; background: var(--card-bg, #fff);
}
.instr-mockup-item:last-child { margin-bottom: 0; }
.instr-mockup-item.is-active { border-color: #10b981; background: #f0fdf4; }
.instr-app.instr--dark .instr-mockup-item.is-active { background: #052e16; border-color: #059669; }
.instr-mockup-name {
  font-weight: 700; font-size: .86rem; color: var(--tx-main, #0f172a);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px;
}
.instr-mockup-badge {
  font-size: .62rem; font-weight: 800; padding: 2px 8px; border-radius: 99px;
  background: #d1fae5; color: #065f46; white-space: nowrap;
}
.instr-app.instr--dark .instr-mockup-badge { background: #052e16; color: #6ee7b7; }
.instr-mockup-files { font-size: .72rem; color: var(--tx-mid, #64748b); margin-bottom: 8px; }
.instr-mockup-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.instr-mockup-btn {
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  border: 1.5px solid var(--card-border, #e2e8f0); background: var(--card-bg, #fff);
  color: var(--tx-mid, #334155); white-space: nowrap;
}
.instr-mockup-btn--brand  { border-color: var(--brand, #7c3aed); color: var(--brand, #7c3aed); }
.instr-mockup-btn--danger { border-color: #fca5a5; color: #dc2626; }
.instr-app.instr--dark .instr-mockup-btn--danger { border-color: #7f1d1d; color: #fca5a5; }
.instr-mockup-caption {
  font-size: .74rem; color: var(--tx-mid, #64748b); margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed var(--card-border, #e2e8f0); line-height: 1.5;
}

/* Makieta: sekwencja 3 ponumerowanych kroków onboardingu (dashboard/sidebar) */
.instr-mockup-steps { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.instr-mockup-step {
  position: relative;
  flex: 1 1 140px; min-width: 120px;
  border: 1.5px solid var(--card-border, #e2e8f0); border-radius: 10px;
  padding: 14px 10px 10px; background: var(--card-bg, #fff); text-align: center;
}
.instr-mockup-step-num {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800;
  background: var(--card-border, #e2e8f0); color: var(--tx-mid, #64748b);
}
.instr-mockup-step-icon  { font-size: 1.3rem; margin-bottom: 4px; }
.instr-mockup-step-title { font-weight: 700; font-size: .8rem; color: var(--tx-main, #0f172a); }
.instr-mockup-step-body  { font-size: .68rem; color: var(--tx-mid, #64748b); margin-top: 2px; }

.instr-mockup-step.is-current {
  border-color: #fbbf24; background: #fffbeb;
  animation: instrStepPulse 2.2s ease-in-out infinite;
}
.instr-mockup-step.is-current .instr-mockup-step-num { background: #fbbf24; color: #78350f; }
.instr-app.instr--dark .instr-mockup-step.is-current  { background: #451a03; }

.instr-mockup-step.is-locked { opacity: .5; filter: grayscale(.5); }

.instr-mockup-step-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--tx-faint, #94a3b8); flex: 0 0 auto;
}

@keyframes instrStepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(217,119,6,0); }
}

@media (max-width: 640px) {
  .instr-mockup-steps      { flex-direction: column; }
  .instr-mockup-step-arrow { transform: rotate(90deg); }
}

/* Responsive */
@media (max-width: 860px) {
  .instr-sidebar { display: none; }
  .instr-content { padding: 20px 16px 40px; }
}
