/* FoodBooth — design tokens and components from the approved screens (design/*.dc.html).
   No inline styles anywhere in the views: the CSP forbids them, so every look lives here. */
:root {
  --fb-paper: #FBFAF7;
  --fb-surface: #FFFFFF;
  --fb-ink: #14120F;
  --fb-ink-2: #57514A;
  --fb-ink-3: #8C857B;
  --fb-line: #E8E3DA;
  --fb-line-2: #F2EEE7;
  --fb-brand: #0E5C55;
  --fb-brand-2: #0A423D;
  --fb-brand-soft: #E8F1EF;
  --fb-pos: #1A7A4C;
  --fb-pos-soft: #E7F4EC;
  --fb-neg: #B23A2E;
  --fb-neg-soft: #FBECEA;
  --fb-warn: #A9720B;
  --fb-warn-soft: #FDF6E7;
  --fb-dark: #1A1714;
  --fb-dark-2: #2A2622;
  --fb-radius: 12px;
  --fb-radius-sm: 8px;

  --bs-body-bg: var(--fb-paper);
  --bs-body-color: var(--fb-ink);
  --bs-body-font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --bs-body-font-size: 0.9375rem;
  --bs-link-color: var(--fb-brand);
  --bs-link-color-rgb: 14, 92, 85;
  --bs-link-hover-color: var(--fb-brand-2);
  --bs-link-hover-color-rgb: 10, 66, 61;
  --bs-border-color: var(--fb-line);
  --bs-border-radius: var(--fb-radius-sm);
  --bs-focus-ring-color: rgba(14, 92, 85, .25);
}

html, body { min-height: 100%; }
body { background: var(--fb-paper); }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--fb-brand); outline-offset: 2px; }
code, .fb-code { font-size: .8125rem; color: var(--fb-ink-2); background: var(--fb-line-2); padding: 1px 6px; border-radius: 5px; }

/* Figures line up in columns — every money column in the product depends on this. */
.fb-num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fb-muted { color: var(--fb-ink-3); }
.fb-nowrap { white-space: nowrap; }
.fb-optional { font-weight: 400; color: var(--fb-ink-3); font-size: .8125rem; }
.fb-text-warn { color: var(--fb-warn); }

