/* CARL V7.3 additions, scoped: existing Home and mobile critical CSS untouched. */
#carlWork .cw-v73-field{display:flex;flex-direction:column;gap:5px;margin:9px 0;min-width:0;max-width:100%}
#carlWork .cw-v73-card{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
#carlWork .cw-v73-card .cw-input{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
#carlWork .cw-v73-items{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 16px}
#carlWork .cw-v73-thread{height:min(43vh,320px);min-height:160px;overflow:auto;overflow-wrap:anywhere;overscroll-behavior:contain;border:1px solid rgba(208,174,84,.3);border-radius:14px;padding:9px;background:rgba(0,0,0,.25)}
#carlWork .cw-v73-message{margin:8px 0;padding:10px;border:1px solid rgba(209,177,89,.23);border-radius:12px;background:rgba(198,159,65,.07);white-space:pre-wrap;overflow-wrap:anywhere}
#carlWork .cw-v73-message small{opacity:.7}
#carlWork .cw-v73-message p{margin:5px 0 0}
#carlWork .cw-v73-contents{white-space:pre-wrap;word-break:break-word;max-height:160px;overflow:auto}
.carl-v73-request-open{display:block;margin:12px auto 20px;background:transparent;border:1px solid rgba(222,189,87,.7);border-radius:13px;color:#f4dc8c;font-weight:600;min-height:41px;padding:8px 13px;max-width:95%}
.carl-v73-request-modal[hidden]{display:none!important}
.carl-v73-request-modal{position:fixed;inset:0;background:rgba(0,0,0,.84);display:flex;align-items:center;justify-content:center;padding:16px;z-index:99999;box-sizing:border-box;overflow:auto}
.carl-v73-request-panel{background:#211c0d;border:1px solid #9c822d;border-radius:18px;color:#f0e4b1;padding:19px;box-sizing:border-box;width:min(100%,450px);max-height:92dvh;overflow:auto}
.carl-v73-request-panel h2{letter-spacing:2px;margin-top:0;font-size:20px}
.carl-v73-request-panel p{font-size:13px;line-height:1.5}
.carl-v73-request-panel label{display:flex;flex-direction:column;gap:5px;font-size:13px;margin:11px 0}
.carl-v73-request-panel input,.carl-v73-request-panel select,.carl-v73-request-panel textarea{font:inherit;box-sizing:border-box;width:100%;background:#101109;color:#fff3ce;border:1px solid #6f602c;border-radius:10px;min-height:41px;padding:10px}
.carl-v73-request-panel textarea{min-height:65px}
.carl-v73-request-controls{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}
.carl-v73-request-controls button{background:#887025;border:1px solid #baa54d;border-radius:9px;color:#fff5c4;font-weight:600;min-height:40px;padding:8px 12px;flex:1}
.carl-v73-request-status{overflow-wrap:anywhere}
@media(max-width:700px){#carlWork .cw-v73-items{flex-wrap:nowrap;overflow-x:auto}#carlWork .cw-v73-thread{height:38dvh}#carlWork .cw-v73-card{padding:12px}#carlWork .cw-v73-card .cw-actions{flex-wrap:wrap}#carlWork .cw-v73-card textarea{min-height:74px}}

#carlWork .cw-v73-card input.cw-input,#carlWork .cw-v73-card select.cw-input{min-height:42px;height:44px;resize:none}
#carlWork .cw-v73-card textarea.cw-input{min-height:85px}
#carlWork .cw-v73-card select:not(.cw-input){min-height:42px;padding:8px 10px;background:#10150e;color:#f3efda;border:1px solid #877d4f;border-radius:10px}

/* V7.3.1 — Conversazioni reali, accesso Gift/abbonati, niente passphrase */
#carlWork .cw-v731-shell{display:grid;grid-template-columns:minmax(160px,32%) minmax(0,1fr);gap:12px;min-width:0;min-height:330px}
#carlWork .cw-v731-list,#carlWork .cw-v731-conversation{min-width:0;border:1px solid rgba(208,174,84,.26);border-radius:13px;padding:12px;background:rgba(14,14,8,.4);box-sizing:border-box}
#carlWork .cw-v731-create{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#carlWork .cw-v731-create select{flex:1 1 135px;min-width:0}
#carlWork .cw-v731-roomlist{display:flex;flex-direction:column;gap:6px;overflow-y:auto;max-height:56dvh}
#carlWork .cw-v731-room{padding:12px;text-align:left;border:1px solid rgba(204,173,76,.36);border-radius:10px;background:rgba(213,169,62,.07);color:inherit;font:inherit;cursor:pointer}
#carlWork .cw-v731-room.active{background:rgba(210,168,60,.22);border-color:rgba(244,215,119,.8)}
#carlWork .cw-v731-room small{display:block;font-size:11px;opacity:.65;margin-top:5px}
#carlWork .cw-v731-conversation{display:flex;flex-direction:column;gap:9px}
#carlWork .cw-v731-chathead{display:flex;align-items:center;gap:10px;padding-bottom:9px;border-bottom:1px solid rgba(208,174,84,.3)}
#carlWork .cw-v731-back{display:none}
#carlWork .cw-v731-thread{height:min(52dvh,440px);min-height:210px;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:8px 3px;overscroll-behavior:contain}
#carlWork .cw-v731-bubble{box-sizing:border-box;max-width:86%;padding:9px 12px;border-radius:13px;border:1px solid rgba(219,195,109,.25);background:rgba(215,185,96,.1);white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start;line-height:1.45}
#carlWork .cw-v731-bubble.mine{align-self:flex-end;background:rgba(177,143,54,.32);border-color:rgba(236,205,106,.48)}
#carlWork .cw-v731-bubble small{display:block;opacity:.65;margin-top:5px;font-size:10px}
#carlWork .cw-v731-composer textarea{width:100%;min-height:56px;box-sizing:border-box;resize:vertical;font-size:16px}
#carlWork .cw-v731-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}
#carlWork .cw-v731-empty{display:grid;place-items:center;min-height:240px;color:#c3b47b}
@media(max-width:700px){
 #carlWork .cw-v731-shell{display:block;min-width:0}
 #carlWork .cw-v731-shell.cw-v731-has-chat .cw-v731-list{display:none}
 #carlWork .cw-v731-shell:not(.cw-v731-has-chat) .cw-v731-conversation{display:none}
 #carlWork .cw-v731-back{display:inline-flex}
 #carlWork .cw-v731-thread{height:clamp(140px,calc(100dvh - 500px),390px);min-height:140px}
 #carlWork .cw-v731-list,#carlWork .cw-v731-conversation{padding:10px}
}
