:root {
  color-scheme: light;
  --crm-page: #faf9f7;
  --crm-shell: #f4f0ec;
  --crm-surface: #fff;
  --crm-accent: #7ea199;
  --crm-accent-soft: #edf4f2;
  --crm-primary: #466d65;
  --crm-primary-hover: #374151;
  --crm-link: #557b72;
  --crm-brand-muted: #998675;
  --crm-title: #111827;
  --crm-text: #374151;
  --crm-text-muted: #4b5563;
  --crm-border: #e5e7eb;
  --crm-control-border: #d1d5db;
  --crm-radius: 8px;
  --crm-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--crm-page); color: var(--crm-text); font: 14px/1.65 var(--crm-font); }
[hidden] { display: none !important; }
a { color: var(--crm-link); text-underline-offset: 3px; }
a:hover { color: var(--crm-primary-hover); }
button, input { font: inherit; }
button, .button, .download { min-height: 44px; border: 1px solid var(--crm-control-border); border-radius: 8px; background: white; padding: 9px 14px; color: var(--crm-text); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .download:hover { background: #f9fafb; }
:focus-visible { outline: 2px solid var(--crm-primary); outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px; background: white; z-index: 50; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; display: flex; flex-direction: column; padding: 28px 20px 18px; background: var(--crm-shell); border-right: 1px solid #e7e2dd; z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--crm-title); font-size: 17px; font-weight: 650; line-height: 1.4; }
.brand small { display: block; font-size: 8px; letter-spacing: 1.2px; color: var(--crm-text-muted); margin-top: 5px; }
.brand-mark { display: grid; place-content: center; flex: 0 0 42px; width: 42px; height: 42px; background: var(--crm-primary); border-radius: 10px; color: white; font: 600 31px/1 Georgia,serif; letter-spacing: -3px; padding-right: 2px; }
.brand-mark span { color: #e5ddd5; }
.nav-label { color: #67594e; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; margin: 38px 12px 14px; }
nav { display: grid; gap: 3px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 8px; color: var(--crm-text); text-decoration: none; font-size: 12px; line-height: 1.4; min-height: 44px; }
nav a span { font-size: 10px; color: #67594e; font-variant-numeric: tabular-nums; }
nav a:hover { background: #ece7e1; }
nav a[aria-current="location"] { background: #e0eae5; color: #32584f; font-weight: 650; }
.sidebar-note { padding: 20px 14px 15px; margin-top: auto; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: #756354; }
.sidebar-note strong { display: block; color: var(--crm-title); font-size: 17px; line-height: 1.5; margin-top: 10px; }
.sidebar-note p { font-size: 11px; margin: 8px 0; color: var(--crm-text-muted); }
.sidebar-footer { display: flex; gap: 10px; align-items: center; border-top: 1px solid #ddd5cd; padding: 18px 6px 0; font-size: 11px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; background: #e5ddd5; color: #67594e; font-weight: 650; flex: 0 0 auto; }
.sidebar-footer small { display: block; font-size: 9px; color: var(--crm-text-muted); margin-top: 2px; }
.workspace { margin-left: 270px; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 73px; padding: 12px 40px; background: rgb(250 249 247 / 96%); border-bottom: 1px solid var(--crm-border); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.breadcrumb { font-size: 12px; color: var(--crm-text-muted); }
.breadcrumb span { margin: 0 12px; color: #998675; }
.top-actions { display: flex; gap: 20px; align-items: center; }
.offline { font-size: 10px; color: var(--crm-text-muted); white-space: nowrap; }
.offline i { display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: #466d65; margin-right: 6px; }
#menu-toggle { display: none; }
main { max-width: 1280px; margin: auto; padding: 40px 48px 0; }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; padding: 18px 0 34px; }
h1 { color: var(--crm-title); font-size: clamp(29px, 3vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -1.5px; margin: 16px 0 20px; }
.hero p { color: var(--crm-text-muted); font-size: 14px; margin-bottom: 25px; }
.button { display: inline-flex; align-items: center; gap: 26px; }
.primary { color: white; background: var(--crm-primary); border-color: var(--crm-primary); }
.primary:hover { background: var(--crm-primary-hover); color: white; }
.quick-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.project-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 32px; }
.project-link-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--crm-control-border); border-top: 4px solid var(--crm-accent); border-radius: 8px; background: white; box-shadow: 0 3px 12px rgb(47 41 36 / 5%); }
.demo-link-card { background: #edf4f2; border-color: #a6bfb6; border-top-color: var(--crm-primary); }
.project-link-card h2 { font-size: 22px; margin: 12px 0 8px; }
.project-link-card p { margin: 0 0 12px; font-size: 13px; }
.project-url { display: block; max-width: 100%; margin: 0 0 20px; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.project-link-card .button { margin-top: auto; min-height: 48px; }
@media (max-width: 1100px) { .top-actions { gap: 12px; } .project-links { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .topbar .breadcrumb { display: none; } .top-actions { margin-left: auto; gap: 12px; } .quick-link { font-size: 11px; } .project-link-card { padding: 20px; } .project-link-card .button { width: 100%; justify-content: space-between; } }
@media print { .project-links { grid-template-columns: 1fr 1fr; break-inside: avoid; } .project-link-card .button { display: none; } }
.hero-map { background: #f0ede8; border: 1px solid #e4dfd8; border-radius: 12px; padding: 20px 24px; }
.map-label { font-size: 9px; font-weight: 600; letter-spacing: 1.8px; color: #67594e; display: block; margin-bottom: 14px; }
.mini-node { padding: 12px 15px; border: 1px solid #e2ddd5; border-radius: 8px; background: white; color: #67594e; font-size: 10px; }
.mini-node strong { margin-left: 12px; color: var(--crm-title); font-size: 12px; font-weight: 600; }
.mini-node small { display: block; margin-left: 28px; color: var(--crm-text-muted); font-size: 10px; }
.final-node { background: #e7f0ed; border-color: #9db6ad; }
.connector { display: block; text-align: center; height: 19px; font-size: 14px; color: #557b72; line-height: 19px; }
.meta-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--crm-border); border-bottom: 1px solid var(--crm-border); padding: 20px 0; font-size: 11px; color: var(--crm-text-muted); }
.meta-strip b { color: var(--crm-title); font-size: 17px; font-weight: 600; margin-right: 6px; }
.search-box { position: relative; margin: 28px 0 40px; }
.search-box label { display: block; color: var(--crm-text); font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.search-control { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--crm-control-border); border-radius: 8px; padding: 0 14px; }
.search-control:focus-within { outline: 2px solid var(--crm-primary); outline-offset: 2px; }
.search-control span { font-size: 24px; color: #557b72; }
input[type="search"] { width: 100%; min-width: 0; min-height: 46px; border: 0; color: var(--crm-text); background: transparent; font-size: 13px; outline: none; }
input::placeholder { color: #6b7280; }
kbd { border: 1px solid var(--crm-border); border-radius: 4px; padding: 0 6px; color: #6b7280; font-size: 11px; }
#search-status { margin: 4px 0 0; font-size: 12px; color: var(--crm-text-muted); }
#search-status:empty { display: none; }
#search-results { list-style: none; padding: 8px; margin: 8px 0 0; background: white; border: 1px solid var(--crm-border); border-radius: 8px; }
#search-results a { display: block; text-decoration: none; padding: 10px; border-radius: 6px; }
#search-results a:hover { background: var(--crm-accent-soft); }
#search-results strong, #search-results small { display: block; }
#search-results small { color: var(--crm-text-muted); font-size: 12px; }
.doc-section { border-top: 1px solid #dedbd5; padding: 36px 0 40px; scroll-margin-top: 12px; }
.section-heading { margin-bottom: 24px; }
h2 { color: var(--crm-title); font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.5px; margin: 9px 0 10px; }
.lead { max-width: 790px; color: var(--crm-text-muted); margin: 0; font-size: 14px; }
h3 { color: var(--crm-title); font-size: 17px; line-height: 1.45; margin: 30px 0 12px; font-weight: 600; }
h4 { color: var(--crm-title); font-size: 14px; margin: 24px 0 8px; }
p { margin: 10px 0 16px; }
strong { font-weight: 650; }
.cards { display: grid; gap: 16px; }
.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card { background: white; border: 1px solid var(--crm-border); padding: 20px; border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / 3%); }
.card h3 { font-size: 15px; margin: 13px 0 8px; }
.card p { font-size: 12px; color: var(--crm-text-muted); margin: 0; }
.badge { display: inline-block; border-radius: 99px; background: var(--crm-accent-soft); color: #466d65; font-size: 10px; font-weight: 650; padding: 3px 9px; }
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li { counter-increment: steps; position: relative; padding: 6px 0 12px 40px; }
.steps li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 7px; width: 27px; height: 27px; display: grid; place-content: center; font-size: 10px; font-weight: 600; color: #466d65; background: #edf4f2; border-radius: 50%; }
li { margin-bottom: 7px; }
.muted { font-size: 12px; color: var(--crm-text-muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--crm-border); border-radius: 8px; background: white; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { background: var(--crm-shell); color: #374151; font-size: 11px; font-weight: 650; padding: 13px 16px; }
td { border-top: 1px solid var(--crm-border); padding: 13px 16px; vertical-align: top; }
tbody tr:hover { background: #f9fafb; }
td:first-child { min-width: 120px; font-weight: 550; }
td code { white-space: normal; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: #eeeae4; color: #374151; border-radius: 4px; padding: 2px 4px; overflow-wrap: anywhere; }
.code-block { border: 1px solid #dce4df; border-radius: 8px; overflow: hidden; margin: 18px 0 22px; background: #f0f4f1; }
.code-bar { display: flex; justify-content: space-between; align-items: center; background: #e6ede8; padding: 6px 10px 6px 18px; }
.code-bar span { font-size: 10px; font-weight: 650; color: #3b5c53; letter-spacing: 1px; }
.code-bar button { background: white; font-size: 11px; padding: 6px 12px; }
pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 12px; line-height: 1.85; tab-size: 2; }
pre code { padding: 0; background: transparent; font-size: inherit; color: #284a3f; overflow-wrap: normal; }
.callout { border: 1px solid #cfddd7; border-left: 3px solid #7ea199; border-radius: 0 8px 8px 0; background: var(--crm-accent-soft); padding: 16px 20px; margin: 24px 0; }
.callout strong { color: #3b5c53; font-size: 12px; }
.callout p { font-size: 13px; margin: 6px 0 0; }
.environment-picker { display: flex; gap: 6px; padding: 6px; background: #ede9e5; width: fit-content; max-width: 100%; flex-wrap: wrap; border-radius: 10px; margin-bottom: 24px; }
.environment-picker button { background: transparent; border-color: transparent; }
.environment-picker button[aria-pressed="true"] { background: white; color: #32584f; box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.environment { border: 1px solid var(--crm-border); background: white; border-radius: 8px; padding: 8px 24px 18px; margin-bottom: 22px; }
figure { margin: 24px 0; border: 1px solid var(--crm-border); border-radius: 8px; overflow: hidden; background: white; }
.figure-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 16px; border-bottom: 1px solid var(--crm-border); }
.figure-toolbar strong { font-size: 12px; }
.figure-toolbar > div { display: flex; gap: 8px; flex-shrink: 0; }
.figure-toolbar button, .download { font-size: 11px; padding: 9px 12px; }
.diagram-scroll { overflow-x: auto; background: var(--crm-page); padding: 12px; }
.diagram-scroll img { display: block; width: 100%; min-width: 690px; height: auto; }
figcaption { padding: 13px 16px; font-size: 12px; color: var(--crm-text-muted); border-top: 1px solid var(--crm-border); }
.method { border-radius: 4px; font-size: 9px; font-weight: 650; padding: 4px 6px; display: inline-block; }
.get { background: #edf4f2; color: #466d65; }
.post { background: #f0f9ff; color: #0369a1; }
.delete { background: #fee2e2; color: #b91c1c; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--crm-border); padding: 26px 0; font-size: 12px; color: var(--crm-text-muted); }
.page-footer small { display: block; font-size: 10px; margin-top: 4px; }
dialog { padding: 0; width: min(1500px,96vw); max-width: 96vw; max-height: 94vh; border: 1px solid var(--crm-border); border-radius: 10px; color: var(--crm-text); background: var(--crm-page); }
dialog::backdrop { background: rgb(0 0 0 / 45%); }
dialog header { padding: 12px 20px; background: white; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
dialog h2 { margin: 0; font-size: 16px; }
dialog header > div { display: flex; gap: 8px; }
.dialog-canvas { overflow: auto; max-height: 72vh; padding: 20px; }
.dialog-canvas img { display: block; max-width: none; height: auto; }
dialog > p { padding: 0 20px; font-size: 11px; }
#toast { position: fixed; bottom: 24px; left: calc(50% + 135px); transform: translateX(-50%); max-width: 90vw; border-radius: 8px; background: #374151; color: white; font-size: 12px; box-shadow: 0 6px 24px rgb(0 0 0 / 15%); z-index: 60; }
#toast:not(:empty) { padding: 12px 20px; }
@media (min-width: 1600px) { main { padding-top: 50px; } .hero { padding-top: 30px; padding-bottom: 44px; } }
@media (max-width: 1200px) { .sidebar { width: 240px; padding: 24px 14px 16px; } .workspace { margin-left: 240px; } main { padding: 28px 28px 0; } .topbar { padding: 12px 28px; } .hero { gap: 20px; } .hero-map { padding: 18px; } .offline { display: none; } .three { grid-template-columns: 1fr; } .card { padding: 18px 20px; } #toast { left: calc(50% + 120px); } }
@media (max-width: 900px) { .sidebar { transform: translateX(-100%); transition: transform .2s; width: 270px; top: 70px; } body.menu-open .sidebar { transform: translateX(0); box-shadow: 8px 10px 24px rgb(0 0 0 / 12%); } .workspace { margin-left: 0; } #menu-toggle { display: block; font-size: 18px; padding: 7px 12px; } .topbar { padding: 12px 24px; min-height: 70px; } .breadcrumb { margin-right: auto; } main { padding: 24px 28px 0; } .three { grid-template-columns: repeat(3,minmax(0,1fr)); } .sidebar-note { display: none; } .sidebar-footer { margin-top: 20px; } #toast { left: 50%; } }
@media (max-width: 600px) { html { scroll-padding-top: 86px; } main { padding: 20px 18px 0; } .topbar { padding: 10px 14px; gap: 10px; } .breadcrumb { font-size: 10px; } .breadcrumb span { margin: 0 6px; } .top-actions button { font-size: 10px; padding: 8px; } .hero { grid-template-columns: 1fr; padding: 10px 0 24px; gap: 24px; } h1 { font-size: 34px; letter-spacing: -1px; } .hero-map { display: none; } .meta-strip { display: grid; grid-template-columns: 1fr 1fr; font-size: 10px; gap: 14px; padding: 18px 0; } .meta-strip b { font-size: 16px; } .search-box { margin-bottom: 30px; } .three { grid-template-columns: 1fr; } h2 { font-size: 24px; } .doc-section { padding: 28px 0; } .environment { padding: 4px 16px 14px; } .environment-picker { gap: 2px; } .environment-picker button { font-size: 11px; padding: 8px 10px; } .figure-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; } table { min-width: 600px; } th, td { padding: 12px; } pre { padding: 14px; font-size: 11px; } .page-footer { align-items: flex-start; font-size: 11px; } dialog header { flex-wrap: wrap; padding: 12px; } dialog h2 { font-size: 14px; } .callout { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 900px) { .sidebar { visibility: hidden; } body.menu-open .sidebar { visibility: visible; } }
@media print { html { scroll-behavior: auto; } body { background: white; font-size: 10pt; } .sidebar, .topbar, .search-box, .hero-map, .environment-picker, .copy, .figure-toolbar > div, dialog, #toast, .skip-link, .hero .button { display: none !important; } .workspace { margin: 0; } main { max-width: none; padding: 0; } .hero { display: block; padding: 0; } h1 { font-size: 26pt; } h2 { font-size: 20pt; } h3 { font-size: 14pt; break-after: avoid; } .doc-section { padding-top: 22px; break-before: page; } .doc-section h2, .section-heading { break-after: avoid; } .environment[hidden] { display: block !important; } .three { grid-template-columns: repeat(3,minmax(0,1fr)); } table { min-width: 0; font-size: 9pt; } thead { display: table-header-group; } tr { break-inside: avoid; } .table-scroll { overflow: visible; } .code-block, .callout { break-inside: avoid; } pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 8pt; } .diagram-scroll { padding: 0; overflow: visible; } .diagram-scroll img { min-width: 0; max-width: 100%; max-height: 230mm; object-fit: contain; } figure { break-inside: avoid; } a { color: #374151; } .cards, .environment { box-shadow: none; } }
