.wellbeing-dialog{width:min(700px,94vw);padding:30px;scrollbar-gutter:stable}
.wellbeing-dialog .modal-head h2{font-size:2rem;line-height:1.2;letter-spacing:-.6px;margin:10px 0 20px}
.wellbeing-dialog .close{min-width:44px;min-height:44px;font-size:1.5rem}
.wellbeing-dialog #modal-kicker{font-size:.875rem}
.wellbeing-dialog .tool-intro{font-size:1rem;line-height:1.65;color:#625270;margin:0 0 14px}
.wellbeing-dialog .tool-controls{display:flex;gap:12px;margin:16px 0 22px;flex-wrap:wrap}
.wellbeing-dialog .tool-controls .button{flex:1;justify-content:center;min-height:48px;font-size:1rem;line-height:1.4;padding:12px 16px;white-space:normal}
.wellbeing-dialog .button:disabled{opacity:.5;cursor:default}
.wellbeing-dialog :is(button,input,select,summary,a):focus-visible{outline:3px solid #8f58b5;outline-offset:4px}
.breath-stage{height:230px;position:relative;display:grid;place-items:center;margin:12px 0;background:radial-gradient(ellipse at center,#f4eafd 0,#fbf8ff 45%,#fff 74%);border-radius:22px}
.breath-orbit{position:absolute;width:215px;height:215px;border-radius:50%;border:1px solid #d8c5eb;display:grid;place-items:center;box-shadow:0 0 0 12px #f4edfc}
.breath-disc{width:200px;height:200px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#ddc8f5,#b78cd8);transform:scale(.67);will-change:transform}
.breath-guide{display:flex;align-items:center;flex-direction:column;text-align:center;position:relative;z-index:1;color:#402256;pointer-events:none}
.breath-guide strong{font-size:1.125rem;line-height:1.5;font-weight:600;max-width:170px}
.breath-guide>span{font-size:3rem;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums}
.breath-progress-copy{display:flex;justify-content:space-between;gap:12px;font-size:.875rem;color:#6a527b;margin-top:22px;font-variant-numeric:tabular-nums}
#breath-progress{display:block;width:100%;height:8px;appearance:none;border:0;border-radius:10px;overflow:hidden;background:#ece4f4;margin-top:9px}
#breath-progress::-webkit-progress-bar{background:#ece4f4}
#breath-progress::-webkit-progress-value{background:#8350ae;border-radius:10px}
#breath-progress::-moz-progress-bar{background:#8350ae;border-radius:10px}
.wellbeing-dialog .breath-state{font-size:.875rem;line-height:1.6;color:#725b81;margin:12px 0;min-height:23px}
.breath-settings{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;margin-top:22px}
.breath-settings label{font-size:.875rem;font-weight:600;line-height:1.5;color:#513564}
.breath-settings select{font-size:1rem;min-height:48px;line-height:1.5;padding:10px 35px 10px 12px;margin-top:7px;border:1px solid #d7c5e6;border-radius:9px;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='m3 4 5 5 5-5' fill='none' stroke='%237b5598' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;width:100%;color:#513564}
.breath-settings select:disabled{background-color:#f5f1f8;opacity:.75}
.tool-motion{display:flex;align-items:center;gap:10px;font-size:.875rem;color:#624d73;line-height:1.5;min-height:44px;margin-top:10px;cursor:pointer}
.tool-motion input{width:20px;height:20px;accent-color:#7c30a8;margin:0;flex-shrink:0}
.wellbeing-dialog .tool-care-note{font-size:.875rem;line-height:1.65;color:#5c456d;background:#f6f1fa;border-left:3px solid #b79dcd;padding:13px 15px;border-radius:0 9px 9px 0;margin:19px 0}
.wellbeing-dialog .tool-trial-note{font-size:.875rem;line-height:1.65;color:#74627e;margin:20px 0 12px}
.wellbeing-dialog .tool-reference{border-top:1px solid #e3d8ed;margin:0;padding:0}
.wellbeing-dialog .tool-reference>summary{font-size:.875rem;line-height:1.5;min-height:44px;padding:13px 26px 13px 0;cursor:pointer;font-weight:600;color:#694783}
.wellbeing-dialog .tool-reference p{font-size:.875rem;line-height:1.65;color:#6c597a;margin:5px 0 12px}
.wellbeing-dialog .tool-reference a{display:inline-block;font-size:.875rem;line-height:1.6;color:#7432a4;text-underline-offset:3px;margin-bottom:16px}
.tool-bottom-note{font-size:.875rem;line-height:1.7;color:#756780;border-top:1px solid #e6dcee;margin-top:10px;padding-top:14px}
.tool-help-link{display:block;border:0;padding:8px 0;background:transparent;color:#7432a4;font-size:.875rem;line-height:1.6;min-height:44px;text-decoration:underline;text-underline-offset:3px;text-align:left;cursor:pointer}
.emotion-display{display:flex;align-items:center;justify-content:center;gap:40px;margin:24px 0;padding:18px 20px;background:linear-gradient(120deg,#faf7fd,#f3effb);border-radius:20px;min-height:235px}
.emotion-thermometer{width:80px;height:206px;position:relative;flex-shrink:0}
.thermometer-tube{width:35px;height:160px;position:absolute;left:10px;top:0;border:5px solid #e3d5f3;background:#fefcff;border-radius:25px;overflow:hidden}
.thermometer-fill{display:block;width:100%;height:var(--intensity-fill,0%);position:absolute;bottom:0;background:#9869c4;transition:height .18s ease}
.thermometer-bulb{width:58px;height:58px;border:7px solid #e3d5f3;border-radius:50%;position:absolute;top:146px;left:-1.5px;background:#e6dfee;transition:background .18s}
.has-intensity .thermometer-bulb{background:#9869c4}
.thermometer-top,.thermometer-bottom{position:absolute;right:0;font-size:.875rem;line-height:1.5;color:#745a87}
.thermometer-top{top:0}.thermometer-bottom{top:145px}
.emotion-reading{max-width:235px;min-width:0;flex:1}
.emotion-reading>strong{font-size:4.5rem;font-weight:500;line-height:1;color:#6e3b98;letter-spacing:-2px;font-variant-numeric:tabular-nums}
.emotion-reading>span{font-size:1.25rem;color:#897294;display:inline-block;margin-left:10px}
.wellbeing-dialog .emotion-reading p{font-size:1rem;line-height:1.6;color:#6f5c7d;margin:16px 0 0}
.intensity-label{font-size:1rem;color:#5c3a75;line-height:1.5;font-weight:600}
.emotion-range{display:block;width:100%;height:44px;padding:0;margin:8px 0 0;appearance:none;background:transparent;accent-color:#8750af;cursor:pointer}
.emotion-range::-webkit-slider-runnable-track{height:8px;border-radius:10px;background:#dacbe7}
.emotion-range::-moz-range-track{height:8px;border-radius:10px;background:#dacbe7}
.emotion-range::-webkit-slider-thumb{appearance:none;background:white;border:3px solid #aa91bf;width:30px;height:30px;border-radius:50%;margin-top:-11px;box-shadow:0 2px 6px #54307720}
.emotion-range::-moz-range-thumb{background:white;border:3px solid #aa91bf;width:25px;height:25px;border-radius:50%;box-shadow:0 2px 6px #54307720}
.has-intensity .emotion-range::-webkit-slider-thumb{background:#8550b0;border-color:#fff;box-shadow:0 0 0 1px #8550b0}
.has-intensity .emotion-range::-moz-range-thumb{background:#8550b0;border-color:#fff;box-shadow:0 0 0 1px #8550b0}
.intensity-anchors{display:flex;justify-content:space-between;gap:20px;font-size:.875rem;color:#6b547d;line-height:1.5;margin-bottom:16px}
.intensity-anchors>span:last-child{text-align:right}.intensity-anchors strong{display:block;color:#4f315f}
.wellbeing-dialog .intensity-hint{font-size:.875rem;line-height:1.5;color:#7c6789;margin:12px 0}
.intensity-values{display:flex;flex-wrap:wrap;gap:7px}
.intensity-values button{font-size:1rem;min-width:44px;min-height:44px;border:1px solid #d9c9e5;border-radius:10px;background:white;color:#633e7b;flex:1;cursor:pointer;padding:9px 6px}
.intensity-values button:hover{background:#f3eafa}.intensity-values button[aria-pressed="true"]{background:#7f36ab;color:#fff;border-color:#7f36ab;font-weight:600}
.urgent-help{scroll-margin-top:140px}
@media(max-width:760px){.wellbeing-copy>.button{width:100%}.wellbeing-dialog{padding:22px;max-height:92dvh;width:94vw}.wellbeing-dialog .modal-head h2{font-size:1.75rem}.breath-settings{grid-template-columns:1fr;gap:12px}.breath-stage{height:220px}.emotion-display{gap:22px;padding:17px 15px}.emotion-reading>strong{font-size:3.75rem}.emotion-reading>span{font-size:1rem;margin-left:5px}.intensity-values{gap:8px}.intensity-values button{flex:0 0 calc((100% - 40px)/6);min-width:0}.wellbeing-dialog .tool-controls{gap:9px}.wellbeing-dialog .tool-controls .button{font-size:1rem;padding:12px 9px}}
@media(max-width:360px){.wellbeing-dialog{padding:18px}.intensity-values button{flex-basis:calc((100% - 32px)/5);min-width:40px}.emotion-display{gap:12px}.emotion-reading>strong{font-size:3.25rem}.emotion-reading>span{display:block;margin:5px 0 0}.wellbeing-dialog .tool-controls{flex-direction:column}}
@media(prefers-reduced-motion:reduce){.thermometer-fill,.thermometer-bulb{transition:none}}
