/* ============================================================================
   IAP Panel Guides V3 — Docs / Limits / Recommendations
   Premium 3D glass sidebar + depth cards, pink V2 brand
   ============================================================================ */

:root {
  --pg-pink: #f04b6e;
  --pg-pink-2: #e11d48;
  --pg-pink-soft: #f9a8b8;
  --pg-bg: #111113;
  --pg-card: #16161b;
  --pg-card-2: #1c1c22;
  --pg-text: #f4f3f6;
  --pg-muted: #9b9ba8;
  --pg-line: rgba(255, 255, 255, 0.07);
  --pg-glow: rgba(240, 75, 110, 0.35);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.docs-layout,
.article-layout {
  display: flex !important;
  gap: 0 !important;
  margin: -20px -24px -28px !important;
  min-height: calc(100vh - var(--topbar-h, 64px) - 36px) !important;
  background:
    radial-gradient(1200px 500px at 0% 0%, rgba(240, 75, 110, 0.07), transparent 55%),
    radial-gradient(900px 420px at 100% 20%, rgba(225, 29, 72, 0.05), transparent 50%),
    var(--pg-bg) !important;
  position: relative;
}

/* ── 3D Glass Sidebar TOC ───────────────────────────────────────────────── */
.docs-toc,
.article-toc {
  width: 268px !important;
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 0 !important;
  height: calc(100vh - var(--topbar-h, 64px) - 4px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 18px 14px 48px !important;
  border-right: none !important;
  background:
    linear-gradient(165deg, rgba(28, 28, 34, 0.92) 0%, rgba(17, 17, 19, 0.88) 100%) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    8px 0 40px rgba(0, 0, 0, 0.35),
    inset -1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  z-index: 5;
}

.docs-toc::-webkit-scrollbar,
.article-toc::-webkit-scrollbar { width: 4px; }
.docs-toc::-webkit-scrollbar-thumb,
.article-toc::-webkit-scrollbar-thumb {
  background: rgba(240, 75, 110, 0.4);
  border-radius: 4px;
}

/* Brand chip on top of TOC */
.pg-toc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(240, 75, 110, 0.18), rgba(225, 29, 72, 0.06));
  border: 1px solid rgba(240, 75, 110, 0.28);
  box-shadow:
    0 8px 24px rgba(240, 75, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.pg-toc-brand::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 75, 110, 0.35), transparent 70%);
  pointer-events: none;
}
.pg-toc-brand-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: linear-gradient(145deg, #f04b6e, #e11d48);
  box-shadow:
    0 6px 16px rgba(240, 75, 110, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.pg-toc-brand-txt {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.pg-toc-brand-txt b {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  color: #f4f3f6;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pg-toc-brand-txt span {
  display: block;
  font-size: 10px;
  color: #9b9ba8;
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.article-toc-title,
.toc-section-label {
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(155, 155, 168, 0.55) !important;
  padding: 14px 10px 8px !important;
}

.toc-group { margin-bottom: 4px; }

/* TOC links as 3D pills */
.docs-toc .toc-link,
.article-toc a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  margin: 3px 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #9b9ba8 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  border-left: none !important;
  border-radius: 11px !important;
  background: transparent !important;
  line-height: 1.35 !important;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1) !important;
  position: relative;
  overflow: hidden;
}
.docs-toc .toc-link::before,
.article-toc a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 50%);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.docs-toc .toc-link:hover,
.article-toc a:hover {
  color: #f4f3f6 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  transform: translateX(2px);
}
.docs-toc .toc-link:hover::before,
.article-toc a:hover::before { opacity: 1; }

.docs-toc .toc-link.active,
.article-toc a.active {
  color: #fff !important;
  font-weight: 650 !important;
  background:
    linear-gradient(145deg, rgba(240, 75, 110, 0.22), rgba(225, 29, 72, 0.1)) !important;
  border-color: rgba(240, 75, 110, 0.35) !important;
  box-shadow:
    0 6px 18px rgba(240, 75, 110, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform: translateX(0);
}
.docs-toc .toc-link.active::before,
.article-toc a.active::before { opacity: 1; }

.toc-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  opacity: 0.35 !important;
  flex-shrink: 0 !important;
  box-shadow: none;
  transition: all 0.18s;
}
.docs-toc .toc-link.active .toc-dot,
.article-toc a.active .toc-dot {
  opacity: 1 !important;
  background: #f04b6e !important;
  box-shadow: 0 0 10px rgba(240, 75, 110, 0.8);
}

.article-toc a.h2 {
  padding-left: 28px !important;
  font-size: 11.5px !important;
  opacity: 0.9;
}

/* ── Content column ─────────────────────────────────────────────────────── */
.docs-content,
.article-body {
  flex: 1 !important;
  padding: 28px 40px 96px !important;
  max-width: 940px !important;
  min-width: 0 !important;
}

/* ── Hero 3D banner ─────────────────────────────────────────────────────── */
.docs-hero,
.article-hero {
  margin-bottom: 28px !important;
  padding: 26px 26px 22px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(240, 75, 110, 0.28) !important;
  background:
    linear-gradient(155deg, rgba(240, 75, 110, 0.16) 0%, rgba(22, 22, 27, 0.95) 42%, #141418 100%) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom: none !important;
}
.docs-hero::before,
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  pointer-events: none;
}
.docs-hero::after,
.article-hero::after {
  content: "" !important;
  position: absolute !important;
  right: -50px !important;
  top: -50px !important;
  width: 220px !important;
  height: 220px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(240, 75, 110, 0.28), transparent 68%) !important;
  pointer-events: none !important;
}
.docs-hero h1,
.article-hero h1 {
  font-size: clamp(1.45rem, 2.4vw, 1.75rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 10px !important;
  color: #f4f3f6 !important;
  position: relative;
  z-index: 1;
  line-height: 1.2 !important;
}
.docs-hero p,
.article-hero p {
  font-size: 13.5px !important;
  color: #9b9ba8 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  max-width: 42rem !important;
  position: relative;
  z-index: 1;
}

/* ── Search ─────────────────────────────────────────────────────────────── */
.docs-search-wrap { position: relative; margin-bottom: 28px; }
.docs-search {
  width: 100% !important;
  background: linear-gradient(180deg, #1a1a1f, #151518) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  padding: 13px 16px 13px 46px !important;
  color: #f4f3f6 !important;
  font-size: 14px !important;
  outline: none !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}
.docs-search:focus {
  border-color: rgba(240, 75, 110, 0.5) !important;
  box-shadow:
    0 0 0 3px rgba(240, 75, 110, 0.14),
    0 12px 32px rgba(0, 0, 0, 0.3) !important;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.doc-section,
.article-section {
  margin-bottom: 36px !important;
  scroll-margin-top: 18px !important;
  padding: 22px 22px 20px !important;
  border-radius: 16px !important;
  background: linear-gradient(165deg, rgba(28, 28, 34, 0.65), rgba(17, 17, 19, 0.4)) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  position: relative;
}
.doc-section::before,
.article-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #f04b6e, rgba(225, 29, 72, 0.2));
  opacity: 0.7;
}

.doc-section-title,
.article-section h2 {
  font-size: 1.15rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 12px !important;
  padding: 0 0 0 6px !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #f4f3f6 !important;
}

.ds-icon,
.article-section h2 .sec-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  background:
    linear-gradient(145deg, rgba(240, 75, 110, 0.28), rgba(225, 29, 72, 0.1)) !important;
  border: 1px solid rgba(240, 75, 110, 0.32) !important;
  box-shadow:
    0 8px 20px rgba(240, 75, 110, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.doc-section-desc,
.article-section p,
.article-section ul,
.article-section ol {
  font-size: 13.5px !important;
  color: #b0b0bc !important;
  line-height: 1.7 !important;
}
.article-section p { margin: 0 0 12px !important; }
.article-section ul,
.article-section ol { margin: 0 0 12px !important; padding-left: 1.2rem !important; }
.article-section li { margin-bottom: 6px !important; }
.article-section h3,
.doc-h3 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #f9a8b8 !important;
  margin: 20px 0 12px !important;
}

/* ── 3D Cards ───────────────────────────────────────────────────────────── */
.doc-card,
.rec-card,
.action-card {
  background:
    linear-gradient(160deg, 
      rgba(28, 28, 34, 0.98) 0%, 
      rgba(22, 22, 27, 0.95) 50%,
      rgba(18, 18, 22, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.doc-card::after,
.rec-card::after,
.action-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}
.doc-card:hover,
.rec-card:hover,
.action-card:hover {
  border-color: rgba(240, 75, 110, 0.35) !important;
  transform: translateY(-3px) scale(1.005) !important;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 16px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(240, 75, 110, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.doc-card h4,
.rec-card-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  color: #f9f8fb !important;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.01em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
.doc-card p,
.rec-card p,
.doc-ul {
  font-size: 13px !important;
  color: #b8b8c4 !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}
.doc-card strong,
.doc-ul strong,
.rec-card p strong {
  color: #f9a8b8 !important;
}

/* Steps 3D */
.doc-step-num,
.step-list li::before {
  background: linear-gradient(135deg, #f04b6e 0%, #e11d48 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow:
    0 4px 12px rgba(240, 75, 110, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}
.step-list {
  counter-reset: step;
  padding: 0 !important;
  list-style: none !important;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px !important;
  margin-bottom: 11px !important;
  border-radius: 14px;
  background: linear-gradient(160deg, 
    rgba(28, 28, 34, 0.88), 
    rgba(22, 22, 27, 0.92),
    rgba(18, 18, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #c0c0cc !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  transition: all 0.2s !important;
}
.step-list li:hover {
  border-color: rgba(255, 255, 255, 0.11) !important;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 13px;
  top: 13px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
}

/* Tables */
.limits-table,
.param-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 16px 0 22px !important;
  font-size: 13px !important;
  background: linear-gradient(180deg, 
    rgba(28,28,34,0.98) 0%, 
    rgba(22,22,27,0.96) 50%,
    rgba(18,18,22,0.98) 100%) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.5),
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.limits-table th,
.param-table th {
  background: linear-gradient(135deg, 
    rgba(240,75,110,0.18) 0%, 
    rgba(225,29,72,0.12) 50%,
    rgba(240,75,110,0.1) 100%) !important;
  color: #f9a8b8 !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 13px 16px !important;
  border: none !important;
  border-bottom: 1px solid rgba(240, 75, 110, 0.25) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  text-shadow: 0 2px 8px rgba(240,75,110,0.3) !important;
}
.limits-table td,
.param-table td {
  padding: 12px 16px !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #c4c4d0 !important;
  vertical-align: top !important;
  line-height: 1.6 !important;
}
.limits-table tr:last-child td,
.param-table tr:last-child td { border-bottom: none !important; }
.limits-table tr:hover td,
.param-table tr:hover td {
  background: linear-gradient(90deg, 
    rgba(240,75,110,0.08), 
    rgba(240,75,110,0.04)) !important;
}

/* Callouts / notes */
.callout,
.doc-note {
  border-radius: 16px !important;
  padding: 16px 18px !important;
  margin: 18px 0 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  display: flex !important;
  gap: 13px !important;
  align-items: flex-start !important;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  position: relative !important;
  overflow: hidden !important;
}
.callout::before,
.doc-note::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important; top: 0 !important; bottom: 0 !important;
  width: 4px !important;
  border-radius: 16px 0 0 16px !important;
}
.callout.info::before, .doc-note.info::before { background: #f04b6e !important; }
.callout.warn::before, .doc-note.warn::before { background: #f59e0b !important; }
.callout.danger::before { background: #f43f5e !important; }
.callout.success::before, .doc-note.tip::before { background: #10b981 !important; }
.callout.info,
.doc-note.info {
  background: linear-gradient(160deg, rgba(240,75,110,.13), rgba(240,75,110,.06), rgba(28,28,34,.95)) !important;
  border: 1px solid rgba(240, 75, 110, 0.32) !important;
  color: #e8e6ef !important;
}
.callout.warn,
.doc-note.warn {
  background: linear-gradient(160deg, rgba(245,158,11,.13), rgba(245,158,11,.06), rgba(28,28,34,.95)) !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  color: rgba(254, 235, 200, 0.95) !important;
}
.callout.danger {
  background: linear-gradient(160deg, rgba(244,63,94,.13), rgba(244,63,94,.06), rgba(28,28,34,.95)) !important;
  border: 1px solid rgba(244, 63, 94, 0.3) !important;
  color: #fecdd3 !important;
}
.callout.success,
.doc-note.tip {
  background: linear-gradient(160deg, rgba(16,185,129,.13), rgba(16,185,129,.06), rgba(28,28,34,.95)) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #d1fae5 !important;
}

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.tag {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(240, 75, 110, 0.32) !important;
  background: linear-gradient(135deg, rgba(240, 75, 110, 0.16), rgba(225, 29, 72, 0.08)) !important;
  color: #f9a8b8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  transition: transform 0.18s, box-shadow 0.18s !important;
}
.tag:hover { transform: translateY(-1px) !important; }
.tag.green {
  border-color: rgba(74, 222, 128, 0.3) !important;
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.12), rgba(74, 222, 128, 0.04)) !important;
  color: #4ade80 !important;
}
.tag.yellow {
  border-color: rgba(251, 191, 36, 0.3) !important;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.04)) !important;
  color: #fbbf24 !important;
}
.tag.red {
  border-color: rgba(248, 113, 113, 0.3) !important;
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.04)) !important;
  color: #f87171 !important;
}

/* Бейджи-значения в таблицах.
   ВАЖНО: класс стоит прямо на <td>, поэтому саму ячейку нельзя делать
   inline-block — это ломает раскладку таблицы. Рисуем «пилюлю» через
   ::before/::after нельзя (текст уже внутри), поэтому оформляем ячейку
   фоновой подложкой без смены display. */
td.badge-safe,
td.badge-warn,
td.badge-danger,
th.badge-safe,
th.badge-warn,
th.badge-danger {
  font-weight: 700 !important;
  font-size: 12.5px !important;
  white-space: normal !important;
  letter-spacing: 0.01em !important;
  box-shadow: inset 3px 0 0 currentColor !important;
}
/* вне таблиц (в тексте) — полноценная пилюля */
span.badge-safe,
span.badge-warn,
span.badge-danger {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em !important;
}
.badge-safe {
  color: #6ee7b7 !important;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.05)) !important;
}
.badge-warn {
  color: #fcd34d !important;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.05)) !important;
}
.badge-danger {
  color: #fca5a5 !important;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.14), rgba(244, 63, 94, 0.05)) !important;
}
span.badge-safe { border: 1px solid rgba(52, 211, 153, 0.32) !important; }
span.badge-warn { border: 1px solid rgba(251, 191, 36, 0.32) !important; }
span.badge-danger { border: 1px solid rgba(248, 113, 113, 0.32) !important; }

/* Action grid depth */
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) { .actions-grid { grid-template-columns: 1fr; } }
.action-card::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: linear-gradient(180deg, #f04b6e, #e11d48) !important;
  opacity: 0.85 !important;
  transition: opacity 0.15s !important;
}

/* Mobile TOC */
.docs-toc-toggle,
.pg-toc-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid rgba(240, 75, 110, 0.35);
  background: linear-gradient(145deg, rgba(240, 75, 110, 0.16), rgba(240, 75, 110, 0.06));
  color: #f9a8b8;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(240, 75, 110, 0.12);
}
.docs-toc-overlay,
.pg-toc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.docs-toc-overlay.mob-open,
.pg-toc-overlay.mob-open { display: block; }

@media (max-width: 960px) {
  .docs-layout,
  .article-layout {
    margin: -16px -12px -24px !important;
    flex-direction: column !important;
  }
  .docs-toc,
  .article-toc {
    display: none !important;
    position: fixed !important;
    top: var(--topbar-h, 64px) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(300px, 90vw) !important;
    z-index: 900 !important;
    height: auto !important;
    background: #111113 !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.55) !important;
  }
  .docs-toc.mob-open,
  .article-toc.mob-open { display: block !important; }
  .docs-toc-toggle,
  .pg-toc-toggle { display: flex !important; }
  .docs-content,
  .article-body {
    padding: 16px 14px 64px !important;
    max-width: 100% !important;
  }
  .doc-section,
  .article-section {
    padding: 16px 14px !important;
  }
}
