@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/nousspace/type/fonts/schibstedgrotesk/SchibstedGrotesk[wght].woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/nousspace/type/fonts/newsreader/Newsreader[opsz,wght].woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/nousspace/type/fonts/spacemono/SpaceMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #fff;
  --pollen: #ece6d6;
  --mid: #9b9a8d;
  --line: rgba(255, 255, 255, .18);
  --soft: rgba(255, 255, 255, .8);
  --muted: rgba(255, 255, 255, .65);
  --hover: rgba(255, 255, 255, .065);
}

*, *::before, *::after { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { min-height: 100%; background: #000; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: transparent; /* html stays #000; the starfield layer sits between them */
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--pollen); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible { outline: 2px solid var(--pollen); outline-offset: 4px; }

/* Reuse the home page wordmark, spacing, and navigation treatment. */
.site-nav.header {
  position: sticky;
  z-index: 50;
  top: 0;
  left: auto;
  right: auto;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.site-nav .bar { height: 76px; padding: 0 clamp(20px, 3.4vw, 52px); }
.site-nav .logo-wordmark {
  display: block;
  width: clamp(122px, 12vw, 150px); /* same as the home hero logo */
  aspect-ratio: 4.51;
  background: var(--ink);
  -webkit-mask: url("/nousspace/wordmark/nousspace-lockup-horizontal.svg") center / contain no-repeat;
  mask: url("/nousspace/wordmark/nousspace-lockup-horizontal.svg") center / contain no-repeat;
}
.site-nav .links { gap: clamp(18px, 2vw, 36px); }
.site-nav .plain-link {
  min-height: 44px;
  color: var(--soft);
  font: 500 14.5px/1.2 "Schibsted Grotesk", system-ui, sans-serif;
  transition: color .25s ease;
}
.site-nav .plain-link:hover,
.site-nav .plain-link[aria-current="page"] { color: #fff; }
.site-nav .actions { gap: 10px; }
.site-nav .cta {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: 600 12px/1 "Schibsted Grotesk", system-ui, sans-serif;
  letter-spacing: .04em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.site-nav .cta:hover,
.site-nav .cta:focus-visible { border-color: #fff; background: #fff; color: #000; text-decoration: none; }
.skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  padding: 12px;
  transform: translateY(-160%);
  background: #fff;
  color: #000;
}
.skip:focus { transform: none; }

.shell { max-width: 1500px; margin: auto; padding: 38px clamp(16px, 3vw, 42px) 90px; }
footer {
  padding: 24px clamp(16px, 3vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--mid);
  font-size: 12px;
}
.eyebrow, .explorer-heading, .card-kicker {
  color: var(--pollen);
  font: 400 10px/1.4 "Space Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 16px 0 20px;
  font: 430 clamp(42px, 5.5vw, 82px)/.98 "Schibsted Grotesk", system-ui, sans-serif;
  letter-spacing: -.065em;
}
h2 { margin: 34px 0 16px; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
h3 { margin: 20px 0 12px; font-size: 14px; font-weight: 600; }
.lede { max-width: 760px; color: var(--soft); font-size: 16px; line-height: 1.65; }
.crumb { margin: 0 0 24px; color: var(--mid); font: 12px/1.4 "Space Mono", monospace; }
.crumb a { color: var(--mid); }
.crumb a:hover { color: var(--ink); }
.count { color: var(--mid); font: 12px/1.5 "Space Mono", monospace; }

.workspace { display: grid; grid-template-columns: 205px minmax(0, 1fr) 220px; gap: 28px; align-items: start; }
.index-workspace { grid-template-columns: 205px minmax(0, 1fr); }
.explorer {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 16px 12px;
  border: 1px solid var(--line);
  background: #000;
}
.explorer-heading { padding: 0 8px 12px; color: var(--mid); }
.vault-root { display: block; padding: 8px; border-radius: 5px; color: var(--ink); font-size: 13px; font-weight: 600; }
.folder-tree { display: grid; gap: 2px; margin-top: 8px; }
.folder-link { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.folder-link span { color: var(--mid); }
.folder-link:hover, .folder-link.active { background: var(--hover); color: var(--ink); text-decoration: none; }
.graph-link { color: var(--pollen); }
.article, .library-page { min-width: 0; }
.article { max-width: 890px; padding: 0 2px; }
.note-title-row, .field-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.note-title-row .eyebrow { margin: 0; }
.open-graph { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--pollen); font: 11px/1.2 "Space Mono", monospace; white-space: nowrap; }
.note-status { display: flex; gap: 8px; flex-wrap: wrap; margin: -5px 0 28px; }
.note-status span, .tag { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 10px/1.2 "Space Mono", monospace; }
.markdown-body { color: var(--soft); font-size: 15px; line-height: 1.78; }
.markdown-body p { margin: 0 0 16px; }
.markdown-body h2 { margin-top: 38px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.markdown-body h3 { margin-top: 27px; }
.markdown-body a { color: var(--pollen); text-decoration: underline; text-decoration-color: rgba(220, 239, 106, .55); text-underline-offset: 3px; }
.markdown-body ul, .markdown-body ol { margin: 0 0 20px; padding-left: 23px; }
.markdown-body li { margin: 5px 0; padding-left: 3px; }
.markdown-body blockquote { margin: 20px 0; padding: 11px 17px; border-left: 2px solid var(--pollen); color: var(--muted); }
.markdown-body code { padding: 2px 5px; border-radius: 3px; background: #111; color: var(--pollen); font: 12px "Space Mono", monospace; }
.markdown-body pre { overflow: auto; padding: 16px; border: 1px solid var(--line); background: #050505; color: var(--soft); line-height: 1.55; }
.markdown-body pre code { padding: 0; background: transparent; color: inherit; }
.markdown-body hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.markdown-body del { color: var(--mid); }
.markdown-body input[type="checkbox"] { accent-color: var(--pollen); }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.markdown-body table { min-width: 100%; border-collapse: collapse; font-size: 13px; }
.markdown-body th, .markdown-body td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown-body th { color: var(--ink); font-weight: 600; }
.callout { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--pollen); }
.callout strong { display: block; margin-bottom: 6px; color: var(--pollen); }
.callout-warning, .callout-caution { border-left-color: #eab464; }
.unresolved { border-bottom: 1px dashed var(--mid); color: var(--mid); }
.properties { position: sticky; top: 94px; padding: 12px 0 12px 17px; border-left: 1px solid var(--line); }
.properties .eyebrow { margin: 0 0 16px; }
.properties dl { margin: 0; }
.property { padding: 8px 0; border-bottom: 1px solid var(--line); }
.property dt { color: var(--mid); font: 10px "Space Mono", monospace; text-transform: uppercase; }
.property dd { margin: 4px 0 0; color: var(--soft); font-size: 12px; overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { color: var(--pollen); }
.note-section { margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--line); }
.connections .note-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 20px 0 28px; }
.note-card { display: flex; min-height: 120px; flex-direction: column; gap: 9px; padding: 15px; border: 1px solid var(--line); background: #000; color: var(--ink); }
.note-card:hover { border-color: rgba(255, 255, 255, .55); background: var(--hover); text-decoration: none; }
.note-card strong { color: var(--ink); font-size: 15px; font-weight: 550; line-height: 1.35; }
.note-card > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.5; }
.card-kicker { color: var(--mid); font-size: 9px; }
.folder-cards, .field-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 11px; margin: 18px 0 30px; }
.folder-card, .field-card { display: flex; min-height: 125px; flex-direction: column; gap: 11px; padding: 17px; border: 1px solid var(--line); background: #000; color: var(--ink); }
.folder-card:hover, .field-card:hover { border-color: rgba(255, 255, 255, .55); background: var(--hover); text-decoration: none; }
.folder-card > span:first-child { color: var(--mid); font: 10px "Space Mono", monospace; }
.folder-card strong, .field-card strong { color: var(--ink); font-size: 18px; font-weight: 500; }
.folder-card small, .field-card small, .field-card > span:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.55; }
.field-card .eyebrow { font-size: 9px; }
.search-box { position: relative; max-width: 520px; margin: 20px 0 25px; }
.search-box label { display: block; margin-bottom: 7px; color: var(--mid); font: 10px "Space Mono", monospace; }
.search-box input, .graph-controls input, .graph-controls select { width: 100%; height: 39px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: #000; color: var(--ink); font: 13px "Schibsted Grotesk", system-ui, sans-serif; }
.search-results { position: absolute; z-index: 5; top: 65px; right: 0; left: 0; border: 1px solid var(--line); background: #000; box-shadow: 0 14px 30px #0009; }
.search-results:empty { display: none; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.search-results a small { color: var(--mid); }
.search-results a:hover { background: var(--hover); text-decoration: none; }
.search-empty { display: block; padding: 12px; color: var(--mid); font-size: 12px; }
.index-actions { display: flex; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.button-primary { display: inline-flex; padding: 11px 15px; border: 1px solid rgba(255, 255, 255, .68); border-radius: 999px; background: #000; color: var(--ink); font-size: 12px; font-weight: 600; }
.button-primary:hover { border-color: #fff; background: #fff; color: #000; text-decoration: none; }
.graph-page { max-width: 1350px; margin: auto; }
.graph-controls { display: grid; grid-template-columns: 150px 190px minmax(190px, 1fr) 170px; gap: 12px; align-items: end; margin: 22px 0 15px; }
.graph-controls label { color: var(--mid); font: 10px "Space Mono", monospace; }
.graph-legend { display: flex; min-height: 20px; flex-wrap: wrap; gap: 13px; margin-bottom: 10px; }
.legend-item { color: var(--muted); font: 10px "Space Mono", monospace; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.graph-frame { width: 100%; height: min(68vh, 720px); min-height: 390px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.graph-frame canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.graph-status { min-height: 18px; color: var(--mid); font: 11px "Space Mono", monospace; }
.graph-access-list { margin-top: 24px; padding: 14px; border: 1px solid var(--line); }
.graph-access-list summary { color: var(--pollen); font-size: 13px; cursor: pointer; }
.graph-access-list > div { display: grid; max-height: 420px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; overflow: auto; margin-top: 15px; }
.graph-access-list a { padding: 8px; border: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.graph-access-list a small { display: block; margin-top: 4px; color: var(--mid); }
.graph-access-list a:hover { background: var(--hover); text-decoration: none; }
.mobile-folders { display: none; }
.crumb a:hover { text-decoration: underline; }

@media (max-width: 1120px) {
  .workspace, .index-workspace { grid-template-columns: 180px minmax(0, 1fr); }
  .properties { position: static; grid-column: 2; padding: 15px 0; border-top: 1px solid var(--line); border-left: 0; }
  .properties dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
}
@media (max-width: 860px) {
  .site-nav .bar { grid-template-columns: 1fr auto 1fr; }
  .site-nav .desktop-nav { display: block; }
  .site-nav .menu-btn { display: none; }
  .site-nav .links { gap: 14px; }
  .site-nav .plain-link { font-size: 12px; }
}
@media (max-width: 760px) {
  .site-nav .bar { height: 68px; padding: 0 18px; grid-template-columns: 1fr auto; gap: 10px; }
  .site-nav .desktop-nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -2px 8px; }
  .site-nav .bar { height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 8px; }
  .site-nav .links { justify-content: space-between; gap: 8px; }
  .site-nav .plain-link { min-height: 32px; font-size: 11px; }
  .site-nav .actions { grid-column: 2; grid-row: 1; }
  .site-nav .cta { min-height: 36px; padding: 0 11px; font-size: 10px; }
  .shell { padding-top: 26px; }
  .workspace, .index-workspace { display: block; }
  .workspace > .explorer { display: none; }
  .mobile-folders { display: block; margin-bottom: 18px; }
  .mobile-folders details { padding: 10px; border: 1px solid var(--line); }
  .mobile-folders summary { color: var(--pollen); font-size: 12px; cursor: pointer; }
  .mobile-folders .explorer { position: static; display: block; max-height: 350px; margin-top: 10px; }
  .properties { margin-top: 30px; }
  .graph-controls { grid-template-columns: 1fr 1fr; }
  .graph-search-label { grid-column: 1 / -1; }
  .field-title { align-items: flex-start; flex-direction: column; }
  .note-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 470px) {
  .site-nav .links { gap: 7px; }
  .site-nav .plain-link { font-size: 10px; }
  .site-nav .cta { padding: 0 8px; font-size: 9px; }
  .note-grid, .folder-cards, .field-cards { grid-template-columns: 1fr; }
  .graph-controls { grid-template-columns: 1fr; }
  .graph-search-label { grid-column: auto; }
  .graph-frame { min-height: 340px; }
  .properties dl { grid-template-columns: 1fr 1fr; }
  .note-title-row { align-items: flex-start; }
}

/* Obsidian-inspired workspace: ribbon, file tree, active note, and backlinks. */
:root {
  --font-interface: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  --font-monospace: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --obsidian-bg: #000;
  --obsidian-side: #0a0a0a;
  --obsidian-rail: #050505;
  --obsidian-surface: #111;
  --obsidian-hover: #1c1c1c;
  --obsidian-border: #282828;
  --obsidian-text: #dcddde;
  --obsidian-muted: #999;
  --left-pane-width: 320px;
  --right-pane-width: 270px;
  --note-font-size: 16px;
  --note-line-width: 76ch;
}
html { background: #000; }
html, body { font-family: var(--font-interface); }
body { background: transparent; } /* the starfield layer shows between html and the content */
.site-nav .plain-link, .site-nav .cta { font-family: var(--font-interface); }
.shell { max-width: none; margin: 0; padding: 0 0 34px; }
.workspace, .index-workspace {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(220px, var(--left-pane-width)) 5px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--obsidian-border);
  background: var(--obsidian-bg);
}
.note-workspace { grid-template-columns: minmax(220px, var(--left-pane-width)) 5px minmax(0, 1fr) 5px minmax(220px, var(--right-pane-width)); }
.vault-sidebar { display: flex; min-width: 0; background: var(--obsidian-side); border-right: 1px solid var(--obsidian-border); }
.workspace-rail {
  display: flex;
  width: 46px;
  flex: 0 0 46px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-right: 1px solid #292929;
  background: var(--obsidian-rail);
}
.rail-button { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 5px; color: var(--obsidian-muted); }
.rail-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-button:hover, .rail-button.active { background: var(--obsidian-hover); color: var(--obsidian-text); text-decoration: none; }
.rail-button.active { box-shadow: inset 2px 0 var(--pollen); }
.file-explorer { width: auto; min-width: 0; max-height: calc(100vh - 98px); flex: 1; overflow: auto; padding: 10px 9px 24px; color: var(--obsidian-text); }
.file-pane-head { display: flex; height: 32px; align-items: center; justify-content: space-between; padding: 0 8px; color: var(--obsidian-text); font-size: 12px; font-weight: 600; }
.file-pane-head a { width: 26px; height: 26px; border-radius: 4px; color: var(--obsidian-muted); font-size: 19px; line-height: 22px; text-align: center; }
.file-pane-head a:hover { background: var(--obsidian-hover); color: var(--obsidian-text); text-decoration: none; }
.file-search { display: flex; height: 30px; align-items: center; gap: 7px; margin: 4px 3px 12px; padding: 0 8px; border: 1px solid #383838; border-radius: 5px; background: #202020; color: var(--obsidian-muted); }
.file-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--obsidian-text); font: 11px "Schibsted Grotesk", system-ui, sans-serif; }
.file-search input::placeholder { color: #858585; }
.field-root { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; padding: 6px 8px; border-radius: 4px; color: var(--obsidian-text); font-size: 12px; font-weight: 600; }
.folder-icon { color: var(--pollen); font-size: 12px; }
.field-root:hover { background: var(--obsidian-hover); text-decoration: none; }
.file-tree { display: grid; gap: 1px; }
.file-folder { min-width: 0; }
.file-folder summary { display: flex; min-height: 27px; align-items: center; gap: 7px; padding: 3px 7px; border-radius: 4px; color: #c5c5c5; font-size: 11px; cursor: pointer; list-style: none; }
.file-folder summary::-webkit-details-marker { display: none; }
.file-folder summary::before { width: 11px; color: #888; content: "›"; font-size: 15px; line-height: 1; }
.file-folder[open] > summary::before { content: "⌄"; }
.file-folder summary:hover { background: var(--obsidian-hover); }
.file-folder summary small { margin-left: auto; color: #777; font: 9px "Space Mono", monospace; }
.file-items { display: grid; gap: 1px; padding: 2px 0 5px 15px; }
.file-folder-index { padding: 4px 7px 5px 12px; color: var(--obsidian-muted); font-size: 10px; }
.file-note { display: flex; min-width: 0; min-height: 25px; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 4px; color: #b8b8b8; font-size: 10.5px; line-height: 1.3; }
.file-note > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-type-mark { width: 12px; flex: 0 0 12px; color: #777; font: 10px "Space Mono", monospace; text-align: center; }
.file-note:hover, .file-note.active { background: var(--obsidian-hover); color: var(--obsidian-text); text-decoration: none; }
.file-note.active { box-shadow: inset 2px 0 var(--pollen); }
.file-folder[hidden], .file-note[hidden], .file-folder-index[hidden] { display: none; }
.resize-handle { position: relative; z-index: 5; width: 5px; min-width: 5px; cursor: col-resize; touch-action: none; background: transparent; }
.resize-handle:hover, .resize-handle:focus-visible, .resize-handle.dragging { background: color-mix(in srgb, var(--pollen) 65%, transparent); outline: 0; }
.resize-handle.right-resizer { margin-left: -2px; }
.appearance-settings { margin: 16px 3px 0; border-top: 1px solid var(--obsidian-border); padding-top: 9px; }
.appearance-settings summary { padding: 5px; color: var(--obsidian-muted); font-size: 10px; cursor: pointer; }
.appearance-settings label { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; padding: 7px 5px; color: #bbb; font-size: 10px; }
.appearance-settings input[type="color"] { width: 34px; height: 22px; padding: 2px; border: 1px solid #444; border-radius: 4px; background: #111; }
.appearance-settings input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--pollen); }
.appearance-settings output { color: var(--obsidian-muted); font: 9px var(--font-monospace); }
.library-page, .graph-page { min-width: 0; padding: 0 42px 72px; background: var(--obsidian-bg); }
.article { width: 100%; max-width: none; min-width: 0; padding: 0 48px 76px; background: var(--obsidian-bg); }
.note-pane { min-height: calc(100vh - 98px); }
.pane-tabs { position: sticky; z-index: 10; top: 76px; display: flex; height: 37px; align-items: stretch; justify-content: space-between; margin: 0 -48px 28px; padding: 0 12px; border-bottom: 1px solid var(--obsidian-border); background: #1b1b1b; color: var(--obsidian-muted); }
.library-page > .pane-tabs, .graph-page > .pane-tabs { margin-right: -42px; margin-left: -42px; }
.pane-tab { display: flex; min-width: 120px; max-width: 290px; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid #2b2b2b; border-left: 1px solid #2b2b2b; background: var(--obsidian-bg); color: var(--obsidian-text); font-size: 11px; }
.pane-tab small { color: var(--obsidian-muted); font: 9px "Space Mono", monospace; }
.tab-file-icon { color: var(--pollen); font-size: 17px; }
.pane-tab-tool { display: grid; width: 30px; place-items: center; color: var(--obsidian-muted); }
.pane-tab-tool:hover { color: var(--obsidian-text); text-decoration: none; }
.right-sidebar { position: sticky; top: 76px; max-height: calc(100vh - 98px); overflow: auto; border-left: 1px solid var(--obsidian-border); background: var(--obsidian-side); color: var(--obsidian-text); }
.right-sidebar [hidden] { display: none !important; }
.right-pane-tabs { display: flex; height: 38px; align-items: stretch; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--obsidian-border); color: var(--obsidian-muted); font-size: 10px; }
.right-pane-tabs span { display: grid; place-items: center; }
.right-pane-tabs .selected { border-bottom: 2px solid var(--pollen); color: var(--obsidian-text); }
.right-pane-tabs button { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--obsidian-muted); font: inherit; cursor: pointer; }
.right-pane-tabs button.selected { border-bottom-color: var(--pollen); color: var(--obsidian-text); }
.right-pane-tabs button small { color: var(--obsidian-muted); font: 9px "Space Mono", monospace; }
.backlinks-panel, .outline-panel, .properties-panel { padding: 13px 13px 16px; border-bottom: 1px solid var(--obsidian-border); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #c5c5c5; font-size: 10px; font-weight: 600; }
.panel-heading small { color: var(--obsidian-muted); font: 9px "Space Mono", monospace; }
.backlink-item { display: flex; flex-direction: column; gap: 3px; padding: 7px; border-radius: 4px; color: var(--obsidian-text); font-size: 10px; }
.backlink-item small { color: var(--obsidian-muted); font-size: 9px; }
.backlink-item:hover { background: var(--obsidian-hover); text-decoration: none; }
.outline-panel a { display: block; overflow: hidden; padding: 4px 6px; color: var(--obsidian-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.outline-panel a:hover { color: var(--obsidian-text); text-decoration: none; }
.empty-panel { padding: 5px 6px; color: #777; font-size: 10px; }
.properties-panel dl { margin: 0; }
.property { padding: 7px 4px; border-bottom: 1px solid #292929; }
.property dt { color: var(--obsidian-muted); font: 9px "Space Mono", monospace; text-transform: uppercase; }
.property dd { margin: 3px 0 0; color: var(--obsidian-text); font-size: 10px; overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { padding: 3px 6px; border: 1px solid #393939; border-radius: 4px; background: #222; color: var(--pollen); font-size: 9px; }
.right-sidebar .eyebrow { color: var(--obsidian-muted); }
.note-title-row .eyebrow { color: var(--obsidian-muted); }
.note-status span { border-color: #3b3b3b; border-radius: 4px; background: #242424; color: var(--obsidian-muted); }
.crumb, .crumb a { color: #8f8f8f; font-size: 10px; }
.eyebrow { color: var(--pollen); }
.lede { color: #b7b7b7; }
.markdown-body { max-width: var(--note-line-width); color: var(--obsidian-text); font-family: var(--font-text); font-size: var(--note-font-size); }
.markdown-body h2 { border-color: #383838; }
.markdown-body blockquote { background: #242424; color: #b7b7b7; }
.markdown-body code { border: 1px solid #333; background: #282828; color: var(--pollen); }
.markdown-body pre { border-color: #383838; background: #181818; }
.markdown-body th { background: #252525; }
.markdown-body th, .markdown-body td { border-color: #383838; }
.note-section { border-color: #383838; }
.note-card, .folder-card, .field-card { min-height: 100px; border-color: #3b3b3b; border-radius: 5px; background: #242424; color: var(--obsidian-text); }
.note-card:hover, .folder-card:hover, .field-card:hover { border-color: #606060; background: #2b2b2b; }
.note-card strong, .folder-card strong, .field-card strong { color: var(--obsidian-text); }
.card-kicker, .folder-card > span:first-child { color: var(--obsidian-muted); }
.folder-cards, .field-cards { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.search-box input, .graph-controls input, .graph-controls select { border-color: #3a3a3a; border-radius: 5px; background: #202020; color: var(--obsidian-text); }
.search-results { border-color: #3a3a3a; border-radius: 5px; background: #202020; }
.search-results a { color: var(--obsidian-text); }
.button-primary, .open-graph { border-color: #484848; border-radius: 5px; background: #242424; color: var(--obsidian-text); }
.button-primary:hover, .open-graph:hover { border-color: #666; background: #303030; color: var(--pollen); }
.graph-frame { border-color: #3b3b3b; border-radius: 5px; background: #161616; }
.graph-access-list { border-color: #3b3b3b; border-radius: 5px; background: #202020; }
.graph-access-list a { border-color: #383838; border-radius: 4px; color: var(--obsidian-text); }
.graph-status, .count { color: var(--obsidian-muted); }
.mobile-files { display: none; }
.workspace-statusbar { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: flex; height: 22px; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 12px; border-top: 1px solid var(--obsidian-border); background: #0d0d0d; color: #aaa; font: 9px var(--font-monospace); }
.workspace-statusbar span:first-child { margin-right: auto; }
footer { padding-bottom: 36px; }
.selection-toolbar { position: fixed; z-index: 100; padding: 7px 10px; border: 1px solid #444; border-radius: 5px; background: #171717; color: var(--obsidian-text); box-shadow: 0 4px 16px #000a; font: 11px var(--font-interface); cursor: pointer; }
.selection-toolbar:hover { border-color: var(--pollen); color: var(--pollen); }
.selection-toolbar[hidden] { display: none !important; }
.user-highlight { border-radius: 2px; background: color-mix(in srgb, var(--pollen) 38%, transparent); color: inherit; }
.my-notes-panel { padding: 13px; }
.private-note-label, .note-save-status { display: block; margin: 7px 0; color: var(--obsidian-muted); font-size: 9px; }
.my-notes-panel textarea { width: 100%; min-height: 170px; resize: vertical; padding: 9px; border: 1px solid #373737; border-radius: 4px; background: #080808; color: var(--obsidian-text); font: 12px/1.5 var(--font-text); }
.clear-highlights { margin-top: 8px; padding: 6px 8px; border: 1px solid #373737; border-radius: 4px; background: #111; color: #bbb; font: 10px var(--font-interface); cursor: pointer; }
.clear-highlights:hover { border-color: var(--pollen); color: var(--pollen); }
.markdown-body, .library-page, .graph-page, .article { font-family: var(--font-text); }
.markdown-body code, .markdown-body pre, .file-folder summary small, .file-type-mark,
.pane-tab small, .panel-heading small, .property dt, .workspace-statusbar { font-family: var(--font-monospace); }
.note-card, .folder-card, .field-card { background: #090909; }
.note-card:hover, .folder-card:hover, .field-card:hover { background: #171717; }
.right-pane-tabs { gap: 9px; padding: 0 9px; }
.right-pane-tabs button { min-width: 0; font-size: 9px; white-space: nowrap; }
.right-pane-tabs button small { font-size: 8px; }
.resize-handle[aria-valuenow]::after { position: absolute; top: 50%; left: 1px; width: 2px; height: 34px; transform: translateY(-50%); border-radius: 2px; background: #555; content: ""; opacity: .3; }
.resize-handle:hover::after, .resize-handle.dragging::after { background: var(--pollen); opacity: 1; }
.appearance-settings output { grid-column: 2; text-align: right; }
.site-nav .plain-link, .site-nav .cta,
.shell h1, .shell h2, .shell h3, .shell p, .note-card, .folder-card, .field-card,
.search-box input, .graph-controls input, .graph-controls select { font-family: var(--font-interface); }
.graph-controls label { color: var(--obsidian-muted); font: 10px var(--font-interface); }
.graph-controls input[type="range"] { height: 18px; padding: 0; border: 0; background: transparent; }
.shell h1 { font-family: var(--font-interface); font-size: clamp(38px, 4.5vw, 68px); font-weight: 500; letter-spacing: -.045em; }
.shell h2, .shell h3, .file-search input, .appearance-settings label { font-family: var(--font-interface); }
.markdown-body { max-width: var(--note-line-width); font-size: var(--note-font-size); }
.markdown-body pre, .markdown-body code, .file-type-mark, .pane-tab small,
.panel-heading small, .property dt, .workspace-statusbar { font-family: var(--font-monospace); }
.note-workspace > .right-sidebar { min-width: 0; }
.graph-controls { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.graph-controls input[type="range"], .appearance-settings input[type="range"] { accent-color: var(--pollen); }
.workspace-statusbar { background: #080808; }
.search-box input, .graph-controls input, .graph-controls select, .my-notes-panel textarea { color-scheme: dark; }

@media (max-width: 1250px) {
  .note-workspace { grid-template-columns: minmax(220px, var(--left-pane-width)) 5px minmax(0, 1fr); }
  .note-workspace > .right-sidebar { display: block; position: static; grid-column: 3; max-height: none; border-top: 1px solid var(--obsidian-border); border-left: 0; }
  .note-workspace > .right-resizer { display: none; }
  .workspace, .index-workspace { grid-template-columns: minmax(220px, var(--left-pane-width)) 5px minmax(0, 1fr); }
  .file-explorer { width: auto; }
  .workspace-rail { width: 46px; flex-basis: 46px; }
}
@media (max-width: 760px) {
  .workspace, .index-workspace, .note-workspace { display: block; min-height: 0; }
  .workspace > .vault-sidebar { display: none; }
  .workspace > .resize-handle { display: none; }
  .article, .library-page, .graph-page { padding: 0 18px 50px; }
  .pane-tabs { top: 0; margin: 0 -18px 22px; }
  .library-page > .pane-tabs, .graph-page > .pane-tabs { margin-right: -18px; margin-left: -18px; }
  .mobile-files { display: block; margin: 0 0 16px; }
  .mobile-files > details > summary { display: flex; height: 34px; align-items: center; justify-content: space-between; padding: 0 9px; border: 1px solid #3a3a3a; border-radius: 4px; color: var(--obsidian-text); font-size: 11px; cursor: pointer; }
  .mobile-files > details > summary span { color: var(--obsidian-muted); }
  .mobile-files .vault-sidebar { display: flex; max-height: 350px; margin-top: 6px; border: 1px solid #3a3a3a; }
  .mobile-files .file-explorer { width: auto; flex: 1; }
  .mobile-files .workspace-rail { display: none; }
  .article { max-width: none; }
  .right-sidebar { position: static; display: block; max-height: none; border-top: 1px solid var(--obsidian-border); border-left: 0; }
  .note-workspace > .right-sidebar { display: block; }
  .graph-controls { grid-template-columns: 1fr 1fr; }
  .graph-search-label { grid-column: 1 / -1; }
  .workspace-statusbar { gap: 8px; font-size: 8px; }
}
@media (max-width: 470px) {
  .article, .library-page, .graph-page { padding-right: 13px; padding-left: 13px; }
  .pane-tabs { margin-right: -13px; margin-left: -13px; }
  .library-page > .pane-tabs, .graph-page > .pane-tabs { margin-right: -13px; margin-left: -13px; }
  .graph-controls { grid-template-columns: 1fr; }
  .graph-search-label { grid-column: auto; }
  .workspace-statusbar span:last-child { display: none; }
}
@media (max-width: 500px) { .site-nav .logo-wordmark { width: 110px; } }
