/* Keep the original host composition and Tajawal. Scoped approved refinements only. */
#host-theme-toggle{font:inherit;color:var(--text);min-width:44px;min-height:44px;cursor:pointer}
.unit-filters{display:flex;gap:8px;overflow-x:auto;margin:4px 0 16px;padding:3px}
.unit-filters button{font:700 14px 'Tajawal',sans-serif;min-height:44px;padding:8px 18px;white-space:nowrap;border:1px solid var(--border);border-radius:24px;background:var(--glass);color:var(--text2);cursor:pointer}
.unit-filters button[aria-pressed=true]{background:rgba(47,156,104,.17);border-color:#487c5d;color:var(--mint)}
#page-list .prop-card{border-radius:20px;padding:18px 16px;min-height:100px;box-shadow:none}
.pc-info{min-width:0}.pc-name{overflow-wrap:anywhere}.pc-right{flex-shrink:0}
.qhr-ring{width:74px;display:flex;align-items:center;flex-direction:column;gap:3px;color:var(--mint)}
.qhr-ring svg{width:50px;height:50px;overflow:visible}.qhr-ring circle{fill:none;stroke-width:4}.qhr-track{stroke:var(--border)}.qhr-fill{stroke:currentColor;transform:rotate(-90deg);transform-origin:30px 30px;stroke-linecap:round}.qhr-check{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.qhr-ring text{fill:currentColor;font:700 11px 'Tajawal',sans-serif}.qhr-ring>span{font-size:11px;text-align:center;line-height:1.5}
.unit-settings-entry{display:grid;grid-template-columns:1fr auto;text-align:right;gap:5px;width:100%;padding:18px;margin:20px 0;min-height:64px;border:1px solid var(--border);border-radius:16px;background:var(--glass);color:var(--text);font:700 16px 'Tajawal',sans-serif;cursor:pointer}.unit-settings-entry small{grid-column:1;color:var(--text2);font-size:12px}.unit-settings-entry>span:last-child{grid-column:2;grid-row:1/3;align-self:center}
#page-unit-settings h1{font-size:24px;margin-bottom:24px}#page-unit-settings .unit-settings{display:grid;gap:14px;padding:0}#page-unit-settings .unit-settings-shell>summary{display:none}#page-unit-settings .unit-card{padding:16px}#page-unit-settings .uc-copy b{font-size:15px}#page-unit-settings .uc-copy small,#page-unit-settings .uc-field{font-size:13px;white-space:normal}#page-unit-settings :is(.uc-btn,.uc-input,.uc-save){font-size:14px;min-height:44px}#page-unit-settings .uc-actions{flex-wrap:wrap}
:where(#host-theme-toggle,.unit-filters button,.unit-settings-entry,#back-unit-settings):focus-visible{outline:2px solid var(--mint);outline-offset:4px}
html[data-qlvin-theme=light]{color-scheme:light;--bg:#f4efdf;--bg2:#eee6d4;--bg3:#e7dec9;--text:#352026;--text2:#64545b;--glass:rgba(102,42,61,.045);--glass2:rgba(102,42,61,.09);--border:rgba(102,42,61,.2);--mint:#762d46;--gold:#795d25;--accent:#762d46;--spl-cream:#762d46}
html[data-qlvin-theme=light] body{background:#f4efdf;color:#352026}
html[data-qlvin-theme=light] #page-list :is(.ops-mission,.stats-hero,.prop-card){background:#412b32;color:#f4efdf;border-color:#735b64;--text:#f4efdf;--text2:#d8cbd0;--mint:#b6dfc4;--gold:#e4c68b;--border:#735b64;box-shadow:none}
html[data-qlvin-theme=light] .ops-mission::before{display:none}html[data-qlvin-theme=light] .ops-mission :is(.ops-signal,.ops-queue,.ops-priority,.ops-quick){background:#38232b;border-color:#735b64;color:#f4efdf}html[data-qlvin-theme=light] .ops-mission :is(.ops-copy,.ops-signal-label,.ops-signal-note,.ops-priority-copy span,.ops-quick small,.ops-eyebrow,.ops-date){color:#d8cbd0}html[data-qlvin-theme=light] .ops-mission :is(.ops-heading,.ops-signal-value,.ops-quick strong,.ops-queue-title){color:#f4efdf}
html[data-qlvin-theme=light] .stats-hero :is(.sh-val,.sh-icon){color:#f1dfb3}html[data-qlvin-theme=light] .stats-hero .sh-lbl{color:#ddd0d5}
html[data-qlvin-theme=light] .bottom-nav{background:#412b32;border-color:#735b64;box-shadow:none}html[data-qlvin-theme=light] .bottom-nav .nav-item{color:#e1d1d6}html[data-qlvin-theme=light] .bottom-nav .nav-item.active{background:#69444e;color:#fff0d1}html[data-qlvin-theme=light] .bottom-nav .nav-item.checkin{background:#f0e3bc;color:#48252f}
html[data-qlvin-theme=light] :is(.modal,.notif-panel,.settings-section){background:#f4efdf;color:#352026}html[data-qlvin-theme=light] :is(.modal-box,.modal-content,.unit-card,.access-console,.action-opt,.climate-shell,.qct-card,.unit-connection){background:#412b32;color:#f4efdf;--text:#f4efdf;--text2:#d8cbd0;--mint:#b6dfc4;--gold:#e4c68b;--border:#735b64}
html[data-qlvin-theme=light] input,html[data-qlvin-theme=light] select,html[data-qlvin-theme=light] textarea{background:#fff9e9;color:#352026;border-color:#bda8a9}
html[data-qlvin-theme=light] .stay-3d-card[data-stay-card="1"]{--stay-paper:#412b32;--stay-ink:#fff3dd;--stay-sub:#e1d1d6;--stay-accent:#edcea0;border-color:#735b64}html[data-qlvin-theme=light] .stay-3d-card[data-stay-card="0"]{--stay-paper:#51474e;--stay-ink:#f4e9ec;--stay-sub:#ded0d6;--stay-accent:#dfc4cd}html[data-qlvin-theme=light] .stay-3d-card[data-stay-card="2"]{--stay-paper:#263c46;--stay-ink:#edf5f6;--stay-sub:#cfdee2;--stay-accent:#c2e4ed}
@media(max-width:370px){#page-list .prop-card{padding:14px 10px;gap:10px}.qhr-ring{width:60px}.qhr-ring svg{width:44px;height:44px}#page-unit-settings .uc-row{flex-wrap:wrap}}


/* qlvin / premium emerald host home — strictly visual, #300-safe.
   This layer does not change counts, actions, disabled states or device status. */
html:not([data-qlvin-theme="light"]){
  --qlvin-home-dark:#07090d;
  --qlvin-home-emerald:#2f9c68;
  --qlvin-home-highlight:#86e4b7;
  --qlvin-home-border:rgba(114,226,168,.32);
}
html:not([data-qlvin-theme="light"]) #page-list .header{
  padding:16px 17px;
  margin-bottom:16px;
  min-height:74px;
  border-radius:25px;
  border:1px solid var(--qlvin-home-border);
  background:
    radial-gradient(ellipse 100% 100% at 82% -28%,rgba(21,179,116,.23),transparent 70%),
    linear-gradient(128deg,#112920 0%,#0a1714 45%,#07100d 100%);
  box-shadow:0 14px 38px rgba(0,0,0,.29),inset 0 1px rgba(188,255,211,.10);
}
html:not([data-qlvin-theme="light"]) #page-list .header::after{
  background:
    linear-gradient(150deg,transparent 48%,rgba(67,222,145,.12) 49%,transparent 70%);
}
html:not([data-qlvin-theme="light"]) #page-list .header .user-pill{
  min-height:38px;
  border:1px solid rgba(145,217,174,.22);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  font-size:12px;
}
html:not([data-qlvin-theme="light"]) #page-list .header #host-theme-toggle{
  width:46px;height:46px;border-radius:15px;
  border:1px solid rgba(112,218,157,.38);
  background:linear-gradient(155deg,rgba(47,156,104,.19),rgba(9,21,17,.66));
  color:var(--qlvin-home-highlight);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-mission{
  padding:clamp(17px,4vw,24px);
  border-radius:29px;
  border:1px solid var(--qlvin-home-border);
  background:
    radial-gradient(ellipse 108% 56% at 100% 0%,rgba(17,144,92,.35),transparent 69%),
    radial-gradient(ellipse 95% 50% at -10% 115%,rgba(24,101,68,.24),transparent 70%),
    linear-gradient(155deg,#091b15 0%,#08140f 46%,#070c0b 100%);
  box-shadow:0 20px 55px rgba(0,0,0,.30),inset 0 1px rgba(207,255,226,.07);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-mission::before{
  opacity:.13;
  background-size:28px 28px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-mission::after{
  width:55%;
  height:2px;
  right:8%;
  background:linear-gradient(90deg,transparent,rgba(89,233,160,.76),transparent);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-eyebrow{
  color:var(--qlvin-home-highlight);font-size:11px;letter-spacing:1.3px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-live-dot{
  background:#21ce88;box-shadow:0 0 0 5px rgba(35,210,134,.13);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-heading{
  font-size:clamp(23px,5vw,30px);line-height:1.38;
  letter-spacing:-.3px;color:#f7fbf8;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-copy{
  max-width:45ch;font-size:13px;line-height:1.75;color:#b4c3ba;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-health{
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  font-size:11px;
  background:rgba(47,156,104,.11);
  border:1px solid rgba(128,221,173,.30);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-health.is-watch{
  background:rgba(188,147,67,.13);border-color:rgba(236,195,102,.33);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-health.is-urgent{
  background:rgba(195,67,66,.12);border-color:rgba(237,120,118,.32);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-grid{
  gap:9px;margin-top:20px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal{
  position:relative;
  min-width:0;min-height:116px;
  padding:13px 9px;
  border-radius:20px;
  border:1px solid rgba(117,223,167,.28);
  background:
    radial-gradient(ellipse 110% 50% at 100% 100%,rgba(28,156,95,.20),transparent 80%),
    linear-gradient(155deg,rgba(12,52,37,.94),rgba(3,22,17,.92));
  box-shadow:inset 0 1px rgba(185,255,215,.08),0 6px 14px rgba(0,0,0,.10);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-top{
  flex-direction:column;align-items:center;justify-content:center;gap:11px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-icon{
  width:35px;height:35px;border-radius:12px;
  color:#81e8b6;
  border-color:rgba(78,207,139,.3);
  background:linear-gradient(155deg,rgba(31,156,98,.27),rgba(12,78,52,.24));
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-icon.gold{
  color:#f0c975;background:rgba(197,160,89,.14);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-icon.violet{
  color:#c4a6fc;background:rgba(139,92,246,.17);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-icon.slate{
  color:#cedbd3;background:rgba(185,204,190,.11);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-icon .hico{
  width:19px;height:19px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-value{
  font-size:24px;color:#f5faf5;line-height:1;
  font-variant-numeric:tabular-nums;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-label{
  margin-top:10px;text-align:center;font-size:12px;line-height:1.45;
  white-space:normal;overflow-wrap:anywhere;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-signal-note{
  text-align:center;font-size:10px;line-height:1.4;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-queue{
  margin-top:18px;
  border-radius:21px;
  border:1px solid rgba(118,219,167,.28);
  background:linear-gradient(145deg,rgba(9,46,31,.70),rgba(4,19,16,.96));
  box-shadow:inset 0 1px rgba(216,255,234,.05);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-queue-head{
  padding:12px 14px;
  border-color:rgba(167,215,186,.13);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-queue-title{
  font-size:14px;color:#f5f9f6;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-queue-count{
  font-size:11px;min-width:28px;border-radius:10px;padding:5px 8px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-priority{
  min-height:72px;
  grid-template-columns:43px minmax(0,1fr) 18px;
  padding:13px 14px;gap:11px;
  background:linear-gradient(90deg,rgba(29,52,38,.16),transparent);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-priority-icon{
  width:43px;height:43px;border-radius:14px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-priority-icon.red{
  border:1px solid rgba(255,133,127,.28);
  color:#ffaca6;background:rgba(158,44,45,.20);
}
html:not([data-qlvin-theme="light"]) #page-list .ops-priority-copy strong{
  font-size:15px;line-height:1.48;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-priority-copy span{
  font-size:12px;line-height:1.55;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-quick-grid{
  margin-top:16px;gap:9px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-quick{
  min-width:0;min-height:76px;
  padding:12px 9px;border-radius:16px;
  border:1px solid rgba(103,209,151,.32);
  background:linear-gradient(150deg,rgba(12,67,44,.68),rgba(5,26,20,.88));
  box-shadow:inset 0 1px rgba(207,255,226,.07);
  transition:border-color .16s ease,background-color .16s ease;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-quick-icon{
  width:31px;height:31px;border-radius:11px;margin-bottom:9px;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-quick strong{
  font-size:13px;line-height:1.5;
}
html:not([data-qlvin-theme="light"]) #page-list .ops-quick small{
  color:#adc3b6;font-size:10px;
}
html:not([data-qlvin-theme="light"]) #page-list .stats-hero{
  padding:12px 10px;margin-bottom:18px;
  border-radius:25px;
  border:1px solid rgba(113,222,164,.29);
  background:linear-gradient(140deg,#12291f,#07170f 65%,#0a1111);
  box-shadow:0 13px 34px rgba(0,0,0,.23),inset 0 1px rgba(226,255,235,.05);
}
html:not([data-qlvin-theme="light"]) #page-list .stats-hero-row{gap:4px;}
html:not([data-qlvin-theme="light"]) #page-list .sh-box{
  min-width:0;padding:14px 3px;
  border:0;border-radius:17px;
}
html:not([data-qlvin-theme="light"]) #page-list .sh-box:nth-child(2){
  border:1px solid rgba(95,206,147,.35);
  background:linear-gradient(155deg,rgba(29,136,80,.25),rgba(14,57,43,.26));
}
html:not([data-qlvin-theme="light"]) #page-list .sh-icon{
  color:#98b5a3;
}
html:not([data-qlvin-theme="light"]) #page-list .sh-val{
  font-size:clamp(22px,5vw,28px);
  color:#f1e3b6;
}
html:not([data-qlvin-theme="light"]) #page-list .sh-lbl{
  font-size:10px;line-height:1.55;color:#b2c1b8;
  overflow-wrap:anywhere;
}
html:not([data-qlvin-theme="light"]) #page-list .sec-lbl .count{
  border-radius:999px;padding:6px 10px;
  border:1px solid rgba(102,224,159,.24);
}
html:not([data-qlvin-theme="light"]) .bottom-nav{
  padding:9px;gap:8px;border-radius:27px;
  border:1px solid rgba(85,212,145,.34);
  background:rgba(6,27,18,.89);
  box-shadow:0 13px 34px rgba(0,0,0,.38),inset 0 1px rgba(173,255,210,.07);
  -webkit-backdrop-filter:blur(22px) saturate(1.4);
  backdrop-filter:blur(22px) saturate(1.4);
}
html:not([data-qlvin-theme="light"]) .bottom-nav .nav-item{
  min-width:0;min-height:68px;
  padding:11px 4px;border-radius:20px;
  font-size:12px;line-height:1.35;
}
html:not([data-qlvin-theme="light"]) .bottom-nav .nav-item.active{
  background:linear-gradient(135deg,rgba(24,93,58,.55),rgba(10,50,34,.72));
  color:#93e9bb;
}
html:not([data-qlvin-theme="light"]) .bottom-nav .nav-item.checkin{
  color:#052416;
  background:linear-gradient(130deg,#82e5b1,#39b97b);
  box-shadow:0 6px 19px rgba(47,156,104,.25),inset 0 1px rgba(255,255,255,.32);
  font-weight:800;
}
html:not([data-qlvin-theme="light"]) #page-list :is(
  .ops-quick,.ops-priority,#host-theme-toggle,
  .unit-filters button
):focus-visible,
html:not([data-qlvin-theme="light"]) .bottom-nav .nav-item:focus-visible{
  outline:2px solid #9ff4c6;outline-offset:3px;
}
@media (min-width:350px) and (max-width:599px){
  html:not([data-qlvin-theme="light"]) #page-list .ops-signal-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;
  }
  html:not([data-qlvin-theme="light"]) #page-list .ops-signal{
    min-height:124px;padding:10px 4px;border-radius:16px;
  }
  html:not([data-qlvin-theme="light"]) #page-list .ops-signal-value{font-size:20px}
  html:not([data-qlvin-theme="light"]) #page-list .ops-signal-label{
    font-size:10px;line-height:1.35;
  }
  html:not([data-qlvin-theme="light"]) #page-list .ops-signal-note{display:none}
  html:not([data-qlvin-theme="light"]) #page-list .ops-quick small{display:none}
  html:not([data-qlvin-theme="light"]) #page-list .ops-quick{min-height:67px;}
  html:not([data-qlvin-theme="light"]) #page-list .ops-quick strong{font-size:12px}
}
@media (max-width:349px){
  html:not([data-qlvin-theme="light"]) #page-list .ops-signal-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  html:not([data-qlvin-theme="light"]) #page-list .ops-heading-row{
    flex-direction:column;
  }
}
@media (hover:hover){
  html:not([data-qlvin-theme="light"]) #page-list .ops-quick:hover,
  html:not([data-qlvin-theme="light"]) #page-list .ops-priority:hover{
    border-color:rgba(134,228,183,.55);
    background-color:rgba(47,156,104,.17);
  }
}
@media (prefers-reduced-motion:reduce){
  html:not([data-qlvin-theme="light"]) #page-list .ops-quick,
  html:not([data-qlvin-theme="light"]) #page-list .ops-live-dot{
    animation:none;transition:none;
  }
}
