/* ==========================================================================
   LaundryCareer — Stage 2 app layer (v2.47.0)
   The V2 design system for the pro app (portal) pages: dashboard, orders,
   customers, earnings, recurring, growth, analytics, profile, settings.
   Presentation only. The app components read the shared --lcx-* / --lc-* /
   --lct-* tokens; this layer re-points those tokens at the V2 palette under
   body.lc-app and adds the V2 surface rhythm (hero, cards, tabbar, stats).
   Nothing here changes markup, handlers, or flows.
   ========================================================================== */

body.lc-app {
    --lcx-canvas: #EDF1FE;
    --lcx-surface: #ffffff;
    --lcx-mist: #F2F5FF;
    --lcx-mist-2: #E4EAFF;
    --lcx-ink: #101736;
    --lcx-ink-2: #43538A;
    --lcx-ink-3: #5A6A94;
    --lcx-line: rgba(16, 23, 54, .09);
    --lcx-line-strong: rgba(16, 23, 54, .18);
    --lcx-green: #12A544;
    --lcx-green-deep: #0B7A33;
    --lcx-green-ink: #0B7A33;
    --lcx-green-soft: #E3F6EA;
    --lcx-blue: #1E6FF2;
    --lcx-blue-deep: #1559CF;
    --lcx-blue-soft: #EAF1FE;
    --lcx-amber: #B97A06;
    --lcx-amber-soft: #FDF0D3;
    --lcx-red: #C92A2A;
    --lcx-red-soft: #FDECEA;
    --lcx-shadow: 0 6px 18px rgba(30, 64, 175, .08);
    --lcx-shadow-sm: 0 2px 8px rgba(30, 64, 175, .07);
    --lct-bg: #EDF1FE;
    --lct-surface: #ffffff;
    --lct-surface-2: #F2F5FF;
    --lct-ink: #101736;
    --lct-ink-2: #43538A;
    --lct-ink-3: #5A6A94;
    --lct-hairline: rgba(16, 23, 54, .10);
    --lct-accent: #1E6FF2;
    --lct-accent-press: #1559CF;
    /* v2.48.0 (Orders): four tokens the tracker / order sheet / several
       components read but no stylesheet ever defined — they rendered on
       hardcoded grey-green fallbacks inside the V2 layer. Defined here so
       those surfaces join the system (light values; dark below). */
    --lct-line: rgba(16, 23, 54, .14);
    --lct-mist: #F2F5FF;
    --lct-muted: #5A6A94;
    --lct-card: #ffffff;
}

