/* FoodPao Admin — local, buildless design system. No CDN or web fonts. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --fp-bg: #f5f7f8; --fp-surface: #fff; --fp-ink: #1e2d2b; --fp-muted: #63716f;
  --fp-line: #e3e9e7; --fp-brand: #bd461b; --fp-brand-dark: #9c3611;
  --fp-brand-soft: #fff0e7; --fp-nav: #172c27;
  --fp-ok: #216849; --fp-ok-bg: #eaf5ee; --fp-warn: #8a5913; --fp-warn-bg: #fff5df;
  --fp-bad: #ad3029; --fp-bad-bg: #fff0ee; --fp-radius: 16px;
  --fp-shadow: 0 3px 16px rgb(25 45 39 / .035); --fp-header-height: 80px;
}
html, body { margin: 0; padding: 0; }
.fp-body { background: var(--fp-bg); color: var(--fp-ink); font: 14px/1.6 system-ui, 'Segoe UI', Roboto, 'Noto Sans Bengali', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--fp-brand-dark); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #cf672d; outline-offset: 3px; }
.fp-skip { position: fixed; left: -9999px; z-index: 60; }
.fp-skip:focus { left: 12px; top: 12px; background: var(--fp-surface); padding: 10px 16px; border-radius: 8px; }
.fp-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.fp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; border: 1px solid #d5dfdb; border-radius: 9px; background: var(--fp-surface); color: var(--fp-ink); padding: 9px 15px; font: inherit; font-weight: 600; font-size: 13px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.fp-btn:hover:not(:disabled) { border-color: #aabdb5; background: #f7faf8; }
.fp-btn:disabled { opacity: .5; cursor: not-allowed; }
.fp-btn-primary { background: var(--fp-brand); border-color: var(--fp-brand); color: #fff; }
.fp-btn-primary:hover:not(:disabled) { background: var(--fp-brand-dark); border-color: var(--fp-brand-dark); }
.fp-btn-outline { background: transparent; }
.fp-btn-ghost { background: transparent; border-color: transparent; }
.fp-btn-block { display: flex; width: 100%; }
.fp-btn-sm { min-height: 34px; padding: 5px 11px; font-size: 12px; }
.fp-linklike { background: none; border: none; color: var(--fp-brand-dark); font: inherit; cursor: pointer; margin-top: 16px; text-align: left; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.fp-card { background: var(--fp-surface); border: 1px solid var(--fp-line); border-radius: var(--fp-radius); box-shadow: var(--fp-shadow); padding: 24px; margin-bottom: 20px; min-width: 0; overflow-wrap: anywhere; }
.fp-card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.fp-title { font-size: 32px; line-height: 1.2; letter-spacing: -.04em; margin: 10px 0 12px; }
.fp-h1 { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.035em; font-weight: 700; margin: 4px 0 10px; }
.fp-muted { color: var(--fp-muted); }
.fp-brand { color: var(--fp-brand); font-weight: 700; margin: 0; }
.fp-brandlock { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 750; line-height: 1.1; letter-spacing: -.05em; color: var(--fp-ink); text-decoration: none; flex-shrink: 0; }
.fp-brandmark { display: grid; place-items: center; background: #ed783b; color: #fff; width: 40px; height: 44px; border-radius: 13px 13px 13px 4px; }
.fp-brandmark .fp-icon { width: 27px; height: 27px; }
.fp-brand-caption { display: block; font-size: 9px; font-weight: 650; letter-spacing: .17em; margin-top: 6px; color: var(--fp-muted); }
.fp-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: var(--fp-brand-dark); font-weight: 750; }
.fp-field { margin-bottom: 20px; }
.fp-field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.fp-field input, .fp-field select,
.fp-order-filters input, .fp-order-filters select, .fp-order-filters textarea,
#fp-security-body input, #fp-settings-body input:not([type="checkbox"]), #fp-settings-body textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #ccd9d2; border-radius: 9px; color: var(--fp-ink); background: var(--fp-surface); font: inherit;
}
input:hover, select:hover, textarea:hover { border-color: #99afa3; }
input[type="checkbox"] { accent-color: var(--fp-brand); width: 17px; height: 17px; flex-shrink: 0; }
textarea { resize: vertical; min-height: 90px; }
.fp-error { color: var(--fp-bad); font-size: 13px; margin: 7px 0 0; }
.fp-error-box { background: var(--fp-bad-bg); border: 1px solid #f1ccc8; border-radius: 9px; padding: 11px 14px; margin-top: 14px; }
.fp-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.fp-check { display: flex; gap: 9px; align-items: center; font-size: 13px; }
.fp-code { display: block; word-break: break-all; background: #f4f7f5; border: 1px solid var(--fp-line); border-radius: 8px; padding: 11px 13px; font-size: 13px; white-space: pre-wrap; user-select: all; }
.fp-codes { columns: 2; margin: 0 0 10px; padding-left: 22px; }
.fp-codes li { font-family: ui-monospace, monospace; letter-spacing: .04em; margin-bottom: 8px; overflow-wrap: anywhere; }
.fp-kv { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 14px 20px; margin: 0; font-size: 13px; align-items: start; }
.fp-kv dt { color: var(--fp-muted); }
.fp-kv dd { margin: 0; overflow-wrap: anywhere; }
.fp-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; border-radius: 7px; padding: 4px 9px; font-size: 11px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.fp-chip-ok { color: var(--fp-ok); background: var(--fp-ok-bg); }
.fp-chip-warn { color: var(--fp-warn); background: var(--fp-warn-bg); }
.fp-chip-bad { color: var(--fp-bad); background: var(--fp-bad-bg); }
.fp-chip-muted { color: var(--fp-muted); background: #eff3f1; }
.fp-chiplist { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.fp-screen-state { color: var(--fp-muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.fp-skeleton-line { display: inline-block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #e5ece7 25%, #f4f7f5 45%, #e5ece7 65%); background-size: 200% 100%; animation: fp-shimmer 1.2s infinite linear; width: min(140px, 100%); }
@keyframes fp-shimmer { to { background-position: -200% 0; } }

/* Service messages and confirmations */
.fp-banner { position: relative; z-index: 35; background: var(--fp-warn-bg); color: #704a0e; border-bottom: 1px solid #efdfba; }
.fp-banner-inner { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 12px 20px; max-width: 1440px; margin: auto; }
.fp-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 10px; max-width: calc(100vw - 40px); }
.fp-toast { background: var(--fp-nav); color: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 8px 28px rgb(0 0 0 / .15); max-width: 360px; font-size: 13px; overflow-wrap: anywhere; }
.fp-toast[data-kind="bad"] { background: var(--fp-bad); }
.fp-toast[data-kind="ok"] { background: var(--fp-ok); }
.fp-toast small { opacity: .85; display: block; }
.fp-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgb(12 26 21 / .5); overflow-y: auto; }
.fp-modal .fp-card { width: min(460px, 100%); margin: auto; box-shadow: 0 24px 80px rgb(0 0 0 / .18); }
.fp-modal .fp-row { justify-content: flex-end; margin-bottom: 0; }

