*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2e42;
  --text: #e0e4f0;
  --text-muted: #6b7090;
  --accent: #4f8ef7;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
}

/* Header */
#header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  flex-shrink: 0;
  min-height: 46px;
}

#header h1 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  margin-right: 4px;
}

#header .subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }

.cat-toggle-group { display: flex; gap: 6px; flex-wrap: wrap; }

.sidebar-toggle-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.sidebar-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

#sidebar-toggle-btn {
  margin-left: auto;
}

.dataset-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dataset-picker select {
  background: #111521;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
}

.dataset-picker select:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

/* ---- Header button controls ---- */
.ctrl-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.view-toggle-wrap,
.preset-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* View toggle — pill switcher */
.view-toggle-group {
  display: flex;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 13px;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.view-btn.active {
  background: var(--accent);
  color: #fff;
}

.view-btn:hover:not(.active) {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* Preset buttons */
.preset-btn-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.preset-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.preset-btn.active {
  background: rgba(79,142,247,0.22);
  border-color: var(--accent);
  color: #fff;
}

.preset-btn:hover:not(.active) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

/* Depth toggle */
.depth-btn-group { display: flex; gap: 2px; }
.depth-btn { min-width: 28px; padding: 3px 7px; text-align: center; }

.cat-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid transparent;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  color: #fff;
  user-select: none;
}
.cat-btn:hover { transform: scale(1.05); }
.cat-btn.off { opacity: 0.3; }
.cat-btn .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Layout */
#app {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar */
#sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  font-size: 0.76rem;
  transition: width 0.2s ease, border-color 0.2s ease;
}

#app.sidebar-collapsed #sidebar {
  width: 0;
  border-right-color: transparent;
  overflow: hidden;
  pointer-events: none;
}

#app.detail-sidebar-collapsed #detail-sidebar {
  width: 0;
  border-left-color: transparent;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}

.sidebar-section { border-bottom: 1px solid var(--border); }

.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.sidebar-section-header:hover { background: rgba(255,255,255,0.04); }

.section-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-right: 7px; }
.section-title { flex: 1; }


.section-chevron { font-size: 0.55rem; transition: transform 0.2s; }
.section-chevron.open { transform: rotate(90deg); }

.sidebar-items { padding: 2px 0 6px; }
.sidebar-items.collapsed { display: none; }

/* Sidebar pin counter / instruction */
.sidebar-pin-counter {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 5px 10px 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
  line-height: 1.4;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 12px;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.sidebar-item:hover:not(.pin-disabled) { background: rgba(255,255,255,0.05); }

/* Pinned state */
.sidebar-item.pinned {
  background: rgba(79,142,247,0.12);
  border-color: rgba(79,142,247,0.35);
}

/* Full — max 3 reached, this item not pinned */
.sidebar-item.pin-disabled {
  opacity: 0.38;
  cursor: default;
}

.item-color-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.item-label { flex: 1; line-height: 1.3; color: var(--text); font-size: 0.73rem; }

/* Small indicator dot shown when item is pinned */
.item-pin-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: background 0.12s;
}
.sidebar-item.pinned .item-pin-dot { background: var(--accent); }

/* Graph area */
#graph-container { flex: 1; position: relative; overflow: hidden; }
#graph { width: 100%; height: 100%; }
#graph.hidden,
#legend.hidden,
#zirk-panel.hidden { display: none; }

#zirk-panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 16px 16px 24px;
  background: #0f1117;
}

.zirk-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.zirk-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.zirk-toolbar select {
  background: #111521;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
}

#zirk-summary {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

#zirk-matrix, #zirk-cooccurrence {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.zirk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.zirk-table th,
.zirk-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.zirk-table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zirk-r-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 700;
}

.zirk-cell-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-size: 0.7rem;
  padding: 2px 7px;
  cursor: pointer;
}

.zirk-cell-btn:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ---- View toggle ---- */
.zirk-view-toggle { display:flex; gap:4px; margin-left:auto; }
.zirk-view-btn { background:transparent; border:1px solid var(--border); color:var(--text-muted); border-radius:6px; padding:3px 10px; font-size:0.72rem; cursor:pointer; transition:none; }
.zirk-view-btn.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.zirk-view-btn:hover:not(.active) { border-color: var(--accent); color: var(--text); }