/* ---------- Canvas + hero ---------- */
body.lc-app .lcx-app {
    background: linear-gradient(180deg, #EEF2FF 0%, #E3EBFF 55%, #DBE7FF 100%);
}
body.lc-app .lc-wrap { background: transparent; }
body.lc-app .lcx-app-hero {
    background: linear-gradient(120deg, #0A1C44, #123A8F);
    color: #fff;
}
body.lc-app .lcx-app-hero-inner { padding: 30px 22px 26px; }
body.lc-app .lcx-app-hero h1 {
    font-family: var(--lcx-font);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

/* ---------- Cards + titles ---------- */
body.lc-app .lc-card {
    background: var(--lcx-surface);
    border: 1px solid var(--lcx-line);
    border-radius: 20px;
    box-shadow: var(--lcx-shadow);
    padding: 22px;
    margin: 0 0 16px;
}
body.lc-app .lc-card-title,
body.lc-app .lc-section-title {
    font-weight: 800;
    color: var(--lcx-ink);
    letter-spacing: -0.01em;
}
body.lc-app .lc-dash-h { font-weight: 800; color: var(--lcx-ink); letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
body.lc-app .lc-btn { border-radius: 13px; font-weight: 700; }
body.lc-app .lc-btn-primary {
    background: var(--lcx-blue);
    border-color: var(--lcx-blue);
    box-shadow: 0 8px 18px rgba(30, 111, 242, .25);
}
body.lc-app .lc-btn-primary:hover { background: var(--lcx-blue-deep); border-color: var(--lcx-blue-deep); }
body.lc-app .lc-btn-outline {
    background: var(--lcx-surface);
    border-color: var(--lcx-line-strong);
    color: var(--lcx-ink);
}

/* ---------- Stats + numbers ---------- */
body.lc-app .lc-an-num,
body.lc-app .lc-portal-stats b,
body.lc-app .lc-money-hero .lc-money-amount {
    font-weight: 800;
    color: var(--lcx-ink);
    letter-spacing: -0.01em;
}
body.lc-app .lc-an-tab.is-on { background: var(--lcx-blue); border-color: var(--lcx-blue); color: #fff; }

/* ---------- Badges + chips ---------- */
body.lc-app .lc-badge { border-radius: 999px; font-weight: 700; }
body.lc-app .lc-orders-badge { display: inline-block; background: #D64545; color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; padding: 3px 7px; margin-left: 6px; vertical-align: middle; }
body.lc-app .lc-new-badge { background: #1E6FF2; color: #fff; }

/* ---------- TabBar ---------- */
body.lc-app .lc-tabbar {
    background: rgba(255, 255, 255, .92);
    border-top: 1px solid var(--lct-hairline);
}
body.lc-app .lc-tabbar-btn { color: var(--lct-ink-2); }
body.lc-app .lc-tabbar-btn.is-active { color: var(--lct-accent); }

/* ---------- Domain flow in the portal (A item 2: shelf geometry) ------
   The flow must never be squeezed into a shelf grid cell: wherever it
   renders inside the app, it takes the full row width. */
body.lc-app .lc-domain-flow { max-width: none; width: 100%; }
/* The shelf cells are inline-styled divs inside #lc-upsells' inline grid.
   Bring the cells onto the token system (exact in light, right in dark),
   and when a cell carries the domain flow, that CELL spans the full row —
   the outer card is not a grid item, so the span must land on the cell. */
body.lc-app #lc-upsells > div > div {
    border-color: var(--lcx-line) !important;
    background: var(--lcx-surface) !important;
    border-radius: 20px !important;
}
body.lc-app #lc-upsells > div > div:has(.lc-domain-flow) { grid-column: 1 / -1; }

/* ---------- Money hero (A gate defect 1) ----------
   The hero is a DARK featured card: lc.css paints it via --lcx-ink and its
   children in white. The generic card rule above out-specifies that
   background, which flattened the hero to white and hid the white amount.
   Restate it as the V2 navy gradient at winning specificity. */
body.lc-app .lc-card.lc-money-hero {
    background: linear-gradient(120deg, #0A1C44, #123A8F);
    color: #fff;
    border: none;
}
body.lc-app .lc-money-hero-mtd { color: #fff; font-weight: 800; }
body.lc-app .lc-money-hero .lc-money-hero-title { color: #fff; }

/* ---------- Sprint photo & bio form (A gate defect 2) ----------
   The bio textarea sits outside .lc-form-row, so no width rule ever
   reached it and it fell back to the browser's default narrow width. */
body.lc-app .lc-money-photo-form label { display: block; }
body.lc-app .lc-money-photo-form input[type="file"] { max-width: 100%; }
body.lc-app .lc-money-photo-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 76px;
}

/* ---------- TabBar clearance (A gate defect 3, overlay half) ----------
   The fixed bottom TabBar must never permanently cover content: give the
   app canvas end-of-page clearance beyond the bar's height, and keep
   anchored views clear of it too. */
body.lc-app .lcx-app { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
html:has(body.lc-app) { scroll-padding-bottom: 96px; }

/* ---------- Inputs (app forms) ---------- */
body.lc-app input[type="text"],
body.lc-app input[type="email"],
body.lc-app input[type="tel"],
body.lc-app input[type="number"],
body.lc-app input[type="date"],
body.lc-app select,
body.lc-app textarea {
    border-color: var(--lcx-line-strong);
    border-radius: 12px;
}
body.lc-app input:focus,
body.lc-app select:focus,
body.lc-app textarea:focus {
    border-color: var(--lcx-blue);
    box-shadow: 0 0 0 3px rgba(30, 111, 242, .16);
    outline: none;
}

/* ---------- Orders: tracker states + order head (v2.48.0) ----------
   Done reads green, the current step reads blue (the Space's tracker);
   the base sheet's pulse keyframe pulses the old green, so the current
   dot gets a scoped blue pulse here. */
body.lc-app .lc-order-steps-v2 .lc-step-done .lc-order-step-dot {
    background: var(--lcx-green);
    border-color: var(--lcx-green);
    color: #fff;
}
body.lc-app .lc-order-steps-v2 .lc-order-step.lc-step-done::before { background: var(--lcx-green); }
body.lc-app .lc-order-steps-v2 .lc-order-step.lc-step-now::before {
    background: linear-gradient(90deg, var(--lcx-green), var(--lct-line));
}
body.lc-app .lc-order-steps-v2 .lc-step-now .lc-order-step-dot {
    border-color: var(--lcx-blue);
    color: var(--lcx-blue);
    background: var(--lct-card);
    animation: lc-app-step-pulse 2s ease-in-out infinite;
}
/* v2.48.3: the soft shadow-only pulse was not observable in the agents'
   frame comparisons (two seats, static). The pulse now also scales the
   dot — a bounding-box change no frame comparison can miss if animations
   run at all; if it still reads static at both seats, animations are
   suppressed at those seats (reduced-motion), which is correct behavior. */
@keyframes lc-app-step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 111, 242, .35); transform: scale(1); }
    50% { box-shadow: 0 0 0 7px rgba(30, 111, 242, 0); transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
    body.lc-app .lc-order-steps-v2 .lc-step-now .lc-order-step-dot { animation: none; }
}
body.lc-app .lc-order-head strong { font-weight: 800; color: var(--lcx-ink); }
/* ORD-2 fix (v2.48.1): the v1 stepper rules (lc.css ~765) position the step
   dot ABSOLUTELY (top:2px, centered) and the v2 rules never reset it — so
   the dot lifted out of the flex column and painted over the middle of its
   own label ("B[✓]ed") on every tracker. Put the dot back in flow. */
body.lc-app .lc-order-steps-v2 .lc-order-step-dot { position: static; transform: none; }
/* Calculator row fix (v2.48.2): the collect calculator sits inside a
   .lc-form-row, whose input rule (width:100%, specificity 0,2,1) beats the
   calculator's own input width (5.2rem, 0,1,1) — so both number inputs went
   full-width and the row stacked vertically. Restore the one-row layout. */
body.lc-app .lc-collect-calc input[type="number"] { width: 5.2rem; flex: 0 0 auto; }
body.lc-app .lc-collect-calc { flex-wrap: wrap; }
/* Customers (v2.48.7): the book's at-risk row/label colors move from inline
   styles (amber hex, blind to dark mode) into classes with a dark variant;
   the team card gets stack spacing when it sits under the book. */
body.lc-app .lc-cust-risk { background: #FEF3C7; }
body.lc-app .lc-cust-risk-label { color: #92400E; }
body.lc-app .lc-team-card { margin-top: 18px; }
/* Customers fix (v2.48.8): the book's note field was fixed at 160px inline —
   placeholder and saved notes clipped. It now flexes to its cell. */
body.lc-app #lc-customer-book td form { flex-wrap: wrap; }
body.lc-app #lc-customer-book td form input[name="cust_note"] { flex: 1 1 auto; width: 100% !important; min-width: 200px; }

/* Earnings (v2.48.9): payout-state badges. The state keys come from
   lc_earning_payout_state() and render as .lc-payst-<key>; until now only
   the raw statuses payable/paid had colors (lc.css), and inside the portal
   the blanket .lc2-portal badge rule flattened every state to mist anyway.
   Grouped by meaning, token-driven, dark follows the tokens:
   sent = green; in-motion states = blue; pro-action states = honey;
   paused/unknown = mist. */
body.lc-app .lc-payst-sent { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }
body.lc-app .lc-payst-coming,
body.lc-app .lc-payst-queued,
body.lc-app .lc-payst-waiting,
body.lc-app .lc-payst-team,
body.lc-app .lc-payst-after_return { background: var(--lcx-blue-soft); color: var(--lcx-blue-deep); }
body.lc-app .lc-payst-owed,
body.lc-app .lc-payst-setup,
body.lc-app .lc-payst-attention { background: #FEF3C7; color: #92400E; }
body.lc-app .lc-payst-hold,
body.lc-app .lc-payst-other { background: var(--lcx-mist); color: var(--lcx-ink-3); }

/* Earnings (v2.48.10): the full /my-earnings/ page renders the RAW status
   classes (.lc-pay-<status>) without the state key. Same families:
   paid = green, owed = honey, pending/released = blue, held = mist.
   (payable keeps its lc.css rule.) */
body.lc-app .lc-pay-paid { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }
body.lc-app .lc-pay-owed { background: #FEF3C7; color: #92400E; }
body.lc-app .lc-pay-pending,
body.lc-app .lc-pay-released { background: var(--lcx-blue-soft); color: var(--lcx-blue-deep); }
body.lc-app .lc-pay-held { background: var(--lcx-mist); color: var(--lcx-ink-3); }

/* Recurring (v2.48.12): pro-side series rows + status badges (view only). */
body.lc-app .lc-rec-row { padding: 12px 0; }
body.lc-app .lc-rec-row + .lc-rec-row { border-top: 1px solid var(--lcx-line); }
body.lc-app .lc-recst-active { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }

/* Growth (v2.48.13): checklist hero + honest stats strip. */
body.lc-app .lc-card.lc-grow-hero { background: linear-gradient(120deg, #0A1C44, #123A8F); color: #fff; border: none; }
body.lc-app .lc-grow-hero .lc-grow-hero-title { color: #fff; margin: 0 0 4px; }
body.lc-app .lc-grow-hero .lc-grow-hero-sub { color: #C7D5F5; margin: 0 0 14px; }
body.lc-app .lc-grow-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
body.lc-app .lc-grow-hero .lc-grow-check-done { color: #7EE2A8; font-weight: 600; }
body.lc-app .lc-grow-hero .lc-grow-check-open { color: #fff; }
body.lc-app .lc-grow-check-btn { background: #fff; color: #123A8F; border: none; }
body.lc-app .lc-grow-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
body.lc-app .lc-grow-link-url { font-weight: 600; word-break: break-all; }
body.lc-app .lc-an-empty { margin: 10px 0; }
body.lc-app a.lc-tabbar-btn { text-decoration: none; }
@media (min-width: 768px) {
    body.lc-app .lc-tabbar { transform: none; left: 0; right: 0; margin-left: auto; margin-right: auto; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lcx-surface); }
}
body.lc-app .lc2-view[data-lc2-view="mypage"] .lc2-kit-block { background: var(--lcx-surface); border-color: var(--lcx-line); border-radius: 20px; padding: 18px; }
body.lc-app .lc2-view[data-lc2-view="mypage"] .lc2-kit-block-head h5 { font-weight: 800; }
body.lc-app .lc2-view[data-lc2-view="mypage"] .lc-stats-row .lc-stat { background: var(--lcx-surface); border: 1px solid var(--lcx-line); border-radius: 20px; padding: 14px; }
@media (min-width: 768px) {
    body.lc-app .lc-card.lc-money-hero { padding-top: 12px; }
    body.lc-app .lc-money-hero .lc-money-hero-title { margin: 0 0 4px; }
    body.lc-app .lc-money-hero-mtd { font-size: 24px; }
    body.lc-app .lc-money-hero .lc-money-goal-form { margin-top: -5px; }
    body.lc-app .lc-money-hero .lc-money-progress { margin: 4px 0; }
}
body.lc-app .lc2-view[data-lc2-view="mypage"] table { font-size: 14.5px; }
body.lc-app .lc2-view[data-lc2-view="mypage"] table th { font-weight: 800; }
body.lc-app .lc-grow-stats { display: flex; gap: 12px; flex-wrap: wrap; }
body.lc-app .lc-grow-stat { flex: 1 1 90px; text-align: center; }
body.lc-app .lc-grow-stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--lcx-ink); }
body.lc-app .lc-grow-stat-label { display: block; font-size: 12px; color: var(--lcx-ink-3); margin-top: 2px; }
body.lc-app .lc-recst-paused { background: #FEF3C7; color: #92400E; }

/* Earnings hero (v2.48.11): the hero's muted elements ("earned this month",
   the goal label, the fine print) sat at #aeaeb2 on the navy gradient — the
   same dim-on-navy class as the 2.47.3 title fix. Restated light. */
body.lc-app .lc-money-hero .lc-muted,
body.lc-app .lc-money-hero .lc-money-fine { color: #C7D5F5; }
@media (prefers-color-scheme: dark) {
  body.lc-app .lc-cust-risk { background: rgba(245, 158, 11, .15); }
  body.lc-app .lc-cust-risk-label { color: #FBBF24; }
  body.lc-app .lc-payst-owed,
  body.lc-app .lc-payst-setup,
  body.lc-app .lc-payst-attention { background: rgba(245, 158, 11, .15); color: #FBBF24; }
  body.lc-app .lc-pay-owed { background: rgba(245, 158, 11, .15); color: #FBBF24; }
  body.lc-app .lc-recst-paused { background: rgba(245, 158, 11, .15); color: #FBBF24; }
}
/* Badge status colors (v2.48.4): the portal layer's blanket badge rule
   (.lc2-portal .lc-badge, specificity 0,2,0) overrides the base sheet's
   per-status colors (0,1,0), so every status rendered the same stone pill
   (measured #f5f5f4 at both agent seats). Restore per-status coding inside
   the portal: blue family for active states, green for returned/completed,
   muted for cancelled. Token-driven, so dark follows. */
body.lc-app .lc2-portal .lc-badge.lc-status-posted,
body.lc-app .lc2-portal .lc-badge.lc-status-accepted,
body.lc-app .lc2-portal .lc-badge.lc-status-picked_up,
body.lc-app .lc2-portal .lc-badge.lc-status-at_laundry,
body.lc-app .lc2-portal .lc-badge.lc-status-out_for_delivery { background: var(--lcx-blue-soft); color: var(--lcx-blue-deep); }
body.lc-app .lc2-portal .lc-badge.lc-status-returned { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }
body.lc-app .lc2-portal .lc-badge.lc-status-cancelled { background: var(--lcx-mist); color: var(--lcx-ink-3); }

/* ==========================================================================
   Dark variant — follows the visitor's system setting.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    body.lc-app {
        --lcx-canvas: #060B1D;
        --lcx-surface: #0C1734;
        --lcx-mist: #0A142E;
        --lcx-mist-2: #12234D;
        --lcx-ink: #E9EEFB;
        --lcx-ink-2: #B9C6E8;
        --lcx-ink-3: #97A7CC;
        --lcx-line: rgba(233, 238, 251, .12);
        --lcx-line-strong: rgba(233, 238, 251, .24);
        --lcx-green: #2FBF5F;
        --lcx-green-deep: #2FBF5F;
        --lcx-green-ink: #7CE3AB;
        --lcx-green-soft: #12301F;
        --lcx-blue: #5B93F5;
        --lcx-blue-deep: #8DB9F8;
        --lcx-blue-soft: #12234D;
        --lcx-amber: #E8B23E;
        --lcx-amber-soft: #33270A;
        --lcx-red: #FF8787;
        --lcx-red-soft: #3D1A16;
        --lcx-shadow: 0 6px 18px rgba(0, 0, 0, .45);
        --lcx-shadow-sm: 0 2px 8px rgba(0, 0, 0, .40);
        --lct-bg: #060B1D;
        --lct-surface: #0C1734;
        --lct-surface-2: #0A142E;
        --lct-ink: #E9EEFB;
        --lct-ink-2: #B9C6E8;
        --lct-ink-3: #97A7CC;
        --lct-hairline: rgba(233, 238, 251, .14);
        --lct-accent: #5B93F5;
        --lct-accent-press: #8DB9F8;
        --lct-line: rgba(233, 238, 251, .20);
        --lct-mist: #0A142E;
        --lct-muted: #97A7CC;
        --lct-card: #0C1734;
    }
    body.lc-app .lcx-app { background: linear-gradient(180deg, #060B1D, #081026); }
    body.lc-app .lcx-app-hero { background: linear-gradient(120deg, #050D24, #0A1C44); }
    body.lc-app .lc-tabbar { background: rgba(9, 17, 40, .92); }
    body.lc-app .lc-btn-primary { box-shadow: none; }
    body.lc-app input:focus,
    body.lc-app select:focus,
    body.lc-app textarea:focus { box-shadow: 0 0 0 3px rgba(91, 147, 245, .25); }
}

/* ---- v2.48.27: Inventory (Expenses & supplies) V2 layer ----
   The sx family still read the old --lct (green-era) portal tokens
   while every converted view reads --lcx. Re-point the family:
   surfaces/radii/ink to the V2 set, state chips by family (green ok,
   amber low, red out), the low-stock alert to the amber family (it
   rendered in the accent tint), bars and level segs to V2 blue. */
body.lc-app .lc2-portal .lc-sx-alert { background: var(--lcx-amber-soft); }
body.lc-app .lc2-portal .lc-sx-alert p { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-toggle { background: var(--lcx-mist-2); }
body.lc-app .lc2-portal .lc-sx-range { color: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-range.is-on { background: var(--lcx-surface); color: var(--lcx-ink); box-shadow: var(--lcx-shadow-sm); }
body.lc-app .lc2-portal .lc-sx-stat { border-bottom-color: var(--lcx-line); }
body.lc-app .lc2-portal .lc-sx-num { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-lab { color: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-sub { color: var(--lcx-ink-3); }
body.lc-app .lc2-portal .lc-sx-h { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-cat-name { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-cat-amt { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-bar-track { background: var(--lcx-mist-2); }
body.lc-app .lc2-portal .lc-sx-bar { background: var(--lcx-ink-3); }
body.lc-app .lc2-portal .lc-sx-bar-supplies { background: var(--lcx-blue); }
body.lc-app .lc2-portal .lc-sx-bar-mileage { background: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-form-grid label { color: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-exp-row { border-bottom-color: var(--lcx-line); }
body.lc-app .lc2-portal .lc-sx-exp-cat { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-exp-note { color: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-exp-date { color: var(--lcx-ink-3); }
body.lc-app .lc2-portal .lc-sx-exp-amt { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-del button { color: var(--lcx-ink-3); }
body.lc-app .lc2-portal .lc-sx-export label { color: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-item { border-bottom-color: var(--lcx-line); }
body.lc-app .lc2-portal .lc-sx-item-name { color: var(--lcx-ink); }
body.lc-app .lc2-portal .lc-sx-item-line { color: var(--lcx-ink-2); }
body.lc-app .lc-sx-summary { background: var(--lcx-surface); border-color: var(--lcx-line); border-radius: 20px; }
body.lc-app .lc-sx-summary-attn { color: var(--lcx-amber); }
body.lc-app .lc-sx-card { background: var(--lcx-surface); border-color: var(--lcx-line); border-radius: 20px; box-shadow: var(--lcx-shadow-sm); }
body.lc-app .lc-sx-card.is-attn { border-color: rgba(185, 122, 6, .45); }
body.lc-app .lc-sx-card .lc-sx-item-line { color: var(--lcx-ink-2); opacity: 1; }
body.lc-app .lc-sx-card-meta { color: var(--lcx-ink-3); opacity: 1; }
body.lc-app .lc2-portal .lc-sx-chip { background: var(--lcx-mist); color: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-chip-ok { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }
body.lc-app .lc2-portal .lc-sx-chip-low { background: var(--lcx-amber-soft); color: var(--lcx-amber); }
body.lc-app .lc2-portal .lc-sx-chip-out { background: var(--lcx-red-soft); color: var(--lcx-red); }
body.lc-app .lc2-portal .lc-sx-seg { background: var(--lcx-surface); border-color: var(--lcx-line); color: var(--lcx-ink-2); }
body.lc-app .lc2-portal .lc-sx-seg.is-on { background: var(--lcx-blue); border-color: var(--lcx-blue); color: #fff; }
body.lc-app .lc-sx-check .lc-sx-seg.is-on { background: var(--lcx-blue); border-color: var(--lcx-blue); color: #fff; }
body.lc-app .lc-sx-sheet { background: var(--lcx-canvas); }
body.lc-app .lc-sx-sheet-h { color: var(--lcx-ink-3); opacity: 1; }
body.lc-app .lc-sx-saved { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }
@media (prefers-color-scheme: dark) {
  body.lc-app .lc2-portal .lc-sx-alert { background: rgba(245, 158, 11, .15); }
  body.lc-app .lc-sx-summary-attn { color: #FBBF24; }
  body.lc-app .lc-sx-card.is-attn { border-color: rgba(251, 191, 36, .45); }
  body.lc-app .lc2-portal .lc-sx-chip-low { background: rgba(245, 158, 11, .15); color: #FBBF24; }
  body.lc-app .lc2-portal .lc-sx-chip-out { background: rgba(201, 42, 42, .22); color: #FCA5A5; }
}

/* ---------- PS-2 customer surfaces (v2.48.36) ----------
   /my-orders/ renders inside the app canvas but wears lc.css's legacy
   base block (coral/cream). This layer re-points the customer wrap's
   component families to the V2 --lcx tokens; markup and flows are
   untouched. Scoped to the lc2-cust wrap only. */
body.lc-app .lc-wrap.lc2-cust { background: transparent; color: var(--lcx-ink); }
body.lc-app .lc2-cust .lc-portal-hero { background: linear-gradient(120deg, #0A1C44, #123A8F); border: none; border-radius: 20px; box-shadow: var(--lcx-shadow-sm); }
body.lc-app .lc2-cust .lc-portal-hero::before { display: none; }
body.lc-app .lc2-cust .lc-portal-hello { color: #C7D5F5; }
body.lc-app .lc2-cust .lc-portal-name { color: #fff; font-weight: 800; }
body.lc-app .lc2-cust .lc-portal-sub { color: #C7D5F5; }
body.lc-app .lc2-cust .lc-portal-hero .lc-btn-primary { background: #fff; border-color: #fff; color: var(--lcx-ink); }
body.lc-app .lc2-cust .lc-portal-hero .lc-btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
body.lc-app .lc2-cust .lc-pstat { background: var(--lcx-surface); border-color: var(--lcx-line); border-radius: 20px; box-shadow: var(--lcx-shadow-sm); }
body.lc-app .lc2-cust .lc-pstat-num { color: var(--lcx-ink); font-weight: 800; }
body.lc-app .lc2-cust .lc-pstat-label { color: var(--lcx-ink-3); }
body.lc-app .lc2-cust .lc-card { background: var(--lcx-surface); border-color: var(--lcx-line); border-radius: 20px; box-shadow: var(--lcx-shadow-sm); }
body.lc-app .lc2-cust .lc-section-title { color: var(--lcx-ink); font-weight: 800; }
body.lc-app .lc2-cust .lc-btn-primary { background: var(--lcx-blue); border-color: var(--lcx-blue); color: #fff; }
body.lc-app .lc2-cust .lc-btn-primary:hover { background: var(--lcx-blue-deep); border-color: var(--lcx-blue-deep); color: #fff; }
body.lc-app .lc2-cust .lc-btn-outline { border-color: var(--lcx-blue); color: var(--lcx-blue-deep); }
body.lc-app .lc2-cust .lc-btn-outline:hover { background: var(--lcx-blue-soft); border-color: var(--lcx-blue-deep); color: var(--lcx-blue-deep); }
body.lc-app .lc2-cust .lc-badge { background: var(--lcx-mist); color: var(--lcx-ink-2); }
body.lc-app .lc2-cust .lc-badge-match, body.lc-app .lc2-cust .lc-badge.lc-frequency { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }
body.lc-app .lc2-cust .lc-order-step::before { background: var(--lcx-line); }
body.lc-app .lc2-cust .lc-order-step-dot { background: var(--lcx-mist); border-color: var(--lcx-line); color: var(--lcx-ink-3); }
body.lc-app .lc2-cust .lc-order-step-done .lc-order-step-dot { background: var(--lcx-green); border-color: var(--lcx-green); color: #fff; }
body.lc-app .lc2-cust .lc-order-step-done::before { background: var(--lcx-green); }
body.lc-app .lc2-cust .lc-order-step-done .lc-order-step-label { color: var(--lcx-green-deep); }
body.lc-app .lc2-cust .lc-order-step-now .lc-order-step-dot { background: var(--lcx-blue); border-color: var(--lcx-blue); color: #fff; box-shadow: 0 0 0 5px var(--lcx-blue-soft); }
body.lc-app .lc2-cust .lc-order-step-now .lc-order-step-label { color: var(--lcx-ink); }
body.lc-app .lc2-cust .lc-order-step-now::before { background: var(--lcx-green); }
body.lc-app .lc2-cust .lc-order-step-label { color: var(--lcx-ink-3); }
body.lc-app .lc2-cust .lc-tl-dot { background: var(--lcx-blue); }
body.lc-app .lc2-cust .lc-msg { background: var(--lcx-mist); color: var(--lcx-ink); }
body.lc-app .lc2-cust .lc-msg-mine { background: var(--lcx-blue-soft); }
body.lc-app .lc2-cust .lc-msg-form textarea:focus { border-color: var(--lcx-blue); box-shadow: 0 0 0 4px rgba(30,111,242,.25); }
body.lc-app .lc2-cust .lc-track-fresh { color: var(--lcx-ink-3); }
body.lc-app .lc-osheet-panel { background: var(--lcx-canvas); }

/* PS-3 (v2.48.42): the info pages (About / Pricing / Help / Contact /
   How it works / Features / FAQ / Blog index + the pros directory,
   income calculator and starter kit) share one legacy shell -
   .lc-wrap.lc-content-page with .lc-card cards - styled by lc.css's
   old base block (coral kicker, cream about cards, soft legacy
   lines). This layer re-points that shell's component families to
   the V2 --lcx tokens; markup, copy and flows are untouched.
   Scoped to the content-page wrap only. */
body.lc-app .lc-content-page { color: var(--lcx-ink); }
body.lc-app .lc-content-page a { color: var(--lcx-blue); }
body.lc-app .lc-content-page h2 { font-family: var(--lcx-font); font-weight: 700; color: var(--lcx-ink); }
body.lc-app .lc-content-page h3 { font-family: var(--lcx-font); font-weight: 700; color: var(--lcx-ink); }
body.lc-app .lc-content-page h4 { font-family: var(--lcx-font); color: var(--lcx-ink); }
body.lc-app .lc-wrap.lc-content-page { background: transparent; border: none; box-shadow: none; border-radius: 0; }
body.lc-app .lc-content-page .lc-content-kicker { color: var(--lcx-blue); }
body.lc-app .lc-content-page .lc-content-h1 { color: var(--lcx-ink); font-weight: 800; }
body.lc-app .lc-content-page .lc-content-lede { color: var(--lcx-ink-2); }
body.lc-app .lc-content-page .lc-card { background: var(--lcx-surface); border-color: var(--lcx-line); border-radius: 20px; box-shadow: var(--lcx-shadow-sm); }
body.lc-app .lc-content-page .lc-card-title { color: var(--lcx-ink); font-weight: 800; }
body.lc-app .lc-content-page .lc-muted { color: var(--lcx-ink-3); }
body.lc-app .lc-content-page .lc-btn-primary { background: var(--lcx-blue); border-color: var(--lcx-blue); color: #fff; }
body.lc-app .lc-content-page .lc-btn-primary:hover { background: var(--lcx-blue-deep); border-color: var(--lcx-blue-deep); color: #fff; }
body.lc-app .lc-content-page .lc-btn-outline { border-color: var(--lcx-blue); color: var(--lcx-blue-deep); }
body.lc-app .lc-content-page .lc-btn-outline:hover { background: var(--lcx-blue-soft); border-color: var(--lcx-blue-deep); color: var(--lcx-blue-deep); }
body.lc-app .lc-content-page .lc-about-card { background: var(--lcx-mist); border-color: var(--lcx-line); border-radius: 20px; }
body.lc-app .lc-content-page .lc-pricing-table th, body.lc-app .lc-content-page .lc-pricing-table td { border-bottom-color: var(--lcx-line); }
body.lc-app .lc-content-page .lc-pricing-table th { color: var(--lcx-ink-3); }
body.lc-app .lc-content-page .lc-dir-card { background: var(--lcx-surface); border-color: var(--lcx-line); border-radius: 20px; box-shadow: var(--lcx-shadow-sm); }
body.lc-app .lc-content-page .lc-dir-badge { background: var(--lcx-green-soft); color: var(--lcx-green-deep); }
body.lc-app .lc-content-page .lc-dir-price { color: var(--lcx-green-deep); }
body.lc-app .lc-content-page .lc-faq { border-color: var(--lcx-line); }
body.lc-app .lc-content-page input[type="text"], body.lc-app .lc-content-page input[type="email"], body.lc-app .lc-content-page input[type="number"], body.lc-app .lc-content-page textarea, body.lc-app .lc-content-page select { border-color: var(--lcx-line); border-radius: 12px; }
body.lc-app .lc-content-page input:focus, body.lc-app .lc-content-page textarea:focus, body.lc-app .lc-content-page select:focus { border-color: var(--lcx-blue); box-shadow: 0 0 0 4px rgba(30,111,242,.25); outline: none; }
@media (prefers-color-scheme: dark) {
    body.lc-app .lc2-cust .lc-pstat, body.lc-app .lc2-cust .lc-card { background: #151D3D; border-color: rgba(255,255,255,.16); }
    body.lc-app .lc2-cust .lc-pstat-num, body.lc-app .lc2-cust .lc-section-title { color: #F2F5FF; }
    body.lc-app .lc2-cust .lc-pstat-label, body.lc-app .lc2-cust .lc-order-step-label { color: #93A2CC; }
    body.lc-app .lc2-cust .lc-badge { background: #1B2547; color: #C3CDF0; }
    body.lc-app .lc2-cust .lc-badge-match, body.lc-app .lc2-cust .lc-badge.lc-frequency { background: #12351F; color: #5FD68B; }
    body.lc-app .lc2-cust .lc-order-step::before { background: rgba(255,255,255,.16); }
    body.lc-app .lc2-cust .lc-order-step-dot { background: #1B2547; border-color: rgba(255,255,255,.16); color: #93A2CC; }
    body.lc-app .lc2-cust .lc-order-step-done .lc-order-step-label { color: #5FD68B; }
    body.lc-app .lc2-cust .lc-msg { background: #1B2547; color: #F2F5FF; }
    body.lc-app .lc2-cust .lc-msg-mine { background: #1B2B52; }
    body.lc-app .lc-osheet-panel { background: #0C1229; }
    body.lc-app .lc-content-page .lc-card, body.lc-app .lc-content-page .lc-dir-card { background: #151D3D; border-color: rgba(255,255,255,.16); }
    body.lc-app .lc-content-page .lc-content-h1, body.lc-app .lc-content-page .lc-card-title { color: #F2F5FF; }
    body.lc-app .lc-content-page .lc-content-lede { color: #C3CDF0; }
    body.lc-app .lc-content-page .lc-muted, body.lc-app .lc-content-page .lc-pricing-table th { color: #93A2CC; }
    body.lc-app .lc-content-page .lc-about-card { background: #1B2547; border-color: rgba(255,255,255,.16); }
    body.lc-app .lc-content-page .lc-pricing-table th, body.lc-app .lc-content-page .lc-pricing-table td { border-bottom-color: rgba(255,255,255,.16); }
    body.lc-app .lc-content-page .lc-dir-badge { background: #12351F; color: #5FD68B; }
    body.lc-app .lc-content-page .lc-dir-price { color: #5FD68B; }
}

/* v2.48.107 (Growth B9): install invitation bar */
.lc-pwa-bar{display:flex;align-items:center;gap:.75rem;background:var(--lcx-surface);border:1px solid var(--lcx-line);border-radius:14px;padding:.75rem 1rem;margin:0 0 1rem;color:var(--lcx-ink)}
.lc-pwa-bar[hidden]{display:none}
.lc-pwa-text{flex:1;font-size:.92rem;line-height:1.35}
.lc-pwa-x{background:none;border:0;font-size:1rem;line-height:1;cursor:pointer;color:inherit;padding:.25rem}
