/* =====================================================================
   Portal components (prefix lp-), layer 4 of 4: mila.css > public.css > site-v3.css > portal.css.
   Scope .lp; no mila-* or lp3-* class is introduced here. CSP-clean: no component needs an inline style.
   Logical properties only (RTL and LTR from one rule set).
   ===================================================================== */

/* ---------- 0. Extra tokens: accessible status inks (measured, WCAG AA on white and on their bg) ---------- */
.lp{
  --lp-ok-ink:#127950;   --lp-ok-bg:#E3F5E8;    /* 5.42:1 on #fff, 4.77:1 on bg */
  --lp-err-ink:#A82F2F;  --lp-err-bg:#FDE8E8;   /* 6.75:1 on #fff, 5.75:1 on bg */
  --lp-warn-ink:#806512; --lp-warn-bg:#FFF4D6;  /* 5.54:1 on #fff, 5.06:1 on bg */
  --lp-info-ink:#0066CC; --lp-info-bg:#E8F1FC;  /* 5.57:1 on #fff, 4.88:1 on bg */
  --lp-accent-ink:#B34700;                      /* replaces --lp3-orange (3.15:1) for small eyebrow text: 5.50:1 */
  --lp-ui-font:var(--font);                     /* IBM Plex Sans Arabic (or Saudi font) for data and controls */
  --lp-header-h:52px;
}

/* ---------- 1. Product-UI typography switch ----------
   site-v3.css forces The Year of The Camel on every text node in .lp (line 24).
   Portal pages add class lp-ui on <body>: headings keep Camel, controls/data/body copy use Plex. */
.lp.lp-ui :is(p,li,label,input,select,textarea,button,summary,small,td,th,dd,dt,span,b,strong,a,.btn,output){ font-family:var(--lp-ui-font) !important; }
.lp.lp-ui :is(h1,h2,h3,.lp-display){ font-family:var(--lp3-font) !important; }
.lp .lp-num, .lp .lp-num *{ font-family:var(--lp-ui-font) !important; font-variant-numeric:tabular-nums; unicode-bidi:plaintext; }
.lp .lp-mono{ font-family:var(--lp3-mono) !important; }
.lp-page-bg2{ background:var(--lp3-bg2) !important; }

