
:root{
  --bg:#FAFAFA;
  --surface:#ffffff;
  --surface-2:#FDF6F7;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#6B1024;
  --gold:#c79a2b;
  --border:#E8D0D5;
  --success:#15803d;
  --danger:#b91c1c;
  --shadow:0 18px 44px rgba(107,16,36,.08);
  --radius:22px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:linear-gradient(180deg,#FFFFFF 0%,#FDF6F7 42%,#FAFAFA 100%);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none}
img{max-width:100%}
body{min-height:100vh}
.site-shell{min-height:100vh;display:flex;flex-direction:column}
.container{width:min(1180px,calc(100% - 28px));margin:0 auto}
.topbar{background:rgba(107,16,36,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;z-index:30}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:800;letter-spacing:.03em}
.brand-badge{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--gold),#f6d278);display:flex;align-items:center;justify-content:center;color:var(--primary);font-weight:900;box-shadow:0 10px 24px rgba(199,154,43,.28)}
.topbar nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.topbar nav a{color:#fff;padding:10px 14px;border-radius:999px;font-size:14px;background:rgba(255,255,255,.08)}
.topbar nav a:hover{background:rgba(255,255,255,.14)}
.main-content{padding:28px 0 34px}
.hero{background:linear-gradient(135deg,rgba(107,16,36,.98),rgba(139,21,56,.92));color:#fff;padding:30px;border-radius:30px;box-shadow:var(--shadow);position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.09)}
.hero::after{content:"";position:absolute;inset:auto -100px -120px auto;width:240px;height:240px;background:radial-gradient(circle,#f1c86f 0%,rgba(241,200,111,0) 72%);opacity:.35}
.hero h1{margin:0 0 12px;font-size:clamp(28px,4vw,42px)}
.hero p{margin:0;color:#F5D5DC;font-size:16px;max-width:820px}
.grid{display:grid;gap:22px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px}
.card,.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.card{padding:24px}
.panel{padding:20px}
.card h2,.panel h2{margin:0 0 16px;font-size:22px;color:var(--primary)}
.card p.muted,.muted{color:var(--muted)}
label{display:block;font-weight:700;font-size:14px;margin:12px 0 8px}
input,select,textarea,button{font:inherit}
input[type=text],input[type=password],textarea,select{width:100%;padding:14px 15px;border-radius:16px;border:1px solid #D4B5BC;background:#fff;outline:none;transition:border-color .15s ease, box-shadow .15s ease}
input[type=text]:focus,input[type=password]:focus,textarea:focus,select:focus{border-color:#6B1024;box-shadow:0 0 0 4px rgba(107,16,36,.16)}
textarea{min-height:88px;resize:vertical}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:999px;border:1px solid transparent;font-weight:800;cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.58;cursor:not-allowed;transform:none}
.btn-primary{background:linear-gradient(135deg,var(--primary),#8B1538);color:#fff;box-shadow:0 16px 30px rgba(11,31,77,.23)}
.btn-gold{background:linear-gradient(135deg,var(--gold),#ecc561);color:#111827;box-shadow:0 16px 30px rgba(199,154,43,.24)}
.btn-outline{background:#fff;border-color:#D4B5BC;color:var(--primary)}
.btn-danger{background:linear-gradient(135deg,#dc2626,#991b1b);color:#fff}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:4px 10px;border-radius:999px;background:#FDF2F4;color:var(--primary);font-weight:800;font-size:12px}
.flash{padding:14px 16px;border-radius:18px;margin:0 0 18px;border:1px solid}
.flash.success{background:#effcf4;color:#14532d;border-color:#bbf7d0}
.flash.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.flash.info{background:#FDF2F4;color:#8B1538;border-color:#F5D5DC}
.site-footer{margin-top:auto;padding:24px 0;color:#cbd5e1;background:#3A0812}
.site-footer p{margin:0;text-align:center}
.chat-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px;margin-top:22px}
.sidebar-list{display:flex;flex-direction:column;gap:12px;max-height:70vh;overflow:auto;padding-right:2px}
.room-item{display:block;padding:16px;border-radius:20px;border:1px solid #E8D0D5;background:#FFFFFF}
.room-item:hover{border-color:#C9828E;background:#fff}
.table-wrap{overflow:auto}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:12px 14px;border-bottom:1px solid #E8D0D5;text-align:left;vertical-align:top}
.table th{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.03em}
.chat-card{display:grid;gap:16px;padding:18px}
.chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.quick-replies{display:flex;gap:10px;flex-wrap:wrap}
.chip{border:none;border-radius:999px;padding:10px 14px;background:#FDF6F7;color:var(--primary);cursor:pointer;font-weight:700}
.messages{display:flex;flex-direction:column;gap:12px;min-height:360px;max-height:54vh;overflow:auto;padding:14px;background:#F9F9F9;border-radius:24px;border:1px solid #E8D0D5}
.msg{max-width:min(82%,720px);padding:14px 16px;border-radius:20px;box-shadow:0 12px 26px rgba(107,16,36,.06)}
.msg small{display:block;margin-bottom:6px;color:#64748b}
.msg.customer{align-self:flex-start;background:#fff}
.msg.branch,.msg.mall,.msg.company{align-self:flex-end;background:linear-gradient(135deg,#6B1024,#8B1538);color:#fff}
.msg.branch small,.msg.mall small,.msg.company small{color:#F5D5DC}
.msg.bot,.msg.system{align-self:center;background:#fff8e7;border:1px solid #f2d288;color:#7c5c0a}
.media-preview{width:min(100%,360px);border-radius:18px}
.composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.composer .full{grid-column:1/-1}
.help{color:var(--muted);font-size:13px}
.inline{display:inline}
.call-panel{display:flex;gap:10px;flex-wrap:wrap;padding:14px;border-radius:22px;border:1px solid #E8D0D5;background:#fff}
.call-status{padding:12px 14px;border-radius:18px;background:#FFFFFF;border:1px solid #E8D0D5;color:var(--primary);font-weight:700}
.call-status.live{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.call-status.ringing{background:#FDF2F4;border-color:#F5D5DC;color:#8B1538}
.call-status.ended{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.install-tip{margin-top:18px;padding:14px 16px;border-radius:20px;background:#fff8e7;border:1px solid #f3da9a;color:#7c5c0a}
.login-card{max-width:560px;margin:24px auto}
.call-banner{display:none;position:fixed;right:18px;bottom:18px;max-width:360px;z-index:60;background:#fff;border:1px solid #E8D0D5;border-radius:24px;box-shadow:0 22px 48px rgba(107,16,36,.18);padding:18px}
.call-banner.show{display:block}
.call-banner h3{margin:0 0 8px;color:var(--primary)}
.call-banner p{margin:0 0 14px;color:var(--muted)}
.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:16px}
.account-card{padding:18px;border-radius:22px;border:1px solid #dae5f5;background:#FFFFFF}
.account-card h3{margin:0 0 8px;color:var(--primary)}
.account-meta{font-size:13px;color:var(--muted)}
@media (max-width: 900px){
  .grid-2,.chat-layout{grid-template-columns:1fr}
  .messages{max-height:50vh}
}
@media (max-width: 640px){
  .topbar-inner{align-items:flex-start;flex-direction:column}
  .topbar nav{width:100%}
  .topbar nav a{font-size:13px}
  .hero,.card,.panel{border-radius:24px}
  .composer{grid-template-columns:1fr}
  .msg{max-width:92%}
}

.call-stage{padding:14px;border-radius:22px;border:1px solid #E8D0D5;background:#FFFFFF}.video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.video-card{background:#3A0812;border-radius:20px;padding:12px;color:#fff;min-height:180px}.video-card strong{display:block;margin-bottom:8px}.video-card video{width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;object-fit:cover}.video-card.local{border:2px solid #d4af37}


/* room redesign */
.topbar nav a[href="settings.php"]{background:rgba(199,154,43,.18);border:1px solid rgba(246,210,120,.25)}
.chat-room-shell{padding:10px 0 32px}
.room-app-card{display:grid;grid-template-columns:92px 300px minmax(0,1fr);min-height:78vh;background:#fff;border-radius:30px;overflow:hidden;border:1px solid #E8D0D5;box-shadow:0 24px 54px rgba(107,16,36,.16)}
.room-left-rail{background:linear-gradient(180deg,#5C0A1E 0%,#4A0A18 100%);color:#fff;padding:18px 14px;display:flex;flex-direction:column;align-items:center;gap:24px}
.rail-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:4px}
.rail-brand-badge{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#d9b24d,#f0d77a);display:flex;align-items:center;justify-content:center;color:#6B1024;font-weight:900}
.rail-brand-text{font-size:11px;font-weight:800;letter-spacing:.08em;text-align:center;line-height:1.25}
.rail-nav{display:flex;flex-direction:column;gap:12px;width:100%}
.rail-link{display:flex;flex-direction:column;align-items:center;gap:8px;color:#F5D5DC;padding:10px 8px;border-radius:18px;font-size:11px}
.rail-link.active,.rail-link:hover{background:rgba(255,255,255,.08);color:#fff}
.rail-ico{font-size:18px;line-height:1}
.rail-user{margin-top:auto;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#d9b24d,#f0d77a);color:#5C0A1E;display:flex;align-items:center;justify-content:center;font-weight:800}
.room-list-panel{background:#FFFFFF;border-right:1px solid #E8D0D5;padding:20px 16px}
.room-list-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.room-list-top h2{margin:0;color:#6B1024;font-size:24px}.compose-link{width:36px;height:36px;border-radius:12px;border:1px solid #E8D0D5;display:flex;align-items:center;justify-content:center;color:#6B1024;background:#fff}
.room-list-card{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:14px;border-radius:20px;background:#fff;border:1px solid #E8D0D5;color:#1e293b}.room-list-card.current{background:linear-gradient(135deg,#7A1230,#0b2160);color:#fff;border-color:#7A1230}.room-list-card.current span,.room-list-card.current em{color:#F5D5DC}.room-list-card em{font-style:normal;font-size:12px;color:#64748b}
.avatar-disc,.avatar-photo{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#d9b24d,#f0d77a);color:#6B1024;font-weight:800}.avatar-photo{width:54px;height:54px}
.room-list-copy{display:flex;flex-direction:column;gap:4px}.room-list-copy span{font-size:13px;color:#64748b;line-height:1.35}
.room-chat-panel{display:flex;flex-direction:column;background:#fff}
.room-topbar{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 26px 18px;border-bottom:1px solid #F5F0F1}.room-party-meta{display:flex;align-items:center;gap:14px}.room-party-meta h1{margin:0;font-size:24px;color:#6B1024}.room-party-meta p{margin:4px 0 0;color:#22c55e;font-size:13px;font-weight:600}
.room-icon-actions{display:flex;gap:10px;align-items:center}
.icon-btn{width:52px;height:52px;border-radius:18px;border:none;display:inline-flex;align-items:center;justify-content:center;color:#6B1024;box-shadow:0 12px 22px rgba(107,16,36,.12);background:#e5e7eb;cursor:pointer}.icon-btn svg{width:22px;height:22px}.icon-btn.gold{background:linear-gradient(135deg,#dcb54c,#f0d36f)}.icon-btn.success{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}.icon-btn.slate{background:linear-gradient(135deg,#475569,#334155);color:#fff}.icon-btn.danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}
.call-status-strip{padding:10px 26px;color:#64748b;font-weight:700;font-size:13px}.call-status-strip.live{color:#166534}.call-status-strip.ringing{color:#8B1538}.call-status-strip.ended{color:#991b1b}
.room-messages{background:#fff;flex:1;min-height:420px;max-height:none;padding:22px 26px;border:none;border-radius:0}
.msg{position:relative;border-radius:20px;padding:14px 16px 18px;max-width:62%}.msg.customer{background:#f7f7f7}.msg.branch,.msg.mall,.msg.company{background:linear-gradient(135deg,#7A1230,#6B1024)}.msg-actions{position:absolute;top:8px;right:10px;display:flex;gap:6px}.msg-action-btn{width:24px;height:24px;border-radius:50%;border:none;background:rgba(255,255,255,.16);color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px}.msg.customer .msg-action-btn{background:#E8D0D5;color:#334155}
.room-composer{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:18px 22px 20px;border-top:1px solid #F5F0F1;background:#fff}.hidden-file{display:none}.circle-tool,.send-btn{width:46px;height:46px;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 18px rgba(107,16,36,.12)}.circle-tool.plus{background:linear-gradient(135deg,#e1c05d,#f3d86f);color:#6B1024;font-size:28px;line-height:1}.composer-field{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #E8D0D5;border-radius:999px;padding:0 10px 0 16px;min-height:52px}.composer-field textarea{border:none;box-shadow:none;resize:none;min-height:26px;max-height:120px;padding:14px 0;background:transparent}.composer-field textarea:focus{box-shadow:none;border:none}.mic-btn{width:38px;height:38px;border-radius:50%;border:none;background:#FAFAFA;color:#475569;display:flex;align-items:center;justify-content:center}.mic-btn.recording{background:#fee2e2;color:#b91c1c}.send-btn{background:linear-gradient(135deg,#6B1024,#8B1538);color:#fff}.send-btn svg,.mic-btn svg{width:20px;height:20px}
.mobile-bottom-nav,.mobile-call-dock{display:none}
.settings-shell{display:grid;gap:18px}.settings-hero h1{margin:0 0 6px;color:#6B1024}.settings-hero p{margin:0;color:#64748b}.settings-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px}.settings-links-list{display:grid;gap:10px}.settings-link-card{display:block;padding:14px 16px;border-radius:18px;background:#FFFFFF;border:1px solid #E8D0D5;color:#6B1024;font-weight:700}
@media (max-width: 980px){.room-app-card{grid-template-columns:1fr}.room-left-rail,.room-list-panel{display:none}.room-chat-panel{min-height:100vh}.room-topbar{padding:18px 16px 10px}.room-icon-actions.desktop-actions{display:none}.room-messages{padding:18px 14px 150px;min-height:50vh}.msg{max-width:84%}.room-composer{position:sticky;bottom:92px;z-index:15;padding:10px 12px;background:transparent;border-top:none}.composer-field{background:#fff;box-shadow:0 8px 20px rgba(107,16,36,.1)}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #E8D0D5;z-index:20}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:#475569;font-size:11px;font-weight:600}.mobile-bottom-nav a.active{color:#c79a2b}.mobile-bottom-nav svg{width:20px;height:20px}.mobile-call-dock{position:fixed;left:50%;transform:translateX(-50%);bottom:74px;display:flex;gap:10px;padding:10px 12px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border:1px solid #E8D0D5;border-radius:24px;box-shadow:0 18px 36px rgba(107,16,36,.16);z-index:21}.mobile-call-dock .icon-btn{width:48px;height:48px;border-radius:16px}.settings-grid{grid-template-columns:1fr}}



/* 2026 app room redesign */
.chat-room-shell{padding:0;min-height:100vh}.chat-app-frame{display:grid;grid-template-columns:88px 340px minmax(0,1fr);min-height:100vh;background:#ffffff}.desktop-only{display:block}
.app-sidebar{background:linear-gradient(180deg,#6B1024 0%,#7A1230 100%);padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:24px}.app-brand-mark{padding-top:6px}.app-brand-badge{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#d4af37,#f3d77a);display:flex;align-items:center;justify-content:center;color:#6B1024;font-weight:900;font-size:22px;box-shadow:0 12px 26px rgba(0,0,0,.18)}
.app-side-nav{display:flex;flex-direction:column;gap:14px;width:100%;align-items:center}.side-nav-item{width:64px;min-height:64px;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#F5D5DC;background:transparent}.side-nav-item svg{width:20px;height:20px}.side-nav-item span{font-size:11px;font-weight:700}.side-nav-item.active,.side-nav-item:hover{background:rgba(255,255,255,.12);color:#fff}
.side-profile-badge{margin-top:auto;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:#6B1024;font-weight:900}
.chat-list-column{background:#FFFFFF;border-right:1px solid #E8D0D5;padding:26px 18px 18px}.eyebrow{margin:0 0 4px;color:#94a3b8;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.list-head h2{margin:0;color:#6B1024;font-size:30px}.list-compose{width:42px;height:42px;border-radius:50%;background:#fff;color:#6B1024;border:1px solid #E8D0D5;display:flex;align-items:center;justify-content:center;font-size:28px;line-height:1;box-shadow:0 10px 20px rgba(107,16,36,.08)}
.chat-list-card{display:grid;grid-template-columns:58px 1fr auto;gap:14px;align-items:center;padding:16px;border-radius:24px;background:#fff;border:1px solid #E8D0D5;box-shadow:0 14px 26px rgba(107,16,36,.05)}.chat-list-card.active{background:linear-gradient(135deg,#7A1230,#8B1538);border-color:#8B1538}.chat-list-card.active strong,.chat-list-card.active span,.chat-list-card.active em{color:#fff}.chat-list-card em{font-style:normal;color:#cbd5e1;font-size:12px}
.chat-avatar{border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#d4af37,#f3d77a);color:#6B1024;font-weight:900;box-shadow:0 12px 24px rgba(212,175,55,.28)}.chat-avatar.large{width:58px;height:58px;font-size:22px}.chat-avatar.xl{width:60px;height:60px;font-size:22px}.chat-list-meta{display:flex;flex-direction:column;gap:5px}.chat-list-meta strong{font-size:16px;color:#0f172a}.chat-list-meta span{font-size:13px;color:#64748b}
.chat-main-column{display:flex;flex-direction:column;background:linear-gradient(180deg,#ffffff 0%,#FFFFFF 100%)}.chat-topbar{display:flex;align-items:center;justify-content:space-between;padding:28px 30px 18px;border-bottom:1px solid #eef3f9}.chat-party{display:flex;align-items:center;gap:14px}.chat-party-copy h1{margin:0;color:#6B1024;font-size:28px;line-height:1.1}.chat-party-copy p{margin:5px 0 0;color:#2fb36d;font-size:13px;font-weight:700}
.chat-top-actions{position:relative;display:flex;align-items:center;gap:12px}.top-icon-btn{width:48px;height:48px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 14px 24px rgba(107,16,36,.12)}.top-icon-btn svg{width:20px;height:20px}.top-icon-btn.gold{background:linear-gradient(135deg,#d4af37,#f3d77a);color:#6B1024}.top-icon-btn.green{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}.top-icon-btn.red{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.top-icon-btn.gray{background:linear-gradient(135deg,#64748b,#475569);color:#fff}
.action-menu-panel{position:absolute;top:58px;right:0;min-width:220px;background:#fff;border:1px solid #E8D0D5;border-radius:22px;box-shadow:0 24px 44px rgba(107,16,36,.16);padding:10px;display:grid;gap:8px;z-index:30}.menu-action-item{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border-radius:16px;border:none;background:#FFFFFF;color:#6B1024;font-weight:700;text-align:left;cursor:pointer}.menu-action-item svg{width:18px;height:18px;flex:none}.menu-action-item.ok{background:#ecfdf5;color:#166534}.menu-action-item.gray{background:#F5F0F1;color:#334155}.menu-action-item.danger{background:#fef2f2;color:#b91c1c}.menu-action-item.link{text-decoration:none}
.call-status-chip{display:inline-flex;align-self:flex-start;margin:14px 30px 0;padding:8px 14px;border-radius:999px;background:#FDF2F4;color:#6B1024;font-size:12px;font-weight:800;border:1px solid #E8D0D5}.call-status-chip.ringing{background:#FDF2F4;color:#8B1538}.call-status-chip.active,.call-status-chip.live{background:#ecfdf5;color:#166534}.call-status-chip.ended{background:#fef2f2;color:#991b1b}
.app-room-messages{flex:1;max-height:none;min-height:0;padding:26px 30px 22px;background:linear-gradient(180deg,#ffffff 0%,#FFFFFF 100%)}.msg{max-width:70%;padding:14px 16px 16px;border-radius:24px;box-shadow:none}.msg.customer{background:#F5F0F1;color:#0f172a;border-bottom-left-radius:8px}.msg.branch,.msg.mall,.msg.company{background:linear-gradient(135deg,#7A1230,#153b8a);color:#fff;border-bottom-right-radius:8px}.msg.bot,.msg.system{background:#fff8e7;color:#7c5c0a;border:1px solid #f0d788}.msg small{display:block;margin-bottom:6px;font-size:11px;font-weight:700;opacity:.78}.msg-actions{top:6px;right:8px}.msg-action-btn{width:22px;height:22px;border:none;border-radius:50%;font-size:14px}.msg.customer .msg-action-btn{background:#dbe4ef}.msg.branch .msg-action-btn,.msg.mall .msg-action-btn,.msg.company .msg-action-btn{background:rgba(255,255,255,.18);color:#fff}.media-preview{border-radius:18px;max-width:min(100%,360px)}
.app-composer{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:12px;align-items:center;padding:16px 22px calc(18px + env(safe-area-inset-bottom));border-top:1px solid #edf3fa;background:#fff;position:sticky;bottom:0;z-index:15}.circle-tool.plus,.send-btn{width:52px;height:52px;border-radius:50%;box-shadow:0 14px 24px rgba(107,16,36,.12)}.circle-tool.plus{background:linear-gradient(135deg,#d4af37,#f3d77a);color:#6B1024;font-size:32px}.composer-field{min-height:54px;border-radius:999px;border:1px solid #E8D0D5;background:#fff;padding:0 10px 0 18px;box-shadow:0 8px 20px rgba(107,16,36,.05)}.composer-field textarea{min-height:28px;max-height:120px;padding:14px 0;font-size:15px}.mic-btn{width:40px;height:40px;border-radius:50%;border:none;background:#FAFAFA;color:#64748b;display:flex;align-items:center;justify-content:center}.mic-btn svg,.send-btn svg{width:20px;height:20px}.send-btn{background:linear-gradient(135deg,#6B1024,#8B1538);color:#fff}
.app-bottom-nav{display:none}
@media (max-width: 980px){.chat-app-frame{display:flex;flex-direction:column;min-height:100vh}.desktop-only{display:none!important}.chat-main-column{min-height:100vh;background:#FAFAFA}.chat-topbar{padding:16px 16px 12px;background:linear-gradient(180deg,#7A1230,#8B1538);border-bottom:none;color:#fff;position:sticky;top:0;z-index:18}.chat-party-copy h1{font-size:18px;color:#fff}.chat-party-copy p{color:#F5D5DC}.chat-avatar.xl{width:48px;height:48px;font-size:18px}.top-icon-btn{width:42px;height:42px}.top-icon-btn.gold{box-shadow:none}.call-status-chip{margin:10px 16px 0;background:#fff;color:#6B1024}.app-room-messages{padding:18px 14px 14px;background:#FAFAFA;padding-bottom:132px}.msg{max-width:85%}.app-composer{left:0;right:0;bottom:72px;padding:10px 12px;background:transparent;border-top:none}.composer-field{box-shadow:0 14px 26px rgba(107,16,36,.10)}.app-bottom-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:10px 12px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #E8D0D5;z-index:20}.app-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:#64748b;font-size:11px;font-weight:700}.app-bottom-nav a.active{color:#c79a2b}.app-bottom-nav svg{width:20px;height:20px}.action-menu-panel{top:54px;right:0;left:auto;min-width:200px}.call-stage{margin:0 14px;border-radius:22px}.room-messages audio{max-width:100%}}
