.fx-thermo { --fx-turn: 0deg; --fx-level: 50%; --fx-heat: var(--fx-sun); display: grid; gap: 16px; }
.fx-thermo:has(#fx-thermo-low:checked) { --fx-turn: -130deg; --fx-level: 25%; --fx-heat: var(--fx-sky); }
.fx-thermo:has(#fx-thermo-high:checked) { --fx-turn: 130deg; --fx-level: 95%; --fx-heat: var(--fx-coral); }
.fx-thermo .fx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-thermo .fx-goal { margin: 0; color: var(--fx-ink); }
.fx-thermo .fx-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-thermo .fx-controls legend { padding: 0; margin-bottom: 8px; font-weight: 700; color: var(--fx-ink); }
.fx-thermo .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-thermo .fx-btn { box-sizing: border-box; min-height: 44px; min-width: 44px; max-width: 100%; padding: 10px 12px; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-muted); border-radius: 10px; cursor: pointer; line-height: 1.4; }
.fx-thermo .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sky-pale); border-color: var(--fx-ink); }
.fx-thermo .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-thermo .fx-stack { display: grid; min-width: 0; }
.fx-thermo .fx-stack > p { grid-area: 1 / 1; margin: 0; }
.fx-thermo .fx-swap { visibility: hidden; }
.fx-thermo .fx-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.fx-thermo .fx-rightcol { display: grid; gap: 12px; min-width: 0; }
.fx-thermo .fx-dial-stage { box-sizing: border-box; height: 350px; margin: 0; padding: 12px; display: grid; grid-template-rows: 24px 230px minmax(0, 1fr); gap: 8px; min-width: 0; color: var(--fx-ink); }
.fx-thermo .fx-device { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; min-width: 0; }
.fx-thermo .fx-dial { position: relative; min-width: 0; height: 220px; }
.fx-thermo .fx-stop-middle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: 700; }
.fx-thermo .fx-stop-low { position: absolute; bottom: 0; left: 0; font-size: 14px; font-weight: 700; }
.fx-thermo .fx-stop-high { position: absolute; bottom: 0; right: 0; font-size: 14px; font-weight: 700; }
.fx-thermo .fx-knob { position: absolute; top: 32px; left: 50%; width: min(100%, 170px); height: 170px; transform: translateX(-50%); }
.fx-thermo .fx-knob svg { width: 100%; height: 100%; }
.fx-thermo .fx-stop { fill: var(--fx-ink); }
.fx-thermo .fx-knob-rim { fill: var(--fx-muted); stroke: var(--fx-ink); stroke-width: 2; }
.fx-thermo .fx-knob-face { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 2; }
.fx-thermo .fx-pointer { transform-origin: 70px 70px; transform: rotate(var(--fx-turn)); transition: transform 0.4s; }
.fx-thermo .fx-pointer path { fill: none; stroke: var(--fx-ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.fx-thermo .fx-hub { fill: var(--fx-ink); }
.fx-thermo .fx-temperature { text-align: center; font-size: 14px; font-weight: 700; }
.fx-thermo .fx-tube { position: relative; box-sizing: border-box; width: 30px; height: 180px; margin: 16px auto 0; background: var(--fx-paper); border: 3px solid var(--fx-ink); border-radius: 18px; }
.fx-thermo .fx-mercury { position: absolute; bottom: 4px; left: 4px; right: 4px; height: var(--fx-level); border-radius: 12px; background: var(--fx-heat); transition: height 0.4s, background-color 0.4s; }
.fx-thermo .fx-tube::after { content: ""; position: absolute; box-sizing: border-box; bottom: -9px; left: 50%; width: 36px; height: 36px; transform: translateX(-50%); border: 3px solid var(--fx-ink); border-radius: 50%; background: var(--fx-heat); transition: background-color 0.4s; }
.fx-thermo .fx-levels .fx-score { font-size: 16px; line-height: 1.4; color: var(--fx-ink); }
.fx-thermo .fx-reader-stage { box-sizing: border-box; height: 232px; min-width: 0; margin: 0; padding: 12px; display: grid; grid-template-rows: 24px 110px minmax(0, 1fr); gap: 8px; color: var(--fx-ink); }
.fx-thermo .fx-reader-art { width: 180px; max-width: 100%; height: 110px; justify-self: center; }
.fx-thermo .fx-reader-art path, .fx-thermo .fx-reader-art polygon, .fx-thermo .fx-reader-art .fx-skin { stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-thermo .fx-shirt { fill: var(--fx-sky-pale); }
.fx-thermo .fx-skin { fill: var(--fx-sun-pale); }
.fx-thermo .fx-eye { fill: var(--fx-ink); }
.fx-thermo .fx-reader-art .fx-mouth { fill: none; stroke-linecap: round; }
.fx-thermo .fx-hat { fill: var(--fx-coral); }
.fx-thermo .fx-reader-art .fx-hat-band { fill: none; stroke: var(--fx-sun); stroke-width: 4; }
.fx-thermo .fx-tie { fill: var(--fx-grape); }
.fx-thermo .fx-costume { visibility: hidden; }
.fx-thermo .fx-head { transform-origin: 80px 65px; transition: transform 0.4s; }
.fx-thermo:has(#fx-thermo-manager:checked):has(#fx-thermo-high:checked) .fx-head { transform: rotate(7deg); }
.fx-thermo .fx-reader-words { font-size: 14px; line-height: 1.4; }
.fx-thermo .fx-card { display: grid; gap: 8px; min-width: 0; color: var(--fx-ink); }
.fx-thermo .fx-message { box-sizing: border-box; padding: 12px; border: 2px solid var(--fx-muted); line-height: 1.6; color: var(--fx-ink); overflow-wrap: break-word; }
.fx-thermo .fx-informal-card { background: var(--fx-sun-pale); border-color: var(--fx-coral); border-radius: 18px; font-weight: 700; letter-spacing: 0.015em; }
.fx-thermo .fx-plain-card { background: var(--fx-paper); border-radius: 4px; }
.fx-thermo .fx-formal-card { background: var(--fx-paper); border-color: var(--fx-muted); border-radius: 0; }
.fx-thermo:has(#fx-thermo-friend:checked) .fx-friend, .fx-thermo:has(#fx-thermo-manager:checked) .fx-manager { visibility: visible; }
.fx-thermo:has(#fx-thermo-low:checked) .fx-low, .fx-thermo:has(#fx-thermo-middle:checked) .fx-middle, .fx-thermo:has(#fx-thermo-high:checked) .fx-high { visibility: visible; }
.fx-thermo:has(#fx-thermo-friend:checked):has(#fx-thermo-low:checked) .fx-fi, .fx-thermo:has(#fx-thermo-friend:checked):has(#fx-thermo-middle:checked) .fx-fm, .fx-thermo:has(#fx-thermo-friend:checked):has(#fx-thermo-high:checked) .fx-ff, .fx-thermo:has(#fx-thermo-manager:checked):has(#fx-thermo-low:checked) .fx-mi, .fx-thermo:has(#fx-thermo-manager:checked):has(#fx-thermo-middle:checked) .fx-mm, .fx-thermo:has(#fx-thermo-manager:checked):has(#fx-thermo-high:checked) .fx-mf { visibility: visible; }
@container (max-width: 480px) { .fx-thermo .fx-layout { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-thermo .fx-pointer, .fx-thermo .fx-mercury, .fx-thermo .fx-tube::after, .fx-thermo .fx-head { transition: none; } }