/* Presentation-only repairs. Technical values, equations and input IDs stay intact. */
.entry-content.is-layout-constrained .rs-studio #rs-calculation {
  color: #102a43 !important;
  background: #eef7f5 !important;
  border: 1px solid #c7dedb;
  display: block;
  padding: 10px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.entry-content.is-layout-constrained .rs-studio #rs-visual-readout { color: #fff !important; }
.entry-content.is-layout-constrained .rs-studio .rs-graph { width: 100%; min-width: 0; display: block; }
.entry-content.is-layout-constrained .rs-studio .rs-graph line { stroke: #d9eef0; stroke-width: 2; }
.entry-content.is-layout-constrained .rs-studio .rs-graph path { fill: none; stroke: #d9ff59; stroke-width: 5; }
.entry-content.is-layout-constrained .rs-studio .rs-graph circle { fill: #fff; stroke: #0f9f91; stroke-width: 4; }
.entry-content.is-layout-constrained .tip-calculator-container { box-sizing: border-box; width: 100%; max-width: 500px; min-width: 0; }
.entry-content.is-layout-constrained .tip-calculator-container .quantity-controls { min-width: 0; gap: 6px; }
.entry-content.is-layout-constrained .tip-calculator-container .quantity-controls input { flex: 1 1 0; min-width: 0; width: 120px !important; max-width: 120px; margin: 0; }
.entry-content.is-layout-constrained .tip-calculator-container .quantity-controls button { flex: 0 0 44px; width: 44px; padding: 8px !important; }
.entry-content.is-layout-constrained .tip-calculator-container .result,
.entry-content.is-layout-constrained .tip-calculator-container .result strong { color: #075e54 !important; }
.entry-content.is-layout-constrained a.cfs-readable-link { color: #1557bc !important; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.entry-content.is-layout-constrained .cfs-unit-name { text-transform: none !important; overflow-wrap: anywhere; }
.entry-content.is-layout-constrained #dsp-result { color: #fff !important; }
.entry-content.is-layout-constrained #cpg-contrast-result #cpg-best { color: inherit !important; }
.entry-content.is-layout-constrained .hr-zone-card small { color: #17324d !important; }
.entry-content.is-layout-constrained .cs-confidence > span { color: #395368 !important; }
.entry-content.is-layout-constrained #fs-result > .fs-note { color: #eef8f3 !important; }
.entry-content.is-layout-constrained :is(.qp-button,.ql-button,.ws-button,.vl-button):not(.secondary):not(.ghost) { background: #0f766e !important; color: #fff !important; }
.entry-content.is-layout-constrained :is(.qp-preset,.ql-preset,.ws-preset) :is(b,span) { color: #075e54 !important; }
.entry-content.is-layout-constrained .cc-hub-link > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.entry-content.is-layout-constrained .cc-hub-link-button { white-space: normal; text-align: center; }
.entry-content.is-layout-constrained .cfs-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; }
.entry-content.is-layout-constrained .vl-result :is(.vl-formula-live,.vl-cube-panel) { background: #174d52 !important; color: #fff !important; }
.entry-content.is-layout-constrained .vl-result :is(.vl-formula-live,.vl-cube-panel) :is(code,strong,span) { color: #fff !important; }
.entry-content.is-layout-constrained .vl-result .vl-formula-live code { background: transparent !important; }
.entry-content.is-layout-constrained .vl-result .vl-note { color: #eef8f3 !important; }
.entry-content.is-layout-constrained .cfs-unit-name { padding-inline-end: 25px; }
.entry-content.is-layout-constrained .cc-tool-card { min-width: 0; overflow-wrap: anywhere; }
.entry-content.is-layout-constrained #pd-dashboard { background: linear-gradient(130deg,#4b2165,#8b2e4e) !important; }
.entry-content.is-layout-constrained :is(.hm-button,.hb-button):not(.secondary) { background: #0f766e !important; color: #fff !important; }
.entry-content.is-layout-constrained .q-graph-wrap svg text[fill="#d97706"] { fill: #9a4d00; }
.entry-content.is-layout-constrained :is(#dsp-convert,#rn-generate,#rn-again,#pps-calculate) { background: #0f766e !important; color: #fff !important; }
.entry-content.is-layout-constrained :is(.wlx-preset,.wlx-reset) { background: #f3f8fa !important; color: #15394a !important; }
.entry-content.is-layout-constrained .se-post-header button { background: #fff1f2 !important; color: #9f1239 !important; }
.entry-content.is-layout-constrained #pn-result { background: linear-gradient(135deg,#064e47,#0b6356) !important; }
.entry-content.is-layout-constrained #pn-room text { fill: #12283a; }
.entry-content.is-layout-constrained .pps-metric { background: #10374c !important; }
.entry-content.is-layout-constrained .pps-metric :is(small,strong) { color: #fff !important; }
.entry-content.is-layout-constrained .dd-result-hero { background: linear-gradient(135deg,#312b63,#154864) !important; }
.entry-content.is-layout-constrained #bd-passport { background: linear-gradient(135deg,#174564,#373778) !important; }
.entry-content.is-layout-constrained #sp-dashboard { background: linear-gradient(135deg,#0a4250,#194d5c) !important; }
.entry-content.is-layout-constrained .co-button:not(.secondary) { background: #854b27 !important; color: #fff !important; }
.entry-content.is-layout-constrained .co-tab { background: #f3f8fa !important; color: #15394a !important; }
.entry-content.is-layout-constrained .co-tab:is(.active,[aria-pressed="true"],[aria-selected="true"]) { background: #854b27 !important; color: #fff !important; }
.entry-content.is-layout-constrained .rn-orbit small { color: #fff !important; }
.entry-content.is-layout-constrained #pps-convert { background: #0f766e !important; color: #fff !important; }
.entry-content.is-layout-constrained #pps-quick-convert { background: #0f766e !important; color: #fff !important; }
.entry-content.is-layout-constrained .rn-orbit p { background: #0d3f50; border-radius: 18px; padding: 12px; }
.entry-content.is-layout-constrained .cc-tool-card a:not([class*="button"]):not([class*="action"]) { color: #1557bc !important; }
.entry-content.is-layout-constrained :is(.ws-panel,.ws-result,.tl-controls,.tl-result,.ws-field,.tl-field) { min-width: 0; }
.entry-content.is-layout-constrained :is(.ws-panel,.ws-result,.tl-controls,.tl-result) :is(h2,h3,p,button) { overflow-wrap: anywhere; }
.entry-content.is-layout-constrained :is(.ws-panel,.tl-controls) button { white-space: normal; min-width: 0; max-width: 100%; }
.entry-content.is-layout-constrained :is(.ln-unit-card,.ar-unit-card,.ql-unit-card,.qp-unit-card,.ts-unit-card,.tp-unit-card) { min-width: 0; }
@media (max-width: 600px) {
  .entry-content.is-layout-constrained .tip-calculator-container .input-group { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .entry-content.is-layout-constrained .tip-calculator-container .quantity-controls { justify-content: flex-start; }
  .entry-content.is-layout-constrained .tip-calculator-container .quantity-controls input { max-width: none; width: 100% !important; }
}
@media print {
  .entry-content.is-layout-constrained .rs-studio .rs-graph path { stroke: #102a43; }
  .entry-content.is-layout-constrained .rs-studio .rs-graph line { stroke: #536779; }
}
