/* Shared type scale, loaded after the captured and local component styles. */
#root .p-console.p-customer {
  --type-page: 26px;
  --type-section: 20px;
  --type-card: 18px;
  --type-body: 14px;
  --type-small: 12px;
  --type-number: 30px;
  font-size: var(--type-body);
  line-height: 1.5;
}
#root .p-console.p-customer main :is(p, li, label, input, select, textarea, td, button) { font-size: var(--type-body) !important; line-height: 1.5; }
#root .p-console.p-customer main :is(small, th) { font-size: var(--type-small) !important; line-height: 1.5; }
#root .p-console.p-customer main :is(pre, code, pre span, code span) { font-size: 13px !important; line-height: 1.75; }
#root .p-console.p-customer main h1 { font-size: var(--type-page) !important; line-height: 1.3 !important; font-weight: 600 !important; letter-spacing: -.6px; }
#root .p-console.p-customer main h2 { font-size: var(--type-card) !important; line-height: 1.4; }
#root .p-console.p-customer main h3 { font-size: 16px !important; line-height: 1.4; }
#root .p-console.p-customer main h4 { font-size: var(--type-body) !important; line-height: 1.5; }
#root .p-console.p-customer .shell-sidebar .shell-nav-entry > button { font-size: var(--type-body) !important; line-height: 22px !important; min-height: 38px !important; }
#root .p-console.p-customer .shell-sidebar .shell-nav-entry > button > svg { width: 18px !important; height: 18px !important; }
#root .p-console.p-customer .shell-sidebar .shell-nav-section { font-size: var(--type-small) !important; line-height: 18px !important; }
#root .p-console.p-customer .shell-sidebar.is-collapsed .shell-nav-entry > button { font-size: 0 !important; line-height: 0 !important; }
#root .p-console.p-customer .shell-sidebar.is-collapsed .shell-nav-section { font-size: 0 !important; line-height: 0 !important; }
#root .p-console.p-customer :is(.shell-topbar, .shell-header, .p-console-topbar) :is(button, span, strong) { font-size: var(--type-body) !important; }

/* Homepage: readable descriptions, quiet metadata and clear model prices. */
#root .p-console.p-customer main .studio-dashboard h1 { font-size: var(--type-page) !important; line-height: 1.3 !important; }
#root .p-console.p-customer main .st-section-heading h2 { font-size: var(--type-section) !important; }
#root .p-console.p-customer main :is(.hm-explore-heading, .hm-welcome) h2 { font-size: var(--type-card) !important; }
#root .p-console.p-customer main :is(.hm-explore-heading p, .hm-welcome-copy p, .hm-welcome-step) { font-size: var(--type-body) !important; line-height: 1.65; }
#root .p-console.p-customer main .hm-explore-heading p { max-width: 360px; }
#root .p-console.p-customer main .hm-model-row strong { font-size: var(--type-body) !important; line-height: 1.5; }
#root .p-console.p-customer main .hm-model-row small { font-size: var(--type-small) !important; line-height: 1.5; }
#root .p-console.p-customer main .hm-model-row { min-height: 48px; }
#root .p-console.p-customer main :is(.hm-view-all, .st-text-button) { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .hm-example-caption > strong { font-size: 16px !important; }
#root .p-console.p-customer main :is(.hm-example-caption > span, .hm-example-badge) { font-size: var(--type-small) !important; }
#root .p-console.p-customer main :is(.hm-welcome-button, .st-card-action, .st-button) { font-size: var(--type-body) !important; line-height: 20px; min-height: 34px; padding: 6px 10px; }
#root .p-console.p-customer main .hm-welcome-step { min-height: 43px; }
#root .p-console.p-customer main .hm-welcome { padding-bottom: 18px; }
#root .p-console.p-customer main .st-summary-row > article > span { font-size: var(--type-body) !important; line-height: 1.5; }
#root .p-console.p-customer main .st-summary-row strong { font-size: var(--type-number) !important; line-height: 1.25; }
#root .p-console.p-customer main .st-summary-row .st-button { min-height: 32px; font-size: var(--type-small) !important; padding: 5px 9px; }
#root .p-console.p-customer main .st-feature-name { font-size: var(--type-card) !important; line-height: 1.35; }
#root .p-console.p-customer main .hm-capabilities > span { font-size: var(--type-small) !important; line-height: 1.7; }
#root .p-console.p-customer main .hm-card-category { font-size: var(--type-small) !important; line-height: 1.6; }
#root .p-console.p-customer main .hm-card-price > strong { font-size: var(--type-card) !important; }
#root .p-console.p-customer main .hm-card-price > span { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .hm-card-price > .hm-price-planned { font-size: var(--type-body) !important; }

