/* Tiên Giới Truyện 3D • CSKH V4.2 • Customer unified image-message bubble */
:root{--v42-gold:#e5bb74}
.chat-scroll{background:radial-gradient(circle at 80% 15%,#1a344eaa 0,transparent 36%),linear-gradient(180deg,#0c2033,#071521)!important;scrollbar-color:#ad8752 #102035}
.bubble-row{max-width:min(84%,720px)}
.bubble-row .bubble{background:linear-gradient(145deg,#1e3a56,#172f47)!important;border:1px solid #4a6b83!important;color:#f4eee5!important;padding:12px 14px!important;box-shadow:0 6px 17px #0004}
.bubble-row.visitor .bubble{background:linear-gradient(140deg,#4b3b2a,#332d29)!important;border:1px solid #ad8856!important}
.bubble-row .bubble strong{color:#f0c37b!important}
.bubble-row .bubble p{font-size:14px;line-height:1.6;color:#f4f1ed!important;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble-row .bubble time{color:#b5c7d9!important}
.bubble-row .bubble .media{display:block;width:fit-content;max-width:100%;margin:3px 0 8px;border:1px solid #587b91;background:#0d2235;border-radius:11px;padding:4px;overflow:hidden}
.bubble-row.visitor .bubble .media{border-color:#a58d62;background:#2a2a2a}
.bubble-row .bubble .chat-photo{width:auto;max-width:min(100%,330px)!important;max-height:330px!important;object-fit:contain;border-radius:8px;margin:0!important}
.composer{background:linear-gradient(180deg,#132b42,#0a1b2e)!important;border-top:1px solid #9e7946!important;padding:13px 14px!important}
.composer .quick{background:#1b3550!important;color:#e1eaf0!important;border:1px solid #4e657c!important}
.composer .quick:hover{border-color:#d7a965!important}
.composer .compose-main{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:stretch;gap:8px}
.composer #message{grid-column:1;grid-row:2;width:100%;min-width:0;min-height:62px;background:#0a1b2d!important;color:#f7ecdc!important;border:1px solid #a18354!important;border-radius:11px!important;outline:none;padding:12px 14px;line-height:1.5}
.composer #message:focus{border-color:#e5b86a!important;box-shadow:0 0 0 2px #c894492a}
.composer #message::placeholder{color:#b0c0cf!important}
.composer #pick-photo{grid-column:2;grid-row:2;background:#203b56!important;color:#efc87e!important;border:1px solid #9e835e!important;border-radius:10px!important;min-width:50px}
.composer #send{grid-column:3;grid-row:2;white-space:nowrap;min-width:90px}
.composer #photo-preview{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:11px;min-width:0;margin:0 0 2px!important;padding:9px!important;background:#162f48!important;border:1px dashed #ae905f!important;border-radius:11px!important;color:#d4e4f1!important}
.composer #photo-preview img{width:64px;height:62px;flex:0 0 64px;object-fit:contain;border-radius:7px;background:#071525}
.composer #photo-preview span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}
.composer #photo-preview button{background:#403138;color:#ffded0;border:1px solid #966e67;white-space:nowrap}
@media(max-width:650px){.chat-scroll{padding:11px 9px}.bubble-row{max-width:95%}.composer{padding:9px!important}.composer .compose-main{gap:6px}.composer #message{min-height:56px;font-size:13px}.composer #pick-photo{min-width:42px}.composer #send{min-width:66px;padding:8px 10px}.bubble-row .bubble .chat-photo{max-height:250px!important}}
