:root {
  --bg: #030507;
  --bg2: #080b10;
  --panel: rgba(12, 17, 23, .82);
  --panel2: rgba(15, 20, 27, .92);
  --text: #f5f7fb;
  --muted: #8d96a6;
  --muted2: #5c6575;
  --line: rgba(255,255,255,.09);
  --line2: rgba(255,44,64,.32);
  --accent: #ff2b3c;
  --accent2: #ff6170;
  --accent3: #7d101c;
  --green: #52d273;
  --yellow: #f9b44d;
  --blue: #52a7ff;
  --shadow: 0 0 42px rgba(255, 43, 60, .18);
  --radius: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.xenon {
  --accent: #00e5ff;
  --accent2: #8cfffb;
  --accent3: #133e48;
  --line2: rgba(0,229,255,.40);
  --shadow: 0 0 46px rgba(0,229,255,.24), 0 0 80px rgba(180,56,255,.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 43, 60, .16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 43, 60, .08), transparent 24%),
    radial-gradient(circle at 50% 115%, rgba(118, 22, 30, .22), transparent 34%),
    linear-gradient(135deg, #020304 0%, #080b10 45%, #020304 100%);
  overflow: hidden;
  cursor: none;
}
body.xenon {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 229, 255, .14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(180, 56, 255, .14), transparent 26%),
    radial-gradient(circle at 50% 115%, rgba(0, 229, 255, .12), transparent 34%),
    linear-gradient(135deg, #020304 0%, #061017 45%, #020304 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.22));
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent, transparent 4px, rgba(255,255,255,.018) 5px);
  mix-blend-mode: screen;
  z-index: 2;
  animation: scan 7s linear infinite;
}
@keyframes scan { from { transform: translateY(-18px); } to { transform: translateY(18px); } }

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: .72;
}

#cursorDot, #cursorGlow {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  z-index: 9999;
}
#cursorDot {
  width: 7px; height: 7px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent), 0 0 35px var(--accent);
}
#cursorGlow {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(circle, rgba(255,43,60,.16), transparent 70%);
  transition: width .16s, height .16s, border-color .16s;
  mix-blend-mode: screen;
}
body.xenon #cursorGlow { background: radial-gradient(circle, rgba(0,229,255,.20), rgba(177,56,255,.10), transparent 70%); }
.cursor-spark {
  position: fixed;
  width: 4px;
  height: 4px;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9998;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: spark .62s ease-out forwards;
}
@keyframes spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); } }
.click-ripple {
  position: fixed;
  pointer-events: none;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9997;
  animation: ripple .56s ease-out forwards;
}
@keyframes ripple { to { opacity: 0; width: 86px; height: 86px; } }

button, input, [contenteditable], .tree-row, .custom-select, a { cursor: none !important; }
button, input, textarea, .custom-select, [contenteditable] { font: inherit; }

.app-shell {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: grid;
  grid-template-columns: 286px 1fr;
}
.sidebar {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(4,7,10,.74);
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--accent);
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: rgba(255,43,60,.07);
  box-shadow: var(--shadow);
  font-size: 18px;
}
.brand-title { font-size: 14px; font-weight: 800; letter-spacing: .2px; }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 2px; }
.sidebar-actions {
  display: flex;
  gap: 8px;
  padding: 12px 14px 6px;
}
.mini-btn, .top-btn, .footer-btn, .wide-btn, .ghost-btn, .primary-btn, .nav-icon, .block-buttons button {
  color: var(--text);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  transition: .18s ease;
}
.mini-btn:hover, .top-btn:hover, .footer-btn:hover, .wide-btn:hover, .ghost-btn:hover, .nav-icon:hover, .block-buttons button:hover {
  border-color: var(--line2);
  background: rgba(255,43,60,.10);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent), #951725);
  border-color: rgba(255,255,255,.12);
  font-weight: 700;
}
.primary-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.sidebar-section-title {
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 14px 16px 8px;
}
.tree {
  padding: 0 10px 20px;
  overflow: auto;
  flex: 1;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.tree-node { margin: 2px 0; }
.tree-row {
  position: relative;
  display: grid;
  grid-template-columns: 16px 21px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #d7dce5;
  border: 1px solid transparent;
  user-select: none;
  min-height: 32px;
}
.tree-row:hover { background: rgba(255,255,255,.045); border-color: var(--line); }
.tree-row.active { background: linear-gradient(90deg, rgba(255,43,60,.18), rgba(255,43,60,.035)); border-color: rgba(255,43,60,.22); color: #fff; }
.tree-row.drag-over { outline: 1px dashed var(--accent); background: rgba(255,43,60,.12); }
.twisty { color: var(--muted); font-size: 10px; }
.node-icon { font-size: 14px; color: var(--accent); }
.node-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 12.5px; }
.node-type { color: var(--muted2); font-size: 10px; }
.tree-children { margin-left: 16px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.06); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.footer-btn { width: 100%; text-align: left; color: #dfe5ee; }

.workspace {
  overflow: auto;
  height: 100vh;
  padding: 0 28px 48px;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(3,5,7,.72);
  backdrop-filter: blur(18px);
  margin: 0 -28px;
  padding: 0 28px;
}
.crumbs, .top-actions { display: flex; align-items: center; gap: 8px; }
.crumbs { color: #d8dde7; font-weight: 600; }
.crumb-dot { color: var(--accent); margin-left: 5px; }
.nav-icon { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; font-size: 22px; }
.top-btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; }
.xenon-btn { color: var(--accent2); }

.hero {
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.compact-hero { margin-top: 22px; }
.hero-icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 20px;
  border: 1px solid var(--line2);
  background: radial-gradient(circle at 50% 25%, rgba(255,43,60,.18), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  font-size: 31px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -.04em;
  outline: none;
}
.hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  outline: none;
}
[contenteditable="true"]:focus { outline: 1px solid var(--line2); border-radius: 8px; background: rgba(255,255,255,.03); }

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
}
.stat-card {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
  padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 14px 44px rgba(0,0,0,.22);
}
.stat-card span { font-size: 24px; font-weight: 900; }
.stat-card small { color: var(--muted); margin-top: 4px; }
.action-card { border-color: var(--line2); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.page-panel, .side-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.page-panel {
  min-height: 540px;
  overflow: hidden;
}
.page-panel.drag-active {
  border-color: var(--accent);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
}
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.panel-title { font-weight: 800; letter-spacing: .02em; }
.block-buttons { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.block-buttons button { padding: 6px 8px; font-size: 11.5px; }
.drop-hint {
  margin: 14px 16px 0;
  border: 1px dashed rgba(255,255,255,.16);
  color: var(--muted);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.022);
}
.blocks { padding: 12px 16px 26px; }
.block {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 7px 7px;
  border-radius: 12px;
  border: 1px solid transparent;
  margin: 3px 0;
}
.block:hover { background: rgba(255,255,255,.028); border-color: rgba(255,255,255,.05); }
.block.dragging { opacity: .45; }
.block.drag-over { outline: 1px dashed var(--accent); }
.drag-handle { color: var(--muted2); padding-top: 4px; user-select: none; }
.block-content {
  min-height: 22px;
  outline: none;
  line-height: 1.55;
  color: #dce3ee;
  word-break: break-word;
}
.block-heading .block-content { font-size: 23px; font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1.22; }
.block-subheading .block-content { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.28; }
.block-text .block-content { font-size: 13.5px; color: #d8dee8; }
.block-quote .block-content {
  border-left: 3px solid var(--accent);
  padding: 7px 0 7px 12px;
  color: #dfe6f1;
  background: linear-gradient(90deg, rgba(255,43,60,.08), transparent);
  border-radius: 8px;
}
.block-code .block-content {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px;
  color: #c8f7d7;
  font-size: 12px;
}
.block-toggle .toggle-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
}
.toggle-arrow { color: var(--accent); font-size: 11px; }
.toggle-body {
  margin-top: 8px;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.checkline { display: flex; align-items: flex-start; gap: 10px; }
.checkline input { margin-top: 5px; accent-color: var(--accent); }
.block-image img {
  max-width: min(420px, 100%);
  max-height: 290px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  display: block;
}
.block-image figcaption { color: var(--muted); margin-top: 7px; font-size: 12px; outline: none; }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #e7ecf5;
  text-decoration: none;
}
.block-actions { display: flex; gap: 4px; opacity: 0; transition: .14s; }
.block:hover .block-actions { opacity: 1; }
.icon-btn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}
.icon-btn:hover { color: #fff; border-color: var(--line); background: rgba(255,255,255,.05); }

.right-panel { display: grid; gap: 12px; position: sticky; top: 70px; }
.side-card { padding: 14px; }
.side-title { font-weight: 900; margin-bottom: 10px; }
.toc { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 7px; }
.toc li { transition: .15s; }
.toc li:hover { color: #fff; }
.wide-btn { width: 100%; text-align: left; margin-top: 8px; }
.wide-btn.danger:hover { background: rgba(255,43,60,.18); }
.tips { color: var(--muted); padding-left: 18px; line-height: 1.7; margin: 0; }
kbd {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  color: #fff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}
.modal {
  position: fixed;
  z-index: 70;
  width: min(560px, calc(100vw - 28px));
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line2);
  border-radius: 22px;
  background: rgba(9,12,18,.96);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), var(--shadow);
  padding: 22px;
}
.modal h2 { margin: 0 0 18px; font-size: 24px; }
.modal label { display: block; color: var(--muted); margin: 12px 0 7px; }
.modal input {
  width: 100%;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.modal input:focus { border-color: var(--line2); box-shadow: var(--shadow); }
.modal-close {
  position: absolute;
  right: 18px; top: 18px;
  width: 36px; height: 36px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: #fff;
  font-weight: 900;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.custom-select {
  position: relative;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  display: flex; align-items: center;
  padding: 0 12px;
  outline: none;
}
.custom-select::after { content: "⌄"; margin-left: auto; color: #fff; font-size: 16px; }
.custom-select.open { border-color: var(--line2); box-shadow: var(--shadow); }
.select-options {
  display: none;
  position: absolute;
  left: 0; right: 0; top: calc(100% + 7px);
  background: #0c1118;
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  max-height: 220px;
  overflow: auto;
  z-index: 80;
}
.custom-select.open .select-options { display: block; }
.select-option {
  padding: 9px 10px;
  border-radius: 10px;
  color: #e9edf5;
}
.select-option:hover, .select-option.active { background: rgba(255,43,60,.16); color: #fff; }
body.xenon .select-option:hover, body.xenon .select-option.active { background: rgba(0,229,255,.14); }

.command-palette {
  position: fixed;
  z-index: 75;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 28px));
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: rgba(8,11,16,.98);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), var(--shadow);
  overflow: hidden;
}
.command-palette input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: none;
  color: var(--text);
  background: rgba(255,255,255,.035);
  padding: 0 18px;
  font-size: 15px;
}
.command-results { max-height: 430px; overflow: auto; padding: 8px; }
.command-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.command-item:hover { border-color: var(--line); background: rgba(255,255,255,.045); }
.command-item small { color: var(--muted); }

.context-menu, .slash-menu, .selection-toolbar {
  position: fixed;
  z-index: 90;
  border: 1px solid var(--line2);
  background: rgba(8,11,16,.98);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), var(--shadow);
  border-radius: 14px;
  padding: 7px;
  min-width: 188px;
}
.context-menu button, .slash-menu button, .selection-toolbar button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  color: #e8edf5;
  background: transparent;
  padding: 8px 9px;
  border-radius: 10px;
}
.context-menu button:hover, .slash-menu button:hover, .selection-toolbar button:hover { background: rgba(255,43,60,.14); color: #fff; }
body.xenon .context-menu button:hover, body.xenon .slash-menu button:hover, body.xenon .selection-toolbar button:hover { background: rgba(0,229,255,.14); }
.selection-toolbar { display: flex; gap: 5px; min-width: auto; }
.selection-toolbar button { width: auto; white-space: nowrap; }

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--line2);
  background: rgba(8,11,16,.96);
  color: #fff;
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: .22s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 250px 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .right-panel { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { grid-template-columns: 1fr; height: auto; }
  .sidebar { height: auto; max-height: 52vh; }
  .workspace { height: auto; overflow: visible; padding: 0 14px 36px; }
  .topbar { margin: 0 -14px; padding: 0 14px; height: auto; min-height: 54px; gap: 8px; flex-wrap: wrap; }
  .dashboard-strip, .right-panel { grid-template-columns: 1fr; }
  .hero-icon { width: 58px; height: 58px; }
  .block { grid-template-columns: 18px 1fr; }
  .block-actions { grid-column: 2; opacity: 1; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* =========================================================
   BlackVault OS v7.1 — real data, vulnerability intelligence
   ========================================================= */
body.bv7-reference-shell.bv71-security-workspace {
  --bv71-rail: 212px;
  --bv71-gap: 14px;
}

@media (min-width: 1181px) {
  body.bv7-reference-shell.bv71-security-workspace .workspace {
    padding-right: calc(var(--bv71-rail) + 38px) !important;
  }

  body.bv7-reference-shell.bv71-security-workspace .topbar {
    width: calc(100% + var(--bv71-rail) + 62px) !important;
  }

  body.bv7-reference-shell.bv71-security-workspace .right-panel {
    position: fixed !important;
    z-index: 16;
    top: 52px !important;
    right: 14px;
    width: var(--bv71-rail) !important;
    max-height: calc(100vh - 66px);
    overflow: auto;
  }

  body.bv7-reference-shell.bv71-security-workspace .content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

body.bv7-reference-shell.bv71-security-workspace .hero,
body.bv7-reference-shell.bv71-security-workspace .compact-hero {
  min-height: 104px;
  padding-top: 10px !important;
  padding-bottom: 7px !important;
}

body.bv7-reference-shell.bv71-security-workspace .hero-icon {
  flex-basis: 72px;
  width: 72px !important;
  height: 72px !important;
  border-radius: 9px !important;
  font-size: 33px !important;
}

body.bv7-reference-shell.bv71-security-workspace .hero h1 {
  font-size: clamp(23px, 2vw, 28px) !important;
}

body.bv7-reference-shell.bv71-security-workspace .bv7-page-meta {
  color: #77818e;
}

body.bv7-reference-shell.bv71-security-workspace .bv7-workspace-backdrop {
  filter: blur(min(var(--bv7-bg-blur), 8px)) saturate(.74) contrast(1.14) hue-rotate(-18deg);
}

body.bv7-reference-shell.bv71-security-workspace .bv7-workspace-backdrop::before {
  background:
    linear-gradient(180deg, rgba(2,5,8,.48) 0, rgba(2,5,8,.70) 30%, rgba(3,7,10,.90) 68%, #030609 100%),
    linear-gradient(90deg, rgba(2,5,8,.30), transparent 50%, rgba(2,5,8,.48));
}

body.bv7-reference-shell.bv71-security-workspace .workspace-dashboard {
  margin-bottom: 11px !important;
}

body.bv7-reference-shell .bv71-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 8px;
  margin-bottom: 17px;
}

body.bv7-reference-shell .bv71-metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--bv7-line);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(12,18,24,.88), rgba(6,10,14,.78));
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(12px);
}

body.bv7-reference-shell .bv71-metric:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  background: rgba(12,19,25,.94);
  transform: translateY(-1px);
}

body.bv7-reference-shell .bv71-metric-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: color-mix(in srgb, currentColor, transparent 88%);
  color: #ff3158;
  font-size: 15px;
}

body.bv7-reference-shell .bv71-metric-symbol.metric-tools { color: #4b9cff; }
body.bv7-reference-shell .bv71-metric-symbol.metric-writeups { color: #a273ff; }
body.bv7-reference-shell .bv71-metric-symbol.metric-labs { color: #35d98c; }
body.bv7-reference-shell .bv71-metric-symbol.metric-notes { color: #f1aa2d; }

body.bv7-reference-shell .bv71-metric > span:last-child {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  min-width: 0;
}

body.bv7-reference-shell .bv71-metric small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #9ca5b1;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .bv71-metric strong {
  color: #fff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

body.bv7-reference-shell .bv71-metric em {
  align-self: center;
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(35,211,127,.10);
  color: #43d991;
  font-size: 6.5px;
  font-style: normal;
  text-transform: uppercase;
}

body.bv7-reference-shell .bv71-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin: 0 2px 3px;
}

body.bv7-reference-shell .bv71-section-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.bv7-reference-shell .bv71-section-head > div > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 82%);
  color: var(--accent);
  font-size: 14px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 72%);
}

body.bv7-reference-shell .bv71-section-head strong {
  font-size: 14px;
}

body.bv7-reference-shell .bv71-section-head small {
  color: #697381;
  font-size: 7.5px;
}

body.bv7-reference-shell .bv71-section-head > button {
  min-height: 27px;
  padding: 0 12px;
  border: 1px solid var(--bv7-line);
  border-radius: 5px;
  background: rgba(7,11,16,.72);
  color: #a7aeba;
  font-size: 8px;
}

body.bv7-reference-shell .bv71-category-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.bv7-reference-shell .bv71-category-tabs::-webkit-scrollbar { display: none; }

body.bv7-reference-shell .bv71-category-tabs button {
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: rgba(6,10,14,.64);
  color: #89929f;
  font-size: 8px;
  white-space: nowrap;
}

body.bv7-reference-shell .bv71-category-tabs button.active {
  border-bottom-color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 91%);
  color: color-mix(in srgb, var(--accent), white 18%);
}

body.bv7-reference-shell .bv71-vulnerability-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(106px, 1fr));
  gap: 7px;
}

body.bv7-reference-shell .bv71-vulnerability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 145px;
  padding: 13px 8px 12px;
  border: 1px solid var(--bv7-line);
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(10,16,22,.95), rgba(5,9,13,.9));
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

body.bv7-reference-shell .bv71-vulnerability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--bv71-card-color, var(--accent)), transparent 76%), transparent 62%);
  transition: opacity .16s ease;
}

body.bv7-reference-shell .bv71-vulnerability-card:hover {
  border-color: color-mix(in srgb, var(--bv71-card-color, var(--accent)), transparent 48%);
  transform: translateY(-2px);
}

body.bv7-reference-shell .bv71-vulnerability-card:hover::before { opacity: .75; }
body.bv7-reference-shell .bv71-vulnerability-card > * { position: relative; z-index: 1; }
body.bv7-reference-shell .bv71-vulnerability-card.severity-critical { --bv71-card-color:#ff3158; }
body.bv7-reference-shell .bv71-vulnerability-card.severity-high { --bv71-card-color:#ff4d67; }
body.bv7-reference-shell .bv71-vulnerability-card.severity-medium { --bv71-card-color:#e2a72a; }
body.bv7-reference-shell .bv71-vulnerability-card.severity-low { --bv71-card-color:#42a5ff; }
body.bv7-reference-shell .bv71-vulnerability-card.severity-informational { --bv71-card-color:#8b93a3; }

body.bv7-reference-shell .bv71-vulnerability-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  margin-bottom: 6px;
  color: var(--bv71-card-color, var(--accent));
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 27px;
  font-weight: 650;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--bv71-card-color, var(--accent)), transparent 54%));
}

body.bv7-reference-shell .bv71-vulnerability-card strong {
  width: 100%;
  overflow: hidden;
  color: #f3f4f6;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .bv71-vulnerability-card small {
  margin-top: 3px;
  color: #7f8997;
  font-size: 7.5px;
}

body.bv7-reference-shell .bv71-severity-badge {
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--bv71-card-color, var(--accent)), transparent 86%);
  color: var(--bv71-card-color, var(--accent));
  font-size: 7px;
}

body.bv7-reference-shell .bv71-card-progress {
  position: absolute;
  left: 9px;
  right: 47px;
  bottom: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

body.bv7-reference-shell .bv71-card-progress i {
  display: block;
  height: 100%;
  background: #29d790;
  box-shadow: 0 0 8px rgba(41,215,144,.45);
}

body.bv7-reference-shell .bv71-card-count {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: #68727f;
  font-size: 6.5px;
}

body.bv7-reference-shell .bv71-empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px dashed var(--bv7-line);
  border-radius: 7px;
  background: rgba(5,9,13,.62);
  color: #a5adb8;
}

body.bv7-reference-shell.bv71-security-workspace .content-grid {
  gap: 0 !important;
}

body.bv7-reference-shell.bv71-security-workspace .page-panel {
  min-height: 530px;
  padding: 0 14px 26px !important;
}

body.bv7-reference-shell.bv71-security-workspace .panel-toolbar {
  display: none !important;
}

body.bv7-reference-shell .bv71-article-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  margin: 0 -14px 8px;
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--bv7-line);
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}

body.bv7-reference-shell .bv71-article-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

body.bv7-reference-shell .bv71-article-icon {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent), transparent 90%);
  color: var(--accent2);
  font-size: 23px;
}

body.bv7-reference-shell .bv71-article-main h2 {
  min-width: 80px;
  margin: 1px 0 6px;
  outline: none;
  color: #f5f6f8;
  font-size: 20px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -.025em;
}

body.bv7-reference-shell .bv71-article-main h2:focus {
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent), transparent 35%);
}

body.bv7-reference-shell .bv71-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 17px;
  color: #77818f;
  font-size: 7.5px;
}

body.bv7-reference-shell .bv71-article-meta strong {
  color: #aeb6c1;
  font-weight: 560;
}

body.bv7-reference-shell .bv71-heading-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 30px;
  color: #747e8b;
  font-size: 7.5px;
  white-space: nowrap;
  cursor: pointer;
}

body.bv7-reference-shell .bv71-heading-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.bv7-reference-shell .bv71-heading-toggle i {
  position: relative;
  width: 27px;
  height: 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

body.bv7-reference-shell .bv71-heading-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7dbe1;
  transition: transform .15s ease;
}

body.bv7-reference-shell .bv71-heading-toggle input:checked + i {
  border-color: color-mix(in srgb, var(--accent), transparent 35%);
  background: color-mix(in srgb, var(--accent), transparent 68%);
}

body.bv7-reference-shell .bv71-heading-toggle input:checked + i::after {
  background: #fff;
  transform: translateX(12px);
}

body.bv7-reference-shell .page-panel.bv71-heading-hidden .bv71-article-main {
  opacity: .35;
}

body.bv7-reference-shell .bv71-primary-heading-hidden {
  display: none !important;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page {
  display: grid !important;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  counter-reset: bv71-section;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .bv71-article-header {
  grid-column: 1 / -1;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .subpages-panel {
  display: none !important;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .bv71-inline-toc {
  display: block;
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 52px;
  padding: 6px 4px 12px;
}

body.bv7-reference-shell .bv71-inline-toc > strong {
  display: block;
  margin-bottom: 7px;
  color: #75808e;
  font-size: 7px;
  letter-spacing: .08em;
}

body.bv7-reference-shell .bv71-inline-toc ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.bv7-reference-shell .bv71-inline-toc button,
body.bv7-reference-shell .bv71-inline-toc span {
  display: block;
  width: 100%;
  min-height: 21px;
  padding: 3px 5px;
  border: 0;
  border-left: 1px solid transparent;
  background: transparent;
  color: #788290;
  font-size: 7.5px;
  line-height: 1.4;
  text-align: left;
}

body.bv7-reference-shell .bv71-inline-toc button:hover {
  border-left-color: var(--accent);
  color: #d6dae0;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .blocks {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 2px;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .notion-add-row {
  grid-column: 2;
  width: 100%;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .page-resize-handle {
  display: none;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-heading,
body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-subheading {
  counter-increment: bv71-section;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-heading .block-content::before,
body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-subheading .block-content::before {
  content: counter(bv71-section) ". ";
  color: #f1f3f5;
}

body.bv7-reference-shell .quick-info-item .severity-critical,
body.bv7-reference-shell .bv71-article-meta .severity-critical { color:#ff3158 !important; }
body.bv7-reference-shell .quick-info-item .severity-high,
body.bv7-reference-shell .bv71-article-meta .severity-high { color:#ff526d !important; }
body.bv7-reference-shell .quick-info-item .severity-medium,
body.bv7-reference-shell .bv71-article-meta .severity-medium { color:#e5aa2d !important; }
body.bv7-reference-shell .quick-info-item .severity-low,
body.bv7-reference-shell .bv71-article-meta .severity-low { color:#4ba8ff !important; }

body.bv7-reference-shell .bv71-stars {
  color: #f1bf3a !important;
  font-size: 8px;
  letter-spacing: .05em;
}

body.bv7-reference-shell .bv71-risk-editor-card {
  order: 6;
}

body.bv7-reference-shell .bv71-risk-editor-card.hidden { display:none !important; }

body.bv7-reference-shell .bv71-risk-editor-card label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: #7c8694;
  font-size: 7.5px;
}

body.bv7-reference-shell .bv71-risk-editor-card input,
body.bv7-reference-shell .bv71-risk-editor-card select {
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 4px;
  outline: none;
  background: rgba(3,6,9,.72);
  color: #b5bdc8;
  font-size: 7.5px;
}

body.bv7-reference-shell .bv71-risk-editor-card input:focus,
body.bv7-reference-shell .bv71-risk-editor-card select:focus {
  border-color: color-mix(in srgb, var(--accent), transparent 46%);
}

body.bv7-reference-shell .bv71-risk-editor-card > small {
  display: block;
  margin-top: 7px;
  color: #5f6875;
  font-size: 6.5px;
  line-height: 1.4;
}

body.bv7-reference-shell .bv71-complete-action {
  margin-top: 8px;
  color: #51d998 !important;
}

body.bv7-reference-shell .bv71-complete-action.is-complete {
  border-color: rgba(44,210,137,.24);
  background: rgba(44,210,137,.08);
}

body.bv7-reference-shell .side-card[data-bv7-card="editing-tips"] {
  display: none !important;
}

body.bv7-reference-shell .side-card[data-bv7-card="mini-table-of-contents"] { order:1; }
body.bv7-reference-shell .side-card[data-bv7-card="quick-info"] { order:2; }
body.bv7-reference-shell .side-card[data-bv7-card="tags"] { order:3; }
body.bv7-reference-shell .side-card[data-bv7-card="related"] { order:4; }
body.bv7-reference-shell .side-card[data-bv7-card="actions"] { order:5; }
body.bv7-reference-shell .side-card[data-bv7-card="risk-profile"] { order:6; }
body.bv7-reference-shell .side-card[data-bv7-card="page-options"] { order:7; }
body.bv7-reference-shell .side-card[data-bv7-card="page-health"] { order:8; }
body.bv7-reference-shell .side-card[data-bv7-card="page-tools"] { order:9; }

@media (max-width: 1320px) {
  body.bv7-reference-shell .bv71-vulnerability-grid { grid-template-columns: repeat(3, minmax(120px,1fr)); }
}

@media (max-width: 1180px) {
  body.bv7-reference-shell.bv71-security-workspace .workspace { padding-right: 16px !important; }
  body.bv7-reference-shell.bv71-security-workspace .topbar { width: auto !important; }
  body.bv7-reference-shell.bv71-security-workspace .right-panel {
    position: static !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr));
    max-height: none;
  }
  body.bv7-reference-shell .bv71-vulnerability-grid { grid-template-columns: repeat(4, minmax(112px,1fr)); }
}

@media (max-width: 760px) {
  body.bv7-reference-shell .bv71-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.bv7-reference-shell .bv71-section-head small { display:none; }
  body.bv7-reference-shell .bv71-vulnerability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.bv7-reference-shell .page-panel.bv71-vulnerability-page { display:block !important; }
  body.bv7-reference-shell .page-panel.bv71-vulnerability-page .bv71-inline-toc { display:none !important; }
  body.bv7-reference-shell .bv71-article-header { margin-left:-8px; margin-right:-8px; padding-left:9px; padding-right:9px; }
  body.bv7-reference-shell .bv71-article-main h2 { font-size:17px; }
  body.bv7-reference-shell .bv71-article-meta span:nth-child(n+3) { display:none; }
  body.bv7-reference-shell .bv71-heading-toggle span { display:none; }
  body.bv7-reference-shell.bv71-security-workspace .right-panel { grid-template-columns:1fr !important; }
}

/* v0.7 upgrades */
:root { --sidebar-w: 286px; }
.app-shell { grid-template-columns: var(--sidebar-w) 6px 1fr; }
.sidebar-resize {
  z-index: 5;
  width: 6px;
  height: 100vh;
  background: linear-gradient(to bottom, transparent, var(--line2), transparent);
  opacity: .45;
  cursor: ew-resize !important;
}
.sidebar-resize:hover { opacity: 1; box-shadow: 0 0 24px var(--accent); }
body.resizing { user-select: none; }
.brand-mark { overflow: hidden; border-radius: 14px; animation: brandPulse 2.8s ease-in-out infinite; }
.brand-mark img { width: 32px; height: 32px; display: block; filter: drop-shadow(0 0 12px var(--accent)); }
@keyframes brandPulse { 50% { box-shadow: 0 0 32px color-mix(in srgb, var(--accent), transparent 30%); transform: translateY(-1px); } }

#cursorDot {
  width: 12px; height: 12px;
  background: transparent;
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px var(--accent), inset 0 0 8px var(--accent);
}
#cursorDot::before, #cursorDot::after {
  content: "";
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
#cursorDot::before { width: 22px; height: 1px; }
#cursorDot::after { width: 1px; height: 22px; }
#cursorGlow {
  width: 44px; height: 44px;
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 75%), transparent 72%);
}
.cursor-spark { width: 5px; height: 5px; }
.click-ripple { box-shadow: 0 0 26px var(--accent); }

body.xenon::before {
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent), transparent 87%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent2), transparent 88%) 1px, transparent 1px);
  animation: gridDrift 8s linear infinite;
}
@keyframes gridDrift { to { background-position: 42px 42px; } }
body.xenon .stat-card,
body.xenon .page-panel,
body.xenon .side-card,
body.xenon .modal,
body.xenon .command-palette,
body.xenon .music-dock {
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent), transparent 82%), 0 0 80px color-mix(in srgb, var(--accent3), transparent 86%);
}
body.xenon .tree-row.active { background: linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 82%), transparent); border-color: color-mix(in srgb, var(--accent), transparent 55%); }

.palette-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.command-palette input { padding-right: 58px; }