/* ---------- buttons ---------- */
.btn { font-weight: 600; border-radius: var(--fb-radius-sm); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.fb-btn-primary { background: var(--fb-brand); border: 1px solid var(--fb-brand); color: #fff; padding: 9px 18px; }
.fb-btn-primary:hover, .fb-btn-primary:focus-visible { background: var(--fb-brand-2); border-color: var(--fb-brand-2); color: #fff; }
.fb-btn-secondary { background: var(--fb-surface); border: 1px solid var(--fb-line); color: var(--fb-ink); padding: 9px 16px; }
.fb-btn-secondary:hover { border-color: var(--fb-brand); color: var(--fb-brand); background: var(--fb-surface); }
.fb-btn-dark { background: var(--fb-dark); border: 1px solid var(--fb-dark); color: #fff; padding: 9px 18px; }
.fb-btn-dark:hover { background: #000; color: #fff; }
.fb-btn-danger { background: var(--fb-neg); border: 1px solid var(--fb-neg); color: #fff; padding: 9px 18px; }
.fb-btn-danger:hover { background: #8f2d23; color: #fff; }
.fb-btn-ghost-danger { background: transparent; border: 1px solid transparent; color: var(--fb-neg); padding: 9px 12px; }
.fb-btn-ghost-danger:hover { background: var(--fb-neg-soft); color: var(--fb-neg); }
.btn-sm { padding: 5px 11px; font-size: .8125rem; }
.fb-link-danger { color: var(--fb-neg); font-weight: 500; font-size: .875rem; text-decoration: none; }
.fb-link-danger:hover { color: #8f2d23; }

/* ---------- app shell: sidebar + main column ---------- */
.fb-shell { display: flex; min-height: 100vh; }
/* Bootstrap forces .offcanvas-lg transparent from lg up (!important), hence the !important here. */
.fb-side { width: 248px; flex-shrink: 0; background: var(--fb-surface) !important; border-inline-end: 1px solid var(--fb-line); padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 992px) {
  .fb-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.fb-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fb-side-brand { display: flex; align-items: center; gap: 10px; color: var(--fb-ink); padding: 0 6px; min-width: 0; }
.fb-side-brand:hover { text-decoration: none; color: var(--fb-ink); }
.fb-side-mark { color: var(--fb-brand); flex-shrink: 0; }
.fb-side-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.fb-side-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.fb-side-company { font-size: .75rem; font-weight: 600; color: var(--fb-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-nav { display: flex; flex-direction: column; gap: 2px; }
.fb-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--fb-radius-sm); color: var(--fb-ink-2); font-weight: 500; }
.fb-nav-item:hover { background: var(--fb-line-2); color: var(--fb-ink); text-decoration: none; }
.fb-nav-item.is-active { background: var(--fb-brand); color: #fff; font-weight: 600; }
.fb-side-note { margin-top: auto; font-size: .75rem; line-height: 1.7; color: var(--fb-ink-3); padding: 0 6px; }

.fb-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fb-appbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: var(--fb-surface); border-bottom: 1px solid var(--fb-line); position: sticky; top: 0; z-index: 20; }
.fb-appbar-company { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.fb-appbar-company-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-appbar-switch { font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.fb-appbar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.fb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius-sm); background: var(--fb-surface); color: var(--fb-ink); }
.fb-content { flex: 1; padding: 28px; max-width: 1280px; width: 100%; }
@media (max-width: 575.98px) {
  .fb-appbar { padding: 10px 16px; }
  .fb-content { padding: 20px 16px; }
}

.fb-lang { margin: 0; }
.fb-lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--fb-ink-2); background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius-sm); cursor: pointer; }
.fb-lang-btn:hover { border-color: var(--fb-brand); color: var(--fb-brand); }

.fb-user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--fb-line); border-radius: 999px; background: var(--fb-surface); color: var(--fb-ink); font: inherit; font-size: .875rem; font-weight: 600; }
[dir="rtl"] .fb-user-btn { padding: 4px 4px 4px 8px; }
.fb-menu { min-width: 240px; border-color: var(--fb-line); border-radius: var(--fb-radius); box-shadow: 0 12px 32px rgba(20, 18, 15, .12); padding: 6px; }
.fb-menu .dropdown-item { display: flex; align-items: center; gap: 9px; border-radius: 6px; padding: 8px 10px; font-weight: 500; }
.fb-menu .dropdown-item:hover { background: var(--fb-line-2); }
.fb-menu-head { padding: 8px 10px 10px; }
.fb-menu-name { font-weight: 700; }
.fb-menu-email { font-size: .8125rem; color: var(--fb-ink-3); }
.fb-menu-role { font-size: .75rem; color: var(--fb-brand); font-weight: 600; margin-top: 2px; }

/* The platform owner inside a company: impossible to miss. */
.fb-owner-strip { display: flex; align-items: center; gap: 10px; padding: 9px 28px; background: var(--fb-dark); color: #F4EFE7; font-size: .875rem; font-weight: 500; }
.fb-owner-strip form { margin: 0; }
.fb-owner-strip-btn { background: #F4EFE7; color: var(--fb-dark); border: 0; border-radius: 6px; padding: 5px 12px; font: inherit; font-size: .8125rem; font-weight: 700; }

/* ---------- owner panel (dark) ---------- */
.fb-side-dark { background: var(--fb-dark) !important; border-color: var(--fb-dark); }
.fb-side-dark .fb-side-brand, .fb-side-dark .fb-side-name { color: #F4EFE7; }
.fb-side-dark .fb-side-mark, .fb-side-dark .fb-side-company { color: #7FD1C4; }
.fb-side-dark .fb-nav-item { color: #BDB5A9; }
.fb-side-dark .fb-nav-item:hover { background: var(--fb-dark-2); color: #fff; }
.fb-side-dark .fb-nav-item.is-active { background: var(--fb-dark-2); color: #fff; }
.fb-owner-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--fb-dark); background: var(--fb-line-2); padding: 4px 10px; border-radius: 999px; }

/* ---------- page head ---------- */
.fb-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fb-page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.fb-page-sub { color: var(--fb-ink-3); margin: 0; font-size: .875rem; max-width: 46rem; }
.fb-page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-page-actions form { margin: 0; }
.fb-back { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--fb-ink-3); margin-bottom: 10px; }
[dir="rtl"] .fb-back svg { transform: scaleX(-1); }
[dir="rtl"] .fb-choice-arrow { transform: scaleX(-1); }

/* ---------- cards ---------- */
.fb-card { background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); padding: 22px 24px; }
.fb-card-flush { padding: 0; overflow: hidden; }
.fb-card-narrow { max-width: 44rem; }
.fb-card-warn { border-color: #E9CF95; background: #FFFCF4; }
.fb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--fb-line); }
.fb-card-flush > .fb-card-head:last-child { border-bottom: 0; }
.fb-card-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.fb-card-head .fb-card-title { margin: 0; }
.fb-card-sub { color: var(--fb-ink-3); font-size: .8125rem; margin: 2px 0 0; }
.fb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--fb-line); background: var(--fb-paper); font-size: .8125rem; }
.fb-card-foot-quiet { background: var(--fb-surface); justify-content: flex-start; }
.fb-side-cards { display: flex; flex-direction: column; gap: 16px; }
.fb-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.fb-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fb-form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .fb-form-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

/* ---------- stats ---------- */
.fb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.fb-stat { background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: var(--fb-radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fb-stat-warn { border-color: #E9CF95; }
.fb-stat-label { font-size: .8125rem; color: var(--fb-ink-3); font-weight: 500; }
.fb-stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- tables ---------- */
.fb-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.fb-table th, .fb-table td { padding: 13px 24px; border-bottom: 1px solid var(--fb-line-2); vertical-align: middle; text-align: start; }
.fb-table thead th { background: var(--fb-paper); color: var(--fb-ink-3); font-weight: 500; font-size: .8125rem; border-bottom: 1px solid var(--fb-line); white-space: nowrap; }
.fb-table tbody tr:last-child > * { border-bottom: 0; }
.fb-table .text-end { text-align: end; }
.fb-table .text-center { text-align: center; }
.fb-row-muted > * { color: var(--fb-ink-3); }
.fb-row-note td { padding-top: 0; font-size: .8125rem; color: var(--fb-ink-3); }
.fb-row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.fb-row-actions form { margin: 0; }
.fb-audit-details { color: var(--fb-ink-2); font-size: .8125rem; max-width: 38rem; overflow-wrap: anywhere; }

/* brand × location matrix */
.fb-matrix th[scope="row"] { min-width: 220px; font-weight: 400; }
.fb-matrix td { min-width: 200px; }
.fb-matrix-loc { color: var(--fb-ink-2); font-weight: 600; }
.fb-brand-cell { display: flex; align-items: center; gap: 12px; color: var(--fb-ink); }
.fb-brand-cell:hover { text-decoration: none; }
.fb-brand-cell-name { font-weight: 700; }
.fb-cell { display: flex; flex-direction: column; gap: 7px; color: var(--fb-ink); padding: 4px 0; }
.fb-cell:hover { text-decoration: none; }
.fb-cell:hover .fb-cell-head { color: var(--fb-brand); }
.fb-cell.is-off { opacity: .6; }
.fb-cell-head { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .8125rem; }
.fb-cell-add { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1px dashed var(--fb-line); border-radius: var(--fb-radius-sm); background: transparent; color: var(--fb-ink-3); font: inherit; font-size: .8125rem; }
.fb-cell-add:hover { border-color: var(--fb-brand); color: var(--fb-brand); background: var(--fb-brand-soft); }
.fb-matrix form { margin: 0; }
.fb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.fb-dot-on { background: var(--fb-brand); }
.fb-dot-off { background: var(--fb-line); }
.fb-legend { display: flex; gap: 16px; font-size: .8125rem; color: var(--fb-ink-3); }
.fb-legend span { display: inline-flex; align-items: center; gap: 6px; }

.fb-matrix-roles th[scope="row"] { min-width: 280px; }
.fb-check { width: 1.15em; height: 1.15em; }
.fb-check:checked { background-color: var(--fb-brand); border-color: var(--fb-brand); }
.fb-check:disabled { opacity: 1; }
.fb-check:disabled:checked { background-color: #C9C2B6; border-color: #C9C2B6; }
.fb-check-demo { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #C9C2B6; vertical-align: -1px; }

/* ---------- small parts ---------- */
.fb-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.fb-chip { display: inline-block; font-size: .75rem; font-weight: 500; color: var(--fb-ink-2); background: var(--fb-line-2); border-radius: 5px; padding: 2px 8px; }
.fb-pill { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--fb-brand-soft); color: var(--fb-brand); white-space: nowrap; }
.fb-pill-pos { background: var(--fb-pos-soft); color: var(--fb-pos); }
.fb-pill-neg { background: var(--fb-neg-soft); color: var(--fb-neg); }
.fb-pill-warn { background: var(--fb-warn-soft); color: var(--fb-warn); }
.fb-pill-muted { background: var(--fb-line-2); color: var(--fb-ink-3); }
.fb-pill-dark { background: var(--fb-dark); color: #fff; }
.fb-role { display: inline-block; white-space: nowrap; font-size: .8125rem; font-weight: 600; border: 1px solid var(--fb-line); border-radius: 999px; padding: 3px 12px; background: var(--fb-surface); }
.fb-role-owner { background: var(--fb-ink); color: #fff; border-color: var(--fb-ink); }

.fb-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--fb-brand-soft); color: var(--fb-brand); font-weight: 700; font-size: .8125rem; }
.fb-avatar-sm { width: 30px; height: 30px; border-radius: 999px; font-size: .75rem; }
.fb-avatar-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.25rem; }
.fb-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--fb-line); background: #fff; }
.fb-logo-sm { width: 30px; height: 30px; border-radius: 8px; }
.fb-logo-lg { width: 96px; height: 96px; border-radius: 20px; }
.fb-logo-preview { display: flex; justify-content: center; padding: 8px 0 16px; }

.fb-person { display: flex; align-items: center; gap: 12px; }
.fb-person > span { display: flex; flex-direction: column; min-width: 0; }
.fb-person-name { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-person-email { font-size: .8125rem; color: var(--fb-ink-3); }
.fb-person-lg { gap: 16px; }
.fb-person-lg .fb-page-title { margin: 0; }
[dir="rtl"] .fb-person-email { text-align: end; }

.fb-flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--fb-radius-sm); margin-bottom: 18px; font-size: .875rem; font-weight: 500; }
.fb-flash-success { background: var(--fb-pos-soft); color: var(--fb-pos); }
.fb-flash-error { background: var(--fb-neg-soft); color: var(--fb-neg); }
.fb-note { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; padding: 10px 12px; border-radius: var(--fb-radius-sm); }
.fb-note-warn { background: var(--fb-warn-soft); color: var(--fb-warn); }
.fb-note-ok { background: var(--fb-pos-soft); color: var(--fb-pos); }

.fb-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 24px; color: var(--fb-ink-3); }
.fb-empty p { margin: 0; max-width: 32rem; }
.fb-empty-sm { padding: 22px 24px; }
.fb-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.fb-simple-list { list-style: none; margin: 0; padding: 0; }
.fb-simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--fb-line-2); font-size: .875rem; }
.fb-simple-list li:last-child { border-bottom: 0; }

.fb-progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 999px; background: var(--fb-line-2); overflow: hidden; margin: 8px 0; }
.fb-progress::-webkit-progress-bar { background: var(--fb-line-2); border-radius: 999px; }
.fb-progress::-webkit-progress-value { background: var(--fb-brand); border-radius: 999px; }
.fb-progress::-moz-progress-bar { background: var(--fb-brand); border-radius: 999px; }
.fb-card-head .fb-progress { width: 180px; margin: 0; }
.fb-meter-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-top: 6px; }

