/* =====================================================================
   FiftyStatePay — Paycheck Calculator
   Uses the Site Kit's Greenback Ledger tokens when present (--fsp-*),
   with the same values as fallbacks so it looks right on any theme.
   Mint always means take-home pay; brass always means taxes.
   ================================================================== */

.fspc {
  --c-forest: var(--fsp-forest, #0F3D2E);
  --c-ledger: var(--fsp-ledger, #1F7A57);
  --c-mint: var(--fsp-mint, #8FD9B6);
  --c-brass: var(--fsp-brass, #C9A227);
  --c-bg: var(--fsp-bg, #FAF7EF);
  --c-surface: var(--fsp-surface, #FFFFFF);
  --c-soft: var(--fsp-soft, #F6F2E8);
  --c-text: var(--fsp-text, #1C1917);
  --c-head: var(--fsp-heading, #0F3D2E);
  --c-muted: var(--fsp-muted, #615B55);
  --c-border: var(--fsp-border, #E7E2D3);
  --c-focus: var(--fsp-focus, #1F7A57);
  --c-chip: var(--fsp-chip, #F1EDE2);
  --c-mintchip: var(--fsp-mint-chip, #D3F0E2);
  --c-up: #15803D;
  --c-down: #B45309;
  --c-shadow: var(--fsp-shadow, 0 1px 2px rgba(15, 61, 46, .05), 0 22px 44px -30px rgba(15, 61, 46, .38));
  --f-head: var(--fsp-font-head, "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
  --f-body: var(--fsp-font-body, "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
  --r: 14px;
  box-sizing: border-box;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .fspc {
  --c-bg: var(--fsp-bg, #0B1813);
  --c-surface: var(--fsp-surface, #11231B);
  --c-soft: var(--fsp-soft, #152B21);
  --c-text: var(--fsp-text, #DCE8E1);
  --c-head: var(--fsp-heading, #F2F7F4);
  --c-muted: var(--fsp-muted, #9FB7AA);
  --c-border: var(--fsp-border, #22402F);
  --c-focus: var(--fsp-focus, #8FD9B6);
  --c-chip: var(--fsp-chip, #1B3529);
  --c-mintchip: var(--fsp-mint-chip, rgba(143, 217, 182, .16));
  --c-up: #4ADE80;
  --c-down: #FBBF24;
  --c-shadow: var(--fsp-shadow, 0 1px 2px rgba(0, 0, 0, .35), 0 22px 44px -28px rgba(0, 0, 0, .8));
  color-scheme: dark;
}
.fspc *, .fspc *::before, .fspc *::after { box-sizing: border-box; }
.fspc p { margin: 0; }
.fspc .fspc-i { width: 18px; height: 18px; flex: none; }
.fspc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── card ─────────────────────────────────────────────────────────── */
.fspc-calc, .fspc-tool {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 28px auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  box-shadow: var(--c-shadow);
  overflow: clip;
  scroll-margin-top: calc(var(--fsp-header-h, 76px) + 16px);
}
.fspc-head {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 26px 20px;
  border-bottom: 1px solid var(--c-border);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c-mint) 22%, transparent) 0%, transparent 55%),
    radial-gradient(var(--fsp-dot, #D8D0BC) 1px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--c-soft), var(--c-surface));
}
html[data-theme="dark"] .fspc-head { background: radial-gradient(120% 140% at 100% 0%, rgba(143, 217, 182, .10) 0%, transparent 55%), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 18px 18px, linear-gradient(180deg, var(--c-soft), var(--c-surface)); }
.fspc-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c-forest), var(--c-ledger) 45%, var(--c-mint)); }
.fspc-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.fspc-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font: 700 11.5px/1.2 var(--f-head); letter-spacing: .06em; color: #F1E4C3; background: var(--c-forest); }
html[data-theme="dark"] .fspc-badge { color: #0B1813; background: var(--c-mint); }
.fspc .fspc-title { margin: 8px 0 4px; padding: 0; font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--f-head); letter-spacing: -.02em; color: var(--c-head); border: 0; }
.fspc-sub { font-size: 14px; color: var(--c-muted); }

/* toolbar */
.fspc-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.fspc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; margin: 0;
  font: 600 14px/1 var(--f-head); color: var(--c-head); cursor: pointer;
  background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: 999px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
  -webkit-appearance: none; appearance: none; text-decoration: none; box-shadow: none;
}
.fspc-btn:hover { border-color: color-mix(in srgb, var(--c-ledger) 55%, var(--c-border)); background: color-mix(in srgb, var(--c-mint) 14%, var(--c-surface)); color: var(--c-head); }
.fspc-btn:focus-visible, .fspc-tab:focus-visible, .fspc-chip:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.fspc-btn:active { transform: translateY(1px); }
.fspc-btn[disabled] { opacity: .5; cursor: default; }
.fspc-btn--icon { width: 40px; padding: 0; }
.fspc-btn--pdf { color: #F1E4C3; background: linear-gradient(135deg, var(--c-forest), var(--c-ledger)); border-color: transparent; }
.fspc-btn--pdf:hover { color: #FFFFFF; background: linear-gradient(135deg, var(--c-forest), var(--c-ledger)); filter: brightness(1.1); }
html[data-theme="dark"] .fspc-btn--pdf { color: #0B1813; background: linear-gradient(135deg, #A6E6C7, var(--c-mint)); }
.fspc-btn--ghost { min-height: 36px; font-size: 13.5px; color: var(--c-muted); }
.fspc-btn--mini { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.fspc-mode span { display: inline-flex; }
.fspc-mode .fspc-mode__moon { display: none; }
html[data-theme="dark"] .fspc-mode .fspc-mode__sun { display: none; }
html[data-theme="dark"] .fspc-mode .fspc-mode__moon { display: inline-flex; }

/* ── layout ───────────────────────────────────────────────────────── */
.fspc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
.fspc-form { padding: 22px 26px 18px; border-right: 1px solid var(--c-border); min-width: 0; }
.fspc-out { padding: 22px 26px 24px; min-width: 0; background: linear-gradient(180deg, var(--c-soft), var(--c-surface) 70%); min-height: 520px; }
.fspc-tool .fspc-out { min-height: 280px; }
@container (max-width: 880px) {
  .fspc-body { grid-template-columns: minmax(0, 1fr); }
  .fspc-form { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .fspc-out { min-height: 0; }
}
@container (max-width: 560px) {
  .fspc-head { flex-direction: column; padding: 20px 18px 16px; }
  .fspc-tools { justify-content: flex-start; }
  .fspc-form, .fspc-out { padding-left: 16px; padding-right: 16px; }
  .fspc-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .fspc-grid > * { grid-column: auto !important; }
}

/* ── form ─────────────────────────────────────────────────────────── */
.fspc fieldset.fspc-sec { margin: 0 0 20px; padding: 0 0 18px; border: 0; border-bottom: 1px dashed var(--c-border); min-width: 0; }
.fspc fieldset.fspc-sec:last-of-type { border-bottom: 0; }
.fspc legend.fspc-sec__t { display: flex; align-items: baseline; gap: 8px; width: 100%; margin: 0 0 12px; padding: 0; font: 700 16px/1.25 var(--f-head); color: var(--c-head); letter-spacing: -.01em; }
.fspc-sec__s { font: 500 12.5px/1 var(--f-body); color: var(--c-muted); letter-spacing: 0; }
.fspc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; align-items: start; }
.fspc-grid > .is-wide { grid-column: 1 / -1; }
.fspc-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fspc .fspc-f__l { font: 600 13.5px/1.3 var(--f-head); color: var(--c-head); letter-spacing: .005em; }
.fspc-f__opt { font: 500 12px var(--f-body); color: var(--c-muted); }
.fspc-f__h { font-size: 12.5px; line-height: 1.4; color: var(--c-muted); }
.fspc-f__in { position: relative; display: flex; align-items: stretch; }
.fspc-f__pre, .fspc-f__suf { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--c-muted); pointer-events: none; }
.fspc-f__pre { left: 14px; }
.fspc-f__suf { right: 14px; font-weight: 500; font-size: 13px; }
:root:not(#fspc-0) .fspc .fspc-body input.fspc-input, :root:not(#fspc-0) .fspc .fspc-body select.fspc-select {
  width: 100%; min-height: 46px; margin: 0; padding: 10px 14px;
  font: 500 16px/1.3 var(--f-body); color: var(--c-text);
  background-color: var(--c-soft); border: 1.5px solid var(--c-border); border-radius: 12px;
  box-shadow: none; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  -webkit-appearance: none; appearance: none; font-variant-numeric: tabular-nums;
}
:root:not(#fspc-0) .fspc .fspc-body select.fspc-select { padding-right: 38px; cursor: pointer; text-overflow: ellipsis; background-image: 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 1.5l5 5 5-5' fill='none' stroke='%23615B55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
:root[data-theme="dark"]:not(#fspc-0) .fspc .fspc-body select.fspc-select { background-image: 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 1.5l5 5 5-5' fill='none' stroke='%239FB7AA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fspc .fspc-select option { color: var(--c-text); background: var(--c-surface); }
:root:not(#fspc-0) .fspc .fspc-f__in.has-pre input.fspc-input { padding-left: 30px; }
:root:not(#fspc-0) .fspc .fspc-f__in.has-suf input.fspc-input { padding-right: 52px; }
:root:not(#fspc-0) .fspc .fspc-body input.fspc-input:hover, :root:not(#fspc-0) .fspc .fspc-body select.fspc-select:hover { border-color: color-mix(in srgb, var(--c-ledger) 45%, var(--c-border)); }
:root:not(#fspc-0) .fspc .fspc-body input.fspc-input:focus, :root:not(#fspc-0) .fspc .fspc-body select.fspc-select:focus { background-color: var(--c-surface); border-color: var(--c-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-focus) 18%, transparent); }
.fspc .fspc-input::-webkit-outer-spin-button, .fspc .fspc-input::-webkit-inner-spin-button { opacity: .5; }
:root:not(#fspc-0) .fspc .fspc-body .is-big input.fspc-input { min-height: 54px; font: 700 21px/1.2 var(--f-head); letter-spacing: -.01em; color: var(--c-head); }
.fspc .is-big .fspc-f__pre { font-size: 18px; color: var(--c-head); }
/* value + % / $ unit */
.fspc-f__in--unit { gap: 0; }
:root:not(#fspc-0) .fspc .fspc-f__in--unit input.fspc-input { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 14px !important; }
:root:not(#fspc-0) .fspc .fspc-f__in--unit select.fspc-select { flex: 0 0 72px; width: 72px; margin-left: -1.5px; padding: 0 28px 0 14px; border-top-left-radius: 0; border-bottom-left-radius: 0; font-weight: 700; background-position: right 10px center; }

/* segmented control */
.fspc-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--c-chip); border: 1px solid var(--c-border); width: max-content; max-width: 100%; }
.fspc-seg__o { position: relative; display: flex; }
.fspc-seg__i { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fspc .fspc-seg__l { display: inline-flex; align-items: center; min-height: 36px; padding: 0 20px; border-radius: 999px; font: 600 14px/1 var(--f-head); color: var(--c-muted); cursor: pointer; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.fspc-seg__i:checked + .fspc-seg__l { color: #F1E4C3; background: var(--c-forest); box-shadow: 0 6px 14px -8px rgba(15, 61, 46, .8); }
html[data-theme="dark"] .fspc-seg__i:checked + .fspc-seg__l { color: #0B1813; background: var(--c-mint); }
.fspc-seg__i:focus-visible + .fspc-seg__l { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* checkbox */
.fspc-check { display: flex; }
.fspc-check__i { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fspc .fspc-check__l { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--c-text); cursor: pointer; }
.fspc-check__l small { display: block; font-size: 12.5px; color: var(--c-muted); }
.fspc-check__box { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 0; border-radius: 7px; border: 1.5px solid var(--c-border); background: var(--c-soft); color: transparent; transition: background-color .15s ease, border-color .15s ease; }
.fspc-check__box .fspc-i { width: 14px; height: 14px; stroke-width: 3; }
.fspc-check__i:checked + .fspc-check__l .fspc-check__box { background: var(--c-ledger); border-color: var(--c-ledger); color: #fff; }
html[data-theme="dark"] .fspc-check__i:checked + .fspc-check__l .fspc-check__box { background: var(--c-mint); border-color: var(--c-mint); color: #0B1813; }
.fspc-check__i:focus-visible + .fspc-check__l .fspc-check__box { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* disclosure */
.fspc-more { border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); }
.fspc-more + .fspc-more { margin-top: 10px; }
.fspc-form > .fspc-more { margin: 0 0 14px; }
.fspc .fspc-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: 600 13.5px/1.2 var(--f-head); color: var(--c-head); cursor: pointer; list-style: none; border-radius: 12px; }
.fspc-more > summary::-webkit-details-marker { display: none; }
.fspc-more > summary:hover { background: color-mix(in srgb, var(--c-mint) 10%, transparent); }
.fspc-more > summary:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.fspc-more__chev { transition: transform .2s ease; color: var(--c-ledger); }
html[data-theme="dark"] .fspc-more__chev { color: var(--c-mint); }
.fspc-more[open] > summary .fspc-more__chev { transform: rotate(180deg); }
.fspc-more__b { padding: 4px 14px 16px; }
.fspc-formfoot { display: flex; justify-content: flex-end; }
.fspc-note { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: var(--c-text); background: var(--c-mintchip); border-radius: 12px; }
.fspc-note .fspc-i { margin-top: 1px; color: var(--c-ledger); }
html[data-theme="dark"] .fspc-note .fspc-i { color: var(--c-mint); }

/* sticky take-home bar on narrow layouts */
.fspc-mini { display: none; }
@container (max-width: 880px) {
  .fspc-mini { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 14px -6px 0; padding: 10px 10px 10px 16px; border-radius: 16px; color: #F1E4C3; background: linear-gradient(160deg, #145039, #0F3D2E 60%, #0A2C21); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); }
  html[data-theme="dark"] .fspc-mini { background: linear-gradient(160deg, #1A5A41, #134A37 60%, #0E3A2B); border: 1px solid rgba(143, 217, 182, .25); }
  .fspc-mini__k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #CDBF9C; }
  .fspc-mini__v { flex: 1; min-width: 0; font: 700 18px/1.1 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fspc-mini__v { font-size: 17px; }
  .fspc .fspc-mini__go { flex: none; min-height: 36px; margin: 0; padding: 0 14px; font: 700 13px/1 var(--f-head); color: #0B1813; background: var(--c-mint); border: 0; border-radius: 999px; cursor: pointer; }
}

@container (max-width: 420px) { .fspc-mini__k { display: none; } }

/* skeleton before the script runs */
.fspc-skel { display: grid; gap: 14px; }
.fspc-skel__row { height: 46px; border-radius: 12px; background: linear-gradient(90deg, var(--c-soft), var(--c-chip), var(--c-soft)); background-size: 200% 100%; animation: fspc-shine 1.4s ease-in-out infinite; }
.fspc-skel__row.is-short { width: 60%; }
@keyframes fspc-shine { to { background-position: -200% 0; } }

/* ── results: tabs + chips ───────────────────────────────────────── */
.fspc-tabs { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 14px; background: var(--c-chip); border: 1px solid var(--c-border); }
.fspc-tabs::-webkit-scrollbar { display: none; }
.fspc .fspc-tab { flex: 1 0 auto; min-height: 38px; margin: 0; padding: 0 14px; font: 600 13.5px/1 var(--f-head); color: var(--c-muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap; box-shadow: none; }
.fspc .fspc-tab:hover { color: var(--c-head); background: color-mix(in srgb, var(--c-surface) 60%, transparent); }
.fspc .fspc-tab[aria-selected="true"] { color: var(--c-head); background: var(--c-surface); box-shadow: 0 1px 2px rgba(15, 61, 46, .08), 0 6px 14px -10px rgba(15, 61, 46, .4); }
.fspc-panel:focus { outline: none; }
.fspc-panel:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 4px; border-radius: 8px; }
.fspc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.fspc .fspc-chip { min-height: 32px; margin: 0; padding: 0 13px; font: 600 12.5px/1 var(--f-head); color: var(--c-muted); background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: 999px; cursor: pointer; box-shadow: none; }
.fspc .fspc-chip.is-on { color: var(--c-head); border-color: var(--c-ledger); background: var(--c-mintchip); }
html[data-theme="dark"] .fspc .fspc-chip.is-on { border-color: var(--c-mint); }

/* ── pay stub (same design as the share image) ───────────────────── */
.fspc-stub {
  --ps-paper1: #FFFDF7; --ps-paper2: #FAF0D6; --ps-ink: #1C1917; --ps-head: #0F3D2E; --ps-muted: #6F6862; --ps-line: #E5DBC2;
  --ps-chip: #F4EAD0; --ps-chipink: #8A6D12; --ps-ok: #D3F0E2; --ps-okink: #1F7A57; --ps-panel: rgba(255, 255, 255, .6); --ps-panelbd: #EADFC4;
  --ps-st: #0F3D2E; --ps-stt: #F1E4C3; --ps-perf: rgba(201, 162, 39, .75); --ps-shadow: rgba(15, 61, 46, .26);
  position: relative; width: 100%; max-width: 560px; margin: 0 auto 18px;
  filter: drop-shadow(0 20px 26px var(--ps-shadow)) drop-shadow(0 2px 3px rgba(0, 0, 0, .06));
}
html[data-theme="dark"] .fspc-stub {
  --ps-paper1: #16302A; --ps-paper2: #10241C; --ps-ink: #E3EFE8; --ps-head: #F2F7F4; --ps-muted: #9FB7AA; --ps-line: #264A3B;
  --ps-chip: rgba(201, 162, 39, .14); --ps-chipink: #E2C25A; --ps-ok: rgba(143, 217, 182, .14); --ps-okink: #8FD9B6; --ps-panel: rgba(255, 255, 255, .03); --ps-panelbd: #24453A;
  --ps-st: #8FD9B6; --ps-stt: #0B1813; --ps-perf: rgba(226, 194, 90, .55); --ps-shadow: rgba(0, 0, 0, .6);
}
.fspc-stub__paper {
  position: relative; padding: 22px 24px 24px; border-radius: 22px 22px 0 0; color: var(--ps-ink);
  background: linear-gradient(168deg, var(--ps-paper1), var(--ps-paper2));
  -webkit-mask: radial-gradient(circle 15px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 15px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
}
html[data-theme="dark"] .fspc-stub__paper { background: radial-gradient(90% 60% at 100% 0%, rgba(143, 217, 182, .08), transparent 60%), linear-gradient(168deg, var(--ps-paper1), var(--ps-paper2)); }
.fspc-stub__paper::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; border-top: 2px dashed var(--ps-perf); }
.fspc-stub__top { display: flex; align-items: center; gap: 12px; }
.fspc-stub__st { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 38px; border-radius: 11px; background: var(--ps-st); color: var(--ps-stt); font: 700 16px/1 var(--f-head); letter-spacing: .06em; }
.fspc .fspc-stub__ttl { font: 700 18px/1.15 var(--f-head); color: var(--ps-head); letter-spacing: -.2px; }
.fspc-stub__sub { margin-top: 4px !important; font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--ps-muted); }
.fspc-stub__panel { margin-top: 14px; padding: 2px 14px; border-radius: 16px; background: var(--ps-panel); border: 1px solid var(--ps-panelbd); }
.fspc-stub__r { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--ps-line); }
.fspc-stub__r:last-child { border-bottom: 0; }
.fspc-stub__ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ps-chip); color: var(--ps-chipink); }
.fspc-stub__ic .fspc-i { width: 17px; height: 17px; }
.fspc-stub__r.is-gross .fspc-stub__ic { background: var(--ps-st); color: var(--ps-stt); }
.fspc-stub__r.is-zero .fspc-stub__ic { background: var(--ps-ok); color: var(--ps-okink); }
.fspc-stub__r.is-ded .fspc-stub__ic { background: color-mix(in srgb, #9FB7AA 25%, transparent); color: #3E5A4C; }
html[data-theme="dark"] .fspc-stub__r.is-ded .fspc-stub__ic { color: #C9DDD2; }
.fspc-stub__l { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; min-width: 0; font-size: 14.5px; font-weight: 500; line-height: 1.25; color: var(--ps-muted); }
.fspc-stub__r.is-gross .fspc-stub__l { font-weight: 600; color: var(--ps-ink); }
.fspc-stub__v { font-size: 15px; font-weight: 600; line-height: 1; color: var(--ps-ink); text-align: right; white-space: nowrap; }
.fspc-stub__r.is-gross .fspc-stub__v { font: 700 17px/1 var(--f-head); color: var(--ps-head); }
.fspc-stub__r.is-zero .fspc-stub__v { color: var(--ps-okink); }
.fspc-stub__pc { font-size: 10.5px; font-weight: 600; color: var(--ps-muted); }
.fspc-stub__none { padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-okink); background: var(--ps-ok); border: 1px solid rgba(31, 122, 87, .25); }
.fspc-stub__bar { grid-column: 2 / 4; height: 4px; margin-top: 7px; border-radius: 2px; background: var(--ps-line); overflow: hidden; }
.fspc-stub__bar i { display: block; height: 100%; border-radius: 2px; transition: width .35s cubic-bezier(.22, 1, .36, 1); }
.fspc-stub__stub {
  position: relative; padding: 22px 24px 16px; border-radius: 0 0 22px 22px; color: #F1E4C3;
  background: radial-gradient(100% 100% at 100% 0%, rgba(31, 122, 87, .6), transparent 60%), repeating-radial-gradient(circle at 0% 120%, rgba(143, 217, 182, .06) 0 1px, transparent 1px 10px), linear-gradient(160deg, #145039, #0F3D2E 58%, #0A2C21);
  -webkit-mask: radial-gradient(circle 15px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 15px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
}
html[data-theme="dark"] .fspc-stub__stub { background: radial-gradient(100% 100% at 100% 0%, rgba(143, 217, 182, .16), transparent 60%), repeating-radial-gradient(circle at 0% 120%, rgba(143, 217, 182, .06) 0 1px, transparent 1px 10px), linear-gradient(160deg, #1A5A41, #134A37 58%, #0E3A2B); }
.fspc-stub__row { display: flex; align-items: center; gap: 20px; }
.fspc-stub__main { min-width: 0; }
.fspc-stub__ring { position: relative; flex: none; width: 112px; height: 112px; }
.fspc-stub__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ring, #8FD9B6); -webkit-mask: radial-gradient(circle 44px, #0000 97%, #000); mask: radial-gradient(circle 44px, #0000 97%, #000); }
.fspc-stub__ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fspc-stub__ring b { font: 700 22px/1 var(--f-head); color: #F1E4C3; }
.fspc-stub__ring small { margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #CDBF9C; }
.fspc-stub__k { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #CDBF9C; }
.fspc .fspc-stub__amt { margin-top: 8px; font: 700 clamp(32px, 6cqi, 46px)/1 var(--f-head); letter-spacing: -1.3px; color: #F1E4C3; white-space: nowrap; }
.fspc-stub__amt sup { position: relative; top: 0; font-size: .48em; vertical-align: .9em; margin-right: 2px; letter-spacing: 0; color: #D9C9A0; }
.fspc-stub__amt small { font-size: .55em; letter-spacing: -.3px; color: #D9C9A0; }
.fspc-stub__tax { display: flex; align-items: center; gap: 7px; margin-top: 11px !important; font-size: 12.5px; font-weight: 500; color: #B9CDBF; }
.fspc-stub__tax i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: #C9A227; }
.fspc-stub__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(241, 228, 195, .14); font-size: 12.5px; font-weight: 500; color: #B9CDBF; }
.fspc-stub__foot span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fspc-stub__foot .fspc-i { width: 15px; height: 15px; color: #CDBF9C; }
.fspc-stub__foot b { color: #F1E4C3; font-weight: 600; }
@container (max-width: 440px) {
  .fspc-stub__paper, .fspc-stub__stub { padding-left: 16px; padding-right: 16px; }
  .fspc-stub__ring { width: 88px; height: 88px; }
  .fspc-stub__ring::before { -webkit-mask: radial-gradient(circle 34px, #0000 97%, #000); mask: radial-gradient(circle 34px, #0000 97%, #000); }
  .fspc-stub__ring b { font-size: 17px; }
  .fspc-stub__row { gap: 14px; }
  .fspc-stub__foot { flex-wrap: wrap; }
}

/* key figures */
.fspc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; }
@container (max-width: 1080px) { .fspc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fspc-kpi { margin: 0; padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; min-width: 0; }
.fspc .fspc-kpi dt { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.fspc .fspc-kpi dd { margin: 6px 0 0; font: 700 18px/1.15 var(--f-head); color: var(--c-head); letter-spacing: -.01em; }
.fspc-kpi dd small { display: block; margin-top: 3px; font: 500 11.5px var(--f-body); color: var(--c-muted); letter-spacing: 0; }
.fspc-kpi.is-strong { background: var(--c-mintchip); border-color: color-mix(in srgb, var(--c-ledger) 30%, transparent); }
.fspc-kpi.is-strong dd { color: var(--c-ledger); }
html[data-theme="dark"] .fspc-kpi.is-strong dd { color: var(--c-mint); }

/* notes */
.fspc-notes { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.fspc .fspc-notes li { display: flex; gap: 9px; margin: 0; padding: 11px 13px; font-size: 13.5px; line-height: 1.5; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 3px solid var(--c-brass); border-radius: 10px; }
.fspc-notes .fspc-i { margin-top: 1px; color: var(--c-brass); }
.fspc-emp { display: grid; gap: 8px; font-size: 14px; }
.fspc-emp__t b { font: 700 18px var(--f-head); color: var(--c-head); }

/* lead / tables */
.fspc-lead { margin: 0 0 12px !important; font-size: 14px; color: var(--c-text); }
.fspc-scroll { overflow: auto; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); max-height: 640px; }
:root:not(#fspc-0) .fspc .fspc-table--cmp th, :root:not(#fspc-0) .fspc .fspc-table--cmp td { padding: 8px 9px; font-size: 13.5px; }
:root:not(#fspc-0) .fspc .fspc-table--cmp thead th { font-size: 10.5px; white-space: normal; }
.fspc .fspc-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; border: 0; }
:root:not(#fspc-0) .fspc .fspc-table th, :root:not(#fspc-0) .fspc .fspc-table td { padding: 9px 12px; text-align: right; border: 0; border-bottom: 1px solid var(--c-border); white-space: nowrap; background: transparent; color: var(--c-text); }
:root:not(#fspc-0) .fspc .fspc-table th[scope="row"], :root:not(#fspc-0) .fspc .fspc-table td:first-child { text-align: left; }
.fspc .fspc-table th[scope="row"] { font-weight: 600; }
:root:not(#fspc-0) .fspc .fspc-table thead th { position: sticky; top: 0; z-index: 1; font: 600 11.5px/1.2 var(--f-head); letter-spacing: .05em; text-transform: uppercase; color: var(--c-head); background: color-mix(in srgb, var(--c-mint) 22%, var(--c-surface)); }
:root[data-theme="dark"]:not(#fspc-0) .fspc .fspc-table thead th { background: #163A2C; }
:root:not(#fspc-0) .fspc .fspc-table thead th:first-child { text-align: left; }
:root:not(#fspc-0) .fspc .fspc-table--cmp th[scope="col"]:nth-child(2) { text-align: left; }
:root:not(#fspc-0) .fspc .fspc-table tbody tr:hover td, :root:not(#fspc-0) .fspc .fspc-table tbody tr:hover th { background: color-mix(in srgb, var(--c-mint) 8%, transparent); }
:root:not(#fspc-0) .fspc .fspc-table tr.is-cur td, :root:not(#fspc-0) .fspc .fspc-table tr.is-cur th { background: var(--c-mintchip); }
:root:not(#fspc-0) .fspc .fspc-table .is-net { font-weight: 700; color: var(--c-ledger); }
html[data-theme="dark"] :root:not(#fspc-0) .fspc .fspc-table .is-net { color: var(--c-mint); }
:root:not(#fspc-0) .fspc .fspc-table .is-up { color: var(--c-up); font-weight: 600; }
:root:not(#fspc-0) .fspc .fspc-table .is-down { color: var(--c-down); font-weight: 600; }
.fspc .fspc-table a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-ledger) 45%, transparent); text-underline-offset: 3px; }
.fspc .fspc-table--sm { margin-top: 12px; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; }
.fspc .fspc-table caption { padding: 0 0 10px; text-align: left; font: 700 16px/1.3 var(--f-head); color: var(--c-head); caption-side: top; }

/* year chart */
.fspc-chartbox { margin: 0 0 12px; padding: 14px 12px 6px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; }
.fspc-chart { display: block; width: 100%; height: auto; }
.fspc-chart rect { fill: var(--c-ledger); }
.fspc-chart rect.is-cap { fill: var(--c-mint); }
html[data-theme="dark"] .fspc-chart rect { fill: #2E9C72; }
html[data-theme="dark"] .fspc-chart rect.is-cap { fill: var(--c-mint); }
.fspc-chart__t { font: 600 12px var(--f-body); fill: var(--c-muted); }

/* how */
.fspc-how { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: fspc; }
.fspc .fspc-how li { position: relative; margin: 0; padding: 12px 14px 12px 50px; font-size: 13.5px; line-height: 1.5; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; counter-increment: fspc; }
.fspc-how li::before { content: counter(fspc); position: absolute; left: 14px; top: 12px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; font: 700 12px/1 var(--f-head); color: #F1E4C3; background: var(--c-forest); }
html[data-theme="dark"] .fspc-how li::before { color: #0B1813; background: var(--c-mint); }
.fspc-how strong { display: block; font: 700 14px/1.3 var(--f-head); color: var(--c-head); }
.fspc-src { font-size: 12.5px; color: var(--c-muted); }

/* disclaimer + toast */
.fspc-disclaimer { margin: 0; padding: 12px 26px 16px; font-size: 12.5px; line-height: 1.5; color: var(--c-muted); border-top: 1px solid var(--c-border); background: var(--c-surface); }
.fspc-toast { position: absolute; left: 50%; bottom: 18px; z-index: 5; transform: translate(-50%, 16px); padding: 10px 16px; font: 600 13.5px/1.3 var(--f-head); color: #F1E4C3; background: var(--c-forest); border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1); white-space: nowrap; }
.fspc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html[data-theme="dark"] .fspc-toast { color: #0B1813; background: var(--c-mint); }

/* server-rendered snapshot (replaced by the live result) */
.fspc-snap { padding: 26px; border-radius: 20px; background: linear-gradient(160deg, #145039, #0F3D2E 58%, #0A2C21); color: #F1E4C3; }
.fspc-snap__k { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #CDBF9C; }
.fspc .fspc-snap__v { margin-top: 8px; font: 700 40px/1.05 var(--f-head); }
.fspc-snap__v small { font-size: 15px; font-weight: 500; color: #CDBF9C; }
.fspc-snap__s { margin-top: 10px !important; font-size: 14px; color: #B9CDBF; }
.fspc-snap:empty { display: none; }

/* ── tools ────────────────────────────────────────────────────────── */
.fspc-res { display: grid; gap: 14px; }
.fspc-res__hero { padding: 22px 24px; border-radius: 20px; color: #F1E4C3; background: radial-gradient(100% 100% at 100% 0%, rgba(31, 122, 87, .6), transparent 60%), linear-gradient(160deg, #145039, #0F3D2E 58%, #0A2C21); box-shadow: 0 18px 30px -20px rgba(15, 61, 46, .7); }
html[data-theme="dark"] .fspc-res__hero { background: radial-gradient(100% 100% at 100% 0%, rgba(143, 217, 182, .16), transparent 60%), linear-gradient(160deg, #1A5A41, #134A37 58%, #0E3A2B); }
.fspc-res__k { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #CDBF9C; }
.fspc .fspc-res__v { margin-top: 8px; font: 700 clamp(30px, 6cqi, 44px)/1.05 var(--f-head); letter-spacing: -1px; color: #F1E4C3; overflow-wrap: anywhere; }
.fspc-res__s { margin-top: 8px !important; font-size: 13.5px; color: #B9CDBF; }
.fspc-res__list { margin: 0; padding: 4px 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; }
.fspc-res__r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.fspc-res__r:last-child { border-bottom: 0; }
.fspc .fspc-res__r dt { margin: 0; font-size: 14px; color: var(--c-muted); }
.fspc .fspc-res__r dd { margin: 0; font-weight: 700; color: var(--c-head); text-align: right; white-space: nowrap; }
.fspc .fspc-res__r.is-net dd { color: var(--c-ledger); }
html[data-theme="dark"] .fspc .fspc-res__r.is-net dd { color: var(--c-mint); }
.fspc .fspc-res__r.is-tax dd { color: #8A6D12; }
html[data-theme="dark"] .fspc .fspc-res__r.is-tax dd { color: #E2C25A; }

/* ── server-rendered blocks ───────────────────────────────────────── */
.fspc-table-wrap { margin: 24px 0; overflow-x: auto; }
.fspc-table-wrap .fspc-table { min-width: 640px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; }
.fspc-table__note { margin-top: 8px !important; font-size: 12.5px; color: var(--c-muted); }
.fspc-facts { margin: 24px 0; padding: 20px 22px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; box-shadow: var(--c-shadow); }
.fspc-facts__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px !important; }
.fspc-facts__head strong { display: block; font: 700 17px/1.25 var(--f-head); color: var(--c-head); }
.fspc-facts__head small { display: block; font-size: 13px; color: var(--c-muted); }
.fspc-facts__code { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 38px; border-radius: 11px; background: var(--c-forest); color: #F1E4C3; font: 700 15px/1 var(--f-head); letter-spacing: .06em; }
html[data-theme="dark"] .fspc-facts__code { background: var(--c-mint); color: #0B1813; }
.fspc .fspc-facts__list { display: grid; gap: 7px; margin: 0 0 12px; padding: 0; list-style: none; }
.fspc .fspc-facts__list li { position: relative; margin: 0; padding-left: 20px; font-size: 14.5px; }
.fspc-facts__list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c-brass); }
.fspc-facts__src { font-size: 12.5px; color: var(--c-muted); }
.fspc-updated { font-weight: 600; color: var(--c-ledger, #1F7A57); }

/* ── print ────────────────────────────────────────────────────────── */
@media print {
  body.fspc-printing * { visibility: hidden !important; }
  body.fspc-printing .fspc-print-target, body.fspc-printing .fspc-print-target * { visibility: visible !important; }
  body.fspc-printing .fspc-print-target { position: absolute !important; left: 0; top: 0; width: 100% !important; max-width: none !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; }
  .fspc-tools, .fspc-tabs, .fspc-chips, .fspc-formfoot, .fspc-toast, .fspc-btn--mini { display: none !important; }
  .fspc-body { grid-template-columns: 1fr 1fr !important; }
  .fspc-stub { filter: none !important; }
  .fspc-scroll { max-height: none !important; overflow: visible !important; }
  .fspc, .fspc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fspc-head { background: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .fspc *, .fspc *::before, .fspc *::after { transition: none !important; animation: none !important; }
}

/* ── Before the visitor types (start="empty") and the example label ── */
.fspc-empty { position: relative; display: grid; justify-items: center; gap: 10px; padding: 34px 24px 30px; border: 1px dashed var(--c-border); border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--c-mint) 10%, var(--c-surface)), var(--c-surface)); text-align: center; overflow: hidden; }
.fspc-empty__ghost { display: grid; gap: 9px; width: min(320px, 90%); margin-bottom: 8px; opacity: .55; }
.fspc-empty__ghost i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--c-chip), var(--c-soft)); }
.fspc-empty__ghost i:nth-child(2) { width: 82%; }
.fspc-empty__ghost i:nth-child(3) { width: 64%; }
.fspc-empty__ghost i:nth-child(4) { width: 46%; height: 22px; border-radius: 9px; background: linear-gradient(90deg, color-mix(in srgb, var(--c-mint) 55%, transparent), color-mix(in srgb, var(--c-mint) 18%, transparent)); }
.fspc-empty__ic { display: grid; place-items: center; width: 50px; height: 50px; padding: 12px; border-radius: 15px; background: var(--c-mintchip); color: var(--c-ledger, #1F7A57); }
.fspc-empty__ic svg { width: 100%; height: 100%; }
.fspc .fspc-empty__t { max-width: 340px; margin: 0; font: 600 18px/1.35 var(--f-head); color: var(--c-head); }
.fspc .fspc-empty__s { max-width: 360px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.fspc .fspc-empty__go { margin-top: 6px; }
.fspc.is-empty .fspc-kpis, .fspc.is-empty .fspc-notes { display: none; }
.fspc .fspc-example { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--c-brass, #C9A227) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--c-brass, #C9A227) 10%, var(--c-surface)); font-size: 13.5px; line-height: 1.45; color: var(--c-text); }
.fspc .fspc-example b { padding: 2px 8px; border-radius: 999px; background: var(--c-brass, #C9A227); color: #1C1917; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
