/*
 * Profit Labs™ customer /app theme (Wave B style pass, 2026-11-15).
 *
 * Spec: pl-brain team/juliette/review/app-style-spec.md (colors, type scale,
 * cards, buttons, tables, chips, empty states). Loaded ONLY by the customer
 * panel (AppPanelProvider HEAD_END hook), so the operator /admin never sees
 * it. The white-label client portal has its own neutral twin:
 * public/portal-assets/css/portal-ui.css. Every Filament rule is also scoped to
 * body.fi-panel-app as a second guard.
 *
 * Plain static CSS on purpose: it ships with a normal deploy (public/ is
 * pushed as-is, no Vite build) and survives the Tailwind purge of the shared
 * theme. Pages built on the new design (home, Task board, Results, SEO
 * Writer) keep their own self-contained styles; this file gives every other
 * /app page the same tokens, header, cards, buttons, tables and chips.
 *
 * Reusable classes for page views (prefix pl-ui-):
 *   pl-ui-card, pl-ui-card-t, pl-ui-btn (+ -primary / -money / -secondary),
 *   pl-ui-link, pl-ui-chip (+ -todo / -prog / -review / -done / -live / -new /
 *   -local), pl-ui-empty, pl-ui-table (wrap in pl-ui-scroll), pl-ui-tiles.
 * Page header partial: resources/views/filament/app/partials/page-header.blade.php
 * (classes pl-ph-*).
 */

/* ───────────────────────────── 1. Tokens ───────────────────────────── */
.fi-panel-app {
    --pl-navy-900: #0b1b33;
    --pl-navy-700: #1e3a5f;
    --pl-ink-600: #475569;
    --pl-ink-400: #94a3b8;
    --pl-line: #e2e8f0;
    --pl-line-soft: #eef2f7;
    --pl-page-bg: #f4f6fa;
    --pl-card: #ffffff;
    --pl-blue-600: #0060d2;
    --pl-blue-700: #0050b3;
    --pl-blue-50: #f0f7ff;
    --pl-blue-100: #dbeafe;
    --pl-blue-100-text: #1e40af;
    --pl-orange-500: #f97316;
    --pl-orange-600: #ea580c;
    --pl-orange-50: #fff7ed;
    --pl-orange-border: #fdba74;
    --pl-green-600: #16a34a;
    --pl-green-text: #047857;
    --pl-green-50: #dcfce7;
    --pl-green-50-text: #166534;
    --pl-red-700: #b91c1c;
    --pl-text: var(--pl-navy-900);
    --pl-radius: 16px;
    --pl-radius-inner: 12px;
}
.dark .fi-panel-app,
.fi-panel-app.dark {
    --pl-ink-600: #94a3b8;
    --pl-ink-400: #64748b;
    --pl-line: #1e293b;
    --pl-line-soft: #1e293b;
    --pl-page-bg: #0b1220;
    --pl-card: #0f172a;
    --pl-blue-700: #60a5fa;
    --pl-blue-50: #172554;
    --pl-orange-50: rgba(249, 115, 22, .12);
    --pl-text: #e2e8f0;
}

/* ───────────────────────────── 2. Page shell ───────────────────────────── */
body.fi-panel-app {
    background: var(--pl-page-bg);
    color: var(--pl-text);
}
/* The shared theme paints the canvas white and the sidebar black (both
   !important); /app uses the spec's page grey and navy instead. */
:root:not(.dark) body.fi-body.fi-panel-app,
:root:not(.dark) body.fi-panel-app .fi-main-ctn,
:root:not(.dark) body.fi-panel-app .fi-main {
    background-color: var(--pl-page-bg) !important;
}
body.fi-panel-app .fi-main-sidebar,
body.fi-panel-app .fi-main-sidebar .fi-sidebar-header,
body.fi-panel-app .fi-main-sidebar .fi-sidebar-nav,
body.fi-panel-app .fi-main-sidebar .fi-sidebar-footer {
    background-color: var(--pl-navy-900) !important;
}
body.fi-panel-app .fi-sidebar-nav {
    --pl-card: rgba(255, 255, 255, .07);
    --pl-card-border: rgba(255, 255, 255, .12);
}
body.fi-panel-app .fi-sidebar-nav .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--pl-navy-700) !important;
}
/* The /app left panel (AppSidebar, Ron's #5; canvas R16-Nav-Desk/-Mob):
   section labels, icon rows, product dropdowns (one open at a time), the
   current page highlighted, NEW badges and the balance box at the bottom. */