.fb-pager { display: flex; justify-content: space-between; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--fb-line-2); }
.fb-pager:empty { display: none; }

/* ---------- setup steps ---------- */
.fb-steps { list-style: none; margin: 0; padding: 0; }
.fb-step { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--fb-line-2); }
.fb-step:last-child { border-bottom: 0; }
.fb-step-mark { width: 24px; height: 24px; border-radius: 999px; border: 1.5px solid var(--fb-line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.fb-step.is-done .fb-step-mark { background: var(--fb-pos); border-color: var(--fb-pos); }
.fb-step-text { flex: 1; display: flex; flex-direction: column; }
.fb-step-name { font-weight: 600; }
.fb-step.is-done .fb-step-name { color: var(--fb-ink-3); text-decoration: line-through; text-decoration-color: var(--fb-line); }
.fb-step-hint { font-size: .8125rem; color: var(--fb-ink-3); }

/* ---------- outlets on the dashboard ---------- */
.fb-outlet-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; }
.fb-outlet-group { padding: 18px 24px; border-bottom: 1px solid var(--fb-line-2); border-inline-end: 1px solid var(--fb-line-2); }
.fb-outlet-group-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.fb-outlet-group-name { font-weight: 700; }
.fb-outlet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fb-outlet { display: flex; align-items: center; gap: 10px; font-size: .875rem; }
.fb-outlet.is-off { opacity: .55; }
.fb-outlet-name { font-weight: 600; }
.fb-outlet-channels { margin-inline-start: auto; font-size: .75rem; color: var(--fb-ink-3); white-space: nowrap; }

/* ---------- forms ---------- */
.fb-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.fb-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.fb-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fb-label { font-size: .875rem; font-weight: 600; color: var(--fb-ink); padding: 0; margin: 0; }
fieldset.fb-field { border: 0; padding: 0; }
legend.fb-label { float: none; width: auto; margin-bottom: 6px; }
.fb-hint { font-size: .8125rem; color: var(--fb-ink-3); line-height: 1.6; margin: 0; }
.fb-field-error { font-size: .8125rem; color: var(--fb-neg); font-weight: 500; }
.fb-field-error:empty { display: none; }
.form-control, .form-select { border-color: var(--fb-line); border-radius: var(--fb-radius-sm); padding: 9px 12px; font-size: .9375rem; }
.form-control:focus, .form-select:focus { border-color: var(--fb-brand); box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.form-control-sm, .form-select-sm { padding: 5px 10px; font-size: .8125rem; }
.form-check-input:checked { background-color: var(--fb-brand); border-color: var(--fb-brand); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); border-color: var(--fb-brand); }
.input-validation-error { border-color: var(--fb-neg); }
.fb-readonly { padding: 9px 12px; border-radius: var(--fb-radius-sm); background: var(--fb-line-2); color: var(--fb-ink-2); }
.fb-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fb-form-actions form { margin: 0; }

.fb-radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.fb-radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius-sm); cursor: pointer; }
.fb-radio-card:has(input:checked) { border-color: var(--fb-brand); background: var(--fb-brand-soft); }
.fb-radio-card input { margin-top: 4px; accent-color: var(--fb-brand); }
.fb-radio-card > span { display: flex; flex-direction: column; gap: 2px; }
.fb-toggle-card { border: 1px solid var(--fb-line); border-radius: var(--fb-radius-sm); padding: 14px 16px; }
.fb-toggle-card .form-check { margin-bottom: 6px; }
.fb-scope-pick { border: 1px solid var(--fb-line); border-radius: var(--fb-radius-sm); padding: 14px 16px; background: var(--fb-paper); }
.fb-scope-pick[hidden] { display: none; }