.music-dock {
  position: fixed;
  z-index: 88;
  right: 18px;
  bottom: 76px;
  width: 330px;
  border: 1px solid var(--line2);
  background: rgba(5,8,12,.96);
  border-radius: 18px;
  box-shadow: 0 26px 90px rgba(0,0,0,.55), var(--shadow);
  padding: 12px;
  backdrop-filter: blur(18px);
}
.music-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.music-head strong { color:#fff; letter-spacing:.02em; }
.music-head button { width:30px; height:30px; border-radius:10px; border:1px solid var(--line); background:rgba(255,255,255,.05); color:#fff; }
.yt-player { width:100%; min-height:160px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:rgba(0,0,0,.35); display:grid; place-items:center; color:var(--muted); }
.music-controls { display:grid; grid-template-columns: 1fr auto auto; gap:7px; margin-top:10px; }
.music-controls input { min-width:0; height:34px; border-radius:11px; border:1px solid var(--line); background:rgba(255,255,255,.045); color:#fff; padding:0 10px; outline:none; }
.music-controls button, .queue-item { border:1px solid var(--line); background:rgba(255,255,255,.05); color:#fff; border-radius:11px; padding:7px 9px; }
.music-controls button:hover, .queue-item:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.music-queue { display:grid; gap:6px; margin-top:9px; max-height:130px; overflow:auto; }
.queue-item { text-align:left; color:var(--muted); font-size:12px; }
.queue-item.active { color:#fff; border-color:var(--line2); background:color-mix(in srgb, var(--accent), transparent 84%); }

.block-image img { max-width: min(340px, 100%); max-height: 230px; }
.block:has(.block-image) { background: rgba(255,255,255,.018); }

@media (max-width: 1100px) { .app-shell { grid-template-columns: 250px 6px 1fr; } }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; } .sidebar-resize { display:none; } .music-dock { width: calc(100vw - 28px); right:14px; } }

/* v0.8 Workspace Brain */
.node-pin { margin-left: auto; color: var(--accent2); text-shadow: 0 0 12px var(--accent); font-size: 11px; }
.mini-label { display:block; margin: 12px 0 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.small-select { min-height: 38px; padding: 0 12px; }
.pin-btn.active { border-color: var(--line2); color: #fff; background: color-mix(in srgb, var(--accent), transparent 80%); box-shadow: var(--shadow); }

.data-panel {
  position: fixed;
  z-index: 82;
  inset: 7vh 7vw;
  border: 1px solid var(--line2);
  background: rgba(5, 8, 12, .96);
  border-radius: 22px;
  box-shadow: 0 32px 120px rgba(0,0,0,.68), var(--shadow);
  padding: 18px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.compact-panel { inset: auto 50%; top: 18vh; transform: translateX(50%); width: min(520px, calc(100vw - 28px)); max-height: 70vh; }
.data-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap: 18px; margin-bottom: 14px; }
.data-panel-head h2 { margin:0; font-size: 22px; letter-spacing: -.02em; }
.data-panel-head p { margin: 5px 0 0; color: var(--muted); }
.data-panel-head button { width: 34px; height: 34px; border-radius: 12px; border:1px solid var(--line); background:rgba(255,255,255,.06); color:#fff; }
.panel-search { height: 42px; border-radius: 14px; border:1px solid var(--line); background:rgba(255,255,255,.045); color:#fff; padding:0 14px; outline:none; margin-bottom: 12px; }
.panel-search:focus { border-color: var(--line2); box-shadow: var(--shadow); }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:16px; }
.pages-table { width:100%; border-collapse: collapse; min-width: 760px; }
.pages-table th, .pages-table td { padding: 10px 11px; border-bottom:1px solid rgba(255,255,255,.07); text-align:left; color: var(--muted); }
.pages-table th { color:#fff; font-size:11px; text-transform:uppercase; letter-spacing:.08em; background:rgba(255,255,255,.035); position: sticky; top: 0; }
.table-page-open { border:0; background:transparent; color:#fff; padding:0; text-align:left; }
.table-page-open:hover { color: var(--accent2); text-shadow: 0 0 18px var(--accent); }
.table-status { border:1px solid var(--line); background:#111820; color:#fff; border-radius:10px; height:30px; padding:0 8px; outline:none; }
.table-actions { display:flex; gap:7px; }
.table-actions button { border:1px solid var(--line); background:rgba(255,255,255,.05); color:#fff; border-radius:10px; padding:6px 8px; }
.table-actions button:hover { border-color:var(--line2); box-shadow:var(--shadow); }
.backup-grid { display:grid; gap:10px; }
.backup-action { min-height: 44px; border:1px solid var(--line); background:rgba(255,255,255,.05); color:#fff; border-radius:14px; text-align:left; padding:0 14px; }
.backup-action:hover { border-color:var(--line2); box-shadow:var(--shadow); }
.backup-action.danger { color:#ff9aa3; }
.backup-note { color: var(--muted); font-size: 12px; margin: 12px 2px 0; }

.yt-player iframe { width:100%; height:170px; border:0; display:block; }
.music-fallback { display:grid; grid-template-columns: 1fr 1fr; gap:7px; margin-top:8px; align-items:center; }
.music-fallback button { border:1px solid var(--line); background:rgba(255,255,255,.05); color:#fff; border-radius:11px; padding:7px 9px; }
.music-fallback button:hover { border-color:var(--line2); box-shadow:var(--shadow); }
.music-fallback small { grid-column: 1 / -1; color:var(--muted); font-size: 11px; }

body.xenon #cursorDot { background: var(--accent); box-shadow: 0 0 20px var(--accent), 0 0 46px var(--accent2), 0 0 90px var(--accent3); }
body.xenon #cursorGlow { border-color: color-mix(in srgb, var(--accent), white 30%); box-shadow: 0 0 34px color-mix(in srgb, var(--accent), transparent 40%); }
body.xenon .hero-icon, body.xenon .brand-mark { box-shadow: 0 0 35px color-mix(in srgb, var(--accent), transparent 40%), inset 0 0 28px color-mix(in srgb, var(--accent), transparent 80%); }

@media (max-width: 760px) {
  .data-panel { inset: 14px; }
  .compact-panel { inset: 14px; transform:none; width:auto; }
}

/* v0.8.2 Workspaces layer */
.workspace-switcher {
  padding: 12px 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.workspace-kicker {
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  margin-bottom: 7px;
}
.workspace-current {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  color: var(--text);
  border-radius: 14px;
  padding: 10px 11px;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(255,255,255,.018);
}
.workspace-current:hover {
  border-color: var(--line2);
  box-shadow: var(--shadow), inset 0 0 18px rgba(255,255,255,.025);
}
#workspaceName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.switch-arrow { color: var(--muted); }
.workspace-modal { width: min(760px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); overflow: auto; }
.modal-subtitle { color: var(--muted); margin: -8px 0 16px; }
.workspace-list { display: grid; gap: 10px; margin-bottom: 18px; }
.workspace-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.workspace-item.active { border-color: var(--line2); box-shadow: var(--shadow); background: rgba(255,43,60,.075); }
body.xenon .workspace-item.active { background: rgba(0,229,255,.08); }
.workspace-item-main strong { display: block; font-size: 14px; }
.workspace-item-main small { display: block; margin-top: 4px; color: var(--muted); }
.workspace-item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.workspace-item-actions button, .template-picker button {
  color: var(--text);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
}
.workspace-item-actions button:hover, .template-picker button:hover,
.template-picker button.active {
  border-color: var(--line2);
  background: rgba(255,43,60,.12);
  box-shadow: var(--shadow);
}
body.xenon .workspace-item-actions button:hover, body.xenon .template-picker button:hover,
body.xenon .template-picker button.active { background: rgba(0,229,255,.12); }
.danger-mini { color: #ff9ba5 !important; }
.workspace-create-box {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.026);
  border-radius: 18px;
  padding: 14px;
}
.workspace-create-title { font-weight: 900; margin-bottom: 6px; }
.template-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) {
  .workspace-item { grid-template-columns: 1fr; }
  .workspace-item-actions { justify-content: flex-start; }
  .template-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v1.0 Neon Workspace Upgrade */
:root { --accent4: #ff004d; }
html:not(.custom-cursor-ready) body,
html:not(.custom-cursor-ready) body * { cursor: auto !important; }
html.custom-cursor-ready body,
html.custom-cursor-ready button,
html.custom-cursor-ready input,
html.custom-cursor-ready [contenteditable],
html.custom-cursor-ready .tree-row,
html.custom-cursor-ready .custom-select,
html.custom-cursor-ready a { cursor: none !important; }

.workspace-dashboard {
  display: grid;
  grid-template-columns: 1.15fr .85fr .9fr .9fr;
  gap: 12px;
  margin-bottom: 14px;
}
.workspace-dashboard-card {
  position: relative;
  min-height: 108px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
    radial-gradient(circle at 10% 5%, color-mix(in srgb, var(--accent), transparent 84%), transparent 42%);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  overflow: hidden;
}
.workspace-dashboard-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent, color-mix(in srgb, var(--accent), transparent 76%), transparent);
  opacity: .0;
  transition: .25s ease;
  pointer-events: none;
}
.workspace-dashboard-card:hover::before { opacity: .7; transform: translateX(22%); }
.workspace-dashboard-card h3 { margin: 3px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.workspace-dashboard-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.dash-kicker { color: var(--accent2); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.dash-focus { color: #fff; font-size: 12px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 9px; }
.dash-links { display: grid; gap: 7px; max-height: 116px; overflow: auto; }
.dash-links button { text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; border-radius: 11px; padding: 8px 9px; }
.dash-links button:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateX(2px); }
.status-mini-bars { display: grid; gap: 8px; }
.status-mini-bars div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.status-mini-bars b { position: relative; isolation: isolate; color: #fff; font-size: 11px; font-weight: 800; }
.status-mini-bars b::before { content:""; position:absolute; z-index:-1; left:0; top:50%; width:var(--w); min-width: 20px; height:20px; transform: translateY(-50%); border-radius:999px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity:.55; box-shadow: 0 0 22px color-mix(in srgb, var(--accent), transparent 30%); }

.kanban-board { display:grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap:12px; overflow:auto; padding-bottom:8px; }
.kanban-column { min-height: 360px; border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:18px; padding:10px; transition:.18s ease; }
.kanban-column.drag-over { border-color: var(--accent2); box-shadow: var(--shadow); transform: translateY(-2px); }
.kanban-title { display:flex; justify-content:space-between; align-items:center; color:#fff; font-weight:900; font-size:12px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px; }
.kanban-title span { color:var(--accent2); text-shadow:0 0 14px var(--accent); }
.kanban-items { display:grid; gap:8px; }
.kanban-card { width:100%; border:1px solid var(--line); background:linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)); color:#fff; border-radius:14px; padding:10px; text-align:left; box-shadow:0 10px 30px rgba(0,0,0,.18); }
.kanban-card:hover { border-color:var(--line2); box-shadow:var(--shadow); transform: translateY(-1px); }
.kanban-card small { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.empty-board { color:var(--muted); display:block; padding:10px; }

body.xenon {
  background:
    radial-gradient(circle at 10% 15%, color-mix(in srgb, var(--accent), transparent 70%), transparent 26%),
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--accent2), transparent 72%), transparent 24%),
    radial-gradient(circle at 60% 112%, color-mix(in srgb, var(--accent3), transparent 70%), transparent 35%),
    radial-gradient(circle at 20% 86%, color-mix(in srgb, var(--accent4), transparent 78%), transparent 30%),
    linear-gradient(135deg, #010203 0%, #050910 45%, #020204 100%);
}
body.xenon .page-panel,
body.xenon .side-card,
body.xenon .stat-card,
body.xenon .workspace-dashboard-card,
body.xenon .data-panel,
body.xenon .modal,
body.xenon .command-palette,
body.xenon .music-dock {
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent), transparent 68%), 0 0 90px color-mix(in srgb, var(--accent2), transparent 82%), inset 0 0 24px rgba(255,255,255,.025);
}
body.xenon .top-btn,
body.xenon .mini-btn,
body.xenon .block-buttons button,
body.xenon .wide-btn { text-shadow: 0 0 12px color-mix(in srgb, var(--accent2), transparent 30%); }
body.xenon #bgCanvas { opacity: .94; filter: saturate(1.8) contrast(1.25); }
body.xenon .hero-icon { animation: neonHeartbeat 2.3s infinite ease-in-out; }
@keyframes neonHeartbeat { 0%,100% { filter: drop-shadow(0 0 10px var(--accent)); } 50% { filter: drop-shadow(0 0 28px var(--accent2)) drop-shadow(0 0 45px var(--accent3)); transform: translateY(-2px) scale(1.04); } }

#cursorDot {
  width: 18px !important;
  height: 18px !important;
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
  background: color-mix(in srgb, var(--accent), white 4%) !important;
  border: 1px solid color-mix(in srgb, var(--accent2), white 15%) !important;
  box-shadow: 0 0 16px var(--accent), 0 0 34px var(--accent2), inset 0 0 10px rgba(0,0,0,.55) !important;
}
#cursorDot::before, #cursorDot::after { display: none !important; }
#cursorGlow {
  width: 54px !important;
  height: 54px !important;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 35%) !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 70%), color-mix(in srgb, var(--accent3), transparent 88%), transparent 72%) !important;
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent), transparent 40%), 0 0 92px color-mix(in srgb, var(--accent2), transparent 65%) !important;
}
body.cursor-armed #cursorDot { transform: translate(-50%, -50%) rotate(45deg) scale(1.35) !important; }
.cursor-spark { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--accent2); box-shadow: 0 0 12px var(--accent2), 0 0 28px var(--accent); }
.click-ripple { border: 2px solid var(--accent2); box-shadow: 0 0 36px var(--accent), inset 0 0 18px var(--accent2); }

.music-dock { width: min(520px, calc(100vw - 32px)); bottom: 22px; }
.yt-player { min-height: 230px; border-color: var(--line2); box-shadow: inset 0 0 30px rgba(0,0,0,.25); }
.yt-player iframe { height: 230px; }
.music-head strong::before { content:"◈ "; color:var(--accent2); text-shadow:0 0 16px var(--accent); }
.music-queue { max-height: 165px; }

@media (max-width: 1200px) { .workspace-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kanban-board { grid-template-columns: repeat(5, 220px); } }
@media (max-width: 760px) { .workspace-dashboard { grid-template-columns: 1fr; } .kanban-board { grid-template-columns: repeat(5, 210px); } }

/* v1.1 — Shadow Notion Layer */
:root {
  --bg: #010204;
  --bg2: #05070b;
  --panel: rgba(8, 11, 15, .76);
  --panel2: rgba(10, 14, 20, .92);
  --line: rgba(255,255,255,.075);
  --line2: color-mix(in srgb, var(--accent), transparent 50%);
  --shadow: 0 0 38px color-mix(in srgb, var(--accent), transparent 66%), 0 0 120px rgba(0,0,0,.55);
}
body {
  background:
    radial-gradient(circle at 14% 16%, color-mix(in srgb, var(--accent), transparent 86%), transparent 31%),
    radial-gradient(circle at 78% 2%, rgba(119, 0, 32, .16), transparent 26%),
    radial-gradient(circle at 76% 92%, rgba(255, 0, 70, .09), transparent 31%),
    linear-gradient(135deg, #000103 0%, #030509 38%, #020206 100%) !important;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1.4px);
  background-size: 46px 46px, 46px 46px, 120px 120px;
  opacity: .95;
}
body::after {
  background:
    repeating-linear-gradient(to bottom, transparent, transparent 5px, rgba(255,255,255,.014) 6px),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(0,0,0,.48));
}
.dashboard-strip { display: none !important; }

/* Notion-like editing surface */
.workspace { padding: 0 30px 54px; }
.hero { max-width: 980px; margin-left: auto; margin-right: auto; }
.workspace-dashboard { max-width: 1180px; margin-left: auto; margin-right: auto; }
.content-grid { max-width: 1180px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) 286px; }
.page-panel {
  background: linear-gradient(180deg, rgba(11,14,18,.82), rgba(7,9,12,.72));
  border-color: rgba(255,255,255,.07);
  box-shadow: 0 28px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.035);
}
.panel-toolbar {
  position: sticky;
  top: 54px;
  z-index: 12;
  backdrop-filter: blur(18px);
  background: rgba(7,9,13,.72);
}
.block-buttons button { opacity: .88; }
.blocks { padding: 18px 22px 18px; }
.block {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  padding: 5px 6px;
  border-radius: 10px;
  transition: background .13s ease, border-color .13s ease, transform .13s ease;
}
.block:hover {
  background: rgba(255,255,255,.024);
  border-color: rgba(255,255,255,.045);
}
.drag-handle { opacity: 0; transition: .13s; }
.block:hover .drag-handle { opacity: 1; }
.block-actions { opacity: 0; }
.block:hover .block-actions { opacity: .9; }
.block-content:empty::before {
  content: "Type / for commands";
  color: rgba(145,154,170,.55);
}
.block-heading .block-content { font-size: 22px; }
.block-subheading .block-content { font-size: 16px; }
.block-text .block-content { font-size: 13.2px; }
.notion-add-row {
  margin: 0 22px 24px 54px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,.018);
  transition: .16s ease;
}
.notion-add-row:hover {
  color: #fff;
  border-color: var(--line2);
  background: rgba(255,255,255,.035);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent), transparent 84%);
}
.notion-add-row span { color: var(--accent2); text-shadow: 0 0 14px var(--accent); font-weight: 900; }
.notion-add-row button {
  border: 0;
  border-radius: 10px;
  padding: 6px 8px;
  color: #dce4ef;
  background: rgba(255,255,255,.045);
}
.notion-add-row button:hover { background: color-mix(in srgb, var(--accent), transparent 86%); color: #fff; }
.right-panel .side-card {
  background: rgba(9,12,16,.58);
  border-color: rgba(255,255,255,.065);
}

/* freer workspace templates */
.template-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.template-picker button { min-height: 42px; }
.workspace-create-box input::placeholder { color: rgba(160,170,188,.62); }

/* Darker, more cyber cursor */
#cursorDot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  clip-path: none !important;
  background: #05070a !important;
  border: 1px solid color-mix(in srgb, var(--accent2), white 20%) !important;
  box-shadow:
    0 0 10px var(--accent2),
    0 0 22px var(--accent),
    inset 0 0 7px var(--accent) !important;
}
#cursorDot::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 24px !important;
  height: 24px !important;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 20%) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent), transparent 30%) !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  border-radius: 4px !important;
}
#cursorDot::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 38px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent) !important;
  box-shadow: 0 0 12px var(--accent2) !important;
  transform: translate(-50%, -50%) rotate(-22deg) !important;
}
#cursorGlow {
  width: 62px !important;
  height: 62px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 55%) !important;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent2), transparent 78%), transparent 42%),
    conic-gradient(from 90deg, transparent, color-mix(in srgb, var(--accent), transparent 70%), transparent, color-mix(in srgb, var(--accent2), transparent 72%), transparent) !important;
  box-shadow: 0 0 36px color-mix(in srgb, var(--accent), transparent 55%), 0 0 120px rgba(0,0,0,.8) !important;
  opacity: .78;
}
body.cursor-armed #cursorDot { transform: translate(-50%, -50%) rotate(180deg) scale(1.18) !important; }
body.cursor-armed #cursorGlow { width: 78px !important; height: 78px !important; }
.cursor-spark {
  width: 3px !important;
  height: 12px !important;
  border-radius: 999px !important;
  clip-path: none !important;
  background: linear-gradient(to bottom, var(--accent2), transparent) !important;
  box-shadow: 0 0 14px var(--accent2), 0 0 30px var(--accent) !important;
}
.click-ripple {
  border-color: color-mix(in srgb, var(--accent2), white 15%) !important;
  box-shadow: 0 0 38px var(--accent), inset 0 0 22px color-mix(in srgb, var(--accent2), transparent 35%) !important;
}

/* Stronger Xenon */
body.xenon {
  background:
    radial-gradient(circle at 8% 13%, color-mix(in srgb, var(--accent), transparent 58%), transparent 25%),
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--accent2), transparent 58%), transparent 25%),
    radial-gradient(circle at 50% 105%, color-mix(in srgb, var(--accent3), transparent 58%), transparent 36%),
    radial-gradient(circle at 15% 92%, color-mix(in srgb, var(--accent4), transparent 68%), transparent 28%),
    linear-gradient(135deg, #000205 0%, #050812 48%, #010103 100%) !important;
}
body.xenon .topbar,
body.xenon .sidebar,
body.xenon .page-panel,
body.xenon .side-card,
body.xenon .workspace-dashboard-card,
body.xenon .modal,
body.xenon .data-panel,
body.xenon .command-palette,
body.xenon .music-dock {
  border-color: color-mix(in srgb, var(--accent), transparent 34%) !important;
  box-shadow:
    0 0 36px color-mix(in srgb, var(--accent), transparent 58%),
    0 0 110px color-mix(in srgb, var(--accent2), transparent 78%),
    inset 0 0 24px rgba(255,255,255,.026) !important;
}
body.xenon .brand-title,
body.xenon .hero h1,
body.xenon .dash-kicker,
body.xenon .xenon-btn {
  text-shadow: 0 0 12px var(--accent), 0 0 32px var(--accent2), 0 0 80px var(--accent3);
}
body.xenon .tree-row.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 72%), color-mix(in srgb, var(--accent2), transparent 92%)) !important;
}

/* v1.2 — Modular Red Team + darker Notion layer */
body {
  background:
    radial-gradient(circle at 12% 14%, color-mix(in srgb, var(--accent), transparent 88%), transparent 24%),
    radial-gradient(circle at 80% 4%, rgba(0, 255, 180, .035), transparent 24%),
    radial-gradient(circle at 70% 80%, rgba(255, 0, 75, .07), transparent 32%),
    linear-gradient(135deg, #000000 0%, #020407 42%, #000104 100%) !important;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px),
    radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 88%) 1px, transparent 1.6px) !important;
  background-size: 52px 52px, 52px 52px, 138px 138px !important;
  opacity: .78 !important;
}
body::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.46), transparent 18%, transparent 82%, rgba(0,0,0,.52)),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(0,0,0,.62)),
    repeating-linear-gradient(to bottom, transparent, transparent 6px, rgba(255,255,255,.010) 7px) !important;
}

/* Module hub when opening Red Team / folder pages */
.workspace-dashboard {
  align-items: stretch;
}
.workspace-dashboard.compact-modules {
  grid-template-columns: 1fr !important;
}
.module-hub {
  grid-column: 1 / -1;
  border: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(180deg, rgba(8,11,15,.74), rgba(4,6,9,.68)),
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent), transparent 86%), transparent 42%);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 28px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
}
.module-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.module-hub-head h3 { margin: 4px 0 6px; font-size: 18px; }
.module-hub-head p { margin: 0; color: var(--muted); max-width: 720px; }
.module-add-btn {
  white-space: nowrap;
  color: #fff;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--accent), transparent 86%);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent), transparent 82%);
  border-radius: 13px;
  padding: 10px 12px;
  font-weight: 800;
}
.module-add-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.module-card {
  min-height: 86px;
  border: 1px solid rgba(255,255,255,.075);
  background: linear-gradient(145deg, rgba(255,255,255,.048), rgba(255,255,255,.016));
  color: var(--text);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(110deg, transparent, color-mix(in srgb, var(--accent), transparent 82%), transparent);
  opacity: 0;
  transform: translateX(-20%);
  transition: .24s ease;
}
.module-card:hover::before { opacity: .85; transform: translateX(25%); }
.module-card:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-card span { grid-row: 1 / 3; font-size: 20px; filter: drop-shadow(0 0 10px var(--accent)); }
.module-card strong { position: relative; z-index: 1; font-size: 13px; }
.module-card small { position: relative; z-index: 1; color: var(--muted); margin-top: 4px; }

/* More Notion-like page editing */
.page-panel { border-radius: 18px; }
.panel-toolbar { border-bottom-color: rgba(255,255,255,.055); }
.panel-title { color: rgba(230,236,247,.82); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.block-buttons button { background: transparent; border-color: rgba(255,255,255,.055); opacity: .72; }
.block-buttons button:hover { opacity: 1; }
.drop-hint { opacity: .72; }
.block { margin: 1px 0; }
.block:hover { background: rgba(255,255,255,.018); }
.block-content:focus { background: transparent !important; outline: none !important; }
[contenteditable="true"]:focus { outline: none !important; }
.block-content:focus-visible { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent), transparent 25%); padding-left: 8px; }
.notion-add-row { opacity: .72; }
.notion-add-row:hover { opacity: 1; }

/* Cyber cursor without circle */
#cursorDot {
  width: 16px !important;
  height: 16px !important;
  border-radius: 2px !important;
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%) !important;
  background: linear-gradient(135deg, #020407, color-mix(in srgb, var(--accent), black 64%)) !important;
  border: 1px solid color-mix(in srgb, var(--accent2), white 18%) !important;
  box-shadow: 0 0 13px var(--accent), 0 0 28px color-mix(in srgb, var(--accent2), transparent 35%), inset 0 0 8px #000 !important;
}
#cursorDot::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 34px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent) !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: translate(-50%, -50%) rotate(-28deg) !important;
  box-shadow: 0 0 10px var(--accent2) !important;
}
#cursorDot::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 1px !important;
  height: 30px !important;
  background: linear-gradient(0deg, transparent, var(--accent), transparent) !important;
  transform: translate(-50%, -50%) rotate(28deg) !important;
  box-shadow: 0 0 10px var(--accent) !important;
}
#cursorGlow {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background:
    linear-gradient(90deg, transparent 45%, color-mix(in srgb, var(--accent), transparent 55%) 49%, transparent 53%),
    linear-gradient(0deg, transparent 45%, color-mix(in srgb, var(--accent2), transparent 62%) 49%, transparent 53%) !important;
  box-shadow: none !important;
  opacity: .62 !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
body.cursor-armed #cursorDot { transform: translate(-50%, -50%) rotate(45deg) scale(1.22) !important; }
body.cursor-armed #cursorGlow { width: 50px !important; height: 50px !important; opacity: .86 !important; }
.click-ripple {
  border-radius: 4px !important;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%) !important;
  animation: cyberRipple .45s ease-out forwards !important;
}
@keyframes cyberRipple {
  to { opacity: 0; width: 74px; height: 74px; transform: translate(-50%, -50%) rotate(45deg); }
}

body.xenon .module-hub,
body.xenon .module-card,
body.xenon .page-panel,
body.xenon .side-card {
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent), transparent 62%), 0 0 120px color-mix(in srgb, var(--accent2), transparent 82%), inset 0 0 28px rgba(255,255,255,.022) !important;
}
body.xenon .module-card:hover { box-shadow: 0 0 46px color-mix(in srgb, var(--accent), transparent 45%), 0 0 130px color-mix(in srgb, var(--accent3), transparent 75%) !important; }

