/* Entity Client portal: Fluent 2 design tokens and components for the pages that stand on their own
   (sign-in, product consent, download) and for the licence pages. The values are the same as the app
   shell's tokens in navbar.php (--accent, --surface, --border ...), so every page looks like one product.
   Light by default; dark follows the portal theme (data-theme="dark") or, with no theme set, the device. */
:root {
  --fl-brand: #1f7a37;          /* = --accent (white text on it passes WCAG AA) */
  --fl-brand-hover: #1a6a30;    /* = --accent-h */
  --fl-brand-pressed: #145426;  /* = --accent-deep */
  --fl-brand-soft: #e8f3eb;     /* = --accent-soft */
  --fl-bg: #f5f5f5;             /* = --bg */
  --fl-surface: #ffffff;        /* = --surface */
  --fl-surface-2: #fafafa;      /* = --surface3 */
  --fl-subtle: #f5f5f5;         /* = --surface2 */
  --fl-pressed: #e0e0e0;
  --fl-stroke: #d1d1d1;         /* = --border-md */
  --fl-stroke-soft: #e0e0e0;    /* = --border */
  --fl-stroke-hover: #c7c7c7;
  --fl-text: #242424;           /* = --text */
  --fl-text-2: #424242;         /* = --text-mid */
  --fl-muted: #616161;          /* = --muted */
  --fl-danger: #c50f1f;         /* = --red */
  --fl-danger-soft: #fdf3f4;    /* = --red-bg */
  --fl-warn: #bc4b09;           /* = --amber */
  --fl-warn-soft: #fff9f5;      /* = --amber-bg */
  --fl-ok: #107c10;             /* = --green */
  --fl-ok-soft: #f1faf1;        /* = --green-bg */
  --fl-info: #0f6cbd;           /* = --blue */
  --fl-info-soft: #ebf3fc;      /* = --blue-bg */
  --fl-shadow-2: 0 1px 2px rgba(0,0,0,.12), 0 0 2px rgba(0,0,0,.08);
  --fl-shadow-8: 0 4px 8px rgba(0,0,0,.14), 0 0 2px rgba(0,0,0,.12);
  --fl-shadow-16: 0 8px 16px rgba(0,0,0,.14), 0 0 2px rgba(0,0,0,.12);
  --fl-r: 4px;                  /* = --r-md */
  --fl-r-l: 8px;                /* = --r-xl */
  --fl-font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --fl-font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --fl-font-mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) {
  --fl-brand: #3a9f55; --fl-brand-hover: #46ad61; --fl-brand-pressed: #2f8a48; --fl-brand-soft: #1c3123;
  --fl-bg: #1f1f1f; --fl-surface: #292929; --fl-surface-2: #2e2e2e; --fl-subtle: #333333; --fl-pressed: #3d3d3d;
  --fl-stroke: #525252; --fl-stroke-soft: #3d3d3d; --fl-stroke-hover: #666666;
  --fl-text: #ffffff; --fl-text-2: #d6d6d6; --fl-muted: #adadad;
  --fl-danger: #f1707b; --fl-danger-soft: #3b1f22; --fl-warn: #f7a56a; --fl-warn-soft: #3a2a1d;
  --fl-ok: #54b054; --fl-ok-soft: #1f2f1e; --fl-info: #62abf5; --fl-info-soft: #1a2a3d;
  --fl-shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 0 2px rgba(0,0,0,.3); --fl-shadow-16: 0 8px 16px rgba(0,0,0,.4), 0 0 2px rgba(0,0,0,.3);
  color-scheme: dark;
} }
:root[data-theme=dark] {
  --fl-brand: #3a9f55; --fl-brand-hover: #46ad61; --fl-brand-pressed: #2f8a48; --fl-brand-soft: #1c3123;
  --fl-bg: #1f1f1f; --fl-surface: #292929; --fl-surface-2: #2e2e2e; --fl-subtle: #333333; --fl-pressed: #3d3d3d;
  --fl-stroke: #525252; --fl-stroke-soft: #3d3d3d; --fl-stroke-hover: #666666;
  --fl-text: #ffffff; --fl-text-2: #d6d6d6; --fl-muted: #adadad;
  --fl-danger: #f1707b; --fl-danger-soft: #3b1f22; --fl-warn: #f7a56a; --fl-warn-soft: #3a2a1d;
  --fl-ok: #54b054; --fl-ok-soft: #1f2f1e; --fl-info: #62abf5; --fl-info-soft: #1a2a3d;
  --fl-shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 0 2px rgba(0,0,0,.3); --fl-shadow-16: 0 8px 16px rgba(0,0,0,.4), 0 0 2px rgba(0,0,0,.3);
  color-scheme: dark;
}

