/* Cabinet type roles. Components share this scale; page size is the only responsive role.
 * Studio supplies colour and geometry. Shared me.css retains the cinema site's defaults. */
:root {
  --cab-type-page: 2rem;
  --cab-type-section: var(--cab-text-xl);
  --cab-type-subsection: var(--cab-text-lg);
  --cab-type-body: var(--cab-text-base);
  --cab-type-control: var(--cab-text-sm);
  --cab-type-caption: var(--cab-text-sm);
  --cab-type-footnote: var(--cab-text-compact);
  --cab-type-meta: var(--cab-text-xs);
  --cab-type-badge: var(--cab-text-xs);
  --cab-text-title: var(--cab-type-page);
  --cab-type-heading-weight: var(--studio-heading-weight);
  --cab-type-control-weight: var(--cab-weight-medium);
}
body { font-family: Onest, sans-serif; font-size: var(--cab-type-body); line-height: var(--cab-leading-body); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-weight: var(--cab-type-heading-weight); letter-spacing: var(--studio-title-tracking); line-height: var(--cab-leading-tight); }
h1, .page-heading h1, .connect-focus .page-heading h1, .sign-in > h1 { font-size: var(--cab-type-page); line-height: var(--cab-leading-tight); letter-spacing: var(--studio-heading-tracking); }
h2, .sheet-head h2, .bento-heading h2, .cabinet-cinema h2,
.onboarding-copy h2, .sign-in > h2 { font-size: var(--cab-type-section); }
h3, .group-head h2, .avatar-collection h3, .connection-success h2,
.account-identity h2, .empty > strong, .library-empty h3,
.premium-devices .group-head h2, .premium-devices-panel .group-head h2 { font-size: var(--cab-type-subsection); }

/* All actions and navigation keep their size on desktop and mobile. */
.btn, .cabinet-settings .btn, .text-link, .page-back,
.topbar .nav-link, .mobile-nav > .nav-link,
.topbar .header-actions .header-invite, .account-trigger,
.profile-create-avatars > summary, .import-shortcut, .install-shortcut,
.help-article-body .btn, .gate-header > .text-link,
.home-profile-line > .text-link, .cabinet-invite-actions .btn,
.premium-devices .premium-device-actions .btn, .premium-devices-panel .premium-device-actions .btn,
.premium-devices-panel .premium-devices-rules > summary {
  font-size: var(--cab-type-control); font-weight: var(--cab-type-control-weight); line-height: var(--cab-leading-control);
}
.field, .field input, .field select, .field textarea, .setting-input,
.cabinet-settings .setting-input, .cabinet-settings .hub-source-form .setting-input,
.cab-select-trigger, .cab-select-search input, .cab-select-option,
.row-copy > b, .premium-devices .row-copy > b, .premium-devices-panel .row-copy > b, .row-value, .device-copy > b, .bento-devices .device-copy > b,
.profile-info > b, .avatar-upload-button b, .profile-kind-option > span,
.pair-route, .cabinet-source-form > label, .bento-setup > p,
.cabinet-cinema p, .onboarding-copy p, .connection-success p,
.help-article > summary, .help-article-body, .help-empty p,
.help-disclosure p, .help-disclosure ol, #code-location {
  font-size: var(--cab-type-body);
}
.row-copy > b, .device-copy > b, .bento-devices .device-copy > b,
.profile-info > b, .avatar-upload-button b, .profile-kind-option > span,
.cabinet-source-form > label { font-weight: var(--cab-weight-medium); line-height: var(--cab-leading-control); }
.note, .status, .banner, .sheet-note, .page-heading p,
.device-copy > small, .profile-info > small, .row-copy > small,
.premium-devices .row-copy > small, .premium-devices-panel .premium-device .row-copy > small,
.premium-devices .group-head .kicker, .premium-devices-panel .group-head .kicker,
.premium-devices-note, .premium-devices .status, .premium-devices-panel .premium-devices-intro,
.premium-devices-panel .premium-devices-rules,
.field > span:last-child:not(:first-child), .avatar-upload-button small,
.profile-kind-option > small, .cabinet-invite-quota, .cabinet-invite-history-row,
.bento-count, .bento-person > span:last-child, .list-footnote, .device-limit,
.inline-notice, .workspace-footer, .gate-footer, .avatar-crop-hint,
.library-storage-note, .library-storage-facts, .pair-instruction p, .pair-time,
.sign-in > .muted, .sign-in > p:not(.status), .telegram-door .note,
.cabinet-source-form .cabinet-source-hint, .empty > p {
  font-size: var(--cab-type-caption); line-height: var(--cab-leading-body);
}
.who > span:not(.avatar), .cab-select-heading > strong, .cab-select-empty,
.cab-year-nav strong, .cab-select-any { font-size: var(--cab-type-control); }
.help-disclosure summary, .sign-in .help-disclosure summary,
.connect-steps .help-disclosure summary { font-size: var(--cab-type-control); font-weight: var(--cab-type-control-weight); }
/* Instructions keep a longer reading line-height; codes keep their functional display size. */
.help-article-body, .help-disclosure p, .help-disclosure ol, #code-location { line-height: var(--cab-reading-line); }
@media (max-width: 760px) { :root { --cab-type-page: 1.75rem; } }

@media (max-width: 360px) { .mobile-nav > .nav-link { font-size: var(--cab-text-xs); } }