/* Phone drawer header: the logo reads white on the navy panel. */
body.fi-panel-app .fi-main-sidebar .fi-sidebar-header .fi-logo {
    color: #fff !important;
}
/* The menu scrolls on its own; the balance box (SIDEBAR_FOOTER) stays pinned
   below it at every height, with a visible thin scrollbar as the cue. */
body.fi-panel-app .fi-main-sidebar .fi-sidebar-nav {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 210, 227, .45) transparent;
}
body.fi-panel-app .fi-main-sidebar .pl-side-balance {
    flex: 0 0 auto;
}
body.fi-panel-app .pl-anav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 4px;
}
body.fi-panel-app .pl-anav-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
body.fi-panel-app .pl-anav-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #8fa3c0;
    padding: 14px 12px 4px;
}
body.fi-panel-app .pl-anav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: #c7d2e3;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}
body.fi-panel-app .pl-anav-item:hover,
body.fi-panel-app .pl-anav-subitem:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}
body.fi-panel-app .pl-anav-group-btn {
    color: #fff;
}
body.fi-panel-app .pl-anav-ic {
    display: inline-block;
    width: 22px;
    flex: 0 0 22px;
    font-size: 14px;
    text-align: center;
}
body.fi-panel-app .pl-anav-text {
    flex: 1 1 auto;
    min-width: 0;
}
body.fi-panel-app .pl-anav-caret {
    flex: 0 0 auto;
    font-size: 12px;
    color: #c7d2e3;
}
body.fi-panel-app .pl-anav-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0 0 6px 12px;
    padding-left: 8px;
    border-left: 2px solid #1e3a5f;
}
body.fi-panel-app .pl-anav-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #c7d2e3;
    font-size: 13.5px;
    line-height: 1.3;
    text-decoration: none;
}
body.fi-panel-app .pl-anav .pl-anav-on {
    background: #1e3a5f;
    color: #fff;
    font-weight: 700;
}
body.fi-panel-app .pl-anav-new {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    background: #0060d2;
    color: #fff;
    border-radius: 99px;
    padding: 2px 7px;
    line-height: 1.4;
}
/* "SEO Audit" FREE pill (Juliette, seo-audit-page COPY.md: green). */
body.fi-panel-app .pl-anav-new.pl-anav-free {
    background: #16a34a;
}
body.fi-panel-app .pl-side-balance {
    margin: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #1e3a5f;
    color: #fff;
}
body.fi-panel-app .pl-side-balance-k {
    font-size: 12.5px;
    color: #cbd6e6;
}
body.fi-panel-app .pl-side-balance-v {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}
body.fi-panel-app .pl-side-balance-a {
    font-size: 13px;
    font-weight: 700;
    color: #fdba74;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.fi-panel-app .fi-main {
    line-height: 1.45;
}
@media (min-width: 1024px) {
    body.fi-panel-app .fi-main {
        padding-left: 36px;
        padding-right: 36px;
    }
}
@media (max-width: 767px) {
    body.fi-panel-app .fi-main {
        padding-left: 14px;
        padding-right: 14px;
    }
    /* Nothing on a phone scrolls sideways except tables in their own box. */
    body.fi-panel-app .fi-main-ctn,
    body.fi-panel-app .fi-page {
        max-width: 100vw;
        overflow-x: clip;
    }
}

/* ───────────────────────────── 3. Page header ───────────────────────────── */
body.fi-panel-app .fi-header {
    gap: 12px 24px;
    align-items: flex-start;
}
body.fi-panel-app .fi-header-heading,
.pl-ph-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--pl-text);
    margin: 0;
}
body.fi-panel-app .fi-header-subheading,
.pl-ph-purpose {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--pl-ink-600);
    margin: 4px 0 0;
    max-width: 760px;
}
/* The partial's purpose line steps aside when the page has its own subheading. */
body.fi-panel-app .pl-ph-purpose:has(~ .fi-header-subheading) { display: none; }
body.fi-panel-app .fi-breadcrumbs { font-size: 13px; }
@media (max-width: 767px) {
    body.fi-panel-app .fi-header-heading,
    .pl-ph-title { font-size: 22px; }
    body.fi-panel-app .fi-header-actions-ctn,
    body.fi-panel-app .fi-header-actions-ctn .fi-ac { width: 100%; }
    body.fi-panel-app .fi-header-actions-ctn .fi-btn { flex: 1 1 auto; }
}

