/* CardScope · local-first high-fidelity prototype */

:root {
  color-scheme: dark;
  --bg: #101a2a;
  --surface: #162234;
  --surface-raised: #1a293e;
  --surface-hover: #1b2c42;
  --input: #111d2e;
  --ink: #ecf1f8;
  --muted: #8b9db5;
  --sub: #aabbd0;
  --line: #28374c;
  --line-soft: #223146;
  --gold: #e7c58c;
  --gold-hover: #f0d6aa;
  --gold-soft: #e7c58c12;
  --green: #70d5b3;
  --green-dark: #a0e6cc;
  --mint: #70d5b31a;
  --mint-light: #70d5b30b;
  --nav: #0d1522;
  --orange: #e1b476;
  --orange-bg: #e1b47612;
  --red: #f39191;
  --red-bg: #f3919112;
  --blue: #8db8ee;
  --blue-bg: #8db8ee13;
  --purple: #b6a8e0;
  --radius: 12px;
  --shadow: 0 18px 55px #03081340;
  --nav-width: 224px;
}


*{box-sizing:border-box}
html,body{margin:0;min-height:100%;scroll-behavior:smooth}
body{font:13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit}
button:disabled{cursor:not-allowed;opacity:.42}
a{color:inherit;text-decoration:none}
button,input,select,textarea{outline:none}
button:focus-visible,a:focus-visible{outline:3px solid #3a506c;outline-offset:3px}
input:focus,select:focus,textarea:focus{border-color:#3a506c!important;box-shadow:0 0 0 3px #02071110!important}
input[type=checkbox],input[type=radio]{accent-color:var(--green);width:15px;height:15px;margin:0;cursor:pointer;flex-shrink:0}
button svg{pointer-events:none}
button{border:0;background:none}
h1,h2,h3,h4,p{margin:0}
h1{font-size:27px;line-height:1.4;letter-spacing:-.7px;font-weight:670}
h2{font-size:16px;font-weight:650;letter-spacing:-.3px}
h3{font-size:14px;font-weight:650}
h4{font-size:13px;font-weight:600}
.icon{vertical-align:middle;flex-shrink:0}
.muted{color:var(--muted)}
.subtle{color:var(--sub)}
.small{font-size:12px}
.tiny{font-size:11px}
.mono{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-variant-numeric:tabular-nums;letter-spacing:.05px}
.green{color:var(--green)}
.orange{color:var(--orange)}
.red{color:var(--red)}
.blue{color:var(--blue)}
.strong{font-weight:650}
.nowrap{white-space:nowrap}
.line-clamp{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flex{display:flex;align-items:center}
.between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gap4{gap:4px}
.gap6{gap:6px}
.gap8{gap:8px}
.gap10{gap:10px}
.gap12{gap:12px}
.gap16{gap:16px}
.wrap{flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:12px}
.mt4{margin-top:4px}
.mt8{margin-top:8px}
.mt12{margin-top:12px}
.mt16{margin-top:16px}
.mt20{margin-top:20px}
.mt24{margin-top:24px}
.mb16{margin-bottom:16px}
.grow{flex:1;min-width:0}
.right{text-align:right}
.hidden{display:none!important}
.break{overflow-wrap:anywhere}
.divider{height:1px;background:var(--line);margin:20px 0}
.empty{padding:52px 24px;text-align:center;color:var(--sub)}
.empty-icon{display:flex;margin:0 auto 14px;width:52px;height:52px;border-radius:16px;background:var(--bg);align-items:center;justify-content:center;color:var(--muted)}
.empty h3{color:var(--ink);margin-bottom:6px}
.code{padding:2px 6px;background:#131f30;border-radius:5px;font-family:monospace}
.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}

/* App shell */
.sidebar{width:var(--nav-width);position:fixed;inset:0 auto 0 0;background:var(--nav);color:#9aadc5;z-index:40;display:flex;flex-direction:column;padding:30px 17px 16px;overflow-y:auto}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px 29px}
.brand-mark{position:relative;width:34px;height:37px;display:flex;align-items:center;justify-content:center;color:#e5edf8;flex-shrink:0}
.brand-mark:before,.brand-mark:after{content:"";position:absolute;width:22px;height:29px;border:1.5px solid #26364c;border-radius:5px;transform:rotate(-18deg);left:1px;top:5px}
.brand-mark:after{transform:rotate(8deg);left:9px;top:1px;background:var(--nav)}
.brand-mark span{z-index:1;font-size:22px;line-height:1;transform:translate(4px,-2px)}
.brand-word{font-size:21px;letter-spacing:-.5px;color:#e5edf8;font-weight:650;line-height:1.25}
.brand-caption{font-size:10px;letter-spacing:2px;color:#9aadc5;margin-top:3px}
.nav-group{margin-top:19px}
.nav-group:first-of-type{margin-top:0}
.nav-label{font-size:10px;color:#bdcadd;letter-spacing:1.2px;padding:0 15px;margin-bottom:10px}
.nav-item{height:44px;display:flex;align-items:center;gap:12px;border-radius:8px;margin:5px 0;padding:0 14px;color:#9aadc5;font-size:13px;transition:all .16s;position:relative}
.nav-item:hover{background:#16223409;color:#e5edf8}
.nav-item.active{background:#131f30;color:#ecf1f8;font-weight:650;box-shadow:0 3px 10px #0207110a}
.nav-item.active .icon{stroke-width:1.8}
.nav-badge{margin-left:auto;min-width:21px;text-align:center;border-radius:5px;background:#16223413;color:#8498b3;font-size:10px;padding:0 5px;line-height:20px}
.nav-item.active .nav-badge{background:#16283d1a;color:#ecf1f8}
.nav-dot{width:6px;height:6px;background:#31445e;border-radius:50%;margin-left:auto;box-shadow:0 0 0 4px #7d95b512}
.sidebar-spacer{flex:1;min-height:32px}
.sidebar-note{margin:24px 2px 18px;padding:15px 13px;border:1px solid #273c5538;border-radius:10px;background:linear-gradient(135deg,#131f3009,#16223402)}
.sidebar-note .note-icon{color:#8498b3;margin-bottom:9px}
.sidebar-note h4{color:#e5edf8;font-size:11px;letter-spacing:.3px}
.sidebar-note p{color:#9aadc5;font-size:10px;line-height:1.85;margin-top:4px}
.sidebar-note .note-link{margin-top:10px;color:#8498b3;font-size:10px;display:flex;align-items:center;gap:5px;padding:0}
.server-status{display:flex;gap:8px;align-items:center;color:#9aadc5;padding:12px 9px 17px;border-bottom:1px solid #26364c12;font-size:10px}
.server-status span:last-child{margin-left:auto;color:#9aadc5;font-family:monospace}
.profile{display:flex;align-items:center;gap:10px;width:100%;padding:16px 6px 0;text-align:left;color:#8498b3}
.profile .avatar{width:32px;height:32px;font-size:12px;background:#16283d;color:#e5edf8;border:1px solid #273c5555}
.profile-name{font-size:11px;color:#e5edf8;line-height:1.5}
.profile-role{font-size:9px;color:#9aadc5}
.workspace{margin-left:var(--nav-width);min-height:100vh}
.topbar{height:73px;background:#162234;border-bottom:1px solid var(--line);padding:0 31px;display:flex;align-items:center;gap:22px;position:sticky;top:0;z-index:30}
.breadcrumb{display:flex;gap:10px;align-items:center;white-space:nowrap;color:var(--sub);font-size:11px}
.breadcrumb .icon{color:#9aadc5}
.breadcrumb strong{color:var(--ink);font-weight:550}
.global-search{height:34px;border:1px solid #26364c;background:#162234;display:flex;align-items:center;gap:8px;border-radius:7px;padding:0 10px;color:#9aadc5;font-size:11px;width:240px;margin-left:auto;text-align:left}
.global-search kbd{margin-left:auto;border:1px solid #26364c;border-radius:4px;background:#162234;padding:0 4px;font-size:9px;line-height:19px;color:#9aadc5;font-family:inherit}
.top-divider{width:1px;height:20px;background:var(--line)}
.top-clock{font-size:11px;color:var(--sub);font-variant-numeric:tabular-nums}
.top-live{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--green);white-space:nowrap}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:7px;padding:0;color:var(--sub);position:relative;transition:.16s}
.icon-btn:hover{background:#131f30;color:var(--green)}
.icon-btn.danger:hover{background:var(--red-bg);color:var(--red)}
.icon-btn .notification-dot{position:absolute;right:6px;top:4px;width:5px;height:5px;background:#263b54;border-radius:50%;border:1px solid #26364c}
.top-demo{font-size:9px;line-height:22px;padding:0 7px;border:1px solid #26364c;background:#131f30;color:#bdcadd;border-radius:5px;white-space:nowrap}
.main{padding:29px 31px 26px;max-width:1720px;margin:auto}
.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px;min-height:75px}
.eyebrow{font-size:9px;letter-spacing:1.65px;color:#9aadc5;margin-bottom:6px;font-weight:550}
.page-subtitle{font-size:12px;color:#bdcadd;margin-top:7px}
.page-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #26364c;background:#162234;border-radius:7px;min-height:35px;padding:7px 12px;font-size:11px;font-weight:520;line-height:1.5;white-space:nowrap;transition:background .16s,box-shadow .16s,transform .16s}
.btn:hover{background:#162234;border-color:#3a506c}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--green);border-color:var(--green);color:#e5edf8;box-shadow:0 3px 5px #02071110}
.btn.primary:hover{background:var(--green-dark)}
.btn.soft{background:#131f30;border-color:#26364c;color:var(--green)}
.btn.danger{background:var(--red);border-color:var(--red);color:#e5edf8}
.btn.danger-outline{border-color:#3a506c;color:var(--red)}
.btn.sm{min-height:28px;padding:4px 9px;font-size:10px;border-radius:6px}
.btn.lg{min-height:41px;padding:10px 17px;font-size:12px}
.btn.plain{border-color:transparent;background:transparent;padding-left:0;padding-right:0;box-shadow:none}
.btn.plain:hover{color:var(--green)}
.text-btn{display:inline-flex;align-items:center;gap:4px;padding:0;color:var(--green);font-size:11px;white-space:nowrap}
.text-btn:hover{color:var(--green-dark);text-decoration:underline;text-underline-offset:4px}
.text-btn.red{color:var(--red)}
.dot{width:6px;height:6px;border-radius:50%;display:inline-block;flex-shrink:0;background:currentColor}
.live-dot{color:#bdcadd;box-shadow:0 0 0 3px #7d95b515}
.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:21px;padding:0 7px;border-radius:5px;white-space:nowrap;font-weight:450}
.status.green{color:#bdcadd;background:#131f30}
.status.blue{color:#bdcadd;background:#131f30}
.status.orange{color:#bdcadd;background:#131f30}
.status.red{color:#bdcadd;background:#131f30}
.status.gray{color:#bdcadd;background:#131f30}
.status.purple{color:#bdcadd;background:#131f30}
.status.outline{background:none;border:1px solid currentColor;line-height:19px;opacity:.8}
.badge{font-size:9px;border-radius:4px;line-height:18px;padding:0 5px;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;background:#131f30;color:#bdcadd}
.badge.pro{background:#131f30;color:#bdcadd;font-size:8px;font-family:Arial,sans-serif;letter-spacing:.4px;font-weight:700}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;font-size:13px;font-weight:500;position:relative}
.avatar.sm{width:28px;height:28px;font-size:11px;border-radius:9px}
.avatar.lg{width:50px;height:50px;font-size:19px;border-radius:15px}
.avatar.xl{width:60px;height:60px;font-size:23px;border-radius:18px}
.avatar.mint{background:#131f30;color:#bdcadd}
.avatar.blue{background:#131f30;color:#bdcadd}
.avatar.sand{background:#131f30;color:#bdcadd}
.avatar.rose{background:#131f30;color:#bdcadd}
.avatar.violet{background:#1d2c42;color:#bdcadd}
.avatar.sky{background:#131f30;color:#bdcadd}
.avatar.olive{background:#131f30;color:#bdcadd}
.avatar.coral{background:#131f30;color:#bdcadd}
.avatar .presence{width:9px;height:9px;border-radius:50%;background:#263b54;border:2px solid #26364c;position:absolute;right:-2px;bottom:-1px}
.avatar .presence.offline{background:#31445e}
.avatar-stack{display:flex;padding-left:5px}
.avatar-stack .avatar{margin-left:-5px;border:2px solid #26364c;width:27px;height:27px;font-size:9px}
.avatar-stack .more-count{background:#131f30;color:#bdcadd}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 3px #02071101}
.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 0;gap:12px}
.panel-title{display:flex;align-items:center;gap:8px}
.panel-title h2{font-size:14px}
.panel-caption{color:#9aadc5;font-size:10px;margin-top:3px}
.panel-body{padding:20px 22px}
.panel-foot{padding:13px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:10px}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.metric-card{padding:18px 21px 16px;position:relative;min-width:0}
.metric-top{display:flex;align-items:center;justify-content:space-between;color:#bdcadd;font-size:11px;gap:6px}
.metric-icon{width:31px;height:31px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#131f30;color:#bdcadd}
.metric-icon.blue{background:#131f30;color:#bdcadd}
.metric-icon.purple{background:#131f30;color:#bdcadd}
.metric-icon.orange{background:#131f30;color:#bdcadd}
.metric-main{margin-top:12px;display:flex;align-items:baseline;gap:7px}
.metric-value{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:35px;font-weight:580;line-height:1.15;letter-spacing:-1.2px;font-variant-numeric:tabular-nums}
.metric-unit{color:#9aadc5;font-size:10px}
.metric-bottom{display:flex;align-items:center;gap:5px;font-size:10px;color:#9aadc5;margin-top:10px}
.metric-bottom strong{font-weight:550;color:#bdcadd}
.metric-card .sparkline{position:absolute;right:18px;bottom:41px;opacity:.85}
.metric-link{position:absolute;inset:0;z-index:1;border-radius:14px}
.metric-link:hover{box-shadow:inset 0 0 0 1px #7d95b5}
.overview-middle{display:grid;grid-template-columns:minmax(0,1.88fr) minmax(265px,1fr);gap:18px;margin-top:19px}
.overview-bottom{display:grid;grid-template-columns:minmax(0,1.88fr) minmax(265px,1fr);gap:18px;margin-top:19px}
.segmented{display:inline-flex;gap:2px;background:#131f30;border:1px solid #26364c;padding:3px;border-radius:6px}
.segmented button{padding:3px 10px;border-radius:4px;color:#bdcadd;font-size:10px;line-height:19px;white-space:nowrap}
.segmented button.active{background:#162234;color:#ecf1f8;box-shadow:0 1px 4px #02071110;font-weight:550}
.chart-legend{display:flex;gap:19px;font-size:10px;color:#bdcadd;padding:17px 23px 0}
.legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block;margin-right:6px}
.chart-wrap{height:210px;padding:9px 20px 3px;position:relative}
.trend-svg{width:100%;height:100%;overflow:visible}
.chart-tooltip{position:absolute;pointer-events:none;z-index:4;border-radius:7px;background:#16283deb;box-shadow:var(--shadow);color:#e5edf8;padding:8px 11px;font-size:10px;transform:translate(-50%,-100%);white-space:nowrap;display:none}
.chart-foot{font-size:9px;color:#9aadc5;padding:0 23px 16px;display:flex;align-items:center;gap:5px}
.scene-content{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px;padding:14px 15px 9px}
.donut-wrap{position:relative;width:146px;height:146px;max-width:100%;margin:0 auto}
.donut-wrap svg{width:100%;height:100%;transform:rotate(-90deg)}
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.donut-center strong{font-size:29px;font-weight:570;line-height:1.4;letter-spacing:-1px}
.donut-center span{font-size:9px;color:#9aadc5}
.scene-legend{display:flex;flex-direction:column;gap:16px;padding-right:5px}
.scene-row{display:flex;align-items:center;gap:6px;font-size:10px;color:#bdcadd}
.scene-row strong{color:#ecf1f8;margin-left:auto;font-size:12px;font-weight:600}
.scene-note{margin:0 20px 18px;background:#162234;border-radius:8px;padding:11px 12px;display:flex;align-items:flex-start;gap:8px;color:#9aadc5;font-size:10px;line-height:1.7}
.scene-note .icon{color:#9aadc5;margin-top:2px}
.table-wrap{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#334963 transparent}
.data-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;white-space:nowrap}
.data-table th{height:43px;background:#162234;color:#bdcadd;font-size:10px;font-weight:450;padding:0 15px;border-bottom:1px solid var(--line)}
.data-table td{height:72px;padding:10px 15px;border-bottom:1px solid #26364c;font-size:11px;color:#bdcadd;transition:background .15s}
.data-table tr:last-child td{border-bottom:0}
.data-table tbody tr:hover td{background:#162234}
.data-table th:first-child,.data-table td:first-child{padding-left:22px}
.data-table th:last-child,.data-table td:last-child{padding-right:22px}
.data-table.compact td{height:64px}
.data-table .user-name{font-size:12px;color:#ecf1f8;font-weight:550;display:flex;align-items:center;gap:6px;line-height:1.6}
.data-table .user-name:hover{color:var(--green)}
.user-id{font-size:9px;color:#9aadc5;line-height:1.6;margin-top:3px}
.user-cell{display:flex;align-items:center;gap:10px}
.mini-table{margin-top:16px}
.mini-table td{height:67px}
.mini-table th:first-child,.mini-table td:first-child{width:31%}
.table-second{font-size:9px;color:#9aadc5;margin-top:4px;line-height:1.5}
.row-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.row-actions .text-btn{font-size:10px}
.alert-stack{padding:10px 22px 3px}
.alert-teaser{padding:15px 0;display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;border-bottom:1px solid #26364c}
.alert-teaser:last-child{border-bottom:0}
.alert-teaser:hover h4{color:var(--green)}
.alert-symbol{width:29px;height:29px;border-radius:8px;background:#131f30;color:#9aadc5;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.alert-symbol.high{background:#131f30;color:#bdcadd}
.alert-teaser h4{font-size:11px;font-weight:550;line-height:1.6}
.alert-teaser p{font-size:10px;color:#9aadc5;margin-top:4px}
.alert-teaser .alert-time{font-size:9px;color:#9aadc5;margin-left:auto;white-space:nowrap;margin-top:2px}
.soft-footer{font-size:10px;color:#9aadc5;display:flex;align-items:center;gap:5px;justify-content:center;padding:13px 20px;margin:9px 20px 17px;background:#162234;border-radius:7px}
.page-footer{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9aadc5;padding:25px 1px 0;gap:16px}
.footer-brand{font-size:10px;letter-spacing:.4px;color:#9aadc5}
.mini-stat-row{display:grid;grid-template-columns:repeat(5,1fr);margin-bottom:21px}
.mini-stat{padding:18px 22px;position:relative}
.mini-stat:not(:last-child):after{content:"";position:absolute;right:0;top:21px;bottom:21px;width:1px;background:var(--line)}
.mini-stat p{font-size:10px;color:#bdcadd}
.mini-stat strong{display:block;font-size:26px;font-weight:580;letter-spacing:-.5px;margin-top:5px;line-height:1.5}
.mini-stat .status{position:absolute;right:20px;bottom:22px}
.tabs{display:flex;align-items:center;gap:25px;padding:0 22px;border-bottom:1px solid var(--line);height:52px;overflow-x:auto;white-space:nowrap}
.tab{height:100%;position:relative;font-size:11px;color:#bdcadd;padding:0;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tab.active{color:var(--green);font-weight:650}
.tab.active:after{content:"";position:absolute;height:2px;background:var(--green);bottom:-1px;left:0;right:0;border-radius:2px}
.tab-count{font-size:9px;min-width:18px;padding:0 4px;border-radius:4px;background:#131f30;color:#9aadc5;line-height:16px}
.tab.active .tab-count{background:#131f30;color:#bdcadd}
.toolbar{padding:17px 22px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.toolbar .push{margin-left:auto}
.input-wrap{position:relative;display:flex;align-items:center;gap:8px}
.input-wrap>.icon{position:absolute;left:11px;color:#9aadc5;pointer-events:none}
.input-wrap input{height:35px;width:240px;border:1px solid #26364c;border-radius:7px;background:#162234;padding:0 11px 0 34px;color:#ecf1f8;font-size:11px;transition:.16s}
.input-wrap input::placeholder{color:#9aadc5}
.input-wrap.wide,.input-wrap.wide input{width:100%}
select{height:35px;border:1px solid #26364c;border-radius:7px;background:#162234;color:#bdcadd;padding:0 28px 0 11px;font-size:11px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2394a198' stroke-width='1.2'%3E%3Cpath d='m3 5 3 3 3-3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;cursor:pointer;min-width:96px}
.advanced-filters{padding:16px 22px;background:#162234;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.filter-field label{display:block;font-size:10px;color:var(--sub);margin-bottom:5px}
.filter-chips{display:flex;align-items:center;gap:7px;padding:0 22px 14px;flex-wrap:wrap}
.filter-chip{padding:3px 7px;background:#131f30;border:1px solid #26364c;border-radius:5px;display:flex;align-items:center;gap:6px;font-size:10px;color:#bdcadd}
.filter-chip button{padding:0;display:flex;color:#9aadc5}
.table-meta{padding:10px 22px;background:#162234;border-top:1px solid #26364c;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#9aadc5;min-height:39px}
.table-meta .selected-bar{color:var(--green);display:flex;align-items:center;gap:11px}
.users-table{min-width:990px}
.users-table .check-col{width:41px;padding-right:0}
.users-table .check-col+td,.users-table .check-col+th{padding-left:13px}
.users-table td{height:75px}
.users-table .user-col{width:184px}
.users-table .action-col{position:sticky;right:0;background:#162234;box-shadow:-5px 0 8px -9px #020711}
.users-table th.action-col{background:#162234}
.users-table .star-btn{width:20px;height:24px;padding:0;color:#8498b3;display:inline-flex;align-items:center;justify-content:center}
.users-table .star-btn.active{color:#9aadc5}
.star-btn.active svg{fill:#9aadc533}
.pagination{display:flex;gap:5px;align-items:center}
.page-btn{width:28px;height:28px;border:1px solid #26364c;border-radius:5px;color:#bdcadd;font-size:10px;display:flex;align-items:center;justify-content:center}
.page-btn.active{background:#131f30;color:#ecf1f8;border-color:#26364c;font-weight:600}
.page-btn:hover{background:#131f30}
.pagination select{min-width:80px;height:29px;font-size:10px;margin-right:7px}
.saved-views{display:flex;align-items:center;gap:8px;padding:0 22px 14px;flex-wrap:wrap}
.saved-view{font-size:10px;display:flex;align-items:center;gap:5px;color:#bdcadd;padding:4px 8px;border:1px dashed #26364c;border-radius:5px;background:#162234}
.saved-view:hover{background:#131f30}
.attention-banner{padding:12px 16px;border:1px solid #26364c;background:#131f30;color:#bdcadd;font-size:11px;border-radius:9px;display:flex;align-items:center;gap:9px;margin-bottom:17px}
.attention-banner.warning{background:#162234;border-color:#26364c;color:#bdcadd}
.attention-banner.error{background:#131f30;border-color:#26364c;color:#bdcadd}
.attention-banner button{margin-left:auto;flex-shrink:0}
.monitor-top{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line);gap:12px}
.monitor-title{font-size:12px;font-weight:600;display:flex;align-items:center;gap:8px}
.monitor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px}
.monitor-card{border:1px solid #26364c;border-radius:11px;overflow:hidden;background:#162234;transition:box-shadow .18s,border-color .18s}
.monitor-card:hover{border-color:#3a506c;box-shadow:0 4px 15px #02071110}
.monitor-card-head{padding:17px 17px 14px;display:flex;align-items:center;gap:10px}
.monitor-card-body{padding:0 17px 15px}
.monitor-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px;font-size:10px;margin-bottom:13px}
.monitor-facts span{color:#9aadc5}
.monitor-facts strong{font-weight:450;color:#bdcadd;margin-left:7px}
.monitor-mini-hand{height:60px;background:#131f30;border-radius:7px;display:flex;align-items:center;gap:5px;padding:10px 11px;position:relative}
.monitor-mini-hand .mini-hand-lock{font-size:10px;color:#9aadc5;display:flex;align-items:center;gap:7px}
.monitor-card-foot{padding:10px 17px;border-top:1px solid #26364c;display:flex;justify-content:space-between;font-size:10px;color:#bdcadd;align-items:center}
.monitor-card-foot .text-btn{font-size:10px}
.mini-live{width:5px;height:5px;background:#263b54;border-radius:50%;margin-right:4px;display:inline-block}
.monitor-card .mini-event{margin-top:11px;display:flex;justify-content:space-between;color:#9aadc5;font-size:10px}
.online-strip{padding:11px 16px;border-radius:9px;background:#131f30;color:#bdcadd;display:flex;align-items:center;gap:9px;font-size:10px;margin-bottom:18px}

/* Cards, live table and replay */
.game-header{margin-bottom:18px}
.back-link{font-size:10px;display:inline-flex;align-items:center;gap:4px;color:#bdcadd;margin-bottom:13px}
.game-topline{display:flex;align-items:center;gap:12px;justify-content:space-between}
.game-title-row{display:flex;align-items:center;gap:11px}
.game-title-row h1{font-size:24px}
.game-subline{margin-top:8px;display:flex;align-items:center;gap:13px;font-size:10px;color:#9aadc5;flex-wrap:wrap}
.game-subline i{width:1px;height:10px;background:#1d2c42}
.game-controls{display:flex;align-items:center;gap:8px}
.game-info-bar{display:flex;align-items:center;gap:12px;background:#162234;border:1px solid var(--line);border-radius:9px;padding:11px 15px;margin-bottom:17px;color:#bdcadd;font-size:10px;flex-wrap:wrap}
.game-info-bar .right-info{margin-left:auto;font-size:9px;color:#9aadc5}
.game-layout{display:grid;grid-template-columns:182px minmax(390px,1fr) 274px;gap:16px;align-items:start}
.participant-panel{padding-bottom:5px}
.participant-head{padding:16px 15px 12px;border-bottom:1px solid var(--line);font-size:11px;font-weight:600}
.participant{padding:17px 14px;border-bottom:1px solid #26364c;position:relative}
.participant.active{background:#131f30}
.participant.active:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:2px;background:#263b54;border-radius:3px}
.participant .avatar{width:30px;height:30px;font-size:11px;border-radius:9px}
.participant .name{font-size:11px;font-weight:550}
.participant .role-label{font-size:9px;color:#9aadc5;line-height:1.5;margin-top:2px}
.participant-data{display:flex;justify-content:space-between;font-size:10px;color:#9aadc5;margin-top:12px}
.participant-data strong{color:#bdcadd;font-size:13px;font-weight:600}
.participant-data .badge{font-size:8px}
.participant-note{padding:14px;font-size:9px;color:#9aadc5;line-height:1.8}
.session-panel{padding:16px 14px;margin-top:14px}
.session-panel h3{font-size:11px;margin-bottom:14px}
.session-info-row{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9aadc5;margin:10px 0;gap:5px}
.session-info-row span:last-child{color:#bdcadd;font-size:10px}
.table-panel{background:radial-gradient(ellipse at 50% 35%,#16283d 0%,#16283d 64%,#16283d 100%);border:1px solid #273c55;border-radius:14px;color:#e5edf8;position:relative;overflow:hidden;min-height:332px;padding:20px}
.table-panel:before{content:"";position:absolute;inset:43px 22px 39px;border:1px solid #3a506c1a;border-radius:44%;pointer-events:none}
.table-panel:after{content:"";position:absolute;inset:51px 30px 47px;border:1px solid #3a506c10;border-radius:43%;pointer-events:none}
.table-head{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9aadc5;position:relative;z-index:1}
.table-head .table-brand{letter-spacing:2px;font-size:9px;opacity:.5}
.table-stage{position:relative;height:245px;z-index:1}
.seat{position:absolute;display:flex;align-items:center;gap:8px}
.seat .avatar{border:2px solid #3a506c44;background:#263b54;color:#e5edf8;box-shadow:0 5px 10px #02071133}
.seat .seat-name{font-size:10px;color:#8498b3}
.seat .seat-remaining{font-size:9px;color:#9aadc5;margin-top:2px}
.seat.left{top:27px;left:4px}
.seat.right{top:27px;right:4px;flex-direction:row-reverse;text-align:right}
.seat.self{bottom:0;left:50%;transform:translateX(-50%);padding:5px 13px 5px 6px;border:1px solid #3a506c3b;background:#31445e0e;border-radius:26px;white-space:nowrap}
.seat.self .avatar{width:30px;height:30px;font-size:11px;border-radius:50%}
.seat-role{position:absolute;top:-9px;left:15px;font-size:7px;background:#31445e;color:#ecf1f8;border-radius:3px;padding:0 4px;letter-spacing:1px;border:1px solid #3a506c}
.seat.self .seat-role{left:23px;top:-5px;font-size:6px;line-height:11px}
.table-center{position:absolute;top:99px;left:50%;transform:translateX(-50%);text-align:center}
.table-center .stage-label{font-size:9px;color:#9aadc5;letter-spacing:.6px;margin-bottom:12px}
.played-cards{display:flex;align-items:center;justify-content:center;gap:5px;min-height:62px}
.played-cards .playing-card{box-shadow:0 4px 8px #02071144}
.table-next{font-size:9px;color:#8498b3;margin-top:11px;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.table-next .dot{background:#31445e;width:4px;height:4px}
.back-of-cards{display:flex;margin-top:12px}
.card-back{width:15px;height:26px;background:repeating-linear-gradient(45deg,#263b5444 0,#263b5444 2px,#16283d44 2px,#16283d44 5px);border:1px solid #273c5588;border-radius:3px;margin-right:-7px;box-shadow:1px 0 2px #02071111}
.seat-cardblock{position:absolute;top:76px;left:19px;color:#bdcadd;font-size:8px}
.seat-cardblock.right{left:auto;right:17px}
.seat-cardblock.right .back-of-cards{justify-content:flex-end}
.table-watermark{position:absolute;bottom:10px;left:16px;color:#8498b322;font-size:7px;letter-spacing:1.1px;pointer-events:none}
.playing-card{width:40px;height:58px;border-radius:5px;background:#162234;border:1px solid #26364c;color:#ecf1f8;position:relative;display:flex;flex-direction:column;padding:4px 5px;flex-shrink:0;box-shadow:0 2px 3px #02071107;font-family:Georgia,"Times New Roman",serif;user-select:none}
.playing-card.red-suit{color:#bdcadd}
.playing-card .rank{font-size:19px;font-weight:600;line-height:1.1;letter-spacing:-.7px}
.playing-card .suit{font-size:14px;line-height:1.1;margin-top:1px}
.playing-card .card-corner{position:absolute;bottom:4px;right:5px;font-size:10px;transform:rotate(180deg);opacity:.55}
.playing-card.small{width:28px;height:40px;padding:3px 4px;border-radius:4px}
.playing-card.small .rank{font-size:13px}
.playing-card.small .suit{font-size:10px}
.playing-card.small .card-corner{font-size:7px;bottom:3px;right:3px}
.playing-card.tiny-card{width:20px;height:29px;padding:2px 3px;border-radius:3px}
.playing-card.tiny-card .rank{font-size:10px;letter-spacing:-.5px}
.playing-card.tiny-card .suit{font-size:7px}
.playing-card.tiny-card .card-corner{display:none}
.playing-card.highlight{animation:cardflash 1.3s ease-out}
.hand-panel{margin-top:15px;position:relative}
.hand-panel .panel-head{padding:16px 18px 0}
.hand-panel .panel-title h2{font-size:12px}
.hand-top-note{font-size:9px;color:#9aadc5;padding:8px 18px 0;display:flex;align-items:center;justify-content:space-between;gap:8px}
.hand-cards{display:flex;align-items:center;justify-content:center;gap:6px;padding:21px 14px 17px;min-height:101px;flex-wrap:wrap}
.hand-cards .playing-card{width:37px;height:57px;transition:transform .16s}
.hand-cards .playing-card:hover{transform:translateY(-5px)}
.hand-cards.compact-hand{padding:18px;justify-content:flex-start;gap:8px;min-height:100px}
.hand-chip{display:inline-flex;padding:5px 8px;border:1px solid #26364c;border-radius:5px;font-size:12px;color:#bdcadd;background:#162234}
.hand-foot{padding:9px 18px;border-top:1px solid #26364c;font-size:9px;color:#9aadc5;display:flex;gap:6px;align-items:center;justify-content:space-between}
.hand-lock{padding:26px 20px;text-align:center;color:#9aadc5;min-height:140px;background:repeating-linear-gradient(-45deg,transparent,transparent 12px,#16223408 12px,#16223408 24px)}
.hand-lock p{font-size:10px;margin:8px 0 12px}
.hand-lock .icon{color:#bdcadd}
.ledger-panel{margin-top:15px;padding:15px 18px}
.ledger-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}
.ledger-head h3{font-size:11px}
.ledger-head span{font-size:8px;color:#9aadc5}
.ledger-grid{display:grid;grid-template-columns:36px repeat(13,minmax(0,1fr));row-gap:9px;align-items:center;text-align:center;font-size:9px}
.ledger-grid .ledger-label{font-size:8px;color:#9aadc5;text-align:left}
.ledger-grid .rank-cell{font-weight:550;color:#bdcadd}
.ledger-grid .seen-cell{color:#bdcadd;background:#131f30;padding:3px 0;margin:0 1px;border-radius:3px}
.ledger-grid .remain-cell{color:#9aadc5;font-size:8px}
.ledger-disclaimer{font-size:8px;color:#9aadc5;border-top:1px dashed #26364c;margin-top:13px;padding-top:9px;line-height:1.7}
.events-panel{min-height:589px}
.events-panel .panel-head{padding:17px 16px 12px;border-bottom:1px solid #26364c}
.events-panel h2{font-size:12px}
.events-panel .panel-caption{font-size:9px}
.event-filters{display:flex;gap:4px;padding:12px 13px 5px}
.event-filter{font-size:9px;color:#9aadc5;border-radius:4px;padding:3px 7px}
.event-filter.active{background:#131f30;color:#bdcadd}
.event-list{padding:6px 16px 0;max-height:495px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#334963 transparent}
.event-item{position:relative;padding:13px 0 15px 17px;border-left:1px solid #26364c;margin-left:3px}
.event-item:before{content:"";position:absolute;left:-3px;top:20px;width:5px;height:5px;border-radius:50%;background:#1d2c42;border:1px solid #26364c}
.event-item.new:before{background:#263b54;box-shadow:0 0 0 3px #7d95b5}
.event-item.new .event-name{color:#bdcadd}
.event-item .event-top{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9aadc5}
.event-item .event-name{font-size:11px;color:#bdcadd;font-weight:500;margin-top:5px}
.event-item .event-name span{font-weight:400;font-size:10px;color:#9aadc5;margin-left:5px}
.event-item .event-cards{display:flex;gap:3px;margin-top:9px}
.event-item .event-note{font-size:9px;color:#9aadc5;margin-top:5px}
.event-item .pass-label{font-size:10px;color:#9aadc5;background:#131f30;border-radius:4px;padding:3px 8px;display:inline-block;margin-top:7px}
.event-item.selected{background:#131f30;margin-right:-10px;border-radius:0 6px 6px 0}
.event-list button.event-item{display:block;text-align:left;width:calc(100% - 3px);padding-right:6px}
.event-list button.event-item:hover{background:#162234}
.events-bottom{padding:13px 16px;text-align:center;color:#9aadc5;font-size:9px;border-top:1px solid #26364c}
.diagnostic-panel{margin-top:19px}
.diagnostic-tabs{height:44px;gap:24px}
.diagnostic-tabs .tab{font-size:10px}
.diagnostic-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:20px 22px;gap:18px}
.diagnostic-item{padding-right:16px;border-right:1px solid #26364c}
.diagnostic-item:last-child{border:0}
.diagnostic-item .label{font-size:9px;color:#9aadc5}
.diagnostic-item .value{font-size:15px;color:#bdcadd;font-family:monospace;margin:5px 0 3px}
.diagnostic-item .desc{font-size:9px;color:#9aadc5}
.timeline-horizontal{display:flex;gap:0;padding:26px 24px;overflow-x:auto}
.timeline-point{min-width:150px;flex:1;position:relative;border-top:1px solid #26364c;padding:17px 8px 0 0;font-size:10px;color:#bdcadd}
.timeline-point:before{content:"";width:7px;height:7px;background:#31445e;border:2px solid #26364c;box-shadow:0 0 0 1px #7d95b5;border-radius:50%;position:absolute;top:-5px;left:0}
.timeline-point small{display:block;font-size:9px;color:#9aadc5;margin-top:5px}
.diagnostic-copy{padding:20px 22px;color:#9aadc5;font-size:11px;line-height:1.9}
.diagnostic-copy strong{color:#bdcadd;font-weight:600}
.replay-controls{padding:16px 19px 18px;background:#162234;border:1px solid var(--line);border-radius:11px;margin-bottom:17px}
.replay-range{width:100%;height:4px;accent-color:var(--green);cursor:pointer;margin:17px 0 7px}
.replay-control-line{display:flex;align-items:center;gap:10px}
.replay-control-line .timestamp{font-size:10px;color:#bdcadd;margin-left:5px}
.replay-control-line .speed-select{margin-left:auto;height:29px;min-width:70px;font-size:10px}
.range-labels{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9aadc5}
.replay-banner{background:#131f30;border-color:#26364c;color:#bdcadd}
.playing-state{color:#9aadc5;font-size:10px;letter-spacing:1px;padding:10px 0}
.full-snapshot-note{position:absolute;top:15px;right:12px;transform:rotate(-15deg);font-size:9px;pointer-events:none;color:#8498b34d}

/* Rooms / alerts / detail */
.room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.room-card{padding:21px;position:relative}
.room-card .room-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.room-icon{width:37px;height:37px;border-radius:11px;background:#131f30;color:#bdcadd;display:flex;align-items:center;justify-content:center}
.room-card h3{font-size:14px;font-weight:570}
.room-card .room-id{font-size:10px;color:#9aadc5;margin-top:5px}
.room-card .room-tags{display:flex;gap:6px;margin-top:14px}
.room-seats{display:flex;align-items:center;gap:7px;margin-top:24px}
.empty-seat{width:27px;height:27px;border:1px dashed #26364c;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#9aadc5;font-size:10px}
.room-players-count{font-size:10px;color:#9aadc5;margin-left:auto}
.room-card .room-foot{display:flex;justify-content:space-between;align-items:center;margin-top:19px;padding-top:14px;border-top:1px solid #26364c;font-size:10px;color:#9aadc5}
.room-warning{margin-top:14px;background:#162234;border-radius:6px;color:#9aadc5;font-size:9px;padding:7px 9px;display:flex;align-items:center;gap:5px}
.rooms-toolbar{padding:15px 18px;display:flex;align-items:center;gap:12px}
.room-modal-seats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}
.seat-box{padding:18px 12px;border:1px solid var(--line);border-radius:10px;text-align:center;background:#162234}
.seat-box h4{margin:10px 0 5px}
.room-modal-seats .seat-box.empty-slot{border-style:dashed;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#9aadc5}
.alert-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}
.alert-summary-card{display:flex;gap:15px;padding:20px 22px;align-items:center}
.alert-summary-card strong{font-size:27px;font-weight:560;line-height:1.25}
.alert-summary-card p{font-size:10px;color:#9aadc5;margin-top:4px}
.alert-title-cell{min-width:220px}
.alert-title-cell h4{font-size:11px;font-weight:550}
.alert-title-cell p{font-size:9px;color:#9aadc5;margin-top:5px;max-width:270px;text-overflow:ellipsis;overflow:hidden}
.severity{display:flex;align-items:center;gap:6px;font-size:10px}
.severity.high{color:#bdcadd}
.severity.medium{color:#9aadc5}
.severity.low{color:#9aadc5}
.description-box{padding:15px 17px;border:1px solid #26364c;background:#162234;border-radius:9px;margin:15px 0;font-size:11px;color:#bdcadd;line-height:1.9}
.description-box h4{font-size:11px;color:#bdcadd;margin-bottom:5px}
.detail-hero{display:flex;align-items:center;gap:17px;padding:24px}
.detail-hero h2{font-size:21px;font-weight:580}
.detail-hero .hero-sub{font-size:10px;color:#9aadc5;margin-top:5px}
.detail-meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:22px 24px}
.detail-meta-item .label{font-size:10px;color:#9aadc5;margin-bottom:7px}
.detail-meta-item .value{font-size:12px;color:#bdcadd}
.detail-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:18px;margin-top:20px}
.detail-note{font-size:12px;line-height:1.9;color:#9aadc5;padding:19px 22px}
.session-card{padding:16px;border:1px solid #26364c;border-radius:9px;margin-bottom:12px}
.session-card:last-child{margin-bottom:0}
.session-card .device-name{font-size:12px;font-weight:550;color:#bdcadd}
.session-card .device-id{font-size:9px;color:#9aadc5;margin-top:4px}
.session-card .session-tags{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}
.vertical-timeline{padding:18px 22px}
.vertical-timeline .vt-item{position:relative;padding:0 0 21px 22px;border-left:1px solid #26364c;font-size:11px;color:#bdcadd;margin-left:3px}
.vertical-timeline .vt-item:last-child{padding-bottom:0;border-color:transparent}
.vertical-timeline .vt-item:before{position:absolute;content:"";width:6px;height:6px;background:#31445e;left:-4px;top:7px;border-radius:50%;border:1px solid #26364c}
.vertical-timeline time{font-size:9px;color:#9aadc5;display:block;margin-top:4px}
.user-key-state{padding:15px;background:#162234;border:1px solid #26364c;border-radius:9px}
.user-state-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:15px}
.user-state-grid .state-item{font-size:10px;color:#9aadc5}
.user-state-grid .state-item strong{display:block;font-size:11px;color:#bdcadd;font-weight:500;margin-top:5px}
.note-card{background:#162234;border:1px solid #26364c;border-radius:9px;padding:15px 16px;font-size:11px;color:#bdcadd;line-height:1.8}
.settings-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:19px;padding:23px}
.role-card{padding:16px;border:1px solid #26364c;border-radius:9px;margin-bottom:11px;cursor:pointer;display:flex;align-items:center;gap:12px;background:#162234;width:100%;text-align:left}
.role-card.active{border-color:#3a506c;background:#162234}
.role-card h4{font-size:12px;color:#bdcadd}
.role-card p{font-size:9px;color:#9aadc5;margin-top:3px}
.role-icon{width:34px;height:34px;border-radius:9px;background:#131f30;color:#9aadc5;display:flex;align-items:center;justify-content:center}
.permissions-table{width:100%;border-collapse:collapse;font-size:11px}
.permissions-table th{background:#162234;padding:13px;text-align:left;font-size:10px;color:#9aadc5;font-weight:450;border-bottom:1px solid #26364c}
.permissions-table td{padding:16px 13px;color:#bdcadd;border-bottom:1px solid #26364c}
.permissions-table td:last-child{color:#9aadc5;font-size:10px}
.permission-check{color:#bdcadd}
.permission-denied{color:#8498b3}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 23px;border-bottom:1px solid #26364c}
.setting-row:last-child{border:0}
.setting-row h4{font-size:12px;color:#bdcadd}
.setting-row p{font-size:10px;color:#9aadc5;margin-top:4px;max-width:640px}
.switch{width:34px;height:19px;border-radius:12px;background:#1d2c42;padding:2px;position:relative;transition:.2s;flex-shrink:0}
.switch:before{content:"";width:15px;height:15px;background:#162234;border-radius:50%;display:block;box-shadow:0 1px 3px #0207111f;transition:.2s}
.switch.on{background:#263b54}
.switch.on:before{transform:translateX(15px)}
.settings-caption{font-size:10px;color:#9aadc5;line-height:1.9;margin:15px 0 0}
.restricted-box{padding:35px 24px;text-align:center;border:1px dashed #26364c;border-radius:10px;background:#162234;color:#9aadc5}
.restricted-box h3{font-size:13px;color:#bdcadd;margin:12px 0 7px}
.restricted-box p{font-size:10px;line-height:1.9}
.audit-table td{font-size:10px;height:66px}
.audit-table .audit-detail{white-space:normal;min-width:220px;max-width:400px;line-height:1.8;font-size:10px;color:#9aadc5}

/* Overlays */
.overlay-backdrop{position:fixed;inset:0;background:#0d172760;backdrop-filter:blur(3px);z-index:80;animation:fadein .18s;display:flex;align-items:center;justify-content:center;padding:25px}
.drawer-backdrop{justify-content:flex-end;padding:0;background:#0d172740;backdrop-filter:blur(2px)}
.drawer{width:650px;max-width:100%;height:100%;background:#162234;box-shadow:-12px 0 50px #02071116;display:flex;flex-direction:column;animation:drawer-in .23s ease-out}
.drawer-top{height:66px;flex-shrink:0;padding:0 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px;color:#bdcadd}
.drawer-top h3{font-size:13px;color:#bdcadd}
.drawer-body{overflow-y:auto;padding:0 25px 25px;flex:1}
.drawer-hero{display:flex;gap:15px;align-items:center;padding:24px 0 22px}
.drawer-hero h2{font-size:23px;font-weight:570;color:#ecf1f8}
.drawer-hero .drawer-id{font-size:10px;color:#9aadc5;margin-top:5px}
.drawer-action-bar{display:flex;align-items:center;gap:8px;margin-bottom:21px;flex-wrap:wrap}
.drawer-section-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#bdcadd;margin:24px 0 12px;font-weight:550}
.drawer .tabs{padding:0;gap:24px;height:44px;margin:0 0 20px}
.drawer .tab{font-size:11px}
.drawer-bottom{border-top:1px solid var(--line);padding:16px 25px;background:#162234;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#9aadc5;font-size:9px;flex-shrink:0}
.drawer-hand-preview{padding:15px;border:1px solid #26364c;border-radius:9px;background:#162234}
.drawer-hand-preview .hand-cards{padding:18px 5px 5px;gap:5px;min-height:83px}
.drawer-hand-preview .hand-cards .playing-card{width:36px;height:53px}
.drawer-note-form{display:flex;align-items:center;gap:7px;margin-top:10px}
.drawer-note-form input{flex:1;border:1px solid #26364c;border-radius:6px;height:34px;padding:0 10px;font-size:10px;color:#bdcadd;min-width:0}
.modal{background:#162234;border:1px solid #26364c;border-radius:15px;width:510px;max-width:100%;max-height:calc(100vh - 50px);overflow:auto;box-shadow:0 20px 80px #02071126;animation:modal-in .2s ease-out}
.modal.wide{width:760px}
.modal-header{padding:22px 24px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.modal-header h2{font-size:16px;color:#bdcadd}
.modal-body{padding:22px 24px}
.modal-body p{color:#9aadc5;font-size:11px;line-height:1.9}
.modal-footer{padding:16px 24px;border-top:1px solid #26364c;display:flex;align-items:center;justify-content:flex-end;gap:9px;background:#162234}
.modal-subtitle{font-size:11px;color:#9aadc5;margin-bottom:18px}
.form-group{margin:18px 0}
.form-group:first-child{margin-top:0}
.form-group label{display:block;color:#bdcadd;font-size:11px;margin-bottom:7px}
.form-group label .required{color:#9aadc5;margin-left:3px}
.form-group input:not([type=checkbox]):not([type=radio]),.form-group textarea,.form-group select{width:100%;border:1px solid #26364c;border-radius:7px;padding:9px 11px;font-size:11px;color:#bdcadd;line-height:1.7;background-color:#162234;height:auto}
.form-group textarea{min-height:91px;resize:vertical}
.form-group .help-text{font-size:9px;color:#9aadc5;margin-top:5px}
.form-group .error-text{font-size:10px;color:#bdcadd;display:none;margin-top:6px}
.form-group.has-error textarea,.form-group.has-error input{border-color:#3a506c!important}
.form-group.has-error .error-text{display:block}
.radio-option{display:flex!important;gap:9px;align-items:flex-start;padding:12px;border:1px solid #26364c;border-radius:7px;margin:9px 0!important;background:#162234;cursor:pointer}
.radio-option input{margin-top:4px}
.radio-option span{font-size:11px;color:#9aadc5}
.radio-option small{display:block;font-size:9px;color:#9aadc5;margin-top:3px}
.confirm-checkbox{display:flex;align-items:flex-start;gap:9px;font-size:10px;color:#9aadc5;line-height:1.9;margin:18px 0 0}
.confirm-checkbox input{margin-top:3px}
.modal-info{padding:13px 15px;border-radius:7px;background:#131f30;border:1px solid #26364c;font-size:10px;color:#9aadc5;line-height:1.85;display:flex;align-items:flex-start;gap:8px}
.modal-info .icon{margin-top:2px;flex-shrink:0}
.modal-info.warning{background:#162234;border-color:#26364c;color:#9aadc5}
.modal-info.danger{background:#131f30;border-color:#26364c;color:#bdcadd}
.columns-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.column-option{display:flex;align-items:center;gap:9px;padding:9px;font-size:11px;color:#9aadc5;border:1px solid #26364c;border-radius:6px}
.search-modal{width:610px;align-self:flex-start;margin-top:10vh;padding:0;border-radius:14px;overflow:hidden}
.command-input{display:flex;gap:11px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);color:#9aadc5}
.command-input input{flex:1;border:0;height:31px;font-size:14px;min-width:0;color:#bdcadd;background:none}
.command-input input:focus{box-shadow:none!important}
.command-input input::placeholder{color:#9aadc5}
.command-input kbd{font-size:9px;line-height:20px;padding:0 4px;border:1px solid #26364c;border-radius:4px;color:#9aadc5}
.search-group-label{font-size:9px;letter-spacing:.5px;color:#9aadc5;padding:14px 19px 5px}
.search-results{padding:7px;max-height:390px;overflow:auto}
.search-result{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:7px;text-align:left;color:#bdcadd}
.search-result:hover,.search-result.focused{background:#131f30}
.search-result .result-label{font-size:12px;font-weight:550}
.search-result .result-desc{font-size:9px;color:#9aadc5;margin-top:2px}
.search-result .result-type{margin-left:auto;font-size:9px;color:#9aadc5}
.search-modal-foot{padding:11px 20px;background:#162234;border-top:1px solid #26364c;display:flex;align-items:center;gap:16px;font-size:9px;color:#9aadc5}
.toast{display:flex;align-items:center;gap:10px;padding:13px 17px;background:#162234;border:1px solid #26364c;border-radius:10px;box-shadow:0 8px 30px #02071120;font-size:12px;color:#bdcadd;animation:toast-in .25s ease-out;max-width:460px;line-height:1.7}
.toast.error{color:#bdcadd;border-color:#26364c}
.toast.info{color:#bdcadd}
#toast-root{position:fixed;right:30px;bottom:28px;z-index:110;display:flex;flex-direction:column;gap:9px;pointer-events:none}
.toast .icon{flex-shrink:0}
.notification-list{display:flex;flex-direction:column;gap:10px}
.notice-item{display:flex;gap:10px;padding:13px;border:1px solid #26364c;border-radius:8px;cursor:pointer}
.notice-item h4{font-size:11px;color:#bdcadd}
.notice-item p{font-size:10px;color:#9aadc5;margin-top:4px}
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.help-card{padding:16px;border:1px solid #26364c;border-radius:9px;background:#162234}
.help-card h4{font-size:12px;color:#bdcadd;margin:9px 0 7px}
.help-card p{font-size:10px;color:#9aadc5}
.help-card .icon{color:#9aadc5}
.shortcut{display:flex;justify-content:space-between;font-size:10px;color:#9aadc5;padding:8px 0;border-bottom:1px solid #26364c}
.shortcut kbd{font-family:inherit;border:1px solid #26364c;background:#162234;border-radius:4px;padding:0 5px;color:#9aadc5;font-size:9px}
.mobile-menu{display:none}
.body-lock{overflow:hidden}
.network-offline-banner{padding:10px 25px;text-align:center;color:#bdcadd;font-size:11px;background:#162234;border-bottom:1px solid #26364c;position:sticky;top:73px;z-index:29}
.compact-mode .data-table td{height:55px;padding-top:7px;padding-bottom:7px}
.compact-mode .avatar{width:29px;height:29px;font-size:11px}
.compact-mode .user-id{margin-top:0}

@keyframes fadein{from{opacity:0}
to{opacity:1}
}
@keyframes drawer-in{from{transform:translateX(35px);opacity:.2}
to{transform:translateX(0);opacity:1}
}
@keyframes modal-in{from{transform:translateY(8px) scale(.985);opacity:0}
to{transform:translateY(0) scale(1);opacity:1}
}
@keyframes toast-in{from{transform:translateY(9px);opacity:0}
to{transform:translateY(0);opacity:1}
}
@keyframes cardflash{0%{transform:translateY(-8px);box-shadow:0 0 0 2px #7d95b580}
100%{transform:translateY(0);box-shadow:0 2px 3px #02071107}
}

@media(min-width:1600px){:root{--nav-width:232px}
.sidebar{padding-left:20px;padding-right:20px}
.main{padding:32px 38px}
.topbar{padding:0 38px}
.game-layout{grid-template-columns:202px minmax(450px,1fr) 300px}
.playing-card{width:44px;height:64px}
.hand-cards .playing-card{width:41px;height:63px}
.table-panel{min-height:350px}
.table-stage{height:263px}
.table-center{top:111px}
.table-panel:before{inset:48px 25px 43px}
.metric-card{padding:22px 24px}
.metric-value{font-size:39px}
.chart-wrap{height:220px}
.scene-content{padding:20px}
.donut-wrap{width:164px;height:164px}
.panel-title h2{font-size:15px}
.metric-top{font-size:12px}
.data-table td{font-size:12px}
.data-table th{font-size:11px}
}

@media(max-width:1250px){:root{--nav-width:190px}
.sidebar{padding:27px 12px 15px}
.brand{gap:8px;padding-left:6px}
.brand-word{font-size:19px}
.brand-caption{font-size:8px}
.nav-item{font-size:12px;padding-left:13px;gap:10px}
.topbar{padding:0 23px;gap:15px}
.main{padding:25px 23px}
.global-search{width:212px}
.top-clock{display:none}
.page-actions .date-btn{display:none}
.overview-middle,.overview-bottom{grid-template-columns:minmax(0,1.8fr) minmax(245px,1fr);gap:15px}
.scene-content{grid-template-columns:1fr 1fr;padding:15px 10px}
.donut-wrap{width:126px;height:126px}
.scene-legend{gap:14px}
.scene-row{font-size:9px}
.game-layout{grid-template-columns:155px minmax(330px,1fr) 231px;gap:12px}
.table-panel{padding:15px;min-height:320px}
.table-stage{height:251px}
.hand-cards{gap:4px;padding-left:8px;padding-right:8px}
.hand-cards .playing-card{width:29px;height:47px;padding:4px}
.hand-cards .playing-card .rank{font-size:16px}
.hand-cards .playing-card .suit{font-size:12px}
.hand-cards .playing-card .card-corner{font-size:8px}
.participant{padding:15px 11px}
.participant .avatar{width:25px;height:25px;font-size:9px;border-radius:7px}
.participant .name{font-size:10px}
.participant-data{font-size:9px}
.events-panel .panel-head{padding:16px 12px 12px}
.event-list{padding:5px 12px}
.game-subline{gap:9px}
.game-subline .optional{display:none}
.monitor-grid{gap:12px;padding:16px}
.monitor-card-head{padding:14px}
.monitor-card-body{padding:0 14px 14px}
.monitor-facts{gap:9px 5px;font-size:9px}
.monitor-facts strong{margin-left:4px}
.monitor-card-foot{padding:10px 14px}
.room-grid{gap:14px}
.room-card{padding:18px}
.users-table .action-col{box-shadow:-8px 0 10px -9px #02071133}
.alert-title-cell p{max-width:210px}
.settings-grid{grid-template-columns:236px minmax(0,1fr)}
.metric-grid{gap:12px}
.metric-card{padding:16px}
.metric-card .sparkline{width:67px;right:13px}
.metric-value{font-size:31px}
.metric-bottom{font-size:9px}
.panel-head{padding-left:18px;padding-right:18px}
}

@media(max-width:1040px){:root{--nav-width:76px}
.sidebar{padding:23px 11px 15px}
.brand{padding:0 0 30px;justify-content:center}
.brand-text,.nav-label,.nav-item span,.sidebar-note,.server-status,.profile .profile-meta,.profile>.icon{display:none}
.brand-mark{width:34px}
.nav-item{justify-content:center;padding:0;height:44px;margin:9px 0}
.nav-item .nav-dot{display:block!important;position:absolute;right:8px;top:9px;width:4px;height:4px}
.nav-group{margin-top:15px}
.profile{justify-content:center;padding:12px 0 0}
.sidebar-spacer{min-height:20px}
.topbar{gap:13px}
.game-layout{grid-template-columns:144px minmax(340px,1fr) 232px}
.main{padding:24px 20px}
.topbar{padding:0 20px}
.overview-middle,.overview-bottom{grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr)}
.scene-content{grid-template-columns:1fr 1fr}
.table-panel{min-height:321px}
.game-title-row h1{font-size:22px}
.game-controls .btn{padding-left:9px;padding-right:9px;font-size:10px}
.game-info-bar .right-info{display:none}
.detail-columns{grid-template-columns:1.4fr 1fr}
.mini-stat{padding:16px}
.mini-stat strong{font-size:24px}
.mini-stat .status{display:none}
.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.alert-summary-card{padding:17px 15px;gap:12px}
.monitor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.toolbar .input-wrap input{width:214px}
.settings-grid{grid-template-columns:225px minmax(0,1fr)}
}

@media(max-width:850px){.top-demo{display:none}
.global-search{width:198px}
.game-layout{grid-template-columns:145px minmax(0,1fr)}
.events-panel{grid-column:1/-1;min-height:0}
.events-panel .event-list{display:flex;max-height:none;overflow-x:auto;padding:15px}
.event-item{min-width:150px;flex:1}
.events-panel .event-filters{padding:8px 14px 0}
.events-bottom{display:none}
.overview-middle,.overview-bottom{grid-template-columns:1fr}
.scene-content{grid-template-columns:180px 1fr;padding:20px;gap:24px}
.donut-wrap{width:140px;height:140px}
.scene-legend{gap:16px;padding-right:30px}
.scene-note{margin-top:0}
.overview-bottom .panel{min-width:0}
.metric-grid{grid-template-columns:repeat(2,1fr)}
.metric-value{font-size:34px}
.metric-card .sparkline{width:89px}
.panel-title h2{font-size:14px}
.scene-row{font-size:11px}
.page-header{gap:12px}
.page-actions .btn{font-size:10px;padding:7px 10px}
.page-subtitle{font-size:11px}
.settings-grid{grid-template-columns:1fr}
.roles-list{display:flex;gap:9px}
.role-card{margin-bottom:0;gap:8px;padding:12px}
.role-card p{display:none}
.role-icon{display:none}
.role-card h4{font-size:10px}
.detail-columns{grid-template-columns:1fr}
.alert-summary{grid-template-columns:repeat(2,1fr)}
.diagnostic-grid{grid-template-columns:repeat(2,1fr);gap:20px}
.diagnostic-item:nth-child(2){border:0}
.game-subline{font-size:9px}
.alert-title-cell p{max-width:250px}
.main{padding-bottom:20px}
}

@media(max-width:640px){:root{--nav-width:0px}
.sidebar{width:216px;transform:translateX(-100%);transition:.2s;z-index:70;padding:26px 17px 16px}
.sidebar.open{transform:translateX(0);box-shadow:15px 0 50px #02071130}
.sidebar.open .brand-text,.sidebar.open .nav-label,.sidebar.open .nav-item span,.sidebar.open .server-status,.sidebar.open .profile .profile-meta,.sidebar.open .profile>.icon{display:initial}
.sidebar.open .brand{justify-content:flex-start;padding:0 8px 25px}
.sidebar.open .nav-item{justify-content:flex-start;padding:0 14px;gap:12px;margin:5px 0}
.sidebar.open .nav-item .nav-dot{position:static;margin-left:auto;box-shadow:none}
.sidebar.open .nav-badge{display:inline-block}
.sidebar.open .profile{justify-content:flex-start}
.sidebar.open .server-status{display:flex}
.topbar{height:60px;padding:0 14px;gap:9px}
.breadcrumb{display:none}
.mobile-menu{display:inline-flex}
.global-search{width:auto;flex:1;height:33px;margin-left:0}
.global-search kbd{display:none}
.top-divider,.top-live{display:none}
.main{padding:21px 14px}
.page-header{align-items:flex-start;margin-bottom:20px;min-height:0}
.page-actions{gap:6px}
.page-actions .btn.secondary-hide{display:none}
.page-subtitle{font-size:10px;line-height:1.8;max-width:220px}
.eyebrow{font-size:8px;letter-spacing:1.2px}
h1{font-size:23px}
.page-actions .btn{font-size:9px;padding:7px 9px;min-height:31px;margin-top:17px}
.metric-grid{gap:11px}
.metric-card{padding:14px;min-height:132px}
.metric-top{font-size:10px}
.metric-icon{width:27px;height:27px;border-radius:8px}
.metric-value{font-size:30px}
.metric-main{margin-top:10px}
.metric-card .sparkline{width:54px;height:28px;right:12px;bottom:38px}
.metric-bottom{font-size:8px;gap:3px}
.overview-middle,.overview-bottom{gap:13px;margin-top:13px}
.panel-head{padding:17px 16px 0}
.panel-title h2{font-size:13px}
.chart-wrap{height:205px;padding:6px 12px 0}
.chart-legend{padding:14px 17px 0;font-size:9px}
.segmented button{font-size:9px;padding:2px 7px}
.chart-foot{font-size:8px;padding-left:17px}
.scene-content{grid-template-columns:140px 1fr;padding:13px 17px 16px;gap:20px}
.scene-legend{padding-right:5px}
.scene-row{font-size:10px}
.scene-note{font-size:9px}
.mini-table{min-width:540px}
.page-footer{font-size:8px;padding-top:20px;align-items:flex-start}
.page-footer>span:first-child{max-width:240px}
.footer-brand{font-size:9px}
.mini-stat-row{grid-template-columns:repeat(3,1fr);margin-bottom:14px}
.mini-stat{padding:14px 15px}
.mini-stat:nth-child(n+4){display:none}
.mini-stat p{font-size:9px}
.mini-stat strong{font-size:23px}
.tabs{gap:22px;padding:0 15px;height:47px}
.tab{font-size:10px}
.toolbar{padding:14px;gap:8px}
.toolbar .input-wrap{width:100%}
.toolbar .input-wrap input{width:100%}
.toolbar select{font-size:10px;min-width:90px;flex:1}
.toolbar .push{margin-left:0}
.toolbar .btn{font-size:10px;min-height:31px}
.table-meta{padding:9px 14px;font-size:9px}
.table-meta .optional-meta{display:none}
.panel-foot{padding:12px 14px;flex-wrap:wrap;font-size:9px}
.pagination select{height:27px;font-size:9px;min-width:75px}
.page-btn{width:25px;height:25px;font-size:9px}
.monitor-grid{grid-template-columns:1fr;padding:14px}
.monitor-top{padding:14px;flex-wrap:wrap}
.monitor-title{font-size:11px}
.attention-banner{font-size:9px;padding:10px 12px;align-items:flex-start}
.attention-banner .icon{margin-top:2px}
.attention-banner .btn{font-size:9px;padding:5px 8px;min-height:28px}
.online-strip{font-size:9px;line-height:1.8;align-items:flex-start}
.room-grid{grid-template-columns:1fr;gap:13px;margin-top:14px}
.rooms-toolbar{padding:12px;flex-wrap:wrap;gap:9px}
.rooms-toolbar .input-wrap{width:100%}
.rooms-toolbar .input-wrap input{width:100%}
.room-card{padding:19px}
.room-card .room-top{margin-bottom:16px}
.game-topline{align-items:flex-start;flex-direction:column;gap:13px}
.game-title-row h1{font-size:22px}
.game-controls{width:100%}
.game-controls .btn{font-size:9px;flex:1;min-height:31px}
.game-subline{gap:7px;font-size:9px}
.game-subline i{display:none}
.game-info-bar{font-size:8px;gap:8px;padding:10px 12px;margin-bottom:12px}
.game-layout{grid-template-columns:1fr;gap:12px}
.participants-col{display:none}
.game-center-col{min-width:0}
.table-panel{min-height:315px;padding:15px 17px}
.table-stage{height:245px}
.table-panel:before{inset:46px 15px 39px}
.table-panel:after{inset:52px 21px 45px}
.hand-cards{gap:5px;padding:19px 10px 15px}
.hand-cards .playing-card{width:28px;height:46px;padding:4px}
.hand-cards .playing-card .rank{font-size:16px}
.hand-cards .playing-card .suit{font-size:10px}
.hand-cards .playing-card .card-corner{font-size:7px}
.hand-top-note{font-size:8px;flex-wrap:wrap;gap:4px}
.hand-panel .panel-head{padding:14px 14px 0;gap:7px}
.hand-panel .panel-title h2{font-size:11px}
.hand-panel .panel-title .badge{font-size:8px}
.hand-foot{padding:9px 12px;font-size:8px}
.ledger-panel{padding:14px}
.ledger-grid{grid-template-columns:30px repeat(13,minmax(0,1fr));font-size:8px}
.ledger-grid .ledger-label{font-size:7px}
.events-panel .event-list{max-width:calc(100vw - 30px)}
.diagnostic-panel{margin-top:13px}
.diagnostic-tabs{gap:24px}
.diagnostic-tabs .tab{font-size:9px}
.diagnostic-grid{padding:18px;gap:18px}
.diagnostic-item .label{font-size:9px}
.diagnostic-item .value{font-size:14px}
.diagnostic-item .desc{font-size:8px}
.replay-controls{padding:13px 14px;margin-bottom:12px}
.replay-control-line{gap:7px}
.replay-control-line .btn{font-size:9px;min-height:29px}
.replay-control-line .timestamp{font-size:8px;margin-left:0}
.replay-control-line .speed-select{min-width:58px;font-size:9px}
.alert-summary{gap:10px}
.alert-summary-card{padding:14px;gap:12px}
.alert-summary-card strong{font-size:24px}
.alert-summary-card p{font-size:9px}
.alert-summary-card .alert-symbol{width:28px;height:28px}
.drawer-top{height:58px;padding:0 18px}
.drawer-body{padding:0 18px 20px}
.drawer-hero{padding:20px 0;gap:13px}
.drawer-hero h2{font-size:21px}
.drawer-bottom{padding:13px 18px;font-size:8px}
.drawer-bottom .btn{font-size:10px}
.drawer .tabs{gap:24px}
.drawer-action-bar{gap:7px}
.drawer-action-bar .btn{font-size:10px;min-height:32px}
.drawer-hand-preview .hand-cards{gap:4px}
.drawer-hand-preview .hand-cards .playing-card{width:25px;height:43px;padding:3px}
.drawer-hand-preview .hand-cards .rank{font-size:15px}
.drawer-hand-preview .hand-cards .suit{font-size:10px}
.drawer-hand-preview .hand-cards .card-corner{font-size:7px}
.user-state-grid{gap:16px}
.overlay-backdrop{padding:15px}
.drawer-backdrop{padding:0}
.modal{max-height:calc(100dvh - 30px);border-radius:12px}
.modal-header{padding:18px}
.modal-body{padding:18px}
.modal-footer{padding:14px 18px}
.modal-header h2{font-size:15px}
.modal-info{font-size:9px;padding:11px}
.form-group label{font-size:10px}
.modal-footer .btn{font-size:10px}
.search-modal{margin-top:5vh}
.search-modal-foot{font-size:8px;gap:12px}
.command-input{padding:14px 16px}
.command-input input{font-size:12px}
.search-results{max-height:53vh}
.search-result .result-label{font-size:11px}
.detail-hero{padding:19px;gap:13px;flex-wrap:wrap}
.detail-hero .page-actions{margin-left:0!important;flex:1 1 100%}
.detail-hero .page-actions .btn{margin:5px 0 0;font-size:10px}
.detail-meta-grid{padding:18px;grid-template-columns:1fr 1fr;gap:18px}
.detail-columns{gap:14px;margin-top:14px}
.detail-meta-item .label{font-size:9px}
.detail-meta-item .value{font-size:11px}
.settings-grid{padding:16px;gap:17px}
.role-card{padding:9px}
.role-card h4{font-size:9px}
.permissions-table td,.permissions-table th{padding:12px 8px;font-size:9px}
.permissions-table td:last-child{font-size:8px}
.setting-row{padding:18px}
.setting-row p{font-size:9px;line-height:1.8}
.setting-row h4{font-size:11px}
.help-grid{grid-template-columns:1fr}
.help-card{padding:13px}
.help-card h4{margin-top:5px}
.room-modal-seats{grid-template-columns:1fr 1fr}
.network-offline-banner{top:60px;padding:8px 14px;font-size:9px}
#toast-root{right:14px;left:14px;bottom:17px}
.toast{font-size:11px;padding:12px 14px;max-width:none}
.advanced-filters{padding:14px;gap:12px}
.filter-field{flex:1;min-width:100px}
.filter-field select{width:100%}
.filter-chips,.saved-views{padding:0 14px 13px}
.description-box{font-size:10px}
.modal-body p{font-size:10px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Supplementary interactive components */
.manage-actions{display:flex;flex-direction:column;gap:6px}
.manage-action{display:flex;align-items:center;width:100%;gap:12px;padding:12px 11px;border:1px solid #26364c;border-radius:8px;text-align:left;background:#162234;transition:.16s}
.manage-action:hover{background:#162234;border-color:#26364c}
.manage-action .manage-icon{width:31px;height:31px;border-radius:8px;background:#131f30;color:#bdcadd;display:flex;align-items:center;justify-content:center}
.manage-action strong{font-size:11px;font-weight:550;color:#ecf1f8}
.manage-action small{display:block;font-size:9px;color:#9aadc5;margin-top:3px}
.manage-action.danger .manage-icon{color:#bdcadd;background:#131f30}
.manage-action.danger strong{color:#bdcadd}
.manage-action>.icon{color:#9aadc5}
.session-choice{display:flex;align-items:center;width:100%;gap:12px;padding:16px 14px;border:1px solid #26364c;border-radius:9px;text-align:left;margin-top:10px}
.session-choice:hover{border-color:#3a506c;background:#162234}
.session-choice strong{font-size:12px;color:#bdcadd;font-weight:550}
.session-choice small{display:block;font-size:10px;color:#9aadc5;margin-top:4px}
.session-choice>.icon{color:#9aadc5}
.related-record{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #26364c;border-radius:7px;color:#bdcadd;font-size:11px}
.related-record:hover{background:#162234}
.related-record .tiny{font-size:9px}
.four-player .seat.top{top:4px;left:50%;transform:translateX(-50%)}
.four-player .seat.left,.four-player .seat.right{top:60px}
.four-player .seat-cardblock{top:111px}
.four-player .table-center{top:116px}
.four-player .table-center .stage-label{margin-bottom:8px}
.four-player .table-center .played-cards{min-height:48px}
.four-player .table-center .playing-card{width:29px;height:42px;padding:3px 4px}
.four-player .table-center .playing-card .rank{font-size:14px}
.four-player .table-center .playing-card .suit{font-size:10px}
.four-player .table-center .playing-card .card-corner{font-size:8px}
.four-player .table-next{margin-top:7px}
.field-readonly{background:#162234;border-color:#26364c;color:#bdcadd}
.game-disabled-message{font-size:10px;line-height:1.9;color:#bdcadd;padding:18px;text-align:center}
.table-watermark{letter-spacing:.6px}
.game-info-bar{font-size:10px}

@media(max-width:640px){.session-choice{padding:13px 11px;gap:9px}
.session-choice strong{font-size:11px}
.session-choice small{font-size:9px}
.related-record{flex-wrap:wrap;font-size:10px}
.game-info-bar{font-size:8px}
.related-record .status{font-size:8px}
.four-player .seat.top{top:4px}
.four-player .table-center{top:116px}
}

/* Final readability and spacing pass: keep colour for meaning, not body text. */
.game-subline,.game-info-bar{color:#bdcadd}
.game-info-bar .right-info{color:#bdcadd}
.participant .name{color:#ecf1f8;font-size:12px}
.participant .role-label{color:#9aadc5;font-size:10px}
.participant-data{color:#bdcadd}
.participant-data strong{color:#bdcadd}
.participant-note{color:#bdcadd;line-height:1.9}
.session-info-row{color:#bdcadd}
.session-info-row span:last-child{color:#bdcadd}
.session-panel h3{color:#ecf1f8}
.table-panel{min-height:346px}
.table-stage{height:258px}
.table-center{top:84px}
.table-center .stage-label{font-size:10px;color:#9aadc5;margin-bottom:13px}
.table-next{color:#8498b3;font-size:10px;margin-top:12px}
.seat.self{bottom:2px}
.seat.self .seat-remaining{font-size:9px;color:#9aadc5}
.seat .seat-name{color:#e5edf8;font-size:11px}
.seat .seat-remaining{color:#9aadc5}
.seat.left,.seat.right{top:23px}
.table-head{color:#9aadc5}
.hand-top-note{color:#bdcadd}
.hand-foot{color:#bdcadd}
.hand-cards .playing-card{width:42px;height:63px}
.hand-cards .playing-card .rank{font-size:21px}
.hand-cards .playing-card .suit{font-size:15px}
.hand-cards .playing-card .card-corner{font-size:10px}
.event-item .event-name{color:#ecf1f8;font-size:12px}
.event-item.new .event-name{color:#bdcadd}
.event-item .event-name span{color:#bdcadd;font-size:10px}
.event-item .event-top{color:#bdcadd}
.event-item .event-note{color:#9aadc5;font-size:9px}
.event-item .pass-label{color:#bdcadd}
.event-filter{font-size:10px;color:#bdcadd}
.event-filter.active{color:#bdcadd}
.events-panel .panel-caption{color:#9aadc5}
.events-bottom{color:#bdcadd}
.ledger-grid .rank-cell{color:#bdcadd}
.ledger-grid .seen-cell{color:#bdcadd}
.ledger-grid .remain-cell{color:#bdcadd}
.ledger-head span,.ledger-disclaimer{color:#bdcadd}
.diagnostic-item .label{color:#bdcadd;font-size:10px}
.diagnostic-item .value{color:#bdcadd;font-size:16px}
.diagnostic-item .desc{color:#9aadc5;font-size:9px}
.timeline-point{color:#bdcadd}
.timeline-point small{color:#9aadc5}
.diagnostic-copy{color:#bdcadd}
.diagnostic-copy strong{color:#ecf1f8}
.room-card h3{color:#ecf1f8}
.room-card .room-id,.room-card .room-foot,.room-players-count{color:#bdcadd}
.monitor-facts span{color:#bdcadd}
.monitor-facts strong{color:#bdcadd}
.monitor-mini-hand .mini-hand-lock{color:#bdcadd}
.monitor-card .mini-event{color:#bdcadd}
.monitor-card-foot{color:#bdcadd}
.detail-hero .hero-sub,.detail-meta-item .label{color:#bdcadd}
.detail-meta-item .value{color:#bdcadd}
.detail-note{color:#bdcadd}
.drawer-top h3{color:#ecf1f8}
.drawer-hero h2{color:#ecf1f8}
.drawer-id,.drawer-hero .drawer-id{color:#bdcadd}
.drawer-section-title{color:#ecf1f8}
.user-state-grid .state-item{color:#bdcadd}
.user-state-grid .state-item strong{color:#ecf1f8}
.note-card,.description-box{color:#bdcadd}
.description-box h4{color:#bdcadd}
.session-card .device-name{color:#ecf1f8}
.session-card .device-id{color:#bdcadd}
.session-info-row{font-size:10px}
.detail-meta-grid .label{font-size:10px}
.permissions-table td{color:#ecf1f8}
.permissions-table td:last-child{color:#bdcadd}
.permissions-table th{color:#bdcadd}
.role-card h4{color:#ecf1f8}
.role-card p{color:#bdcadd}
.settings-caption{color:#9aadc5}
.setting-row h4{color:#ecf1f8}
.setting-row p{color:#bdcadd}
.modal-header h2{color:#ecf1f8}
.modal-subtitle,.modal-body p{color:#bdcadd}
.form-group label{color:#bdcadd}
.form-group input:not([type=checkbox]):not([type=radio]),.form-group textarea,.form-group select{color:#ecf1f8}
.form-group .help-text{color:#9aadc5}
.modal-info{color:#bdcadd}
.modal-info.warning{color:#bdcadd}
.modal-info.danger{color:#bdcadd}
.modal-footer{background:#162234}
.modal-body .help-card h4{color:#bdcadd}
.modal-body .help-card p{color:#bdcadd}
.toast{color:#ecf1f8}
.user-key-state{background:#162234}
.room-warning{color:#bdcadd}
.table-watermark{color:#8498b333}
.game-center-col{min-width:0}

@media(min-width:1600px){.table-panel{min-height:364px}
.table-stage{height:277px}
.table-center{top:99px}
.hand-cards .playing-card{width:44px;height:65px}
.four-player .table-center{top:130px}
}

@media(max-width:1250px){.table-panel{min-height:331px}
.table-stage{height:263px}
.table-center{top:82px}
.hand-cards .playing-card{width:30px;height:49px}
.hand-cards .playing-card .rank{font-size:16px}
.hand-cards .playing-card .suit{font-size:11px}
.hand-cards .playing-card .card-corner{font-size:8px}
.participant .name{font-size:10px}
.participant .role-label{font-size:9px}
.session-info-row{font-size:9px}
}

@media(max-width:640px){.table-panel{min-height:332px}
.table-stage{height:262px}
.table-center{top:84px}
.table-center .stage-label{font-size:9px}
.table-next{font-size:9px}
.hand-cards .playing-card{width:27px;height:46px}
.hand-cards .playing-card .rank{font-size:16px}
.hand-cards .playing-card .suit{font-size:10px}
.hand-cards .playing-card .card-corner{font-size:7px}
.diagnostic-item .value{font-size:15px}
.diagnostic-item .label{font-size:9px}
.diagnostic-item .desc{font-size:8px}
.four-player .table-center{top:114px}
.four-player .table-next{margin-top:7px;font-size:8px}
.drawer-hand-preview .hand-cards .playing-card{width:25px;height:43px}
}


/* ==========================================================================
   CardScope 1.1 — MIDNIGHT / BRASS
   Palette inspired by the supplied reference. Existing v1.0 routes, data,
   event handlers, keyboard actions and DOM contracts are retained.
   Gold = navigation/action. Teal = healthy. Never conflate the two.
   ========================================================================== */
:root { color-scheme: dark; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-synthesis: none; }
::selection { background: #e7c58c35; color: #fff7e8; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { border-color: #bca477 !important; box-shadow: 0 0 0 3px #e7c58c0c !important; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }
input, select, textarea { color: var(--ink); }
select option { background: #172437; color: var(--ink); }
button:disabled { opacity: .38; }
.muted { color: var(--muted); }
.subtle { color: var(--sub); }
.green { color: var(--green); }
.orange { color: var(--orange); }
.red { color: var(--red); }
.blue { color: var(--blue); }
.code { background: #223249; color: #bdcde0; }
h1 { color: #f1f5fb; font-size: 28px; font-weight: 650; letter-spacing: -.5px; }
h2, h3, h4 { color: var(--ink); }
.divider { background: var(--line-soft); }
.empty { color: var(--sub); }
.empty-icon { background: #1e2e44; color: var(--muted); }

/* Stable dark shell, warm selected edge. */
.sidebar { width: var(--nav-width); background: #0d1522; border-right: 1px solid #202e41; padding: 29px 15px 17px; color: #a0b0c5; }
.brand { padding: 0 10px 31px; gap: 11px; }
.brand-mark { color: var(--gold); width: 33px; height: 38px; }
.brand-mark:before { border-color: #a78a58; background: transparent; }
.brand-mark:after { border-color: #e7c58c; background: #0d1522; }
.brand-word { font-size: 22px; font-weight: 640; color: #f0f4fb; letter-spacing: -.45px; }
.brand-caption { font-size: 9px; color: #8396b2; letter-spacing: 1.8px; margin-top: 5px; }
.nav-group { margin-top: 24px; }
.nav-label { color: #7185a1; letter-spacing: 1.15px; font-size: 10px; padding-left: 16px; margin-bottom: 12px; }
.nav-item { height: 46px; border: 1px solid transparent; padding: 0 14px; color: #b2bfd1; gap: 12px; margin: 5px 0; border-radius: 8px; }
.nav-item > .icon { color: #93a6bf; }
.nav-item:hover { background: #182538; border-color: #26364b; color: #f1f5fb; }
.nav-item.active { color: var(--gold); background: linear-gradient(105deg,#e7c58c16,#e7c58c07); border-color: #e7c58c20; box-shadow: none; font-weight: 600; }
.nav-item.active:before { content: ''; position: absolute; width: 2px; height: 22px; background: var(--gold); left: -1px; border-radius: 0 2px 2px 0; }
.nav-item.active .icon { color: var(--gold); }
.nav-badge { background: #1d2c41; color: #9badc6; line-height: 20px; font-size: 10px; }
.nav-item.active .nav-badge { background: #e7c58c13; color: #e7c58c; }
.nav-dot { background: var(--green); box-shadow: 0 0 0 3px #70d5b30c; }
.sidebar-note { border: 1px solid #293649; border-radius: 9px; background: linear-gradient(130deg,#e7c58c05,transparent 75%); padding: 16px 13px; margin: 24px 2px 15px; }
.sidebar-note .note-icon { color: var(--gold); margin-bottom: 9px; }
.sidebar-note h4 { color: #d6c3a2; font-size: 12px; font-weight: 550; }
.sidebar-note p { color: #8398b3; font-size: 10px; line-height: 1.9; }
.sidebar-note .note-link { color: #dbc095; font-size: 10px; }
.sidebar-note .note-link:hover { color: #f4d7a8; }
.server-status { color: #91a4bd; border-bottom: 1px solid #243247; font-size: 10px; }
.server-status span:last-child { color: #7185a2; }
.profile { color: #c9d6e7; padding-top: 17px; }
.profile-name { font-size: 12px; color: #e3ebf7; }
.profile-role { font-size: 10px; color: #8296b0; }
.profile:hover .profile-name { color: var(--gold); }
.workspace { background: var(--bg); }
.topbar { height: 66px; background: #101a2a; border-bottom: 1px solid #223047; padding: 0 32px; gap: 18px; }
.breadcrumb { color: #8197b5; font-size: 11px; gap: 12px; }
.breadcrumb .icon { color: #627995; }
.breadcrumb strong { color: #c2d0e3; }
.global-search { background: #111e30; border: 1px solid #29394f; border-radius: 7px; color: #7f95b2; width: 260px; height: 34px; }
.global-search:hover { background: #16253a; border-color: #4a5b71; }
.global-search kbd { background: #1d2e46; border-color: #30435d; color: #93a9c7; }
.top-demo { background: #e7c58c07; color: #ccaf7f; border-color: #e7c58c24; font-size: 9px; }
.top-live { color: var(--green); font-size: 10px; }
.live-dot { color: var(--green); box-shadow: 0 0 0 3px #70d5b30d; }
.top-clock { color: #92a7c3; }
.top-divider { background: var(--line); }
.icon-btn { color: #93a7c0; }
.icon-btn:hover { background: #223249; color: #e7c58c; }
.icon-btn.danger:hover { color: var(--red); background: var(--red-bg); }
.icon-btn .notification-dot { background: #e1b476; border-color: #101a2a; }
.main { padding: 30px 32px 25px; max-width: 1840px; }
.page-header { min-height: 78px; margin-bottom: 24px; }
.eyebrow { color: #839bbd; font-size: 9px; letter-spacing: 2px; margin-bottom: 7px; }
.page-subtitle { color: #8ea2bc; font-size: 12px; margin-top: 7px; }
.page-actions { gap: 10px; }
.page-footer { color: #7088a6; font-size: 9px; padding-top: 23px; }
.footer-brand { color: #7690b0; font-size: 10px; }

/* Controls — no saturated green primary buttons. */
.btn { background: #142033; border: 1px solid #2c3c52; color: #c7d3e3; border-radius: 7px; min-height: 36px; padding: 7px 13px; font-size: 11px; font-weight: 500; }
.btn:hover { background: #203149; border-color: #476080; }
.btn.primary { background: linear-gradient(120deg,#edcf9e,#e2bd81); border-color: #e6c38b; color: #172236; box-shadow: inset 0 1px 0 #fff8e336, 0 2px 7px #03091324; font-weight: 650; }
.btn.primary:hover { background: linear-gradient(120deg,#f4dab1,#e8c68f); border-color: #f0d3a4; box-shadow: inset 0 1px 0 #fff5e552, 0 3px 11px #050b182b; }
.btn.soft { color: var(--gold); background: #e7c58c0c; border-color: #e7c58c30; }
.btn.soft:hover { background: #e7c58c18; border-color: #e7c58c55; }
.btn.danger { background: #ed9a9c; border-color: #eea1a3; color: #302030; }
.btn.danger:hover { background: #f3b0b2; }
.btn.danger-outline { background: #f3919107; color: var(--red); border-color: #f3919140; }
.btn.plain { background: transparent; border-color: transparent; }
.btn.plain:hover { color: var(--gold); }
.text-btn { color: var(--blue); }
.text-btn:hover { color: #b7d4fb; }
.text-btn.red { color: var(--red); }
.status { border: 1px solid transparent; border-radius: 5px; font-size: 10px; line-height: 20px; padding: 0 6px; }
.status.green { color: #70d5b3; background: #70d5b30d; border-color: #70d5b311; }
.status.blue { color: #8db8ee; background: #8db8ee10; border-color: #8db8ee12; }
.status.orange { color: #e1b476; background: #e1b4760d; border-color: #e1b47617; }
.status.red { color: #f39191; background: #f3919111; border-color: #f391911c; }
.status.gray { color: #94a7c0; background: #809bb510; border-color: #809bb517; }
.status.purple { color: #b6a8e0; background: #b6a8e011; border-color: #b6a8e018; }
.status.outline { background: transparent; border-color: currentColor; }
.badge { color: #96a9c3; background: #223249; border: 1px solid #30405a; font-size: 9px; line-height: 17px; }
.badge.pro { color: #e5c68f; background: #e7c58c12; border: 1px solid #e7c58c23; font-size: 8px; letter-spacing: .45px; }

/* Consistent illustrated avatars — not initials, emoji, or remote profile URLs. */
.avatar.portrait { width: 38px; height: 38px; border-radius: 11px; background: transparent; box-shadow: 0 0 0 1px #ffffff0c; color: transparent; }
.avatar.portrait > .portrait-art { display: block; width: 100%; height: 100%; border-radius: inherit; flex-shrink: 0; }
.avatar.portrait.sm { width: 28px; height: 28px; border-radius: 8px; }
.avatar.portrait.lg { width: 52px; height: 52px; border-radius: 15px; }
.avatar.portrait.xl { width: 64px; height: 64px; border-radius: 18px; }
.avatar .presence { width: 9px; height: 9px; right: -2px; bottom: -2px; border: 2px solid #162234; background: var(--green); }
.avatar .presence.offline { background: #71829a; }
.avatar-stack .avatar { border: 2px solid #162234; width: 28px; height: 28px; border-radius: 9px; box-shadow: none; }
.avatar-stack .more-count { background: #263952; color: #abc0da; }
.profile .avatar.portrait { width: 32px; height: 32px; border: 0; border-radius: 9px; }

/* Cards, section rhythm and charts. */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 5px #050c1810; }
.panel-head { padding: 21px 23px 0; }
.panel-title h2 { color: #e6eef9; font-size: 14px; font-weight: 580; }
.panel-caption { color: #8499b4; font-size: 10px; }
.panel-body { padding: 21px 23px; }
.panel-foot { color: #8da2bd; border-top: 1px solid #26364b; padding: 14px 22px; font-size: 10px; }
.metric-grid { gap: 17px; }
.metric-card { padding: 20px 22px 19px; min-height: 143px; background: linear-gradient(115deg,#1b2a3f,#152234 80%); transition: border-color .18s, background .18s; }
.metric-card:first-child { border-color: #e7c58c35; background: linear-gradient(115deg,#243043,#1a2739 85%); box-shadow: inset 0 -1px 0 #e7c58cb0; }
.metric-card:hover { border-color: #63748c; }
.metric-top { color: #a8bad2; font-size: 11px; }
.metric-icon { color: #e7c58c; background: #e7c58c0d; border: 1px solid #e7c58c0d; width: 31px; height: 31px; border-radius: 9px; }
.metric-icon.blue { color: #70d5b3; background: #70d5b30c; border-color: #70d5b30a; }
.metric-icon.purple { color: #8db8ee; background: #8db8ee0d; border-color: #8db8ee0a; }
.metric-icon.orange { color: #e1b476; background: #e1b4760c; border-color: #e1b4760a; }
.metric-value { color: #edf3fc; font-size: 35px; font-weight: 570; letter-spacing: -.9px; }
.metric-main { margin-top: 9px; }
.metric-unit { color: #91a4bf; }
.metric-bottom { color: #879ebc; margin-top: 13px; font-size: 10px; }
.metric-bottom strong { color: #70d5b3; }
.metric-card .sparkline { right: 21px; bottom: 45px; opacity: .85; }
.metric-link:hover { box-shadow: none; }
.overview-middle, .overview-bottom { gap: 19px; margin-top: 21px; }
.segmented { background: #101c2d; border-color: #27384f; border-radius: 6px; }
.segmented button { color: #8ea5c1; }
.segmented button.active { color: #e5c68f; background: #273347; box-shadow: 0 1px 3px #050c181c; }
.chart-legend { color: #93a8c3; padding-top: 19px; }
.chart-wrap { height: 219px; }
.chart-tooltip { color: #e5edfa; background: #202f45f5; border: 1px solid #3e536e; box-shadow: 0 8px 22px #040b1a4a; }
.chart-foot { color: #7d93af; }
.donut-center strong { color: #e8f0fa; }
.donut-center span { color: #8ba1bd; }
.scene-row { color: #a3b5ce; }
.scene-row strong { color: #dce7f7; }
.scene-note { background: #111e30; color: #8ba1bd; border: 1px solid #25374e; border-radius: 7px; }
.scene-note .icon { color: #9cafc9; }
.alert-symbol { background: #e1b47612; color: #e1b476; }
.alert-symbol.high { background: #f3919110; color: #f39191; }
.alert-teaser { border-color: #26374c; }
.alert-teaser:hover h4 { color: #e7c58c; }
.alert-teaser h4 { color: #cbd7e8; font-size: 12px; }
.alert-teaser p { color: #8a9fbb; }
.alert-teaser .alert-time { color: #7e95b2; }
.soft-footer { background: #111e30; color: #93a6be; }

/* Directory — five retained counters with restrained emphasis, not new features. */
.panel.mini-stat-row { background: transparent; border: 0; overflow: visible; box-shadow: none; gap: 15px; margin-bottom: 22px; }
.mini-stat { background: linear-gradient(115deg,#1a283c,#162234); border: 1px solid #29384d; border-radius: 10px; padding: 18px 20px 15px; min-height: 99px; transition: border-color .15s, background .15s; }
.mini-stat:not(:last-child):after { display: none; }
.mini-stat p { color: #9bb0cb; font-size: 11px; }
.mini-stat strong { color: #edf3fc; font-size: 30px; font-weight: 560; line-height: 1.25; margin-top: 10px; }
.mini-stat strong.orange { color: #e1b476; }
.mini-stat.is-current { background: linear-gradient(110deg,#243145,#1c293d); border-color: #e7c58c45; box-shadow: inset 0 -1px 0 #e7c58cb0; }
.mini-stat:hover { background: #203149; border-color: #657386; }
.mini-stat .stat-ornament { position: absolute; right: 19px; top: 17px; color: #7a8fae; }
.mini-stat.is-current .stat-ornament { color: #e7c58c; }
.mini-stat[data-value=online] .stat-ornament { color: #70d5b3; }
.mini-stat[data-value=issues] .stat-ornament { color: #e1b476; }
.mini-stat .status { right: 18px; bottom: 18px; font-size: 9px; line-height: 19px; }
.tabs { border-bottom-color: #29384e; height: 51px; gap: 26px; }
.tab { color: #8fa5c1; font-size: 11px; }
.tab:hover { color: #d5c19f; }
.tab.active { color: #e7c58c; font-weight: 550; }
.tab.active:after { background: #e7c58c; height: 2px; }
.tab-count { color: #8299b7; background: #223249; }
.tab.active .tab-count { color: #dfc394; background: #e7c58c13; }
.toolbar { padding: 16px 22px 13px; gap: 10px; }
.input-wrap>.icon { color: #7c93b0; }
.input-wrap input { background: #111d2e; color: #d8e4f5; border-color: #2a3b53; border-radius: 6px; width: 270px; height: 36px; font-size: 11px; }
.input-wrap input::placeholder { color: #8198b5; }
select { background-color: #121f31; color: #b7c8dd; border-color: #2a3b53; border-radius: 6px; height: 36px; font-size: 11px; }
.advanced-filters { background: #111d2f; border-color: #263950; }
.filter-field label { color: #95abc7; }
.filter-chips { padding-bottom: 12px; }
.filter-chip { color: #d2c19d; background: #e7c58c09; border-color: #e7c58c28; }
.filter-chip button { color: #b39c7a; }
.saved-views { gap: 9px; padding-bottom: 12px; }
.saved-view { color: #96acc8; background: #1a293d; border: 1px dashed #3a4e68; }
.saved-view:hover { background: #24364e; color: #d2dfef; }
.table-meta { background: #131f30; border-color: #26364d; color: #8198b6; min-height: 35px; padding: 8px 22px; font-size: 10px; }
.table-meta .selected-bar { color: #e4c68f; }
.table-wrap { scrollbar-color: #3a4d66 #111d2f; scrollbar-width: thin; }
.data-table th { background: #142032; color: #92a7c1; height: 42px; font-size: 10px; border-bottom: 1px solid #293a52; font-weight: 450; }
.data-table td { height: 67px; font-size: 11px; color: #b9c8de; border-color: #24344a; padding-top: 11px; padding-bottom: 11px; }
.data-table tbody tr:hover td { background: #1c2d43; }
.data-table .user-name { color: #e8effa; font-size: 13px; font-weight: 560; }
.data-table .user-name:hover { color: #e7c58c; }
.user-id { color: #8199b8; font-size: 9px; letter-spacing: .25px; margin-top: 3px; }
.user-cell { gap: 11px; }
.table-second { color: #859ab6; font-size: 10px; line-height: 1.55; margin-top: 4px; }
.table-second.orange { color: #cfa46b; }
.users-table td { height: 67px; }
.users-table .action-col { background: #162234; box-shadow: -8px 0 12px -10px #050b15a0; }
.users-table th.action-col { background: #142032; }
.users-table .star-btn { color: #4d617c; }
.users-table .star-btn.active { color: #d3b67e; }
.star-btn.active svg { fill: #e7c58c0f; }
.row-actions { gap: 10px; }
.row-actions .text-btn { font-size: 11px; }
.users-table .row-actions .icon-btn { width: 27px; }
.page-btn { border-color: #2b3d55; background: #132035; color: #a3b7d1; border-radius: 5px; }
.page-btn:hover { background: #263951; border-color: #46607e; }
.page-btn.active { color: #e7c58c; background: #e7c58c10; border-color: #e7c58c4a; }

/* Monitoring, room cards and callouts. */
.attention-banner, .online-strip { background: #152837; border-color: #2e4a53; color: #a5c0c8; }
.attention-banner.warning { background: #e1b47609; color: #d9b580; border-color: #e1b47632; }
.attention-banner.error { background: #f3919109; color: #e5a0a3; border-color: #f3919130; }
.attention-banner.replay-banner { background: #8db8ee0a; color: #adc5e4; border-color: #8db8ee30; }
.monitor-top { border-color: #2b3b51; }
.monitor-title { color: #dce6f4; }
.monitor-grid { padding: 21px; gap: 17px; }
.monitor-card { background: #142135; border-color: #2b3e58; border-radius: 10px; }
.monitor-card:hover { background: #19293e; border-color: #65738a; box-shadow: 0 4px 15px #02081420; }
.monitor-card-head { padding: 18px; }
.monitor-card-body { padding: 0 18px 16px; }
.monitor-facts span { color: #859cba; }
.monitor-facts strong { color: #b8cae0; }
.monitor-mini-hand { background: #0f1c2e; border: 1px solid #253951; border-radius: 7px; }
.monitor-mini-hand .mini-hand-lock { color: #839ab8; }
.monitor-card .mini-event { color: #93a8c5; }
.monitor-card-foot { background: #111e30; color: #8ea7c4; border-color: #273b54; }
.mini-live { background: #70d5b3; }
.room-card { background: linear-gradient(130deg,#19283b,#152234 80%); }
.room-icon { color: #e3c38e; background: #e7c58c0d; border: 1px solid #e7c58c14; }
.room-card h3 { color: #e3edf9; }
.room-card .room-id, .room-card .room-foot, .room-players-count { color: #8ea6c6; }
.empty-seat { color: #728ba9; border-color: #3d5271; }
.room-card .room-foot { border-color: #2a3c55; }
.room-warning { color: #d4b383; background: #e1b4760d; }
.seat-box { background: #122034; border-color: #2b3e58; }
.room-modal-seats .seat-box.empty-slot { color: #7b94b3; }

/* Match workspace. Midnight-blue felt, ivory cards, restrained brass ring. */
.back-link { color: #8ea7c7; }
.back-link:hover { color: #e7c58c; }
.game-title-row h1 { color: #edf3fc; }
.game-subline, .game-info-bar { color: #97acc9; }
.game-subline i { background: #344962; }
.game-info-bar { background: #142236; border-color: #2a3e59; }
.game-info-bar .right-info { color: #8098b8; }
.participant-head { color: #cbd9eb; border-color: #2a3b51; }
.participant { border-color: #24364c; }
.participant.active { background: #e7c58c07; }
.participant.active:before { background: #e7c58c; }
.participant .avatar.portrait { width: 32px; height: 32px; border-radius: 9px; }
.participant .name { color: #dce8f9; }
.participant .role-label { color: #8da4c2; }
.participant-data { color: #93a9c6; }
.participant-data strong { color: #e7c58c; }
.participant-note { color: #8199b7; }
.session-panel h3 { color: #c7d7ec; }
.session-info-row { color: #869fbd; }
.session-info-row span:last-child { color: #b0c3db; }
.table-panel { background: radial-gradient(ellipse at 50% 38%,#203a51 0%,#152a40 58%,#112237 100%); border: 1px solid #354960; border-radius: 12px; color: #cfdaeb; box-shadow: inset 0 1px 0 #829ab90b, 0 6px 15px #030a1726; }
.table-panel:before { border-color: #d7bb8424; }
.table-panel:after { border-color: #d7bb8410; }
.table-head { color: #93abc9; }
.table-head .table-brand { color: #c5b18e; opacity: .58; }
.seat .avatar.portrait { border: 2px solid #b8cbe22c; background: none; color: transparent; box-shadow: 0 3px 7px #040b182e; }
.seat .seat-name { color: #e1ebf9; }
.seat .seat-remaining { color: #9bb2d0; }
.seat.self { border-color: #e7c58c54; background: #e7c58c09; }
.seat.self .avatar.portrait { width: 30px; height: 30px; border-radius: 50%; }
.seat.self .seat-remaining { color: #b6c7dc; }
.seat-role { background: #e3c48e; color: #17263a; border-color: #f0d5a6; }
.table-center .stage-label { color: #a9bfd8; }
.table-next { color: #c4d3e7; }
.table-next .dot { background: #e7c58c; }
.card-back { background: repeating-linear-gradient(45deg,#8db8ee1a 0,#8db8ee1a 2px,#344f752e 2px,#344f752e 5px); border-color: #718ab35e; box-shadow: 1px 0 3px #02091635; }
.seat-cardblock { color: #7f9bbf; }
.table-watermark { color: #bfcedc45; }
.playing-state { color: #dfc28f; }
.full-snapshot-note { color: #b5c4d243; }
.playing-card { background: linear-gradient(150deg,#fffdf7,#efeee7); border: 1px solid #e7e3d7; color: #263246; box-shadow: 0 3px 7px #0207112e; border-radius: 5px; }
.playing-card.red-suit { color: #b44e58; }
.played-cards .playing-card { box-shadow: 0 5px 12px #030b1b50; }
.hand-panel { border-color: #30435d; background: #17263a; }
.hand-panel .panel-title h2 { color: #e0eaf8; }
.hand-top-note, .hand-foot { color: #8fa7c6; }
.hand-foot { border-color: #2a3e58; }
.hand-chip { color: #d9e6f6; border-color: #415876; background: #21334d; }
.hand-lock { color: #a0b4cc; background: repeating-linear-gradient(-45deg,transparent,transparent 12px,#a9bdde03 12px,#a9bdde03 24px); }
.hand-lock .icon { color: #cbb389; }
.hand-lock p { color: #91a8c8; }
.ledger-head span, .ledger-disclaimer { color: #859dbd; }
.ledger-grid .ledger-label { color: #859ebb; }
.ledger-grid .rank-cell { color: #c7d8ee; }
.ledger-grid .seen-cell { background: #70d5b30b; color: #8acdb9; }
.ledger-grid .remain-cell { color: #839bbb; }
.ledger-disclaimer { border-color: #314761; }
.events-panel { background: #152336; }
.events-panel .panel-head, .events-bottom { border-color: #2c3e58; }
.events-panel .panel-caption, .events-bottom { color: #879ebd; }
.event-filter { color: #8ba4c4; }
.event-filter.active { background: #e7c58c10; color: #e0c38e; }
.event-list { scrollbar-color: #3f5777 transparent; }
.event-item { border-color: #334862; }
.event-item:before { background: #617b9c; border-color: #152336; }
.event-item.new:before { background: #e7c58c; box-shadow: 0 0 0 3px #e7c58c0e; }
.event-item .event-top { color: #8da4c3; }
.event-item .event-name { color: #c9d8eb; }
.event-item.new .event-name { color: #e5c78f; }
.event-item .event-name span, .event-item .event-note { color: #849cbb; }
.event-item .pass-label { color: #9bb1cd; background: #203149; }
.event-item.selected { background: #e7c58c09; }
.event-list button.event-item:hover { background: #1e3048; }
.diagnostic-item { border-color: #2d415a; }
.diagnostic-item .label { color: #96acc9; }
.diagnostic-item .value { color: #d1e1f6; }
.diagnostic-item .desc { color: #869dbc; }
.timeline-point { color: #b9cce4; border-color: #344b66; }
.timeline-point:before { background: #e7c58c; border-color: #18283b; box-shadow: 0 0 0 1px #465975; }
.timeline-point small { color: #8ca4c3; }
.diagnostic-copy { color: #9eb4cf; }
.diagnostic-copy strong { color: #d5e3f6; }
.replay-controls { background: #152337; border-color: #2a3c57; }
.replay-range { accent-color: #e7c58c; }
.replay-control-line .timestamp { color: #a7bdda; }
.range-labels { color: #839cbe; }
.game-disabled-message { color: #d0b890; }

/* Detail, roles and every overlay share the same surface hierarchy. */
.alert-summary-card { background: linear-gradient(125deg,#1b2a3f,#162234); }
.alert-summary-card strong { color: #e9f1fc; }
.alert-summary-card p, .alert-title-cell p { color: #8aa2c1; }
.alert-title-cell h4 { color: #cbd9ed; }
.severity.high { color: #f39191; }
.severity.medium { color: #e1b476; }
.severity.low { color: #8eb9ed; }
.description-box, .note-card { background: #122035; border-color: #304560; color: #a6bbd6; }
.description-box h4 { color: #d6e3f5; }
.detail-hero h2 { color: #ebf2fc; }
.detail-hero .hero-sub, .detail-meta-item .label { color: #92aac9; }
.detail-meta-item .value { color: #cadbef; }
.detail-note { color: #a0b6d1; }
.session-card { background: #15253a; border-color: #2b405b; }
.session-card .device-name { color: #d4e1f4; }
.session-card .device-id { color: #89a2c4; }
.vertical-timeline .vt-item { color: #b5c9e2; border-color: #324963; }
.vertical-timeline .vt-item:before { background: #d8bd8e; border-color: #152437; }
.vertical-timeline time { color: #8ba3c2; }
.user-key-state { background: #122035; border-color: #2e445f; }
.user-state-grid .state-item { color: #8fa8c8; }
.user-state-grid .state-item strong { color: #c7d9ef; }
.role-card { background: #142235; border-color: #2b405b; }
.role-card.active { background: #e7c58c08; border-color: #e7c58c4d; }
.role-card:hover { border-color: #617690; }
.role-card h4 { color: #d5e4f6; }
.role-card p { color: #8ba5c6; }
.role-icon { color: #d6bb8c; background: #e7c58c0c; }
.permissions-table th { background: #111e30; color: #99afcc; border-color: #2d425d; }
.permissions-table td { color: #bdcfe6; border-color: #293c57; }
.permissions-table td:last-child { color: #869ebf; }
.permission-check { color: #70d5b3; }
.permission-denied { color: #637b9c; }
.setting-row { border-color: #2b3f59; }
.setting-row h4 { color: #d6e4f7; }
.setting-row p, .settings-caption { color: #8ea8c9; }
.switch { background: #364c68; }
.switch:before { background: #ccdaed; box-shadow: 0 1px 3px #0409174c; }
.switch.on { background: #e0c18b; }
.switch.on:before { background: #15253a; }
.restricted-box { color: #95aece; border-color: #3e5575; background: #111e30; }
.restricted-box h3 { color: #d0def2; }
.audit-table .audit-detail { color: #a6bcda; }
.overlay-backdrop { background: #030916ad; backdrop-filter: blur(4px); }
.drawer-backdrop { background: #0309167d; backdrop-filter: blur(2px); }
.drawer { background: #142135; border-left: 1px solid #364b67; box-shadow: -18px 0 60px #01071650; }
.drawer-top { background: #111d2e; color: #95aecf; border-color: #2d415b; }
.drawer-top h3 { color: #d7e4f7; }
.drawer-hero h2 { color: #edf3fc; }
.drawer-id, .drawer-hero .drawer-id { color: #8da8cb; }
.drawer-section-title { color: #c9dbf1; }
.drawer-bottom { background: #111d2e; border-color: #2e425d; color: #809bbe; }
.drawer-hand-preview { background: #18293e; border-color: #354e6d; }
.drawer-note-form input { background: #101d2f; border-color: #324b69; color: #c9dbee; }
.modal { background: #162438; border: 1px solid #3b506c; border-radius: 12px; box-shadow: 0 28px 90px #02071580; }
.modal-header { background: #17263a; border-color: #2e425d; }
.modal-header h2 { color: #e0ebf9; font-weight: 600; }
.modal-subtitle, .modal-body p { color: #a3b9d5; }
.modal-footer { background: #121f32; border-color: #2d435f; }
.form-group label { color: #b9cce5; }
.form-group label .required { color: #f39191; }
.form-group input:not([type=checkbox]):not([type=radio]), .form-group textarea, .form-group select { background-color: #101d2f; border-color: #364e6e; color: #d0e0f5; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #6983a6; }
.form-group .help-text { color: #8aa4c7; }
.form-group .error-text { color: #f39191; }
.form-group.has-error textarea, .form-group.has-error input { border-color: #f39191 !important; }
.radio-option { background: #132239; border-color: #334c6b; }
.radio-option span { color: #bbd0e9; }
.radio-option small { color: #8da8cb; }
.confirm-checkbox { color: #d9c092; }
.modal-info { background: #8db8ee08; border-color: #8db8ee2b; color: #abc3e2; }
.modal-info.warning { background: #e1b4760a; border-color: #e1b47632; color: #dbbd8e; }
.modal-info.danger { background: #f3919109; border-color: #f3919133; color: #e5a2a7; }
.column-option { color: #b5cbe7; border-color: #334a69; background: #142238; }
.command-input { color: #91abcf; border-color: #324967; }
.command-input input { color: #d9e6f8; }
.command-input input::placeholder { color: #88a2c4; }
.command-input kbd { color: #91aacb; border-color: #3a5171; }
.search-group-label { color: #83a0c5; }
.search-result { color: #c5d9f2; }
.search-result:hover, .search-result.focused { background: #243750; }
.search-result .result-desc, .search-result .result-type { color: #90aacc; }
.search-modal-foot { background: #122036; border-color: #304a69; color: #8eabd0; }
.toast { background: #1b2d44; border-color: #415b78; color: #c6dfd9; box-shadow: 0 12px 34px #02071465; }
.toast .icon { color: #70d5b3; }
.toast.error { color: #efb0b5; border-color: #f391914a; }
.toast.error .icon { color: #f39191; }
.toast.info { color: #b9cde9; }
.toast.info .icon { color: #8db8ee; }
.notice-item { background: #142339; border-color: #344d6d; }
.notice-item h4 { color: #cedef3; }
.notice-item p { color: #8ca8ce; }
.help-card { background: #111f33; border-color: #324b6b; }
.help-card h4, .modal-body .help-card h4 { color: #d0e1f7; }
.help-card p, .modal-body .help-card p { color: #92acd0; }
.help-card .icon { color: #dcc393; }
.shortcut { color: #acbfdb; border-color: #304864; }
.shortcut kbd { background: #21354f; border-color: #466081; color: #c1d4ee; }
.network-offline-banner { top: 66px; color: #dfbf8a; background: #292b31; border-color: #705e3f; }
.manage-action { background: #14243a; border-color: #314a6b; }
.manage-action:hover { background: #213550; border-color: #607795; }
.manage-action .manage-icon { background: #e7c58c0e; color: #e0c493; }
.manage-action strong { color: #d3e3f9; }
.manage-action small { color: #93aed2; }
.manage-action.danger .manage-icon { color: #f39191; background: #f391910e; }
.manage-action.danger strong { color: #f0adb2; }
.manage-action>.icon { color: #8ca8cd; }
.session-choice { background: #14243a; border-color: #344e70; }
.session-choice:hover { background: #20344e; border-color: #6f819a; }
.session-choice strong { color: #cee0f8; }
.session-choice small { color: #92acd1; }
.session-choice>.icon { color: #9db7d9; }
.related-record { color: #b6cdea; border-color: #344e6e; }
.related-record:hover { background: #213750; }
.field-readonly { background: #15253a; border-color: #345070; color: #a2bbdc; }

/* The original responsive flow is retained; keep local table scroll, not page overflow. */
@media (min-width: 1600px) {
  :root { --nav-width: 232px; }
  .main { padding: 32px 36px 26px; }
  .topbar { padding-left: 36px; padding-right: 36px; }
  .metric-card { padding: 21px 24px; }
  .metric-value { font-size: 37px; }
  .data-table td { font-size: 12px; }
  .data-table th { font-size: 11px; }
  .mini-stat { padding-left: 22px; }
}
@media (max-width: 1250px) {
  :root { --nav-width: 190px; }
  .sidebar { padding: 26px 12px 16px; }
  .brand { padding-left: 6px; gap: 8px; }
  .brand-word { font-size: 19px; }
  .brand-caption { font-size: 8px; letter-spacing: 1.1px; }
  .nav-item { padding-left: 12px; gap: 10px; font-size: 12px; }
  .main { padding: 25px 23px; }
  .topbar { padding: 0 23px; gap: 12px; }
  .global-search { width: 210px; }
  .mini-stat { padding: 16px 15px; }
  .mini-stat .stat-ornament { right: 14px; }
  .mini-stat .status { right: 12px; bottom: 17px; font-size: 8px; }
  .metric-card { padding: 18px; min-height: 135px; }
  .metric-value { font-size: 31px; }
  .input-wrap input { width: 226px; }
  .participant .avatar.portrait { width: 29px; height: 29px; }
}
@media (max-width: 1050px) and (min-width: 641px) {
  :root { --nav-width: 76px; }
  .sidebar { padding: 25px 11px 16px; }
  .brand { padding: 0 0 24px; justify-content: center; }
  .brand-text, .nav-label, .nav-item>span, .sidebar-note, .profile-meta, .profile>.icon, .server-status { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item .nav-badge, .nav-item .nav-dot { display: none; }
  .profile { justify-content: center; padding-left: 0; padding-right: 0; }
  .global-search { width: 205px; }
}
@media (max-width: 760px) and (min-width: 641px) {
  .mini-stat .status { display: none; }
  .mini-stat .stat-ornament { top: 14px; right: 10px; }
  .mini-stat .stat-ornament .icon { width: 14px; height: 14px; }
  .mini-stat p { font-size: 10px; }
  .mini-stat strong { font-size: 26px; }
  .panel.mini-stat-row { gap: 9px; }
}
@media (max-width: 640px) {
  :root { --nav-width: 0px; }
  .sidebar { width: 224px; padding: 27px 15px 17px; }
  .sidebar.open { box-shadow: 24px 0 70px #020816a0; }
  .brand { gap: 11px; padding: 0 10px 30px; }
  .brand-word { font-size: 22px; }
  .brand-caption { font-size: 9px; letter-spacing: 1.4px; }
  .nav-item { padding: 0 14px; font-size: 13px; }
  .topbar { height: 60px; padding: 0 15px; gap: 10px; }
  .top-clock, .top-demo { display: none; }
  .global-search { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; }
  .global-search span, .global-search kbd { display: none; }
  .main { padding: 21px 15px; }
  h1 { font-size: 25px; }
  .page-header { min-height: 0; margin-bottom: 20px; gap: 16px; }
  .page-subtitle { font-size: 11px; }
  .page-actions { gap: 8px; }
  .page-actions .btn { font-size: 10px; }
  .panel.mini-stat-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
  .mini-stat { min-height: 94px; padding: 14px 15px; }
  .mini-stat:last-child { grid-column: 1 / -1; min-height: 73px; display: flex; align-items: center; gap: 17px; }
  .mini-stat:last-child strong { margin-top: 0; font-size: 26px; }
  .mini-stat:last-child .stat-ornament { top: 26px; }
  .mini-stat strong { font-size: 28px; margin-top: 9px; }
  .mini-stat .status { bottom: 15px; font-size: 8px; }
  .metric-grid { gap: 10px; }
  .metric-card { padding: 15px; min-height: 121px; }
  .metric-value { font-size: 29px; }
  .metric-top { font-size: 10px; }
  .metric-icon { width: 25px; height: 25px; }
  .metric-bottom { font-size: 8px; margin-top: 11px; }
  .metric-card .sparkline { width: 53px; right: 13px; bottom: 41px; }
  .panel-head { padding: 17px 16px 0; }
  .panel-title h2 { font-size: 13px; }
  .panel-body { padding: 17px 16px; }
  .panel-foot { padding: 12px 15px; }
  .toolbar { padding: 14px; gap: 8px; }
  .toolbar .input-wrap input { width: 100%; }
  .saved-views, .filter-chips { padding: 0 14px 12px; }
  .table-meta { padding: 9px 14px; }
  .tabs { gap: 21px; padding: 0 15px; }
  .avatar.portrait { width: 35px; height: 35px; }
  .avatar.portrait.sm { width: 26px; height: 26px; }
  .avatar.portrait.lg { width: 46px; height: 46px; }
  .avatar.portrait.xl { width: 56px; height: 56px; }
  .monitor-grid { padding: 15px; gap: 13px; }
  .monitor-card-head { padding: 16px; }
  .monitor-card-body { padding: 0 16px 15px; }
  .table-panel { padding: 16px; }
  .seat .avatar.portrait { width: 29px; height: 29px; }
  .hand-panel .panel-head { padding: 15px 14px 0; }
  .hand-cards .playing-card { width: 27px; height: 46px; }
  .drawer-hand-preview .hand-cards .playing-card { width: 25px; height: 43px; }
  .drawer-hero h2 { font-size: 23px; }
  .drawer { border-left: 0; }
  .modal { border-radius: 11px; }
  .modal-header h2 { font-size: 16px; }
  .network-offline-banner { top: 60px; }
  .page-footer { font-size: 8px; }
}
.compact-mode .data-table td { height: 56px; padding-top: 7px; padding-bottom: 7px; }
.compact-mode .data-table .avatar.portrait { width: 30px; height: 30px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Crisp form selection, matching dark table cells in every browser. */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; background-color: #142237; border: 1px solid #405573; border-radius: 3px; vertical-align: middle; transition: background-color .15s, border-color .15s; }
input[type=checkbox]:hover { border-color: #b9a277; }
input[type=checkbox]:checked { background-color: #e7c58c; border-color: #e7c58c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7 2.7 2.7L11 4.4' fill='none' stroke='%2317253a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type=checkbox]:indeterminate { background-color: #e7c58c; border-color: #e7c58c; background-image: linear-gradient(#17253a,#17253a); background-size: 7px 2px; background-position: center; background-repeat: no-repeat; }
input[type=checkbox]:disabled { opacity: .4; cursor: not-allowed; }
input[type=radio] { accent-color: #e7c58c; }
.gap5 { gap: 5px; }
.sidebar-close { display: none; }
@media(max-width:640px) {
  .mini-stat:nth-child(4) { display: block; }
  .sidebar-close { display: inline-flex; position: absolute; top: 8px; right: 8px; width: 25px; height: 25px; color: #8ea5c3; }
}
/* Small-screen page headings never compress Chinese titles between actions. */
@media(max-width:640px) {
  .page-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .page-header .page-subtitle { max-width: 100%; }
  .page-header .page-actions { width: 100%; flex-shrink: 1; flex-wrap: wrap; justify-content: flex-start; }
  .page-header .page-actions .btn { margin-top: 0; }
}
