/* Qlvin Climate Console — Host
   حبر + شمبانيا + زمرّد؛ بلا أزرق نظام. كل حالة غير مؤكدة تظهر كغير مؤكدة. */

.climate-shell{
  position:relative; overflow:hidden; margin-bottom:14px; border-radius:22px;
  border:1px solid rgba(127,214,164,.16);
  background:
    radial-gradient(circle at 12% -15%,rgba(127,214,164,.11),transparent 40%),
    linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  box-shadow:0 18px 50px rgba(0,0,0,.18);
}
.climate-shell::before{
  content:""; position:absolute; inset:0 0 auto; height:1px;
  background:linear-gradient(90deg,transparent,rgba(127,214,164,.72),rgba(197,160,89,.5),transparent);
}
.climate-inner{padding:16px}
.climate-head{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.climate-orb{
  width:38px;height:38px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;
  color:var(--mint);border:1px solid rgba(127,214,164,.2);background:rgba(127,214,164,.07)
}
.climate-orb .hico{width:20px;height:20px}
.climate-title{min-width:0;flex:1}
.climate-kicker{display:block;font-size:8px;font-weight:800;letter-spacing:2px;color:var(--mint);text-transform:uppercase}
.climate-title strong{display:block;font-size:14px;font-weight:900;margin-top:2px}
.climate-pill{
  flex:0 0 auto;max-width:42%;padding:5px 9px;border-radius:999px;font-size:8px;font-weight:800;
  color:var(--text2);background:rgba(255,255,255,.04);border:1px solid var(--border);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.climate-pill.is-live{color:var(--mint);border-color:rgba(127,214,164,.25);background:rgba(127,214,164,.07)}
.climate-pill.is-warn{color:var(--gold);border-color:rgba(197,160,89,.28);background:rgba(197,160,89,.07)}
.climate-pill.is-bad{color:var(--danger);border-color:rgba(255,59,48,.25);background:rgba(255,59,48,.07)}

.climate-stage{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;
  padding:13px;border-radius:18px;border:1px solid rgba(255,255,255,.065);background:rgba(0,0,0,.16)
}
.climate-side{min-width:0}
.climate-side.end{text-align:left}
.climate-cap{display:block;font-size:8px;color:var(--text3);letter-spacing:1px;margin-bottom:4px}
.climate-value{font-size:12px;font-weight:800;color:var(--text)}
.climate-value.muted{color:var(--text2);font-weight:600}
.climate-temp{text-align:center;min-width:86px}
.climate-temp strong{
  display:block;font-size:42px;line-height:.95;font-weight:300;letter-spacing:-2px;font-variant-numeric:tabular-nums
}
.climate-temp strong span{font-size:15px;vertical-align:top;letter-spacing:0;color:var(--text2);margin-right:2px}
.climate-temp small{display:block;margin-top:7px;font-size:8px;color:var(--text3)}

.climate-controls{display:grid;grid-template-columns:44px 1fr 44px;gap:8px;margin-top:12px}
.climate-btn{
  min-height:44px;border-radius:14px;border:1px solid var(--border);background:rgba(255,255,255,.035);
  color:var(--text);font-family:'Tajawal';font-weight:800;cursor:pointer;transition:.18s ease
}
.climate-btn:active:not(:disabled){transform:scale(.97)}
.climate-btn:disabled{opacity:.28;cursor:not-allowed}
.climate-btn.icon{font-size:20px;font-weight:300}
.climate-power{
  display:flex;align-items:center;justify-content:center;gap:8px;color:var(--mint);
  border-color:rgba(127,214,164,.2);background:rgba(127,214,164,.055)
}
.climate-power.is-off{color:var(--text2);border-color:var(--border);background:rgba(255,255,255,.025)}
.climate-power .hico{width:17px;height:17px}

.climate-presets{display:flex;gap:7px;overflow-x:auto;padding:10px 0 1px;scrollbar-width:none}
.climate-presets::-webkit-scrollbar{display:none}
.climate-chip{
  flex:0 0 auto;border:1px solid var(--border);background:rgba(255,255,255,.028);color:var(--text2);
  border-radius:999px;padding:8px 11px;font-family:'Tajawal';font-size:9px;font-weight:800;cursor:pointer
}
.climate-chip:disabled{opacity:.28;cursor:not-allowed}
.climate-chip.primary{color:var(--mint);border-color:rgba(127,214,164,.22);background:rgba(127,214,164,.055)}
.climate-chip.energy{color:var(--gold);border-color:rgba(197,160,89,.24);background:rgba(197,160,89,.055)}

.climate-truth{
  display:flex;align-items:flex-start;gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid var(--border);
  color:var(--text2);font-size:9px;line-height:1.65
}
.climate-truth-dot{width:6px;height:6px;border-radius:50%;background:var(--text3);margin-top:5px;flex:0 0 auto}
.climate-truth.is-live .climate-truth-dot{background:var(--mint);box-shadow:0 0 8px rgba(127,214,164,.7)}
.climate-truth.is-warn .climate-truth-dot{background:var(--gold)}

.climate-suggestion{
  display:none;margin:0 12px 12px;padding:13px;border-radius:17px;
  border:1px solid rgba(197,160,89,.19);background:rgba(197,160,89,.055)
}
.climate-suggestion.show{display:block;animation:sIn .25s ease}
.climate-suggest-head{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.climate-spark{
  width:22px;height:22px;border-radius:8px;display:grid;place-items:center;color:var(--gold);
  background:rgba(197,160,89,.1);font-size:12px;font-weight:900
}
.climate-suggest-head strong{font-size:10px;color:var(--gold);letter-spacing:.4px}
.climate-suggestion p{font-size:11px;line-height:1.75;color:var(--text);margin:0}
.climate-suggest-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.climate-suggest-actions button{
  flex:1;min-width:92px;border-radius:11px;padding:9px;border:1px solid var(--border);
  background:rgba(255,255,255,.035);color:var(--text);font-family:'Tajawal';font-size:9px;font-weight:800;cursor:pointer
}
.climate-suggest-actions button.recommended{color:var(--gold);border-color:rgba(197,160,89,.27);background:rgba(197,160,89,.08)}
.climate-suggest-actions button:disabled{opacity:.3;cursor:not-allowed}

.climate-empty{padding:2px 0 4px}
.climate-empty strong{display:block;font-size:12px;margin-bottom:4px}
.climate-empty span{display:block;font-size:9px;color:var(--text2);line-height:1.7}
.climate-shell.is-unavailable .climate-stage,
.climate-shell.is-unavailable .climate-controls,
.climate-shell.is-unavailable .climate-presets{display:none}

@media (max-width:380px){
  .climate-stage{grid-template-columns:1fr auto;gap:9px}
  .climate-side.end{display:none}
  .climate-temp strong{font-size:37px}
}


/* MVP freeze #300: presentation only; CSS does not verify an IR action. */
.climate-shell{
  --qlvin-ui-emerald:#2f9c68;--qlvin-ui-mint:#a0ddbc;
  --qlvin-ui-ink:#07090d;--qlvin-ui-focus:#b6f3d2;
  font-family:'Tajawal',sans-serif;
  border-color:rgba(47,156,104,.28);
  background:radial-gradient(circle at 10% -15%,rgba(47,156,104,.16),transparent 44%),
    linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.012));
  box-shadow:0 16px 44px rgba(0,0,0,.22);
}
.climate-kicker{font-size:10px;letter-spacing:1.4px}
.climate-title strong{font-size:16px;line-height:1.4}
.climate-pill{font-size:11px;line-height:1.45;padding:7px 10px}
.climate-stage{border-color:rgba(255,255,255,.09)}
.climate-cap{font-size:10px;line-height:1.4}
.climate-value{font-size:13px;line-height:1.5}
.climate-temp strong{
  font-family:'IBM Plex Mono',ui-monospace,Consolas,monospace;
  font-size:clamp(36px,8vw,44px);font-variant-numeric:tabular-nums;
}
.climate-temp small{font-size:10px}
.climate-btn{transition:background-color .16s ease,border-color .16s ease,transform .16s ease}
.climate-btn:disabled,.climate-chip:disabled{opacity:.46}
.climate-chip{min-height:44px;font-size:11px;padding:10px 13px}
.climate-truth{font-size:11px;line-height:1.7}
.climate-truth-dot{width:7px;height:7px}
.climate-empty strong{font-size:14px}
.climate-empty span{font-size:11px}
.climate-suggestion p{font-size:12px}
.climate-suggest-head strong{font-size:12px}
.climate-suggest-actions button{min-height:44px;font-size:11px}
.climate-btn:focus-visible,
.climate-chip:focus-visible,
.climate-suggest-actions button:focus-visible,
#room-climate-panel button:focus-visible,
#room-climate-panel summary:focus-visible{
  outline:2px solid var(--qlvin-ui-focus,#b6f3d2);outline-offset:3px;
}
#room-climate-panel .qc-hero b{
  font-family:'IBM Plex Mono',ui-monospace,Consolas,monospace;
  font-variant-numeric:tabular-nums;
}
#room-climate-panel .qc-card p{font-size:12px;line-height:1.7}
#room-climate-panel .qc-card small{font-size:11px;line-height:1.5}
#room-climate-panel .qc-card summary{font-size:12px}
#room-climate-panel .qc-controls button,
#room-climate-panel .qc-rooms button{font-family:'Tajawal',sans-serif}
@media (hover:hover){
  .climate-btn:hover:not(:disabled),
  .climate-chip:hover:not(:disabled),
  .climate-suggest-actions button:hover:not(:disabled){
    border-color:rgba(160,221,188,.45);background-color:rgba(47,156,104,.09);
  }
}
@media (prefers-reduced-motion:reduce){
  .climate-shell .climate-btn,.climate-shell .climate-chip,
  .climate-shell .climate-suggestion,#room-climate-panel .qc-card,
  #room-climate-panel button{transition:none!important;animation:none!important}
}