/* v1.3 Notion-like editor focus: cleaner pages, calmer sections, stronger toggle headings */
:root {
  --notion-bg: rgba(8, 10, 13, .72);
  --notion-hover: rgba(255,255,255,.045);
  --notion-border: rgba(255,255,255,.075);
  --notion-text: #e8edf6;
  --notion-muted: #7e8796;
}
.workspace { padding: 0 36px 56px; }
.topbar { height: 50px; background: rgba(3,4,6,.78); border-bottom-color: rgba(255,255,255,.055); }
.hero { max-width: 980px; margin: 24px auto 12px; }
.hero-icon {
  width: 54px; height: 54px; border-radius: 14px; font-size: 25px;
  background: rgba(255,255,255,.032); border-color: rgba(255,255,255,.08); box-shadow: none;
}
.hero h1 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -.035em; }
.hero p { font-size: 12.5px; color: var(--notion-muted); }
.workspace-dashboard { display: none !important; }
.content-grid { max-width: 1160px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
.page-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
.panel-toolbar {
  background: transparent !important;
  border: 0 !important;
  padding: 6px 0 10px;
  opacity: .72;
}
.panel-title { font-size: 12px; color: var(--notion-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.block-buttons { gap: 5px; }
.block-buttons button {
  border: 0; background: rgba(255,255,255,.035); color: var(--notion-muted);
  padding: 5px 7px; font-size: 11px; border-radius: 7px;
}
.block-buttons button:hover { color: #fff; background: rgba(255,255,255,.075); box-shadow: none; }
.drop-hint {
  max-width: 920px; margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  color: rgba(225,231,240,.45);
  border-color: rgba(255,255,255,.055);
  font-size: 12px;
}
.blocks { padding: 0 0 34px; max-width: 920px; }
.block {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  padding: 3px 4px;
  margin: 1px 0;
  border-radius: 8px;
  border: 1px solid transparent;
}
.block:hover { background: rgba(255,255,255,.027); border-color: transparent; }
.drag-handle { opacity: 0; font-size: 13px; padding-top: 3px; }
.block:hover .drag-handle { opacity: .55; }
.block-actions { opacity: 0; transform: translateX(2px); }
.block:hover .block-actions { opacity: 1; transform: translateX(0); }
.block-content { color: var(--notion-text); line-height: 1.55; min-height: 22px; }
.block-heading .block-content {
  font-size: 26px; line-height: 1.18; font-weight: 850; letter-spacing: -.035em;
  padding: 9px 0 3px;
}
.block-subheading .block-content {
  font-size: 19px; line-height: 1.22; font-weight: 760; padding: 6px 0 2px;
}
.block-text .block-content { font-size: 14px; color: #d7dde7; }
[contenteditable="true"]:focus {
  outline: none !important;
  background: rgba(255,255,255,.035) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.block-toggle {
  padding: 2px 4px;
}
.block-toggle .toggle-head {
  min-height: 30px;
  display: flex; align-items: center; gap: 7px;
  padding: 1px 2px;
  border-radius: 7px;
  color: var(--notion-text);
}
.block-toggle .toggle-head:hover { background: rgba(255,255,255,.045); }
.toggle-arrow {
  width: 18px; height: 18px; display: inline-grid; place-items: center;
  border-radius: 5px; color: var(--notion-muted); font-size: 11px;
}
.toggle-arrow:hover { background: rgba(255,255,255,.07); color: #fff; }
.block-toggle .block-content {
  font-size: 14.5px;
  font-weight: 650;
  color: #eef2f9;
}
.toggle-body {
  margin: 2px 0 4px 25px;
  padding: 5px 10px 7px 13px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: transparent;
  color: #b5bfcd;
  min-height: 26px;
  line-height: 1.6;
}
.checkline { min-height: 28px; align-items: center; }
.checkline input { margin-top: 0; }
.block-quote .block-content { background: transparent; border-radius: 0; border-left-color: rgba(255,255,255,.20); }
.block-code .block-content { border-radius: 9px; background: rgba(0,0,0,.30); border-color: rgba(255,255,255,.065); }
.notion-add-row {
  max-width: 920px;
  border-top: 1px solid rgba(255,255,255,.045);
  padding: 10px 0 0;
  margin-top: 6px;
  opacity: .55;
}
.notion-add-row:hover { opacity: 1; }
.notion-add-row button { background: transparent; border: 0; color: var(--notion-muted); padding: 5px 6px; }
.notion-add-row button:hover { color: #fff; background: rgba(255,255,255,.055); }

.subpages-panel {
  max-width: 920px;
  margin: 3px 0 18px;
  display: grid;
  gap: 3px;
}
.subpages-title {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--notion-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin: 3px 0 6px;
}
.subpages-title button {
  background: transparent; border: 0; color: var(--notion-muted); font-size: 12px; padding: 4px 6px;
}
.subpages-title button:hover { color: #fff; background: rgba(255,255,255,.055); }
.subpage-row {
  height: 33px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #dce3ee;
  text-align: left;
}
.subpage-row:hover { background: rgba(255,255,255,.045); border-color: transparent; }
.subpage-row .subpage-icon { font-size: 15px; opacity: .9; }
.subpage-row .subpage-title { font-size: 14px; font-weight: 520; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subpage-row .subpage-meta { font-size: 11px; color: rgba(205,214,228,.42); }
.empty-subpages {
  color: rgba(205,214,228,.43);
  font-size: 13px;
  padding: 4px 0 8px 2px;
}
.right-panel { opacity: .86; }
.side-card {
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.055);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.side-title { font-size: 12px; color: var(--notion-muted); text-transform: uppercase; letter-spacing: .11em; }
.toc { font-size: 12.5px; line-height: 1.45; }
.wide-btn { border-radius: 8px; background: rgba(255,255,255,.035); }

.sidebar { background: rgba(2,3,5,.78); border-right-color: rgba(255,255,255,.06); }
.tree-row { min-height: 30px; border-radius: 7px; padding: 0 7px; }
.tree-row:hover { background: rgba(255,255,255,.045); border-color: transparent; }
.tree-row.active { background: rgba(255,255,255,.072); border-color: rgba(255,255,255,.06); box-shadow: none; }
.node-title { font-size: 13px; font-weight: 520; }
.node-type { display: none; }
.tree-children { border-left-color: rgba(255,255,255,.055); margin-left: 12px; padding-left: 6px; }
.twisty { color: rgba(210,218,230,.42); }

/* Remove aggressive dashboard feeling; keep dark-web mystery with subtle depth */
body::before { opacity: .50; }
body::after { opacity: .18; }
.page-panel.drag-active { background: rgba(255,255,255,.015) !important; }

/* Cursor v1.3: no ring, cyber needle + tiny terminal pixel */
#cursorDot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 2px 7px 2px 7px !important;
  background: linear-gradient(135deg, #fff, var(--accent) 55%, rgba(0,0,0,.1)) !important;
  box-shadow: 0 0 11px var(--accent), 0 0 28px color-mix(in srgb, var(--accent), transparent 30%) !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
#cursorDot::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  width: 16px !important;
  height: 1px !important;
  left: 10px !important;
  top: 5px !important;
  background: linear-gradient(90deg, var(--accent), transparent) !important;
  opacity: .75 !important;
}
#cursorDot::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  width: 3px !important;
  height: 3px !important;
  left: -6px !important;
  top: 4px !important;
  background: var(--accent2) !important;
  box-shadow: 0 0 10px var(--accent2) !important;
  opacity: .9 !important;
}
#cursorGlow {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 76%), transparent 68%) !important;
  filter: blur(4px) !important;
  opacity: .45 !important;
}
body.cursor-armed #cursorDot { transform: translate(-50%, -50%) rotate(45deg) scale(1.18) !important; }
body.cursor-armed #cursorGlow { width: 42px !important; height: 42px !important; opacity: .7 !important; }

/* v1.4 — Notion darker polish + session timer + shadow-net background */
:root {
  --font-main: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
body {
  font-family: var(--font-main);
  color: #e8edf6;
  background:
    radial-gradient(circle at 16% 0%, rgba(95, 15, 28, .38), transparent 35%),
    radial-gradient(circle at 82% 18%, rgba(17, 55, 68, .20), transparent 38%),
    radial-gradient(circle at 55% 100%, rgba(20, 3, 8, .86), transparent 55%),
    #020305;
  letter-spacing: .01em;
}
body::before {
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 20%, rgba(0,0,0,.34) 78%);
  background-size: 38px 38px, 38px 38px, 100% 100%;
  opacity: .54 !important;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 84%);
}
body::after {
  opacity: .28 !important;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028), rgba(255,255,255,.028) 1px, transparent 1px, transparent 5px),
    linear-gradient(115deg, transparent, rgba(255,43,60,.045), transparent 52%, rgba(0,229,255,.035), transparent);
  animation: shadowDrift 8s linear infinite;
}
@keyframes shadowDrift { from { background-position: 0 0, 0 0; } to { background-position: 0 80px, 160px 0; } }

#bgCanvas { opacity: .54; filter: contrast(1.25) saturate(1.25); }
.sidebar {
  background: linear-gradient(180deg, rgba(3,4,7,.92), rgba(0,0,0,.84)) !important;
  box-shadow: inset -1px 0 rgba(255,255,255,.045), 18px 0 60px rgba(0,0,0,.32);
}
.brand-title, #pageTitle, .node-title, .block-content, .subpage-title {
  font-weight: 680;
  text-shadow: 0 1px 0 rgba(0,0,0,.65);
}
#pageTitle {
  font-weight: 860;
  letter-spacing: -.035em;
  color: #f5f7fb;
}
#pageDescription { color: rgba(202, 211, 226, .58); font-weight: 520; }
.topbar {
  background: linear-gradient(180deg, rgba(3,4,8,.82), rgba(3,4,8,.48)) !important;
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,.055) !important;
}
.session-clock {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 55%);
  background: rgba(0,0,0,.34);
  color: color-mix(in srgb, var(--accent), #ffffff 42%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 74%), inset 0 0 16px rgba(255,255,255,.025);
  user-select: none;
}
.page-panel {
  background: linear-gradient(180deg, rgba(8,10,14,.58), rgba(5,6,10,.38)) !important;
  border-color: rgba(255,255,255,.045) !important;
  box-shadow: 0 26px 90px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.03) !important;
}
.block:hover {
  background: rgba(255,255,255,.026) !important;
  box-shadow: inset 2px 0 color-mix(in srgb, var(--accent), transparent 38%);
}
.toggle-head {
  color: #f0f4fb !important;
  background: rgba(255,255,255,.028);
  border-radius: 7px;
  padding: 4px 7px;
}
.toggle-head:hover { background: rgba(255,255,255,.048); }
.subpage-row {
  background: rgba(255,255,255,.012) !important;
  border-bottom: 1px solid rgba(255,255,255,.035) !important;
}
.subpage-row:hover {
  background: rgba(255,255,255,.052) !important;
  box-shadow: inset 2px 0 color-mix(in srgb, var(--accent), transparent 38%);
}
.side-card { background: rgba(5,7,11,.42) !important; }
.page-control-card .mini-label,
.page-control-card .custom-select,
#statusSelect { display: none !important; }
#statusBoardBtn, #statusBoardPanel { display: none !important; }
.pages-table th:nth-child(3), .pages-table td:nth-child(3) { color: rgba(232,237,246,.68); }

/* New cyber cursor: no circle, dark terminal blade */
#cursorDot {
  width: 18px !important;
  height: 18px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: polygon(0 0, 100% 42%, 58% 54%, 42% 100%, 30% 58%);
  background-image: linear-gradient(135deg, #f6fbff 0%, var(--accent) 42%, #151820 48%, var(--accent2) 100%) !important;
  filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 18px color-mix(in srgb, var(--accent2), transparent 38%));
  mix-blend-mode: screen;
}
#cursorDot::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  width: 24px !important;
  height: 1px !important;
  left: 13px !important;
  top: 7px !important;
  background: linear-gradient(90deg, var(--accent), transparent) !important;
  opacity: .72 !important;
}
#cursorDot::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  width: 2px !important;
  height: 2px !important;
  left: -7px !important;
  top: 9px !important;
  background: var(--accent2) !important;
  box-shadow: 0 0 7px var(--accent2), 0 0 18px var(--accent) !important;
}
#cursorGlow {
  width: 56px !important;
  height: 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent), transparent 72%), transparent) !important;
  filter: blur(10px) !important;
  opacity: .42 !important;
  transform: translate(-50%, -50%) rotate(-18deg) !important;
}
body.cursor-armed #cursorDot {
  filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 28px var(--accent)) !important;
}
body.cursor-armed #cursorGlow { width: 80px !important; height: 34px !important; opacity: .70 !important; }
.cursor-spark {
  width: 3px !important;
  height: 8px !important;
  border-radius: 0 !important;
  background: linear-gradient(var(--accent2), transparent) !important;
  opacity: .72 !important;
}
.click-ripple {
  border-color: color-mix(in srgb, var(--accent), transparent 26%) !important;
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent), transparent 30%) !important;
  opacity: .55;
}

body.xenon {
  --accent: #00f5ff;
  --accent2: #b44cff;
  --accent3: #00ff9d;
}
body.xenon .session-clock,
body.xenon .top-btn:hover,
body.xenon .mini-btn:hover {
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent), transparent 45%), 0 0 44px color-mix(in srgb, var(--accent2), transparent 66%);
}

/* =========================
   v1.5 Notion-focused upgrades
========================= */
:root {
  --editor-track: minmax(0, 1fr);
}

.content-grid {
  grid-template-columns: var(--editor-track) 286px !important;
  align-items: start;
}

.page-panel {
  position: relative;
  min-width: 520px;
  background:
    linear-gradient(180deg, rgba(6,8,14,.88), rgba(4,5,9,.94)),
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent), transparent 88%), transparent 42%) !important;
  border-color: rgba(255,255,255,.055) !important;
  box-shadow:
    0 40px 100px rgba(0,0,0,.52),
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(255,255,255,.015) !important;
}

.page-resize-handle {
  position: absolute;
  top: 0;
  right: -7px;
  width: 12px;
  height: 100%;
  cursor: ew-resize;
  opacity: .18;
  transition: opacity .16s, background .16s;
}
.page-resize-handle::after {
  content: "";
  position: absolute;
  top: 44%;
  right: 3px;
  width: 3px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(var(--accent), transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 40%);
}
.page-resize-handle:hover,
body.resizing-editor .page-resize-handle { opacity: .75; }
body.resizing-editor { user-select: none; cursor: ew-resize !important; }

.crumbs { min-width: 0; }
#breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.crumb-link {
  border: 0;
  background: transparent;
  color: rgba(226,231,242,.72);
  font: inherit;
  padding: 3px 5px;
  border-radius: 7px;
  cursor: pointer;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent), transparent 20%);
}
.crumb-sep { color: rgba(140,149,168,.5); }

.note-area {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(9,12,20,.82);
  color: #e8edf7;
  padding: 12px 13px;
  outline: none;
  font: 13px/1.6 Inter, system-ui, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}
.note-area:focus,
.panel-search:focus {
  border-color: color-mix(in srgb, var(--accent), transparent 35%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 86%);
}

.inbox-list { display: grid; gap: 10px; margin-top: 12px; }
.inbox-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 15px;
  padding: 12px;
  background: rgba(255,255,255,.025);
}
.inbox-item strong { display: block; font-size: 13.5px; color: #fff; }
.inbox-item small { display: block; margin-top: 4px; color: var(--muted); }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.inbox-actions button {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: #e9edf6;
  border-radius: 10px;
  padding: 7px 9px;
  cursor: pointer;
}
.inbox-actions button:hover { border-color: var(--line2); box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 72%); }
.danger-item { border-color: rgba(255,60,80,.18); background: rgba(255,43,60,.035); }
.empty-inbox { color: var(--muted); padding: 18px; border: 1px dashed rgba(255,255,255,.08); border-radius: 14px; }

.search-result-item em {
  display: block;
  margin-top: 5px;
  color: rgba(184,193,210,.68);
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
}
.command-item small { opacity: .72; }

.right-panel .side-card {
  background: rgba(4,5,9,.68) !important;
  backdrop-filter: blur(18px);
}
.toc li {
  cursor: pointer;
  border-left: 1px solid rgba(255,255,255,.06);
  padding-left: 8px;
}
.toc li:hover { border-left-color: var(--accent); }

.subpages-panel {
  border-top: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
  background: rgba(255,255,255,.012);
}
.subpage-row {
  border-radius: 8px !important;
  min-height: 34px;
}
.subpage-row:hover {
  background: rgba(255,255,255,.048) !important;
}
.toggle-head {
  border-radius: 8px !important;
  background: rgba(255,255,255,.022) !important;
}
.toggle-body {
  border-left: 1px solid rgba(255,255,255,.075) !important;
  margin-left: 12px !important;
  padding-left: 16px !important;
}

/* sharper cyber cursor without a big surrounding ring */
#cursorGlow { display: none !important; }
#cursorDot {
  width: 18px !important;
  height: 18px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  mix-blend-mode: screen;
}
#cursorDot::before {
  content: "";
  display: block !important;
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(90deg, transparent, var(--accent), #fff, transparent);
  border-radius: 99px;
  box-shadow: 0 0 12px var(--accent), 0 0 24px color-mix(in srgb, var(--accent), transparent 35%);
}
#cursorDot::after {
  content: "";
  display: block !important;
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid color-mix(in srgb, var(--accent), white 35%);
  background: rgba(0,0,0,.32);
  box-shadow: 0 0 18px var(--accent), inset 0 0 8px rgba(255,255,255,.2);
}
body.cursor-armed #cursorDot { transform: translate(-50%, -50%) rotate(90deg) scale(1.2) !important; }

body::before {
  opacity: .62 !important;
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent), transparent 76%), transparent 25%),
    radial-gradient(circle at 82% 95%, rgba(80,20,120,.32), transparent 33%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.72)) !important;
}
body::after { opacity: .55 !important; }
#bgCanvas { opacity: .78; filter: contrast(1.15) saturate(1.25); }
body.xenon .page-panel,
body.xenon .side-card,
body.xenon .data-panel,
body.xenon .modal,
body.xenon .command-palette {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent), transparent 68%),
    0 0 34px color-mix(in srgb, var(--accent), transparent 75%),
    0 24px 90px rgba(0,0,0,.62) !important;
}

@media (max-width: 1000px) {
  .content-grid { grid-template-columns: 1fr !important; }
  .page-resize-handle { display: none; }
  .page-panel { min-width: 0; }
}

/* v1.5 editor width variable correction */
:root { --editor-track: 850px; }
.content-grid {
  max-width: min(calc(100vw - 70px), calc(var(--editor-track) + 320px)) !important;
  grid-template-columns: minmax(520px, var(--editor-track)) 286px !important;
}
@media (max-width: 1000px) {
  .content-grid { max-width: 100% !important; grid-template-columns: 1fr !important; }
}

/* v1.6 — Back to v1.0 background, simpler Notion feel, muted mystery */
:root {
  --bg: #030507;
  --bg2: #080b10;
  --panel: rgba(12, 17, 23, .82);
  --panel2: rgba(15, 20, 27, .92);
  --text: #eef2f7;
  --muted: #8b93a1;
  --muted2: #596170;
  --line: rgba(255,255,255,.075);
  --line2: rgba(255,44,64,.22);
  --accent: #c92735;
  --accent2: #e15b66;
  --accent3: #471118;
  --shadow: 0 18px 56px rgba(0,0,0,.42), 0 0 28px rgba(201,39,53,.08);
}
body {
  color: var(--text) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 43, 60, .16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 43, 60, .08), transparent 24%),
    radial-gradient(circle at 50% 115%, rgba(118, 22, 30, .22), transparent 34%),
    linear-gradient(135deg, #020304 0%, #080b10 45%, #020304 100%) !important;
  letter-spacing: 0 !important;
}
body.xenon {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 229, 255, .11), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(180, 56, 255, .10), transparent 26%),
    radial-gradient(circle at 50% 115%, rgba(0, 229, 255, .08), transparent 34%),
    linear-gradient(135deg, #020304 0%, #061017 45%, #020304 100%) !important;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  opacity: .45 !important;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,.20)) !important;
}
body::after {
  opacity: .16 !important;
  background: repeating-linear-gradient(to bottom, transparent, transparent 4px, rgba(255,255,255,.016) 5px) !important;
  animation: scan 7s linear infinite !important;
}
#bgCanvas { opacity: .45 !important; filter: saturate(.65) contrast(1.05) !important; }

/* reduce glow and keep a grey/hidden feel */
.brand-mark, .hero-icon, .page-panel, .side-card, .modal, .command-palette, .music-dock, .data-panel {
  box-shadow: var(--shadow) !important;
}
body.xenon .page-panel,
body.xenon .side-card,
body.xenon .modal,
body.xenon .command-palette,
body.xenon .music-dock,
body.xenon .data-panel {
  box-shadow: 0 18px 60px rgba(0,0,0,.40), 0 0 30px color-mix(in srgb, var(--accent), transparent 82%) !important;
}
.top-btn, .mini-btn, .footer-btn, .wide-btn, .block-buttons button {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.065) !important;
  color: #cdd4df !important;
  text-shadow: none !important;
}
.top-btn:hover, .mini-btn:hover, .footer-btn:hover, .wide-btn:hover, .block-buttons button:hover {
  background: rgba(255,255,255,.07) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* simpler Notion surface */
.workspace { padding-left: 28px !important; padding-right: 28px !important; }
.hero { margin-top: 18px !important; margin-bottom: 14px !important; }
.hero-icon { background: rgba(255,255,255,.035) !important; border-color: rgba(255,255,255,.07) !important; }
.page-panel {
  background: rgba(7,10,14,.74) !important;
  border-color: rgba(255,255,255,.06) !important;
  backdrop-filter: blur(18px) !important;
}
.panel-toolbar {
  background: rgba(7,10,14,.70) !important;
  border-bottom-color: rgba(255,255,255,.045) !important;
}
.panel-title, .subpages-title, .side-title { color: #858e9d !important; }
.blocks { padding-top: 10px !important; }
.block { border: 1px solid transparent !important; }
.block:hover { background: rgba(255,255,255,.035) !important; box-shadow: none !important; }
.drag-handle { color: #5f6876 !important; }
[contenteditable="true"]:focus { background: transparent !important; box-shadow: none !important; }
.block-content:empty::before, .block-content[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: rgba(139,147,161,.45);
}

/* heading depth */
.block-heading .block-content { font-size: 25px !important; font-weight: 830 !important; color: #f4f6fa !important; }
.block-subheading .block-content { font-size: 20px !important; font-weight: 760 !important; color: #edf1f7 !important; }
.block-heading3 .block-content { font-size: 17px !important; font-weight: 720 !important; color: #e5ebf3 !important; padding: 5px 0 2px; }
.block-heading4 .block-content { font-size: 15px !important; font-weight: 690 !important; color: #cfd7e4 !important; padding: 4px 0 2px; }
.block-text .block-content { font-size: 14px !important; color: #cbd3df !important; }

/* list blocks like Notion */
.list-line { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 4px; min-height: 26px; }
.list-marker { color: #a0a8b6; padding-top: 2px; font-weight: 650; user-select: none; }
.block-numbered .list-marker { font-variant-numeric: tabular-nums; font-size: 13px; }
.block-bulleted .list-marker { font-size: 18px; line-height: 20px; }
.callout-line {
  display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 8px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  border-radius: 9px;
  padding: 9px 10px;
}
.callout-icon { color: var(--accent2); opacity: .9; }
.page-block {
  display: inline-grid; grid-template-columns: 22px auto; align-items: center; gap: 6px;
  border: 0; background: transparent; color: #dce3ec; padding: 4px 6px; border-radius: 6px;
}
.page-block:hover { background: rgba(255,255,255,.045); }

/* slash menu close to Notion */
.slash-menu {
  min-width: 315px !important;
  max-height: min(530px, calc(100vh - 80px));
  overflow: auto;
  padding: 6px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(18,20,23,.98) !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.55) !important;
}
.slash-menu button {
  display: grid !important;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #e7ebf1 !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
}
.slash-menu button:hover { background: rgba(255,255,255,.075) !important; }
.slash-icon { color: #b7beca; font-size: 13px; font-weight: 700; }
.slash-label { font-size: 13px; font-weight: 600; }
.slash-hint { color: #8a92a0; font-size: 12px; }

/* image/file placement and sizes */
.block.drag-over { outline: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.045) !important; }
.block-image img {
  max-width: min(460px, 100%) !important;
  max-height: 260px !important;
  object-fit: contain !important;
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 9px !important;
}
.drop-hint { border-color: rgba(255,255,255,.055) !important; background: rgba(255,255,255,.016) !important; color: rgba(205,214,228,.42) !important; }

/* cursor: quieter cyber pointer, no heavy ring */
#cursorGlow { display: none !important; }
#cursorDot {
  width: 15px !important;
  height: 15px !important;
  border: 0 !important;
  border-radius: 2px !important;
  clip-path: polygon(0 0, 100% 42%, 59% 57%, 45% 100%, 28% 86%, 39% 55%) !important;
  background: linear-gradient(135deg, #e9eef7 0%, #9aa5b6 45%, var(--accent2) 100%) !important;
  box-shadow: 0 0 10px rgba(225,91,102,.52), 0 0 22px rgba(0,0,0,.35) !important;
  transform: translate(-18%, -18%) rotate(-8deg) !important;
}
#cursorDot::before, #cursorDot::after { display: none !important; }
.cursor-spark { opacity: .42 !important; background: #9aa5b6 !important; box-shadow: 0 0 8px rgba(255,255,255,.25) !important; }
.click-ripple { display: none !important; }

/* Random topic button should feel simple */
#randomTopicBtn { min-width: 104px; }

/* v1.7 — calmer v1.0-inspired surface + truly blank pages */
:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #030507;
  --bg2: #080b10;
  --panel: rgba(12, 17, 23, .82);
  --panel2: rgba(15, 20, 27, .92);
  --text: #f2f5fa;
  --muted: #8d96a6;
  --muted2: #5c6575;
  --line: rgba(255,255,255,.085);
  --line2: rgba(255,44,64,.28);
  --accent: #d72e3e;
  --accent2: #f06672;
  --accent3: #67141e;
  --shadow: 0 0 42px rgba(255, 43, 60, .12), 0 22px 70px rgba(0,0,0,.38);
}
body {
  font-family: var(--font) !important;
  color: var(--text) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 43, 60, .16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 43, 60, .08), transparent 24%),
    radial-gradient(circle at 50% 115%, rgba(118, 22, 30, .22), transparent 34%),
    linear-gradient(135deg, #020304 0%, #080b10 45%, #020304 100%) !important;
  letter-spacing: 0 !important;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px) !important;
  background-size: 42px 42px !important;
  opacity: .50 !important;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.22)) !important;
}
body::after {
  background: repeating-linear-gradient(to bottom, transparent, transparent 4px, rgba(255,255,255,.018) 5px) !important;
  opacity: .18 !important;
  animation: scan 7s linear infinite !important;
}
#bgCanvas { opacity: .50 !important; filter: saturate(.72) contrast(1.05) !important; }

/* v1.0-like depth without heavy neon */
.sidebar { background: rgba(3,5,8,.86) !important; border-right-color: rgba(255,255,255,.075) !important; }
.topbar { background: rgba(3,5,8,.70) !important; border-bottom-color: rgba(255,255,255,.06) !important; }
.brand-title { font-weight: 820 !important; letter-spacing: -.02em !important; }
#pageTitle { font-size: clamp(28px, 3vw, 38px) !important; font-weight: 850 !important; letter-spacing: -.035em !important; }
#pageDescription { color: rgba(210,218,230,.63) !important; font-size: 12.5px !important; }
.hero-icon { box-shadow: var(--shadow) !important; background: rgba(12,17,23,.82) !important; border-color: rgba(255,255,255,.08) !important; }
.page-panel {
  background: rgba(7,10,14,.70) !important;
  border: 1px solid rgba(255,255,255,.065) !important;
  box-shadow: 0 22px 80px rgba(0,0,0,.42) !important;
  backdrop-filter: blur(18px) !important;
}
.panel-toolbar { background: rgba(8,12,17,.62) !important; border-bottom: 1px solid rgba(255,255,255,.05) !important; }
.panel-title, .subpages-title, .side-title { color: #858e9d !important; }

/* lighter Notion-like editor typography */
.blocks { padding-top: 8px !important; }
.block { padding: 2px 4px !important; margin: 1px 0 !important; border: 1px solid transparent !important; }
.block:hover { background: rgba(255,255,255,.032) !important; }
.block-content { color: #d8dee9 !important; line-height: 1.55 !important; min-height: 22px !important; font-weight: 520 !important; }
.block-heading .block-content { font-size: 23px !important; font-weight: 800 !important; color: #f7f9fd !important; letter-spacing: -.03em !important; }
.block-subheading .block-content { font-size: 17px !important; font-weight: 740 !important; color: #edf1f7 !important; }
.block-heading3 .block-content { font-size: 15.5px !important; font-weight: 700 !important; color: #e5ebf3 !important; }
.block-heading4 .block-content { font-size: 14px !important; font-weight: 660 !important; color: #cfd7e4 !important; }
.block-text .block-content { font-size: 13.5px !important; color: #cbd3df !important; }
.drag-handle { opacity: 0 !important; color: #667084 !important; }
.block:hover .drag-handle { opacity: .55 !important; }
[contenteditable="true"]:focus { outline: none !important; background: rgba(255,255,255,.02) !important; box-shadow: none !important; }
.block-content:empty::before, .block-content[data-placeholder]:empty::before { color: rgba(141,150,166,.46) !important; }

/* blank page should feel intentional */
.blocks:empty::before {
  content: "";
  display: block;
  height: 88px;
}
.drop-hint {
  display: none !important;
}
.notion-add-row {
  opacity: .58 !important;
  border-top: 1px solid rgba(255,255,255,.045) !important;
}
.notion-add-row:hover { opacity: 1 !important; }

/* Slash menu: closer to Notion, includes numbered list */
.slash-menu { background: rgba(22,24,27,.98) !important; border-color: rgba(255,255,255,.10) !important; box-shadow: 0 24px 70px rgba(0,0,0,.58) !important; }
.slash-menu button:hover { background: rgba(255,255,255,.075) !important; }
.slash-icon { color: #b7beca !important; }
.slash-label { color: #eef2f7 !important; }
.slash-hint { color: #87909f !important; }

/* File/image placement stays block-based; images stay compact */
.block-image img { max-width: min(420px, 100%) !important; max-height: 250px !important; object-fit: contain !important; }
.block.drag-over { outline: 1px solid rgba(255,255,255,.18) !important; background: rgba(255,255,255,.04) !important; }

/* Beautiful subtle cyber cursor — no heavy ring */
#cursorGlow { display: none !important; }
#cursorDot {
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, 100% 38%, 58% 58%, 43% 100%, 30% 82%, 38% 56%) !important;
  background: linear-gradient(135deg, #ffffff 0%, #9da8bb 42%, var(--accent2) 100%) !important;
  box-shadow: 0 0 8px rgba(240,102,114,.45), 0 0 18px rgba(0,0,0,.55) !important;
  transform: translate(-16%, -16%) rotate(-10deg) !important;
}
#cursorDot::before, #cursorDot::after, .click-ripple { display: none !important; }
.cursor-spark { opacity: .30 !important; background: #9aa5b6 !important; box-shadow: 0 0 8px rgba(255,255,255,.18) !important; }

/* Xenon stays available but calmer than previous builds */
body.xenon .page-panel, body.xenon .side-card, body.xenon .modal, body.xenon .command-palette, body.xenon .music-dock, body.xenon .data-panel {
  box-shadow: 0 22px 80px rgba(0,0,0,.44), 0 0 32px color-mix(in srgb, var(--accent), transparent 84%) !important;
}

/* v1.8 — Notion editor power + playbook polish */
.block-insert-row {
  height: 18px;
  max-width: 920px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .14s ease, background .14s ease;
}
.block-insert-row:hover,
.block-insert-row.drag-over { opacity: 1; }
.block-insert-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 7px;
  cursor: pointer;
}
.block-insert-row button:hover {
  color: var(--notion-text);
  background: rgba(255,255,255,.045);
}
.block-insert-row span { color: var(--accent); }
.block-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  margin: 8px 0;
}
.code-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  border-radius: 10px;
  overflow: hidden;
}
.code-card pre {
  margin: 0;
  padding: 14px 16px;
  min-height: 42px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #d6dde6;
  outline: none;
}
.code-copy {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  opacity: .75;
}
.code-copy:hover { opacity: 1; color: #fff; background: rgba(255,255,255,.08); }
.block-actions .icon-btn { min-width: 22px; }
.slash-menu button { display: grid; grid-template-columns: 34px 1fr 42px; align-items: center; }
.slash-hint { text-align: right; color: var(--muted); opacity: .72; }

/* v1.9 — Knowledge OS features: launcher, split view, graph, vault, theme studio, dork assistant */
body.focus-mode .sidebar,
body.focus-mode .sidebar-resize,
body.focus-mode .right-panel,
body.focus-mode .hero,
body.focus-mode .workspace-dashboard,
body.focus-mode .panel-toolbar,
body.focus-mode .topbar .top-actions button:not(#focusBtn),
body.focus-mode .session-clock { display: none !important; }
body.focus-mode .workspace { padding-left: 0; }
body.focus-mode .content-grid { grid-template-columns: minmax(620px, 940px) !important; justify-content: center; }
body.focus-mode .page-panel { margin-top: 34px; }
body.secret-mode .tree,
body.secret-mode .blocks,
body.secret-mode .subpages-panel,
body.secret-mode #pageTitle,
body.secret-mode #pageDescription,
body.secret-mode .right-panel { filter: blur(9px) grayscale(.55); user-select: none; }
body.secret-mode .brand-title,
body.secret-mode #workspaceName { font-size: 0 !important; }
body.secret-mode .brand-title::after,
body.secret-mode #workspaceName::after { content: "Notes"; font-size: 14px; }

.launcher-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(180,32,48,.16), transparent 25%), rgba(0,0,0,.72);
  backdrop-filter: blur(18px);
}
.launcher-card {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  position: relative;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(10,13,18,.96), rgba(5,7,10,.98));
  box-shadow: 0 35px 110px rgba(0,0,0,.66), 0 0 calc(var(--glow-strength, 35) * 1px) rgba(215,46,62,.13);
}
.launcher-kicker { color: var(--accent2); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.launcher-card h2 { margin: 8px 0 4px; font-size: 34px; letter-spacing: -.04em; }
.launcher-card p { margin: 0 0 22px; color: var(--muted); }
.launcher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.launcher-workspace {
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.launcher-workspace:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.055); }
.launcher-workspace .big-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.launcher-workspace strong { display: block; font-size: 14px; }
.launcher-workspace small { color: var(--muted); }
.launcher-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.wide-panel { width: min(1040px, calc(100vw - 56px)); }
.module-map { display: grid; gap: 10px; }
.map-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.map-row:hover { background: rgba(255,255,255,.052); border-color: rgba(255,255,255,.12); }
.map-row[data-depth="1"] { margin-left: 18px; }
.map-row[data-depth="2"] { margin-left: 36px; opacity: .92; }
.map-row[data-depth="3"] { margin-left: 54px; opacity: .82; }
.map-row small { color: var(--muted); }

.graph-view {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 50% 50%, rgba(215,46,62,.08), transparent 38%),
    rgba(0,0,0,.19);
}
.graph-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(9,12,16,.90);
  color: var(--text);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0,0,0,.35);
}
.graph-node.root { border-color: color-mix(in srgb, var(--accent), transparent 42%); box-shadow: 0 0 30px color-mix(in srgb, var(--accent), transparent 80%); }
.graph-edge { position: absolute; height: 1px; background: rgba(255,255,255,.08); transform-origin: left center; }

.split-panel {
  position: fixed;
  right: 22px;
  top: 78px;
  z-index: 3600;
  width: min(680px, calc(100vw - 44px));
  height: calc(100vh - 110px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(6,8,12,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0,0,0,.60);
}
.split-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.065); }
.split-head input { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); color: var(--text); border-radius: 10px; padding: 10px 12px; }
.split-head button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.split-body { display: grid; grid-template-columns: 220px 1fr; min-height: 0; }
.split-results { border-right: 1px solid rgba(255,255,255,.06); overflow: auto; padding: 10px; }
.split-result { width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 9px; color: var(--text); background: transparent; cursor: pointer; }
.split-result:hover { background: rgba(255,255,255,.055); }
.split-result small { display: block; color: var(--muted); }
.split-preview { padding: 18px; overflow: auto; color: var(--text); }
.split-preview h2 { margin: 0 0 10px; }
.split-block { border-bottom: 1px solid rgba(255,255,255,.045); padding: 8px 0; color: #cbd3df; }

.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.vault-item { border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.03); padding: 10px; min-height: 100px; }
.vault-item img { max-width: 100%; max-height: 130px; object-fit: contain; display: block; margin: 0 auto 8px; border-radius: 10px; }
.vault-item strong { font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-item small { color: var(--muted); }
.vault-item button { margin-top: 8px; }
.timeline-list, .snapshot-list { display: grid; gap: 10px; margin-top: 12px; }
.timeline-item, .snapshot-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255,255,255,.025);
}
.timeline-item small, .snapshot-item small { display: block; color: var(--muted); margin-top: 3px; }
.snapshot-actions { display: flex; gap: 8px; margin-top: 10px; }

.theme-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 14px; }
.theme-presets button, .backup-action, .wide-btn, .plugin-list label { cursor: pointer; }
.range-label { display: grid; gap: 8px; margin: 12px 0; color: var(--muted); font-size: 12px; }
.range-label input { width: 100%; accent-color: var(--accent); }
.plugin-list { display: grid; gap: 10px; margin-top: 14px; }
.plugin-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.03); }

.secret-cover {
  position: fixed;
  inset: 0;
  z-index: 5900;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(0,0,0,.08);
}
.secret-cover > div {
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(5,6,8,.76);
  backdrop-filter: blur(10px);
  color: var(--muted);
  text-align: center;
}
.secret-cover h2 { margin: 0 0 6px; color: var(--text); }

.dork-orb {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 4700;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), transparent 23%), linear-gradient(145deg, #111820, #050608);
  color: var(--accent2);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(0,0,0,.45), 0 0 calc(var(--glow-strength, 35) * 1px) color-mix(in srgb, var(--accent), transparent 66%);
}
.dork-orb:hover { transform: translateY(-2px); }
.dork-chat {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 4701;
  width: min(390px, calc(100vw - 34px));
  max-height: min(650px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(5,7,10,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
  padding: 14px;
}
.dork-head { display: flex; justify-content: space-between; align-items: center; }
.dork-head button { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.dork-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
#dorkTarget { border: 1px solid rgba(255,255,255,.09); border-radius: 11px; padding: 10px 12px; background: rgba(255,255,255,.04); color: var(--text); }
.dork-actions { display: flex; gap: 8px; }
.dork-actions button, .dork-row button, .vault-item button, .snapshot-actions button, .theme-presets button {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
}
.dork-results { overflow: auto; display: grid; gap: 8px; padding-right: 2px; }
.dork-row { border: 1px solid rgba(255,255,255,.065); border-radius: 12px; padding: 10px; background: rgba(255,255,255,.025); }
.dork-row code { display: block; white-space: pre-wrap; word-break: break-word; color: #d8dee9; font-size: 12px; margin-bottom: 8px; }
.dork-row .dork-label { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.dork-row .dork-buttons { display: flex; gap: 7px; }

body.plugin-hide-dorks .dork-orb,
body.plugin-hide-dorks .dork-chat,
body.plugin-hide-audio #audioBtn,
body.plugin-hide-timer .session-clock,
body.plugin-hide-rightPanel .right-panel { display: none !important; }
body.plugin-hide-particles #bgCanvas { opacity: 0 !important; }

@media (max-width: 980px) {
  .split-body { grid-template-columns: 1fr; }
  .split-results { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); max-height: 160px; }
  .launcher-card { padding: 20px; }
  .top-actions { max-width: 100%; overflow-x: auto; }
}

/* v2.0 — Notion-like Pentest Workspace layer */
body.plugin-hide-dorks .dork-orb,
body.plugin-hide-dorks .dork-chat,
.dork-orb,
.dork-chat { display: none !important; }

.workspace {
  background:
    radial-gradient(circle at 72% 18%, rgba(119, 82, 255, .09), transparent 34%),
    radial-gradient(circle at 28% 88%, rgba(30, 255, 164, .055), transparent 30%),
    linear-gradient(180deg, rgba(6,7,11,.58), rgba(7,9,13,.74));
}

.page-panel {
  background: linear-gradient(180deg, rgba(8, 11, 16, .58), rgba(4, 6, 10, .72)) !important;
  border: 1px solid rgba(145, 110, 255, .20) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.015), 0 24px 90px rgba(0,0,0,.42), 0 0 38px rgba(132, 92, 255, .10) !important;
  backdrop-filter: blur(18px) saturate(116%);
  border-radius: 18px !important;
}

.page-panel::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(145, 110, 255, .16), transparent 18%, transparent 78%, rgba(44, 255, 182, .09)),
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.05), transparent 27%);
  opacity: .55;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.content-grid { align-items: start; }
.right-panel .side-card {
  background: rgba(10, 12, 18, .56) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: inset 3px 0 0 rgba(154, 100, 255, .44), 0 18px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(15px);
}
.quick-info-list { display: grid; gap: 8px; }
.quick-info-item { display:flex; justify-content:space-between; gap:14px; font-size:12px; color: var(--muted); }
.quick-info-item strong { color: var(--text); font-weight: 650; }
.tag-pills { display:flex; flex-wrap:wrap; gap:7px; }
.tag-pill { padding: 5px 8px; border-radius: 8px; font-size: 11px; background: rgba(142, 101, 255, .13); color: rgba(224,220,255,.9); border:1px solid rgba(142,101,255,.18); }
.related-list { display:grid; gap:6px; }
.related-list button { text-align:left; border:0; background:rgba(255,255,255,.035); color:var(--text); border-radius:8px; padding:8px 9px; cursor:pointer; }
.related-list button:hover { background: rgba(142,101,255,.13); }

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 18;
  background: rgba(7, 8, 12, .74);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 80px rgba(0,0,0,.45), 0 0 35px rgba(136, 100, 255, .10);
  backdrop-filter: blur(18px);
  padding: 8px;
  border-radius: 14px;
}
.bottom-dock button {
  border:0;
  background:transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
}
.bottom-dock button:hover { color: var(--text); background: rgba(255,255,255,.055); }
body.focus-mode .bottom-dock { display:none; }

.score-content { display:grid; gap:14px; }
.score-ring {
  --p: 65;
  width: 160px; height: 160px; border-radius: 50%;
  margin: 8px auto 10px;
  display:grid; place-items:center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.07) 0);
  box-shadow: 0 0 45px rgba(145,100,255,.12);
}
.score-ring-inner { width: 124px; height:124px; border-radius:50%; display:grid; place-items:center; background:rgba(6,7,11,.92); border:1px solid rgba(255,255,255,.08); }
.score-ring strong { font-size: 34px; }
.score-metrics { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:8px; }
.score-metric { padding:10px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); }
.score-metric strong { display:block; font-size:18px; color:var(--text); }
.score-metric small { color:var(--muted); }

