/* Unvault Developer Docs — theme tokens mirror the Unvault app (Quantico, purple primary, orange logo) */
:root, :root[data-theme="light"] { --bg: #f7f7fb; --bg-2: #f0f0f8; --bg-3: #e8e8f3; --card: #ffffff; --text: #1a1a2e; --text-dim: #3f3f62; --muted: #606085; --line: #e0e0ee; --accent: #7c6ef0; --accent-soft: rgba(124, 110, 240, .12); --accent-ring: rgba(124, 110, 240, .45); --orange: #ff6b06; --code-bg: #16162a; --code-fg: #e2e2f0; --warn-bg: #fff4e8; --warn-line: #ffc899; --info-bg: #eef2ff; --info-line: #c7d2fe; --info-fg: #4b5bd6; --glass: rgba(240, 240, 248, .75); --font: "Quantico", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace; color-scheme: light; }
:root[data-theme="dark"] { --bg: #0e0e1a; --bg-2: #14142a; --bg-3: #1c1c34; --card: #16162a; --text: #e2e2f0; --text-dim: #a3a3c4; --muted: #8c8cb0; --line: #2a2a44; --accent: #7c6ef0; --accent-soft: rgba(124, 110, 240, .2); --accent-ring: rgba(124, 110, 240, .55); --code-bg: #08080f; --warn-bg: #2a1a0c; --warn-line: #7a3f12; --info-bg: #151a33; --info-line: #303a6b; --info-fg: #9aa6ff; --glass: rgba(14, 14, 26, .8); color-scheme: dark; }
* { box-sizing: border-box; } html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.65; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.025em; font-weight: 700; } h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; letter-spacing: -.02em; } h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; } .brand:hover { text-decoration: none; }
.logo { display: block; width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--text); } .brand-sub { color: var(--muted); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; font-size: .92rem; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: 2px solid var(--accent-ring); border-color: var(--accent); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -16px rgba(0,0,0,.4); overflow: hidden; z-index: 40; }
.search-results a { display: block; padding: 9px 12px; border-top: 1px solid var(--line); } .search-results a:first-child { border-top: 0; } .search-results a:hover { background: var(--bg-2); text-decoration: none; }
.r-title { display: block; font-weight: 700; font-size: .92rem; } .r-meta { display: block; color: var(--muted); font-size: .78rem; } .r-empty { padding: 10px 12px; color: var(--muted); }
.nav { display: flex; gap: 2px; } .nav a { padding: 7px 11px; border-radius: 12px; font-size: .88rem; font-weight: 700; color: var(--text-dim); border: 1px solid transparent; } .nav a:hover { background: var(--card); border-color: var(--line); color: var(--text); text-decoration: none; } .nav a.cta { background: linear-gradient(135deg, #7c6ef0, #f97316); color: #fff; border: 0; }
.theme-btn, .menu-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: 38px; height: 38px; padding: 0; cursor: pointer; color: var(--text-dim); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-moon { display: none; } :root[data-theme="dark"] .theme-btn .i-moon { display: block; } :root[data-theme="dark"] .theme-btn .i-sun { display: none; }
.menu-btn { display: none; flex-direction: column; gap: 4px; } .menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow: auto; padding: 22px 14px 40px 20px; border-right: 1px solid var(--line); font-size: .9rem; }
.side-sec { margin-bottom: 18px; } .side-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 0 0 6px 10px; }
.side a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--text-dim); } .side a:hover { background: var(--bg-2); text-decoration: none; color: var(--text); } .side a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 999px; background: var(--info-bg); color: var(--info-fg); font-weight: 700; }
.main { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 36px; padding: 28px 32px 60px; max-width: 1160px; }
.doc { min-width: 0; max-width: 760px; }
.crumbs { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.banner { padding: 10px 14px; border-radius: 10px; margin: 0 0 18px; font-size: .92rem; background: var(--info-bg); border: 1px solid var(--info-line); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 .anchor, .prose h3 .anchor { opacity: 0; margin-left: 8px; color: var(--muted); text-decoration: none; font-weight: 400; } .prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg-3); padding: .1em .35em; border-radius: 6px; }
.prose pre.code { margin: 1em 0; background: var(--code-bg); color: var(--code-fg); border-radius: 12px; overflow: hidden; font-size: .84rem; }
.prose pre.code code { display: block; padding: 14px 16px; overflow-x: auto; background: none; color: inherit; font-size: inherit; line-height: 1.55; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: rgba(255,255,255,.06); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #a8a8b8; }
.code-bar button { font: inherit; background: none; border: 1px solid rgba(255,255,255,.2); color: #d8d8e0; padding: 2px 8px; border-radius: 6px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .75rem; }
.table-wrap { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); } table { border-collapse: collapse; width: 100%; font-size: .9rem; } th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } th { background: var(--bg-2); font-weight: 700; } tr:last-child td { border-bottom: 0; } td code { white-space: nowrap; }
.prose blockquote { margin: 1em 0; padding: .5em 1em; border-left: 3px solid var(--accent); color: var(--text-dim); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.toc { position: sticky; top: 84px; align-self: start; font-size: .84rem; } .toc-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 8px; } .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); } .toc a { display: block; padding: 4px 12px; color: var(--muted); } .toc a:hover { color: var(--accent); text-decoration: none; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; }
.foot-note { color: var(--muted); font-size: .82rem; } .foot-note a { color: var(--muted); text-decoration: underline; }
.footer { padding: 20px 32px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; background: var(--bg-2); } .footer a { text-decoration: underline; }
@media (max-width: 1000px) { .main { grid-template-columns: 1fr; padding: 22px 16px 48px; } .toc { display: none; } }
@media (max-width: 800px) { .shell { grid-template-columns: 1fr; } .side { display: none; position: fixed; inset: 60px 0 0 0; background: var(--bg); z-index: 45; max-height: none; } .side.open { display: block; } .search { display: none; } .menu-btn { display: inline-flex; } .theme-btn { margin-left: auto; } .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 12px; } .nav.open { display: flex; } .header-inner { padding: 0 16px; } .brand-sub { display: none; } }
