/* PDF Generator (Open Source) by eCom Learning Solutions. All assets are local. */
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-semibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --paper: #f6f8fc;
  --surface: #fff;
  --ink: #242e52;
  --muted: #5f6b82;
  --line: #dfe5f0;
  --navy: #293473;
  --blue: #145d92;
  --purple: #603e7f;
  --gold: #e5a900;
  --blue-light: #eaf3fa;
  --purple-light: #f1ecf7;
  /* Compatibility tokens used by the shared layout components. */
  --green: var(--blue);
  --green-dark: var(--navy);
  --green-light: var(--blue-light);
  --font: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}
body { background: var(--paper); }
h1, h2, h3 { color: var(--navy); font-family: var(--font); font-weight: 600; }
a { color: var(--blue); }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #2994d0;
  outline-offset: 4px;
}
::selection { background: #e9dff5; color: var(--navy); }
.page-width { max-width: 1320px; padding-left: 48px; padding-right: 48px; }
.product-bar { background: var(--navy); color: #e1e8ff; }
.product-bar-inner {
  max-width: 1320px; margin: auto; padding: 7px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; line-height: 18px; letter-spacing: .015em;
}
.product-bar a { color: #fff; text-decoration: none; }
.product-bar a:hover { text-decoration: underline; }
.product-bar-divider { margin: 0 10px; color: #a6b2db; }
.product-bar-detail { color: #becaeb; }
.site-header {
  height: 88px; background: #ffffffed; border-color: var(--line);
  box-shadow: 0 3px 16px #29347304;
}
.header-inner { max-width: 1320px; padding: 0 48px; gap: 24px; }
.site-brand { min-width: 0; max-width: 100%; }
.product-logo { display: block; width: 310px; height: auto; max-width: 100%; }
.site-nav { gap: 28px; }
.site-nav a { color: #52607b; font-size: 14px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--navy); }
.site-nav a[aria-current=page]:not(.nav-download) { text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.site-nav .nav-download {
  color: var(--navy); background: var(--gold); border-color: var(--gold);
  padding: 11px 20px; border-radius: 99px;
}
.site-nav .nav-download:hover { background: #f0b81c; border-color: #f0b81c; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: .13em; }
.status-dot { background: #2994d0; width: 7px; height: 7px; }
.button {
  padding: 14px 23px; font-size: 15px; font-weight: 600; gap: 24px;
  border-radius: 99px; transition: background .15s, box-shadow .15s, transform .15s;
}
.button.primary { background: var(--gold); color: var(--navy); box-shadow: 0 4px 12px #c48d0015; }
.button.primary:hover { background: #f0b81c; box-shadow: 0 6px 18px #c48d0026; }
.button.secondary { border-color: #cdd6e7; color: var(--navy); background: #fff; }
.button.secondary:hover { background: var(--blue-light); border-color: #afc9df; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 600; }
.small-note { color: var(--muted); }
.lead { font-size: 18px; line-height: 1.7; }
.section-block { padding: 76px 0; }
.section-block h2, .source-banner h2, .download-card h2,
.library-bottom h2, .library-heading h2, .download-note h3, .library-empty h2 {
  font-family: var(--font); font-weight: 600; letter-spacing: -.025em; line-height: 1.15;
}
.section-block h2 { font-size: 40px; }
.section-heading { gap: 60px; margin-bottom: 32px; }
.section-heading>p { font-size: 16px; max-width: 390px; line-height: 1.7; }

/* Homepage: the product story, request illustration, and integration paths. */
.product-hero {
  display: grid; grid-template-columns: .98fr 1.02fr; gap: 44px;
  align-items: center; padding: 70px 0 65px;
}
.hero-kicker {
  display: inline-flex; align-items: center; padding: 7px 12px;
  border: 1px solid #d9e5f2; border-radius: 99px; background: #edf4fb;
  color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: .11em;
}
.product-hero h1 { font-size: clamp(46px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.04em; margin: 24px 0; }
.product-hero h1 em { font-style: normal; color: var(--purple); position: relative; }
.product-hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; background: var(--gold); border-radius: 4px; }
.hero-description { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 485px; margin: 0 0 28px; }
.hero-note { color: var(--muted); font-size: 12px; margin-top: 20px; }
.hero-note span { color: #a2adc2; margin: 0 9px; }
.product-visual { position: relative; min-width: 0; padding: 14px 0 28px; }
.visual-halo {
  position: absolute; inset: -35px -30px 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 80% 30%, #e6def366, transparent 60%), radial-gradient(ellipse at 15% 75%, #cde7f666, transparent 62%);
}
.product-demo {
  position: relative; background: #1e285a; border: 1px solid #3b487f;
  border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px #2934731d, 0 4px 10px #2934730c;
}
.demo-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #43517d; }
.demo-title { display: flex; align-items: center; gap: 9px; color: #f1f5ff; font-size: 12px; font-weight: 600; }
.demo-title img { background: #fff; padding: 2px; border-radius: 3px; }
.demo-mode { font: 9px var(--mono); color: #bacbea; }
.demo-columns { display: grid; grid-template-columns: 1.12fr 1fr; gap: 15px; padding: 20px; }
.demo-request, .demo-output { min-width: 0; }
.demo-panel-label { display: flex; align-items: center; justify-content: space-between; color: #b8c8e8; font-size: 8px; letter-spacing: .09em; margin-bottom: 14px; }
.demo-code { white-space: pre; color: #bfcbe8; background: #172048; border: 1px solid #3a4777; padding: 16px 12px; border-radius: 8px; font: 10px/1.9 var(--mono); overflow: hidden; }
.code-key { color: #83c6ef; }
.code-string { color: #f0d089; }
.code-brace { color: #d2c6f0; }
.demo-endpoint { display: flex; align-items: center; gap: 3px; margin-top: 12px; font: 9px var(--mono); color: #baccec; }
.method-label { background: #e8f2fc; color: var(--blue); border-radius: 4px; }
.demo-endpoint .method-label { color: #c6def8; background: #344578; }
.demo-paper { background: #fff; border-radius: 3px; padding: 23px 20px 17px; box-shadow: 0 8px 24px #0a123b3b; transform: rotate(2deg); margin: 2px 3px 0; }
.demo-paper-brand { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 6px; font-weight: 600; letter-spacing: .08em; margin-bottom: 25px; }
.demo-paper-monogram { background: var(--purple); color: #fff; display: grid; place-items: center; width: 21px; height: 25px; border-radius: 4px; font-size: 13px; }
.demo-paper-meta { font: 6px var(--mono); color: #77839b; }
.demo-paper h2 { font-size: 24px; letter-spacing: -.04em; line-height: 1.1; margin: 10px 0 13px; }
.demo-paper-rule { height: 3px; background: var(--gold); width: 34px; margin-bottom: 23px; }
.demo-paper h3 { color: #414f6f; font-size: 10px; margin-bottom: 8px; }
.demo-paper p { font-size: 8px; color: #65718a; margin-bottom: 13px; }
.demo-paper-line { display: block; height: 4px; border-radius: 2px; background: #e7ebf2; margin: 8px 0; }
.demo-paper-line.short { width: 70%; }
.demo-paper-section { display: flex; flex-direction: column; gap: 8px; background: #eff3fa; margin-top: 20px; padding: 12px; border-left: 2px solid var(--blue); }
.demo-paper-section span { display: block; height: 3px; background: #d4deed; }
.demo-paper-section span:last-child { width: 65%; }
.demo-paper-footer { font: 5px var(--mono); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e9edf5; color: #77849e; margin-top: 27px; padding-top: 11px; gap: 5px; }
.demo-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-top: 1px solid #43517d; color: #d0dcf4; font-size: 10px; }
.demo-bottom>span:last-child { color: #b8c8e8; font-size: 9px; }
.demo-output-dot { display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-right: 7px; }
.demo-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 11px; }
.product-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.product-specs>div { padding: 0 26px; border-left: 1px solid var(--line); }
.product-specs>div:first-child { border-left: 0; padding-left: 0; }
.product-specs strong { display: block; font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.product-specs span { color: var(--muted); font-size: 12px; }
.feature-card { padding: 28px; border-radius: 14px; box-shadow: 0 4px 16px #29347304; position: relative; }
.feature-card:hover { border-color: #a7bedc; box-shadow: 0 14px 30px #2934730c; }
.feature-number { color: var(--muted); font: 10px var(--mono); }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--blue-light); color: var(--blue); margin: 26px 0 22px; }
.feature-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.combine-feature .feature-icon { background: var(--purple-light); color: var(--purple); }
.host-feature .feature-icon { background: #fff5d9; color: #8a6708; }
.feature-card h3 { font: 600 26px/1.2 var(--font); letter-spacing: -.02em; margin: 0 0 12px; }
.feature-card p { font-size: 15px; line-height: 1.65; min-height: 75px; margin-bottom: 25px; }
.integration-section { gap: 65px; }
.integration-section p { font-size: 16px; line-height: 1.7; }
.stack-tags span { color: #5a6984; background: #fff; border-color: var(--line); padding: 8px 12px; }
.code-block { background: #1d2856; color: #e1e9fa; border-color: #3c497d; border-radius: 12px; box-shadow: 0 7px 20px #2934730a; }
.code-bar { background: #253266; color: #c6d4ef; border-color: #414e7d; padding: 13px 18px; }
.copy-code { color: #e0e9fb; border-color: #6676a2; border-radius: 5px; }
.copy-code:hover { background: #3c4b81; }
.code-block pre { padding: 24px; font-size: 12px; }
.source-banner { padding: 40px 44px; margin-bottom: 72px; border-color: #d7dff0; border-radius: 16px; background: linear-gradient(115deg, #edf2fc, #f2edfa); }
.source-banner h2 { color: var(--navy); font-size: 35px; margin: 13px 0 16px; }
.source-banner p { font-size: 15px; max-width: 660px; line-height: 1.7; }
.source-banner summary { font-size: 12px; }

/* Source packages and setup guidance. */
.page-intro { padding: 60px 0 37px; }
.page-intro h1, .docs-content h1, .library-intro h1 { font: 600 clamp(40px, 4.2vw, 58px)/1.08 var(--font); letter-spacing: -.035em; margin: 19px 0 22px; }
.download-grid { gap: 26px; grid-template-columns: 1.1fr 1fr; }
.download-card { border-radius: 15px; padding: 34px; box-shadow: 0 7px 25px #29347305; }
.application-download { border-color: #b9c9e6; position: relative; overflow: hidden; }
.application-download::before { content: ''; position: absolute; height: 4px; top: 0; left: 0; right: 0; background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 55%, var(--purple) 100%); }
.package-cover { margin: -34px -34px 30px; padding: 28px 34px; background: radial-gradient(ellipse at 95% 10%, #66538a77, transparent 65%), linear-gradient(120deg, #293473, #1c285c); }
.package-cover img { display: block; width: 295px; max-width: 100%; height: auto; }
.download-card .package-cover p { color: #fff; font-size: 29px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin: 24px 0; }
.package-cover>span { display: flex; justify-content: space-between; align-items: center; color: #cbd8f6; font-size: 9px; letter-spacing: .1em; }
.package-cover>span>span { color: var(--gold); font-size: 21px; }
.package-icon { background: var(--navy); border-radius: 12px; }
.package-icon.light { background: var(--purple-light); color: var(--purple); }
.download-card h2 { font-size: 32px; }
.download-card p { font-size: 15px; line-height: 1.7; }
.download-meta { color: var(--muted); font-size: 11px; }
.download-meta span+span::before { color: #94a3bc; }
.download-card .small-note { font-size: 12px; }
.release-tag { color: #5b6983; font-size: 10px; }
.checksum, .checksum p, .checksum>code { font-size: 12px; }
.package-includes ul { font-size: 15px; }
.package-includes li::before { color: var(--blue); }
.download-note { background: #eef2fa; border: 1px solid var(--line); border-radius: 14px; margin-top: 24px; padding: 26px 30px; }
.download-note h3 { font-size: 28px; }
.download-note p { font-size: 14px; }
.getting-started>div>p, .setup-steps p { font-size: 15px; }
.setup-steps h3 { font-size: 20px; }
.setup-steps>li>span { background: var(--blue-light); padding: 10px; height: 36px; border-radius: 8px; color: var(--blue); }
.license-panel { background: #eef2f9; border-color: var(--line); border-radius: 12px; padding: 28px 32px; margin-bottom: 45px; }
.license-panel h3 { font: 600 22px var(--font); }
.license-panel p { font-size: 14px; }
.brand-assets { margin-top: 30px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.brand-assets h2 { font-size: 29px; letter-spacing: -.025em; margin: 12px 0; }
.brand-assets p { font-size: 14px; color: var(--muted); margin-bottom: 0; max-width: 450px; }
.brand-assets-downloads { min-width: 0; }
.brand-assets-preview { display: flex; justify-content: center; background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.brand-assets-preview img { width: 310px; max-width: 100%; height: auto; }
.asset-download-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.asset-download-links a { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; text-decoration: none; }
.asset-download-links a:hover { text-decoration: underline; }
.asset-download-links span { font: 9px var(--mono); color: var(--muted); }

/* Searchable documentation library and its articles. */
.library-page { padding-top: 52px; }
.library-intro { max-width: 875px; }
.library-version { color: var(--purple); background: var(--purple-light); border-color: #dcd1e9; font-size: 10px; border-radius: 5px; }
.library-search { border-color: #cbd6e9; border-radius: 12px; box-shadow: 0 7px 25px #29347306; }
.library-search input { font-size: 16px; }
.library-search input::placeholder { color: #6c7a94; }
.library-controls p { font-size: 12px; }
.library-filters button { font-size: 14px; border-radius: 7px; padding: 7px 12px; }
.library-filters button[aria-pressed=true] { border-color: #c9d9ee; background: var(--blue-light); color: var(--blue); }
.library-paths { gap: 25px; }
.path-number { background: var(--blue-light); color: var(--blue); padding: 13px; border-radius: 9px; }
.library-paths strong { font-size: 14px; }
.library-paths div>span { font-size: 12px; }
.library-heading h2 { font-size: 35px; }
.library-heading .text-link { font-size: 13px; }
.library-card { border-radius: 12px; padding: 25px; box-shadow: 0 4px 14px #29347303; }
.library-card:hover { border-color: #a8bfdd; box-shadow: 0 12px 26px #2934730a; }
.library-card-top { font-size: 10px; color: var(--blue); margin-bottom: 18px; }
.library-card h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.library-card p { font-size: 14px; line-height: 1.6; }
.library-card-label { font-size: 12px; }
.library-card code { font-size: 11px; }
.template-reference-grid .library-card h3 { font-size: 18px; }
.template-reference-grid .library-card-top { color: var(--purple); }
.library-description { font-size: 15px; line-height: 1.7; }
.library-bottom { border-color: #d7dff0; background: linear-gradient(120deg, #eaf2fc, #f1ecf7); padding: 34px 38px; border-radius: 14px; }
.library-bottom h2 { font-size: 32px; }
.library-bottom p { font-size: 15px; }
.library-empty { border-color: #b8c8e2; }
.docs-library-shell { grid-template-columns: 235px minmax(0, 1fr); gap: 54px; }
.docs-library-shell .docs-sidebar { top: 114px; max-height: calc(100vh - 140px); padding-right: 14px; }
.doc-library-link { font-size: 14px; }
.doc-sidebar-search { border-color: #cdd8ea; border-radius: 8px; }
.doc-sidebar-search input { font-size: 13px; }
.doc-nav-group>span { color: #67748d; font-size: 10px; }
.docs-library-shell .docs-sidebar nav a { font-size: 13px; padding: 9px 10px; border-radius: 6px; }
.docs-library-shell .docs-sidebar nav a[aria-current=page] { background: var(--blue-light); color: var(--blue); }
.doc-breadcrumb { font-size: 12px; }
.docs-content h1, .docs-content .template-doc h1 { font-size: 48px; }
.docs-content h2 { font: 600 30px/1.2 var(--font); letter-spacing: -.02em; margin-top: 30px; }
.docs-content h3 { font-size: 21px; }
.docs-content p { font-size: 16px; line-height: 1.7; }
.docs-content .lead { font-size: 18px; }
.docs-content p code, .reference-table td code, .small-note code { color: #394b7e; background: #eef2fa; }
.docs-content li { color: var(--muted); line-height: 1.7; }
.info-callout { background: var(--blue-light); border-color: #2994d0; border-radius: 0 9px 9px 0; }
.info-callout p { font-size: 15px; }
.info-callout strong { color: var(--navy); }
.http-method { color: var(--purple); background: var(--purple-light); font-size: 10px; }
.http-method.get { color: var(--blue); background: var(--blue-light); }
.language-tabs button { font-size: 14px; }
.reference-table { font-size: 14px; }
.reference-table th { background: #eef2fa; color: #4a5c7f; font-size: 12px; }
.template-endpoint { color: var(--navy); background: #eef2fa; border-color: #d3ddef; border-radius: 8px; }
.doc-pagination a { border-radius: 10px; }
.doc-pagination a:hover { border-color: #a8bedc; }
.doc-pagination span { font-size: 12px; }
.doc-pagination strong { font-size: 14px; }
.nav-new { background: var(--purple-light); color: var(--purple); }

/* Merge workspace. */
.workspace-intro h1 { font: 600 46px/1.1 var(--font); letter-spacing: -.035em; }
.workspace-intro p { font-size: 16px; }
.merge-editor, .merge-preview { border-radius: 15px; box-shadow: 0 6px 24px #29347306; }
.workspace-card-head { padding: 25px 28px; }
.workspace-card-head h2 { font: 600 28px/1.2 var(--font); letter-spacing: -.02em; }
.quiet-badge { background: #eef2fa; color: #596987; border-radius: 6px; }
.drop-zone { border-color: #b7cbe4; border-radius: 12px; background: #f5f8fd; padding-top: 27px; }
.drop-zone.dragging { border-color: #2994d0; background: var(--blue-light); }
.upload-symbol { background: var(--blue-light); color: var(--blue); border-radius: 11px; }
.drop-zone h3 { font: 600 24px/1.2 var(--font); }
.drop-zone p { font-size: 14px; }
.drop-zone .small-note { font-size: 12px; }
.file-picker-label:focus-within { outline-color: #2994d0; }
.pdf-file-icon { background: var(--purple-light); color: var(--purple); border-color: #d8cfe8; }
.merge-file { border-radius: 10px; }
.merge-file-name h3 { font-size: 14px; }
.merge-file-name p { font-size: 12px; }
.file-actions button, .merge-page-navigation button { border-color: #cdd8eb; border-radius: 6px; }
.file-actions button:hover:not(:disabled), .merge-page-navigation button:hover:not(:disabled) { background: var(--blue-light); }
.merge-file-pages label { color: #586780; font-size: 12px; }
.merge-file-pages input, .merge-field input { border-color: #ccd7e8; background: #fbfcff; border-radius: 7px; color: var(--ink); }
.merge-file-pages small, .merge-field p { font-size: 12px; }
.merge-field label { color: #445578; font-size: 14px; }
.merge-field input { font-size: 15px; }
.merge-field label span { font-size: 12px; }
.merge-actions p { font-size: 13px; }
.workspace-privacy { color: var(--muted); font-size: 12px; }
.merge-preview { top: 110px; }
.merge-preview-empty { background: radial-gradient(ellipse at 50% 35%, #fff 0%, #edf2fc 100%); }
.merge-preview-empty h3 { font: 600 27px/1.2 var(--font); }
.merge-preview-empty p { font-size: 14px; }
.page-stack>span { border-color: #c3d2e8; background: #eaf2fb; box-shadow: 0 8px 16px #29347312; }
.page-stack>span:nth-child(2) { background: #f0ebf8; }
.page-stack i { background: #dfe6f3; }
.page-stack i:first-child { background: #91aed7; }
.merge-canvas-wrap { background: #e7ecf5; }
.merge-api-note { background: #f7f9fd; }
.merge-api-note .method-label { color: var(--blue); background: var(--blue-light); }
.merge-help { border-radius: 10px; background: #fff; }
.merge-help p { font-size: 14px; }

/* Template studio: coordinated editing controls and paper preview. */
.studio-body .header-inner { max-width: none; padding-left: 28px; padding-right: 28px; }
.studio-body .product-bar-inner { max-width: none; padding-left: 28px; padding-right: 28px; }
.app-shell { grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 120px); }
.template-panel, .work-area { height: calc(100vh - 120px); min-height: 0; }
.template-panel { background: #fff; border-color: var(--line); padding-top: 28px; }
.sidebar-head h1, .editor-head h2, .preview-head h2 { font-family: var(--font); font-weight: 600; color: var(--navy); letter-spacing: -.025em; }
.sidebar-head h1 { font-size: 27px; }
.sidebar-head p { color: var(--muted); font-size: 13px; }
.workspace-tag { color: #738099; font-size: 8px; letter-spacing: .09em; margin-top: 15px; }
.workspace-tag span { margin: 0 4px; color: #a4b0c7; }
.search-wrap { background: #f6f8fc; border-color: #d5deed; height: 41px; margin-top: 20px; }
.search-wrap input { color: var(--ink); font-size: 13px; }
.search-wrap input::placeholder { color: #78859d; }
.search-wrap:focus-within { border-color: #2994d0; box-shadow: 0 0 0 3px #2994d018; }
.group-heading { color: #697793; font-size: 10px; }
.template-item { color: #566580; font-size: 13px; padding: 10px; border-radius: 8px; }
.template-item:hover { color: var(--blue); background: #f0f5fc; }
.template-item.active { color: var(--blue); background: var(--blue-light); box-shadow: inset 3px 0 #2994d0; }
.template-glyph, .template-item.active .template-glyph { border-color: #cddbf0; color: var(--blue); }
.sidebar-foot { color: var(--muted); border-color: var(--line); }
.work-area { padding: 24px; gap: 20px; background: #f0f3fa; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.editor-panel, .preview-panel { border-color: #d9e1ef; border-radius: 14px; box-shadow: 0 5px 18px #29347306; }
.editor-head, .preview-head { padding: 24px 25px 21px; border-color: var(--line); }
.editor-head h2, .preview-head h2 { font-size: 29px; }
.editor-head p { color: var(--muted); font-size: 14px; }
.type-badge { color: var(--purple); background: var(--purple-light); border-color: #dfd4ed; padding: 6px 9px; }
.editor-toolbar { padding: 13px 24px; border-color: var(--line); }
.segmented { background: #eef2fa; }
.segmented button { color: #61718e; font-size: 12px; }
.segmented button.active { color: var(--navy); }
.text-button { color: var(--blue); font-size: 12px; }
.text-button:hover { color: var(--navy); }
.form-panel, .json-panel { padding: 24px; }
.json-panel textarea { color: #324373; background: #f8faff; border-color: #ccd8ed; font-size: 12px; }
.json-panel textarea:focus { border-color: #2994d0; box-shadow: 0 0 0 3px #2994d018; }
.api-access { background: #eef4fc; border-color: var(--line); }
.api-access p { color: var(--muted); }
.section-title { color: #41537d; font-size: 14px; }
.field label { color: #566582; font-size: 13px; }
.field input, .field textarea, .field select { color: var(--ink); background: #fbfcff; border-color: #cdd8e9; font-size: 14px; padding: 10px 12px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #2994d0; box-shadow: 0 0 0 3px #2994d018; }
.field small { color: #697991; font-size: 12px; }
.array-count { color: #697991; }
.object-card, .array-card, .array-item { border-color: #d9e2f1; border-radius: 10px; }
.object-card, .array-card { background: #f7f9fd; }
.object-card>.section-title { border-color: var(--line); }
.item-header { color: #536482; font-size: 12px; }
.mini-button, .add-button { color: var(--blue); border-color: #ccd9ed; font-size: 11px; }
.mini-button:hover, .add-button:hover { color: var(--navy); background: var(--blue-light); border-color: #a9c4e0; }
.mini-button.danger { color: #9e4357; }
.image-note { color: var(--muted); font-size: 11px; }
.editor-footer { padding: 16px 24px; border-color: var(--line); }
.footer-note, .preview-footer span { color: #65748c; font-size: 11px; }
.primary-button { background: var(--gold); color: var(--navy); font-size: 14px; border-radius: 99px; box-shadow: 0 3px 8px #c18b0017; }
.primary-button:hover { background: #f0b81c; }
.preview-panel { background: #e7ecf5; }
.preview-status { background: #eef2fa; color: #61718e; font-size: 11px; }
.preview-status.ready { background: #e6f5ee; color: #237052; }
.preview-status.dirty { color: #86611b; background: #fff4d8; }
.preview-empty { background: radial-gradient(ellipse at 50% 35%, #fff 0%, #edf2fc 100%); }
.preview-empty h3 { font-family: var(--font); color: var(--navy); }
.preview-empty p { color: var(--muted); }
.editor-empty p, .json-panel p { color: var(--muted); font-size: 13px; }
.paper-illustration { border-color: #c7d7ec; box-shadow: 0 12px 30px #29347318; }
.paper-line { background: #dfe7f3; }
.paper-line.long { background: #9ab6db; }
.paper-block { background: #eff3fb; border-left: 3px solid var(--gold); }
.canvas-wrap { background: #e7ecf5; }
.preview-footer { border-color: var(--line); }
.page-navigation button { color: var(--blue); background: #f5f8fd; border-color: #cdd9ec; }
.page-navigation button:hover:not(:disabled) { background: var(--blue-light); }
.download-button { color: var(--blue); border-color: #bcd0e9; background: var(--blue-light); border-radius: 99px; font-size: 12px; }
.download-button:hover { background: #dcebf9; }
.toast, .site-toast { background: var(--navy); box-shadow: 0 6px 20px #29347326; }

.site-footer { background: #202b5a; border-color: #3f4c7c; }
.footer-inner { max-width: 1320px; padding: 38px 48px; }
.footer-brand .product-logo { width: 285px; }
.site-footer p { color: #c0cce5; font-size: 12px; }
.footer-links a, .license-note a { color: #dbe5f9; }
.footer-links { font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1180px) {
  .page-width, .header-inner, .product-bar-inner { padding-left: 32px; padding-right: 32px; }
  .site-nav { gap: 21px; }
  .product-logo { width: 286px; }
  .product-hero { gap: 28px; padding: 55px 0; }
  .product-hero h1 { font-size: 54px; }
  .hero-description { font-size: 17px; }
  .demo-columns { padding: 16px; gap: 12px; }
  .demo-code { padding: 14px 9px; font-size: 8px; }
  .demo-paper { padding: 20px 16px 16px; }
  .demo-paper h2 { font-size: 22px; }
  .demo-bottom>span:last-child { font-size: 8px; }
  .product-specs>div { padding-left: 20px; padding-right: 20px; }
  .feature-card { padding: 25px; }
  .feature-card h3 { font-size: 24px; }
  .feature-card p { font-size: 14px; }
  .library-paths { gap: 18px; }
  .library-paths strong { font-size: 13px; }
  .library-paths div>span { font-size: 11px; }
  .docs-library-shell { gap: 35px; grid-template-columns: 215px minmax(0, 1fr); }
  .app-shell { grid-template-columns: 225px minmax(0, 1fr); }
  .work-area { height: auto; grid-template-columns: minmax(0, 1fr); }
  .sidebar-head h1 { font-size: 24px; }
  .workspace-tag { font-size: 7px; }
  .template-panel { position: sticky; top: 88px; }
}
@media (min-width: 1100px) {
  .work-area { height: calc(100vh - 120px); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .editor-panel, .preview-panel { min-height: 0; }
  .form-panel { max-height: none; }
}
@media (max-width: 950px) {
  .site-header { height: auto; position: relative; }
  .header-inner { flex-wrap: wrap; padding-top: 15px; padding-bottom: 14px; gap: 13px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 15px; }
  .site-nav a { font-size: 14px; }
  .site-nav .nav-download { padding: 9px 18px; }
  .product-hero { grid-template-columns: 1fr; padding-top: 45px; gap: 35px; }
  .hero-copy { max-width: 640px; }
  .product-hero h1 { font-size: 62px; }
  .hero-description { max-width: 560px; font-size: 18px; }
  .product-visual { width: 100%; max-width: 610px; margin: auto; }
  .demo-columns { padding: 22px; gap: 18px; }
  .demo-code { font-size: 11px; padding: 18px 14px; }
  .demo-paper { padding: 26px 23px 20px; }
  .demo-paper h2 { font-size: 27px; }
  .demo-paper p { font-size: 9px; }
  .demo-panel-label { font-size: 9px; }
  .demo-bottom>span:last-child { font-size: 10px; }
  .product-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 0; }
  .product-specs>div:nth-child(3) { border-left: 0; padding-left: 0; }
  .product-specs>div { padding-left: 26px; }
  .section-block { padding: 58px 0; }
  .section-heading { display: block; }
  .section-heading>p { max-width: 580px; margin-top: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-icon { position: absolute; right: 28px; top: 25px; margin: 0; }
  .feature-card h3 { margin-top: 38px; }
  .feature-card p { min-height: 0; max-width: 560px; font-size: 15px; }
  .integration-section { grid-template-columns: 1fr; gap: 30px; }
  .source-banner { flex-direction: column; align-items: start; padding: 34px; }
  .source-banner .button { width: 100%; justify-content: space-between; }
  .download-grid, .getting-started { grid-template-columns: 1fr; }
  .brand-assets { grid-template-columns: 1fr; gap: 22px; }
  .brand-assets p { max-width: none; }
  .download-note { padding-bottom: 25px; }
  .getting-started { gap: 35px; }
  .library-paths { grid-template-columns: 1fr; gap: 18px; }
  .library-paths>a { gap: 15px; }
  .library-paths strong { font-size: 15px; }
  .library-paths div>span { font-size: 12px; }
  .library-grid, .template-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-bottom { flex-direction: column; align-items: start; gap: 22px; }
  .docs-library-shell { display: block; }
  .docs-library-shell .docs-sidebar { position: static; max-height: none; margin-bottom: 30px; padding-right: 0; }
  .docs-library-shell .docs-sidebar nav { display: none; }
  .sidebar-reference { display: none; }
  .doc-breadcrumb { margin-top: 10px; }
  .template-panel { top: 0; height: 100vh; }
  .footer-inner { flex-wrap: wrap; padding-left: 32px; padding-right: 32px; gap: 24px; }
  .license-note { text-align: left; width: 100%; }
}
@media (max-width: 780px) {
  .workspace-intro { display: block; }
  .workspace-intro>.text-link { margin-top: 18px; }
  .workspace-intro h1 { font-size: 39px; }
  .merge-layout { grid-template-columns: 1fr; }
  .merge-preview { position: static; }
  .app-shell { display: block; min-height: 0; }
  .template-panel { position: static; height: auto; min-height: 0; padding: 23px 18px 8px; }
  .sidebar-head { padding: 0 4px; }
  .sidebar-head p, .sidebar-foot, .workspace-tag { display: none; }
  .search-wrap { margin: 15px 2px 12px; }
  .template-list { display: flex; overflow-x: auto; padding-bottom: 11px; }
  .template-group { flex: none; margin: 0 12px 0 0; }
  .template-group-items { display: flex; gap: 5px; }
  .template-item { width: auto; white-space: nowrap; }
  .work-area { height: auto; min-height: 0; padding: 18px; gap: 18px; }
  .studio-body .header-inner, .studio-body .product-bar-inner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .page-width, .header-inner, .product-bar-inner { padding-left: 22px; padding-right: 22px; }
  .product-bar-inner { font-size: 10px; padding-top: 6px; padding-bottom: 6px; }
  .product-bar-detail, .product-bar-divider { display: none; }
  .product-logo { width: 277px; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 12px; }
  .site-nav .nav-download { padding: 8px 11px; font-size: 11px; }
  .product-hero { padding: 37px 0 40px; gap: 27px; }
  .product-hero h1 { font-size: clamp(41px, 11.2vw, 55px); margin: 22px 0; }
  .hero-description { font-size: 16px; }
  .hero-kicker { font-size: 9px; }
  .button { font-size: 14px; padding: 13px 18px; gap: 18px; }
  .hero-note { font-size: 11px; }
  .hero-note span { margin: 0 5px; }
  .visual-halo { inset: -10px 0; }
  .product-demo { border-radius: 13px; }
  .demo-top { padding: 13px; }
  .demo-title { font-size: 11px; gap: 6px; }
  .demo-columns { padding: 14px 11px 17px; gap: 10px; grid-template-columns: 1.05fr 1fr; }
  .demo-panel-label { font-size: 6px; margin-bottom: 10px; letter-spacing: .03em; }
  .demo-code { font-size: 6px; padding: 14px 7px; line-height: 2.1; }
  .demo-endpoint { font-size: 6px; gap: 0; margin-top: 10px; }
  .demo-endpoint .method-label { font-size: 6px; padding: 3px; margin-right: 4px; }
  .demo-paper { margin: 0 2px 0 0; padding: 17px 13px 12px; }
  .demo-paper-brand { font-size: 5px; gap: 6px; margin-bottom: 17px; }
  .demo-paper-monogram { width: 17px; height: 20px; font-size: 11px; }
  .demo-paper-meta { font-size: 5px; }
  .demo-paper h2 { font-size: 17px; margin: 8px 0 11px; }
  .demo-paper-rule { height: 2px; width: 25px; margin-bottom: 14px; }
  .demo-paper h3 { font-size: 8px; margin-bottom: 6px; }
  .demo-paper p { font-size: 6px; margin-bottom: 8px; }
  .demo-paper-line { height: 3px; margin: 6px 0; }
  .demo-paper-section { margin-top: 12px; padding: 8px; gap: 6px; }
  .demo-paper-section span { height: 2px; }
  .demo-paper-footer { margin-top: 15px; padding-top: 8px; font-size: 3px; }
  .demo-bottom { padding: 12px; font-size: 9px; gap: 5px; }
  .demo-bottom>span:last-child { max-width: 110px; text-align: right; font-size: 8px; line-height: 1.4; }
  .demo-caption { font-size: 10px; }
  .product-specs { padding: 24px 0; gap: 23px 0; }
  .product-specs>div { padding-left: 15px; padding-right: 5px; }
  .product-specs strong { font-size: 16px; }
  .product-specs span { font-size: 11px; display: block; line-height: 1.5; }
  .section-block { padding: 42px 0; }
  .section-block h2 { font-size: 34px; }
  .section-heading>p { font-size: 15px; }
  .feature-card { padding: 24px; }
  .feature-icon { top: 22px; right: 24px; width: 44px; height: 44px; }
  .feature-card h3 { font-size: 25px; }
  .feature-card p { font-size: 14px; }
  .source-banner { padding: 27px 25px; margin-bottom: 45px; }
  .source-banner h2 { font-size: 31px; }
  .source-banner p { font-size: 14px; }
  .page-intro { padding: 36px 0 28px; }
  .page-intro h1, .library-intro h1 { font-size: 41px; }
  .lead { font-size: 16px; }
  .download-card { padding: 25px; }
  .package-cover { margin: -25px -25px 25px; padding: 25px; }
  .download-card .package-cover p { font-size: 27px; }
  .download-card h2 { font-size: 29px; }
  .release-tag { font-size: 8px; }
  .download-card p { font-size: 14px; }
  .download-card .full-button { font-size: 13px; gap: 10px; }
  .download-note { padding: 25px; }
  .brand-assets { padding: 25px; }
  .asset-download-links { gap: 15px; }
  .asset-download-links a { font-size: 12px; }
  .license-panel { padding: 25px; }
  .package-includes ul { font-size: 14px; }
  .setup-steps>li { gap: 13px; }
  .getting-started>div>p, .setup-steps p { font-size: 14px; }
  .library-page { padding-top: 34px; }
  .library-search { padding-left: 12px; gap: 10px; }
  .library-search input { font-size: 13px; }
  .library-search .button { font-size: 12px; padding: 10px 15px; }
  .library-search kbd { display: none; }
  .library-controls { flex-wrap: wrap; gap: 12px; }
  .library-filters button { font-size: 13px; }
  .library-grid, .template-reference-grid { grid-template-columns: 1fr; }
  .library-heading { align-items: start; gap: 13px; flex-wrap: wrap; }
  .library-heading h2 { font-size: 32px; }
  .library-heading .text-link { max-width: none; font-size: 12px; }
  .library-bottom { padding: 27px; }
  .library-bottom h2 { font-size: 29px; }
  .library-bottom p { font-size: 14px; }
  .docs-content h1, .docs-content .template-doc h1 { font-size: 38px; }
  .docs-content h2 { font-size: 28px; }
  .docs-content p { font-size: 15px; }
  .docs-content .lead { font-size: 17px; }
  .reference-table { font-size: 12px; }
  .reference-table th { font-size: 11px; }
  .doc-pagination strong { font-size: 12px; }
  .workspace-intro h1 { font-size: 36px; }
  .workspace-intro p { font-size: 15px; }
  .workspace-card-head { padding: 22px; }
  .workspace-card-head h2 { font-size: 26px; }
  .drop-zone { margin: 20px; }
  .drop-zone h3 { font-size: 23px; }
  .merge-help p { font-size: 13px; }
  .merge-actions { padding: 18px; gap: 10px; }
  .merge-actions p { font-size: 12px; }
  .merge-actions .button { font-size: 13px; padding: 12px 16px; }
  .studio-body .header-inner, .studio-body .product-bar-inner { padding-left: 20px; padding-right: 20px; }
  .work-area { padding: 13px; gap: 14px; }
  .editor-head, .preview-head { padding: 22px; }
  .editor-head h2, .preview-head h2 { font-size: 27px; }
  .editor-toolbar { padding: 13px 20px; flex-wrap: wrap; }
  .form-panel, .json-panel { padding: 20px; }
  .editor-footer { padding: 16px 20px; gap: 10px; }
  .footer-note { max-width: 115px; }
  .primary-button { padding: 11px 15px; min-width: 135px; gap: 16px; font-size: 13px; }
  .preview-footer { flex-wrap: wrap; gap: 12px; }
  .footer-inner { padding: 32px 22px; }
  .footer-links { flex-wrap: wrap; gap: 19px; }
}
@media (max-width: 370px) {
  .site-nav { flex-wrap: wrap; gap: 13px; }
  .site-nav .nav-download { margin-left: auto; }
  .product-hero h1 { font-size: 39px; }
  .hero-description { font-size: 15px; }
  .hero-note { font-size: 10px; }
  .demo-code { font-size: 5px; }
  .demo-paper h2 { font-size: 15px; }
  .field-grid { grid-template-columns: 1fr; }
}
@media print {
  .product-bar, .site-header, .site-footer { display: none; }
  body { background: #fff; }
  .page-width { max-width: none; padding: 0; }
  .docs-library-shell { display: block; }
  .code-block, .code-bar { background: #fff; color: #000; box-shadow: none; }
}