.duplicate-list, .bookmark-list { display:grid; gap:10px; }
.duplicate-group, .bookmark-item, .marketplace-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  padding: 12px;
}
.duplicate-group strong { display:block; margin-bottom: 8px; }
.duplicate-group button, .bookmark-item button, .marketplace-card button { border:0; border-radius:9px; padding:7px 10px; background:rgba(255,255,255,.07); color:var(--text); cursor:pointer; margin:4px 4px 0 0; }
.duplicate-group button:hover, .bookmark-item button:hover, .marketplace-card button:hover { background:rgba(142,101,255,.20); }
.bookmark-form { display:grid; grid-template-columns: 1fr 1fr 150px auto; gap:8px; margin-bottom:12px; }
.bookmark-form input { background:rgba(255,255,255,.045); color:var(--text); border:1px solid rgba(255,255,255,.08); border-radius:10px; padding:10px; }
.bookmark-form button { border:0; border-radius:10px; padding:10px 12px; background:var(--accent); color:#fff; cursor:pointer; }
.marketplace-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.marketplace-card h3 { margin:0 0 6px; }
.marketplace-card p { margin:0 0 10px; color:var(--muted); font-size:13px; line-height:1.5; }

.reading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow:auto;
  padding: 70px 24px 80px;
  background: radial-gradient(circle at 50% 0%, rgba(105,82,255,.14), transparent 38%), rgba(4, 5, 8, .94);
  backdrop-filter: blur(18px);
}
.reading-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px;
  border-radius: 24px;
  background: rgba(8, 10, 15, .72);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 100px rgba(0,0,0,.42), 0 0 50px rgba(137, 102, 255, .10);
}
.reading-page h1 { font-size: 40px; margin: 0 0 8px; }
.reading-page h2 { margin-top: 28px; }
.reading-page p, .reading-page li { color: rgba(233,238,246,.88); line-height:1.75; }
.reading-page pre { background: rgba(0,0,0,.42); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:14px; white-space:pre-wrap; }
.wikilink { color: #bda7ff; text-decoration: none; border-bottom: 1px dashed rgba(189,167,255,.45); cursor: pointer; }
.wikilink.missing { color: #8a91a1; border-bottom-color: rgba(138,145,161,.35); }

.terminal-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(620px, calc(100vw - 48px));
  height: 390px;
  z-index: 75;
  background: rgba(4, 6, 10, .92);
  border: 1px solid rgba(80, 255, 184, .14);
  border-radius: 18px;
  box-shadow: 0 30px 120px rgba(0,0,0,.56), 0 0 40px rgba(64,255,178,.10);
  overflow:hidden;
  backdrop-filter: blur(18px);
}
.terminal-head { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.06); color:var(--text); }
.terminal-head button { border:0; background:rgba(255,255,255,.06); color:var(--text); border-radius:8px; padding:5px 9px; cursor:pointer; }
.terminal-output { height:292px; padding:14px; overflow:auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:#b7f8d1; font-size:12px; line-height:1.55; }
.terminal-input-row { display:flex; gap:8px; align-items:center; border-top:1px solid rgba(255,255,255,.06); padding:10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:#6dffaf; }
.terminal-input-row input { flex:1; background:transparent; border:0; color:var(--text); outline:none; font:inherit; }
.terminal-line.dim { color:#7c8798; }
.terminal-line.err { color:#ff7e91; }

body.reading-clean .topbar,
body.reading-clean .sidebar,
body.reading-clean .sidebar-resize,
body.reading-clean .right-panel,
body.reading-clean .bottom-dock,
body.reading-clean .panel-toolbar,
body.reading-clean .notion-add-row,
body.reading-clean .block-actions,
body.reading-clean .drag-handle { opacity:0; pointer-events:none; }

@media (max-width: 960px) {
  .bookmark-form { grid-template-columns:1fr; }
  .bottom-dock { display:none; }
}

/* v2.1 cleanup layer — keep commands in slash menu, remove visual clutter */
#randomTopicBtn,
#randomPayloadBtn,
#focusBtn,
#terminalBtn,
#secretBtn,
#audioBtn,
#audioFile,
#newWorkspaceBtn,
#musicDock,
#terminalPanel,
#secretCover {
  display: none !important;
}

/* Hide the permanent Page Blocks toolbar; slash commands still work while typing. */
.panel-toolbar {
  display: none !important;
}

/* Remove the small diamond/triangle-like sidebar button area without breaking modules. */
.sidebar-actions {
  grid-template-columns: repeat(3, 1fr) !important;
}
#newWorkspaceBtn + .mini-btn {
  margin-left: 0 !important;
}

/* Cleaner, quieter topbar after removing experimental buttons. */
.top-actions {
  gap: 6px !important;
}
.top-btn {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.055) !important;
}
.top-btn:hover {
  background: rgba(255,255,255,.07) !important;
}

/* More Notion-like editor surface with subtle transparent glow. */
.page-panel {
  background: linear-gradient(180deg, rgba(9,12,16,.70), rgba(7,10,14,.54)) !important;
  border-color: rgba(255,255,255,.07) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.02) inset,
    0 22px 70px rgba(0,0,0,.34),
    0 0 46px color-mix(in srgb, var(--accent), transparent 90%) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
}
.blocks {
  padding-top: 28px !important;
}
.drop-hint {
  margin-top: 10px !important;
  background: rgba(255,255,255,.018) !important;
  border-color: rgba(255,255,255,.055) !important;
}

/* Cursor cleanup: no triangle/diamond sprite, only a small cyber point. */
#cursorGlow { display: none !important; }
#cursorDot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  clip-path: none !important;
  background: color-mix(in srgb, var(--accent), white 28%) !important;
  box-shadow:
    0 0 10px color-mix(in srgb, var(--accent), transparent 20%),
    0 0 24px color-mix(in srgb, var(--accent2), transparent 55%) !important;
  mix-blend-mode: screen !important;
}
#cursorDot::before,
#cursorDot::after,
.click-ripple {
  display: none !important;
}
body.cursor-armed #cursorDot {
  transform: translate(-50%, -50%) scale(1.55) !important;
}

/* Keep Reading / Bookmarks / Score features visible, hide removed experimental dock traces if any. */
.command-item[data-removed="true"] { display:none !important; }


/* v2.2 — Floating Utility Orb: all heavy tools hidden in one circular launcher */
.bottom-dock {
  display: none !important;
}

#inboxBtn,
#trashBtn,
#vaultBtn,
#timelineBtn,
#snapshotsBtn,
#themeBtn,
#themeStudioBtn,
#pluginsBtn,
#scoreBtn,
#duplicatesBtn,
#bookmarksBtn,
#marketplaceBtn,
#readingBtn,
#backupBtn,
#newPageBtn {
  display: none !important;
}

.utility-orb {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 180;
  font-family: var(--font-main, Inter, system-ui, sans-serif);
}

.utility-orb-main {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 42% 32%, rgba(255,255,255,.12), transparent 26%),
    radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--accent, #c41e3a), transparent 54%), transparent 58%),
    linear-gradient(180deg, rgba(12,15,20,.94), rgba(4,6,10,.90));
  color: var(--text, #f4f4f5);
  box-shadow:
    0 18px 58px rgba(0,0,0,.55),
    0 0 30px color-mix(in srgb, var(--accent, #c41e3a), transparent 72%),
    inset 0 0 22px rgba(255,255,255,.045);
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.utility-orb-main:hover,
.utility-orb.open .utility-orb-main {
  transform: translateY(-2px) scale(1.04);
  border-color: color-mix(in srgb, var(--accent, #c41e3a), white 10%);
  box-shadow:
    0 20px 70px rgba(0,0,0,.66),
    0 0 44px color-mix(in srgb, var(--accent, #c41e3a), transparent 50%),
    inset 0 0 24px rgba(255,255,255,.06);
}
.orb-symbol {
  font-size: 27px;
  line-height: 1;
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent, #c41e3a), transparent 20%);
  z-index: 2;
}
.orb-pulse {
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent, #c41e3a), transparent 45%);
  opacity: .5;
  animation: orbPulse 2.8s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: scale(.88); opacity: .22; }
  50% { transform: scale(1.12); opacity: .65; }
}

.utility-orb-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(13,16,21,.92), rgba(5,7,11,.86)),
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent, #c41e3a), transparent 82%), transparent 52%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 28px 95px rgba(0,0,0,.72),
    0 0 50px color-mix(in srgb, var(--accent, #c41e3a), transparent 85%),
    inset 0 0 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(20px) saturate(120%);
  transform-origin: bottom right;
  animation: orbPanelIn .16s ease-out;
}
.utility-orb-panel.hidden { display: none; }
@keyframes orbPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.utility-orb-panel::before {
  content: "Workspace Tools";
  grid-column: 1 / -1;
  display: block;
  color: var(--muted, #8b949e);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 2px 4px 6px;
}
.utility-orb-panel button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: color-mix(in srgb, var(--text, #f4f4f5), transparent 6%);
  font-size: 12.5px;
  letter-spacing: .01em;
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
}
.utility-orb-panel button:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent, #c41e3a), transparent 90%);
  border-color: color-mix(in srgb, var(--accent, #c41e3a), transparent 58%);
  color: #fff;
}
.utility-orb-panel button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.reading-clean .utility-orb { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .utility-orb { right: 16px; bottom: 16px; }
  .utility-orb-panel { grid-template-columns: 1fr; max-height: 70vh; overflow: auto; }
}

/* =========================
   v2.3 — Notion Surface Fix
   Cleaner writing canvas, less neon frame, closer to Notion editing behavior.
========================= */
:root {
  --v23-paper: rgba(7, 10, 14, .26);
  --v23-paper-hover: rgba(255,255,255,.026);
  --v23-text: #d7dde6;
  --v23-muted: #747d8c;
  --v23-line: rgba(255,255,255,.055);
}

.workspace {
  background:
    radial-gradient(circle at 70% 12%, rgba(150, 122, 255, .055), transparent 34%),
    radial-gradient(circle at 18% 92%, rgba(45, 255, 178, .038), transparent 30%),
    linear-gradient(180deg, rgba(4,6,9,.54), rgba(5,7,10,.70)) !important;
}

/* Main grid breathes like Notion, not a full dashboard card. */
.content-grid {
  max-width: 1180px !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(620px, 860px) 278px !important;
  gap: 44px !important;
  align-items: start !important;
}

/* The editor should feel like a page, not a glowing container. */
.page-panel,
body.xenon .page-panel {
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 4px 120px !important;
}
.page-panel::before,
body.xenon .page-panel::before { display: none !important; }

/* Keep resize support, but hide it until needed. */
.page-resize-handle {
  opacity: 0 !important;
  right: -24px !important;
  width: 18px !important;
  background: transparent !important;
}
.page-panel:hover .page-resize-handle { opacity: .18 !important; }
.page-resize-handle::after {
  background: rgba(255,255,255,.10) !important;
  width: 2px !important;
}

/* File drop stays functional, but not visually loud. */
.drop-hint {
  display: none !important;
}
.page-panel.drag-active {
  background: rgba(255,255,255,.018) !important;
  outline: 1px dashed rgba(255,255,255,.13) !important;
  outline-offset: 18px !important;
  border-radius: 14px !important;
}
.page-panel.drag-active .blocks::before {
  content: "Drop to attach here";
  display: block;
  color: var(--v23-muted);
  font-size: 12px;
  padding: 8px 0 16px;
}

/* Subpages should look like Notion rows, not a boxed widget. */
.subpages-panel {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.045) !important;
  border-radius: 0 !important;
  padding: 0 0 18px !important;
  margin: 0 0 22px !important;
  box-shadow: none !important;
}
.subpages-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 0 10px !important;
  margin: 0 !important;
  font-size: 11px !important;
  letter-spacing: .13em !important;
  color: rgba(148,158,174,.78) !important;
  text-transform: uppercase !important;
}
.subpages-title button {
  color: rgba(190,198,210,.74) !important;
  border-radius: 6px !important;
}
.subpages-title button:hover {
  background: rgba(255,255,255,.055) !important;
  color: #fff !important;
}
.subpages-grid,
.subpage-list,
.subpages-list {
  display: grid !important;
  gap: 2px !important;
}
.subpage-card,
.subpage-row,
.subpages-panel .page-row,
.subpages-panel [data-page-id] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 7px 8px !important;
  box-shadow: none !important;
}
.subpage-card:hover,
.subpage-row:hover,
.subpages-panel .page-row:hover,
.subpages-panel [data-page-id]:hover {
  background: rgba(255,255,255,.043) !important;
}
.empty-subpages {
  color: rgba(135,145,160,.70) !important;
  font-size: 13px !important;
  padding: 0 !important;
}

/* Writing blocks: quieter, denser, closer to Notion. */
.blocks {
  max-width: 820px !important;
  padding: 0 0 54px !important;
  margin: 0 !important;
}
.blocks:empty::before {
  content: "Type / for commands" !important;
  display: block !important;
  height: auto !important;
  color: rgba(142,151,166,.55) !important;
  font-size: 13px !important;
  padding: 20px 0 56px !important;
}
.block {
  max-width: 820px !important;
  padding: 3px 4px !important;
  margin: 1px 0 !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: transparent !important;
}
.block:hover,
.block.active,
.block:focus-within {
  background: rgba(255,255,255,.034) !important;
}
.block-content {
  color: var(--v23-text) !important;
  font-size: 14px !important;
  font-weight: 480 !important;
  line-height: 1.58 !important;
  letter-spacing: -.003em !important;
  padding: 0 2px !important;
}
.block-heading .block-content {
  font-size: 26px !important;
  font-weight: 780 !important;
  letter-spacing: -.045em !important;
  color: #eef2f8 !important;
  line-height: 1.22 !important;
  margin-top: 8px !important;
}
.block-subheading .block-content {
  font-size: 19px !important;
  font-weight: 710 !important;
  color: #e7ecf4 !important;
  line-height: 1.32 !important;
}
.block-heading3 .block-content {
  font-size: 16px !important;
  font-weight: 660 !important;
  color: #dfe6ef !important;
}
.block-heading4 .block-content {
  font-size: 14px !important;
  font-weight: 620 !important;
  color: #c9d1df !important;
}
.block-quote,
.block-callout,
.code-card {
  background: rgba(255,255,255,.025) !important;
  border-color: rgba(255,255,255,.065) !important;
  box-shadow: none !important;
}
.drag-handle,
.block-actions {
  opacity: 0 !important;
  transition: opacity .12s ease !important;
}
.block:hover .drag-handle,
.block:hover .block-actions,
.block:focus-within .drag-handle,
.block:focus-within .block-actions {
  opacity: .55 !important;
}
.block-actions button {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.055) !important;
}

/* Bottom add row becomes a quiet Notion helper, not a toolbar. */
.notion-add-row {
  max-width: 820px !important;
  margin-top: 14px !important;
  opacity: .42 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  border-radius: 8px !important;
  padding: 4px 0 !important;
}
.notion-add-row:hover {
  opacity: .86 !important;
  background: rgba(255,255,255,.024) !important;
}
.notion-add-row button {
  font-size: 12px !important;
  color: rgba(145,154,170,.76) !important;
  padding: 5px 7px !important;
}
.notion-add-row button:hover {
  color: #fff !important;
  background: rgba(255,255,255,.055) !important;
}
.notion-add-row span { color: rgba(145,154,170,.72) !important; text-shadow:none !important; }

/* Right panel still exists but should not overpower the page. */
.right-panel {
  opacity: .86 !important;
}
.right-panel .side-card,
body.xenon .right-panel .side-card {
  background: rgba(8, 11, 16, .42) !important;
  border: 1px solid rgba(255,255,255,.065) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px) !important;
}
.right-panel .side-card::before { display: none !important; }

/* Remove green/purple Xenon border dominance inside the editor. */
body.xenon .page-panel,
body.xenon .subpages-panel,
body.xenon .blocks,
body.xenon .notion-add-row {
  border-color: rgba(255,255,255,.055) !important;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr !important; max-width: calc(100vw - 28px) !important; }
  .right-panel { display: none !important; }
  .blocks, .notion-add-row { max-width: 100% !important; }
}

/* v2.4 — Notion Polish Update */
:root{
  --v24-page-max: 980px;
  --v24-soft-border: rgba(255,255,255,.075);
  --v24-muted: rgba(222,229,236,.48);
  --v24-panel: rgba(8,12,16,.48);
}
body.v24-notion-polish .workspace{
  background:
    radial-gradient(circle at 50% 6%, rgba(80, 45, 120, .08), transparent 30%),
    radial-gradient(circle at 12% 95%, rgba(0, 160, 110, .06), transparent 28%),
    linear-gradient(180deg, rgba(3,6,9,.12), rgba(2,4,7,.08));
}
body.v24-notion-polish .top-actions .top-btn:not(#commandBtn):not(#newPageBtn),
body.v24-notion-polish .top-actions #audioFile,
body.v24-notion-polish .top-actions #imageAttachInput,
body.v24-notion-polish .top-actions #fileAttachInput{
  display:none !important;
}
body.v24-notion-polish .topbar{
  border-bottom:1px solid rgba(255,255,255,.055);
  background:rgba(5,8,11,.54);
  backdrop-filter: blur(18px);
}
body.v24-notion-polish .hero.compact-hero,
body.v24-notion-polish .workspace-dashboard{
  max-width: var(--v24-page-max);
  margin-left:auto;
  margin-right:auto;
}
body.v24-notion-polish .hero.compact-hero{
  padding: 28px 10px 14px;
  border:0;
  background:transparent;
  box-shadow:none;
}
body.v24-notion-polish .hero-icon{
  width:58px;
  height:58px;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 70px rgba(0,0,0,.28);
}
body.v24-notion-polish #pageTitle{
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing:-.055em;
  line-height:1.02;
  font-weight:820;
  text-shadow:none;
}
body.v24-notion-polish #pageDescription{
  color:var(--v24-muted);
  font-weight:520;
}
body.v24-notion-polish .content-grid{
  grid-template-columns:minmax(0, var(--v24-page-max)) 304px;
  justify-content:center;
  gap:32px;
  padding: 0 38px 94px;
}
body.v24-notion-polish .page-panel{
  width: min(100%, var(--v24-page-max));
  min-height: 520px;
  padding: 8px 8px 70px;
  background:rgba(7,10,14,.22);
  border:0;
  border-radius:16px;
  box-shadow:none;
}
body.v24-notion-polish .page-panel::before{
  opacity:.16;
}
body.v24-notion-polish .panel-toolbar,
body.v24-notion-polish .drop-hint{
  display:none !important;
}
body.v24-notion-polish .subpages-panel{
  margin:0 0 18px;
  border:0;
  background:transparent;
  padding:0;
}
body.v24-notion-polish .subpages-title{
  height:30px;
  border-bottom:1px solid rgba(255,255,255,.045);
  color:rgba(225,232,238,.42);
  font-size:11px;
  letter-spacing:.15em;
}
body.v24-notion-polish .subpages-title button{
  opacity:.65;
  background:transparent;
  border:0;
  color:rgba(225,232,238,.66);
}
body.v24-notion-polish .empty-subpages{
  padding:7px 0 12px;
  color:rgba(220,225,232,.35);
  font-size:13px;
}
body.v24-notion-polish .subpage-row{
  min-height:34px;
  margin:2px 0;
  padding:6px 8px;
  border:0;
  border-radius:6px;
  background:transparent;
  box-shadow:none;
}
body.v24-notion-polish .subpage-row:hover{
  background:rgba(255,255,255,.045);
}
body.v24-notion-polish .subpage-icon{
  width:22px;
  opacity:.92;
}
body.v24-notion-polish .subpage-title{
  font-size:14px;
  font-weight:590;
}
body.v24-notion-polish .subpage-meta{
  opacity:.35;
  font-size:11px;
}
body.v24-notion-polish .blocks{
  padding:4px 0 0;
}
body.v24-notion-polish .block{
  max-width: 860px;
  margin:1px auto;
  padding:2px 4px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
}
body.v24-notion-polish .block:hover{
  background:rgba(255,255,255,.026);
  border-color:rgba(255,255,255,.035);
}
body.v24-notion-polish .drag-handle{
  opacity:0;
  color:rgba(220,230,238,.28);
  left:-18px;
}
body.v24-notion-polish .block:hover .drag-handle{
  opacity:.75;
}
body.v24-notion-polish .block-content,
body.v24-notion-polish .toggle-body,
body.v24-notion-polish figcaption{
  color:rgba(242,245,248,.9);
  font-weight:520;
}
body.v24-notion-polish .block-heading .block-content{
  font-size:1.72rem;
  letter-spacing:-.025em;
}
body.v24-notion-polish .block-subheading .block-content{
  font-size:1.34rem;
  letter-spacing:-.02em;
}
body.v24-notion-polish .block-heading3 .block-content{
  font-size:1.08rem;
}
body.v24-notion-polish .block-heading4 .block-content{
  font-size:.96rem;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:rgba(230,237,244,.68);
}
body.v24-notion-polish .block-code .code-card,
body.v24-notion-polish .callout-line,
body.v24-notion-polish .toggle-head{
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.065);
  box-shadow:none;
}
body.v24-notion-polish .block-insert-row{
  max-width:860px;
  height:22px;
  margin:0 auto;
  opacity:0;
  transition:opacity .14s ease;
}
body.v24-notion-polish .page-panel:hover .block-insert-row,
body.v24-notion-polish .block-insert-row:hover{
  opacity:1;
}
body.v24-notion-polish .block-insert-row button{
  height:20px;
  padding:0 8px;
  font-size:11px;
  color:rgba(220,230,238,.45);
  background:transparent;
  border:0;
}
body.v24-notion-polish .notion-add-row{
  max-width:860px;
  margin:34px auto 0;
  background:transparent;
  border:1px dashed rgba(255,255,255,.06);
  opacity:.48;
}
body.v24-notion-polish .notion-add-row:hover{
  opacity:1;
  background:rgba(255,255,255,.025);
}
.notion-empty-editor{
  max-width:860px;
  min-height:34px;
  margin:26px auto 0;
  padding:6px 4px;
  outline:0;
  color:rgba(240,244,248,.86);
  font-size:15px;
  line-height:1.7;
}
.notion-empty-editor:empty::before{
  content:attr(data-placeholder);
  color:rgba(225,232,238,.34);
}
body.v24-notion-polish .right-panel{
  transition: transform .2s ease, opacity .2s ease, width .2s ease;
}
body.right-panel-collapsed .right-panel{
  display:none !important;
}
body.right-panel-collapsed .content-grid{
  grid-template-columns:minmax(0, var(--v24-page-max));
}
.right-panel-toggle{
  position:fixed;
  right:18px;
  top:92px;
  z-index:70;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.08);
  color:rgba(230,236,242,.72);
  background:rgba(8,12,16,.66);
  backdrop-filter:blur(14px);
  box-shadow:0 12px 44px rgba(0,0,0,.35);
}
.right-panel-toggle:hover{
  color:white;
  border-color:rgba(255,255,255,.18);
}
body.v24-notion-polish .utility-orb{
  right:20px;
  bottom:22px;
}
body.v24-notion-polish .utility-orb-main{
  width:48px;
  height:48px;
  border-radius:16px;
  background:rgba(7,10,14,.74);
  border-color:rgba(255,255,255,.1);
  box-shadow:0 16px 55px rgba(0,0,0,.42), inset 0 0 22px rgba(145,90,255,.08);
}
body.v24-notion-polish .utility-orb-panel{
  width:230px;
  border-radius:18px;
  background:rgba(7,10,14,.86);
  border-color:rgba(255,255,255,.09);
  box-shadow:0 24px 95px rgba(0,0,0,.55);
}
body.v24-notion-polish .utility-orb-panel button{
  min-height:32px;
  border-radius:10px;
  background:transparent;
}
body.v24-notion-polish .bottom-dock{
  display:none !important;
}
.command-scope{
  display:flex;
  gap:6px;
  padding:0 0 10px;
}
.command-scope button{
  flex:1;
  height:30px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:rgba(230,236,242,.58);
}
.command-scope button.active{
  color:white;
  border-color:rgba(132,94,247,.45);
  background:rgba(132,94,247,.14);
}
body.v24-notion-polish .slash-menu{
  width:300px;
  max-height:min(560px, 72vh);
  overflow:auto;
  padding:6px;
  border-radius:14px;
  background:rgba(20,22,24,.96);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 90px rgba(0,0,0,.58);
}
body.v24-notion-polish .slash-menu button{
  min-height:34px;
  border-radius:8px;
  gap:10px;
}
body.v24-notion-polish .slash-icon{
  width:34px;
  color:rgba(236,240,245,.7);
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
}
body.v24-notion-polish .slash-label{
  font-weight:590;
}
body.v24-notion-polish .slash-hint{
  margin-left:auto;
  opacity:.36;
}
.v24-reading-clean .drag-handle,
.v24-reading-clean .block-insert-row,
.v24-reading-clean .notion-add-row,
.v24-reading-clean .right-panel-toggle,
.v24-reading-clean .utility-orb{
  display:none !important;
}
.v24-top-hidden{display:none !important;}