/* Sign in and authenticator screens */
.fp-auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
[data-fp-screen="login"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 24px; gap: 36px; background: #fff; }
.fp-auth-story { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; min-height: min(720px, calc(100vh - 48px)); padding: clamp(32px, 4vw, 64px); border-radius: 24px; background: var(--fp-nav); color: #fff; }
.fp-auth-story::after { content: ''; position: absolute; z-index: -1; width: 600px; height: 600px; right: -400px; top: 20%; border: 80px solid rgb(255 255 255 / .025); border-radius: 50%; box-shadow: 0 0 0 60px rgb(255 255 255 / .025), 0 0 0 120px rgb(255 255 255 / .025); pointer-events: none; }
.fp-auth-story .fp-brandlock { color: #fff; }
.fp-auth-story .fp-brand-caption { color: #a8bfb5; }
.fp-auth-intro { padding: 50px 0; max-width: 450px; }
.fp-auth-intro .fp-eyebrow { color: #ffa875; }
.fp-auth-intro h2 { font-size: clamp(30px, 3.3vw, 52px); line-height: 1.16; letter-spacing: -.045em; font-weight: 600; margin: 18px 0 24px; }
.fp-auth-intro > p:not(.fp-eyebrow) { color: #b7cbc2; max-width: 330px; font-size: 15px; }
.fp-auth-route { display: flex; align-items: center; gap: 0; margin-top: 36px; }
.fp-auth-route > span { display: grid; justify-items: center; gap: 10px; font-size: 11px; color: #d8e5df; }
.fp-auth-route > span + span::before { content: ''; position: absolute; width: 42px; height: 1px; background: #61766a; transform: translate(-59px, 21px); }
.fp-auth-route > span + span { margin-left: 64px; }
.fp-auth-route .fp-icon { padding: 12px; width: 48px; height: 48px; border: 1px solid #526a5e; border-radius: 14px; background: #243c31; }
.fp-auth-footnote { color: #a8bfb5; font-size: 11px; margin: 0; letter-spacing: .04em; }
.fp-auth-card { width: min(400px, 100%); padding: 24px; margin: 0; border: 0; box-shadow: none; }
.fp-auth-card > .fp-muted { margin: 0 0 30px; }
.fp-auth-card .fp-btn-primary { min-height: 48px; margin-top: 26px; }
.fp-auth-security { display: flex; gap: 9px; align-items: flex-start; color: var(--fp-muted); font-size: 11px; border-top: 1px solid var(--fp-line); margin: 28px 0 0; padding-top: 20px; }
.fp-auth-security .fp-icon { width: 16px; height: 16px; margin-top: 2px; }
.fp-auth-inline { min-height: auto; place-items: start center; align-content: start; }
.fp-auth-inline .fp-card { width: min(560px, 100%); }
.fp-shellhead { max-width: 1180px; margin: auto; padding: 40px 24px 0; display: grid; gap: 8px; }
.fp-shellhead .fp-btn { justify-self: start; }
.fp-shellhead h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; }

/* App shell and navigation */
.fp-topbar { position: sticky; top: 0; min-height: var(--fp-header-height); background: var(--fp-surface); border-bottom: 1px solid var(--fp-line); display: flex; align-items: center; gap: 20px; padding: 16px 28px; z-index: 30; }
.fp-topbar > .fp-brandlock { width: 214px; }
.fp-topbar-title { font-size: 11px; color: var(--fp-muted); margin-right: auto; border-left: 1px solid var(--fp-line); padding-left: 26px; }
.fp-topbar-title > span { display: block; color: var(--fp-ink); font-size: 13px; font-weight: 650; }
.fp-account-chip { border-radius: 30px; padding: 7px 12px; }
.fp-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--fp-header-height)); align-items: start; }
.fp-nav { position: sticky; top: var(--fp-header-height); height: calc(100vh - var(--fp-header-height)); overflow-y: auto; background: var(--fp-nav); padding: 24px 14px; display: flex; flex-direction: column; gap: 5px; color: #c3d3cb; scrollbar-width: thin; scrollbar-color: #526a5e var(--fp-nav); }
.fp-nav-heading { display: flex; align-items: center; justify-content: space-between; }
.fp-navhead { color: #99b1a5; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .16em; margin: 4px 16px 9px; }
.fp-navhead-second { margin-top: 23px; }
.fp-navitem { display: flex; align-items: center; flex-shrink: 0; gap: 12px; width: 100%; min-height: 43px; text-align: left; border: 1px solid transparent; background: transparent; font: inherit; font-size: 12px; padding: 11px 14px; border-radius: 9px; cursor: pointer; color: #c3d3cb; }
.fp-navitem .fp-icon { width: 18px; height: 18px; opacity: .85; }
.fp-navitem:hover { background: #253f34; color: #fff; }
.fp-navitem.is-active { background: #354638; color: #ffc193; border-color: #506045; font-weight: 650; }
.fp-navitem.is-active .fp-icon { opacity: 1; }
.fp-nav-soon { font-size: 9px; margin-left: auto; color: #bdcdc4; background: #2c4137; padding: 1px 5px; border-radius: 4px; font-weight: 400; }
.fp-nav-note { margin: auto 6px 0; padding: 30px 12px 8px; color: #a8bfb3; font-size: 10px; }
.fp-nav-note-icon { display: block; color: #f3ad7b; margin-bottom: 10px; }
.fp-nav-note strong { display: block; color: #d2e1d8; font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.fp-burger { display: none; }
.fp-nav-backdrop { position: fixed; inset: var(--fp-header-height) 0 0; background: rgb(12 26 21 / .45); border: 0; z-index: 39; cursor: pointer; }
.fp-main { padding: 32px clamp(22px, 3vw, 48px) 48px; min-width: 0; }
.fp-main > [data-fp-pane] { max-width: 1440px; margin-inline: auto; }
.fp-module-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.fp-module-header .fp-h1 { margin-bottom: 8px; }
.fp-module-header p { margin: 4px 0; }
.fp-module-header > .fp-chip { border: 1px solid var(--fp-line); background: #fff; }

/* Overview: useful entry points without fabricated operational figures */
.fp-welcome { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; border-radius: 20px; background: #203d31; color: #fff; padding: 34px 38px; margin-bottom: 32px; }
.fp-welcome .fp-eyebrow { color: #ffc193; margin: 0 0 14px; }
.fp-welcome h2 { font-size: clamp(27px, 2.8vw, 38px); font-weight: 600; letter-spacing: -.04em; line-height: 1.2; margin: 0 0 12px; }
.fp-welcome p:not(.fp-eyebrow) { color: #c0d3c8; font-size: 13px; max-width: 390px; margin: 0 0 24px; }
.fp-welcome .fp-btn-primary { background: #ffbd8d; border-color: #ffbd8d; color: #3b281b; }
.fp-welcome .fp-btn-primary:hover { background: #ffd1b0; border-color: #ffd1b0; }
.fp-welcome-art { position: relative; min-height: 200px; display: grid; place-items: center; }
.fp-welcome-orbit { position: absolute; width: 205px; height: 205px; border: 1px solid #587465; border-radius: 50%; box-shadow: 0 0 0 32px rgb(202 227 211 / .035), 0 0 0 64px rgb(202 227 211 / .025); z-index: -1; }
.fp-welcome-bag { display: grid; place-items: center; width: 110px; height: 120px; background: #f1ad77; color: #243d2e; border-radius: 28px 28px 28px 8px; transform: rotate(-9deg); box-shadow: 12px 12px 0 rgb(0 0 0 / .08); }
.fp-welcome-bag .fp-icon { width: 62px; height: 62px; stroke-width: 1.2; }
.fp-welcome-label { position: absolute; bottom: 0; display: flex; gap: 7px; align-items: center; background: #315142; color: #dae9e0; border: 1px solid #587465; border-radius: 30px; padding: 8px 13px; white-space: nowrap; font-size: 10px; transform: rotate(-3deg); }
.fp-welcome-label .fp-icon { width: 15px; height: 15px; color: #ffc193; }
.fp-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fp-section-heading h2 { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -.02em; }
.fp-section-heading > span { font-size: 11px; }
.fp-launch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.fp-launch-card { display: flex; flex-direction: column; color: var(--fp-ink); text-decoration: none; background: var(--fp-surface); border: 1px solid var(--fp-line); border-radius: var(--fp-radius); padding: 22px; box-shadow: var(--fp-shadow); transition: border-color .15s, box-shadow .15s; }
.fp-launch-card:hover { border-color: #c2cfc7; box-shadow: 0 6px 22px rgb(25 45 39 / .07); }
.fp-launch-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--fp-brand-soft); color: var(--fp-brand); }
.fp-launch-icon-green { background: #edf5ef; color: #397050; }
.fp-launch-icon-blue { background: #eef3fa; color: #466a98; }
.fp-launch-card h3 { font-size: 15px; font-weight: 650; letter-spacing: -.02em; margin: 18px 0 7px; }
.fp-launch-card p { color: var(--fp-muted); font-size: 12px; line-height: 1.7; margin: 0 0 22px; }
.fp-launch-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 11px; font-weight: 650; color: var(--fp-brand-dark); }
.fp-launch-action .fp-icon { width: 16px; height: 16px; }
.fp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.fp-overview-bottom { align-items: stretch; }
.fp-overview-bottom > .fp-card { margin-bottom: 0; }
.fp-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.fp-card-heading h2 { margin: 0 0 4px; }
.fp-card-heading p { font-size: 11px; margin: 0; }
.fp-text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; text-decoration: none; }
.fp-identity-card .fp-text-link { margin-top: 28px; }
.fp-text-link:hover { text-decoration: underline; }
.fp-utility-link { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--fp-line); color: var(--fp-ink); text-decoration: none; }
.fp-utility-link > .fp-icon:first-child { color: #738f7e; width: 18px; height: 18px; }
.fp-utility-link > .fp-icon:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--fp-muted); }
.fp-utility-link strong { display: block; font-size: 12px; font-weight: 600; }
.fp-utility-link small { color: var(--fp-muted); font-size: 11px; }
.fp-utility-link:hover strong { color: var(--fp-brand-dark); text-decoration: underline; }

/* Shared operational lists, forms and record details */
.fp-workspace-links { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-module-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin: 0 0 24px; padding: 5px; background: #eaf0ec; border: 1px solid var(--fp-line); border-radius: 12px; width: fit-content; max-width: 100%; }
.fp-tab { display: inline-flex; justify-content: center; padding: 8px 18px; min-height: 38px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #57675e; text-decoration: none; font: inherit; font-size: 12px; cursor: pointer; }
.fp-tab:hover { color: var(--fp-ink); background: #f5f8f6; }
.fp-tab.is-active { color: var(--fp-brand-dark); background: #fff; border-color: #dce5df; box-shadow: 0 2px 4px rgb(0 0 0 / .04); font-weight: 650; }
.fp-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fp-stat { border-top: 3px solid #c2d3c7; }
.fp-stat p { margin: 0 0 10px; font-size: 12px; }
.fp-stat strong { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.035em; display: block; overflow-wrap: anywhere; }
.fp-stat small { display: block; color: var(--fp-muted); margin-top: 12px; font-size: 11px; }
.fp-statebox { text-align: center; padding: 36px 16px; color: var(--fp-muted); }
.fp-state-panel { padding: 44px 24px; text-align: center; }
.fp-state-panel h2, .fp-state-panel h3 { margin: 16px 0 9px; }
.fp-state-panel p { max-width: 600px; margin: 10px auto 22px; color: var(--fp-muted); font-size: 13px; }
.fp-access-denied { border-top: 3px solid #d1a65b; }
.fp-order-skeleton { display: block; width: 100%; height: 18px; margin: 16px 0; }
.fp-order-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding-bottom: 22px; }
.fp-order-filters label { display: grid; gap: 7px; color: var(--fp-muted); font-size: 12px; min-width: 0; }
.fp-order-filters textarea { min-width: min(220px, 100%); }
.fp-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--fp-line); border-radius: 10px; }
.fp-table-scroll .fp-table { min-width: 650px; }
.fp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fp-table th { text-align: left; color: #63766a; font-weight: 650; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: #f6f9f7; }
.fp-table th, .fp-table td { padding: 14px 16px; border-bottom: 1px solid var(--fp-line); vertical-align: top; }
.fp-table tbody tr:last-child td { border-bottom: 0; }
.fp-table tbody tr:hover { background: #fafcfb; }
.fp-table td { overflow-wrap: anywhere; }
.fp-codecell, .fp-order-link { font-family: ui-monospace, monospace; font-size: 11px; }
.fp-order-link { color: var(--fp-brand-dark); }
.fp-pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; }
.fp-pagination p { margin-right: auto; color: var(--fp-muted); }
.fp-order-timeline { padding-left: 22px; list-style: none; border-left: 1px solid #ccd9d2; margin-left: 5px; }
.fp-order-timeline li { position: relative; padding: 10px 0 10px 8px; font-size: 12px; color: var(--fp-muted); }
.fp-order-timeline li::before { content: ''; position: absolute; width: 9px; height: 9px; border: 2px solid var(--fp-surface); background: #6c927c; border-radius: 50%; left: -27px; top: 16px; }
#fp-settings-body label, #fp-security-body label { display: block; margin: 16px 0; font-size: 13px; font-weight: 600; }
#fp-settings-body input:not([type="checkbox"]), #fp-settings-body textarea, #fp-security-body input { display: block; max-width: 640px; margin-top: 7px; }
#fp-settings-body textarea { min-height: 100px; }
#fp-settings-body button { margin: 4px 8px 4px 0; }
#fp-settings-body pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f9f7; border-radius: 9px; padding: 16px; font-size: 12px; }
#fp-riders-body > .fp-btn { margin-bottom: 20px; }
#fp-riders-body .fp-card > .fp-btn { margin: 5px 8px 5px 0; }
.fp-rider-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.fp-rider-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.fp-rider-profile h2 { font-size: 24px; margin-bottom: 4px; }
.fp-rider-id { font-size: 12px; margin-top: 0; }
.fp-rider-status { padding: 6px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; }
.fp-rider-status-ok { color: var(--fp-ok); background: var(--fp-ok-bg); }
.fp-btn-approve { background: var(--fp-ok); border-color: var(--fp-ok); color: #fff; }
.fp-btn-approve:hover:not(:disabled) { background: #174e36; border-color: #174e36; color: #fff; }
.fp-rider-status-pending { color: var(--fp-warn); background: var(--fp-warn-bg); }
.fp-rider-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; border-top: 1px solid var(--fp-line); padding-top: 20px; margin: 20px 0; }
.fp-rider-facts dt { font-size: 12px; color: var(--fp-muted); }
.fp-rider-facts dd { margin: 5px 0 0; font-size: 13px; font-weight: 650; text-transform: capitalize; }
.fp-rider-policy { color: var(--fp-muted); font-size: 12px; padding: 12px 16px; background: var(--fp-bg); border-radius: 8px; margin-bottom: 0; }
.fp-kyc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.fp-kyc-document { border: 1px solid var(--fp-line); border-radius: 12px; overflow: hidden; min-width: 0; }
.fp-kyc-document h3 { font-size: 14px; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--fp-line); }
.fp-kyc-document > p { padding: 16px; color: var(--fp-muted); }
.fp-kyc-frame { background: var(--fp-bg); height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; text-align: center; }
.fp-kyc-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fp-kyc-frame p { font-size: 12px; color: var(--fp-muted); }
.fp-kyc-document .fp-rider-toolbar { padding: 14px; margin: 0; gap: 8px; }
.fp-kyc-document .fp-btn { min-height: 36px; font-size: 12px; padding: 7px 10px; }
.fp-kyc-dialog { width: min(1100px, calc(100vw - 32px)); max-height: 92vh; padding: 20px; border: 1px solid var(--fp-line); border-radius: 16px; color: var(--fp-ink); background: var(--fp-surface); }
.fp-kyc-dialog::backdrop { background: rgb(12 26 21 / .75); }
.fp-kyc-dialog .fp-rider-toolbar { justify-content: space-between; }
.fp-kyc-dialog h2 { font-size: 18px; margin: 0; }
.fp-kyc-dialog img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
@media (max-width: 1050px) { .fp-kyc-grid { grid-template-columns: 1fr; } .fp-kyc-frame { height: 300px; } }

/* Smaller workspaces and mobile navigation */
@media (max-width: 1200px) {
  .fp-main { padding: 28px 24px 40px; }
  .fp-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .fp-topbar > .fp-brandlock { width: 194px; }
  .fp-launch-grid { gap: 12px; }
  .fp-launch-card { padding: 18px; }
  .fp-grid2, .fp-stat-grid { gap: 16px; }
  .fp-welcome { padding: 30px; }
}
@media (max-width: 1050px) {
  .fp-grid2 { grid-template-columns: 1fr; }
  .fp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-welcome { grid-template-columns: 1fr; }
  .fp-welcome-art { display: none; }
  .fp-topbar { gap: 16px; }
  .fp-topbar-title { padding-left: 18px; }
}
@media (max-width: 860px) {
  :root { --fp-header-height: 72px; }
  .fp-layout { grid-template-columns: minmax(0, 1fr); }
  .fp-topbar { height: var(--fp-header-height); padding: 12px 18px; gap: 12px; }
  .fp-topbar > .fp-brandlock { width: auto; margin-right: auto; font-size: 20px; }
  .fp-brandmark { width: 34px; height: 38px; border-radius: 11px 11px 11px 4px; }
  .fp-brand-caption { font-size: 8px; }
  .fp-topbar-title { display: none; }
  .fp-nav { position: fixed; inset: var(--fp-header-height) auto 0 0; width: min(290px, calc(100vw - 48px)); z-index: 40; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .fp-nav.is-open { transform: none; visibility: visible; }
  .fp-body:has(.fp-nav.is-open) { overflow: hidden; }
  .fp-nav-heading .fp-btn { color: #dce8e0; }
  .fp-nav-heading .fp-btn:hover { background: #2c4137; }
  .fp-burger { display: inline-flex; min-width: 42px; padding: 9px; }
  .fp-main { padding: 24px 20px 36px; }
  .fp-nav-note { padding-top: 26px; }
  [data-fp-screen="login"] { gap: 16px; }
  .fp-auth-story { padding: 32px; }
  .fp-auth-intro h2 { font-size: 34px; }
  .fp-auth-route > span + span { margin-left: 48px; }
  .fp-auth-route > span + span::before { width: 30px; transform: translate(-47px, 21px); }
  .fp-auth-card { padding: 20px; }
}
@media (min-width: 861px) { .fp-nav-backdrop { display: none; } }
@media (max-width: 640px) {
  .fp-account-chip { display: none; }
  .fp-launch-grid { grid-template-columns: 1fr; gap: 12px; }
  .fp-launch-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 15px; padding: 20px; }
  .fp-launch-card > .fp-launch-icon { grid-row: 1 / 4; }
  .fp-launch-card h3 { margin: 0 0 5px; }
  .fp-launch-card p { margin: 0 0 12px; }
  .fp-welcome { padding: 28px; margin-bottom: 26px; }
  [data-fp-screen="login"] { grid-template-columns: 1fr; padding: 0; min-height: 100vh; align-content: start; gap: 0; }
  .fp-auth-story { min-height: auto; padding: 24px 28px; border-radius: 0 0 24px 24px; }
  .fp-auth-intro { padding: 24px 0 0; }
  .fp-auth-intro h2 { font-size: 29px; margin: 0; }
  .fp-auth-intro h2 br { display: none; }
  .fp-auth-intro > .fp-eyebrow, .fp-auth-intro > p:not(.fp-eyebrow), .fp-auth-route, .fp-auth-footnote { display: none; }
  .fp-auth-card { padding: 32px 28px; width: min(460px, 100%); }
  .fp-auth-card > .fp-muted { margin-bottom: 24px; }
  .fp-auth-card .fp-title { font-size: 28px; }
  .fp-section-heading > span { display: none; }
}
@media (max-width: 520px) {
  .fp-main { padding: 22px 16px 32px; }
  .fp-topbar { padding-inline: 12px; gap: 8px; }
  .fp-topbar > .fp-brandlock { gap: 8px; }
  .fp-topbar > .fp-btn:last-child { padding: 8px 10px; font-size: 11px; }
  .fp-topbar > .fp-btn:last-child .fp-icon { display: none; }
  .fp-card { padding: 20px; }
  .fp-grid2, .fp-stat-grid { grid-template-columns: 1fr; }
  .fp-order-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fp-module-header { align-items: flex-start; margin-bottom: 22px; }
  .fp-kv { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .fp-kv dd { margin-bottom: 12px; justify-self: start; }
  .fp-codes { columns: 1; }
  .fp-module-tabs { width: 100%; }
  .fp-tab { flex: 1 1 auto; padding-inline: 10px; }
  .fp-welcome { padding: 25px; }
  .fp-welcome h2 { max-width: 230px; }
  .fp-shellhead { padding: 28px 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Setup checklist (Overview) */
.fp-setup { border-color: #f3d3c2; background: linear-gradient(180deg, #fffaf6 0, #fff 140px); margin-bottom: 28px; }
.fp-setup-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.fp-setup-head h2 { font-size: 19px; margin: 2px 0 0; }
.fp-progress { flex: 1 1 220px; max-width: 320px; height: 10px; border-radius: 99px; background: #f1e6df; overflow: hidden; }
.fp-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--fp-ok); transition: width .3s; }
.fp-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fp-check-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--fp-line); border-radius: 12px; background: #fff; }
.fp-check-item.is-next { border-color: #e7a37f; box-shadow: 0 0 0 3px #fff0e7; }
.fp-check-item.is-done { background: #f7fbf8; }
.fp-check-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 750; background: #eff3f1; color: var(--fp-muted); }
.fp-check-item.is-done .fp-check-mark { background: var(--fp-ok); color: #fff; }
.fp-check-item.is-next .fp-check-mark { background: var(--fp-brand); color: #fff; }
.fp-check-item.is-unknown .fp-check-mark { background: var(--fp-warn-bg); color: var(--fp-warn); }
.fp-check-body strong { display: block; font-size: 14px; }
.fp-check-body small { display: block; color: var(--fp-muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 560px) { .fp-check-item { grid-template-columns: 32px minmax(0, 1fr); } .fp-check-item > :last-child { grid-column: 2; justify-self: start; } }

/* Friendly forms (Settings, Rider COD card) */
#fp-settings-body form > label, #fp-settings-body fieldset > label { display: block; font-weight: 650; font-size: 13px; margin-bottom: 16px; }
#fp-settings-body small, #fp-riders-body form small { display: block; font-weight: 400; color: var(--fp-muted); font-size: 12px; margin-top: 5px; }
#fp-settings-body fieldset { border: 1px solid var(--fp-line); border-radius: 12px; padding: 14px 16px 2px; margin: 0 0 16px; }
#fp-settings-body legend { font-weight: 700; padding: 0 6px; }
#fp-settings-body select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ccd9d2; border-radius: 9px; background: var(--fp-surface); margin-top: 6px; }
#fp-settings-body form > label:has(> input[type="checkbox"]) { display: flex; gap: 10px; align-items: center; }
#fp-settings-body form .fp-btn { margin: 4px 8px 4px 0; }
.fp-btn-approve { background: var(--fp-ok); border-color: var(--fp-ok); color: #fff; }
.fp-btn-approve:hover:not(:disabled) { background: #1a5439; border-color: #1a5439; }

/* Rider list status chips */
.fp-rider-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fp-rider-row a { font-weight: 700; font-size: 15px; text-decoration: none; }

/* Zone map (Leaflet + OpenStreetMap tiles) */
.fp-zone-map-wrap { margin: 0 0 16px; }
.fp-zone-map { height: min(420px, 60vh); min-height: 280px; border: 1px solid var(--fp-line); border-radius: 12px; overflow: hidden; margin: 8px 0; cursor: crosshair; }
.fp-zone-map .leaflet-container { font: inherit; }
