.fx-thermometer { display: grid; gap: 16px; }
.fx-thermometer .fx-th-goal { margin: 0; color: var(--fx-ink); }
.fx-thermometer .fx-th-controls { display: grid; gap: 10px; min-width: 0; border: 0; margin: 0; padding: 0; color: var(--fx-ink); }
.fx-thermometer .fx-th-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-thermometer .fx-th-card-title { margin: 0; }
.fx-thermometer .fx-th-controls small { font-size: 12px; line-height: 1.5; }
.fx-thermometer .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-thermometer .fx-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; min-width: 96px; padding: 10px 14px; color: var(--fx-ink); background: var(--fx-paper); }
.fx-thermometer .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun); }
.fx-thermometer .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-thermometer .fx-th-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.fx-thermometer .fx-th-scene { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: relative; box-sizing: border-box; height: 600px; min-width: 0; margin: 0; padding: 16px; color: var(--fx-ink); }
.fx-thermometer .fx-th-scene figcaption { text-align: center; font-size: 16px; line-height: 22px; }
.fx-thermometer .fx-th-key { display: grid; text-align: center; font-size: 12px; line-height: 20px; }
.fx-thermometer .fx-th-positive { background: var(--fx-coral-pale); }
.fx-thermometer .fx-th-negative { background: var(--fx-sky-pale); }
.fx-thermometer .fx-th-direction { margin: 0; font-size: 14px; line-height: 21px; font-weight: 800; text-align: center; }
.fx-thermometer .fx-th-scale { position: relative; flex-shrink: 0; width: 100%; height: 400px; margin: 12px 0; }
.fx-thermometer .fx-th-warm, .fx-thermometer .fx-th-cool { position: absolute; left: 0; width: 100%; height: 50%; }
.fx-thermometer .fx-th-warm { top: 0; background: var(--fx-coral-pale); }
.fx-thermometer .fx-th-cool { top: 50%; background: var(--fx-sky-pale); }
.fx-thermometer .fx-th-tube { position: absolute; top: 0; left: 44%; width: 16px; height: 100%; box-sizing: border-box; border: 3px solid var(--fx-ink); border-radius: 12px; }
.fx-thermometer .fx-th-tick { position: absolute; top: var(--fx-y); left: calc(44% - 5px); width: 26px; border-top: 1px solid var(--fx-ink); }
.fx-thermometer .fx-th-tick span { position: absolute; right: calc(100% + 7px); top: 0; width: max-content; transform: translateY(-50%); font-size: 14px; line-height: 20px; }
.fx-thermometer .fx-th-zero { left: calc(44% - 8px); width: 32px; border-top-width: 3px; }
.fx-thermometer .fx-th-zero span { font-size: 12px; font-weight: 800; }
.fx-thermometer .fx-th-flag { position: absolute; z-index: 2; left: calc(44% + 27px); top: 50%; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 60px; height: 28px; border: 2px solid var(--fx-ink); border-radius: 4px; transform: translateY(-50%); font-size: 14px; font-weight: 800; color: var(--fx-ink); visibility: hidden; opacity: 0; transition: top 0.5s, opacity 0.5s; }
.fx-thermometer .fx-th-flag::before { content: ""; position: absolute; top: 50%; right: 100%; width: 13px; border-top: 2px solid var(--fx-ink); }
.fx-thermometer .fx-th-warm-flag { background: var(--fx-coral); }
.fx-thermometer .fx-th-cool-flag { background: var(--fx-sky); }
.fx-thermometer .fx-th-bracket { position: absolute; left: calc(44% + 87px); top: 78.75%; width: 7px; height: 11.25%; box-sizing: border-box; border-top: 2px solid var(--fx-ink); border-right: 2px solid var(--fx-ink); border-bottom: 2px solid var(--fx-ink); visibility: hidden; }
.fx-thermometer .fx-th-arrow { position: absolute; right: 0; top: 0; width: 8px; height: 100%; fill: none; stroke: var(--fx-ink); stroke-width: 2; }
.fx-thermometer .fx-th-read { display: grid; gap: 10px; min-width: 0; color: var(--fx-ink); }
.fx-thermometer .fx-th-message, .fx-thermometer .fx-th-order-box { display: grid; min-width: 0; }
.fx-thermometer .fx-th-message > p, .fx-thermometer .fx-th-order-box > p { grid-area: 1 / 1; box-sizing: border-box; margin: 0; padding: 10px; font-size: 14px; line-height: 1.5; }
.fx-thermometer .fx-th-on, .fx-thermometer .fx-th-progress, .fx-thermometer .fx-th-compare, .fx-thermometer .fx-th-complete { visibility: hidden; }
.fx-thermometer .fx-th-order { grid-area: 1 / 1; display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; visibility: hidden; }
.fx-thermometer .fx-th-order li { display: flex; gap: 14px; align-items: center; min-height: 32px; padding: 4px 10px; background: var(--fx-mint-pale); font-size: 16px; }
.fx-thermometer:has(#fx-thermometer-p23:checked) .fx-th-p23, .fx-thermometer:has(#fx-thermometer-p32:checked) .fx-th-p32, .fx-thermometer:has(#fx-thermometer-m23:checked) .fx-th-m23, .fx-thermometer:has(#fx-thermometer-m32:checked) .fx-th-m32 { top: var(--fx-y); visibility: visible; opacity: 1; }
.fx-thermometer:has(#fx-thermometer-p23:checked) .fx-th-on-p23, .fx-thermometer:has(#fx-thermometer-p32:checked) .fx-th-on-p32, .fx-thermometer:has(#fx-thermometer-m23:checked) .fx-th-on-m23, .fx-thermometer:has(#fx-thermometer-m32:checked) .fx-th-on-m32 { visibility: visible; }
.fx-thermometer:has(#fx-thermometer-p23:checked) .fx-th-off-p23, .fx-thermometer:has(#fx-thermometer-p32:checked) .fx-th-off-p32, .fx-thermometer:has(#fx-thermometer-m23:checked) .fx-th-off-m23, .fx-thermometer:has(#fx-thermometer-m32:checked) .fx-th-off-m32 { visibility: hidden; }
.fx-thermometer:has(input:checked) .fx-th-start { visibility: hidden; }
.fx-thermometer:has(input:checked) .fx-th-progress { visibility: visible; }
.fx-thermometer:has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-progress { visibility: hidden; }
.fx-thermometer:has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-compare, .fx-thermometer:has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-bracket { visibility: visible; }
.fx-thermometer:has(#fx-thermometer-p23:checked):has(#fx-thermometer-p32:checked):has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-compare, .fx-thermometer:has(#fx-thermometer-p23:checked):has(#fx-thermometer-p32:checked):has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-order-wait { visibility: hidden; }
.fx-thermometer:has(#fx-thermometer-p23:checked):has(#fx-thermometer-p32:checked):has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-complete, .fx-thermometer:has(#fx-thermometer-p23:checked):has(#fx-thermometer-p32:checked):has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-order { visibility: visible; }
.fx-thermometer:has(#fx-thermometer-p23:checked):has(#fx-thermometer-p32:checked):has(#fx-thermometer-m23:checked):has(#fx-thermometer-m32:checked) .fx-th-flag { box-shadow: 0 0 0 4px var(--fx-sun); }
@container (max-width: 480px) { .fx-thermometer .fx-th-body { grid-template-columns: minmax(0, 1fr); } .fx-thermometer .fx-th-scene { padding: 12px; } }