/* StartFlow plans: the configurator (public /pricing, Super Admin pickers, My plan) and the plan
   cards. Square corners, ink on white, the brand colour only on the primary action. Tokens fall
   back from the TawiOs landing (--t3-*) to the app (--dm-*) to plain values. */
.sfpb, .sfp-cards, .sfp-block, .sfp-sheet {
    --sfpb-ink: var(--t3-text, var(--dm-text, #101828));
    --sfpb-muted: var(--t3-text-muted, var(--dm-muted, #667085));
    --sfpb-line: var(--t3-border, var(--dm-border, #EAECF0));
    --sfpb-bg: var(--t3-bg, var(--dm-surface, #fff));
    --sfpb-soft: var(--t3-subtle-bg, var(--dm-surface-2, #F7F8FA));
    --sfpb-brand: var(--t3-primary, var(--header_color, #1D82F5));
    --sfpb-good: var(--t3-success, #027A48);
}
.sfpb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; color: var(--sfpb-ink); text-align: left; }
.sfpb-main { min-width: 0; }
.sfpb-sec { margin: 0 0 18px; }
.sfpb-h { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--sfpb-muted); margin: 0 0 8px; }
.sfpb-hint { font-size: 12.5px; color: var(--sfpb-muted); margin: -2px 0 8px; }
.sfpb-missing { margin-top: -6px; }
.sfpb-incl { margin: -4px 0 14px; padding: 9px 12px; border: 1px solid var(--sfpb-line); background: var(--sfpb-soft); color: var(--sfpb-ink); line-height: 1.5; }
.sfpb-incl b { font-weight: 600; }
.sfpb-opt { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; margin: 0 0 -1px; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); cursor: pointer; font-weight: 400; border-radius: 0; }
.sfpb-opt.is-on { background: var(--sfpb-soft); }
.sfpb-opt.is-fixed { cursor: default; }
.sfpb-opt input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--sfpb-ink); }
.sfpb-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sfpb-name { font-size: 14px; font-weight: 600; color: var(--sfpb-ink); }
.sfpb-desc { font-size: 12.5px; color: var(--sfpb-muted); line-height: 1.4; }
.sfpb-price { flex: 0 0 auto; font-size: 13px; color: var(--sfpb-ink); white-space: nowrap; padding-top: 1px; }
.sfpb-tag { font-style: normal; font-weight: 500; font-size: 11px; padding: 1px 6px; margin-left: 4px; border: 1px solid var(--sfpb-line); color: var(--sfpb-muted); background: var(--sfpb-bg); }
.sfpb-step { cursor: default; align-items: center; }
.sfpb-stepper { display: inline-flex; align-items: center; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); }
.sfpb-stepper button { width: 32px; height: 30px; border: 0; background: transparent; color: var(--sfpb-ink); font-size: 16px; line-height: 1; cursor: pointer; }
.sfpb-stepper button:hover { background: var(--sfpb-soft); }
.sfpb-stepper span { min-width: 28px; text-align: center; font-size: 13px; font-weight: 600; }
.sfpb-seg { display: flex; flex-wrap: wrap; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); }
.sfpb-seg button { flex: 1 1 auto; padding: 8px 10px; border: 0; border-right: 1px solid var(--sfpb-line); background: transparent; color: var(--sfpb-muted); font-size: 13px; cursor: pointer; border-radius: 0; }
.sfpb-seg button:last-child { border-right: 0; }
.sfpb-seg button.is-on { background: var(--sfpb-ink); color: var(--sfpb-bg); }
.sfpb-sum { position: sticky; top: 16px; }
.sfpb-sum-in { border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); padding: 16px; }
.sfpb-cycle { margin-bottom: 12px; }
.sfpb-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.sfpb-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sfpb-line); font-size: 13px; }
.sfpb-lines li span:first-child { display: flex; flex-direction: column; min-width: 0; }
.sfpb-lines li span:last-child { white-space: nowrap; text-align: right; display: flex; flex-direction: column; }
.sfpb-lines small { color: var(--sfpb-muted); font-size: 11.5px; }
.sfpb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 8px; }
.sfpb-total span { font-size: 13px; color: var(--sfpb-muted); }
.sfpb-total strong { font-size: 22px; font-weight: 700; color: var(--sfpb-ink); }
.sfpb-note { font-size: 12.5px; color: var(--sfpb-ink); margin: 0 0 6px; }
.sfpb-good { color: var(--sfpb-good); }
.sfpb-muted { color: var(--sfpb-muted); }
.sfpb-err { font-size: 12.5px; color: #B42318; margin: 0 0 8px; }
.sfpb-cta { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sfpb-cta .btn, .sfpb-cta a, .sfpb-cta button { border-radius: 0; }
@media (max-width: 900px) { .sfpb { grid-template-columns: 1fr; } .sfpb-sum { position: static; } }
/* The full builder in a narrow container: one column, the total under the choices. */
.sfpb-host { container-type: inline-size; }
.sfpb-host .sfpb:not(.is-compact) .sfpb-sum { top: 78px; } /* clear the app's sticky header */
@container (max-width: 820px) { .sfpb:not(.is-compact) { grid-template-columns: minmax(0, 1fr); } .sfpb:not(.is-compact) .sfpb-sum { position: static; } }

/* ---- Public plan block (TawiOs /pricing) ---- */
.sfp-block { width: 100%; max-width: 1100px; margin: 0 auto; text-align: left; color: var(--sfpb-ink); }
.sfp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 0 0 26px; }
.sfp-bar-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sfp-bar-plan[hidden], .sfp-plan[hidden] { display: none; }
.sfp-tabs { display: flex; flex-wrap: nowrap; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); max-width: 100%; }
.sfp-tabs button, .sfp-tabs span { padding: 8px 16px; border: 0; border-right: 1px solid var(--sfpb-line); background: transparent; color: var(--sfpb-muted); font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 0; white-space: nowrap; font-family: inherit; }
.sfp-tabs button:last-child, .sfp-tabs span:last-child { border-right: 0; }
.sfp-tabs button:hover { color: var(--sfpb-ink); }
.sfp-tabs button.is-active, .sfp-tabs span.is-active { background: var(--sfpb-ink); color: var(--sfpb-bg); cursor: default; }
.sfp-field { display: flex; align-items: center; gap: 10px; }
.sfp-field-l { font-size: 12.5px; color: var(--sfpb-muted); white-space: nowrap; }
.sfp-bar .sfpb-seg { width: auto; flex-wrap: nowrap; }
.sfp-bar .sfpb-seg button { flex: 0 0 auto; padding: 7px 14px; font-weight: 600; white-space: nowrap; font-family: inherit; }
.sfp-bar .sfpb-seg button:disabled { cursor: default; opacity: 1; }
.sfp-cycle { flex-wrap: nowrap; }
/* Monthly / annual (pricing bar and the builder): plain text, the active one outlined, no fill. */
.sfpb-seg.sfp-cycle, .sfpb.is-compact .sfpb-seg.sfpb-cycle { gap: 4px; border: 0; background: transparent; }
.sfpb-seg.sfp-cycle button, .sfpb-seg.sfp-cycle button:last-child,
.sfpb.is-compact .sfpb-seg.sfpb-cycle button, .sfpb.is-compact .sfpb-seg.sfpb-cycle button:last-child { border: 1px solid transparent; background: transparent; color: var(--sfpb-muted); }
.sfpb-seg.sfp-cycle button:hover, .sfpb.is-compact .sfpb-seg.sfpb-cycle button:hover { color: var(--sfpb-ink); }
.sfpb-seg.sfp-cycle button.is-on, .sfpb.is-compact .sfpb-seg.sfpb-cycle button.is-on { border-color: var(--sfpb-ink); background: transparent; color: var(--sfpb-ink); }
@media (min-width: 901px) { .sfp-sub { min-height: 2.9em; } }
.sfp-eds { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; }
.sfp-eds button { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; border: 0; background: none; color: var(--sfpb-muted); font-size: 13px; font-weight: 600; line-height: 1.3; border-radius: 0; cursor: pointer; font-family: inherit; }
.sfp-eds button i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid var(--sfpb-muted); font-size: 9px; color: transparent; transition: color .12s ease, border-color .12s ease; }
.sfp-eds button:hover { color: var(--sfpb-ink); }
.sfp-eds button:hover i { border-color: var(--sfpb-ink); }
.sfp-eds button.is-on { color: var(--sfpb-ink); }
.sfp-eds button.is-on i { border-color: var(--sfpb-ink); color: var(--sfpb-ink); }
.sfp-eds button:disabled { cursor: default; opacity: 1; }
.sfp-eds button:focus-visible { outline: 2px solid var(--sfpb-brand); outline-offset: 2px; }
/* More editions behind "+N more"; editions and add-ons not built yet show greyed as "Coming". */
.sfp-more { position: relative; display: inline-flex; }
.sfp-more-btn { padding: 2px 0; border: 0; border-bottom: 1px dashed var(--sfpb-muted); background: none; color: var(--sfpb-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; border-radius: 0; }
.sfp-more-btn:hover, .sfp-more-btn.is-on { color: var(--sfpb-ink); border-bottom-color: var(--sfpb-ink); }
.sfp-more-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; display: flex; flex-direction: column; gap: 8px; min-width: 190px; padding: 10px 12px; border: 1px solid var(--sfpb-ink); background: var(--sfpb-bg); box-shadow: 0 12px 28px rgba(16, 24, 40, .14); }
.sfp-more-pop[hidden] { display: none; }
.sfp-ed-soon { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--sfpb-muted); opacity: .75; }
.sfp-ed-soon em, .sfpb-ed.is-soon em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 0 5px; border: 1px solid var(--sfpb-line); }
.sfp-list li.is-soon { color: var(--sfpb-muted); font-size: 13px; }
.sfp-list li.is-soon i { color: var(--sfpb-muted); }
.sfp-early-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--sfpb-ink); color: var(--sfpb-bg); vertical-align: 1px; }
.sfp-ed-soon.is-line { display: block; font-weight: 600; line-height: 1.5; }
.sfp-ed-soon.is-line em { margin-right: 4px; }
.sfp-plan.is-early .sfp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 740px; margin: 0 auto; }
@media (max-width: 900px) { .sfp-plan.is-early .sfp-cards { grid-template-columns: 1fr; } }
.sfp-block.is-early-active .sfp-cycle { visibility: hidden; }
.sfp-plan.is-early .sfp-card { border-style: dashed; }
.sfp-plan.is-early .sfp-card.is-featured { border-style: solid; }
/* The builder's edition ticks (same look as the cards'). */
.sfpb-eds { margin: 0; gap: 6px 16px; }
.sfpb-ed { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 2px 0; color: var(--sfpb-muted); font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.sfpb-ed input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sfpb-ed i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid var(--sfpb-muted); font-size: 9px; color: transparent; }
.sfpb-ed:hover { color: var(--sfpb-ink); }
.sfpb-ed.is-on { color: var(--sfpb-ink); }
.sfpb-ed.is-on i { border-color: var(--sfpb-ink); color: var(--sfpb-ink); }
.sfpb-ed.is-fixed { cursor: default; }
.sfpb-ed small { font-size: 11px; font-weight: 500; color: var(--sfpb-muted); }
.sfpb-ed:focus-within { outline: 2px solid var(--sfpb-brand); outline-offset: 2px; }
.sfpb-ed.is-soon { cursor: default; opacity: .75; }
.sfpb-opt.is-soon { opacity: .6; cursor: default; }
.sfpb.is-compact .sfpb-hint.sfpb-coming { margin-top: -6px; }
.sfp-tagline { margin: 14px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--sfpb-muted); }
.sfp-tagline-t { color: var(--sfpb-ink); margin-right: 6px; }
.sfp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Four cards (Essentials, Complete, All-in, Customise): one row when there is room, two by two below that. */
.sfp-cards.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sfp-cards.is-4 .sfp-card { padding: 18px 16px; }
.sfp-cards.is-4 .sfp-amount .sfp-value { font-size: clamp(20px, 1.6vw, 25px); }
.sfp-cards.is-4 .sfp-list li { font-size: 13px; }
.sfp-cards.is-4 .sfp-list li.is-muted { font-size: 12.5px; }
/* Four narrower cards wrap more lines: on laptop heights drop the card taglines and tighten, so the
   row, the tier line and the foot still fit one screen (owner rule: no scroll from 1280x720 up). */