/* Catalog and details. */
#root .p-console.p-customer main .customer-models .cm-body h2 { font-size: var(--type-card) !important; }
#root .p-console.p-customer main .customer-models .cm-description { font-size: var(--type-body) !important; line-height: 1.65; min-height: 46px; }
#root .p-console.p-customer main .customer-models :is(.cm-capabilities, .cm-state, .cm-price span) { font-size: var(--type-small) !important; line-height: 1.5; }
#root .p-console.p-customer main .customer-models .cm-price strong { font-size: 16px !important; }
#root .p-console.p-customer main .customer-models .cm-connect { font-size: var(--type-body) !important; min-height: 34px !important; line-height: 20px !important; padding: 6px 11px !important; }

/* Settings, API keys, dialogs and shared actions. */
#root .p-console.p-customer main :is(.pa-page-heading p, .pa-card-heading p, .pa-section-subtitle, .pa-credit-callout p, .pa-table-hint, .pa-field-help, .pa-field) { font-size: var(--type-body) !important; line-height: 1.65; }
#root .p-console.p-customer main .pa-credit-callout strong { font-size: 16px !important; }
#root .p-console.p-customer main :is(.pa-permission-banner, .pa-key-toolbar > span, .pa-muted, .pa-ip-note, .pa-badge, .pa-account-active, .pa-member-count, .pa-card-footnote) { font-size: var(--type-small) !important; line-height: 1.5; }
#root .p-console.p-customer main .pa-card-footnote > div { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .pa-profile-field > span { font-size: var(--type-small) !important; line-height: 1.5; }
#root .p-console.p-customer main .pa-profile-field > div { font-size: var(--type-body) !important; line-height: 1.65; }
#root .p-console.p-customer main :is(.pa-account-title > strong, .pa-member-user strong) { font-size: 16px !important; }
#root .p-console.p-customer main :is(.pa-account-title > small, .pa-member-user small, .pa-creator) { font-size: var(--type-body) !important; line-height: 1.6; }
#root .p-console.p-customer main .pa-account-row { min-height: 88px; grid-template-columns: 39px minmax(100px,1fr) auto 100px 76px 25px; }
#root .p-console.p-customer main .pa-button { font-size: var(--type-body) !important; line-height: 20px; min-height: 34px; padding: 6px 10px; }
#root .p-console.p-customer main .pa-action { font-size: var(--type-small) !important; min-height: 29px; padding: 4px 6px; }
#root .p-console.p-customer main .pa-key-table { min-width: 1220px; }
#root .p-console.p-customer main .pa-key-table td { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .pa-key-table th { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .pa-modal h2 { font-size: 22px !important; }
#root .p-console.p-customer main .pa-modal-header p { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .pa-modal-close { font-size: 24px !important; }
#root .p-console.p-customer main .pa-field :is(input, select) { min-height: 40px; }
#root .p-console.p-customer main .pa-error { font-size: var(--type-small) !important; }
#root .p-console.p-customer main :is(.pa-members-head,.pa-members-head > span) { font-size: var(--type-small) !important; }

