/* ADAPTED from docs/design/app-spec-nov/css/app.css (the designer's verbatim app.css,
   NOVEMBER 2026 delivery — the sidebar dashboard). It is a strict SUPERSET of the previous
   delivery's sheet: `diff` of his two files shows 0 removed or changed lines, so adopting it
   cannot restyle a page already built on the old one.
   Three changes only, per the redesign decisions:
     - the Google Fonts @import is removed (fonts are self-hosted via forec.css; C13/A9);
     - the shared brand tokens in :root alias forec.css's --fc-* (C1), and --fa-inter
       falls back to DM Sans (C13 - no third typeface for one control);
     - --fa-panel (section-card ground, his #F8FAFC) aliases --fc-ground, same reason (N1).
   The dashboard-shell tokens that have NO --fc- equivalent (badge/feedback colours,
   --fa-side-w) stay as his hex. Every fa- COMPONENT rule is byte-for-byte his. This file is
   LINKED after /css/forec.css (which defines the --fc-* tokens + @font-face) by the app pages. */

/* ==========================================================================
   ForeC app — shared styles (app.css)
   Source: Figma "GOOGING - general" (EdpRYLTLdr6uxXRJgNGtHf), page 62:2.
   Every page links this file. Page-only layout lives in a <style> block
   on the page itself. All classes start with "fa-" (ForeC app).

   Contents
     1. Fonts
     2. Tokens
     3. Base
     4. Buttons
     5. Inputs
     6. Auth layout (login / sign-up screens)
     7. Site nav
     8. Footer
     9. Company pages: page shell, toolbar, segmented control
    10. Product table
    11. Modal (pop-up windows)
    12. Utilities
   ========================================================================== */


/* 1. Fonts --------------------------------------------------------------- */


/* 2. Tokens -------------------------------------------------------------- */
:root {
  /* Brand (Figma "Color/Primary Brand/…") */
  --fa-ink: var(--fc-ink);            /* Midnight Ink Blue */
  --fa-ink-2: #0F1729;          /* auth panel + headings use this near-twin */
  --fa-accent: var(--fc-accent);         /* Spatial Orange */
  --fa-accent-hover: var(--fc-accent-hover);
  --fa-ground: var(--fc-ground);         /* Interface White */
  --fa-white: var(--fc-white);
  --fa-slate: var(--fc-slate);

  /* Neutrals */
  --fa-muted: var(--fc-muted);          /* Muted Tech Gray */
  --fa-muted-2: #63738C;        /* auth sub-copy */
  --fa-border: #E3E8F0;         /* input outline */
  --fa-border-gray: var(--fc-border);    /* Border Gray */
  --fa-row-line: #EDF2F5;       /* table rules */
  --fa-th-bg: #F7FAFC;
  --fa-on-dark: var(--fc-on-dark);
  --fa-note: #94A3B8;
  --fa-footer-note: var(--fc-footer-note);
  --fa-placeholder: #757575;
  --fa-n300: var(--fc-n300);
  --fa-n700: var(--fc-n700);

  /* Feedback */
  --fa-error-bg: #FFF2F2;
  --fa-error-line: #FFC9C9;
  --fa-error-text: #BA1C1C;

  /* Effects */
  --fa-shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);   /* Shadow/xs */
  --fa-shadow-nav: 0 0 20px rgba(0, 0, 0, .08);

  /* Type */
  --fa-sans: var(--fc-font-sans);
  --fa-serif: var(--fc-font-serif);
  --fa-inter: var(--fc-font-sans);

  /* Layout: 1440 frame with 98px side padding = 1244 content column */
  --fa-page-max: 1244px;
  --fa-gutter: clamp(16px, 0.2rem + 6.3vw, 98px);
}