@media (min-width: 1241px) and (max-height: 960px) {
    .sfp-cards.is-4 .sfp-sub { display: none; }
    .sfp-cards.is-4 .sfp-name { margin-bottom: 6px; }
    .sfp-cards.is-4 .sfp-card { padding: 14px 16px; }
    .sfp-cards.is-4 .sfp-list { padding-top: 8px; margin-bottom: 10px; }
    .sfp-cards.is-4 .sfp-list li { padding: 1px 0; }
    .sfp-cards.is-4 .sfp-list li.is-first-muted { margin-top: 4px; padding-top: 6px; }
    .sfp-cards.is-4 .sfp-cta { padding: 9px 14px; }
    .sfp-plan:has(.sfp-cards.is-4) .sfp-tagline { margin-top: 8px; }
    .sfp-plan:has(.sfp-cards.is-4) .sfp-foot { margin-top: 2px; font-size: 12px; }
}
@media (min-width: 1241px) and (max-height: 740px) {
    .sfp-cards.is-4 .sfp-card { padding: 12px 14px; }
    .sfp-cards.is-4 .sfp-list { padding-top: 6px; margin-bottom: 8px; }
    .sfp-cards.is-4 .sfp-save { margin: 1px 0 4px; min-height: 16px; font-size: 12px; }
    .sfp-plan:has(.sfp-cards.is-4) .sfp-tagline { margin-top: 6px; }
    .sfp-block:has(.sfp-plan:not([hidden]) .sfp-cards.is-4) .sfp-bar { margin-bottom: 10px; }
    .sfp-cards.is-4 .sfp-list li { font-size: 12.5px; padding: 0; line-height: 1.35; }
    .sfp-cards.is-4 .sfp-list li.is-muted { font-size: 12px; }
    .sfp-cards.is-4 .sfp-eds { margin-bottom: 4px; }
    .sfp-cards.is-4 .sfp-cta { padding: 7px 12px; }
}
@media (max-width: 1240px) { .sfp-cards.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 900px) { .sfp-cards.is-4 { grid-template-columns: 1fr; gap: 22px; } }
.sfp-card { position: relative; display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); border-radius: 0; min-width: 0; }
.sfp-card.is-featured { border-color: var(--sfpb-ink); box-shadow: 0 0 0 1px var(--sfpb-ink) inset; }
.sfp-badge { position: absolute; top: -10px; left: 21px; padding: 2px 9px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--sfpb-ink); color: var(--sfpb-bg); }
.sfp-name { font-size: 17px; font-weight: 700; color: var(--sfpb-ink); }
.sfp-sub { font-size: 13px; line-height: 1.45; color: var(--sfpb-muted); margin: 2px 0 12px; }
.sfp-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sfp-amount .sfp-per { white-space: nowrap; }
.sfp-from { font-size: 11.5px; font-weight: 600; color: var(--sfpb-muted); text-transform: uppercase; letter-spacing: .05em; }
.sfp-from:empty { display: none; }
.sfp-amount .sfp-value { font-size: clamp(22px, 1.95vw, 28px); line-height: 1.1; font-weight: 800; color: var(--sfpb-ink); letter-spacing: -.015em; }
.sfp-amount .sfp-per { font-size: 13px; color: var(--sfpb-muted); }
.sfp-save { font-size: 12.5px; color: var(--sfpb-good); min-height: 18px; margin: 3px 0 10px; }
.sfp-save.is-from { color: var(--sfpb-muted); }
.sfp-list { list-style: none; margin: 0 0 16px; padding: 12px 0 0; border-top: 1px solid var(--sfpb-line); flex: 1 1 auto; }
.sfp-list li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.4; color: var(--sfpb-ink); padding: 3px 0; }
.sfp-list li i { flex: 0 0 auto; color: var(--sfpb-ink); font-size: 11px; margin-top: 4px; }
.sfp-list li.is-muted { color: var(--sfpb-muted); font-size: 13px; }
.sfp-list li.is-muted i { color: var(--sfpb-muted); width: 13px; text-align: center; }
.sfp-list li.is-first-muted { margin-top: 6px; padding-top: 9px; border-top: 1px dashed var(--sfpb-line); }
.sfp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 16px; border: 1px solid var(--sfpb-line); background: var(--sfpb-soft); color: var(--sfpb-ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 0; font-family: inherit; transition: border-color .15s ease, filter .15s ease; }
.sfp-cta:hover { text-decoration: none; color: var(--sfpb-ink); border-color: var(--sfpb-ink); }
.sfp-card.is-featured .sfp-cta, .sfp-cta.is-primary { background: var(--sfpb-brand); border-color: var(--sfpb-brand); color: #fff; }
.sfp-card.is-featured .sfp-cta:hover, .sfp-cta.is-primary:hover { color: #fff; filter: brightness(.94); }
.sfp-foot { text-align: center; font-size: 12.5px; color: var(--sfpb-muted); margin: 4px 0 0; }

/* "Priced with you" card for a business type without published plans. */
.sfp-tailored { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; padding: 28px 30px; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); }
.sfp-kicker { display: inline-block; padding: 2px 9px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--sfpb-ink); color: var(--sfpb-bg); }
.sfp-tailored-name { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--sfpb-ink); margin: 12px 0 6px; }
.sfp-tailored-text { font-size: 14px; line-height: 1.5; color: var(--sfpb-ink); margin: 0 0 8px; }
.sfp-tailored-note { font-size: 13px; line-height: 1.5; color: var(--sfpb-muted); margin: 0 0 18px; }
.sfp-tailored .sfp-cta { width: auto; }
.sfp-tailored .sfp-list { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--sfpb-line); align-self: center; }