/* v2.5 polish layer */
body[data-workspace-theme="red-team"] { --accent: #b92332; --accent2: #d0d4dd; --accent3: #351016; }
body[data-workspace-theme="forensics"] { --accent: #537899; --accent2: #d8e4ee; --accent3: #162333; }
body[data-workspace-theme="programming"] { --accent: #7b5fd6; --accent2: #d8cffc; --accent3: #211a35; }
body[data-workspace-theme="reverse"] { --accent: #5a9f77; --accent2: #d1ead9; --accent3: #15251b; }
body[data-workspace-theme="deep-web"] { --accent: #68707c; --accent2: #dadde3; --accent3: #16191f; }
body[data-workspace-theme="study"] { --accent: #8a6b4f; --accent2: #ead8c8; --accent3: #2a2018; }
body[data-workspace-theme="neutral"] { --accent: #8b93a3; --accent2: #dde1e8; --accent3: #20242d; }
.page-cover { max-width: var(--editor-width, 980px); margin: 18px auto 4px; height: 148px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; position: relative; overflow: hidden; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 44%), linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: inset 0 0 35px rgba(255,255,255,.025), 0 20px 60px rgba(0,0,0,.25); }
.page-cover[data-cover-style="red"] { background: radial-gradient(circle at 20% 30%, rgba(185,35,50,.42), transparent 45%), linear-gradient(135deg,#160a0d,#231012); }
.page-cover[data-cover-style="gray"] { background: radial-gradient(circle at 20% 30%, rgba(160,170,190,.22), transparent 45%), linear-gradient(135deg,#11151b,#232934); }
.page-cover[data-cover-style="blue"] { background: radial-gradient(circle at 20% 30%, rgba(83,120,153,.42), transparent 45%), linear-gradient(135deg,#071018,#152635); }
.page-cover[data-cover-style="green"] { background: radial-gradient(circle at 20% 30%, rgba(75,145,98,.35), transparent 45%), linear-gradient(135deg,#07130d,#14251b); }
.page-cover[data-cover-style="purple"] { background: radial-gradient(circle at 20% 30%, rgba(123,95,214,.38), transparent 45%), linear-gradient(135deg,#100b1a,#211a35); }
.page-cover-shade { position:absolute; inset:0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 65%); }
.page-cover-text { position:absolute; left:24px; bottom:20px; color: rgba(245,247,250,.86); font-weight: 700; letter-spacing:.02em; text-shadow: 0 8px 24px rgba(0,0,0,.5); }
.page-locked #blocks .block-content, .page-locked #blocks .toggle-body, .page-locked #blocks figcaption, .page-locked #pageTitle, .page-locked #pageDescription { pointer-events: none; opacity: .82; }
.page-locked .block-actions, .page-locked .block-insert-row, .page-locked .notion-add-row { opacity: .22; pointer-events: none; }
.page-locked .page-panel::after { content:'Locked'; position:absolute; top:12px; right:18px; font-size:11px; color: rgba(255,255,255,.45); border:1px solid rgba(255,255,255,.08); border-radius:999px; padding:5px 9px; background:rgba(0,0,0,.24); }
.link-preview-list { margin-top: 9px; display: grid; gap: 8px; }
.link-preview-card { display:flex; gap:10px; align-items:center; border:1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); border-radius: 12px; padding: 9px 10px; text-decoration:none; color: inherit; max-width: 720px; }
.link-preview-card:hover { background: rgba(255,255,255,.045); border-color: color-mix(in srgb, var(--accent) 35%, rgba(255,255,255,.08)); }
.link-preview-card strong { display:block; font-size: 13px; color: rgba(245,247,250,.88); }
.link-preview-card small { display:block; margin-top:2px; color: rgba(190,196,205,.54); word-break: break-all; }
.link-preview-icon { width:28px; height:28px; border-radius: 9px; display:grid; place-items:center; background: rgba(255,255,255,.05); color: var(--accent2); }
.page-preview-popover { position: fixed; z-index: 9999; width: 330px; max-width: calc(100vw - 22px); border: 1px solid rgba(255,255,255,.08); background: rgba(12,14,18,.92); backdrop-filter: blur(16px); border-radius: 14px; padding: 12px 13px; box-shadow: 0 20px 70px rgba(0,0,0,.48); pointer-events:none; }
.preview-title { font-weight: 700; color: rgba(245,247,250,.92); margin-bottom: 5px; }
.preview-path { font-size: 11px; color: rgba(190,196,205,.48); margin-bottom: 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.page-preview-popover p { margin:0; font-size: 12px; color: rgba(210,215,224,.66); line-height: 1.55; }
.page-health-box { display:grid; gap:8px; }
.health-meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow:hidden; }
.health-meter span { display:block; height:100%; background: linear-gradient(90deg, var(--accent3), var(--accent)); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.health-row { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.health-row strong { color: rgba(245,247,250,.9); }
.health-row small { color: rgba(190,196,205,.52); text-align:right; max-width: 180px; }
.smart-template-grid { display:grid; gap:10px; }
.smart-template-card { text-align:left; display:grid; grid-template-columns: 34px 1fr; gap:4px 10px; align-items:center; width:100%; padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); color:inherit; cursor:pointer; }
.smart-template-card:hover { background: rgba(255,255,255,.05); border-color: color-mix(in srgb, var(--accent) 34%, rgba(255,255,255,.08)); }
.smart-template-card span { grid-row: span 2; width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background: rgba(255,255,255,.04); }
.smart-template-card strong { color: rgba(245,247,250,.9); }
.smart-template-card small { color: rgba(190,196,205,.58); line-height:1.35; }
.v25-market-card .market-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; background: rgba(255,255,255,.04); margin-bottom: 10px; font-size: 22px; }
.market-tags { display:flex; flex-wrap:wrap; gap:6px; margin: 12px 0; }
.market-tags span { font-size: 11px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; padding: 4px 8px; color: rgba(210,215,224,.62); background: rgba(255,255,255,.025); }
.hidden-soft { display: none !important; }
#pageCoverRemoveBtn:disabled { opacity: .35; cursor:not-allowed; }


/* BlackVault v2.7 hosting/sync polish: hide static shell until app finishes init */
body.bv-loading .app-shell { opacity: 0; pointer-events: none; }
.app-loading {
  position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(185, 36, 67, .14), rgba(4, 6, 10, .96) 45%, #030406 100%);
  color: var(--text, #e7e9ee); font-family: inherit;
}
.app-loading-card {
  min-width: 240px; padding: 22px 26px; border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px; background: rgba(10, 12, 18, .72); backdrop-filter: blur(18px);
  box-shadow: 0 0 70px rgba(255, 45, 85, .10); text-align: center; letter-spacing: .04em;
}
.app-loading-mark { font-size: 30px; color: var(--accent, #ff2d55); text-shadow: 0 0 20px var(--accent, #ff2d55); margin-bottom: 8px; }
.app-loading-card small { display:block; opacity:.58; margin-top:6px; font-size:12px; }
body.app-ready .app-loading { display:none; }




/* Keep all other panels above the backdrop too */
.data-panel,
.compact-panel,
.backup-panel,
.workspace-panel,
.workspace-menu,
.workspace-switcher,
.workspace-switcher-menu,
.theme-panel,
.theme-studio,
.theme-studio-panel,
.tools-panel,
.workspace-tools-panel,
.marketplace-panel,
.plugins-panel,
.vault-panel,
.timeline-panel,
.snapshots-panel,
.bookmarks-panel,
duplicates-panel,
.score-panel,
.inbox-panel,
.trash-panel,
.command-palette,
.context-menu,
.slash-menu,
[role="dialog"] {
  z-index: 9000 !important;
}

/* Small menus/popups should stay clickable */
.dropdown,
.popover,
.menu,
.floating-menu {
  z-index: 9100 !important;
}

/* ==========================================================
   BlackVault OS — VOID LUX v3
   هدف هذا الستايل: غموض + إضاءة قوية + بدون خطوط/شبكات مزعجة
   Theme-safe: يعتمد على var(--accent) حتى Theme Studio يبقى شغال.
   ========================================================== */

:root {
  --bg: #02030a;
  --bg2: #060814;
  --panel: rgba(8, 10, 20, .72);
  --panel2: rgba(11, 14, 28, .86);
  --text: #f6f8ff;
  --muted: #a6adc2;
  --muted2: #6f788f;
  --line: rgba(255, 255, 255, .075);
  --line2: color-mix(in srgb, var(--accent) 52%, rgba(255,255,255,.12));
  --shadow: 0 0 26px color-mix(in srgb, var(--accent) 34%, transparent), 0 28px 100px rgba(0,0,0,.52);
  --radius: 20px;
  --font: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --void-glass: linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.022));
  --void-glow: 0 0 34px color-mix(in srgb, var(--accent) 36%, transparent), 0 0 120px color-mix(in srgb, var(--accent) 13%, transparent);
}

* {
  text-rendering: geometricPrecision;
}

html, body {
  min-height: 100%;
  background: #02030a;
}

body {
  font-family: var(--font) !important;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 17% 10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 22%),
    radial-gradient(circle at 86% 6%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent 23%),
    radial-gradient(circle at 58% 105%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 36%),
    radial-gradient(circle at 0% 92%, rgba(255,255,255,.045), transparent 22%),
    linear-gradient(135deg, #01020a 0%, #060817 45%, #010208 100%) !important;
}

/* لا شبكات ولا خطوط خلفية مزعجة */
#bgCanvas {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  opacity: .92;
  background:
    radial-gradient(ellipse at 18% 22%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 34%),
    radial-gradient(ellipse at 84% 18%, color-mix(in srgb, var(--accent2) 20%, transparent), transparent 31%),
    radial-gradient(ellipse at 64% 86%, color-mix(in srgb, var(--accent3) 24%, transparent), transparent 36%),
    radial-gradient(ellipse at 28% 80%, rgba(255,255,255,.035), transparent 28%);
  filter: blur(28px) saturate(1.45);
  transform: translate3d(0,0,0);
  animation: voidAura 12s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .82;
  background:
    radial-gradient(circle at 50% 48%, transparent 25%, rgba(0,0,0,.34) 72%, rgba(0,0,0,.74) 100%),
    linear-gradient(90deg, rgba(0,0,0,.42), transparent 22%, transparent 78%, rgba(0,0,0,.46));
  mix-blend-mode: normal;
  animation: none !important;
}

@keyframes voidAura {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); filter: blur(30px) saturate(1.25); }
  100% { transform: translate3d(1.5%, 1.2%, 0) scale(1.04); filter: blur(34px) saturate(1.65); }
}

/* النصوص: أوضح وأنظف بدون نفخ أو ستروك */
.brand-title,
.node-title,
.hero h1,
.block-heading .block-content,
.block-subheading .block-content,
.panel-title,
.side-title,
.workspace-item-main strong,
.workspace-dashboard-card h3,
.module-card strong,
.kanban-title,
.data-panel-head h2,
.modal h2,
#workspaceName {
  text-shadow: none !important;
  -webkit-text-stroke: 0 transparent !important;
}

.hero h1 {
  font-size: clamp(28px, 3.25vw, 50px);
  line-height: 1.02;
  font-weight: 820;
  letter-spacing: -0.055em;
  color: #ffffff;
}

.hero p,
.block-content,
.tips,
.toc,
.side-card,
.node-type,
.workspace-item-main small {
  font-weight: 500;
}

.block-heading .block-content { font-weight: 780; letter-spacing: -0.035em; }
.block-subheading .block-content { font-weight: 720; letter-spacing: -0.025em; }
.block-text .block-content { font-size: 14px; line-height: 1.68; color: rgba(232,237,248,.88); }

/* الهيكل العام: Glass / Void بدلاً من خطوط قديمة */
.app-shell {
  background: transparent !important;
}

.sidebar {
  background:
    radial-gradient(circle at 30% 4%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(7,9,18,.88), rgba(3,4,10,.82)) !important;
  border-right: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255,255,255,.06)) !important;
  box-shadow: 18px 0 80px rgba(0,0,0,.45), 0 0 38px color-mix(in srgb, var(--accent) 16%, transparent);
  backdrop-filter: blur(22px) saturate(1.2);
}

.sidebar-resize {
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 72%, transparent), transparent) !important;
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 38%, transparent);
  opacity: .7;
}

.brand {
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  padding-top: 14px;
}

.brand-mark,
.hero-icon {
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent2) 34%, transparent), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 17%, rgba(255,255,255,.055)), rgba(255,255,255,.018)) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 56%, rgba(255,255,255,.10)) !important;
  box-shadow:
    0 0 22px color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 70px color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 0 24px rgba(255,255,255,.035) !important;
}

.brand-title {
  font-weight: 760;
  letter-spacing: -0.015em;
}

.brand-subtitle,
.workspace-kicker,
.sidebar-section-title {
  color: rgba(204,211,228,.68) !important;
  letter-spacing: .12em;
}

.workspace-current,
.mini-btn,
.top-btn,
.footer-btn,
.wide-btn,
.ghost-btn,
.block-buttons button,
.nav-icon,
.backup-action,
.workspace-item-actions button,
.template-picker button {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  border-radius: 14px !important;
}

.workspace-current:hover,
.mini-btn:hover,
.top-btn:hover,
.footer-btn:hover,
.wide-btn:hover,
.ghost-btn:hover,
.block-buttons button:hover,
.nav-icon:hover,
.backup-action:hover,
.workspace-item-actions button:hover,
.template-picker button:hover,
.template-picker button.active {
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)) !important;
  border-color: color-mix(in srgb, var(--accent) 48%, rgba(255,255,255,.12)) !important;
  box-shadow: var(--void-glow), inset 0 1px 0 rgba(255,255,255,.06) !important;
  transform: translateY(-1px);
}

.primary-btn {
  background:
    radial-gradient(circle at 24% 0%, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, #ffffff 8%), color-mix(in srgb, var(--accent3) 75%, #000 25%)) !important;
  border-color: color-mix(in srgb, var(--accent) 64%, rgba(255,255,255,.14)) !important;
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 32%, transparent) !important;
}

/* الشجرة: أنظف وأقل ازدحام */
.tree {
  padding: 8px 12px 20px;
}

.tree-children {
  border-left: 0 !important;
  margin-left: 15px;
  padding-left: 8px;
}

.tree-row {
  grid-template-columns: 13px 22px 1fr auto;
  min-height: 35px;
  margin: 3px 0;
  border-radius: 14px !important;
  color: rgba(230,236,247,.82) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.tree-row:hover {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.tree-row.active {
  background:
    radial-gradient(circle at 8% 50%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 52%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,.035)), rgba(255,255,255,.018)) !important;
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,.10)) !important;
  box-shadow:
    0 0 28px color-mix(in srgb, var(--accent) 22%, transparent),
    inset 0 0 18px rgba(255,255,255,.024) !important;
  color: #fff !important;
}

.node-title {
  font-weight: 620;
  font-size: 12.8px;
  letter-spacing: -0.01em;
}

.node-icon,
.twisty,
.node-pin {
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 46%, transparent));
}

/* Topbar بدون خط بنفسجي حاد */
.topbar {
  height: 58px;
  background:
    linear-gradient(180deg, rgba(5,7,14,.84), rgba(5,7,14,.62)) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, rgba(255,255,255,.06)) !important;
  box-shadow: 0 10px 60px rgba(0,0,0,.32), 0 0 26px color-mix(in srgb, var(--accent) 10%, transparent);
  backdrop-filter: blur(22px) saturate(1.22);
}

.crumbs {
  color: rgba(223,229,244,.76);
  font-weight: 650;
}
.crumb-dot {
  color: var(--accent2);
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 65%, transparent);
}

/* Hero / صفحة العمل */
.workspace {
  background: transparent !important;
}

.hero {
  margin-top: 46px;
  gap: 20px;
}

.hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 25px;
  animation: none !important;
}

.hero p {
  color: rgba(199,207,225,.70) !important;
  font-size: 13.5px;
  letter-spacing: -0.005em;
}

/* الكاردات الرئيسية: مضيئة بس راقية */
.page-panel,
.side-card,
.stat-card,
.workspace-dashboard-card,
.module-hub,
.data-panel,
.modal,
.command-palette,
.music-dock,
.page-cover,
.context-menu,
.slash-menu,
.selection-toolbar,
.page-preview-popover,

.page-panel {
  border-radius: 22px !important;
  overflow: hidden;
}

.panel-toolbar {
  background: linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.014)) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

.panel-title,
.side-title {
  font-weight: 720;
  letter-spacing: .035em;
  color: rgba(245,248,255,.86);
}

.blocks {
  padding: 20px 24px 26px;
}

.block {
  border-radius: 13px !important;
  margin: 4px 0;
}

.block:hover {
  background: rgba(255,255,255,.032) !important;
  border-color: rgba(255,255,255,.06) !important;
}

.drag-handle,
.block-actions {
  color: rgba(190,198,216,.55) !important;
}

.block-quote .block-content {
  border-left-color: color-mix(in srgb, var(--accent) 75%, #fff 5%) !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent) !important;
}

.block-code .block-content {
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 46%),
    rgba(0,0,0,.34) !important;
  border-color: color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,.08)) !important;
  color: #d8ffe8 !important;
}

.notion-add-row,
.drop-hint {
  border-style: solid !important;
  border-color: rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.026) !important;
}

.notion-add-row:hover,
.drop-hint:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, rgba(255,255,255,.10)) !important;
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Right side cards */
.right-panel {
  gap: 14px;
}

.side-card {
  border-radius: 18px !important;
}

.toc,
.tips,
.health-row small,
.market-tags span {
  color: rgba(191,199,218,.62) !important;
}

.health-meter {
  background: rgba(255,255,255,.065) !important;
}
.health-meter span {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent3) 78%, #000), var(--accent), var(--accent2)) !important;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent) !important;
}

/* Modules: بطاقات فخمة بدون شبكات */
.module-hub {
  border-radius: 24px !important;
}
.module-hub-head h3 {
  font-weight: 760;
  letter-spacing: -0.025em;
}
.module-card,
.smart-template-card,
.link-preview-card,
.workspace-item,
.kanban-card,
.file-chip {
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022)) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 17px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 36px rgba(0,0,0,.20);
}
.module-card:hover,
.smart-template-card:hover,
.link-preview-card:hover,
.workspace-item:hover,
.kanban-card:hover,
.file-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(255,255,255,.12)) !important;
  box-shadow: var(--void-glow), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.module-card::before,
.workspace-dashboard-card::before {
  background: linear-gradient(115deg, transparent, color-mix(in srgb, var(--accent2) 18%, transparent), transparent) !important;
}

/* Inputs / Selects */
input,
textarea,
.custom-select,
.panel-search,
.modal input,
input:focus,
textarea:focus,
.custom-select.open,
.panel-search:focus,
.modal input:focus,

::placeholder {
  color: rgba(188,198,218,.48) !important;
}

/* Modal layers: نحافظ على إصلاحاتك السابقة */
.modal-backdrop,
#modalBackdrop:not(.hidden) {
  background: rgba(0,0,0,.58) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
  z-index: 8000 !important;
}


.dropdown,
.popover,
.menu,
.floating-menu,
.select-options,
.selection-toolbar {
  z-index: 9100 !important;
}

/* Theme colors: نخلي تغيير الألوان يغير كل الموقع */
body.xenon,
body[data-workspace-theme] {
  background:
    radial-gradient(circle at 17% 10%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 23%),
    radial-gradient(circle at 86% 6%, color-mix(in srgb, var(--accent2) 17%, transparent), transparent 24%),
    radial-gradient(circle at 58% 105%, color-mix(in srgb, var(--accent3) 22%, transparent), transparent 36%),
    linear-gradient(135deg, #01020a 0%, #060817 45%, #010208 100%) !important;
}

body.xenon .brand-title,
body.xenon .hero h1,
body.xenon .dash-kicker,
body.xenon .xenon-btn {
  text-shadow: none !important;
}

body.xenon .topbar,
body.xenon .sidebar,
body.xenon .page-panel,
body.xenon .side-card,
body.xenon .workspace-dashboard-card,
body.xenon .modal,
body.xenon .data-panel,
body.xenon .command-palette,
body.xenon .music-dock {
  border-color: color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,.08)) !important;
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 18%, transparent), 0 28px 96px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

/* Cursor أخف وأفخم */
#cursorDot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  clip-path: none !important;
  background: color-mix(in srgb, var(--accent2) 70%, #fff 10%) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 78%, transparent), 0 0 42px color-mix(in srgb, var(--accent2) 36%, transparent) !important;
}
#cursorDot::before,
#cursorDot::after {
  display: none !important;
}
#cursorGlow {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 68%) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent) !important;
  box-shadow: 0 0 42px color-mix(in srgb, var(--accent) 22%, transparent) !important;
  opacity: .72 !important;
}
body.cursor-armed #cursorGlow {
  width: 58px !important;
  height: 58px !important;
}

/* Scrollbar أنعم */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 46%, transparent) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 42%, transparent), rgba(255,255,255,.11));
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* Responsive polish */
@media (max-width: 1100px) {
  .hero { margin-top: 30px; }
  .content-grid { gap: 14px; }
}

@media (max-width: 760px) {
  body { cursor: auto; }
  .sidebar { box-shadow: 0 12px 70px rgba(0,0,0,.4); }
  .topbar { min-height: 56px; }
  .hero { align-items: flex-start; margin-top: 24px; }
  .hero h1 { font-size: 30px; }
  .page-panel, .side-card { border-radius: 18px !important; }
  #cursorDot, #cursorGlow { display: none !important; }
}
/* BlackVault OS - Login background only */
.app-loading.login-screen-bg {
  background:
    linear-gradient(180deg, rgba(2,4,8,.72), rgba(3,4,6,.88)),
    url("assets/blackvault-login-bg.png?v=login-bg-1") center center / cover no-repeat !important;
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

.app-loading.login-screen-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,140,0,.16), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(255,140,0,.08), transparent 24%),
    linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.10) 35%, rgba(0,0,0,.42));
  pointer-events: none;
  z-index: 0;
}

.app-loading.login-screen-bg .app-loading-card {
  position: relative;
  z-index: 1;
  background: rgba(7,10,14,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,170,80,.18);
  box-shadow:
    0 20px 80px rgba(0,0,0,.48),
    0 0 36px rgba(255,140,0,.10);
}

.app-loading.login-screen-bg .team-login-title,
.app-loading.login-screen-bg .team-login-sub,
.app-loading.login-screen-bg .team-login-label,
.app-loading.login-screen-bg .team-login-error {
  position: relative;
  z-index: 1;
}

.app-loading.login-screen-bg .team-login-input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.app-loading.login-screen-bg .team-login-input:focus {
  border-color: rgba(255,153,51,.42);
  box-shadow: 0 0 24px rgba(255,140,0,.14);
}

.app-loading.login-screen-bg .team-login-btn {
  background: linear-gradient(135deg, rgba(255,140,0,.96), rgba(120,48,0,.95));
  border-color: rgba(255,170,80,.35);
  box-shadow: 0 0 24px rgba(255,140,0,.16);
}
/* BlackVault OS - Clean editor page, no form borders */
.page-panel,
body.xenon .page-panel,
body.v24-notion-polish .page-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
}

.page-panel::before,
body.xenon .page-panel::before,
body.v24-notion-polish .page-panel::before {
  display: none !important;
}

/* Remove top/bottom lines inside editor form */
.panel-toolbar,
body.v24-notion-polish .panel-toolbar {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Remove Subpages divider/frame */
.subpages-panel,
body.v24-notion-polish .subpages-panel {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.subpages-title,
body.v24-notion-polish .subpages-title {
  border: 0 !important;
  border-bottom: 0 !important;
}

/* Remove add-row box border */
.notion-add-row,
body.v24-notion-polish .notion-add-row {
  background: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

/* Keep blocks clean while editing */
.block {
  border: 0 !important;
  box-shadow: none !important;
}

.block:hover {
  border: 0 !important;
  background: rgba(255,255,255,.018) !important;
}
/* BlackVault OS - HTML file side preview */
.html-preview-panel {
  position: fixed;
  top: 64px;
  right: 22px;
  bottom: 22px;
  width: min(760px, calc(100vw - 44px));
  z-index: 13000;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 170, 80, .20);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 140, 0, .10), transparent 35%),
    rgba(5, 7, 11, .96);
  box-shadow:
    0 28px 120px rgba(0,0,0,.70),
    0 0 44px rgba(255,140,0,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.html-preview-panel.hidden {
  display: none !important;
}

.html-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.html-preview-kicker {
  color: rgba(255, 170, 80, .92);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.html-preview-head h2 {
  margin: 4px 0 3px;
  font-size: 19px;
  letter-spacing: -.02em;
}

.html-preview-head p {
  margin: 0;
  color: var(--muted, #9ca3af);
  font-size: 12px;
}

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

.html-preview-actions button,
.html-preview-download {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: #fff;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
}

.html-preview-actions button {
  width: 36px;
  padding: 0;
  font-size: 18px;
}

.html-preview-actions button:hover,
.html-preview-download:hover {
  border-color: rgba(255,170,80,.35);
  box-shadow: 0 0 22px rgba(255,140,0,.12);
}

#htmlPreviewFrame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.html-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.html-preview-chip span {
  margin-left: 6px;
  color: rgba(255,170,80,.86);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .html-preview-panel {
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}
/* BlackVault OS - PDF Preview + Resizable Preview Panel */
.html-preview-panel {
  width: var(--bv-preview-width, min(760px, calc(100vw - 44px))) !important;
  min-width: 380px;
  max-width: calc(100vw - 44px);
}

.html-preview-resize {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  z-index: 5;
  cursor: ew-resize;
  touch-action: none;
}

.html-preview-resize::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 74px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 170, 80, .16);
  opacity: .45;
  transition: .15s ease;
}

.html-preview-resize:hover::before,
.html-preview-panel.resizing .html-preview-resize::before {
  background: rgba(255, 170, 80, .55);
  box-shadow: 0 0 18px rgba(255, 140, 0, .22);
  opacity: 1;
}

.html-preview-panel.resizing,
.html-preview-panel.resizing * {
  user-select: none !important;
}

.html-preview-panel.is-pdf-preview #htmlPreviewFrame {
  background: #1f1f1f;
}

.html-preview-panel.is-html-preview #htmlPreviewFrame {
  background: #fff;
}

@media (max-width: 760px) {
  .html-preview-panel {
    width: calc(100vw - 28px) !important;
    min-width: 0;
  }

  .html-preview-resize {
    display: none;
  }
}
/* BlackVault OS - Iraqi Intelligence startup loading screen */
.app-loading.startup-intel-loading {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2,4,8,.58), rgba(3,4,6,.78)),
    url("assets/iraqi-intelligence-loading.jpg?v=intel-loading-1") center center / cover no-repeat !important;
}

.app-loading.startup-intel-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,140,0,.22), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255,140,0,.10), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.30), rgba(0,0,0,.12) 40%, rgba(0,0,0,.42));
  pointer-events: none;
}

.intel-loading-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 24px 22px 20px;
  border-radius: 24px;
  text-align: center;
  background: rgba(6,8,12,.62);
  border: 1px solid rgba(255,170,80,.20);
  box-shadow:
    0 22px 90px rgba(0,0,0,.50),
    0 0 40px rgba(255,140,0,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.intel-loading-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,170,80,.24);
  background: rgba(255,140,0,.10);
  color: rgba(255,190,120,.96);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.intel-loading-title {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff;
}

.intel-loading-sub {
  display: block;
  margin-top: 8px;
  color: rgba(240,240,245,.72);
  font-size: 13px;
  letter-spacing: .02em;
}

.startup-intel-loading .app-loading-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #ffb15a;
  border: 1px solid rgba(255,170,80,.26);
  background: rgba(255,140,0,.08);
  box-shadow:
    0 0 24px rgba(255,140,0,.16),
    inset 0 0 18px rgba(255,255,255,.03);
}

@media (max-width: 760px) {
  .intel-loading-card {
    width: min(360px, calc(100vw - 24px));
    padding: 20px 16px 18px;
  }

  .intel-loading-title {
    font-size: 24px;
  }
}
/* BlackVault OS - FIX Iraqi Intelligence loading background */
#appLoading.app-loading.startup-intel-loading {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(2,4,8,.56), rgba(3,4,6,.78)),
    url("/assets/iraqi-intelligence-loading.jpg?v=intel-loading-4") center center / cover no-repeat !important;
}

#appLoading.app-loading.startup-intel-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,140,0,.22), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255,140,0,.10), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.30), rgba(0,0,0,.12) 40%, rgba(0,0,0,.42));
  pointer-events: none;
  z-index: 0;
}

#appLoading.startup-intel-loading .intel-loading-card {
  position: relative !important;
  z-index: 1 !important;
  background: rgba(6,8,12,.62) !important;
  border: 1px solid rgba(255,170,80,.20) !important;
  box-shadow:
    0 22px 90px rgba(0,0,0,.50),
    0 0 40px rgba(255,140,0,.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

#appLoading.startup-intel-loading .intel-loading-badge {
  border: 1px solid rgba(255,170,80,.24) !important;
  background: rgba(255,140,0,.10) !important;
  color: rgba(255,190,120,.96) !important;
}
/* BlackVault OS - Fix loading screen stuck after app ready */
body.app-ready #appLoading,
body.app-ready #appLoading.app-loading,
body.app-ready #appLoading.startup-intel-loading {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.bv-loading #appLoading.startup-intel-loading {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* BlackVault OS - Fix Workspaces modal scrolling */
.modal.workspace-modal,
.workspace-modal {
  max-height: calc(100vh - 36px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  padding-bottom: 26px !important;
}

.workspace-modal .workspace-create-box {
  margin-bottom: 22px !important;
}

.workspace-modal .modal-actions,
.workspace-modal .workspace-create-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5 !important;
  padding-top: 12px !important;
  padding-bottom: 8px !important;
  background: linear-gradient(
    180deg,
    rgba(8,11,16,0),
    rgba(8,11,16,.92) 35%,
    rgba(8,11,16,.98)
  ) !important;
}

.workspace-modal::-webkit-scrollbar {
  width: 10px;
}

.workspace-modal::-webkit-scrollbar-track {
  background: rgba(255,255,255,.035);
  border-radius: 999px;
}

.workspace-modal::-webkit-scrollbar-thumb {
  background: rgba(170,90,255,.42);
  border-radius: 999px;
  border: 2px solid rgba(8,11,16,.85);
}

.workspace-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(190,120,255,.72);
}

@media (max-width: 760px) {
  .modal.workspace-modal,
  .workspace-modal {
    top: 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-height: calc(100vh - 28px) !important;
    transform: none !important;
  }
}

/* BlackVault OS v6.1 - Floating panels + cursor hotfix */
#cursorDot,
#cursorGlow {
  z-index: 2147483647 !important;
  pointer-events: none !important;
}

.bv6-team-panel,
.bv6-admin-panel,
.bv6-incoming,
.bv6-floating-stack,
.bv6-orb {
  cursor: none !important;
}

.bv6-team-panel *,
.bv6-admin-panel *,
.bv6-incoming * {
  cursor: none !important;
}

