.pool-control-panel{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:18px;background:rgba(4,28,25,.74);backdrop-filter:blur(5px)}
.pool-control-card{width:min(1120px,100%);max-height:calc(100vh - 36px);overflow:auto;border-radius:22px;background:#f6f9f7;box-shadow:0 35px 100px rgba(0,0,0,.35)}
.pool-control-card>header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97)}
.pool-control-card header small{color:var(--green);font-size:10px;font-weight:850;letter-spacing:.09em}.pool-control-card header h3{margin:2px 0 0;font-size:22px}.pool-close{width:40px;height:40px;border:0;border-radius:11px;background:#e8f1ee;font-size:22px;cursor:pointer}
.pool-control-body{padding:18px}.pool-status-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#fff}.pool-status-line b.online-text{color:#3f8612}.pool-status-line b.offline-text{color:var(--red)}
.pool-relay-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:13px}.pool-relay{padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff;transition:background-color .2s ease,border-color .2s ease}.pool-relay.is-on{border-color:#89bd55;background:#eef8df}.pool-relay small{display:block;color:var(--muted);font-size:9px}.pool-relay h4{min-height:38px;margin:4px 0;font-size:14px}.pool-relay-state{display:flex;align-items:center;gap:6px;font-weight:850}.pool-relay-state i{width:8px;height:8px;border-radius:50%;background:#a5b4b1}.pool-relay.is-on .pool-relay-state{color:#3f8612}.pool-relay.is-on .pool-relay-state i{background:#62a91c;box-shadow:0 0 0 3px rgba(98,169,28,.13)}.pool-dependency{min-height:18px;color:#a66c18;font-size:9px}.pool-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.pool-actions button{border:0;border-radius:9px;padding:8px;font-weight:800;cursor:pointer}.pool-actions .start{background:#dcefc9;color:#39750f}.pool-actions .stop{background:#f8e8e7;color:#9b3b36}.pool-actions button:disabled{opacity:.4;cursor:not-allowed}
.pool-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}.pool-auto-toggle{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#fff4df;color:#8a5b18;font-size:12px;font-weight:750}.pool-schedules{display:grid;gap:9px}.pool-schedule{padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff}.pool-schedule-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.pool-schedule-title label{display:flex;align-items:center;gap:6px;font-size:12px}.pool-intervals{display:grid;gap:7px;margin-top:9px}.pool-interval{display:grid;grid-template-columns:minmax(280px,1fr) 105px 105px 34px;gap:7px;align-items:end;padding:8px;border-radius:10px;background:#f3f7f5}.pool-days{display:flex;gap:4px;flex-wrap:wrap}.pool-day input{display:none}.pool-day span{display:grid;place-items:center;width:31px;height:31px;border:1px solid #d3e2dd;border-radius:7px;color:#78908b;font-size:9px}.pool-day input:checked+span{background:#dff0d4;border-color:#9bc776;color:#4d7f19}.pool-interval label{display:grid;gap:3px;color:var(--muted);font-size:9px}.pool-interval input[type=time]{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;padding:7px}.pool-remove{border:0;border-radius:8px;background:#f8e8e7;color:#a13b35;padding:8px;cursor:pointer}.pool-add{margin-top:8px;border:0;border-radius:9px;background:#e5f0ed;color:#17594f;padding:8px 10px;font-weight:750;cursor:pointer}.pool-save{display:flex;align-items:center;justify-content:flex-end;gap:10px;position:sticky;bottom:0;margin:16px -18px -18px;padding:13px 18px;border-top:1px solid var(--line);background:rgba(255,255,255,.97)}.pool-save button{border:0;border-radius:10px;background:var(--deep);color:#fff;padding:10px 15px;font-weight:800;cursor:pointer}.pool-message{margin-right:auto;color:var(--muted);font-size:11px}.pool-message.error{color:var(--red)}
[data-open-pool-control]{cursor:pointer}.pro-action-hint.pool-hint{display:block;margin-top:6px;color:#5d8e20;font-size:9px;font-weight:800}
@media(max-width:850px){.pool-relay-grid{grid-template-columns:repeat(2,1fr)}.pool-interval{grid-template-columns:1fr 1fr 34px}.pool-days{grid-column:1/-1}}
@media(max-width:520px){.pool-control-panel{padding:0}.pool-control-card{width:100%;height:100vh;max-height:none;border-radius:0}.pool-relay-grid{grid-template-columns:1fr}.pool-control-body{padding:12px}.pool-interval{grid-template-columns:1fr 1fr 34px}.pool-save{margin:14px -12px -12px}.pool-schedule-title{align-items:flex-start;flex-direction:column}}
