/* Tools workspace. Typography follows broker-detail-page.php and fxm-broker-detail.css. */
.fxm-tools-page{--tools-ink:#272e42;--tools-muted:#626b7d;--tools-line:#e7e9f0;--tools-accent:var(--color-primary,#4f34d9);font-family:var(--font-family-body);font-size:13px;letter-spacing:-.01rem;line-height:1.45;color:var(--tools-ink);background:#f8f9fc;padding:108px 0 72px;min-height:100vh}
.fxm-tools-page *{box-sizing:border-box}
.fxm-tools-page :is(h1,h2,h3,h4,p,span,label,input,select,button,th,td,summary){font-family:inherit;font-style:normal}
.fxm-tools-page :is(h1,h2,h3,h4){font-family:var(--font-family-heading)}
.fxm-tools-page :is(label,th){font-family:var(--font-family-label)}
.fxm-tools-page :is(button,a,select,summary){touch-action:manipulation}
.fxm-tools-page :is(button,summary){cursor:pointer}
.fxm-tools-page :is(button,input,select,summary,a):focus-visible{outline:2px solid var(--tools-accent);outline-offset:3px}
.fxm-tools-shell{max-width:1280px;margin:0 auto;padding:0 32px}
.fxm-tools-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:28px}
.fxm-tools-eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--tools-accent);margin-bottom:12px}
.fxm-tools-eyebrow>span{width:6px;height:6px;border-radius:50%;background:var(--tools-accent)}
.fxm-tools-hero h1{font-size:1.75rem;line-height:1.2;font-weight:700;margin:0;letter-spacing:-.045em}
.fxm-tools-hero p{font-size:13px;line-height:1.8;color:var(--tools-muted);max-width:670px;margin:12px 0 0}
.fxm-tools-hero-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 290px;min-width:0;color:var(--tools-accent)}
.fxm-tools-hero-art{display:block;width:196px;height:147px;object-fit:contain;flex-shrink:0}
.fxm-tools-hero-count{display:flex;flex-direction:column;gap:6px;max-width:110px}
.fxm-tools-hero-count strong{font-family:var(--font-family-heading);font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.fxm-tools-hero-count span{font-size:12px;line-height:1.5;color:var(--tools-muted)}
.fxm-market-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;border:1px solid var(--tools-line);background:#fff;border-radius:10px;font-size:12px;color:var(--tools-muted);line-height:1.65;margin-bottom:28px}
.fxm-market-notice button{flex-shrink:0;font-size:12px;font-weight:600;color:var(--tools-accent);min-height:32px;margin:0;padding:0 4px;background:transparent;border:0}
.fxm-market-notice button:disabled{opacity:.5;cursor:wait}
.fxm-tools-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:28px;align-items:start}
.fxm-tools-sidebar{align-self:stretch}
.fxm-tools-sidebar nav{position:sticky;top:96px;padding:10px;background:#fff;border-radius:20px;box-shadow:0 10px 28px -14px rgba(79,52,217,.12),0 4px 12px -8px rgba(47,38,88,.06);max-height:calc(100vh - 116px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ddd5ef transparent}
.fxm-tools-sidebar .sticky{position:static;display:grid;gap:4px}
.fxm-tools-sidebar nav>div>p.fxm-tool-directory-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;font-weight:500;color:#70788a;padding:4px 10px 9px;margin:0;letter-spacing:.03em}
.fxm-tool-directory-title small{font-family:var(--font-family-label);font-size:10px;line-height:1.4;color:#93889f;font-variant-numeric:tabular-nums}
.fxm-tools-page [data-fxm-tool-btn]{position:relative;display:flex;align-items:center;gap:10px;min-height:54px;width:100%;margin:0!important;text-align:left;border-radius:11px;border:0;padding:8px 10px;color:#596075;background:transparent;box-shadow:none;line-height:1.5;transition:background-color .16s,color .16s;transform:none}
.fxm-tools-page [data-fxm-tool-btn] .fxm-tool-nav-label{font-size:13px;font-weight:400;color:inherit;min-width:0;overflow-wrap:anywhere}
.fxm-tools-page .fxm-tool-nav-art{flex:0 0 36px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;position:relative}
.fxm-tool-nav-icon{display:block;width:40px;height:40px;max-width:none;object-fit:contain;flex-shrink:0;pointer-events:none;user-select:none;transform:translateY(var(--fxm-icon-y,0)) scale(var(--fxm-icon-scale,1))}
.fxm-tools-page [data-fxm-tool-btn]:hover{color:var(--tools-accent);background:#f8f6fc}
.fxm-tools-page [data-fxm-tool-btn][aria-pressed=true]{color:var(--tools-accent);background:#f0ebfc}
.fxm-tools-page [data-fxm-tool-btn][aria-pressed=true]:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:20px;width:3px;border-radius:0 3px 3px 0;background:var(--tools-accent)}
.fxm-tools-page [data-fxm-tool-btn][aria-pressed=true] .fxm-tool-nav-label{font-weight:500}
.fxm-tools-page [data-fxm-chevron],.fxm-tools-mobile-nav{display:none}
.fxm-tools-page [data-fxm-tool-panel]>div.mb-4{margin:0 0 20px}
.fxm-tools-page [data-fxm-tool-panel] h2{font-size:18px;letter-spacing:-.04em;line-height:28px;font-weight:700;margin:0}
.fxm-tools-page [data-fxm-tool-panel]>div.mb-4>p{font-size:13px;line-height:1.65;color:var(--tools-muted);margin:6px 0 0}
.fxm-tool-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:start}
/* Same borderless surface, radius and shadow as broker conditions/rules cards. */
.fxm-tool-calculator,.fxm-tool-chart-card{min-width:0;background:#fff;border:0;border-radius:24px;padding:24px;box-shadow:0 10px 28px -14px rgba(79,52,217,.16),0 4px 12px -8px rgba(47,38,88,.08)}
.fxm-tool-calculator-heading{display:flex;align-items:center;gap:10px;margin-bottom:24px}.fxm-tool-calculator-heading>div{display:none}
.fxm-tool-calculator-heading h3{font-size:16px;line-height:20px;letter-spacing:-.01rem;font-weight:700;color:var(--tools-ink);margin:0}
.fxm-tool-calculator>.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.fxm-tool-calculator>.grid.mb-6{margin-bottom:24px}.fxm-tool-calculator>.grid.mb-6>div:first-child{grid-column:1/-1}
.fxm-tools-page label{display:block;font-size:12px;font-weight:500;line-height:1.45;letter-spacing:-.01rem;color:#525c70;margin-bottom:6px}
.fxm-tool-calculator :is(input,select){font-size:13px;line-height:1.45;min-height:44px;padding:10px 12px;border:1px solid #dfe3ed;border-radius:8px;color:var(--tools-ink);background:#fff;box-shadow:none;min-width:0;width:100%;transition:border-color .15s}
.fxm-tool-calculator input{font-family:var(--font-family-body);font-variant-numeric:tabular-nums}
.fxm-tool-calculator :is(input,select):hover{border-color:#b7bfce}.fxm-tool-calculator :is(input,select):focus{border-color:var(--tools-accent)}
.fxm-tool-calculator [data-dir]{font-size:13px;padding:10px 8px;min-height:44px;border-radius:6px;line-height:1.4;box-shadow:none}
.fxm-tool-calculator [data-dir][aria-pressed=true],.fxm-tool-calculator [data-dir].bg-primary{background:var(--tools-accent);color:#fff}
.fxm-tool-calculator [data-dir][aria-pressed=false]{background:#f7f8fb;color:var(--tools-muted)}
.fxm-tool-calculator div:has(>[data-dir]){border-radius:8px;padding:3px;background:#f7f8fb;border:1px solid var(--tools-line)}
.fxm-tool-calculator div:has(>input)>span{font-size:12px;color:var(--tools-muted);border:0;padding:0 10px}
.fxm-tool-calculator div:has(>input):has(>span){border:1px solid #dfe3ed;border-radius:8px;background:#fff;min-width:0}
.fxm-tool-calculator div:has(>input):has(>span)>input{border:0}
.fxm-tool-calculator>.grid:not(.mb-6){gap:10px;padding-top:20px;border-top:1px solid var(--tools-line)}
.fxm-tool-calculator>.grid:not(.mb-6)>div{padding:14px 12px;border:0;border-radius:16px;box-shadow:none;background:#f6f5fb}
.fxm-tool-calculator>.grid:not(.mb-6)>div:last-child{background:var(--color-primary-container,#f0edff)}
.fxm-tool-calculator [data-fxm-result-label]{font-size:12px;line-height:1.6;color:var(--tools-muted);font-weight:500;margin:0 0 6px}
.fxm-tool-calculator [data-fxm-result-value]{font-family:var(--font-family-heading);font-size:24px;font-weight:400;font-variant-numeric:tabular-nums;line-height:32px;letter-spacing:-.04em;overflow-wrap:anywhere}
.fxm-tool-calculator [data-fxm-result-unit]{font-family:var(--font-family-body);font-size:12px;color:var(--tools-muted);font-weight:400;margin-left:5px}
.fxm-tool-calculator>p,.fxm-tool-calculator [data-fxm-profit-verdict],.fxm-tool-calculator [data-fxm-rr-verdict]{font-size:12px;line-height:1.8;color:var(--tools-muted);border-radius:8px;font-weight:400}
.fxm-tool-calculator [data-fxm-swap-form]{padding:0 0 20px;margin:0 0 20px;border:0;border-bottom:1px solid var(--tools-line);border-radius:0}
.fxm-tool-calculator [data-fxm-swap-status]{font-size:12px;line-height:1.7;color:var(--tools-muted)}
.fxm-tool-calculator [data-fxm-swap-form] button,.fxm-tool-calculator [data-fxm-usdt-detect]{font-size:13px;min-height:44px;padding:10px 16px;border-radius:8px;background:var(--tools-accent);color:#fff}
.fxm-tool-calculator:has([data-fxm-converter-amount])>.flex.flex-col{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
.fxm-tool-calculator [data-fxm-converter-swap]{width:36px;height:36px;justify-self:center;border-radius:8px;margin:-8px 0;background:#f2effc;border-color:#e5dff8;color:var(--tools-accent)}
.fxm-tool-calculator div:has(>[data-fxm-converter-result]){flex-wrap:wrap}
.fxm-tool-calculator [data-fxm-converter-result]{font-family:var(--font-family-heading);font-size:28px;font-weight:700;overflow-wrap:anywhere}
.fxm-tool-calculator [data-fxm-converter-rate]{font-size:12px;line-height:1.7;color:var(--tools-muted)}
.fxm-tool-calculator:has([data-fxm-converter-result])>div:last-child{border-radius:16px;background:var(--color-primary-container,#f0edff);padding:18px;border:0}
.fxm-tools-page table{width:100%;border-collapse:collapse;font-size:12px}.fxm-tools-page th{font-weight:500;color:var(--tools-muted);background:#f8f9fc}
.fxm-tools-page :is(th,td){padding:10px 8px;border-bottom:1px solid var(--tools-line)}.fxm-tools-page td{font-family:var(--font-family-heading);font-variant-numeric:tabular-nums}
.fxm-tool-calculator table span{font-size:11px;border-radius:4px}.fxm-tool-calculator div:has(>table){border:0;border-radius:0;overflow:auto}
.fxm-tool-calculator [data-fxm-usdt-result]{margin-top:20px}.fxm-tool-calculator [data-fxm-usdt-result]>div{border-radius:16px;padding:16px}
.fxm-tool-calculator [data-fxm-usdt-result] p{font-size:12px;line-height:1.7;overflow-wrap:anywhere;color:var(--tools-muted)}
.fxm-tool-calculator [data-fxm-usdt-result] .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fxm-tool-calculator [data-fxm-usdt-result] .grid>div{min-width:0;border-radius:12px;padding:10px}
.fxm-tool-calculator [data-fxm-usdt-result] .grid p+p{font-family:var(--font-family-heading);font-size:14px;color:var(--tools-ink)}
.fxm-tool-calculator [data-fxm-usdt-detect-content]{display:flex;align-items:center;justify-content:center;gap:8px}.fxm-tool-calculator [data-fxm-usdt-result] div:has(>svg){flex-shrink:0;border-radius:8px}
.fxm-tool-section-label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:var(--tools-accent);margin-bottom:12px}
.fxm-tool-chart-card h3{font-size:16px;font-weight:700;line-height:20px;letter-spacing:-.01rem;margin:0 0 8px}.fxm-chart-description{font-size:13px;line-height:1.8;color:var(--tools-muted);margin:0 0 22px}
.fxm-tool-chart{min-height:230px}.fxm-chart-bars{display:grid;gap:18px;list-style:none;margin:0;padding:0}
.fxm-chart-bars li>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:7px;font-size:13px;color:var(--tools-muted)}
.fxm-chart-bars strong{font-family:var(--font-family-heading);font-size:14px;color:var(--tools-ink);font-weight:600}
.fxm-chart-track{height:8px;background:#f0f1f6;border-radius:3px;overflow:hidden}.fxm-chart-track>span{display:block;height:100%;border-radius:3px;background:#b9afea;min-width:0;transition:width .2s}
.fxm-chart-bars [data-current=true] .fxm-chart-track>span{background:var(--tools-accent)}.fxm-chart-bars [data-current=true] strong{color:var(--tools-accent)}
.fxm-chart-current{font-size:10px;border:1px solid #e6dff9;color:var(--tools-accent);background:#f5f2fd;border-radius:4px;padding:1px 4px;margin-left:5px;font-style:normal}
.fxm-chart-svg{display:block;width:100%;height:auto;overflow:visible}.fxm-chart-svg text{font-family:var(--font-family-body);fill:var(--tools-muted);font-size:11px}
.fxm-chart-unit{font-size:11px;color:var(--tools-muted);display:flex;justify-content:space-between;margin-bottom:10px;gap:10px}
.fxm-chart-key{font-size:12px;line-height:1.6;padding:12px 0;margin-top:10px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--tools-line);color:var(--tools-muted)}.fxm-chart-key strong{font-family:var(--font-family-heading);color:var(--tools-accent)}
.fxm-chart-empty{display:flex;min-height:218px;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:14px;border:1px dashed #dce0eb;border-radius:10px;padding:24px;background:#fafbfe;font-size:13px;line-height:1.8;color:var(--tools-muted)}.fxm-chart-empty svg{width:32px;height:32px;color:#969cb1;stroke-width:1.4}
.fxm-chart-data{margin-top:20px;border-top:1px solid var(--tools-line);padding-top:12px;color:var(--tools-muted);font-size:12px}.fxm-chart-data summary{padding:4px 0;min-height:28px;list-style-position:inside}
.fxm-chart-data th:first-child,.fxm-chart-data td:first-child{text-align:left}.fxm-chart-data th:last-child,.fxm-chart-data td:last-child{text-align:right}
.fxm-risk-split{height:14px;display:flex;gap:3px;border-radius:4px;overflow:hidden;margin:24px 0 16px;background:#f0f1f6}.fxm-risk-split span:first-child{background:#d75b6a}.fxm-risk-split span:last-child{background:#e0daf6}
.fxm-risk-values{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--tools-muted)}.fxm-risk-values strong{display:block;font-family:var(--font-family-heading);font-size:24px;color:var(--tools-ink);margin-top:6px}
.fxm-status-flow{list-style:none;padding:0;margin:0;display:grid;gap:0}.fxm-status-flow li{position:relative;display:grid;grid-template-columns:28px 1fr;gap:10px;padding:0 0 24px;align-items:start;font-size:12px;color:var(--tools-muted)}
.fxm-status-flow li:not(:last-child):before{content:"";position:absolute;left:13px;top:26px;bottom:0;border-left:1px solid #e0e3ec}.fxm-status-flow i{font-style:normal;width:27px;height:27px;display:grid;place-items:center;background:#f2effc;color:var(--tools-accent);border-radius:50%;font-family:var(--font-family-heading);font-size:11px}
.fxm-status-flow strong{display:block;font-size:13px;font-weight:600;color:var(--tools-ink);margin-bottom:6px}.fxm-status-flow span{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.fxm-tool-guide{border-top:1px solid #e1e5ed;margin-top:28px;padding-top:24px}.fxm-guide-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.fxm-tool-guide h3{font-size:16px;line-height:20px;letter-spacing:-.01rem;font-weight:700;margin:0}.fxm-guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px}.fxm-tool-guide p{font-size:13.5px;line-height:1.7;color:var(--tools-muted);margin:0;text-wrap:pretty}
.fxm-tool-guide h4{font-size:14px;color:var(--tools-ink);font-weight:600;margin:0 0 10px}.fxm-tool-formula{padding:14px 16px;border-left:2px solid #b9afea;background:#f0eef8;border-radius:0 6px 6px 0;margin-top:18px}
.fxm-tool-formula>span{font-size:12px;color:var(--tools-accent);font-weight:600;display:block;margin-bottom:6px}.fxm-tool-formula p{font-size:13px;line-height:1.7;color:#514775}.fxm-tool-guide .fxm-guide-note{font-size:12.5px;margin-top:14px;padding-top:14px;border-top:1px solid var(--tools-line);color:#747c8c}
.fxm-tool-calculator>.grid:not(.mb-6)>div:last-child:nth-child(odd){grid-column:1/-1}
.fxm-tool-calculator>.grid.mb-6>div:last-child:nth-child(even){grid-column:1/-1}
.fxm-tool-calculator:has([data-fxm-fib-high])>.grid.mb-6>div:first-child{grid-column:auto}
.fxm-tool-calculator:has([data-fxm-fib-high])>.grid.mb-6>div:last-child{grid-column:1/-1}
.fxm-tools-mobile-nav select{width:100%;min-height:48px;border:1px solid #dddfea;border-radius:8px;background:#fff;padding:10px 12px;color:var(--tools-ink);font-size:16px}
.fxm-chart-bars li>div:first-child{flex-wrap:wrap}.fxm-chart-bars strong{overflow-wrap:anywhere}.fxm-chart-key strong{overflow-wrap:anywhere;text-align:right}
@media(max-width:1100px){.fxm-tools-layout{grid-template-columns:210px minmax(0,1fr);gap:20px}.fxm-tool-workspace{grid-template-columns:minmax(0,1fr)}.fxm-tool-chart{min-height:0}.fxm-tool-calculator>.grid.mb-6>div:first-child{grid-column:auto}.fxm-tool-calculator>.grid.mb-6>div:last-child:nth-child(even){grid-column:auto}}
@media(max-width:760px){.fxm-tools-page{padding:96px 0 48px}.fxm-tools-shell{padding:0 20px}.fxm-tools-hero p{font-size:13px}.fxm-tools-hero-meta{display:none}.fxm-market-notice{font-size:11px;margin-bottom:22px;padding:10px 12px;align-items:start}.fxm-market-notice button{font-size:11px}.fxm-tools-layout{display:block}.fxm-tools-sidebar{display:none}.fxm-tools-mobile-nav{display:block;margin-bottom:22px}.fxm-tools-page [data-fxm-tool-btn][aria-pressed=true]{background:#eeebfb;border-color:#ddd5f5}.fxm-tool-calculator,.fxm-tool-chart-card{padding:20px}.fxm-guide-columns{grid-template-columns:1fr;gap:22px}}
@media(max-width:639px){.fxm-tools-hero h1{font-size:1.45rem}}
@media(max-width:400px){.fxm-tools-shell{padding:0 14px}.fxm-tool-calculator,.fxm-tool-chart-card{padding:18px}.fxm-tool-calculator>.grid.mb-6{grid-template-columns:minmax(0,1fr)}.fxm-tool-calculator :is(input,select){font-size:16px}}
/* Pivot Points uses the same surfaces and type scale as the other calculators. */
.fxm-market-notice.hidden{display:none}
.fxm-pivot-form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.fxm-pivot-form h3{font-size:16px;line-height:1.5;font-weight:700;margin:0}
.fxm-pivot-utilities{display:flex;align-items:center;gap:12px;flex-shrink:0}
.fxm-pivot-utilities button{border:0;background:none;padding:6px 0;min-height:32px;font-size:12px;line-height:1.5;color:var(--tools-accent)}
.fxm-pivot-utilities button+button{border-left:1px solid var(--tools-line);padding-left:12px;color:var(--tools-muted)}
.fxm-pivot-utilities button:hover{color:var(--tools-accent);text-decoration:underline;text-underline-offset:4px}
.fxm-pivot-form .fxm-pivot-hint{margin:0 0 20px;font-size:12px;line-height:1.8}
.fxm-pivot-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.fxm-pivot-fields label{display:flex;justify-content:space-between;align-items:center;gap:8px}
.fxm-pivot-fields label small{font-size:11px;color:#9298ab;font-weight:400}
.fxm-pivot-form input[aria-invalid=true]{border-color:#c54861;background:#fffafb}
.fxm-pivot-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px;padding-top:18px;border-top:1px solid #f0f1f5}
.fxm-pivot-actions .fxm-pivot-calculate{min-height:42px;min-width:144px;padding:10px 24px;border:0;border-radius:8px;background:var(--tools-accent);color:#fff;font-size:13px;line-height:1.5;flex-shrink:0;transition:background .15s}
.fxm-pivot-actions .fxm-pivot-calculate:hover{background:#422bbf}
.fxm-pivot-form [data-fxm-pivot-status]{margin:0;font-size:12px;line-height:1.8;color:var(--tools-muted)}
.fxm-pivot-form [data-fxm-pivot-status][data-error=true]{color:#b13750}
.fxm-pivot-svg{max-height:360px;max-width:560px;margin:0 auto}
.fxm-pivot-svg text{font-size:13px}
.fxm-pivot-results{background:#fff;border:0;border-radius:24px;padding:24px;margin-top:20px;box-shadow:0 10px 28px -14px rgba(79,52,217,.16),0 4px 12px -8px rgba(47,38,88,.08);min-width:0}
.fxm-pivot-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.fxm-pivot-results h3{font-size:16px;font-weight:700;line-height:1.5;margin:0}
.fxm-pivot-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:18px}
.fxm-pivot-tabs{display:inline-flex;gap:4px;padding:4px;background:#f5f5f9;border-radius:9px;max-width:100%}
.fxm-pivot-tabs button{border:0;border-radius:6px;background:none;color:var(--tools-muted);padding:8px 14px;min-height:36px;font-size:12px;line-height:1.5;transition:background .15s,color .15s;white-space:nowrap}
.fxm-pivot-tabs button:hover{color:var(--tools-accent)}
.fxm-pivot-tabs button[aria-selected=true]{background:#fff;color:var(--tools-accent);box-shadow:0 2px 6px #272e4210;font-weight:500}
.fxm-pivot-precision{display:flex;align-items:center;gap:10px;min-width:0}
.fxm-pivot-precision label{margin:0;white-space:nowrap}
.fxm-pivot-precision>select,.fxm-pivot-precision>.fxm-select{width:78px;flex:0 0 78px}
.fxm-pivot-precision .fxm-select-input{min-height:36px;padding:8px 32px 8px 12px;font-size:12px;border-color:#e7e9f0;border-radius:8px}
.fxm-pivot-view[hidden]{display:none}
.fxm-pivot-view:focus-visible,.fxm-pivot-table-wrap:focus-visible{outline:2px solid var(--tools-accent);outline-offset:4px}
.fxm-pivot-chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:20px 0 24px;border-top:1px solid var(--tools-line)}
.fxm-pivot-chart-heading h4{font-size:14px;line-height:1.6;font-weight:600;margin:0 0 5px}
.fxm-pivot-chart-heading .fxm-chart-description{font-size:12px;margin:0;max-width:50ch}
.fxm-pivot-method{width:160px;flex:0 0 160px;min-width:0}
.fxm-pivot-results .fxm-chart-data{max-width:560px;margin:18px auto 0}
.fxm-pivot-table-wrap{overflow-x:auto;border-radius:10px;scrollbar-width:thin}
.fxm-tools-page .fxm-pivot-table{min-width:560px}
.fxm-tools-page .fxm-pivot-table :is(th,td){text-align:right;padding:11px 16px;font-size:13px;line-height:1.5;white-space:nowrap;border-bottom-color:#f0f1f5}
.fxm-tools-page .fxm-pivot-table th:first-child{text-align:left;width:112px}
.fxm-tools-page .fxm-pivot-table tbody th{background:#fff;font-weight:500}
.fxm-pivot-table th small{display:inline-block;margin-left:10px;color:var(--tools-muted);font-size:11px;font-weight:400}
.fxm-pivot-table tbody tr:not([data-level=R4]):not([data-level=PP]):not([data-level=S1]) th small{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.fxm-tools-page .fxm-pivot-table thead th{background:#f8f9fc;font-size:12px}
.fxm-tools-page .fxm-pivot-table thead .is-selected{color:var(--tools-accent);font-weight:600}
.fxm-tools-page .fxm-pivot-table tr[data-level=PP] :is(th,td){background:#f5f2fc;color:var(--tools-accent);font-weight:600;border-bottom-color:#ece6fa}
.fxm-tools-page .fxm-pivot-table tbody tr:last-child :is(th,td){border-bottom:0}
.fxm-pivot-table tr[data-level^=S] th>span{color:#397d75}
.fxm-pivot-table tr[data-level^=R] th>span{color:#795fba}
.fxm-pivot-table-note{margin:16px 0 0;font-size:12px;line-height:1.8;color:var(--tools-muted)}
.fxm-pivot-help{border-top:1px solid var(--tools-line);margin-top:24px}
.fxm-pivot-help>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:20px 0;font-size:13px;font-weight:500;color:var(--tools-muted)}
.fxm-pivot-help>summary::-webkit-details-marker{display:none}
.fxm-pivot-help>summary:hover{color:var(--tools-accent)}
.fxm-pivot-help>summary svg{flex-shrink:0;transition:transform .18s}
.fxm-pivot-help[open]>summary svg{transform:rotate(90deg)}
.fxm-pivot-help .fxm-tool-guide{border:0;margin:0;padding:0 0 8px}
.fxm-pivot-help .fxm-guide-heading{display:none}
@media(max-width:1100px){.fxm-pivot-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fxm-pivot-toolbar{gap:12px}.fxm-pivot-tabs button{padding-inline:10px}}
@media(max-width:760px){.fxm-pivot-form-heading{align-items:flex-start;flex-wrap:wrap;gap:4px 16px}.fxm-pivot-utilities{margin-left:auto}.fxm-pivot-results{padding:20px}.fxm-pivot-toolbar{align-items:flex-start;flex-wrap:wrap}.fxm-pivot-table-wrap{margin:0 -4px}.fxm-tools-page .fxm-pivot-table :is(th,td){padding:11px 12px}.fxm-tools-page .fxm-pivot-table th:first-child{position:sticky;left:0;z-index:1;box-shadow:3px 0 8px -5px #b9aecf}.fxm-pivot-table th small{margin-left:8px}.fxm-pivot-actions{flex-direction:column-reverse;align-items:stretch;gap:12px}.fxm-pivot-actions .fxm-pivot-calculate{width:100%}.fxm-pivot-chart-heading{flex-direction:column;gap:16px}.fxm-pivot-method{width:100%;flex:auto}.fxm-pivot-results-heading{align-items:flex-start;gap:6px}.fxm-pivot-results-heading>span{font-size:10px}}
@media(max-width:400px){.fxm-pivot-results{padding:18px}.fxm-pivot-fields{gap:16px 12px}.fxm-pivot-tabs{width:100%}.fxm-pivot-tabs button{flex:1;white-space:normal}.fxm-pivot-precision{margin-left:auto}.fxm-pivot-precision>select,.fxm-pivot-precision>.fxm-select{width:72px;flex-basis:72px}}
@media(max-width:760px){.fxm-pivot-svg text{font-size:16px}}
@media(max-width:400px){.fxm-pivot-svg text{font-size:18px}}
@media(prefers-reduced-motion:reduce){.fxm-tools-page *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