/* The builder sheet: over the pricing panel on a desktop, full screen on a phone. */
.sfp-sheet { position: fixed; inset: 0; z-index: 1060; display: flex; flex-direction: column; padding: 16px; background: var(--sfpb-bg); color: var(--sfpb-ink); overflow-y: auto; text-align: left; }
.sfp-sheet[hidden] { display: none; }
.sfp-sheet-in { width: 100%; max-width: 1100px; margin: 0 auto; }
.sfp-sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 0 12px; margin: 0 0 16px; border-bottom: 1px solid var(--sfpb-line); }
.sfp-sheet-k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sfpb-muted); }
.sfp-sheet-t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--sfpb-ink); }
.sfp-sheet-x { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); color: var(--sfpb-ink); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 0; font-family: inherit; white-space: nowrap; }
.sfp-sheet-x:hover { border-color: var(--sfpb-ink); }
.sfp-sheet-body > [hidden] { display: none; }
/* The sheet's backdrop: the pricing panel's graphics, mirrored. The grey wedge sits lower-left
   with a faint blueprint grid, the corner-to-corner line runs top-left → bottom-right and the
   short line top-right → centre. Fixed on a phone (stays put while the sheet scrolls). */
.sfp-sheet { isolation: isolate; }
.sfp-sheet > .sfp-sheet-in { position: relative; z-index: 1; }
.sfp-sheet::before, .sfp-sheet::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.t3l-panel-pricing > .sfp-sheet.is-panel::before, .t3l-panel-pricing > .sfp-sheet.is-panel::after { position: absolute; }
.sfp-sheet::before {
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    background:
        linear-gradient(color-mix(in srgb, var(--sfpb-ink) 5%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, color-mix(in srgb, var(--sfpb-ink) 5%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(225deg, var(--sfpb-soft) 0%, color-mix(in srgb, var(--sfpb-ink) 6%, var(--sfpb-bg)) 100%);
}
.sfp-sheet::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%23101828' stroke-opacity='0.45' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cline x1='100' y1='0' x2='50' y2='50' stroke='%23101828' stroke-opacity='0.45' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dark-theme .sfp-sheet::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cline x1='100' y1='0' x2='50' y2='50' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Compact builder (the sheet): tick tiles in a grid, summary on the right. */
.sfpb.is-compact { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.sfpb.is-compact .sfpb-sec { margin: 0 0 14px; }
.sfpb.is-compact .sfpb-h { font-size: 11.5px; letter-spacing: .06em; margin: 0 0 6px; }
.sfpb-h-note { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sfpb.is-compact .sfpb-hint { margin: -4px 0 8px; font-size: 12px; line-height: 1.45; }
.sfpb.is-compact .sfpb-hint b { font-weight: 600; color: var(--sfpb-ink); }
.sfpb-inline { display: flex; align-items: center; gap: 12px; }
.sfpb-inline > .sfpb-h { flex: 0 0 118px; margin: 0; line-height: 1.3; }
.sfpb-inline > .sfpb-h .sfpb-h-note { display: block; font-size: 11.5px; color: var(--sfpb-muted); }
.sfpb-inline > .sfpb-tiles, .sfpb-inline > .sfpb-seg { flex: 1 1 auto; min-width: 0; }
.sfpb-inline > .sfpb-seg { flex: 0 1 auto; }
.sfpb.is-compact .sfpb-seg button { padding: 8px 14px; font-weight: 600; font-family: inherit; }
.sfpb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sfpb-tiles.is-ed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sfpb-tiles.is-cap { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.sfpb-tile { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 7px 10px; border: 1px solid var(--sfpb-line); background: var(--sfpb-bg); cursor: pointer; font-weight: 400; border-radius: 0; transition: border-color .12s ease; }
.sfpb-tile:hover { border-color: var(--sfpb-muted); }
.sfpb-tile.is-on { border-color: var(--sfpb-ink); box-shadow: inset 0 0 0 1px var(--sfpb-ink); }
.sfpb-tile.is-fixed { cursor: default; background: var(--sfpb-soft); border-color: var(--sfpb-line); box-shadow: none; }
.sfpb-tile input { flex: 0 0 auto; margin: 0; accent-color: var(--sfpb-ink); }
.sfpb-tile .sfpb-txt { gap: 0; }
.sfpb-tile .sfpb-name { font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfpb-tile .sfpb-desc { font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfpb-tile.is-step { cursor: default; justify-content: space-between; }
.sfpb-tile.is-step .sfpb-stepper button { width: 24px; height: 24px; font-size: 15px; }
.sfpb-tile.is-step .sfpb-stepper span { min-width: 22px; }
.sfpb.is-compact .sfpb-sum { position: static; }
.sfpb.is-compact .sfpb-sum-in { padding: 14px 16px; }
.sfpb.is-compact .sfpb-cycle { margin-bottom: 8px; }
.sfpb.is-compact .sfpb-cycle button { padding: 7px 8px; font-size: 12.5px; }
.sfpb.is-compact .sfpb-lines { max-height: 34vh; overflow-y: auto; margin-bottom: 6px; }
.sfpb.is-compact .sfpb-lines li { padding: 5px 0; font-size: 12.5px; }
.sfpb.is-compact .sfpb-lines li span:first-child small { display: none; }
.sfpb.is-compact .sfpb-lines li b { font-weight: 600; }
.sfpb.is-compact .sfpb-total strong { font-size: 20px; }
.sfpb.is-compact .sfpb-note { font-size: 12px; margin: 0 0 4px; }
.sfpb.is-compact .sfpb-cta { margin-top: 10px; }
.sfpb-mbar { display: none; }
@media (max-width: 900px) {
    .sfpb.is-compact .sfpb-mbar { position: sticky; bottom: -16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--sfpb-line); background: var(--sfpb-bg); box-shadow: 0 -8px 24px rgba(16, 24, 40, .08); }
    .sfpb-mbar-t { display: flex; flex-direction: column; min-width: 0; }
    .sfpb-mbar-t span { font-size: 11.5px; color: var(--sfpb-muted); }
    .sfpb-mbar-t strong { font-size: 18px; font-weight: 800; color: var(--sfpb-ink); white-space: nowrap; }
    .sfpb-mbar .sfp-cta { width: auto; flex: 0 0 auto; padding: 11px 14px; font-size: 13.5px; }
    .sfpb.is-compact .sfpb-sum .sfpb-cta { display: none; }
}
@media (max-width: 900px) {
    html.sfp-sheet-open .t3-theme-toggle { bottom: 124px; }
    html.sfp-sheet-open .t3l-wa-fab { bottom: 234px; }
}

@media (max-width: 900px) {
    .sfp-cards { grid-template-columns: 1fr; }
    .sfp-tailored { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
    .sfp-tailored .sfp-list { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--sfpb-line); }
    .sfpb.is-compact { grid-template-columns: 1fr; }
    .sfpb.is-compact .sfpb-lines { max-height: none; }
}
@media (max-width: 600px) {
    .sfp-bar, .sfp-bar-plan { width: 100%; }
    .sfp-tabs { width: 100%; }
    .sfp-tabs button, .sfp-tabs span { flex: 1 1 auto; padding: 9px 6px; font-size: 13px; }
    /* Four tiers do not fit one phone row: two by two, each cell keeping its own border. */
    .sfp-tabs:has(> :nth-child(4)) { flex-wrap: wrap; }
    .sfp-tabs:has(> :nth-child(4)) > * { flex: 1 1 50%; border-bottom: 1px solid var(--sfpb-line); }
    .sfp-tabs:has(> :nth-child(4)) > :nth-child(2n) { border-right: 0; }
    .sfp-tabs:has(> :nth-child(4)) > :nth-last-child(-n+2):nth-child(odd), .sfp-tabs:has(> :nth-child(4)) > :last-child { border-bottom: 0; }
    .sfp-field { width: 100%; flex-wrap: wrap; gap: 6px; }
    .sfp-field .sfpb-seg { width: 100%; }
    .sfp-field .sfpb-seg button { flex: 1 1 auto; }
    .sfpb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sfpb-tiles.is-cap { grid-template-columns: 1fr; }
    .sfpb-tile .sfpb-name { white-space: normal; }
    .sfpb-tiles.is-ed { grid-template-columns: 1fr 1fr; }
    .sfpb-inline { flex-direction: column; align-items: stretch; gap: 6px; }
    .sfpb-inline > .sfpb-h { flex: 0 0 auto; }
    .sfpb-inline > .sfpb-h .sfpb-h-note { display: inline; margin-left: 6px; }
    .sfpb-opt { padding: 10px; gap: 10px; } .sfpb-price { font-size: 12px; }
    .sfp-sheet-t { font-size: 19px; }
}

/* ---- /pricing panel (TawiOs) in the plans look: one screen on a desktop, no scrolling ---- */
.t3l-panel-pricing.sfp-panel { justify-content: safe center; padding-left: 4%; padding-right: 4%; }
.sfp-panel .t3l-pricing-head { max-width: 820px; margin-bottom: clamp(12px, 2.4vh, 24px); }
.sfp-panel .t3l-pricing-head .t3l-section-title { font-size: clamp(26px, 2.4vw, 36px); margin: 8px 0 6px; }
.sfp-panel .t3l-pricing-head .t3l-section-text { font-size: 15px; line-height: 1.5; max-width: none; }
.sfp-panel .t3l-price-controls { max-width: 1100px; align-items: flex-end; gap: 6px 20px; margin: 0 auto clamp(20px, 3.4vh, 30px); border-bottom: 1px solid var(--t3-border); }
.sfp-panel .t3l-price-filter { min-width: 0; justify-content: center; }
.sfp-panel .t3l-price-controls { justify-content: center; }
.sfp-panel .t3l-filter-pills { justify-content: center; }
.sfp-panel .t3l-filter-pills { flex-wrap: wrap; gap: 0 4px; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.sfp-panel .t3l-filter-pills button { padding: 10px 10px 11px; margin-bottom: -1px; border-radius: 0; border-bottom: 2px solid transparent; background: none; box-shadow: none; font-size: 14px; }
.t3l-bt-short { display: none; }
#t3lBusinessFilter.is-short .t3l-bt-full { display: none; }
#t3lBusinessFilter.is-short .t3l-bt-short { display: inline; }
.sfp-panel .t3l-filter-pills button.is-active { background: none; box-shadow: none; color: var(--t3-text); border-bottom-color: var(--t3-text); }
.sfp-panel .t3l-price-toggle { margin: 0 0 8px; padding: 0; gap: 0; border-radius: 0; background: var(--t3-bg); }
.sfp-panel .t3l-price-toggle button { padding: 7px 14px; border-radius: 0; box-shadow: none; border-right: 1px solid var(--t3-border); }
.sfp-panel .t3l-price-toggle button:last-child { border-right: 0; }
.sfp-panel .t3l-price-toggle button.is-active { background: var(--t3-text); color: var(--t3-bg); box-shadow: none; }
.sfp-panel .t3l-price-save { margin-left: 4px; padding: 0; border-radius: 0; background: none; color: inherit; font-size: 12.5px; font-weight: 600; opacity: .85; }
.sfp-panel .t3l-price-grid { gap: 0; }
.sfp-panel .t3l-price-note { margin-top: 14px; padding-top: 0; }
.t3l-price-note[hidden] { display: none; }
/* The sheet covers the panel (it is moved there by the plan script). Outranks `.t3l-panel-pricing > *`. */
@media (min-width: 1025px) {
    .t3l-panel-pricing > .sfp-sheet.is-panel { position: absolute; inset: 0; z-index: 8; justify-content: safe center; padding: clamp(18px, 3.6vh, 40px) 4%; }
}
@media (min-width: 1025px) and (max-width: 1400px) {
    .sfp-panel .t3l-filter-pills button { padding: 9px 8px 10px; font-size: 13.5px; }
    .sfp-panel .t3l-price-save { display: none; }
}
@media (min-width: 1025px) and (max-width: 1320px) {
    .sfpb.is-compact { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
    .sfpb.is-compact .sfpb-tile { padding: 7px 8px; gap: 8px; }
    .sfpb.is-compact .sfpb-tile .sfpb-name { font-size: 12.5px; }
    .sfpb-tile.is-step .sfpb-stepper button { width: 20px; }
    .sfpb-tile.is-step .sfpb-stepper span { min-width: 20px; }
    .sfpb-tiles.is-cap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    html.sfp-sheet-open, html.sfp-sheet-open body { overflow: hidden; }
    /* The theme switch and WhatsApp stay usable over the builder, above its pinned total. */
    html.sfp-sheet-open .t3-theme-toggle, html.sfp-sheet-open .t3l-wa-fab { z-index: 1070; }
    /* The site's top bar (logo + menu) stays above the builder; the menu drawer opens over it. */
    .sfp-sheet:not(.is-panel), .sfp-sheet:not(.is-panel)::before, .sfp-sheet:not(.is-panel)::after { top: var(--t3l-topbar-h, 0px); }
    html.sfp-sheet-open .t3l-backdrop { z-index: 1075; }
    html.sfp-sheet-open .t3l-sidebar { z-index: 1080; }
    .sfp-sheet:not(.is-panel) .sfp-sheet-head { position: sticky; top: -16px; z-index: 3; margin: -16px -16px 16px; padding: 14px 16px 12px; background: var(--sfpb-bg); }
    .sfp-panel .t3l-price-controls { justify-content: center; }
    .sfp-panel .t3l-price-filter { width: 100%; justify-content: center; }
    .sfp-panel .t3l-price-controls .t3l-price-toggle { margin: 4px 0 10px; }
}
/* Phones: the sector tabs become a select; monthly / annual share the row; room above the
   floating WhatsApp / theme buttons at the end. */
.t3l-price-select { display: none; }
@media (min-width: 601px) and (max-width: 900px) {
    .sfp-panel .sfp-block, .sfp-panel .t3l-price-controls { max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
    .t3l-panel-pricing.sfp-panel { padding-bottom: 120px; }
    .sfp-panel .t3l-price-controls { border-bottom: 0; margin-bottom: 14px; }
    .sfp-panel #t3lBusinessFilter { display: none; }
    .sfp-panel .t3l-price-select { display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 0; }
    .t3l-price-select-l { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t3-text-muted); }
    .t3l-price-select select { width: 100%; height: 46px; padding: 0 40px 0 14px; border: 1px solid var(--t3-text); border-radius: 0; background: var(--t3-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--t3-text); font-family: inherit; font-size: 15px; font-weight: 600; -webkit-appearance: none; appearance: none; }
    .t3l-price-select select:focus { outline: 2px solid var(--t3-primary); outline-offset: 1px; }
    .sfp-bar { gap: 8px; margin-bottom: 24px; }
    .sfpb-seg.sfp-cycle { width: 100%; }
    .sfpb-seg.sfp-cycle button { flex: 1 1 0; }
    .sfp-tabs { width: 100%; }
    .sfp-tabs button, .sfp-tabs span { flex: 1 1 auto; }
    .sfp-tagline { margin-top: 18px; text-align: left; }
    .sfp-card { padding: 20px 18px; }
    .sfp-cards { gap: 22px; }
    .sfp-foot { text-align: left; }
}

/* Short desktop screens: tighter, then drop the secondary lines, so nothing needs a scroll. */
@media (min-width: 1025px) and (max-height: 820px) {
    .sfp-panel .t3l-pricing-head .t3l-section-text { display: none; }
    .sfp-panel .t3l-pricing-head .t3l-section-title { margin-bottom: 0; }
    .sfp-card { padding: 16px 20px; }
    .sfp-list { padding-top: 10px; margin-bottom: 12px; }
    .sfp-list li { padding: 2px 0; }
    .sfp-bar { margin-bottom: 18px; }
    .sfp-tagline { margin-top: 10px; }
    .sfp-foot { margin-top: 2px; }
    .sfp-eds { margin-bottom: 8px; }
    .sfp-save { margin: 2px 0 6px; }
    .sfp-sub { margin-bottom: 8px; }
    .sfpb.is-compact .sfpb-sec { margin-bottom: 10px; }
}
@media (min-width: 1025px) and (max-height: 760px) {
    .sfpb.is-compact .sfpb-hint.is-extra { display: none; }
    .sfp-sub { display: none; }
    .sfp-name { margin-bottom: 6px; }
    .sfp-sheet-head { margin-bottom: 12px; padding-bottom: 10px; }
    .sfp-panel .t3l-pricing-head .t3l-eyebrow { display: none; }
    .sfp-panel .t3l-pricing-head .t3l-section-title { margin-top: 0; }
}
@media (min-width: 1025px) and (max-height: 700px) {
    .sfp-panel .t3l-pricing-head .t3l-eyebrow { display: none; }
    .sfp-panel .t3l-pricing-head .t3l-section-title { font-size: 24px; margin-top: 0; }
    .sfp-sub { display: none; }
    .sfp-name { margin-bottom: 6px; }
    .sfp-amount .sfp-value { font-size: 24px; }
    .sfp-save { margin-bottom: 6px; }
    .sfp-list li { font-size: 13px; padding: 1px 0; }
    .sfp-cta { padding: 9px 14px; }
    .sfpb.is-compact .sfpb-hint { display: none; }
}

/* ---- Admin & My plan ---- */
.sfp-meter { height: 6px; background: var(--dm-surface-3, #E4E7EC); overflow: hidden; }
.sfp-meter > span { display: block; height: 100%; background: var(--dm-text, #101828); }
.sfp-meter.is-warn > span { background: #F79009; } .sfp-meter.is-bad > span { background: #F04438; }
.sfp-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.sfp-usage > div { border: 1px solid var(--dm-border, #EAECF0); background: var(--dm-surface, #fff); padding: 12px 14px; }
.sfp-usage .sfp-n { font-size: 18px; font-weight: 600; color: var(--dm-text, #101828); }
.sfp-usage .sfp-l { font-size: 12px; color: var(--dm-muted, #667085); margin-bottom: 6px; }
.sfp-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--dm-border, #EAECF0); border-left: 1px solid var(--dm-border, #EAECF0); }
.sfp-units > div { border-right: 1px solid var(--dm-border, #EAECF0); border-bottom: 1px solid var(--dm-border, #EAECF0); padding: 10px 12px; font-size: 13px; background: var(--dm-surface, #fff); }
.sfp-units .sfp-unit-name { font-weight: 600; color: var(--dm-text, #101828); }
.sfp-units .is-off .sfp-unit-name { color: var(--dm-muted, #667085); }
.sfp-locked { border: 1px solid var(--dm-amber-border, #FEDF89); background: var(--dm-amber-bg, #FFFAEB); color: var(--dm-orange-text, #B54708); padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; }
.sf-wrap .sf-card.sfp-square, .sf-wrap .sfp-square { border-radius: 0; }
.sfp-items td, .sfp-items th { vertical-align: middle; }
.sfp-items input.form-control, .sfp-items select.form-control { height: 32px; font-size: 13px; padding: 4px 8px; border-radius: 0; }
.sfp-card-edit { border: 1px solid var(--dm-border, #EAECF0); padding: 12px; margin-bottom: 10px; background: var(--dm-surface, #fff); }
/* The landing's price-card wrapper (.t3l-price, filtered per business type) hosts the whole block. */
.t3l-price.sfp-host { width: 100%; max-width: 1100px; flex: 1 1 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.t3l-price.sfp-host:hover, .dark-theme .t3l-price.sfp-host:hover { transform: none; box-shadow: none; border-color: transparent; }
.dark-theme .t3l-price.sfp-host { background: transparent; }
.sfp-block .sfp-card { background: var(--sfpb-bg); }
.t3l-demo-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 10px 12px; margin: 0 0 14px; border: 1px solid var(--t3-border, #EAECF0); background: var(--t3-subtle-bg, #F7F8FA); font-size: 13.5px; }
.t3l-demo-plan[hidden] { display: none; }
.t3l-demo-plan-label { color: var(--t3-text-muted, #667085); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* Plan editor: core modules, ticked like "Select modules" on Super Admin → Packages. */
.sfp-core { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }
.sfp-core-row { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; align-items: start; margin: 0; padding: 6px 4px; font-size: 13.5px; cursor: pointer; border-bottom: 1px solid var(--sfpb-line, #e5e7eb); }
.sfp-core-row input { margin-top: 3px; }
.sfp-core-row.is-locked { cursor: default; opacity: .75; }
.sfp-core-n em { font-style: normal; font-size: 11px; color: var(--sfpb-muted, #667085); margin-left: 4px; }
.sfp-core-by, .sfp-core-warn { grid-column: 2; font-size: 11.5px; line-height: 1.35; color: var(--sfpb-muted, #667085); }
.sfp-core-warn { color: #b54708; }

/* A billing period the shown tier does not offer (plan setting "Billing offered"). */
.sfp-bar .sfpb-seg.sfp-cycle button:disabled:not(.is-on) { opacity: .4; cursor: not-allowed; }
.sfpb-seg.sfpb-cycle button:disabled.is-on { cursor: default; opacity: 1; }

/* Dry run (tenant Plan card): what would close on the picked plan. */
.sfp-dry { border: 1px solid var(--sfpb-line, #e5e7eb); border-left-width: 4px; padding: 12px 14px; border-radius: 0; }
.sfp-dry.is-ok { border-left-color: #12b76a; }
.sfp-dry.is-bad { border-left-color: #f79009; }
.sfp-dry-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; }
.sfp-dry h6 { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sfpb-muted, #667085); }
.sfp-dry .sf-table td { padding: 5px 6px; vertical-align: top; }
/* Plan editor → Companies on this plan (PlanSync). */
.sfp-sync { margin-bottom: 16px; }
.sfp-sync .sf-table td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
.sfp-sync-g { color: var(--dm-green-text, #067647); }
.sfp-sync-l { color: var(--dm-red-text, #B42318); }

/* Plans → Coverage (2026-11-24) */
.sfc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.sfc-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #EAECF0); border-radius: 0; }
.sfc-stat strong { font-size: 22px; line-height: 1.2; color: var(--dm-text, #101828); }
.sfc-stat span { font-size: 12.5px; color: var(--dm-text-3, #667085); }
.sfc-stat.is-ok strong { color: var(--dm-green-text, #067647); }
.sfc-stat.is-warn strong { color: var(--dm-orange-text, #B54708); }
.sfc-stat.is-bad strong { color: var(--dm-red-text, #B42318); }
.sfc .sf-chip, .sfc .btn, .sfc details { border-radius: 0; }
.sfc .sf-table td { vertical-align: top; }
.sfc .btn { white-space: nowrap; }

/* ---- Plan editor (2026-11-24): sticky bar + section menu, grouped fields, row states, one-column preview ---- */
.sfpe { --sfpe-ink: var(--dm-text, #101828); --sfpe-muted: var(--dm-muted, #667085); --sfpe-line: var(--dm-border, #EAECF0); --sfpe-line2: var(--dm-border-strong, #D0D5DD); --sfpe-soft: var(--dm-surface-2, #F7F8FA); --sfpe-bg: var(--dm-surface, #fff); }
.sfpe .sf-card, .sfpe .btn, .sfpe .form-control, .sfpe .sf-chip, .sfpe details { border-radius: 0; }
.sfpe-bar { position: sticky; top: 63px; z-index: 1; margin: -4px 0 16px; padding: 10px 0 0; background: var(--dm-page, #F2F4F7); border-bottom: 1px solid var(--sfpe-line); }
.sfpe-bar.is-stuck { box-shadow: 0 6px 12px -10px rgba(16, 24, 40, .35); }
.sfpe-bar-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.sfpe-bar-t { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sfpe-back { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--sfpe-line2); background: var(--sfpe-bg); color: var(--sfpe-ink); flex: 0 0 auto; }
.sfpe-back:hover { background: var(--sfpe-soft); text-decoration: none; }
.sfpe-bar-name { min-width: 0; }
.sfpe-bar-name h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0; color: var(--sfpe-ink); }
.sfpe-bar-name h3 .sf-chip { vertical-align: 3px; }
.sfpe-bar-name .sf-sub { margin-top: 1px; }
.sfpe-bar-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sfpe-bar-a form { margin: 0; }
.sfpe-dirty { font-size: 12.5px; color: var(--dm-orange-text, #B54708); white-space: nowrap; }
.sfpe-dirty .fa { font-size: 7px; vertical-align: 2px; margin-right: 3px; }
.sfpe #sfPlanSave.is-dirty { box-shadow: 0 0 0 3px rgba(29, 130, 245, .25); }
.sfpe-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; }
.sfpe-nav button { margin: 0 0 -1px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--sfpe-muted); white-space: nowrap; cursor: pointer; transition: color .12s ease, border-color .12s ease; }
.sfpe-nav button:hover { color: var(--sfpe-ink); }
.sfpe-nav button:focus { outline: 0; }
.sfpe-nav button:focus-visible { box-shadow: inset 0 0 0 2px var(--dm-blue-text, #2E90FA); }
.sfpe-nav button.is-on { color: var(--sfpe-ink); border-bottom-color: var(--sfpe-ink); }
.sfpe-sec, .sfpe #sfPlanCompanies { scroll-margin-top: calc(63px + var(--sfpe-bar, 110px) + 12px); }
.sfpe-sec { container-type: inline-size; }
.sfpe-h { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sfpe-h h4 { margin: 0; }
.sfpe-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.sfpe-gh { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--sfpe-muted); margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--sfpe-line); }
.sfpe-h + .sfpe-gh { margin-top: 4px; padding-top: 0; border-top: 0; }

/* Fields */
.sfpe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.sfpe-w2 { grid-column: span 2; }
.sfpe-w3 { grid-column: span 3; }
@container (max-width: 560px) { .sfpe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sfpe-w2, .sfpe-w3 { grid-column: 1 / -1; } }
.sfpe-f { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; min-width: 0; }
.sfpe-f > span { font-size: 12px; color: var(--sfpe-muted); }
.sfpe-f > span em { font-style: normal; opacity: .75; margin-left: 4px; }
.sfpe-f .form-control { height: 36px; font-size: 14px; }
.sfpe-f textarea.form-control { height: auto; font-size: 13.5px; }
.sfpe-f.is-muted { opacity: .45; }
.sfpe-f-check { flex-direction: row; align-items: center; gap: 8px; align-self: end; height: 36px; font-size: 13.5px; }
.sfpe-in, .sfpe-money { display: flex; align-items: stretch; min-width: 0; }
.sfpe-in .form-control, .sfpe-money .form-control { flex: 1 1 auto; min-width: 0; }
.sfpe-in > em, .sfpe-in > b, .sfpe-money > span, .sfpe-money > em { flex: 0 0 auto; display: flex; align-items: center; padding: 0 9px; font-size: 12px; font-style: normal; font-weight: 500; color: var(--sfpe-muted); background: var(--sfpe-soft); border: 1px solid var(--sfpe-line2); white-space: nowrap; }
.sfpe-in > em, .sfpe-money > em { border-left: 0; }
.sfpe-in > b, .sfpe-money > span { border-right: 0; }
.sfpe-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; font-size: 13.5px; }
.sfpe-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.sfpe-checks-l { width: 64px; font-size: 12px; color: var(--sfpe-muted); }
.sfpe-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px !important; }

/* Editions and modules: each row shows its state */
.sfpe-items th.sfpe-cm, .sfpe-items td.sfpe-cm { width: 168px; }
.sfpe-items td.sfpe-cm select.form-control { padding-right: 22px; }
.sfpe-items th.sfpe-cp, .sfpe-items td.sfpe-cp { width: 176px; }
.sfpe-items tr[data-key] > td:first-child { border-left: 3px solid transparent; padding-left: 12px; }
.sfpe-items tr[data-mode="included"] > td:first-child, .sfpe-items tr[data-mode="required"] > td:first-child { border-left-color: var(--dm-green-text, #12B76A); }
.sfpe-items tr[data-mode="addon"] > td:first-child, .sfpe-items tr[data-mode="optional"] > td:first-child { border-left-color: var(--dm-blue-text, #2E90FA); }
.sfpe-items tr[data-mode="quote"] > td:first-child { border-left-color: var(--dm-orange-text, #F79009); }
.sfpe-items tr[data-mode="unavailable"] > td:first-child { border-left-color: var(--sfpe-line2); }
.sfpe-items tr[data-mode="unavailable"] > td:first-child > * { opacity: .5; }
.sfpe-n { font-size: 14px; font-weight: 600; color: var(--sfpe-ink); }
.sfpe-d { font-size: 12.5px; line-height: 1.45; color: var(--sfpe-muted); margin-top: 2px; }
.sfpe-items .sfpe-money .form-control, .sfpe-topups .form-control, .sfpe-topups .sfpe-money .form-control { height: 32px; font-size: 13px; padding: 4px 8px; }
.sfpe-items .sfpe-money > span, .sfpe-items .sfpe-money > em, .sfpe-topups .sfpe-money > span { padding: 0 7px; font-size: 11.5px; }
.sfpe-pnote { display: none; font-size: 12.5px; color: var(--sfpe-muted); }
.sfpe-items tr[data-mode="included"] .sfpe-money, .sfpe-items tr[data-mode="quote"] .sfpe-money, .sfpe-items tr[data-mode="unavailable"] .sfpe-money { display: none; }
.sfpe-items tr[data-mode="included"] .sfpe-pnote, .sfpe-items tr[data-mode="quote"] .sfpe-pnote, .sfpe-items tr[data-mode="unavailable"] .sfpe-pnote, .sfpe-items tr[data-platform] .sfpe-pnote { display: inline; }
.sfpe-items tr[data-mode="included"] .sfpe-pnote { color: var(--dm-green-text, #067647); }
.sfpe-band td { background: var(--sfpe-soft); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--sfpe-muted); padding: 7px 12px !important; }
.sfpe-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; margin: 4px 0 12px; background: var(--sfpe-soft); border: 1px solid var(--sfpe-line); font-size: 13px; }
.sfpe-bulk .sfpe-money { width: 210px; }
.sfpe-bulk .form-control { height: 32px; font-size: 13px; }

/* The package */
.sfpe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sfpe-chips span { padding: 3px 9px; font-size: 12.5px; color: var(--sfpe-ink); background: var(--sfpe-soft); border: 1px solid var(--sfpe-line); }
.sfpe-pk { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 20px; }
.sfpe-pk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sfpe-line); }
.sfpe-pk-row strong { font-size: 13.5px; font-weight: 600; color: var(--sfpe-ink); }
.sfpe-pk-row span { grid-column: 1; font-size: 12px; color: var(--sfpe-muted); }
.sfpe-pk-row em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 11.5px; padding: 1px 8px; border: 1px solid var(--sfpe-line); color: var(--sfpe-muted); white-space: nowrap; }
.sfpe-pk-row.is-off { opacity: .5; }

/* Top-ups and cards */
.sfpe-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--sfpe-muted); cursor: pointer; }
.sfpe-x:hover { color: var(--dm-red-text, #B42318); background: var(--sfpe-soft); }
.sfpe-card { padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--sfpe-line); background: var(--sfpe-bg); }
.sfpe-card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.sfpe-card-h strong { font-size: 15px; color: var(--sfpe-ink); }
.sfpe-card .sfpe-gh { margin-top: 14px; padding-top: 12px; }
.sfpe-togs { display: flex; flex-wrap: wrap; gap: 6px; }
.sfpe-tog { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 10px; font-size: 12.5px; font-weight: 400; color: var(--sfpe-ink); border: 1px solid var(--sfpe-line2); background: var(--sfpe-bg); cursor: pointer; }
.sfpe-tog:has(input:checked) { background: var(--sfpe-ink); border-color: var(--sfpe-ink); color: var(--sfpe-bg); }
.sfpe-tog input { margin: 0; accent-color: var(--sfpe-ink); }
.sfpe-tog.is-off { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* Preview: one column, its own scroll, the total pinned on top */
.sfpe-preview { position: sticky; top: calc(63px + var(--sfpe-bar, 110px) + 12px); display: flex; flex-direction: column; max-height: calc(100vh - 63px - var(--sfpe-bar, 110px) - 28px); padding-bottom: 0; }
.sfpe-pv-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sfpe-pv-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin-top: 12px; padding: 10px 14px; background: var(--sfpe-ink); color: var(--sfpe-bg); }
.sfpe-pv-total:empty { display: none; }
.sfpe-pv-total span { font-size: 12.5px; opacity: .8; }
.sfpe-pv-total strong { font-size: 20px; }
.sfpe-pv-total .sfpb-err { flex-basis: 100%; font-size: 12.5px; color: #FDA29B; }
.sfpe-pv-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 12px -20px 0; padding: 0 20px 18px; }
.sfpe-preview .sfpb { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sfpe-preview .sfpb-sum { position: static; }
@media (max-width: 1199.98px) {
    .sfpe-preview { position: static; max-height: none; }
    .sfpe-pv-body { overflow: visible; }
}
@media (max-width: 767.98px) {
    .sfpe-bar { padding-top: 8px; }
    .sfpe-bar-row { flex-wrap: nowrap; }
    .sfpe-bar-name .sf-sub, .sfpe-bar-name h3 .sf-chip, .sfpe-bar-a form, .sfpe-dirty { display: none; }
    .sfpe-bar-name h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sfpe-bar-a { flex-wrap: nowrap; }
    .sfpe-back { width: 30px; height: 30px; }
    .sfpe-nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
    .sfpe-nav::-webkit-scrollbar { display: none; }
    .sfpe-items thead { display: none; }
    .sfpe-items tr[data-key] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 10px 0; border-bottom: 1px solid var(--sfpe-line); }
    .sfpe-items tr[data-key] > td { display: block; width: auto !important; padding: 0 !important; border: 0; }
    .sfpe-items tr[data-key] > td:first-child { grid-column: 1 / -1; border-left-width: 3px; border-left-style: solid; padding-left: 10px !important; }
    .sfpe-items tr.sfpe-band, .sfpe-items tr.sfpe-band td { display: block; }
    .sfpe-checks-l { width: 100%; }
}

/* Companies on this plan, folded when every company has the plan as saved */
.sfp-sync-quiet > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; list-style: none; }
.sfp-sync-quiet > summary::-webkit-details-marker { display: none; }
.sfp-sync-quiet > summary strong { font-size: 15px; color: var(--dm-text, #101828); }
.sfp-sync-quiet > summary .sfp-sync-show { margin-left: auto; }
.sfp-sync-quiet[open] > summary .sfp-sync-show { visibility: hidden; }
.sfp-sync-quiet:not([open]) { padding-top: 12px; padding-bottom: 12px; }

/* ---- Plans list (2026-11-24): overview, filter, tier cards per business type ---- */
.sfpi { --sfpi-ink: var(--dm-text, #101828); --sfpi-muted: var(--dm-muted, #667085); --sfpi-line: var(--dm-border, #EAECF0); --sfpi-line2: var(--dm-border-strong, #D0D5DD); --sfpi-soft: var(--dm-surface-2, #F7F8FA); --sfpi-bg: var(--dm-surface, #fff); }
.sfpi .sf-card, .sfpi .btn, .sfpi .form-control, .sfpi .sf-chip { border-radius: 0; }
.sfpi-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
.sfpi-head h3 { font-size: 21px; font-weight: 700; margin: 0 0 4px; color: var(--sfpi-ink); }
.sfpi-head > div:first-child { flex: 1 1 420px; max-width: 760px; }
.sfpi-head-a { display: flex; gap: 8px; flex-wrap: wrap; }
.sfpi-new { margin-bottom: 14px; }
.sfpi-new-f { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 12px; }
.sfpi-new-f label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; }
.sfpi-new-f label span { font-size: 12px; color: var(--sfpi-muted); }
.sfpi-new-f .form-control { height: 36px; min-width: 220px; }
.sfpi-new-name { flex: 1 1 240px; }
.sfpi-seed { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.sfpi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.sfpi-stats > * { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--sfpi-bg); border: 1px solid var(--sfpi-line); color: var(--sfpi-ink); text-decoration: none; }
.sfpi-stats > a:hover { border-color: var(--sfpi-ink); }
.sfpi-stats > a:hover { background: var(--sfpi-soft); text-decoration: none; }
.sfpi-stats strong { font-size: 21px; line-height: 1.2; }
.sfpi-stats span { font-size: 12.5px; color: var(--sfpi-muted); }
.sfpi-stats .is-ok strong { color: var(--dm-green-text, #067647); }
.sfpi-stats .is-warn strong { color: var(--dm-orange-text, #B54708); }
.sfpi-stats .is-bad strong { color: var(--dm-red-text, #B42318); }
.sfpi-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-bottom: 14px; }
/* Type tabs: separate tabs that wrap onto a new line (never cut off or scrolled out of sight). */
.sfpi-filter { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.sfpi-filter button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--sfpi-line2); border-radius: 0; background: var(--sfpi-bg); color: var(--sfpi-ink); font: inherit; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.sfpi-filter button em { font-style: normal; font-size: 11.5px; color: var(--sfpi-muted); }
.sfpi-filter button:hover { border-color: var(--sfpi-ink); }
.sfpi-filter button:focus { outline: 0; }
.sfpi-filter button:focus-visible { box-shadow: 0 0 0 2px var(--dm-blue-text, #2E90FA); }
.sfpi-filter button.is-offtype::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--dm-orange-text, #F79009); }
.sfpi-filter button.is-on { background: var(--sfpi-ink); border-color: var(--sfpi-ink); color: var(--sfpi-bg); }
.sfpi-filter button.is-on em { color: inherit; opacity: .7; }
.sfpi-search { flex: 0 0 240px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 10px; height: 32px; border: 1px solid var(--sfpi-line2); background: var(--sfpi-bg); color: var(--sfpi-muted); font-weight: 400; }
.sfpi-search:focus-within { border-color: var(--sfpi-ink); }
.sfpi-search input { border: 0; outline: 0; background: transparent; color: var(--sfpi-ink); font-size: 13.5px; width: 100%; min-width: 0; }
@media (max-width: 575.98px) { .sfpi-search { flex: 1 1 100%; } }
.sfpi-type { display: block; margin-bottom: 18px; }
.sfpi-type-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; }
.sfpi-type-h h4 { font-size: 16px; font-weight: 700; margin: 0 4px 0 0; color: var(--sfpi-ink); }
.sfpi-ext { margin-left: auto; font-size: 12.5px; }
.sfpi-type.is-off > summary { list-style: none; cursor: pointer; padding: 12px 16px; border: 1px dashed var(--sfpi-line2); background: var(--sfpi-bg); }
.sfpi-type.is-off > summary::-webkit-details-marker { display: none; }
.sfpi-type.is-off > summary .sfpi-type-h { margin: 0; }
.sfpi-type.is-off[open] > summary { margin-bottom: 10px; }
.sfpi-type.is-off[open] .sfpi-open { visibility: hidden; }
.sfpi-open { color: var(--dm-blue-text, #175CD3); }
.sfpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.sfpi-card { display: flex; flex-direction: column; padding: 16px 18px 12px; border: 1px solid var(--sfpi-line); background: var(--sfpi-bg); color: var(--sfpi-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.sfpi-card:hover { border-color: var(--sfpi-ink); text-decoration: none; color: var(--sfpi-ink); box-shadow: 0 4px 14px -10px rgba(16, 24, 40, .45); }
.sfpi-card:focus-visible { outline: 2px solid var(--dm-blue-text, #2E90FA); outline-offset: 2px; }
.sfpi-card.is-draft, .sfpi-card.is-inactive { border-style: dashed; }
.sfpi-c-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sfpi-c-h strong { font-size: 15.5px; font-weight: 700; margin-right: 2px; }
.sfpi-tagline { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--sfpi-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.sfpi-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--sfpi-line); }
.sfpi-price strong { font-size: 20px; font-weight: 700; }
.sfpi-price strong.is-text { font-size: 17px; }
.sfpi-price span { font-size: 12.5px; color: var(--sfpi-muted); }
.sfpi-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; margin: 0 0 12px; font-size: 12.5px; }
.sfpi-facts dt { font-weight: 500; color: var(--sfpi-muted); white-space: nowrap; }
.sfpi-facts dd { margin: 0; color: var(--sfpi-ink); line-height: 1.45; }
.sfpi-m { color: var(--sfpi-muted); }
.sfpi-c-f { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sfpi-line); font-size: 12.5px; }
.sfpi-c-f .fa-building { opacity: .6; margin-right: 2px; }
.sfpi-go { margin-left: auto; font-weight: 600; color: var(--sfpi-ink); }
.sfpi-card:hover .sfpi-go .fa { transform: translateX(2px); }
.sfpi-go .fa { transition: transform .15s ease; font-size: 11px; }
.sfpi-none { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.sfpi-none[hidden] { display: none; }
.sfpi-settings > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; cursor: pointer; }
.sfpi-settings > summary::-webkit-details-marker { display: none; }
.sfpi-settings > summary h4 { margin: 0; }
.sfpi-settings[open] .sfpi-open { visibility: hidden; }
.sfpi-settings-note { font-size: 12.5px; }
@media (max-width: 575.98px) {
    .sfpi-grid { grid-template-columns: minmax(0, 1fr); }
    .sfpi-ext { margin-left: 0; }
}
