/* Support Workspace v2 — shared foundation for both legacy template families. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');
body[data-v2-brand]{--v2-accent:#087f78;--v2-accent-soft:#e8f4f3;--v2-bg:#f4f7fa;--v2-text:#182b3a;--v2-muted:#647789;--v2-line:#e4eaf0;--v2-nav:#142332;--bg:var(--v2-bg);--bg2:#fff;--white:#fff;--card:#fff;--border:var(--v2-line);--text:var(--v2-text);--muted:var(--v2-muted);--gold:var(--v2-accent);--gold2:var(--v2-accent);--gold-light:var(--v2-accent);--accent:var(--v2-accent);--navy:var(--v2-bg);--navy-light:#fff;--navy-2:#fff;--text-light:var(--v2-muted);--gold-gradient:var(--v2-accent);--gold-gradient-soft:var(--v2-accent-soft);--shadow:0 4px 24px #14233206;--header-h:72px;--adm-header-h:72px;--adm-navy:var(--v2-bg);--adm-navy-2:var(--v2-bg);--adm-card:#fff;--adm-card-2:#f1f5f8;--adm-border:var(--v2-line);--adm-border-lt:#d6e0e8;--adm-text:var(--v2-text);--adm-text-dim:var(--v2-muted);--adm-text-mute:var(--v2-muted);--adm-gold:var(--v2-accent);--adm-gold-lt:var(--v2-accent);--adm-gold-dk:var(--v2-accent);--adm-gold-glow:var(--v2-accent-soft);background:var(--v2-bg)!important;background-image:none!important;color:var(--v2-text)!important;font-family:'Noto Sans Thai','Noto Sans Lao',system-ui,sans-serif!important;font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased}
body[data-v2-family=lao]{font-family:'Noto Sans Lao','Noto Sans Thai',system-ui,sans-serif!important}
body[data-v2-brand] *,body[data-v2-brand] *::before,body[data-v2-brand] *::after{box-sizing:border-box}
body[data-v2-brand] button,body[data-v2-brand] input,body[data-v2-brand] textarea,body[data-v2-brand] select{font-family:inherit!important}
body[data-v2-brand] :focus-visible{outline:3px solid var(--v2-accent)!important;outline-offset:3px}
body[data-v2-brand] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),body[data-v2-brand] textarea,body[data-v2-brand] select{background:#f8fafc!important;border:1px solid #dce5ec!important;border-radius:10px!important;color:var(--v2-text)!important;font-size:15px!important;min-height:44px;box-shadow:none!important;padding:10px 12px}
body[data-v2-brand] input::placeholder,body[data-v2-brand] textarea::placeholder{color:#7c8a99;opacity:1}
body[data-v2-brand] .btn,body[data-v2-brand] .btn-gold,body[data-v2-brand] .btn-primary,body[data-v2-brand] .btn-note-send{background:var(--v2-accent)!important;color:#fff!important;border:1px solid transparent!important;border-radius:10px!important;min-height:42px;font-size:14px!important;box-shadow:none!important;text-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;font-weight:600;cursor:pointer}
body[data-v2-brand] .btn-outline,body[data-v2-brand] .btn-ghost,body[data-v2-brand] .btn-secondary,body[data-v2-brand] .btn-outline-secondary{background:white!important;border-color:var(--v2-line)!important;color:var(--v2-text)!important}
body[data-v2-brand] .btn-danger{background:#b42337!important;color:white!important}
body[data-v2-brand] button:disabled{opacity:.5;cursor:not-allowed}
body[data-v2-brand] .card,body[data-v2-brand] .glass-card,body[data-v2-brand] .stat-card,body[data-v2-brand] .admin-card,body[data-v2-brand] .modal-box{background:#fff!important;border:1px solid var(--v2-line)!important;border-radius:16px!important;box-shadow:var(--shadow)!important;color:var(--v2-text)}
body[data-v2-brand] .card::before,body[data-v2-brand] .spotlight-card::before,body[data-v2-brand] .home-hero::after{display:none!important}
body[data-v2-brand] h1,body[data-v2-brand] h2,body[data-v2-brand] h3,body[data-v2-brand] .card-title{color:var(--v2-text);font-weight:700;letter-spacing:-.025em}
body[data-v2-brand] table{color:var(--v2-text);font-size:14px;--bs-table-color:var(--v2-text);--bs-table-bg:#fff;--bs-table-striped-bg:#f8fafc;--bs-table-border-color:var(--v2-line)}
body[data-v2-brand] th{color:var(--v2-muted)!important;background:#f6f8fb!important;padding:14px!important;font-size:13px!important;font-weight:600!important;border-color:var(--v2-line)!important}
body[data-v2-brand] td{padding:14px!important;border-color:var(--v2-line)!important}
body[data-v2-brand] tr:hover td{background:#f8fafc}
body[data-v2-brand] .admin-header,body[data-v2-brand] .app-header,body[data-v2-brand] .nav-top,body[data-v2-brand] .admin-topbar{background:#fff!important;border-bottom:1px solid var(--v2-line)!important;box-shadow:none!important;color:var(--v2-text)!important;height:72px!important;min-height:72px;padding:0 24px!important;backdrop-filter:none}
body[data-v2-brand] .brand-name{color:var(--v2-text)!important;font-size:19px!important;font-weight:700;letter-spacing:-.02em}
body[data-v2-brand] .logo-sm{width:38px!important;height:38px!important;border-radius:11px;box-shadow:none!important}
.v2-wordmark{display:inline-flex;align-items:center;gap:12px;text-decoration:none!important;color:var(--v2-text)!important;font-size:19px;font-weight:700;white-space:nowrap}
.v2-wordmark img{height:38px!important;width:38px!important;border-radius:11px;object-fit:contain}
.v2-workspace-label{border-left:1px solid var(--v2-line);padding-left:16px;margin-left:5px;color:var(--v2-muted);font-size:13px;font-weight:400}
.v2-skip{position:fixed;top:-90px;left:16px;z-index:100001;background:#fff;color:var(--v2-text);padding:12px}.v2-skip:focus{top:8px}
.v2-rail{position:fixed;top:72px;bottom:0;left:0;width:72px;background:var(--v2-nav);z-index:80;display:flex;align-items:center;flex-direction:column;padding:18px 8px;gap:12px}
.v2-rail a{width:48px;height:48px;color:#aabac8;display:flex;align-items:center;justify-content:center;border-radius:12px;text-decoration:none}.v2-rail a:hover,.v2-rail a[aria-current=page]{color:white;background:#ffffff12}.v2-rail a[aria-current=page]{box-shadow:inset 3px 0 var(--v2-accent)}.v2-rail svg{width:23px;height:23px}.v2-rail a:last-child{margin-top:auto}
body.v2-inbox{height:100dvh;min-height:0;overflow:hidden;padding:0!important}
body.v2-inbox .bottom-nav,body.v2-inbox .bottom-nav-spacer{display:none!important}
body.v2-inbox .admin-header,body.v2-inbox .nav-top{position:fixed;inset:0 0 auto;z-index:90}
body.v2-inbox .admin-chat-body,body.v2-inbox .wrap{position:fixed;top:72px;bottom:0;left:72px;right:0;height:auto!important;width:auto!important;display:grid!important;grid-template-columns:304px minmax(0,1fr) 288px;overflow:hidden;margin:0!important;max-width:none}
body.v2-inbox .chat-sidebar,body.v2-inbox .wrap>.sidebar{width:auto!important;min-width:0!important;display:flex!important;flex-direction:column;position:relative!important;inset:auto!important;transform:none!important;border:0!important;border-right:1px solid var(--v2-line)!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
.v2-inbox-heading{padding:24px 22px 8px;display:flex;justify-content:space-between;align-items:center}.v2-inbox-heading h1{font-size:24px;margin:0}.v2-count{font-size:12px;background:#eff3f6;color:var(--v2-muted);padding:3px 9px;border-radius:7px}
body.v2-inbox .sidebar-header,body.v2-inbox .sidebar-search{padding:12px 20px!important;background:white!important;border:0!important;font-size:15px;color:var(--v2-text)}
.v2-filters{display:flex;gap:6px;padding:2px 20px 14px;border-bottom:1px solid var(--v2-line)}.v2-filters button{background:white;border:0;border-radius:8px;color:var(--v2-muted);font-size:13px;min-height:38px;padding:7px 11px;cursor:pointer}.v2-filters button[aria-pressed=true]{background:var(--v2-accent-soft);color:var(--v2-accent);font-weight:700}
body.v2-inbox #user-list,body.v2-inbox #chat-list{overflow-y:auto;flex:1;min-height:0}
body.v2-inbox #user-list .user-item,body.v2-inbox .chat-item{padding:19px 18px!important;min-height:92px;border:0!important;border-bottom:1px solid #edf1f5!important;border-left:3px solid transparent!important;background:white!important;box-shadow:none!important;gap:12px;align-items:center;display:flex;cursor:pointer;outline-offset:-3px}
body.v2-inbox #user-list .user-item:hover,body.v2-inbox .chat-item:hover{background:#f8fafc!important}
body.v2-inbox #user-list .user-item.active,body.v2-inbox .chat-item.active{background:var(--v2-accent-soft)!important;border-left-color:var(--v2-accent)!important}
body.v2-inbox .chat-item.active::after{display:none!important}
.v2-avatar,body.v2-inbox .chat-item .avatar{background:#e9eef5!important;color:#52677d!important;border:0!important;border-radius:50%;width:42px!important;height:42px!important;flex:0 0 42px;display:grid;place-items:center;font-weight:600;font-size:15px!important}
body.v2-inbox #user-list .name,body.v2-inbox .chat-item .cid{font-size:15px!important;color:var(--v2-text)!important;font-weight:600!important}
body.v2-inbox #user-list .last,body.v2-inbox .chat-item .preview{color:var(--v2-muted)!important;font-size:13px!important;margin-top:4px}
body.v2-inbox .chat-item .time,body.v2-inbox .chat-item .tags-inline{color:var(--v2-muted)!important;font-size:11px!important}
body.v2-inbox .chat-item .unread,body.v2-inbox .user-item>.badge{background:var(--v2-accent)!important;color:white!important;border-radius:20px;min-width:21px;text-align:center}
body.v2-inbox .chat-area,body.v2-inbox .chat-main{min-width:0!important;min-height:0;display:flex!important;flex-direction:column;background:var(--v2-bg)!important;position:relative}
body.v2-inbox #chat-content{min-height:0;flex:1}
body.v2-inbox .chat-area-header,body.v2-inbox .chat-main-header{background:white!important;border-bottom:1px solid var(--v2-line)!important;color:var(--v2-text)!important;min-height:82px!important;padding:18px 24px!important;gap:10px;flex-wrap:wrap;flex-shrink:0}
body.v2-inbox #chat-title{font-size:17px;font-weight:700}
body.v2-inbox #chat-messages,body.v2-inbox #chat-main-box{background:var(--v2-bg)!important;flex:1;min-height:0;overflow-y:auto;padding:26px!important;display:flex;flex-direction:column;gap:16px}
body[data-v2-brand] .msg,body[data-v2-brand] .chat-bubble{font-size:15px!important;line-height:1.75!important;padding:12px 17px!important;border-radius:16px!important;max-width:min(80%,480px);box-shadow:none!important;white-space:pre-wrap;overflow-wrap:anywhere;animation:none}
body.v2-inbox .msg.admin,body.v2-inbox .chat-bubble.me{background:var(--v2-accent)!important;color:#fff!important;border:0!important;align-self:flex-end;border-bottom-right-radius:5px!important}
body.v2-inbox .msg.user,body.v2-inbox .chat-bubble.cust{background:#fff!important;color:var(--v2-text)!important;border:1px solid var(--v2-line)!important;align-self:flex-start;border-bottom-left-radius:5px!important}
body[data-v2-brand] .msg .time,body[data-v2-brand] .chat-bubble .t{font-size:11px!important;opacity:.75!important;margin-top:7px}
body.v2-inbox .chat-input,body.v2-inbox .chat-main-input,body.v2-inbox .quick-reply-bar{background:white!important;border-color:var(--v2-line)!important;padding:16px 22px!important;gap:10px;flex-shrink:0}
body.v2-inbox .chat-input{display:flex;flex-wrap:wrap}.v2-inbox #quick-replies{flex-basis:100%;display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}
body.v2-inbox .qr-btn,body.v2-inbox .quick-reply-btn,body.v2-inbox .quick-replies button{font-size:12px!important;padding:7px 11px!important;background:#fff!important;border:1px solid var(--v2-line)!important;color:var(--v2-muted)!important;border-radius:8px!important;cursor:pointer}
body.v2-inbox #admin-text-input,body.v2-inbox #msg-input{flex:1;min-width:40px!important}
body.v2-inbox .chat-input label,body.v2-inbox .chat-main-input .btn,body.v2-inbox #admin-send-btn{min-width:44px;min-height:44px}
body[data-v2-brand] .chat-input label svg{width:22px;height:22px}
body.v2-inbox .chat-side-panel,body.v2-inbox .info-panel{width:auto!important;min-width:0!important;background:#fff!important;border:0!important;border-left:1px solid var(--v2-line)!important;display:flex!important;flex-direction:column;overflow-y:auto;box-shadow:none!important}
.v2-details-title{padding:22px 20px 18px;font-size:17px;font-weight:700;border-bottom:1px solid var(--v2-line);display:flex;align-items:center;justify-content:space-between}
body.v2-inbox .panel-tabs{padding:14px!important;gap:5px;border:0}.v2-inbox .panel-tabs button{font-size:13px!important;padding:9px!important;border-radius:8px!important;background:#f4f7fa!important;color:var(--v2-text)!important;border:0!important}
body.v2-inbox .side-panel{padding:20px!important;border:0!important}.v2-inbox #note-input{min-height:110px;width:100%;margin-bottom:12px}
body.v2-inbox .note-item{background:#f8fafc!important;border:1px solid var(--v2-line)!important;border-radius:10px!important;padding:13px!important;margin:10px 0!important;color:var(--v2-text);font-size:14px!important}
body.v2-inbox .note-item .meta{color:var(--v2-muted)!important;font-size:11px!important;margin-top:8px}
body.v2-inbox .info-panel-header,body.v2-inbox .info-input-area{background:white!important;border-color:var(--v2-line)!important;padding:18px!important}.v2-inbox .info-cid{color:var(--v2-text)!important;font-size:18px!important}
body.v2-inbox .deposit-progress{background:#f9fbfc!important;border-color:var(--v2-line)!important;padding:12px 24px!important;box-shadow:none!important;border-radius:0!important}.v2-inbox .dp-bar-wrap{background:#e9eef3!important;height:4px!important}.v2-inbox .dp-bar{background:var(--v2-accent)!important}.v2-inbox .dp-header,.v2-inbox .dp-row{font-size:12px!important}.v2-inbox .dp-footer,.v2-inbox .dp-hint{font-size:11px!important}
.v2-empty{padding:32px;max-width:370px;text-align:center;margin:auto;color:var(--v2-muted);font-size:14px}.v2-empty svg{width:48px;height:48px;color:#9aaebd;margin-bottom:16px}.v2-empty h2{font-size:22px;margin:0 0 10px;color:var(--v2-text)}
.v2-mobilebar{display:none}.v2-icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:9px;border:1px solid var(--v2-line);border-radius:10px;background:#fff;color:var(--v2-text);font-size:13px;cursor:pointer}.v2-icon-btn svg{width:20px;height:20px}.v2-details-close{display:none}
.v2-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100000;max-width:90vw;padding:13px 20px;border-radius:12px;background:#8e2436;color:#fff;box-shadow:0 8px 28px #14233225;font-size:14px}.v2-toast[hidden]{display:none}
.v2-filter-empty{padding:30px 20px;color:var(--v2-muted);text-align:center;font-size:14px}
body[data-v2-brand] .admin-sidebar{background:var(--v2-nav)!important;border:0!important;box-shadow:none!important;padding:16px 10px;overflow-y:auto}
body[data-v2-brand] .admin-sidebar a{color:#bac7d3!important;font-size:14px!important;border-radius:9px;margin:3px 0;min-height:44px}
body[data-v2-brand] .admin-sidebar a.active{background:#ffffff14!important;color:white!important;border-color:var(--v2-accent)!important}.admin-sidebar .sidebar-section{color:#91a3b4!important}
body[data-v2-brand] .admin-main{background:var(--v2-bg)!important}.v2-admin .admin-wrap,.v2-admin .admin-content{padding:30px!important;max-width:none!important;margin:0 auto!important}
body[data-v2-brand] .stat-value,body[data-v2-brand] .gradient-gold-text{background:none!important;-webkit-text-fill-color:var(--v2-text)!important;color:var(--v2-text)!important;text-shadow:none!important}
body.v2-customer .container{max-width:760px!important;padding:24px 20px!important}.v2-customer .home-hero{padding:28px!important;margin-bottom:20px!important}.v2-customer .hero-name{color:var(--v2-text)!important;font-size:23px!important}.v2-customer .hero-label,.v2-customer .hero-credit-label{color:var(--v2-muted)!important}.v2-customer .icon-grid{gap:10px!important}.v2-customer .icon-tile{border:1px solid var(--v2-line)!important;background:#fff!important;border-radius:14px!important;min-height:105px!important;color:var(--v2-accent)!important;box-shadow:none!important}.v2-customer .icon-tile .tile-label{color:var(--v2-text)!important;font-size:14px!important}.v2-customer .icon-tile .tile-sub{font-size:11px!important;color:var(--v2-muted)!important}.v2-customer .icon-tile:hover{background:var(--v2-accent-soft)!important;transform:translateY(-2px)}
body[data-v2-brand] .bottom-nav{background:white!important;border-top:1px solid var(--v2-line)!important;box-shadow:0 -4px 24px #14233204!important;backdrop-filter:none!important}.bottom-nav a{color:var(--v2-muted)!important}.bottom-nav a.active{color:var(--v2-accent)!important;background:var(--v2-accent-soft)!important}.bottom-nav .nav-game-btn{background:var(--v2-accent)!important;box-shadow:none!important}.bottom-nav .nav-game-label{color:var(--v2-accent)!important}
body.v2-customer-chat{padding:0!important;overflow:hidden;height:100dvh;min-height:0}
.v2-customer-chat .app-header,.v2-customer-chat .nav-top{position:fixed;top:0;left:0;right:0;z-index:40;justify-content:flex-start;gap:14px}
.v2-customer-chat .header-actions{margin-left:auto}.v2-customer-chat .header-actions .small{color:var(--v2-muted)!important}
body.v2-customer-chat>.chat-body,body.v2-customer-chat .chat-wrap{position:fixed!important;top:72px!important;bottom:0!important;left:0;right:0;max-width:760px!important;width:100%;margin:auto!important;height:auto!important;display:flex;flex-direction:column;background:var(--v2-bg)!important;border-left:1px solid var(--v2-line);border-right:1px solid var(--v2-line);overflow:hidden}
.v2-customer-chat .bottom-nav,.v2-customer-chat .bottom-nav-spacer{display:none!important}
body.v2-customer-chat #messages,body.v2-customer-chat .chat-wrap>.chat-body{flex:1;min-height:0;overflow-y:auto;padding:22px!important;gap:16px!important;background:var(--v2-bg)!important;display:flex;flex-direction:column}
.v2-customer-chat .msg.user{background:var(--v2-accent)!important;color:#fff!important;border:0!important;border-bottom-right-radius:5px!important;align-self:flex-end}.v2-customer-chat .msg.admin{background:white!important;color:var(--v2-text)!important;border:1px solid var(--v2-line)!important;border-bottom-left-radius:5px!important;align-self:flex-start}
body.v2-customer-chat .chat-input,body.v2-customer-chat .chat-input-bar{display:flex;align-items:center;gap:10px;position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;flex-shrink:0;background:white!important;border-top:1px solid var(--v2-line)!important;padding:16px 18px calc(16px + env(safe-area-inset-bottom,0px))!important;margin:0;width:100%;max-width:none;box-shadow:none;border-radius:18px 18px 0 0}
.v2-customer-chat .chat-input input,.v2-customer-chat .chat-input-bar input{min-width:0;flex:1}.v2-customer-chat .chat-input button,.v2-customer-chat .chat-input label,.v2-customer-chat .chat-input-bar button{min-height:44px!important;min-width:44px!important;font-size:16px!important;display:flex;align-items:center;justify-content:center}
.v2-customer-chat .btn-send{background:var(--v2-accent)!important;color:#fff!important}
body.v2-customer-chat .slip-notice{margin:18px!important;padding:12px 16px!important;border:0!important;border-radius:12px!important;background:var(--v2-accent-soft)!important;color:var(--v2-accent)!important;font-size:13px!important;box-shadow:none!important}
.v2-customer-chat .credit-card{background:#fff!important;border:1px solid var(--v2-line)!important;box-shadow:none!important}.v2-customer-chat .cc-balance{color:var(--v2-text)!important;text-shadow:none!important}.v2-customer-chat .credit-card::before,.v2-customer-chat .credit-card::after{display:none}
.v2-customer-chat .chat-header-row{padding:12px 16px}.v2-customer-chat .back-btn{font-size:13px;background:white;border:1px solid var(--v2-line);min-height:36px;padding:6px 10px}
body[data-v2-brand] .login-card,body[data-v2-brand] .login-box{background:#fff!important;color:var(--v2-text)!important;border:1px solid var(--v2-line)!important;box-shadow:0 20px 70px #1423320a!important;border-radius:22px!important;padding:32px!important}
body[data-v2-brand] .login-logo,body[data-v2-brand] .login-title{color:var(--v2-text)!important;text-shadow:none!important}
@media(max-width:1180px){body.v2-inbox .admin-chat-body,body.v2-inbox .wrap{grid-template-columns:280px minmax(0,1fr)}body.v2-inbox .chat-side-panel,body.v2-inbox .info-panel{display:none!important;position:fixed!important;right:0;top:72px;bottom:0;width:310px!important;z-index:110;box-shadow:-20px 0 70px #14233225!important}body.v2-inbox.v2-details-open .chat-side-panel,body.v2-inbox.v2-details-open .info-panel{display:flex!important}.v2-details-close{display:inline-flex}.v2-mobilebar{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 16px;background:#fff;border-bottom:1px solid var(--v2-line);flex-shrink:0}.v2-back-list{display:none}}
@media(max-width:760px){body.v2-inbox .admin-chat-body,body.v2-inbox .wrap{left:0;grid-template-columns:1fr;top:64px}.v2-inbox .v2-rail{display:none}body[data-v2-brand] .admin-header,body[data-v2-brand] .app-header,body[data-v2-brand] .nav-top{height:64px!important;min-height:64px;padding:0 14px!important}.v2-workspace-label{display:none}.v2-wordmark{font-size:17px}.v2-inbox .admin-info>span{display:none}.v2-inbox .admin-info .btn{font-size:12px!important;padding:7px 10px;min-height:36px}.v2-inbox .nav-links{max-width:48%;overflow:auto;white-space:nowrap}.v2-inbox .nav-links a{font-size:12px!important}.v2-inbox .nav-links a:not(:first-child){display:none}body.v2-inbox .chat-area,body.v2-inbox .chat-main{display:none!important}body.v2-inbox.v2-chat-selected .chat-sidebar,body.v2-inbox.v2-chat-selected .wrap>.sidebar{display:none!important}body.v2-inbox.v2-chat-selected .chat-area,body.v2-inbox.v2-chat-selected .chat-main{display:flex!important}.v2-mobilebar{justify-content:space-between}.v2-back-list{display:inline-flex}body.v2-inbox .chat-side-panel,body.v2-inbox .info-panel{top:64px;width:min(100%,360px)!important}.v2-inbox .chat-area-header,.v2-inbox .chat-main-header{padding:12px 16px!important;min-height:65px!important}.v2-inbox .chat-main-header .actions{display:flex;flex-wrap:wrap;gap:4px}.v2-inbox .chat-main-header .actions button{font-size:11px!important;padding:5px 8px!important;min-height:32px}.v2-inbox #chat-messages,.v2-inbox #chat-main-box{padding:18px!important}.v2-inbox .chat-input,.v2-inbox .chat-main-input{padding:12px!important;padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}.v2-inbox .quick-reply-bar{padding:8px 12px!important}.v2-inbox .deposit-progress{padding:9px 16px!important}.v2-customer-chat .chat-wrap,body.v2-customer-chat>.chat-body{top:64px!important;border:0}.v2-customer-chat .brand-name{font-size:17px!important}.v2-customer-chat .app-header{gap:6px}.v2-customer-chat #messages{padding:18px!important}.v2-customer-chat .msg{max-width:86%;font-size:15px!important}.v2-customer-chat .chat-input{padding:12px 12px calc(12px + env(safe-area-inset-bottom))!important}.v2-customer-chat .header-actions{display:none}.v2-customer .container{padding:16px!important}.v2-customer .icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v2-customer .hero-name{font-size:20px!important}.v2-admin .admin-wrap,.v2-admin .admin-content{padding:18px!important}body[data-v2-brand] table{min-width:620px}.table-responsive,.table-wrap,.admin-table-wrap{overflow-x:auto}.v2-admin .admin-sidebar.v2-nav-open{display:block!important;position:fixed!important;top:64px;bottom:0;left:0;width:240px!important;z-index:120;transform:translateX(0)!important}.v2-admin .admin-body:not(.sidebar-collapsed) .admin-main{min-width:0}.v2-admin .brand-name{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){body[data-v2-brand] *,body[data-v2-brand] *::before,body[data-v2-brand] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Legacy themes use ID selectors; keep text entry surfaces coherent. */
body.v2-inbox #note-input,body.v2-inbox #broadcast-input,body.v2-inbox #user-search,body.v2-inbox #admin-text-input,body.v2-customer-chat #text-input{background:#f8fafc!important;color:var(--v2-text)!important;border:1px solid #dce5ec!important;font-size:15px!important}
body.v2-inbox .side-panel textarea::placeholder{color:#718396!important}
body.v2-inbox .chat-side-panel .btn-block{width:100%}
body.v2-inbox .chat-input #img-preview:not([src]),body.v2-customer-chat #img-preview:not([src]){display:none!important}
body.v2-inbox .nav-top,body.v2-customer-chat .nav-top{display:flex!important}
body.v2-inbox .chat-main-header>a{background:#fff!important;box-shadow:none!important;color:var(--v2-text)!important;border:1px solid var(--v2-line)!important;font-size:13px!important}
body.v2-inbox .dp-bar{height:4px!important;border-radius:4px;overflow:hidden}
body.v2-inbox .dp-bar .dp-fill{background:var(--v2-accent)!important}
body[data-v2-brand]{--brand-primary:var(--v2-accent);--brand-secondary:var(--v2-accent);--brand-accent:var(--v2-accent);--brand-bg:var(--v2-bg);--brand-bg-card:#fff;--brand-border:var(--v2-line);--brand-text:var(--v2-text);--brand-text-muted:var(--v2-muted);--brand-glow:none;--brand-glow-strong:none}
body.v2-inbox .chat-item.active .info .preview{color:var(--v2-muted)!important}
body.v2-inbox .note-item .note-text{color:var(--v2-text)!important;font-size:14px!important;line-height:1.7}
body.v2-inbox .note-item .note-time{font-size:11px!important}
body.v2-admin .admin-wrap .card,body.v2-admin .stat-card{border-color:var(--v2-line)!important;box-shadow:0 2px 10px #14233204!important}
body.v2-admin .admin-wrap>.card:first-child{background:transparent!important;padding:0 0 18px!important;border:0!important;box-shadow:none!important}
body.v2-admin .admin-wrap>.card:first-child h1{font-size:28px!important}
body.v2-admin .stat-grid{gap:16px!important;margin-bottom:24px!important}
body.v2-admin .stat-card{padding:24px!important;text-align:left!important}
body.v2-admin .stat-card .stat-val{font-size:32px!important;line-height:1.3!important}
body.v2-admin .stat-card::before{display:none!important}
body.v2-customer .home-body{background:var(--v2-bg)!important;justify-content:flex-start!important;padding-top:30px!important;min-height:calc(100dvh - 64px)!important}
body.v2-customer .home-body::before,body.v2-customer .home-body::after,body.v2-customer .home-header-card::before{display:none!important}
body.v2-customer .home-header-card{background:white!important;border:1px solid var(--v2-line)!important;box-shadow:none!important;max-width:560px!important;margin-bottom:22px!important;padding:24px!important}
body.v2-customer .home-logo-img{width:64px!important;filter:none!important}
body.v2-customer .home-welcome{font-size:17px!important;color:var(--v2-text)!important}
body.v2-customer .home-grid{max-width:560px!important;width:100%;gap:12px!important}
body.v2-customer .circle-item{background:white;border:1px solid var(--v2-line);border-radius:14px;padding:18px 8px}
body.v2-customer .circle-btn{background:var(--v2-accent-soft)!important;color:var(--v2-accent)!important;border:0!important;box-shadow:none!important;width:52px!important;height:52px!important;border-radius:15px!important}
body.v2-customer .circle-label{color:var(--v2-text)!important;font-size:13px!important;text-shadow:none!important}
@media(prefers-reduced-motion:reduce){body[data-v2-brand] .fade-up,body[data-v2-brand] .page-transition{opacity:1!important;transform:none!important}}
.v2-support-entry{background:var(--v2-accent-soft);border:1px solid var(--v2-line);padding:22px;border-radius:16px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:560px;width:100%;position:relative;z-index:1}
.v2-support-entry h2{font-size:20px;margin:0 0 4px}.v2-support-entry p{font-size:13px;line-height:1.7;color:var(--v2-muted);margin:0}.v2-support-entry>a{flex-shrink:0;text-decoration:none}
@media(max-width:480px){.v2-support-entry{padding:18px;gap:12px}.v2-support-entry h2{font-size:18px}.v2-support-entry p{font-size:12px}}
body.v2-customer .hero-badge,body.v2-customer .stat-badge-premium{background:#f1f5f8!important;border:1px solid var(--v2-line)!important;color:var(--v2-text)!important;box-shadow:none!important;text-shadow:none!important}
body.v2-customer .hero-badge-label{color:var(--v2-muted)!important}
