/* CONNECT_APPS_TOKENS_V1 (2026-10-16) - the scale of the seven app pages.

   Loaded after the Connect theme (/static/src/site/connect-theme.css) and only by
   /apps and /apps/<product>. Since 2026-10-17 the colours this file introduced
   are the Connect theme itself - the whole origin reads them from
   connect-theme.css - so it re-points no colour token any more: only the type
   scale and radius of these pages, and the app's own --pa-* names.

   Charcoal and neutral surfaces; copper (the Connect brand) only as the accent - the
   current page, the focus ring, emphasis - never as decoration; no blue. Status colours
   carry meaning and always appear with their words. Every text pair is >= 4.5:1
   (WCAG 2.2 AA) on the surface it is used on; tools/test_product_apps_v1.py measures it.
   app.css takes colour only from the theme tokens and these names. */

:root {
  /* The sign-in threshold's placeholder: the mean tone of its pictures (apps/assets/signin/), one value in both themes
     because the scene is dusk in both (signin-curiosity-20261126). */
  --pa-signin-stage: #575864;
  --cx-font: "Inter", "Segoe UI Variable Text", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --cx-text-page: 1.625rem;
  --cx-text-section: 1rem;
  --cx-text-body: .875rem;
  --cx-text-small: max(12px, .8125rem);
  --cx-text-meta: max(12px, .78125rem);
  --cx-radius-sm: .4375rem;
  --cx-radius: .625rem;
  --cx-radius-lg: .875rem;

  /* The app's own scale (app.css reads these). */
  --pa-accent: var(--cx-accent);
  --pa-accent-soft: var(--cx-accent-soft);
  --pa-accent-text: var(--cx-link);
  --pa-mark: var(--cx-action);
  --pa-mark-ink: #F3D9C2;
  --pa-chart-1: var(--cx-action);
  --pa-chart-2: #8A8D92;
  --pa-chart-3: var(--cx-accent);
}

:root[data-theme="dark"] {
  --pa-mark-ink: #8A5220;
  --pa-chart-2: #6E7177;
}

/* CONNECT_SCALE_V1 (2026-11-10, the Owner's order: the Cloud Office UI at 0.9) - the one number that sets the size of
   every page of /apps. A length in these stylesheets is `rem` (1rem = 16px, so N px is N/16 rem), and the root is this
   fraction of the person's own default, so a person who sets a larger browser text size still gets it, scaled.
   1 puts every page back exactly as it was (px values and all). Left in px on purpose, because a scale is not allowed
   to touch them: hairlines and focus rings (2-3px), the breakpoints, the page cap (--pa-max), 44px touch targets and
   the 24px minimum target (--pa-tap), 16px text in a field (iOS zooms the page below it), and text below 12px
   (13.5px for body text at phone width): `max(12px, <rem>)`. No transform, no zoom. */
:root { --pa-scale: .9; }
html { font-size: calc(var(--pa-scale) * 100%); }
@media (max-width: 640px) { :root { --cx-text-body: max(13.5px, .875rem); } }