/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fa-sans);
  font-optical-sizing: auto;
  color: var(--fa-ink);
  background: var(--fa-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--fa-accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.fa-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* 4. Buttons ------------------------------------------------------------- */
/* Figma "_Button base": 16/32 padding, 58px radius, ExtraBold 18 */
.fa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  border: 0; border-radius: 58px;
  font-family: var(--fa-sans); font-weight: 800; font-size: 18px;
  line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: var(--fa-shadow-xs);
  transition: background-color .15s, color .15s, border-color .15s;
}
.fa-btn--block { width: 100%; }
.fa-btn--accent { background: var(--fa-accent); color: var(--fa-white); }
.fa-btn--accent:hover { background: var(--fa-accent-hover); }
.fa-btn--ink { background: var(--fa-ink); color: var(--fa-white); }
.fa-btn--ink:hover { background: #1E293B; }
.fa-btn--white { background: var(--fa-white); color: var(--fa-ink); font-weight: 400; }
.fa-btn--white:hover { background: #F1F5F9; }
.fa-btn--sm { padding: 16px 24px; font-size: 14px; }
/* text-only link button ("Forgot Password", "Back to sign in") */
.fa-btn--link {
  background: none; box-shadow: none; color: var(--fa-accent);
  font-weight: 300; font-size: 13px; letter-spacing: 0;
}
.fa-btn--link:hover { text-decoration: underline; }

/* Social sign-in buttons use Inter Semi Bold 16 */
.fa-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px;
  background: var(--fa-white); border: 1px solid var(--fa-n300); border-radius: 999px;
  box-shadow: var(--fa-shadow-xs);
  font-family: var(--fa-inter); font-weight: 600; font-size: 16px; line-height: 1;
  color: var(--fa-n700);
}
.fa-social:hover { background: #FAFAFA; }
.fa-social img { width: 20px; height: 20px; }

/* Round icon buttons used in the product table and pop-ups */
.fa-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  padding: 0; border: 1px solid transparent; border-radius: 48px;
  background: transparent;
  transition: background-color .15s, border-color .15s;
}
.fa-icon-btn img { width: 14px; height: 14px; }
.fa-icon-btn:hover { background: #EEF2F6; }
.fa-icon-btn--outline { border-color: var(--fa-muted); }
.fa-icon-btn--accent { background: var(--fa-accent); box-shadow: var(--fa-shadow-xs); }
.fa-icon-btn--accent:hover { background: var(--fa-accent-hover); }
.fa-icon-btn--muted { background: var(--fa-muted); box-shadow: var(--fa-shadow-xs); }
.fa-icon-btn--muted:hover { background: #4B5768; }
.fa-icon-btn--white { width: 46px; height: 46px; background: var(--fa-white); box-shadow: var(--fa-shadow-xs); }


/* 5. Inputs -------------------------------------------------------------- */
/* Figma "input": white pill, 1px #E3E8F0, 16/24 padding, Regular 18 */
.fa-input {
  display: block; width: 100%;
  padding: 16px 24px;
  background: var(--fa-white);
  border: 1px solid var(--fa-border); border-radius: 9999px;
  font-family: var(--fa-sans); font-size: 18px; line-height: 1; color: #1E1E1E;
  appearance: none;
}
.fa-input::placeholder { color: var(--fa-placeholder); opacity: 1; }
.fa-input:focus { outline: none; border-color: var(--fa-accent); box-shadow: 0 0 0 3px rgba(255, 77, 0, .15); }
/* Pop-up fields are one step smaller: 14/24 padding, 16px text */
.fa-input--sm { padding: 14px 24px; font-size: 16px; color: #000; }

/* Select with the rotated "→" arrow from the design, drawn as an SVG chevron */
.fa-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' fill='none' stroke='%23757575' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 1v12M1 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  padding-right: 52px;
  cursor: pointer;
}
.fa-select:invalid { color: var(--fa-placeholder); }
.fa-select--chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}


/* 6. Auth layout --------------------------------------------------------- */
/* Two halves that wrap (Figma: flex-wrap, each half min-width 350). */
.fa-auth { display: flex; flex-wrap: wrap; min-height: 100vh; min-height: 100dvh; background: var(--fa-white); }
.fa-auth__side,
.fa-auth__main { flex: 1 1 350px; min-width: 350px; } /* equal basis, so unequal padding can't skew the 50/50 split */

.fa-auth__side {
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 42px;
  background: var(--fa-ink-2); color: var(--fa-white);
  overflow: hidden;
}
.fa-auth__copy { display: flex; flex-direction: column; gap: 20px; }
.fa-auth__headline {
  font-weight: 700;
  font-size: clamp(48px, 4.86vw, 70px);   /* 70 at 1440 */
  line-height: .9; letter-spacing: -0.045em;
}
.fa-auth__headline em {
  font-family: var(--fa-serif); font-style: italic; font-weight: 500;
  font-size: 1.06em;                       /* 74.2 / 70 */
  letter-spacing: -0.03em;
}
.fa-auth__lede { max-width: 440px; font-size: 15px; line-height: 1; color: var(--fa-on-dark); }
.fa-auth__legal { font-size: 12px; line-height: 1; color: var(--fa-note); }

.fa-auth__main {
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.fa-auth__main--accent { background: var(--fa-accent); }

.fa-auth__form {
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  width: 100%; max-width: 420px; padding-bottom: 12px;
}
.fa-auth__head { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: center; }
.fa-auth__title { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--fa-ink-2); }
.fa-auth__sub { font-size: 15px; line-height: 1; color: var(--fa-muted-2); }
.fa-auth__main--accent .fa-auth__sub { color: var(--fa-border-gray); }
.fa-auth__stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.fa-auth__divider { width: 100%; height: 1px; background: var(--fa-border); border: 0; margin: 0; }
.fa-auth__alt { width: 100%; text-align: center; font-size: 16px; line-height: 1; color: var(--fa-muted-2); }
.fa-auth__alt a { color: var(--fa-accent); }
.fa-auth__alt a:hover { text-decoration: underline; }
.fa-auth__main--accent .fa-auth__alt { color: var(--fa-ground); }
.fa-auth__main--accent .fa-auth__alt a { color: var(--fa-ink); }

.fa-notice-error {
  width: 100%; padding: 16px;
  background: var(--fa-error-bg); border: 1px solid var(--fa-error-line); border-radius: 9999px;
  font-size: 14px; line-height: 1; text-align: center; color: var(--fa-error-text);
}

/* Logo: two SVG parts, positioned exactly as the Figma "Full_Logo" (99.7 x 34) */
.fa-logo { position: relative; display: block; width: 99.732px; height: 34px; flex: none; }
.fa-logo img { position: absolute; max-width: none; }
.fa-logo__fore { left: 2.27px; top: 2.27px; width: 67.093px; height: 27.154px; }
.fa-logo__mark { left: 69.87px; top: 2.27px; width: 28.041px; height: 31.049px; }

/* Mobile auth (Figma 390 frames): panel on top, centred, smaller type */
@media (max-width: 739px) {
  .fa-auth__side { align-items: center; text-align: center; }
  .fa-auth__headline { font-size: 40px; letter-spacing: -0.05em; }
  .fa-auth__headline em { font-size: 1.25em; }  /* 50 / 40 */
  .fa-auth__legal { display: none; }
  .fa-auth__main { align-items: flex-start; padding: 42px 30px; }
  .fa-auth__title { font-size: 32px; }
}


/* 7. Site nav ------------------------------------------------------------ */
.fa-header { background: var(--fa-ground); padding: 24px var(--fa-gutter); }
.fa-nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--fa-page-max); margin: 0 auto;
  height: 72px; padding: 16px 16px 16px 32px;
  background: rgba(248, 250, 252, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 9999px;
  box-shadow: var(--fa-shadow-nav);
}
.fa-nav__links { display: flex; gap: 22px; align-items: center; font-size: 14px; line-height: 1; }
.fa-nav__links a { font-weight: 200; color: var(--fa-muted); white-space: nowrap; }
.fa-nav__links a:hover { color: var(--fa-ink); }
.fa-nav__links a[aria-current="page"] { font-weight: 600; color: var(--fa-accent); }
.fa-nav__actions { display: flex; align-items: center; gap: 24px; }
.fa-nav__icon { display: inline-flex; padding: 0; background: none; border: 0; }
.fa-nav__icon img { width: 17.5px; height: 17.5px; }
.fa-nav__flag img { width: 22px; height: 22px; }
.fa-nav__toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
  background: none; border: 0;
}
.fa-nav__toggle span,
.fa-nav__toggle span::before,
.fa-nav__toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fa-ink);
  position: relative; transition: transform .2s, background-color .2s;
}
.fa-nav__toggle span::before,
.fa-nav__toggle span::after { content: ""; position: absolute; left: 0; }
.fa-nav__toggle span::before { top: -6px; }
.fa-nav__toggle span::after { top: 6px; }
.fa-nav.is-open .fa-nav__toggle span { background: transparent; }
.fa-nav.is-open .fa-nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.fa-nav.is-open .fa-nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* No mobile nav in Figma: links move into a drop-down panel below 900px */
@media (max-width: 899px) {
  .fa-nav { height: 64px; padding: 12px 12px 12px 24px; gap: 12px; }
  .fa-nav__toggle { display: inline-flex; }
  .fa-nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px; border-radius: 24px;
    background: var(--fa-white); box-shadow: var(--fa-shadow-nav);
    display: none;
  }
  .fa-nav.is-open .fa-nav__links { display: flex; }
  .fa-nav__links a { padding: 14px 16px; font-size: 16px; border-radius: 16px; }
  .fa-nav__links a:hover { background: var(--fa-ground); }
  .fa-nav__actions { gap: 16px; margin-left: auto; }
}
@media (max-width: 479px) {
  .fa-nav__actions .fa-btn { display: none; }
}