.fl, .fl-center { margin: 0; background: var(--fl-bg); color: var(--fl-text); font: 14px/20px var(--fl-font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.fl-center { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.fl *, .fl-center *, .fl *::before, .fl-center *::before, .fl *::after, .fl-center *::after { box-sizing: border-box; }
.fl a, .fl-center a { color: var(--fl-brand); text-decoration: none; }
.fl a:hover, .fl-center a:hover { text-decoration: underline; }
.fl button, .fl input, .fl select, .fl textarea, .fl-center button, .fl-center input { font-family: inherit; }

/* ── account-style card (sign-in, consent, download) ───────────────── */
.fl-card { background: var(--fl-surface); border-radius: var(--fl-r-l); box-shadow: var(--fl-shadow-16); }
.fl-auth { width: 100%; max-width: 440px; padding: 44px; display: grid; gap: 16px; }
.fl-auth > * { min-width: 0; }
.fl-logo { width: 40px; height: 40px; object-fit: contain; }
.fl-brandmark { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/20px var(--fl-font-display); color: var(--fl-text) !important; text-decoration: none !important; }
.fl-brandmark img { width: 24px; height: 24px; border-radius: 5px; }
.fl-auth h1 { margin: 4px 0 0; font: 600 24px/32px var(--fl-font-display); overflow-wrap: anywhere; }
.fl-sub { margin: -8px 0 0; color: var(--fl-text-2); }
.fl-account { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--fl-stroke-soft); border-radius: var(--fl-r); min-width: 0; }
.fl-account span:last-child { display: grid; min-width: 0; }
.fl-account small { color: var(--fl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fl-brand-soft); color: var(--fl-brand); font-weight: 600; font-size: 13px; flex: none; }
.fl-note { margin: 0; padding: 10px 12px; background: var(--fl-warn-soft); border-left: 3px solid var(--fl-warn); border-radius: var(--fl-r); color: var(--fl-text-2); }
.fl-info-msg { margin: 0; padding: 10px 12px; background: var(--fl-info-soft); border-left: 3px solid var(--fl-info); border-radius: var(--fl-r); color: var(--fl-text-2); }
.fl-ok-msg { margin: 0; padding: 10px 12px; background: var(--fl-ok-soft); border-left: 3px solid var(--fl-ok); border-radius: var(--fl-r); color: var(--fl-text); }
.fl-error { margin: 0; padding: 10px 12px; background: var(--fl-danger-soft); border-left: 3px solid var(--fl-danger); border-radius: var(--fl-r); color: var(--fl-text); }
.fl-field-error { margin: 0; color: var(--fl-danger); font-size: 13px; }
.fl-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.fl-actions .fl-btn { min-width: 108px; }
.fl-fine { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--fl-muted); }
.fl-links { display: grid; gap: 6px; font-size: 13px; }

/* Pick an account: one row per remembered account, then "Use another account" */
.fl-tiles { display: grid; margin: 0 -44px; border-top: 1px solid var(--fl-stroke-soft); }
.fl-tile-row { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--fl-stroke-soft); }
.fl-tile { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 10px 12px 10px 44px; border: 0; background: none; color: var(--fl-text) !important; text-align: left; cursor: pointer; font: inherit; text-decoration: none !important; }
.fl-tile-row > .fl-tile:only-child, a.fl-tile, .fl-tiles > .fl-tile { padding-right: 44px; }
.fl-tiles > .fl-tile { border-bottom: 1px solid var(--fl-stroke-soft); }
.fl-tile:hover, .fl-tile-row:hover { background: var(--fl-subtle); }
.fl-tile:focus-visible { outline: 2px solid var(--fl-text); outline-offset: -2px; }
.fl-tile .fl-avatar { width: 40px; height: 40px; font-size: 14px; }
.fl-tile-text { flex: 1; display: grid; min-width: 0; }
.fl-tile b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-tile small { color: var(--fl-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-tile-row.is-busy { opacity: .6; pointer-events: none; }
.fl-tile-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--fl-stroke); color: var(--fl-text-2); flex: none; }
.fl-tile-more { width: 44px; margin-right: 32px; border: 0; background: none; color: var(--fl-muted); cursor: pointer; border-radius: var(--fl-r); display: grid; place-items: center; }
.fl-tile-more:hover { background: var(--fl-pressed); color: var(--fl-text); }
.fl-tile-more:focus-visible { outline: 2px solid var(--fl-text); outline-offset: -2px; }