/* ---- Heatmap Grid ---- */
.zirk-heatmap-table { width:100%; border-collapse:collapse; font-size:0.72rem; }
.zirk-heatmap-table thead th { padding:4px 6px; font-size:0.64rem; text-align:center; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.04em; border-bottom:1px solid var(--border); white-space:nowrap; }
.zirk-concept-col-header { text-align:left !important; }
.zirk-theme-col { min-width:44px; }
.zirk-concept-label { padding:5px 8px; white-space:nowrap; color:var(--text); border-right:1px solid var(--border); min-width:130px; font-size:0.72rem; vertical-align:middle; }
.zirk-heatmap-td { text-align:center; vertical-align:middle; padding:2px; border:1px solid rgba(255,255,255,0.04); }
.zirk-heat-cell { display:inline-flex; align-items:center; justify-content:center; border-radius:4px; font-size:0.64rem; font-weight:700; cursor:pointer; width:36px; height:24px; margin:0 auto; }
.zirk-heat-cell:hover { filter:brightness(1.3); outline:1px solid rgba(255,255,255,0.3); }
.zirk-heat-empty { text-align:center; color:rgba(255,255,255,0.08); font-size:0.68rem; vertical-align:middle; border:1px solid rgba(255,255,255,0.04); }
.zirk-group-header td { background:rgba(255,255,255,0.035); color:var(--text-muted); font-size:0.65rem; text-transform:uppercase; letter-spacing:0.07em; padding:5px 8px; border-top:1px solid var(--border); }

/* ---- Swimlane ---- */
.zirk-swimlane-wrap { overflow-x:auto; min-width:0; }
.zirk-swim-th-item { position:absolute; transform:translateX(-50%); font-size:0.66rem; font-weight:700; text-align:center; white-space:nowrap; }
.zirk-swim-row { display:flex; align-items:center; min-height:32px; border-bottom:1px solid rgba(255,255,255,0.04); }
.zirk-swim-label { width:145px; flex-shrink:0; font-size:0.71rem; padding-right:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); }
.zirk-swim-track { position:relative; flex:1; min-width:200px; height:32px; }
.zirk-swim-track-line { position:absolute; top:50%; height:1px; background:rgba(255,255,255,0.1); left:0; right:0; transform:translateY(-50%); pointer-events:none; }
.zirk-swim-band { position:absolute; top:0; bottom:0; pointer-events:none; }
.zirk-swim-dot { position:absolute; width:24px; height:24px; border-radius:50%; transform:translate(-50%,-50%); top:50%; display:flex; align-items:center; justify-content:center; font-size:0.58rem; font-weight:700; cursor:pointer; border:2px solid rgba(0,0,0,0.35); z-index:1; }
.zirk-swim-dot:hover { filter:brightness(1.4); z-index:2; outline:2px solid rgba(255,255,255,0.4); }
.zirk-swim-group-header { font-size:0.67rem; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-muted); padding:10px 0 4px 0; border-top:1px solid var(--border); margin-top:2px; }

/* ---- Card View ---- */
.zirk-cards-section { margin-bottom:18px; }
.zirk-cards-section-title { font-size:0.68rem; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-muted); margin-bottom:8px; padding-bottom:4px; border-bottom:1px solid var(--border); }
.zirk-cards-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(185px,1fr)); gap:8px; }
.zirk-card { background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; min-height:100px; }
.zirk-card:hover { border-color:rgba(255,255,255,0.15); }
.zirk-card h5 { margin:0; font-size:0.77rem; font-weight:600; color:var(--text); line-height:1.3; }
.zirk-card-desc { font-size:0.64rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.4; }
.zirk-prog-track { display:flex; align-items:center; gap:3px; flex-wrap:nowrap; overflow:hidden; margin-top:auto; }
.zirk-prog-dot { display:inline-flex; align-items:center; justify-content:center; width:28px; height:18px; border-radius:4px; font-size:0.6rem; font-weight:700; flex-shrink:0; cursor:pointer; }
.zirk-prog-dot:hover { filter:brightness(1.3); outline:1px solid rgba(255,255,255,0.3); }
.zirk-prog-arrow { color:rgba(255,255,255,0.2); font-size:0.65rem; flex-shrink:0; }

/* ---- Co-Occurrence Heatmap ---- */
.zirk-heat-cooc-cell { border:none; border-radius:3px; font-size:0.68rem; font-weight:600; cursor:pointer; min-width:26px; padding:4px 6px; display:block; width:100%; }
.zirk-heat-cooc-cell:hover { filter:brightness(1.25); outline:1px solid rgba(255,255,255,0.3); }
.zirk-heat-cooc-empty { padding:0; min-width:24px; }
.zirk-cooc-legend { display:flex; align-items:center; gap:8px; font-size:0.65rem; color:var(--text-muted); margin-top:8px; }
.zirk-cooc-gradient { width:80px; height:10px; border-radius:3px; background:linear-gradient(to right, rgba(139,92,246,0.05), rgba(139,92,246,0.8)); }

/* ---- Zirk back button ---- */
#zirk-back-btn { display:block; width:100%; margin-bottom:12px; padding:7px 12px; background:rgba(79,142,247,0.1); border:1px solid var(--accent); color:var(--accent); border-radius:7px; font-size:0.75rem; font-weight:600; cursor:pointer; text-align:left; }
#zirk-back-btn:hover { background:rgba(79,142,247,0.2); }
#zirk-back-btn.hidden { display:none; }