.bv6-team-panel,
.bv6-admin-panel {
  isolation: isolate !important;
}

.bv6-admin-panel:not(.hidden) {
  z-index: 12104 !important;
}

.bv6-team-panel:not(.hidden) {
  z-index: 12103 !important;
}

.bv6-floating-stack {
  z-index: 12105 !important;
}

.bv6-orb {
  pointer-events: auto !important;
}

@media (max-width: 760px) {
  .bv6-team-panel,
  .bv6-admin-panel {
    max-height: calc(100vh - 112px) !important;
    overflow-y: auto !important;
  }
}

/* BlackVault OS v6.2 - command panel fixes */
#cursorDot,
#cursorGlow {
  z-index: 2147483647 !important;
  pointer-events: none !important;
}

#musicDock,
#audioBtn,
#bv6MusicOpen {
  display: none !important;
}

.team-login-textarea {
  min-height: 70px !important;
  padding: 10px 12px !important;
  resize: vertical !important;
  line-height: 1.45 !important;
}

.bv6-admin-panel {
  width: min(760px, calc(100vw - 34px)) !important;
  max-height: min(780px, calc(100vh - 90px)) !important;
  overflow: auto !important;
}

.bv6-admin-summary {
  border-color: rgba(150, 92, 255, .32) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(160, 90, 255, .16), transparent 44%),
    rgba(255,255,255,.045) !important;
}

.bv6-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bv6-stat-grid span {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  padding: 10px;
  display: grid;
  gap: 4px;
}

.bv6-stat-grid b {
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.bv6-stat-grid small {
  color: rgba(235,235,245,.58);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
}

.bv6-member-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.bv6-member-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.bv6-member-edit input {
  min-width: 0;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: #fff;
  padding: 0 9px;
  outline: none;
}

.bv6-member-edit input:focus {
  border-color: color-mix(in srgb, var(--accent, #ff3158), transparent 28%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent, #ff3158), transparent 84%);
}

.bv6-team-panel,
.bv6-admin-panel,
.bv6-incoming,
.bv6-floating-stack,
.bv6-orb {
  cursor: none !important;
}

.bv6-team-panel *,
.bv6-admin-panel *,
.bv6-incoming * {
  cursor: none !important;
}

.bv6-admin-panel:not(.hidden) { z-index: 12104 !important; }
.bv6-team-panel:not(.hidden) { z-index: 12103 !important; }
.bv6-floating-stack { z-index: 12105 !important; }

body.bv-readonly-workspace #favoriteBtn,
body.bv-readonly-workspace #pageCoverBtn,
body.bv-readonly-workspace #pageCoverRemoveBtn,
body.bv-readonly-workspace #pageLockBtn,
body.bv-readonly-workspace #sideBookmarkBtn,
body.bv-readonly-workspace #sideDuplicateCheckBtn,
body.bv-readonly-workspace #subpageAddBtn,
body.bv-readonly-workspace .block-insert-row button,
body.bv-readonly-workspace .block-buttons button,
body.bv-readonly-workspace #notionAddRow button,
body.bv-readonly-workspace #newPageBtn,
body.bv-readonly-workspace #deletePageBtn,
body.bv-readonly-workspace #addChildBtn,
body.bv-readonly-workspace #duplicatePageBtn {
  opacity: .38 !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .bv6-admin-panel,
  .bv6-team-panel {
    right: 14px !important;
    left: 14px !important;
    bottom: 88px !important;
    width: auto !important;
    max-height: calc(100vh - 112px) !important;
  }

  .bv6-stat-grid,
  .bv6-member-edit {
    grid-template-columns: 1fr !important;
  }

  .bv6-admin-row {
    grid-template-columns: 1fr !important;
  }

  .bv6-actions {
    justify-content: flex-start !important;
  }
}


/* BlackVault OS v6.3 - team-only login + owner code + chat delete polish */
.team-code-input { letter-spacing: .34em; text-align: center; font-size: 18px; font-weight: 900; }
.bv6-code-card { border-color: rgba(255,190,90,.34) !important; box-shadow: 0 0 38px rgba(255,170,70,.11) !important; }
.bv6-owner-code { font-size: 38px; font-weight: 1000; letter-spacing: .24em; color: #ffd08a; text-shadow: 0 0 24px rgba(255,170,70,.42); padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(255,190,90,.22); background: rgba(255,160,55,.08); text-align:center; margin:10px 0; }
.bv6-msg-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:9px; }
.bv6-delete-msg { border:1px solid rgba(255,80,105,.28); background:rgba(255,50,80,.10); color:#ffb3c0; border-radius:10px; padding:5px 8px; font-size:11px; font-weight:800; }
.bv6-delete-msg:hover { border-color:rgba(255,80,105,.55); background:rgba(255,50,80,.18); color:#fff; }
#audioBtn, #musicDock { display:none !important; }

#accessRequestsBtn { display:none !important; }
/* BlackVault OS v6.3.1 - Read Only workspace layout fix */
body .page-panel .blocks {
  width: 100% !important;
}

body .page-panel .block {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: 26px minmax(0, 1fr) auto !important;
  align-items: start !important;
}

body .page-panel .block-content,
body .page-panel [contenteditable],
body .page-panel .block-text .block-content,
body .page-panel .block-heading .block-content,
body .page-panel .block-subheading .block-content,
body .page-panel .block-quote .block-content,
body .page-panel .block-code .block-content {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  white-space: pre-wrap !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* Force numbered / bullet / checklist blocks to stay horizontal */
body .page-panel .block-numbered .block-content,
body .page-panel .block-bulleted .block-content,
body .page-panel .block-checklist .block-content {
  display: block !important;
  width: 100% !important;
  white-space: pre-wrap !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Read-only users can select/copy text, but not edit */
body.bv-readonly .block-content,
body.readonly .block-content,
body .read-only .block-content {
  user-select: text !important;
  pointer-events: auto !important;
}

/* v7.4 — native multi-block text selection, including toggle headings. */
.page-panel #blocks,
.page-panel #blocks .block,
.page-panel #blocks .block-body,
.page-panel #blocks .toggle-head,
.page-panel #blocks .block-content,
.page-panel #blocks .block-content * {
  -webkit-user-select: text !important;
  user-select: text !important;
}

.page-panel #blocks ::selection {
  color: #f7fbff;
  background: rgba(44, 120, 210, .58);
}

.page-panel #blocks .drag-handle,
.page-panel #blocks .toggle-arrow,
.page-panel #blocks .block-actions,
.page-panel #blocks .list-marker {
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* Keep insertion drop targets for drag-and-drop without showing “Add block”. */
.page-panel #blocks .block-insert-row {
  min-height: 8px !important;
  height: 8px !important;
  opacity: 0 !important;
}

.page-panel #blocks .block-insert-row button {
  display: none !important;
}

.page-panel #blocks .block-insert-row.drag-over {
  opacity: 1 !important;
  background: color-mix(in srgb, var(--accent) 28%, transparent) !important;
}

/* Keep edit controls visually disabled for read-only viewers */
body.bv-readonly .block-actions,
body.readonly .block-actions,
body .read-only .block-actions {
  display: none !important;
}
/* BlackVault OS v6.3.1 - HARD FIX for read-only block text wrapping */
.page-panel .blocks {
  width: 100% !important;
  max-width: 100% !important;
}

.page-panel .block {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.page-panel .drag-handle {
  flex: 0 0 26px !important;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
}

.page-panel .block-content,
.page-panel .block-content *,
.page-panel .block-text .block-content,
.page-panel .block-heading .block-content,
.page-panel .block-subheading .block-content,
.page-panel .block-numbered .block-content,
.page-panel .block-bulleted .block-content,
.page-panel .block-checklist .block-content,
.page-panel .block-quote .block-content,
.page-panel .block-code .block-content {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  display: block !important;
  white-space: pre-wrap !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  letter-spacing: normal !important;
}

.page-panel .block-actions {
  flex: 0 0 auto !important;
}

/* Hide editing controls for read-only view */
.read-only .block-actions,
body.bv-readonly .block-actions,
body.readonly .block-actions {
  display: none !important;
}

/* Make read-only text selectable */
.read-only .block-content,
body.bv-readonly .block-content,
body.readonly .block-content {
  user-select: text !important;
  pointer-events: auto !important;
}

/* BlackVault OS v6.4 - Infrastructure UI polish */
.bv6-member-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.bv6-member-edit input,
.bv6-admin-card input {
  min-width: 0;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: #fff;
  padding: 0 9px;
  outline: none;
}
.bv6-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.bv6-stat-grid span {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 10px;
}
.bv6-stat-grid b { display:block; color:#fff; font-size:20px; }
.bv6-stat-grid small { color:rgba(235,235,245,.62); }
.bv6-session-row strong { color:#fff; }
.bv6-log-row {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255,255,255,.065);
  padding: 8px 0;
}
.bv6-log-row:first-child { border-top: 0; }
.bv6-log-row strong { color:#fff; font-size:12px; }
.bv6-log-row small { color:rgba(235,235,245,.62); font-size:11px; }
.bv6-recovery-out { margin-top: 10px; }
.bv6-owner-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: .08em;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
@media (max-width: 760px) {
  .bv6-member-edit { grid-template-columns: 1fr; }
  .bv6-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* BlackVault OS - VULNEX bottom dock */
.bvx-bottom-dock {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 13px;
  transform: translateX(-50%);
  z-index: 13000;
  width: min(1240px, calc(100vw - 26px));
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(var(--bvx-dock-columns, 11), minmax(68px, 1fr));
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border: 1px solid rgba(255, 45, 66, .92);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 18, 25, .88), rgba(5, 6, 10, .92)),
    radial-gradient(circle at 50% 0%, rgba(255, 40, 68, .26), transparent 42%);
  box-shadow:
    0 20px 70px rgba(0,0,0,.58),
    0 0 34px rgba(255, 24, 54, .32),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.bvx-bottom-dock::-webkit-scrollbar { display: none; }
.bvx-bottom-dock::before,
.bvx-bottom-dock::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.bvx-bottom-dock::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent),
    radial-gradient(circle at 8% 50%, rgba(0,220,255,.12), transparent 20%),
    radial-gradient(circle at 92% 50%, rgba(255,180,60,.10), transparent 20%);
}
.bvx-bottom-dock::after {
  left: 50%;
  top: -1px;
  width: 112px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff2d42, transparent);
  box-shadow: 0 0 22px rgba(255,45,66,.95);
}
.bvx-dock-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,45,66,.95), transparent);
}
.bvx-dock-notch {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(255,45,66,.9);
  background: rgba(7,8,12,.96);
  box-shadow: 0 0 18px rgba(255,45,66,.75);
}
.bvx-dock-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 28px auto;
  place-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 76px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.075);
  background: transparent;
  color: rgba(255,255,255,.88);
  padding: 8px 6px 7px;
}
.bvx-dock-item:last-of-type { border-right: 0; }
.bvx-dock-item:hover,
.bvx-dock-item.active {
  color: #fff;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 224, 255, .18), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.bvx-dock-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  color: #fff;
  font-size: 20px;
  text-shadow: 0 0 18px rgba(0,224,255,.36);
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.45));
}
.bvx-dock-label {
  display: block;
  width: 100%;
  max-width: 98px;
  color: inherit;
  font-size: 10.5px;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bvx-dock-panel {
  position: fixed;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  z-index: 13001;
  width: min(1080px, calc(100vw - 34px));
  max-height: min(640px, calc(100vh - 126px));
  overflow: auto;
  border: 1px solid rgba(0, 224, 255, .26);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(13, 16, 24, .97), rgba(5, 6, 10, .97)),
    radial-gradient(circle at 18% 0%, rgba(0, 224, 255, .12), transparent 32%),
    radial-gradient(circle at 82% 100%, rgba(255, 45, 66, .13), transparent 34%);
  color: #f7f8ff;
  box-shadow:
    0 30px 100px rgba(0,0,0,.66),
    0 0 40px rgba(0,224,255,.16),
    inset 0 1px 0 rgba(255,255,255,.08);
  padding: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.bvx-dock-panel.hidden {
  display: none !important;
}
.bvx-panel-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 13px;
}
.bvx-panel-kicker {
  color: rgba(0, 224, 255, .78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.bvx-panel-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: 0;
}
.bvx-panel-head h2 span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 224, 255, .35);
  border-radius: 16px;
  background: rgba(0, 224, 255, .08);
  box-shadow: 0 0 22px rgba(0, 224, 255, .13);
  font-size: 26px;
}
.bvx-panel-head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: rgba(238,242,255,.68);
  line-height: 1.5;
}
.bvx-panel-meta {
  display: inline-flex;
  align-items: center;
  max-width: 840px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(0,224,255,.18);
  border-radius: 8px;
  background: rgba(0,224,255,.055);
  color: rgba(238,242,255,.72);
  font-size: 12px;
  line-height: 1.45;
}
.bvx-panel-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: #fff;
  font-size: 22px;
}
.bvx-panel-close:hover {
  border-color: rgba(255,45,66,.72);
  background: rgba(255,45,66,.14);
}
.bvx-panel-actions {
  display: grid;
  grid-template-columns: minmax(220px,1fr) auto auto;
  gap: 10px;
  margin: 14px 0;
}
.bvx-panel-actions input,
.bvx-panel-actions button {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}
.bvx-panel-actions input {
  min-width: 0;
  padding: 0 13px;
}
.bvx-panel-actions input:focus {
  border-color: rgba(0,224,255,.56);
  box-shadow: 0 0 0 3px rgba(0,224,255,.10);
}
.bvx-panel-actions button {
  padding: 0 13px;
  font-weight: 850;
}
.bvx-panel-actions button:hover {
  border-color: rgba(0,224,255,.56);
  background: rgba(0,224,255,.11);
}
.bvx-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bvx-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bvx-category-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 166px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.058), rgba(255,255,255,.025));
  padding: 12px;
}
.bvx-category-card:hover {
  border-color: rgba(255,45,66,.48);
  box-shadow: 0 0 24px rgba(255,45,66,.10);
}
.bvx-page-card {
  min-height: 156px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,224,255,.09), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.024));
}
.bvx-page-card.has-image {
  padding-top: 0;
  overflow: hidden;
}
.bvx-page-card-media {
  height: 74px;
  margin: 0 -12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background-size: cover;
  background-position: center;
  filter: saturate(.92) contrast(1.05);
  opacity: .76;
}
.bvx-page-card-top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.bvx-page-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0,224,255,.2);
  border-radius: 8px;
  background: rgba(0,224,255,.075);
  color: #fff;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.bvx-category-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(238,242,255,.68);
  font-size: 12px;
}
.bvx-category-foot button,
.bvx-full-actions button,
.bvx-full-item button,
.bvx-tag-chip {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 11px;
  font-weight: 850;
}
.bvx-category-foot button:hover,
.bvx-full-actions button:hover,
.bvx-full-item button:hover,
.bvx-tag-chip:hover,
.bvx-tag-chip.active {
  border-color: rgba(0,224,255,.52);
  background: rgba(0,224,255,.12);
}
.bvx-full-actions {
  grid-template-columns: auto minmax(220px,1fr) auto auto;
}
.bvx-toolkit-actions {
  grid-template-columns: minmax(170px,.55fr) minmax(220px,1fr) auto auto;
}
.bvx-toolkit-target-line {
  margin: -4px 0 10px;
  color: rgba(0,224,255,.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bvx-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(0,224,255,.2);
  border-radius: 8px;
  background: rgba(0,224,255,.065);
  color: rgba(238,242,255,.82);
  font-size: 12px;
  white-space: nowrap;
}
.bvx-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 14px;
}
.bvx-tag-chip {
  min-height: 30px;
  color: rgba(238,242,255,.78);
  font-size: 12px;
}
.bvx-full-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bvx-full-item {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  padding: 12px;
}
.bvx-full-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bvx-full-item strong {
  display: block;
  color: #fff;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.bvx-full-item p {
  margin: 6px 0 0;
  color: rgba(238,242,255,.62);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.bvx-full-item pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  max-height: 190px;
  overflow: auto;
  border: 1px solid rgba(0,224,255,.13);
  border-radius: 8px;
  background: rgba(0,0,0,.34);
  color: rgba(236,249,255,.9);
  padding: 10px;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.bvx-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.bvx-item-tags span {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: rgba(238,242,255,.7);
  padding: 4px 7px;
  font-size: 11px;
}
.bvx-item-link {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(0,224,255,.78);
  text-decoration: none;
  font-size: 12px;
}
.bvx-item {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  padding: 12px;
}
.bvx-item-title {
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.bvx-item-route {
  margin-top: 6px;
  color: rgba(0,224,255,.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.bvx-item p {
  margin: 8px 0 0;
  color: rgba(238,242,255,.62);
  line-height: 1.45;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bvx-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  color: rgba(238,242,255,.7);
  padding: 18px;
  text-align: center;
}
@media (max-width: 1180px) {
  .bvx-bottom-dock {
    grid-template-columns: repeat(var(--bvx-dock-columns, 11), minmax(76px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bvx-bottom-dock::-webkit-scrollbar { display: none; }
  .bvx-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bvx-category-grid,
  .bvx-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bvx-bottom-dock {
    bottom: 10px;
    width: calc(100vw - 18px);
    min-height: 72px;
    border-radius: 15px;
  }
  .bvx-dock-item {
    min-height: 72px;
    padding: 7px 6px;
  }
  .bvx-dock-icon {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }
  .bvx-dock-label { font-size: 10px; }
  .bvx-panel-head h2 { font-size: 26px; }
  .bvx-dock-panel {
    bottom: 92px;
    width: calc(100vw - 18px);
    max-height: calc(100vh - 110px);
    padding: 13px;
  }
  .bvx-panel-head,
  .bvx-panel-actions,
  .bvx-full-actions,
  .bvx-category-grid,
  .bvx-full-grid,
  .bvx-item-grid {
    grid-template-columns: 1fr;
  }
}


/* === BlackVault requested UI patch: collapsible VULNEX bar + muted CSS mode === */
.bvx-bottom-dock {
  transition: transform .34s ease, opacity .24s ease, filter .24s ease, bottom .24s ease;
  will-change: transform, opacity;
}
.bvx-bottom-dock.is-collapsed {
  transform: translateX(-50%) translateY(calc(100% + 24px)) !important;
  opacity: .08;
  pointer-events: none;
  filter: blur(1px) saturate(.55);
}
.bvx-dock-toggle {
  position: fixed;
  left: 50%;
  bottom: 98px;
  transform: translateX(-50%);
  z-index: 13002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  min-height: 34px;
  border: 1px solid rgba(255, 45, 66, .82);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(19, 19, 27, .94), rgba(6, 7, 12, .96));
  color: rgba(255,255,255,.88);
  box-shadow: 0 14px 48px rgba(0,0,0,.56), 0 0 22px rgba(255,45,66,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font: 900 11px/1 Inter, system-ui, Segoe UI, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: bottom .28s ease, transform .24s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.bvx-dock-toggle span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,45,66,.16);
  color: #ff9aa7;
  font-size: 13px;
}
.bvx-dock-toggle:hover {
  border-color: rgba(0, 224, 255, .62);
  background: linear-gradient(180deg, rgba(18, 26, 31, .96), rgba(6, 9, 13, .98));
  transform: translateX(-50%) translateY(-1px);
}
.bvx-dock-toggle.is-collapsed {
  bottom: 14px;
  border-color: rgba(0,224,255,.44);
  box-shadow: 0 12px 44px rgba(0,0,0,.56), 0 0 18px rgba(0,224,255,.14);
}
.bvx-dock-toggle.is-collapsed span {
  background: rgba(0,224,255,.13);
  color: #9be7ee;
}
body.bvx-dock-collapsed .bvx-dock-panel {
  display: none !important;
}
body.focus-mode .bvx-dock-toggle { display: none !important; }
@media (max-width: 760px) {
  .bvx-dock-toggle { bottom: 88px; min-width: 108px; min-height: 32px; }
  .bvx-dock-toggle.is-collapsed { bottom: 12px; }
}

/* Low-color mode requested from Workspace Tools orb.
   It keeps the original layout/CSS active, but mutes glow, saturation and heavy neon. */
body.bv-muted-css-mode {
  --accent: #17d18f !important;
  --accent2: #1b8f6a !important;
  --bg: #030506 !important;
  --panel: rgba(7, 10, 12, .94) !important;
  --panel2: rgba(9, 13, 15, .86) !important;
  --line: rgba(255,255,255,.075) !important;
  --line2: rgba(255,255,255,.045) !important;
  --text: rgba(238,241,244,.90) !important;
  --muted: rgba(180,188,196,.58) !important;
  filter: saturate(.68) contrast(.96);
}
body.bv-muted-css-mode::before,
body.bv-muted-css-mode::after {
  opacity: .28 !important;
  filter: saturate(.45) blur(.2px) !important;
}
body.bv-muted-css-mode #bgCanvas,
body.bv-muted-css-mode #cursorGlow,
body.bv-muted-css-mode #cursorDot {
  opacity: .20 !important;
  filter: saturate(.35) blur(.2px) !important;
}
body.bv-muted-css-mode .app-shell,
body.bv-muted-css-mode .sidebar,
body.bv-muted-css-mode .topbar,
body.bv-muted-css-mode .page-panel,
body.bv-muted-css-mode .right-panel .side-card,
body.bv-muted-css-mode .data-panel,
body.bv-muted-css-mode .modal,
body.bv-muted-css-mode .workspace-current,
body.bv-muted-css-mode .utility-orb-panel,
body.bv-muted-css-mode .bvx-dock-panel {
  background: linear-gradient(180deg, rgba(8,10,13,.95), rgba(3,5,7,.96)) !important;
  border-color: rgba(255,255,255,.075) !important;
  box-shadow: 0 18px 64px rgba(0,0,0,.46) !important;
}
body.bv-muted-css-mode .hero-icon,
body.bv-muted-css-mode .brand-mark,
body.bv-muted-css-mode .utility-orb-main,
body.bv-muted-css-mode .bvx-dock-icon {
  background: rgba(23,209,143,.07) !important;
  border-color: rgba(23,209,143,.26) !important;
  box-shadow: 0 0 18px rgba(23,209,143,.10) !important;
  text-shadow: none !important;
  filter: saturate(.72) !important;
}
body.bv-muted-css-mode .bvx-bottom-dock {
  border-color: rgba(23,209,143,.32) !important;
  background: linear-gradient(180deg, rgba(8,11,13,.92), rgba(2,4,6,.95)) !important;
  box-shadow: 0 18px 58px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
body.bv-muted-css-mode .bvx-bottom-dock::before,
body.bv-muted-css-mode .bvx-bottom-dock::after,
body.bv-muted-css-mode .bvx-dock-line,
body.bv-muted-css-mode .bvx-dock-notch {
  opacity: .30 !important;
  box-shadow: none !important;
}
body.bv-muted-css-mode .bvx-dock-item:hover,
body.bv-muted-css-mode .bvx-dock-item.active,
body.bv-muted-css-mode .top-btn:hover,
body.bv-muted-css-mode .wide-btn:hover,
body.bv-muted-css-mode .utility-orb-panel button:hover,
body.bv-muted-css-mode .utility-orb-panel button.active {
  background: rgba(23,209,143,.075) !important;
  border-color: rgba(23,209,143,.22) !important;
  color: rgba(248,250,252,.92) !important;
  box-shadow: none !important;
}
body.bv-muted-css-mode h1,
body.bv-muted-css-mode h2,
body.bv-muted-css-mode .page-title,
body.bv-muted-css-mode .brand-title,
body.bv-muted-css-mode .bvx-panel-head h2,
body.bv-muted-css-mode .block-heading {
  color: rgba(244,247,250,.92) !important;
  text-shadow: none !important;
}
body.bv-muted-css-mode a,
body.bv-muted-css-mode .bvx-item-link,
body.bv-muted-css-mode .bvx-panel-kicker,
body.bv-muted-css-mode .crumb-dot {
  color: rgba(91, 214, 166, .78) !important;
}
body.bv-muted-css-mode button,
body.bv-muted-css-mode input,
body.bv-muted-css-mode textarea,
body.bv-muted-css-mode [contenteditable="true"] {
  box-shadow: none !important;
}
body.bv-muted-css-mode .utility-orb-panel button[data-orb-action="mutedCss"] {
  color: rgba(91, 214, 166, .95) !important;
}

/* BlackVault OS v6.6 - server-managed dynamic dock */
.bvx-dock-status {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  min-width: min(480px, calc(100vw - 28px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(238,242,255,.76);
  font: 800 12px/1.3 Inter, system-ui, Segoe UI, sans-serif;
  text-align: center;
}
.bvx-dock-status button {
  border: 1px solid rgba(0,224,255,.34);
  border-radius: 999px;
  background: rgba(0,224,255,.08);
  color: #dffcff;
  padding: 7px 12px;
  cursor: pointer;
}
.bvx-custom-content {
  margin-top: 14px;
  border: 1px solid rgba(0,224,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 16px;
}
.bvx-custom-content.bvx-linked-content { margin-bottom: 14px; }
.bvx-custom-content pre {
  margin: 0;
  color: rgba(242,247,255,.88);
  font: 500 13px/1.7 Inter, system-ui, Segoe UI, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bvx-edit-navigation[hidden] { display: none !important; }
.bvx-edit-navigation {
  position: fixed;
  right: max(13px, calc((100vw - 1240px) / 2));
  bottom: 98px;
  z-index: 13002;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(0,224,255,.46);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17,24,30,.94), rgba(5,8,12,.97));
  color: rgba(245,252,255,.92);
  box-shadow: 0 14px 48px rgba(0,0,0,.56), 0 0 22px rgba(0,224,255,.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0 13px;
  font: 900 11px/1 Inter, system-ui, Segoe UI, sans-serif;
  cursor: pointer;
  transition: bottom .28s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}
.bvx-edit-navigation span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,224,255,.12);
  color: #9be7ee;
}
.bvx-edit-navigation:hover {
  transform: translateY(-1px);
  border-color: rgba(255,45,66,.76);
  background: linear-gradient(180deg, rgba(28,20,26,.96), rgba(10,7,12,.98));
}
body.bvx-dock-collapsed .bvx-edit-navigation { bottom: 14px; }
body.focus-mode .bvx-edit-navigation { display: none !important; }

body.bvx-navigation-manager-open { overflow: hidden; }
.bvx-nav-manager.hidden { display: none !important; }
.bvx-nav-manager {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1,3,7,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bvx-nav-manager-dialog {
  width: min(1160px, calc(100vw - 34px));
  max-height: min(820px, calc(100vh - 34px));
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(0,224,255,.30);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(0,224,255,.12), transparent 31%),
    radial-gradient(circle at 90% 100%, rgba(255,45,66,.14), transparent 34%),
    linear-gradient(180deg, rgba(13,16,24,.99), rgba(5,6,10,.99));
  color: #f5f7ff;
  box-shadow: 0 34px 120px rgba(0,0,0,.76), 0 0 44px rgba(0,224,255,.12), inset 0 1px 0 rgba(255,255,255,.08);
  font-family: Inter, system-ui, Segoe UI, sans-serif;
}
.bvx-nav-manager-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 18px 20px 15px;
}
.bvx-nav-manager-head > div > span {
  color: rgba(0,224,255,.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bvx-nav-manager-head h2 { margin: 5px 0 4px; color: #fff; font-size: 27px; }
.bvx-nav-manager-head p { margin: 0; color: rgba(238,242,255,.62); font-size: 12px; line-height: 1.6; }
.bvx-nav-manager-head > button,
.bvx-nav-manager-toolbar button,
.bvx-nav-manager-foot button,
.bvx-nav-row-actions button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: rgba(246,249,255,.88);
  min-height: 34px;
  padding: 7px 11px;
  font: 800 11px/1 Inter, system-ui, Segoe UI, sans-serif;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.bvx-nav-manager-head > button { width: 36px; height: 36px; padding: 0; border-radius: 12px; font-size: 22px; }
.bvx-nav-manager button:hover:not(:disabled) { border-color: rgba(0,224,255,.48); background: rgba(0,224,255,.08); transform: translateY(-1px); }
.bvx-nav-manager button:disabled { opacity: .36; cursor: not-allowed; }
.bvx-nav-manager button.primary {
  border-color: rgba(255,45,66,.72);
  background: linear-gradient(180deg, rgba(255,45,66,.24), rgba(135,17,38,.22));
  color: #fff;
}
.bvx-nav-manager button.danger { border-color: rgba(255,45,66,.30); color: #ffabb5; }
.bvx-nav-manager-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 11px 20px;
  background: rgba(255,255,255,.018);
}
.bvx-nav-manager-toolbar > span { color: rgba(238,242,255,.58); font-size: 11px; }
.bvx-nav-manager-status { min-width: 0; margin-inline-start: auto; overflow-wrap: anywhere; }
.bvx-nav-manager-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(330px,.88fr) minmax(390px,1.12fr);
  direction: ltr;
}
.bvx-nav-manager-list-wrap,
.bvx-nav-editor { min-width: 0; min-height: 0; direction: rtl; }
.bvx-nav-manager-list-wrap {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 14px;
}
.bvx-nav-manager-list-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px 10px; }
.bvx-nav-manager-list-title strong { color: #fff; font-size: 13px; }
.bvx-nav-manager-list-title small { color: rgba(238,242,255,.48); font-size: 10px; }
.bvx-nav-manager-list { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 7px; padding: 1px 1px 10px; }
.bvx-nav-manager-row {
  display: grid;
  grid-template-columns: 25px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  padding: 6px 7px;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}
.bvx-nav-manager-row:hover { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.bvx-nav-manager-row.selected { border-color: rgba(0,224,255,.42); background: rgba(0,224,255,.055); }
.bvx-nav-manager-row.is-dragging { opacity: .42; }
.bvx-nav-manager-row.is-drop-target { border-color: rgba(255,45,66,.72); box-shadow: inset 0 0 0 1px rgba(255,45,66,.22); }
.bvx-nav-drag-handle { color: rgba(238,242,255,.42); font-size: 15px; text-align: center; cursor: grab; user-select: none; }
.bvx-nav-manager-row:active .bvx-nav-drag-handle { cursor: grabbing; }
.bvx-nav-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 3px;
  text-align: right;
  cursor: pointer;
}
.bvx-nav-row-main > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(0,224,255,.07); font-size: 18px; }
.bvx-nav-row-main > span:last-child { min-width: 0; display: grid; gap: 4px; }
.bvx-nav-row-main strong,
.bvx-nav-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bvx-nav-row-main strong { font-size: 11.5px; }
.bvx-nav-row-main small { direction: ltr; color: rgba(238,242,255,.47); font-size: 9.5px; text-align: left; }
.bvx-nav-row-actions { display: flex; gap: 4px; }
.bvx-nav-row-actions button { min-width: 29px; min-height: 29px; padding: 5px 7px; }
.bvx-nav-manager-empty,
.bvx-nav-editor-empty { border: 1px dashed rgba(255,255,255,.14); border-radius: 14px; color: rgba(238,242,255,.62); padding: 22px; text-align: center; line-height: 1.7; }
.bvx-nav-editor { overflow: auto; padding: 17px 18px 22px; }
.bvx-nav-editor-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.bvx-nav-editor-title > div { display: grid; gap: 4px; }
.bvx-nav-editor-title span { color: rgba(0,224,255,.72); font-size: 10px; font-weight: 900; }
.bvx-nav-editor-title strong { color: #fff; font-size: 17px; }
.bvx-nav-editor-title small { color: rgba(238,242,255,.46); font-size: 10px; }
.bvx-nav-editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 12px; }
.bvx-nav-editor-grid label { min-width: 0; display: grid; align-content: start; gap: 7px; color: rgba(238,242,255,.68); font-size: 11px; font-weight: 800; }
.bvx-nav-editor-grid label.wide { grid-column: 1 / -1; }
.bvx-nav-editor-grid input,
.bvx-nav-editor-grid textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 11px;
  outline: 0;
  background: rgba(1,3,8,.56);
  color: #f7f9ff;
  padding: 10px 11px;
  font: 500 12px/1.55 Inter, system-ui, Segoe UI, sans-serif;
  resize: vertical;
}
.bvx-nav-editor-grid input:focus,
.bvx-nav-editor-grid textarea:focus { border-color: rgba(0,224,255,.48); box-shadow: 0 0 0 3px rgba(0,224,255,.07); }
.bvx-nav-editor-note { margin: 12px 0 0; color: rgba(238,242,255,.46); font-size: 10.5px; line-height: 1.65; }
.bvx-nav-manager-foot {
  display: flex;
  justify-content: flex-start;
  gap: 9px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 20px;
  background: rgba(0,0,0,.16);
}
.bvx-nav-manager-foot button { min-width: 112px; }

body.bv-muted-css-mode .bvx-edit-navigation,
body.bv-muted-css-mode .bvx-nav-manager-dialog {
  border-color: rgba(23,209,143,.28) !important;
  background: linear-gradient(180deg, rgba(8,11,13,.98), rgba(3,5,7,.99)) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.58) !important;
}

@media (max-width: 880px) {
  .bvx-nav-manager { padding: 10px; }
  .bvx-nav-manager-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .bvx-nav-manager-body { grid-template-columns: 1fr; overflow: auto; }
  .bvx-nav-manager-list-wrap { min-height: 280px; max-height: 42vh; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .bvx-nav-editor { overflow: visible; }
}
@media (max-width: 760px) {
  .bvx-edit-navigation { right: 10px; bottom: 88px; min-height: 32px; padding: 0 10px; }
  body.bvx-dock-collapsed .bvx-edit-navigation { bottom: 12px; }
  .bvx-nav-manager { padding: 0; }
  .bvx-nav-manager-dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; border-left: 0; border-right: 0; }
  .bvx-nav-manager-head { padding: 14px; }
  .bvx-nav-manager-head h2 { font-size: 22px; }
  .bvx-nav-manager-toolbar { flex-wrap: wrap; padding: 10px 14px; }
  .bvx-nav-manager-status { flex: 1 1 100%; margin-inline-start: 0; }
  .bvx-nav-manager-row { grid-template-columns: 22px minmax(0,1fr); }
  .bvx-nav-row-actions { grid-column: 2; justify-content: flex-start; }
  .bvx-nav-editor-grid { grid-template-columns: minmax(0,1fr) 92px; }
  .bvx-nav-manager-foot { padding: 10px 14px; }
  .bvx-nav-manager-foot button { flex: 1; min-width: 0; }
}

/* Notion-style toggle heading — visual and interaction scope only. */
.block-toggle {
  padding-block: 1px !important;
}

.block-toggle .block-body {
  min-width: 0;
}

.block-toggle .toggle-head,
body.v24-notion-polish .block-toggle .toggle-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 2px;
  min-height: 32px;
  margin: 0;
  padding: 3px 2px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, .92) !important;
  transition: background-color .12s ease;
}

.block-toggle .toggle-head:hover,
body.v24-notion-polish .block-toggle .toggle-head:hover {
  background: rgba(255, 255, 255, .035) !important;
}

.block-toggle .toggle-arrow {
  appearance: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, .54);
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}

.block-toggle .toggle-arrow:hover {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .90);
}

.block-toggle .toggle-arrow:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent), transparent 40%);
  outline-offset: 1px;
}

