/* CreaBud UX v5 « Calme & précis » (#101/#104) — paid screens: Insights & Tools hub, What if,
   cash flow, goals, debts, analyses, Platinum previews, scanner entry, Plan & purchases, test plan.
   A. Legibility and layout fixes (every palette, Clay and decorations included).
   B. v5 look for CreaBud clair / nuit / Auto only.  C. Other palettes keep their v4.2 look.
   Presentation only: no figure, calculation, data, entitlement, billing or E2EE is involved. */

/* ---------- A. All palettes ---------- */
/* 12 px floor for every label, badge and caption (was 10–11.5 px). Same specificity as the v4.2 rules. */
#tab-insights :is(.tools-eyebrow,.tools-v42-kicker,.tools-v42-cash-eyebrow,.tool-preview,.plat-badge,.scan-badge,.ins-est,.ins-conf,.pill,.plat-table th),
#tab-insights #pp-debt .pp-v42-debt-label,#tab-settings .plan-v42-tag,#tab-settings .plan-compare .tag{font-size:12px;line-height:1.35}
#tab-insights .tool-tile .tool-caption,#tab-insights .tools-v42-copy small,#tab-insights .tool-caption{font-size:13px;line-height:1.35}
#tab-insights :is(.tools-v42-cash-summary small,.tools-v42-cash-method,.what-disclaimer,.note){font-size:13px;line-height:1.45}
#tab-settings .plan-v42-card h3 small{font-size:12px}
#tab-settings .plan-v42-card li,#tab-settings .plan-v42-hint{font-size:14px}
#tab-settings .plan-v42-lab-try small{font-size:12px}
#tab-settings .plan-compare :is(th,td){font-size:13px}
#tab-settings .plan-compare th small{font-size:12px}
/* What if: the generic two-column form grid squeezed the choices and clipped the date. One column. */
.ins-form>.what-prompt,.ins-form>.what-choices,.ins-form>.what-more,.ins-form>.what-fields,
.ins-form>.what-empty,.ins-form>.what-result,.ins-form>#ins-what-out{grid-column:1/-1}
.what-choice{font-size:15px;line-height:1.25;padding:10px 12px;text-align:center;overflow-wrap:anywhere}
.what-fields input[type="date"]{min-width:0;font-size:16px}
/* Debt payoff inside the hub: the tool title is already the page title. */
.tools-screen #pp-debt-workspace .ins-wrap>h2.sec{display:none}
/* Platinum previews: one "Preview" chip (kept on the block title, next to "Platinum"), not two. */
#tab-insights .tools-detail-head .tool-preview{display:none}
/* The mobile table-to-card rule also hit #tab-insights (fixed for Settings on Nov 18): real tables again. */
#tab-insights table.plat-table{display:table!important;width:100%;border-collapse:collapse}
#tab-insights table.plat-table thead{display:table-header-group!important}
#tab-insights table.plat-table tbody{display:table-row-group!important}
#tab-insights table.plat-table tr{display:table-row!important}
#tab-insights table.plat-table :is(th,td){display:table-cell!important}
#tab-insights table.plat-table :is(th,td)::before{content:none!important;display:none!important}
#tab-insights .plat-table tbody th{text-align:left}
.plat-table th,.plat-table td{padding:10px 8px;font-variant-numeric:tabular-nums}
.plat-table thead th{text-transform:none;letter-spacing:0;font-weight:700}
.plat-table td{text-align:right;white-space:nowrap}
/* Test plan selector (fictional internal lab only), also shown at the top of the hub. */
#cb-internal-lab-controls-hub{margin:0 0 18px}
.cb-lab-option{min-height:44px;font-size:15px}
.cb-lab-reset{min-height:44px}

/* ---------- B. v5: CreaBud clair / nuit / Auto ---------- */
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) :is(#tab-insights .tools-eyebrow,#tab-insights .tools-v42-kicker,#tab-insights .tools-v42-cash-eyebrow,#tab-insights #pp-debt .pp-v42-debt-label,#tab-settings .plan-v42-tag){
  text-transform:none;letter-spacing:0;font-size:13px;font-weight:650;color:var(--ux-text-2)}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .tools-v42-kicker{color:var(--ux-accent-ink)}
/* Hub: calm surfaces. The brand gradient stays on the dashboard hero and on the one primary button. */
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .tools-v42-hero{
  background:var(--ux-surface);border:1px solid var(--ux-line);box-shadow:var(--ux-shadow);border-radius:var(--ux-r-card);color:var(--text)}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .tools-v42-hero::before,
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .tools-v42-hero::after{display:none}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .tools-v42-hero h2{color:var(--text)}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .tools-v42-hero p{color:var(--ux-text-2)}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) :is(#tab-insights,#tab-settings) :is(.tools-v42-row,.ins-block,.tool-tile,.cb-lab-controls,.plan-lab-more,.what-result,.tools-v42-cash-summary,.pp-v42-debt-panel){
  background:var(--ux-surface);border:1px solid var(--ux-line);box-shadow:none;border-radius:18px}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .ins-block{padding:16px}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights :is(.tools-v42-icon,.tools-heading-icon,.tool-icon){background:var(--ux-surface-2)}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights :is(.tools-v42-copy small,.tool-caption,.what-eyebrow,#tab-insights .note){color:var(--ux-text-2)}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) :is(#tab-insights,#tab-settings) .cb-lab-controls{padding:16px}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .plat-table :is(th,td){border-bottom:1px solid var(--ux-line)}
html:is([data-theme="light"],[data-theme="dark"],[data-theme="auto"]) #tab-insights .what-empty{background:var(--ux-surface-2);border:1px solid var(--ux-line);color:var(--ux-text-2)}

/* ---------- C. Clay, Ember, Neon: keep the v4.2 small-caps labels ---------- */
html:not([data-theme="light"]):not([data-theme="dark"]):not([data-theme="auto"]) :is(#tab-insights .tools-eyebrow,#tab-insights #pp-debt .pp-v42-debt-label,#tab-settings .plan-v42-tag,.tools-v42-kicker,.tools-v42-cash-eyebrow,.pp-v42-debt-label,.plan-v42-tag){
  text-transform:uppercase;letter-spacing:.06em}