/* API tabs, the nested guide and request logs. */
#root .p-console.p-customer main :is(.pv-api-heading p, .pv-api-step-nav > button, .pv-api-tabs > button, .qs4-body) { font-size: var(--type-body) !important; line-height: 1.6; }
#root .p-console.p-customer main .pv-api-step-nav > button { min-height: 38px; padding: 8px 10px; }
#root .p-console.p-customer main .pv-api-step-label { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .pv-api-content .qs4-step h2 { font-size: var(--type-card) !important; }
#root .p-console.p-customer main :is(.qs4-note, .qs4-parameter-note, .qs4-callback-url small, .qs4-code-heading, .qs4-base > span) { font-size: var(--type-small) !important; line-height: 1.65; }
#root .p-console.p-customer main .qs4-controls :is(select, input) { font-size: var(--type-body) !important; min-height: 38px; height: 38px; }
#root .p-console.p-customer main .qs4-controls { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
#root .p-console.p-customer main .qs4-language > button { font-size: var(--type-body) !important; min-height: 32px; }
#root .p-console.p-customer main .pv-api-logs .page-heading p { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .tasks-toolbar :is(input,select) { font-size: var(--type-body) !important; min-height: 38px; }
#root .p-console.p-customer main .tasks-table :is(td,strong,.task-summary) { font-size: var(--type-body) !important; }
#root .p-console.p-customer main :is(.status,.status-pill,.status-badge) { font-size: var(--type-small) !important; line-height: 1.5; }

/* Analytics: metric labels, chart axes and tables retain a clear hierarchy. */
#root .p-console.p-customer main :is(.pv-analytics-heading p, .pv-analytics-card > span, .av-panel-heading p) { font-size: var(--type-body) !important; line-height: 1.6; }
#root .p-console.p-customer main .pv-analytics-card > strong { font-size: var(--type-number) !important; line-height: 1.25; }
#root .p-console.p-customer main :is(.av-demo-badge,.av-timezone,.av-select,.av-total > small,.av-total > span,.av-chart-footer,.av-percentile-note,.av-latency-meta,.av-type-head,.av-type-row > span,.av-donut-label) { font-size: var(--type-small) !important; line-height: 1.6; }
#root .p-console.p-customer main .av-total > strong { font-size: var(--type-number) !important; }
#root .p-console.p-customer main .av-axis-text { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .av-donut-value { font-size: var(--type-number) !important; }
#root .p-console.p-customer main .av-type-row > div > span { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .av-type-row > strong { font-size: 16px !important; }
#root .p-console.p-customer main .av-period > button { min-height: 34px; height: 34px; }
#root .p-console.p-customer main .av-select select { height: 36px; min-width: 112px; }
#root .p-console.p-customer main .av-latency-table :is(td,td > strong) { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .av-latency-table :is(th,td small) { font-size: var(--type-small) !important; }

/* Native billing pages use the same scale as the local presentation components. */
#root .p-console.p-customer main .customer-integrated-billing { font-size: var(--type-body); }
#root .p-console.p-customer main .customer-integrated-billing :is(span,a) { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .customer-integrated-billing :is(.ib-bar-amount,.ib-section-heading > span,.ib-overview-account-kind > span,.ib-timezone,small) { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .ib-overview-balance-line > strong { font-size: 32px !important; }
#root .p-console.p-customer main .ib-bill-summary > strong { font-size: 22px !important; }