/* ---- Zirk sidebar help ---- */
.zirk-help-view { display:flex; gap:10px; align-items:flex-start; padding:8px 10px; background:rgba(255,255,255,0.03); border:1px solid var(--border); border-radius:7px; font-size:0.73rem; line-height:1.5; color:var(--text-muted); }
.zirk-help-view strong { display:block; color:var(--text); margin-bottom:2px; font-size:0.75rem; }
.zirk-help-view-icon { font-size:1.1rem; flex-shrink:0; margin-top:1px; opacity:0.7; }

/* Legend */
#legend {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26,29,39,0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.68rem;
  line-height: 1.9;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
#legend .l-row { display: flex; align-items: center; gap: 7px; color: var(--text-muted); }
#legend .l-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Detail sidebar */
#detail-sidebar {
  width: 360px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 18px 16px 20px;
  --text: #fff;
  --text-muted: #fff;
}

#detail-sidebar.empty #detail-content { display: none; }

#detail-placeholder {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

#detail-sidebar:not(.empty) #detail-placeholder { display: none; }
#detail-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#detail-content .type-badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  flex-shrink: 0;
}

#detail-content .detail-meta {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.73rem;
}

#detail-content .detail-leitidee-kurz {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

#detail-content .detail-leitidee-detail {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

#detail-content .detail-desc {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.8rem;
  line-height: 1.65;
}

#detail-content .detail-list-section {
  margin-bottom: 12px;
}
#detail-content .detail-list-section h4 {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
#detail-content .detail-list-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#detail-content .detail-list-section li {
  font-size: 0.76rem;
  color: var(--text);
  padding: 3px 0 3px 10px;
  border-left: 2px solid var(--border);
}

#detail-content .conn-section { margin-bottom: 12px; }
#detail-content .conn-section h4 {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

#detail-content .conn-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#detail-content .conn-pill {
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

#detail-content hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

#detail-content .detail-kompetenz {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
#detail-content .kompetenz-nr {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 4px;
}
#detail-content .kompetenz-text {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
#detail-content .kompetenz-sub {
  margin-top: 6px;
}
#detail-content .kompetenz-sub h4 {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
#detail-content .kompetenz-sub ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#detail-content .kompetenz-sub li {
  font-size: 0.73rem;
  color: var(--text);
  padding: 3px 0 3px 10px;
  border-left: 2px solid var(--border);
}
#detail-content .lb-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Tour Help Button */
.tour-help-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #2b8bff, #005bda);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 72, 190, 0.45);
  z-index: 80;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tour-help-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 14px 26px rgba(0, 72, 190, 0.55);
  filter: brightness(1.08);
}

.tour-help-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tour-help-btn.pulse {
  animation: tourHelpPulse 1.8s ease-in-out infinite;
}

@keyframes tourHelpPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(0, 72, 190, 0.45), 0 0 0 0 rgba(43, 139, 255, 0.45); }
  50% { box-shadow: 0 12px 26px rgba(0, 72, 190, 0.55), 0 0 0 14px rgba(43, 139, 255, 0); }
}

/* Tour Overlay */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.tour-overlay.hidden {
  display: none;
}

.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.66);
}

.tour-spotlight {
  position: absolute;
  border-radius: 10px;
  border: 2px solid rgba(79, 142, 247, 0.95);
  box-shadow: 0 0 0 9999px rgba(2, 5, 12, 0.5), 0 0 0 1px rgba(255,255,255,0.3) inset;
  pointer-events: none;
  transition: all 0.18s ease;
}

.tour-spotlight.hidden {
  opacity: 0;
}

.tour-popover {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  background: #1a1d27;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  padding: 16px 16px 14px;
}

.tour-close-btn {
  position: absolute;
  top: 8px;
  right: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 3px;
}

.tour-close-btn:hover { color: var(--text); }

.tour-step-indicator {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 700;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tour-title {
  font-size: 1.18rem;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 8px;
  padding-right: 18px;
}

.tour-body {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 14px;
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.tour-btn {
  border-radius: 7px;
  border: 1px solid var(--border);
  padding: 8px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.tour-btn.ghost {
  background: rgba(255,255,255,0.02);
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}

.tour-btn.ghost:hover {
  border-color: rgba(255,255,255,0.9);
  color: #ffffff;
}

.tour-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tour-btn.primary:hover {
  filter: brightness(1.08);
}

.tour-btn:focus-visible,
.tour-close-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .tour-help-btn {
    width: 46px;
    height: 46px;
    top: 10px;
    right: 10px;
  }
}

/* Scrollbars */
#sidebar::-webkit-scrollbar, #detail-sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track, #detail-sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb, #detail-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
