.admin-chat-history{max-height:420px;overflow:auto;display:flex;flex-direction:column;gap:12px;scrollbar-gutter:stable}
.admin-chat-message{max-width:90%;padding:10px 12px;border:1px solid #dde4e9;border-radius:6px;background:#f4f6f7;align-self:flex-start;overflow-wrap:anywhere}
.admin-chat-message.sent{align-self:flex-end;background:#edf8f5;border-color:#c6dfd7}
.admin-chat-message div{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.admin-chat-message p{white-space:pre-wrap;margin:8px 0}.admin-chat-message small{color:#647477;font-size:11px}
.menu-tree-cell{display:flex;align-items:center;gap:6px;min-width:160px}.menu-tree-cell small{display:block;color:#647477}.menu-tree-spacer{width:28px;flex:0 0 28px}.menu-tree-cell svg{flex-shrink:0}.menu-tree-cell>span{overflow-wrap:anywhere}
.sidebar-branch{padding:0!important}.sidebar-branch>summary{list-style:none;cursor:pointer}.sidebar-branch>summary::-webkit-details-marker{display:none}.sidebar-branch>div{padding-inline-start:12px}.menu-group-label{display:flex;align-items:center;gap:8px;padding:12px;color:#556465;font-weight:600}
.admin-list-note,.admin-scope-note{font-size:12px;line-height:1.6;color:#627276}.admin-copyright{padding:16px 20px;color:#728080;font-size:12px;overflow-wrap:anywhere}.permission-disabled{opacity:.45}
.admin-surface #modal [data-a="unlock-group"]:disabled{background:#e4e7e9;border-color:#c9ced1;color:#72777b;opacity:1;cursor:not-allowed}
.admin-app pre,dialog pre{font:12px/1.5 monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:360px;margin:0}.admin-filters>.check{align-self:center;font-size:12px;max-width:240px}
.recharge-details .table-scroll table{min-width:0;width:100%;table-layout:fixed}.recharge-details th:first-child,.recharge-details td:first-child{width:34%}.recharge-details th,.recharge-details td{white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.admin-chat-history{max-height:45vh}.admin-chat-message{max-width:96%}.admin-copyright{padding:12px}.admin-chat-message div{gap:4px}}
dialog:has(.shot-rules){width:900px;max-width:calc(100% - 28px)}
.shot-rules{padding-bottom:12px}.shot-rules h3,.shot-form h3{font-size:14px;line-height:1.5;margin:0 0 12px}.shot-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.shot-list-heading h3{margin:0}
.shot-rules .table-scroll table{min-width:600px;table-layout:fixed}.shot-rules th,.shot-rules td{white-space:normal;overflow-wrap:anywhere}.shot-rules th:nth-child(1){width:20%}.shot-rules th:nth-child(2){width:29%}.shot-rules th:nth-child(3){width:22%}.shot-rules th:nth-child(4){width:14%}.shot-rules th:nth-child(5){width:15%}
.shot-actions{display:flex;gap:6px}.admin-surface #modal .shot-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;padding:6px;flex:0 0 32px}.shot-icon .lucide,.shot-form .dialog-actions .lucide{width:16px;height:16px;flex:0 0 16px}.admin-surface #modal .shot-icon:disabled{opacity:.45;cursor:not-allowed}
.shot-rules td:has(.shot-actions){padding-inline:8px}
.shot-form{border-top:1px solid #e2e6e9}.shot-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.shot-fields>*{min-width:0}.shot-fields input,.shot-fields select{width:100%;min-width:0}.shot-reward{display:block;min-height:24px;margin-top:12px;font-variant-numeric:tabular-nums}.shot-form .dialog-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.shot-calculations{margin-top:22px}.shot-calculations .table-scroll table{min-width:720px}.shot-calculations th:nth-child(n){width:16%}.shot-calculations th:first-child{width:20%}
@media(max-width:600px){.shot-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.shot-rules,.shot-form{padding:16px}.shot-rules .table-scroll{max-height:40dvh;overflow:auto}}
.vip-level-form fieldset{min-width:0}.admin-app .vip-level-form .table-scroll table{min-width:0;width:100%;table-layout:fixed}.vip-level-form th,.vip-level-form td{white-space:normal;overflow-wrap:anywhere}.vip-level-form th:first-child{width:23%}.vip-level-form input[type=number]{min-width:0;width:100%;height:36px;font-variant-numeric:tabular-nums}.vip-level-form .table-scroll{margin-bottom:18px}
.admin-surface #app th button.column-sort{display:inline-flex;align-items:center;gap:6px;padding:4px 0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;white-space:nowrap;box-shadow:none;min-height:28px}
.admin-app th .column-sort .lucide{width:14px;height:14px;flex:0 0 14px;color:#7b898c}.admin-app th[aria-sort=ascending] .column-sort,.admin-app th[aria-sort=descending] .column-sort{color:#087f73}.admin-app th[aria-sort=ascending] .lucide,.admin-app th[aria-sort=descending] .lucide{color:inherit}.admin-app th .column-sort:hover{color:#087f73}.admin-app th .column-sort:focus-visible{outline:2px solid #087f73;outline-offset:4px}
.admin-surface #app th[aria-sort=ascending] button.column-sort,.admin-surface #app th[aria-sort=descending] button.column-sort,.admin-surface #app th button.column-sort:hover{color:#087f73;background:transparent;border:0}
.withdrawal-details .table-scroll table,.task-config-details .table-scroll table{min-width:0;width:100%;table-layout:fixed}
.withdrawal-details th,.withdrawal-details td,.task-config-details th,.task-config-details td{white-space:normal;overflow-wrap:anywhere}
.withdrawal-details th:first-child{width:35%}.task-config-details th:first-child{width:20%}
.withdrawal-details>p,.task-config-details>p{overflow-wrap:anywhere}
@media(max-width:600px){.withdrawal-details th,.withdrawal-details td,.task-config-details th,.task-config-details td{padding:10px 7px;font-size:12px}}

/* Member information fits the available width; smaller screens use labelled cards. */
.admin-surface #admin-body .member-list-table{overflow:visible}
.admin-surface #admin-body .member-list-table table{width:100%;min-width:0;table-layout:fixed}
.admin-surface #admin-body .member-list-table th,.admin-surface #admin-body .member-list-table td:nth-child(n){min-width:0;max-width:none;padding:12px 9px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.admin-surface #app .member-list-table th .column-sort{white-space:normal;text-align:left;align-items:flex-start;line-height:1.5}
.member-list-table th[data-member-field=select]{width:3%}.member-list-table th[data-member-field=id]{width:5%}
.member-list-table th[data-member-field=contact]{width:12%}.member-list-table th[data-member-field=account]{width:12%}
.member-list-table th[data-member-field=earnings]{width:12%}.member-list-table th[data-member-field=progress]{width:9%}
.member-list-table th[data-member-field=relations]{width:10%}.member-list-table th[data-member-field=dates]{width:13%}
.member-list-table th[data-member-field=actions]{width:24%}
.member-list-table .member-metrics,.member-list-table .member-progress{min-width:0}
.member-list-table .member-metrics>span{gap:6px;white-space:normal;flex-wrap:wrap;line-height:1.6}
.member-list-table .member-metrics b{white-space:nowrap}
.member-list-table .member-contact{font-weight:500;margin-bottom:7px}
.member-list-table .member-progress small{white-space:normal}
.member-list-table .member-list-meta{display:grid;gap:6px;line-height:1.6;margin:6px 0}
.member-list-table .member-list-meta strong{font-weight:500}
.member-list-table .member-actions{width:auto;min-width:0}
.member-list-table .operation-row{gap:6px;padding:8px 0}
.admin-surface #app .member-list-table .operation-button{padding:6px 8px}
@media(max-width:1300px){
  .admin-surface #admin-body .member-list-table table,.member-list-table tbody{display:block}
  .member-list-table thead{display:block}
  .member-list-table thead tr{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
  .admin-surface #admin-body .member-list-table thead th{display:block;width:auto;padding:4px 6px;border:0}
  .member-list-table thead th[data-member-field=actions]{display:none}
  .member-list-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid #dfe4e5;border-radius:6px;margin-bottom:16px;overflow:hidden;background:#fff}
  .admin-surface #admin-body .member-list-table tbody td:nth-child(n){display:block;width:auto;padding:12px;border:0;border-bottom:1px solid #edf0f0;font-size:13px}
  .member-list-table tbody td[data-member-field=select]{grid-column:1;padding-bottom:0!important;border-bottom:0!important}
  .member-list-table tbody td[data-member-field=id]{grid-column:2/-1;border-bottom:0!important;text-align:right}
  .member-list-table tbody td[data-member-field=id]::before{display:inline;margin-right:8px}
  .member-list-table tbody td[data-member-field=actions],.member-list-table tbody td[data-member-field=empty]{grid-column:1/-1}
  .member-list-table tbody td:not([data-member-field=select]):not([data-member-field=empty])::before{content:attr(data-label);display:block;color:#748080;font-size:12px;margin-bottom:9px;font-weight:500}
  .member-list-table .member-metrics{max-width:340px}
  .member-list-table .member-actions{display:flex;flex-wrap:wrap;gap:8px 18px}
  .member-list-table .operation-row{padding:0;border:0}
  .member-list-table .operation-row+.operation-row{border:0}
}
@media(max-width:600px){
  .member-list-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .member-list-table tbody td[data-member-field=contact],.member-list-table tbody td[data-member-field=dates]{grid-column:1/-1}
  .admin-surface #admin-body .member-list-table tbody td:nth-child(n){padding:12px 10px}
  .member-list-table .member-actions{display:block}
  .member-list-table .operation-row+.operation-row{margin-top:8px}
  .admin-surface #app .member-list-table .operation-button{min-height:36px;padding:7px 9px}
}
