/* ─────────────────────────────────────────────────────────────
   tissue.systems — design system (Stripe-inspired)
   Fonts: Inter (Google Fonts) + system stack; Menlo/Consolas for mono
   ───────────────────────────────────────────────────────────── */

/* ── tokens ──────────────────────────────────────────────────── */
:root {
  /* palette */
  --bg:              #ffffff;
  --bg-offset:       #f6f9fc;
  --bg-secondary:    #f6f9fc;
  --bg-hover:        #f0f4f8;

  --text:            #0a2540;
  --text-secondary:  #425466;
  --text-tertiary:   #697386;

  --accent:          #5469d4;
  --accent-dark:     #3d4eac;
  --accent-light:    #eef2ff;

  --border:          #e3e8ee;
  --border-light:    #f0f4f8;

  /* code blocks — dark navy, Stripe-style */
  --code-bg:         #1a1f36;
  --code-header-bg:  #0f1429;
  --code-text:       #c9d4e8;
  --code-bright:     #ffffff;

  /* inline code — light bg, dark text */
  --inline-code-bg:  #f6f9fc;
  --inline-code-fg:  #3c4257;
  --inline-code-br:  #dde1ea;

  /* layout */
  --sidebar-w:       250px;
  --header-h:        64px;
  --max-width:       1175px;
  --content-max:     740px;

  /* type */
  --font-body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                     "Roboto", "Helvetica Neue", Ubuntu, sans-serif;
  --font-mono:       "JetBrains Mono", "Menlo", "Consolas", "Liberation Mono", Courier, monospace;

  /* radii + shadow */
  --radius:          4px;
  --radius-md:       6px;
  --radius-lg:       8px;
  --shadow-xs:       0 1px 1px rgba(0,0,0,.04);
  --shadow-sm:       0 1px 3px rgba(50,50,93,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-card:     0 0 0 1px rgba(50,50,93,.01),
                     0 7px 14px rgba(50,50,93,.10),
                     0 3px 6px rgba(0,0,0,.02);
}

/* ── reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { font-size: 16px; -webkit-text-size-adjust: 100% }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}
img, svg { display: block; max-width: 100% }
a { color: var(--accent); text-decoration: none }
a:hover { text-decoration: underline }
button { cursor: pointer; font-family: inherit }

/* ── header ──────────────────────────────────────────────────── */
header {
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}
.logo {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--text) }

/* ── login button (header) ───────────────────────────────────── */
.login-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: var(--bg);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  display: inline-flex;
  align-items: center;
}
.login-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

/* ── footer ──────────────────────────────────────────────────── */
footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}
footer a:hover { color: var(--text) }

/* ── marketing main ──────────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* hero */
.hero { margin-bottom: 4rem }
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}
.hero .tagline .tech { color: var(--text); font-weight: 500 }

/* sections */
section { margin-bottom: 3rem }
h2 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
p { margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.7; color: var(--text) }
ul { list-style: none; margin-bottom: 1rem }
li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}
li::before { content: '—'; position: absolute; left: 0; color: var(--text-tertiary) }

/* architecture block */
.architecture {
  background: var(--bg-offset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.architecture-grid { display: grid; gap: 1.5rem }
.arch-item h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text) }
.arch-item p  { font-size: 0.875rem; color: var(--text-secondary); margin: 0 }

/* ecosystem */
.ecosystem-list { display: grid; gap: 0 }
.ecosystem-item { padding: 1rem 0; border-bottom: 1px solid var(--border) }
.ecosystem-item:last-child { border-bottom: none }
.ecosystem-item h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--text) }
.ecosystem-item p  { font-size: 0.875rem; color: var(--text-secondary); margin: 0 }

/* ── inline code + pre ───────────────────────────────────────── */
code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  background: var(--inline-code-bg);
  color: var(--inline-code-fg);
  border: 1px solid var(--inline-code-br);
  padding: 0.1em 0.38em;
  border-radius: var(--radius);
}
pre {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  background: var(--code-bg);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
  color: var(--code-text);
}
pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* ── auth pages ──────────────────────────────────────────────── */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 5rem 2rem;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.auth-card .auth-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.auth-card .auth-sub a { color: var(--accent) }
.auth-card .auth-sub a:hover { text-decoration: underline }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem }
.field { display: flex; flex-direction: column; gap: 0.4rem }
.field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(84, 105, 212, 0.15);
}
.auth-submit {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.65rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  transition: background .15s, box-shadow .15s;
  margin-top: 0.25rem;
}
.auth-submit:hover { background: var(--accent-dark); box-shadow: var(--shadow-sm) }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed }

.auth-error {
  font-size: 0.875rem;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  display: none;
}
.auth-success {
  font-size: 0.875rem;
  color: #1a7f4b;
  background: #edfaf3;
  border: 1px solid #b7ecd0;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  display: none;
}

/* ── logout button (header on dashboard/docs) ────────────────── */
.logout-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: var(--bg);
  transition: border-color .15s, color .15s;
}
.logout-btn:hover { border-color: var(--text-secondary); color: var(--text) }

/* ── docs layout ─────────────────────────────────────────────── */
.docs-shell { display: none }
.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

/* sidebar */
.docs-sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: #f7fafc;
  border-right: 1px solid #d8dee6;
  padding: 1.75rem 0;
}
.sidebar-list { list-style: none }
.sidebar-list--top { margin-bottom: 0.75rem }
.sidebar-section { margin-bottom: 0.75rem }
.sidebar-heading {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8898aa;
  padding: 0.6rem 1.5rem 0.25rem;
}
.sidebar-link {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #425466;
  text-decoration: none;
  padding: 0.32rem 1.5rem;
  border-left: 2px solid transparent;
  line-height: 1.45;
  transition: color .1s, background .1s;
}
.sidebar-link:hover {
  color: #0a2540;
  background: #edf1f7;
  text-decoration: none;
}
.sidebar-link.active {
  color: #5469d4;
  font-weight: 500;
  border-left-color: #5469d4;
  background: #eef2ff;
}