/* The account a step is for, with a way back (like Microsoft's "← name@company.com") */
.fl-identity { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 8px 4px 4px; margin: 0 0 -4px -4px; border: 0; border-radius: var(--fl-r); background: none; color: var(--fl-text) !important; font: inherit; cursor: pointer; text-align: left; justify-self: start; text-decoration: none !important; }
.fl-identity:hover { background: var(--fl-subtle); }
.fl-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-identity svg { flex: none; }

/* A second, lighter card under the main one ("Sign-in options") */
.fl-subcard { width: 100%; max-width: 440px; margin-top: 16px; overflow: hidden; }
.fl-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 44px; border: 0; background: none; color: var(--fl-text) !important; font: inherit; text-align: left; cursor: pointer; text-decoration: none !important; }
.fl-option:hover { background: var(--fl-subtle); }
.fl-option + .fl-option { border-top: 1px solid var(--fl-stroke-soft); }
.fl-option svg, .fl-option img { width: 22px; height: 22px; flex: none; }
.fl-option span { display: grid; }
.fl-option small { color: var(--fl-muted); font-size: 13px; }
.fl-option:disabled { opacity: .6; cursor: default; }
.fl-page-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 24px; font-size: 12px; color: var(--fl-muted); }
.fl-page-foot a { color: var(--fl-muted) !important; }

