:root {
  --navy: #0b1633;
  --sidebar: #ffffff;
  --sidebar-deep: #f8fafc;
  --blue: #2867f0;
  --blue-2: #5388ff;
  --green: #17b981;
  --orange: #f59e42;
  --red: #ef5361;
  --purple: #7c5ce7;
  --ink: #17223b;
  --muted: #7a879f;
  --line: #e8edf5;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --shadow: 0 8px 28px rgba(24, 43, 76, 0.07);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.auth-loading { min-height:100vh; display:flex; align-items:center; justify-content:center; gap:14px; color:#60708a; background:radial-gradient(circle at 50% 30%,#fff 0,#eef3fa 55%,#e7edf6 100%); font-size:16px; font-weight:750; }
.login-page { min-height:100vh; display:grid; grid-template-columns:minmax(420px,1.05fr) minmax(430px,.95fr); background:#f4f7fb; }
.login-scene { position:relative; min-height:100vh; display:grid; place-items:center; overflow:hidden; color:#fff; background:radial-gradient(circle at 22% 20%,rgba(76,137,255,.38),transparent 36%),linear-gradient(145deg,#081532,#12316b 68%,#0a1b42); }
.login-scene::before { content:""; position:absolute; inset:0; opacity:.13; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(to bottom,transparent,#000 25%,#000 75%,transparent); }
.login-scene-brand { position:relative; z-index:2; display:flex; align-items:center; gap:18px; }.login-scene-brand .pc-logo-icon { width:64px; height:64px; border-width:4px; color:#dce8ff; }.login-scene-brand strong { font-size:38px; letter-spacing:1px; }
.login-orbit { position:absolute; width:520px; height:520px; border:1px solid rgba(145,181,255,.16); border-radius:50%; }.login-orbit::before,.login-orbit::after,.login-orbit i { content:""; position:absolute; inset:70px; border:1px solid rgba(145,181,255,.14); border-radius:50%; }.login-orbit::after { inset:145px; }.login-orbit i:nth-child(1) { inset:230px; background:rgba(91,143,255,.18); }.login-orbit i:nth-child(2) { inset:15px 245px; border-color:rgba(145,181,255,.2); }.login-orbit i:nth-child(3) { inset:245px 15px; border-color:rgba(145,181,255,.2); }
.login-visual { min-height:100vh; display:flex; flex-direction:column; padding:52px clamp(50px,7vw,120px); color:#fff; background:radial-gradient(circle at 18% 18%,rgba(63,123,255,.32),transparent 35%),linear-gradient(145deg,#081431 0%,#102a60 58%,#0b1b42 100%); }
.login-brand { display:flex; align-items:center; gap:14px; }.login-brand .brand-mark { width:48px; height:48px; border-radius:13px; font-size:27px; }.login-brand > div:last-child { display:grid; gap:2px; }.login-brand strong { font-size:25px; letter-spacing:1px; }.login-brand span { color:#9db1dd; font-size:13px; letter-spacing:2px; }
.login-copy { margin:auto 0; }.login-copy > span { color:#70a3ff; font-size:12px; font-weight:900; letter-spacing:3px; }.login-copy h1 { margin:18px 0; font-size:clamp(38px,4vw,62px); line-height:1.18; letter-spacing:-2px; }.login-copy p { margin:0; color:#aebee0; font-size:17px; line-height:1.8; }
.login-security-points { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }.login-security-points > div { display:flex; align-items:center; gap:11px; padding:15px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(255,255,255,.055); }.login-security-points i { color:#70a3ff; font-size:13px; font-style:normal; font-weight:900; }.login-security-points span { display:grid; gap:3px; }.login-security-points b { font-size:13px; }.login-security-points small { color:#91a5cf; font-size:10px; }
.login-panel { width:100%; display:grid; place-items:center; padding:40px; }.login-card { width:min(430px,100%); padding:38px; border:1px solid #e1e7f0; border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(31,51,87,.14); }.login-logo { display:flex; align-items:center; gap:12px; margin-bottom:28px; color:#313941; }.login-logo strong { font-size:22px; font-weight:850; }.login-heading { margin-bottom:20px; }.login-heading h2 { margin:0; color:#18243c; font-size:26px; }.login-card > label { display:grid; gap:8px; margin-top:18px; color:#526078; font-size:14px; font-weight:800; }.login-card label > div { height:52px; display:flex; align-items:center; gap:10px; padding:0 14px; border:1px solid #dce3ed; border-radius:10px; background:#fbfcfe; }.login-card label > div:focus-within { border-color:#6e98f4; box-shadow:0 0 0 4px rgba(40,103,240,.08); }.login-card label span { color:#86a0d1; font-size:18px; }.login-card input { width:100%; height:46px; border:0; outline:0; color:#24334d; background:transparent; font-size:16px; }.login-error { margin-top:15px; padding:11px 13px; border-radius:8px; color:#c43d49; background:#fff0f2; font-size:13px; font-weight:750; }.login-submit { width:100%; height:52px; margin-top:23px; border:0; border-radius:10px; color:#fff; background:linear-gradient(90deg,#2867f0,#477ef4); box-shadow:0 10px 24px rgba(40,103,240,.25); font-size:17px; font-weight:900; }.login-submit:disabled { opacity:.65; }
.pc-logo-icon { position:relative; width:32px; height:32px; display:inline-block; flex:0 0 auto; border:3px solid currentColor; border-radius:50%; color:#626b73; overflow:hidden; }
.pc-logo-icon::before { content:""; position:absolute; inset:6px -4px; border-top:2px solid currentColor; border-bottom:2px solid currentColor; border-radius:50%; }
.pc-logo-icon::after { content:""; position:absolute; inset:-4px 7px; border-left:2px solid currentColor; border-right:2px solid currentColor; border-radius:50%; }

.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; z-index: 40; display: flex; flex-direction: column; color: #34435c; background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%); border-right: 1px solid #e5ebf3; box-shadow: 8px 0 24px rgba(42, 58, 86, .055); }
.brand { height: 74px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid #e9edf4; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; font-weight: 900; font-style: italic; color: white; background: linear-gradient(135deg, #4d82ff, #1e5bea); box-shadow: 0 8px 22px rgba(36, 104, 241, .42); }
.brand div:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 18px; color: #18233a; letter-spacing: .6px; }
.brand span { font-size: 11px; color: #8492a8; letter-spacing: 1.8px; }
.brand .pc-logo-icon { width:34px; height:34px; color:#4f55ee; letter-spacing:0; }
.nav-scroll { flex: 1; overflow-y: auto; padding: 14px 12px 20px; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-group { margin-bottom: 5px; }
.nav-label { padding: 8px 14px; color: #536178; font-size: 15px; font-weight: 800; letter-spacing: .35px; }
.nav-section-toggle { width: 100%; height: 48px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.nav-section-toggle:hover,.nav-section-toggle.open { color: #202d45; background: #f1f4f9; }
.nav-section-toggle em { color: #8290a8; font-size: 22px; font-style: normal; font-weight: 700; line-height: 1; transform: rotate(0); transition: transform .2s ease; }
.nav-section-toggle.open em { transform: rotate(90deg); }
.nav-group-items { padding: 2px 0 5px; animation: navOpen .16s ease; }
@keyframes navOpen { from { opacity: 0; transform: translateY(-3px); } }
.nav-item { position: relative; width: 100%; border: 0; display: flex; align-items: center; gap: 11px; height: 50px; margin: 3px 0; padding: 0 11px; border-radius: 10px; background: transparent; color: #4d5c73; font-size: 14px; text-align: left; transition: .18s ease; }
.nav-item:hover { color: #26344d; background: #f3f6fa; }
.nav-item.active { color: #4544d9; background: #eef1ff; box-shadow: inset 0 0 0 1px #e1e5ff; font-weight: 800; }
.nav-item.active::before { content:""; position:absolute; left:0; top:9px; bottom:9px; width:3px; border-radius:0 4px 4px 0; background:#5146ee; }
.nav-icon { width: 32px; height: 32px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; text-align: center; font-size: 16px; color: #71829c; background:#f0f4f8; }
.nav-item.active .nav-icon { color: #4d46e8; background: #dfe4ff; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; color: white; background: #ef5a68; font-size: 10px; font-weight: 800; }
.sidebar-foot { height: 66px; margin: 0 12px 12px; padding: 12px; border:1px solid #e5ebf2; border-radius: 10px; display: flex; align-items: center; gap: 10px; background: #f5f8fb; }
.sidebar-foot div { display: grid; gap: 3px; }
.sidebar-foot strong { color: #35445c; font-size: 11px; }
.sidebar-foot span:last-child { color: #8794a8; font-size: 9px; }
.wechat-connect-panel { padding: 0; overflow: hidden; min-height: calc(100vh - 170px); }
.wechat-connect-frame { display: block; width: 100%; height: calc(100vh - 170px); min-height: 720px; border: 0; background: #f5f7fb; }
.status-light { width: 8px; height: 8px; display: inline-block; border-radius: 50%; flex: 0 0 auto; background: var(--green); box-shadow: 0 0 0 4px rgba(23, 185, 129, .13); }
.status-light.large { width: 14px; height: 14px; box-shadow: 0 0 0 7px rgba(23,185,129,.12); }
.status-light.offline { background: #e49a2f; box-shadow: 0 0 0 7px rgba(228,154,47,.14); }

.workspace { min-height: 100vh; margin-left: 238px; }
.topbar { position: sticky; top: 0; z-index: 30; height: 74px; display: flex; align-items: center; gap: 18px; padding: 0 28px; color: #34435c; background: rgba(255,255,255,.94); border-bottom: 1px solid #e6ebf2; box-shadow: 0 5px 20px rgba(41,56,82,.06); backdrop-filter: blur(16px); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 22px; color: #3b4a62; }
.breadcrumb { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; }
.breadcrumb span, .breadcrumb b { color: #8b98aa; font-weight: 500; }
.breadcrumb strong { color: #26344b; }
.global-search { margin-left: auto; width: min(380px, 32vw); height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #e1e7ef; border-radius: 9px; background: #f6f8fb; color: #8492a8; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #2d3b53; font-size: 12px; }
.global-search input::placeholder { color: #98a4b5; }
.top-status { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 7px; color: #13835d; background: #eaf8f2; font-size: 10px; font-weight: 700; }
.bot-runtime { height:34px; display:flex; align-items:center; gap:8px; padding:0 12px; border:1px solid #f0c9ce; border-radius:9px; color:#c33f4d; background:#fff3f4; white-space:nowrap; font-size:10px; font-weight:800; }
.bot-runtime i { width:9px; height:9px; border-radius:50%; background:#e24c5a; box-shadow:0 0 0 4px rgba(226,76,90,.12); }
.bot-runtime.running { color:#11815b; border-color:#c7eadc; background:#ebf8f3; }
.bot-runtime.running i { background:#18b77f; box-shadow:0 0 0 4px rgba(24,183,127,.12); }
.bot-runtime:disabled { opacity:.58; cursor:wait; }
.icon-button { position: relative; width: 34px; height: 34px; border: 1px solid #e1e7ef; border-radius: 9px; color: #728097; background: #f7f9fc; }
.icon-button span { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--red); border: 2px solid white; font-size: 8px; }
.profile { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; text-align: left; }
.profile i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(135deg, #335fae, #233e76); font-style: normal; font-size: 12px; }
.profile span { display: grid; gap: 2px; }
.profile b { color: #28364e; font-size: 11px; }
.profile small { color: #8592a6; font-size: 9px; }
.profile em { color: #8492a8; font-style: normal; }
.logout-button { height:34px; padding:0 12px; border:1px solid #e1e7ef; border-radius:8px; color:#66758b; background:#f7f9fc; font-size:11px; font-weight:750; }.logout-button:hover { color:#c53d4a; border-color:#f2c9ce; background:#fff1f3; }

.main-content { max-width: 1680px; margin: 0 auto; padding: 26px 28px 46px; }
.page-heading { min-height: 62px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.page-heading h1 { margin: 0 0 7px; color: #15213a; font-size: 24px; line-height: 1.2; letter-spacing: -.4px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.overview-heading { align-items: center; }
.overview-heading h1 { font-size: 26px; margin-top: 6px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #73819a; font-size: 9px; font-weight: 800; letter-spacing: .7px; }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid #e6ebf3; border-radius: 9px; background: white; }
.segmented button { min-width: 52px; height: 30px; border: 0; border-radius: 6px; color: #7a879d; background: transparent; font-size: 10px; }
.segmented button.active { color: white; background: var(--blue); box-shadow: 0 4px 12px rgba(40,103,240,.25); }
.page-actions { display: flex; gap: 8px; }
.btn { height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; }
.btn.primary { color: white; background: var(--blue); box-shadow: 0 5px 14px rgba(40,103,240,.2); }
.btn.ghost { color: #59677f; border-color: #e3e9f2; background: white; }
.btn.orange { color: white; background: var(--orange); }
.btn.danger { color: white; background: var(--red); }
.btn.full { width: 100%; margin-top: 20px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.metric-card { position: relative; min-height: 128px; overflow: hidden; padding: 20px 20px 17px; border: 1px solid #ebeff5; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.metrics-grid.compact .metric-card { min-height: 116px; }
.metric-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; color: #78859d; font-size: 11px; }
.metric-head i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #edf3ff; font-style: normal; font-size: 13px; }
.accent-green .metric-head i { color: var(--green); background: #ecfaf5; }
.accent-orange .metric-head i { color: var(--orange); background: #fff5e9; }
.accent-violet .metric-head i { color: var(--purple); background: #f2efff; }
.metric-card strong { position: relative; z-index: 2; display: block; margin: 12px 0 7px; color: #17233d; font-size: 23px; line-height: 1; letter-spacing: -.4px; }
.metric-card small { position: relative; z-index: 2; color: #8390a6; font-size: 9px; }
.metric-card small.good, .good, .good-text { color: var(--green); }
.metric-card small.warn, .warn { color: var(--orange); }
.metric-card small em { margin-left: 6px; color: #a3adbe; font-style: normal; }
.metric-dot { width: 6px; height: 6px; border-radius: 50%; background: #ccd5e4; }
.spark-bars { position: absolute; right: 16px; bottom: 15px; width: 105px; height: 42px; display: flex; align-items: end; gap: 4px; opacity: .22; }
.spark-bars span { flex: 1; min-height: 5px; border-radius: 3px 3px 0 0; background: var(--blue); }
.spark-bars.green span { background: var(--green); }
.spark-bars.orange span { background: var(--orange); }
.spark-bars.violet span { background: var(--purple); }

.panel { border: 1px solid #e8edf4; border-radius: 12px; background: white; box-shadow: var(--shadow); }
.panel-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #edf1f6; }
.panel-head h2 { margin: 0; color: #1b2740; font-size: 14px; }
.panel-head p { margin: 5px 0 0; color: #8a96a9; font-size: 9px; }
.panel-head > div:first-child > span + h2 { display: inline-block; margin-left: 9px; }
.panel-head h2 b { font-weight: 800; color: var(--blue); }
.link-btn { border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 700; }
.count-badge { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--red); background: #fff0f2; font-size: 11px; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(300px, .78fr); gap: 16px; margin-bottom: 16px; }
.dashboard-grid.lower { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .8fr); }
.live-pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 5px; color: #119767; background: #eaf9f3; font-size: 8px; font-weight: 800; letter-spacing: .4px; }
.round-body { display: grid; grid-template-columns: 170px 1fr; align-items: center; padding: 20px; }
.countdown { padding-right: 20px; border-right: 1px solid #edf1f5; }
.countdown span, .round-kpis span { display: block; color: #8591a5; font-size: 9px; }
.countdown strong { display: block; margin: 6px 0 3px; color: #243457; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 31px; letter-spacing: 2px; }
.countdown small, .round-kpis small { color: #a0aabd; font-size: 8px; }
.round-kpis { display: grid; grid-template-columns: repeat(3,1fr); padding-left: 22px; gap: 12px; }
.round-kpis b { display: block; margin: 6px 0 4px; color: #1d2a45; font-size: 17px; }
.phase-track { position: relative; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px 20px 19px; }
.phase-track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 2px; background: #e6ebf3; }
.phase-track > div { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 8px; color: #96a1b3; }
.phase-track i { width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: #8d99ae; background: #e7ecf4; box-shadow: 0 0 0 1px #dde4ee; font-style: normal; font-size: 9px; }
.phase-track span { display: grid; gap: 2px; font-size: 9px; }
.phase-track small { color: #a5aec0; font-size: 7px; }
.phase-track .done i { color: white; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.phase-track .active { color: var(--blue); font-weight: 800; }
.phase-track .active i { color: white; background: var(--blue); box-shadow: 0 0 0 4px rgba(40,103,240,.12); }
.round-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #edf1f6; background: #fafbfd; }
.round-actions button { min-width: 96px; height: 32px; border: 1px solid #dfe6f1; border-radius: 7px; color: #526077; background: white; font-size: 9px; font-weight: 700; }
.round-actions .soft-danger { color: var(--red); border-color: #f5d8dd; background: #fff8f9; }
.alert-list { padding: 2px 0; }
.alert-list button { width: 100%; min-height: 67px; display: flex; align-items: center; gap: 11px; padding: 11px 18px; border: 0; border-bottom: 1px solid #eef2f7; background: white; text-align: left; }
.alert-list button:last-child { border-bottom: 0; }
.alert-list button:hover { background: #f8faff; }
.alert-list span { flex: 1; display: grid; gap: 4px; }
.alert-list b { color: #32405a; font-size: 10px; }
.alert-list small { color: #909bad; font-size: 8px; line-height: 1.4; }
.alert-list em { color: #b4bdcc; font-size: 17px; font-style: normal; }
.alert-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-size: 12px; }
.alert-icon.orange { color: var(--orange); background: #fff5e9; }.alert-icon.blue { color: var(--blue); background: #edf3ff; }.alert-icon.red { color: var(--red); background: #fff0f2; }.alert-icon.green { color: var(--green); background: #eaf9f3; }

.chart-legend { display: flex; gap: 12px; color: #7e8a9e; font-size: 8px; }
.chart-legend span { display: flex; align-items: center; gap: 4px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; }
.blue-dot { background: var(--blue); }.green-dot { background: var(--green); }.purple-dot { background: var(--purple); }
.chart-area { height: 240px; display: flex; padding: 22px 20px 15px; }
.y-axis { width: 38px; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 22px; color: #9aa4b6; font-size: 7px; }
.chart-columns { flex: 1; display: flex; align-items: stretch; gap: 8px; background: repeating-linear-gradient(to bottom, #eef2f7 0, #eef2f7 1px, transparent 1px, transparent 33.33%); }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.chart-col > div { width: 100%; height: 180px; display: flex; align-items: end; justify-content: center; gap: 2px; }
.chart-col span { width: 34%; min-height: 4px; border-radius: 3px 3px 0 0; }
.bar-main { background: linear-gradient(#4f83f6,#2c67e8); }.bar-secondary { background: #9fe0ca; }
.chart-col small { color: #a0aabc; font-size: 7px; }
.exposure-panel { padding-bottom: 16px; }
.exposure-row { display: grid; grid-template-columns: 95px 1fr 28px; align-items: center; gap: 9px; padding: 10px 20px 4px; }
.exposure-row > div:first-child { display: grid; gap: 2px; }
.exposure-row b { font-size: 9px; }.exposure-row span,.exposure-row small { color: #8c98aa; font-size: 8px; }
.progress { height: 6px; overflow: hidden; border-radius: 3px; background: #eef2f7; }
.progress i { display: block; height: 100%; border-radius: 3px; background: var(--blue); }.progress i.high { background: var(--red); }.progress i.mid { background: var(--orange); }.progress i.low { background: var(--purple); }.progress i.safe { background: var(--green); }
.exposure-foot { display: flex; align-items: center; gap: 14px; margin: 16px 20px 0; padding: 14px; border-radius: 10px; background: #f6f9fd; }
.ring { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--green) 0 42%, #e3eaf2 42%); }
.ring::before { content:""; position: absolute; width: 35px; height: 35px; border-radius: 50%; background: white; }.ring span { position: relative; z-index: 1; font-size: 9px; font-weight: 800; }
.exposure-foot p { display:grid; gap:4px; margin:0; }.exposure-foot b { font-size:9px; }.exposure-foot span { color:#8491a6; font-size:8px; line-height:1.5; }

.finance-table { margin-bottom: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
th { height: 42px; padding: 0 16px; color: #7d899d; background: #f8fafd; border-bottom: 1px solid #e9eef5; text-align: left; font-size: 8px; font-weight: 800; letter-spacing: .2px; }
td { height: 50px; padding: 0 16px; color: #4c5970; border-bottom: 1px solid #edf1f6; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcff; }
td small { display: block; margin-top: 3px; color: #9ba5b6; font-size: 7px; }
.money { font-weight: 800; }.money.positive { color: var(--green); }.money.negative { color: var(--red); }
.tag { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 0 7px; border-radius: 5px; color: #607087; background: #f0f3f7; font-size: 8px; font-weight: 700; }
.tag-green { color: #13875f; background: #e9f9f2; }.tag-orange { color: #c37a24; background: #fff4e7; }.tag-purple { color: #7053d2; background: #f1edff; }.tag-blue { color: #2867dc; background: #edf3ff; }.tag-red { color: #d84555; background: #fff0f2; }

.filterbar { min-height: 66px; display: flex; align-items: end; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e9eef5; }
.filterbar label { display: grid; gap: 5px; color: #8b96a9; font-size: 8px; }
.filterbar input,.filterbar select { height: 34px; min-width: 130px; padding: 0 10px; border: 1px solid #e1e7f0; border-radius: 7px; outline: 0; color: #526078; background: white; font-size: 9px; }
.filter-search { position: relative; width: 260px; display: flex !important; align-items: center; gap: 6px; height: 34px; margin-right: auto; padding: 0 10px; border: 1px solid #e1e7f0; border-radius: 7px; color: #98a3b5; }
.filter-search input { width: 100%; min-width: 0; padding: 0; border: 0; }
.data-panel { overflow: hidden; }
.bets-panel .filterbar { min-height:62px; align-items:center; background:#fff; }
.bets-panel .filter-search { height:38px; border-color:#d7e0ed; background:#fbfcfe; }
.bets-panel .filterbar input,.bets-panel .filterbar select { color:#30415b; font-size:12px; }
.bets-table-wrap { overflow-x:hidden; }
.bets-table { width:100%; min-width:0; table-layout:fixed; border-top:1px solid #dce4ee; border-left:1px solid #e2e8f0; white-space:normal; }
.bets-table th { height:50px; padding:0 10px; border-right:1px solid #e2e8f0; color:#53637a; background:#f1f5f9; text-align:center; font-size:12px; font-weight:850; letter-spacing:.2px; }
.bets-table td { height:62px; padding:8px 10px; border-right:1px solid #e7ecf3; color:#35465f; background:#fff; text-align:center; font-size:13px; font-weight:650; line-height:1.4; }
.bets-table tbody tr:nth-child(even) td { background:#f8fafc; }
.bets-table tbody tr:hover td { background:#eef5ff; }
.bets-table th:nth-child(1) { width:14%; }.bets-table th:nth-child(2) { width:16%; }.bets-table th:nth-child(3) { width:9%; }.bets-table th:nth-child(4) { width:11%; }.bets-table th:nth-child(5) { width:10%; }.bets-table th:nth-child(6),.bets-table th:nth-child(7) { width:10%; }.bets-table th:nth-child(8) { width:10%; }.bets-table th:nth-child(9) { width:10%; }
.bet-time { color:#53637b; font:700 12px/1.4 ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums; }
.bet-user { min-width:0; display:grid; gap:3px; text-align:left; }
.bet-user strong { overflow:hidden; color:#24354f; font-size:13px; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
.bet-user small { margin:0; overflow:hidden; color:#8190a5; font:700 10px/1.3 ui-monospace,Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.bet-round { max-width:100%; min-height:27px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; padding:5px 7px; border:1px solid #dce6f4; border-radius:6px; color:#365578; background:#f5f8fc; font:800 11px/1.25 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; word-break:break-all; }
.bet-type-badge { min-width:70px; min-height:30px; display:inline-flex; align-items:center; justify-content:center; padding:0 10px; border-radius:7px; font-size:12px; font-weight:850; }
.bet-type-badge.bet { color:#225fc9; background:#eaf1ff; }.bet-type-badge.payout { color:#11815b; background:#e7f8f0; }.bet-type-badge.credit { color:#087d7a; background:#e7f8f7; }.bet-type-badge.debit { color:#c8404e; background:#fff0f2; }.bet-type-badge.other { color:#694bc2; background:#f1edff; }
.bet-amount { display:inline-block; color:#293a53; font:900 14px/1.2 ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums; }.bet-amount.bet,.bet-amount.debit { color:#d34552; }.bet-amount.payout,.bet-amount.credit { color:#13845f; }
.bet-balance { max-width:100%; min-height:29px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; padding:5px 7px; border-radius:6px; font:800 11px/1.2 ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }.bet-balance.before { color:#66758a; background:#f0f3f7; }.bet-balance.after { color:#245fc8; background:#edf3ff; }
.bet-detail { display:block; color:#3d4f68; font-size:12px; font-weight:800; overflow-wrap:anywhere; }
.bet-source { width:100%; min-height:29px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; padding:5px 7px; border-radius:7px; font-size:10px; font-weight:850; line-height:1.25; white-space:normal; overflow-wrap:anywhere; word-break:break-all; }.bet-source.group { color:#0f7d58; background:#e7f8f0; }.bet-source.private { color:#6549bd; background:#f1edff; }
.users-metrics .metric-card { min-height:82px; padding:13px 17px 11px; }
.users-metrics .metric-head span { font-size:10px; }
.users-metrics .metric-card strong { margin-top:7px; font-size:19px; }
.users-metrics .metric-card small { font-size:9px; }
.users-panel .filterbar { min-height:56px; align-items:center; padding:9px 14px; }
.users-panel .filter-search { width:min(360px,55vw); height:34px; margin-right:0; font-size:11px; }
.users-panel .filter-search input { height:30px; font-size:11px; }
.users-panel .filterbar .btn { height:32px; padding:0 13px; font-size:10px; }
.users-table { width:100%; min-width:0; table-layout:fixed; border-left:1px solid #e0e6ef; border-top:1px solid #d7dee9; font-size:13px; }
.users-table th { height:43px; padding:0 8px; border-right:1px solid #e0e6ef; color:#26334a; background:#f4f7fa; text-align:center; font-size:12px; font-weight:850; letter-spacing:.15px; }
.users-table td { height:55px; padding:0 8px; border-right:1px solid #e2e7ef; color:#3d4c65; background:#fff; text-align:center; font-size:13px; font-weight:600; }
.users-table tbody tr:nth-child(even) td { background:#fafbfc; }
.users-table th:nth-child(1) { width:140px; }
.users-table th:nth-child(2) { width:170px; }
.users-table th:nth-child(3),.users-table th:nth-child(4),.users-table th:nth-child(5) { width:150px; }
.users-table th:nth-child(6) { width:135px; }
.users-table th:nth-child(7) { width:175px; }
.users-table th:nth-child(8) { width:125px; }
.users-table th:nth-child(9) { width:175px; }
.user-sort-button { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:5px 6px; border:0; border-radius:6px; color:#26334a; background:transparent; font-size:12px; font-weight:850; }
.user-sort-button:hover { color:#245fc9; background:#eaf1ff; }
.user-sort-button span { width:15px; height:18px; display:grid; place-items:center; border-radius:4px; color:#7c8ba2; background:#e9edf3; font-size:10px; }
.user-sort-button.active { color:#225fc9; }
.user-sort-button.active span { color:#fff; background:#2867f0; }
.user-id { color:#245bbd; font:800 18px/1.4 ui-monospace,Consolas,monospace; letter-spacing:.1px; }
.user-name { color:#20304a; font-size:15px; font-weight:850; }
.user-identity { min-width:0; display:grid; justify-items:start; gap:3px; text-align:left; }
.user-identity small { max-width:100%; color:#718097; font:750 10px/1.3 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; }
.user-money { min-width:66px; min-height:30px; display:inline-flex; align-items:center; justify-content:center; padding:0 9px; border-radius:7px; font-size:13px; font-weight:850; font-variant-numeric:tabular-nums; }
.user-money.recharge { color:#147b58; background:#e9f8f1; }
.user-money.withdraw { color:#cf4653; background:#fff0f2; }
.user-money.balance { color:#245fc8; background:#edf3ff; font-size:14px; font-weight:850; }
.users-table .tag { min-height:36px; padding:0 13px; font-size:15px; font-weight:800; }
.users-panel .pagination { height:50px; }
.users-panel .pagination span { font-size:10px; }
.users-panel .pagination button { width:28px; height:28px; font-size:10px; }
.user-table-wrap { overflow-x:hidden; }
.original-user-table { width:100%; min-width:0; table-layout:fixed; }
.original-user-table th:nth-child(1) { width:18%; }
.original-user-table th:nth-child(2),.original-user-table th:nth-child(3),.original-user-table th:nth-child(4) { width:10%; }
.original-user-table th:nth-child(5) { width:17%; }
.original-user-table th:nth-child(6) { width:13%; }
.original-user-table th:nth-child(7) { width:10%; }
.original-user-table th:nth-child(8) { width:12%; }
.original-user-table td { height:55px; }
.real-toggle { min-width:72px; display:inline-grid; justify-items:center; gap:4px; padding:0; border:0; color:#7e899d; background:transparent; font-size:10px; font-weight:800; }
.real-toggle i { position:relative; width:38px; height:21px; border-radius:11px; background:#cbd3de; box-shadow:inset 0 0 0 1px rgba(42,57,82,.08); transition:.2s; }
.real-toggle i::after { content:""; position:absolute; top:3px; left:3px; width:15px; height:15px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(22,38,67,.2); transition:.2s; }
.real-toggle.on i { background:#2f72ee; }
.real-toggle.on.danger i { background:#ff525c; }
.real-toggle.on i::after { left:20px; }
.real-toggle.on span { color:#2e5eaf; }
.real-toggle.on.danger span { color:#d84450; }
.user-status-toggles { display:flex; align-items:center; justify-content:center; gap:2px; }
.user-status-toggles .real-toggle { min-width:59px; }
.fund-buttons { display:flex; align-items:center; justify-content:center; gap:6px; }
.fund-buttons button { min-width:54px; height:32px; border:0; border-radius:6px; color:#fff; font-size:12px; font-weight:850; box-shadow:0 4px 9px rgba(35,52,82,.12); }
.fund-in { background:#54bd31; }.fund-in:hover { background:#42a824; }
.fund-out { background:#f26469; }.fund-out:hover { background:#df5056; }
.summary-button { height:32px; padding:0 10px; border:1px solid #cfd7e3; border-radius:6px; color:#526078; background:#fff; font-size:11px; font-weight:800; }
.summary-button:hover { color:#245fc8; border-color:#84a7ea; background:#f4f8ff; }
.registered-time { display:inline-block; max-width:130px; color:#4c596f; font-size:11px; font-weight:750; line-height:1.35; white-space:normal; }
.fund-editor { width:min(760px,100%); }
.fund-preview { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:20px; }
.fund-preview div { padding:15px; border:1px solid #e4e9f1; border-radius:9px; background:#f8fafc; }
.fund-preview span { display:block; margin-bottom:7px; color:#7c899e; font-size:12px; }
.fund-preview b { color:#34435b; font-size:20px; }
.fund-preview b.positive { color:#16825e; }.fund-preview b.negative { color:#db4d59; }
.fund-editor .fund-amount-input { width:100%; height:48px; padding:0 13px; border:1px solid #dce3ed; border-radius:8px; outline:0; color:#2f3d55; font-size:18px; font-weight:750; }
.fund-editor .fund-amount-input:focus { border-color:#7299f2; box-shadow:0 0 0 3px rgba(40,103,240,.08); }
.fund-warning { margin:15px 0 0; padding:12px 14px; border:1px solid #f5d7d9; border-radius:8px; color:#b54b54; background:#fff5f6; font-size:12px; line-height:1.6; }
.toggle-confirm b { color:#26354f; }
.user-summary-modal { width:min(1120px,96vw); max-height:92vh; overflow:auto; }
.summary-kpis { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin:5px 0 22px; }
.summary-kpis div { padding:14px; border:1px solid #e4e9f1; border-radius:9px; background:#f7f9fc; }
.summary-kpis span { display:block; margin-bottom:7px; color:#7e8b9f; font-size:11px; }
.summary-kpis b { color:#2e3d56; font-size:17px; }
.user-summary-modal h4 { margin:0 0 10px; color:#334159; font-size:15px; }
.summary-ledger { overflow:auto; border:1px solid #e2e7ef; border-radius:8px; }
.summary-ledger table { min-width:900px; font-size:13px; }
.summary-ledger th { height:44px; font-size:11px; }
.summary-ledger td { height:52px; font-size:13px; white-space:normal; }
.ledger-panel { overflow:hidden; }
.ledger-filters { border-bottom:1px solid #dfe5ed; background:#f3f1f1; }
.ledger-filter-row { display:flex; align-items:center; gap:18px; padding:14px 16px; }
.ledger-main-filters { flex-wrap:wrap; padding-bottom:9px; }
.ledger-main-filters label { display:flex; align-items:center; gap:8px; }
.ledger-filter-row label > span { color:#3e4858; font-size:12px; font-weight:850; white-space:nowrap; }
.ledger-main-filters input,.ledger-main-filters select { width:155px; height:36px; box-sizing:border-box; padding:0 11px; border:1px solid #d9e0ea; border-radius:5px; outline:0; color:#3d4b62; background:#fff; font-size:12px; }
.ledger-main-filters input:focus,.ledger-main-filters select:focus,.ledger-date-filter input:focus { border-color:#67a7ef; box-shadow:0 0 0 3px rgba(64,151,240,.09); }
.ledger-main-filters input::placeholder { color:#b1bbc9; }
.ledger-date-row { padding-top:9px; flex-wrap:wrap; }
.ledger-date-filter { display:flex; align-items:center; gap:8px; }
.ledger-date-filter > div { height:36px; display:flex; align-items:center; gap:9px; padding:0 10px; border:1px solid #d9e0ea; border-radius:5px; background:#fff; }
.ledger-date-filter input { width:120px; height:30px; padding:0 3px; border:0; outline:0; color:#536176; background:#fff; font-size:11px; }
.ledger-date-filter b { color:#2f3949; font-size:12px; }
.ledger-actions { display:flex; gap:8px; }
.ledger-actions .btn { min-width:64px; height:36px; border-radius:5px; font-size:12px; }
.ledger-actions .danger { color:#fff; border-color:#f0666c; background:#f0666c; }
.ledger-actions .danger:hover { background:#dd5259; }
.ledger-actions .ledger-export { color:#fff; border-color:#58bd2f; background:#58bd2f; }
.ledger-actions .ledger-export:hover { background:#46a923; }
.ledger-summary { flex:1; display:flex; gap:7px; min-width:430px; }
.ledger-summary-chip { min-width:96px; height:36px; box-sizing:border-box; display:flex; align-items:center; padding:0 10px; border-radius:5px; background:#eef6ff; font-size:12px; font-weight:850; }
.ledger-summary-chip span { margin-right:3px; }
.ledger-summary-chip.blue { color:#2878e9; }.ledger-summary-chip.green { color:#51ae2d; }.ledger-summary-chip.cyan { color:#2792db; }.ledger-summary-chip.orange { color:#ec9328; }.ledger-summary-chip.red { color:#ea565f; }
.ledger-error { display:flex; align-items:center; justify-content:center; gap:12px; min-height:52px; color:#c64550; background:#fff3f4; font-size:14px; font-weight:750; }
.ledger-error button { height:30px; padding:0 12px; border:1px solid #efbec3; border-radius:5px; color:#bd3f4b; background:#fff; }
.ledger-table-wrap { overflow-x:hidden; }
.ledger-table { width:100%; min-width:0; table-layout:fixed; border-left:1px solid #dfe5ed; border-top:1px solid #dfe5ed; white-space:normal; }
.ledger-table th { height:48px; padding:0 9px; border-right:1px solid #dfe5ed; color:#111820; background:#fff; text-align:center; font-size:12px; font-weight:900; }
.ledger-table td { height:64px; padding:8px 9px; border-right:1px solid #dfe5ed; color:#4c5666; background:#fff; text-align:center; font-size:12px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.ledger-table tbody tr:nth-child(odd) td { background:#f7f9fc; }
.ledger-table tbody tr:hover td { background:#eef5ff; }
.ledger-table th:nth-child(1) { width:13%; }.ledger-table th:nth-child(2) { width:17%; }.ledger-table th:nth-child(3) { width:10%; }.ledger-table th:nth-child(4) { width:12%; }.ledger-table th:nth-child(5) { width:17%; }.ledger-table th:nth-child(6) { width:23%; }.ledger-table th:nth-child(7) { width:8%; }
.ledger-time { display:inline-block; max-width:110px; line-height:1.4; }
.ledger-user,.ledger-change { min-width:0; display:grid; gap:3px; }
.ledger-user strong { color:#2a3952; font-size:13px; }
.ledger-user small { color:#7b889c; font:750 10px/1.3 ui-monospace,Consolas,monospace; overflow-wrap:anywhere; }
.ledger-change strong { color:#29384f; font-size:14px; font-weight:900; }
.ledger-change small { color:#8390a2; font-size:10px; white-space:normal; overflow-wrap:anywhere; }
.ledger-table .tag { min-height:30px; padding:0 9px; font-size:11px; font-weight:850; }
.ledger-detail { display:block; white-space:pre-wrap; overflow-wrap:anywhere; }
.rebate-status { display:inline-flex; min-width:42px; min-height:32px; align-items:center; justify-content:center; border-radius:6px; color:#6c788b; background:#edf1f6; }
.rebate-status.yes { color:#d14956; background:#fff0f2; }
.ledger-pagination { height:50px; }
.security-status-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }.security-status-card { min-height:120px; padding:20px 22px; }.security-status-card span { display:block; color:#7c899f; font-size:12px; font-weight:750; }.security-status-card strong { display:block; margin:13px 0 7px; color:#24334d; font-size:23px; overflow-wrap:anywhere; }.security-status-card strong.enabled { color:#16845f; }.security-status-card strong.disabled { color:#d5822c; }.security-status-card small { color:#93a0b2; font-size:11px; }
.security-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.security-card { padding:24px; }.security-card-head { display:flex; align-items:flex-start; gap:13px; margin-bottom:22px; }.security-card-head > i { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:#2867f0; background:#edf3ff; font-size:20px; font-style:normal; }.security-card-head > div { flex:1; }.security-card-head h2 { margin:2px 0 5px; color:#25344d; font-size:18px; }.security-card-head p { margin:0; color:#8491a5; font-size:12px; }.security-card-head .tag { min-height:30px; font-size:11px; }
.security-card > label,.security-two label { display:grid; gap:7px; margin-top:15px; color:#536178; font-size:13px; font-weight:800; }.security-card input { width:100%; height:46px; padding:0 13px; border:1px solid #dce3ed; border-radius:8px; outline:0; color:#2f3d55; background:#fbfcfe; font-size:15px; }.security-card input:focus { border-color:#7299f2; box-shadow:0 0 0 3px rgba(40,103,240,.08); }.security-two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.security-submit { min-width:160px; height:44px; margin-top:20px; font-size:14px; }.security-submit.danger { color:#fff; background:#ef5361; border-color:#ef5361; }
.totp-setup { margin-top:16px; padding:15px; border:1px solid #dbe6fa; border-radius:10px; background:#f5f8fe; }.totp-setup > span { display:block; margin-bottom:10px; color:#56657d; font-size:12px; }.totp-setup > div { display:flex; align-items:center; gap:9px; }.totp-setup code { flex:1; padding:11px; border-radius:7px; color:#245bbd; background:#fff; font-size:15px; font-weight:850; letter-spacing:1px; overflow-wrap:anywhere; }.totp-setup button { height:40px; padding:0 13px; border:0; border-radius:7px; color:#fff; background:#2867f0; font-weight:800; }.totp-setup small { display:block; margin-top:9px; color:#8090a7; font-size:11px; }.totp-setup details { margin-top:11px; color:#60708a; font-size:11px; }.totp-setup details p { overflow-wrap:anywhere; line-height:1.5; }
.security-session { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:16px; padding:20px 24px; }.security-session h2 { margin:0 0 5px; font-size:17px; }.security-session p { margin:0; color:#8491a5; font-size:12px; }.security-session .danger { color:#fff; background:#ef5361; border-color:#ef5361; }
.cache-hint { margin-left:auto; align-self:center; color:#8b96a9; font-size:8px; }
.template-search-row { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid #e9eef5; background:#fbfcfe; }
.template-search-main { display:flex; align-items:center; gap:10px; flex:0 1 610px; min-width:420px; }
.template-search { width:min(520px,calc(100% - 100px)); height:40px; box-sizing:border-box; margin:0; background:#fff; font-size:13px; }
.template-search input { height:36px; font-size:13px; }
.template-search-button { min-width:88px; height:40px; padding:0 22px; font-size:13px; }
.batch-search-row { min-height:70px; }
.batch-replace-tip { margin-left:auto; color:#9aa5b7; font-size:11px; }
.batch-replace-box { min-width:460px; flex:1; display:grid; grid-template-columns:auto minmax(180px,1fr) auto; align-items:center; gap:10px; padding-left:18px; border-left:1px solid #e4e9f1; }
.match-summary { min-width:120px; display:grid; gap:3px; color:#738198; font-size:10px; }
.match-summary span { max-width:145px; overflow:hidden; color:#6c7890; text-overflow:ellipsis; white-space:nowrap; }
.match-summary b { color:#2867f0; font-size:12px; }
.batch-replace-box > input { width:100%; height:40px; padding:0 12px; border:1px solid #dce4ef; border-radius:8px; outline:0; color:#3f4d65; background:#fff; font-size:12px; }
.batch-replace-box > input:focus { border-color:#88aaf8; box-shadow:0 0 0 3px rgba(40,103,240,.08); }
.batch-button { min-width:92px; height:40px; border:0; color:#fff; background:#6858d9; }
.batch-button:hover { background:#5847ca; }
.batch-button:disabled { cursor:not-allowed; opacity:.45; }
.replace-preview { display:grid; grid-template-columns:62px 1fr; gap:8px 12px; align-items:center; padding:13px; border-radius:8px; background:#f5f7fb; }
.replace-preview span { color:#8490a4; font-size:10px; }
.replace-preview code { overflow:hidden; color:#394760; text-overflow:ellipsis; white-space:nowrap; }
.odds-panel { max-width:100%; }
.odds-search-row { min-height:70px; }
.odds-table { table-layout:fixed; }
.odds-table th,.odds-table td { text-align:center; }
.odds-table th { height:52px; font-size:13px; }
.odds-table th:nth-child(1) { width:8%; }.odds-table th:nth-child(2) { width:24%; }.odds-table th:nth-child(7) { width:10%; }
.odds-table td { height:68px; font-size:15px; }
.odds-table td b { font-size:15px; }
.odds-table .tag { min-height:30px; padding:0 10px; font-size:13px; }
.odds-editor-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.odds-editor-grid label { display:grid; gap:7px; color:#5f6d84; font-size:13px; font-weight:700; }
.odds-editor-grid input { width:100%; height:42px; padding:0 12px; border:1px solid #dce3ed; border-radius:8px; outline:0; color:#35435b; background:#fff; }
.odds-editor-grid input:focus { border-color:#7ba1f8; box-shadow:0 0 0 3px rgba(40,103,240,.08); }
.template-table-wrap { overflow-x:hidden; }
.template-table { width:100%; table-layout:fixed; white-space:normal; }
.template-table th { height:58px; padding:0 14px; color:#65748e; text-align:center; font-size:14px; }
.template-table th:nth-child(1) { width:7%; }
.template-table th:nth-child(2) { width:11%; }
.template-table th:nth-child(3) { width:38%; }
.template-table th:nth-child(4) { width:36%; }
.template-table th:nth-child(5) { width:8%; }
.template-table td { height:180px; padding:14px 12px; vertical-align:middle; overflow:hidden; }
.template-id,.template-operation { text-align:center; }
.template-id b { color:#344158; font-size:16px; }
.template-type strong { display:block; margin-bottom:12px; color:#3f4d65; font-size:15px; line-height:1.45; }
.template-content-box { box-sizing:border-box; width:100%; height:150px; padding:13px 15px; overflow-y:auto; overflow-x:hidden; border:1px solid #dce3ed; border-radius:7px; color:#435169; background:#fff; white-space:pre-wrap; word-break:break-word; scrollbar-width:thin; font:14px/1.65 ui-monospace,"Microsoft YaHei",Consolas,monospace; }
.template-button-box { color:#536178; }
.template-edit-button { min-width:58px; height:38px; border:0; border-radius:7px; color:#fff; background:#f06468; cursor:pointer; font-size:14px; font-weight:700; }
.template-edit-button:hover { background:#dc5258; }
.pagination { height: 58px; display: flex; justify-content: flex-end; align-items: center; gap: 5px; padding: 0 18px; border-top: 1px solid #edf1f6; }
.pagination span { margin-right: auto; color: #8e9aae; font-size: 9px; }
.pagination button { width: 28px; height: 28px; border: 1px solid #e2e7ef; border-radius: 6px; color: #708097; background: white; font-size: 9px; }.pagination button.active { color: white; border-color: var(--blue); background: var(--blue); }.pagination button:disabled { opacity:.45; }

.round-console { display: grid; grid-template-columns: 1fr 290px; gap: 16px; margin-bottom: 16px; }
.console-primary { overflow: hidden; }
.console-top { display: grid; grid-template-columns: 1fr 180px 205px; align-items: center; min-height: 124px; padding: 22px; border-bottom: 1px solid #edf1f5; }
.console-top h2 { margin: 9px 0 4px; font-size: 21px; }.console-top p { margin: 0; color: var(--muted); font-size: 9px; }
.console-timer { padding-left: 24px; border-left: 1px solid #e8edf4; }.console-timer span,.console-timer small { display:block; color:#8995a8; font-size:8px; }.console-timer strong { display:block; margin:6px 0 3px; font-family:ui-monospace,Consolas,monospace; font-size:28px; letter-spacing:2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 9px; background: #f6f9fd; }.switch-row > span { display:grid; gap:3px; font-size:9px; font-weight:700; }.switch-row small { color:#8895aa; font-size:7px; font-weight:400; }.switch-row input,.mini-switch input { display:none; }.switch-row i,.mini-switch i { position:relative; width:34px; height:19px; border-radius:10px; background:#cbd3e0; }.switch-row i::after,.mini-switch i::after { content:""; position:absolute; top:3px; left:3px; width:13px; height:13px; border-radius:50%; background:white; transition:.2s; }.switch-row input:checked + i,.mini-switch input:checked + i { background:var(--blue); }.switch-row input:checked + i::after,.mini-switch input:checked + i::after { left:18px; }
.phase-track.large { padding: 28px 24px; }.phase-track.large::before { top:42px; }
.console-actions { display:flex; justify-content:flex-end; gap:9px; padding:16px 22px; background:#fafbfd; border-top:1px solid #edf1f5; }
.console-side { padding:20px; }.console-side h3 { margin:0 0 14px; font-size:13px; }
.round-mode-indicator { min-height:62px; box-sizing:border-box; display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:10px; background:#f5f8fc; }
.round-mode-indicator .status-light { flex:0 0 auto; }
.round-mode-indicator p { display:grid; gap:4px; margin:0; }
.round-mode-indicator b { color:#273750; font-size:11px; }
.round-mode-indicator small { color:#8a96a8; font-size:8px; }
.console-source { min-height:48px; box-sizing:border-box; display:flex; align-items:center; gap:10px; padding:10px 22px; border-top:1px solid #edf1f5; color:#6e7b8e; background:#fafbfd; font-size:9px; }
.console-source b { margin-left:auto; color:#536176; font-size:9px; }
.round-error { min-height:44px; display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:14px; border:1px solid #f2c8cd; border-radius:8px; color:#bd3f4b; background:#fff4f5; font-size:11px; font-weight:750; }
.round-error button { height:28px; padding:0 10px; border:1px solid #e7b9bf; border-radius:6px; color:#b53845; background:#fff; font-weight:750; }
.round-empty { min-height:190px; display:grid; place-items:center; color:#96a1b2; font-size:11px; }
.live-play { grid-template-columns:100px 1fr 95px 75px; }
.detail-line { min-height:42px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #edf1f5; color:#7d899d; font-size:9px; }.detail-line b { color:#344158; font-size:10px; }
.health-note { display:flex; align-items:center; gap:12px; margin-top:18px; padding:14px; border-radius:9px; background:#effaf6; }.health-note p { display:grid; gap:3px; margin:0; }.health-note b { color:#33735c; font-size:9px; }.health-note small { color:#6e9889; font-size:7px; }
.risk-play { display:grid; grid-template-columns:90px 1fr 105px 115px; align-items:center; gap:14px; padding:12px 20px; border-bottom:1px solid #eef2f6; font-size:9px; }.risk-play > div { height:7px; border-radius:4px; overflow:hidden; background:#edf1f6; }.risk-play i { display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#6393ff,#2867f0); }.risk-play b { display:grid; gap:3px; text-align:right; }.risk-play small { color:#929daf; font-size:7px; font-weight:400; }.danger-text { color:var(--red); }
.timeline-panel { padding-bottom:12px; }.timeline-row { display:grid; grid-template-columns:10px 55px 1fr; gap:8px; align-items:flex-start; padding:10px 20px; }.timeline-row > i { width:7px; height:7px; margin-top:3px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(23,185,129,.12); }.timeline-row > i.warn { background:var(--orange); box-shadow:0 0 0 4px rgba(245,158,66,.12); }.timeline-row > span { color:#8a96a8; font-size:8px; }.timeline-row p { display:grid; gap:3px; margin:0; }.timeline-row b { font-size:9px; }.timeline-row small { color:#8e99ab; font-size:7px; }

.review-banner { display:flex; align-items:center; gap:12px; margin:16px; padding:14px 16px; border:1px solid #dbe7ff; border-radius:9px; background:#f2f6ff; }.review-banner > span { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--blue); font-weight:800; }.review-banner p { display:grid; gap:3px; margin:0; }.review-banner b { font-size:9px; }.review-banner small { color:#71809a; font-size:8px; }
.row-actions { display:flex; gap:5px; }.row-actions button,.text-action { border:0; color:var(--blue); background:transparent; font-size:8px; font-weight:700; }.row-actions button:first-child { padding:5px 8px; border-radius:5px; color:white; background:var(--blue); }.row-actions .danger-link { color:var(--red); background:transparent; }
.risk-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:16px; }.risk-event { display:flex; align-items:center; gap:12px; padding:15px 18px; border-bottom:1px solid #edf1f6; }.risk-event p { flex:1; display:grid; gap:4px; margin:0; }.risk-event b { font-size:9px; }.risk-event small { color:#8793a7; font-size:8px; }.risk-event button { border:0; color:var(--blue); background:transparent; font-size:8px; font-weight:700; }
.rule-row { display:flex; align-items:center; gap:11px; padding:13px 18px; border-bottom:1px solid #edf1f6; }.rule-row p { flex:1; display:grid; gap:3px; margin:0; }.rule-row b { font-size:9px; }.rule-row small,.rule-row em { color:#8995a8; font-size:7px; font-style:normal; }
.turnover-row { display:grid; grid-template-columns:120px 1fr 115px; align-items:center; gap:14px; padding:14px 20px; border-bottom:1px solid #eef2f6; }.turnover-row p { display:grid; gap:3px; margin:0; }.turnover-row b { font-size:9px; }.turnover-row small,.turnover-row span { color:#8995a8; font-size:8px; }.turnover-row > div { height:7px; border-radius:4px; overflow:hidden; background:#edf1f6; }.turnover-row i { display:block; height:100%; background:var(--blue); }
.backwater-preview { padding-bottom:20px; }.backwater-total { margin:18px 20px 4px; padding:18px; border-radius:10px; background:linear-gradient(135deg,#285fdf,#3d7bf5); color:white; }.backwater-total span,.backwater-total small { display:block; color:#d7e4ff; font-size:8px; }.backwater-total strong { display:block; margin:7px 0 4px; font-size:23px; }.backwater-preview .detail-line,.backwater-preview .btn { margin-left:20px; margin-right:20px; width:calc(100% - 40px); }

.activity-layout { display:grid; grid-template-columns:1.45fr .75fr; gap:16px; }.campaign-card { padding:22px; }.campaign-top { display:flex; align-items:flex-start; gap:14px; }.campaign-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:13px; color:white; background:linear-gradient(135deg,#7155dc,#9b82f1); font-size:20px; }.campaign-top > div:nth-child(2) { flex:1; }.campaign-top h2 { margin:9px 0 5px; font-size:16px; }.campaign-top p { margin:0; color:#8793a7; font-size:8px; }.mini-switch { align-self:center; }.mini-switch i { display:block; }
.campaign-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:24px 0; }.campaign-stats div { padding:14px; border-radius:9px; background:#f7f9fc; }.campaign-stats span { display:block; color:#8995a8; font-size:8px; }.campaign-stats b { display:block; margin-top:6px; font-size:13px; }.campaign-actions { display:flex; gap:8px; }
.tier-row { display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; padding:13px 20px; border-bottom:1px solid #edf1f5; font-size:9px; }.tier-row b { color:var(--purple); }.tier-row small { color:#8995a8; font-size:8px; }
.config-banner { display:grid; grid-template-columns:repeat(3,1fr) auto; align-items:center; gap:16px; margin-bottom:16px; padding:17px 20px; border:1px solid #dfe8fa; border-radius:12px; background:linear-gradient(135deg,#f6f9ff,#eef4ff); }.config-banner > div { display:grid; gap:4px; }.config-banner span,.config-banner small { color:#7f8ca2; font-size:8px; }.config-banner b { font-size:13px; }
.template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.template-card { padding:18px; }.template-title { display:flex; align-items:center; gap:10px; }.template-title > span { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; color:var(--blue); background:#edf3ff; font-size:9px; font-weight:800; }.template-title div { flex:1; }.template-title h3 { margin:0 0 4px; font-size:12px; }.template-title p { margin:0; color:#8b96a8; font-size:8px; }.template-card pre { min-height:88px; margin:16px 0 12px; padding:13px; border:1px solid #e7ecf3; border-radius:8px; color:#556279; background:#f9fafc; white-space:pre-wrap; font:9px/1.7 ui-monospace,Consolas,monospace; }.template-vars { display:flex; align-items:center; gap:6px; margin-bottom:14px; color:#8894a8; font-size:8px; }.template-vars code { padding:3px 5px; border-radius:4px; color:#5570a6; background:#eff3f9; font-size:7px; }

.system-hero { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; padding:20px 24px; border:1px solid #d9f0e7; border-radius:12px; background:linear-gradient(135deg,#f0fbf7,#f8fdfb); }.system-hero > div { display:flex; align-items:center; gap:17px; }.system-hero p { display:grid; gap:4px; margin:0; }.system-hero b { font-size:14px; }.system-hero small { color:#789386; font-size:8px; }
.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }.service-card { display:grid; grid-template-columns:44px 1fr; gap:12px; padding:18px; }.service-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:11px; color:var(--blue); background:#edf3ff; font-size:16px; }.service-card h3 { margin:2px 0 7px; font-size:11px; }.service-card p { grid-column:1/-1; display:flex; justify-content:space-between; margin:8px 0 0; padding-top:12px; border-top:1px solid #edf1f5; }.service-card p span { font-size:10px; font-weight:800; }.service-card p small { color:#8a96a8; font-size:8px; }
.job-row { display:flex; align-items:center; gap:11px; padding:13px 20px; border-bottom:1px solid #edf1f5; }.job-row p { flex:1; display:grid; gap:3px; margin:0; }.job-row b { font-size:9px; }.job-row small,.job-row em { color:#8995a8; font-size:8px; font-style:normal; }.job-row em { width:48px; text-align:right; }
.resource-row { padding:13px 20px; }.resource-row > div:first-child { display:flex; justify-content:space-between; margin-bottom:7px; font-size:9px; }.resource-row > div:last-child { height:7px; overflow:hidden; border-radius:4px; background:#edf1f5; }.resource-row i { display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#5f8ef6,#2867f0); }

.toast-layer { position:fixed; z-index:110; inset:0; display:grid; place-items:center; padding:20px; background:rgba(9,20,44,.16); backdrop-filter:blur(1.5px); animation:toastLayerIn .18s ease; }
.toast { position:relative; width:min(520px,calc(100vw - 40px)); min-height:132px; box-sizing:border-box; display:grid; grid-template-columns:54px 1fr 32px; align-items:center; gap:18px; padding:24px 22px; border:1px solid #d6eadf; border-radius:18px; color:#24324a; background:white; box-shadow:0 28px 80px rgba(13,29,60,.28); animation:toastIn .24s ease; }
.toast > span { width:54px; height:54px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--green); box-shadow:0 8px 22px rgba(25,170,111,.25); font-size:28px; font-weight:900; }
.toast > div { min-width:0; }
.toast strong { display:block; margin-bottom:7px; color:#17243b; font-size:21px; line-height:1.2; }
.toast p { margin:0; color:#617089; font-size:17px; font-weight:600; line-height:1.55; overflow-wrap:anywhere; }
.toast > button { width:32px; height:32px; align-self:start; display:grid; place-items:center; padding:0; border:0; border-radius:8px; color:#8794a8; background:#f3f6fa; cursor:pointer; font-size:22px; line-height:1; }
.toast > button:hover { color:#3d4b62; background:#e9eef5; }
.toast.toast-error { border-color:#f2d7dc; }
.toast.toast-error > span { background:var(--red); box-shadow:0 8px 22px rgba(224,75,91,.22); }
@keyframes toastLayerIn { from { opacity:0; } }
@keyframes toastIn { from { transform:translateY(18px) scale(.96); opacity:0; } }
.modal-backdrop { position:fixed; z-index:90; inset:0; display:grid; place-items:center; padding:20px; background:rgba(7,16,38,.48); backdrop-filter:blur(3px); }
.modal-card { width:min(430px,100%); padding:27px; border-radius:14px; background:white; box-shadow:0 28px 80px rgba(7,16,38,.28); }.modal-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:var(--red); background:#fff0f2; font-size:18px; font-weight:900; }.modal-card h3 { margin:16px 0 8px; font-size:17px; }.modal-card > p { margin:0 0 18px; color:#748198; font-size:10px; line-height:1.7; }.modal-card label { display:grid; gap:7px; color:#66738a; font-size:9px; }.modal-card textarea { min-height:82px; padding:10px; resize:vertical; border:1px solid #e0e6ef; border-radius:8px; outline:0; color:#435069; font-size:10px; }.modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; }
.modal-card.template-editor { width:min(760px,100%); max-height:94vh; overflow:auto; }
.template-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.template-editor-head span { color:#8792a6; font-size:13px; }
.template-editor-head h3 { margin:4px 0 0; }
.template-editor label + label { margin-top:14px; }
.modal-card.template-editor label { font-size:14px; font-weight:700; }
.template-editor textarea { box-sizing:border-box; width:100%; resize:none; color:#3f4d65; font:14px/1.65 ui-monospace,"Microsoft YaHei",Consolas,monospace; }
.template-editor .template-text-input { height:260px; }
.template-editor .template-buttons-input { height:140px; }
.template-editor .template-enable { display:flex; grid-template-columns:auto 1fr; align-items:center; gap:8px; margin-top:14px; }
.template-enable input { width:16px; height:16px; }
.modal-card .editor-note { margin:14px 0 0; padding:11px 13px; border-radius:7px; color:#6b7890; background:#f5f7fb; font-size:12px; }
.mobile-scrim { display:none; }

@media (max-width: 1480px) {
  .user-table-wrap,.ledger-table-wrap { padding:14px; background:#f3f6fa; }
  .original-user-table,.ledger-table { display:block; width:100%; border:0; background:transparent; }
  .original-user-table thead,.ledger-table thead { display:none; }
  .original-user-table tbody,.ledger-table tbody { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .original-user-table tbody tr,.ledger-table tbody tr { min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; overflow:hidden; border:1px solid #dfe5ee; border-radius:12px; background:#fff; box-shadow:0 5px 16px rgba(34,53,83,.05); }
  .original-user-table tbody td,.ledger-table tbody td { min-width:0; height:auto; min-height:56px; display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:10px 14px; border:0; border-bottom:1px solid #edf1f6; background:#fff !important; text-align:right; font-size:14px; overflow-wrap:anywhere; }
  .original-user-table tbody td::before,.ledger-table tbody td::before { content:attr(data-label); flex:0 0 auto; margin-right:auto; color:#8895a8; font-size:11px; font-weight:800; text-align:left; }
  .original-user-table tbody td:nth-last-child(-n+2),.ledger-table tbody td:nth-last-child(-n+2) { border-bottom:0; }
  .original-user-table .user-identity,.ledger-table .ledger-user { max-width:100%; overflow-wrap:anywhere; }
  .original-user-table .user-name { font-size:17px; }
  .original-user-table .user-money { min-width:72px; min-height:36px; padding:0 10px; font-size:15px; }
  .original-user-table .real-toggle { min-width:64px; }
  .original-user-table .fund-buttons { flex-wrap:wrap; gap:6px; }
  .original-user-table .fund-buttons button { min-width:58px; height:36px; font-size:13px; }
  .original-user-table .summary-button { height:36px; padding:0 11px; font-size:13px; }
  .original-user-table .registered-time { font-size:13px; }
  .ledger-table tbody td:nth-child(6) { grid-column:1/-1; justify-content:flex-start; text-align:left; }
  .ledger-table tbody td:nth-child(6)::before { min-width:54px; margin-right:0; }
  .ledger-table .ledger-time { max-width:none; }
  .ledger-table .ledger-change strong { font-size:16px; }
  .original-user-table tbody tr.responsive-empty,.ledger-table tbody tr.responsive-empty { display:block; grid-column:1/-1; }
  .original-user-table tbody tr.responsive-empty td,.ledger-table tbody tr.responsive-empty td { display:block; padding:28px; text-align:center; }
  .original-user-table tbody tr.responsive-empty td::before,.ledger-table tbody tr.responsive-empty td::before { display:none; }
}

@media (max-width: 1180px) {
  .login-page { grid-template-columns:1fr; }.login-scene,.login-visual { display:none; }
  .metrics-grid { grid-template-columns:repeat(2,1fr); }
  .global-search { width:240px; }
  .top-status { display:none; }
  .bot-runtime span { display:none; }
  .bot-runtime { width:34px; padding:0; justify-content:center; }
  .dashboard-grid,.dashboard-grid.lower { grid-template-columns:1fr; }
  .round-console { grid-template-columns:1fr; }
  .risk-grid,.activity-layout { grid-template-columns:1fr; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .batch-search-row { align-items:stretch; flex-direction:column; }
  .template-search-main { width:100%; min-width:0; flex:none; }
  .batch-replace-box { width:100%; min-width:0; padding:12px 0 0; border-top:1px solid #e4e9f1; border-left:0; }
  .batch-replace-tip { margin-left:0; }
  .ledger-summary { order:3; flex-basis:100%; min-width:0; }
  .security-grid { grid-template-columns:1fr; }
}

@media (max-width: 820px) {
  .original-user-table tbody,.ledger-table tbody { grid-template-columns:1fr; }
  .sidebar { transform:translateX(-102%); transition:.25s ease; }.sidebar.sidebar-open { transform:none; }
  .workspace { margin-left:0; }.menu-toggle { display:block; }.topbar { padding:0 15px; gap:10px; }.breadcrumb { display:none; }.global-search { flex:1; width:auto; margin-left:0; }.profile span,.profile em { display:none; }.logout-button { display:none; }
  .main-content { padding:20px 14px 36px; }.page-heading { align-items:flex-start; }.page-heading h1 { font-size:21px; }.page-actions .ghost { display:none; }
  .dashboard-grid,.dashboard-grid.lower,.round-console,.risk-grid,.activity-layout { grid-template-columns:1fr; }
  .mobile-scrim { position:fixed; z-index:35; inset:0; display:block; border:0; background:rgba(5,13,30,.42); }
  .round-body { grid-template-columns:1fr; }.countdown { border-right:0; border-bottom:1px solid #edf1f5; padding:0 0 15px; }.round-kpis { padding:15px 0 0; }
  .phase-track { overflow-x:auto; grid-template-columns:repeat(5,120px); justify-content:start; }.phase-track::before { display:none; }
  .filterbar { align-items:stretch; flex-wrap:wrap; }.filter-search { width:100%; }.filterbar label { flex:1; }.filterbar input,.filterbar select { min-width:0; width:100%; }
  .cache-hint { width:100%; margin-left:0; }
  .console-top { grid-template-columns:1fr; gap:18px; }.console-timer { padding-left:0; border-left:0; }.switch-row { max-width:240px; }
  .template-grid { grid-template-columns:1fr; }.config-banner { grid-template-columns:1fr 1fr; }.service-grid { grid-template-columns:1fr; }
  .batch-replace-box { grid-template-columns:1fr; }
  .match-summary span { max-width:100%; }
  .odds-editor-grid { grid-template-columns:1fr; }
  .fund-preview,.summary-kpis { grid-template-columns:1fr 1fr; }
  .ledger-filter-row { align-items:stretch; flex-direction:column; gap:12px; }
  .ledger-main-filters label,.ledger-date-filter { justify-content:space-between; }
  .ledger-main-filters input,.ledger-main-filters select { width:min(68vw,420px); }
  .ledger-summary { display:grid; grid-template-columns:repeat(2,1fr); }
  .ledger-summary-chip { min-width:0; }
  .security-status-grid { grid-template-columns:1fr; }.security-status-card { min-height:100px; }.security-two { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
  .original-user-table tbody tr,.ledger-table tbody tr { grid-template-columns:1fr; }
  .original-user-table tbody td,.ledger-table tbody td,.original-user-table tbody td:nth-last-child(-n+2),.ledger-table tbody td:nth-last-child(-n+2) { border-bottom:1px solid #edf1f6; }
  .original-user-table tbody td:last-child,.ledger-table tbody td:last-child { border-bottom:0; }
  .login-panel { padding:18px; }.login-card { padding:28px 22px; border-radius:16px; }.login-heading h2 { font-size:26px; }
  .metrics-grid { grid-template-columns:1fr; }.overview-heading { align-items:flex-start; flex-direction:column; }.segmented { width:100%; }.segmented button { flex:1; }
  .round-kpis { grid-template-columns:1fr 1fr; }.round-kpis div:last-child { grid-column:1/-1; }
  .round-actions,.console-actions,.campaign-actions { flex-wrap:wrap; }.round-actions button,.console-actions .btn,.campaign-actions .btn { flex:1; }
  .chart-legend { display:none; }.risk-play { grid-template-columns:75px 1fr; }.risk-play b { text-align:left; }
  .campaign-stats { grid-template-columns:1fr 1fr; }.config-banner { grid-template-columns:1fr; }.toast { width:calc(100vw - 28px); min-height:118px; grid-template-columns:46px 1fr 30px; gap:13px; padding:20px 16px; }.toast > span { width:46px; height:46px; font-size:23px; }.toast strong { font-size:19px; }.toast p { font-size:15px; }
  .fund-preview,.summary-kpis { grid-template-columns:1fr; }
  .ledger-date-filter { align-items:flex-start; flex-direction:column; }
  .ledger-date-filter > div { width:100%; box-sizing:border-box; }
  .ledger-date-filter input { min-width:0; flex:1; }
  .ledger-actions .btn { min-width:0; flex:1; }
  .ledger-summary { grid-template-columns:1fr; }
  .security-session { align-items:flex-start; flex-direction:column; }.security-session button { width:100%; }.totp-setup > div { align-items:stretch; flex-direction:column; }
}
/* Live banker, agent quota and commission administration. */
.advanced{max-width:1550px;margin:auto;padding-bottom:36px}.advanced .page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.advanced h1{font-size:25px;margin:0 0 8px}.advanced p{line-height:1.8}.advanced .page-heading p{color:#748099;margin:0}.advanced-tabs{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap}.advanced-tabs button{background:#fff;border:1px solid #dfe5ef;border-radius:9px;padding:11px 20px;color:#536279;cursor:pointer}.advanced-tabs button.active{background:#2070ee;color:#fff;border-color:#2070ee}.advanced-card{padding:25px;margin-bottom:22px;background:white;border-radius:14px;border:1px solid #e5eaf2}.advanced-card h2{font-size:17px;margin:0 0 20px}.advanced-card-head{display:flex;justify-content:space-between;color:#8a96a9}.advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.advanced-field{display:flex;flex-direction:column;gap:9px;margin:0 0 18px;color:#45546b;font-size:13px}.advanced-field input,.advanced-field select,.advanced-rule input,.advanced-rule select,.advanced-actions input,.advanced-review input{width:100%;padding:11px 12px;border:1px solid #dce3ed;border-radius:7px;background:#fff;color:#25344b;font:inherit}.advanced-field small{color:#8591a5;font-size:12px;line-height:1.6}.advanced-check{display:flex;align-items:center;gap:9px;margin:16px 0;color:#465670;font-size:14px}.advanced-check input{width:17px;height:17px;accent-color:#2070ee}.advanced-note{font-size:13px;color:#7c889b;margin:18px 0 8px}.advanced-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.advanced-actions input{width:auto}.advanced-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:15px 0}.advanced-stats div{display:flex;flex-direction:column;gap:12px}.advanced-stats span{color:#8290a4;font-size:13px}.advanced-stats b{font-size:18px;color:#2b3e5c}.advanced-rule{display:grid;grid-template-columns:110px minmax(180px,1fr) 180px;align-items:center;gap:24px;max-width:780px;margin:20px 0;padding:20px 0;border-bottom:1px solid #edf0f5}.advanced-rule input{width:135px}.advanced-save{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 23px;background:#fff;box-shadow:0 4px 24px #233e6120;border:1px solid #dfe7f2;border-radius:12px;z-index:5}.advanced-save span{color:#7b889a;font-size:13px}.advanced-address{overflow-wrap:anywhere;white-space:normal;max-width:340px;display:block;font-size:12px;line-height:1.6}.advanced-alert{background:#fff1ed;color:#bc4c31;padding:12px 18px;border-radius:8px}.advanced-review{padding:28px;max-width:650px}.advanced-review label{display:grid;gap:12px}.advanced table{width:100%;font-size:13px;border-collapse:collapse}.advanced th,.advanced td{text-align:left;padding:14px 16px;border-bottom:1px solid #edf0f4;white-space:nowrap}.advanced th{background:#f8fafd;color:#79879b;font-weight:500}.advanced td small{color:#8a96a8}.advanced .btn{white-space:nowrap}.advanced button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:1000px){.advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.advanced-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.advanced-grid{grid-template-columns:1fr}.advanced-card{padding:18px}.advanced-rule{grid-template-columns:1fr;gap:12px}.advanced-save{align-items:stretch;flex-direction:column;gap:10px}.advanced-stats b{font-size:15px}.advanced th,.advanced td{padding:12px}.advanced .page-heading{align-items:flex-start}.advanced h1{font-size:21px}}

.presentation-language{display:flex;justify-content:space-between;align-items:center;gap:25px}.presentation-language h2{margin-bottom:8px}.presentation-language p,.presentation-editor p{color:#8190a5;font-size:13px;margin:0}.presentation-language .advanced-tabs{margin:0;flex-shrink:0}.presentation-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:start}.presentation-list{padding:10px;background:white;border-radius:14px;border:1px solid #e5eaf2;position:sticky;top:90px}.presentation-list button{display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;padding:15px 14px;border:0;border-radius:9px;background:transparent;cursor:pointer;color:#526077}.presentation-list button.selected{background:#edf3ff;color:#2372eb}.presentation-list small{font-size:11px;color:#91a0b6}.presentation-editor .advanced-card-head{gap:20px;align-items:flex-start;margin-bottom:22px}.presentation-editor h2{margin-bottom:9px}.presentation-editor .advanced-check{white-space:nowrap;margin-top:0}.presentation-media{display:grid;grid-template-columns:minmax(160px,300px) minmax(0,1fr);gap:24px;padding:20px;background:#f7f9fd;border-radius:12px;margin-bottom:25px;align-items:center}.presentation-media img{width:100%;max-height:210px;object-fit:contain;border-radius:10px}.presentation-media h3{font-size:14px;margin:0 0 10px}.presentation-media p{line-height:1.8;margin-bottom:15px}.presentation-media input{max-width:100%;font-size:12px}.presentation-no-image{display:grid;place-items:center;min-height:170px;border:1px dashed #cbd5e3;border-radius:10px;font-size:13px;color:#9ba7b9}.presentation-editor textarea{padding:16px;border:1px solid #dce3ed;border-radius:9px;resize:vertical;line-height:1.8;font:14px/1.8 system-ui;color:#37465d;width:100%;background:white}.presentation-variables{font-size:12px;color:#8593a8;margin-bottom:25px}.presentation-variables summary{cursor:pointer}.presentation-variables p{margin:12px 0}.presentation-variables code{display:inline-block;margin:4px;padding:5px 8px;background:#f1f5fa;border-radius:5px}@media(max-width:1000px){.presentation-layout{grid-template-columns:180px minmax(0,1fr)}.presentation-media{grid-template-columns:1fr}.presentation-media img{max-width:310px}.presentation-language{align-items:flex-start}}@media(max-width:640px){.presentation-layout{grid-template-columns:1fr}.presentation-list{position:static;display:grid;grid-template-columns:repeat(2,1fr)}.presentation-list button{padding:12px}.presentation-language{flex-direction:column}.presentation-editor .advanced-card-head{flex-direction:column}}
/* Clear settings hierarchy and bounded message editor. */
.advanced{min-width:0}.advanced-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.advanced-card-head h2{margin-bottom:8px}.advanced-card-head .advanced-note{margin-top:0}.advanced-field input,.advanced-field select{min-height:44px}.advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}.advanced-save{bottom:12px;z-index:12}.advanced-save .btn{min-width:150px}.advanced-save span{line-height:1.7}
.setting-switch-row{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f7f9fc;border:1px solid #e8edf5;border-radius:11px;padding:14px 16px;margin:15px 0;min-width:0}.setting-switch-copy{min-width:0}.setting-switch-copy strong{font-size:14px;color:#34445c;font-weight:600;line-height:1.6}.setting-switch-copy small{display:block;color:#7b889c;line-height:1.6;margin-top:4px}.setting-switch{display:inline-flex;align-items:center;gap:9px;padding:4px 0;border:0;background:none;cursor:pointer;flex-shrink:0;color:#8792a5;font:inherit;font-size:12px}.setting-switch-track{display:block;position:relative;width:44px;height:25px;border-radius:20px;background:#cbd3df;transition:background .15s}.setting-switch-track i{display:block;position:absolute;width:19px;height:19px;background:white;border-radius:50%;top:3px;left:3px;box-shadow:0 1px 4px #263b5620;transition:transform .15s}.setting-switch.is-on{color:#167053}.setting-switch.is-on .setting-switch-track{background:#14a879}.setting-switch.is-on .setting-switch-track i{transform:translateX(19px)}.setting-switch:focus-visible{outline:3px solid #a9c8ff;outline-offset:4px;border-radius:6px}.setting-switch-state{white-space:nowrap;min-width:36px}.setting-switch:disabled{cursor:wait}
.agent-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.agent-step{padding:20px;border:1px solid #e4eaf3;border-radius:12px;min-width:0}.agent-step h3{display:flex;align-items:center;gap:10px;font-size:15px;margin:0 0 24px;color:#34445c}.agent-step h3 i,.tier-number{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#edf3ff;color:#2871db;font-size:12px;font-style:normal}.agent-step .btn{margin-top:8px}.agent-step .advanced-field{margin-bottom:18px}.activity-rule-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px}.activity-rule-summary div{display:grid;gap:10px}.activity-rule-summary span{font-size:12px;color:#8792a7}.activity-rule-summary b{font-size:14px;color:#3b4d67;font-weight:600}.bonus-tier-table{margin:12px 0 24px}.bonus-tier-table input{width:100%;min-width:100px;max-width:175px;padding:10px 12px;border:1px solid #d9e2ee;border-radius:8px;font:inherit;color:#34445c;background:white}.bonus-tier-table small{display:block;font-size:11px;color:#8a97ab;margin-top:6px}.bonus-tier-table .setting-switch-row{margin:0;padding:0;background:none;border:0;justify-content:flex-start}.bonus-tier-table .setting-switch-copy{display:none}.bonus-tier-table .setting-switch-state{font-size:11px}
.presentation-page.advanced{display:flex;flex-direction:column;height:calc(100dvh - 126px);min-height:550px;padding:0;gap:16px;max-width:1600px}.presentation-page .page-heading{margin:0;flex-shrink:0;align-items:center;min-height:58px}.presentation-page .page-heading h1{font-size:24px}.presentation-page .page-heading p{font-size:12px}.presentation-language-picker{display:flex;align-items:center;gap:14px;flex-shrink:0}.presentation-language-picker>span{color:#8190a5;font-size:12px}.presentation-language-picker .advanced-tabs{margin:0}.presentation-page .advanced-tabs{gap:4px}.presentation-page .advanced-tabs button{padding:8px 15px;font-size:12px;border-radius:7px}.presentation-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0}.presentation-groups{display:flex;flex-wrap:wrap;gap:8px}.presentation-groups button{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid #e1e7f0;background:white;color:#66758e;border-radius:9px;font:inherit;font-size:12px;cursor:pointer}.presentation-groups button.active{background:#edf3ff;border-color:#bdd3f8;color:#2466c4}.presentation-groups small{font-size:10px;border-radius:4px;background:#eaf0f8;padding:2px 5px}.presentation-toolbar>input{width:190px;min-height:38px;padding:9px 12px;border:1px solid #dce4f0;border-radius:9px;font:inherit;font-size:12px;min-width:0;background:white}.presentation-page .presentation-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;flex:1;min-height:0;align-items:stretch}.presentation-page .presentation-list{position:static;top:auto;display:block;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;padding:8px;height:100%;border-radius:12px}.presentation-list-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 10px 16px;font-size:11px;color:#8995a8}.presentation-list-heading small{font-size:10px}.presentation-page .presentation-list button{padding:12px 11px;gap:7px;margin-bottom:3px}.presentation-page .presentation-list button strong{font-size:12px;font-weight:600;line-height:1.5}.presentation-page .presentation-list button small{display:flex;align-items:center;gap:6px;font-size:10px}.presentation-list .status-on,.presentation-list .status-off{width:5px;height:5px;border-radius:50%;background:#17a87c}.presentation-list .status-off{background:#bac4d3}.empty-copy{padding:15px;color:#94a1b5;font-size:12px}.presentation-page .presentation-editor{display:flex;flex-direction:column;min-height:0;min-width:0;height:100%;overflow:hidden;padding:0;border-radius:12px}.presentation-editor-head{padding:17px 22px;border-bottom:1px solid #e9edf4;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}.presentation-editor-head>div>span{font-size:10px;color:#8d9aaf}.presentation-editor-head h2{font-size:17px;color:#30445f;margin:5px 0 0}.presentation-editor-head .setting-switch-row{margin:0;padding:0;border:0;background:none;gap:16px}.presentation-editor-head .setting-switch-copy strong{font-size:12px;color:#75839a}.presentation-editor-body{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0;padding:20px 22px}.presentation-editor-body .advanced-tabs{margin-bottom:18px}.presentation-editor-body textarea{min-height:245px;resize:vertical;font-size:13px;line-height:1.8}.presentation-editor-body .advanced-field{gap:9px;margin-bottom:12px}.presentation-editor-body .advanced-field small{font-size:11px}.presentation-editor-body>.btn{font-size:11px;margin-bottom:10px}.presentation-media-settings{margin:16px 0;border:1px solid #e4eaf3;border-radius:9px;overflow:hidden}.presentation-media-settings summary{padding:14px 16px;font-size:12px;color:#53647e;cursor:pointer}.presentation-media-settings summary small{font-size:10px;color:#95a0b1;margin-left:15px}.presentation-editor-body .presentation-media{margin:0;padding:18px;border-radius:0;grid-template-columns:minmax(120px,240px) minmax(0,1fr)}.presentation-editor-body .presentation-variables{margin:18px 0 0;font-size:11px}.presentation-editor-footer{flex-shrink:0;padding:14px 22px;border-top:1px solid #e6edf6;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fbfcfe}.presentation-editor-footer>span{color:#8a96aa;font-size:11px}.presentation-editor-footer>div{display:flex;gap:9px}.presentation-editor-footer .btn{font-size:12px;padding:10px 16px}
@media(max-width:1250px){.agent-workflow{grid-template-columns:1fr}.agent-step{padding:20px}.agent-step .advanced-field{max-width:540px}.presentation-language-picker>span{display:none}.presentation-page .presentation-layout{grid-template-columns:185px minmax(0,1fr)}.presentation-editor-head .setting-switch-copy{display:none}.presentation-toolbar>input{width:150px}.presentation-groups button{padding:9px;font-size:11px}.presentation-editor-head{padding:16px 18px}.presentation-editor-body{padding:18px}.presentation-editor-footer{padding:13px 18px}}
@media(max-width:800px){.presentation-page.advanced{height:calc(100dvh - 125px);min-height:650px}.presentation-page .page-heading{align-items:flex-start}.presentation-page .page-heading h1{font-size:20px}.presentation-page .page-heading p{max-width:240px;line-height:1.6}.presentation-toolbar{align-items:flex-start;flex-direction:column}.presentation-toolbar>input{width:100%}.presentation-groups{gap:5px}.presentation-page .presentation-layout{grid-template-columns:155px minmax(0,1fr);gap:10px}.presentation-editor-body textarea{min-height:230px}.presentation-editor-footer>span{display:none}.presentation-editor-footer{justify-content:flex-end}.presentation-editor-footer .btn{padding:9px 12px}.presentation-editor-body .presentation-media{grid-template-columns:1fr}.activity-rule-summary{grid-template-columns:1fr}.advanced-card-head{flex-direction:column}.bonus-tier-table table{min-width:780px}}
@media(max-width:560px){.advanced-grid{grid-template-columns:1fr}.presentation-page.advanced{min-height:780px;height:auto}.presentation-page .page-heading{flex-direction:column;gap:12px}.presentation-page .presentation-layout{display:flex;flex-direction:column;min-height:600px}.presentation-page .presentation-list{max-height:170px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto}.presentation-list-heading{grid-column:1/-1;padding:8px}.presentation-page .presentation-list button{padding:9px}.presentation-page .presentation-editor{height:570px;min-height:570px}.setting-switch-row{gap:12px}.setting-switch-copy strong{font-size:12px}.advanced-save{padding:12px}.advanced-save .btn{min-width:0}.agent-step{padding:16px}}
/* Keep navigation and account status on one line on standard laptop screens. */
.brand{padding-left:18px;padding-right:16px;gap:10px}.brand strong{font-size:15px;white-space:nowrap}.topbar{gap:12px}.topbar>.global-search{flex:1;min-width:120px;max-width:380px;width:auto}.top-status,.profile,.logout-button{flex-shrink:0;white-space:nowrap}.profile small{white-space:nowrap}@media(max-width:1350px){.topbar{padding-left:22px;padding-right:22px;gap:10px}.topbar>.global-search{max-width:250px}.topbar>.icon-button{display:none}.breadcrumb{font-size:11px}.top-status{padding:0 9px}}@media(max-width:1050px){.breadcrumb>span,.breadcrumb>b{display:none}.profile span,.profile em{display:none}.topbar>.global-search{max-width:230px}.top-status{display:none}}
/* Compact console: fit common rule pages without a document scrollbar. */
.admin-logo{display:block;width:34px;height:34px;flex:0 0 34px}.sidebar{width:218px}.workspace{margin-left:218px}.brand{height:60px;gap:10px}.brand strong{font-size:16px}.topbar{height:60px;padding:0 20px;gap:10px}.main-content{padding:16px 20px 18px;max-width:1800px}.nav-scroll{padding:8px 10px 12px}.nav-section-toggle{height:38px}.nav-item{height:38px;min-height:38px;padding-top:5px;padding-bottom:7px;gap:10px}.nav-icon{width:28px;height:28px;flex-shrink:0}.nav-group{margin-bottom:5px}.sidebar-foot{padding:12px;margin:6px 10px 10px}.sidebar-foot strong{font-size:11px}.sidebar-foot span{font-size:10px}.page-heading{min-height:44px;margin-bottom:14px}.page-heading h1{font-size:22px;margin-top:0}.page-heading p{font-size:12px;line-height:1.6}.metrics-grid{gap:12px;margin-bottom:12px}.metric-card{min-height:104px;padding:16px}.metric-card strong{font-size:25px}.panel-head{min-height:52px;padding:12px 16px}.panel-head h2{font-size:14px}.panel-head p{font-size:11px}.dashboard-grid{gap:12px;margin-bottom:12px}.filterbar{padding:12px 16px;gap:10px}.filterbar input{min-height:34px}.table-wrap table th,.table-wrap table td{padding:10px 12px}.btn{height:34px;padding:0 13px}.login-scene-brand .admin-logo{width:42px;height:42px}.login-logo .admin-logo{width:38px;height:38px}
.advanced:not(.presentation-page){padding-bottom:0;max-width:1650px}.advanced .page-heading{min-height:42px;margin-bottom:12px;align-items:flex-start}.advanced h1{font-size:22px;margin-bottom:5px}.advanced .page-heading p{font-size:12px;line-height:1.5}.advanced-card{padding:18px 20px;margin-bottom:12px}.advanced-card h2{font-size:15px;margin:0 0 10px}.advanced-card p{line-height:1.65}.advanced-grid{gap:12px 18px}.advanced-field{gap:6px;margin-bottom:10px;font-size:12px}.advanced-field input,.advanced-field select,.advanced-rule input,.advanced-rule select{padding:8px 10px;min-height:34px;border-radius:7px}.advanced-field small{font-size:10px;line-height:1.5}.advanced-note{font-size:11px;margin:8px 0 0;line-height:1.65}.setting-switch-row{padding:10px 12px;margin:10px 0;gap:12px;border-radius:9px}.setting-switch-copy strong{font-size:12px}.setting-switch-track{width:38px;height:22px}.setting-switch-track i{width:16px;height:16px}.setting-switch.is-on .setting-switch-track i{transform:translateX(16px)}.setting-switch-state{font-size:11px}.advanced-save{position:sticky;bottom:8px;margin-top:0;padding:10px 16px;gap:14px;border-radius:9px;min-height:54px}.advanced-save span{font-size:11px}.advanced-save .btn{height:33px;min-width:135px}.advanced-stats{padding:5px 0;gap:12px}.advanced-stats div{gap:6px}.advanced-stats span{font-size:11px}.advanced-stats b{font-size:15px}.advanced-actions{gap:8px;margin:10px 0}.advanced th,.advanced td{padding:8px 10px;font-size:12px}.advanced-card-head{gap:12px;align-items:center}.advanced-card-head h2{margin-bottom:6px}.banker-fallback-config{padding-top:2px;border-top:1px solid #eaf0f6;margin-top:10px}.banker-fallback-config .advanced-grid{grid-template-columns:minmax(160px,260px) 1fr}.banker-fallback-config .advanced-note{margin-top:0}.advanced-rule{padding:12px 0;margin:10px 0;gap:18px}.agent-workflow{gap:12px;margin-top:12px}.agent-step{padding:15px}.agent-step h3{margin-bottom:15px;font-size:13px}.agent-step .advanced-field{margin-bottom:12px}.agent-step .setting-switch-copy strong{font-size:11px}
.settings-rebate{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-rebate>.page-heading,.settings-rebate>.advanced-save,.settings-rebate>.advanced-alert{grid-column:1/-1;margin:0}.settings-rebate>.advanced-card{margin:0;align-self:start}.settings-rebate .advanced-grid{grid-template-columns:1fr}.settings-rebate .advanced-field{margin-bottom:8px}.settings-rebate .advanced-note{max-width:650px}
.settings-activity{display:grid;grid-template-columns:230px minmax(0,1fr);gap:12px;align-items:start}.settings-activity>.page-heading,.settings-activity>.advanced-save,.settings-activity>.advanced-alert{grid-column:1/-1;margin:0}.settings-activity>.advanced-card{margin:0;min-width:0}.settings-activity .activity-summary-card{padding:18px 16px}.activity-rule-summary{grid-template-columns:1fr;gap:14px;margin-top:16px}.activity-rule-summary div{gap:5px}.activity-rule-summary span{font-size:10px}.activity-rule-summary b{font-size:12px;line-height:1.5}.activity-summary-card .setting-switch-row{flex-direction:column;align-items:flex-start;gap:7px}.settings-activity .bonus-tier-table{margin:8px 0 12px;overflow-x:auto}.settings-activity .bonus-tier-table table{table-layout:fixed;width:100%;min-width:0}.settings-activity .bonus-tier-table th,.settings-activity .bonus-tier-table td{padding:6px 7px;font-size:11px;white-space:normal}.settings-activity .bonus-tier-table th:first-child{width:36px}.settings-activity .bonus-tier-table th:nth-child(5){width:94px}.settings-activity .bonus-tier-table th:last-child{width:55px}.settings-activity .bonus-tier-table input{min-width:0;max-width:none;width:100%;padding:6px 7px;min-height:30px;font-size:12px}.settings-activity .bonus-tier-table small{font-size:9px;margin-top:3px;line-height:1.3}.settings-activity .bonus-tier-table .setting-switch-row{padding:0;margin:0}.settings-activity .bonus-tier-table .setting-switch{gap:5px}.settings-activity .bonus-tier-table .setting-switch-state{font-size:10px;min-width:30px}.settings-activity .bonus-tier-table .btn{height:28px;padding:0 8px;font-size:10px}.settings-activity .tier-number{width:22px;height:22px;font-size:10px}.activity-tiers-card>.advanced-grid{display:inline-grid;width:230px;vertical-align:top;margin-right:14px}.activity-tiers-card>.advanced-grid .advanced-field{margin-bottom:0}.activity-tiers-card>.btn{margin-top:23px;height:31px;font-size:10px}.settings-activity .advanced-card-head{flex-direction:row}.settings-activity .advanced-card-head .advanced-note{font-size:10px;margin:0}.settings-activity .advanced-card-head .btn{flex-shrink:0;font-size:10px}.settings-activity .advanced-save,.settings-rebate .advanced-save{position:static}
.presentation-page.advanced{height:calc(100dvh - 94px);min-height:480px;gap:12px}.presentation-page .page-heading{min-height:40px;margin:0}.presentation-page .page-heading h1{font-size:22px}.presentation-toolbar{gap:10px}.presentation-groups button{padding:8px 11px}.presentation-editor-head{padding:13px 18px}.presentation-editor-head h2{font-size:15px}.presentation-editor-body{padding:16px 18px}.presentation-editor-footer{padding:11px 18px}.presentation-page .presentation-list button{padding:10px}.presentation-page .presentation-layout{gap:12px}.presentation-editor-body .advanced-field{margin-bottom:10px}.presentation-editor-body textarea{font-size:12px}.presentation-page .setting-switch-copy strong{font-size:11px}
@media(min-width:1400px){.settings-banker{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:12px;align-items:start}.settings-banker>.page-heading,.settings-banker>.advanced-save,.settings-banker>.advanced-alert{grid-column:1/-1;margin:0}.settings-banker>.advanced-card{margin:0}.settings-banker .advanced-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-banker .advanced-save{position:static}.settings-banker .banker-fallback-config .advanced-grid{grid-template-columns:minmax(160px,260px) 1fr}}
@media(min-width:1150px){.agent-workflow{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.settings-activity{grid-template-columns:1fr}.settings-activity .activity-summary-card{padding:14px 16px}.settings-activity .activity-rule-summary{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:10px}.activity-summary-card .setting-switch-row{flex-direction:row;align-items:center}.settings-activity .advanced-note{font-size:10px}.settings-rebate{grid-template-columns:1fr}.settings-rebate .advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.advanced-card{padding:15px 17px}.settings-activity .bonus-tier-table th,.settings-activity .bonus-tier-table td{padding:5px 7px}.settings-activity .activity-summary-card>h2{display:none}.settings-activity .activity-summary-card>.setting-switch-row{margin-top:0}.settings-activity .activity-summary-card>.advanced-note{display:none}}
@media(max-width:900px){.sidebar{width:218px}.workspace{margin-left:0}.main-content{padding:14px}.topbar{padding:0 14px}.advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.presentation-page.advanced{height:calc(100dvh - 88px);min-height:480px}}
@media(max-width:620px){.settings-rebate .advanced-grid,.advanced-grid{grid-template-columns:1fr}.settings-activity .activity-rule-summary{grid-template-columns:1fr}.settings-activity .bonus-tier-table{overflow:auto}.settings-activity .bonus-tier-table table{min-width:570px}.settings-activity .advanced-card-head{align-items:flex-start}.activity-tiers-card>.advanced-grid{width:100%;margin:0}.activity-tiers-card>.btn{margin-top:10px}.settings-rebate,.settings-activity{gap:10px}.advanced-save{align-items:stretch;flex-direction:column;gap:6px}.advanced-save .btn{width:100%}.advanced .page-heading h1{font-size:20px}.presentation-page.advanced{height:auto;min-height:780px}.presentation-editor-footer .btn{font-size:11px}.banker-fallback-config .advanced-grid{grid-template-columns:1fr}}

/* Keep seven deposit tiers and their save action together on laptop screens. */
.settings-activity .bonus-tier-table th,.settings-activity .bonus-tier-table td{padding:4px 6px;line-height:1.35}.settings-activity .bonus-tier-table th:first-child{width:42px}.tier-turnover-cell{display:flex;align-items:center;gap:5px}.tier-turnover-cell input{flex:1;min-width:0}.settings-activity .tier-turnover-cell small{flex:0 0 20px;margin:0;line-height:1.3;color:#7a879b}.activity-tiers-card>.advanced-grid{grid-template-columns:1fr;width:250px}.settings-activity .activity-tiers-card{padding:14px 16px}.settings-activity .bonus-tier-table{margin-bottom:10px}.activity-tiers-card>.advanced-grid .advanced-field small{font-size:9px}.settings-activity .advanced-card-head h2{margin-bottom:4px}

/* Separate stable rules, unattended fallback and the live seat by purpose. */
.advanced-grid>.advanced-field{margin-bottom:0}.advanced-grid{row-gap:10px}.banker-status-column{min-width:0}.banker-fallback-card .setting-switch-row{padding:8px 10px}.banker-fallback-card .advanced-field{margin:8px 0}.banker-status-column .advanced-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.banker-status-column .advanced-actions{gap:6px}.banker-status-column .advanced-actions .btn{padding:0 9px;font-size:10px;height:29px}.banker-status-column .advanced-stats b{font-size:13px}.banker-status-column .advanced-stats span{font-size:10px}.banker-status-column .advanced-note{font-size:10px}.banker-status-column .advanced-card:last-child{margin-bottom:0}.banker-status-column .advanced-card{padding:15px 16px}
@media(min-width:1150px){.settings-banker{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr);gap:12px;align-items:start}.settings-banker>.page-heading,.settings-banker>.advanced-save,.settings-banker>.advanced-alert{grid-column:1/-1;margin:0}.settings-banker>.advanced-card{margin:0}.settings-banker>.advanced-card .advanced-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}.settings-banker .advanced-save{position:static}.settings-banker .advanced-field{font-size:11px}.settings-banker .advanced-field small{font-size:9px;line-height:1.4}.settings-banker>.advanced-card .advanced-note{font-size:10px}.settings-banker>.advanced-card .advanced-field{gap:5px}.settings-banker>.advanced-card .advanced-field input,.settings-banker>.advanced-card .advanced-field select{min-height:32px;padding:7px 8px}}

.agent-records{min-width:0}.agent-records .advanced-tabs{gap:6px;margin:0 0 8px}.agent-records .advanced-tabs button{padding:7px 14px;font-size:12px}.agent-records .advanced-card{margin:0}.agent-step h3{margin:0 0 12px}.agent-step .advanced-field{margin-bottom:10px}.settings-agents .advanced-card:first-of-type{padding:15px 18px}.settings-agents .agent-workflow{margin-top:10px}.settings-agents .agent-step{padding:12px}.settings-agents .advanced-note{font-size:10px}.settings-agents .agent-step .setting-switch-row{padding:8px;margin:8px 0}.settings-agents .agent-step .btn{height:30px;font-size:11px}.settings-agents .agent-step .advanced-field{font-size:11px}.settings-agents .agent-step .advanced-field input{min-height:32px;padding:7px 8px}.settings-agents .agent-step .advanced-field small{font-size:9px}.settings-agents .agent-step h3{margin-bottom:10px}.settings-agents .advanced-save{position:static}
.commission-records{min-width:0}.commission-records .advanced-card:last-child{margin-bottom:0}.commission-rules-card .advanced-rule{grid-template-columns:65px minmax(0,1fr) 90px;gap:10px;padding:8px 0;margin:8px 0;font-size:12px}.commission-rules-card .advanced-rule label{display:flex;align-items:center;gap:5px}.commission-rules-card .advanced-rule input{width:100%;min-width:0}.commission-rules-card>.advanced-grid{grid-template-columns:1fr;max-width:330px}.commission-rules-card .advanced-note{font-size:10px;line-height:1.5;margin-top:8px}.commission-rules-card .setting-switch-row{padding:8px 10px;margin:8px 0}.commission-rules-card .advanced-field{font-size:11px}.commission-rules-card .advanced-field small{font-size:9px}.commission-records .advanced-actions input{min-width:0;max-width:170px;padding:7px 8px;font-size:12px}
@media(min-width:1150px){.settings-commission{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,1fr);gap:12px;align-items:start}.settings-commission>.page-heading,.settings-commission>.advanced-save,.settings-commission>.advanced-alert{grid-column:1/-1;margin:0}.settings-commission>.advanced-card{margin:0;padding:15px 17px}.settings-commission .advanced-save{position:static}}

/* Desktop records stay as rows; the card layout is reserved for small screens. */
@media(min-width:1150px){.ledger-table-wrap,.user-table-wrap{padding:0;background:#fff}.ledger-table,.original-user-table{display:table;table-layout:fixed;border-collapse:collapse;width:100%;min-width:0}.ledger-table thead,.original-user-table thead{display:table-header-group}.ledger-table tbody,.original-user-table tbody{display:table-row-group}.ledger-table tbody tr,.original-user-table tbody tr{display:table-row;border:0;border-radius:0;box-shadow:none}.ledger-table tbody td,.original-user-table tbody td{display:table-cell;min-height:0;height:48px;padding:7px 8px;text-align:center;font-size:11px;border-bottom:1px solid #edf1f6;vertical-align:middle}.ledger-table tbody td::before,.original-user-table tbody td::before{display:none}.ledger-table tbody td:nth-child(6){display:table-cell;text-align:left}.ledger-table th,.original-user-table th{height:38px;padding:7px 8px;font-size:11px}.ledger-table .ledger-time{font-size:10px;max-width:110px}.ledger-table .ledger-change strong{font-size:12px}.ledger-table .ledger-user strong{font-size:11px}.ledger-table .tag{min-height:25px;padding:0 6px;font-size:10px}.ledger-table .rebate-status{min-height:25px;min-width:28px;font-size:10px}.ledger-filter-row{padding:9px 12px;gap:12px}.ledger-main-filters input,.ledger-main-filters select{height:32px;width:140px}.ledger-date-filter input{height:32px}.ledger-totals{padding:10px 14px;gap:18px}.original-user-table .user-name{font-size:12px}.original-user-table .user-money{min-width:0;min-height:28px;font-size:12px;padding:0 7px}.original-user-table .fund-buttons{gap:4px}.original-user-table .fund-buttons button{min-width:35px;height:28px;font-size:10px}.original-user-table .summary-button{height:28px;padding:0 7px;font-size:10px}.original-user-table .registered-time{font-size:10px}.original-user-table .user-status-toggles .real-toggle{min-width:44px;font-size:9px}.original-user-table .real-toggle i{width:32px;height:18px}.original-user-table .real-toggle i::after{width:12px;height:12px}.original-user-table .real-toggle.on i::after{left:17px}.ledger-table tbody tr.responsive-empty,.original-user-table tbody tr.responsive-empty{display:table-row}.ledger-table tbody tr.responsive-empty td,.original-user-table tbody tr.responsive-empty td{display:table-cell;padding:20px}}
.nav-section-toggle{height:35px}.nav-item{height:36px;min-height:36px;margin:2px 0}.nav-group{margin-bottom:3px}

.settings-activity .bonus-tier-table th{height:32px}.settings-activity .bonus-tier-table td{height:38px}.banker-bid-history{margin-top:12px}.banker-bid-history h3{font-size:12px;color:#526077;margin:0 0 8px}.banker-bid-history th{height:30px}.banker-bid-history td{height:36px}.settings-banker .banker-bid-history th,.settings-banker .banker-bid-history td{padding:5px 8px;font-size:10px}.banker-status-column .advanced-note{line-height:1.5}.banker-fallback-card .advanced-field small{font-size:9px}

.agent-step-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.agent-step-actions .setting-switch-row{flex:1;min-width:150px}.settings-agents .agent-step-actions .setting-switch-row{margin:0;padding:7px}.agent-step-actions>.btn{flex-shrink:0}.settings-agents>.advanced-card>h2{display:none}.settings-agents .agent-workflow{margin-top:8px}.settings-agents .agent-step .advanced-field{margin-bottom:8px}.agent-records .advanced-card{padding:10px 14px}.agent-records .advanced-card h2{display:none}.settings-agents .agent-records th{height:30px;padding:5px 8px;font-size:11px}.settings-agents .agent-records td{height:36px;padding:5px 8px;font-size:11px}

/* Finish desktop density without hiding data or clipping long records. */
.metrics-grid.compact .metric-card{min-height:80px;padding:12px 14px}.metrics-grid.compact .metric-card strong{font-size:22px}.data-panel .table-wrap table th{height:36px;padding:6px 8px;font-size:11px}.data-panel .table-wrap table td{height:42px;padding:6px 8px;font-size:11px}.data-panel .bet-type-badge{min-width:48px;min-height:24px;padding:0 5px;font-size:10px}.data-panel .bet-detail{font-size:10px}.data-panel .bet-user strong{font-size:11px}.data-panel .bet-source{min-height:24px;font-size:9px;padding:3px 5px}.data-panel .pagination{height:42px}.odds-table td{height:42px!important;font-size:12px}.odds-table td b{font-size:12px}.odds-table th{height:36px;font-size:11px}.odds-table .tag{min-height:24px;font-size:10px}.wechat-connect-panel{min-height:0}.wechat-connect-frame{height:440px;max-height:calc(100dvh - 170px);min-height:0}.settings-banker .advanced-save{min-height:50px;padding:8px 16px}
@media(min-width:1150px){.security-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.security-card{padding:18px}.security-card input{height:40px}.security-card-head{margin-bottom:16px}.security-card>label,.security-two label{margin-top:12px}.security-submit{height:36px;margin-top:16px}.round-console{grid-template-columns:minmax(0,1fr) 270px;gap:12px;margin-bottom:12px}.console-top{grid-template-columns:minmax(0,1fr) 120px 160px;padding:16px;min-height:110px}.console-timer{padding-left:16px}.console-top h2{font-size:19px}.dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}.dashboard-grid.lower{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-agents .agent-step{padding:10px}.settings-agents .agent-step .advanced-field{gap:4px;margin-bottom:6px}.settings-agents .agent-step .advanced-field input{min-height:30px;padding:6px 8px}.settings-agents .agent-step h3 i{width:20px;height:20px;font-size:10px}.settings-agents>.advanced-card>.setting-switch-row{padding:8px 10px;margin:8px 0}.settings-agents .advanced-save{min-height:50px;padding:8px 16px}}
.round-empty{min-height:140px}

/* Dense desktop rows keep both identity and balance history readable. */
@media(min-width:1150px){
 .ledger-table-wrap .ledger-table tbody td{height:43px;padding:3px 8px;line-height:1.2}
 .ledger-table .ledger-user,.ledger-table .ledger-change{gap:1px}
 .ledger-table .ledger-change{justify-items:center}
 .ledger-table .ledger-user strong{line-height:1.25;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .ledger-table .ledger-change>.amount-chip{min-height:19px;padding:1px 8px;line-height:1.2;min-width:55px}
 .ledger-table .ledger-change small .amount-chip{min-height:15px;padding:0 4px;line-height:1.25}
 .ledger-table .ledger-change small{line-height:1.3}
 .user-table-wrap .original-user-table tbody td{height:43px;padding:4px 8px}
 .original-user-table .user-identity,.data-panel .bet-user{gap:1px}
}
/* Four-character navigation, explicit manual expansion and shared table controls. */
.nav-section-toggle>span,.nav-item>span:nth-child(2){display:inline-block;min-width:4em;white-space:nowrap}.nav-section-toggle{gap:10px}.nav-item{gap:10px}.column-header{display:inline-flex;justify-content:center;align-items:center;gap:6px;border:0;background:transparent;padding:3px 0;color:inherit;font-size:inherit;font-weight:inherit;white-space:nowrap;cursor:pointer}.column-header span{font-size:10px;color:#8b9ab1}.column-header.active,.column-header.active span{color:#285fe0}.column-popover{position:fixed;width:264px;max-height:calc(100dvh - 20px);overflow:auto;z-index:100;background:#fff;border:1px solid #dae3f0;border-radius:12px;box-shadow:0 12px 40px #18345c30;padding:14px;color:#34445e;font:12px system-ui}.column-popover-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.column-popover-title>button{border:0;background:#f2f5fa;border-radius:5px;width:24px;height:24px;color:#7787a0;font-size:17px;cursor:pointer}.column-sort-options{display:flex;gap:7px;margin-bottom:14px}.column-sort-options button{flex:1;padding:8px;border:1px solid #e0e6f0;background:#f8faff;border-radius:6px;color:#60718c;font:inherit;cursor:pointer}.column-sort-options .selected{background:#eaf1ff;color:#2863da;border-color:#bfd0fa}.column-popover form label{display:grid;gap:8px;color:#7b8ba3}.column-popover input,.column-popover select{width:100%;height:35px;border:1px solid #dce4ef;border-radius:6px;padding:0 9px;background:#fff;color:#334560;font:12px system-ui;box-sizing:border-box}.column-filter-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.column-filter-actions button{border:1px solid #dce5f0;border-radius:6px;padding:7px 10px;background:#fff;color:#6b7a90;font:inherit;cursor:pointer}.column-filter-actions .primary{background:#2867f0;border-color:#2867f0;color:white}.amount-chip{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:27px;padding:3px 8px;border-radius:7px;background:#edf3ff;color:#315fba;font-weight:750;white-space:nowrap}.amount-chip.muted{background:#f0f3f7;color:#8492a8}.ledger-change small .amount-chip{min-width:0;min-height:21px;padding:2px 5px;font-size:10px}.ledger-change small{white-space:nowrap}.bet-amount{display:inline-flex;justify-content:center;min-width:42px;padding:5px 8px;border-radius:7px;background:#edf3ff}.bet-amount.bet{background:#fff0f2}.bet-amount.payout,.bet-amount.credit{background:#e9f9f1}.inline-detail,.data-panel .bet-detail.inline-detail,.ledger-table .ledger-detail.inline-detail{display:block;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;line-height:1.45}.bet-user,.ledger-user,.user-identity{justify-items:center;text-align:center!important;margin-left:auto;margin-right:auto}.bet-user strong,.ledger-user strong,.user-identity strong{text-align:center!important}.user-money{display:inline-flex;align-items:center;justify-content:center;background:#edf3ff;border-radius:7px;padding:4px 8px;min-height:27px}.user-money.recharge{background:#e9f8ef;color:#19835b}.user-money.withdraw{background:#fff0f2;color:#c65a69}.user-money.balance{background:#edf3ff;color:#315fba}.agent-instructions p{font-size:11px;line-height:1.65;margin:7px 0;color:#7b89a0}.agent-instructions code{display:block;background:#edf3ff;color:#3562af;padding:7px 9px;border-radius:6px;font-size:11px;margin:6px 0;white-space:nowrap}
.amount-chip.delta-positive{background:#e4f7ed;color:#138452}.amount-chip.delta-negative{background:#ffebee;color:#d83c50}.amount-chip.delta-zero{background:#f0f3f7;color:#7b8ba1}
.odds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.odds-grid>.table-wrap{min-width:0}.odds-panel .odds-search-row{padding:10px 14px;min-height:0;gap:10px}.odds-panel .template-search{max-width:340px}.odds-panel .template-search-button{height:34px;min-width:64px;padding:0 16px}.odds-panel .odds-table{min-width:0}.odds-panel .odds-table th:nth-child(1){width:7%}.odds-panel .odds-table th:nth-child(2){width:15%}.odds-panel .odds-table th:nth-child(3){width:11%}.odds-panel .odds-table th:nth-child(4){width:15%}.odds-panel .odds-table th:nth-child(5){width:17%}.odds-panel .odds-table th:nth-child(6){width:22%}.odds-panel .odds-table th:nth-child(7){width:13%}.odds-panel .odds-table td{height:36px!important;padding:4px 5px!important}.odds-panel .odds-table th{padding:6px 3px!important}.odds-panel .odds-table .template-edit-button{min-width:0;height:26px;padding:0 10px;font-size:11px}.odds-panel .odds-table .tag{min-height:21px;padding:1px 5px}
.group-manager .page-heading{margin-bottom:14px}.group-routing{padding:14px 16px;margin-bottom:14px}.group-routing-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:start}.group-routing-fields label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#455975;min-width:0}.group-routing-fields select{width:100%;height:36px;border:1px solid #dce4ef;border-radius:7px;padding:0 8px;background:#fff;color:#334560;font:12px system-ui}.group-routing-fields small{color:#8492a8;font-size:10px;font-weight:400;line-height:1.5}.group-routing-fields>.btn{margin-top:23px;height:36px}.group-help,.group-pending{font-size:11px;line-height:1.65;margin:12px 0 0;color:#8391a6}.group-help code{color:#3562af;background:#edf3ff;padding:2px 5px;border-radius:4px}.group-pending{color:#b87517}.group-table td small{display:block;font-size:10px;color:#a16666;margin-top:3px}.group-status{display:inline-block;padding:4px 8px;border-radius:6px;background:#f0f3f7;color:#76869c}.group-status.ready{background:#e5f7ef;color:#18815d}.group-manager .filterbar{padding:10px 14px}.group-manager .filterbar>span{font-size:11px;color:#8a98af}.group-manager .filter-search{max-width:340px}
@media(max-width:1350px){.odds-grid{grid-template-columns:minmax(0,1fr);gap:0}.group-routing-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.group-routing-fields>.btn{margin-top:0;justify-self:start}}
@media(max-width:700px){.group-routing-fields{grid-template-columns:minmax(0,1fr)}.odds-panel .odds-table th,.odds-panel .odds-table td{font-size:10px!important}.odds-panel .column-header{gap:2px}}
.rich-editor{border:1px solid #dce4f0;border-radius:9px;overflow:hidden;background:#fff}.rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:#f4f7fc;border-bottom:1px solid #e2e8f1}.rich-toolbar button{border:1px solid #dce4ef;border-radius:5px;padding:5px 8px;background:white;color:#425976;font-size:11px;cursor:pointer}.rich-toolbar>span{font-size:10px;color:#8695ac;align-self:center;padding-left:5px}.rich-content{min-height:190px;max-height:380px;overflow:auto;padding:14px;outline:none;line-height:1.8;font-size:13px;white-space:pre-wrap;color:#30445f}.rich-content a{color:#2867f0;text-decoration:underline}.rich-content code{background:#edf3ff;padding:2px 4px}.rich-content blockquote{margin:6px 0;padding-left:10px;border-left:3px solid #809fea}.rich-link-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:10px;border-top:1px solid #e2e8f1}.rich-link-form label{display:grid;gap:5px;flex:1;font-size:11px}.rich-link-form input{min-height:32px;padding:5px 8px;border:1px solid #dce4ef;border-radius:6px}.message-buttons{margin:16px 0;border:1px solid #e1e7f0;border-radius:9px;padding:12px}.message-buttons h3{margin:0;font-size:13px}.message-buttons small{color:#8392a8;font-size:10px}.message-button-row{display:flex;align-items:center;gap:8px;margin:10px 0}.message-button-row>div{display:grid;grid-template-columns:1fr 1fr 2fr;gap:7px;flex:1;min-width:0}.message-button-row label{display:grid;gap:4px;font-size:10px;color:#7e8da4}.message-button-row input{width:100%;min-width:0;height:32px;border:1px solid #dce5ef;border-radius:5px;padding:5px;box-sizing:border-box}.preference-preview{display:flex;gap:14px;flex-wrap:wrap;padding:14px;background:#f1f6ff;border-radius:8px;margin-top:15px;color:#42628b;font-size:12px}.preference-page .advanced-field>input,.command-settings input,.agent-payout-page .filterbar input,.agent-payout-page .filterbar select{height:34px;border:1px solid #dce4ee;border-radius:6px;background:white;padding:5px 9px;color:#405671;box-sizing:border-box}.command-settings td:nth-child(2){width:60%}.command-settings td input{width:100%;font-size:11px}.command-settings .filterbar{gap:12px;padding:12px}.command-settings .filterbar>span{font-size:11px;color:#7e8fa9}.command-settings td,.command-settings th{padding:5px 12px!important}.preference-page .advanced-save{margin-top:14px}.payout-explanation{font-size:11px;color:#7b8ca4;line-height:1.7;margin:0 0 14px}.agent-payout-page .filterbar{gap:10px;padding:12px}.agent-payout-page td small{display:block;font-size:10px;color:#8796ad;margin-top:3px}.agent-payout-page .btn{font-size:11px;min-height:30px;height:auto;padding:6px 10px}.payout-review dl{display:grid;grid-template-columns:110px 1fr;gap:12px;font-size:12px}.payout-review dt{color:#8492a7}.payout-review dd{margin:0;min-width:0;overflow-wrap:anywhere}.payout-receipt{padding:10px;background:#f1f6ff;border-radius:6px;white-space:pre-wrap}.region-indicator{border:0;background:#edf3ff;color:#5a739a;border-radius:6px;padding:5px 8px;font-size:10px;cursor:pointer;white-space:nowrap}.region-indicator small{margin-left:5px;color:#8d9bb0}@media(max-width:1100px){.region-indicator small{display:none}}@media(max-width:700px){.message-button-row>div{grid-template-columns:1fr}.region-indicator{display:none}}
.trend-preview{border:1px solid #e2e8f1;border-radius:9px;padding:10px;margin:12px 0;display:grid;gap:8px}.trend-preview strong{font-size:12px;color:#486180}.trend-preview img{max-width:100%;width:746px;border-radius:6px}.trend-preview small{font-size:10px;color:#8a99b0}
/* Banking and Telegram menu configuration. */
.bank-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bank-summary section{padding:20px 24px;border:1px solid #e2e9f4;border-radius:18px;background:white}.bank-summary small{display:block;color:#8190a9;font-size:13px}.bank-summary b{display:block;font-size:30px;margin-top:10px;color:#26467f}.bank-summary .bank-review-id{font-size:17px}.bank-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bank-presets>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid #e6ecf6;border-radius:12px;font-size:13px}.bank-pill{display:inline-block;background:#f0f3f8;color:#8a97aa;padding:6px 12px;border:0;border-radius:20px;font-size:12px;white-space:nowrap}.bank-pill.ready{background:#e6f8f0;color:#129a6c}.bank-account-number{font-variant-numeric:tabular-nums;letter-spacing:.08em}.bank-page td small{display:block;margin-top:5px;color:#8291a8}.bank-page table{width:100%;border-collapse:collapse}.bank-page th,.bank-page td{padding:14px;border-bottom:1px solid #e9eef6;text-align:left;font-size:13px}.bank-edit-modal{max-width:540px!important}.bank-edit-modal>label{display:grid;gap:8px;margin:14px 0;color:#697b98;font-size:13px}.bank-edit-modal input,.bank-edit-modal select,.bot-design-page input,.bot-design-page select,.bank-page .filterbar>input{width:100%;padding:11px 12px;border:1px solid #dce5f3;border-radius:9px;background:#fff;color:#283f61;min-width:0}.bot-menu-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}.menu-preview-card{position:sticky;top:20px}.menu-preview-card>small{display:block;line-height:1.7;color:#8291a8;margin-top:14px}.menu-design-row{margin:16px 0;padding:15px;border:1px solid #e1e8f3;border-radius:13px;background:#f8faff}.menu-design-row>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.menu-design-row>header button{border:0;background:#eaf0fa;color:#6380a6;margin-left:5px;padding:6px 9px;border-radius:6px}.menu-button-fields{display:grid;grid-template-columns:1fr 1.2fr 1.2fr;gap:10px;margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid #e5ecf6}.menu-button-fields label{display:grid;gap:6px;font-size:12px;color:#7588a5}.menu-button-fields>.btn{align-self:end}.menu-telegram-preview{padding:14px;border-radius:15px;background:#17242e;color:white}.menu-telegram-preview>p{font-size:14px;padding:12px;border-radius:10px;background:#2a3b49}.menu-telegram-preview>div{display:flex;gap:5px;margin-top:6px}.menu-telegram-preview button{flex:1;min-width:0;border:0;background:#354652;color:#fff;padding:12px 5px;border-radius:8px;font-size:12px;line-height:1.5}.menu-telegram-preview .primary{background:#3576bd}.menu-telegram-preview .success{background:#209c78}.menu-telegram-preview .danger{background:#d95364}.media-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.media-mode-grid article{display:grid;gap:12px;align-content:start;border:1px solid #e3eaf5;padding:16px;border-radius:13px}.media-mode-grid b{font-size:14px}.rich-emoji-picker{padding:16px;background:#f2f7ff;border:1px solid #dce8fb;border-radius:10px}.rich-emoji-picker>div:first-child{display:flex;gap:12px;align-items:center}.rich-emoji-picker p{color:#7b8eaa;font-size:12px}.rich-emoji-picker button{border:1px solid #d7e2f3;border-radius:7px;background:white;padding:7px 10px;margin:3px;cursor:pointer}.rich-emoji-picker>div:last-child button{font-size:25px}tg-emoji{display:inline-block;border-radius:4px;background:#eff1ff;padding:0 2px}
@media(max-width:1200px){.bot-menu-layout{grid-template-columns:1fr 280px}.bank-presets,.media-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.bank-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bot-menu-layout{grid-template-columns:1fr}.menu-preview-card{position:static}.menu-button-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-presets,.media-mode-grid{grid-template-columns:1fr}}

.bot-design-page .menu-design-row>header .menu-row-picker{display:flex;align-items:center;gap:12px;flex:1;min-width:0;margin:0 12px 0 0;padding:4px 0;background:transparent;text-align:left}.menu-row-picker>b{flex:none;color:#324a70;font-size:13px}.menu-row-picker>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8796ad;font-size:12px}.menu-row-picker>small{font-size:11px;color:#3976d2}.bot-design-page .menu-design-row>header{margin-bottom:0}.bot-design-page .menu-design-row:has(.menu-button-fields)>header{margin-bottom:16px}.bot-design-page .menu-design-row{margin:10px 0;padding:13px 15px}

/* Payout commissions and private proof images. */
.payout-pricing{border:1px solid #dfe7f3;border-radius:12px;padding:18px;margin:14px 0;background:linear-gradient(135deg,#f7faff,#fff)}.pricing-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.pricing-heading h3{margin:0 0 6px;color:#253e66;font-size:15px}.pricing-heading p,.withdraw-fee-settings p{margin:0;color:#7b8ca7;font-size:11px;line-height:1.6}.pricing-badge{padding:6px 10px;border-radius:20px;background:#e9f6f0;color:#188162;font-size:10px;white-space:nowrap}.pricing-mode{display:flex;gap:6px;background:#eaf0f9;border-radius:9px;padding:4px;margin:16px 0;width:fit-content}.pricing-mode button{border:0;border-radius:6px;padding:8px 22px;color:#7485a0;background:transparent;cursor:pointer}.pricing-mode button.active{background:white;color:#2d66d4;box-shadow:0 2px 5px #254b8820;font-weight:700}.payout-pricing>.advanced-field{max-width:360px;margin-bottom:12px}.commission-tier,.commission-tier-labels{display:grid;grid-template-columns:1fr 1fr 1fr 60px;gap:10px;align-items:center;margin-bottom:8px}.commission-tier-labels{font-size:11px;color:#7b8ca7}.commission-tier input,.commission-preview input{width:100%;min-width:0;box-sizing:border-box;height:35px;border:1px solid #dbe4f3;border-radius:7px;padding:6px 10px;color:#354c6d;background:#fff}.commission-tiers>small{display:block;color:#8593aa;font-size:10px;margin:9px 0}.commission-preview{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px;background:#eaf2ff;border-radius:8px;margin:14px 0;font-size:12px;color:#657c9c}.commission-preview label{display:flex;gap:8px;align-items:center}.commission-preview input{width:110px}.commission-preview strong{color:#1b8064}.commission-preview small{font-size:10px}.withdraw-fee-settings{border-top:1px solid #e1e8f3;padding-top:12px;font-size:12px}.withdraw-fee-settings summary{cursor:pointer;font-weight:650;color:#435b7e}.withdraw-fee-settings summary span{margin-left:12px;color:#8796ac;font-size:11px;font-weight:400}.withdraw-fee-settings p{margin:12px 0}.payout-proof-gallery{margin:16px 0}.payout-proof-gallery h4{font-size:13px;color:#354e72}.payout-proof-gallery h4 small{font-size:10px;color:#8997ad;margin-left:10px;font-weight:400}.payout-proof-gallery>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.payout-proof-gallery a{border:1px solid #dfe7f2;border-radius:8px;padding:8px;display:grid;gap:7px;color:#7e8da5;text-decoration:none;font-size:10px;min-width:0}.payout-proof-gallery img{width:100%;height:150px;object-fit:contain;background:#f0f4f9;border-radius:5px}.ops-detail dd small{display:block;color:#8996aa;margin-top:6px;font-size:10px}@media(max-width:650px){.pricing-heading{align-items:start;flex-direction:column}.commission-tier,.commission-tier-labels{gap:5px;grid-template-columns:1fr 1fr 1fr 48px}.payout-proof-gallery>div{grid-template-columns:1fr}}

/* Independent group broadcasts. */
.group-notification-page .page-heading{margin-bottom:12px}.notification-kind-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.notification-kind-tabs>button{position:relative;display:flex;align-items:center;gap:12px;text-align:left;padding:14px 18px;border:1px solid #dfe7f3;border-radius:12px;background:white;color:#687d9a;cursor:pointer}.notification-kind-tabs>button.active{border-color:#a9c5fd;background:#f0f5ff;box-shadow:0 3px 12px #2766e70c}.notification-kind-tabs>button>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e9f0ff;color:#3269d5;font-size:19px}.notification-kind-tabs b{font-size:14px;color:#31496e}.notification-kind-tabs small{display:block;margin-top:4px;font-size:10px;color:#8190a7}.notification-kind-tabs em{margin-left:auto;font-size:11px;font-style:normal}.notification-dirty-dot{width:6px;height:6px;background:#e9a142;border-radius:50%}.notification-config{padding:16px 18px}.notification-config-head{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:14px}.notification-config-head h2{font-size:16px;margin:0 0 6px;color:#30496e}.notification-config-head small{font-size:10px;color:#8593a9;line-height:1.6}.notification-config-head .setting-switch-row{margin:0;padding:0;border:0;background:transparent;min-width:220px;gap:12px}.notification-config-head .setting-switch-copy strong{font-size:11px}.notification-controls{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:12px;background:#f5f8fd;border-radius:9px}.notification-controls label{display:grid;gap:6px;font-size:11px;color:#647b9b;min-width:180px}.notification-controls input,.notification-controls select,.notification-targets header input{height:33px;border:1px solid #dbe5f3;border-radius:7px;background:white;padding:5px 9px;color:#354f72;box-sizing:border-box}.notification-controls>span{font-size:10px;color:#91a0b5;padding-bottom:10px}.notification-targets{padding:14px 0;border-bottom:1px solid #e5ebf4}.notification-targets>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:10px}.notification-targets b{font-size:12px;color:#435d7e}.notification-targets header small{font-size:10px;margin-left:8px;color:#8c9bb0;font-weight:400}.notification-targets header input{width:230px}.notification-group-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:150px;overflow:auto}.notification-group-options label{display:flex;gap:8px;align-items:center;border:1px solid #e2e9f4;border-radius:7px;padding:8px 10px;min-width:0;cursor:pointer}.notification-group-options label.selected{border-color:#a8c5f6;background:#f0f6ff}.notification-group-options label span{min-width:0}.notification-group-options label b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.notification-group-options label small,.notification-targets>small{display:block;color:#8c9cb3;font-size:10px;margin-top:4px}.notification-group-options input{accent-color:#2965ec}.notification-message-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;padding:16px 0}.notification-text-editor{min-width:0}.notification-text-editor>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;color:#4d6587;font-size:12px}.notification-text-editor header button{border:1px solid #dce5f3;border-radius:6px;padding:6px 10px;color:#8796aa;background:#fff;margin-left:5px;font-size:11px;cursor:pointer}.notification-text-editor header button.active{background:#2d67ed;border-color:#2d67ed;color:white}.notification-text-editor .rich-toolbar{padding:6px;gap:4px}.notification-text-editor .rich-toolbar button{font-size:10px;padding:4px 6px}.notification-text-editor .rich-toolbar>span{display:none}.notification-text-editor .rich-content{min-height:145px;max-height:260px;font-size:12px;padding:12px;line-height:1.7}.notification-text-editor .rich-token-toolbar{padding:6px;gap:4px;display:flex;flex-wrap:wrap}.notification-text-editor .rich-token-toolbar button{padding:3px 5px;font-size:10px}.notification-text-editor>small,.notification-preview>small{display:block;margin-top:7px;color:#90a0b4;font-size:10px;line-height:1.6}.notification-preview{background:#f2f6fc;border:1px solid #e0e8f4;border-radius:10px;padding:12px;min-width:0}.notification-preview>header{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#577092;margin-bottom:10px}.notification-preview>header span{font-size:10px;color:#8b9cb1}.notification-telegram-preview{padding:12px;background:#223441;border-radius:10px;color:#f1f6f9;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.notification-telegram-preview>div:first-child{white-space:pre-wrap}.notification-telegram-preview a{color:#7fd6ee}.notification-preview-buttons{display:flex;gap:5px;margin-top:6px}.notification-preview-buttons button{border:0;border-radius:5px;color:#fff;background:#415563;padding:6px 4px;flex:1;min-width:0;font-size:10px}.notification-preview-buttons .primary{background:#397cbd}.notification-preview-buttons .success{background:#218a6b}.notification-preview-buttons .danger{background:#bb5261}.notification-button-settings{border:1px solid #e0e8f3;border-radius:8px;padding:10px 12px;margin-bottom:12px}.notification-button-settings summary{font-size:12px;color:#496383;cursor:pointer;font-weight:650}.notification-button-settings summary span{font-size:10px;color:#91a0b4;font-weight:400;margin-left:10px}.notification-savebar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e6ecf4;padding-top:12px;gap:10px}.notification-savebar>span{font-size:11px;color:#8395af}.notification-savebar small{display:block;font-size:10px;margin-top:5px}.notification-savebar>div{display:flex;gap:8px}.notification-savebar .btn{font-size:11px;height:34px;padding:6px 12px;white-space:nowrap}.notification-inline-error{color:#ca5465!important;font-size:11px;line-height:1.5}.notification-records .filterbar{gap:12px;padding:12px 14px;font-size:12px}.notification-records .filterbar span{font-size:10px;color:#8b9bb2}.notification-records td small{display:block;font-size:10px;color:#899bb5;margin-top:5px;overflow-wrap:anywhere}.notification-records td{font-size:11px;padding:10px!important;max-width:320px}.notification-record-preview{max-width:360px;white-space:pre-line;font-size:10px;line-height:1.5;max-height:65px;overflow:auto;margin:0}.notification-status{padding:4px 8px;border-radius:6px;font-size:10px;background:#eff3f9;color:#8292aa;white-space:nowrap}.notification-status.sent{background:#e6f7ee;color:#1b8b62}.notification-status.failed{background:#fff0f2;color:#c65064}.notification-status.uncertain{background:#fff5e3;color:#b47b2c}@media(max-width:1000px){.notification-group-options{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-message-layout{grid-template-columns:minmax(0,1fr) 240px}}@media(max-width:700px){.notification-kind-tabs,.notification-message-layout,.notification-group-options{grid-template-columns:1fr}.notification-savebar,.notification-config-head{align-items:start;flex-direction:column}.notification-savebar>div{flex-wrap:wrap}.notification-targets>header{align-items:start;flex-direction:column}.notification-kind-tabs em{font-size:10px}.notification-controls label{min-width:0;flex:1}.notification-controls>span{width:100%}}

.notification-targets>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;cursor:pointer;color:#4b6587;list-style:disclosure-closed}.notification-targets>summary span{font-size:10px;color:#8b9db5}.notification-targets:not([open]){padding:11px 12px;border:1px solid #e0e8f3;border-radius:8px;margin-top:12px;background:#f8faff}.notification-targets[open]>summary{margin-bottom:12px}.notification-targets[open]{padding:12px;border:1px solid #dfe7f2;border-radius:8px;margin-top:12px}
