/* CAIELLE Home Design Atelier • scoped; no styling outside this one module. */
#moduleBody .cai-home-at{--hd-gold:#e8c578;--hd-blue:#48b5ff;--hd-border:rgba(95,185,255,.38);color:#f5f7ff;font-family:Inter,system-ui,Arial,sans-serif;padding-bottom:32px}
#moduleBody .cai-home-at *{box-sizing:border-box}
#moduleBody .cai-home-at .hd-eyebrow{font:600 10px Inter,system-ui,sans-serif;letter-spacing:.28em;text-transform:uppercase;color:var(--hd-gold)}
#moduleBody .cai-home-at .hd-card{border:1px solid var(--hd-border);background:linear-gradient(130deg,rgba(6,20,43,.96),rgba(13,36,74,.93));border-radius:23px;box-shadow:0 12px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(183,232,255,.10);overflow:hidden;position:relative}
#moduleBody .cai-home-at .hd-hero{min-height:226px;display:grid;grid-template-columns:1.15fr .85fr;background:radial-gradient(circle at 79% 48%,rgba(40,121,206,.23),transparent 55%),linear-gradient(115deg,#071026,#061b34);border-color:rgba(219,175,98,.60)}
#moduleBody .cai-home-at .hd-hero-copy{z-index:1;padding:26px 8px 24px 24px;position:relative}
#moduleBody .cai-home-at .hd-hero h2{font:normal clamp(32px,5vw,49px)/1.06 Georgia,'Times New Roman',serif;color:#fbedcb;margin:9px 0 10px;letter-spacing:-.03em}
#moduleBody .cai-home-at .hd-hero p{font-size:13px;color:#c6d2e5;line-height:1.65;margin:0 0 14px;max-width:390px}
#moduleBody .cai-home-at .hd-hero strong{display:block;color:var(--hd-gold);font-size:10px;letter-spacing:.16em;line-height:1.8;text-transform:uppercase;font-weight:600}
#moduleBody .cai-home-at .hd-hero-picture{background:linear-gradient(90deg,#07162e 1%,transparent 35%),url('/assets/caielle-home-room.jpg') center/cover no-repeat;min-height:220px;filter:saturate(.93)}
#moduleBody .cai-home-at .hd-panel{margin-top:14px;padding:24px 22px}
#moduleBody .cai-home-at h3{font:normal clamp(24px,4vw,33px)/1.2 Georgia,serif;margin:8px 0 8px;color:#fff5df}
#moduleBody .cai-home-at .hd-soft{color:#b9c7da;font-size:13px;line-height:1.7;margin:0 0 14px}
#moduleBody .cai-home-at .hd-upload-flex{display:grid;grid-template-columns:1.45fr .8fr;gap:20px;align-items:center}
#moduleBody .cai-home-at .hd-preview-wrap{position:relative;border:1px solid rgba(113,199,255,.7);border-radius:20px;min-height:210px;background:linear-gradient(155deg,rgba(3,24,55,.30),rgba(5,10,23,.10)),url('/assets/caielle-home-upload.jpg') center/cover no-repeat;box-shadow:0 8px 22px rgba(0,0,0,.35),0 0 26px rgba(2,135,255,.14);overflow:hidden}
#moduleBody .cai-home-at .hd-preview-wrap::after{content:'✦';position:absolute;right:12px;top:8px;font-size:24px;color:#f6d989;text-shadow:0 0 16px #f3bf56;pointer-events:none}
#moduleBody .cai-home-at .hd-preview-wrap img{width:100%;height:210px;object-fit:contain;background:#060e1d;display:block}
#moduleBody .cai-home-at .hd-preview-wrap .hd-preview-label{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(2,9,24,.93));font-size:11px;color:#f9df9a;padding:23px 12px 9px;text-align:center}
#moduleBody .cai-home-at .hd-primary{border:1px solid #9ddfff;border-radius:16px;background:linear-gradient(110deg,#0073e3,#2a80ff);box-shadow:0 0 0 1px rgba(25,131,255,.25),0 0 22px rgba(0,138,255,.5);padding:14px 18px;color:#fff;font-weight:750;font-size:14px;min-height:51px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;transition:transform .2s,filter .2s}
#moduleBody .cai-home-at .hd-primary:hover{filter:brightness(1.15);transform:translateY(-1px)}
#moduleBody .cai-home-at button:focus-visible,#moduleBody .cai-home-at select:focus-visible,#moduleBody .cai-home-at input:focus-visible{outline:3px solid #f5d180;outline-offset:3px}
#moduleBody .cai-home-at .hd-secondary{background:#101d33;border:1px solid rgba(210,179,116,.5);border-radius:13px;color:#f6dc9c;padding:11px 13px;font-weight:650;font-size:12px;min-height:43px}
#moduleBody .cai-home-at .hd-secondary:hover{background:#1a3053}
#moduleBody .cai-home-at .hd-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:15px}
#moduleBody .cai-home-at .hd-note{font-size:11px;color:#a5c4dc;line-height:1.5;margin:10px 0 0}
#moduleBody .cai-home-at .hd-pill{display:inline-flex;border:1px solid rgba(101,210,244,.28);border-radius:30px;background:rgba(40,122,179,.12);color:#7fe9ff;padding:6px 10px;font-size:10px;letter-spacing:.1em;text-transform:uppercase}
#moduleBody .cai-home-at .hd-plan-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}
#moduleBody .cai-home-at .hd-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
#moduleBody .cai-home-at .hd-choice{display:flex;flex-direction:column;align-items:flex-start;min-height:148px;width:100%;text-align:left;padding:17px 14px;border:1px solid rgba(237,191,101,.62);border-radius:17px;background:radial-gradient(circle at 90% 20%,rgba(58,104,148,.25),transparent 65%),#09162a;color:#f5f1e9;transition:transform .15s,box-shadow .15s}
#moduleBody .cai-home-at .hd-choice:hover{transform:translateY(-2px);box-shadow:0 7px 23px rgba(225,184,98,.12)}
#moduleBody .cai-home-at .hd-choice .hd-icon{font-size:26px;color:#e7bd72;margin-bottom:10px}
#moduleBody .cai-home-at .hd-choice b{font:normal 19px/1.14 Georgia,serif;color:#fff5df}
#moduleBody .cai-home-at .hd-choice small{font-size:11px;line-height:1.4;color:#aebfce;margin-top:8px}
#moduleBody .cai-home-at .hd-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
#moduleBody .cai-home-at .hd-field label{display:block;font-size:11px;margin-bottom:7px;color:#d3ddec;font-weight:680}
#moduleBody .cai-home-at .hd-field select,#moduleBody .cai-home-at .hd-field input{width:100%;min-width:0;background:#07142b;border:1px solid #34536c;color:#f5f7ff;border-radius:10px;padding:10px 9px;min-height:40px;font-size:12px}
#moduleBody .cai-home-at .hd-status{padding:10px 13px;margin-top:12px;border:1px solid rgba(112,202,238,.35);background:#09263b;color:#d0f3ff;border-radius:12px;font-size:12px;line-height:1.45}
#moduleBody .cai-home-at .hd-status[data-kind='error']{border-color:#ec9d8f;background:#2d1723;color:#ffcbc3}
#moduleBody .cai-home-at .hd-foot{font:600 12px Georgia,serif;text-align:center;color:#d3b16a;margin:24px 0 0;letter-spacing:.14em}
#moduleBody .cai-home-at #hdFilePicker{display:none}
#moduleBody .cai-home-at .hd-muted{color:#90b0c8;font-size:10px}
@media(max-width:630px){
#moduleBody .cai-home-at .hd-hero{grid-template-columns:1fr;min-height:0}
#moduleBody .cai-home-at .hd-hero-copy{padding:21px 18px 12px}
#moduleBody .cai-home-at .hd-hero-picture{min-height:145px;max-height:160px;background-position:center 50%}
#moduleBody .cai-home-at .hd-upload-flex{grid-template-columns:1fr;gap:12px}
#moduleBody .cai-home-at .hd-panel{padding:18px 16px}
#moduleBody .cai-home-at .hd-plan-grid{grid-template-columns:1fr;gap:10px}
#moduleBody .cai-home-at .hd-choice{min-height:88px;padding:12px 15px}
#moduleBody .cai-home-at .hd-choice .hd-icon{font-size:19px;margin-bottom:3px}
#moduleBody .cai-home-at .hd-choice b{font-size:18px}
#moduleBody .cai-home-at .hd-choice small{margin-top:4px}
#moduleBody .cai-home-at .hd-fields{grid-template-columns:1fr 1fr}
#moduleBody .cai-home-at .hd-preview-wrap{min-height:155px}
#moduleBody .cai-home-at .hd-preview-wrap img{height:170px}
#moduleBody .cai-home-at .hd-primary{width:100%}
#moduleBody .cai-home-at .hd-plan-head{display:block}
}
@media(prefers-reduced-motion:reduce){#moduleBody .cai-home-at *{transition:none!important}}

#moduleModal.hd-home-open .modal-panel{position:relative}
#moduleModal.hd-home-open .modal-head{position:absolute;top:13px;right:34px;width:auto;margin:0;padding:0;background:transparent;border:0;box-shadow:none;z-index:5}
#moduleModal.hd-home-open .modal-head>div{display:none}
#moduleModal.hd-home-open .close-modal{width:40px;height:40px;background:#111b2e;color:#f7d488;border:1px solid rgba(232,192,113,.63);border-radius:13px}
#moduleBody .cai-home-at .hd-secondary:disabled{opacity:.48;cursor:not-allowed}

.cai-home-at [hidden]{display:none!important}