/* Stronger premium visual hierarchy for the existing climate console; no commands affected. */
.climate-shell{
  border-radius:28px;
  border:1px solid rgba(102,204,148,.3);
  background:
    radial-gradient(ellipse 85% 70% at 100% 0%,rgba(47,156,104,.23),transparent 64%),
    radial-gradient(ellipse 70% 70% at 0% 100%,rgba(47,156,104,.08),transparent 72%),
    linear-gradient(165deg,#111e1b 0%,#0a1012 52%,#07090d 100%);
  box-shadow:0 22px 55px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.07);
}
.climate-shell::before{
  height:2px;
  background:linear-gradient(90deg,transparent 4%,rgba(140,233,176,.85) 48%,transparent 96%);
}
.climate-inner{padding:clamp(18px,3.6vw,26px)}
.climate-head{gap:12px;margin-bottom:20px}
.climate-orb{
  width:46px;height:46px;border-radius:16px;
  border:1px solid rgba(130,223,169,.35);
  background:linear-gradient(145deg,rgba(47,156,104,.25),rgba(47,156,104,.075));
  box-shadow:0 0 22px rgba(47,156,104,.1);
}
.climate-title strong{font-size:clamp(16px,3.4vw,19px);font-weight:800}
.climate-kicker{color:#a0ddbc}
.climate-pill{
  display:inline-flex;align-items:center;gap:7px;max-width:45%;
  border-color:rgba(255,255,255,.13);
}
.climate-pill.is-live{background:rgba(47,156,104,.18);border-color:rgba(47,156,104,.42)}
.climate-pill.is-warn{background:rgba(197,160,89,.12)}
.climate-stage{
  min-height:154px;padding:clamp(16px,3.7vw,24px);border-radius:22px;
  border:1px solid rgba(148,190,165,.17);
  background:linear-gradient(120deg,rgba(255,255,255,.068),rgba(255,255,255,.012) 58%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.climate-temp strong{
  font-size:clamp(44px,9vw,56px);
  font-weight:500;line-height:1.05;letter-spacing:-1px;
}
.climate-temp small{margin-top:9px}
.climate-controls{grid-template-columns:52px minmax(0,1fr) 52px;gap:10px;margin-top:14px}
.climate-btn{
  min-height:54px;border-radius:16px;
  border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);font-size:13px;
}
.climate-btn.icon{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:26px;font-weight:400}
.climate-power{
  color:#d9ffe8;border-color:rgba(95,204,143,.39);
  background:linear-gradient(145deg,rgba(47,156,104,.33),rgba(47,156,104,.13));
}
.climate-power.is-off{background:rgba(255,255,255,.035)}
.climate-presets{gap:9px;padding-top:13px}
.climate-chip{
  border-color:rgba(255,255,255,.14);border-radius:14px;
  background:rgba(255,255,255,.05);
}
.climate-truth{
  border-top:0;padding:12px;border-radius:14px;
  background:rgba(255,255,255,.035);
}
#room-climate-panel{
  border:1px solid rgba(98,181,132,.3)!important;
  border-radius:24px!important;
  box-shadow:0 14px 42px rgba(0,0,0,.15);
}
#room-climate-panel .qc-card{
  padding:12px 3px;
  border-top:1px solid rgba(255,255,255,.09);
}
#room-climate-panel .qc-hero{
  min-height:215px;
  border-radius:18px;
  background:radial-gradient(ellipse at 18% 72%,rgba(47,156,104,.22),transparent 57%);
}
#room-climate-panel .qc-controls{gap:10px}
#room-climate-panel .qc-controls button{
  border-radius:14px;min-height:52px;
  background:#1b3027;border-color:#3d7458;
}
#room-climate-panel .qc-controls button:disabled{opacity:.48}
@media (max-width:420px){
  .climate-head{flex-wrap:wrap}
  .climate-pill{max-width:100%}
  .climate-stage{gap:9px;padding:14px}
  .climate-controls{grid-template-columns:48px minmax(0,1fr) 48px}
}
@media (prefers-reduced-motion:reduce){
  .climate-shell *,#room-climate-panel *{scroll-behavior:auto!important}
}
