/* MOVILPOOL · Simulador "Tu piscina en tu mano" */
.mps {
  --mps-scale: 1;
  --mps-bg: #050b16;
  --mps-app: #08111f;
  --mps-card: #101b30;
  --mps-card2: #16233d;
  --mps-line: rgba(140, 170, 220, .16);
  --mps-text: #f2f5fb;
  --mps-muted: #a7b2c7;
  --mps-dim: #6f7c95;
  --mps-blue: #2b7de1;
  --mps-blue2: #61a5fa;
  --mps-ok: #34c77b;
  --mps-warn: #f5b544;
  --mps-bad: #f0525a;
  --mps-font: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  color: var(--mps-text);
  font-family: var(--mps-font);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 420px;
}
.mps *, .mps *::before, .mps *::after { box-sizing: border-box; }
.mps [hidden] { display: none !important; }
.mps svg { display: block; }
.mps h3, .mps p { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
.mps img { max-width: none; border: 0; box-shadow: none; }
/* neutral button reset (beats theme resets without fighting components) */
.mps button {
  -webkit-appearance: none; appearance: none;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; background-color: transparent; box-shadow: none;
  font: inherit; color: inherit; line-height: inherit;
  text-transform: none; text-decoration: none; letter-spacing: inherit;
  cursor: pointer; white-space: normal;
}
.mps button:where(:hover, :focus, :active) { background-color: transparent; color: inherit; text-decoration: none; }
.mps button:focus-visible, .mps [tabindex]:focus-visible, .mps input:focus-visible { outline: 2px solid var(--mps-blue2); outline-offset: 2px; }
.mps button:disabled { cursor: default; opacity: .6; }

/* ------------------------------------------------ stage */
.mps-stage {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
}
.mps-phonecol { width: calc(404px * var(--mps-scale)); height: calc(824px * var(--mps-scale)); }
.mps-phone {
  width: 404px; height: 824px; padding: 12px;
  transform: scale(var(--mps-scale)); transform-origin: 0 0;
  border-radius: 58px;
  background: linear-gradient(145deg, #2a303b, #0c0f14 40%, #1b2029);
  box-shadow: 0 0 0 1.5px #3a4353 inset, 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -20px rgba(43, 125, 225, .35);
}
.mps-phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 46px; overflow: hidden;
  background: var(--mps-app);
  isolation: isolate;
}
.mps-phone__island {
  position: absolute; z-index: 30; top: 11px; left: 50%; width: 112px; height: 32px;
  transform: translateX(-50%); border-radius: 20px; background: #000;
}

/* phone <-> pool link (brand connection line) */
.mps-link { position: relative; height: 2px; align-self: center; }
.mps-link__line {
  position: absolute; left: -6px; right: -6px; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(97, 165, 250, .15), rgba(97, 165, 250, .55), rgba(97, 165, 250, .15));
}
.mps-link__line::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #cfe4ff; box-shadow: 0 0 12px 3px var(--mps-blue2); opacity: 0;
}
.mps-link__node {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center; border-radius: 50%;
  background: #0d1a2e; border: 1.5px solid rgba(97, 165, 250, .5); color: var(--mps-blue2);
}
.mps-link__node svg { width: 18px; height: 18px; }
.mps-link.is-pulse .mps-link__line::after { animation: mps-travel .55s ease-out; }
.mps-link.is-pulse .mps-link__node { animation: mps-ping .6s ease-out; }
@keyframes mps-travel { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 8px); opacity: .2; } }
@keyframes mps-ping { 0% { box-shadow: 0 0 0 0 rgba(97, 165, 250, .7); } 100% { box-shadow: 0 0 0 14px rgba(97, 165, 250, 0); } }

/* ------------------------------------------------ pool */
.mps-poolcol { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.mps-pool {
  position: relative; width: 100%;
  max-width: calc(824px * var(--mps-scale) * 10 / 7);
  aspect-ratio: 10 / 7;
  border-radius: 22px; overflow: hidden;
  background: #070b12;
  box-shadow: 0 0 0 1px var(--mps-line), 0 40px 90px -40px rgba(0, 0, 0, .9);
  user-select: none;
}
.mps-pool__svg, .mps-pool__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.mps-pool__fx { mix-blend-mode: screen; pointer-events: none; }
.mps-note { max-width: calc(824px * var(--mps-scale) * 10 / 7); margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--mps-dim); }