/* 8. Footer -------------------------------------------------------------- */
.fa-footer {
  position: relative; overflow: hidden;
  padding: 52px clamp(20px, 4.4vw, 64px) 25px;
  background: var(--fa-ink);
  border-radius: 40px 40px 0 0;
  color: var(--fa-muted);
}
.fa-footer__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 64px; }
.fa-footer__cols { display: flex; justify-content: space-between; gap: 40px 24px; flex-wrap: wrap; }
.fa-footer__brand { display: flex; flex-direction: column; gap: 18px; padding-bottom: 12px; }
.fa-footer__logo { position: relative; width: 161px; height: 54.886px; }
.fa-footer__logo img { position: absolute; max-width: none; }
.fa-footer__logo .fore { left: 3.66px; top: 3.66px; width: 108.309px; height: 43.836px; }
.fa-footer__logo .mark { left: 112.78px; top: 3.22px; width: 45.268px; height: 50.566px; }
.fa-footer__tag { font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; }
.fa-footer__col { display: flex; flex-direction: column; gap: 16px; min-width: 123px; }
.fa-footer__col h4 { margin: 0; font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: -0.03em; color: var(--fa-white); }
.fa-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fa-footer__col a { font-size: 12px; line-height: 1.2; letter-spacing: -0.03em; }
.fa-footer__col a:hover { color: var(--fa-white); }
.fa-footer__bottom {
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13);
  text-align: center; font-size: 11px; line-height: 16.5px; letter-spacing: -0.03em; color: var(--fa-footer-note);
}
/* Coby peeking in from the bottom-left corner (Figma: 223x254 at -35/140) */
.fa-footer__coby {
  position: absolute; left: -35px; top: 140px; z-index: 0;
  width: 223px; height: 254px; object-fit: cover; pointer-events: none;
}
@media (max-width: 899px) {
  .fa-footer__cols { justify-content: flex-start; }
  .fa-footer__brand { flex-basis: 100%; }
  .fa-footer__col { flex: 1 1 140px; }
  .fa-footer__coby { top: auto; bottom: -60px; left: auto; right: -40px; width: 160px; height: 182px; opacity: .9; transform: scaleX(-1); }
}


