/* حاسبة الكميات والمواد 3.0 — كل القواعد بادئة بـ html body .iq3 عشان القالب ما يغيّرهاش */
html body .iq3{--n:#173a50;--n2:#0f2a3b;--o:#bc521f;--o2:#fbeee7;--g:#c8a45d;--gr:#1fa855;--gr2:#128c4a;--bg:#f5f7f9;--ln:#e3e8ee;--tx:#1d2a33;--mu:#5f6f7b;--r:16px;
  direction:rtl;text-align:right;color:var(--tx);font-family:inherit;line-height:1.6;max-width:1180px;margin:0 auto 28px;padding:0 12px;box-sizing:border-box;-webkit-text-size-adjust:100%}
html body .iq3 *,html body .iq3 *::before,html body .iq3 *::after{box-sizing:border-box}
html body .iq3 [hidden]{display:none!important}
html body .iq3 h2,html body .iq3 h3,html body .iq3 h4{font-family:inherit;margin:0;line-height:1.35;color:var(--n);letter-spacing:0;text-transform:none}
html body .iq3 p{margin:0}
html body .iq3 a{text-decoration:none!important;border-bottom:0!important;box-shadow:none!important}
html body .iq3 button{font:inherit!important;line-height:1.3!important;margin:0!important;text-transform:none!important;letter-spacing:normal!important;cursor:pointer;-webkit-tap-highlight-color:transparent;height:auto!important;min-height:0;box-shadow:none!important;background:none!important;border:0!important;padding:0!important;color:inherit!important;width:auto;text-shadow:none!important}
html body .iq3 button:focus-visible,html body .iq3 a:focus-visible,html body .iq3 summary:focus-visible{outline:3px solid rgba(200,164,93,.7)!important;outline-offset:2px}
html body .iq3 ul{margin:0;padding:0;list-style:none}
html body .iq3 li{margin:0}

/* ---------- الجزء العلوي ---------- */
html body .iq3 .iq3-hero{position:relative;overflow:hidden;border-radius:22px;margin:8px 0 16px;padding:26px 18px 22px;color:#fff;text-align:center;
  background:radial-gradient(120% 90% at 100% 0,rgba(200,164,93,.28),transparent 55%),linear-gradient(160deg,var(--n) 0%,var(--n2) 100%)}