.fb-inline-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--fb-line); background: var(--fb-paper); margin: 0; }
.fb-inline-form .fb-field { flex: 1 1 180px; }
.fb-inline-form-tight { padding: 0; border: 0; background: transparent; align-items: center; }
.fb-inline-form-tight .form-control { width: 200px; }
.fb-inline-filter { display: flex; gap: 8px; margin: 0; }
.fb-search { position: relative; margin: 0; }
.fb-search svg { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 12px; color: var(--fb-ink-3); pointer-events: none; }
.fb-search .form-control { padding-inline-start: 36px; min-width: 260px; }

.fb-temp-password { border: 1px solid #E9CF95; background: #FFFCF4; border-radius: var(--fb-radius); padding: 18px 20px; margin-bottom: 20px; }
.fb-temp-password-head { display: flex; align-items: center; gap: 8px; color: var(--fb-warn); margin-bottom: 6px; }
.fb-temp-password p { font-size: .875rem; color: var(--fb-ink-2); }
.fb-temp-password-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fb-temp-password-value { font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; color: var(--fb-ink); background: #fff; border: 1px solid var(--fb-line); padding: 6px 14px; border-radius: var(--fb-radius-sm); user-select: all; }

/* ---------- sign-in and notices ---------- */
.fb-auth { background: var(--fb-paper); }
.fb-auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px; gap: 28px; }
.fb-auth-top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4vh; }
.fb-brand { display: flex; align-items: center; gap: 10px; color: var(--fb-ink); }
.fb-brand:hover { color: var(--fb-ink); text-decoration: none; }
.fb-brand-mark { color: var(--fb-brand); flex-shrink: 0; }
.fb-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.fb-brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.fb-brand-tag { font-size: .75rem; font-weight: 600; color: var(--fb-brand); }
.fb-lang-btn-quiet { background: transparent; }
.fb-auth-card { width: 100%; max-width: 440px; background: var(--fb-surface); border: 1px solid var(--fb-line); border-radius: 16px; padding: 30px 28px; box-shadow: 0 14px 40px rgba(20, 18, 15, .06); }
.fb-auth-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.fb-auth-lead { color: var(--fb-ink-2); font-size: .9375rem; line-height: 1.8; margin: 0 0 20px; }
.fb-auth-note { text-align: center; font-size: .8125rem; color: var(--fb-ink-3); margin: 18px 0 0; }
.fb-auth-section { border-top: 1px solid var(--fb-line-2); margin-top: 20px; padding-top: 18px; }
.fb-section-title { font-size: .9375rem; font-weight: 700; margin: 0 0 8px; }
.fb-auth-foot { font-size: .8125rem; color: var(--fb-ink-3); margin-top: auto; }
.fb-choice-list { display: flex; flex-direction: column; gap: 10px; }
.fb-choice-list form { margin: 0; }
.fb-choice { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius); background: var(--fb-surface); text-align: start; font: inherit; color: var(--fb-ink); }
.fb-choice:hover, .fb-choice.is-current { border-color: var(--fb-brand); background: var(--fb-brand-soft); }
.fb-choice-text { flex: 1; display: flex; flex-direction: column; }
.fb-choice-name { font-weight: 700; }
.fb-choice-meta { font-size: .8125rem; color: var(--fb-ink-3); display: flex; gap: 8px; align-items: center; }
.fb-choice-arrow { color: var(--fb-ink-3); }
