/* API Portal: a complete light visual system. All assets are local. */
:root {
  color-scheme: light;
  --ink: #202a42; --muted: #65728a; --line: #e5eaf3; --canvas: #f7f9fd;
  --blue: #4c63e8; --primary: var(--blue); --blue-soft: #edf1ff;
  --shadow: 0 4px 24px rgba(35, 52, 97, .035); --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; transition: color .18s, background .18s, border-color .18s, box-shadow .18s; }
a:hover { color: #334bc8; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:hover, .button:hover { color: #fff; background: #3d53d4; border-color: #3d53d4; box-shadow: 0 4px 12px #4c63e822; }
button.secondary, .button.secondary { background: #fff; color: #535f79; border-color: var(--line); box-shadow: 0 1px 2px #202a4204; }
button.secondary:hover, .button.secondary:hover { background: #f5f7ff; border-color: #b8c4ef; color: var(--blue); }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 13px; border: 1px solid #dce3ef; border-radius: 10px; background: #fff; color: var(--ink); line-height: 1.6; transition: border-color .18s, box-shadow .18s; }
input::placeholder, textarea::placeholder { color: #525f77; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8a9cf1; box-shadow: 0 0 0 3px #4c63e814; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--blue); }
input[readonly] { background: #f8faff; color: #505f7b; }
textarea { resize: vertical; }
label { display: block; margin-bottom: 7px; color: #4a5670; font-size: 13px; font-weight: 600; }
:focus-visible { outline: 3px solid #93a5f7; outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: 32px; line-height: 1.4; margin: 0 0 12px; }
h2 { font-size: 20px; line-height: 1.5; margin: 0 0 15px; }
h3 { font-size: 16px; margin: 0 0 10px; }
p { margin: 0 0 14px; }
.muted, .help { color: var(--muted); font-size: 13px; }
.help { margin: 7px 0 0; line-height: 1.8; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.icon-button { width: 40px; min-height: 40px; padding: 9px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #525f7a; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow-symbol { display: inline-grid; place-items: center; width: 25px; height: 25px; color: var(--blue); background: #eaf0ff; border-radius: 8px; }
.eyebrow-symbol .icon { width: 14px; height: 14px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 10px 18px; background: #fff; border: 2px solid var(--blue); border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }
.portal-top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e9edf5; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.portal-top-inner { max-width: 1280px; min-height: 82px; padding: 12px 30px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 19px; font-weight: 700; white-space: nowrap; }
.portal-brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; padding: 3px; border: 1px solid #e5e9f4; border-radius: 12px; background: #fff; box-shadow: 0 3px 9px #202a4205; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.4; }
.brand-text strong { font-size: 18px; }
.brand-text small { color: #535f78; font-size: 10px; font-weight: 400; letter-spacing: .8px; }
.portal-links { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.portal-links a { color: #535f79; font-size: 13px; padding: 8px 13px; border-radius: 9px; white-space: nowrap; }
.portal-links a:hover { color: var(--blue); background: #f6f8fe; }
.portal-links a[aria-current=page] { color: var(--blue); background: #eff3ff; font-weight: 600; }
.mobile-nav-heading, .public-nav-toggle { display: none; }
.portal-main { max-width: 1280px; margin: 38px auto 70px; padding: 0 30px; min-height: 55vh; }
.portal-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { max-width: 1280px; padding: 44px 30px 20px; margin: auto; display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 26px 56px; }
.footer-brand p { font-size: 12px; margin-top: 14px; color: #525f77; }
.portal-footer nav { display: grid; align-content: start; gap: 8px; font-size: 12px; }
.portal-footer nav strong { font-size: 12px; color: #495670; font-weight: 600; margin-bottom: 6px; }
.portal-footer nav a { color: #525f77; width: fit-content; }
.portal-footer nav a:hover { color: var(--blue); }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid #eef1f6; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; color: #525f78; }
.footer-bottom a { color: #525f78; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel > :last-child { margin-bottom: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.page-heading p { color: var(--muted); max-width: 760px; }
.public-site:not(.home-page):not(.document-page) .portal-main > header:first-child { padding: 22px 0 14px; }
.public-site:not(.home-page):not(.document-page) .portal-main > header:first-child h1::before { content: ''; display: block; width: 32px; height: 4px; border-radius: 2px; background: #8394ee; margin-bottom: 16px; }
.notice { padding: 14px 18px; background: #eef3ff; border: 1px solid #e0e8fc; border-radius: 12px; margin-bottom: 22px; white-space: pre-wrap; color: #4e5e85; font-size: 13px; }
.notice.danger, .alert-error { background: #fff4f4; border: 1px solid #f3d9dc; color: #9c4651; }
.alert-error, .alert-success { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 13px; }
.alert-success { background: #edf9f3; border: 1px solid #d7ebdf; color: #36685c; }
.home-page .portal-main { margin-top: 0; }
.home-hero { position: relative; display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; gap: 76px; padding: 62px 16px 54px 0; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #505f7e; letter-spacing: .4px; font-size: 12px; font-weight: 500; margin-bottom: 21px; }
.hero-copy h1 { margin: 0 0 22px; font-size: clamp(38px, 3.5vw, 51px); font-weight: 750; line-height: 1.4; letter-spacing: -.04em; }
.hero-copy h1 span { color: var(--blue); }
.hero-description { max-width: 500px; color: #525f78; font-size: 14px; line-height: 2; margin-bottom: 27px; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-actions .button { min-height: 47px; padding: 12px 21px; box-shadow: 0 6px 16px #4c63e821; }
.hero-actions .button .icon { margin-left: 11px; width: 17px; }
.hero-text-link { display: inline-flex; align-items: center; gap: 7px; color: #515f79; font-size: 13px; }
.hero-text-link .icon { color: #525f7a; width: 17px; }
.hero-highlights { display: flex; align-items: center; gap: 22px; margin-top: 24px; color: #525f77; font-size: 11px; }
.hero-highlights span { display: inline-flex; gap: 5px; align-items: center; }
.hero-highlights .icon { color: #526071; width: 13px; height: 13px; }
.hero-art { position: relative; padding: 14px 0; min-width: 0; }
.hero-art::before { content: ''; position: absolute; inset: -20px -32px; background: radial-gradient(ellipse at 50% 50%, #e8eeff 0, #f0f3ff66 46%, transparent 70%); pointer-events: none; }
.hero-orbit { position: absolute; border: 1px solid #e4eaf8; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 440px; height: 440px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.orbit-two { width: 515px; height: 515px; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: .45; }
.hero-float { position: absolute; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #fff; border-radius: 15px; box-shadow: 0 10px 30px #3f52851a; }
.hero-float .icon { width: 25px; height: 25px; }
.float-code { right: -20px; top: 10px; background: #eef0ff; color: #595996; transform: rotate(9deg); }
.float-bolt { left: -24px; bottom: 24px; background: #fef7e9; color: #5f5e5a; transform: rotate(-12deg); }
.developer-window { position: relative; border: 1px solid #e0e6f3; border-radius: 17px; background: #fff; box-shadow: 0 18px 55px #425c8d12, 0 3px 8px #425c8d06; overflow: hidden; transform: rotate(-1.5deg); }
.window-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid #edf0f7; color: #525f76; font-size: 11px; }
.window-bar > .icon { width: 16px; height: 16px; color: #525f77; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; background: #e4e8f2; border-radius: 50%; }
.window-dots i:first-child { background: #f2c8c8; }.window-dots i:nth-child(2) { background: #f2dfad; }.window-dots i:nth-child(3) { background: #bce5d0; }
.sample-request { display: flex; gap: 11px; align-items: center; padding: 21px 22px 11px; }
.sample-request code { color: #515f7b; font-size: 13px; }
.sample-label { margin-left: auto; font: 10px/1.5 "Segoe UI", sans-serif; letter-spacing: 1px; color: #525f77; }
.sample-params { display: flex; gap: 11px; margin: 0 22px 17px; font: 11px/1.6 Consolas, monospace; color: #515f77; }
.sample-params > span { padding: 4px 9px; border: 1px solid #edf0f7; border-radius: 6px; }
.sample-params b { font-weight: 400; color: #4d5f80; margin-left: 8px; }
.sample-response { margin: 0 14px 14px; padding: 13px 14px; border: 1px solid #edf0f8; border-radius: 11px; background: #f9fbff; }
.sample-response > div { display: flex; gap: 6px; align-items: center; color: #515f79; font-size: 10px; padding-bottom: 7px; }
.tiny-dot { display: inline-block; width: 5px; height: 5px; background: #b6c3df; border-radius: 50%; }
.sample-response pre { background: transparent; padding: 5px 0 0; color: #525f79; font-size: 12px; line-height: 1.85; border: 0; }
.syntax-key { color: #5a5b87; }.syntax-string { color: #41646f; }.syntax-boolean { color: #625d5d; }.syntax-punctuation { color: #515f78; }
.window-footer { padding: 12px 21px; border-top: 1px solid #edf0f7; display: flex; align-items: center; justify-content: space-between; color: #515f79; font-size: 11px; }
.window-footer .icon { width: 14px; height: 14px; }
.workflow-preview { padding: 19px 22px; }
.workflow-step { display: flex; align-items: center; gap: 14px; padding: 17px 0; }
.workflow-step + .workflow-step { border-top: 1px dashed #e8edf5; }
.workflow-step .icon-tile { width: 41px; height: 41px; border-radius: 11px; }
.workflow-step strong { color: #515f7b; font-size: 13px; font-weight: 600; }
.workflow-step p { margin: 3px 0 0; font-size: 11px; color: #525f76; }
.step-index { margin-left: auto; color: #525f77; font: 18px/1 Consolas, monospace; }
.home-notice { display: flex; align-items: center; gap: 13px; margin: 0 0 42px; background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: #515f78; }
.notice-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #4f5e82; background: #f1f4ff; flex-shrink: 0; }
.notice-icon .icon { width: 16px; height: 16px; }
.home-notice > a { margin-left: auto; white-space: nowrap; color: #515f7a; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.home-notice > a .icon { width: 12px; height: 12px; }
.catalog-section { scroll-margin-top: 104px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading .eyebrow { font-size: 9px; color: #525f78; margin-bottom: 6px; }
.section-heading h2 { font-size: 24px; margin: 0 0 5px; display: flex; align-items: center; gap: 11px; }
.section-heading p { margin: 0; font-size: 12px; color: #515f77; }
.count-pill { font: 12px/1.4 "Segoe UI", sans-serif; font-weight: 600; color: #4f5e80; background: #edf1fc; border: 1px solid #e3e9f8; border-radius: 7px; padding: 2px 7px; }
.quiet-link { display: inline-flex; align-items: center; gap: 6px; color: #525f79; font-size: 12px; }
.quiet-link .icon { width: 15px; height: 15px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 22px 0; }
.filter-bar > div { flex: 1; min-width: 120px; }
.filter-bar .wide { flex: 2; min-width: 240px; }
.filter-bar label { font-size: 11px; color: #515f78; margin-bottom: 6px; }
.catalog-filters { padding: 18px; margin: 0 0 23px; border: 1px solid var(--line); background: #fff; border-radius: 14px; box-shadow: var(--shadow); gap: 12px; }
.catalog-filters input, .catalog-filters select { font-size: 12px; padding: 10px 11px; background: #fbfcff; border-color: #e6ebf4; border-radius: 8px; min-height: 40px; }
.catalog-filters > button { min-height: 41px; padding: 9px 15px; font-size: 12px; }
.catalog-filters > button .icon { width: 15px; height: 15px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); width: 16px; height: 16px; color: #515e77; pointer-events: none; }
.input-icon input { padding-left: 37px; }
.api-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.accent-blue { --accent: #698bef; --accent-soft: #edf2ff; }.accent-violet { --accent: #9982d9; --accent-soft: #f2effc; }
.accent-orange { --accent: #daaa72; --accent-soft: #fcf3e9; }.accent-rose { --accent: #d38eab; --accent-soft: #fbeff4; }
.accent-teal { --accent: #76afa6; --accent-soft: #ecf7f4; }.accent-sky { --accent: #6ba9c5; --accent-soft: #ebf5fa; }
.accent-green { --accent: #86b28b; --accent-soft: #eff7ed; }.accent-amber { --accent: #c2a05f; --accent-soft: #faf4e8; }
.icon-tile { width: 47px; height: 47px; display: inline-grid; place-items: center; border-radius: 13px; color: var(--accent, #7d95da); background: var(--accent-soft,#edf2ff); flex-shrink: 0; }
.icon-tile .icon { width: 23px; height: 23px; }
.api-entry { display: flex; flex-direction: column; padding: 23px; min-width: 0; border: 1px solid #e4e9f3; border-radius: 16px; background: #fff; box-shadow: 0 3px 12px #30427003; color: var(--ink); position: relative; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.api-entry::after { content: ''; width: 44px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); position: absolute; top: 0; left: 23px; opacity: 0; transition: opacity .2s; }
.api-entry:hover { color: var(--ink); border-color: #cbd6ec; box-shadow: 0 12px 24px #3042700b; transform: translateY(-3px); }
.api-entry:hover::after { opacity: .8; }
.api-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.method-pill { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #dbede7; border-radius: 6px; background: #f1f8f5; color: #49626e; font: 600 10px/1.6 Consolas, monospace; white-space: nowrap; }
.method-mixed { color: #505e7e; background: #f3f5fc; border-color: #e6eaf6; }
.api-card-title { display: flex; align-items: center; gap: 10px; }
.api-entry h2 { font-size: 17px; margin: 0 0 8px; font-weight: 650; line-height: 1.5; }
.api-entry p { color: #525f78; font-size: 12px; line-height: 1.95; margin: 0 0 18px; flex: 1; overflow-wrap: anywhere; }
.api-endpoint { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #f8faff; border-radius: 7px; color: #505f78; margin-bottom: 16px; min-width: 0; }
.api-endpoint .icon { width: 13px; height: 13px; }
.api-endpoint code { font-size: 11px; color: #505f7b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-entry footer { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #f0f3f8; }
.category-label { font-size: 10px; color: #525f76; margin-right: 3px; }
.format-label { font: 9px/1.4 "Segoe UI", sans-serif; padding: 3px 5px; background: #f5f7fc; border: 1px solid #edf0f7; border-radius: 4px; color: #505f79; }
.card-arrow { display: grid; place-items: center; width: 26px; height: 26px; color: #515f77; border: 1px solid #ebeff7; border-radius: 50%; transition: color .18s, background .18s; }
.card-arrow .icon { width: 13px; height: 13px; }
.api-entry:hover .card-arrow { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.badge { font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.5; padding: 3px 8px; border-radius: 6px; background: #edf1fa; color: #505f7d; }
.badge.warning { background: #fff5df; color: #605e5a; }.badge.success { background: #edf7f1; color: #48636a; }.badge.danger { background: #fff0f0; color: #6c596b; }
.empty { padding: 48px 20px; text-align: center; border: 1px dashed #d9e2f1; border-radius: 16px; color: var(--muted); background: #fff; }
.empty h3 { margin: 15px 0 7px; color: #4f607b; }.empty p { color: #515f78; font-size: 12px; }
.empty-icon { display: inline-grid; place-items: center; width: 57px; height: 57px; background: #f0f4fd; color: #505f7a; border-radius: 16px; }.empty-icon .icon { width: 25px; height: 25px; }
.portal-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0 16px; font-size: 11px; color: #525f78; flex-wrap: wrap; }
.portal-pagination > div { display: flex; gap: 7px; }
.portal-pagination a { border: 1px solid var(--line); width: 32px; min-height: 32px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: #515f7a; }
.portal-pagination a[aria-current=page] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 3px 8px #4c63e81a; }
.partner-section { margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
.partner-section .section-heading h2 { font-size: 19px; }
.partners { display: flex; gap: 15px; flex-wrap: wrap; }
.partners a { padding: 18px 23px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 76px; display: grid; place-items: center; }
.partners a:hover { border-color: #cbd7ed; box-shadow: var(--shadow); }
.partners img { width: 145px; height: 38px; object-fit: contain; }
.cover { max-width: 360px; max-height: 190px; object-fit: cover; border-radius: 14px; }
.site-cover-panel { display: flex; align-items: center; gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 34px 0; }
.site-cover-panel p { color: var(--muted); font-size: 13px; }
.tab-list, .tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; padding: 0 0 8px; }
.tab-list button, .tabs a, .tabs button { white-space: nowrap; border: 0; background: transparent; color: #515f78; padding: 10px 16px; border-radius: 9px; font-size: 13px; font-weight: 500; box-shadow: none; }
.tab-list button:hover, .tabs a:hover, .tabs button:hover { background: #f0f4fd; color: var(--blue); }
.tab-list button[aria-selected=true], .tabs a[aria-current=page], .tabs button[aria-selected=true] { background: #edf1ff; color: var(--blue); font-weight: 600; }
.tab-list a.button { min-height: 40px; }
[hidden] { display: none!important; }
.doc-layout { display: grid; grid-template-columns: 246px minmax(0,1fr); gap: 28px; align-items: start; }
.doc-directory { position: sticky; top: 108px; align-self: start; max-height: calc(100vh - 135px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 21px 15px; box-shadow: var(--shadow); scrollbar-width: thin; }
.doc-directory h2 { font-size: 15px; display: flex; gap: 9px; align-items: center; padding: 0 5px; margin-bottom: 18px; }
.doc-directory h2 .icon { color: #515f7b; width: 18px; }
.doc-directory label { padding-left: 5px; margin-bottom: 7px; font-size: 10px; }
.doc-directory input { font-size: 11px; border-radius: 8px; background: #fbfcff; padding: 9px 11px; }
.doc-directory > a { font-size: 11px; color: #525f78; margin: 7px 0 16px; }
.doc-directory a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; color: #515f79; font-size: 12px; margin: 3px 0; }
.doc-directory a .icon { width: 16px; height: 16px; color: #515f7a; }
.doc-directory a:hover { color: var(--blue); background: #f7f9fe; }
.doc-directory a[aria-current=page] { background: #edf2ff; color: #4d5d93; font-weight: 600; }
.doc-directory a[aria-current=page] .icon { color: #4f5e87; }
.doc-directory details { padding: 0; margin: 13px 0 0; border: 0; box-shadow: none; }
.doc-directory summary { font-size: 11px; color: #525f78; font-weight: 500; padding: 6px 8px; }
.doc-directory summary .help { float: right; margin: 0; color: #525e77; font-size: 10px; }
.doc-content { min-width: 0; }
.doc-header { margin-bottom: 24px; padding: 27px 29px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.doc-header .button-row { margin: 0 0 20px; font-size: 11px; color: #515f78; justify-content: space-between; align-items: center; }
.doc-header .button-row a { color: #515f78; }
.doc-title-row { display: flex; gap: 15px; align-items: center; margin-bottom: 14px; }
.doc-title-row .icon-tile { width: 48px; height: 48px; }
.doc-header h1 { font-size: 27px; line-height: 1.4; margin: 0; }
.doc-header > .muted { color: #515f78; font-size: 12px; margin-bottom: 17px; }
.doc-header .badges .muted { font-size: 10px; margin-left: 6px; }
.copy-row { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.copy-row input { min-width: 0; font-size: 12px; }
.copy-row button { white-space: nowrap; font-size: 12px; }
.endpoint-row { margin: 20px 0 0; padding: 8px 10px 8px 13px; border: 1px solid #e7ecf5; background: #f9fbff; border-radius: 11px; gap: 10px; }
.endpoint-row > .icon { width: 16px; color: #515f7a; }
.endpoint-row input { border: 0; box-shadow: none; padding: 5px 0; background: transparent; font-family: Consolas,monospace; color: #4f5f7b; }
.endpoint-row button { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.endpoint-row button .icon { width: 13px; height: 13px; }
.doc-toolbar { background: var(--canvas); position: sticky; top: 82px; z-index: 4; padding-top: 5px; }
.doc-toolbar .tab-list { gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; box-shadow: var(--shadow); margin-bottom: 15px; }
.doc-toolbar .tab-list button { flex: 1; font-size: 12px; min-height: 40px; gap: 8px; padding: 10px 12px; }
.doc-toolbar .tab-list .icon { width: 15px; height: 15px; }
.doc-search { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 0 16px; align-items: center; margin: 0 0 20px; padding: 0 4px; }
.doc-search label { font-size: 11px; margin: 0; color: #515f78; }
.doc-search input { background: #f1f4fa; border-color: #e9edf5; font-size: 11px; padding: 9px 12px; border-radius: 8px; }
.search-results { grid-column: 1/-1; display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.search-results:empty { display: none; }
.search-results button { font-size: 11px; padding: 5px 9px; min-height: 32px; }
.doc-content .panel { padding: 25px; }
.doc-content .panel h2 { font-size: 17px; }
.doc-content .panel h3 { font-size: 14px; margin-top: 18px; }
.doc-content .panel p, .doc-content .panel li { font-size: 12px; color: #515f79; }
.section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.section-head > .icon { color: #505e7a; width: 18px; }.section-head h2 { margin: 0!important; }
.section-head .overline { margin-left: auto; color: #525f77; font: 9px/1 Consolas,monospace; letter-spacing: 1px; }
.quick-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 20px 0 22px; }
.quick-steps li { border: 1px solid #edf0f7; border-radius: 10px; background: #fafbfe; padding: 15px; min-width: 0; }
.quick-steps .step-number { display: block; color: #515f7a; font: 17px/1.4 Consolas,monospace; margin-bottom: 8px; }
.quick-steps strong { display: block; color: #505f7a; font-size: 12px; font-weight: 600; }
.quick-steps small { display: block; color: #515f77; font-size: 10px; margin-top: 4px; }
.quick-steps button { background: transparent!important; border: 0; color: var(--blue); padding: 0; min-height: 0; font-size: 12px; font-weight: 600; box-shadow: none; justify-content: start; }
.table-wrap { overflow: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid #edf0f6; vertical-align: top; }
th { background: #f8faff; color: #505f7a; font-weight: 500; font-size: 11px; white-space: nowrap; }
td { color: #4e607c; }tbody tr:hover { background: #fbfcff; }tbody tr:last-child td { border-bottom: 0; }
td code { overflow-wrap: anywhere; color: #525e82; background: #f5f4fb; border-radius: 4px; padding: 2px 5px; }
code, pre { font: 12px/1.8 Consolas,"SFMono-Regular","Courier New",monospace; }
pre { margin: 0; white-space: pre; overflow: auto; max-height: 420px; background: #f6f8fe; color: #4d607d; border: 1px solid #e8edf7; padding: 19px; border-radius: 11px; line-height: 1.9; scrollbar-width: thin; }
details { border: 1px solid var(--line); border-radius: 11px; padding: 14px 17px; margin: 17px 0; background: #fff; }
summary { cursor: pointer; font-weight: 600; color: #505f7a; font-size: 12px; }
details[open] > summary { margin-bottom: 14px; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; padding: 0 0 18px; }.toc a { padding: 4px 10px; border-radius: 7px; background: #edf2fc; color: #505f7d; }
.debug-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); gap: 18px; align-items: stretch; }
.debug-grid .panel { min-width: 0; }.debug-grid .panel:first-child { border-top: 3px solid #bccaf1; }.debug-grid .panel:last-child { border-top: 3px solid #bfded6; }
.field { margin-bottom: 18px; }.param-row { margin-bottom: 15px; }.param-row label span { color: #655b6a; font-size: 10px; margin-left: 7px; }
.debug-grid select, .debug-grid input, .debug-grid textarea { font-size: 12px; background: #fcfdff; }
.debug-grid .help { font-size: 11px; margin-bottom: 15px; }.debug-grid label { font-size: 11px; color: #515f79; }
#jsonBody { font-family: Consolas,monospace; font-size: 11px; color: #4e5f7b; min-height: 190px; }
.debug-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }.debug-actions button { font-size: 11px; min-height: 38px; padding: 8px 13px; }
.response-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 15px; font-size: 11px; color: #4f5f79; }
.response-bar button, .response-bar .button { min-height: 30px; padding: 5px 9px; font-size: 10px; margin-left: auto; }
#responseStatus { font: 11px/1.6 Consolas,monospace; padding: 4px 7px; background: #eef5f2; color: #4d616f; border-radius: 5px; }
#responseTime { color: #525f78; font-size: 10px; }#responseData { min-height: 195px; font-size: 11px; }
.response-image { max-width: 100%; max-height: 460px; object-fit: contain; border-radius: 10px; background: #f6f8fb; }
.search-match { outline: 3px solid #eac88e; outline-offset: -3px; }
.directory-toggle, .drawer-close { display: none; }
.overlay { position: fixed; inset: 0; background: #34466644; backdrop-filter: blur(3px); z-index: 30; }
.row-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }.two-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.field-grid, .form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 17px; }.span-full { grid-column: 1/-1; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 22px 0; }.filters label { flex: 1; min-width: 180px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.sticky-save { position: sticky; bottom: 0; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); padding: 13px 18px; display: flex; gap: 10px; z-index: 5; box-shadow: 0 -4px 25px #334c7e06; }
.avatar { width: 43px; height: 43px; object-fit: contain; border-radius: 12px; border: 1px solid #edf0f7; padding: 5px; background: #fff; }
.api-card { overflow-wrap: anywhere; }.api-grid .api-card { padding: 23px; margin: 0; box-shadow: var(--shadow); }.api-card h2 { font-size: 16px; margin-bottom: 0; }.api-card p { color: #515f78; font-size: 12px; margin: 17px 0; }.api-card .muted { font-size: 11px; color: #515f77; }
.payment-qr { width: min(260px,100%); height: 260px; object-fit: contain; padding: 14px; border: 1px solid #e5ebf5; background: #fff; border-radius: 15px; margin: 12px 0; }
.page-toc { height: fit-content; position: sticky; top: 108px; padding: 23px; }.page-toc h2 { font-size: 15px; }.page-toc a { display: block; padding: 7px 0; color: #505f7a; font-size: 12px; }
.page-prose { min-width: 0; line-height: 1.9; }.page-prose section, .page-prose .notice-card { background: #fff; border: 1px solid var(--line); padding: 28px; margin-bottom: 20px; border-radius: 16px; box-shadow: var(--shadow); }
.page-prose h2 { scroll-margin-top: 106px; font-size: 20px; }.page-prose p, .page-prose li { color: #505f7a; }.page-prose li { margin-bottom: 8px; }.page-prose table { display: block; overflow: auto; }.page-prose pre { white-space: pre-wrap; }.break-word { overflow-wrap: anywhere; }
.feedback-form { max-width: 780px; }.feedback-form label { margin-bottom: 22px; }.feedback-form label textarea, .feedback-form label input { margin-top: 9px; }
.status-row { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding: 20px 4px; border-bottom: 1px solid #edf0f7; }.status-row:last-child { border-bottom: 0; }.status-row a { color: #4f5f7d; font-weight: 600; }.status-row .help { color: #525f78; font-size: 11px; }
.portal-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 11px 22px; border: 1px solid #dce5f7; border-radius: 11px; background: #fff; color: #4e5f81; z-index: 100; box-shadow: 0 7px 30px #3446661a; max-width: 90vw; font-size: 13px; }
/* Administration shares the same palette, with a richer application frame. */
.admin-shell { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; }
.admin-nav { background: #fff; border-right: 1px solid var(--line); padding: 27px 17px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; }
.admin-nav .portal-brand { margin: 0 3px 20px; gap: 10px; }.admin-nav .portal-brand .brand-mark { width: 37px; height: 37px; }.admin-nav .portal-brand .brand-text strong { font-size: 16px; }.admin-nav .portal-brand .brand-text small { font-size: 9px; }
.admin-nav h3 { font-size: 10px; font-weight: 500; color: #525f78; margin: 22px 13px 7px; letter-spacing: .3px; }
.admin-nav a:not(.portal-brand) { display: flex; align-items: center; gap: 10px; padding: 10px 13px; color: #515f79; border-radius: 9px; margin: 2px 0; font-size: 12px; }
.admin-nav a .icon { width: 17px; height: 17px; color: #525f79; }
.admin-nav a:hover { background: #f7f9fe; color: var(--blue); }.admin-nav a[aria-current=page] { background: #edf2ff; color: #4c5d90; font-weight: 600; position: relative; }.admin-nav a[aria-current=page] .icon { color: #4e5e88; }
.admin-nav a[aria-current=page]::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #95a8e8; margin-left: auto; }
.admin-nav-footer { margin-top: auto; padding-top: 24px; }.admin-nav-footer form { margin-top: 12px; border-top: 1px solid #edf0f6; padding-top: 15px; }.admin-nav-footer button { width: 100%; font-size: 11px; min-height: 36px; justify-content: start; background: #fafbfe!important; border-color: #edf0f7!important; color: #515f78!important; }
.admin-main { min-width: 0; padding: 0 34px 42px; max-width: 1640px; width: 100%; }
.admin-top { display: flex; justify-content: space-between; align-items: center; min-height: 82px; border-bottom: 1px solid #e6ebf5; margin-bottom: 31px; gap: 15px; }
.admin-top .muted { font-size: 11px; color: #515f77; }.admin-breadcrumb { display: flex; align-items: center; gap: 9px; color: #525f78; font-size: 11px; }.admin-breadcrumb strong { color: #515f79; font-weight: 500; }.admin-breadcrumb .icon { width: 14px; height: 14px; }
.admin-top-actions { display: flex; align-items: center; gap: 15px; }.admin-top-actions > a { display: flex; align-items: center; gap: 5px; color: #505f79; font-size: 11px; }.admin-top-actions > a .icon { width: 14px; height: 14px; }.admin-avatar { width: 29px; height: 29px; display: grid; place-items: center; background: #edf1fb; border: 1px solid #e2e8f7; color: #505f7d; border-radius: 10px; }.admin-avatar .icon { width: 15px; }
.admin-main h1 { font-size: 27px; font-weight: 650; }.admin-main > header { margin-bottom: 25px; }.admin-main > header p { font-size: 12px; color: #525f78; }.admin-nav-toggle { display: none; }
.admin-main > .container, .admin-main .admin-wrap, .admin-main .stats-page { max-width: none; width: 100%; padding-left: 0; padding-right: 0; }
.admin-main .panel h2 { font-size: 17px; color: #4f607b; font-weight: 600; }.admin-main .panel p, .admin-main .panel li { font-size: 12px; color: #505f79; }.admin-main .panel .help { font-size: 11px; }
.admin-main .card { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }.admin-main .card-header { padding: 17px 21px; border-bottom: 1px solid var(--line); background: #fbfcff; color: #505f7a; border-radius: 16px 16px 0 0; }.admin-main .card-body { padding: 23px; }
.admin-main .form-control, .admin-main .form-select { border-color: #dfe6f2; font-size: 13px; border-radius: 9px; }.admin-main .form-control:focus, .admin-main .form-select:focus { border-color: #9babec; box-shadow: 0 0 0 3px #4c63e813; }
.admin-main .table { font-size: 12px; }.admin-main .table > :not(caption) > * > * { border-color: #edf0f7; padding: 14px 12px; color: #4f5f7a; }.admin-main .table thead th { background: #f8faff; color: #515f79; font-weight: 500; }
.admin-main .btn { font-size: 12px; border-radius: 8px; }.admin-main .btn-primary { background: var(--blue); border-color: var(--blue); }.admin-main .btn-outline-primary { color: #4d5e8b; border-color: #dae3fa; }.admin-main .btn-outline-primary:hover { background: var(--blue-soft); color: var(--blue); }.admin-main .btn-outline-danger { color: #625c70; border-color: #f0dde1; }.admin-main .btn-outline-danger:hover { background: #fff0f0; color: #765566; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.metric-card { padding: 21px 23px; margin-bottom: 16px; border-radius: 15px; }.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.metric-top .icon-tile { width: 31px; height: 31px; border-radius: 9px; }.metric-top .icon-tile .icon { width: 16px; height: 16px; }.metric-top .muted { font-size: 10px; color: #515f77; }
.stat-value { font: 600 31px/1.4 "Segoe UI",sans-serif; color: #4f5f7c; margin: 9px 0 5px; letter-spacing: -1px; }.stat-value small { font-size: 14px; letter-spacing: 0; }
.metric-note { color: #525f77; font-size: 10px; }.metrics-explanation { font-size: 10px; color: #515f77; margin: 0 0 23px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr); gap: 23px; align-items: start; }.dashboard-main, .dashboard-side { min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }.panel-heading h2 { margin: 0; }.panel-heading .muted { font-size: 10px; color: #515f78; }
.checklist { list-style: none; padding: 0; margin: 0; }.checklist li { padding: 14px 0; border-bottom: 1px solid #edf1f7; display: flex; justify-content: space-between; align-items: center; gap: 18px; }.checklist li:last-child { border-bottom: 0; }.checklist li a { font-size: 11px; white-space: nowrap; }.checklist li > span { font-size: 12px; color: #505f79; }
.task-label { display: flex; align-items: center; gap: 10px; }.task-label .icon { color: #505e78; width: 16px; }.task-count { color: #505f7c; background: #f0f4fc; border-radius: 5px; padding: 2px 6px; font-size: 10px; margin-left: 4px; }
.chart { display: flex; gap: 8px; height: 208px; align-items: end; padding: 20px 4px 0; background: repeating-linear-gradient(to top,transparent 0,transparent 45px,#f0f3fa 45px,#f0f3fa 46px); }.chart > div { flex: 1; min-width: 0; text-align: center; font-size: 9px; color: #505e78; position: relative; }.chart i { display: block; background: linear-gradient(0deg,#bbc9f0,#dce4fa); border: 1px solid #aebfe51c; border-radius: 5px 5px 1px 1px; min-height: 2px; margin: 7px 0; width: 66%; margin-left: auto; margin-right: auto; transition: background .2s; }.chart > div:hover i { background: #9eb2ed; }
.ranking-index { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #515f78; background: #f2f5fc; font-size: 10px; margin-right: 10px; }.ranking-count { text-align: right; font-family: Consolas,monospace; }
.dashboard-welcome { display: flex; justify-content: space-between; align-items: center; gap: 15px; }.dashboard-welcome .eyebrow { font-size: 9px; color: #525f77; margin-bottom: 4px; }.dashboard-welcome > .button { font-size: 11px; min-height: 38px; }
.maintenance-card { background: #f0f4fc; border: 1px solid #e1e8f7; border-radius: 15px; padding: 23px; }.maintenance-card > .icon { color: #4f5f7c; margin-bottom: 13px; width: 24px; height: 24px; }.maintenance-card h3 { color: #4f5f7c; font-size: 14px; }.maintenance-card p { color: #515f79; font-size: 11px; }.maintenance-card a { font-size: 11px; color: #4f5f81; }
.long-cell { max-width: 240px; overflow-wrap: anywhere; }
/* Responsive layouts retain usable targets and deliberate spacing. */
@media (max-width:1120px) {
  .hero-copy h1 { font-size: 43px; }.home-hero { gap: 48px; }.hero-orbit { display: none; }
  .portal-links { gap: 2px; }.portal-links a { padding: 8px 9px; font-size: 12px; }
  .catalog-filters .wide { min-width: 100%; }.catalog-filters > div { min-width: 140px; }
  .doc-layout { grid-template-columns: 220px minmax(0,1fr); gap: 22px; }.doc-header { padding: 23px; }.debug-grid { grid-template-columns: minmax(0,1fr); }
  .admin-shell { grid-template-columns: 210px minmax(0,1fr); }.admin-main { padding-left: 26px; padding-right: 26px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.dashboard-columns { grid-template-columns: minmax(0,1fr); }.dashboard-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.dashboard-side > .panel { margin: 0; }
}
@media (max-width:900px) {
  .home-hero { gap: 34px; padding-top: 40px; }.hero-copy h1 { font-size: 37px; }.hero-description { font-size: 12px; }.hero-highlights { gap: 11px; font-size: 10px; }
  .hero-actions { gap: 16px; }.hero-actions .button { font-size: 12px; padding: 10px 14px; }.float-code, .float-bolt { display: none; }.sample-response pre { font-size: 10px; }.sample-request { padding: 18px 17px 11px; }.sample-params { margin-left: 17px; margin-right: 17px; }
  .api-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.portal-main, .portal-top-inner { padding-left: 24px; padding-right: 24px; }
  .quick-steps { grid-template-columns: minmax(0,1fr); }.quick-steps li { display: flex; gap: 10px; align-items: center; padding: 13px; }.quick-steps .step-number { margin: 0; font-size: 14px; }.quick-steps small { margin: 0 0 0 auto; }
  .doc-header h1 { font-size: 23px; }.doc-toolbar .tab-list button { font-size: 11px; padding: 9px 8px; }.doc-toolbar .tab-list .icon { width: 13px; }
}
@media (max-width:760px) {
  html { scroll-padding-top: 86px; }.portal-top-inner { min-height: 70px; padding: 12px 20px; }.portal-brand { font-size: 17px; }.brand-text strong { font-size: 16px; }.brand-mark { width: 37px; height: 37px; }.brand-mark img { width: 28px; height: 28px; }.brand-text small { font-size: 9px; }
  .public-nav-toggle { display: inline-flex; }.portal-links { display: none; }.portal-links.open { position: fixed; inset: 0 auto 0 0; width: min(85vw,300px); height: 100dvh; padding: 21px; display: flex; flex-direction: column; align-items: stretch; justify-content: start; gap: 7px; background: #fff; border-right: 1px solid var(--line); z-index: 40; overflow-y: auto; }.portal-links a { padding: 13px 15px; font-size: 14px; }.mobile-nav-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 0 20px; color: #4f5f7a; font-size: 14px; }
  .portal-main { margin: 26px auto 45px; padding: 0 20px; }.home-page .portal-main { margin-top: 0; }.home-hero { grid-template-columns: minmax(0,1fr); padding: 35px 0 37px; gap: 36px; }.hero-copy h1 { font-size: 40px; line-height: 1.4; margin-bottom: 18px; }.hero-copy .eyebrow { margin-bottom: 19px; font-size: 11px; }.hero-description { font-size: 13px; line-height: 1.95; margin-bottom: 23px; max-width: 560px; }.hero-actions .button { padding: 11px 17px; font-size: 12px; min-height: 43px; }.hero-text-link { font-size: 12px; }.hero-highlights { gap: 20px; font-size: 10px; margin-top: 19px; }.hero-art { padding: 0 5px; max-width: 460px; width: 100%; margin: auto; }.hero-art::before { inset: -12px 0; }.developer-window { transform: none; border-radius: 14px; }.sample-response pre { font-size: 11px; }.sample-request { padding-top: 17px; }.workflow-preview { padding: 14px 20px; }.workflow-step { padding: 14px 0; }
  .home-notice { margin-bottom: 33px; gap: 10px; padding: 12px; font-size: 11px; }.home-notice > a { display: none; }.notice-icon { width: 26px; height: 26px; border-radius: 7px; }.section-heading { gap: 12px; margin-bottom: 20px; }.section-heading h2 { font-size: 22px; }.section-heading p { font-size: 11px; }.section-heading .eyebrow { font-size: 8px; }.quiet-link { font-size: 10px; gap: 4px; }.quiet-link .icon { width: 13px; }.catalog-section { scroll-margin-top: 90px; }
  .catalog-filters { gap: 12px 10px; padding: 15px; border-radius: 12px; }.catalog-filters > div { flex: 1 1 calc(50% - 10px); min-width: 0; }.catalog-filters .wide { flex: 1 1 100%; min-width: 0; }.catalog-filters > button { width: 100%; }.catalog-filters select, .catalog-filters input { min-height: 42px; }.filter-bar .wide { min-width: 100%; }
  .api-grid { gap: 15px; }.api-entry { padding: 21px; border-radius: 14px; }.api-entry h2 { font-size: 17px; }.api-entry p { font-size: 12px; }.partners { gap: 10px; }.partners a { padding: 15px; flex: 1 1 calc(50% - 10px); min-width: 0; }.partners img { max-width: 100%; width: 130px; }.partner-section .section-heading p { display: none; }
  .footer-inner { padding: 30px 20px 20px; grid-template-columns: 1fr 1fr; gap: 26px; }.footer-brand { grid-column: 1/-1; }.footer-brand p { margin-bottom: 0; }.footer-bottom { font-size: 10px; gap: 12px; }.footer-note { display: none; }
  h1 { font-size: 27px; }.page-heading { flex-direction: column; gap: 15px; margin-bottom: 22px; }.panel { padding: 21px; border-radius: 14px; margin-bottom: 18px; }.tab-list, .tabs { margin-bottom: 20px; }.tabs a { font-size: 12px; padding: 10px 12px; }.page-heading .cover { width: 100%; }.site-cover-panel { flex-direction: column; gap: 20px; padding: 20px; }.site-cover-panel .cover { width: 100%; max-width: 100%; }
  .doc-layout { display: block; }.doc-directory { display: none; }.doc-directory.open { display: block; position: fixed; inset: 0 auto 0 0; width: min(85vw,300px); max-height: 100dvh; height: 100dvh; border-radius: 0; z-index: 40; padding: 25px 20px; }.doc-directory a { padding: 12px 10px; font-size: 13px; }.directory-toggle, .drawer-close { display: inline-flex; }.drawer-close { float: right; }.doc-directory .drawer-close { margin-bottom: 12px; }.doc-directory h2 { clear: both; }
  .doc-header { padding: 20px; border-radius: 15px; margin-bottom: 18px; }.doc-header .button-row { margin-bottom: 15px; }.doc-header .directory-toggle { min-height: 30px; font-size: 10px; padding: 5px 9px; }.doc-title-row { gap: 12px; }.doc-title-row .icon-tile { width: 41px; height: 41px; border-radius: 11px; }.doc-title-row .icon { width: 21px; height: 21px; }.doc-header h1 { font-size: 22px; }.doc-header > .muted { font-size: 12px; margin-bottom: 14px; }.doc-header .badge { font-size: 10px; }.endpoint-row { flex-wrap: nowrap; padding: 8px 9px; gap: 7px; }.endpoint-row > .icon { display: none; }.endpoint-row input { flex: 1; width: 0; font-size: 10px; }.endpoint-row button { min-height: 31px; font-size: 10px; padding: 6px 8px; }.endpoint-row button .icon { display: none; }
  .doc-toolbar { top: 70px; padding-top: 4px; }.doc-toolbar .tab-list { padding: 4px; gap: 2px; border-radius: 10px; margin-bottom: 12px; }.doc-toolbar .tab-list button { padding: 9px 8px; font-size: 11px; min-height: 36px; }.doc-toolbar .tab-list .icon { display: none; }.doc-search { display: block; padding: 0; margin-bottom: 17px; }.doc-search label { margin-bottom: 6px; font-size: 10px; }.doc-search input { padding: 9px 12px; font-size: 11px; }
  .doc-content .panel { padding: 21px; }.doc-content .panel h2 { font-size: 16px; }.quick-steps li { padding: 12px; }.quick-steps strong, .quick-steps button { font-size: 11px; }.quick-steps small { font-size: 9px; }.copy-row:not(.endpoint-row) { flex-wrap: wrap; }.copy-row:not(.endpoint-row) input { flex: 1; min-width: 170px; }.debug-grid { grid-template-columns: minmax(0,1fr); gap: 0; }.debug-grid .help { font-size: 11px; }#responseData { min-height: 180px; }.response-bar { gap: 6px; }
  .two-cols, .field-grid, .form-grid { grid-template-columns: minmax(0,1fr); }.span-full { grid-column: auto; }.page-toc { position: static; }.page-prose section { padding: 23px; }.page-prose h2 { font-size: 19px; }.page-prose p, .page-prose li { font-size: 13px; }.payment-qr { height: 230px; }.status-row { gap: 12px; padding: 18px 0; }.status-row .badge { white-space: nowrap; font-size: 10px; }.status-row a { font-size: 12px; }.status-row .help { font-size: 10px; }
  .admin-shell { display: block; }.admin-nav { display: none; }.admin-nav.open { display: flex; position: fixed; inset: 0 auto 0 0; width: 265px; z-index: 40; }.admin-nav .drawer-close { align-self: flex-end; margin-bottom: 15px; }.admin-main { padding: 0 18px 30px; }.admin-top { min-height: 74px; margin-bottom: 25px; gap: 10px; }.admin-nav-toggle { display: inline-flex; min-height: 34px; padding: 6px 9px; font-size: 10px; }.admin-nav-toggle .icon { width: 15px; height: 15px; }.admin-breadcrumb { display: none; }.admin-top-actions { gap: 9px; }.admin-top-actions .muted { display: none; }.admin-top-actions > a { font-size: 10px; }.admin-avatar { width: 28px; height: 28px; }.admin-main h1 { font-size: 24px; }.admin-main > header p { font-size: 11px; }.dashboard-welcome { align-items: start; }.dashboard-welcome > .button { font-size: 10px; min-height: 33px; padding: 7px 9px; }.dashboard-welcome .button .icon { width: 13px; }.dashboard-welcome .eyebrow { font-size: 8px; }
  .stats-grid { gap: 12px; }.metric-card { padding: 17px; margin-bottom: 4px; }.metric-top { flex-direction: row-reverse; align-items: center; }.metric-top .muted { font-size: 10px; }.metric-top .icon-tile { width: 25px; height: 25px; border-radius: 7px; }.metric-top .icon { width: 13px; height: 13px; }.stat-value { font-size: 26px; margin-top: 11px; }.metric-note { font-size: 9px; }.metrics-explanation { margin-top: 14px; font-size: 9px; }
  .dashboard-side { display: block; }.dashboard-side > .panel { margin-bottom: 18px; }.dashboard-columns { gap: 0; }.chart { overflow-x: auto; gap: 6px; }.chart > div { min-width: 27px; }.admin-main .card-body { padding: 18px; }.admin-main .table > :not(caption) > * > * { padding: 12px 10px; }.sticky-save { flex-wrap: wrap; padding: 11px; }.long-cell { max-width: 170px; }.filters { gap: 10px; }.filters label { min-width: 150px; }.checklist li { gap: 12px; }
}
@media (max-width:580px) {
  .api-grid { grid-template-columns: minmax(0,1fr); }.api-entry { padding: 22px; }.api-entry p { min-height: 0; }.api-card-top { margin-bottom: 15px; }.api-endpoint { margin-top: 3px; }
  .hero-copy h1 { font-size: 37px; }.hero-highlights { gap: 16px; }.hero-actions { gap: 19px; }.public-site:not(.home-page):not(.document-page) .portal-main > header:first-child { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none!important; animation: none!important; }.api-entry:hover { transform: none; } }
@media print {
  .portal-top, .portal-footer, .doc-directory, .doc-toolbar, .directory-toggle, .debug-actions, .skip-link { display: none!important; }
  .doc-layout { display: block; }.doc-content [data-panel][hidden] { display: block!important; }pre { max-height: none; white-space: pre-wrap; color: #000; background: #fff; border: 1px solid #ddd; }.portal-main { max-width: none; padding: 0; margin: 0; }body { background: #fff; }.panel,.doc-header { box-shadow: none; }.quick-steps { display: block; }
}

/* Authentication and boundaries use the same light visual language. */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 28px; background: #f7f9fd; }
.auth-shell { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 94px; align-items: center; width: min(100%, 1000px); }
.auth-intro { min-width: 0; }.auth-intro > .portal-brand { margin-bottom: 54px; }
.auth-intro-copy > .eyebrow { color: #515f7a; font-size: 9px; margin-bottom: 16px; }
.auth-intro-copy h2 { font-size: 36px; line-height: 1.5; letter-spacing: -.045em; margin-bottom: 19px; }
.auth-intro-copy > p { font-size: 13px; color: #505f79; margin-bottom: 33px; }
.auth-features { display: grid; gap: 23px; }.auth-features > div { display: flex; align-items: center; gap: 14px; }.auth-features .icon-tile { width: 39px; height: 39px; border-radius: 11px; }.auth-features .icon { width: 20px; height: 20px; }
.auth-features strong { display: block; font-size: 12px; color: #505f7b; font-weight: 600; }.auth-features small { display: block; font-size: 11px; color: #525f78; margin-top: 4px; }
.auth-caption { display: block; margin-top: 46px; color: #515e77; font-size: 10px; }
.auth-card { border: 1px solid #e1e7f3; border-radius: 21px; background: #fff; padding: 35px 32px 24px; box-shadow: 0 15px 50px #415e9708; position: relative; }
.auth-card::before { content: ''; position: absolute; width: 105px; height: 3px; left: 32px; top: 0; background: #becbf1; border-radius: 0 0 3px 3px; }
.auth-card-symbol { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #eff3ff; color: #4f5e80; margin-bottom: 22px; }.auth-card-symbol .icon { width: 22px; height: 22px; }
.auth-card h1 { font-size: 25px; font-weight: 650; margin-bottom: 7px; }.auth-card > p { font-size: 12px; color: #515f7a; margin-bottom: 27px; }.auth-card form label { font-size: 11px; color: #505f7a; margin-bottom: 8px; }
.auth-card form input { font-size: 12px; min-height: 45px; background: #fcfdff; border-color: #e3eaf6; padding-left: 38px; }.auth-card .input-icon > .icon { color: #515f78; width: 15px; height: 15px; }
.auth-card form > button { width: 100%; margin: 10px 0 23px; font-size: 13px; min-height: 45px; box-shadow: 0 5px 14px #4c63e81a; }.auth-card form > button .icon { width: 16px; height: 16px; }
.auth-card-footer { border-top: 1px solid #edf0f7; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; }.auth-card-footer a { color: #505f7a; }.auth-card-footer span { display: flex; align-items: center; gap: 4px; color: #515f77; }.auth-card-footer .icon { width: 11px; height: 11px; }
.boundary-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 22px; }
.boundary-card { max-width: 540px; width: 100%; padding: 42px; border: 1px solid #e2e9f5; border-radius: 21px; background: #fff; text-align: center; box-shadow: 0 12px 45px #334c7e08; }
.boundary-card > .empty-icon { margin-bottom: 20px; }.boundary-card > .eyebrow { display: block; font-size: 9px; color: #505f78; margin: 10px 0 14px; }.boundary-card h1 { font-size: 25px; }.boundary-card p { font-size: 13px; color: #505f7a; }
.boundary-card .button-row { justify-content: center; margin-top: 26px; }.boundary-card .button { font-size: 12px; }.boundary-url { display: block; overflow-wrap: anywhere; padding: 15px; background: #f5f8ff; border: 1px solid #e5edf9; color: #4e5f7d; border-radius: 10px; margin-top: 22px; text-align: left; }
.error-number { display: block; font: 700 80px/1.2 "Segoe UI",sans-serif; letter-spacing: 6px; color: #515e78; }
#responseStatus[data-state=idle] { background: #f1f4fa; color: #4f5f7a; }
#responseStatus[data-state=loading] { background: #f2effb; color: #5c5a87; }
#responseStatus[data-state=success] { background: #edf8f2; color: #406661; }
#responseStatus[data-state=error] { background: #fdf0f1; color: #775568; }
@media(max-width:1000px) { .auth-shell { gap: 48px; grid-template-columns: minmax(0,1fr) 370px; }.auth-intro-copy h2 { font-size: 30px; } }
@media(max-width:760px) { .auth-page { padding: 30px 22px; }.auth-shell { display: block; max-width: 420px; }.auth-intro > .portal-brand { margin: 0 0 27px; }.auth-intro-copy, .auth-caption { display: none; }.auth-card { padding: 30px 26px 23px; border-radius: 18px; }.auth-card h1 { font-size: 24px; }.boundary-card { padding: 34px 24px; }.boundary-card h1 { font-size: 22px; }.error-number { font-size: 68px; } }

.error-number{color:#d9e3fa}.hero-float{color:var(--accent,#8598df)}.float-code{--accent:#9280d5}.float-bolt{--accent:#d8aa58}
.syntax-comment{color:#6b7e98}.syntax-variable{color:#7464a5}
.api-card-title h2,.doc-header h1{overflow-wrap:anywhere}.status-row>div{min-width:0;flex:1}.status-row .badge{flex-shrink:0}
.metric-card .stat-value{font-size:clamp(22px,3vw,31px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.api-entry p{font-size:13px;line-height:1.9}.api-entry h2{font-size:18px}.doc-content .panel p,.doc-content .panel li{font-size:13px}
.doc-content table{font-size:13px}.doc-content th{font-size:12px}.admin-nav a:not(.portal-brand){font-size:13px}
.admin-main .panel p,.admin-main .panel li,.checklist li>span{font-size:13px}
@media(max-width:760px){.api-entry h2{font-size:18px}.api-entry p{font-size:13px}.doc-content .panel p,.doc-content .panel li{font-size:12px}.doc-toolbar .tab-list button{min-height:40px}.endpoint-row button{min-height:35px}.admin-main .panel p,.admin-main .panel li,.checklist li>span{font-size:12px}}
