:root{font-family:"Microsoft YaHei","Segoe UI",sans-serif;color:#eee9df;background:#0d0e12;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:0;border-radius:8px;padding:11px 16px;background:#d9b976;color:#211a0d;font-weight:700;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{color:#e8dfce;background:#303038}button.danger{color:#f1c3bd;background:#51312f}input,select{width:100%;border:1px solid #444149;border-radius:8px;background:#15161c;color:#f5f0e5;padding:11px 12px;outline:none}input:focus,select:focus{border-color:#d9b976}label{display:grid;gap:8px;color:#c9c1b2;font-size:13px;font-weight:600}h1,h2,h3,p{margin-top:0}h1{font-size:29px}h2{font-size:20px}.muted{color:#99969a;font-size:13px;line-height:1.7}.gold{color:#e0c187}.login{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#3b3020 0,transparent 45%),#0d0e12}.login-card{width:min(440px,100%);padding:38px}.brand{font-weight:800;letter-spacing:.13em;color:#e0c187;font-size:13px}.login-card h1{margin:24px 0 8px}.login-card form{display:grid;gap:19px;margin-top:30px}.shell{min-height:100vh;display:grid;grid-template-columns:235px 1fr}.sidebar{border-right:1px solid #303036;background:#15151b;padding:30px 16px;display:flex;flex-direction:column;gap:28px}.sidebar .brand{padding:0 12px}.sidebar nav{display:grid;gap:4px}.sidebar nav button{text-align:left;background:transparent;color:#aaa6a4;font-weight:500}.sidebar nav button.active{background:#393024;color:#f4d293}.sidebar .bottom{margin-top:auto;color:#888;font-size:12px;padding:0 12px}.main{min-width:0;padding:32px clamp(20px,4vw,60px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:32px}.topbar p{margin:4px 0 0}.topbar h1{margin:0}.card{background:linear-gradient(145deg,#222229,#191a20);border:1px solid #38353a;border-radius:14px;padding:24px;box-shadow:0 15px 40px #0002}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.metric{font-size:27px;font-weight:700;color:#e6c989;margin:12px 0}.stack{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.notice{border:1px solid #6b5938;background:#2c271f;border-radius:9px;padding:14px;color:#e5c992;line-height:1.6}.error{color:#ffa9a2}.success{color:#9fe0b0}.message{min-height:24px;margin:12px 0;color:#e7c888}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:700px;font-size:13px}th,td{text-align:left;vertical-align:top;padding:13px 10px;border-bottom:1px solid #39383d;word-break:break-word}th{color:#aaa39b;font-weight:600}td{color:#eee8dd}.tag{display:inline-block;padding:4px 8px;border-radius:5px;background:#393329;color:#eacb91;font-size:12px}.detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}.detail span{display:block;color:#9e9a98;font-size:12px;margin-bottom:8px}.detail strong{word-break:break-all}.loading{padding:40px;color:#d9b976}dialog{border:1px solid #534a3b;border-radius:14px;background:#222229;color:#eee9df;width:min(440px,calc(100% - 32px));padding:25px}dialog::backdrop{background:#000b}dialog form{display:grid;gap:18px}dialog p{color:#c4bcb0;line-height:1.7;margin:0;white-space:pre-wrap}dialog .actions{justify-content:flex-end}@media(max-width:700px){.shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid #303036;padding:16px;gap:12px}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav button{white-space:nowrap}.sidebar .bottom{display:none}.main{padding:24px 16px}.topbar{align-items:flex-start}}

.choices{display:flex;flex-wrap:wrap;gap:10px 16px;margin:-4px 0 16px}.choice{display:flex;align-items:center;gap:8px;color:#c9c1b2;font-size:13px;font-weight:600}.choice input{width:auto;padding:0;accent-color:#d9b976}

.support-workbench{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:16px;align-items:stretch}.support-inbox{display:flex;flex-direction:column;min-height:560px;max-height:calc(100vh - 170px);padding:16px}.support-inbox__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.support-inbox__head h2{margin:0;font-size:16px}.support-inbox__head p{margin:3px 0 0}.support-inbox__head button{flex:0 0 auto;padding:8px 12px}.support-search{display:flex;gap:8px;margin:14px 0 10px}.support-search input{flex:1;min-width:0;padding:8px 10px}.support-search button{flex:0 0 auto;padding:8px 12px}.support-thread-list{display:grid;flex:1;min-height:0;align-content:start;gap:6px;overflow:auto}.support-thread{display:grid;gap:4px;width:100%;padding:10px;border:1px solid transparent;border-radius:9px;color:#eee8dd;font-weight:400;text-align:left;background:#18191f;cursor:pointer}.support-thread:hover{background:#22242b}.support-thread.is-active{border-color:#d9b976;background:#2a251c}.support-thread__top{display:flex;align-items:center;justify-content:space-between;gap:8px}.support-thread__top strong{overflow:hidden;font-size:13px;white-space:nowrap;text-overflow:ellipsis}.support-thread__top time{flex:0 0 auto;color:#8f8b86;font-size:10px}.support-thread__meta{display:flex;align-items:center;gap:6px;color:#a8a39a;font-size:11px}.support-thread__preview{overflow:hidden;color:#8f8d91;font-size:12px;white-space:nowrap;text-overflow:ellipsis}.support-unread{display:inline-grid;min-width:18px;height:18px;place-items:center;padding:0 5px;border-radius:999px;color:#fff;font-size:10px;background:#c94f47}.support-empty{padding:30px 12px;color:#99969a;font-size:13px;text-align:center}.support-room{display:flex;flex-direction:column;min-height:560px;max-height:calc(100vh - 170px);padding:18px}.support-room--empty{justify-content:center;align-items:center;text-align:center}.support-room--empty h2{margin-bottom:8px}.support-room__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #39383d}.support-room__head h2{margin:0 0 4px;font-size:17px}.support-room__head p{margin:0}.support-room__head button{flex:0 0 auto;padding:8px 12px}.support-room__messages{display:flex;flex:1;min-height:0;flex-direction:column;gap:10px;padding:16px 4px;overflow:auto}.support-chat-row{display:flex}.support-chat-row--player{justify-content:flex-start}.support-chat-row--admin{justify-content:flex-end}.support-chat-bubble{max-width:74%;padding:9px 11px;border:1px solid #3b3a41;border-radius:12px;color:#ece6da;background:#202127}.support-chat-row--player .support-chat-bubble{border-top-left-radius:3px}.support-chat-row--admin .support-chat-bubble{border-top-right-radius:3px;border-color:rgba(217,185,118,.35);background:#342c20}.support-chat-bubble small{display:block;margin-bottom:3px;color:#a09a8e;font-size:10px}.support-chat-bubble p{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.support-reply{display:grid;gap:8px;padding-top:12px;border-top:1px solid #39383d}.support-reply .message{min-height:18px;margin:0;font-size:12px}.support-reply textarea{width:100%;min-height:70px;max-height:140px;padding:10px 12px;border:1px solid #444149;border-radius:8px;outline:none;color:#f5f0e5;font:inherit;font-size:13px;line-height:1.6;background:#15161c;resize:vertical}.support-reply textarea:focus{border-color:#d9b976}.support-reply .actions{justify-content:space-between}.support-reply .actions button{padding:9px 18px}@media(max-width:900px){.support-workbench{grid-template-columns:1fr}.support-inbox{max-height:320px;min-height:240px}.support-room{min-height:480px;max-height:none}}