/* doc main content area */
.docs-main {
  padding: 2.5rem 3rem 5rem;
  min-width: 0;
  max-width: calc(var(--content-max) + 6rem);
}
.doc-breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.doc-breadcrumb__sep { opacity: 0.5 }

/* doc content typography */
.doc-content { color: var(--text) }
.doc-content h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.doc-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.5rem 0 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}
.doc-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.4rem;
}
.doc-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.3rem;
}
.doc-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}
.doc-content ul, .doc-content ol { margin: 0 0 1rem 1.25rem }
.doc-content li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.3rem;
  padding-left: 0;
}
.doc-content li::before { display: none }
.doc-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.doc-content a { color: var(--accent) }
.doc-content a:hover { text-decoration: underline }

/* doc code */
.doc-content pre {
  background: var(--code-bg);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--code-text);
  font-family: var(--font-mono);
}
.doc-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}
.doc-content code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  background: var(--inline-code-bg);
  color: var(--inline-code-fg);
  border: 1px solid var(--inline-code-br);
  padding: 0.1em 0.38em;
  border-radius: var(--radius);
}

/* doc tables */
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.75rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.doc-content th, .doc-content td {
  text-align: left;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.doc-content th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-offset);
}
.doc-content tr:last-child td { border-bottom: none }

/* ── dashboard ───────────────────────────────────────────────── */
.dash {
  display: none;
  padding: 2.5rem 2rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.dash-email { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.125rem }

/* section header */
.section-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0 0.75rem;
}
.section-hd h2 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  margin: 0;
}
.section-hd .count { font-size: 0.8125rem; color: var(--text-tertiary) }

/* sparse list */
.sparse-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.sparse-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background .1s;
}
.sparse-row:last-child { border-bottom: none }
.sparse-row:hover { background: var(--bg-offset) }
.sparse-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  min-width: 120px;
}
.sparse-url {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.sparse-url:hover { text-decoration: underline }
.sparse-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  margin-left: auto;
}
.sparse-arrow { font-size: 0.8125rem; color: var(--text-tertiary); margin-left: 0.375rem; flex-shrink: 0 }

/* badges */
.badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.badge-js     { background: #fef9c3; color: #92400e }
.badge-wasm   { background: #ede9fe; color: #5b21b6 }
.badge-sqlite { background: var(--accent-light); color: var(--accent) }

.binding-chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.125rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* empty state */
.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.empty-state a { color: var(--accent) }

/* detail view */
.detail-view { display: none }
.back-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  transition: border-color .1s, color .1s;
  margin-bottom: 1.75rem;
}
.back-btn:hover { border-color: var(--text-secondary); color: var(--text) }

.detail-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.detail-sub { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 1.75rem }

.detail-actions { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap }
.btn-visit, .btn-danger, .btn-primary {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .1s;
  text-decoration: none;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
}
.btn-visit {
  border-color: var(--border);
  color: var(--text-secondary);
  background: var(--bg);
}
.btn-visit:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.btn-danger {
  border-color: #dc2626;
  color: #dc2626;
  background: var(--bg);
}
.btn-danger:hover { background: #dc2626; color: #fff }
.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff }

.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.625rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}
.info-label { color: var(--text-secondary) }
.info-val { color: var(--text); word-break: break-all }
.info-val a { color: var(--accent) }
.info-val a:hover { text-decoration: underline }

.detail-section { margin-top: 2rem }
.detail-section-hd {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* SQL runner */
.sql-wrap { display: flex; flex-direction: column; gap: 0.5rem }
.sql-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0.625rem 0.75rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.sql-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(84,105,212,.12);
}
.sql-result {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-offset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--text);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.sql-result.show { display: block }

/* tables list in detail */
.table-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.875rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}
.table-row:last-child { border-bottom: none }
.table-name { color: var(--text); font-weight: 500 }
.table-rows { color: var(--text-secondary); font-size: 0.8125rem }

/* schema block */
.schema-block {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--code-bg);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  color: var(--code-text);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}

.cell-chips { display: flex; gap: 0.375rem; flex-wrap: wrap }
.cell-chip {
  font-size: 0.8125rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .1s, color .1s;
}
.cell-chip:hover { border-color: var(--accent); color: var(--accent) }

/* confirm modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.35);
  backdrop-filter: blur(2px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex }
.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadow-card);
}
.modal h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem }
.modal p  { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.25rem }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end }
.btn-cancel {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .1s, color .1s;
}
.btn-cancel:hover { border-color: var(--text-secondary); color: var(--text) }
.btn-delete {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border: none;
  border-radius: var(--radius);
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  transition: background .1s;
}
.btn-delete:hover { background: #b91c1c }

.placeholder { color: var(--text-tertiary); font-size: 0.875rem }
.danger-zone { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #fee2e2 }
.danger-zone .detail-section-hd { color: #dc2626 }

/* tech highlight (homepage) */
.tech-highlight { color: var(--text); font-weight: 500 }

/* ── responsive ──────────────────────────────────────────────── */
@media (min-width: 600px) {
  .architecture-grid { grid-template-columns: repeat(3, 1fr) }
}
@media (min-width: 1400px) {
  :root { --sidebar-w: 280px }
}
@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr }
  .docs-sidebar { display: none }
  .docs-main { padding: 1.5rem 1.25rem 3rem; max-width: 100% }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 1.25rem }
  main { padding: 2.5rem 1.25rem 4rem }
  .dash { padding: 1.5rem 1.25rem 4rem }
}
