/* Inicio de escritorio del cliente con piscinero asignado (prefijo .tph-), según la maqueta «Tu piscina hoy» (client-assigned-desk.js). Va dentro del marco de siempre (menú lateral azul y encabezado).
   En el teléfono (hasta 760 px) lo reemplaza el Inicio tipo app (client-assigned-app.css). Solo modo claro, como el resto del panel del cliente. */
body[data-page="panel"] .tph-scope{--tph-blue:#0b63f6;--tph-blue-d:#0850c9;--tph-navy:#0b2a63;--tph-ink:#16284a;--tph-mut:#6a7a96;--tph-line:#e3ebf8;--tph-soft:#eef4ff;--tph-ok:#16a34a;--tph-bad:#e5384b;--tph-warn:#f59e0b;color:var(--tph-ink)}
.tph-scope *{box-sizing:border-box}
:where(.tph-scope) button{appearance:none;font:inherit;color:inherit;margin:0;padding:0;border:0;background:none;text-align:left;cursor:pointer}
:where(.tph-scope) a{color:inherit;text-decoration:none}
:where(.tph-scope) :is(h1,h2,h3,ul,table){margin:0;letter-spacing:0}
:where(.tph-scope) ul{padding:0;list-style:none}
:where(.tph-scope) small{font-size:12.5px;line-height:1.35}
body[data-page="panel"] .tph-scope p{margin:0;color:var(--tph-mut)}
body[data-page="panel"] .tph-scope :is(h1,h2,h3){color:var(--tph-navy)}
body[data-page="panel"] .tph-scope small{color:var(--tph-mut)}
.tph-scope svg.ah-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
body[data-page="panel"] .tph-scope svg.aa-bi{width:30px;height:30px;flex:none}
.tph-scope svg.ah-i.is-dots{fill:currentColor;stroke:none}

.tph-home{display:grid;gap:14px;min-width:0;container-type:inline-size}
.tph-row{display:grid;gap:14px;align-items:stretch;min-width:0}
.tph-row>*{min-width:0}
.tph-r2{grid-template-columns:minmax(0,24fr) minmax(0,23fr) minmax(0,24fr) minmax(0,27fr)}
.tph-r3,.tph-r4{grid-template-columns:minmax(0,38.8fr) minmax(0,27.6fr) minmax(0,32.4fr)}
.tph-r5{grid-template-columns:minmax(0,50fr) minmax(0,50fr)}
.tph-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px 18px;border:1px solid var(--tph-line);border-radius:18px;background:#fff;box-shadow:0 6px 22px rgba(11,42,99,.06)}
.tph-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
body[data-page="panel"] .tph-scope :is(.tph-h h2,.tph-card>h2){font-size:19px;line-height:1.2;font-weight:800}
body[data-page="panel"] .tph-scope .tph-h p{margin-top:3px;font-size:12.5px}
.tph-link{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--tph-blue);font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;text-decoration:none}
.tph-link .ah-i{width:13px;height:13px;stroke-width:2.6}
.tph-link:hover{text-decoration:underline}
.tph-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border-radius:12px;background:var(--tph-blue);color:#fff;font-size:14px;font-weight:700;cursor:pointer}
.tph-btn .ah-i{width:15px;height:15px;stroke-width:2.6}
.tph-btn.is-soft{min-height:38px;padding:0 15px;background:#e6efff;color:var(--tph-blue)}
.tph-btn.is-soft:hover{background:#d8e6ff}
.tph-btn.is-small{min-height:36px;padding:0 14px;font-size:13.5px}
.tph-chip{display:inline-flex;align-items:center;gap:5px;flex:none;padding:3px 11px;border-radius:99px;font-size:12px;line-height:1.5;font-weight:700;white-space:nowrap;background:#eef1f6;color:var(--tph-mut)}
.tph-chip .ah-i{width:13px;height:13px;stroke-width:3}
.tph-chip.is-ok{background:#e1f6e8;color:#15803d}.tph-chip.is-warn{background:#fff1d6;color:#b86e00}.tph-chip.is-orange{background:#ffe8d2;color:#c2540a}
.tph-chip.is-bad{background:#fde5e7;color:#d12c3d}.tph-chip.is-blue{background:#1263f0;color:#fff}.tph-chip.is-wait{background:#eaf0fb;color:#4a6290}
.tph-muted{color:var(--tph-mut);font-size:13.5px;line-height:1.45}
.tph-foot{display:flex;gap:7px;align-items:center;color:var(--tph-mut);font-size:12px;line-height:1.35}
.tph-foot .ah-i{width:15px;height:15px;color:#2fb564}
.tph-empty{display:grid;justify-items:center;align-content:center;gap:5px;flex:1;padding:18px 10px;text-align:center}
.tph-empty>.ah-i{width:34px;height:34px;color:#9bb4dd}
body[data-page="panel"] .tph-scope .tph-empty>svg.aa-bi{width:36px;height:36px}
.tph-empty b{color:var(--tph-navy);font-size:15px}
.tph-empty small{max-width:340px;font-size:13.5px}
.tph-empty .tph-btn{margin-top:8px}
.tph-lock{display:grid;justify-items:center;align-content:center;gap:6px;flex:1;padding:18px 14px;border:1.5px dashed #bcd0f0;border-radius:14px;background:var(--tph-soft);text-align:center}
.tph-lock .ah-i{width:28px;height:28px;color:var(--tph-blue)}
.tph-lock p{font-size:13.5px;line-height:1.4;max-width:340px}

/* ---------- Portada ---------- */
.tph-hero{position:relative;display:grid;grid-template-columns:minmax(0,35fr) minmax(0,36fr) minmax(0,29fr);align-items:center;gap:18px;min-height:300px;padding:24px 22px;border-radius:22px;overflow:hidden;
 background:linear-gradient(90deg,rgba(255,255,255,.93) 0,rgba(255,255,255,.78) 30%,rgba(255,255,255,.12) 56%,rgba(255,255,255,0) 100%),var(--tph-photo,linear-gradient(135deg,#7fc9ff,#e6f5ff 60%,#bfe6ff)) center/cover no-repeat;box-shadow:0 10px 30px rgba(11,42,99,.14)}
.tph-hero>*{position:relative;z-index:1}
.tph-hero-copy{display:grid;gap:7px;align-content:center;min-width:0}
.tph-hello{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--tph-navy)}
body[data-page="panel"] .tph-scope .tph-hello{color:var(--tph-navy)}
.tph-hello .ah-i{width:19px;height:19px;color:#2f8cff}
body[data-page="panel"] .tph-scope .tph-hero h1{margin:0;font-size:clamp(36px,3.5cqw,58px);line-height:1.04;font-weight:800;letter-spacing:-.01em;color:#0b2a63}
body[data-page="panel"] .tph-scope .tph-lead{max-width:460px;font-size:16px;line-height:1.4;color:#1d3a6e}
.tph-status{display:inline-flex;align-items:center;gap:14px;justify-self:start;margin-top:8px;padding:9px 26px 9px 9px;border-radius:99px;background:rgba(255,255,255,.88);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 6px 20px rgba(11,42,99,.12)}
.tph-status-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#16a864;color:#fff;flex:none}
.tph-status-ico .ah-i{width:28px;height:28px;stroke-width:3.2}
.tph-status b{display:block;font-size:clamp(17px,1.5cqw,23px);line-height:1.15;color:#118a52}
.tph-status small{display:block;margin-top:2px;font-size:13px;color:#4b6384}
.tph-hero.is-warn .tph-status-ico{background:#f59e0b}.tph-hero.is-warn .tph-status b{color:#b86e00}
.tph-hero.is-idle .tph-status-ico{background:#4a7bd8}.tph-hero.is-idle .tph-status b{color:#2c5099}
.tph-ba{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;align-self:center;height:252px;padding:6px;border-radius:16px;background:#fff;box-shadow:0 10px 28px rgba(11,42,99,.22);overflow:hidden}
.tph-tile{position:relative;margin:0;overflow:hidden;background:#dbe8fb}
.tph-tile.is-before{border-radius:11px 0 0 11px}.tph-tile.is-after{border-radius:0 11px 11px 0}
.tph-tile img{display:block;width:100%;height:100%;object-fit:cover}
.tph-tile-empty{display:grid;place-items:center;width:100%;height:100%;color:#8aa6d6}
.tph-tile figcaption{position:absolute;left:8px;bottom:8px;display:grid;padding:4px 10px;border-radius:7px;background:rgba(11,27,61,.72);color:#fff}
.tph-tile.is-after figcaption{left:auto;right:8px;text-align:right}
.tph-tile figcaption b{font-size:12.5px;line-height:1.2}
body[data-page="panel"] .tph-scope .tph-tile figcaption small{color:rgba(255,255,255,.85);font-size:10.5px}
.tph-swap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:#2f6fe4;box-shadow:0 3px 10px rgba(11,42,99,.3)}
.tph-swap .ah-i{width:18px;height:18px}
.tph-ba.is-empty{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:center;gap:5px;padding:14px;background:rgba(255,255,255,.88);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);text-align:center}
.tph-ba.is-empty .ah-i{width:32px;height:32px;color:#6d94d6}
.tph-ba.is-empty b{color:var(--tph-navy);font-size:15px}
body[data-page="panel"] .tph-scope .tph-ba.is-empty small{font-size:12.5px;color:#4b6384}
.tph-changes{align-self:center;display:grid;gap:12px;padding:18px 20px;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 10px 28px rgba(11,42,99,.2)}
body[data-page="panel"] .tph-scope .tph-changes h2{font-size:clamp(16px,1.3cqw,20px);line-height:1.2;font-weight:800}
.tph-changes ul{display:grid;gap:11px}
.tph-changes li{display:grid;grid-template-columns:28px 22px minmax(0,1fr);align-items:center;gap:9px}
.tph-tick{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#16a864;color:#fff}
.tph-tick .ah-i{width:16px;height:16px;stroke-width:3.2}
.tph-changes li.is-bad .tph-tick{background:#e5384b}.tph-changes li.is-warn .tph-tick{background:#f59e0b}
.tph-ci{display:grid;place-items:center;color:#2f8cff}
.tph-ci .ah-i{width:20px;height:20px}
.tph-ci.is-calendar{color:#1263f0}.tph-ci.is-check{color:#16a864}.tph-ci.is-warn{color:#f59e0b}
body[data-page="panel"] .tph-scope .tph-changes p{font-size:14px;line-height:1.3;color:var(--tph-ink)}
body[data-page="panel"] .tph-scope .tph-changes .tph-foot,body[data-page="panel"] .tph-scope .tph-changes .tph-muted{font-size:12px}

/* ---------- Cuenta del mes, próxima visita, última visita y clima ---------- */
.tph-account,.tph-next,.tph-last{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:1fr auto;align-items:start;gap:8px 14px}
.tph-ico{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#e4eefc;color:#2f6fe4;flex:none}
.tph-ico .ah-i{width:28px;height:28px}
.tph-ico.is-ok{background:#dff5e6;color:#16a864}.tph-ico.is-warn{background:#fff1d6;color:#d98a00}.tph-ico.is-bad{background:#fde5e7;color:#e5384b}.tph-ico.is-muted{background:#eaeff7;color:#6a7a96}
.tph-c-body{display:grid;gap:3px;min-width:0;align-content:start}
.tph-c-body>small{font-size:13px;font-weight:600;color:var(--tph-ink)}
body[data-page="panel"] .tph-scope .tph-c-body>small{color:var(--tph-ink)}
.tph-c-body strong{font-size:clamp(20px,1.7cqw,27px);line-height:1.15;font-weight:800;color:var(--tph-navy)}
.tph-c-body strong.is-ok{color:#16a864}.tph-c-body strong.is-warn{color:#d98a00}.tph-c-body strong.is-bad{color:#e5384b}.tph-c-body strong.is-muted{color:var(--tph-mut)}
.tph-sub{font-size:13px;color:var(--tph-mut)}
.tph-amount{margin-top:4px;font-size:clamp(18px,1.4cqw,22px);font-weight:800;color:var(--tph-navy)}
.tph-due{font-weight:700}.tph-due.is-warn{color:#b86e00}.tph-due.is-bad{color:#d12c3d}
.tph-account>.tph-btn{grid-column:2;justify-self:end}
.tph-card-link{grid-column:2;justify-self:start;align-self:end}
.tph-last .tph-card-link{justify-self:end}
.tph-day{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.tph-day strong{font-size:clamp(16px,1.3cqw,19px)}
body[data-page="panel"] .tph-scope .tph-sub{color:var(--tph-mut)}
.tph-stats{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:4px 14px;margin-top:6px}
.tph-stats small{display:block;font-size:12px;white-space:nowrap}
.tph-stats b{display:block;font-size:13.5px;color:var(--tph-navy);white-space:nowrap}
.tph-wx-card{position:relative;overflow:hidden;justify-content:center;background:linear-gradient(120deg,#fff 0,#f1f8ff 48%,#d9ecff 100%)}
.tph-wx-copy{position:relative;z-index:1;display:grid;gap:6px}
.tph-wx-copy>small{font-size:13px;font-weight:600;color:var(--tph-ink)}
body[data-page="panel"] .tph-scope .tph-wx-copy>small{color:var(--tph-ink)}
.tph-wx{display:flex;align-items:center;gap:12px;min-height:64px}
.tph-wx>svg{width:62px;height:62px;flex:none}
.tph-wx-t{font-size:clamp(36px,3.1cqw,52px);line-height:1;font-weight:800;color:var(--tph-navy)}
.tph-wx-d{display:grid;gap:2px}
.tph-wx-d em{font-style:normal;font-size:15px;font-weight:700;color:var(--tph-navy)}
.tph-wx-d small{font-size:12.5px}
.tph-wx-wait{font-size:13.5px;color:var(--tph-mut)}
.tph-leaves{position:absolute;right:-6px;top:-4px;width:46%;height:100%;fill:#7fc9a0;opacity:.34;pointer-events:none}

/* ---------- Estado de la piscina ---------- */
.tph-pt{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13.5px}
.tph-pt th,.tph-pt td{padding:9px 5px;text-align:left;vertical-align:middle}
.tph-pt th:nth-child(1){width:25%}.tph-pt th:nth-child(2){width:20%}.tph-pt th:nth-child(3){width:21%}.tph-pt th:nth-child(4){width:15%}.tph-pt th:nth-child(5){width:19%}
.tph-pt thead th{padding-top:2px;padding-bottom:8px;font-size:12.5px;font-weight:600;color:var(--tph-mut);line-height:1.25}
.tph-pt thead small{display:block;font-size:11px;font-weight:500}
.tph-pt tbody tr+tr>*{border-top:1px solid var(--tph-line)}
.tph-pt tbody th{font-weight:700;color:var(--tph-navy)}
.tph-th{display:flex;align-items:center;gap:8px;min-width:0;line-height:1.2}
.tph-th .tph-pi{flex:none}
.tph-pi{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#e9f1ff;color:#2f6fe4}
.tph-pi .ah-i{width:16px;height:16px}
.tph-pi.is-ok{background:#dff5e6;color:#16a864}
.tph-pt td{font-weight:600;color:var(--tph-ink)}
.tph-pt td.is-ok{color:#16a864;font-weight:800}.tph-pt td.is-bad{color:#e5384b;font-weight:800}
.tph-ar{display:inline-grid;vertical-align:middle;margin-right:5px;color:#9fb0cc}
.tph-ar .ah-i{width:12px;height:12px;stroke-width:2.8}
.tph-rg{font-size:12px;font-weight:500;color:var(--tph-mut)}
.tph-bar{display:block;height:9px;border-radius:99px;background:#e6edf8;overflow:hidden}
.tph-bar i{display:block;height:100%;border-radius:99px;background:#22c55e}
.tph-bar.is-bad i{background:#ef4444}.tph-bar.is-muted i{background:#cbd5e6}
.tph-gen .tph-chip{display:inline-block;padding:3px 9px;font-size:10.5px;line-height:1.2;white-space:normal;text-align:center}
.tph-own{display:flex;align-items:flex-start;gap:8px;padding:9px 12px;border-radius:12px;background:var(--tph-soft);font-size:12.5px;line-height:1.4;color:#34507c}
body[data-page="panel"] .tph-scope .tph-own{color:#34507c}
.tph-own .ah-i{width:17px;height:17px;color:var(--tph-blue);margin-top:1px}

/* ---------- Mi piscinero asignado ---------- */
.tph-pro-id{display:flex;align-items:center;gap:16px}
.tph-avatar{display:inline-grid;place-items:center;width:84px;height:84px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#2d8cff,#0b63f6);color:#fff;font-size:28px;font-weight:700;flex:none;box-shadow:0 0 0 3px #fff,0 6px 16px rgba(11,42,99,.2)}
.tph-avatar img{width:100%;height:100%;object-fit:cover;display:block}
body[data-page="panel"] .tph-scope .tph-pro-id h3{font-size:20px;line-height:1.2;font-weight:800}
.tph-pro-id small{display:block;margin-top:2px;font-size:13.5px}
.tph-rate{display:flex;align-items:center;gap:5px;margin-top:5px}
.tph-rate b{font-size:14px;color:var(--tph-navy)}
.tph-star{color:#f5a623;font-size:17px;line-height:1}
.tph-rate.is-none{margin-top:3px}
.tph-pro-next{display:flex;align-items:center;gap:11px;padding:10px 14px;border-radius:12px;background:#eef4ff}
.tph-pro-next>.ah-i{width:24px;height:24px;color:#2f6fe4}
.tph-pro-next small{display:block;font-size:12.5px}
.tph-pro-next b{display:block;font-size:13.5px;line-height:1.3;color:var(--tph-navy)}
.tph-pro-req{width:100%;margin-top:10px;min-height:44px}
.tph-tg{display:grid;gap:10px;margin-top:auto}
.tph-tg li{display:flex;align-items:center;gap:11px;min-width:0}
.tph-tg-ico{display:grid;place-items:center;flex:none;width:24px;color:#5b7094}
.tph-tg-ico .ah-i{width:20px;height:20px}
.tph-tg-t{flex:1;min-width:0;font-size:14px;font-weight:500;color:var(--tph-ink)}
.tph-sw{position:relative;flex:none;width:46px;height:26px;border-radius:99px;background:#aebbd3;transition:background .15s}
.tph-sw::after{content:"";position:absolute;inset:-8px -4px}
.tph-sw i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(10,30,70,.3);transition:transform .15s}
.tph-sw.is-on{background:#1263f0}.tph-sw.is-on i{transform:translateX(20px)}
.tph-sw.is-wait{opacity:.55}

/* ---------- Próximas visitas y visitas realizadas ---------- */
.tph-visits ul{display:grid;gap:2px}
.tph-vrow{display:grid;grid-template-columns:30px minmax(0,1fr) auto auto;align-items:center;gap:10px;width:100%;padding:10px 10px;border-radius:12px}
.tph-visits li+li .tph-vrow:not(.is-next){border-top:1px solid var(--tph-line);border-radius:0}
.tph-vrow:hover{background:#f4f8ff}
.tph-vrow.is-next{background:#eaf2ff}
.tph-vrow.is-next:hover{background:#dfeaff}
.tph-vd{display:grid;gap:1px;min-width:0}
.tph-vd b{font-size:14px;line-height:1.25;color:var(--tph-navy);white-space:nowrap}
.tph-vd small{font-size:12.5px;white-space:nowrap}
.tph-vrow>.ah-i{width:15px;height:15px;color:#7c8fb1;stroke-width:2.6}
.tph-vi{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#dfeaff;color:#2f6fe4}
.tph-vi .ah-i{width:17px;height:17px}
.tph-vi.is-ok{border-radius:50%;background:#16a864;color:#fff}
.tph-vi.is-ok .ah-i{width:15px;height:15px;stroke-width:3.4}
.tph-rep{display:inline-flex;align-items:center;gap:5px;color:#2d5fc4;font-size:12.5px;white-space:nowrap}
.tph-rep .ah-i{width:15px;height:15px}
.tph-rep .ah-i:last-child{width:12px;height:12px;stroke-width:2.8}
body[data-page="panel"] .tph-scope .tph-vsum{margin:2px 0 6px;font-size:12.5px;font-weight:600;color:#4a5b78}
body[data-page="panel"] .tph-scope .tph-vmore{margin:6px 0 0;font-size:12.5px;color:#4a5b78;text-align:center}
.tph-vi.is-bad{background:#fde5e7;color:#d12c3d}
.tph-vi.is-off{background:#eef1f6;color:#7c8fb1}
.tph-vrow.is-off .tph-vd b{color:#5b6b8c;text-decoration:line-through}

/* ---------- Problemas encontrados ---------- */
.tph-found ul{display:grid}
.tph-found li+li{border-top:1px solid var(--tph-line)}
.tph-prow{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:10px 4px;border-radius:10px}
.tph-prow:hover{background:#f6f9ff}
.tph-pr-ico{display:grid;place-items:center}
.tph-pr-ico .aa-bi{width:30px;height:30px}
.tph-pr-t b{display:block;font-size:14px;line-height:1.3;color:var(--tph-navy)}
.tph-pr-t b em{font-style:normal;font-weight:500;color:var(--tph-mut);font-size:12.5px}
.tph-pr-t small{display:block;margin-top:2px;font-size:12.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- Noticias, avisos y recomendaciones ---------- */
.tph-news ul{display:grid}
.tph-nr{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:12px;padding:10px 2px}
.tph-nr+.tph-nr{border-top:1px solid var(--tph-line)}
.tph-nr[hidden]{display:none}
.tph-nr-ico{display:grid;place-items:center;width:38px;height:38px}
.tph-nr-ico .aa-bi{width:30px;height:30px}
.tph-nr-ico.tph-sun{color:#f5a623}
.tph-nr-ico.tph-sun .ah-i{width:30px;height:30px}
.tph-nr b{display:block;font-size:14px;line-height:1.3;color:var(--tph-navy)}
.tph-nr small{display:block;margin-top:2px;font-size:12.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tph-nr time{font-size:12.5px;color:var(--tph-mut);white-space:nowrap}
.tph-nr-none{padding:18px 2px;color:var(--tph-mut);font-size:13.5px;text-align:center}

/* ---------- Gastos de equipos ---------- */
.tph-select{display:inline-flex;align-items:center;flex:none;padding:6px 12px;border:1px solid #cfdcf2;border-radius:9px;background:#fff;font-size:13px;color:var(--tph-ink)}
.tph-exp-body{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);align-items:center;gap:18px;flex:1}
.tph-donut{position:relative;width:100%;max-width:160px;aspect-ratio:1;justify-self:center}
.tph-donut svg{display:block;width:100%;height:100%}
.tph-donut-t{position:absolute;inset:0;display:grid;place-content:center;gap:0;text-align:center}
.tph-donut-t small{font-size:10px;line-height:1.2}
.tph-donut-t b{font-size:clamp(14px,1.1cqw,18px);line-height:1.15;color:var(--tph-navy)}
.tph-legend{display:grid;gap:9px}
.tph-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto 38px;align-items:center;gap:8px;font-size:13px}
.tph-legend i{width:11px;height:11px;border-radius:50%}
.tph-legend span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--tph-ink)}
.tph-legend b{color:var(--tph-navy);white-space:nowrap}
.tph-legend em{font-style:normal;color:var(--tph-mut);text-align:right}

/* ---------- Solicitudes al piscinero y resumen de la última visita ---------- */
.tph-requests{justify-content:center}
.tph-rq{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tph-req{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 10px;border:1px solid #d9e5f8;border-radius:12px;background:#f7faff;font-size:13px;line-height:1.2}
.tph-req:hover{background:#eaf2ff;border-color:#bcd2f5}
.tph-req b{min-width:0;font-weight:700;font-size:12.5px;color:var(--tph-navy)}
.tph-req svg.aa-bi{width:26px!important;height:26px!important}
.tph-rq-ico{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e2edff;color:#2f6fe4;flex:none}
.tph-rq-ico .ah-i{width:17px;height:17px}
.tph-sm{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,150px);align-items:center;gap:18px;flex:1}
.tph-sm-times{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);align-items:center;gap:8px 8px}
.tph-sm-times .tph-sm-i:last-child{grid-column:1/-1}
.tph-sm-i{display:flex;align-items:center;gap:7px;min-width:0;padding:8px 8px;border:1px solid var(--tph-line);border-radius:12px;background:#fbfdff}
.tph-sm-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e2edff;color:#2f6fe4;flex:none}
.tph-sm-ico .ah-i{width:17px;height:17px}
.tph-sm-i small{display:block;font-size:10.5px;line-height:1.2}
.tph-sm-i b{display:block;font-size:14px;color:var(--tph-navy);white-space:nowrap}
.tph-sm-arrow{color:#8aa0c6}.tph-sm-arrow .ah-i{width:18px;height:18px}
.tph-sm-work b{display:block;margin-bottom:6px;font-size:13.5px;color:var(--tph-navy)}
.tph-sm-work ul{display:grid;gap:5px}
.tph-sm-work li{display:flex;align-items:center;gap:7px;font-size:12.5px;line-height:1.3;color:var(--tph-ink)}
.tph-sm-work li .ah-i{width:15px;height:15px;color:#16a864;stroke-width:3.2}
.tph-sm-work small{display:block;margin-top:5px}
.tph-sm-photo{display:block;width:100%;height:118px;object-fit:cover;border-radius:12px}

/* ---------- Anchos intermedios ---------- */
@container (max-width:1180px){
 .tph-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .tph-hero-copy{grid-column:1/-1}
 .tph-r2{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tph-r3,.tph-r4{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tph-pool,.tph-found{grid-column:1/-1}
 .tph-r5{grid-template-columns:minmax(0,1fr)}
}
@container (max-width:820px){
 .tph-hero{grid-template-columns:minmax(0,1fr);padding:20px 18px}
 .tph-ba{height:240px}
 .tph-r3,.tph-r4{grid-template-columns:minmax(0,1fr)}
 .tph-rq{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tph-sm{grid-template-columns:minmax(0,1fr)}
 .tph-sm-photo{height:150px}
}
@container (max-width:560px){
 .tph-r2{grid-template-columns:minmax(0,1fr)}
 .tph-pt thead th:nth-child(4),.tph-pt td:nth-child(4){display:none}
 .tph-exp-body{grid-template-columns:minmax(0,1fr)}
 .tph-vrow{grid-template-columns:30px minmax(0,1fr) auto auto}
 .tph-vt,.tph-rep span{display:none}
}
@media(prefers-reduced-motion:reduce){.tph-sw,.tph-sw i{transition:none}}

/* «No aplicar químicos» abre su confirmación también en escritorio, como un cuadro centrado (en el teléfono es el panel inferior de client-assigned-app.css). */
@media(min-width:761px){
 body[data-page="panel"] .portal-shell.is-assigned-app .aa-sheet:not([hidden]){display:flex;align-items:center;justify-content:center}
 body[data-page="panel"] .portal-shell.is-assigned-app .aa-sheet-panel{width:min(460px,92vw);max-height:86vh;padding:22px 22px 20px;border-radius:22px;box-shadow:0 24px 70px rgba(11,27,61,.32)}
}
