/* apps/ui/src/styles/chrome.css (tests look for this path in the built CSS) */
/* Global tokens, header and tab bar for every SPA page (print sheet too).
   Loaded on first paint and never unloaded, so nothing here may target a
   single page. */
  /* Self-hosted IBM Plex Sans Arabic, Arabic and Latin subsets per weight.
     The unicode-range values are verbatim from Google; don't trim them. */
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-arabic-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-latin-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-arabic-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-latin-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-arabic-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-latin-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-arabic-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
  @font-face{font-family:'IBM Plex Sans Arabic';src:url('/fonts/plexarabic-latin-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
  /* -------------------------------------------------------------------
     Light is the default. Rules only use tokens, so switching theme is one
     attribute on <html>. Brand orange as text is only 2.45:1 on white, hence
     the separate --accent-light.
     ------------------------------------------------------------------- */
  :root {
    --canvas: #F7F8FA;
    --paper: #FFFFFF;
    --sunk: #F1F3F6;
    --raise: #E8ECF2;
    --accent: #F28C38;
    --accent-hover: #E67E22;
    /* Orange for text, 5.02:1 on white. */
    --accent-light: #B45309;
    /* Button labels on the orange fill. 7.58:1. */
    --on-accent: #1A1206;
    --ink: #131C2B;
    --ink-2: #41506A;
    --ink-3: #5E6C82;
    --line: rgba(19,28,43,.13);
    --hover-wash: rgba(19,28,43,.04);
    --green: #15803D;
    --red: #B91C1C;
    --amber: #B45309;
    --shadow-1: 0 1px 2px rgba(19,28,43,.06);
    --shadow-2: 0 8px 20px rgba(19,28,43,.10);
    --shadow-3: 0 18px 40px rgba(19,28,43,.14);
    --radius: 14px;
    --radius-lg: 18px;

    /* Short durations, ease-out only. Past ~250ms motion feels like waiting. */
    --dur-1: 120ms;   /* a state change on something already under the cursor */
    --dur-2: 180ms;   /* the default */
    --dur-3: 280ms;   /* something entering or leaving the page */
    --ease: cubic-bezier(.22, .61, .36, 1);
  }
  /* Reduced motion means none. Kept first so nothing below can win on
     specificity. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
      scroll-behavior: auto !important;
    }
  }

  @keyframes lnx-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes lnx-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Staggered page entrance in reading order, capped at six. */
  main > * { animation: lnx-rise var(--dur-3) var(--ease) backwards; }
  main > *:nth-child(1) { animation-delay: 0ms; }
  main > *:nth-child(2) { animation-delay: 40ms; }
  main > *:nth-child(3) { animation-delay: 80ms; }
  main > *:nth-child(4) { animation-delay: 120ms; }
  main > *:nth-child(5) { animation-delay: 160ms; }
  main > *:nth-child(n+6) { animation-delay: 200ms; }

  /* Grid tiles enter in sequence, capped at eight. */
  .cards-grid > *, .kpis > * { animation: lnx-rise var(--dur-3) var(--ease) backwards; }
  .cards-grid > *:nth-child(1), .kpis > *:nth-child(1) { animation-delay: 30ms; }
  .cards-grid > *:nth-child(2), .kpis > *:nth-child(2) { animation-delay: 60ms; }
  .cards-grid > *:nth-child(3), .kpis > *:nth-child(3) { animation-delay: 90ms; }
  .cards-grid > *:nth-child(4), .kpis > *:nth-child(4) { animation-delay: 120ms; }
  .cards-grid > *:nth-child(5) { animation-delay: 150ms; }
  .cards-grid > *:nth-child(6) { animation-delay: 180ms; }
  .cards-grid > *:nth-child(7) { animation-delay: 210ms; }
  .cards-grid > *:nth-child(n+8) { animation-delay: 240ms; }

  /* The preview slides in from its own side. There's no logical translate,
     so RTL is written out. */
  @keyframes lnx-slide-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  @keyframes lnx-slide-in-rtl { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  .sim-rail { animation: lnx-slide-in var(--dur-3) var(--ease) backwards; animation-delay: 120ms; }
  html[dir="rtl"] .sim-rail { animation-name: lnx-slide-in-rtl; }

  /* Keep it quick: the merchant is dragging a colour picker. */
  .sim-card { transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
  .sim-card:hover { box-shadow: var(--shadow-3); }
  .sim-strip { transition: opacity var(--dur-1) var(--ease); }

  .tabbar .tab { transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
  .tabbar .tabicon { transition: transform var(--dur-2) var(--ease); }
  .tabbar .tab.active .tabicon { transform: translateY(-1px) scale(1.06); }
  .tab-more[open] .more-sheet { animation: lnx-rise var(--dur-2) var(--ease) backwards; }

  header.top nav.nav a { transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }

  /* One pulse on a success banner. */
  @keyframes lnx-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(242,140,56,.45); }
    100% { box-shadow: 0 0 0 12px rgba(242,140,56,0); }
  }
  .ok-banner { animation: lnx-rise var(--dur-3) var(--ease) backwards, lnx-pulse 900ms var(--ease) 1; }

  /* Table rows and list items settle in on load, in reading order. */
  table.data tbody tr { animation: lnx-fade var(--dur-2) var(--ease) backwards; }
  table.data tbody tr:nth-child(1) { animation-delay: 20ms; }
  table.data tbody tr:nth-child(2) { animation-delay: 40ms; }
  table.data tbody tr:nth-child(3) { animation-delay: 60ms; }
  table.data tbody tr:nth-child(4) { animation-delay: 80ms; }
  table.data tbody tr:nth-child(n+5) { animation-delay: 100ms; }
  /* Only the first rows: past a screenful nobody sees it, and every animating
     row is a GPU layer. 275 at once, as tall phone cards, crashed iPhone
     Safari on /admin/merchants. */
  table.data tbody tr:nth-child(n+13) { animation: none; }

  a:not(.btn):not(.card-tile):not(.tpl-tile) { transition: color var(--dur-1) var(--ease); }

  /* :focus-visible so mouse clicks don't draw a ring. */
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
  }

  /* Dark: same token names, different values. */
  html[data-theme="dark"] {
    --canvas: #0F172A;
    --paper: #1C2A42;
    --sunk: #162338;
    --raise: #22314C;
    --accent-light: #F7B267;
    --on-accent: #0F172A;
    --ink: #FFFFFF;
    --ink-2: #CBD5E1;
    --ink-3: #94A3B8;
    --line: rgba(255,255,255,.10);
    --hover-wash: rgba(255,255,255,.045);
    --green: #22C55E;
    /* #EF4444 was 3.82:1 on --paper and failed AA; this is 5.20:1. */
    --red: #F87171;
    --amber: #F7B267;
    --shadow-1: 0 1px 2px rgba(0,0,0,.28);
    --shadow-2: 0 10px 24px rgba(0,0,0,.34);
    --shadow-3: 0 20px 48px rgba(0,0,0,.44);
  }

  /* Tracking breaks Arabic letter joins. Keyed on any element's lang since
     Arabic/Sorani cards show up inside English dashboards. */
  :is([lang="ar"], [lang="ckb"]), :is([lang="ar"], [lang="ckb"]) * { letter-spacing: 0 !important; }
  /* Arabic needs more line-height than Latin. */
  html:is([lang="ar"], [lang="ckb"]) body { line-height: 1.75; }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Don't let the browser fake weights or italics the font doesn't ship
       (see views/fonts.ts). A faked 600 resolves to bold and clashes with 700. */
    font-synthesis-weight: none;
    font-synthesis-style: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  /* Form controls do not inherit the family by default. */
  button, input, select, textarea { font-family: inherit; }
  /* Tabular figures so numeric columns line up. */
  table.data td, table.data th, .kpi .n, .num, code.pill { font-variant-numeric: tabular-nums; }
  header.top {
    background: var(--sunk);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
  }
  /* Not scoped to header.top: the lockup also appears in other headers
     (e.g. .auth-top) that share no ancestor. */
  a.brand { display: inline-flex; align-items: center; gap: 9px; }
  header.top a.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.2px; }
  /* Brand minimum is 24px; below that the mark stops resolving. */
  .brand-mark { width: 24.9px; height: 26px; flex: none; display: block; }
  /* Clear space is one stamp dot; the viewBox already carries most of it. */
  .brand-word { white-space: nowrap; }
  /* --accent-light, not --accent: raw orange text fails AA here. */
  .brand-word > span { color: var(--accent-light); }
  header.top nav.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
  header.top nav.nav a {
    color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
    padding: 8px 14px; border-radius: 100px;
  }
  header.top nav.nav a:hover { color: var(--ink); background: var(--raise); }
  header.top nav.nav a.active { color: var(--on-accent); background: var(--accent); }

  header.top nav.nav a.lang-toggle {
    border: 1px solid var(--line);
    margin-inline-start: 8px;
    color: var(--ink-3);
  }
  header.top nav.nav a.lang-toggle:hover { color: var(--ink); border-color: var(--accent); }

  /* Screen-reader only, e.g. a header for an action-only column. */
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  /* Quiet until hovered; it sits among data, not as a call to action. */
  .row-action {
    color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 600;
    white-space: nowrap;
  }
  .row-action:hover, .row-action:focus-visible { color: var(--red); text-decoration: underline; }
  /* Skip link, off-screen until focused. */
  .skip {
    position: absolute; inset-inline-start: -9999px; top: 12px; z-index: 999;
    padding: 10px 18px; border-radius: var(--radius);
    background: var(--accent); color: var(--on-accent); font-weight: 700;
    text-decoration: none;
  }
  .skip:focus { inset-inline-start: 12px; }

  /* -------------------------------------------------------------------
     Mobile bottom tab bar, under 720px only. The top nav links hide at the
     same breakpoint, so only one nav is ever visible.
     ------------------------------------------------------------------- */
  .tabbar { display: none; }

  @media (max-width: 720px) {
    /* Top bar becomes a slim title bar. Sign out moves into More so a
       destructive action isn't under the thumb. */
    header.top { padding: 12px 16px; gap: 12px; }
    header.top nav.nav,
    header.top form { display: none; }

    .tabbar {
      display: flex;
      position: fixed;
      inset-inline: 0;
      bottom: 0;
      z-index: 50;
      background: color-mix(in srgb, var(--sunk) 92%, transparent);
      backdrop-filter: saturate(160%) blur(12px);
      -webkit-backdrop-filter: saturate(160%) blur(12px);
      border-top: 1px solid var(--line);
      /* iPhone home-indicator inset. */
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .tabbar .tab {
      flex: 1 1 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 12px 2px 10px;
      color: var(--ink-3);
      text-decoration: none;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.15;
      text-align: center;
      /* Well above the 48px minimum: this is the whole nav on a phone, used
         one-handed. */
      min-height: 60px;
      background: none;
      border: 0;
      cursor: pointer;
      /* Kills the grey flash iOS paints over a tapped link. */
      -webkit-tap-highlight-color: transparent;
    }
    .tabbar .tab span {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .tabbar .tabicon { width: 27px; height: 27px; flex: none; }
    /* --accent-light, not --accent: raw orange is 2.4:1 on --sunk. */
    .tabbar .tab.active { color: var(--accent-light); }
    /* Pressed state only; :hover sticks after a tap on touch screens. */
    .tabbar .tab:active { background: var(--raise); }

    /* <details>, so More works without JS. It doesn't close on Escape or an
       outside tap by itself; TAB_SHEET_SCRIPT adds that. */
    .tab-more { flex: 1 1 0; display: flex; position: relative; }
    .tab-more > summary { list-style: none; width: 100%; }
    .tab-more > summary::-webkit-details-marker { display: none; }
    .more-sheet {
      position: absolute;
      bottom: calc(100% + 8px);
      inset-inline-end: 6px;
      min-width: 190px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 6px;
      box-shadow: var(--shadow-3);
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .more-sheet a,
    .more-sheet button {
      display: block;
      width: 100%;
      text-align: start;
      padding: 12px 14px;
      border-radius: 10px;
      color: var(--ink-2);
      text-decoration: none;
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      background: none;
      border: 0;
      cursor: pointer;
    }
    .more-sheet a:active,
    .more-sheet button:active { background: var(--raise); color: var(--ink); }
    .more-sheet form { margin: 0; }

    /* Clears the fixed tab bar. Keep in step with .tabbar .tab's min-height
       (60px) or the last row hides under it. */
    main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  }
  .btn {
    display: inline-block;
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    border-radius: 100px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
  }
  .btn { transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease); box-shadow: var(--shadow-1); }
  .btn:hover { background: var(--accent-hover); box-shadow: var(--shadow-2); }
  /* 1px is enough; more reads as a bounce. */
  .btn:active { transform: translateY(1px); box-shadow: var(--shadow-1); }
  .btn.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn.secondary:hover { background: var(--raise); }
  .btn[disabled] { opacity: .5; cursor: default; }
  /* Trial-to-paid button. The periodic sheen is there so it gets noticed. */
  .plan-cta-row { margin: 18px 0 0; }
  .btn.plan-cta {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; font-size: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 6px 18px rgba(242,140,56,.32), var(--shadow-1);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  }
  .btn.plan-cta::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
    inset-inline-start: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    animation: plan-cta-sheen 3.6s ease-in-out 1.2s infinite;
    pointer-events: none;
  }
  .btn.plan-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 10px 26px rgba(242,140,56,.42), var(--shadow-2);
  }
  .btn.plan-cta:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(242,140,56,.3); }
  .btn.plan-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px rgba(242,140,56,.55); }
  .plan-cta-arrow { transition: transform .18s var(--ease); }
  .btn.plan-cta:hover .plan-cta-arrow { transform: translateX(4px); }
  /* The arrow points the way the language reads. */
  html[dir=rtl] .plan-cta-arrow { transform: scaleX(-1); }
  html[dir=rtl] .btn.plan-cta:hover .plan-cta-arrow { transform: scaleX(-1) translateX(4px); }
  @keyframes plan-cta-sheen {
    0% { inset-inline-start: -60%; }
    40%, 100% { inset-inline-start: 130%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .btn.plan-cta::after { animation: none; display: none; }
    .btn.plan-cta, .plan-cta-arrow { transition: none; }
    .btn.plan-cta:hover { transform: none; }
    .btn.plan-cta:hover .plan-cta-arrow { transform: none; }
    html[dir=rtl] .btn.plan-cta:hover .plan-cta-arrow { transform: scaleX(-1); }
  }
  /* Free plan upgrade bar, aligned with main's 1000px column. Quiet below the
     nudge threshold, loud (orange wash, plan-cta) from it. */
  .upgrade-bar { background: var(--sunk); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
  .upgrade-bar-in {
    max-width: 1000px; margin: 0 auto; padding: 8px 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  }
  .upgrade-bar-text { margin: 0; line-height: 1.45; }
  .upgrade-bar-text b { color: var(--ink); }
  .upgrade-bar .btn.small { flex: none; }
  .upgrade-bar-nudge { background: rgba(242,140,56,.10); border-bottom-color: rgba(242,140,56,.30); color: var(--ink); font-size: 14px; }
  .upgrade-bar-nudge .upgrade-bar-in { padding-block: 12px; }
  .upgrade-bar-nudge .btn.plan-cta { padding: 10px 20px; font-size: 14px; flex: none; }
  .upgrade-bar-full { border-bottom: 2px solid var(--accent); }
  .upgrade-bar-full .upgrade-bar-text b { color: var(--accent-light); }
  /* An admin working on a merchant's cards (ActingBar.tsx). The upgrade bar's
     column, but an accent edge on both sides so it can't pass for part of the
     merchant's own frame. Never printed: the print sheet goes on a counter. */
  .acting-bar { background: rgba(242,140,56,.12); border-block: 2px solid var(--accent); color: var(--ink); font-size: 14px; }
  .acting-bar-in {
    max-width: 1000px; margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  }
  .acting-bar-text { margin: 0; line-height: 1.45; }
  .acting-bar-actions { display: flex; align-items: center; gap: 14px; flex: none; }
  .acting-bar-actions a { color: var(--accent-light); font-size: 13px; }
  @media print { .acting-bar { display: none; } }