.mps-legend { position: absolute; left: 2.2%; top: 3%; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; }
.mps-lg {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 99px;
  background: rgba(8, 14, 26, .72); border: 1px solid var(--mps-line); color: var(--mps-dim);
  font-size: 12px; transition: color .25s, border-color .25s, background .25s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mps-lg svg { width: 18px; height: 15px; }
.mps-lg em { font-style: normal; }
.mps-lg.is-on { color: #fff; border-color: rgba(97, 165, 250, .6); background: rgba(43, 125, 225, .28); }

.mps-tools { position: absolute; right: 2.2%; top: 3%; display: flex; gap: 6px; z-index: 6; }
.mps .mps-tool {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px;
  background: rgba(8, 14, 26, .78); border: 1px solid var(--mps-line); color: var(--mps-text); font-size: 12.5px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s;
}
.mps .mps-tool:hover { border-color: rgba(97, 165, 250, .6); background: rgba(20, 34, 60, .9); }
.mps-tool svg { width: 15px; height: 15px; }
.mps-tool em { font-style: normal; }
.mps-dd { position: relative; }
.mps-dd__menu {
  position: absolute; right: 0; top: 38px; min-width: 190px; padding: 6px; border-radius: 14px;
  background: #0d1729; border: 1px solid var(--mps-line); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.mps .mps-dd__menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; }
.mps .mps-dd__menu button:hover { background: var(--mps-card2); }

.mps-coord {
  position: absolute; left: 50%; bottom: 5%; z-index: 5; width: min(80%, 540px); transform: translateX(-50%);
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px;
  background: rgba(10, 30, 60, .88); border: 1px solid rgba(97, 165, 250, .65);
  box-shadow: 0 0 40px -6px rgba(43, 125, 225, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mps-coord span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mps-blue); color: #fff; }
.mps-coord span svg { width: 18px; height: 18px; }
.mps-coord p { font-size: 13.5px; line-height: 1.4; }
.mps-coord.is-in { animation: mps-drop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes mps-drop { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.mps-callouts { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.mps-callout {
  position: absolute; transform: translate(-50%, calc(-100% - 22px)); white-space: nowrap;
  padding: 6px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  background: #fff; color: #0a1a30; box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.mps-callout::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 16px; margin-left: -1px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
}
.mps-callout.is-in { animation: mps-callout 2.6s ease forwards; }
@keyframes mps-callout {
  0% { opacity: 0; transform: translate(-50%, calc(-100% - 12px)); }
  10%, 80% { opacity: 1; transform: translate(-50%, calc(-100% - 22px)); }
  100% { opacity: 0; transform: translate(-50%, calc(-100% - 26px)); }
}

.mps-poolhint {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none;
  padding: 10px 16px; border-radius: 99px; font-size: 14px; color: #fff;
  background: rgba(8, 20, 40, .55); border: 1px dashed rgba(255, 255, 255, .45);
  animation: mps-breathe 2.4s ease-in-out infinite;
}
@keyframes mps-breathe { 50% { opacity: .55; } }

.mps-hud {
  position: absolute; left: 50%; bottom: 5.5%; transform: translate(-50%, 8px); z-index: 3;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 92%;
  opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none;
}
.mps-hud.is-on { opacity: 1; transform: translate(-50%, 0); }
.mps-hc {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px;
  font-size: 12.5px; color: #dfe8f7; background: rgba(4, 16, 36, .7); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .3s, background .3s;
}
.mps-hc { white-space: nowrap; }
.mps-hc b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.mps-hc i { width: 8px; height: 8px; border-radius: 50%; background: var(--mps-ok); }
.mps-hc[data-st="warn"] { border-color: var(--mps-warn); }
.mps-hc[data-st="warn"] i { background: var(--mps-warn); }
.mps-hc[data-st="bad"] { border-color: var(--mps-bad); background: rgba(70, 8, 16, .75); animation: mps-alarm 1.1s ease-in-out infinite; }
.mps-hc[data-st="bad"] i { background: var(--mps-bad); }
@keyframes mps-alarm { 50% { box-shadow: 0 0 0 4px rgba(240, 82, 90, .25); } }

.mps-heatchip {
  position: absolute; left: 50%; top: 27%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px;
  background: rgba(60, 20, 8, .7); border: 1px solid rgba(255, 150, 90, .6); color: #ffe6d6;
}
.mps-heatchip svg { width: 20px; height: 16px; }
.mps-heatchip b { color: #fff; font-variant-numeric: tabular-nums; }
.mps-heatchip[data-st="reached"], .mps-heatchip[data-st="off"] { background: rgba(8, 30, 20, .7); border-color: rgba(52, 199, 123, .6); color: #d8fbe8; }
.mps-heatchip[data-st="cooling"] { background: rgba(8, 24, 60, .7); border-color: rgba(97, 165, 250, .6); color: #dcebff; }

.mps-demo {
  position: absolute; left: 2.2%; bottom: 1.6%; z-index: 2; font-size: 10.5px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .55); text-transform: uppercase;
}

.mps-modal { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(3, 7, 14, .55); }
.mps-modal__card {
  width: min(88%, 420px); padding: 22px; border-radius: 20px; background: #0e1a2f; border: 1px solid var(--mps-line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6); font-size: 14.5px; line-height: 1.5; color: var(--mps-muted);
}
.mps-modal__t { font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 8px !important; }
.mps-modal__b { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ------------------------------------------------ app */
.mps-app { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 15px; background: radial-gradient(120% 60% at 50% 0%, #0d1a30 0%, var(--mps-app) 60%); }
.mps-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 52px 14px 10px; background: rgba(13, 25, 45, .9); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.mps-pill { display: flex; align-items: center; height: 46px; border-radius: 99px; background: #0b1528; border: 1px solid rgba(120, 150, 200, .25); }
.mps .mps-pill--one { width: 62px; justify-content: center; color: #fff; }
.mps-pill--one svg { width: 24px; height: 24px; }
.mps-pill--two { gap: 4px; padding: 0 8px; }
.mps .mps-pill--two button { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; position: relative; }
.mps-pill--two svg { width: 23px; height: 23px; }
.mps-bar__logo { width: 150px; height: auto; }
.mps-badge {
  position: absolute; right: 5px; bottom: 5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px;
  background: #e0282e; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #0b1528;
}
.mps-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 14px 118px; scrollbar-width: none; overscroll-behavior: contain; }
.mps-body::-webkit-scrollbar { display: none; }
.mps-screen { display: none; }
.mps-screen.is-active { display: block; animation: mps-in .25s ease; }
@keyframes mps-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mps-card { position: relative; margin-bottom: 12px; padding: 18px; border-radius: 26px; background: var(--mps-card); border: 1px solid var(--mps-line); }
.mps-card h3, .mps-rowhead h3 { font-size: 17px; font-weight: 700; }
.mps-card > h3 { margin-bottom: 10px; }
.mps-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mps-h-ico { display: flex; align-items: center; gap: 8px; }
.mps-h-ico svg { width: 20px; height: 20px; color: var(--mps-blue2); }
.mps-muted { color: var(--mps-muted); }
.mps-small { font-size: 13px; line-height: 1.45; margin-bottom: 10px !important; }
.mps-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 13px; background: #243049; color: #cfd6e4; }
.mps-tag--ok { background: rgba(28, 110, 64, .35); color: #4ee08f; }
.mps-weather { display: flex; justify-content: space-between; align-items: center; }
.mps-weather__loc { font-size: 15px; font-weight: 700; margin-bottom: 4px !important; }
.mps-weather__row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px !important; }
.mps-weather__row b { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.mps-weather__row span { color: var(--mps-muted); }
.mps-weather__ico { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: #2a2f5c; color: #d7d4ec; }
.mps-weather__ico svg { width: 40px; height: 40px; }

.mps-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mps-gauge { display: flex; flex-direction: column; align-items: center; padding: 10px 6px 8px; border-radius: 20px; background: rgba(5, 12, 26, .55); border: 1px solid var(--mps-line); }
.mps-card .mps-gauge { background: rgba(5, 12, 26, .5); }
.mps-gauge__label { font-size: 12.5px; color: #cfd6e4; }
.mps-gauge__dial { position: relative; width: 84px; height: 76px; }
.mps-gauge__dial svg { width: 84px; height: 84px; }
.mps-gauge__track { fill: none; stroke: #cac7d8; stroke-opacity: .28; stroke-width: 7; stroke-linecap: round; }
.mps-gauge__val { fill: none; stroke: var(--mps-blue2); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .5s ease, stroke .3s; }
.mps-gauge[data-st="warn"] .mps-gauge__val { stroke: var(--mps-warn); }
.mps-gauge[data-st="bad"] .mps-gauge__val { stroke: var(--mps-bad); }
.mps-gauge[data-st="bad"] { border-color: rgba(240, 82, 90, .55); }
.mps-gauge__num { position: absolute; left: 0; right: 0; top: 24px; display: flex; flex-direction: column; align-items: center; }
.mps-gauge__num b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mps-gauge__num small { font-size: 11px; color: var(--mps-muted); }
.mps .mps-linkbtn { display: flex; align-items: center; gap: 4px; margin-left: auto; color: var(--mps-blue2); font-size: 15px; }
.mps-linkbtn svg { width: 18px; height: 18px; }
.mps .mps-linkbtn--l { margin: 4px 0 10px; font-size: 13.5px; }
.mps-rowhead { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.mps-hint {
  position: relative; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; font-size: 13px; text-align: center;
  background: var(--mps-blue); color: #fff; animation: mps-breathe 2.4s ease-in-out infinite;
}
.mps-hint::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--mps-blue); transform: rotate(45deg); }
.mps-devs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mps-dev { position: relative; border-radius: 24px; background: var(--mps-card); border: 1px solid var(--mps-line); transition: border-color .25s; }
.mps-dev.is-on { border-color: rgba(97, 165, 250, .45); }
.mps .mps-dev__open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 16px 14px 14px; text-align: left; }
.mps-dev__icon { position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #1b2438; color: #8390a8; margin-bottom: 12px; transition: background .25s, color .25s; }
.mps-dev__icon svg { width: 34px; height: 30px; }
.mps-dev.is-on .mps-dev__icon { background: #17305a; color: var(--mps-blue2); }
.mps-dot { position: absolute; right: -3px; top: -3px; width: 13px; height: 13px; border-radius: 50%; background: #5b6579; border: 2px solid var(--mps-card); }
.mps-dev.is-on .mps-dot { background: var(--mps-ok); }
.mps-dev.is-alarm .mps-dot { background: var(--mps-bad); }
.mps-dev__name { font-weight: 700; font-size: 15px; }
.mps-dev__sub { font-size: 12.5px; color: var(--mps-muted); margin-top: 2px; }
.mps .mps-onoff {
  position: absolute; right: 12px; top: 28px; height: 30px; padding: 0 11px; border-radius: 99px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; background: #243049; color: #9aa6bd; transition: background .25s, color .25s;
}
.mps .mps-onoff.is-on { background: rgba(28, 110, 64, .4); color: #4ee08f; }

.mps-power { display: flex; align-items: center; gap: 10px; min-height: 124px; }
.mps-power__txt { flex: 1; min-width: 0; }
.mps-power__txt h3 { font-size: 17px; margin-bottom: 4px; }
.mps-power__txt p { font-size: 13.5px; color: var(--mps-muted); }
.mps-it { font-style: italic; }
.mps .mps-gear { width: 36px; height: 36px; display: grid; place-items: center; color: var(--mps-blue2); }
.mps-gear svg { width: 26px; height: 26px; }
.mps .mps-power__btn {
  flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid #5f6b80; color: #8e99ae; transition: all .3s;
}
.mps-power__btn svg { width: 34px; height: 34px; }
.mps .mps-power__btn.is-on { border-color: var(--mps-blue2); color: #fff; background: var(--mps-blue); box-shadow: 0 0 0 6px rgba(43, 125, 225, .18), 0 0 30px rgba(43, 125, 225, .6); }

.mps-big { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mps .mps-range {
  --p: 50%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 4px 0 10px; padding: 0;
  background: transparent; border: 0; box-shadow: none; cursor: pointer;
}
.mps .mps-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--mps-blue2) var(--p), #26324a var(--p)); }
.mps .mps-range::-moz-range-track { height: 8px; border-radius: 99px; background: #26324a; }
.mps .mps-range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--mps-blue2); }
.mps .mps-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.mps .mps-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }

.mps-seg { display: flex; gap: 8px; }
.mps-seg--wrap { flex-wrap: wrap; }
.mps .mps-seg__b {
  flex: 1 1 0; min-height: 44px; padding: 8px 10px; border-radius: 99px; font-size: 14px; text-align: center;
  border: 1px solid rgba(120, 150, 200, .28); color: #b6c0d3; transition: all .2s;
}
.mps-seg--wrap .mps-seg__b { flex: 1 1 40%; }
.mps .mps-seg__b.is-on { background: #3a4660; border-color: #56648a; color: #fff; }
.mps .mps-seg__b:hover { border-color: rgba(97, 165, 250, .6); }
.mps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mps-stats div { padding: 10px; border-radius: 14px; background: rgba(5, 12, 26, .55); }
.mps-stats span { display: block; font-size: 11.5px; color: var(--mps-muted); }
.mps-stats b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.mps-foot { margin-top: 12px !important; font-size: 12px; color: var(--mps-dim); line-height: 1.45; }
.mps-label { font-size: 13px; color: var(--mps-muted); margin: 4px 0 8px !important; }
.mps .mps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 99px; background: var(--mps-blue2); color: #06101f; font-weight: 700; font-size: 15px; transition: filter .2s;
}
.mps .mps-btn:hover { filter: brightness(1.08); }
.mps .mps-outline {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 12px;
  border-radius: 99px; border: 1px solid rgba(120, 150, 200, .28); color: var(--mps-blue2); font-size: 15px;
}
.mps-modal .mps-outline { width: auto; margin: 0; padding: 0 18px; min-height: 46px; }
.mps-outline svg { width: 22px; height: 22px; }
.mps-progress { height: 5px; margin-top: 12px; border-radius: 99px; background: #1f2a40; overflow: hidden; }
.mps-progress i { display: block; height: 100%; width: 0; background: var(--mps-blue2); }
.mps-alarm { background: rgba(80, 14, 22, .55); border-color: rgba(240, 82, 90, .6); }
.mps-alarm .mps-h-ico svg { color: var(--mps-bad); }
.mps-alarm p { margin-bottom: 10px !important; font-size: 14px; }
.mps-statusline { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mps-line); font-size: 14px; color: var(--mps-muted); }
.mps-state { color: #fff; }
.mps-state[data-st="producing"], .mps-state[data-st="heating"] { color: #4ee08f; }
.mps-state[data-st="cooling"] { color: var(--mps-blue2); }
.mps-state[data-st="reached"], .mps-state[data-st="standby"] { color: var(--mps-warn); }
.mps-state[data-st="alarm"] { color: var(--mps-bad); }

/* colour wheel */
.mps-wheelwrap { display: grid; place-items: center; padding: 6px 0 14px; }
.mps-wheel {
  position: relative; width: 190px; height: 190px; border-radius: 50%; touch-action: none; cursor: crosshair;
  background: conic-gradient(from 0deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  -webkit-mask: radial-gradient(circle, transparent 52px, #000 53px); mask: radial-gradient(circle, transparent 52px, #000 53px);
}
.mps-wheel__knob { position: absolute; inset: 0; pointer-events: none; }
.mps-wheel__knob::after { content: ""; position: absolute; left: 50%; top: 4px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.mps-wheel__center { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; }
.mps-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.mps .mps-sw { aspect-ratio: 1; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .15); transition: transform .15s; }
.mps .mps-sw:hover { transform: scale(1.08); }
.mps .mps-sw.is-on { border-color: #fff; box-shadow: 0 0 0 3px rgba(97, 165, 250, .6); }

/* heat arc */
.mps-temprow { display: flex; justify-content: space-between; margin: 6px 0 4px; }
.mps-temprow span { display: block; font-size: 13px; color: #cfd6e4; }
.mps-temprow b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mps-r { text-align: right; }
.mps-blue { color: var(--mps-blue2); }
.mps-arc { position: relative; margin: 6px auto 0; max-width: 300px; }
.mps-arc svg { width: 100%; height: auto; touch-action: none; cursor: pointer; }
.mps-arc__track { fill: none; stroke: #cac7d8; stroke-opacity: .3; stroke-width: 12; stroke-linecap: round; }
.mps-arc__val { fill: none; stroke: #cac7d8; stroke-width: 12; stroke-linecap: round; transition: stroke .3s; }
.mps-arc.is-on .mps-arc__val { stroke: #ff8a4c; }
.mps-arc__now { fill: var(--mps-blue2); stroke: #0a1322; stroke-width: 2; }
.mps-arc__knob { fill: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.mps-arc__c { position: absolute; left: 0; right: 0; top: 36%; text-align: center; pointer-events: none; }
.mps-arc__c b { display: block; font-size: 50px; font-weight: 700; line-height: 1; }
.mps-arc__c span { font-size: 18px; font-weight: 700; }
.mps .mps-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1b2640; border: 1px solid var(--mps-line); color: #fff; }
.mps-round svg { width: 20px; height: 20px; }
.mps .mps-arc__m, .mps .mps-arc__p { position: absolute; bottom: 4px; }
.mps .mps-arc__m { left: 28%; }
.mps .mps-arc__p { right: 28%; }
.mps-arc__min, .mps-arc__max { position: absolute; bottom: -18px; font-size: 13px; color: #cfd6e4; }
.mps-arc__min { left: 0; }
.mps-arc__max { right: 0; }
.mps-arc + .mps-statusline { margin-top: 28px; }

/* notifications */
.mps-nhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mps-nhead h3 { font-size: 20px; font-weight: 400; }
.mps-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: #0d1729; border: 1px solid var(--mps-line); }
.mps .mps-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 12px; font-size: 14px; color: var(--mps-blue2); }
.mps-tabs svg { width: 18px; height: 18px; }
.mps .mps-tabs button.is-on { background: #1c3561; color: #fff; }
.mps .mps-notif {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 10px; padding: 14px 14px 14px 16px; text-align: left;
  border-radius: 18px; background: var(--mps-card); border: 1px solid var(--mps-line); border-left: 3px solid var(--mps-blue2);
}
.mps .mps-notif--alert { border-left-color: var(--mps-bad); }
.mps .mps-notif--ok { border-left-color: var(--mps-ok); }
.mps-notif span { flex: 1; min-width: 0; }
.mps-notif b { display: block; font-size: 14.5px; }
.mps-notif small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mps-muted); line-height: 1.4; }
.mps-notif em { display: block; margin-top: 4px; font-size: 11.5px; font-style: normal; color: var(--mps-dim); }
.mps-notif > svg { flex: none; width: 22px; height: 22px; color: var(--mps-blue2); }
.mps-empty { text-align: center; padding: 30px 0; font-size: 14px; }

/* toasts, nav, sheet */
.mps-toasts { position: absolute; left: 14px; right: 14px; bottom: 104px; z-index: 20; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.mps-toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; font-size: 13.5px;
  background: #e9f1ff; color: #0a1a30; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); animation: mps-toast .3s ease;
  transition: opacity .35s, transform .35s;
}
.mps-toast svg { flex: none; width: 18px; height: 18px; color: var(--mps-blue); }
.mps-toast--alert { background: #ffe4e6; }
.mps-toast--alert svg { color: #d21f2c; }
.mps-toast--ok svg { color: #13924d; }
.mps-toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes mps-toast { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mps-nav {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 15; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px; border-radius: 28px; background: rgba(22, 24, 31, .94); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mps .mps-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; font-size: 11.5px; color: #e6e9f0; letter-spacing: .02em; }
.mps-nav span { display: grid; place-items: center; width: 46px; height: 38px; color: #c9cfdb; }
.mps-nav svg { width: 36px; height: 30px; }
.mps .mps-nav button.is-active { color: var(--mps-blue2); }
.mps .mps-nav button.is-active span { color: var(--mps-blue2); }
.mps-sheet { position: absolute; inset: 0; z-index: 25; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-start; }
.mps-sheet__panel { width: 78%; height: 100%; padding: 60px 16px 20px; background: #0c1628; border-right: 1px solid var(--mps-line); animation: mps-slide .25s ease; }
@keyframes mps-slide { from { transform: translateX(-100%); } to { transform: none; } }
.mps-sheet__t { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mps-dim); margin-bottom: 10px !important; }
.mps .mps-sheet__panel button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 6px; font-size: 16px; border-bottom: 1px solid var(--mps-line); }
.mps-sheet__panel button svg { width: 18px; height: 18px; color: var(--mps-dim); }
.mps .mps-sheet__panel .mps-sheet__reset { justify-content: flex-start; gap: 10px; margin-top: 16px; border: 0; color: var(--mps-blue2); }
.mps-sheet__reset svg { color: var(--mps-blue2) !important; }

/* ------------------------------------------------ stacked (tablet / mobile) */
.mps--stack .mps-stage { grid-template-columns: 1fr; gap: 12px; }
.mps--stack .mps-poolcol { order: -1; }
.mps--stack .mps-link { display: none; }
.mps--stack .mps-pool { max-width: none; border-radius: 16px; }
.mps--stack .mps-note { max-width: none; }
.mps--stack .mps-phonecol { width: 100%; height: auto; display: flex; justify-content: center; }
.mps--stack .mps-phone {
  transform: none; width: 100%; max-width: 430px; padding: 7px; border-radius: 40px;
  height: clamp(540px, calc(100svh - var(--mps-top, 0px) - (min(100vw, 820px) - 32px) * .7 - 36px), 780px);
}
.mps--stack .mps-phone__screen { border-radius: 33px; }
.mps--stack .mps-phone__island { display: none; }
.mps--stack .mps-bar { padding-top: 14px; }
.mps--stack .mps-note { display: none; }
.mps-pool.has-coord .mps-hud { opacity: 0; }
@media (max-width: 560px) {
  .mps-tool em { display: none; }
  .mps .mps-tool { height: 28px; padding: 0 8px; }
  .mps-tool svg { width: 14px; height: 14px; }
  .mps-lg em { display: none; }
  .mps-lg { padding: 4px 6px; }
  .mps-lg svg { width: 16px; height: 13px; }
  .mps-hud { gap: 4px; bottom: 3.5%; flex-wrap: nowrap; width: 96%; }
  .mps-hc { font-size: 9.5px; padding: 3px 6px; gap: 4px; }
  .mps-hc i { width: 6px; height: 6px; }
  .mps-coord { top: auto; bottom: 3%; padding: 7px 10px; width: 94%; gap: 8px; border-radius: 12px; }
  .mps-coord p { font-size: 11px; line-height: 1.35; }
  .mps-coord span { width: 24px; height: 24px; }
  .mps-coord span svg { width: 14px; height: 14px; }
  .mps-callout { font-size: 10.5px; padding: 3px 8px; }
  .mps-demo { bottom: auto; top: 12%; font-size: 8.5px; }
  .mps-heatchip { font-size: 10.5px; top: 29%; padding: 4px 9px; }
  .mps-poolhint { font-size: 12px; padding: 7px 12px; }
  .mps-dd__menu { top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .mps *, .mps *::before, .mps *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