/* 9. Company pages ------------------------------------------------------- */
.fa-page { background: var(--fa-ground); padding: 40px var(--fa-gutter); }
.fa-page__inner { max-width: var(--fa-page-max); margin: 0 auto; display: flex; flex-direction: column; gap: 50px; }

.fa-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }

/* Figma "Button group": joined pill, Inter Semi Bold 14 */
.fa-seg {
  display: inline-flex; overflow: hidden; border-radius: 68px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .05));
}
.fa-seg > * {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px; border: 0; border-right: 1px solid var(--fa-ground);
  background: var(--fa-white); color: var(--fa-ink);
  font-family: var(--fa-inter); font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap;
}
.fa-seg > :first-child { padding-left: 32px; }
.fa-seg > :last-child { padding-right: 32px; border-right: 0; }
.fa-seg > [aria-pressed="true"],
.fa-seg > [aria-current="page"] { background: var(--fa-accent); color: var(--fa-white); }
.fa-seg > :not([aria-pressed="true"]):not([aria-current="page"]):hover { background: #F1F5F9; }


/* 10. Product table ------------------------------------------------------ */
.fa-table { width: 100%; border-collapse: collapse; }
.fa-table th {
  padding: 15px 16px; text-align: left;
  background: var(--fa-th-bg); border-bottom: 1px solid var(--fa-row-line);
  font-size: 10px; font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--fa-muted);
}
.fa-table td { height: 75px; padding: 16px; border-bottom: 1px solid var(--fa-row-line); vertical-align: middle; }
.fa-table .col-product { width: 350px; }
.fa-table .col-cat { width: 150px; font-size: 11px; line-height: 1; color: var(--fa-muted); }
.fa-table .col-actions { text-align: right; }

.fa-prod { display: flex; align-items: center; gap: 10px; }
.fa-prod__thumb { position: relative; width: 40px; height: 40px; flex: none; }
.fa-prod__thumb > img:first-child { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
/* "In review" rows: orange wash over the thumb + Coby with magnifier */
.fa-prod__thumb--review::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: rgba(255, 77, 0, .1); }
.fa-prod__badge { position: absolute; left: -11px; top: 19px; width: 27px; height: 25px; z-index: 1; }
.fa-prod__text { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 1; white-space: nowrap; }
.fa-prod__name { font-weight: 700; color: var(--fa-ink-2); }
.fa-prod__sku { color: var(--fa-muted); }

.fa-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.fa-pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 32px; border-radius: 48px;
  font-family: var(--fa-sans); font-size: 18px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
}
.fa-pill-btn--outline { background: transparent; border: 1px solid var(--fa-muted); color: var(--fa-muted); cursor: default; }
.fa-pill-btn--accent { background: var(--fa-accent); border: 0; color: var(--fa-ground); box-shadow: var(--fa-shadow-xs); }
.fa-pill-btn--accent:hover { background: var(--fa-accent-hover); }

/* Visibility switch: one round button that opens a 3-option vertical stack
   (Figma row 2 shows it open: Public / Private / Request access). */