.block-toggle .toggle-arrow-icon {
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid currentColor;
  transform: rotate(0deg);
  transform-origin: 3px 50%;
  transition: transform .16s ease;
}

.block-toggle .toggle-head.is-open .toggle-arrow-icon {
  transform: rotate(90deg);
}

.block-toggle .toggle-head .block-content,
body.v24-notion-polish .block-toggle .toggle-head .block-content {
  min-width: 0;
  min-height: 24px;
  padding: 1px 3px 2px !important;
  border-radius: 3px;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, .92) !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: -.012em !important;
}

.block-toggle .toggle-head .block-content:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, .32) !important;
  font-weight: 500;
}

.block-toggle .toggle-body,
body.v24-notion-polish .block-toggle .toggle-body {
  min-height: 28px;
  margin: 1px 0 3px 26px !important;
  padding: 3px 6px 5px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* The editor has a later !important rule that forces editable blocks to display.
   Keep a closed toggle hidden despite that general rule. */
.page-panel .block-toggle .toggle-body.hidden,
.page-panel .block-toggle .toggle-body[hidden],
body.v24-notion-polish .page-panel .block-toggle .toggle-body.hidden,
body.v24-notion-polish .page-panel .block-toggle .toggle-body[hidden] {
  display: none !important;
}

.block-toggle .toggle-body:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, .28);
  pointer-events: none;
}

.block-toggle .toggle-body:focus,
.block-toggle .toggle-head .block-content:focus {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .block-toggle .toggle-head .block-content,
  body.v24-notion-polish .block-toggle .toggle-head .block-content {
    font-size: 16px !important;
  }
}

/* =========================================================
   BlackVault OS v7 — complete reference-platform redesign
   ========================================================= */
:root {
  --sidebar-w: 214px;
  --bv7-surface: #070b10;
  --bv7-panel: rgba(7, 11, 16, .88);
  --bv7-panel-strong: rgba(6, 10, 15, .96);
  --bv7-line: rgba(139, 153, 174, .15);
  --bv7-line-bright: rgba(255, 49, 88, .38);
  --bv7-muted: #8d96a6;
  --bv7-bg-overlay: .72;
  --bv7-bg-blur: 0px;
  --bv7-radius: 9px;
}

body.bv7-reference-shell {
  overflow: hidden;
  color: #f6f7f9;
  background: #030507 !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.bv7-reference-shell::before,
body.bv7-reference-shell::after {
  opacity: .16 !important;
  pointer-events: none;
}

body.bv7-reference-shell #bgCanvas {
  opacity: .12 !important;
  filter: saturate(.65) contrast(1.05) !important;
}

body.bv7-reference-shell .app-shell {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: var(--sidebar-w) 0 minmax(0, 1fr) !important;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  background: transparent;
}

body.bv7-reference-shell .sidebar-resize {
  display: none !important;
}

body.bv7-reference-shell .sidebar {
  position: relative;
  z-index: 8;
  width: var(--sidebar-w);
  min-width: 0;
  height: 100vh;
  padding: 0 9px 10px;
  border: 0 !important;
  border-right: 1px solid var(--bv7-line) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(5, 8, 12, .99), rgba(3, 6, 9, .985)) !important;
  box-shadow: 12px 0 44px rgba(0, 0, 0, .28) !important;
  overflow: hidden;
}

body.bv7-reference-shell .brand {
  height: 43px;
  margin: 0 -9px 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--bv7-line);
  gap: 8px;
}

body.bv7-reference-shell .brand-mark {
  width: 22px !important;
  height: 22px !important;
  padding: 3px !important;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 45%) !important;
  border-radius: 7px !important;
  background: color-mix(in srgb, var(--accent), transparent 90%) !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 75%) !important;
}

body.bv7-reference-shell .brand-title {
  color: color-mix(in srgb, var(--accent), white 18%);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -.01em;
}

body.bv7-reference-shell .brand-subtitle {
  display: none;
}

body.bv7-reference-shell .workspace-switcher {
  margin: 9px 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.bv7-reference-shell .workspace-kicker {
  display: none;
}

body.bv7-reference-shell .workspace-current {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
}

body.bv7-reference-shell .workspace-current:hover {
  border-color: var(--bv7-line);
  background: rgba(255, 255, 255, .055);
}

body.bv7-reference-shell .sidebar-actions {
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 3px 0 8px;
}

body.bv7-reference-shell .mini-btn {
  min-width: 0;
  height: 25px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--bv7-muted);
  font-size: 12px;
}

body.bv7-reference-shell .sidebar-section-title {
  margin: 8px 4px 5px;
  color: #697281;
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.bv7-reference-shell .tree {
  min-height: 0;
  padding: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}

body.bv7-reference-shell .tree-node {
  margin: 0;
}

body.bv7-reference-shell .tree-row {
  min-height: 24px;
  margin: 0;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #aab1bd;
  font-size: 10.5px;
  line-height: 1.2;
  gap: 4px;
}

body.bv7-reference-shell .tree-row:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, .045);
  color: #e7e9ed;
}

body.bv7-reference-shell .tree-row.active {
  border-color: rgba(255,255,255,.025);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 86%), rgba(255,255,255,.025)) !important;
  color: color-mix(in srgb, var(--accent), white 18%);
  box-shadow: inset 2px 0 0 var(--accent);
}

body.bv7-reference-shell .tree-icon {
  width: 15px;
  font-size: 10px;
  filter: saturate(.75);
}

body.bv7-reference-shell .tree-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .tree-type {
  display: none;
}

body.bv7-reference-shell .sidebar-footer {
  margin: auto -9px -10px;
  padding: 8px 9px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-top: 1px solid var(--bv7-line);
  background: rgba(2,4,7,.86);
}

body.bv7-reference-shell .sidebar-footer .footer-btn {
  min-width: 0;
  min-height: 27px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255,255,255,.025);
  color: #7f8897;
  font-size: 8.5px;
}

body.bv7-reference-shell .workspace {
  position: relative;
  z-index: 1;
  grid-column: 3 !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0;
  height: 100vh;
  padding: 0 24px 76px !important;
  background: transparent !important;
  overflow: auto;
  isolation: isolate;
}

body.bv7-reference-shell .workspace > :not(.bv7-workspace-backdrop) {
  position: relative;
  z-index: 2;
}

body.bv7-reference-shell .bv7-workspace-backdrop {
  position: fixed;
  z-index: 0;
  inset: 40px 0 0 var(--sidebar-w);
  background-color: var(--bv7-surface);
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.018);
  filter: blur(var(--bv7-bg-blur)) saturate(.94) contrast(1.06);
  transform-origin: center top;
  pointer-events: none;
}

body.bv7-reference-shell .bv7-workspace-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,5,8,calc(var(--bv7-bg-overlay) * .26)) 0, rgba(2,5,8,calc(var(--bv7-bg-overlay) * .78)) 30%, rgba(3,7,10,.86) 70%, #030609 100%),
    linear-gradient(90deg, rgba(2,5,8,.28), transparent 45%, rgba(2,5,8,.42));
}

body.bv7-reference-shell .bv7-workspace-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,49,88,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,49,88,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

body.bv7-reference-shell .topbar {
  position: sticky !important;
  z-index: 20 !important;
  top: 0;
  width: auto;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 -24px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bv7-line) !important;
  border-radius: 0 !important;
  background: rgba(3, 6, 9, .88) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

body.bv7-reference-shell .crumbs {
  min-width: 0;
  gap: 5px;
  color: #8c95a3;
  font-size: 10px;
}

body.bv7-reference-shell .crumbs .nav-icon {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b3bac5;
  font-size: 20px;
}

body.bv7-reference-shell #forwardBtn,
body.bv7-reference-shell .crumb-dot {
  display: none !important;
}

body.bv7-reference-shell #breadcrumb {
  max-width: min(30vw, 330px);
  overflow: hidden;
  color: #7f8997;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .top-actions {
  display: flex !important;
  flex: 1;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

body.bv7-reference-shell .top-actions > :not(#commandBtn):not(#newPageBtn):not(#sessionClock):not(.team-status-chip):not(.team-logout-btn) {
  display: none !important;
}

body.bv7-reference-shell #commandBtn {
  display: flex !important;
  align-items: center;
  gap: 7px;
  width: min(274px, 30vw);
  height: 27px;
  padding: 0 9px;
  border: 1px solid var(--bv7-line);
  border-radius: 5px;
  background: rgba(4, 8, 12, .72);
  color: #747e8d;
  font-size: 9.5px;
  text-align: left;
}

body.bv7-reference-shell #commandBtn span:nth-child(2) {
  flex: 1;
}

body.bv7-reference-shell #commandBtn kbd {
  border: 0;
  background: transparent;
  color: #57616f;
  font-size: 8px;
}

body.bv7-reference-shell #newPageBtn,
body.bv7-reference-shell .team-logout-btn {
  display: inline-flex !important;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 9px;
}

body.bv7-reference-shell #sessionClock,
body.bv7-reference-shell .team-status-chip {
  min-height: 27px;
  height: 27px;
  border-radius: 5px;
  font-size: 9px;
}

body.bv7-reference-shell .bv7-top-utilities {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
}

body.bv7-reference-shell .bv7-top-utilities button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8f98a6;
  font-size: 14px;
}

body.bv7-reference-shell .bv7-top-utilities button:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

body.bv7-reference-shell .hero,
body.bv7-reference-shell .compact-hero {
  display: flex !important;
  align-items: center;
  width: 100%;
  max-width: none !important;
  min-height: 100px;
  margin: 0 !important;
  padding: 12px 4px 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

body.bv7-reference-shell .hero-icon {
  flex: 0 0 78px;
  width: 78px !important;
  height: 78px !important;
  margin: 0 14px 0 0;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 42%) !important;
  border-radius: 10px !important;
  background: rgba(4, 7, 10, .76) !important;
  box-shadow: inset 0 0 28px rgba(255,255,255,.018), 0 10px 32px rgba(0,0,0,.28) !important;
  color: var(--accent);
  font-size: 36px !important;
}

body.bv7-reference-shell .hero-copy {
  min-width: 0;
}

body.bv7-reference-shell .hero h1 {
  min-height: 32px;
  margin: 0 0 3px !important;
  color: #f8f8fa !important;
  font-size: clamp(22px, 2.2vw, 29px) !important;
  font-weight: 780 !important;
  line-height: 1.15 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}

body.bv7-reference-shell .hero p {
  max-width: 760px;
  margin: 0 !important;
  color: #c4c9d1 !important;
  font-size: 10.5px !important;
  line-height: 1.45;
  text-shadow: 0 2px 12px #000;
}

body.bv7-reference-shell .bv7-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 8px;
  color: #798392;
  font-size: 8.5px;
}

body.bv7-reference-shell .bv7-page-meta span {
  position: relative;
}

body.bv7-reference-shell .bv7-page-meta span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

body.bv7-reference-shell .bv7-page-meta strong {
  color: #b7bec8;
  font-weight: 560;
}

body.bv7-reference-shell .workspace-dashboard {
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin: 0 auto 12px !important;
}

body.bv7-reference-shell .bv7-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

body.bv7-reference-shell .bv7-metric-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 11px;
  border: 1px solid var(--bv7-line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(11,17,23,.86), rgba(6,10,14,.76));
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(12px);
}

body.bv7-reference-shell .bv7-metric-card:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  background: rgba(13,20,27,.92);
  transform: translateY(-1px);
}

body.bv7-reference-shell .bv7-metric-card > span:last-child {
  display: grid;
  gap: 2px;
}

body.bv7-reference-shell .bv7-metric-card small {
  color: #9aa2ae;
  font-size: 9px;
}

body.bv7-reference-shell .bv7-metric-card strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

body.bv7-reference-shell .bv7-metric-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: color-mix(in srgb, currentColor, transparent 88%);
  font-size: 15px;
}

body.bv7-reference-shell .bv7-metric-icon.is-vulnerability { color: #ff3158; }
body.bv7-reference-shell .bv7-metric-icon.is-tool { color: #4b9cff; }
body.bv7-reference-shell .bv7-metric-icon.is-writeup { color: #a273ff; }
body.bv7-reference-shell .bv7-metric-icon.is-lab { color: #34d684; }
body.bv7-reference-shell .bv7-metric-icon.is-note { color: #f0a62d; }

body.bv7-reference-shell .bv7-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin: 0 2px 3px;
}

body.bv7-reference-shell .bv7-dashboard-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

body.bv7-reference-shell .bv7-section-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 82%);
  color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 72%);
}

body.bv7-reference-shell .bv7-dashboard-head > button {
  height: 27px;
  padding: 0 12px;
  border: 1px solid var(--bv7-line);
  border-radius: 5px;
  background: rgba(7,11,16,.72);
  color: #a7aeba;
  font-size: 8.5px;
}

body.bv7-reference-shell .bv7-filter-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
  padding: 2px;
  overflow-x: auto;
}

body.bv7-reference-shell .bv7-filter-tabs button {
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: rgba(6,10,14,.64);
  color: #89929f;
  font-size: 8.5px;
  white-space: nowrap;
}

body.bv7-reference-shell .bv7-filter-tabs button.active {
  border-bottom-color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 91%);
  color: color-mix(in srgb, var(--accent), white 18%);
}

body.bv7-reference-shell .bv7-topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 7px;
}

body.bv7-reference-shell .bv7-topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 144px;
  padding: 14px 9px 11px;
  border: 1px solid var(--bv7-line);
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(10,16,22,.94), rgba(5,9,13,.88));
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

body.bv7-reference-shell .bv7-topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent), transparent 78%), transparent 60%);
  transition: opacity .16s ease;
}

body.bv7-reference-shell .bv7-topic-card:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 52%);
  transform: translateY(-2px);
}

body.bv7-reference-shell .bv7-topic-card:hover::before {
  opacity: .7;
}

body.bv7-reference-shell .bv7-topic-card > * {
  position: relative;
  z-index: 1;
}

body.bv7-reference-shell .bv7-topic-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 30px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent), transparent 60%));
}

body.bv7-reference-shell .bv7-topic-card.is-tool .bv7-topic-icon { color: #4b9cff; }
body.bv7-reference-shell .bv7-topic-card.is-lab .bv7-topic-icon { color: #34d684; }
body.bv7-reference-shell .bv7-topic-card.is-writeup .bv7-topic-icon { color: #a273ff; }
body.bv7-reference-shell .bv7-topic-card.is-note .bv7-topic-icon { color: #f0a62d; }

body.bv7-reference-shell .bv7-topic-card strong {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .bv7-topic-card small {
  margin-top: 3px;
  color: #7f8997;
  font-size: 8px;
}

body.bv7-reference-shell .bv7-topic-status {
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: color-mix(in srgb, var(--accent), white 10%);
  font-size: 7.5px;
}

body.bv7-reference-shell .bv7-topic-progress {
  position: absolute;
  left: 10px;
  right: 40px;
  bottom: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

body.bv7-reference-shell .bv7-topic-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #28d98b;
  box-shadow: 0 0 8px rgba(40,217,139,.45);
}

body.bv7-reference-shell .bv7-topic-count {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: #6f7885;
  font-size: 7px;
}

body.bv7-reference-shell .bv7-dashboard-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--bv7-line);
  border-radius: 8px;
  background: rgba(5,9,13,.55);
  color: #a4acb8;
}

body.bv7-reference-shell .bv7-dashboard-empty small {
  color: #747e8c;
}

body.bv7-reference-shell .content-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 212px !important;
  align-items: start;
  gap: 12px !important;
  width: 100%;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.bv7-reference-shell .page-panel,
body.bv7-reference-shell .side-card {
  border: 1px solid var(--bv7-line) !important;
  border-radius: var(--bv7-radius) !important;
  background: var(--bv7-panel) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.22) !important;
  backdrop-filter: blur(15px);
}

body.bv7-reference-shell .page-panel {
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  min-height: 460px;
  padding: 0 14px 28px !important;
  overflow: visible;
}

body.bv7-reference-shell .panel-toolbar {
  position: sticky;
  z-index: 8;
  top: 40px;
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0 -14px 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--bv7-line);
  background: rgba(6, 10, 14, .94);
  backdrop-filter: blur(15px);
}

body.bv7-reference-shell .panel-title {
  color: #aeb5c0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.bv7-reference-shell .block-buttons {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.bv7-reference-shell .block-buttons::-webkit-scrollbar {
  display: none;
}

body.bv7-reference-shell .block-buttons button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #77818f;
  font-size: 7.5px;
  white-space: nowrap;
}

body.bv7-reference-shell .block-buttons button:hover {
  border-color: var(--bv7-line);
  background: rgba(255,255,255,.05);
  color: #d8dce2;
}

body.bv7-reference-shell .drop-hint {
  display: none !important;
}

body.bv7-reference-shell .subpages-panel {
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.bv7-reference-shell .subpages-title {
  min-height: 25px;
  color: #717b89;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

body.bv7-reference-shell .subpage-row,
body.bv7-reference-shell .empty-subpages {
  min-height: 28px;
  border-radius: 4px;
  background: transparent;
  color: #9aa3af;
  font-size: 9.5px;
}

body.bv7-reference-shell .subpage-row:hover {
  background: rgba(255,255,255,.035);
}

body.bv7-reference-shell .blocks {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 6px 0 24px;
}

body.bv7-reference-shell .block,
body.bv7-reference-shell .bv7-notion-block {
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
  align-items: start;
  gap: 3px;
  min-height: 28px;
  margin: 0;
  padding: 1px 2px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.bv7-reference-shell .block:hover {
  border-color: rgba(255,255,255,.025) !important;
  background: rgba(255,255,255,.018) !important;
}

body.bv7-reference-shell .drag-handle {
  display: grid;
  place-items: center;
  width: 18px;
  min-height: 25px;
  opacity: 0;
  color: #596372;
  font-size: 10px;
}

body.bv7-reference-shell .block:hover > .drag-handle {
  opacity: .8;
}

body.bv7-reference-shell .block-body {
  min-width: 0;
}

body.bv7-reference-shell .block-content {
  min-height: 25px;
  padding: 3px 4px !important;
  border: 0 !important;
  border-radius: 3px;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #c9ced6;
  font-size: var(--editor-font-size, 14px);
  line-height: 1.55;
  white-space: pre-wrap;
}

body.bv7-reference-shell .block-content:focus {
  background: rgba(255,255,255,.018) !important;
}

body.bv7-reference-shell .block-heading .block-content {
  margin-top: 10px;
  color: #f5f6f8 !important;
  font-size: 20px !important;
  font-weight: 720 !important;
  letter-spacing: -.025em;
}

body.bv7-reference-shell .block-subheading .block-content {
  margin-top: 7px;
  color: #f1f3f5 !important;
  font-size: 16px !important;
  font-weight: 680 !important;
}

body.bv7-reference-shell .block-heading3 .block-content,
body.bv7-reference-shell .block-heading4 .block-content {
  margin-top: 4px;
  color: #e9ecf0 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

body.bv7-reference-shell .block-quote .block-content {
  margin: 3px 0;
  padding-left: 12px !important;
  border-left: 2px solid var(--accent) !important;
  border-radius: 0;
  color: #adb5c0;
  font-style: italic;
}

body.bv7-reference-shell .callout-line {
  border: 1px solid var(--bv7-line);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}

body.bv7-reference-shell .code-card {
  margin: 4px 0;
  border: 1px solid var(--bv7-line);
  border-radius: 6px;
  background: rgba(3,6,9,.88);
}

body.bv7-reference-shell .block-code .block-content {
  min-height: 74px;
  color: #aeb7c7;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 11px !important;
}

body.bv7-reference-shell .block-actions {
  align-items: center;
  gap: 2px;
  min-height: 26px;
  opacity: 0;
}

body.bv7-reference-shell .block:hover .block-actions,
body.bv7-reference-shell .block:focus-within .block-actions {
  opacity: 1;
}

body.bv7-reference-shell .block-actions .icon-btn {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #646e7c;
  font-size: 10px;
}

body.bv7-reference-shell .block-actions .icon-btn:hover {
  border-color: var(--bv7-line);
  background: rgba(255,255,255,.05);
  color: #d9dde3;
}

body.bv7-reference-shell .block-insert-row {
  width: min(100%, 900px);
  min-height: 14px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity .12s ease;
}

body.bv7-reference-shell .block-insert-row:hover,
body.bv7-reference-shell .block:focus-within + .block-insert-row {
  opacity: 1;
}

body.bv7-reference-shell .block-insert-row button {
  min-height: 20px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #687281;
  font-size: 8px;
}

body.bv7-reference-shell .notion-add-row {
  display: flex;
  flex-wrap: wrap;
  width: min(100%, 900px);
  margin: 5px auto 0;
  padding: 6px;
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 5px;
  background: transparent;
  color: #687281;
  overflow: hidden;
}

body.bv7-reference-shell .notion-add-row button {
  min-height: 23px;
  border-radius: 4px;
  color: #76808e;
  font-size: 8px;
}

body.bv7-reference-shell .block-image img {
  width: auto;
  max-width: min(100%, 760px);
  max-height: 430px;
  border: 1px solid var(--bv7-line);
  border-radius: 7px;
  object-fit: contain;
}

body.bv7-reference-shell .right-panel {
  position: sticky !important;
  top: 51px !important;
  display: flex !important;
  flex-direction: column;
  gap: 9px !important;
  max-height: calc(100vh - 63px);
  padding-bottom: 92px !important;
  overflow: auto;
  scroll-padding-bottom: 92px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}

body.bv7-reference-shell .right-panel .side-card {
  flex: 0 0 auto;
  padding: 11px !important;
}

body.bv7-reference-shell .side-card[data-bv7-card="mini-table-of-contents"] { order: 1; }
body.bv7-reference-shell .side-card[data-bv7-card="quick-info"] { order: 2; }
body.bv7-reference-shell .side-card[data-bv7-card="tags"] { order: 3; }
body.bv7-reference-shell .side-card[data-bv7-card="related"] { order: 4; }
body.bv7-reference-shell .side-card[data-bv7-card="actions"] { order: 5; }
body.bv7-reference-shell .side-card[data-bv7-card="page-options"] { order: 6; }
body.bv7-reference-shell .side-card[data-bv7-card="page-health"] { order: 7; }
body.bv7-reference-shell .side-card[data-bv7-card="page-tools"] { order: 8; }
body.bv7-reference-shell .side-card[data-bv7-card="editing-tips"] { order: 9; }

body.bv7-reference-shell .side-title {
  margin-bottom: 9px;
  color: #e6e8ec;
  font-size: 10px;
  font-weight: 650;
}

body.bv7-reference-shell .toc {
  display: grid;
  gap: 1px;
  margin: 0;
  padding-left: 17px;
  color: #89929f;
  font-size: 8.5px;
  line-height: 1.45;
}

body.bv7-reference-shell .toc li {
  padding: 2px 0 2px 2px;
  border-left: 1px solid transparent;
}

body.bv7-reference-shell .toc li:hover {
  border-left-color: var(--accent);
  color: #d7dbe1;
}

body.bv7-reference-shell .quick-info-list,
body.bv7-reference-shell .related-list {
  gap: 5px;
}

body.bv7-reference-shell .quick-info-item {
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #77818f;
  font-size: 8.5px;
}

body.bv7-reference-shell .quick-info-item strong {
  color: #aeb5c0;
  font-weight: 540;
}

body.bv7-reference-shell .tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.bv7-reference-shell .tag-pill {
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 83%);
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent), transparent 91%);
  color: color-mix(in srgb, var(--accent), white 18%);
  font-size: 7.5px;
}

body.bv7-reference-shell .related-list button,
body.bv7-reference-shell .wide-btn {
  width: 100%;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 5px;
  background: rgba(255,255,255,.025);
  color: #a5adb9;
  font-size: 8.5px;
  text-align: left;
}

body.bv7-reference-shell .related-list button:hover,
body.bv7-reference-shell .wide-btn:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 62%);
  background: color-mix(in srgb, var(--accent), transparent 92%);
  color: #eef0f3;
}

body.bv7-reference-shell #pageCoverBtn,
body.bv7-reference-shell #pageCoverRemoveBtn {
  display: none !important;
}

body.bv7-reference-shell .tips {
  margin: 0;
  padding-left: 14px;
  color: #737d8b;
  font-size: 8px;
  line-height: 1.55;
}

body.bv7-reference-shell .page-cover {
  width: calc(100% + 48px);
  max-width: none;
  min-height: 155px;
  margin: 0 -24px 8px;
  border: 0;
  border-bottom: 1px solid var(--bv7-line);
  border-radius: 0;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -72px 84px rgba(3,6,9,.65);
  filter: saturate(1.03) contrast(1.02);
}

body.bv7-reference-shell .page-cover:not(.bv7-image-cover) {
  min-height: 78px;
  height: 78px;
}

body.bv7-reference-shell .page-cover.bv7-image-cover .page-cover-shade {
  background: linear-gradient(180deg, rgba(2,5,8,.03), rgba(2,5,8,.58));
}

body.bv7-reference-shell .page-cover.bv7-image-cover .page-cover-text {
  display: none;
}

body.bv7-reference-shell .bottom-dock {
  position: fixed !important;
  z-index: 30 !important;
  left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2) !important;
  right: auto !important;
  bottom: 14px !important;
  display: flex !important;
  width: auto !important;
  max-width: calc(100vw - var(--sidebar-w) - 30px);
  min-height: 35px;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid var(--bv7-line) !important;
  border-radius: 7px !important;
  background: rgba(5,9,13,.9) !important;
  box-shadow: 0 14px 42px rgba(0,0,0,.5) !important;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

/* The server-managed navigation remains fully functional, but is shaped like
   the compact navigation rail in the reference layout. */
body.bv7-reference-shell .bottom-dock {
  display: none !important;
}

body.bv7-reference-shell .bvx-bottom-dock {
  left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2) !important;
  right: auto !important;
  bottom: 13px !important;
  display: grid !important;
  width: min(900px, calc(100vw - var(--sidebar-w) - 42px)) !important;
  min-height: var(--bvx-dock-height, 48px) !important;
  height: var(--bvx-dock-height, 48px);
  grid-template-columns: repeat(var(--bvx-dock-columns, 6), minmax(0, 1fr)) !important;
  padding: 2px !important;
  border: 1px solid var(--bv7-line) !important;
  border-radius: 7px !important;
  background: rgba(5,9,13,.92) !important;
  box-shadow: 0 14px 42px rgba(0,0,0,.48) !important;
  backdrop-filter: blur(18px);
  transform: translateX(-50%) !important;
}

body.bv7-reference-shell .bvx-bottom-dock::before {
  opacity: .15;
}

body.bv7-reference-shell .bvx-bottom-dock::after,
body.bv7-reference-shell .bvx-dock-line,
body.bv7-reference-shell .bvx-dock-notch {
  display: none !important;
}

body.bv7-reference-shell .bvx-dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto !important;
  min-width: 0 !important;
  min-height: calc(var(--bvx-dock-height, 48px) - 6px);
  height: calc(var(--bvx-dock-height, 48px) - 6px);
  padding: 0 8px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.045);
  border-radius: 4px;
  background: transparent;
}

body.bv7-reference-shell .bvx-dock-item:hover,
body.bv7-reference-shell .bvx-dock-item.active {
  background: color-mix(in srgb, var(--accent), transparent 91%);
}

body.bv7-reference-shell .bvx-dock-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 14px;
  filter: none;
  text-shadow: none;
}