/* ---------- 2. Segmented toggle (billing cycle, generic two/three options) ---------- */
.lp-toggle{ display:inline-flex; gap:4px; padding:4px; background:var(--lp3-bg2); border:1px solid var(--lp3-line2); border-radius:999px; margin:0; }
.lp-toggle input{ position:absolute; opacity:0; pointer-events:none; }
.lp .lp-toggle label{ display:inline-flex; align-items:center; gap:8px; min-height:40px; margin:0; padding:8px 18px; border-radius:999px; font-size:15px; font-weight:500; color:var(--lp3-ink2); cursor:pointer; text-align:center; }
.lp-toggle input:checked + label{ background:#fff; color:var(--lp3-ink); box-shadow:0 1px 4px rgba(0,0,0,.12); }
.lp-toggle input:focus-visible + label{ outline:3px solid rgba(0,113,227,.45); outline-offset:2px; }
.lp-save{ display:inline-flex; font-size:12px; font-weight:700; color:var(--lp-ok-ink); background:var(--lp-ok-bg); padding:2px 8px; border-radius:999px; }

/* ---------- 3. Seat-band selector (radio pills) ---------- */
.lp-seats{ border:0; padding:0; margin:0; display:flex; flex-direction:column; align-items:center; gap:10px; min-width:0; }
.lp .lp-seats legend{ float:none; width:auto; padding:0; margin:0 0 4px; font-size:15px; color:var(--lp3-muted); font-weight:500; text-align:center; }
.lp-seats .opts{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.lp-seats input{ position:absolute; opacity:0; pointer-events:none; }
.lp .lp-seats label{ display:inline-flex; align-items:center; min-height:44px; margin:0; padding:10px 18px; border-radius:999px; border:1px solid var(--lp3-line2); background:#fff; font-size:15px; color:var(--lp3-ink2); cursor:pointer; }
.lp-seats input:checked + label{ background:var(--lp3-ink); border-color:var(--lp3-ink); color:#fff; }
.lp-seats input:focus-visible + label{ outline:3px solid rgba(0,113,227,.45); outline-offset:2px; }

/* ---------- 4. Pricing: plan cards ---------- */
.lp-pricing-controls{ display:flex; flex-direction:column; align-items:center; gap:22px; margin:0 auto 44px; }
.lp-plans{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.lp-plan{ position:relative; overflow:hidden; display:flex; flex-direction:column; gap:14px; padding:32px 28px; border-radius:var(--lp3-r-lg); background:var(--lp3-bg2); color:var(--lp3-ink); }
.lp-plan > *{ position:relative; z-index:1; }
.lp-plan h3{ margin:0; font-size:26px; font-weight:800; line-height:1.4; }
.lp-plan .for{ margin:0; font-size:15px; line-height:1.8; color:var(--lp3-muted); }
.lp-plan .flag{ align-self:flex-start; font-size:12.5px; font-weight:700; padding:3px 12px; border-radius:999px; background:var(--lp3-ink); color:#fff; }
.lp-plan.is-featured{ background:var(--lp3-dark); color:#F5F5F7; }
.lp-plan.is-featured::after{ content:""; position:absolute; z-index:0; inset:auto -140px -180px auto; width:460px; height:460px; border-radius:50%; background:radial-gradient(closest-side,rgba(245,99,0,.40),rgba(255,55,95,.16),transparent); pointer-events:none; }
.lp-plan.is-featured .for, .lp-plan.is-featured .lp-price-note, .lp-plan.is-featured .lp-price .per{ color:var(--lp3-dark-muted); }
.lp-plan.is-featured .flag{ background:#F5F5F7; color:#000; }
.lp-plan.is-featured .lp-checks li{ color:#F5F5F7 !important; }
.lp-plan.is-featured .lp-checks svg{ color:#30D158 !important; }
.lp-price{ display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 8px; margin:4px 0 0; }
.lp-price b{ font-size:44px; line-height:1.15; font-weight:700; }
.lp-price .cur{ font-size:17px; font-weight:600; }
.lp-price .per{ font-size:15px; color:var(--lp3-muted); }
.lp-price-note{ margin:0; min-height:1.7em; font-size:13.5px; color:var(--lp3-muted); }
.lp-plan .btn{ width:100%; }
.lp-plan .lp-checks{ margin-top:4px; }
.lp-plan .lp-checks li{ font-size:15px; }
.lp-plan.is-na .lp-price b{ font-size:24px; }
/* show/hide by cycle and seat band, driven by data attributes on the pricing root (set by JS or by the server) */
.lp-pricing[data-cycle="annual"] [data-cycle-only="monthly"],
.lp-pricing[data-cycle="monthly"] [data-cycle-only="annual"]{ display:none !important; }
.lp-pricing [data-band]:not(.is-band){ display:none !important; }
.lp-vat{ text-align:center; margin:22px auto 0; max-width:720px; font-size:14px; color:var(--lp3-muted); }

/* ---------- 5. Feature comparison table ---------- */
.lp-compare-wrap{ overflow-x:auto; border-radius:var(--lp3-r-md); background:#fff; border:1px solid var(--lp3-line2); -webkit-overflow-scrolling:touch; }
.lp-compare{ width:100%; min-width:660px; border-collapse:collapse; font-size:15px; }
.lp-compare caption{ caption-side:top; text-align:start; padding:18px 20px 6px; font-weight:800; font-size:18px; }
.lp-compare th, .lp-compare td{ padding:14px 18px; border-bottom:1px solid var(--lp3-line2); text-align:center; vertical-align:middle; }
.lp-compare thead th{ background:var(--lp3-bg3); font-weight:800; font-size:16px; }
.lp-compare th[scope="row"]{ text-align:start; font-weight:500; color:var(--lp3-ink2); background:#fff; position:sticky; inset-inline-start:0; z-index:1; }
.lp-compare tr.grp th{ text-align:start; background:var(--lp3-bg2); font-weight:800; font-size:14px; color:var(--lp3-ink); position:static; }
.lp-compare svg{ width:20px; height:20px; vertical-align:middle; }
.lp-compare .yes{ color:var(--lp-ok-ink); }
.lp-compare .no{ color:var(--lp3-muted2); }
.lp-compare tbody tr:last-child > *{ border-bottom:0; }

/* ---------- 6. Wizard: layout, stepper, step panels ---------- */
.lp-wizard{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
.lp-stepper{ list-style:none; margin:0 0 24px; padding:0; display:flex; gap:6px; counter-reset:lpwz; }
.lp-stepper li{ counter-increment:lpwz; flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:8px; font-size:13px; line-height:1.5; color:var(--lp3-muted); }
.lp-stepper li::before{ content:""; display:block; height:4px; border-radius:4px; background:var(--lp3-line2); }
.lp-stepper li.done{ color:var(--lp3-ink2); }
.lp-stepper li.done::before{ background:var(--lp3-ink); }
.lp-stepper li[aria-current="step"]{ color:var(--lp3-ink); font-weight:700; }
.lp-stepper li[aria-current="step"]::before{ background:var(--lp3-blue); }
.lp-stepper .n::after{ content:counter(lpwz,decimal-leading-zero); font-family:var(--lp3-mono); }
.lp-step-of{ display:none; font-size:14px; color:var(--lp3-muted); margin:0 0 8px; }
.lp-step-panel[hidden]{ display:none !important; }
.lp-step-actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; margin-top:22px; padding-top:18px; border-top:1px solid var(--lp3-line2); }
.lp-step-actions .btn-gold{ min-width:180px; }
.lp-field-hint{ margin:6px 0 0; font-size:13.5px; color:var(--lp3-muted); }

/* ---------- 7. Subdomain field with live availability ---------- */
.lp-slug{ display:flex; align-items:stretch; direction:ltr; border-radius:var(--lp3-r-sm); background:var(--lp3-bg2); border:1px solid var(--lp3-bg2); transition:border-color .15s, box-shadow .15s, background .15s; }
.lp-slug:focus-within{ background:#fff; border-color:var(--lp3-blue); box-shadow:0 0 0 4px rgba(0,113,227,.15); }
.lp .lp-slug .form-control{ flex:1 1 auto; min-width:0; border:0 !important; background:transparent !important; box-shadow:none !important; text-align:left; font-family:var(--lp3-mono) !important; font-size:17px !important; }
.lp-slug .sfx{ display:flex; align-items:center; padding-inline:14px; font-family:var(--lp3-mono) !important; font-size:15px; color:var(--lp3-muted); white-space:nowrap; border-inline-start:1px solid var(--lp3-line2); }
.lp-slug[data-state="ok"]{ border-color:var(--lp-ok-ink); }
.lp-slug[data-state="taken"], .lp-slug[data-state="invalid"]{ border-color:var(--lp-err-ink); }
.lp-slug-status{ display:flex; align-items:center; gap:8px; min-height:26px; margin:8px 0 0; font-size:14px; color:var(--lp3-muted); }
.lp-slug-status svg{ width:18px; height:18px; flex:0 0 auto; }
.lp-slug-status[data-state="ok"]{ color:var(--lp-ok-ink); }
.lp-slug-status[data-state="taken"], .lp-slug-status[data-state="invalid"]{ color:var(--lp-err-ink); }
.lp-slug-preview{ margin:10px 0 0; font-size:14px; color:var(--lp3-muted); }
.lp-slug-preview b{ color:var(--lp3-ink); font-family:var(--lp3-mono) !important; font-weight:500; direction:ltr; unicode-bidi:isolate; }
.lp-suggest{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; padding:0; }
.lp-suggest button{ min-height:36px; padding:6px 14px; border-radius:999px; border:1px solid var(--lp3-line2); background:#fff; color:var(--lp3-link); font-family:var(--lp3-mono) !important; font-size:14px; cursor:pointer; direction:ltr; }
.lp-suggest button:hover{ border-color:var(--lp3-blue); }
.lp-rules{ margin:12px 0 0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13px; color:var(--lp3-muted); }
.lp-rules li{ display:inline-flex; gap:6px; align-items:center; }
.lp-rules li.ok{ color:var(--lp-ok-ink); }
.lp-rules svg{ width:14px; height:14px; }

/* ---------- 8. Choice cards (plan, payment method) ---------- */
.lp-choices{ display:grid; gap:10px; border:0; padding:0; margin:0; min-width:0; }
.lp-choices.c2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.lp-choices.c3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.lp .lp-choice{ position:relative; display:grid; grid-template-columns:22px minmax(0,1fr) auto; gap:4px 14px; align-items:start; margin:0; padding:18px 20px; border:1.5px solid var(--lp3-line2); border-radius:var(--lp3-r-sm); background:#fff; cursor:pointer; font-weight:400; text-align:start; transition:border-color .15s, box-shadow .15s; }
.lp-choice:hover{ border-color:var(--lp3-line); }
.lp-choice input{ position:absolute; opacity:0; pointer-events:none; }
.lp-choice .dot{ grid-row:1 / span 2; width:20px; height:20px; margin-top:4px; border-radius:50%; border:2px solid var(--lp3-line); background:#fff; transition:border-width .15s, border-color .15s; }
.lp-choice input:checked + .dot{ border:6px solid var(--lp3-blue); }
.lp-choice input[type="checkbox"] + .dot{ border-radius:6px; }
.lp-choice:has(input:checked){ border-color:var(--lp3-blue); box-shadow:0 0 0 3px rgba(0,113,227,.12); }
.lp-choice:has(input:focus-visible){ outline:3px solid rgba(0,113,227,.45); outline-offset:2px; }
.lp-choice:has(input:disabled){ opacity:.55; cursor:not-allowed; }
.lp-choice .t{ font-weight:700; font-size:16px; color:var(--lp3-ink); }
.lp-choice .d{ grid-column:2; font-size:14px; line-height:1.7; color:var(--lp3-muted); }
.lp-choice .aside{ grid-column:3; grid-row:1 / span 2; align-self:center; text-align:end; }
.lp-paymarks{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; grid-column:2; }
.lp-paymarks span{ font-size:12px; font-weight:700; padding:3px 9px; border-radius:6px; border:1px solid var(--lp3-line2); color:var(--lp3-ink2); background:var(--lp3-bg3); direction:ltr; }

/* ---------- 9. Order summary + money lines ---------- */
.lp-summary{ position:sticky; top:calc(var(--lp-header-h) + 20px); display:flex; flex-direction:column; gap:14px; padding:24px; border-radius:var(--lp3-r-md); background:#fff; border:1px solid var(--lp3-line2); }
.lp-summary h2{ margin:0; font-size:19px !important; font-weight:800; line-height:1.5 !important; }
.lp-lines{ width:100%; border-collapse:collapse; font-size:15px; }
.lp-lines th{ padding:7px 0; text-align:start; font-weight:400; color:var(--lp3-ink2); }
.lp-lines td{ padding:7px 0; text-align:end; white-space:nowrap; font-variant-numeric:tabular-nums; }
.lp-lines tr.sub th, .lp-lines tr.sub td{ color:var(--lp3-muted); font-size:14px; }
.lp-lines tr.total th, .lp-lines tr.total td{ padding-top:14px; border-top:1px solid var(--lp3-line); font-weight:800; font-size:18px; color:var(--lp3-ink); }
.lp-summary .lp-kv{ font-size:14px; }

/* ---------- 10. Callout + chip variants (extend existing lp-callout / lp-chip-sm) ---------- */
.lp .lp-callout.ok{ background:var(--lp-ok-bg) !important; color:var(--lp3-ink) !important; }
.lp .lp-callout.err{ background:var(--lp-err-bg) !important; color:var(--lp3-ink) !important; }
.lp .lp-callout.warn{ background:var(--lp-warn-bg) !important; color:var(--lp3-ink) !important; }
.lp .lp-callout.info{ background:var(--lp-info-bg) !important; color:var(--lp3-ink) !important; }
.lp-callout.ok svg{ color:var(--lp-ok-ink); } .lp-callout.err svg{ color:var(--lp-err-ink); }
.lp-callout.warn svg{ color:var(--lp-warn-ink); } .lp-callout.info svg{ color:var(--lp-info-ink); }
.lp-callout .act{ margin-inline-start:auto; flex:0 0 auto; }
.lp-callout .ttl{ display:block; font-weight:800; }
.lp .lp-chip-sm.ok{ color:var(--lp-ok-ink); background:var(--lp-ok-bg); }
.lp .lp-chip-sm.err{ color:var(--lp-err-ink); background:var(--lp-err-bg); }
.lp .lp-chip-sm.warn{ color:var(--lp-warn-ink); background:var(--lp-warn-bg); }
.lp .lp-chip-sm.info{ color:var(--lp-info-ink); background:var(--lp-info-bg); }
.lp .lp-chip-sm.muted{ color:var(--lp3-ink2); background:var(--lp3-bg2); }

/* ---------- 11. Panels, portal shell, sub-navigation ---------- */
.lp-panel{ background:#fff; border:1px solid var(--lp3-line2); border-radius:var(--lp3-r-md); padding:28px; min-width:0; }
.lp-panel > h2, .lp-panel-h{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; font-size:20px !important; font-weight:800; line-height:1.5 !important; }
.lp-panel-h a{ font-size:15px; font-weight:500; }
.lp-subnav{ position:sticky; top:var(--lp-header-h); z-index:40; background:rgba(251,251,253,.92); border-bottom:1px solid var(--lp3-line2); }
.lp-subnav ul{ display:flex; gap:2px; list-style:none; margin:0; padding:0; overflow-x:auto; scrollbar-width:none; }
.lp-subnav ul::-webkit-scrollbar{ display:none; }
.lp .lp-subnav a{ display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 14px; white-space:nowrap; font-size:15px; color:var(--lp3-ink2); text-decoration:none; box-shadow:inset 0 -2px 0 transparent; }
.lp .lp-subnav a:hover{ color:var(--lp3-ink); text-decoration:none; }
.lp .lp-subnav a[aria-current="page"]{ color:var(--lp3-ink); font-weight:700; box-shadow:inset 0 -2px 0 var(--lp3-ink); }
.lp-portal-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px; padding-block:40px 24px; }
.lp-portal-head h1{ margin:0; font-size:clamp(28px,3.4vw,40px); font-weight:800; line-height:1.35; }
.lp-portal-head p{ margin:4px 0 0; color:var(--lp3-muted); }
.lp-dash{ display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:14px; align-items:start; padding-bottom:72px; }
.lp-dash > .wide{ grid-column:1 / -1; }
.lp-stack{ display:flex; flex-direction:column; gap:14px; min-width:0; }

/* ---------- 12. Subscription card (dark, same family as .lp3-tile.is-hero) ---------- */
.lp-sub{ position:relative; overflow:hidden; display:flex; flex-direction:column; gap:18px; padding:32px; border-radius:var(--lp3-r-lg); background:var(--lp3-dark); color:#F5F5F7; }
.lp-sub::after{ content:""; position:absolute; z-index:0; inset:auto -120px -200px auto; width:520px; height:520px; border-radius:50%; background:radial-gradient(closest-side,rgba(0,113,227,.35),rgba(125,60,209,.18),transparent); pointer-events:none; }
.lp-sub > *{ position:relative; z-index:1; }
.lp-sub .top{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.lp-sub .k{ font-size:14px; color:var(--lp3-dark-muted); }
.lp-sub h2{ margin:0; font-size:var(--lp3-h3); font-weight:800; line-height:1.3; color:#F5F5F7; }
.lp-sub .url{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 14px; border-radius:var(--lp3-r-sm); background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); }
.lp-sub .url b{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; direction:ltr; text-align:left; font-family:var(--lp3-mono) !important; font-weight:500; font-size:16px; color:#F5F5F7; }
.lp-sub .facts{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; }
.lp-sub .facts div{ padding:14px; border-radius:var(--lp3-r-sm); background:rgba(255,255,255,.06); }
.lp-sub .facts dt{ font-size:13px; color:var(--lp3-dark-muted); }
.lp-sub .facts dd{ margin:4px 0 0; font-size:17px; font-weight:700; color:#F5F5F7; }
.lp-sub .actions{ display:flex; flex-wrap:wrap; gap:10px; }
.lp .lp-sub .btn-light{ background:#F5F5F7 !important; color:#000 !important; }
.lp .lp-sub .btn-ghost{ color:#F5F5F7 !important; border:1px solid #48484A !important; }
.lp .lp-sub .btn-ghost:hover{ color:#fff !important; border-color:#86868B !important; }

/* ---------- 13. Usage meter (CSP-safe: width from data-pct in 5% steps, no inline style) ---------- */
.lp-meter{ display:grid; grid-template-columns:1fr auto; gap:8px 12px; align-items:baseline; }
.lp-meter .lbl{ font-size:15px; color:var(--lp3-ink2); }
.lp-meter .val{ font-size:15px; font-weight:700; }
.lp-meter .track{ grid-column:1 / -1; height:8px; border-radius:8px; background:var(--lp3-bg2); overflow:hidden; }
.lp-meter .fill{ display:block; height:100%; width:0; border-radius:8px; background:var(--lp3-ink); }
.lp-meter.warn .fill{ background:linear-gradient(90deg,#FF9F0A,#FF375F); }
.lp-meter.full .fill{ background:var(--lp-err-ink); }
.lp-meter .note{ grid-column:1 / -1; margin:0; font-size:13.5px; color:var(--lp3-muted); }
.lp-meter.warn .note{ color:var(--lp-warn-ink); }
.lp-meter.full .note{ color:var(--lp-err-ink); }
.lp-meter .fill[data-pct="5"]{width:5%}.lp-meter .fill[data-pct="10"]{width:10%}.lp-meter .fill[data-pct="15"]{width:15%}.lp-meter .fill[data-pct="20"]{width:20%}
.lp-meter .fill[data-pct="25"]{width:25%}.lp-meter .fill[data-pct="30"]{width:30%}.lp-meter .fill[data-pct="35"]{width:35%}.lp-meter .fill[data-pct="40"]{width:40%}
.lp-meter .fill[data-pct="45"]{width:45%}.lp-meter .fill[data-pct="50"]{width:50%}.lp-meter .fill[data-pct="55"]{width:55%}.lp-meter .fill[data-pct="60"]{width:60%}
.lp-meter .fill[data-pct="65"]{width:65%}.lp-meter .fill[data-pct="70"]{width:70%}.lp-meter .fill[data-pct="75"]{width:75%}.lp-meter .fill[data-pct="80"]{width:80%}
.lp-meter .fill[data-pct="85"]{width:85%}.lp-meter .fill[data-pct="90"]{width:90%}.lp-meter .fill[data-pct="95"]{width:95%}.lp-meter .fill[data-pct="100"]{width:100%}

/* ---------- 14. Data table (invoices) with stacked rows on phones ---------- */
.lp-table-wrap{ overflow-x:auto; }
.lp-table{ width:100%; border-collapse:collapse; font-size:15px; }
.lp-table th{ padding:10px 12px; text-align:start; font-size:13px; font-weight:500; color:var(--lp3-muted); border-bottom:1px solid var(--lp3-line); white-space:nowrap; }
.lp-table td{ padding:14px 12px; border-bottom:1px solid var(--lp3-line2); vertical-align:middle; white-space:nowrap; }
.lp-table td.wrap{ white-space:normal; }
.lp-table td.n, .lp-table th.n{ text-align:end; white-space:nowrap; font-variant-numeric:tabular-nums; }
.lp-table tr:last-child td{ border-bottom:0; }
.lp-table .acts{ display:flex; gap:6px; justify-content:flex-end; flex-wrap:wrap; }
.lp .btn-sm{ min-height:36px !important; padding:6px 14px !important; font-size:14px !important; }

/* ---------- 15. Key-value list (bank details, invoice meta) + copy button ---------- */
.lp-kv{ display:grid; grid-template-columns:max-content minmax(0,1fr) auto; margin:0; }
.lp-kv > div{ display:contents; }
.lp-kv dt, .lp-kv dd{ padding:12px 0; border-bottom:1px solid var(--lp3-line2); }
.lp-kv dt{ padding-inline-end:18px; font-size:14px; color:var(--lp3-muted); }
.lp-kv dd{ margin:0; font-weight:600; overflow-wrap:anywhere; }
.lp-kv dd.cp{ padding-inline-start:10px; }
.lp-kv > div:last-child > *{ border-bottom:0; }
.lp-copy{ display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:4px 12px; border-radius:999px; border:1px solid var(--lp3-line2); background:#fff; color:var(--lp3-link); font-size:13px; cursor:pointer; white-space:nowrap; }
.lp-copy svg{ width:15px; height:15px; }
.lp-copy[data-copied="1"]{ color:var(--lp-ok-ink); border-color:var(--lp-ok-ink); }

/* ---------- 16. Timeline (bank transfer status, provisioning steps) ---------- */
.lp-timeline{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.lp-timeline li{ position:relative; display:grid; grid-template-columns:30px minmax(0,1fr); gap:2px 14px; padding-bottom:22px; }
.lp-timeline li::before{ content:""; position:absolute; inset-inline-start:14px; top:32px; bottom:2px; width:2px; background:var(--lp3-line2); }
.lp-timeline li:last-child{ padding-bottom:0; }
.lp-timeline li:last-child::before{ display:none; }
.lp-timeline .mk{ position:relative; grid-row:1 / span 2; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:#fff; border:2px solid var(--lp3-line2); color:var(--lp3-muted); }
.lp-timeline .mk svg{ width:16px; height:16px; }
.lp-timeline b{ font-size:16px; font-weight:700; line-height:1.8; color:var(--lp3-muted); }
.lp-timeline small{ font-size:13.5px; color:var(--lp3-muted); }
.lp-timeline li.done::before{ background:var(--lp3-ink); }
.lp-timeline li.done .mk{ background:var(--lp3-ink); border-color:var(--lp3-ink); color:#fff; }
.lp-timeline li.done b, .lp-timeline li.now b{ color:var(--lp3-ink); }
.lp-timeline li.now .mk{ border-color:var(--lp3-blue); color:var(--lp3-blue); }
.lp-timeline li.now .mk::after{ content:""; position:absolute; inset:-2px; width:30px; height:30px; border-radius:50%; border:2px solid transparent; border-top-color:var(--lp3-blue); animation:lpSpin .9s linear infinite; }
.lp-timeline li.fail .mk{ background:var(--lp-err-ink); border-color:var(--lp-err-ink); color:#fff; }
.lp-timeline li.fail b{ color:var(--lp-err-ink); }
@keyframes lpSpin{ to{ transform:rotate(360deg); } }

/* ---------- 17. File drop zone (receipt upload) ---------- */
.lp .lp-drop{ position:relative; display:flex; margin:0; flex-direction:column; align-items:center; gap:6px; padding:28px 20px; border:2px dashed var(--lp3-line); border-radius:var(--lp3-r-md); background:var(--lp3-bg3); text-align:center; cursor:pointer; }
.lp-drop:hover, .lp-drop.is-over{ border-color:var(--lp3-blue); background:#F2F7FE; }
.lp-drop:focus-within{ outline:3px solid rgba(0,113,227,.45); outline-offset:3px; }
.lp-drop input[type="file"]{ position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.lp-drop .ic{ width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:#fff; color:var(--lp3-ink); }
.lp-drop .ic svg{ width:24px; height:24px; }
.lp-drop b{ font-size:16px; }
.lp-drop small{ font-size:13px; color:var(--lp3-muted); }
.lp-file{ display:flex; align-items:center; gap:12px; margin-top:10px; padding:12px 14px; border-radius:12px; background:#fff; border:1px solid var(--lp3-line2); }
.lp-file > svg{ width:22px; height:22px; flex:0 0 auto; color:var(--lp3-muted); }
.lp-file b{ flex:1 1 auto; min-width:0; overflow-wrap:anywhere; font-size:14.5px; }
.lp-file small{ color:var(--lp3-muted); }

/* ---------- 18. Result / state screens (extend existing .lp-success) ---------- */
.lp-result{ max-width:620px; margin:0 auto; text-align:center; padding-block:72px 96px; }
.lp-result .ic{ width:80px; height:80px; border-radius:50%; display:grid; place-items:center; margin:0 auto 22px; background:var(--lp-ok-bg); color:var(--lp-ok-ink); }
.lp-result .ic svg{ width:38px; height:38px; }
.lp-result.err .ic{ background:var(--lp-err-bg); color:var(--lp-err-ink); }
.lp-result.wait .ic{ background:var(--lp-info-bg); color:var(--lp-info-ink); }
.lp-result h1{ margin:0; font-size:var(--lp3-h3); font-weight:800; line-height:1.35; }
.lp-result > p{ margin:12px auto 0; font-size:18px; line-height:1.85; color:var(--lp3-muted); }
.lp-result .lp-cta{ justify-content:center; margin-top:28px; }
.lp-result .lp-panel{ margin-top:28px; text-align:start; }

/* ---------- 19. Auth card layout (login, verify, reset, MFA) ---------- */
.lp-auth{ min-height:calc(100vh - var(--lp-header-h)); display:grid; place-items:start center; padding:56px 16px 96px; background:var(--lp3-bg2); }
.lp-auth .lp-form{ width:100%; max-width:440px; }
.lp-auth .lp-form h1{ margin:0 0 6px; font-size:28px; font-weight:800; line-height:1.4; }
.lp-auth .sub{ margin:0 0 22px; color:var(--lp3-muted); font-size:15.5px; }
.lp-auth .alt{ margin:18px 0 0; text-align:center; font-size:15px; color:var(--lp3-muted); }
.lp-auth .row-between{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin:-4px 0 14px; font-size:14px; }
.lp .lp-otp{ direction:ltr; text-align:center !important; font-family:var(--lp3-mono) !important; font-size:26px !important; letter-spacing:.45em; padding-inline-start:.45em !important; }
.lp-divider{ display:flex; align-items:center; gap:12px; margin:18px 0; color:var(--lp3-muted); font-size:13px; }
.lp-divider::before, .lp-divider::after{ content:""; flex:1; height:1px; background:var(--lp3-line2); }

/* ---------- 20. Empty + loading states ---------- */
.lp-empty{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:36px 16px; text-align:center; color:var(--lp3-muted); }
.lp-empty .ic{ width:52px; height:52px; border-radius:16px; display:grid; place-items:center; background:var(--lp3-bg2); color:var(--lp3-ink2); }
.lp-skel{ display:block; height:14px; border-radius:7px; background:linear-gradient(90deg,var(--lp3-bg2) 25%,#EBEBEF 50%,var(--lp3-bg2) 75%); background-size:200% 100%; animation:lpShim 1.4s ease infinite; }
.lp-skel.w60{ width:60%; } .lp-skel.w40{ width:40%; } .lp-skel.h28{ height:28px; }
@keyframes lpShim{ from{ background-position:200% 0; } to{ background-position:-200% 0; } }

/* ---------- 21. Invoice document (moves the inline <style> of the package invoice view here) ---------- */
.lp-inv{ background:#fff; border:1px solid var(--lp3-line2); border-radius:var(--lp3-r-md); padding:36px; }
.lp-inv-head{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:flex-start; padding-bottom:18px; border-bottom:2px solid var(--lp3-ink); }
.lp-inv-head h1{ margin:0; font-size:26px; font-weight:800; }
.lp-inv-head .en{ font-family:var(--lp3-mono) !important; font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--lp3-muted); }
.lp-inv-meta{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 28px; margin:22px 0; }
.lp-inv-meta h2{ margin:0 0 4px; font-size:13px !important; font-weight:600; color:var(--lp3-muted); line-height:1.6 !important; }
.lp-inv-meta p{ margin:0; line-height:1.85; }
.lp-inv-totals{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:20px; margin-top:18px; }
.lp-inv-totals .lp-lines{ width:auto; min-width:300px; }
.lp-inv-qr{ text-align:center; font-size:11.5px; color:var(--lp3-muted); }
.lp-inv-qr img{ width:140px; height:140px; image-rendering:pixelated; }
.lp-inv-note{ margin-top:20px; padding-top:14px; border-top:1px solid var(--lp3-line2); font-size:13px; line-height:1.85; color:var(--lp3-muted); }
.lp-stamp{ display:inline-block; padding:4px 12px; border:2px solid currentColor; border-radius:10px; font-weight:800; }
.lp-stamp.paid{ color:var(--lp-ok-ink); } .lp-stamp.due{ color:var(--lp-warn-ink); } .lp-stamp.void{ color:var(--lp-err-ink); }
.lp-doc-tools{ display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; margin-bottom:16px; }
@media print{
  .lp-header, .lp-footer, .lp-subnav, .lp-doc-tools, .lp-skip{ display:none !important; }
  .lp-inv{ border:0; padding:0; }
  .lp{ background:#fff !important; }
}

/* ---------- 22. Native dialog (confirmations) ---------- */
.lp-dialog{ width:min(520px, calc(100vw - 32px)); padding:0; border:0; border-radius:var(--lp3-r-md); box-shadow:0 40px 80px -30px rgba(0,0,0,.45); color:var(--lp3-ink); }
.lp-dialog::backdrop{ background:rgba(0,0,0,.4); backdrop-filter:blur(4px); }
.lp-dialog .in{ padding:28px; display:flex; flex-direction:column; gap:14px; }
.lp-dialog h2{ margin:0; font-size:22px !important; line-height:1.5 !important; }
.lp-dialog .lp-step-actions{ margin-top:6px; }

/* ---------- 24. Utilities that replace every inline style used by the prototypes ---------- */
/* SP3-T24 (orchestrator follow-up of SP3-T23): text for screen readers only, the standard clip pattern. The portal links no
   Bootstrap, so its visually-hidden class does not exist here; views write lp-visually-hidden (PortalCssPrefixGuardTests). */
.lp-visually-hidden{ 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; }
.lp .lp-i{ width:1.15em; height:1.15em; vertical-align:-.2em; flex:0 0 auto; }
.lp-field-hint svg, .lp-choice .t svg{ width:18px; height:18px; vertical-align:-.25em; }
.lp .btn-light{ background:#F5F5F7 !important; color:#000 !important; border:0 !important; }
.lp .btn-light:hover{ background:#fff !important; }
.lp-flow{ padding-block:40px 80px; }
.lp-step-title{ margin:0 0 6px; font-size:clamp(26px,3vw,32px); font-weight:800; line-height:1.4; }
.lp-pricing-body{ margin-top:36px; }
.lp-dash-alert{ margin:0 0 14px; }
.lp-meter + .lp-meter{ margin-top:18px; }
.lp-auth .btn{ width:100%; }
.lp-header .lp-spacer{ flex:1 1 auto; }
.lp-header .lp-acct{ display:inline-flex; align-items:center; gap:8px; }
.lp-header .lp-acct svg{ width:20px; height:20px; }
.lp-total-peek{ display:none; }
@media (max-width:999px){ .lp-total-peek{ display:flex; justify-content:space-between; gap:12px; margin:0 0 16px; padding:12px 14px; border-radius:var(--lp3-r-sm); background:var(--lp3-bg2); font-size:15px; } }
.lp .lp-check{ display:flex; align-items:center; gap:10px; margin:0; font-weight:500; font-size:15px; cursor:pointer; text-align:start; }
.lp .lp-check input{ width:18px; height:18px; min-height:0 !important; margin:0; flex:0 0 auto; accent-color:var(--lp3-blue); }
.lp .lp-check a{ text-decoration:underline; text-underline-offset:3px; }

.lp .btn[aria-disabled="true"]{ opacity:.45; pointer-events:none; cursor:not-allowed; }

/* ---------- 25. Fixes for defects inherited from the package (apply to the public site too) ---------- */
/* public.css:475 sets rgba(255,255,255,.6) on .lp-foot-bottom .lp-container; site-v3.css:143 makes the footer light => 1.05:1 */
.lp .lp-foot-bottom .lp-container{ color:var(--lp3-muted) !important; }
/* public.css:281 gold underline on the current menu item survives the v3 refresh */
.lp .lp-menu-link[aria-current="page"]{ box-shadow:inset 0 -2px 0 var(--lp3-ink); }
/* low-contrast accents for small text (see design-system.md section 6) */
.lp .lp-eyebrow{ color:var(--lp-accent-ink) !important; }
.lp .lp3-panel .lp3-head .k{ color:var(--lp-ok-ink); }
.lp .lp3-marquee-track li, .lp .lp3-marquee > p{ color:var(--lp3-muted); }

/* ---------- 23. Responsive ---------- */
@media (max-width:999px){
  .lp-plans{ grid-template-columns:minmax(0,1fr); max-width:560px; margin-inline:auto; }
  .lp-wizard{ grid-template-columns:minmax(0,1fr); }
  .lp-summary{ position:static; }
  .lp-dash{ grid-template-columns:minmax(0,1fr); }
  .lp-choices.c3{ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:640px){
  .lp-stepper li .t{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .lp-stepper li .n{ display:none; }
  .lp-step-of{ display:block; }
  .lp-header .lp-hide-xs{ display:none !important; }
  .lp-header .lp-acct .lbl{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .lp-choices.c2{ grid-template-columns:minmax(0,1fr); }
  .lp-panel, .lp-sub{ padding:22px 18px; }
  .lp-sub .facts{ grid-template-columns:minmax(0,1fr); }
  .lp-kv{ grid-template-columns:minmax(0,1fr) auto; }
  .lp-kv dt{ grid-column:1 / -1; padding-bottom:0; border-bottom:0; }
  .lp-step-actions{ flex-direction:column-reverse; align-items:stretch; }
  .lp-step-actions .btn{ width:100%; }
  .lp-inv{ padding:20px 16px; }
  .lp-inv-meta{ grid-template-columns:minmax(0,1fr); }
  .lp-table.stack thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .lp-table.stack tr{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 12px; padding:14px 0; border-bottom:1px solid var(--lp3-line2); }
  .lp-table.stack td{ padding:0; border:0; }
  .lp-table.stack td[data-label]::before{ content:attr(data-label) " "; color:var(--lp3-muted); font-size:13px; }
  .lp-table.stack td.acts{ grid-column:1 / -1; margin-top:8px; }
  .lp-table.stack .acts{ justify-content:flex-start; }
  .lp-result{ padding-block:48px 64px; }
}
@media (prefers-reduced-motion:reduce){
  .lp-timeline li.now .mk::after, .lp-skel{ animation:none !important; }
}

/* SP3-T19 (orchestrator decision A4): the portal-mode language switch is a form; its buttons match the apex links of site-v3.css. */
.lp .mila-lang button{ color:var(--lp3-muted); border-radius:999px; font-size:13px; padding:7px 12px; }
.lp .mila-lang button.on{ background:var(--lp3-ink); color:#fff; }

/* ---------- SP3-T33: institution switcher of the account header (details/summary, links only) ---------- */
.lp-switcher{ position:relative; }
.lp-switcher > summary{ list-style:none; cursor:pointer; }
.lp-switcher > summary::-webkit-details-marker{ display:none; }
.lp-switcher > ul{ position:absolute; inset-inline-end:0; top:calc(100% + 6px); z-index:30; min-width:260px; margin:0; padding:8px; list-style:none; }
.lp-switcher li{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 6px; }
.lp-switcher a[aria-current="page"]{ font-weight:700; }