.fa-vis { position: relative; width: 40px; height: 40px; flex: none; }
.fa-vis__menu {
  position: absolute; left: 0; top: 50%; z-index: 5;
  display: flex; flex-direction: column; width: 40px;
  transform: translateY(-50%);
  border-radius: 48px; overflow: hidden; box-shadow: 0 4px 16px rgba(15, 23, 42, .18);
}
.fa-vis__menu[hidden] { display: none; }
.fa-vis__menu button {
  display: flex; align-items: center; justify-content: center;
  height: 38px; padding: 0; border: 0; background: var(--fa-muted);
}
.fa-vis__menu button[aria-checked="true"] { background: var(--fa-accent); }
.fa-vis__menu button:hover { filter: brightness(1.1); }
.fa-vis__menu img { width: 14px; height: 14px; }

/* Table → cards below 1100px (design is desktop-only; actions need the room) */
@media (max-width: 1099px) {
  .fa-table, .fa-table tbody, .fa-table tr, .fa-table td { display: block; width: 100%; }
  .fa-table thead { display: none; }
  .fa-table tr {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
    padding: 16px; margin-bottom: 12px;
    background: var(--fa-white); border: 1px solid var(--fa-row-line); border-radius: 24px;
  }
  .fa-table td { height: auto; padding: 0; border: 0; }
  .fa-table .col-product { width: auto; }
  .fa-table .col-cat { width: auto; text-align: right; }
  .fa-table .col-cat:empty::before, .fa-table .col-cat[data-empty]::before { content: "No catalogue"; }
  .fa-table .col-actions { grid-column: 1 / -1; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--fa-row-line); text-align: left; }
  .fa-actions { justify-content: flex-start; }
}
@media (max-width: 479px) {
  .fa-pill-btn { padding: 0 20px; font-size: 16px; }
  .fa-prod__text { white-space: normal; }
}


