.single-vv_vault .site-content,
.single-vv_vault .container,
.single-vv_vault .entry-content {
  max-width: none;
  width: 100%;
}

.single-vv_vault .site-content,
.single-vv_vault .container,
.single-vv_vault .entry-content {
  padding-left: 0;
  padding-right: 0;
}

#vv-viewer,
.vv-root {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.vv-root.vv-wide {
  max-width: none;
}

.vv-root {
  --bg: #f6f2ea;
  --panel: #fffaf2;
  --panel-muted: #f1ece3;
  --text: #1f1a16;
  --muted: #6f6358;
  --border: #d6cbbf;
  --vv-border-strong: #e2d8ce;
  --vv-bg-elevated: #fffdf8;
  --accent: #b44b2a;
  --accent-soft: #f2d8c9;
  --vv-link: #b44b2a;
  --vv-link-hover: #c85f3b;
  --vv-folder-bg: #f4efe6;
  --vv-folder-bg-open: #fbf6ee;
  --vv-row-alt: rgba(0, 0, 0, 0.03);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.vv-root.vv-dark {
  --bg: #1b1d21;
  --panel: #26282d;
  --panel-muted: #1f2126;
  --text: #e7e2db;
  --muted: #a69a8c;
  --border: #2e3239;
  --vv-border-strong: #3a3f47;
  --vv-bg-elevated: #2c2f35;
  --accent: #e3916f;
  --accent-soft: #3a2c25;
  --vv-link: #e8a584;
  --vv-link-hover: #f1b999;
  --vv-folder-bg: #23262b;
  --vv-folder-bg-open: #2a2e34;
  --vv-row-alt: rgba(255, 255, 255, 0.04);
}

.vv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--vv-bg-elevated);
  border-bottom: 1px solid var(--vv-border-strong);
}

.vv-actions {
  display: flex;
  gap: 8px;
}

.vv-action {
  border: 1px solid var(--border);
  background: var(--panel-muted);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.vv-clear {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.vv-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.vv-toggle {
  border: 1px solid var(--border);
  background: var(--panel-muted);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vv-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.vv-sidebar {
  width: 280px;
  background: var(--panel-muted);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  min-height: 0;
  padding: 12px;
}

.vv-search {
  margin-bottom: 10px;
}

.vv-search input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 8px;
}

.vv-main {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 20px 26px;
  background: var(--bg);
}

.vv-content {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: auto;
}

.vv-content h1,
.vv-content h2,
.vv-content h3 {
  margin: 18px 0 8px;
}

.vv-content h1 { font-size: 26px; }
.vv-content h2 { font-size: 22px; }
.vv-content h3 { font-size: 18px; }

.vv-content p {
  margin: 10px 0;
}

.vv-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.vv-content img.vv-embed {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 12px 0;
  border: 1px solid var(--border);
}

.vv-content pre {
  background: var(--panel);
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  border: 1px solid var(--border);
}

.vv-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 12px 0;
}

.vv-content th,
.vv-content td {
  padding: 8px 10px;
  border: 1px solid var(--border);
}

.vv-content thead th {
  background: var(--panel);
}

.vv-content tbody tr:nth-child(odd) {
  background: var(--vv-row-alt);
}

.vv-content code {
  background: var(--accent-soft);
  padding: 2px 4px;
  border-radius: 4px;
}

.vv-content a,
.vv-content a:visited,
a.vv-internal {
  color: var(--vv-link);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
}

.vv-content a:hover,
.vv-content a:focus-visible,
a.vv-internal:hover,
a.vv-internal:focus-visible {
  color: var(--vv-link-hover);
}

.vv-tree summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--vv-folder-bg);
}

.vv-tree details[open] > summary {
  background: var(--vv-folder-bg-open);
}

.vv-tree .vv-children {
  padding-left: 12px;
  margin-top: 6px;
}

.vv-file {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.vv-file:hover {
  background: var(--panel);
}

.vv-file.vv-active {
  background: var(--accent-soft);
  color: var(--text);
}

.vv-content mark,
.vv-tree mark {
  background: var(--accent-soft);
  color: var(--text);
  padding: 0 2px;
  border-radius: 3px;
}

.vv-empty {
  color: var(--muted);
}

.vv-missing {
  color: var(--muted);
  text-decoration: line-through;
}

.vv-error {
  color: var(--accent);
  background: var(--panel);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .vv-layout {
    flex-direction: column;
  }
  .vv-sidebar {
    width: 100%;
    max-height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

body.vv-app,
body.vv-app #vv-viewer,
body.vv-app .vv-root {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
}

body.vv-app .vv-root {
  border-radius: 0;
}

body.vv-app {
  height: 100vh;
  margin: 0;
}
