:root{--blue:#3369e8;--blue-light:#edf3ff;--ink:#263248;--muted:#8490a2;--line:#e8ecf2;--bg:#f6f8fb;--green:#27866a;--red:#d45761;--side:210px}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;background:#fff;border:1px solid #dce2eb;border-radius:6px;padding:7px 13px;min-height:34px;white-space:nowrap}button:hover{background:#f7f9fc;border-color:#bdcce3}button:disabled{opacity:.45;cursor:default}.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.primary:hover{background:#285bd0}.quiet{background:transparent;border-color:transparent}.small{font-size:12px;padding:5px 10px;min-height:30px}.text-button{border:0;background:none;padding:0;min-height:24px;color:var(--blue)}input,select,textarea{min-height:36px;background:#fff;border:1px solid #dce2eb;border-radius:6px;padding:7px 10px;outline:none;max-width:100%}input:focus,select:focus,textarea:focus{border-color:var(--blue)}input[type=checkbox]{min-height:0}textarea{width:100%;resize:none}:focus-visible{outline:2px solid var(--blue);outline-offset:3px}a{color:var(--blue);text-decoration:none}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:24px;font-weight:650;letter-spacing:-.6px}h2{font-size:17px}h3{font-size:14px}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-variant-numeric:tabular-nums}.row{display:flex;align-items:center;gap:10px}.end{justify-content:flex-end}.between{justify-content:space-between}.grow{flex:1;min-width:0}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#3a9c7e;flex:none}.unread-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);flex:none}.badge{display:inline-flex;align-items:center;border-radius:4px;padding:3px 8px;font-size:11px;white-space:nowrap;background:#f0f2f5;color:#7c8798}.badge.staff{background:#fff4e5;color:#aa7627}.badge.player{background:var(--blue-light);color:var(--blue)}.badge.done{background:#edf6f1;color:var(--green)}.avatar{width:32px;height:32px;display:grid;place-items:center;background:#eaeef5;border-radius:9px;color:#738198;font-size:12px;flex:none}.avatar.blue{background:var(--blue-light);color:var(--blue)}
.prototype-bar{height:58px;display:flex;align-items:center;padding:0 22px;gap:20px;background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:10}.prototype-brand{display:flex;align-items:center;gap:12px}.prototype-tag{font-size:10px;background:#eef1f6;color:#69778c;border-radius:4px;padding:3px 6px;white-space:nowrap}.prototype-brand strong{font-size:13px}.prototype-bar nav{display:flex;gap:3px;padding:3px;border-radius:7px;background:#f2f4f8;margin:auto}.prototype-bar nav button{border:0;background:transparent;font-size:12px;min-height:29px;padding:4px 16px}.prototype-bar nav button.active{background:#fff;box-shadow:0 1px 4px #26324810;color:var(--blue)}.prototype-bar>a{font-size:12px}.demo-panel{background:#f0f4fb;border-bottom:1px solid #dce5f4;padding:10px 22px;display:flex;align-items:center;gap:15px;flex-wrap:wrap;font-size:11px}.demo-panel label{display:flex;align-items:center;gap:6px}.demo-panel select{font-size:11px;min-height:28px;padding:3px 6px}
#workspace{min-height:calc(100dvh - 58px)}#admin-stage{position:relative;display:flex;min-height:calc(100dvh - 58px)}.sidebar{width:var(--side);background:#fff;border-right:1px solid var(--line);padding:27px 14px 15px;display:flex;flex-direction:column;flex:none}.brand{display:flex;align-items:center;gap:10px;padding:0 6px 32px}.brand-mark{background:var(--blue);color:#fff;font-size:20px;border-radius:9px;width:33px;height:37px;display:grid;place-items:center}.brand strong{font-size:16px;letter-spacing:1px}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:2px}.nav-label{color:#a1aaba;font-size:10px;letter-spacing:1px;margin:10px 12px}.side-nav{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:none;padding:12px;margin-bottom:4px;color:#69788e}.side-nav>span{font-size:19px;line-height:1}.side-nav.active{background:var(--blue-light);color:var(--blue);font-weight:600}.side-nav i{margin-left:auto;font-size:10px;font-style:normal}.sidebar-foot{display:block;margin-top:auto;border-top:1px solid var(--line);padding-top:12px;font-size:11px}.draft-note{padding:4px 6px 14px;color:var(--muted);font-size:10px;line-height:1.7}.draft-note .badge{font-size:10px}.operator{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:12px 6px 2px;font-size:11px}.operator .avatar{border-radius:50%;flex:none}.operator small{display:block;color:var(--muted);font-size:10px}.nav-section{margin-top:25px!important}.admin-shell{flex:1;min-width:0;container-name:admin-shell;container-type:inline-size}.admin-top{height:58px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.admin-top b{font-weight:400;padding:0 12px;color:#c3cbd7}.admin-top strong{font-weight:500;color:var(--ink)}.sync{display:flex;align-items:center;gap:7px;font-size:10px}#admin-main{padding:25px 28px 28px;max-width:1700px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.page-heading p{color:var(--muted);font-size:12px;margin-top:5px}.stat-line{display:flex;gap:24px;align-items:center;margin-bottom:19px}.stat-item{display:flex;align-items:baseline;gap:9px;border-right:1px solid var(--line);padding-right:24px}.stat-item:last-child{border:0}.stat-item b{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums}.stat-item span{font-size:11px;color:var(--muted)}.stat-item:first-child b{color:#b78537}.card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.filter-form{display:grid;grid-template-columns:minmax(135px,1.25fr) minmax(155px,1.35fr) minmax(105px,.8fr) minmax(120px,1fr) minmax(135px,1.1fr) minmax(135px,1.1fr) max-content;gap:9px;padding:15px 18px;border-bottom:1px solid var(--line)}.filter-form label{display:grid;gap:5px;font-size:10px;color:var(--muted)}.filter-form input,.filter-form select{width:100%;font-size:12px}.filter-form .filter-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:8px;align-self:end}.list-tabs{display:flex;gap:22px;padding:0 20px;border-bottom:1px solid var(--line);align-items:center}.list-tabs button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:13px 0;font-size:12px;color:var(--muted)}.list-tabs button.active{border-bottom-color:var(--blue);color:var(--blue)}.list-tabs small{margin-left:auto;color:var(--muted);font-size:10px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:740px;text-align:left}th{background:#fafbfd;font-size:10px;color:var(--muted);font-weight:500;padding:11px 16px;border-bottom:1px solid var(--line)}td{padding:16px;border-bottom:1px solid #eef1f5;font-size:12px}tbody tr:last-child td{border-bottom:0}tbody tr{cursor:pointer}tbody tr:hover{background:#f8faff}tbody tr.selected{background:#f0f5ff}.summary-cell{min-width:250px;max-width:330px}.summary-cell strong{display:block;font-size:12px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.summary-cell small{display:block;color:var(--muted);font-size:10px;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.identity-cell small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.feedback-number{display:flex;align-items:center;gap:7px;color:#7b899d}.pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.pagination button{min-height:26px;padding:2px 9px;font-size:11px}.footnote{margin-top:15px;font-size:10px;color:#98a3b3}.empty{text-align:center;padding:48px 20px;color:var(--muted)}.empty-icon{width:48px;height:48px;display:grid;place-items:center;background:#eef3fa;border-radius:15px;margin:0 auto 14px;color:#7995bd;font-size:23px}.empty h3{color:#65758c;margin-bottom:6px}.empty p{font-size:12px}
.drawer{position:sticky;top:0;align-self:flex-start;width:450px;flex:none;height:calc(100dvh - 58px);background:#fff;border-left:1px solid #dfe5ee;box-shadow:-12px 0 32px #26324806;display:flex;flex-direction:column;z-index:4}.drawer-head{padding:18px 20px 14px;border-bottom:1px solid var(--line)}.drawer-head h2{font-size:14px;line-height:1.6;margin-top:10px;overflow-wrap:anywhere}.drawer-head .quiet{font-size:20px;min-height:24px;padding:0 5px;color:var(--muted)}.drawer-meta{border-bottom:1px solid var(--line);padding:12px 20px}.drawer-meta summary{cursor:pointer;color:#738198;font-size:11px;display:flex;justify-content:space-between;gap:10px}.drawer-meta summary:after{content:'⌄'}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin-top:12px}.info-grid label{display:block;color:var(--muted);font-size:10px}.info-grid p{font-size:11px;overflow-wrap:anywhere}.drawer-identity{display:flex;align-items:center;gap:10px;margin-bottom:10px}.drawer-identity small{font-size:10px;color:var(--muted)}.chat-log{flex:1;min-height:80px;overflow-y:auto;padding:20px 18px;overscroll-behavior:contain;background:#f6f8fb;scrollbar-width:thin}.chat-time{text-align:center;font-size:10px;color:#a0a9b7;margin:0 0 18px}.message{display:flex;align-items:flex-start;gap:8px;margin-bottom:19px}.message.own{flex-direction:row-reverse}.message-body{max-width:calc(100% - 48px);min-width:0}.message-author{font-size:10px;color:#94a0b2;margin:0 2px 5px}.own .message-author{text-align:right}.bubble{padding:10px 12px;background:#fff;border:1px solid #e6ebf2;border-radius:2px 9px 9px 9px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.75}.own .bubble{background:#e7efff;border-color:#dce7fc;border-radius:9px 2px 9px 9px;color:#2e4d82}.message-image{display:block;background:none;border:0;padding:0;margin-top:7px;min-height:0;max-width:190px}.message-image img{display:block;max-width:100%;max-height:230px;object-fit:contain;border-radius:7px;border:1px solid #dee5ef}.image-expired{padding:18px;background:#edf0f5;border:1px dashed #ccd4e0;border-radius:7px;margin-top:6px;color:#8a95a5;font-size:11px}.system-message{text-align:center;font-size:10px;color:#949faf;margin:15px 0}.composer{background:#fff;border-top:1px solid var(--line);padding:12px 16px 14px;flex:none}.composer textarea{border:0;background:transparent;min-height:68px;padding:4px 2px;font-size:12px;display:block}.composer textarea:focus{box-shadow:none}.composer-bottom{display:flex;align-items:center;gap:9px}.composer-bottom .counter{font-size:10px;color:var(--muted);margin-left:auto}.composer .image-pick{font-size:12px;color:#76869e;border:0;background:#f1f4f9;padding:4px 9px;min-height:28px}.composer-hint{color:#a0a9b7;font-size:10px;padding-top:7px}.attachments{display:flex;gap:7px;flex-wrap:wrap}.attachment{position:relative;margin:5px 0}.attachment img{width:52px;height:52px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}.attachment button{position:absolute;right:-3px;top:-4px;width:18px;height:18px;padding:0;min-height:18px;border-radius:50%;font-size:12px}.attachment small{font-size:9px;display:block;color:var(--muted)}.send-error{font-size:11px;color:var(--red);padding:4px 0}.profile-card{padding:22px;display:flex;align-items:center;gap:15px;margin-bottom:18px}.profile-card .avatar{width:52px;height:52px;font-size:19px}.profile-card h2{font-size:20px}.profile-card p{font-size:11px;color:var(--muted)}.profile-meta{padding:0 22px 20px}.profile-meta .info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.section-title{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
#player-stage{display:none;background:#eaf0f5;align-items:center;flex-direction:column;padding:28px 24px 22px;position:relative}.player-caption{display:flex;justify-content:space-between;gap:20px;width:390px;max-width:100%;margin-bottom:15px;font-size:10px;color:#8c9aaa}.eyebrow{letter-spacing:1px;color:#718198;font-size:10px}.phone{width:390px;max-width:100%;height:min(790px,calc(100dvh - 158px));min-height:570px;display:flex;flex-direction:column;border:7px solid #fff;border-radius:33px;box-shadow:0 20px 65px #374a6e18,0 0 0 1px #dce2eb;overflow:hidden;background:#f7f8fa}.phone-status{display:flex;align-items:center;justify-content:space-between;padding:8px 22px 4px;background:#fff;font-size:11px}.home-indicator{height:19px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}.home-indicator:after{content:'';display:block;height:4px;width:95px;background:#233145;border-radius:5px}#player-root{display:flex;flex-direction:column;flex:1;min-height:0}.player-header{background:#fff;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}.player-header strong{font-size:15px}.player-header button{min-width:32px;padding:0;min-height:30px;font-size:20px;border:0}.player-header .close-webview{color:#8e9aab;font-size:20px}.player-content{flex:1;min-height:0;overflow:auto;padding:20px 16px}.player-welcome{padding:2px 1px 19px}.player-welcome h2{font-size:21px;letter-spacing:-.3px}.player-welcome p{font-size:11px;line-height:1.8;color:#8a96a8;margin-top:7px}.player-new{width:100%;padding:11px 14px;display:flex;justify-content:center;align-items:center;gap:8px;border-radius:7px;font-size:13px;margin-bottom:24px}.player-list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:11px;color:#8a95a6}.ticket-card{display:block;width:100%;white-space:normal;text-align:left;background:#fff;border:1px solid var(--line);padding:15px 13px;border-radius:9px;margin-bottom:11px}.ticket-card .ticket-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.ticket-card h3{font-size:12px;font-weight:600;line-height:1.65;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ticket-card p{font-size:11px;color:#8b97a8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ticket-card .ticket-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:10px;color:#9ba5b3}.player-footer-note{text-align:center;color:#a2acb9;font-size:10px;line-height:1.8;margin:22px 4px 5px}.player-chat-title{font-size:11px;color:#8a95a6;padding:10px 15px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px}.player-chat-title span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.player-note{display:flex;align-items:center;gap:6px;color:#8d9aab;font-size:10px;margin-top:15px}.game-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#dfebf3;background:radial-gradient(ellipse at 65% 30%,#334956,transparent 70%),#1c2934;padding:26px;text-align:center;position:relative}.game-screen:before{content:'';position:absolute;inset:20px;border:1px solid #8c9da42d;pointer-events:none}.game-screen .game-kicker{font-size:10px;letter-spacing:5px;color:#9cabb6;margin-bottom:15px}.game-screen h2{font-family:serif;font-size:42px;letter-spacing:8px;font-weight:500;color:#e6e4df}.game-screen p{font-size:11px;color:#a2b0ba;line-height:2;margin-top:22px}.game-screen .game-divider{width:32px;height:1px;background:#9badaf;margin:28px}.game-screen button{background:#e6e5df;color:#34434c;border:1px solid #eeefea;min-width:180px;padding:11px 20px;position:relative}.game-screen .red-dot{position:absolute;right:10px;top:9px;width:8px;height:8px;background:#e8676e;border-radius:50%;box-shadow:0 0 0 3px #f3c4c52b}.game-screen small{font-size:10px;color:#899da9;margin-top:20px}.player-identity{color:#9badba;position:absolute;bottom:28px;font-size:10px}.new-chat-note{padding:30px 18px;text-align:center;color:#96a0ad;font-size:11px;line-height:1.9}
#workspace[data-view=player] #admin-stage{display:none}#workspace[data-view=player] #player-stage{display:flex;min-height:calc(100dvh - 58px)}@container admin-shell (max-width:1018px){.filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-form .filter-actions{grid-column:1/-1}}@container admin-shell (max-width:720px){.filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@container admin-shell (max-width:480px){.filter-form{grid-template-columns:1fr}}
.own .message-image{margin-left:auto}
dialog{border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 90px #21354d40;padding:0;max-width:calc(100vw - 28px);color:var(--ink)}dialog::backdrop{background:#16253a99;backdrop-filter:blur(3px)}#image-dialog{background:#152132;color:#b8c3d1;padding:38px 18px 12px;max-height:95dvh;text-align:center}#image-dialog img{display:block;max-width:85vw;max-height:78dvh;object-fit:contain}#image-dialog p{font-size:10px;margin-top:8px}#image-close{position:absolute;right:8px;top:4px;background:none;border:0;color:#fff;font-size:23px;padding:0 5px}.confirm-body{padding:25px;max-width:420px}.confirm-body p{margin:15px 0 23px;color:var(--muted);font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;border-radius:7px;padding:11px 19px;background:#263248;color:#fff;box-shadow:0 10px 30px #26324825;z-index:50;font-size:12px;display:none}#toast.show{display:block}
@media(max-width:1250px){.drawer{width:400px}#admin-main{padding:23px 20px}.prototype-brand strong{display:none}.stat-line{gap:15px}.stat-item{padding-right:15px;gap:7px}}
@media(max-width:950px){.sidebar{display:none}.drawer{position:absolute;right:0;width:min(450px,100%);box-shadow:-15px 0 60px #23344925}.prototype-bar{gap:10px;padding:0 12px}.prototype-bar nav button{padding:4px 10px}.prototype-bar>a{display:none}}
@media(max-width:700px){.prototype-bar{height:auto;min-height:56px;flex-wrap:wrap;padding:9px 10px;gap:8px}.prototype-brand{display:none}.prototype-bar nav{margin:0 auto 0 0}.prototype-bar nav button{font-size:11px;padding:3px 9px}.prototype-bar #demo-toggle{font-size:10px}.demo-panel{padding:12px}.admin-top{padding:0 16px;height:48px}#admin-main{padding:20px 13px}.page-heading{margin-bottom:18px}h1{font-size:21px}.page-heading p{font-size:11px}.stat-item b{font-size:21px}.stat-item span{font-size:10px}.filter-form{padding:14px;gap:10px}.list-tabs{gap:17px;padding:0 14px}.list-tabs button{font-size:11px}.list-tabs small{display:none}.drawer{position:fixed;top:56px;height:calc(100dvh - 56px);width:100%;z-index:8}.drawer-head{padding:13px 16px}.drawer-meta{padding:10px 16px}#workspace[data-view=player] #player-stage{padding:0;min-height:calc(100dvh - 56px)}#workspace[data-view=player] .phone{width:100%;max-width:480px;height:calc(100dvh - 56px);min-height:0;border:0;border-radius:0;box-shadow:none}#workspace[data-view=player] .phone-status,#workspace[data-view=player] .player-caption,#workspace[data-view=player] .player-note{display:none}.phone{min-height:540px;height:660px}.player-content{padding:22px 18px}.composer textarea{font-size:16px}.player-header{padding-top:14px}.profile-meta .info-grid{grid-template-columns:1fr 1fr}.player-footer-note{margin-bottom:5px}}

/* Player self-service FAQs */
.hot-faq{margin:0 0 17px}.hot-faq-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 1px 10px}.hot-faq-heading h3{font-size:14px}.hot-faq-heading p{margin-top:3px;color:#8a96a8;font-size:10px}.hot-tag{padding:2px 6px;border-radius:4px;background:#fff4e5;color:#b2782d;font-size:9px;font-weight:700;letter-spacing:.6px}.faq-search{height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;margin-bottom:9px;border:1px solid #e3e8ef;border-radius:7px;background:#fff;color:#99a4b4}.faq-search>span{font-size:18px;line-height:1}.faq-search input{flex:1;width:100%;min-width:0;min-height:30px;padding:4px 0;border:0;background:transparent;font-size:11px}.faq-search input:focus{box-shadow:none}.faq-list{display:grid;gap:7px}.faq-item{overflow:hidden;border:1px solid #e7ebf1;border-radius:8px;background:#fff}.faq-item[hidden]{display:none}.faq-item.open{border-color:#d5e2fa;box-shadow:0 2px 8px #3369e80a}.faq-question{display:flex;align-items:center;gap:9px;width:100%;min-height:0;padding:10px 11px;border:0;border-radius:0;background:transparent;text-align:left;white-space:normal}.faq-question:hover{background:#fafcff;border-color:transparent}.faq-number{align-self:flex-start;padding-top:2px;color:#9ba8ba;font:10px ui-monospace,monospace}.faq-question-copy{display:grid;gap:3px;flex:1;min-width:0}.faq-question-copy small{color:#7f91aa;font-size:9px}.faq-question-copy strong{font-size:11px;font-weight:550;line-height:1.5}.faq-chevron{color:#8996a8;font-size:17px;line-height:1;transition:transform .15s}.faq-item.open .faq-chevron{transform:rotate(180deg)}.faq-answer{padding:0 12px 11px 30px}.faq-answer p{color:#6e7c91;font-size:10px;line-height:1.8;white-space:pre-line}.faq-help{margin-top:7px;padding:0;border:0;background:transparent;color:var(--blue);font-size:10px;min-height:24px}.faq-help:hover{background:transparent;border-color:transparent}.faq-empty{padding:13px;text-align:center;color:#98a3b3;font-size:10px}.player-new{margin-top:1px}.player-new span{margin-left:auto;font-size:18px;line-height:1}
.feedback-tabs{display:flex;gap:22px;align-items:center;margin:-3px 0 13px;border-bottom:1px solid var(--line)}.feedback-tabs button{padding:9px 1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:12px}.feedback-tabs button.active{border-bottom-color:var(--blue);color:var(--blue);font-weight:600}.faq-settings .page-heading{margin-bottom:15px}.faq-settings .page-heading p{max-width:640px}.faq-manager-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line)}.faq-manager-head>div{display:flex;align-items:center;gap:10px}.faq-manager-head strong{font-size:12px}.faq-manager-head span{color:var(--muted);font-size:10px}.faq-editor-list{display:grid;gap:0}.faq-editor{padding:16px;border-bottom:1px solid #eef1f5}.faq-editor:last-child{border-bottom:0}.faq-editor-heading{display:grid;grid-template-columns:30px minmax(125px,.35fr) minmax(220px,1fr) auto;align-items:end;gap:10px}.faq-order{align-self:center;color:#9ba8ba;font:11px ui-monospace,monospace}.faq-control{display:grid;gap:5px;color:#758399;font-size:10px}.faq-control input,.faq-control select,.faq-control textarea{width:100%;font-size:12px}.faq-question-control input{font-weight:550}.faq-order-controls{display:flex;gap:5px}.faq-order-controls button{width:31px;min-width:31px;padding:3px;min-height:32px;color:#738198}.faq-answer-control{margin:12px 0 8px 40px}.faq-answer-control textarea{min-height:76px;resize:vertical;line-height:1.6}.faq-editor-footer{display:flex;align-items:center;justify-content:space-between;margin-left:40px}.faq-enabled{display:flex;align-items:center;gap:7px;color:#6f7d91;font-size:11px}.faq-enabled input{accent-color:var(--blue)}.faq-delete{color:#bd5a60;font-size:11px}.faq-manager-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line);background:#fafbfd;font-size:10px}.faq-manager-footer .row{gap:8px}.faq-manager-footer button{font-size:11px}.faq-settings .faq-no-items{padding:32px;color:var(--muted);text-align:center;font-size:12px}
.auto-reply-card{max-width:780px}.auto-reply-form{padding:18px}.auto-reply-toggle{display:flex;align-items:center;gap:10px;padding:2px 0 17px;border-bottom:1px solid var(--line);cursor:pointer}.auto-reply-toggle input{accent-color:var(--blue)}.auto-reply-toggle span{display:grid;gap:3px}.auto-reply-toggle strong{font-size:12px}.auto-reply-toggle small,.auto-reply-message>small{color:var(--muted);font-size:10px}.auto-reply-message{margin-top:17px}.auto-reply-message textarea{min-height:94px;resize:vertical;line-height:1.65}.auto-reply-preview{margin-top:20px;padding:13px;background:#f7f9fc;border:1px solid var(--line);border-radius:8px}.auto-reply-preview>span{display:block;margin-bottom:10px;color:var(--muted);font-size:10px}.auto-reply-preview .message{display:flex;gap:9px;align-items:flex-start}.auto-reply-preview .avatar{width:28px;height:28px}.auto-reply-preview .message-body{min-width:0}.auto-reply-preview .bubble{margin-top:5px}.auto-reply-label{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:3px;background:#eef2f8;color:#79869a;font-size:9px;font-weight:400}
@media(max-width:800px){.faq-editor-heading{grid-template-columns:25px minmax(110px,.4fr) minmax(0,1fr)}.faq-order-controls{grid-column:2/-1;justify-content:flex-end}.faq-answer-control,.faq-editor-footer{margin-left:35px}}
@media(max-width:560px){.hot-faq-heading h3{font-size:13px}.faq-editor{padding:12px}.faq-editor-heading{grid-template-columns:23px minmax(0,1fr)}.faq-order{grid-row:1/3}.faq-category-control,.faq-question-control{grid-column:2}.faq-order-controls{grid-column:2;justify-content:flex-end}.faq-answer-control,.faq-editor-footer{margin-left:0}.faq-manager-footer{align-items:flex-start;flex-direction:column}.faq-manager-footer>.row{width:100%;justify-content:flex-end}.faq-manager-head{padding:12px}.feedback-tabs{gap:18px}}
.filter-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:43px;padding:5px 18px;border-bottom:1px solid var(--line);background:#fff}.filter-panel-head>small{color:var(--muted);font-size:10px}.filter-toggle{display:inline-flex;align-items:center;gap:11px;border:0;background:none;padding:4px 0;min-height:30px;color:var(--ink);font-size:11px}.filter-toggle:hover{background:none;color:var(--blue)}.filter-toggle-action{color:var(--blue);font-size:10px}
.table-scroll th{padding:8px 14px}.table-scroll td{padding:9px 14px}.table-scroll .summary-cell small{margin-top:3px}.table-scroll .identity-cell small{margin-top:2px}.table-scroll .badge{padding:2px 7px}.list-tabs button{padding:10px 0}.pagination{padding:9px 14px}

body{min-height:100dvh;background:#d4cec4 url("/chat-assets/com_img_bg2.webp?v=1") center/cover no-repeat}
#player-root{width:100%;max-width:480px;height:100dvh;min-height:100dvh;margin:0 auto;overflow:hidden;background:#f7f8fa;box-shadow:0 0 0 1px #dce2eb;}
#toast{left:50%;bottom:20px}
#image-dialog{margin:auto}
.player-header{padding-top:13px}
.player-content{padding-bottom:20px}
.composer{padding-bottom:14px}
.composer textarea{font-size:16px}
.player-chat-title .badge{flex:none}
.player-content>.empty{padding:28px 16px}
.chat-log{scroll-behavior:auto}
.message .bubble{user-select:text;-webkit-user-select:text}
.message-image{min-width:0}
.message-image img{width:auto;max-width:min(220px,72vw)}
@media(max-width:480px){#player-root{box-shadow:none}.player-content{padding-left:16px;padding-right:16px}}

/* Compact player FAQ and feedback list with readable WebView typography. */
#player-root{font-size:15px}
#player-root .player-header strong{font-size:17px}
#player-root .player-header button{font-size:24px}
#player-root .player-content{padding:15px 16px 16px}
#player-root .hot-faq{margin:0 0 11px}
#player-root .faq-list{display:grid;gap:6px}
#player-root .faq-list.scrollable{max-height:310px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#player-root .faq-question{padding:9px 11px}
#player-root .faq-question-copy strong{font-size:15px;line-height:1.45}
#player-root .faq-answer{padding:0 12px 10px}
#player-root .faq-answer p{font-size:13px;line-height:1.65}
#player-root .faq-help{font-size:13px}
#player-root .faq-empty{font-size:13px}
#player-root .player-new{font-size:15px;padding:10px 13px;margin-bottom:14px}
#player-root .player-list-heading{font-size:13px;margin-bottom:8px}
#player-root .ticket-card{padding:9px 11px;margin-bottom:7px}
#player-root .ticket-card .ticket-top{margin-bottom:4px}
#player-root .ticket-card h3{font-size:14px;line-height:1.4;margin-bottom:3px;-webkit-line-clamp:1}
#player-root .ticket-card p{font-size:12px}
#player-root .ticket-card .ticket-bottom{font-size:11px;margin-top:6px}
#player-root .ticket-card .badge{font-size:11px;padding:2px 7px}
#player-root .player-footer-note{font-size:12px;line-height:1.7;margin:14px 4px 5px}
#player-root .player-chat-title{font-size:14px;padding:12px 15px}
#player-root .chat-time,#player-root .system-message{font-size:12px}
#player-root .message-author{font-size:12px}
#player-root .bubble{font-size:15px;line-height:1.65}
#player-root .composer .counter{font-size:12px}
#player-root .composer .image-pick{font-size:13px}
#player-root .composer-hint{font-size:12px}
#player-root .new-chat-note{font-size:14px}
#player-root .player-note{font-size:13px}

/* Unity chat artwork. Bubble borders use the source sprite's nine-slice guides. */
#player-root .chat-log{padding:22px 15px;background-color:#d4cec4;background-image:url("/chat-assets/com_img_bg2.webp?v=1");background-position:center;background-size:cover;background-repeat:no-repeat}
#player-root .message{gap:8px;margin-bottom:20px;align-items:flex-start}
#player-root .message .chat-avatar{display:block;flex:0 0 54px;width:54px;height:54px;margin-top:3px;padding:8px;border:0;border-radius:0;background-color:transparent;background-image:url("/chat-assets/chat_tx_bubble_head_bg.webp?v=1");background-position:center;background-size:100% 100%;background-repeat:no-repeat;box-sizing:border-box}
#player-root .chat-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
#player-root .message-body{max-width:calc(100% - 62px);min-width:0}
#player-root .message-author{margin:0 3px 4px;color:#514b43;font-size:12px;line-height:1.4}
#player-root .message.own .message-author{text-align:right}
#player-root .message .bubble{display:inline-block;max-width:100%;box-sizing:border-box;padding:3px 5px;border:solid transparent;border-width:15px 12px 12px 18px;border-image-source:url("/chat-assets/chat_tx_bubble.webp?v=1");border-image-slice:59 26 31 43 fill;border-image-width:15px 12px 12px 18px;border-image-repeat:stretch;border-radius:0;background:transparent;color:#343434;font-size:18px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#player-root .message.own .bubble{border-width:15px 18px 12px 12px;border-image-source:url("/chat-assets/chat_tx_bubble_player.webp?v=1");border-image-slice:56 42 34 27 fill;border-image-width:15px 18px 12px 12px;color:#30422d}
#player-root .chat-time{width:max-content;max-width:100%;margin:0 auto 18px;padding:4px 10px;border-radius:12px;background:#ffffffa6;color:#5c574e;font-size:12px}
#player-root .system-message{width:fit-content;max-width:90%;margin:14px auto;padding:5px 10px;border-radius:12px;background:#ffffffb8;color:#544f47;font-size:12px}

/* Compact artwork theme. Device insets are configured below. */
#player-root{display:flex;flex-direction:column;font-size:14px;--blue:#56785a;--blue-light:#e8eee1;color:#403e36;background:#d4cec4 url('/chat-assets/com_img_bg2.webp?v=1') center/cover no-repeat}
#player-root .player-header{flex:none;padding:2px 8px;background:#faf7ece0;border-bottom:1px solid #a99e7d55}
#player-root .player-header strong{font-size:16px;letter-spacing:1px}
#player-root .player-header button{display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:36px;line-height:1;color:#514d3f}
#player-root .player-content{padding:10px 12px 8px;background:transparent}
#player-root .faq-item{background:#fffdf3df;border-color:#b8ad9055;border-radius:9px}
#player-root .faq-question{padding:8px 10px}
#player-root .faq-question-copy strong{font-size:14px}
#player-root .faq-answer p,#player-root .faq-help{font-size:12px;line-height:1.55}
#player-root .player-new{font-size:14px;margin-bottom:10px;padding:8px 11px}
#player-root .player-list-heading{font-size:12px;color:#666252}
#player-root .ticket-card{padding:7px 10px;margin-bottom:6px;background:#fffdf3e6;border-color:#b8ad9055;border-radius:9px}
#player-root .ticket-card .ticket-top{margin:0 0 2px;gap:7px}
#player-root .ticket-card h3{font-size:13px;line-height:1.4;flex:1;min-width:0;margin:0;-webkit-line-clamp:1;text-align:left}
#player-root .ticket-card p{font-size:11px;line-height:1.45;color:#797566}
#player-root .ticket-card .ticket-bottom{margin-top:3px;font-size:10px;line-height:1.4;color:#827c6b}
#player-root .ticket-card .badge{font-size:10px;padding:1px 5px;flex:none}
#player-root .player-footer-note{font-size:11px;margin:9px 0 0;color:#77715e}
#player-root .player-chat-title{flex:none;font-size:12px;padding:6px 12px;background:#fffdf3b3;border-color:#a99e7d44}
#player-root .player-chat-title .badge{font-size:10px}
#player-root .chat-log{padding:12px 10px;background:transparent;min-height:0}
#player-root .message{gap:5px;margin-bottom:11px}
#player-root .message .chat-avatar{flex:0 0 42px;width:42px;height:42px;padding:6px;margin-top:0}
#player-root .message-body{max-width:calc(100% - 47px)}
#player-root .message-author{font-size:10px;margin:0 2px 2px}
#player-root .message .bubble{font-size:14px;line-height:1.45;padding:1px 3px;border-width:10px 8px 8px 12px;border-image-width:10px 8px 8px 12px}
#player-root .message.own .bubble{border-width:10px 12px 8px 8px;border-image-width:10px 12px 8px 8px}
#player-root .chat-time,#player-root .system-message{font-size:10px;margin:5px auto 10px;padding:3px 8px}
#player-root .composer{padding:8px 10px;background:#faf7ecee;border-top:1px solid #a99e7d66;box-shadow:0 -3px 14px #51452b0a}
#player-root .composer textarea{display:block;height:66px;min-height:44px;max-height:120px;resize:none;padding:8px 10px;border-radius:10px;border-color:#b4ad945e;background:#fffef7;font-size:14px;line-height:1.45}
#player-root .composer-bottom{gap:8px;margin-top:6px}
#player-root .composer .image-pick{font-size:12px;padding:4px 10px;background:#f1eedf;border:1px solid #c8bea4;border-radius:8px;min-height:32px;color:#5e644c}
#player-root .composer .counter{font-size:10px;color:#827c6b}
#player-root .composer .primary{font-size:13px;padding:5px 20px;min-height:32px;border-radius:8px;box-shadow:0 2px 0 #364c3030}
#player-root .attachments:empty{display:none}
#player-root .attachment{width:48px;height:48px}
#player-root .new-chat-note{font-size:12px;color:#696454}

/* Phone screenshot refinements: paper neutrals and the chat sprites' leaf green. */
:root{--player-safe-top:max(env(safe-area-inset-top,0px),44px);--player-safe-bottom:max(env(safe-area-inset-bottom,0px),24px)}
#player-root{--blue:#6c8c5e;--blue-light:#e8eddf;--ink:#3f493a;--muted:#77806f;--line:#cfd5c7;height:var(--player-viewport-height,100dvh);min-height:0;color:var(--ink)}
#player-root .player-header{padding:calc(2px + var(--player-safe-top)) max(8px,env(safe-area-inset-right,0px)) 3px max(8px,env(safe-area-inset-left,0px));background:#f0f2e9f0;border-color:#c5ceba80}
#player-root .player-header button,#player-root .player-header button:hover,#player-root .player-header button:focus{background:transparent;border:0;box-shadow:none;color:#53604b;border-radius:50%}
#player-root .player-header button:active{background:#dce5d280}
#player-root :focus-visible{outline:2px solid #79966b;outline-offset:2px}
#player-root .player-content{padding-bottom:calc(10px + var(--player-safe-bottom));padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
#player-root .faq-item,#player-root .faq-item.open,#player-root .ticket-card{background:#f5f6eef0;border:1px solid #d4dacbaa;box-shadow:0 2px 5px #39483006}
#player-root .faq-question,#player-root .faq-question:hover,#player-root .faq-question:focus{background:transparent;border-color:transparent}
#player-root .faq-question{padding:10px 11px;color:#424d3d}
#player-root .faq-question-copy strong{font-weight:550}
#player-root .faq-chevron{color:#819273}
#player-root .faq-answer{padding:0 11px 11px;background:transparent}
#player-root .faq-answer p{color:#6d7864;line-height:1.7}
#player-root .faq-help,#player-root .faq-help:hover{color:#60814f;background:transparent;white-space:normal;text-align:left}
#player-root .primary{background:#6c8c5e;border-color:#6c8c5e;color:#fffef9}
#player-root .primary:hover{background:#6c8c5e;border-color:#6c8c5e}
#player-root .primary:active{background:#5d7b50;border-color:#5d7b50}
#player-root .primary:disabled{opacity:1;background:#bdcbb3;border-color:#bdcbb3;color:#f6f8f2;box-shadow:none}
#player-root .player-list-heading,#player-root .player-footer-note{color:#75806a}
#player-root .ticket-card:hover{background:#f5f6eef0;border-color:#bccaae}
#player-root .ticket-card p,#player-root .ticket-card .ticket-bottom{color:#77806f}
#player-root .badge.staff{background:#ebe8d8;color:#8a8054}
#player-root .badge.player{background:#e3ead8;color:#647c50}
#player-root .badge.done{background:#e4ebdf;color:#718567}
#player-root .message-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
#player-root .message.own .message-body{align-items:flex-end}
#player-root .message-author{color:#707966;font-size:10px;line-height:1.5;margin:0 2px 3px;max-width:100%;overflow-wrap:anywhere}
#player-root .auto-reply-label{background:#e9ede3;color:#849077;border-radius:4px;font-size:9px}
#player-root .message .bubble{width:fit-content;max-width:100%;padding:1px 2px;border-width:9px 6px 7px 10px;border-image-width:9px 6px 7px 10px;line-height:1.5;color:#41483c}
#player-root .message.own .bubble{border-width:9px 10px 7px 6px;border-image-width:9px 10px 7px 6px;color:#35492d}
#player-root .message-image{margin-top:4px;overflow:hidden;border-radius:8px}
#player-root .message-image img{border-color:#c8d2bc}
#player-root .chat-time,#player-root .system-message{color:#78836b;background:#f1f4e7b8}
#player-root .composer{padding:8px max(10px,env(safe-area-inset-right,0px)) calc(8px + var(--player-safe-bottom)) max(10px,env(safe-area-inset-left,0px));background:#eef2e6f5;border-top:1px solid #c2cfb599;box-shadow:0 -3px 12px #33442806}
#player-root.keyboard-open{--player-safe-bottom:0px}
#player-root .composer textarea{background:#f9faf4;border:1px solid #d9e0d0;color:#45523b;font-size:16px;border-radius:10px;box-shadow:inset 0 1px 2px #33442804;resize:none}
#player-root .composer textarea:focus{border-color:#8da37b;outline:0;box-shadow:0 0 0 2px #8da37b18}
#player-root .composer textarea::placeholder{color:#939d89;font-size:14px}
#player-root .composer .image-pick,#player-root .composer .image-pick:hover{background:transparent;border:1px solid #c8d3bc;color:#6c805b;border-radius:8px}
#player-root .composer .counter{color:#8b977f}
#player-root .new-chat-note{color:#7e8a73}

/* The image itself is the lightbox surface, without a dark surrounding panel. */
#image-dialog{box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;padding:var(--player-safe-top) max(14px,env(safe-area-inset-right,0px)) var(--player-safe-bottom) max(14px,env(safe-area-inset-left,0px));border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;color:#4f6243}
#image-dialog[open]{display:flex;align-items:center;justify-content:center}
#image-dialog::backdrop{background:#e4e9ddcf;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#image-dialog .image-frame{position:relative;width:fit-content;max-width:100%;max-height:100%;line-height:0}
#image-dialog #image-full{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - var(--player-safe-top) - var(--player-safe-bottom));object-fit:contain;border:0;border-radius:9px;box-shadow:0 6px 28px #45563b24;outline:0}
#image-dialog #image-close{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #ffffffb3;border-radius:50%;font-size:29px;line-height:1;background:#f3f6e9df;color:#50653f;box-shadow:0 2px 8px #34442b20;cursor:pointer}
#image-dialog #image-close:hover{background:#f3f6e9df}
#image-dialog #image-close:focus-visible{outline:2px solid #79966b;outline-offset:2px}

#player-root .ticket-card .unread-message{gap:7px;color:#b63c43;font-size:13px;line-height:1.35}
#player-root .ticket-card .unread-message strong{font-weight:750}
#player-root .ticket-card .unread-message .unread-dot{width:9px;height:9px;box-shadow:0 0 0 3px #d9535b22}

/* Keep the mobile chat pinned to the visual viewport while the keyboard is open. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body{position:fixed;inset:0;min-height:0}
#player-root{position:fixed;top:var(--player-viewport-offset-top,0px);left:50%;transform:translateX(-50%);width:min(100vw,480px);margin:0}
#toast{top:calc(var(--player-viewport-offset-top,0px) + var(--player-viewport-height,100dvh) - 62px);bottom:auto}
/* Reserve both avatar columns so messages never cross the opposite name edge. */
#player-root .message-body{flex:1 1 0;width:0;max-width:calc(100% - 98px)}
#player-root .message .bubble{max-width:100%}

#player-root .message-image{max-width:100%}
#player-root .message-image img{max-width:100%;height:auto}

#player-root .player-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px 24px;text-align:center;color:#526343}#player-root .player-loading p{color:#66735c;max-width:300px}#player-root .loading-ring{width:32px;height:32px;border:3px solid #cad4bf;border-top-color:#617c4b;border-radius:50%;animation:feedback-loading 1s linear infinite}@keyframes feedback-loading{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#player-root .loading-ring{animation:none}}
