:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647068;
  --line: #dce5de;
  --paper: #ffffff;
  --canvas: #f4f7f4;
  --brand: #176b45;
  --brand-dark: #0f5033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: var(--brand); }
.relay-header { position: relative; z-index: 20; min-height: 72px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.relay-header-inner { width: min(1180px, 92vw); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.relay-header nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.relay-header nav > a { color: var(--muted); text-decoration: none; }
.relay-header nav > a:hover { color: var(--ink); }
.relay-header nav form { display: inline; }
.relay-header .nav-button { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--brand); font-size: 14px; font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.nav-actions > a:first-child { color: var(--ink); text-decoration: none; }
.relay-header .nav-cta { min-height: 40px; padding: 9px 15px; color: #fff; }
.mobile-nav { display: none; }
.app-header-inner { width: 100%; padding: 0 22px; justify-content: flex-start; gap: 18px; }
.app-header-context { display: grid; gap: 1px; padding-left: 18px; border-left: 1px solid var(--line); }
.app-header-context span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-header-context strong { max-width: 260px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.app-account { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.app-header-inner .app-account { margin-left: auto; }
.header-status { padding: 6px 9px; border-radius: 999px; background: #f1e7cf; color: #775717; font-size: 11px; font-weight: 800; }
.header-status.active { background: #dff3e7; color: var(--brand-dark); }
.app-account form { display: inline; }
.relay-brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.relay-brand img { display: block; width: auto; height: 38px; }
.relay-main { width: min(1180px, 92vw); margin: 38px auto 80px; }
.relay-footer { width: min(1180px, 92vw); margin: 0 auto 32px; display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.app-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; height: calc(100vh - 72px); display: flex; flex-direction: column; padding: 26px 18px 20px; overflow-y: auto; border-right: 1px solid var(--line); background: #eef3ef; }
.sidebar-label { margin: 0 10px 12px; color: #839087; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-sidebar nav { display: grid; gap: 4px; }
.app-sidebar nav a { padding: 11px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.app-sidebar nav a:hover { background: #dfeae2; color: var(--brand-dark); }
.app-sidebar nav a.active { background: #d8e9de; color: var(--brand-dark); }
.sidebar-group-label { margin-top: 22px; margin-bottom: 5px; }
.sidebar-footer { display: flex; gap: 14px; margin-top: auto; padding: 18px 10px 0; border-top: 1px solid #d3ddd5; }
.sidebar-footer a { color: var(--muted); font-size: 12px; text-decoration: none; }
.app-main { width: min(1220px, calc(100% - 64px)); }
.relay-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.relay-heading h1, .public-form-card h1 { margin: 3px 0 8px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.relay-heading p, .relay-panel p { color: var(--muted); }
.eyebrow { margin: 0; color: var(--brand) !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.relay-panel, .relay-summary, .relay-alert, .relay-secret, .relay-success, .relay-error { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.relay-panel { padding: 24px; margin-bottom: 22px; }
.relay-panel.narrow { max-width: 620px; }
.relay-panel h2 { margin-top: 0; }
.relay-panel h3 { margin-top: 28px; }
.relay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.relay-summary { display: flex; flex-wrap: wrap; gap: 32px; padding: 18px 22px; margin-bottom: 22px; }
.relay-summary div { min-width: 120px; display: grid; gap: 4px; }
.relay-summary small, td small { color: var(--muted); display: block; margin-top: 4px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.dashboard-heading h1 { margin: 5px 0 8px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; }
.dashboard-heading p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
.dashboard-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.dashboard-stats article { display: grid; gap: 5px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.dashboard-stats span, .dashboard-stats small { color: var(--muted); font-size: 12px; }
.dashboard-stats strong { font-size: 23px; letter-spacing: -.03em; }
.workspace-onboarding { max-width: 850px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; margin: 60px auto; padding: 42px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.workspace-onboarding h2 { margin: 7px 0 10px; font-size: 32px; letter-spacing: -.04em; }
.workspace-onboarding p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.upgrade-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 22px; padding: 18px 20px; border: 1px solid #bdd7c6; border-radius: 13px; background: #e8f4ec; }
.upgrade-banner p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.upgrade-banner .relay-button { flex: 0 0 auto; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 22px; }
.dashboard-primary, .dashboard-secondary { min-width: 0; }
.dashboard-secondary { position: sticky; top: 20px; }
.dashboard-section { scroll-margin-top: 20px; }
.section-title { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title h2 { margin: 5px 0 6px; }
.section-title p:not(.eyebrow) { margin: 0; }
.section-title .relay-button { flex: 0 0 auto; }
.form-list { display: grid; gap: 10px; }
.form-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfb; }
.form-list h3 { margin: 7px 0 3px; font-size: 17px; }
.form-list p { margin: 0; font-size: 13px; }
.status-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #e7ece8; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-badge.status-active { background: #dff3e7; color: var(--brand-dark); }
.empty-state { padding: 34px; border: 1px dashed #bdcac0; border-radius: 12px; background: #fafcfb; text-align: center; }
.empty-state strong { font-size: 17px; }
.empty-state p { max-width: 500px; margin: 8px auto; }
.empty-state a { font-size: 14px; font-weight: 750; text-decoration: none; }
.empty-state.compact { padding: 25px; }
.setup-card ol { display: grid; gap: 17px; margin: 22px 0; padding: 0; list-style: none; }
.setup-card li { display: flex; align-items: center; gap: 11px; }
.setup-card li > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.setup-card li.complete > span { border-color: #8fc5a6; background: #dff3e7; color: var(--brand-dark); }
.setup-card li div { display: grid; gap: 2px; }
.setup-card li small { color: var(--muted); }
.setup-card > a { font-size: 14px; font-weight: 750; text-decoration: none; }
.api-key-card { scroll-margin-top: 20px; }
.api-key-card > p:not(.eyebrow) { line-height: 1.5; }
.api-access-note { margin: 16px 0; padding: 13px; border-radius: 9px; background: #fff7df; }
.api-access-note p { margin: 4px 0 0; font-size: 13px; }
.api-key-list { display: grid; gap: 9px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.api-key-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.api-key-list li > div { min-width: 0; display: grid; gap: 3px; }
.api-key-list code { font-size: 11px; }
.api-key-list small { color: var(--muted); font-size: 11px; }
.api-key-list form { flex: 0 0 auto; }
.api-key-list .relay-button { min-height: 36px; padding: 7px 9px; font-size: 12px; }
.analytics-heading, .product-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.analytics-heading h1, .product-page-heading h1 { margin: 5px 0 8px; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.05em; }
.analytics-heading p:not(.eyebrow), .product-page-heading p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.55; }
.range-switch { display: flex; flex: 0 0 auto; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #e8eee9; }
.range-switch a { padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.range-switch a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 33, 27, .12); }
.analytics-toolbar { display: flex; align-items: end; gap: 18px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.analytics-toolbar > div { display: grid; min-width: 190px; gap: 3px; margin-right: auto; }
.analytics-toolbar > div span, .custom-range label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.analytics-toolbar > div strong { font-size: 13px; }
.custom-range { display: flex; align-items: end; gap: 7px; }
.custom-range label { display: grid; gap: 4px; }
.custom-range input { width: 138px; min-height: 38px; padding: 7px 8px; font-size: 12px; }
.custom-range .relay-button { min-height: 38px; padding: 7px 11px; font-size: 12px; }
.analytics-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.analytics-kpis-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.analytics-kpis article { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.analytics-kpis span, .analytics-kpis small { color: var(--muted); font-size: 12px; }
.analytics-kpis strong { font-size: 26px; letter-spacing: -.035em; }
.analytics-kpis small.positive { color: var(--brand); }
.analytics-kpis small.negative { color: #b42318; }
.analytics-context-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -8px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: #eef3ef; }
.analytics-context-strip div { display: grid; gap: 3px; padding: 13px 16px; border-right: 1px solid #d4dfd7; }
.analytics-context-strip div:last-child { border-right: 0; }
.analytics-context-strip span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.analytics-context-strip strong { font-size: 13px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.chart-panel, .health-panel { min-height: 360px; }
.bar-chart { height: 255px; display: flex; align-items: stretch; gap: 4px; padding-top: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.bar-column { min-width: 10px; flex: 1 0 10px; display: grid; grid-template-rows: 20px 1fr 25px; align-items: end; justify-items: center; }
.bar-column .bar-value { color: var(--muted); font-size: 9px; }
.bar-column i { width: min(18px, 75%); min-height: 4px; align-self: end; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #36a26d, var(--brand)); }
.bar-column small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.health-panel { text-align: center; }
.health-panel h2 { margin: 6px 0 18px; }
.health-ring { width: 160px; height: 160px; display: grid; place-content: center; margin: 0 auto 22px; border-radius: 50%; background: radial-gradient(circle at center, #fff 58%, transparent 60%), conic-gradient(var(--brand) calc(var(--health) * 1%), #e4ebe6 0); }
.health-ring strong { font-size: 31px; letter-spacing: -.04em; }
.health-ring span { color: var(--muted); font-size: 11px; }
.health-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.health-panel dl div { display: grid; gap: 4px; }
.health-panel dt { color: var(--muted); font-size: 11px; }
.health-panel dd { margin: 0; font-weight: 800; }
.product-performance { margin-top: 0; }
.product-analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-analytics-grid a { position: relative; overflow: hidden; display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); text-decoration: none; }
.product-analytics-grid span { color: var(--muted); font-size: 12px; font-weight: 750; }
.product-analytics-grid strong { font-size: 27px; }
.product-analytics-grid small { color: var(--muted); font-size: 11px; }
.product-analytics-grid i { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--brand); }
.recent-activity a { font-weight: 700; text-decoration: none; }
.form-performance a { color: var(--ink); text-decoration: none; }
.product-workspace-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.product-identity { display: flex; align-items: flex-start; gap: 17px; }
.product-identity > span { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; font-size: 22px; font-weight: 850; }
.product-identity h1 { margin: 4px 0 7px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.05em; }
.product-identity p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.product-command-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.product-command-bar div { display: grid; gap: 3px; padding: 16px 18px; border-right: 1px solid var(--line); }
.product-command-bar div:last-child { border-right: 0; }
.product-command-bar span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.product-command-bar strong { font-size: 18px; }
.product-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "main rail"; align-items: start; gap: 22px; }
.product-main-column { min-width: 0; grid-area: main; }
.product-action-rail { position: sticky; top: 20px; grid-area: rail; }
.product-action-rail .relay-panel { padding: 20px; }
.product-create-card { scroll-margin-top: 20px; }
.product-create-card h2, .product-health-card h2 { margin: 6px 0 8px; }
.product-create-card > p:not(.eyebrow), .product-health-card > p:not(.eyebrow) { margin-top: 0; line-height: 1.5; }
.product-create-card form { margin-top: 18px; }
.product-health-card ul { display: grid; gap: 0; margin: 18px 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.product-health-card li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.product-health-card li span { color: var(--muted); }
.product-health-card > a { font-size: 13px; font-weight: 750; text-decoration: none; }
.product-inventory, .product-response-inbox, .product-integration-panel { min-width: 0; }
.response-detail summary { color: var(--brand); font-size: 12px; font-weight: 750; cursor: pointer; }
.response-detail dl { min-width: 220px; display: grid; gap: 7px; margin: 10px 0 0; }
.response-detail dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
.response-detail dt { color: var(--muted); font-size: 10px; }
.response-detail dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.integration-endpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.integration-endpoints article { min-width: 0; display: grid; gap: 7px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfb; }
.integration-endpoints article > span { color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.integration-endpoints code { margin: 5px 0; padding: 11px; border-radius: 7px; background: #17211b; color: #e9f4ed; font-size: 11px; }
.integration-endpoints small { color: var(--muted); line-height: 1.45; }
.product-playbook { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.playbook-grid { display: grid; gap: 10px; }
.playbook-grid > details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.playbook-grid > details > summary { display: flex; align-items: center; gap: 13px; padding: 16px 18px; cursor: pointer; list-style: none; }
.playbook-grid > details > summary::-webkit-details-marker { display: none; }
.playbook-grid > details > summary > span, .workflow-list li > span, .rules-grid li > span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #dff0e5; color: var(--brand-dark); font-size: 11px; font-weight: 850; }
.playbook-grid > details > summary div { display: grid; gap: 2px; }
.playbook-grid > details > summary small { color: var(--muted); }
.playbook-grid > details[open] > summary { border-bottom: 1px solid var(--line); }
.playbook-grid > details > ol, .playbook-grid > details > ul { margin: 0; padding: 18px; }
.workflow-list { display: grid; gap: 13px; list-style: none; }
.workflow-list li { display: flex; gap: 12px; }
.workflow-list li div { display: grid; gap: 3px; }
.workflow-list small { color: var(--muted); }
.default-field-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.default-field-list li { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; font-size: 13px; font-weight: 700; }
.row-actions { display: flex; align-items: center; gap: 12px; }
.row-actions > a:not(.relay-button) { font-size: 13px; font-weight: 750; text-decoration: none; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.rules-grid li { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
.rules-grid p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.api-status-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 22px; padding: 20px; border: 1px solid #e1bf77; border-radius: 13px; background: #fff8e7; }
.api-status-banner.active { border-color: #91c5a7; background: #e8f4ec; }
.api-status-banner div { display: grid; gap: 3px; }
.api-status-banner span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.api-status-banner p { margin: 0; color: var(--muted); font-size: 13px; }
.api-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.api-example { overflow-x: auto; padding: 15px; border-radius: 9px; background: #17211b; color: #e9f4ed; line-height: 1.6; }
.relay-alert, .relay-secret, .relay-success, .relay-error { padding: 16px 18px; margin-bottom: 22px; }
.relay-alert { border-color: #e2bd72; background: #fff9e9; }
.relay-secret { display: grid; gap: 8px; border-color: #77b793; background: #effaf4; }
.relay-success { border-color: #77b793; background: #effaf4; }
.relay-error { border-color: #d99393; background: #fff1f1; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
label span { color: var(--muted); font-size: 12px; font-weight: 400; }
input, select, textarea, button { width: 100%; min-height: 44px; border: 1px solid #bdcac0; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 12px; font: inherit; }
textarea { resize: vertical; }
button, .relay-button { display: inline-flex; width: auto; align-items: center; justify-content: center; border-color: var(--brand); background: var(--brand); color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; padding: 10px 16px; border-radius: 9px; }
button:hover { background: var(--brand-dark); }
.relay-button.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.relay-button.disabled { pointer-events: none; opacity: .58; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; min-height: 18px; }
.plain-list { padding: 0; list-style: none; }
.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.plain-list code { margin-left: 8px; }
code { overflow-wrap: anywhere; }
.code-block { display: block; padding: 12px; border-radius: 8px; background: #eef2ef; }
.docs-section { max-width: 920px; }
.docs-section pre { overflow-x: auto; padding: 16px; border-radius: 9px; background: #17211b; color: #e9f4ed; line-height: 1.55; }
.docs-section pre code { overflow-wrap: normal; white-space: pre; }
.endpoint-label { display: inline-block; margin: 0 0 4px !important; padding: 4px 8px; border-radius: 6px; background: #dff3e7; color: var(--brand) !important; font-size: 12px; font-weight: 800; }
.docs-tab-list { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; margin-bottom: 28px; padding: 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .96); }
.docs-tab-list button { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; border-color: transparent; background: transparent; color: var(--muted); font-size: 13px; }
.docs-tab-list button:hover { background: #eef6f1; color: var(--brand-dark); }
.docs-tab-list button[aria-selected="true"] { background: var(--brand); color: #fff; }
.docs-tab-panel[hidden] { display: none; }
.docs-product-intro { max-width: 820px; margin: 0 0 30px; }
.docs-product-intro h2 { margin: 7px 0 12px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.docs-product-intro > p:not(.eyebrow), .docs-section > p, .docs-section li { color: var(--muted); line-height: 1.65; }
.docs-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.docs-step-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.docs-step-grid article > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #dff3e7; color: var(--brand-dark); font-weight: 800; }
.docs-step-grid h3 { margin: 14px 0 7px; }
.docs-step-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.docs-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-chip-list span { padding: 7px 10px; border-radius: 999px; background: #e7f2eb; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.docs-checklist { padding-left: 21px; }
.relay-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.inline-form { min-width: 310px; grid-template-columns: 1fr 80px auto; gap: 8px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.settings-grid .full-span { grid-column: 1 / -1; }
.field-list { display: grid; gap: 10px; }
.field-editor { border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
.field-editor summary { display: flex; justify-content: space-between; gap: 15px; padding: 14px; cursor: pointer; }
.field-editor summary span { display: flex; flex-wrap: wrap; gap: 8px; }
.field-editor summary small { color: var(--muted); }
.field-editor > form { padding: 0 14px 14px; }
.field-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.field-actions form { display: inline; }
.relay-button.danger { border-color: #b42318; background: #fff; color: #b42318; }
.public-form-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.public-form-card { width: min(560px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.relay-hero { max-width: 850px; padding: 72px 0 48px; }
.relay-hero h1 { margin: 8px 0 18px; font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -.055em; }
.relay-hero > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .text-link { align-self: center; padding: 10px 4px; font-weight: 750; text-decoration: none; }
.landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); align-items: center; gap: clamp(36px, 7vw, 90px); }
.landing-hero > div > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-note { margin: 18px 0 0; font-size: 13px !important; }
.product-preview { overflow: hidden; border: 1px solid #bdd4c5; border-radius: 20px; background: #edf5f0; box-shadow: 0 24px 65px rgba(23, 107, 69, .14); }
.preview-toolbar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid #d2e3d7; background: #fff; }
.preview-toolbar > span { width: 7px; height: 7px; border-radius: 50%; background: #b7c8bc; }
.preview-toolbar small { margin-left: 7px; color: var(--muted); font-size: 11px; }
.preview-form { display: grid; gap: 13px; margin: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.preview-form > strong { margin-bottom: 3px; font-size: 19px; }
.preview-form label { gap: 5px; font-size: 11px; }
.preview-form label span { min-height: 37px; padding: 10px; border: 1px solid #d5dfd8; border-radius: 7px; color: #8a958d; font-size: 11px; }
.preview-form p { margin: 0; color: var(--muted); font-size: 10px; }
.preview-form p i { color: var(--brand); font-style: normal; font-weight: 800; }
.preview-form > b { padding: 10px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 11px; text-align: center; }
.preview-flow { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px 22px; color: var(--brand-dark); font-size: 10px; font-weight: 800; }
.preview-flow span { padding: 7px 9px; border-radius: 999px; background: #fff; }
.preview-flow i { color: #7b9484; font-style: normal; }
.product-preview code, .api-card code { padding: 11px; border-radius: 8px; background: #17211b; color: #e9f4ed; font-size: 12px; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.landing-section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-intro { max-width: 720px; margin-bottom: 38px; }
.section-intro h2, .split-section h2, .principles-grid h2, .landing-cta h2 { margin: 7px 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.045em; }
.section-intro > p:not(.eyebrow), .step-grid p, .use-case-grid p, .split-section p, .principles-grid p, .landing-cta > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-grid article { padding-top: 20px; border-top: 2px solid var(--brand); }
.step-grid article > span { color: var(--brand); font-size: 13px; font-weight: 800; }
.step-grid h3, .offer-grid h3 { margin: 14px 0 8px; font-size: 20px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.offer-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #e2f1e7; color: var(--brand-dark); font-size: 11px; font-weight: 850; }
.offer-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.split-section { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(36px, 8vw, 100px); }
.api-card { display: grid; gap: 9px; padding: 25px; border-radius: 16px; background: #e7f2eb; }
.api-card small { margin-top: 6px; color: var(--brand-dark); font-weight: 800; }
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 7vw, 90px); }
.pricing-hero { max-width: 790px; padding: 58px 0 42px; }
.pricing-hero h1 { margin: 8px 0 18px; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.pricing-hero > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.billing-switch { width: fit-content; display: flex; gap: 4px; margin: 0 auto 32px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #e8eee9; }
.billing-switch a { padding: 9px 13px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.billing-switch a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 33, 27, .12); }
.billing-switch span { margin-left: 5px; color: var(--brand); font-size: 11px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.pricing-card.featured { border: 2px solid var(--brand); box-shadow: 0 20px 55px rgba(23, 107, 69, .12); }
.pricing-card h3 { min-height: 52px; margin: 10px 0 14px; font-size: 23px; letter-spacing: -.025em; }
.pricing-card > p:not(.eyebrow) { min-height: 76px; color: var(--muted); line-height: 1.55; }
.pricing-card ul { flex: 1; margin: 20px 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pricing-card li { position: relative; padding: 7px 0 7px 23px; color: var(--muted); font-size: 14px; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.pricing-card .relay-button { width: 100%; }
.price { display: flex; align-items: end; gap: 8px; }
.price strong { font-size: 44px; letter-spacing: -.05em; }
.price span { padding-bottom: 8px; color: var(--muted); font-size: 12px; }
.pricing-card form { margin-top: auto; }
.pricing-card button:disabled { border-color: #aab5ad; background: #aab5ad; cursor: not-allowed; }
.popular-label { position: absolute; top: -13px; right: 20px; padding: 6px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pricing-note { max-width: 820px; margin: 32px auto 70px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #eaf5ee; text-align: center; }
.pricing-note p, .pricing-footnote { color: var(--muted); line-height: 1.6; }
.pricing-footnote { margin-top: 24px; text-align: center; }
.settings-details { margin: 0 0 24px; }
.settings-details div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.settings-details dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.settings-details dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.landing-cta { max-width: 820px; margin: 90px auto 30px; padding: 55px; border-radius: 20px; background: #dff0e5; text-align: center; }
.landing-cta .hero-actions { justify-content: center; }
.error-page { max-width: 680px; margin: 80px auto; padding: 40px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-align: center; }
.error-page h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.05em; }
.error-page > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.error-page .hero-actions { justify-content: center; }
.error-code { color: #b6c2b9; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.auth-card { margin: 70px auto; }
.legal-copy { max-width: 820px; }
.legal-copy h2 { margin-top: 30px; }
.legal-copy p, .legal-copy li { color: var(--muted); line-height: 1.65; }
.google-button { position: relative; display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; margin-top: 8px; padding: 10px 16px; border: 1px solid #747775; border-radius: 4px; background: #fff; color: #1f1f1f; font-family: Roboto, Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .01em; text-decoration: none; }
.google-button svg { position: absolute; left: 13px; width: 20px; height: 20px; }
.google-button:hover { background: #f8faff; border-color: #6f7478; box-shadow: 0 1px 2px rgba(60, 64, 67, .18); }
.google-button:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1180px) {
  .analytics-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-toolbar { flex-wrap: wrap; }
  .analytics-toolbar > div { width: 100%; }
}
@media (max-width: 960px) {
  .desktop-nav { display: none !important; }
  .app-account { display: none; }
  .app-layout { display: block; min-height: calc(100vh - 64px); }
  .app-sidebar { display: none; }
  .app-main { width: min(1180px, 92vw); }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary { display: grid; width: 42px; height: 42px; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
  .mobile-nav nav { position: absolute; top: 50px; right: 0; width: min(300px, 88vw); display: grid; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(23, 33, 27, .14); }
  .mobile-nav nav > a, .mobile-nav .nav-button { display: block; width: 100%; padding: 11px 10px; color: var(--ink); text-align: left; text-decoration: none; }
  .mobile-nav nav > .relay-button { margin-top: 5px; color: #fff; text-align: center; }
  .mobile-nav nav form { display: block; }
  .landing-hero { grid-template-columns: 1fr 360px; gap: 36px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-secondary { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .health-panel { min-height: 0; }
  .product-workspace-grid { grid-template-columns: 1fr; grid-template-areas: "rail" "main"; }
  .product-action-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .product-action-rail .relay-panel { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .relay-grid { grid-template-columns: 1fr; }
  .docs-step-grid { grid-template-columns: 1fr; }
  .docs-tab-list { position: static; margin-left: -4vw; margin-right: -4vw; border-left: 0; border-right: 0; border-radius: 0; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .full-span { grid-column: auto; }
  .landing-hero, .step-grid, .offer-grid, .split-section, .principles-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card h3, .pricing-card > p:not(.eyebrow) { min-height: 0; }
  .relay-header-inner { width: 92vw; min-height: 64px; }
  .relay-brand img { height: 32px; }
  .relay-heading { align-items: flex-start; flex-direction: column; }
  .relay-main { margin-top: 24px; }
  .public-form-card { padding: 22px; }
  .landing-section { padding: 58px 0; }
  .landing-cta { margin-top: 58px; padding: 34px 22px; }
  .product-preview { width: 100%; }
  .preview-flow { flex-wrap: wrap; }
  .dashboard-heading, .upgrade-banner, .form-list article, .section-title { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { width: 100%; flex-wrap: wrap; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-secondary, .workspace-onboarding { grid-template-columns: 1fr; }
  .workspace-onboarding { gap: 25px; margin: 30px auto; padding: 26px; }
  .upgrade-banner .relay-button, .section-title .relay-button { width: 100%; }
  .app-header-context { display: none; }
  .analytics-heading, .product-page-heading, .api-status-banner { align-items: flex-start; flex-direction: column; }
  .analytics-toolbar { align-items: stretch; }
  .range-switch { width: 100%; }
  .range-switch a { flex: 1; text-align: center; }
  .custom-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .custom-range input { width: 100%; }
  .custom-range .relay-button { grid-column: 1 / -1; width: 100%; }
  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-context-strip, .product-command-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-context-strip div:nth-child(2), .product-command-bar div:nth-child(2) { border-right: 0; }
  .analytics-context-strip div, .product-command-bar div { border-bottom: 1px solid var(--line); }
  .analytics-context-strip div:nth-last-child(-n+2), .product-command-bar div:nth-last-child(-n+2) { border-bottom: 0; }
  .product-analytics-grid, .rules-grid, .api-page-grid { grid-template-columns: 1fr; }
  .product-workspace-header { align-items: flex-start; flex-direction: column; }
  .product-action-rail, .integration-endpoints { grid-template-columns: 1fr; }
  .product-action-rail .relay-panel { margin-bottom: 0; }
  .product-identity > span { width: 44px; height: 44px; }
  .row-actions { width: 100%; justify-content: space-between; }
  .bar-chart { height: 230px; }
}