/* Standalone header (custom page views): h1 + purpose left, actions right. */
.pl-ph { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; color: var(--pl-text); }
.pl-ph-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.pl-ph-text { min-width: 0; flex: 1 1 320px; }
.pl-ph-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--pl-ink-600); margin-bottom: 4px; }
.pl-ph-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-ph-switch { background: var(--pl-navy-900); color: #c7d2e3; border-radius: 14px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pl-ph-switch a { color: #c7d2e3 !important; font-weight: 600; text-decoration: none; }
.pl-ph-switch a:hover { color: #fff !important; text-decoration: underline; }
.pl-ph-switch details { position: relative; }
.pl-ph-switch summary { list-style: none; cursor: pointer; background: var(--pl-navy-700); color: #fff; font-weight: 800; border-radius: 10px; padding: 8px 14px; min-height: 40px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; }
.pl-ph-switch summary::-webkit-details-marker { display: none; }
.pl-ph-switch-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 320px; overflow: auto; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(11, 27, 51, .18); }
.pl-ph-switch-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--pl-text) !important; }
.pl-ph-switch-menu a:hover,
.pl-ph-switch-menu a[aria-current] { background: var(--pl-line-soft); text-decoration: none; }
.pl-ph-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pl-ph-tile { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: var(--pl-radius-inner); padding: 12px 16px; }
.pl-ph-tile span { display: block; font-size: 12px; font-weight: 700; color: var(--pl-ink-600); }
.pl-ph-tile b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--pl-text); }
.pl-ph-tile i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--pl-green-text); }
.pl-ph-tile i.down { color: var(--pl-red-700); }
.pl-ph-hero { background: var(--pl-navy-900); color: #fff; border-radius: 18px; padding: 28px 32px; }
.pl-ph-hero .pl-ph-title { color: #fff; font-size: 32px; }
.pl-ph-hero .pl-ph-purpose { color: #c7d2e3; font-size: 15px; }
.pl-ph-hero .pl-ph-eyebrow { color: #9fb0c8; }
@media (max-width: 767px) {
    .pl-ph-hero { padding: 20px; }
    .pl-ph-hero .pl-ph-title { font-size: 22px; }
    .pl-ph-actions { width: 100%; }
    .pl-ph-actions > .pl-ui-btn { flex: 1 1 auto; }
}

/* ───────────────────────────── 4. Cards / sections ───────────────────────────── */
body.fi-panel-app .fi-main .fi-section:not(.fi-section-not-contained),
body.fi-panel-app .fi-main .fi-ta-ctn,
body.fi-panel-app .fi-main .fi-wi-stats-overview-stat,
body.fi-panel-app .fi-main .fi-fo-tabs:not(.fi-contained-false),
.pl-ui-card {
    background: var(--pl-card);
    border-radius: var(--pl-radius);
    box-shadow: none;
    --tw-ring-shadow: 0 0 #0000;
    border: 1px solid var(--pl-line);
}
body.fi-panel-app .fi-main .fi-section-header-heading,
.pl-ui-card-t {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--pl-text);
}
body.fi-panel-app .fi-main .fi-section-header-description {
    font-size: 13px;
    color: var(--pl-ink-600);
}
.pl-ui-card { padding: 20px 22px; }
.pl-ui-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pl-ui-card-next { background: var(--pl-blue-600); border-color: var(--pl-blue-600); color: #fff; }
.pl-ui-card-needs { background: var(--pl-orange-50); border: 2px solid var(--pl-orange-500); }
.pl-ui-card-win { background: #ecfdf5; border-color: #a7f3d0; }
.pl-ui-card-offer { background: var(--pl-orange-50); border-color: var(--pl-orange-border); }
.pl-ui-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--pl-ink-600); }
.pl-ui-card-needs .pl-ui-eyebrow { color: #c2410c; }
.pl-ui-muted { color: var(--pl-ink-600); font-size: 13px; }
.pl-ui-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pl-ui-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .pl-ui-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
    .pl-ui-card { padding: 16px; }
    body.fi-panel-app .fi-main .fi-section-header-heading,
    .pl-ui-card-t { font-size: 16px; }
}

/* ───────────────────────────── 5. Buttons + links ───────────────────────────── */
body.fi-panel-app .fi-main .fi-btn,
body.fi-panel-app .fi-modal .fi-btn {
    border-radius: 10px;
    font-weight: 800;
}
body.fi-panel-app .fi-main .fi-btn:not(.fi-size-xs):not(.fi-size-sm):not(.fi-icon-btn) {
    min-height: 40px;
}
/* Blue = navigate/choose: header actions ("New client", "Invite") and
   outlined buttons. Filled primary buttons inside the page body stay orange:
   on /app they place orders and spend balance (spec §1: orange = spend). */
body.fi-panel-app .fi-header-actions-ctn .fi-btn.fi-color-primary:not(.fi-outlined) {
    background-color: var(--pl-blue-600) !important;
    color: #fff !important;
}
body.fi-panel-app .fi-header-actions-ctn .fi-btn.fi-color-primary:not(.fi-outlined):hover {
    background-color: var(--pl-blue-700) !important;
}
body.fi-panel-app .fi-header-actions-ctn .fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon,
body.fi-panel-app .fi-header-actions-ctn .fi-btn.fi-color-primary:not(.fi-outlined) svg { color: #fff !important; }
body.fi-panel-app .fi-main .fi-btn.fi-outlined.fi-color-primary {
    background-color: var(--pl-card) !important;
    color: var(--pl-blue-700) !important;
    --tw-ring-color: #cbd5e1 !important;
    box-shadow: inset 0 0 0 1px #cbd5e1 !important;
}
body.fi-panel-app .fi-main .fi-btn.fi-outlined.fi-color-primary svg { color: var(--pl-blue-700) !important; }
body.fi-panel-app .fi-main .fi-btn.fi-outlined.fi-color-primary:hover { box-shadow: inset 0 0 0 1px var(--pl-blue-600) !important; }
.pl-ui-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font-size: 14px; font-weight: 800; line-height: 1.2; cursor: pointer; white-space: nowrap;
    text-decoration: none !important; box-sizing: border-box;
}
.pl-ui-btn-primary { background: var(--pl-blue-600); color: #fff !important; }
.pl-ui-btn-primary:hover { background: var(--pl-blue-700); }
.pl-ui-btn-money { background: var(--pl-orange-500); color: #fff !important; }
.pl-ui-btn-money:hover { background: var(--pl-orange-600); }
.pl-ui-btn-secondary { background: var(--pl-card); border-color: #cbd5e1; color: var(--pl-blue-700) !important; }
.pl-ui-btn-secondary:hover { border-color: var(--pl-blue-600); }
.pl-ui-btn-white { background: #fff; color: var(--pl-blue-600) !important; }
.pl-ui-btn[disabled], .pl-ui-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pl-ui-link { color: var(--pl-blue-700) !important; font-weight: 700; text-decoration: none; }
.pl-ui-link:hover { text-decoration: underline; }
.pl-ui-link-quiet { color: var(--pl-ink-600) !important; font-weight: 600; text-decoration: none; }
.pl-ui-link-quiet:hover { text-decoration: underline; }
@media (max-width: 767px) {
    .pl-ui-btn-block-phone { width: 100%; min-height: 48px; }
}

/* ───────────────────────────── 6. Tables ───────────────────────────── */
body.fi-panel-app .fi-main .fi-ta-ctn { overflow: hidden; }
body.fi-panel-app .fi-main .fi-ta-content-ctn,
body.fi-panel-app .fi-main .fi-ta-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.fi-panel-app .fi-main .fi-ta-header-cell,
body.fi-panel-app .fi-main .fi-ta-header-cell .fi-ta-header-cell-label,
body.fi-panel-app .fi-main .fi-ta-header-cell button {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pl-ink-600);
}
body.fi-panel-app .fi-main .fi-ta-header-cell { background: transparent; }
body.fi-panel-app .fi-main .fi-ta-table > thead > tr { border-bottom: 1px solid var(--pl-line); }
body.fi-panel-app .fi-main .fi-ta-table > tbody > tr,
body.fi-panel-app .fi-main .fi-ta-row { border-color: var(--pl-line-soft); }
body.fi-panel-app .fi-main .fi-ta-cell { font-size: 14px; }
body.fi-panel-app .fi-main .fi-ta-header { padding-top: 14px; padding-bottom: 14px; }
body.fi-panel-app .fi-main .fi-ta-header-heading { font-size: 18px; font-weight: 800; color: var(--pl-text); }
body.fi-panel-app .fi-main .fi-pagination { font-size: 13px; }

.pl-ui-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pl-ui-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--pl-text); }
.pl-ui-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--pl-ink-600); padding: 0 10px 8px; border-bottom: 1px solid var(--pl-line); white-space: nowrap; }
.pl-ui-table td { padding: 10px; border-bottom: 1px solid var(--pl-line-soft); vertical-align: top; }
.pl-ui-table tr:last-child td { border-bottom: 0; }
.pl-ui-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pl-ui-pos { display: inline-block; min-width: 28px; text-align: center; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--pl-line-soft); color: var(--pl-text); }
.pl-ui-pos-top3 { background: var(--pl-green-50); color: var(--pl-green-50-text); }
.pl-ui-pos-top10 { background: var(--pl-blue-100); color: var(--pl-blue-100-text); }
.pl-ui-up { color: var(--pl-green-text); font-weight: 700; }
.pl-ui-down { color: var(--pl-red-700); font-weight: 700; }

/* ───────────────────────────── 7. Chips / badges ───────────────────────────── */
body.fi-panel-app .fi-main .fi-badge {
    border-radius: 999px;
    font-weight: 800;
}
.pl-ui-chip {
    display: inline-block; padding: 2px 7px; border-radius: 999px;
    font-size: 11px; font-weight: 800; line-height: 1.5; white-space: nowrap;
    background: var(--pl-line-soft); color: var(--pl-text);
}
.pl-ui-chip-todo { background: #f1f5f9; color: #334155; }
.pl-ui-chip-prog { background: var(--pl-blue-100); color: var(--pl-blue-100-text); }
.pl-ui-chip-review { background: #ede9fe; color: #5b21b6; }
.pl-ui-chip-done { background: #d1fae5; color: #065f46; }
.pl-ui-chip-live,
.pl-ui-chip-active { background: var(--pl-green-50); color: var(--pl-green-50-text); }
.pl-ui-chip-included { background: var(--pl-blue-100); color: var(--pl-blue-100-text); }
.pl-ui-chip-local { background: var(--pl-orange-500); color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.pl-ui-chip-new { background: var(--pl-blue-600); color: #fff; text-transform: uppercase; letter-spacing: .5px; }
.pl-ui-chip-fail { background: #fee2e2; color: var(--pl-red-700); }

/* ───────────────────────────── 8. Empty states ───────────────────────────── */
body.fi-panel-app .fi-main .fi-ta-empty-state-heading,
body.fi-panel-app .fi-main .fi-empty-state-heading {
    font-size: 16px; font-weight: 800; color: var(--pl-text);
}
body.fi-panel-app .fi-main .fi-ta-empty-state-description,
body.fi-panel-app .fi-main .fi-empty-state-description {
    font-size: 14px; color: var(--pl-ink-600);
}
.pl-ui-empty {
    background: var(--pl-card); border: 1px dashed #cbd5e1; border-radius: var(--pl-radius);
    padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap;
}
.pl-ui-empty b { display: block; font-size: 15px; font-weight: 800; color: var(--pl-text); }
.pl-ui-empty span { display: block; font-size: 14px; color: var(--pl-ink-600); margin-top: 2px; }

/* ───────────────────────────── 9. Forms ───────────────────────────── */
body.fi-panel-app .fi-main .fi-input-wrp {
    border-radius: 10px;
}
body.fi-panel-app .fi-main .fi-fo-field-label-content,
body.fi-panel-app .fi-main .fi-fo-field-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--pl-text);
}
/* Screen-reader-only text Filament adds to required fields (e.g. the
   "Select an option." note on every Client select) showed as a stray line
   above the field on order forms (Juliette's final pass A9). Keep it for
   screen readers, never on screen, without depending on the Vite theme. */
body.fi-panel-app .fi-sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}
body.fi-panel-app .fi-main .fi-tabs { border-radius: 12px; }
body.fi-panel-app .fi-main .fi-tabs-item.fi-active { color: var(--pl-blue-600); }
body.fi-panel-app .fi-main .fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--pl-blue-600); }

/* ───────────────────────────── 10. Shared order + report parts ───────────────────────────── */
/* Order-page value hero (filament.partials.order-hero) and the report pages'
   status tabs pick up the card radius and type scale. */
body.fi-panel-app .pl-oh { border-radius: var(--pl-radius); box-shadow: none; border: 1px solid var(--pl-line); }
body.fi-panel-app .pl-oh-headline { font-weight: 800; }
body.fi-panel-app .pl-synd-tab { font-weight: 700; }
body.fi-panel-app .pl-synd-tab.is-active { color: var(--pl-blue-600); border-color: var(--pl-blue-600); }
body.fi-panel-app .pl-rv-wrap .fi-ta-ctn { border-radius: var(--pl-radius); }
body.fi-panel-app .pl-rv-wrap .fi-ta-header-cell,
body.fi-panel-app .pl-rv-wrap .fi-ta-header-cell-label { background: transparent; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; color: var(--pl-ink-600); }
body.fi-panel-app .pl-rv-wrap .pl-rv-client .fi-ta-text-item-label,
body.fi-panel-app .pl-rv-wrap .pl-rv-client .fi-ta-text-item { color: var(--pl-blue-700); font-weight: 700; }

/* Support center (shared with /admin): navigation blue on /app, not orange. */
body.fi-panel-app .pls { --pls-accent: var(--pl-blue-600); --pls-blue: var(--pl-blue-600); --pls-border: var(--pl-line); }

/* Campaign plan pages (pl-cp-*): same tokens as the rest of /app. */
body.fi-panel-app .pl-cp { --cp-muted: var(--pl-ink-600); --cp-line: var(--pl-line); }
body.fi-panel-app .pl-cp-table th { font-size: 12px; font-weight: 700; color: var(--pl-ink-600); }

/* ───────────────────────────── 11. SEO Store page (/app/store) ───────────────────────────── */
/* filament.app.store.index: Ron's #4 redesign (canvas boards R16-Store-Desk /
   R16-Store-Mob). Search, goal cards, tabs, one section per type; every card is
   name + line + delivery on the left, "from" price + orange Order on the right. */
body.fi-panel-app .pl-st { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body.fi-panel-app .pl-st .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.fi-panel-app .pl-st-off { display: none !important; }
body.fi-panel-app .pl-st-search { position: relative; display: block; max-width: 420px; }
body.fi-panel-app .pl-st-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--pl-ink-600); pointer-events: none; }
body.fi-panel-app .pl-st-search input { width: 100%; min-height: 44px; border: 1px solid var(--pl-line); border-radius: 12px; padding: 10px 14px 10px 36px; font-size: 14px; background: var(--pl-card); color: var(--pl-text); }
body.fi-panel-app .pl-st-agency { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: var(--pl-blue-50); border: 1px solid var(--pl-blue-100); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--pl-text); }
body.fi-panel-app .pl-st-agency span { color: var(--pl-ink-600); }
body.fi-panel-app .pl-st-label { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--pl-ink-600); }
body.fi-panel-app .pl-st-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.fi-panel-app .pl-st-goal { display: flex; flex-direction: column; gap: 6px; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--pl-text); min-width: 0; }
body.fi-panel-app .pl-st-goal:hover, body.fi-panel-app .pl-st-goal:focus-visible { border-color: var(--pl-blue-600); }
body.fi-panel-app .pl-st-goal-ic { font-size: 22px; line-height: 1; }
body.fi-panel-app .pl-st-goal b { font-size: 15px; font-weight: 800; }
body.fi-panel-app .pl-st-goal-line { font-size: 12.5px; color: var(--pl-ink-600); }
body.fi-panel-app .pl-st-more { font-size: 12.5px; font-weight: 700; color: var(--pl-blue-700); text-decoration: none; white-space: nowrap; }
body.fi-panel-app .pl-st-tabs { display: flex; gap: 8px; flex-wrap: wrap; scroll-margin-top: 80px; }
body.fi-panel-app .pl-st-tab { white-space: nowrap; min-height: 38px; padding: 8px 14px; border-radius: 999px; border: 1px solid #cbd5e1; font-weight: 700; font-size: 13px; color: var(--pl-blue-700); background: var(--pl-card); cursor: pointer; }
body.fi-panel-app .pl-st-tab[aria-pressed="true"] { background: var(--pl-blue-600); border-color: var(--pl-blue-600); color: #fff; }
body.fi-panel-app .pl-st-empty { margin: 0; font-size: 15px; font-weight: 700; color: var(--pl-text); text-align: center; padding: 24px 16px; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 16px; }
body.fi-panel-app .pl-st-reset { margin-left: 6px; font-weight: 700; color: var(--pl-blue-600); text-decoration: underline; background: none; border: 0; cursor: pointer; }
body.fi-panel-app .pl-st-sec { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 16px; padding: 20px; scroll-margin-top: 80px; }
body.fi-panel-app .pl-st-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.fi-panel-app .pl-st-sec-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--pl-text); }
body.fi-panel-app .pl-st-local, body.fi-panel-app .pl-st-new, body.fi-panel-app .pl-st-ai { display: inline-block; margin-left: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; color: #fff; }
body.fi-panel-app .pl-st-local { background: var(--pl-orange-500); }
body.fi-panel-app .pl-st-new { background: var(--pl-blue-600); }
body.fi-panel-app .pl-st-ai { background: #7c3aed; }
body.fi-panel-app .pl-st-sub { margin: 2px 0 12px; font-size: 12.5px; color: var(--pl-ink-600); }
body.fi-panel-app .pl-st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.fi-panel-app .pl-st-prod { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--pl-text); }
body.fi-panel-app .pl-st-prod:hover, body.fi-panel-app .pl-st-prod:focus-visible { border-color: var(--pl-blue-600); }
body.fi-panel-app .pl-st-prod-main { display: block; min-width: 0; }
body.fi-panel-app .pl-st-prod-main > b { font-size: 15px; font-weight: 800; }
body.fi-panel-app .pl-st-prod-line { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--pl-ink-600); }
body.fi-panel-app .pl-st-eta { color: var(--pl-green-text); font-weight: 600; white-space: nowrap; }
body.fi-panel-app .pl-st-prod-buy { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
body.fi-panel-app .pl-st-from { font-size: 12.5px; color: var(--pl-ink-600); }
body.fi-panel-app .pl-st-price { font-size: 17px; font-weight: 800; }
body.fi-panel-app .pl-st-note { font-size: 11.5px; font-weight: 700; color: var(--pl-green-text); white-space: nowrap; }
body.fi-panel-app .pl-st-order { display: inline-flex; align-items: center; justify-content: center; margin-top: 4px; min-height: 34px; padding: 7px 14px; border-radius: 10px; background: var(--pl-orange-500); color: #fff; font-size: 13px; font-weight: 800; }
body.fi-panel-app .pl-st-prod:hover .pl-st-order { background: var(--pl-orange-600); }
.dark body.fi-panel-app .pl-st-tab { border-color: var(--pl-line); }
.dark body.fi-panel-app .pl-st-eta, .dark body.fi-panel-app .pl-st-note { color: #4ade80; }
@media (max-width: 900px) {
    body.fi-panel-app .pl-st-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    /* Phone (R16-Store-Mob): goals stacked, tabs scroll sideways, one card per row. */
    body.fi-panel-app .pl-st { gap: 14px; }
    body.fi-panel-app .pl-st-search { max-width: none; }
    body.fi-panel-app .pl-st-goals { grid-template-columns: minmax(0, 1fr); }
    body.fi-panel-app .pl-st-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
    body.fi-panel-app .pl-st-tab { flex: 0 0 auto; }
    body.fi-panel-app .pl-st-sec { padding: 14px; border-radius: 14px; }
    body.fi-panel-app .pl-st-sec-head h2 { font-size: 16px; }
}
