/* Shared role scale. This important layer overrides legacy per-screen sizes,
   including lazy-loaded Studio styles, without escalating selector specificity. */
@layer product-type {
  :root {
    --type-control: 14px;
    --type-body: 14px;
    --type-label: 12px;
    --type-meta: 12px;
    --type-section: 20px;
    --type-page: 28px;
  }
  body { font-size: var(--type-body) !important; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  select, textarea {
    font-size: var(--type-control) !important;
    line-height: 1.5 !important;
  }
  input::placeholder, textarea::placeholder { font-size: inherit !important; }
  /* Domain and editable slug read as one compact address, at every breakpoint. */
  .input-prefix > span, #slugInput {
    font-size: var(--type-control) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
  }
  /* Native date/time values need the existing 48px line-height on Safari. */
  input[type="date"], input[type="time"] { line-height: revert-layer !important; }
  .btn, .book-next, .shop-cta, .shop-extra, .merchant-action {
    font-size: var(--type-control) !important;
  }
  .input-label, .field, .link-field, .book-field, .settings-field-label,
  .boki-field > span, .boki-prompt-field > span, .booking-date-filter {
    font-size: var(--type-label) !important;
    line-height: 1.5 !important;
  }
  .helper, .inline-hint, .card-hint, .field-error, .password-hint,
  .privacy-note, .booking-meta, .booking-filter-feedback,
  .profile-action-copy small, .booking-action-copy small,
  .boki-step-help, .boki-slug-status, .boki-social-hint,
  .boki-link-preview, .boki-code-meta, .demo-inline,
  .section-heading p, .editor-intro > p, .help-card p {
    font-size: var(--type-meta) !important;
    line-height: 1.5 !important;
  }
  .booking-table th, .booking-table .booking-id,
  .side-link, .editor-tabs button, .owner-mobile-nav button {
    font-size: var(--type-label) !important;
  }
  .boki-bubble, .booking-screen p, .settings-panel p,
  .customer-page .shop-desc { font-size: 13px !important; }
  .customer-page .shop-detail, .customer-page .shop-info span,
  .customer-page .shop-powered { font-size: var(--type-meta) !important; }
  .dashboard-header h1, .boki-page-header h1, .settings-page h1 {
    font-size: var(--type-page) !important;
    line-height: 1.25 !important;
  }
  .editor-intro h1 { font-size: 24px !important; line-height: 1.25 !important; }
  .panel-heading h2, .section-heading h2, .booking-screen h2,
  .boki-step-title, .booking-modal h2, .settings-section-title,
  .settings-dialog-head h2 {
    font-size: var(--type-section) !important;
    line-height: 1.3 !important;
  }
  #authTitle, .auth-card h2 { font-size: 24px !important; line-height: 1.3 !important; }
  @media (max-width: 820px) {
    :root { --type-page: 24px; --type-section: 18px; }
    .editor-intro h1 { font-size: 22px !important; }
  }
  @media (pointer: coarse) {
    .btn, .book-next { min-height: 44px !important; }
  }
}