html body .iq3 .iq3-hero::before{content:"";position:absolute;inset:0;opacity:.13;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.6) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.6) 1px,transparent 1px);background-size:22px 22px}
html body .iq3 .iq3-hero-in{position:relative}
html body .iq3 .iq3-badge{display:inline-block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:10px}
html body .iq3 .iq3-hero h2{color:#fff;font-size:26px;font-weight:800}
html body .iq3 .iq3-hero p{max-width:640px;margin:8px auto 0;color:rgba(255,255,255,.88);font-size:15px}
html body .iq3 .iq3-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:14px}
html body .iq3 .iq3-trust li{background:rgba(255,255,255,.1);border-radius:99px;padding:4px 11px;font-size:12.5px;font-weight:600;color:#fff}
html body .iq3 .iq3-boot{display:flex;justify-content:center;gap:6px;padding:40px 0}
html body .iq3 .iq3-boot span{width:10px;height:10px;border-radius:50%;background:var(--g);animation:q3b 1s infinite alternate}
html body .iq3 .iq3-boot span:nth-child(2){animation-delay:.2s}html body .iq3 .iq3-boot span:nth-child(3){animation-delay:.4s}
@keyframes q3b{to{opacity:.25;transform:translateY(-6px)}}
html body .iq3 .iq3-how{margin-top:16px;background:#fff;border:1px solid var(--ln);border-radius:var(--r);padding:0 14px}
html body .iq3 .iq3-how summary{cursor:pointer;padding:14px 0;font-weight:800;color:var(--n);list-style:none}
html body .iq3 .iq3-how summary::-webkit-details-marker{display:none}
html body .iq3 .iq3-how-b{padding:0 0 14px;font-size:14px;color:#3d4c57}
html body .iq3 .iq3-how-b ul{list-style:disc;padding-inline-start:20px;margin-bottom:8px}
html body .iq3 .iq3-how-b li{margin:4px 0}

/* ---------- الهيكل ---------- */
html body .iq3 .q3{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
html body .iq3 .q3-main,html body .iq3 .q3-side,html body .iq3 .q3-full{min-width:0}
html body .iq3 .q3-step{background:#fff;border:1px solid var(--ln);border-radius:var(--r);padding:16px 14px;box-shadow:0 4px 18px rgba(23,58,80,.05);margin-bottom:14px}
html body .iq3 .q3-sh{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}
html body .iq3 .q3-n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--n);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px}
html body .iq3 .q3-sh h3{font-size:18px;font-weight:800}
html body .iq3 .q3-sh p{font-size:13.5px;color:var(--mu);margin-top:2px}
html body .iq3 .q3-note{font-size:12.5px;color:var(--mu);margin-top:6px}
html body .iq3 .q3-empty{font-size:13.5px;color:var(--mu);text-align:center;padding:12px;background:var(--bg);border-radius:12px}

/* ---------- 1) العقار ---------- */
html body .iq3 .q3-props{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body .iq3 .q3-prop{display:flex!important;flex-direction:column;align-items:center;gap:2px;background:#fff!important;border:1.5px solid var(--ln)!important;border-radius:14px;padding:12px 8px!important;text-align:center;transition:border-color .15s,transform .15s,background .15s;color:var(--tx)!important;width:100%}
html body .iq3 .q3-prop:active{transform:scale(.97)}
html body .iq3 .q3-prop .q3-pi{font-size:26px;line-height:1}
html body .iq3 .q3-prop b{font-size:15px;color:var(--n);margin-top:4px}
html body .iq3 .q3-prop small{font-size:12px;color:var(--mu)}
html body .iq3 .q3-prop:last-child:nth-child(odd){grid-column:1/-1;flex-direction:row;justify-content:center;gap:10px}
html body .iq3 .q3-prop:last-child:nth-child(odd) b{margin-top:0}
html body .iq3 .q3-prop.on{border-color:var(--o)!important;background:var(--o2)!important;box-shadow:0 0 0 3px rgba(188,82,31,.12)!important}

/* ---------- 2) الأدوار والغرف ---------- */
html body .iq3 .q3-fl{margin-bottom:12px}
html body .iq3 .q3-flh{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 2px}
html body .iq3 .q3-flh b{font-size:15.5px;color:var(--n)}
html body .iq3 .q3-flh span{font-size:12.5px;color:var(--mu);background:var(--bg);border-radius:99px;padding:2px 10px}
html body .iq3 .q3-rl{display:flex;flex-direction:column;gap:8px}
html body .iq3 .q3-r{border:1.5px solid var(--ln);border-radius:14px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
html body .iq3 .q3-r.open{border-color:#c9d6e2;box-shadow:0 6px 20px rgba(23,58,80,.08)}
html body .iq3 .q3-r.warn .q3-ra b{color:#b26a00}
html body .iq3 .q3-rh{display:flex!important;align-items:center;gap:10px;width:100%!important;padding:10px 12px!important;text-align:right;color:var(--tx)!important}
html body .iq3 .q3-ri{flex:none;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px}
html body .iq3 .q3-rt{flex:1;min-width:0;display:flex;flex-direction:column}
html body .iq3 .q3-rt b{font-size:15px;color:var(--n);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .iq3 .q3-rt small{font-size:12.5px;color:var(--mu);direction:rtl}
html body .iq3 .q3-r.empty .q3-rt small{color:var(--o);font-weight:700}
html body .iq3 .q3-ra{flex:none;text-align:center;line-height:1.1}
html body .iq3 .q3-ra b{display:block;font-size:17px;color:var(--n)}
html body .iq3 .q3-ra small{font-size:11px;color:var(--mu)}
html body .iq3 .q3-chev{flex:none;width:10px;height:10px;border-inline-start:2px solid var(--mu);border-bottom:2px solid var(--mu);transform:rotate(-45deg);transition:transform .2s;margin-inline-start:2px}
html body .iq3 .q3-r.open .q3-chev{transform:rotate(135deg)}
html body .iq3 .q3-rb{display:none;padding:2px 12px 12px;border-top:1px dashed var(--ln)}
html body .iq3 .q3-r.open .q3-rb{display:block;animation:q3in .2s ease-out}
@keyframes q3in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
html body .iq3 .q3-lbl{font-size:13px;font-weight:700;color:var(--n);margin:10px 0 6px}
html body .iq3 .q3-types{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
html body .iq3 .q3-tc{flex:none;display:inline-flex!important;align-items:center;gap:5px;scroll-snap-align:start;background:#fff!important;border:1.5px solid var(--ln)!important;border-radius:99px;padding:7px 11px!important;font-size:13.5px!important;font-weight:600;color:var(--tx)!important;white-space:nowrap}
html body .iq3 .q3-tc.on{background:var(--n)!important;border-color:var(--n)!important;color:#fff!important}
html body .iq3 .q3-g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
html body .iq3 .q3-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body .iq3 .q3-g4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
html body .iq3 .q3-f{display:flex!important;flex-direction:column;gap:4px;margin:0!important;min-width:0;font-weight:400}
html body .iq3 .q3-f>span:first-child{font-size:13px;font-weight:700;color:var(--n)}
html body .iq3 .q3-i{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:48px!important;padding:10px 12px!important;margin:0!important;font:inherit!important;font-size:16px!important;line-height:1.4!important;color:var(--tx)!important;background:#fff!important;border:1.5px solid #d3dbe3!important;border-radius:12px!important;box-shadow:none!important;-webkit-appearance:none!important;appearance:none!important;text-align:right;outline:0}
html body .iq3 .q3-i:focus{border-color:var(--n)!important;box-shadow:0 0 0 3px rgba(23,58,80,.12)!important}
html body .iq3 select.q3-i{padding-left:34px!important;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23173a50' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:left 12px center!important;background-size:12px 8px!important}
html body .iq3 .q3-dims{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,.85fr);gap:6px;align-items:end;margin-top:10px}
html body .iq3 .q3-x{font-size:18px;font-weight:800;color:var(--mu);padding-bottom:12px}
html body .iq3 .q3-u{position:relative;display:block}
html body .iq3 .q3-u em{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-style:normal;font-size:12.5px;color:var(--mu);pointer-events:none}
html body .iq3 .q3-num{direction:ltr!important;text-align:center!important;font-weight:800!important;font-size:18px!important;padding-left:22px!important;padding-right:6px!important}
html body .iq3 .q3-hint p{margin-top:8px;font-size:13px;background:#fff6e5;color:#7a4b00;border-radius:10px;padding:7px 10px}
html body .iq3 .q3-hint p.soft{background:#f3f6f9;color:#45555f}
html body .iq3 .q3-fix{display:inline-block;margin-inline-start:6px!important;background:var(--o)!important;color:#fff!important;border-radius:99px;padding:3px 10px!important;font-size:12.5px!important;font-weight:700}
html body .iq3 .q3-stp{display:flex;flex-direction:column;gap:4px}
html body .iq3 .q3-stp>span{font-size:13px;font-weight:700;color:var(--n)}
html body .iq3 .q3-stp>div{display:flex;align-items:center;justify-content:space-between;border:1.5px solid #d3dbe3;border-radius:12px;min-height:48px;padding:3px}
html body .iq3 .q3-stp button{width:42px!important;height:40px!important;border-radius:10px;background:var(--bg)!important;color:var(--n)!important;font-size:22px!important;font-weight:700;line-height:1!important}
html body .iq3 .q3-stp button:active{background:#e3e9ef!important}
html body .iq3 .q3-stp b{font-size:18px;color:var(--n);min-width:24px;text-align:center}
html body .iq3 .q3-racts{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px;align-items:center}
html body .iq3 .q3-lnk{color:var(--n)!important;font-size:13.5px!important;font-weight:700;padding:6px 2px!important}
html body .iq3 .q3-lnk:last-child{margin-inline-start:auto!important;background:var(--n)!important;color:#fff!important;border-radius:99px;padding:6px 16px!important}
html body .iq3 .q3-red{color:#b3261e!important}
html body .iq3 .q3-add,html body .iq3 .q3-addfl{display:block!important;width:100%!important;margin-top:8px!important;border:1.5px dashed #b9c6d3!important;border-radius:12px;padding:12px!important;color:var(--n)!important;font-weight:700;font-size:14.5px!important;text-align:center;background:#fbfcfd!important}
html body .iq3 .q3-addfl{margin-top:4px!important;border-color:var(--g)!important;color:#7a5d1c!important;background:#fffaf0!important}

/* ---------- 3) الأعمال ---------- */
html body .iq3 .q3-wg{margin-bottom:12px}
html body .iq3 .q3-wg h4{font-size:13.5px;color:var(--mu);font-weight:800;margin:4px 2px 8px}
html body .iq3 .q3-wl{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
html body .iq3 .q3-wkw{border:1.5px solid var(--ln);border-radius:14px;background:#fff;transition:border-color .15s,background .15s}
html body .iq3 .q3-wkw.on{border-color:var(--n);background:#f7fafc}
html body .iq3 .q3-wk{display:flex!important;align-items:center;gap:10px;width:100%!important;padding:10px 12px!important;text-align:right;color:var(--tx)!important}
html body .iq3 .q3-wi{flex:none;width:38px;height:38px;border-radius:11px;background:var(--bg);display:flex;align-items:center;justify-content:center;font-size:19px}
html body .iq3 .q3-wkw.on .q3-wi{background:#fff}
html body .iq3 .q3-wt{flex:1;min-width:0;display:flex;flex-direction:column}
html body .iq3 .q3-wt b{font-size:14.5px;color:var(--n)}
html body .iq3 .q3-wt small{font-size:12px;color:var(--mu)}
html body .iq3 .q3-tg{flex:none;width:44px;height:26px;border-radius:99px;background:#cfd8e1;position:relative;transition:background .2s}
html body .iq3 .q3-tg::after{content:"";position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
html body .iq3 .q3-wkw.on .q3-tg{background:var(--gr)}
html body .iq3 .q3-wkw.on .q3-tg::after{transform:translateX(-18px)}
html body .iq3 .q3-opt{padding:0 12px 10px}
html body .iq3 .q3-opt>span{display:block;font-size:12.5px;font-weight:700;color:var(--mu);margin-bottom:5px}
html body .iq3 .q3-chips{display:flex;flex-wrap:wrap;gap:6px}
html body .iq3 .q3-chip{display:inline-flex!important;align-items:center;background:#fff!important;border:1.5px solid var(--ln)!important;border-radius:99px;padding:6px 12px!important;font-size:13px!important;font-weight:700;color:var(--n)!important;white-space:nowrap}
html body .iq3 .q3-chip.on{background:var(--n)!important;color:#fff!important;border-color:var(--n)!important}
html body .iq3 .q3-adv{margin-top:6px;border-top:1px dashed var(--ln);padding-top:8px}
html body .iq3 .q3-adv summary{cursor:pointer;font-size:13.5px;font-weight:700;color:var(--mu);padding:6px 0;list-style:none}
html body .iq3 .q3-adv summary::-webkit-details-marker{display:none}
html body .iq3 .q3-advb{padding-top:6px}
html body .iq3 .q3-advb .q3-f>span:first-child{font-size:12px}

/* ---------- الملخص ---------- */
html body .iq3 .q3-sum{scroll-margin-top:var(--q3-top,90px)}
html body .iq3 .q3-sumc{background:linear-gradient(165deg,var(--n) 0%,var(--n2) 100%);color:#fff;border-radius:20px;padding:16px 14px;box-shadow:0 14px 34px rgba(15,42,59,.28)}
html body .iq3 .q3-sum0{text-align:center;padding:14px 6px}
html body .iq3 .q3-sum0 .q3-pi{font-size:34px}
html body .iq3 .q3-sum0 b{display:block;font-size:17px;margin-top:6px;color:#fff}
html body .iq3 .q3-sum0 p{font-size:13.5px;color:rgba(255,255,255,.8);margin-top:4px}
html body .iq3 .q3-seg{display:flex;background:rgba(255,255,255,.1);border-radius:12px;padding:3px;gap:3px}
html body .iq3 .q3-seg button{flex:1;border-radius:9px;padding:9px 4px!important;font-size:14px!important;font-weight:700;color:rgba(255,255,255,.85)!important;text-align:center}
html body .iq3 .q3-seg button.on{background:#fff!important;color:var(--n)!important}
html body .iq3 .q3-big{text-align:center;margin:14px 0 8px}
html body .iq3 .q3-big>small{font-size:13px;color:rgba(255,255,255,.75)}
html body .iq3 .q3-big>div{display:flex;align-items:baseline;justify-content:center;gap:6px;margin-top:2px}
html body .iq3 .q3-big>div b{font-size:38px;font-weight:800;line-height:1.1;color:#fff;font-variant-numeric:tabular-nums}
html body .iq3 .q3-big>div span{font-size:15px;color:rgba(255,255,255,.85)}
html body .iq3 .q3-rng,html body .iq3 .q3-vat,html body .iq3 .q3-ms,html body .iq3 .q3-td{font-size:13px;color:rgba(255,255,255,.8);margin-top:3px}
html body .iq3 .q3-vat b{color:var(--g)}
html body .iq3 .q3-td{color:var(--g);font-weight:600}
html body .iq3 .q3-cmp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
html body .iq3 .q3-cmp button{display:flex!important;flex-direction:column;align-items:center;border:1px solid rgba(255,255,255,.18)!important;border-radius:11px;padding:7px 3px!important;color:#fff!important}
html body .iq3 .q3-cmp button small{font-size:11.5px;color:rgba(255,255,255,.7)}
html body .iq3 .q3-cmp button b{font-size:13px;font-variant-numeric:tabular-nums;direction:ltr}
html body .iq3 .q3-cmp button.on{border-color:var(--g)!important;background:rgba(200,164,93,.16)!important}
html body .iq3 .q3-segs{display:grid;gap:6px}
html body .iq3 .q3-seg-s button{font-size:12.5px!important;padding:7px 4px!important}
html body .iq3 .q3-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
html body .iq3 .q3-kpis div{background:rgba(255,255,255,.08);border-radius:11px;padding:8px 2px;text-align:center}
html body .iq3 .q3-kpis b{display:block;font-size:16px;color:#fff;font-variant-numeric:tabular-nums}
html body .iq3 .q3-kpis small{font-size:10.5px;color:rgba(255,255,255,.72)}
html body .iq3 .q3-ctas{display:grid;gap:8px}
html body .iq3 .q3-c2{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* أزرار */
html body .iq3 .q3-btn{display:flex!important;align-items:center;justify-content:center;gap:6px;min-height:48px!important;padding:11px 14px!important;border-radius:13px;font-size:15px!important;font-weight:800;text-align:center;transition:transform .12s,filter .15s;width:100%}
html body .iq3 .q3-btn:active{transform:scale(.98)}
html body .iq3 .q3-btn-p{background:var(--o)!important;color:#fff!important}
html body .iq3 .q3-btn-p:hover{filter:brightness(1.06);color:#fff!important}
html body .iq3 .q3-btn-s{background:#fff!important;color:var(--n)!important}
html body .iq3 .q3-btn-w{background:var(--gr)!important;color:#fff!important}
html body .iq3 .q3-btn-w:hover{background:var(--gr2)!important;color:#fff!important}
html body .iq3 .q3-btn-o{background:#fff!important;color:var(--n)!important;border:1.5px solid #cdd7e0!important}
html body .iq3 .q3-sumc .q3-btn-o{background:rgba(255,255,255,.1)!important;color:#fff!important;border-color:rgba(255,255,255,.3)!important}
html body .iq3 .q3-btn[disabled]{opacity:.6;cursor:wait}
html body .iq3 .q3-sm{min-height:40px!important;font-size:13.5px!important;padding:8px 12px!important}

/* ---------- النتيجة ---------- */
html body .iq3 .q3-card{background:#fff;border:1px solid var(--ln);border-radius:var(--r);padding:16px 14px;margin-bottom:14px;box-shadow:0 4px 18px rgba(23,58,80,.05)}
html body .iq3 .q3-card>h3{font-size:17px;font-weight:800;margin-bottom:10px}
html body .iq3 .q3-bars{display:flex;flex-direction:column;gap:9px}
html body .iq3 .q3-br{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13px}
html body .iq3 .q3-bl{color:var(--tx);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .iq3 .q3-bt{height:10px;background:var(--bg);border-radius:99px;overflow:hidden}
html body .iq3 .q3-bt i{display:block;height:100%;border-radius:99px;transition:width .5s cubic-bezier(.2,.8,.2,1)}
html body .iq3 .q3-bv{font-weight:800;color:var(--n);white-space:nowrap;font-variant-numeric:tabular-nums;direction:ltr;text-align:left}
html body .iq3 .q3-bv small{color:var(--mu);font-weight:600}
html body .iq3 .q3-items{display:flex;flex-direction:column;gap:8px}
html body .iq3 .q3-it{border:1px solid var(--ln);border-radius:13px;overflow:hidden}
html body .iq3 .q3-it summary{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none}
html body .iq3 .q3-it summary::-webkit-details-marker{display:none}
html body .iq3 .q3-iti{flex:none;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:17px;filter:saturate(.9)}
html body .iq3 .q3-itt{flex:1;min-width:0;display:flex;flex-direction:column}
html body .iq3 .q3-itt b{font-size:14.5px;color:var(--n)}
html body .iq3 .q3-itt small{font-size:12.5px;color:var(--o);font-weight:800}
html body .iq3 .q3-itc{font-weight:800;color:#1f7a45;white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums}
html body .iq3 .q3-itc small{font-size:11px;color:var(--mu)}
html body .iq3 .q3-itb{padding:0 12px 12px;font-size:13.5px;color:#3d4c57}
html body .iq3 .q3-itb ul{list-style:disc;padding-inline-start:18px}
html body .iq3 .q3-itb li{margin:3px 0}
html body .iq3 .q3-itf{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
html body .iq3 .q3-itf span{background:var(--bg);border-radius:99px;padding:3px 10px;font-size:12.5px}
html body .iq3 .q3-itp{margin-top:8px;background:#f6faf7;border-radius:10px;padding:8px 10px}
html body .iq3 .q3-itp small{color:var(--mu)}
html body .iq3 .q3-itl{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:8px}
html body .iq3 .q3-itl a{color:var(--o)!important;font-weight:700;font-size:13px}
html body .iq3 .q3-sug ul li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed var(--ln);font-size:14px}
html body .iq3 .q3-sug ul li:last-child{border-bottom:0}
html body .iq3 .q3-sug .q3-chip.on{background:var(--o)!important;border-color:var(--o)!important;flex:none}
html body .iq3 .q3-warn{background:#fffaf0;border-color:#f3d9a8}
html body .iq3 .q3-warn li{font-size:13.5px;padding:3px 0;color:#6b4a00}
html body .iq3 .q3-plans{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
html body .iq3 .q3-plan{margin:0;background:#fbfcfd;border:1px solid var(--ln);border-radius:12px;padding:10px}
html body .iq3 .q3-plan figcaption{font-size:13.5px;font-weight:800;color:var(--n);margin-bottom:6px}
html body .iq3 .q3-plan svg{display:block;width:100%;height:auto;max-height:420px}
html body .iq3 .q3-plan text{font-family:inherit}
html body .iq3 .q3-shop li label{display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-bottom:1px dashed var(--ln);font-size:14px;cursor:pointer;margin:0;font-weight:400}
html body .iq3 .q3-shop input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--gr)}
html body .iq3 .q3-shop input:checked+span{text-decoration:line-through;color:var(--mu)}
html body .iq3 .q3-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
html body .iq3 .q3-row .q3-btn{width:auto}
html body .iq3 .q3-cta{text-align:center;background:linear-gradient(180deg,#fff,#fbf7ef)}
html body .iq3 .q3-cta>p{color:var(--mu);font-size:14px;margin:-4px 0 12px}
html body .iq3 .q3-ctag{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body .iq3 .q3-ctag .q3-btn-p{grid-column:1/-1}
html body .iq3 .q3-disc{font-size:12.5px;color:var(--mu);margin-top:14px;clear:both}
html body .iq3 .q3-disc a{color:var(--o)!important;font-weight:700}

/* ---------- الشريط اللي تحت + الرسائل + نافذة عرض السعر ---------- */
html body .iq3 .q3-bar{position:fixed;left:10px;right:10px;bottom:10px;z-index:99990;display:flex;align-items:center;gap:10px;background:var(--n2);color:#fff;border-radius:16px;padding:9px 10px 9px 9px;box-shadow:0 12px 30px rgba(0,0,0,.28);animation:q3up .25s ease-out}
@keyframes q3up{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
html body .iq3 .q3-bar-t{flex:1;min-width:0;display:flex;flex-direction:column;padding-inline-start:6px}
html body .iq3 .q3-bar-t b{font-size:17px;color:#fff;font-variant-numeric:tabular-nums}
html body .iq3 .q3-bar-t small{font-size:11.5px;color:rgba(255,255,255,.75);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .iq3 .q3-bar .q3-btn{width:auto;min-height:42px!important;padding:8px 14px!important;font-size:14px!important;flex:none}
html body .iq3 .q3-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);z-index:99995;display:flex;align-items:center;gap:12px;background:#1d2a33;color:#fff;border-radius:12px;padding:10px 14px;font-size:14px;box-shadow:0 10px 26px rgba(0,0,0,.3);max-width:calc(100% - 24px);animation:q3up .2s ease-out}
html body .iq3 .q3-toast button{color:var(--g)!important;font-weight:800;white-space:nowrap}
html body .iq3 .q3-sheet{position:fixed;inset:0;z-index:999999;display:flex;align-items:flex-end;justify-content:center}
html body .iq3 .q3-shbg{position:absolute;inset:0;background:rgba(10,20,30,.55);animation:q3fade .2s}
@keyframes q3fade{from{opacity:0}}
html body .iq3 .q3-shc{position:relative;background:#fff;width:100%;max-width:520px;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;padding:20px 16px calc(18px + env(safe-area-inset-bottom));animation:q3up .25s ease-out}
html body .iq3 .q3-shc h3{font-size:19px;font-weight:800;margin-bottom:6px}
html body .iq3 .q3-shc form{display:flex;flex-direction:column;gap:10px;margin-top:12px}
html body .iq3 .q3-shx{position:absolute;top:10px;left:12px;width:36px!important;height:36px!important;border-radius:50%;background:var(--bg)!important;font-size:22px!important;color:var(--n)!important;line-height:1!important}
html body .iq3 .q3-ck{display:flex!important;align-items:center;gap:8px;font-size:14px;margin:2px 0!important;cursor:pointer;font-weight:600;color:var(--n)}
html body .iq3 .q3-ck input{width:20px;height:20px;accent-color:var(--gr);margin:0}
html body .iq3 .q3-hp{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none;clip:rect(0 0 0 0);overflow:hidden}
html body .iq3 .q3-msg{font-size:13.5px;color:#b3261e;font-weight:700;min-height:1em}
html body .iq3 .q3-ok{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:10px 0}
html body .iq3 .q3-ok .q3-pi{font-size:44px}
html body .iq3 .q3-shc .mfm-heard{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:700;color:var(--n)}
html body .iq3 .q3-shc .mfm-heard select{min-height:46px;border:1.5px solid #d3dbe3;border-radius:12px;padding:8px 10px;font:inherit;font-size:15px;background:#fff}
html.q3-lock,html.q3-lock body{overflow:hidden!important}

/* ---------- الشاشات الكبيرة: الملخص يلزق جنب الحاسبة ---------- */
@media (min-width:640px){
  html body .iq3 .q3-props{grid-template-columns:repeat(4,minmax(0,1fr))}
  html body .iq3 .q3-wl{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .iq3 .q3-g4{grid-template-columns:repeat(4,minmax(0,1fr))}
  html body .iq3 .q3-plans{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .iq3 .q3-ctag{grid-template-columns:repeat(3,minmax(0,1fr))}
  html body .iq3 .q3-ctag .q3-btn-p{grid-column:auto}
  html body .iq3 .iq3-hero{padding:38px 24px 30px}
  html body .iq3 .iq3-hero h2{font-size:32px}
  html body .iq3 .q3-shc{border-radius:22px;margin-bottom:auto;margin-top:auto}
  html body .iq3 .q3-sheet{align-items:center}
}
@media (min-width:1000px){
  html body .iq3 .q3{grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:18px;align-items:start}
  html body .iq3 .q3-side{position:sticky;top:var(--q3-top,90px);grid-row:1}
  html body .iq3 .q3-main{grid-row:1}
  html body .iq3 .q3-full{grid-column:1/-1}
  html body .iq3 .q3-bar{display:none!important}
}
@media (max-width:380px){
  html body .iq3 .q3-big>div b{font-size:32px}
  html body .iq3 .q3-kpis b{font-size:14px}
  html body .iq3 .q3-dims{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}
  html body .iq3 .q3-fh{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){html body .iq3 *{animation:none!important;transition:none!important}}
@media print{
  body *{visibility:hidden!important}
  html body .iq3,html body .iq3 *{visibility:visible!important}
  html body .iq3{position:absolute;inset:0 auto auto 0;width:100%;max-width:none;padding:0}
  html body .iq3 .q3-main,html body .iq3 .q3-bar,html body .iq3 .q3-toast,html body .iq3 .q3-sheet,html body .iq3 .q3-ctas,html body .iq3 .q3-cta .q3-ctag,html body .iq3 .q3-segs,html body .iq3 .iq3-trust,html body .iq3 .iq3-how,html body .iq3 .q3-sug button{display:none!important}
  html body .iq3 .q3{display:block}
  html body .iq3 .q3-sumc{box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html body .iq3 .q3-card,html body .iq3 .q3-it{break-inside:avoid}
}
/* 3.17: تبويبات الموبايل (الغرف ← الأعمال ← النتيجة) + معلومات كل شغلة قدام العميل */
html body .iq3 .q3-tabs{display:none}
@media (max-width:999px){
  html body .iq3 .q3-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;position:sticky;top:var(--q3-top,80px);z-index:50;background:rgba(245,247,249,.96);backdrop-filter:blur(6px);padding:8px 0;margin:0 0 10px}
  html body .iq3 .q3-tabs button{display:flex!important;align-items:center;gap:8px;justify-content:center;border:1.5px solid var(--ln)!important;background:#fff!important;border-radius:14px!important;padding:8px 6px!important;color:var(--tx)!important;min-height:52px}
  html body .iq3 .q3-tabs i{font-style:normal;width:24px;height:24px;border-radius:50%;background:var(--ln);color:var(--n);display:grid;place-items:center;font-size:13px;font-weight:800;flex:none}
  html body .iq3 .q3-tabs span{display:flex;flex-direction:column;align-items:flex-start;font-weight:800;font-size:14px;line-height:1.25}
  html body .iq3 .q3-tabs small{font-weight:600;font-size:11px;color:var(--mu);font-variant-numeric:tabular-nums}
  html body .iq3 .q3-tabs button.on{border-color:var(--n)!important;background:var(--n)!important;color:#fff!important}
  html body .iq3 .q3-tabs button.on i{background:var(--g);color:var(--n2)}
  html body .iq3 .q3-tabs button.on small{color:#e9dcbc}
  html body .iq3 .q3[data-t="1"] [data-tab]:not([data-tab="1"]),
  html body .iq3 .q3[data-t="2"] [data-tab]:not([data-tab="2"]),
  html body .iq3 .q3[data-t="3"] [data-tab]:not([data-tab="3"]){display:none!important}
  html body .iq3 .q3[data-t="3"] ~ .q3-bar,html body .iq3 .q3-bar{animation:none}
  html body .iq3 .q3-main,html body .iq3 .q3-full{padding-bottom:84px}
}
html body .iq3 .q3-wset{background:#fff;border:1px solid var(--ln);border-radius:var(--r);padding:10px 12px;margin:0 0 12px;display:grid;gap:4px}
html body .iq3 .q3-wq{margin:2px 12px 12px;display:grid;gap:8px}
html body .iq3 .q3-wq0{margin:0;color:var(--mu);font-size:13px}
html body .iq3 .q3-wqr{background:var(--bg);border-radius:12px;padding:10px 12px;border:1px solid var(--ln)}
html body .iq3 .q3-wqh{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
html body .iq3 .q3-wqh b{color:var(--n);font-size:14px}
html body .iq3 .q3-wqh span{color:var(--o);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
html body .iq3 .q3-wqp{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px;font-size:13px;color:var(--mu)}
html body .iq3 .q3-wqp b{color:var(--gr2);font-variant-numeric:tabular-nums}
html body .iq3 .q3-wqm{margin:6px 0 0;padding:0 18px 0 0;font-size:13px;color:var(--tx);line-height:1.7}
html body .iq3 .q3-rng small{opacity:.75;font-size:11px}
html body .iq3 .q3-wset{padding:8px 6px;gap:0}
html body .iq3 .q3-wset .q3-opt{display:flex;align-items:center;gap:8px;padding:5px 6px}
html body .iq3 .q3-wset .q3-opt>span{margin:0;min-width:74px;flex:none}
html body .iq3 .q3-wset .q3-chips{display:flex;flex-wrap:nowrap;gap:5px;overflow-x:auto}
html body .iq3 .q3-wset .q3-chip{padding:5px 10px!important;white-space:nowrap}
