/* Receipt identity shared by the public site and application surfaces. */
:root {
  --bg: #faf9f7;
  --surface: #f3f2ef;
  --panel: #fff;
  --ink: #111316;
  --text: #17191d;
  --dim: #62656b;
  --dim2: #62656b;
  --muted: #62656b;
  --line: #dedfdc;
  --line2: #c9cbc7;
  --accent: #d4ff3f;
  --accent-text: #101113;
  --accent-ink: #17191d;
  --green: var(--accent-ink);
  --success: var(--accent-ink);
  --accent-rgb: 212, 255, 63;
  --accent-dim: rgba(212, 255, 63, 0.2);
  --brand-lime: #d4ff3f;
  --selection-bg: #e9ebed;
  --selection-ink: #17191d;
  --brand-dark: #0d0f12;
  --hover: var(--selection-bg);
  --font: Inter, InterFallback, system-ui, -apple-system, sans-serif;
  --radius-card: 20px;
  --r-card: 20px;
  --radius-pill: 999px;
  --radius-menu: 12px;
  --radius-control: 14px;
  --radius-control-compact: 10px;
  --radius-action: 16px;
  --radius-popover: 16px;
  --nav-surface: var(--glass-bg-scrolled);
  --nav-surface-raised: #f7f8fa;
  --nav-border: rgba(40, 48, 58, 0.12);
  --nav-border-strong: #c9cbc7;
  --nav-popover-border: rgba(40, 48, 58, 0.18);
  --nav-text: #424850;
  --nav-text-soft: #424850;
  --nav-text-strong: #17191d;
  --nav-text-dim: #626970;
  --nav-text-dim-hover: #17191d;
  --nav-hover: var(--selection-bg);
  --glass-hover: var(--selection-bg);
  --nav-badge-bg: rgba(30, 40, 50, 0.08);
  --nav-field: rgba(255, 255, 255, 0.5);
  --nav-field-border: rgba(30, 40, 50, 0.2);
  --nav-placeholder: #626970;
  --nav-popover-shadow: rgba(0, 0, 0, 0.3);
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; top: -100%; left: 16px; z-index: 200; padding: 8px 16px;
  background: var(--accent); color: var(--accent-text); text-decoration: none; font-size: 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }
::selection {
  background: var(--selection-bg);
  color: var(--selection-ink);
}
.sidebar,
.docs-sidebar {
  background: var(--nav-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--nav-border);
}
.sidebar .sidebar-title {
  width: 110px;
  height: 28px;
  min-height: 28px;
  background-color: #17191d;
}
.docs-sidebar .sidebar-title {
  width: auto;
  height: auto;
  mask: none;
  -webkit-mask: none;
  background: none;
  font-size: inherit;
  overflow: visible;
}
.sidebar-logo,
.docs-sidebar .sidebar-logo {
  height: 28px;
  width: auto;
  filter: none;
}
.sidebar-header {
  min-height: 76px;
}
.sidebar .nav-item,
.docs-sidebar .sidebar-link {
  color: var(--nav-text);
  font-size: 14px;
}
.sidebar .nav-item.active,
:root .docs-sidebar .sidebar-link.active {
  background: var(--selection-bg);
  color: var(--selection-ink);
  border-color: transparent;
}
.sidebar .nav-item.active .nav-icon {
  color: var(--brand-dark);
}
.sidebar :is(a, button, input):focus-visible,
.docs-sidebar :is(a, button, input):focus-visible {
  outline-color: var(--nav-text-strong);
}
.sidebar :is(.nav-label, .nav-section-title),
.docs-sidebar .sidebar-section-title {
  color: var(--nav-text-dim);
}
.docs-search-input {
  font-size: 14px;
  min-height: 42px;
}
.docs-search-result-title {
  font-size: 14px;
}
.docs-search-result-sub {
  font-size: 12px;
}
.docs-sidebar .sidebar-btn,
.sidebar-footer .sidebar-btn {
  color: var(--nav-text);
  border-color: var(--nav-field-border);
}
.docs-mobile-header,
.mobile-header {
  background: var(--nav-surface);
  border-color: var(--nav-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.docs-mobile-header .brand img,
.mobile-header .brand img {
  height: 28px;
  filter: none;
}
.docs-mobile-header .burger,
.mobile-header .burger {
  color: var(--nav-text-strong);
  background: var(--nav-hover);
  border-color: var(--nav-field-border);
}
.docs-content {
  max-width: 100%;
  min-width: 0;
}
.docs-content h1,
.page-title,
.content-page h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.docs-content p,
.docs-content li {
  line-height: 1.75;
}
.docs-content pre,
.docs-content .code-block {
  border-radius: 16px;
}
.docs-content :is(pre, table),
.table-container,
.table-wrapper {
  max-width: 100%;
}
.docs-content table {
  display: block;
  overflow-x: auto;
}
.docs-content :is(img, svg) {
  max-width: 100%;
}
.docs-content :is(p, li, td, a),
.content-page {
  overflow-wrap: anywhere;
}
.btn-primary,
.btn-fill,
.btn-nav {
  background: var(--brand-lime);
  border-color: var(--brand-lime);
  color: var(--brand-dark);
}
.btn-primary:hover,
.btn-fill:hover,
.btn-nav:hover {
  background: #e0ff74;
  border-color: #e0ff74;
  color: var(--brand-dark);
}
.btn-primary:disabled,
.btn-fill:disabled {
  opacity: 0.5;
}
.btn {
  font-weight: 500;
  border-radius: var(--radius-control);
}
.btn-sm,
.filter-controls .btn,
.pagination-btn {
  border-radius: var(--radius-control-compact);
}
.auth-page {
  background:
    radial-gradient(
      ellipse at 50% 0,
      rgba(212, 255, 63, 0.075),
      transparent 55%
    ),
    var(--bg);
  padding-top: clamp(48px, 9vh, 100px);
}
.auth-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 18px 60px rgba(13, 15, 18, 0.055);
}
.auth-logo img {
  height: 30px;
}
.auth-title {
  font-size: 28px;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.auth-card input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 44px;
}
.receipt-home {
  color: var(--ink);
}
@media (max-width: 768px) {
  input,
  select,
  textarea,
  .docs-search-input {
    font-size: 16px;
  }
  .auth-page {
    padding: 48px 20px 32px;
  }
  .auth-card {
    padding: 28px 22px;
  }
  .docs-content h1,
  .page-title {
    font-size: clamp(26px, 7vw, 34px);
  }
  .modal-content {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar,
  .docs-sidebar,
  .docs-mobile-header,
  .mobile-header {
    background: #14161a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* Neon fills retain dark labels on the light content surfaces. */
a {
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
.sidebar,
.docs-sidebar {
  --accent-ink: #17191d;
}
:is(.session-status, .status-badge, .ov-agent-status).active,
.session-status.approved,
.session-status.verified,
.session-status.low,
.status-badge.trust-l3 {
  background: var(--brand-lime);
  color: var(--brand-dark);
  border-color: transparent;
}

.nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--nav-text-dim);
  padding: 20px 14px 7px;
  margin: 0;
}
.sidebar .nav-item .nav-label {
  color: inherit;
}
.page-purpose {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 72ch;
  margin: 0 0 24px;
}
.overview-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.overview-actions a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
}
.overview-actions a:hover {
  border-color: #bfc4c9;
  background: var(--selection-bg);
}
.overview-actions strong {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.overview-actions a > span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
#ov-metrics-grid {
  container-type: inline-size;
  container-name: overview-metrics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
#ov-metrics-grid .ov-metric {
  padding: 20px;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  gap: 10px;
  border-right: 1px solid var(--line);
}
#ov-metrics-grid .ov-metric:last-child {
  border: 0;
}
#ov-metrics-grid .ov-metric:hover { background: #f5f6f6; }
#ov-metrics-grid .ov-metric-label { font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: 0; white-space: normal; }
#ov-metrics-grid .ov-metric-val { font-size: 24px; font-weight: 550; line-height: 1.2; overflow-wrap: anywhere; }
.ov-metric-context {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.overview-actions a[hidden] { display: none; }
.overview-actions .overview-review-count { color: var(--text); font-size: 28px; font-weight: 550; line-height: 1.1; font-variant-numeric: tabular-nums; }
.overview-actions .overview-action-link { margin-top: auto; color: var(--text); font-weight: 500; }
.overview-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.overview-section-heading h2 { margin: 0; font-size: 16px; font-weight: 600; }
.overview-section-heading a { font-size: 13px; color: var(--text); }
.overview-workspace-history { margin: 0; align-self: start; }
.overview-details {
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
}
.overview-details > summary,
.setup-details > summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
}
.overview-technical {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.overview-technical > div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.overview-technical strong {
  font-weight: 600;
}
.overview-technical > div > span:first-child {
  color: var(--muted);
}
.dashboard-app .ov-bottom-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  margin-top: 24px;
}
.dashboard-app .ov-left-col {
  min-width: 0;
}
.dashboard-app .ov-agents-card {
  width: 100%;
}
.dashboard-app :is(#ov-agent-list,#ov-activity-list):not([aria-busy="true"]) {
  min-height: 0;
}
.ov-agent-row {
  font: inherit;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.ov-agent-name {
  min-width: 0;
}
.ov-agent-status {
  white-space: normal;
  text-align: right;
}
@media (max-width: 1000px) {
  .overview-actions {
    grid-template-columns: 1fr;
  }
  .dashboard-app .ov-bottom-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-app .ov-left-col {
    display: block;
  }
}
@container overview-metrics (max-width: 640px) {
  #ov-metrics-grid .ov-metric { grid-column: 1 / -1; padding: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  #ov-metrics-grid .ov-metric:last-child { border-bottom: 0; }
  #ov-metrics-grid .ov-metric-val { grid-column: 2; grid-row: 1 / 3; align-self: center; max-width: 12ch; text-align: right; }
}
@media (max-width: 480px) {
  .ov-metric-label {
    font-size: 13px;
  }
  .ov-a-item {
    flex-wrap: wrap;
  }
  .ov-a-text {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .overview-actions a {
    padding: 20px;
  }
  .page-heading-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
}

.docs-start-paths {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 36px;
}
.docs-start-paths a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  font-size: 14px;
}
.docs-start-paths a:hover {
  background: var(--selection-bg);
}

/* Shared disclosure controls, including keyboard-native details */
details > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; list-style: none; cursor: pointer; min-height: 44px;
}
details > summary::-webkit-details-marker { display: none; }
details > summary:not(.agent-manage), .docs-sidebar .sidebar-group-label, .filter-toggle { position: relative; padding-right: 36px; }
details > summary:not(.agent-manage)::before, details > summary:not(.agent-manage)::after,
.docs-sidebar .sidebar-group-label::before, .docs-sidebar .sidebar-group-label::after,
.filter-toggle::before, .filter-toggle::after {
  content: ""; position: absolute; top: 50%; right: 12px; width: 12px; height: 1.5px;
  border: 0; border-radius: 1px; opacity: 1; background: currentColor;
  transform: translateY(-50%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
details > summary:not(.agent-manage)::after, .docs-sidebar .sidebar-group-label::after, .filter-toggle::after { right: 17.25px; width: 1.5px; height: 12px; }
details[open] > summary:not(.agent-manage)::before,
.docs-sidebar .sidebar-group:not(.collapsed) .sidebar-group-label::before,
.filter-toggle[aria-expanded="true"]::before { transform: translateY(-50%) rotate(180deg); }
details[open] > summary:not(.agent-manage)::after,
.docs-sidebar .sidebar-group:not(.collapsed) .sidebar-group-label::after,
.filter-toggle[aria-expanded="true"]::after { transform: translateY(-50%) rotate(270deg); }
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .25s ease, content-visibility .25s allow-discrete;
  }
  details[open]::details-content { block-size: auto; }
}

@media(prefers-reduced-motion:reduce) {
  .sidebar, .docs-sidebar, .sidebar-backdrop, .docs-sidebar-backdrop, .sidebar .nav-item { transition: none; }
  details::details-content, details>summary:not(.agent-manage)::before, details>summary:not(.agent-manage)::after,
  .docs-sidebar .sidebar-group-label::before, .docs-sidebar .sidebar-group-label::after,
  .filter-toggle::before, .filter-toggle::after { transition: none; }
}

@media(max-width:768px){
  :root{--nav-logo-h:24px}
  .docs-mobile-header .brand img,.mobile-header .brand img,.auth-logo img{height:24px}
  .sidebar .sidebar-title{width:98px;height:25px;min-height:25px}
  .sidebar-logo,.docs-sidebar .sidebar-logo{height:24px}
  .oauth-btn,.auth-btn{min-height:44px}
}
@media(max-width:1000px){
  .snav,.snav.scrolled{background:transparent;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;padding:12px 0}
  .snav-shell{padding:0 20px}
  .snav-inner{padding:0;min-height:50px;border-radius:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  .snav .brand img{filter:none}
  .snav.on-dark .brand img{filter:brightness(0) invert(1)}
}
@media(max-width:768px){
  .docs-mobile-header,.mobile-header{top:0;left:0;right:0;width:auto;height:76px;min-height:76px;padding:12px 20px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  .docs-mobile-header .burger,.mobile-header .burger{background:var(--glass-bg-scrolled);color:var(--glass-text-strong);border:1px solid var(--glass-border);box-shadow:var(--glass-shadow-scrolled);backdrop-filter:var(--glass-filter);-webkit-backdrop-filter:var(--glass-filter)}
}
@media(prefers-reduced-transparency:reduce){.snav .burger,.sidebar,.docs-sidebar,.docs-mobile-header .burger,.mobile-header .burger{background:#edf0f3;backdrop-filter:none;-webkit-backdrop-filter:none}}

.auth-card .auth-btn {
  width:164px;max-width:100%;min-height:44px;align-self:center;
  margin-left:auto;margin-right:auto;padding:0 18px;
}

@media(prefers-reduced-transparency:reduce){.snav.on-dark :is(.snav-links,.mobile-menu,.burger){background:#292d34}}

#site-footer :is(a,button,[role=button]):focus-visible,.receipt-home .hero :is(a,button):focus-visible{outline-color:var(--brand-lime)}
@supports not (backdrop-filter:blur(1px)){.snav.on-dark :is(.snav-links,.mobile-menu,.burger){background:#292d34}}

/* One footer layout for the homepage and every shared public footer. */
.receipt-footer, #site-footer .receipt-footer {
 margin:0; padding:0; border:0; position:relative;
 background:var(--brand-dark); color:#f7f8f8; font-family:var(--font);
 --footer-inline-padding:24px;
}
.receipt-footer :is(.foot-cta,.foot,.footer-base) { box-sizing:border-box; }
.receipt-footer .foot-cta { max-width:1280px; margin:auto; padding:96px var(--footer-inline-padding) 72px; }
.receipt-footer .foot-cta h2 { color:#f7f8f8; max-width:14em; margin:0; font:600 clamp(30px,3.8vw,48px)/1.08 var(--font); letter-spacing:-.026em; }
.receipt-footer .foot-cta-row { margin-top:36px; display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.receipt-footer .btn-acc { display:inline-flex; align-items:center; min-height:44px; background:var(--brand-lime); color:var(--brand-dark); border-radius:var(--radius-action); padding:14px 26px; font-size:15px; font-weight:400; }
.receipt-footer .btn-acc svg { width:15px; height:15px; margin-left:9px; }
.receipt-footer .foot { max-width:1280px; margin:auto; display:flex; flex-wrap:wrap; gap:clamp(16px,4vw,64px); padding:clamp(32px,5vw,56px) var(--footer-inline-padding); border-top:1px solid rgba(247,248,248,.14); }
.receipt-footer .flinks { flex:1 1 136px; max-width:220px; min-width:0; }
.receipt-footer .flinks b { display:block; font-size:13px; font-weight:400; color:#f7f8f8; margin-bottom:16px; }
.receipt-footer .flinks a { display:block; width:max-content; max-width:100%; font-size:15px; line-height:1.55; color:#bfc3c9; margin-bottom:13px; padding:12px 0; margin-top:-12px; }
.receipt-footer .fsocial { display:flex; align-items:center; gap:18px; }
.receipt-footer .fsocial a { display:inline-flex; color:#bfc3c9; padding:9px; margin:-9px; }
.receipt-footer .fsocial svg { width:26px; height:26px; fill:currentColor; }
.receipt-footer a { text-decoration:none; }
.receipt-footer .flinks a:hover { color:var(--brand-lime); text-decoration:underline; text-underline-offset:4px; }
.receipt-footer .fsocial a:hover { color:var(--brand-lime); }
.receipt-footer a:focus-visible { outline:2px solid var(--brand-lime); outline-offset:4px; }
.footer-base { display:flex; justify-content:space-between; align-items:baseline; gap:16px; width:100%; max-width:1280px; margin-inline:auto; padding:24px var(--footer-inline-padding) 28px; border-top:1px solid rgba(247,248,248,.14); color:#bfc3c9; font-size:clamp(12px,1vw,14px); line-height:1.5; }
.footer-base p { margin:0; }
.footer-base p:first-child { flex:none; }
.footer-base p:last-child { text-align:right; }
@media(max-width:640px) {
 .receipt-footer { --footer-inline-padding:16px; }
 .receipt-footer .foot-cta { padding:72px var(--footer-inline-padding) 56px; }
 .receipt-footer .foot { gap:clamp(16px,4vw,28px); padding:32px 16px; }
}

.pricing-table .pt-check::after { border-color:#111; }
.receipt-footer > .gm { position:absolute; top:0; left:0; width:100%; height:1px; visibility:hidden; pointer-events:none; }

/* Neutral selection is distinct from primary brand actions. */
select option:checked,
.custom-dropdown-option:hover,
.custom-dropdown-option.selected,
.modal-dropdown .custom-dropdown-option.selected,
.group-pill.active,
.toggle-btn.active,
.time-range-preset.active,
.docs-search-result.active,
.docs-toc-link.active,
.pricing-page .toggle-btn.active,
.rfilter.on {
  background: var(--selection-bg);
  color: var(--selection-ink);
  border-color: var(--line2);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--selection-ink); }
.docs-toc-link.active { border-left-color: var(--selection-ink); }

.docs-toc-link:hover, .docs-start-paths a:hover,
.overview-actions a:hover, .ov-agent-row:hover,
.docs-content a:not(.callout-link):hover,
.content-page a:not(.btn):not(.plan-cta):hover,
.blog-card:hover, .group-pill:hover, .toggle-btn:hover,
.time-range-preset:hover, .settings-tab:hover,
.pagination-btn:not(:disabled):hover {
  background-color: var(--selection-bg);
  color: var(--selection-ink);
}

body .cc-btn { border-radius: var(--radius-control); }