/* 11. Modal (pop-up windows) -------------------------------------------- */
/* Figma pop-ups: 865 wide, #F8FAFC, 40px radius, 32px padding */
.fa-modal {
  width: min(865px, calc(100vw - 32px));
  max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 32px;
  border: 0; border-radius: 40px;
  background: var(--fa-ground); color: var(--fa-ink);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .25);
}
.fa-modal::backdrop { background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.fa-modal[open] { animation: fa-pop .18s ease-out; }
@keyframes fa-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.fa-modal__body { display: flex; flex-direction: column; gap: 20px; }
.fa-modal__field { display: flex; flex-direction: column; gap: 16px; }
.fa-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fa-modal__title { font-size: 20px; font-weight: 800; line-height: 18.6px; color: var(--fa-ink-2); }
.fa-modal__row { display: flex; gap: 10px; }
.fa-modal__row > .fa-btn { flex: 1 1 0; min-width: 0; }
.fa-modal__inline { display: flex; gap: 16px; align-items: stretch; }
.fa-modal__inline > .fa-input { flex: 1 1 0; min-width: 0; }
.fa-modal__code {
  width: 100%; min-height: 72px; padding: 14px 24px;
  background: var(--fa-white); border: 1px solid var(--fa-border); border-radius: 24px;
  font-family: var(--fa-sans); font-size: 16px; line-height: 1.25; color: #000;
  resize: none; overflow-wrap: anywhere; field-sizing: content;
}
.fa-modal__qr { display: flex; gap: 20px; align-items: stretch; }
.fa-modal__qr-box {
  width: 140px; height: 140px; flex: none; padding: 10px;
  background: var(--fa-white); border: 1px solid var(--fa-border); border-radius: 24px;
}
.fa-modal__qr-box canvas, .fa-modal__qr-box img { width: 100%; height: 100%; image-rendering: pixelated; }
.fa-modal__qr-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.fa-modal__extra { align-self: flex-start; padding: 0 8px; font-size: 14px; color: var(--fa-accent); background: none; border: 0; }
.fa-modal__extra:hover { text-decoration: underline; }
.fa-modal__status { min-height: 1em; font-size: 13px; color: #10B981; text-align: right; }

@media (max-width: 599px) {
  .fa-modal { padding: 24px; border-radius: 28px; }
  .fa-modal__row, .fa-modal__inline { flex-direction: column; }
  .fa-modal__qr { flex-direction: column; align-items: center; }
  .fa-modal__qr-side { width: 100%; }
  .fa-modal__qr-side .fa-modal__head { order: -1; }
  .fa-btn { padding: 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .fa-modal[open] { animation: none; }
  * { transition: none !important; }
}


/* 12. Utilities ---------------------------------------------------------- */
.fa-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px;
  background: var(--fa-ink); color: var(--fa-white); font-size: 14px;
  transition: opacity .2s, transform .2s;
}
.fa-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }


/* ==========================================================================
   13. Dashboard shell (Figma page 62:2, 154:* frames, Nov 2026 redesign)
   Sidebar "Admin Panel Bar" + white main column + footer below.
   The sidebar markup is drawn by app.js from body[data-role] / ?role=admin,
   so Company and Admin share every page that looks the same for both.
   ========================================================================== */
:root {
  --fa-panel: var(--fc-ground);          /* "Section" cards */
  --fa-tab-track: #EDF2F5;      /* pill tab track */
  --fa-label: #8A94A4;          /* uppercase column heads */
  --fa-sub: #8993A2;            /* card sub-copy */
  --fa-field-text: #344054;
  --fa-stat-label: #667085;
  --fa-up: #169B62;
  --fa-ok-bg: #E8F6EF;  --fa-ok-text: #178052;
  --fa-warn-bg: #FFF5DF; --fa-warn-text: #A56B0C;
  --fa-role-bg: #FFF0E9; --fa-role-text: #C64A18;
  --fa-neutral-bg: #EEF1F5; --fa-neutral-text: #536174;
  --fa-initials-bg: #FCE9E1; --fa-initials-text: #B94718;
  --fa-side-w: 229px;
}

.fa-dash { display: flex; align-items: stretch; min-height: 100vh; background: var(--fa-white); }

/* Sidebar */
.fa-side {
  flex: none; width: var(--fa-side-w);
  padding: 20px 0 20px 32px;
  background: var(--fa-ground);
  box-shadow: 0 10px 10px rgba(0, 0, 0, .02);
}
.fa-side__inner { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.fa-side__logo { position: relative; display: block; width: 93px; height: 31.7px; }
.fa-side__logo img { position: absolute; max-width: none; }
.fa-side__logo .fore { left: 2.12px; top: 2.12px; width: 62.56px; height: 25.32px; }
.fa-side__logo .mark { left: 65.15px; top: 2.12px; width: 26.15px; height: 28.95px; }
.fa-side__tabs {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 0 8px 8px;
  background: var(--fa-white); border-radius: 24px 0 0 24px;
}
.fa-side__who {
  display: flex; align-items: center; gap: 10px; padding-right: 20px;
  border-radius: 9999px 0 0 9999px;
}
.fa-side__who img {
  width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover;
  border: .6px solid var(--fa-white);
  box-shadow: 0 1.8px 2.4px -.6px rgba(0, 0, 0, .08), 0 .6px .9px -.3px rgba(0, 0, 0, .03);
}
.fa-side__who b { display: block; font-size: 14px; line-height: 1; color: var(--fa-ink); white-space: nowrap; }
.fa-side__who i { display: block; margin-top: 5px; font-size: 10px; line-height: 1; color: var(--fa-muted); }
.fa-side__link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px 0 0 999px;
  font-size: 12px; line-height: 1; color: var(--fa-muted); white-space: nowrap;
}
.fa-side__link:hover { color: var(--fa-ink); }
.fa-side__who[aria-current="page"],
.fa-side__link[aria-current="page"] { background: linear-gradient(90deg, var(--fa-ground) 62.67%, var(--fa-white)); }
.fa-side__link[aria-current="page"] { font-weight: 700; color: var(--fa-ink); }
.fa-side__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 14px; height: 14px; margin-left: -18px; padding: 0 3px;
  border-radius: 99px; background: var(--fa-accent); color: var(--fa-white);
  font-size: 8px; font-weight: 700; line-height: 1;
}
.fa-side__tabs .fa-sbtn { margin-right: 8px; }

/* Small 12px buttons used across the dashboard (Figma "_Button base", 12/32) */
.fa-sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 32px; border: 1px solid transparent; border-radius: 58px;
  font-family: var(--fa-sans); font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap; box-shadow: var(--fa-shadow-xs);
  transition: background-color .15s, color .15s, border-color .15s;
}
.fa-sbtn img { width: 10px; height: 10px; }
.fa-sbtn--accent { background: var(--fa-accent); color: var(--fa-white); }
.fa-sbtn--accent:hover { background: var(--fa-accent-hover); }
.fa-sbtn--outline { background: var(--fa-ground); border-color: var(--fa-ink); color: var(--fa-ink); }
.fa-sbtn--outline:hover { background: var(--fa-white); }
.fa-sbtn--ghost { background: transparent; box-shadow: none; color: var(--fa-ink); }
.fa-sbtn--ghost:hover { background: var(--fa-white); }
.fa-sbtn--block { width: 100%; }

