/* 68M2 — slate navigation, white workspaces, teal controls. */
:root{--accent:#0b827e;color:#243448;background:#f0f3f6;font-size:13px}
body{background:#f0f3f6}h1{font-size:25px;letter-spacing:-.5px}h2{font-size:19px}p{color:#738195}.eyebrow{color:#64768b;font-size:10px;letter-spacing:1.8px}
.panel{border:1px solid #dfe5ec;border-radius:8px;box-shadow:0 2px 5px #1e293b03}
input,select,button{border-radius:5px;font-size:13px;padding:9px 11px}input,select{border-color:#d9e0e8}input:hover,select:hover{border-color:#aabac9}input:focus,select:focus{outline-color:#8cd3cc}button{font-weight:500}button.primary{background:#0b827e;border-color:#0b827e}button.primary:hover{background:#096d69}button:hover{color:#087b77;border-color:#0b827e}
.authenticated{padding-left:218px}.authenticated main{padding:30px 32px;max-width:1800px}.authenticated footer{border-top:1px solid #e1e7ed;margin:0 32px;padding:20px 0;background:transparent;font-size:11px}
#sidebar{width:218px;background:#172535;box-shadow:none;border-right:1px solid #1e3042}
.sidebar-brand{padding:25px 18px 22px;display:grid;grid-template-columns:40px 1fr;column-gap:11px;text-align:left;align-items:center;border-bottom:1px solid #ffffff0c}
.sidebar-brand img{width:40px;height:40px;border-radius:7px;grid-row:span 2}.sidebar-brand strong{font-size:14px;line-height:1.6;margin:0;letter-spacing:.2px}.sidebar-brand span{font-size:10px;line-height:1.5;margin:0;color:#8497ab;opacity:1}
#sidebar nav{gap:5px;padding:23px 12px}#sidebar nav button{border-radius:5px;background:transparent;color:#a5b6c7;padding:13px 15px;font-size:13px;font-weight:500;transition:background .15s,color .15s}
#sidebar nav button:hover{background:#203448;color:#fff}#sidebar nav button.active{background:#123d43;color:#72ded3;box-shadow:inset 3px 0 0 #28b9ab}
.sidebar-bottom{padding:18px 16px;border-top:1px solid #ffffff0c;gap:13px}.sidebar-bottom span{color:#8ea2b6;font-size:11px}#sidebar #logout{border:1px solid #33475b;background:transparent;border-radius:5px;color:#c1ceda;padding:10px}#sidebar #logout:hover{background:#263b4e;color:white}
.heading,.preset-heading{margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid #dce3ea}.heading h1,.preset-heading h1{font-size:25px;margin:8px 0}.heading p,.preset-heading p{margin:5px 0 0;font-size:12px}
.filters{padding:18px;gap:15px 18px;margin-bottom:18px;grid-template-columns:repeat(4,minmax(110px,1fr))}.filters label{gap:7px;font-size:11px}.filters .actions{padding-top:15px;border-top:1px solid #edf1f5;margin-top:0;gap:9px}.filters .actions button{min-height:35px}.filters .actions #rangeOpen{min-height:35px}.tablebar{padding:16px 18px}.tablebar strong{font-size:13px}.tablebar span{font-size:11px}
td,th{padding:12px 15px;font-size:12px}th{color:#65778c;background:#f7f9fb}.scroll thead th,.scroll thead .column-filters th{background:#f7f9fb}.scroll thead tr:first-child th{height:44px;padding-top:10px;padding-bottom:10px}.scroll thead .column-filters th{top:44px;padding:6px 10px}.column-filters input{height:27px;font-size:11px;border-radius:4px}.pagination{padding:14px 18px;font-size:12px}.pagination button{font-size:12px;padding:7px 10px}tr:hover td{background:#f1f9f8}
.preset-heading>button{margin-top:16px}.wizard-shell{display:block;max-width:1200px}.wizard-rail{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:#fff;border:1px solid #dfe5ec;border-radius:7px;padding:0;margin:0 0 18px}
.wizard-step{padding:18px 22px;color:#97a3b1;gap:12px;border-right:1px solid #edf0f4}.wizard-step:last-child{border-right:0}.wizard-step b{width:27px;height:27px;background:#eef2f6;border-radius:6px;font-size:12px}.wizard-step span{font-size:12px}.wizard-step.current{background:#f0f9f7;color:#087b77;border-bottom:2px solid #0b827e}.wizard-step.current b{background:#0b827e;box-shadow:none;color:#fff}.wizard-step.completed{color:#55736e}.wizard-step.completed b{background:#e5f4ef;color:#267e64}
.wizard-panel{padding:26px 28px}.wizard-panel h2{font-size:18px;margin-bottom:22px}.wizard-panel>label{max-width:720px;font-size:12px}.preset-tabs{gap:0;margin-bottom:24px;display:inline-flex;background:#f0f3f6;padding:3px;border-radius:6px}.preset-tabs button{border:0;background:transparent;padding:9px 18px;border-radius:4px;color:#6c7f91}.preset-tabs button.primary{background:white;color:#087b77;box-shadow:0 1px 4px #24344818}.wizard-actions{padding-top:18px;margin-top:24px}.config-summary{border-left:3px solid #0b827e;background:#f1f8f7;color:#32665f;border-radius:3px;font-size:12px;padding:10px 14px}.schema-scroll table{border:1px solid #e3e8ee;border-radius:5px}.schema-scroll th{padding:11px 10px}.schema-scroll td{padding:8px 10px}.schema-scroll input[type=checkbox]{accent-color:#0b827e}.schema-scroll button{padding:6px 9px;font-size:11px}
.command-box{border-color:#dce5e9;border-radius:6px;padding:18px;background:#f8fafb}.command-box pre{background:#182b3b;color:#bde8df;border:0;border-radius:5px;padding:16px;font-size:12px}.command-heading strong{font-size:12px}.report-card{border-top:3px solid #dbe8e8;border-radius:6px}.report-card summary{color:#0b827e;font-size:12px}.game-grid{gap:16px}.game-card{border-radius:6px;padding:22px;border-top:3px solid #0b827e}.game-card h2{font-size:18px}.game-card button:not(.primary){background:#f7fafb;border-color:#e2e9ef;font-size:12px}.success-icon{border-radius:8px;width:44px;height:44px;font-size:23px}.totals{padding:14px 18px}.totals span{color:#087b77;background:#edf8f5;border:1px solid #d7eee7;border-radius:4px;font-size:12px}
.login{border-radius:10px;padding:34px;box-shadow:0 14px 45px #14283b0a;border-top:3px solid #0b827e}.login h1{font-size:24px}.login-logo{width:105px;height:105px}.login button.primary{padding:12px}body:not(.authenticated)>header{height:65px;background:white}.subtitle{font-size:12px}dialog{border-radius:9px;box-shadow:0 16px 70px #14283b25}dialog::backdrop{background:#0c1d2e75}.range-panels>section{border-radius:6px}.calendar-grid button.selected-day{background:#0b827e}.calendar-grid button.in-range{background:#e8f5f1}
@media(max-width:1100px){.authenticated main{padding:24px}.filters{grid-template-columns:repeat(3,minmax(100px,1fr))}.wizard-step{padding:16px}.authenticated footer{margin:0 24px}}
@media(max-width:900px){.authenticated{padding-left:185px}#sidebar{width:185px}.sidebar-brand{grid-template-columns:32px 1fr;padding:22px 12px;column-gap:8px}.sidebar-brand img{width:32px;height:32px}.sidebar-brand strong{font-size:12px}.sidebar-brand span{font-size:9px}.filters{grid-template-columns:repeat(2,minmax(100px,1fr))}}
@media(max-width:650px){.authenticated{padding-left:0}#sidebar{width:100%;position:relative}.sidebar-brand{display:flex;padding:14px 18px}.sidebar-brand img{display:block;width:30px;height:30px}.sidebar-brand span{display:none}#sidebar nav{padding:6px 12px 12px;grid-template-columns:repeat(3,1fr);gap:5px}#sidebar nav button{padding:10px;font-size:12px}.sidebar-bottom{padding:10px 16px}.authenticated main{padding:18px 14px}.authenticated footer{margin:0 14px}.wizard-step{padding:12px 8px;gap:7px}.wizard-step span{font-size:11px}.wizard-step b{width:23px;height:23px}.wizard-panel{padding:20px 16px}.filters{padding:15px;gap:12px}.preset-tabs button{padding:8px 12px}.game-grid{grid-template-columns:1fr}}
@media(max-width:450px){.filters{grid-template-columns:1fr}}

.game-report-row{display:flex;align-items:center;gap:8px;width:100%;padding-top:10px;border-top:1px solid #edf1f5}.game-report-row>button:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}.game-card .game-report-row>button.danger{flex:none;color:#b33030;background:#fff;border-color:#e6bcbc;font-size:11px}.game-card .game-report-row>button.danger:hover{background:#fff1f1}

.game-list-heading{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding-bottom:18px;margin-bottom:18px}.game-list-heading h1{margin:0}.game-list-heading>p{display:none}.game-list-heading>button{margin:0 0 0 auto;padding:8px 12px}
.compact-games{overflow:hidden;border-radius:6px}.game-list-head,.game-list-row{display:grid;grid-template-columns:minmax(160px,1fr) 140px 140px 190px;align-items:center;gap:20px;padding:13px 20px}.game-list-head{background:#f7f9fb;color:#7a899a;font-size:11px;border-bottom:1px solid #e4eaf0}.game-list-row{min-height:64px}.game-list-row>strong{font-size:14px;overflow-wrap:anywhere}.game-list-row>span{color:#65778c;font-size:12px}.game-list-item+.game-list-item{border-top:1px solid #e7edf2}.game-list-actions{display:flex;gap:8px}.game-list-actions button{font-size:12px;padding:7px 11px}.game-list-configs{padding:0 20px 12px;background:#fafcfd}.game-list-configs:not([open]){display:none}.game-list-configs .game-report-row{padding:9px 0;max-width:750px}.game-list-configs .game-report-row>button:first-child{background:transparent;border:0;padding:6px 0;color:#087b77}.games-empty{padding:20px}
@media(max-width:1000px){.game-list-head,.game-list-row{grid-template-columns:minmax(100px,1fr) 80px 80px 170px;gap:10px;padding:12px 16px}}
@media(max-width:600px){.game-list-head{display:none}.game-list-row{grid-template-columns:1fr auto;gap:10px}.game-list-row>strong{grid-column:1/-1}.game-list-actions{grid-column:1/-1}.game-list-row>span{font-size:12px}.game-list-configs{padding:0 16px 12px}}
.game-list-configs>summary{display:none}

.game-list-head,.game-list-row{grid-template-columns:minmax(140px,1fr) 100px 100px 270px}.game-empty-state{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.game-empty-state h2,.game-empty-state p{margin:0}.game-empty-state>button{margin-top:6px}.game-list-actions{flex-wrap:wrap}@media(max-width:1050px){.game-list-head,.game-list-row{grid-template-columns:minmax(100px,1fr) 70px 70px 245px;gap:10px}}@media(max-width:650px){.game-list-head{display:none}.game-list-row{grid-template-columns:1fr auto}.game-list-actions{grid-column:1/-1}}
/* Keep game columns grouped at the left; creation timestamp follows actions. */
.compact-games{overflow-x:auto}
.game-list-head,.game-list-row{grid-template-columns:200px 100px 100px 270px minmax(180px,1fr);gap:20px;min-width:970px}
.game-list-row>.game-created{white-space:nowrap;color:#7a899a;font-size:12px}
@media(max-width:1050px){.game-list-head,.game-list-row{grid-template-columns:160px 80px 80px 250px minmax(180px,1fr);gap:14px;min-width:850px}}
@media(max-width:650px){.compact-games{overflow:visible}.game-list-head{display:none}.game-list-row{grid-template-columns:1fr auto;min-width:0;gap:10px}.game-list-row>.game-created{grid-column:1/-1}.game-created::before{content:'创建时间：'}.game-list-actions{grid-column:1/-1}}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;min-height:52px;padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid #dce3ea}.page-heading h1{font-size:25px;line-height:1.4;letter-spacing:-.5px;margin:0!important}.page-heading>button{margin:0 0 0 auto}.page-stats{margin:-3px 0 18px;font-size:12px;color:#738195}

/* Compact field editor and report mode choices. */
.field-config-panel{padding:20px 22px}.field-config-panel h2{font-size:16px;margin-bottom:14px}.field-config-panel .config-summary{margin:0 0 16px;padding:8px 12px}.report-modes{display:flex;align-items:center;gap:24px;flex-wrap:wrap;border:0;padding:0;margin:0 0 16px;min-width:0}.report-modes legend{float:left;margin-right:20px;padding:0;font-size:12px;line-height:24px;color:#65778c}.report-mode-option{display:flex;align-items:center;gap:6px;min-height:24px}.report-mode-option label{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:13px;cursor:pointer;color:#34485c}.report-mode-option input{margin:0;width:15px;height:15px;accent-color:#0b827e;cursor:pointer}.mode-help{position:relative;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:#a9b3be;color:white;font-size:10px;font-weight:700;cursor:help;outline-offset:3px}.mode-tooltip{display:none;position:absolute;left:-20px;top:23px;width:245px;padding:10px 12px;border-radius:5px;background:#223447;color:#fff;font-size:12px;font-weight:400;line-height:1.7;z-index:12;box-shadow:0 4px 14px #18283b20;pointer-events:none}.mode-help:hover .mode-tooltip,.mode-help:focus .mode-tooltip{display:block}.field-config-panel>label{margin-bottom:12px}.field-config-panel .schema-scroll{margin:12px 0}.field-config-panel .schema-scroll th{padding:8px;font-size:11px}.field-config-panel .schema-scroll td{padding:5px 8px}.field-config-panel .schema-scroll input:not([type=checkbox]){padding:6px 8px;height:31px;font-size:12px}.field-config-panel .schema-scroll input[type=number]{min-width:55px}.field-config-panel .schema-scroll td:nth-child(1){width:30%}.field-config-panel .schema-scroll td:nth-child(2){width:43%}.field-config-panel .schema-scroll td:nth-child(3){width:9%;text-align:center}.field-config-panel .schema-scroll td:nth-child(4){width:9%}.field-config-panel .schema-scroll td:nth-child(5){width:9%}.field-config-panel .hint{font-size:11px;margin:10px 0}.field-config-panel .wizard-actions{margin-top:14px;padding-top:14px}@media(max-width:650px){.field-config-panel{padding:16px}.report-modes{gap:20px}.report-modes legend{margin-right:8px}.mode-tooltip{left:-130px;width:220px}}
.field-picker{position:relative;display:flex;align-items:center;min-width:0}.field-config-panel .schema-scroll .field-picker>input{padding-right:30px}.field-picker-trigger{position:absolute;right:4px;top:50%;transform:translateY(-50%);border:1px solid #dde3e9!important;background:#f4f6f8!important;color:#8897a8!important;border-radius:3px;padding:0!important;width:20px;height:22px;font-size:12px}.field-picker-menu{position:fixed;overflow:auto;z-index:80;background:#fff;border:1px solid #d9e1e9;border-radius:5px;box-shadow:0 6px 22px #24344822;padding:5px 0}.field-picker-group{padding:8px 12px 4px;color:#8591a0;font-size:11px;font-weight:600}.field-picker-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;border:0;border-radius:0;background:#fff;padding:8px 12px;text-align:left;font-size:12px;color:#31475c}.field-picker-option:hover,.field-picker-option:focus-visible{background:#edf7f5;color:#087b77}.field-picker-option code{font-size:11px;color:#8794a4;white-space:nowrap}.field-picker-option>span{white-space:nowrap}
/* Field editor alignment and compact order numbers. */
.field-config-panel .schema-scroll th{text-align:center}
.field-config-panel .schema-scroll td:nth-child(4),.field-config-panel .schema-scroll td:nth-child(5){text-align:center}
.field-config-panel .schema-scroll td:nth-child(4) input[type=number]{width:48px;min-width:48px;max-width:48px;text-align:center;padding:5px 2px;appearance:textfield;-moz-appearance:textfield}
.field-config-panel .schema-scroll td:nth-child(4) input::-webkit-inner-spin-button,.field-config-panel .schema-scroll td:nth-child(4) input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* Four-column field configuration. */
.field-config-panel .schema-scroll td:nth-child(1){width:32%}
.field-config-panel .schema-scroll td:nth-child(2){width:48%;text-align:left}
.field-config-panel .schema-scroll td:nth-child(3){width:10%;text-align:center}
.field-config-panel .schema-scroll td:nth-child(4){width:10%;text-align:center}
.field-config-panel .schema-scroll td:nth-child(3) input[type=number]{width:48px;min-width:48px;max-width:48px;text-align:center;padding:5px 2px;appearance:textfield;-moz-appearance:textfield}
.field-config-panel .schema-scroll td:nth-child(3) input::-webkit-inner-spin-button,.field-config-panel .schema-scroll td:nth-child(3) input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* Order and drag handle precede field names. */
.field-config-panel .schema-scroll td:nth-child(1){width:100px;min-width:100px;text-align:center}
.field-config-panel .schema-scroll td:nth-child(2){width:32%;text-align:left}
.field-config-panel .schema-scroll td:nth-child(3){width:auto;text-align:left}
.field-config-panel .schema-scroll td:nth-child(4){width:75px;text-align:center}
.field-config-panel .schema-scroll td:nth-child(3) input:not([type=number]){width:100%;min-width:0;max-width:none;text-align:left}
.field-order-wrap{display:flex;align-items:center;justify-content:center;gap:8px}
.field-config-panel .schema-scroll .field-order-wrap input[type=number]{width:44px;min-width:44px;max-width:44px;text-align:center;padding:5px 2px;appearance:textfield;-moz-appearance:textfield}
.field-config-panel .schema-scroll .field-order-wrap input::-webkit-inner-spin-button,.field-config-panel .schema-scroll .field-order-wrap input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.field-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:20px;height:28px;color:#8192a3;font-size:22px;cursor:grab;touch-action:none;user-select:none;border-radius:3px}.field-drag-handle:hover,.field-drag-handle:focus-visible{color:#0b827e;background:#e9f5f2;outline:1px solid #9bd6ce}.field-drag-active,.field-drag-active .field-drag-handle{cursor:grabbing;user-select:none}.field-dragging td{opacity:.5;background:#f0f7f6}.field-drop-before td{box-shadow:inset 0 2px 0 #0b827e}.field-drop-after td{box-shadow:inset 0 -2px 0 #0b827e}
/* Aligned nested configuration list, with explicit disclosure control. */
.game-list-configs{padding:0 20px 16px;background:#f9fbfc;border-top:1px solid #e7edf2}
.game-list-configs:not([open]){display:block}
.game-list-configs[hidden]{display:none!important}
.config-list-head,.game-list-configs .game-report-row{display:grid;grid-template-columns:minmax(160px,1fr) 85px 90px 180px;align-items:center;gap:18px;width:100%;max-width:none;margin:0;padding:10px 14px}
.config-list-head{color:#8794a4;font-size:11px;border-bottom:1px solid #e4eaf0}
.game-list-configs .game-report-row{min-height:52px;border-top:0;border-bottom:1px solid #edf1f5;background:white}
.game-list-configs .game-report-row:last-child{border-bottom:0}
.config-list-name{font-size:12px;font-weight:500;color:#365269;overflow-wrap:anywhere}
.config-mode{font-size:11px;color:#507a75;background:#edf7f4;border:1px solid #d9ece6;padding:3px 7px;border-radius:4px;justify-self:start}
.config-count{font-size:12px;color:#748599}
.config-operations{display:flex;align-items:center;gap:8px}
.config-operations button{font-size:11px;padding:5px 9px;background:transparent;border-color:#dce5ed;color:#42617b}
.config-operations button.danger{color:#b33030;border-color:transparent;background:transparent}
.config-operations button.danger:hover{background:#fff0f0;border-color:#efcccc}
.game-list-row{min-height:68px}.game-list-actions button{padding:6px 10px;font-size:12px}
@media(max-width:650px){.game-list-configs{padding:0 10px 12px}.config-list-head{display:none}.game-list-configs .game-report-row{grid-template-columns:1fr auto;gap:8px;padding:12px}.config-list-name{grid-column:1/-1}.config-operations{grid-column:1/-1}.config-mode{grid-column:1}.config-count{grid-column:2;grid-row:2}}
.game-view-tabs{display:flex;gap:6px;border-bottom:1px solid #dce3ea;margin:0 0 18px;padding:0 0 0 2px}.game-view-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:11px 18px;color:#718296}.game-view-tabs button.active{color:#087b77;border-bottom-color:#0b827e;font-weight:600}.game-view-tabs button:hover{background:#e9f3f1}
#gameManagementNav>.page-heading{margin-bottom:7px;border:0;padding-bottom:4px}
#gameManagementNav:not([hidden])~#workspace>.page-heading h1{display:none}
#gameManagementNav:not([hidden])~#workspace>.page-heading{min-height:0;border:0;padding:0;margin:0 0 16px}
#gameManagementNav:not([hidden])~#dashboard>.page-heading{display:none}
#gameManagementNav:not([hidden])~#dashboard>.page-stats{margin:0 0 15px}
@media(max-width:650px){.game-view-tabs button{flex:1;padding:10px;font-size:12px}}
/* Fluid five-column game list. */
.compact-games{width:100%;overflow:visible}
.compact-games .game-list-head,.compact-games .game-list-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;min-width:0;gap:12px;padding:14px 18px;text-align:center;align-items:center}
.compact-games .game-list-head>*,.compact-games .game-list-row>*{min-width:0;grid-column:auto;grid-row:auto;overflow-wrap:anywhere}
.compact-games .game-list-row>strong{text-align:center}
.compact-games .game-list-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;grid-column:auto}
.compact-games .game-list-row>.game-created{white-space:normal;text-align:center;line-height:1.6;grid-column:auto}
.compact-games .game-created::before{content:none}
@media(max-width:950px){.compact-games .game-list-head,.compact-games .game-list-row{gap:8px;padding:12px}.compact-games .game-list-actions button{font-size:11px;padding:6px 7px}}
@media(max-width:500px){.compact-games .game-list-head,.compact-games .game-list-row{gap:4px;padding:10px 5px}.compact-games .game-list-head{font-size:10px}.compact-games .game-list-row>strong,.compact-games .game-list-row>span{font-size:11px}.compact-games .game-list-actions button{font-size:10px;padding:5px 3px;max-width:100%;white-space:normal}.compact-games .game-list-row>.game-created{font-size:10px}}
/* Compact clickable game rows. */
.game-list-heading:empty{display:none}
#workspace>.game-list-heading{margin-bottom:8px!important;min-height:0!important}
.compact-games .game-list-head{padding-top:10px;padding-bottom:10px}
.compact-games .game-list-row{min-height:48px;padding-top:8px;padding-bottom:8px}
.game-row-link{cursor:pointer;transition:background .15s}
.game-row-link:hover{background:#f1f8f7}
.game-row-link:hover>strong{color:#087b77}
.game-row-link:focus-visible{outline:2px solid #55b6aa;outline-offset:-2px}
.game-row-link .game-list-actions{cursor:default}
.game-row-link .game-list-actions button{padding:5px 9px}
/* Compact breadcrumb header. */
#gameManagementNav>.page-heading{min-height:44px;margin:0 -32px 12px;padding:0 24px;background:#fff;border-bottom:1px solid #e1e7ed;flex-wrap:nowrap}
.game-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;font-size:12px;color:#52677d;padding:9px 0}
.game-breadcrumb button{padding:0;border:0;background:transparent;color:#42617b;font-size:12px}.game-breadcrumb button:hover{color:#087b77}.breadcrumb-divider{color:#bcc7d2}.game-breadcrumb>span:last-child{color:#183b50;font-weight:600}
#topAddGame{font-size:12px;padding:6px 11px;flex-shrink:0}
#gameManagementNav{position:relative}.back-game-list{display:inline-block;padding:5px 9px;border:0;background:transparent;color:#526e83;font-size:12px;margin:0 0 7px}
.authenticated main{padding-top:0}.game-view-tabs{margin-bottom:12px;padding-bottom:0}.game-view-tabs button{padding-top:10px;padding-bottom:10px}
@media(max-width:1100px){#gameManagementNav>.page-heading{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}}
@media(max-width:650px){#gameManagementNav>.page-heading{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.game-breadcrumb{gap:6px;font-size:11px}.game-breadcrumb button{font-size:11px}}

/* One-line records toolbar. */
.records-view #backGameList,.records-view #gameManagementNav>.game-view-tabs,.records-view #stats{display:none!important}
.records-view #gameManagementNav{margin-bottom:14px}
.record-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;margin-bottom:16px}
.record-config-picker{display:flex;align-items:center;gap:9px;min-width:0}
.record-config-picker select{width:260px;min-width:120px;max-width:100%}
.record-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-left:auto;min-width:0}
.record-toolbar-actions .range-field{display:block;min-width:220px;max-width:430px}
.record-toolbar #rangeOpen{width:100%;min-height:36px;font-size:12px;padding:8px 10px}
.record-toolbar button,.record-toolbar select{min-height:36px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#reportConfigDialog{width:min(900px,94vw)}.config-dialog-table{overflow:auto}.config-dialog-table table{width:100%}.config-dialog-table th{text-align:left}
@media(max-width:1100px){.record-toolbar{flex-wrap:wrap;gap:12px}.record-config-picker{flex:1}.record-toolbar-actions{flex:1 1 auto;flex-wrap:wrap}.record-toolbar-actions .range-field{flex:1;min-width:200px}}
@media(max-width:600px){.record-toolbar{padding:12px}.record-config-picker{flex:1 1 100%}.record-config-picker select{flex:1;width:auto}.record-toolbar-actions{width:100%;gap:7px}.record-toolbar-actions .range-field{flex-basis:100%;max-width:none}.record-toolbar-actions>button{flex:1}}
#workspace>.page-heading:has(h1:only-child){margin:0!important;padding:0!important;min-height:0!important;border:0!important}
.record-config-picker select{min-width:160px}
.config-editor-actions{display:flex;justify-content:space-between;gap:12px;margin-top:14px}
.editable-config-fields table{min-width:620px}.editable-config-fields td:first-child{width:50px;text-align:center}.editable-config-fields td:nth-child(2){width:32%}.editable-config-fields td:nth-child(4){width:70px}.editable-config-fields td{padding:7px}
.editable-config-fields input{width:100%;min-width:0;font-size:12px;padding:7px 30px 7px 9px}.editable-config-fields input[readonly]{background:#f5f7f9;color:#6a7c8d}.editable-config-fields .field-picker-trigger{padding:0}.editable-config-fields button.danger{font-size:11px;padding:6px 9px}

.shared-field-editor.field-config-panel{padding:0}.shared-field-editor .schema-scroll{margin:12px 0}.shared-field-editor>label{max-width:720px}.shared-field-editor .shared-identity{width:100%}.config-editor-actions{justify-content:flex-end}.shared-field-editor .schema-scroll table{min-width:680px}.shared-field-editor td{overflow:visible}.field-picker-menu{overscroll-behavior:contain}#reportConfigDialog .field-picker-menu{position:fixed}#reportConfigDialog{overflow-x:hidden}
.report-modes{column-gap:20px}.report-modes .inline-identity{display:inline-flex;align-items:center;margin-left:-6px}.report-modes .inline-identity .shared-identity{width:150px;min-width:120px;height:30px;padding:4px 8px;font-size:12px;background:white}.report-modes legend{margin-right:10px}@media(max-width:500px){.report-modes{column-gap:12px;row-gap:10px}.report-modes .inline-identity .shared-identity{width:135px}}
.records .tablebar{justify-content:flex-end;padding:10px 18px;min-height:34px}
.pagination #resultCount{font-size:12px;font-weight:500;color:#60758b;white-space:nowrap;margin-right:0}
.filter-reset-cell{text-align:center!important}
#thead #resetColumns{padding:4px 7px;font-size:11px;min-height:27px;white-space:nowrap;font-weight:400;background:white}
@media(max-width:500px){.records .pagination{flex-wrap:wrap;gap:10px}}
.clipboard-transfer{position:fixed;top:0;left:0;width:2px;height:2px;padding:0;border:0;opacity:.01;pointer-events:none}.copy-status{font-size:12px;color:#42617b;line-height:1.7}.copy-status:empty{display:none}.manual-copy-area{display:block;width:100%;min-height:110px;padding:12px;border:1px solid #b9cddc;border-radius:5px;background:#fff;font:12px/1.7 Consolas,monospace;resize:vertical}
/* Compact record columns, retaining room for long IDs. */
.records .scroll table{width:100%;table-layout:auto}
.records .scroll th,.records .scroll td{padding-left:10px;padding-right:10px}
.records .scroll tbody td{padding-top:10px;padding-bottom:10px;max-width:260px}
.records .scroll .record-id{min-width:48px;width:48px}
.records .scroll .record-time{min-width:165px;width:165px}
.records .scroll .record-actions{min-width:90px;width:90px;text-align:center}
.records .scroll .column-filters th{padding:6px 8px}
.records .column-filters input{min-width:65px;max-width:none;width:100%;height:27px}
.records .scroll tbody td:last-child{text-align:center}
.records .scroll tbody button{padding:6px 9px;font-size:12px}
.records .scroll .role-id-column{width:100px;min-width:100px!important}
.records .scroll .role-id-cell{width:100px;max-width:120px}
.role-id-value{display:inline-block;max-width:90px;white-space:nowrap;color:#41637e;cursor:help;outline-offset:3px;vertical-align:middle}
.role-id-value:hover,.role-id-value:focus{color:#1686d9}
.role-id-tooltip{position:fixed;z-index:150;max-width:calc(100vw - 16px);padding:10px 12px;background:#30343b;color:white;border-radius:5px;box-shadow:0 3px 12px #17253522;font:12px/1.5 Consolas,"Microsoft YaHei",monospace;overflow-wrap:anywhere;pointer-events:none}
.role-id-tooltip::after{content:'';position:absolute;left:var(--tip-arrow-x,50%);transform:translateX(-50%);top:100%;border:6px solid transparent;border-top-color:#30343b}
.role-id-tooltip.tip-below::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#30343b}
/* Dense data viewport and inline copy affordances. */
.records .scroll tbody td{padding-top:5px;padding-bottom:5px;height:36px;line-height:20px}
.records .scroll tbody td>button{padding:3px 7px;min-height:25px;font-size:11px}
.quick-copy-cell{position:relative;padding-right:29px!important}
.quick-copy-content{display:inline-block;max-width:100%;overflow:hidden;vertical-align:middle;text-overflow:ellipsis}
.records .scroll tbody .quick-copy-button{position:absolute;right:6px;top:50%;transform:translateY(-50%);padding:0;border:0;background:transparent;color:#57a7c9;font-size:17px;width:20px;height:24px;min-height:0;opacity:0;cursor:pointer}
.quick-copy-cell:hover .quick-copy-button,.quick-copy-cell:focus-within .quick-copy-button{opacity:1}
.quick-copy-button:focus-visible{outline:2px solid #90c9d9;outline-offset:1px}
.table-copy-toast{position:fixed;top:65px;left:50%;transform:translateX(-50%);z-index:200;background:#203747;color:#fff;border-radius:5px;padding:9px 18px;font-size:12px;box-shadow:0 3px 15px #17253520}
#tableCopyDialog{width:min(500px,90vw)}#tableCopyDialog textarea{display:block;width:100%;min-height:90px;margin-bottom:14px}
.pagination #pageSize{padding:5px 8px;font-size:12px;min-height:29px}
.records-view{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.records-view.authenticated main{flex:1;min-height:0;min-width:0;width:100%;display:flex;flex-direction:column;padding-bottom:6px}
.records-view #gameManagementNav{flex-shrink:0;margin-bottom:8px}
.records-view #dashboard{flex:1;min-height:0;display:flex;flex-direction:column}
.records-view .record-toolbar{flex-shrink:0;margin-bottom:10px;padding:10px 14px}
.records-view .records{flex:1;min-height:0;display:flex;flex-direction:column}
.records-view .records .scroll{flex:1;min-height:0;max-height:none;overflow:auto}
.records-view .records #empty{flex:1;padding:28px 12px}
.records-view .records .pagination{flex-shrink:0;padding:8px 14px;gap:12px;min-height:44px}
.records-view #message{margin:0;font-size:12px;line-height:1.6;flex-shrink:0}.records-view #message:empty{display:none}
.records-view.authenticated footer{flex-shrink:0;margin:0 32px;padding:7px 0;font-size:10px}
@media(hover:none){.records .scroll tbody .quick-copy-button{opacity:1}}
@media(max-width:650px){.records-view #sidebar{flex-shrink:0}.records-view.authenticated footer{margin:0 14px;padding:5px 0}.records-view .records .pagination{gap:7px;flex-wrap:wrap;padding:6px 10px}.records-view .record-toolbar{padding:9px 10px}}
/* Half-width business columns; do not stretch them to fill the viewport. */
.records .scroll table{table-layout:fixed;max-width:none;min-width:0}
.records .scroll th,.records .scroll td{padding-left:6px;padding-right:6px;overflow:hidden;text-overflow:ellipsis}
.records .scroll th{font-size:11px}
.records .scroll .column-filters th{padding:5px 5px}
.records .column-filters input{min-width:0;width:100%;max-width:100%;padding-left:5px;padding-right:5px}
.records .scroll .role-id-column{width:75px;min-width:75px!important}
.records .scroll .role-id-cell{width:75px;max-width:75px}
.records .role-id-value{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.records .quick-copy-cell{padding-right:24px!important}
.records .quick-copy-content{max-width:100%;white-space:nowrap}
.records .scroll .record-actions{min-width:90px}
/* Creation-order number followed by the five evenly spaced game columns. */
.compact-games .game-list-head,.compact-games .game-list-row{grid-template-columns:52px repeat(5,minmax(0,1fr))}
.compact-games .game-number{font-variant-numeric:tabular-nums;color:#75889a}
@media(max-width:500px){.compact-games .game-list-head,.compact-games .game-list-row{grid-template-columns:30px repeat(5,minmax(0,1fr))}}
.records .scroll thead tr:first-child th{text-align:center}
.quick-copy-content:focus-visible{outline:1px solid #77bfb4;outline-offset:2px}
.role-id-tooltip{white-space:normal;overflow-wrap:anywhere}
.table-copy-toast{top:20px;background:#f0f9eb;color:#67a843;border:1px solid #e0efd7;padding:11px 18px;min-width:200px;display:flex;align-items:center;justify-content:flex-start;gap:9px;box-shadow:0 3px 12px #22334412;font-family:"Microsoft YaHei",sans-serif}
.copy-success-check{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;color:#fff;background:#6abd45;font-size:11px}
.records .scroll tbody .quick-copy-button{color:#7ab8e2;border-radius:3px;font-size:16px}
.records .scroll tbody .quick-copy-button:hover{color:#409eff;background:#eaf4ff}
/* Always-visible copy control, drawn without special font glyphs. */
.records .scroll tbody .quick-copy-button{opacity:1!important;display:inline-flex!important;align-items:center;justify-content:center;visibility:visible;right:4px;width:20px;height:24px;padding:0!important;z-index:1;color:#67a8ce;background:transparent;border:0}
.records .quick-copy-cell{padding-right:27px!important}
.copy-squares-icon{position:relative;display:block;width:12px;height:13px;pointer-events:none}
.copy-squares-icon::before,.copy-squares-icon::after{content:'';position:absolute;width:8px;height:9px;border:1px solid currentColor;border-radius:1px;box-sizing:border-box}
.copy-squares-icon::before{left:1px;top:1px}.copy-squares-icon::after{left:4px;top:4px;background:#fff}
.records .scroll tbody .quick-copy-button:hover{color:#1686d9;background:#edf6ff}
/* Reveal copy controls on cell hover or keyboard focus only. */
.records .scroll tbody .quick-copy-button{opacity:0!important;visibility:hidden;pointer-events:none}
.records .scroll tbody .quick-copy-cell:hover .quick-copy-button,.records .scroll tbody .quick-copy-cell:focus-within .quick-copy-button{opacity:1!important;visibility:visible;pointer-events:auto}
/* Video-style copy icon immediately follows the text. */
.records .quick-copy-cell{padding-right:6px!important}
.quick-copy-inline{display:inline-flex;align-items:center;gap:4px;max-width:100%;vertical-align:middle}
.quick-copy-inline .quick-copy-content{flex:0 1 auto;min-width:0}
.records .scroll tbody .quick-copy-inline .quick-copy-button{position:static;transform:none;flex:0 0 16px;width:16px;height:22px}
.quick-copy-cell:hover .quick-copy-content,.quick-copy-cell:focus-within .quick-copy-content{color:#409eff}
.records .scroll thead tr:first-child th{position:sticky;overflow:visible}
.column-resize-handle{position:absolute;top:0;bottom:0;right:-3px;width:7px;cursor:col-resize;z-index:6;touch-action:none;outline-offset:-2px}
.column-resize-handle::after{content:'';position:absolute;left:3px;top:8px;bottom:8px;width:1px;background:transparent}
.column-resize-handle:hover::after,.column-resize-handle:focus-visible::after{background:#0b827e;width:2px}
.resizing-columns,.resizing-columns *{cursor:col-resize!important;user-select:none!important}
.records .scroll .record-id,.records .scroll .record-time,.records .scroll .record-actions,.records .scroll .role-id-column{min-width:0!important;width:auto}
.records .scroll .role-id-cell{width:auto;max-width:none}
.records .scroll .column-filters input{min-width:0}
.records .scroll thead tr:first-child th{white-space:nowrap}
/* Shared footer position for every page. */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>header{flex-shrink:0}
body>main{flex:1 0 auto;width:100%;min-height:0}
body>footer{flex-shrink:0;margin-top:auto;padding:7px 0;line-height:1.6;font-size:10px;text-align:center}
.authenticated>main{min-height:0;flex:1 0 auto;padding-bottom:6px}
.authenticated>footer,.records-view.authenticated>footer{margin:0 32px;padding:7px 0;font-size:10px;text-align:center;border-top:1px solid #e1e7ed;line-height:1.6}
.records-view>main,.records-view.authenticated>main{flex:1 1 0;min-height:0}
@media(max-width:650px){.authenticated>footer,.records-view.authenticated>footer{margin:0 14px;padding:5px 0}.authenticated>#sidebar{flex-shrink:0}}
/* Visible column boundary markers. */
.column-resize-handle{right:0;width:9px}
.column-resize-handle::after{content:'|';left:0;top:50%;bottom:auto;transform:translateY(-50%);width:9px;height:20px;line-height:20px;text-align:center;font-size:15px;font-weight:400;color:#b9c5d0;background:transparent;pointer-events:none}
.column-resize-handle:hover::after,.column-resize-handle:focus-visible::after{width:9px;background:transparent;color:#0b827e;font-weight:700}

.compact-games .game-list-head,.compact-games .game-list-row{grid-template-columns:52px repeat(6,minmax(0,1fr))}.game-whitelist-cell button{font-size:12px;padding:6px 10px}#whitelistDialog{width:min(560px,94vw)}#whitelistAccounts{width:100%;min-height:230px;padding:12px;font:13px/1.8 Consolas,monospace;resize:vertical}#whitelistError{color:#b33030}.record-config-picker{flex-wrap:wrap}@media(max-width:500px){.compact-games .game-list-head,.compact-games .game-list-row{grid-template-columns:30px repeat(6,minmax(0,1fr))}}

/* Membership and storage summary */
.compact-games .game-list-head,.compact-games .game-list-row{grid-template-columns:48px repeat(7,minmax(0,1fr))}
#storageSize{margin-right:auto;font-size:12px;color:#60758b;white-space:nowrap}.member-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding:14px 18px;background:#fff;border-bottom:1px solid #e5eaf0}.member-heading h1{font-size:15px;margin:0}.member-table{width:100%;border-collapse:collapse}.member-table th,.member-table td{padding:12px;text-align:center;border-bottom:1px solid #e5eaf0}.member-table button{margin:3px}.member-dialog{width:min(480px,94vw)}.member-dialog form{display:grid;gap:14px}.member-dialog label{display:flex;align-items:center;gap:9px}.member-dialog input:not([type=checkbox]){flex:1;min-width:0}.member-games{display:grid;gap:9px;max-height:260px;overflow:auto}.member-error{color:#b33030}.member-dialog .range-actions{justify-content:flex-end}@media(max-width:650px){.compact-games{overflow:auto}.compact-games .game-list-head,.compact-games .game-list-row{min-width:780px}.member-table{font-size:12px}#storageSize{width:100%}}

/* Hide login-only navigation leakage and adapt optional whitelist column. */
#gameManagementNav[hidden]{display:none!important}.compact-games.without-whitelist .game-list-head,.compact-games.without-whitelist .game-list-row{grid-template-columns:48px repeat(6,minmax(0,1fr))}.member-table td:first-child,.member-table th:first-child{width:60px}.member-table td:nth-child(4),.member-table th:nth-child(4){width:80px}

/* Per-configuration data column editor. */
.columns-dialog{width:min(900px,94vw);max-height:88vh;padding:22px}.columns-dialog .detailhead h2{font-size:18px}.columns-intro{font-size:13px;color:#6b7d90}.columns-editor-body{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:20px;max-height:55vh}.columns-available,.columns-selected{border:1px solid #e3eaf0;border-radius:7px;background:#fff;padding:16px;overflow:auto}.columns-select-tools{display:flex;align-items:center;gap:10px;margin-bottom:18px}.columns-select-tools strong{margin-right:auto}.columns-select-tools button{padding:4px 9px;font-size:12px}.columns-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}.columns-checks label{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0;cursor:pointer}.columns-checks label span{overflow-wrap:anywhere}.columns-checks input{width:14px;height:14px;min-height:0;margin:0;accent-color:#087f7d;flex-shrink:0}.columns-checks .is-checked{color:#087f7d}.columns-order-hint{font-size:12px;color:#8795a5;margin:7px 0 13px}.columns-order-list{margin:0;padding:0;list-style:none;display:grid;gap:9px}.column-order-item{display:flex;align-items:center;gap:9px;background:#f3f5f8;border:1px solid transparent;border-radius:5px;padding:7px 8px;min-width:0}.column-order-item>span{flex:1;font-size:13px;overflow-wrap:anywhere}.column-order-handle{cursor:grab;border:0;background:transparent;padding:2px 4px;touch-action:none}.column-order-handle:active{cursor:grabbing}.column-remove{border:0;background:transparent;color:#8b99a8;padding:2px 5px;font-size:18px}.column-remove:hover{color:#be3f3f}.column-order-item.dragging{opacity:.45}.column-order-item.drop-target{border-color:#088581;background:#e8f5f3}.columns-error{font-size:13px;color:#bd3d3d}.columns-none{font-size:13px;color:#7a899b;line-height:1.8}.columns-dialog .range-actions{margin-top:18px}.columns-dialog .range-actions button:first-child{margin-right:auto}@media(max-width:600px){.columns-editor-body{grid-template-columns:1fr;max-height:60vh;overflow:auto}.columns-available,.columns-selected{overflow:visible}.columns-dialog{padding:15px}.columns-checks{gap:12px}}

.member-table tr[hidden]{display:none!important}.member-parent-row{cursor:pointer}.member-parent-row:hover{background:#f1f8f8}.member-parent-row:focus-visible{outline:2px solid #168b85;outline-offset:-2px}.member-expand-arrow{display:inline-block;width:18px;color:#188981;text-align:center;margin-left:-18px}.member-child-count{display:inline-block;padding:1px 6px;margin-left:8px;background:#edf3f6;border-radius:8px;color:#7b8e9d;font-size:11px}.member-child-row{background:#f7fafb}.member-child-row td:nth-child(2){padding-left:30px}.member-child-marker{margin-right:10px;color:#8baba8}

.app-notice{z-index:10000;max-width:min(700px,calc(100vw - 32px));line-height:1.6;white-space:normal}.app-notice .copy-success-check{flex-shrink:0}.app-notice.notice-error{background:#fff1f0;border-color:#f3d7d5;color:#c14c43}.app-notice.notice-error .copy-success-check{background:#d66a61}#message:empty{display:none}

/* UI 58: match member/game page bars; keep primary labels readable. */
#workspace>.member-heading{min-height:44px;height:44px;margin:0 -32px 12px;padding:0 24px;background:#fff;border-bottom:1px solid #e1e7ed;gap:18px;flex-wrap:nowrap}
#workspace>.member-heading h1{font-size:12px;font-weight:500;color:#42617b;line-height:1.4;margin:0}
#workspace>.member-heading>button{font-size:12px;padding:6px 11px;flex-shrink:0}
button.primary,button.primary:hover,button.primary:focus-visible,button.primary:active{color:#fff}
button.primary{background:#0b827e;border-color:#0b827e}
button.primary:hover:not(:disabled){background:#096d69;border-color:#096d69;color:#fff}
button.primary:focus-visible{outline:2px solid #65bfb7;outline-offset:2px;background:#096d69;border-color:#096d69}
button.primary:active:not(:disabled){background:#075b58;border-color:#075b58;color:#fff}
@media(max-width:1100px){#workspace>.member-heading{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}}
@media(max-width:650px){#workspace>.member-heading{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}}

/* Keep the mode row steady while the identity selector appears. */
.report-modes{min-height:32px;align-items:center}.report-mode-option,.report-modes legend{min-height:32px;line-height:32px}.report-modes .inline-identity{height:32px;align-items:center}.report-modes input[type=radio]{min-height:15px;padding:0}.schema-scroll td.field-accumulate{width:65px;text-align:center}.field-accumulate input[type=checkbox]{width:15px;height:15px;min-height:15px;padding:0;accent-color:#0b827e}

/* UI 61: selection changes never resize the column editor. */
#columnEditorDialog{width:min(900px,94vw);height:min(660px,calc(100vh - 32px));max-height:calc(100vh - 32px);padding:22px;overflow:hidden;box-sizing:border-box}
#columnEditorDialog[open]{display:flex;flex-direction:column;gap:12px}
#columnEditorDialog>.detailhead{flex:0 0 auto;min-height:38px;gap:12px}
#columnEditorDialog .detailhead h2{margin:0;font-size:18px}
#columnEditorDialog>.columns-intro{flex:0 0 auto;margin:0;line-height:1.7}
#columnEditorDialog>.columns-editor-body{flex:1 1 0;min-height:0;max-height:none;overflow:hidden;grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);grid-template-rows:minmax(0,1fr);gap:16px}
#columnEditorDialog .columns-available,#columnEditorDialog .columns-selected{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;padding:16px}
#columnEditorDialog .columns-select-tools{flex:0 0 auto;margin:0 0 14px;gap:8px;min-height:28px}
#columnEditorDialog .columns-checks{flex:1 1 0;min-height:0;overflow:auto;align-content:start;gap:8px 12px;padding:0 4px 0 0;scrollbar-gutter:stable}
#columnEditorDialog .columns-checks label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;margin:0;padding:7px 6px;min-height:34px;border-radius:4px;font-size:13px;line-height:1.5}
#columnEditorDialog .columns-checks label:hover{background:#f1f7f7}
#columnEditorDialog .columns-checks label span{min-width:0;overflow-wrap:anywhere}
#columnEditorDialog .columns-selected>strong,#columnEditorDialog .columns-order-hint{flex:0 0 auto}
#columnEditorDialog .columns-order-hint{margin:7px 0 12px}
#columnEditorDialog .columns-order-list{display:flex;flex-direction:column;gap:8px;flex:1 1 0;min-height:0;overflow:auto;padding-right:4px;scrollbar-gutter:stable}
#columnEditorDialog .column-order-item{flex:0 0 auto;min-height:38px;padding:6px 8px}
#columnEditorDialog .columns-none{margin:0;padding:8px 0;line-height:1.8}
#columnEditorDialog>.columns-error:empty{display:none}
#columnEditorDialog>.range-actions{flex:0 0 auto;margin:0;padding-top:4px;gap:10px}
@media(max-width:600px){#columnEditorDialog{width:calc(100vw - 24px);height:calc(100vh - 24px);max-height:calc(100vh - 24px);padding:15px}#columnEditorDialog>.columns-editor-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:12px}#columnEditorDialog .columns-available,#columnEditorDialog .columns-selected{padding:12px}#columnEditorDialog .columns-checks{gap:4px 10px}#columnEditorDialog .columns-select-tools{margin-bottom:8px}#columnEditorDialog .columns-order-hint{margin:4px 0 8px}}

/* Optional numeric sorting on data headers, separate from column resizing. */
.schema-scroll td.field-sortable{width:60px;text-align:center}.field-sortable input[type=checkbox]{width:15px;height:15px;min-height:15px;padding:0;accent-color:#0b827e}
.records .scroll th .field-sort-controls{display:inline-flex;flex-direction:column;vertical-align:middle;width:14px;height:22px;margin-left:5px;position:relative;z-index:2;line-height:0}
.records .scroll th .field-sort-arrow{display:flex;align-items:center;justify-content:center;width:14px;height:11px;min-height:0;padding:0;margin:0;border:0;border-radius:2px;background:transparent;cursor:pointer}
.field-sort-arrow span{display:block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent}.sort-asc span{border-bottom:5px solid #c2c9d1}.sort-desc span{border-top:5px solid #c2c9d1}.sort-asc.active span,.sort-asc:hover span{border-bottom-color:#409eff}.sort-desc.active span,.sort-desc:hover span{border-top-color:#409eff}.field-sort-arrow:focus-visible{outline:2px solid #80bbef;outline-offset:1px}

.member-presence-filters{display:flex;align-items:center;gap:8px;margin:0 0 12px}.member-presence-filters button{padding:6px 12px;font-size:12px}.member-presence-filters button.active{color:#087f79;border-color:#7abdb5;background:#edf8f5}.member-presence-filters button:last-child{margin-left:auto}.member-online{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}.member-online:before{content:'';width:7px;height:7px;border-radius:50%;background:#aab5c0}.member-online.is-online{color:#329767}.member-online.is-online:before{background:#42b983}.member-online.is-offline{color:#8995a3}.member-table{white-space:nowrap}

.whitelist-permission{display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-size:12px;color:#8794a1;cursor:pointer}.whitelist-permission input[type=checkbox]{width:15px;height:15px;min-height:15px;padding:0;margin:0;accent-color:#0b827e;cursor:pointer}.whitelist-permission>span{display:inline-block;width:4em;line-height:20px;text-align:left;white-space:nowrap}.whitelist-permission input:disabled{cursor:wait}.whitelist-permission.enabled{color:#168b75}.member-table .member-actions{text-align:center;overflow:visible}.member-action-buttons{display:inline-grid;grid-template-columns:76px 76px 50px;align-items:center;gap:6px;min-height:37px;vertical-align:middle}.member-table .member-action-buttons button{margin:0}

.member-dialog{width:min(500px,calc(100vw - 32px));max-height:85vh;padding:24px;border:1px solid #e0e8ed;border-radius:12px;box-shadow:0 20px 70px #18283b26}.member-dialog::backdrop{background:#14283b66}.member-dialog form{gap:18px;min-width:0}.member-dialog h2{margin:0;padding:0 0 18px;border-bottom:1px solid #e8eef2;text-align:center;font-size:18px;font-weight:600;line-height:1.5;color:#263c50;overflow-wrap:anywhere}.member-dialog form>p{margin:0;font-size:12px;line-height:1.8}.member-dialog .member-form-field{flex-direction:column;align-items:stretch;gap:8px;font-size:13px;font-weight:500;color:#536278}.member-dialog .member-form-field input{width:100%;height:40px;flex:none;padding:9px 12px;border-radius:6px;background:#fbfcfd}.member-dialog .member-form-field input:focus{background:#fff}.member-dialog .member-games{gap:8px;max-height:min(38vh,300px);padding:2px;overscroll-behavior:contain}.member-dialog .member-games label{flex-direction:row;align-items:center;padding:11px 12px;border:1px solid #e2e9ee;border-radius:6px;background:#fbfcfd;color:#465b6f;font-size:13px;line-height:1.6;overflow-wrap:anywhere;cursor:pointer}.member-dialog .member-games label:hover{border-color:#9fcfc7;background:#f4faf8}.member-dialog .member-games label:has(input:checked){border-color:#8ac8bc;background:#edf8f4;color:#137f72}.member-dialog input[type=checkbox]{flex-shrink:0;width:15px;height:15px;min-height:15px;margin:0;padding:0;accent-color:#0b827e;cursor:pointer}.member-dialog .member-games>p{text-align:center;padding:24px 12px;margin:0;border:1px dashed #dce5eb;border-radius:6px;background:#f8fafc}.member-dialog .member-error:empty{display:none}.member-dialog .range-actions{margin-top:2px;padding-top:18px;border-top:1px solid #e8eef2;gap:10px}.member-dialog .range-actions button{min-width:86px;height:38px;border-radius:6px}.member-dialog .range-actions button:focus-visible{outline:2px solid #86c7b7;outline-offset:2px}@media(max-width:480px){.member-dialog{padding:20px}.member-dialog h2{font-size:16px}.member-dialog .range-actions button{flex:1}}

/* Anchored date and time range picker. */
#rangeDialog{position:fixed;inset:auto;margin:0;width:min(646px,calc(100vw - 24px));height:436px;max-height:calc(100dvh - 24px);overflow:auto;padding:12px;background:#fff;border:1px solid #dfe5ec;border-radius:5px;box-shadow:0 3px 16px #18283b24;color:#536278;font-size:12px}#rangeDialog::backdrop{background:transparent;pointer-events:none}#rangeDialog .range-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}#rangeDialog .range-panels>section{min-width:0;padding:0 12px 10px;border:0;border-radius:0}#rangeDialog .range-panels>section+section{border-left:1px solid #e5eaf0}#rangeDialog .range-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;padding-bottom:10px;border-bottom:1px solid #e8edf1}#rangeDialog .range-inputs input{width:100%;min-width:0;height:32px;padding:5px 8px;border:1px solid #d9e0e8;border-radius:4px;background:#fff;font-size:12px;color:#536278}#rangeDialog .range-inputs input::placeholder{color:#a6afb9}#rangeDialog .monthbar{position:relative;display:flex;align-items:center;justify-content:center;height:42px;margin:8px 0 0;padding:0 52px}#rangeDialog .range-month-title{white-space:nowrap;font-size:14px;font-weight:600;color:#526173}#rangeDialog .range-month-navigation{position:absolute;left:0;display:flex;gap:0}#rangeDialog section+section .range-month-navigation{left:auto;right:0}#rangeDialog .range-month-navigation button{width:23px;height:28px;min-height:0;padding:0;border:0;background:transparent;color:#8895a3;font-size:19px}#rangeDialog .range-month-navigation button:hover{color:#0b827e;background:#edf8f5}#rangeDialog .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 0}#rangeDialog .calendar-grid>span{padding:8px 0;color:#84919d;border-bottom:1px solid #edf0f4}#rangeDialog .calendar-grid button{height:30px;min-width:0;padding:0;border:0;border-radius:0;background:transparent;font-size:12px;font-weight:400;color:#536278}#rangeDialog .calendar-grid button.other-month{color:#bcc4cc}#rangeDialog .calendar-grid button.range-today{color:#0b827e;font-weight:700}#rangeDialog .calendar-grid button.in-range{background:#eaf6f2}#rangeDialog .calendar-grid button:hover{background:#edf8f5;color:#087b77}#rangeDialog .calendar-grid button.selected-day{border-radius:4px;background:#0b827e;color:#fff}#rangeDialog button:focus-visible{outline:2px solid #86c7b7;outline-offset:-2px}#rangeDialog .range-actions{gap:6px;margin:0;padding-top:8px;border-top:1px solid #e5eaf0}#rangeDialog .range-actions button{height:30px;min-width:54px;padding:4px 10px;font-size:12px;border-radius:4px}#rangeClear{color:#0b827e;border-color:transparent}#rangeError{min-height:30px;margin:0;padding:5px 10px;font-size:12px;line-height:20px}#rangeError:empty{display:block;visibility:hidden}#rangeOpen[aria-expanded=true]{border-color:#0b827e;box-shadow:0 0 0 1px #0b827e22}@media(max-width:560px){#rangeDialog{padding:10px}#rangeDialog .range-panels{grid-template-columns:1fr}#rangeDialog .range-panels>section{padding:0 4px 10px}#rangeDialog .range-panels>section+section{padding-top:10px;border-left:0;border-top:1px solid #e5eaf0}#rangeDialog .calendar-grid button{height:28px}}
.range-field{position:relative}.range-field #rangeQuickClear{position:absolute;top:50%;right:5px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:0;padding:0;border:0;border-radius:50%;background:#fff;color:#a5afb9;font-size:20px;line-height:1;opacity:0;pointer-events:none}.range-field.has-range:hover #rangeQuickClear,.range-field.has-range:focus-within #rangeQuickClear{opacity:1;pointer-events:auto}.range-field.has-range:hover #rangeOpen>span:last-child,.range-field.has-range:focus-within #rangeOpen>span:last-child{opacity:0}.range-field #rangeQuickClear:hover{background:#eff6f4;color:#0b827e}.range-field #rangeQuickClear:focus-visible{outline:2px solid #86c7b7;outline-offset:0}@media(hover:none){.range-field.has-range #rangeQuickClear{opacity:1;pointer-events:auto}.range-field.has-range #rangeOpen>span:last-child{opacity:0}}
/* Keep configuration administration separate from record actions. */
.record-toolbar{justify-content:flex-start;gap:12px;flex-wrap:wrap}.record-config-picker{flex:0 1 240px}.record-config-picker #report{width:100%;min-width:160px}.record-toolbar-actions{justify-content:flex-start;margin-left:0;flex:0 1 auto;flex-wrap:wrap}.record-config-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-left:auto;padding-left:18px;border-left:1px solid #e5eaf0}.record-toolbar-actions .range-field{flex:0 1 auto}.record-toolbar-actions #clear{margin-left:3px}.record-toolbar .record-config-actions button{flex:none}@media(max-width:1100px){.record-toolbar .record-config-picker{flex:0 1 220px}.record-toolbar .record-toolbar-actions{flex:1 1 420px}.record-config-actions{margin-left:auto}}@media(max-width:600px){.record-toolbar .record-config-picker{flex:1 1 100%}.record-toolbar .record-toolbar-actions{flex:1 1 100%}.record-toolbar .record-toolbar-actions .range-field{flex:1 1 100%}.record-config-actions{width:100%;padding:10px 0 0;border-left:0;border-top:1px solid #e5eaf0}}

/* Consistent dialog headings, controls and spacing. */
dialog{max-width:calc(100vw - 32px);max-height:85dvh;padding:24px;border:1px solid #e0e8ed;border-radius:12px;background:#fff;box-shadow:0 20px 70px #18283b26}dialog::backdrop{background:#14283b66}dialog .detailhead{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:10px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e8eef2}dialog .detailhead>h2,#columnEditorDialog .detailhead>h2{grid-column:2;grid-row:1;margin:0;padding:0;text-align:center;font-size:18px;font-weight:600;line-height:1.5;color:#263c50;overflow-wrap:anywhere}dialog .detailhead>button{grid-column:3;grid-row:1;justify-self:end;padding:6px 10px;font-size:12px}dialog>h2,dialog>form>h2{text-align:center}dialog .range-actions{padding-top:16px;border-top:1px solid #e8eef2;gap:10px}dialog .range-actions button{min-width:76px;min-height:36px;border-radius:6px}dialog textarea{width:100%;padding:12px;border:1px solid #d9e0e8;border-radius:6px;background:#fbfcfd;font:13px/1.7 Consolas,"Microsoft YaHei",monospace;color:#34485c;resize:vertical}dialog textarea:focus{outline:2px solid #86c7b7;outline-offset:1px}dialog pre{border:1px solid #e5ebf0;border-radius:6px;background:#f7f9fb;line-height:1.7}#whitelistError:empty,.columns-error:empty{display:none}.member-dialog .member-form-field input::placeholder{font-size:12px;font-weight:400;color:#9aa8b5}@media(max-width:480px){dialog{padding:18px}dialog .detailhead{grid-template-columns:52px minmax(0,1fr) 52px;gap:6px}dialog .detailhead>h2,#columnEditorDialog .detailhead>h2{font-size:16px}dialog .range-actions{flex-wrap:wrap}}
/* Stable range field and panel dimensions in empty, selected and validation states. */
.record-toolbar .record-toolbar-actions .range-field{flex:0 0 360px;width:360px;min-width:0;max-width:100%}#rangeOpen>span:first-child,#rangeOpen>span:last-child{flex-shrink:0}#rangeSummary{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#rangeDialog:popover-open{display:grid;grid-template-rows:minmax(0,1fr) 30px auto}#rangeDialog .range-panels{min-height:0;overflow:auto;align-content:start;scrollbar-gutter:stable}#rangeError{height:30px;min-height:0;overflow:auto}#rangeDialog .range-actions{align-self:end}@media(max-width:600px){.record-toolbar .record-toolbar-actions .range-field{flex:1 1 100%;width:100%}}@media(max-width:560px){#rangeDialog{height:736px}}

/* Keep member headings stable as presence filters change visible rows. */
html{scrollbar-gutter:stable}.member-table-wrap{width:100%;overflow-x:auto;border:1px solid #e0e6ed;border-radius:6px;background:#fff}.member-table-wrap .member-table{table-layout:fixed;width:100%;min-width:840px;border:0;border-radius:0}.member-table-wrap .member-table-admin{min-width:1240px}.member-table-wrap .member-table th,.member-table-wrap .member-table td{overflow:hidden;text-overflow:ellipsis}.member-table-wrap .member-table .member-actions{overflow:visible}.member-table-wrap:focus-visible{outline:2px solid #86c7b7;outline-offset:2px}.member-presence-filters button:not(:last-child){min-width:80px;font-variant-numeric:tabular-nums}