/* ── controls ──────────────────────────────────────────────────────── */
.fl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 96px; min-height: 32px; padding: 5px 12px; border-radius: var(--fl-r); border: 1px solid var(--fl-stroke); background: var(--fl-surface); color: var(--fl-text); font: 600 14px/20px var(--fl-font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .12s, border-color .12s; }
.fl-btn:hover { background: var(--fl-subtle); border-color: var(--fl-stroke-hover); }
.fl-btn:active { background: var(--fl-pressed); }
.fl-btn.fl-primary { background: var(--fl-brand); border-color: transparent; color: #fff; }
.fl-btn.fl-primary:hover { background: var(--fl-brand-hover); }
.fl-btn.fl-primary:active { background: var(--fl-brand-pressed); }
.fl-btn.fl-subtle { border-color: transparent; background: transparent; min-width: 0; }
.fl-btn.fl-subtle:hover { background: var(--fl-subtle); }
.fl-btn.fl-danger { color: var(--fl-danger); }
.fl-btn.fl-large { min-height: 40px; padding: 9px 20px; font-size: 15px; }
.fl-btn:disabled, .fl-btn[aria-disabled=true] { opacity: .5; cursor: default; }
.fl-btn:focus-visible, .fl-input:focus-visible, .fl-option:focus-visible, .fl-identity:focus-visible { outline: 2px solid var(--fl-text); outline-offset: 1px; }
.fl-linkbtn { border: 0; background: none; padding: 0; color: var(--fl-brand); font: inherit; cursor: pointer; text-align: left; }
.fl-linkbtn:hover { text-decoration: underline; }
.fl-field { display: grid; gap: 4px; }
.fl-field label { font-weight: 600; color: var(--fl-text-2); }
.fl-field small { color: var(--fl-muted); }
.fl-input, .fl select, .fl textarea { min-height: 32px; padding: 5px 10px; border: 1px solid var(--fl-stroke); border-bottom-color: var(--fl-muted); border-radius: var(--fl-r); background: var(--fl-surface); color: var(--fl-text); font: 14px/20px var(--fl-font); width: 100%; }
.fl textarea { height: auto; padding: 6px 10px; }
.fl-input:hover { border-color: var(--fl-stroke-hover); border-bottom-color: var(--fl-muted); }
.fl-input:focus, .fl select:focus, .fl textarea:focus { outline: none; border-color: var(--fl-stroke); border-bottom-color: var(--fl-brand); box-shadow: inset 0 -1px 0 var(--fl-brand); }
.fl-input[aria-invalid=true] { border-bottom-color: var(--fl-danger); box-shadow: inset 0 -1px 0 var(--fl-danger); }
.fl-input.fl-big { min-height: 40px; font-size: 16px; }
.fl-input.fl-key { font: 600 16px/1 var(--fl-font-mono); letter-spacing: .06em; text-transform: uppercase; min-height: 40px; }
.fl-input.fl-code { font: 600 22px/1 var(--fl-font-mono); letter-spacing: .3em; text-align: center; min-height: 48px; }
.fl-check { display: flex; align-items: flex-start; gap: 8px; color: var(--fl-text-2); cursor: pointer; }
.fl-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--fl-brand); flex: none; }
.fl-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--fl-subtle); color: var(--fl-text-2); white-space: nowrap; }
.fl-badge.ok { background: var(--fl-ok-soft); color: var(--fl-ok); }
.fl-badge.bad { background: var(--fl-danger-soft); color: var(--fl-danger); }
.fl-badge.brand { background: var(--fl-brand-soft); color: var(--fl-brand); }
code.fl-key { font: 600 13px var(--fl-font-mono); letter-spacing: .03em; }
.fl-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: fl-spin .7s linear infinite; flex: none; }
@keyframes fl-spin { to { transform: rotate(360deg); } }
/* Thin moving line on top of the card while something is loading (add .is-busy to the card) */
.fl-progress { height: 2px; margin: -44px -44px 26px; overflow: hidden; border-radius: var(--fl-r-l) var(--fl-r-l) 0 0; visibility: hidden; }
.fl-progress::after { content: ""; display: block; width: 30%; height: 100%; background: var(--fl-brand); animation: fl-bar 1.1s ease-in-out infinite; }
.is-busy > .fl-progress { visibility: visible; }
@keyframes fl-bar { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* ── admin pages (tables, sections, command bar) ───────────────────── */
.fl-page { max-width: 1240px; margin: 0 auto; padding: 24px 32px 48px; }
.fl-page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.fl-page-head h1 { margin: 0; font: 600 24px/32px var(--fl-font-display); }
.fl-page-head p { margin: 2px 0 0; color: var(--fl-muted); }
.fl-page-head > div:first-child { flex: 1; min-width: 0; }
.fl-section { background: var(--fl-surface); border: 1px solid var(--fl-stroke-soft); border-radius: var(--fl-r-l); box-shadow: var(--fl-shadow-2); margin-bottom: 16px; }
.fl-section > header { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; flex-wrap: wrap; }
.fl-section > header h2 { margin: 0; font: 600 16px/22px var(--fl-font-display); flex: 1; }
.fl-section .fl-body { padding: 0 20px 20px; }
.fl-commandbar { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--fl-stroke-soft); border-bottom: 1px solid var(--fl-stroke-soft); flex-wrap: wrap; }
.fl-table { width: 100%; border-collapse: collapse; }
.fl-table th { text-align: left; font-weight: 600; color: var(--fl-text-2); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--fl-stroke-soft); white-space: nowrap; }
.fl-table td { padding: 10px 12px; border-bottom: 1px solid var(--fl-stroke-soft); vertical-align: middle; }
.fl-table tr:last-child td { border-bottom: 0; }
.fl-table tr:hover td { background: var(--fl-surface-2); }
.fl-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.fl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fl-kpi { background: var(--fl-surface); border: 1px solid var(--fl-stroke-soft); border-radius: var(--fl-r-l); box-shadow: var(--fl-shadow-2); padding: 14px 16px; }
.fl-kpi span { display: block; color: var(--fl-muted); font-size: 13px; }
.fl-kpi strong { font: 600 28px/36px var(--fl-font-display); font-variant-numeric: tabular-nums; }
.fl-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fl-empty { padding: 32px; text-align: center; color: var(--fl-muted); }