/* Main column */
.fa-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 20px 20px 40px; }
.fa-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  min-height: 62px; padding: 12px 16px 12px 26px;
  background: var(--fa-ground); border-radius: 999px;
}
.fa-bar__title { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -1.1px; color: var(--fa-ink); }
.fa-bar__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fa-back { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--fa-muted); }
.fa-back::before { content: ""; width: 6px; height: 6px; border-left: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); }
.fa-back:hover { color: var(--fa-ink); }
.fa-content { display: flex; flex-direction: column; gap: 20px; padding: 20px 12px 0; }
.fa-mob-toggle { display: none; }

/* Pill tabs (Figma "tabs": #EDF2F5 track, white active pill) */
.fa-tabs { display: inline-flex; flex-wrap: wrap; gap: 5px; padding: 5px; border-radius: 22.3px; background: var(--fa-tab-track); align-self: flex-start; }
.fa-tabs > * {
  padding: 8px 24px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--fa-sans); font-size: 12px; line-height: 1; color: var(--fa-muted-2); white-space: nowrap;
}
.fa-tabs > :hover { color: var(--fa-ink); }
.fa-tabs > [aria-current="page"], .fa-tabs > [aria-pressed="true"], .fa-tabs > [aria-selected="true"] {
  background: var(--fa-white); color: var(--fa-ink-2); font-weight: 800;
}

/* Panels ("Section" cards) */
.fa-panel { display: flex; flex-direction: column; gap: 20px; padding: 22px; background: var(--fa-panel); border-radius: 20px; min-width: 0; }
.fa-panel--white { background: var(--fa-white); }
.fa-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fa-panel__title { font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: -0.35px; color: var(--fa-ink); }
.fa-panel__sub { margin-top: 8px; font-size: 11px; line-height: 1.2; color: var(--fa-sub); }
.fa-h1 { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -1.1px; color: var(--fa-ink); }
.fa-lede { margin-top: 12px; font-size: 13px; line-height: 1.3; color: var(--fa-muted); }
.fa-intro { padding: 0 20px; }
.fa-grid { display: grid; gap: 20px; }
.fa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fa-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Stat tiles */
.fa-stat { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--fa-panel); border-radius: 18px; text-align: center; }
.fa-panel .fa-stat { background: var(--fa-white); }
.fa-stat__label { font-size: 12px; font-weight: 700; line-height: 1; color: var(--fa-stat-label); }
.fa-stat__value { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.9px; color: var(--fa-ink); }
.fa-stat__note { font-size: 12px; line-height: 1; color: var(--fa-up); }
.fa-stat--dim .fa-stat__label { color: #C3C9D2; }

/* Trend chart (3 SVG layers from Figma, stretched to the panel width) */
.fa-chart { position: relative; height: 161px; }
.fa-chart img { position: absolute; max-width: none; }
.fa-chart .grid { left: 4.52%; right: 3.23%; top: 13.16%; bottom: 15.79%; width: 92.25%; height: 71.05%; }
.fa-chart .views { left: 4.52%; right: 3.23%; top: 15.79%; width: 92.25%; height: 60.53%; }
.fa-chart .ar { left: 4.52%; right: 3.23%; top: 56.84%; width: 92.25%; height: 27.37%; }
.fa-chart__x { position: absolute; left: 4.52%; right: 3.23%; bottom: 2.7%; display: flex; font-family: var(--fa-inter); font-size: 8.5px; color: var(--fa-sub); }
.fa-chart__x span { flex: 1 1 0; }
.fa-legend { display: flex; gap: 18px; font-size: 11px; color: #7B8493; }
.fa-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fa-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fa-accent); }
.fa-legend span + span::before { background: #9AA4B2; }

/* Data list: header row + white rounded rows (Figma "Header → Row" / "Row") */
.fa-dl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fa-dl__head, .fa-dl__row { display: flex; align-items: stretch; }
.fa-dl__head > * {
  flex: 1 1 0; min-width: 0; padding: 10px 12px;
  font-size: 10px; font-weight: 700; line-height: 1.2; letter-spacing: .8px; text-transform: uppercase; color: var(--fa-label);
}
.fa-dl__body { display: flex; flex-direction: column; gap: 5px; }
.fa-dl__row { background: var(--fa-white); border-radius: 20px; }
.fa-panel--white .fa-dl__row { background: var(--fa-panel); }
.fa-dl__row > * {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px;
  font-size: 12px; line-height: 1.2; color: var(--fa-ink);
}
.fa-dl .wide { flex-basis: 300px; flex-grow: 1.6; }
.fa-dl .end { justify-content: flex-end; text-align: right; }
.fa-dl .strong { font-weight: 700; font-size: 14px; }
.fa-dl__row--plain > * { padding: 12px 12px; }

.fa-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fa-person > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fa-person b { font-size: 14px; line-height: 1; color: var(--fa-ink); }
.fa-person small { font-size: 10px; line-height: 1; color: var(--fa-sub); }
.fa-initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none; border-radius: 17px;
  background: var(--fa-initials-bg); color: var(--fa-initials-text); font-size: 12px; font-weight: 700; line-height: 1;
}