body.bv7-reference-shell .bvx-dock-label {
  width: auto;
  max-width: 88px;
  overflow: hidden;
  color: #858f9d;
  font-size: 8.6px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .bvx-dock-meta {
  display: none;
  color: #596574;
  font-size: 7.5px;
  line-height: 1;
  white-space: nowrap;
}

body.bv7-reference-shell .bvx-dock-resize {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 3px;
  min-width: 72px;
  padding: 0 5px;
  border-left: 1px solid rgba(255,255,255,.06);
}

body.bv7-reference-shell .bvx-dock-resize button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--bv7-line);
  border-radius: 5px;
  background: rgba(255,255,255,.035);
  color: #aab3c0;
  font-size: 14px;
  line-height: 1;
}

body.bv7-reference-shell .bvx-dock-resize button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  background: color-mix(in srgb, var(--accent), transparent 90%);
  color: #fff;
}

body.bv7-reference-shell .bvx-dock-resize button:disabled {
  opacity: .28;
  cursor: not-allowed;
}

body.bv7-reference-shell .bvx-dock-resize span {
  overflow: hidden;
  color: #657080;
  font-size: 7px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .bvx-bottom-dock[data-size="compact"] {
  width: min(760px, calc(100vw - var(--sidebar-w) - 42px)) !important;
}

body.bv7-reference-shell .bvx-bottom-dock[data-size="compact"] .bvx-dock-icon { font-size: 11px; }
body.bv7-reference-shell .bvx-bottom-dock[data-size="compact"] .bvx-dock-label { max-width: 70px; font-size: 7.5px; }
body.bv7-reference-shell .bvx-bottom-dock[data-size="compact"] .bvx-dock-resize span { display: none; }
body.bv7-reference-shell .bvx-bottom-dock[data-size="compact"] .bvx-dock-resize { grid-template-columns: 1fr 1fr; min-width: 50px; }

body.bv7-reference-shell .bvx-bottom-dock[data-size="expanded"] {
  width: min(1120px, calc(100vw - var(--sidebar-w) - 28px)) !important;
}

body.bv7-reference-shell .bvx-bottom-dock[data-size="expanded"] .bvx-dock-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: start;
  gap: 3px 6px;
  padding: 4px 8px;
}

body.bv7-reference-shell .bvx-bottom-dock[data-size="expanded"] .bvx-dock-icon {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 18px;
}

body.bv7-reference-shell .bvx-bottom-dock[data-size="expanded"] .bvx-dock-label {
  max-width: 100%;
  color: #a0a9b6;
  font-size: 9.5px;
  text-align: left;
}

body.bv7-reference-shell .bvx-bottom-dock[data-size="expanded"] .bvx-dock-meta { display: block; }

body.bv7-reference-shell .bvx-dock-status {
  min-height: 32px;
  padding: 0 10px;
  color: #7f8997;
  font-size: 8px;
}

body.bv7-reference-shell .bvx-dock-status button {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 8px;
}

body.bv7-reference-shell .bvx-dock-toggle {
  left: auto !important;
  right: 60px !important;
  bottom: 14px !important;
  min-width: 34px !important;
  width: 34px;
  min-height: 34px !important;
  height: 34px;
  padding: 0 !important;
  border: 1px solid var(--bv7-line) !important;
  border-radius: 7px !important;
  background: rgba(5,9,13,.92) !important;
  color: #7f8997 !important;
  transform: none !important;
}

body.bv7-reference-shell .bvx-dock-toggle strong {
  display: none;
}

body.bv7-reference-shell .bvx-dock-toggle span {
  margin: 0;
  font-size: 12px;
}

body.bv7-reference-shell.bvx-dock-collapsed .bvx-dock-toggle {
  bottom: 14px !important;
}

body.bv7-reference-shell .bvx-edit-navigation {
  right: 100px !important;
  bottom: 14px !important;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--bv7-line);
  border-radius: 7px;
  background: rgba(5,9,13,.92);
  color: #7f8997;
  font-size: 8px;
}

body.bv7-reference-shell .bvx-dock-panel {
  bottom: calc(var(--bvx-dock-height, 48px) + 23px);
  width: min(980px, calc(100vw - var(--sidebar-w) - 42px));
  max-height: min(650px, calc(100vh - 85px));
  border: 1px solid var(--bv7-line);
  border-radius: 10px;
  background: rgba(7,11,16,.98);
  box-shadow: 0 26px 90px rgba(0,0,0,.68);
}

body.bv7-reference-shell .bottom-dock button {
  min-height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #858f9d;
  font-size: 8px;
}

body.bv7-reference-shell .bottom-dock button:hover {
  background: color-mix(in srgb, var(--accent), transparent 91%);
  color: color-mix(in srgb, var(--accent), white 22%);
}

body.bv7-reference-shell .utility-orb {
  right: 18px;
  bottom: 16px;
  z-index: 35;
}

body.bv7-reference-shell .utility-orb-main {
  width: 38px;
  height: 38px;
  border-color: color-mix(in srgb, var(--accent), transparent 50%);
  background: rgba(6,10,14,.92);
}

body.bv7-reference-shell .slash-menu,
body.bv7-reference-shell .context-menu {
  width: min(320px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 50px));
  max-height: min(520px, calc(100dvh - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  padding: 6px;
  border: 1px solid var(--bv7-line);
  border-radius: 8px;
  background: rgba(7,11,16,.98);
  box-shadow: 0 20px 60px rgba(0,0,0,.62);
  backdrop-filter: blur(18px);
}

body.bv7-reference-shell .context-menu {
  scroll-padding-block: 8px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) rgba(255,255,255,.035);
}

body.bv7-reference-shell .context-menu::-webkit-scrollbar { width: 7px; }
body.bv7-reference-shell .context-menu::-webkit-scrollbar-track { background: rgba(255,255,255,.025); }
body.bv7-reference-shell .context-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 52%, rgba(255,255,255,.16));
}

body.bv7-reference-shell .slash-menu button,
body.bv7-reference-shell .context-menu button {
  min-height: 33px;
  border-radius: 5px;
  color: #b4bbc5;
  font-size: 10px;
}

body.bv7-reference-shell .slash-menu button:hover,
body.bv7-reference-shell .context-menu button:hover {
  background: color-mix(in srgb, var(--accent), transparent 90%);
  color: #fff;
}

body.bv7-reference-shell .data-panel,
body.bv7-reference-shell .modal,
body.bv7-reference-shell .command-palette {
  border: 1px solid var(--bv7-line) !important;
  border-radius: 10px !important;
  background: rgba(7,11,16,.975) !important;
  box-shadow: 0 30px 100px rgba(0,0,0,.72) !important;
  backdrop-filter: blur(22px);
}

body.bv7-reference-shell #themeStudioPanel {
  position: fixed !important;
  inset: 50% auto auto 50% !important;
  width: min(650px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 20px;
  overflow: auto;
  transform: translate(-50%, -50%) !important;
}

body.bv7-reference-shell .theme-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

body.bv7-reference-shell .theme-presets button,
body.bv7-reference-shell .bv7-background-actions button,
body.bv7-reference-shell .bv7-upload-button,
body.bv7-reference-shell .bv7-url-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--bv7-line);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  color: #b5bcc6;
  font-size: 10px;
  cursor: pointer;
}

body.bv7-reference-shell .theme-presets button:hover,
body.bv7-reference-shell .bv7-background-actions button:hover,
body.bv7-reference-shell .bv7-upload-button:hover,
body.bv7-reference-shell .bv7-url-row button:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  color: #fff;
}

body.bv7-reference-shell .range-label,
body.bv7-reference-shell .bv7-select-label {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(150px, 2fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: #919aa7;
  font-size: 10px;
}

body.bv7-reference-shell .range-label input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

body.bv7-reference-shell .bv7-theme-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--bv7-line);
}

body.bv7-reference-shell .bv7-theme-section {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--bv7-line);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
}

body.bv7-reference-shell .bv7-theme-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.bv7-reference-shell .bv7-theme-section-head strong {
  display: block;
  color: #e8eaee;
  font-size: 12px;
}

body.bv7-reference-shell .bv7-theme-section-head small {
  display: block;
  margin-top: 4px;
  color: #788290;
  font-size: 9px;
  line-height: 1.45;
}

body.bv7-reference-shell .bv7-background-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

body.bv7-reference-shell .bv7-field-label {
  display: block;
  margin: 0 0 5px;
  color: #7f8997;
  font-size: 9px;
}

body.bv7-reference-shell .bv7-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-bottom: 9px;
}

body.bv7-reference-shell .bv7-url-row input,
body.bv7-reference-shell .bv7-select-label select {
  width: 100%;
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid var(--bv7-line);
  border-radius: 6px;
  outline: none;
  background: rgba(3,6,9,.75);
  color: #d9dde3;
  font-size: 10px;
}

body.bv7-reference-shell .bv7-url-row input:focus,
body.bv7-reference-shell .bv7-select-label select:focus {
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
}

body.bv7-reference-shell .bv7-theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

body.bv7-reference-shell .bv7-theme-grid .bv7-select-label {
  grid-column: 1 / -1;
}

body.bv7-reference-shell .bv7-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.bv7-reference-shell .bv7-color-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--bv7-line);
  border-radius: 6px;
  color: #9099a6;
  font-size: 9px;
}

body.bv7-reference-shell .bv7-color-grid input[type="color"] {
  width: 29px;
  height: 25px;
  padding: 1px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

body.bv7-reference-shell .bv7-upload-button.is-disabled {
  opacity: .45;
  pointer-events: none;
}

body.bv7-reference-shell .modal-backdrop {
  background: rgba(1,3,5,.74);
  backdrop-filter: blur(7px);
}

body.bv7-reference-shell:not(.bv-readonly-workspace) #workspaceAccessBanner {
  display: none !important;
}

body.bv7-reference-shell.bv-readonly-workspace #workspaceAccessBanner {
  max-width: none;
  min-height: 38px;
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 9px;
}

body.bv7-reference-shell .cursor-spark {
  position: fixed !important;
  pointer-events: none !important;
}

@media (max-width: 1320px) {
  body.bv7-reference-shell .bv7-topic-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  body.bv7-reference-shell .content-grid { grid-template-columns: minmax(0, 1fr) 205px !important; }
  body.bv7-reference-shell .block-buttons button:nth-last-child(-n+4) { display: none; }
}

@media (max-width: 1080px) {
  :root { --sidebar-w: 200px; }
  body.bv7-reference-shell .workspace { padding-left: 16px !important; padding-right: 16px !important; }
  body.bv7-reference-shell .topbar { margin-left: -16px !important; margin-right: -16px !important; }
  body.bv7-reference-shell .content-grid { grid-template-columns: 1fr !important; }
  body.bv7-reference-shell .right-panel {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
  body.bv7-reference-shell .right-panel .side-card { order: initial !important; }
  body.bv7-reference-shell .page-cover { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  body.bv7-reference-shell .bv7-metrics { grid-template-columns: repeat(3, minmax(110px,1fr)); }
}

@media (max-width: 760px) {
  html:has(body.bv7-reference-shell),
  body.bv7-reference-shell { overflow-x: hidden !important; }
  body.bv7-reference-shell { overflow: auto; }
  body.bv7-reference-shell .app-shell {
    grid-template-columns: 1fr !important;
    height: auto;
    min-height: 100vh;
  }
  body.bv7-reference-shell .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 310px;
    padding-bottom: 0;
    border-right: 0 !important;
    border-bottom: 1px solid var(--bv7-line) !important;
  }
  body.bv7-reference-shell .sidebar-footer { display: none; }
  body.bv7-reference-shell .tree { max-height: 180px; }
  body.bv7-reference-shell .workspace {
    grid-column: 1 !important;
    height: auto;
    min-height: 100vh;
    padding: 0 10px 74px !important;
    overflow: visible;
  }
  body.bv7-reference-shell .bv7-workspace-backdrop { position: absolute; inset: 0; min-height: 100vh; transform: none; }
  body.bv7-reference-shell .topbar { position: sticky !important; margin: 0 -10px !important; padding: 0 9px !important; }
  body.bv7-reference-shell #breadcrumb,
  body.bv7-reference-shell #sessionClock,
  body.bv7-reference-shell .team-status-chip,
  body.bv7-reference-shell #newPageBtn,
  body.bv7-reference-shell .bv7-top-utilities button:first-child { display: none !important; }
  body.bv7-reference-shell #commandBtn { width: min(54vw, 250px); }
  body.bv7-reference-shell #commandBtn kbd { display: none; }
  body.bv7-reference-shell .hero,
  body.bv7-reference-shell .compact-hero { min-height: 90px; padding: 10px 0 7px !important; }
  body.bv7-reference-shell .hero-icon { flex-basis: 56px; width: 56px !important; height: 56px !important; font-size: 26px !important; }
  body.bv7-reference-shell .hero h1 { font-size: 20px !important; }
  body.bv7-reference-shell .bv7-page-meta span:nth-last-child(-n+2) { display: none; }
  body.bv7-reference-shell .bv7-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  body.bv7-reference-shell .bv7-metric-card { min-height: 49px; padding: 7px; }
  body.bv7-reference-shell .bv7-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.bv7-reference-shell .bv7-topic-card { min-height: 135px; }
  body.bv7-reference-shell .page-panel { padding-left: 8px !important; padding-right: 8px !important; }
  body.bv7-reference-shell .panel-toolbar { top: 40px; margin-left: -8px; margin-right: -8px; padding: 0 8px; }
  body.bv7-reference-shell .panel-title { display: none; }
  body.bv7-reference-shell .block-buttons { justify-content: flex-start; }
  body.bv7-reference-shell .block { grid-template-columns: 15px minmax(0, 1fr) !important; }
  body.bv7-reference-shell .block-actions { grid-column: 2; opacity: .8; }
  body.bv7-reference-shell .block-actions .icon-btn:nth-child(-n+2) { display: none; }
  body.bv7-reference-shell .right-panel { grid-template-columns: 1fr !important; }
  body.bv7-reference-shell .page-cover { width: calc(100% + 20px); min-height: 120px; margin-left: -10px; margin-right: -10px; }
  body.bv7-reference-shell .bottom-dock { left: 50% !important; max-width: calc(100vw - 20px); }
  body.bv7-reference-shell .bottom-dock button { padding: 0 7px; font-size: 7px; }
  body.bv7-reference-shell .utility-orb { right: 10px; bottom: 62px; }
  body.bv7-reference-shell .bvx-bottom-dock { left: 50% !important; width: calc(100vw - 92px) !important; }
  body.bv7-reference-shell .bvx-dock-item { padding: 0 5px; }
  body.bv7-reference-shell .bvx-dock-label { display: none; }
  body.bv7-reference-shell .bvx-dock-toggle { right: 10px !important; }
  body.bv7-reference-shell .bvx-edit-navigation { display: none !important; }
  body.bv7-reference-shell .bvx-dock-panel { width: calc(100vw - 20px); bottom: calc(var(--bvx-dock-height, 48px) + 23px); }
  body.bv7-reference-shell .theme-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.bv7-reference-shell .bv7-theme-grid,
  body.bv7-reference-shell .bv7-color-grid { grid-template-columns: 1fr; }
  body.bv7-reference-shell .bv7-theme-grid .bv7-select-label { grid-column: auto; }
  body.bv7-reference-shell .range-label,
  body.bv7-reference-shell .bv7-select-label { grid-template-columns: 1fr; gap: 4px; padding: 4px 0; }
  body.bv7-reference-shell .bv7-url-row { grid-template-columns: 1fr; }
}

/* =========================================================
   BlackVault OS v7.2 — linked security records and visual QA
   ========================================================= */
body.bv7-reference-shell.bv71-security-workspace .hero h1 {
  font-size: clamp(22px, 2vw, 30px) !important;
  font-weight: 650 !important;
  letter-spacing: -.035em !important;
}

body.bv7-reference-shell.bv71-security-workspace .bv71-article-main h2 {
  font-size: 18px !important;
  font-weight: 650 !important;
}

body.bv7-reference-shell .bv71-record-title-block {
  display: none !important;
}

body.bv7-reference-shell .page-panel.bv71-heading-hidden .bv71-article-main {
  visibility: hidden;
}

body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-heading .block-content,
body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-subheading .block-content {
  font-size: 13px !important;
  font-weight: 620 !important;
  letter-spacing: -.012em !important;
}

body.bv7-reference-shell .bv71-linked-records-card.hidden {
  display: none !important;
}

body.bv7-reference-shell .bv71-linked-records-card .side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.bv7-reference-shell .bv71-linked-records-card .side-title small {
  color: #697482;
  font-size: 7px;
  font-weight: 500;
}

body.bv7-reference-shell .bv71-linked-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

body.bv7-reference-shell .bv71-linked-grid button {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 39px;
  padding: 5px 2px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 5px;
  background: rgba(255,255,255,.025);
  color: #8f99a7;
}

body.bv7-reference-shell .bv71-linked-grid button:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--accent), transparent 58%);
  color: #fff;
}

body.bv7-reference-shell .bv71-linked-grid button:disabled {
  opacity: .48;
}

body.bv7-reference-shell .bv71-linked-grid strong {
  color: #eef1f4;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

body.bv7-reference-shell .bv71-linked-grid span {
  overflow: hidden;
  max-width: 100%;
  font-size: 6.5px;
  text-overflow: ellipsis;
}

body.bv7-reference-shell .bv71-linked-list {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

body.bv7-reference-shell .bv71-linked-list > small {
  color: #66717f;
  font-size: 7px;
  line-height: 1.45;
}

body.bv7-reference-shell .bv71-linked-list button {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 5px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 4px;
  background: rgba(255,255,255,.02);
  color: #9aa4b1;
  text-align: left;
}

body.bv7-reference-shell .bv71-linked-list button:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 62%);
  color: #fff;
}

body.bv7-reference-shell .bv71-linked-list em {
  overflow: hidden;
  font-size: 7.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .bv71-linked-list small {
  color: #606b78;
  font-size: 6px;
}

body.bv7-reference-shell .side-card[data-bv7-card="table-of-contents"] { order: 1 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="quick-info"] { order: 2 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="tags"] { order: 3 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="related"] { order: 4 !important; }
body.bv7-reference-shell #bv71LinkedRecordsCard { order: 5 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="actions"] { order: 6 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="risk-profile"] { order: 7 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="page-options"] { order: 8 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="page-health"] { order: 9 !important; }
body.bv7-reference-shell .side-card[data-bv7-card="page-tools"] { order: 10 !important; }

@media (min-width: 1181px) {
  body.bv7-reference-shell.bv71-security-workspace .bv6-floating-stack {
    top: 8px !important;
    right: 14px !important;
    bottom: auto !important;
    display: flex !important;
    gap: 6px !important;
  }

  body.bv7-reference-shell.bv71-security-workspace .bv6-orb {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    box-shadow: none !important;
  }

  body.bv7-reference-shell.bv71-security-workspace .bv6-team-panel,
  body.bv7-reference-shell.bv71-security-workspace .bv6-admin-panel {
    top: 48px !important;
    right: 14px !important;
    bottom: auto !important;
  }
}

@media (max-width: 760px) {
  body.bv7-reference-shell .bv71-linked-grid { grid-template-columns: repeat(4, minmax(54px, 1fr)); }
  body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-heading .block-content,
body.bv7-reference-shell .page-panel.bv71-vulnerability-page .block-subheading .block-content { font-size: 14px !important; }
}

/* v7.4 - section-scoped dashboard and top workspace tools. */
body.bv7-reference-shell .bv71-section-card {
  --bv71-card-color: var(--accent);
}

body.bv7-reference-shell .bv71-section-card .bv71-severity-badge {
  max-width: calc(100% - 14px);
  overflow: hidden;
  color: color-mix(in srgb, var(--accent), white 24%);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bv7-reference-shell .bv71-metric-symbol.metric-pages,
body.bv7-reference-shell .bv71-metric-symbol.metric-sections,
body.bv7-reference-shell .bv71-metric-symbol.metric-topics {
  color: color-mix(in srgb, var(--accent), white 18%);
}

body.bv7-reference-shell .bv6-floating-stack .utility-orb {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  pointer-events: auto;
}

body.bv7-reference-shell .bv6-floating-stack .utility-orb-main {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.bv7-reference-shell .bv6-floating-stack .utility-orb-main .orb-symbol {
  font-size: 13px;
}

body.bv7-reference-shell .bv6-floating-stack .utility-orb-main .orb-pulse {
  inset: 4px;
}

body.bv7-reference-shell .bv6-floating-stack .utility-orb-panel {
  position: fixed !important;
  top: 48px !important;
  right: 14px !important;
  bottom: auto !important;
  max-height: calc(100vh - 64px);
  overflow: auto;
  transform-origin: top right;
}

@media (min-width: 761px) {
  body.bv7-reference-shell .bv6-floating-stack {
    top: 8px !important;
    right: 14px !important;
    bottom: auto !important;
    display: flex !important;
    gap: 6px !important;
  }

  body.bv7-reference-shell .bv6-team-panel,
  body.bv7-reference-shell .bv6-admin-panel {
    top: 48px !important;
    right: 14px !important;
    bottom: auto !important;
  }
}

@media (max-width: 760px) {
  body.bv7-reference-shell .bv6-floating-stack .utility-orb-panel {
    top: auto !important;
    right: 10px !important;
    bottom: 72px !important;
    width: min(340px, calc(100vw - 20px));
  }
}

/* v7.3 — functional block-editor polish without changing the workspace theme. */
.bv73-rich-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding-inline-end: 4px;
  border-inline-end: 1px solid rgba(255,255,255,.09);
}

.bv73-rich-toolbar label {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.bv73-rich-toolbar input[type="color"] {
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.bv73-nested-blocks {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.bv73-toggle-empty {
  min-height: 24px;
  padding: 2px 4px;
  color: inherit;
  outline: none;
}

.slash-menu button.active {
  background: rgba(255,255,255,.075) !important;
  color: #fff !important;
}

.slash-empty {
  padding: 13px 14px;
  color: var(--bv7-muted, #7f8897);
  font-size: 12px;
}

/* Requested sidebar rhythm: spacing only, with the existing colors and navigation. */
body.bv7-reference-shell .tree > .tree-node {
  margin-block: 0 7px;
}

body.bv7-reference-shell .tree > .tree-node + .tree-node {
  margin-top: 3px;
}

body.bv7-reference-shell .tree-children {
  display: grid;
  gap: 1px;
  margin-top: 2px;
  margin-bottom: 2px;
}

body.bv7-reference-shell .tree-node[data-depth="0"] > .tree-row {
  min-height: 27px;
  font-weight: 650;
}

body.bv7-reference-shell .tree-node[data-depth="1"] > .tree-row,
body.bv7-reference-shell .tree-node[data-depth="2"] > .tree-row {
  min-height: 25px;
}

/* Login now uses the same red accent, surfaces, and typography as the platform. */
.app-loading.login-screen-bg {
  background:
    linear-gradient(90deg, rgba(2,5,8,.94), rgba(3,6,10,.72) 50%, rgba(2,4,7,.94)),
    url("assets/blackvault-login-bg.png?v=login-bg-2") center / cover no-repeat !important;
}

.app-loading.login-screen-bg::before {
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--accent, #ff3158), transparent 83%), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.035), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.48));
}

.app-loading.login-screen-bg .app-loading-card {
  background: linear-gradient(180deg, rgba(10,14,19,.94), rgba(4,7,11,.96));
  border-color: color-mix(in srgb, var(--accent, #ff3158), transparent 58%);
  box-shadow: 0 28px 90px rgba(0,0,0,.64), 0 0 42px color-mix(in srgb, var(--accent, #ff3158), transparent 84%);
}

.app-loading.login-screen-bg .team-login-input:focus,
.app-loading.login-screen-bg .team-login-tab.active {
  border-color: color-mix(in srgb, var(--accent, #ff3158), transparent 38%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent, #ff3158), transparent 84%);
}

.app-loading.login-screen-bg .team-login-btn {
  background: linear-gradient(135deg, var(--accent, #ff3158), color-mix(in srgb, var(--accent, #ff3158), #16070b 70%));
  border-color: color-mix(in srgb, var(--accent, #ff3158), white 6%);
  box-shadow: 0 0 25px color-mix(in srgb, var(--accent, #ff3158), transparent 76%);
}

/* v8.12 — a toggle reads and edits as one continuous Notion-style surface. */
body.bv7-reference-shell .block-toggle,
body.bv7-reference-shell .block-toggle:hover,
body.bv7-reference-shell .block-toggle:focus-within,
body.bv7-reference-shell .block-toggle .toggle-head:hover {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.bv7-reference-shell .block-toggle > .block-body > .toggle-body.bv73-toggle-flow {
  display: block;
  margin: 0 0 4px 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: normal !important;
}

body.bv7-reference-shell .bv73-toggle-flow .block {
  display: block !important;
  position: relative;
  width: 100%;
  min-height: 29px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.bv7-reference-shell .bv73-toggle-flow .block + .block {
  margin-top: 1px !important;
}

body.bv7-reference-shell .bv73-toggle-flow .block:hover,
body.bv7-reference-shell .bv73-toggle-flow .block:focus-within,
body.bv7-reference-shell .bv73-toggle-flow .block-content:focus {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.bv7-reference-shell .bv73-toggle-flow .block > .block-body {
  display: block;
  width: 100%;
  min-width: 0;
}

body.bv7-reference-shell .bv73-toggle-flow .block > .block-body > .block-content {
  display: block;
  width: 100%;
  min-height: 29px;
  padding: 3px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Nested lines keep keyboard/slash behavior, but their five-button rows no longer
   split the toggle into separate visual cards. Right-click still opens block tools. */
body.bv7-reference-shell .bv73-toggle-flow .block > .block-actions {
  display: none !important;
}

body.bv7-reference-shell .bv73-toggle-flow .block > .drag-handle,
body.bv7-reference-shell .bv73-toggle-flow .block:hover > .drag-handle,
body.bv7-reference-shell .bv73-toggle-flow .block:focus-within > .drag-handle {
  position: absolute;
  inset-inline-start: -18px;
  top: 2px;
  z-index: 2;
  display: grid;
  width: 15px;
  min-height: 24px;
  opacity: 0 !important;
  pointer-events: auto;
}

body.bv7-reference-shell .bv73-toggle-flow .block > .drag-handle:hover {
  opacity: .62 !important;
}

body.bv7-reference-shell .block-toggle:has(.bv73-toggle-flow .block:hover) > .drag-handle,
body.bv7-reference-shell .block-toggle:has(.bv73-toggle-flow .block:hover) > .block-actions,
body.bv7-reference-shell .block-toggle:has(.bv73-toggle-flow .block-content:focus) > .drag-handle,
body.bv7-reference-shell .block-toggle:has(.bv73-toggle-flow .block-content:focus) > .block-actions {
  opacity: 0 !important;
  pointer-events: none;
}

body.bv7-reference-shell .block-toggle .bv73-toggle-empty {
  min-height: 29px;
  padding: 3px 2px !important;
  border: 0 !important;
  background: transparent !important;
}

/* v8.13 — balanced brighter dark theme.
   Keeps the BlackVault identity while allowing workspace imagery and content
   surfaces to read more clearly in normal and security workspaces. */
body.bv7-reference-shell {
  --bv7-surface: #0a1017;
  --bv7-panel: rgba(12, 18, 25, .84);
  --bv7-panel-strong: rgba(10, 16, 23, .94);
  --bv7-line: rgba(157, 174, 197, .20);
  background: #070b10 !important;
}

body.bv7-reference-shell #bgCanvas {
  opacity: .18 !important;
  filter: saturate(.82) contrast(1.03) brightness(1.08) !important;
}

body.bv7-reference-shell .bv7-workspace-backdrop {
  filter: blur(var(--bv7-bg-blur)) saturate(1.12) contrast(1.02) brightness(1.16);
}

body.bv7-reference-shell .bv7-workspace-backdrop::before {
  background:
    linear-gradient(180deg,
      rgba(3, 7, 11, calc(var(--bv7-bg-overlay) * .13)) 0,
      rgba(3, 7, 11, calc(var(--bv7-bg-overlay) * .44)) 30%,
      rgba(5, 10, 15, .61) 70%,
      rgba(4, 8, 12, .84) 100%),
    linear-gradient(90deg, rgba(3, 7, 11, .14), transparent 45%, rgba(3, 7, 11, .23));
}

body.bv7-reference-shell.bv71-security-workspace .bv7-workspace-backdrop {
  filter: blur(min(var(--bv7-bg-blur), 8px)) saturate(.97) contrast(1.05) brightness(1.17) hue-rotate(-18deg);
}

body.bv7-reference-shell.bv71-security-workspace .bv7-workspace-backdrop::before {
  background:
    linear-gradient(180deg, rgba(3,7,11,.22) 0, rgba(3,7,11,.39) 30%, rgba(5,10,15,.62) 68%, rgba(4,8,12,.86) 100%),
    linear-gradient(90deg, rgba(3,7,11,.15), transparent 50%, rgba(3,7,11,.24));
}

body.bv7-reference-shell .sidebar {
  background: linear-gradient(180deg, rgba(9, 14, 20, .97), rgba(5, 10, 15, .97)) !important;
  box-shadow: 12px 0 44px rgba(0, 0, 0, .20) !important;
}

body.bv7-reference-shell .topbar {
  background: rgba(8, 13, 19, .86) !important;
}

body.bv7-reference-shell .bv7-metric-card,
body.bv7-reference-shell .bv71-metric {
  background: linear-gradient(145deg, rgba(18, 26, 35, .84), rgba(10, 16, 23, .80));
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

body.bv7-reference-shell .bv7-topic-card,
body.bv7-reference-shell .bv71-vulnerability-card {
  background: linear-gradient(155deg, rgba(16, 24, 33, .91), rgba(9, 15, 22, .87));
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

body.bv7-reference-shell .panel-toolbar {
  background: rgba(12, 18, 25, .91);
}

body.bv7-reference-shell .page-cover {
  box-shadow: inset 0 -64px 76px rgba(4,8,12,.46);
  filter: saturate(1.10) contrast(1.01) brightness(1.06);
}

body.bv7-reference-shell .page-cover.bv7-image-cover .page-cover-shade {
  background: linear-gradient(180deg, rgba(3,7,11,.01), rgba(3,7,11,.39));
}

body.bv7-reference-shell .block-content {
  color: #d5dae2;
}

body.bv7-reference-shell .quick-info-item,
body.bv7-reference-shell .tips,
body.bv7-reference-shell .bv7-page-meta,
body.bv7-reference-shell .toc {
  color: #919cab;
}

body.bv7-reference-shell .modal-backdrop {
  background: rgba(2,5,8,.62);
}

.app-loading.login-screen-bg {
  background:
    linear-gradient(90deg, rgba(3,7,11,.82), rgba(5,10,16,.56) 50%, rgba(3,7,11,.84)),
    url("assets/blackvault-login-bg.png?v=login-bg-2") center / cover no-repeat !important;
}

.app-loading.login-screen-bg::before {
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--accent, #ff3158), transparent 79%), transparent 31%),
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.055), transparent 29%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.34));
}

.app-loading.login-screen-bg .app-loading-card {
  background: linear-gradient(180deg, rgba(15,21,29,.93), rgba(8,13,19,.95));
  box-shadow: 0 28px 78px rgba(0,0,0,.48), 0 0 42px color-mix(in srgb, var(--accent, #ff3158), transparent 82%);
}