/* Playground keeps its editor scroll and pinned action while increasing legibility. */
#root .p-console.p-customer main .pg-page .field > :is(label,span) { font-size: var(--type-body) !important; line-height: 1.5; }
#root .p-console.p-customer main .pg-page .field :is(input,select,textarea) { font-size: var(--type-body) !important; line-height: 1.7; }
#root .p-console.p-customer main .pg-input::before { font-size: var(--type-body) !important; }
#root .p-console.p-customer main :is(.pg-model-info,.pg-model-info summary,.pg-model-info dl,.text-count,.pg-prompt-examples,.image-input-heading > strong > span,.upload-area small,.pg-task-reference,.pg-task-reference code) { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .pg-prompt-examples > button { font-size: var(--type-small) !important; min-height: 27px; }
#root .p-console.p-customer main .pg-page .generation-settings .segmented > button { font-size: var(--type-body) !important; min-height: 34px !important; padding: 6px 9px !important; line-height: 20px !important; }
#root .p-console.p-customer main .pg-page :is(.pg-mode-tabs button,.mini-tabs > button,.pg-result-tabs button,.pg-compress-option) { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .pg-page .pg-mode-tabs button { min-height: 34px; }
#root .p-console.p-customer main .pg-page .pg-result-tabs button { min-height: 28px; }
#root .p-console.p-customer main .pg-page .pg-result-label > strong { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .pg-page .pg-advanced summary { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .pg-page .generation-summary > span:last-child { font-size: var(--type-small) !important; line-height: 1.6; }
#root .p-console.p-customer main .pg-page .generation-settings > .button { font-size: var(--type-body) !important; min-height: 42px; }
#root .p-console.p-customer main .pg-page .pg-output-facts { font-size: var(--type-small) !important; }
#root .p-console.p-customer main .pg-page .pg-output-facts :is(strong,code) { font-size: var(--type-body) !important; }
#root .p-console.p-customer main .pg-output .pg-placeholder strong { font-size: var(--type-card) !important; }
#root .p-console.p-customer main .pg-generation-form { scroll-padding-bottom: 72px; }
#root .p-console.p-customer main .pg-page .field :is(input,select) { height: 40px; min-height: 40px; line-height: 20px !important; }
#root .p-console.p-customer main .pg-page .generation-settings .segmented { display: flex !important; grid-template-columns: none !important; flex-wrap: wrap !important; }
#root .p-console.p-customer main .pg-page .generation-settings .segmented > button { min-width: max-content !important; padding-left: 6px !important; padding-right: 6px !important; }
#root .p-console.p-customer main .pg-video-stage::after { font-size: var(--type-small) !important; }

/* Homepage density revision. Scope sizing changes to this page only. */
#root .p-console.p-customer main .studio-dashboard :is(.hm-explore-heading p,.hm-welcome-copy p,.hm-welcome-step) { font-size: 13px !important; line-height: 1.5; }
#root .p-console.p-customer main .studio-dashboard .hm-model-row { min-height: 38px; }
#root .p-console.p-customer main .studio-dashboard .hm-model-row small { font-size: 11px !important; line-height: 1.4; }
#root .p-console.p-customer main .studio-dashboard .hm-welcome-step { min-height: 32px; }
#root .p-console.p-customer main .studio-dashboard .hm-welcome { padding-bottom: 12px; }
#root .p-console.p-customer main .studio-dashboard :is(.hm-welcome-button,.st-card-action) { font-size: 12px !important; min-height: 29px; padding: 4px 8px; line-height: 19px; }
#root .p-console.p-customer main .studio-dashboard .st-summary-row > article > span { font-size: 13px !important; }
#root .p-console.p-customer main .studio-dashboard .st-summary-row strong { font-size: 26px !important; }
#root .p-console.p-customer main .studio-dashboard .st-summary-row .st-button { min-height: 28px; padding: 3px 8px; }
#root .p-console.p-customer main .studio-dashboard .st-feature-name { font-size: 17px !important; top: 15px; left: 14px; }
#root .p-console.p-customer main .studio-dashboard .hm-card-price > strong { font-size: 16px !important; }

@media (max-width:1100px) {
  #root .p-console.p-customer main .hm-hero-row { grid-template-columns: 1fr; }
  #root .p-console.p-customer main .hm-welcome { min-height: 275px; }
  #root .p-console.p-customer main .pa-account-row { grid-template-columns: 34px minmax(90px,1fr) auto 80px 70px 23px; gap: 9px; }
  #root .p-console.p-customer main .pa-account-meta .pa-badge:last-child { display: none; }
}
@media (max-width:850px) {
  #root .p-console.p-customer main .pa-account-row { grid-template-columns: 34px minmax(90px,1fr) 70px 23px; }
  #root .p-console.p-customer main .pa-account-meta,
  #root .p-console.p-customer main .pa-account-row > .pa-member-count,
  #root .p-console.p-customer main .pa-account-row > span:empty { display: none; }
}
