/* Explanations live next to the working result. Color indicates data, not decoration. */
.section-tools .tv-figure { margin: 0 0 16px; padding: 0; }
.section-tools .tv-figure figcaption { font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
.tv-chart { display:block; width:100%; overflow:visible; font-family:Manrope,sans-serif; }
.tv-chart-label,.tv-chart-value { fill:var(--ink); font-size:20px; }
.tv-chart-value { font-weight:650; font-variant-numeric:tabular-nums; }
.tv-chart-track { fill:oklch(87% .015 82); }
.tv-chart-bar { fill:oklch(55% .07 225); }
.tv-chart-bar.selected { fill:oklch(43% .08 167); }
.tv-chart-bar.attention,.tv-chart-bar.negative { fill:oklch(52% .1 65); }
.tv-chart-bar.threshold { fill:oklch(43% .024 239); }
.tv-chart-unknown { fill:var(--muted); font-size:14px; }
.tv-zero { stroke:var(--ink); stroke-width:1; opacity:.5; }
.section-tools .tv-note { color:var(--muted); font-size:12px; line-height:1.7; margin:10px 0 0; max-width:65ch; }
.tv-flow { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; padding:0; margin:0; gap:0 20px; }
.tv-flow li { display:grid; grid-template-columns:23px minmax(0,1fr); gap:2px 8px; padding:11px 0; font-size:13px; }
.tv-step-number { color:var(--muted); font-size:11px; padding-top:2px; font-variant-numeric:tabular-nums; }
.tv-flow strong { color:var(--ink); font-weight:550; line-height:1.5; }
.tv-flow small { grid-column:2; font-size:12px; color:var(--muted); line-height:1.5; }
.tv-flow-selected { background:var(--ftb-current); border-radius:5px; padding-inline:8px!important; margin-inline:-8px; }
.tv-flow-selected strong,.tv-flow-selected .tv-step-number { color:var(--brand); font-weight:650; }
.section-tools .tv-disclosure { border:0; margin-top:0; }
.section-tools .bt-result>.tv-disclosure:first-of-type { border-top:1px solid var(--section-rule); margin-top:16px; }
.section-tools .tv-disclosure summary { font-size:13px; font-weight:600; color:var(--brand); min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:15px; cursor:pointer; list-style:none; }
.tv-disclosure summary::-webkit-details-marker { display:none; }
.tv-disclosure summary::after { content:''; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-right:4px; transition:transform 180ms cubic-bezier(.16,1,.3,1); }
.tv-disclosure[open]>summary::after { transform:rotate(225deg); }
.section-tools .tv-disclosure .bt-result-notes { margin:0 0 20px; }
.section-tools .tv-disclosure .bt-metrics { margin-bottom:16px; }
.section-tools .bt-method:has(.tv-disclosure)>div { width:100%; }
.section-tools .bt-method:has(.tv-disclosure) h2 { display:none; }
.section-tools .bt-method:has(.tv-disclosure) { align-items:start; margin-top:22px; padding-top:0; border-top:0; }
.section-tools .tv-disclosure summary:focus-visible { outline:3px solid var(--ftb-focus);outline-offset:3px; }
.tv-export { margin-top:24px; }
.tv-export .bv-figure { margin:0; }
.ftb-tool-symbol { width:20px; height:20px; flex-shrink:0; stroke:currentColor; stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.ftb-sidebar nav a { gap:11px; }
.ftb-tool-row .ftb-tool-copy h3 { display:flex; gap:12px; align-items:center; }
.ftb-tool-row .ftb-tool-symbol { color:var(--brand); }
.section-tools .ftb-workspace-heading { padding-bottom:20px; margin-bottom:25px; }
.section-tools .ftb-workspace-heading h1 { font-size:29px; }
.section-tools .ftb-workspace-heading>p { display:none; }
.section-tools .ftb-group>header p { display:none; }
.ftb-tool-row .ftb-tool-copy p { display:none; }
.ftb-directory-heading p { display:none; }
.ftb-free { font-size:12px; }
@media (prefers-reduced-motion:no-preference) {
  .tv-result-updated .tv-chart-bar { animation:tv-data-in 220ms cubic-bezier(.16,1,.3,1) both; }
  @keyframes tv-data-in { from { transform:scaleX(.97);opacity:.6; } to { transform:scaleX(1);opacity:1; } }
  .tv-disclosure[open]>*:not(summary) { animation:tv-details-in 180ms cubic-bezier(.16,1,.3,1) both; }
  @keyframes tv-details-in { from { transform:translateY(-3px);opacity:.5; } to { transform:translateY(0);opacity:1; } }
}
@media (max-width:650px) { .tv-chart-label,.tv-chart-value {font-size:18px;} .tv-flow {gap:0 14px;} }
.tv-chart-data { margin-top:10px; }
.tv-chart-data summary { display:inline-flex; min-height:30px; align-items:center; gap:6px; font-size:12px; color:var(--brand); cursor:pointer; }
.tv-value-table { border-collapse:collapse; width:100%; font-size:13px; margin-top:10px; }
.tv-value-table caption { text-align:left; font-size:12px; color:var(--muted); margin-bottom:8px; }
.tv-value-table :is(th,td) { padding:8px 0; text-align:left; border-bottom:1px solid var(--section-rule); }
.tv-value-table td { text-align:right; font-variant-numeric:tabular-nums; }
.tv-value-table thead th { color:var(--muted); font-weight:500; }
/* One optional-help control replaces routine paragraphs; substantive warnings stay visible. */
.tv-input-title { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.section-tools .tv-input-tips { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px; background:transparent; border:1px solid transparent; border-radius:6px; color:var(--brand); font:550 12px/1.4 Manrope,sans-serif; white-space:nowrap; cursor:pointer; }
.section-tools .tv-input-tips:hover,.section-tools .tv-input-tips[aria-pressed="true"] { background:var(--ftb-current); }
.section-tools .tv-input-tips:focus-visible { outline:3px solid var(--ftb-focus);outline-offset:2px; }
.section-tools .tv-quote-input-heading { margin:0 0 16px; }
.section-tools .tv-quote-input-heading h2 { font-size:21px; font-weight:650; }
.section-tools .tv-quote-guidance { font-size:12px; color:var(--muted); margin:0 0 18px; line-height:1.7; }
@media (prefers-reduced-motion:no-preference) { .section-tools .tv-routine-tip:not([hidden]) { animation:tv-details-in 180ms cubic-bezier(.16,1,.3,1) both; } }

/* Tool inputs are grouped by the decision people make, without nested surfaces. */
.section-tools .bt-fields.tv-grouped-fields { display:block; }
.section-tools .tv-input-group { border:0; margin:0; padding:0; min-width:0; }
.section-tools .tv-input-group + .tv-input-group { margin-top:30px; padding-top:0; }
.section-tools .tv-input-group legend { float:left; width:100%; padding:0; margin:0 0 17px; font-size:13px; line-height:1.5; color:var(--muted); font-weight:650; }
.section-tools .tv-input-group .tv-input-grid { clear:both; }
.section-tools .tv-input-grid .bt-field:has(select):first-child:last-child { grid-column:1 / -1; }
/* Different visual structures explain different kinds of work. */
.tv-chart-axis text { fill:var(--muted); font-size:15px; }
.tv-chart-bar.tv-segment-0,.tv-chart-key i.tv-segment-0 { fill:oklch(53% .082 225); background:oklch(53% .082 225); }
.tv-chart-bar.tv-segment-1,.tv-chart-key i.tv-segment-1 { fill:oklch(49% .09 67); background:oklch(49% .09 67); }
.tv-chart-bar.tv-segment-2,.tv-chart-key i.tv-segment-2 { fill:oklch(75% .06 73); background:oklch(75% .06 73); }
.tv-chart-key { display:flex; flex-wrap:wrap; gap:9px 18px; list-style:none; margin:10px 0 18px; padding:0; font-size:11px; line-height:1.65; color:var(--muted); }
.tv-chart-key li { display:flex; align-items:center; gap:5px; }
.tv-chart-key i { width:9px; height:9px; border-radius:2px; }
.tv-chart-key strong { color:var(--ink); font-weight:600; }
.tv-equation { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,.8fr) auto minmax(0,1fr); align-items:center; gap:9px; padding:0; margin:0 0 25px; }
.tv-equation div { min-width:0; }
.tv-equation div>span { display:block; font-size:11px; color:var(--muted); margin-bottom:6px; }
.tv-equation strong { font-size:23px; font-weight:650; font-variant-numeric:tabular-nums; line-height:1.4; }
.tv-equation small { display:block; font-size:11px; color:var(--muted); margin-top:1px; }
.tv-equation-sign { font-size:21px; color:var(--muted); }
.tv-readiness { list-style:none; padding:0; margin:0; }
.tv-readiness li { display:grid; grid-template-columns:1fr 58px 58px; align-items:center; gap:18px; padding:12px 0; font-size:13px; }
.tv-readiness li>strong { display:flex; flex-direction:column; font-size:12px; line-height:1.5; font-weight:650; }
.tv-readiness li>strong small { font-weight:400; color:var(--muted); }
.tv-check-points { display:flex; gap:5px; }
.tv-check-points i { width:22px; height:9px; border:1px solid oklch(72% .018 223); border-radius:2px; }
.tv-check-points .is-filled { background:var(--brand); border-color:var(--brand); }
.tv-policy { grid-template-columns:1fr; }
.tv-policy li { grid-template-columns:45px minmax(0,1fr) auto; padding:14px 0; align-items:baseline; }
.tv-policy li strong { overflow-wrap:anywhere; }
.tv-policy small { grid-column:2; }
.tv-policy .tv-step-number { font-size:11px; }
.tv-policy .tv-route-selected { grid-column:3; grid-row:1 / span 2; align-self:center; font-size:11px; color:var(--brand); padding-right:4px; }
.tv-request-summary { gap:0 22px; }
.tv-request-summary>div { min-width:0; padding:9px 0 13px; }
.tv-request-summary dt { color:var(--muted); font-size:11px; margin-bottom:5px; }
.tv-request-summary dd { margin:0; color:var(--ink); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
@media (prefers-reduced-motion:no-preference) { .tv-result-updated:not(:has(.tv-chart)) { animation:tv-details-in 180ms cubic-bezier(.16,1,.3,1) both; } }
@media (max-width:480px) { .tv-readiness li { gap:10px;grid-template-columns:1fr 52px 48px; } .tv-equation { gap:6px; } .tv-equation strong { font-size:21px; } .tv-request-summary { grid-template-columns:1fr; } }
/* Keep a short result in view while editing the longer forms. Expanded data scrolls normally. */
@media (min-width:1201px) {
  .section-tools .bt-tool:not(.dt-tool) .bt-result:not(:has(details[open])),
  .section-tools .dt-tool[data-tool="supplier-scorecard"] .bt-workspace>div:not(:has(details[open])) { position:sticky; top:24px; }
}

/* Paper and stock are symbols, not alternate data displays. All values stay in the chart. */
.section-tools .tv-figure figcaption { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tv-result-art { display:block; width:39px; height:39px; flex-shrink:0; overflow:visible; }
.tv-art-side { fill:oklch(82% .02 225); }
.tv-art-paper { fill:oklch(99% .004 82); stroke:oklch(69% .033 225); stroke-width:1; }
.tv-art-line { fill:none; stroke:oklch(53% .055 225); stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
.tv-art-cube-top { fill:oklch(91% .044 78); }
.tv-art-cube-left { fill:oklch(76% .056 78); }
.tv-art-cube-right { fill:oklch(66% .049 78); }
.tv-art-cube-tape { fill:oklch(96% .015 78); }
.tv-art-envelope { fill:oklch(90% .028 225); stroke:oklch(64% .033 225); stroke-width:1; }
.section-tools .dt-tool[data-tool="rfq-email-builder"] .dt-email-body { border-radius:2px; background:oklch(99.8% .002 82); box-shadow:3px 4px 0 oklch(90% .012 82); padding:17px 18px; }
@media (prefers-reduced-motion:no-preference) { .tv-result-updated .tv-result-art { animation:tv-details-in 180ms cubic-bezier(.16,1,.3,1) both; } }

/* Secondary resources stay available without repeating the calculator explanation. */
.section-tools .tv-tool-resources { margin-top:24px; }
.tv-resource-links { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; }
.section-tools .tv-resource-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; margin-inline:-12px; border-radius:6px; color:var(--brand); font-size:13px; text-decoration:none; }
.tv-resource-link:hover { background:var(--ftb-hover); }
.tv-resource-link:focus-visible { outline:3px solid var(--ftb-focus); outline-offset:2px; }
.section-tools .tv-tool-resources .tv-disclosure { margin-top:3px; }
.section-tools .tv-tool-resources .tv-disclosure summary { justify-content:flex-start; gap:16px; width:fit-content; }
.section-tools .tv-tool-resources p { font-size:13px; line-height:1.8; color:var(--muted); max-width:75ch; margin:12px 0 0; }