/* Phones: the sign-in fills the screen edge to edge like Microsoft's mobile sign-in. Matched on the screen
   size too (device-width/height), so it still applies when the browser lays the page out wider than the
   phone (Safari page zoom set below 100%, landscape). Text and tap targets are full size. */
@media (max-width: 600px), (max-device-width: 500px), (max-device-height: 500px) {
  .fl-center { justify-content: flex-start; align-items: stretch; padding: 0; background: var(--fl-surface); }
  .fl-center > .fl-card { box-shadow: none; border-radius: 0; background: transparent; }
  .fl-center > .fl-card, .fl-center > .fl-subcard, .fl-center > .fl-page-foot { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
  .fl-auth { padding: max(48px, calc(env(safe-area-inset-top) + 24px)) 24px 20px; gap: 18px; font-size: 16px; line-height: 22px; }
  .fl-brandmark { font-size: 17px; gap: 10px; }
  .fl-brandmark img { width: 28px; height: 28px; border-radius: 6px; }
  .fl-auth h1 { font-size: 24px; line-height: 32px; }
  .fl-sub, .fl-links, .fl-info-msg, .fl-note, .fl-error, .fl-ok-msg { font-size: 15px; line-height: 21px; }
  .fl-field-error { font-size: 14px; }
  .fl-fine { font-size: 13px; line-height: 18px; }
  .fl-tiles { margin: 0 -24px; }
  .fl-tile { min-height: 68px; padding-left: 24px; font-size: 16px; }
  .fl-tile b { font-size: 16px; }
  .fl-tile small { font-size: 14px; }
  .fl-tile .fl-avatar, .fl-tile-icon { width: 44px; height: 44px; font-size: 15px; }
  .fl-tile-row > .fl-tile:only-child, a.fl-tile, .fl-tiles > .fl-tile { padding-right: 24px; }
  .fl-tile-more { width: 48px; min-height: 48px; margin-right: 12px; }
  .fl-progress { margin: calc(-1 * max(48px, calc(env(safe-area-inset-top) + 24px))) -24px 26px; border-radius: 0; }
  .fl-subcard { background: transparent; box-shadow: none; margin-top: 0; padding: 0 24px 8px; display: grid; gap: 10px; overflow: visible; }
  .fl-option, .fl-option + .fl-option { justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid var(--fl-stroke); border-radius: var(--fl-r); font-weight: 600; font-size: 16px; }
  .fl-option small { display: none; }
  .fl-page-foot { margin-top: auto; padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); font-size: 13px; gap: 6px 20px; }
  .fl-page-foot a, .fl-page-foot span { display: inline-block; padding: 6px 0; }
  .fl-btn { min-height: 44px; font-size: 16px; padding: 9px 16px; }
  .fl-actions .fl-btn { min-width: 120px; }
  .fl-input, .fl-input.fl-big { min-height: 44px; font-size: 16px; } /* 16px or more: iPhones don't zoom into the field */
  .fl-input.fl-key { font-size: 16px; letter-spacing: 0; }
  .fl-input.fl-code { min-height: 52px; font-size: 24px; }
  .fl-identity { font-size: 16px; min-height: 40px; }
  .fl-linkbtn { padding: 4px 0; }
  .fl-check { font-size: 15px; }
  .fl-check input { width: 20px; height: 20px; margin-top: 1px; }
  .fl-page { padding: 16px; }
}
/* The same, for real phones the page script recognises (html.fl-phone), whatever width the browser reports */
html.fl-phone .fl-center { justify-content: flex-start; align-items: stretch; padding: 0; background: var(--fl-surface); }
html.fl-phone .fl-center > .fl-card { box-shadow: none; border-radius: 0; background: transparent; }
html.fl-phone .fl-center > .fl-card, html.fl-phone .fl-center > .fl-subcard, html.fl-phone .fl-center > .fl-page-foot { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
html.fl-phone .fl-auth { padding: max(48px, calc(env(safe-area-inset-top) + 24px)) 24px 20px; gap: 18px; font-size: 16px; line-height: 22px; }
html.fl-phone .fl-brandmark { font-size: 17px; gap: 10px; }
html.fl-phone .fl-brandmark img { width: 28px; height: 28px; border-radius: 6px; }
html.fl-phone .fl-auth h1 { font-size: 24px; line-height: 32px; }
html.fl-phone .fl-sub, html.fl-phone .fl-links, html.fl-phone .fl-info-msg, html.fl-phone .fl-note, html.fl-phone .fl-error, html.fl-phone .fl-ok-msg { font-size: 15px; line-height: 21px; }
html.fl-phone .fl-field-error { font-size: 14px; }
html.fl-phone .fl-fine { font-size: 13px; line-height: 18px; }
html.fl-phone .fl-tiles { margin: 0 -24px; }
html.fl-phone .fl-tile { min-height: 68px; padding-left: 24px; font-size: 16px; }
html.fl-phone .fl-tile b { font-size: 16px; }
html.fl-phone .fl-tile small { font-size: 14px; }
html.fl-phone .fl-tile .fl-avatar, html.fl-phone .fl-tile-icon { width: 44px; height: 44px; font-size: 15px; }
html.fl-phone .fl-tile-row > .fl-tile:only-child, html.fl-phone a.fl-tile, html.fl-phone .fl-tiles > .fl-tile { padding-right: 24px; }
html.fl-phone .fl-tile-more { width: 48px; min-height: 48px; margin-right: 12px; }
html.fl-phone .fl-progress { margin: calc(-1 * max(48px, calc(env(safe-area-inset-top) + 24px))) -24px 26px; border-radius: 0; }
html.fl-phone .fl-subcard { background: transparent; box-shadow: none; margin-top: 0; padding: 0 24px 8px; display: grid; gap: 10px; overflow: visible; }
html.fl-phone .fl-option, html.fl-phone .fl-option + .fl-option { justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid var(--fl-stroke); border-radius: var(--fl-r); font-weight: 600; font-size: 16px; }
html.fl-phone .fl-option small { display: none; }
html.fl-phone .fl-page-foot { margin-top: auto; padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); font-size: 13px; gap: 6px 20px; }
html.fl-phone .fl-page-foot a, html.fl-phone .fl-page-foot span { display: inline-block; padding: 6px 0; }
html.fl-phone .fl-btn { min-height: 44px; font-size: 16px; padding: 9px 16px; }
html.fl-phone .fl-actions .fl-btn { min-width: 120px; }
html.fl-phone .fl-input, html.fl-phone .fl-input.fl-big { min-height: 44px; font-size: 16px; }
html.fl-phone .fl-input.fl-key { font-size: 16px; letter-spacing: 0; }
html.fl-phone .fl-input.fl-code { min-height: 52px; font-size: 24px; }
html.fl-phone .fl-identity { font-size: 16px; min-height: 40px; }
html.fl-phone .fl-linkbtn { padding: 4px 0; }
html.fl-phone .fl-check { font-size: 15px; }
html.fl-phone .fl-check input { width: 20px; height: 20px; margin-top: 1px; }
html.fl-phone .fl-page { padding: 16px; }
html.fl-zoomed .fl-center { min-height: calc(var(--fl-vh, 1vh) * 100); }
@media (prefers-reduced-motion: reduce) { .fl-spin, .fl-progress::after { animation-duration: 2.4s; } }
