:root {
  --cvh-indigo: #326df5;
  --cvh-indigo-dark: #214eea;
  --cvh-violet: #7c3aed;
  --cvh-sky: #38bdf8;
  --cvh-ink: #111827;
  --cvh-ink-soft: #334155;
  --cvh-muted: #64748b;
  --cvh-border: #e5eaf2;
  --cvh-border-strong: #d7deea;
  --cvh-surface: #ffffff;
  --cvh-canvas: #f4f6fa;
  --cvh-radius: 16px;
  --cvh-control-height: 42px;
  --cvh-page-gap: 24px;
  --cvh-sidebar-width: 264px;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--cvh-canvas);
}
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 82% -10%, rgb(50 109 245 / 9%), transparent 25rem),
    var(--cvh-canvas);
  color: var(--cvh-ink);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; }
.page-wrapper { min-width: 0; }
.navbar-vertical.premium-sidebar { width: var(--cvh-sidebar-width); }
.premium-sidebar {
  background:
    radial-gradient(circle at 20% 4%, rgb(50 109 245 / 16%), transparent 15rem),
    linear-gradient(180deg, #0a1020 0%, #0d1730 58%, #101738 100%);
  border: 0;
  box-shadow: 14px 0 42px rgb(15 23 42 / 9%);
}
.premium-sidebar > .container-fluid { padding: 18px 10px 14px; }
.premium-sidebar .navbar-brand { display: flex; min-height: 60px; margin: 0 10px 6px; padding: 0; align-items: center; }
.navbar-brand a { display: flex; min-width: 0; align-items: center; gap: 10px; color: #fff !important; }
.brand-logo-sidebar { display: block; width: 174px; max-width: calc(100% - 2px); height: auto; }
.brand-context { padding: 3px 7px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 7px; color: #bcd7ff; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.premium-sidebar .navbar-collapse { min-height: calc(100vh - 102px); }
.premium-sidebar .navbar-nav { gap: 3px; }
.premium-sidebar .nav-link {
  min-height: 44px;
  margin: 0 6px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #aeb9d2;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.premium-sidebar .nav-link-icon { display: grid; width: 24px; margin-right: 11px; place-items: center; opacity: .86; }
.premium-sidebar .nav-link-icon .ti { font-size: 20px; }
.premium-sidebar .nav-item.active .nav-link,
.premium-sidebar .nav-link:hover {
  border-color: rgb(88 152 255 / 20%);
  background: rgb(50 109 245 / 17%);
  color: #fff;
}
.premium-sidebar .nav-item.active .nav-link { box-shadow: inset 3px 0 #326df5, 0 8px 22px rgb(33 78 234 / 9%); }
.sidebar-footer { margin-top: auto; padding: 22px 8px 8px; }

.premium-topbar {
  min-height: 64px;
  background: rgb(255 255 255 / 88%);
  border-bottom: 1px solid rgb(226 232 240 / 82%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 70%);
  backdrop-filter: blur(16px);
}
.premium-content-shell,
.premium-content {
  width: 100%;
  max-width: none !important;
  padding-right: clamp(20px, 2.7vw, 48px);
  padding-left: clamp(20px, 2.7vw, 48px);
}
.premium-content-shell { min-height: 64px; }
.premium-content-shell .page-pretitle { margin: 0; letter-spacing: .08em; }
.page-body { padding: 30px 0 44px; }
.premium-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--cvh-page-gap);
}
.premium-content > * { min-width: 0; margin-top: 0 !important; margin-bottom: 0 !important; }

h1, h2, h3 { color: var(--cvh-ink); letter-spacing: -.025em; }
h1 { font-size: clamp(26px, 2vw, 32px); line-height: 1.2; }
h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
p { line-height: 1.65; }
a { text-underline-offset: 3px; }
.muted { color: var(--cvh-muted); }

.top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}
.top > div:first-child { min-width: 0; }
.top h1, .top h2 { margin: 0; }
.top h1 + p, .top h2 + p { max-width: 880px; margin: 7px 0 0; }
.top > :last-child { flex: 0 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  min-width: 0;
  border: 1px solid var(--cvh-border);
  border-radius: var(--cvh-radius);
  background: var(--cvh-surface);
  box-shadow: 0 1px 2px rgb(15 23 42 / 2%), 0 12px 34px rgb(15 23 42 / 4%);
}
.grid > .card { min-height: 142px; }
.metric {
  margin-top: 10px;
  color: #171d2b;
  font-size: clamp(30px, 2.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.button, button {
  display: inline-flex;
  min-height: var(--cvh-control-height);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(115deg, #326df5 0%, #214eea 58%, #7c3aed 125%);
  box-shadow: 0 7px 18px rgb(33 78 234 / 18%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.button:hover, button:hover { transform: translateY(-1px); box-shadow: 0 10px 23px rgb(33 78 234 / 25%); color: #fff; }
.button.secondary, button.secondary {
  border-color: var(--cvh-border-strong);
  background: #fff;
  box-shadow: 0 2px 7px rgb(15 23 42 / 4%);
  color: var(--cvh-ink-soft);
}
.button.secondary:hover, button.secondary:hover { border-color: #8ebeff; color: var(--cvh-indigo-dark); }
.button.danger, button.danger { background: #dc3545; box-shadow: 0 7px 18px rgb(220 53 69 / 16%); }

.auth { max-width: 440px; margin: auto; }
.auth form > button[type="submit"] { width: 100%; }
.auth .card > p { margin-top: 20px; margin-bottom: 0; }
.auth .brand { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; color: var(--cvh-ink); font-size: 28px; font-weight: 800; text-align: center; }
.auth .brand img { display: block; width: min(230px, 72vw); height: auto; }
.auth-brand-context { padding: 4px 8px; border: 1px solid #bcd7ff; border-radius: 8px; background: #eef5ff; color: #214eea; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.premium-auth-bg { background: radial-gradient(circle at 15% 20%, #d9e8ff 0, transparent 28%), radial-gradient(circle at 85% 75%, #f0e9ff 0, transparent 26%), #f8fafc; }

.code {
  display: inline-block;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f3f6fa;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .875em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #d9e8ff;
  border-radius: 999px;
  background: #eef5ff;
  color: #214eea;
  font-size: 12px;
  font-weight: 700;
}
.field-help { display: block; margin: -6px 0 16px; color: var(--cvh-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.interval-input { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(130px, 1fr); gap: 10px; }
.interval-input input, .interval-input select { margin-bottom: 10px; }

.catalog-section { margin: 0; }
.catalog-section { scroll-margin-top: 24px; padding-top: 26px; }
.catalog-section + .catalog-section { margin-top: 18px; border-top: 1px solid var(--cvh-border); }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.catalog-heading h2 { margin: 0 0 5px; }
.catalog-heading p { max-width: 760px; margin: 0; color: var(--cvh-muted); line-height: 1.55; }
.product-domain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 8px; }
.product-domain-card { display: grid; min-height: 154px; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--cvh-border); border-radius: 15px; background: #fff; color: var(--cvh-ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.product-domain-card:hover { transform: translateY(-2px); border-color: #8ebeff; box-shadow: 0 15px 32px rgb(33 78 234 / 11%); }
.product-domain-card > span:last-child { min-width: 0; }
.product-domain-card strong, .product-domain-card small, .product-domain-card em { display: block; }
.product-domain-card strong { margin: 2px 0 7px; font-size: 15px; }
.product-domain-card small { min-height: 54px; color: var(--cvh-muted); font-size: 12px; line-height: 1.5; }
.product-domain-card em { margin-top: 10px; color: var(--cvh-indigo); font-size: 11px; font-style: normal; font-weight: 750; }
.product-domain-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #eef5ff, #d9e8ff); color: var(--cvh-indigo-dark); }
.product-domain-icon .ti { font-size: 23px; }
.product-domain-card-muted { background: #f8fafc; }
.product-domain-card-muted:hover { transform: none; border-color: var(--cvh-border); box-shadow: none; cursor: default; }
.product-domain-card-muted .product-domain-icon { background: #eef2f6; color: #64748b; }
.product-domain-card-muted em { color: #64748b; }
.product-domain-card-free { border-color: #a7f3d0; background: linear-gradient(145deg, #fff, #ecfdf5); }
.product-domain-card-free .product-domain-icon { background: #d1fae5; color: #047857; }
.product-domain-card-free em { color: #047857; }
.catalog-admin-group { scroll-margin-top: 24px; margin-top: 20px; padding-top: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-card {
  display: grid;
  min-height: 94px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--cvh-border);
  border-radius: 15px;
  background: #fff;
  color: var(--cvh-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: #8ebeff; box-shadow: 0 16px 35px rgb(33 78 234 / 11%); }
.product-card p { margin: 5px 0 0; color: var(--cvh-muted); font-size: 13px; line-height: 1.5; }
.product-card-meta { display: flex; min-width: 112px; align-items: flex-end; flex-direction: column; gap: 10px; }
.product-capabilities { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.product-capability { display: inline-flex; min-height: 21px; align-items: center; padding: 3px 8px; border: 1px solid #dbe3f0; border-radius: 999px; background: #f8fafc; color: #64748b; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .04em; }
.product-capability-appointment { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.product-capability-recurring { border-color: #ddd6fe; background: #f5f3ff; color: #6d28d9; }
.product-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #eef5ff, #d9e8ff); color: var(--cvh-indigo); font-weight: 900; }
.product-icon .ti { font-size: 24px; }
.price { color: var(--cvh-indigo); font-weight: 750; line-height: 1.2; white-space: nowrap; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--cvh-indigo); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.price-panel { min-width: 218px; padding: 19px 22px; border-radius: 15px; background: linear-gradient(115deg, #214eea, #326df5 62%, #7c3aed 135%); box-shadow: 0 14px 30px rgb(33 78 234 / 19%); color: #fff; text-align: right; }
.price-panel strong, .price-panel span { display: block; }
.price-panel span { margin-top: 5px; opacity: .76; }

.quick-start > .top { margin-bottom: 20px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-start .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-action {
  display: grid;
  min-width: 0;
  min-height: 108px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--cvh-border);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fafbff);
  color: var(--cvh-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.quick-action:hover { transform: translateY(-2px); border-color: #8ebeff; box-shadow: 0 13px 28px rgb(33 78 234 / 12%); color: var(--cvh-ink); }
.quick-action-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #eef5ff, #d9e8ff); color: var(--cvh-indigo-dark); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.quick-action-icon .ti { font-size: 22px; }
.quick-action-arrow .ti { font-size: 18px; }
.quick-action:nth-child(2) .quick-action-icon { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #0e7490; }
.quick-action:nth-child(3) .quick-action-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #047857; }
.quick-action:nth-child(4) .quick-action-icon { background: linear-gradient(135deg, #faf5ff, #ede9fe); color: #6d28d9; }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { margin-bottom: 5px; font-size: 14px; }
.quick-action small { color: var(--cvh-muted); font-size: 12px; line-height: 1.45; }
.quick-action-arrow { color: #94a3b8; font-size: 18px; transition: transform .18s ease, color .18s ease; }
.quick-action:hover .quick-action-arrow { transform: translateX(3px); color: var(--cvh-indigo); }

.run-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 34px; }
.run-panel > div { min-width: 0; }
.run-panel aside { height: max-content; padding: 22px; border: 1px solid #e9edf5; border-radius: 13px; background: #f7f8fb; }
.run-panel ol { margin: 0 0 18px; padding-left: 20px; }
.run-panel li { margin-bottom: 11px; color: var(--cvh-muted); line-height: 1.55; }

.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.analysis-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.analysis-grid article { padding: 15px; border: 1px solid #edf0f5; border-radius: 11px; background: #f7f8fb; }
.analysis-grid article span, .analysis-grid article b { display: block; }
.analysis-grid article b { margin-top: 5px; font-size: 24px; }
.analysis-state { margin: 18px 0; padding: 20px; border-radius: 12px; }
.analysis-state.good { background: #def7e9; color: #176b47; }
.analysis-state.bad { background: #ffe6e9; color: #8e2434; }
.analysis-state.queued { background: #fff1cd; color: #72530b; }
.key-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.key-values > div { min-width: 0; padding: 15px; border: 1px solid var(--cvh-border); border-radius: 11px; background: #fff; }
.key-values span, .key-values b { display: block; }
.key-values span { margin-bottom: 6px; color: var(--cvh-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.key-values b { overflow-wrap: anywhere; }

.raw-json summary, .result-card details summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
.raw-json pre, .doc-body pre, .result-card pre { max-width: 100%; padding: 18px; border-radius: 12px; background: #101827; color: #dbeafe; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc-endpoint { margin: 0 0 12px; border: 1px solid var(--cvh-border); border-radius: 14px; background: #fff; overflow: hidden; }
.doc-endpoint > summary { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; list-style: none; cursor: pointer; }
.doc-endpoint > summary span:first-child b, .doc-endpoint > summary small { display: block; }
.doc-endpoint > summary small { margin-top: 5px; color: var(--cvh-muted); }
.doc-price { color: var(--cvh-indigo); font-weight: 750; white-space: nowrap; }
.doc-body { padding: 22px; border-top: 1px solid var(--cvh-border); }
.docs-intro > h3, .doc-body > h3 { margin: 32px 0 12px; }
.docs-intro > h3:first-of-type { margin-top: 26px; }
.docs-intro > p, .doc-body > p, .async-guide > p { margin: 0 0 18px; line-height: 1.7; }
.docs-layout { display: grid; grid-template-columns: minmax(190px, 220px) minmax(0, 1fr); gap: 24px; align-items: start; }
.docs-navigation { position: sticky; top: 20px; padding: 15px; border: 1px solid var(--cvh-border); border-radius: 14px; background: #fff; }
.docs-navigation strong { display: block; margin: 0 0 10px; color: var(--cvh-ink); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.docs-navigation nav { display: grid; gap: 3px; max-height: calc(100vh - 110px); overflow: auto; overscroll-behavior: contain; }
.docs-nav-link { padding: 8px 10px; border-radius: 8px; color: var(--cvh-muted); font-size: .88rem; line-height: 1.35; text-decoration: none; }
.docs-nav-link:hover, .docs-nav-link:focus-visible, .docs-nav-link.active { background: #eef2ff; color: var(--cvh-indigo); outline: none; }
.docs-main { min-width: 0; }
.docs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 28px; }
.docs-steps .quick-action { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; gap: 12px; }
.grid.usage-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.dashboard-summary-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.usage-summary-grid > .card { min-height: 124px; }
.usage-report-card, .usage-table-card { overflow: hidden; }
.usage-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.usage-section-heading > div { display: flex; align-items: center; gap: 11px; }
.usage-section-heading h2 { margin: 0; }
.usage-section-icon { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #eaf0ff; color: #3155ee; font-size: 19px; }
.usage-granularity { padding: 6px 10px; border: 1px solid #dbe5ff; border-radius: 999px; background: #f3f6ff; color: #4b5e91; font-size: 12px; font-weight: 700; white-space: nowrap; }
.usage-filters { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)) auto; gap: 12px; align-items: end; margin: 0 0 20px; padding: 17px; border: 1px solid #e6ebf5; border-radius: 14px; background: #f8faff; }
.usage-filters label { display: grid; min-width: 0; gap: 7px; color: var(--cvh-ink-soft); font-size: .8rem; font-weight: 700; }
.usage-filters label > select, .usage-filters label > .ts-wrapper { width: 100%; max-width: none; min-width: 0; height: var(--cvh-control-height); margin: 0; }
.usage-filters .ts-wrapper.single .ts-control { background: #fff; }
.usage-filters button { height: var(--cvh-control-height); min-height: var(--cvh-control-height); margin: 0; padding: 8px 16px; align-self: end; }
.usage-chart { min-width: 0; border: 1px solid #e4eafb; border-radius: 16px; background: linear-gradient(180deg, #fff 0%, #f8faff 100%); padding: 12px 14px; }
.usage-chart-canvas { width: 100%; height: 308px; }
.usage-chart noscript p { margin: 12px; color: var(--cvh-muted); }
.usage-product { display: inline-flex; align-items: center; gap: 10px; color: var(--cvh-ink); font-weight: 650; }
.usage-product-icon { display: inline-grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #edf2ff; color: #3155ee; font-size: 17px; }
.usage-table-card table { min-width: 640px; }
.usage-table-card > .pagination-bar, .usage-table-card > .pagination-meta { margin: 0 -24px -24px; }
.usage-table-card th { color: #526079; font-size: .78rem; font-weight: 750; }
.usage-table-card tbody tr:hover td, .usage-table-card table tr:hover td { background: #f8faff; }
.usage-view-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; color: #2758e7; font-weight: 700; text-decoration: none; white-space: nowrap; }
.usage-view-link:hover, .usage-view-link:focus-visible { background: #edf2ff; color: #2144c5; }
.usage-demo-label { display: inline-block; margin-left: 5px; padding: 3px 7px; border-radius: 6px; background: #fff2d7; color: #8a5900; font-size: 11px; font-weight: 750; vertical-align: middle; }
.usage-detail-dialog { position: fixed; inset: 50% auto auto 50%; margin: 0; transform: translate(-50%, -50%); box-sizing: border-box; width: min(880px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 1px solid #dce5f5; border-radius: 18px; box-shadow: 0 30px 90px rgb(13 23 48 / 30%); color: var(--cvh-ink); }
.usage-detail-dialog::backdrop { background: rgb(10 16 32 / 48%); backdrop-filter: blur(4px); }
.usage-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid #e7ecf4; background: linear-gradient(105deg, #f6f9ff, #fff 72%); }
.usage-dialog-header h2 { margin: 4px 0 0; }
.usage-dialog-eyebrow { color: #3155ee; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.usage-dialog-close { width: 36px; min-height: 36px; padding: 0; border-radius: 9px; box-shadow: none; font-size: 20px; }
.usage-dialog-body { max-height: calc(100vh - 165px); overflow: auto; padding: 22px 24px 26px; }
.usage-detail-table { overflow-x: auto; }
.usage-detail-table table { min-width: 620px; margin: 0; }
@media (max-width: 1060px) { .usage-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .usage-filters button { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 639.98px) { .usage-table-card > .pagination-bar, .usage-table-card > .pagination-meta { margin: 0 -20px -20px; } }
@media (max-width: 620px) {
  .usage-chart { padding: 7px 5px; }
  .usage-chart-canvas { height: 246px; }
  .usage-filters { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
  .usage-filters button { width: 100%; }
  .usage-dialog-header { padding: 18px; }
  .usage-dialog-body { padding: 16px; }
  .usage-detail-table table, .usage-detail-table tbody { display: block; min-width: 0; width: 100%; }
  .usage-detail-table tr:first-child { display: none; }
  .usage-detail-table tr:not(:first-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin-bottom: 12px; padding: 13px; border: 1px solid #e4eafa; border-radius: 12px; background: #fbfcff; }
  .usage-detail-table td { display: grid; gap: 2px; min-width: 0; padding: 3px 0; border: 0; font-size: 13px; }
  .usage-detail-table td:first-child { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid #e9edf7; }
  .usage-detail-table td::before { content: attr(data-label); color: #64748b; font-size: 11px; font-weight: 650; }
  .usage-detail-table td:first-child::before { content: none; }
}
.docs-balance-action { color: inherit; text-decoration: none; }
.docs-balance-action:hover, .docs-balance-action:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.docs-main > .docs-group { margin-top: 24px; }
.docs-balance-section .doc-endpoint { margin-bottom: 0; }
.doc-endpoint-direct { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.doc-endpoint-direct .doc-body { border-top: 0; padding: 22px 0 0; }
.docs-categories { margin-top: 22px; }
.docs-categories .badge { text-decoration: none; }
.docs-group { scroll-margin-top: 24px; }
.docs-group-description { margin: -3px 0 16px; }
.async-guide { margin: 28px 0; padding: 22px; border: 1px solid #c7d2fe; border-radius: 14px; background: #f7f7ff; }
.async-guide > h3 { margin-top: 0; }
.async-guide > h4, .doc-body > h4, .docs-intro > h4 { margin: 26px 0 12px; }
.async-guide .endpoint-line { background: #fff; }
.card.docs-intro > .table-wrap, .doc-body .table-wrap { width: 100%; margin: 12px 0 26px; border: 1px solid #d9e0ea; border-radius: 12px; overflow: auto; }
.card.docs-intro > .table-wrap table, .doc-body .table-wrap table { margin: 0; border: 0; border-collapse: separate; border-spacing: 0; }
.card.docs-intro > .table-wrap th, .card.docs-intro > .table-wrap td, .doc-body .table-wrap th, .doc-body .table-wrap td { padding: 14px 18px; border-bottom: 1px solid #e3e8f0; vertical-align: middle; }
.card.docs-intro > .table-wrap th, .doc-body .table-wrap th { background: #f7f9fc; }
.card.docs-intro > .table-wrap tr:last-child td, .doc-body .table-wrap tr:last-child td { border-bottom: 0; }
.docs-intro pre, .doc-body pre { margin: 12px 0 26px; line-height: 1.6; }
.endpoint-line { display: flex; gap: 10px; margin: 12px 0 16px; padding: 13px; border-radius: 9px; background: #101827; color: #eaf1ff; min-width: 0; overflow-wrap: anywhere; }
.endpoint-line code { min-width: 0; white-space: normal; }
.endpoint-line span { color: #68e29b; font-weight: 800; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .docs-navigation { position: static; } .docs-navigation nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; } .docs-nav-link { flex: 0 0 auto; white-space: nowrap; } }
@media (max-width: 620px) { .docs-steps { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .docs-navigation { position: sticky; top: 8px; z-index: 5; min-width: 0; max-width: 100%; box-shadow: 0 4px 18px rgb(15 23 42 / 8%); }
  .docs-group, #docs-start { scroll-margin-top: 130px; }
}
:where(a, button, summary):focus-visible { outline: 3px solid #8ebeff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.status { display: inline-flex; min-height: 27px; align-items: center; padding: 5px 9px; border-radius: 999px; background: #e8edf5; font-size: 12px; font-weight: 750; }
.status.completed { background: #def7e9; color: #176b47; }
.status.failed { background: #ffe6e9; color: #8e2434; }
.status.processing, .status.queued { background: #fff1cd; color: #72530b; }
.nav-section-title { margin: 18px 14px 7px; color: rgb(203 213 225 / 65%); font-size: 10px; font-weight: 800; letter-spacing: .12em; list-style: none; text-transform: uppercase; }
.nav-item-child .nav-link { padding-left: 18px; }
.nav-item-child .nav-link-icon { opacity: .78; transform: scale(.88); }
.console-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 6px; border: 1px solid var(--cvh-border); border-radius: 13px; background: #f7f8fb; }
.console-tabs a { padding: 9px 15px; border-radius: 9px; color: var(--cvh-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.console-tabs a.active { background: #fff; box-shadow: 0 3px 12px rgb(15 23 42 / 8%); color: var(--cvh-indigo); }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--cvh-border); color: var(--cvh-muted); font-size: 12px; }
.pagination-bar > div { display: flex; gap: 5px; }
.page-link { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 10px; border: 1px solid var(--cvh-border); border-radius: 8px; background: #fff; color: var(--cvh-ink); text-decoration: none; }
.page-link.active { border-color: var(--cvh-indigo); background: var(--cvh-indigo); color: #fff; }
.page-link.disabled { opacity: .4; pointer-events: none; }
.pagination-meta { padding: 14px 20px; border-top: 1px solid var(--cvh-border); color: var(--cvh-muted); font-size: 12px; }
.admin-filter-bar, .filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.admin-filter-bar label, .filter-bar label { display: grid; gap: 7px; margin: 0; min-width: 150px; }
.admin-filter-bar input, .filter-bar input, .filter-bar select { margin: 0; }
.admin-report-table table { min-width: 760px; }
.admin-overview-tables table { min-width: 0; width: 100%; }
.admin-overview-tables th, .admin-overview-tables td { white-space: normal; }
@media (max-width: 1199.98px) {
  .settings-grid.admin-overview-tables { grid-template-columns: 1fr; }
}
.admin-users-table table { min-width: 980px; }
.admin-users-table td:nth-child(1) { min-width: 230px; }
.admin-users-table td:nth-child(2), .admin-users-table td:nth-child(4) { white-space: nowrap; }
.admin-users-table td:last-child { min-width: 380px; }
.task-edit-dialog.admin-adjust-dialog { width: min(560px, calc(100vw - 32px)); }
.admin-adjust-dialog .task-edit-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--cvh-border); background: #f8faff; }
.admin-adjust-dialog h2 { margin: 0; }
.admin-adjust-dialog .task-edit-dialog-body { padding: 24px; }
.admin-adjust-dialog .task-edit-dialog-close { width: 36px; min-height: 36px; padding: 0; }
.catalog-admin-group form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.catalog-admin-group form label { width: auto; margin: 0; }
.catalog-admin-group form input[type="number"] { width: 110px; margin-bottom: 0; }
@media (max-width: 639.98px) {
  .admin-filter-bar label, .filter-bar label { flex: 1 1 140px; min-width: 0; }
}
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 10px; padding: 15px 16px; border: 1px solid var(--cvh-border); border-radius: 11px; background: #fff; text-decoration: none; }
.download-row:hover { border-color: #8ebeff; background: #f7faff; }
.download-row b, .download-row small { display: block; }
.download-row small { margin-top: 4px; color: var(--cvh-muted); }
.download-row.expired { color: var(--cvh-muted); background: #f8fafc; cursor: not-allowed; }
.download-row.expired:hover { border-color: var(--cvh-border); background: #f8fafc; }
.download-row .file-expiry { color: #a24b00; }
.task-name { color: var(--cvh-ink); text-decoration: none; }
.task-name:hover { color: var(--cvh-indigo); }
.job-progress { margin: 18px 0; }
.job-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; color: var(--cvh-muted); font-size: 12px; font-weight: 700; }
.job-progress-label strong { color: var(--cvh-ink); font-size: 13px; }
.job-progress-track { height: 8px; border-radius: 999px; background: #e9edf5; overflow: hidden; }
.job-progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cvh-indigo), var(--cvh-violet)); transition: width .35s ease; }
.job-monitor { display: flex; align-items: center; gap: 9px; margin: 14px 0 18px; padding: 11px 13px; border: 1px solid #d9e8ff; border-radius: 10px; background: #f5f9ff; color: #214eea; font-size: 12px; font-weight: 650; }
.job-monitor-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #326df5; box-shadow: 0 0 0 0 rgb(50 109 245 / 35%); animation: cvh-job-pulse 1.8s infinite; }
@keyframes cvh-job-pulse { 70% { box-shadow: 0 0 0 7px rgb(50 109 245 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(50 109 245 / 0%); } }
.qr-result { text-align: center; }
.qr-result img { max-width: 280px; padding: 10px; border: 1px solid var(--cvh-border); border-radius: 12px; }

@media (min-width: 992px) {
  .navbar-vertical.premium-sidebar { width: var(--cvh-sidebar-width); }
  .navbar-vertical.premium-sidebar ~ .page-wrapper { margin-left: var(--cvh-sidebar-width); }
  .navbar-vertical.navbar-expand-lg .navbar-brand { padding: 1.5rem 0 0; justify-content: center; }
}

@media (max-width: 1399.98px) {
  .grid.dashboard-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) {
  .quick-start .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .navbar-vertical.premium-sidebar { width: 100%; }
  .premium-sidebar > .container-fluid { padding: 10px 16px; }
  .premium-sidebar .navbar-brand { min-height: 52px; margin: 0; padding: 0; }
  .premium-sidebar .navbar-collapse { min-height: auto; }
  .sidebar-footer { padding: 16px 8px 4px; }
}

@media (max-width: 991.98px) {
  :root { --cvh-page-gap: 20px; }
  .page-body { padding-top: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.usage-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .run-panel, .key-values { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-panel { min-width: 190px; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639.98px) {
  .premium-content-shell, .premium-content { padding-right: 16px; padding-left: 16px; }
  .grid { grid-template-columns: 1fr; }
  .grid.usage-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid.dashboard-summary-grid { grid-template-columns: 1fr; }
  .usage-summary-grid > .card { min-height: 112px; }
  .usage-summary-grid .metric { font-size: clamp(24px, 7vw, 32px); }
  .top { align-items: flex-start; flex-direction: column; gap: 14px; }
  .top > :last-child { max-width: 100%; }
  .price-panel { width: 100%; text-align: left; }
  .product-card { grid-template-columns: 46px minmax(0, 1fr); }
  .product-card .product-card-meta { grid-column: 2; min-width: 0; align-items: flex-start; }
  .product-card .product-capabilities { justify-content: flex-start; }
  .product-domain-grid { grid-template-columns: 1fr; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-row { align-items: flex-start; flex-direction: column; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-start .quick-actions { grid-template-columns: 1fr; }
}