/* Badges */
.fa-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.fa-badge--ok { background: var(--fa-ok-bg); color: var(--fa-ok-text); }
.fa-badge--warn { background: var(--fa-warn-bg); color: var(--fa-warn-text); }
.fa-badge--role { padding: 8px 14px; background: var(--fa-role-bg); color: var(--fa-role-text); }
.fa-badge--neutral { padding: 8px 14px; background: var(--fa-neutral-bg); color: var(--fa-neutral-text); }
.fa-badge--lg { padding: 6px 12px; }
.fa-badge img { width: 9px; height: 9px; }

/* Visibility stack shown open in the Figma rows (globe over lock) */
.fa-icon-btn--stack-top { border-radius: 48px 48px 0 0; height: 38px; }

/* Form fields (12px pill inputs on profile / settings / edit pages) */
.fa-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.fa-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fa-field--full { grid-column: 1 / -1; }
.fa-field > label, .fa-field > .fa-field__label { font-size: 11px; font-weight: 700; line-height: 1; color: var(--fa-muted); }
.fa-in {
  width: 100%; padding: 12px 24px;
  background: var(--fa-white); border: 1px solid var(--fa-border); border-radius: 9999px;
  font-family: var(--fa-sans); font-size: 12px; line-height: 1.2; color: var(--fa-field-text);
  appearance: none;
}
.fa-in:focus { outline: none; border-color: var(--fa-accent); box-shadow: 0 0 0 3px rgba(255, 77, 0, .15); }
.fa-in.fa-select { background-position: right 20px center; padding-right: 44px; }

/* Check rows (settings) */
.fa-check {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--fa-white); border-radius: 16px; cursor: pointer;
}
.fa-check b { display: block; font-size: 12px; line-height: 1.1; color: var(--fa-ink); }
.fa-check small { display: block; margin-top: 4px; font-size: 9px; line-height: 1.2; color: var(--fa-sub); }
.fa-check input {
  appearance: none; flex: none; width: 14px; height: 14px; margin: 0;
  border: 1px solid #C3C9D2; border-radius: 3px; background: var(--fa-white); cursor: pointer;
}
.fa-check input:checked {
  border-color: var(--fa-accent);
  background: var(--fa-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none' stroke='%23FF4D00' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4l2.6 2.6L9 1'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.fa-note-warn { padding: 12px 16px; border-radius: 16px; background: #FFF1EA; font-size: 11px; color: #9A3A12; }

/* Responsive shell: sidebar collapses into a top bar + drawer */
@media (max-width: 1100px) {
  .fa-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fa-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .fa-dash { flex-direction: column; }
  .fa-side { width: auto; padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
  .fa-side__inner { position: static; flex-direction: row; align-items: center; justify-content: space-between; }
  .fa-mob-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid var(--fa-ink); border-radius: 50%; background: var(--fa-white);
  }
  .fa-mob-toggle span, .fa-mob-toggle span::before, .fa-mob-toggle span::after {
    display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--fa-ink); position: relative;
  }
  .fa-mob-toggle span::before, .fa-mob-toggle span::after { content: ""; position: absolute; left: 0; }
  .fa-mob-toggle span::before { top: -5px; } .fa-mob-toggle span::after { top: 5px; }
  .fa-side__tabs {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 4px);
    padding: 8px; border-radius: 24px; box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  }
  .fa-side.is-open .fa-side__tabs { display: flex; }
  .fa-side__tabs .fa-sbtn { margin-right: 0; }
  .fa-side__who, .fa-side__link { border-radius: 999px; }
  .fa-main { padding: 16px 16px 32px; }
  .fa-content { padding: 8px 0 0; }
  .fa-grid--2, .fa-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .fa-fields { grid-template-columns: minmax(0, 1fr); }
  .fa-bar { border-radius: 28px; padding: 12px 16px; }
  .fa-dl__head { display: none; }
  .fa-dl__row { flex-wrap: wrap; padding: 6px; }
  .fa-dl__row > * { flex: 1 1 40%; padding: 6px 8px; }
  .fa-dl__row > .wide { flex-basis: 100%; }
  .fa-dl__row > .end { justify-content: flex-start; text-align: left; }
  .fa-dl__row > .end:last-child { flex-basis: 100%; justify-content: flex-end; }
}
@media (max-width: 559px) {
  .fa-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .fa-stat__value { font-size: 32px; }
  .fa-h1 { font-size: 26px; }
}

/* Role switches: pages both roles share hide the other role's bits */
body[data-role="admin"] .fa-only-company { display: none !important; }
body:not([data-role="admin"]) .fa-only-admin { display: none !important; }
