:root{
  --line:#d9e4ef;
  --text:#0f172a;
  --muted:#6b7280;
  --blue:#2a79ff;
  --blue2:#155ee6;
  --bubble-out:#95ec69;
  --bubble-in:#ffffff;
  --shadow:0 18px 42px rgba(15,23,42,.10);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --drawer-peek: 64px;
}

*{ box-sizing:border-box; }
body{
  background:#ededed;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  overflow:hidden;
}
button,textarea{ font:inherit; }
button{ cursor:pointer; border:none; }
textarea{ resize:none; outline:none; }

.app{
  height:100vh;
  display:flex;
  flex-direction:column;
}



.topbar{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:10px 12px 9px;
  background:linear-gradient(180deg,#168bc0 0%, #117aaa 100%);
  color:#fff;
  box-shadow:0 2px 10px rgba(10,70,120,.16);
  z-index:20;
}

.topbar-main,
.account-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.brand-line{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1 1 auto;
}
.brand-title{
  font-size:20px;
  font-weight:850;
  line-height:1.1;
  letter-spacing:.3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:58vw;
}
.room-summary{
  min-width:0;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:7px;
}
.room-summary-label{
  flex:0 0 auto;
  height:22px;
  display:inline-flex;
  align-items:center;
  padding:0 7px;
  border-radius:999px;
  background:rgba(255,255,255,.17);
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.9);
  font-size:11px;
  font-weight:700;
}
.brand-sub{
  min-width:0;
  font-size:13px;
  font-weight:800;
  opacity:.98;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  letter-spacing:.15px;
}

.room-switch,
.action-pill{
  flex:0 0 auto;
  min-height:32px;
  padding:0 12px;
  border-radius:12px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  font-size:13px;
  font-weight:800;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.room-switch{
  min-height:32px;
  padding:0 10px;
  border-radius:10px;
  font-size:12px;
}

.top-actions{
  display:flex;
  gap:7px;
  align-items:center;
  flex:0 0 auto;
}

.account-row{
  min-height:30px;
  padding-top:1px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.account-row .room-summary{ flex:1 1 auto; }
.point-balance-inline{
  flex:0 0 auto;
  display:flex;
  align-items:baseline;
  gap:4px;
  color:rgba(255,255,255,.82);
  font-size:10.5px;
  font-weight:750;
  user-select:none;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.point-balance-inline strong{
  color:#ffe083;
  font-size:14px;
  line-height:1;
  font-weight:900;
}
.market-countdown{
  margin-left:auto;
  font-size:10px;
  line-height:1.2;
  color:rgba(255,255,255,.82);
  font-weight:700;
  white-space:nowrap;
}


.room-menu,
.user-menu{
  position:absolute;
  top:calc(100% + 8px);
  width:min(310px, calc(100vw - 24px));
  background:rgba(255,255,255,.99);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:8px;
  display:none;
  z-index:60;
  backdrop-filter:blur(12px);
}
.room-menu{ left:12px; }
.user-menu{
  right:10px;
  width:min(216px, calc(100vw - 20px));
  padding:5px;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(15,23,42,.13);
}
.room-menu.open,
.user-menu.open{ display:block; }

.room-item,
.user-menu-item{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  padding:10px 12px;
  border-radius:13px;
  background:#fff;
  border:1px solid transparent;
  color:var(--text);
  margin-bottom:5px;
}
.user-menu .user-menu-item{
  min-height:40px;
  padding:7px 10px;
  border-radius:10px;
  margin-bottom:2px;
}
.room-item:last-child,
.user-menu-item:last-child{ margin-bottom:0; }
.room-item.active{
  background:#eef6ff;
  border-color:#d1e4ff;
}
.room-item strong{
  display:block;
  font-size:14px;
  line-height:1.2;
}
.room-item span{
  display:block;
  margin-top:3px;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}
.user-menu-item span{
  font-size:15px;
  font-weight:800;
}
.user-menu .user-menu-item span{ font-size:13.5px; font-weight:750; }
.user-menu-item b{
  color:#94a3b8;
  font-size:21px;
  font-weight:500;
}
.user-menu .user-menu-item b{ font-size:18px; }
.user-menu-item.danger span{ color:#d92d20; }

.chat{
  flex:1;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.messages{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:10px 10px 112px;
  background:#ededed;
}

.messages::-webkit-scrollbar{ width:6px; }
.messages::-webkit-scrollbar-thumb{
  background:#c5c5c5;
  border-radius:99px;
}
.messages::-webkit-scrollbar-track{ background:transparent; }

.msg{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:12px 0;
}
.msg.in{ justify-content:flex-start; }
.msg.out{ justify-content:flex-start; flex-direction:row-reverse; }
.msg.notice{ justify-content:center; margin:9px 0; }

.avatar{
  width:40px;
  height:40px;
  border-radius:6px;
  overflow:hidden;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#fff;
  background:#6b8aa6;
  font-size:11px;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:none;
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.avatar.bot-avatar{
  background:linear-gradient(180deg,#2394c8 0%, #167aac 100%);
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.bubble-wrap{
  max-width:min(76%, 660px);
  display:flex;
  flex-direction:column;
  min-width:0;
}
.msg.out .bubble-wrap{ align-items:flex-end; }
.sender-name{
  max-width:100%;
  margin:0 3px 4px;
  color:#7a7a7a;
  font-size:11px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bubble{
  position:relative;
  padding:9px 11px;
  border-radius:5px;
  line-height:1.5;
  white-space:pre-wrap;
  word-break:break-word;
  font-size:15px;
  color:#111;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.msg.in .bubble{
  background:var(--bubble-in);
  border:1px solid rgba(0,0,0,.06);
}
.msg.out .bubble{
  background:var(--bubble-out);
  border:1px solid rgba(0,0,0,.05);
}
.bet-copy-bubble{
  cursor:pointer;
  -webkit-tap-highlight-color:rgba(42,121,255,.12);
}
.bet-copy-bubble:active{
  transform:scale(.99);
}
.bet-copy-bubble:focus-visible{
  outline:2px solid rgba(42,121,255,.45);
  outline-offset:2px;
}
.msg.in .bubble::before,
.msg.out .bubble::before{
  content:"";
  position:absolute;
  top:12px;
  width:8px;
  height:8px;
  transform:rotate(45deg);
}
.msg.in .bubble::before{
  left:-5px;
  background:#fff;
  border-left:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.msg.out .bubble::before{
  right:-5px;
  background:var(--bubble-out);
  border-top:1px solid rgba(0,0,0,.05);
  border-right:1px solid rgba(0,0,0,.05);
}
.meta{
  margin-top:3px;
  min-height:18px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  font-size:10px;
  line-height:1;
  color:#9a9a9a;
  padding:0 3px;
}
.bet-cancel-btn{
  border:0;
  background:transparent;
  color:#d93025;
  font-size:11px;
  line-height:1;
  font-weight:800;
  padding:3px 0;
  cursor:pointer;
}
.bet-cancel-btn:hover{ text-decoration:underline; }
.bet-cancel-btn:disabled{ cursor:default; opacity:.65; text-decoration:none; }
.bet-cancel-btn.is-cancelled{ color:#7a7a7a; }
.msg.is-bet-cancelled .bubble{ opacity:.72; text-decoration:line-through; }
.system-bubble{
  max-width:82%;
  padding:5px 9px;
  border-radius:5px;
  background:rgba(0,0,0,.16);
  color:#fff;
  font-size:12px;
  line-height:1.45;
  white-space:pre-wrap;
  word-break:break-word;
  text-align:left;
}

.drawer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  transform:translateY(calc(100% - var(--drawer-peek)));
  transition:transform .22s ease;
  background:rgba(247,247,247,.98);
  box-shadow:0 -4px 18px rgba(15,23,42,.12);
  padding:6px 8px calc(7px + var(--safe-bottom));
  backdrop-filter:blur(14px);
  max-height:min(56vh, 520px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.drawer.open{
  transform:translateY(0);
}

.composer-row{
  display:grid;
  grid-template-columns:40px 1fr 66px;
  gap:6px;
  align-items:center;
  margin-bottom:5px;
  flex:0 0 auto;
  padding:0 0 5px;
  border-bottom:1px solid rgba(217,228,239,.55);
}

.kbd-toggle,
.send-btn{
  height:40px;
  border-radius:10px;
  font-weight:800;
}

.kbd-toggle{
  background:linear-gradient(180deg,#f2f6fb,#dfe8f2);
  border:1px solid #c9d8e7;
  color:#1d4f8f;
  font-size:20px;
  box-shadow:0 10px 24px rgba(15,23,42,.10);
}

#inputBox{
  width:100%;
  min-height:40px;
  max-height:96px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(201,216,231,.95);
  background:#fff;
  color:var(--text);
  line-height:1.45;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
#inputBox:focus{
  border-color:#9ec3ff;
  box-shadow:0 0 0 4px rgba(42,121,255,.10);
}

.send-btn{
  background:linear-gradient(180deg,var(--blue),var(--blue2));
  color:#fff;
  box-shadow:0 10px 20px rgba(42,121,255,.20);
}

.keyboard-panel{
  flex:1;
  min-height:0;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-top:1px;
  padding-bottom:2px;
}

.keyboard-panel::-webkit-scrollbar{ width:8px; }
.keyboard-panel::-webkit-scrollbar-thumb{
  background:#c7d5e3;
  border-radius:99px;
}
.keyboard-panel::-webkit-scrollbar-track{ background:transparent; }

.kb-row{
  display:grid;
  gap:4px;
}
.kb-row.row-5{ grid-template-columns:repeat(5, minmax(0, 1fr)); }
.kb-row.row-4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.kb-row.row-6{ grid-template-columns:repeat(6, minmax(0, 1fr)); }
.kb-row.row-7{ grid-template-columns:repeat(7, minmax(0, 1fr)); }


.kb-key{
  min-height:29px;
  padding:3px 4px;
  border-radius:8px;
  background:#fff;
  border:1px solid rgba(217,228,239,.95);
  color:#1f2937;
  font-weight:800;
  line-height:1;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}

.kb-key.primary{
  background:#e9f3ff;
  color:#114fae;
  border-color:#cce0ff;
}
.kb-key.soft{
  background:#f7f8fb;
  color:#475569;
}
.kb-key.danger{
  background:#fff3f3;
  color:#b42318;
  border-color:#ffd1d1;
}

.kb-empty{
  padding:18px 14px;
  border-radius:14px;
  background:#fff;
  border:1px dashed #cdd9e6;
  color:#64748b;
  text-align:center;
  font-size:14px;
  font-weight:700;
}

.modal-mask{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  z-index:10000001;
  padding:16px;
}

.modal-shell{
  width:min(720px, 100%);
  background:#fff;
  border-radius:20px;
  box-shadow:0 22px 50px rgba(0,0,0,.22);
  overflow:hidden;
}

.modal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid #e7edf4;
}
.modal-title{
  font-size:16px;
  font-weight:900;
  color:#0f172a;
}
.modal-close{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#f2f5f9;
  color:#334155;
  font-size:24px;
  line-height:1;
}

.modal-body{
  padding:16px;
}
.modal-card{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.modal-desc{
  font-size:13px;
  color:#64748b;
}
.modal-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.modal-chip{
  min-height:42px;
  border-radius:12px;
  border:1px solid #d6e2ef;
  background:#f8fbff;
  color:#0f172a;
  font-weight:800;
  padding:10px 12px;
}

.modal-group{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}
.modal-group:last-child{
  margin-bottom:0;
}
.modal-group-title{
  font-size:13px;
  font-weight:900;
  color:#334155;
}

.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}
.modal-btn{
  min-height:42px;
  padding:0 14px;
  border-radius:12px;
  background:#1677ff;
  color:#fff;
  font-weight:800;
}
.modal-btn-ghost{
  background:#f2f5f9;
  color:#334155;
}


.modal-custom-body{
  max-height:min(72vh, 680px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.app-panel{ display:flex; flex-direction:column; gap:12px; }
.panel-loading,
.panel-empty{
  padding:28px 16px;
  text-align:center;
  color:#64748b;
  font-size:14px;
}
.form-field{ display:flex; flex-direction:column; gap:7px; }
.form-field label{ font-size:13px; font-weight:800; color:#334155; }
.form-input,
.form-textarea{
  width:100%;
  border:1px solid #d7e2ee;
  border-radius:12px;
  background:#f8fbff;
  color:#0f172a;
  padding:11px 12px;
  outline:none;
  font-size:15px;
}
.form-input{ height:44px; }
.form-textarea{ min-height:112px; resize:vertical; }
.form-input:focus,
.form-textarea:focus{ border-color:#72a7ff; box-shadow:0 0 0 3px rgba(42,121,255,.1); }
.form-tip{ min-height:20px; color:#64748b; font-size:13px; }
.form-tip.error{ color:#d92d20; }
.form-tip.success{ color:#067647; }
.panel-submit{
  width:100%;
  min-height:44px;
  border-radius:12px;
  background:#1677ff;
  color:#fff;
  font-weight:900;
}
.draw-list,
.bill-day-list,
.bill-detail-list,
.line-list{ display:flex; flex-direction:column; gap:10px; }
.draw-card,
.bill-day-card,
.bill-detail-card,
.line-card{
  border:1px solid #e0e8f1;
  border-radius:14px;
  background:#fff;
  padding:12px;
}
.draw-card{ display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; }
.draw-period{ font-weight:900; color:#0f172a; }
.draw-date{ margin-top:3px; font-size:12px; color:#64748b; }
.draw-balls{ display:flex; gap:6px; }
.draw-ball{
  width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  background:#e5484d; color:#fff; font-weight:900; font-size:14px;
}
.bill-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.bill-summary-box{
  padding:10px 8px;
  border-radius:12px;
  background:#f4f8fc;
  text-align:center;
}
.bill-summary-box span{ display:block; color:#64748b; font-size:11px; }
.bill-summary-box strong{ display:block; margin-top:4px; font-size:15px; color:#0f172a; }
.bill-day-card{
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.bill-day-title{ font-weight:900; font-size:15px; }
.bill-day-meta{ margin-top:5px; font-size:12px; color:#64748b; line-height:1.55; }
.bill-day-money{ text-align:right; white-space:nowrap; }
.bill-day-money strong{ display:block; font-size:16px; }
.bill-day-money span{ display:block; margin-top:4px; font-size:11px; color:#64748b; }
.money-positive{ color:#067647!important; }
.money-negative{ color:#d92d20!important; }
.bill-detail-head{ display:flex; justify-content:space-between; gap:10px; }
.bill-detail-title{ font-weight:900; }
.bill-detail-status{ font-size:12px; color:#64748b; }
.bill-detail-content{ margin-top:8px; font-size:13px; line-height:1.65; color:#334155; word-break:break-word; }
.bill-detail-money{ margin-top:8px; display:flex; justify-content:space-between; gap:8px; font-size:13px; }
.panel-back{
  align-self:flex-start;
  padding:8px 10px;
  border-radius:10px;
  background:#eef4fb;
  color:#334155;
  font-weight:800;
}
.line-card{
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.line-card.active{ border-color:#7fb1ff; background:#eef6ff; }
.line-card strong{ display:block; }
.line-card span{ display:block; margin-top:4px; color:#64748b; font-size:12px; word-break:break-all; }
.line-tag{ color:#1677ff; font-size:12px; font-weight:900; }
.confirm-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.confirm-actions button{ min-height:44px; border-radius:12px; font-weight:900; }
.confirm-cancel{ background:#eef2f6; color:#334155; }
.confirm-danger{ background:#d92d20; color:#fff; }

.legacy-game-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.5);
  padding:16px;
}
.legacy-game-frame{
  width:min(96vw, 1100px);
  height:min(88vh, 820px);
  border:0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 22px 58px rgba(0,0,0,.25);
}
.legacy-game-close{
  position:absolute;
  top:24px;
  right:24px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#0f172a;
  font-size:22px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}

body.drawer-open .messages{
  padding-bottom:104px;
}

@media (max-width: 760px){
  .brand-sub{ max-width:62vw; }
  .messages{
    padding-left:10px;
    padding-right:10px;
  }
  .bubble-wrap{ max-width:86%; }
  .drawer{
    padding-left:10px;
    padding-right:10px;
  }
  .composer-row{
    grid-template-columns:38px 1fr 62px;
    gap:5px;
  }
  .modal-grid{
    grid-template-columns:1fr;
  }
  .legacy-game-frame{
    width:100%;
    height:88vh;
  }
}

@media (max-width: 420px){
  .topbar{ padding-left:10px; padding-right:10px; }
  .top-actions{ gap:6px; }
  .action-pill{ min-width:56px; padding:0 9px; }
  .brand-title{ font-size:20px; }
  .brand-sub{ max-width:58vw; font-size:12px; }
  .point-balance-inline strong{ font-size:13px; }
}


/* 玩家菜单：全屏、轻量、适合手机阅读 */
.modal-shell.mobile-detail-modal,
.modal-shell.mobile-form-modal{
  position:fixed;
  inset:0;
  width:100vw;
  max-width:none;
  height:100vh;
  height:100dvh;
  border-radius:0;
  box-shadow:none;
  background:#f5f7fa;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.mobile-detail-modal .modal-top,
.mobile-form-modal .modal-top{
  flex:0 0 auto;
  min-height:58px;
  padding:calc(9px + env(safe-area-inset-top, 0px)) 13px 9px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #e8edf3;
  box-shadow:0 1px 8px rgba(15,23,42,.035);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  z-index:2;
}

.mobile-detail-modal .modal-title,
.mobile-form-modal .modal-title{
  font-size:15px;
  line-height:1.25;
  letter-spacing:.1px;
  font-weight:800;
}

.mobile-detail-modal .modal-desc,
.mobile-form-modal .modal-desc{
  margin-top:2px;
  font-size:10.5px;
  line-height:1.35;
  color:#8491a3;
}

.mobile-detail-modal .modal-close,
.mobile-form-modal .modal-close{
  width:31px;
  height:31px;
  border-radius:10px;
  background:#f2f5f8;
  color:#536174;
  font-size:19px;
  font-weight:500;
}

.mobile-detail-modal .modal-body,
.mobile-form-modal .modal-body{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
  padding:11px 11px calc(15px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling:touch;
  font-size:12px;
}

.mobile-detail-modal .app-panel,
.mobile-form-modal .app-panel{
  width:100%;
  gap:9px;
}

.mobile-detail-modal .panel-loading,
.mobile-detail-modal .panel-empty,
.mobile-form-modal .panel-loading,
.mobile-form-modal .panel-empty{
  padding:24px 12px;
  font-size:12px;
  line-height:1.6;
}

.mobile-detail-modal .draw-list,
.mobile-detail-modal .bill-day-list,
.mobile-detail-modal .bill-detail-list,
.mobile-form-modal .line-list{
  gap:7px;
}

.mobile-detail-modal .draw-card,
.mobile-detail-modal .bill-day-card,
.mobile-detail-modal .bill-detail-card,
.mobile-form-modal .line-card{
  padding:10px;
  border-radius:12px;
  border-color:#e5eaf0;
  box-shadow:0 1px 2px rgba(15,23,42,.025);
}

.mobile-detail-modal .draw-period{
  font-size:12.5px;
  font-weight:800;
}
.mobile-detail-modal .draw-date{
  margin-top:2px;
  font-size:10.5px;
}
.mobile-detail-modal .draw-ball{
  width:27px;
  height:27px;
  font-size:12px;
}

.mobile-detail-modal .bill-summary-grid{
  gap:6px;
}
.mobile-detail-modal .bill-summary-box{
  padding:8px 5px;
  border-radius:10px;
  background:#eef3f8;
}
.mobile-detail-modal .bill-summary-box span{
  font-size:9.5px;
}
.mobile-detail-modal .bill-summary-box strong{
  margin-top:3px;
  font-size:13px;
  font-weight:800;
}
.mobile-detail-modal .bill-day-card{
  gap:8px;
}
.mobile-detail-modal .bill-day-title{
  font-size:12.5px;
  font-weight:800;
}
.mobile-detail-modal .bill-day-meta{
  margin-top:3px;
  font-size:10.5px;
  line-height:1.45;
}
.mobile-detail-modal .bill-day-money strong{
  font-size:13px;
  font-weight:800;
}
.mobile-detail-modal .bill-day-money span{
  margin-top:2px;
  font-size:9.5px;
}
.mobile-detail-modal .bill-detail-title{
  font-size:12px;
  font-weight:800;
}
.mobile-detail-modal .bill-detail-status{
  font-size:10px;
}
.mobile-detail-modal .bill-detail-content{
  margin-top:6px;
  font-size:11px;
  line-height:1.55;
}
.mobile-detail-modal .bill-detail-money{
  margin-top:6px;
  font-size:11px;
}
.mobile-detail-modal .panel-back{
  padding:7px 9px;
  border-radius:9px;
  font-size:11px;
  font-weight:700;
}

.mobile-form-modal .form-field{
  gap:5px;
}
.mobile-form-modal .form-field label{
  font-size:11px;
  font-weight:700;
  color:#536174;
}
.mobile-form-modal .form-input,
.mobile-form-modal .form-textarea{
  border-radius:10px;
  padding:9px 10px;
  font-size:13px;
  background:#fff;
}
.mobile-form-modal .form-input{
  height:40px;
}
.mobile-form-modal .form-textarea{
  min-height:104px;
  line-height:1.55;
}
.mobile-form-modal .form-tip{
  min-height:17px;
  font-size:10.5px;
}
.mobile-form-modal .panel-submit{
  min-height:40px;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
}
.mobile-form-modal .line-card strong{
  font-size:12px;
}
.mobile-form-modal .line-card span{
  margin-top:2px;
  font-size:10px;
}
.mobile-form-modal .line-tag{
  font-size:10px;
}
.mobile-form-modal .confirm-actions{
  gap:8px;
}
.mobile-form-modal .confirm-actions button{
  min-height:40px;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
}


/* 资料设置 */
.profile-settings-panel{ gap:10px; }
.profile-avatar-section{
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px;
  border:1px solid #e4e9ef;
  border-radius:12px;
  background:#fff;
}
.profile-avatar-preview{
  width:80px;
  height:80px;
  flex:0 0 80px;
  overflow:hidden;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#6b8aa6;
  color:#fff;
  font-size:18px;
  font-weight:800;
}
.profile-avatar-preview img{ width:100%; height:100%; object-fit:cover; display:block; }
.profile-avatar-info{ display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; }
.profile-avatar-info strong{ font-size:14px; color:#1f2937; }
.profile-avatar-info span{ font-size:11px; line-height:1.45; color:#7b8797; }
.profile-avatar-button{
  margin-top:3px;
  min-height:34px;
  padding:0 13px;
  border-radius:8px;
  background:#eef4fb;
  color:#2563a9;
  font-size:12px;
  font-weight:800;
}
.profile-divider{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin-top:3px;
  padding-top:11px;
  border-top:1px solid #e7ebf0;
}
.profile-divider strong{ font-size:13px; color:#334155; }
.profile-divider span{ font-size:10px; color:#8a96a6; text-align:right; }

@media (max-width:420px){
  .profile-avatar-preview{ width:68px; height:68px; flex-basis:68px; }
  .profile-avatar-section{ padding:10px; gap:10px; }
}

@media (max-width:760px){
  .drawer{ max-height:46vh; }
  body.drawer-open .messages{ padding-bottom:48vh; }
  .kb-key{ min-height:28px; font-size:12px; }
}

/* 我的账单：手机端日期/月筛选与五列表格 */
.bills-workspace{ gap:10px!important; }
.bill-filter-card{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:7px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
  padding:9px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#fff;
  box-shadow:0 1px 3px rgba(15,23,42,.035);
}
.bill-filter-field{ display:flex; flex-direction:column; gap:5px; min-width:0; max-width:100%; overflow:hidden; }
.bill-filter-field > span{ color:#64748b; font-size:10px; font-weight:800; }
.bill-filter-input{
  display:block;
  width:100%;
  max-width:100%;
  height:38px;
  min-width:0;
  box-sizing:border-box;
  padding:0 5px;
  border:1px solid #d8e1eb;
  border-radius:9px;
  background:#f8fafc;
  color:#0f172a;
  outline:none;
  font-size:11px;
  font-weight:750;
}
.bill-filter-input::-webkit-date-and-time-value{ min-width:0; text-align:left; }
.bill-filter-input::-webkit-calendar-picker-indicator{ margin:0; padding:0; }
.bill-filter-input:focus{ border-color:#79aaff; box-shadow:0 0 0 3px rgba(42,121,255,.09); }
.bill-month-host,.bill-day-host{ display:flex; flex-direction:column; gap:8px; min-width:0; }
.bill-month-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  border-radius:12px;
  background:#eaf2fb;
}
.bill-month-summary > div{ min-width:0; }
.bill-month-summary strong{ display:block; color:#1e293b; font-size:12.5px; }
.bill-month-summary span{ display:block; margin-top:2px; color:#64748b; font-size:10px; }
.bill-month-summary > b{ flex:0 0 auto; font-size:13px; font-variant-numeric:tabular-nums; }
.bill-date-strip{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:1px 0 3px;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.bill-date-strip::-webkit-scrollbar{ display:none; }
.bill-date-chip{
  flex:0 0 67px;
  min-height:47px;
  padding:7px 6px;
  border:1px solid #e1e7ee;
  border-radius:10px;
  background:#fff;
  text-align:center;
  scroll-snap-align:start;
}
.bill-date-chip strong{ display:block; color:#334155; font-size:11px; }
.bill-date-chip span{ display:block; margin-top:3px; font-size:10px; font-variant-numeric:tabular-nums; }
.bill-date-chip.active{ border-color:#5b9bff; background:#edf5ff; box-shadow:0 0 0 2px rgba(42,121,255,.08); }
.bill-month-empty{ padding:10px; border-radius:10px; background:#fff; color:#94a3b8; text-align:center; font-size:11px; }
.panel-loading.compact,.panel-empty.compact{ padding:12px 8px!important; }
.bill-day-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  margin-top:1px;
}
.bill-day-heading strong{ display:block; color:#0f172a; font-size:13px; }
.bill-day-heading > div span{ display:block; margin-top:2px; color:#7c8999; font-size:10px; }
.bill-day-status-note{ flex:0 0 auto; color:#4674a9; font-size:9.5px; }
.bill-day-empty{ border-radius:12px; background:#fff; }
.bill-mobile-table{
  overflow:hidden;
  border:1px solid #dfe6ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 1px 3px rgba(15,23,42,.035);
}
.bill-table-row{
  width:100%;
  display:grid;
  grid-template-columns:64px minmax(70px,1.15fr) minmax(64px,1fr) 48px 58px;
  gap:4px;
  align-items:center;
  padding:0 7px;
  text-align:left;
}
.bill-table-head{
  min-height:34px;
  background:#eef3f8;
  color:#64748b;
  font-size:9.5px;
  font-weight:850;
}
.bill-table-head span:nth-child(4),.bill-table-head span:nth-child(5){ text-align:right; }
.bill-table-body{
  min-height:55px;
  border-top:1px solid #edf1f5;
  background:#fff;
}
.bill-table-body:active{ background:#f4f8fc; }
.bill-cell{ display:block; min-width:0; color:#334155; }
.bill-cell-main{ display:block; min-width:0; font-size:10.5px; line-height:1.25; font-weight:800; }
.bill-cell-sub{ display:block; min-width:0; margin-top:3px; color:#94a3b8; font-size:8.5px; line-height:1.2; font-weight:600; }
.bill-ellipsis{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.bill-cell-issue .bill-cell-main{ font-variant-numeric:tabular-nums; }
.bill-cell-odds,.bill-cell-result{ text-align:right; font-variant-numeric:tabular-nums; }
.bill-cell-odds .bill-cell-main{ color:#185fae; }
.bill-cell-result > strong{ display:block; font-size:10.5px; line-height:1.2; }
.bill-pending-text{ color:#a16207; }

/* 账单单条详情：下注内容与号码上下排列 */
.bill-item-detail{ gap:10px!important; }
.bill-detail-meta-card,.bill-detail-stack,.bill-detail-footnote{
  border:1px solid #e1e7ee;
  border-radius:12px;
  background:#fff;
}
.bill-detail-meta-card{ padding:11px; }
.bill-detail-meta-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.bill-detail-meta-top strong{ color:#0f172a; font-size:13px; }
.bill-detail-meta-top span{ color:#64748b; font-size:10px; }
.bill-detail-meta-line{ margin-top:5px; color:#8491a3; font-size:10px; word-break:break-all; }
.bill-detail-stack{ overflow:hidden; }
.bill-detail-block{ padding:12px; }
.bill-detail-block + .bill-detail-block{ border-top:1px solid #edf1f5; }
.bill-detail-label{ display:block; color:#8491a3; font-size:10px; font-weight:800; }
.bill-detail-value{ margin-top:6px; color:#1e293b; font-size:13px; line-height:1.55; font-weight:750; word-break:break-word; }
.bill-detail-numbers{ color:#0f5fa9; font-size:14px; letter-spacing:.2px; }
.bill-detail-stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.bill-detail-footnote{ padding:10px 11px; color:#7c8999; font-size:10px; line-height:1.55; }

/* 玩家只读赔率一览：仅保留三列连续表格 */
.odds-viewer{ gap:8px!important; }
.odds-simple-table{
  width:100%;
  overflow:hidden;
  border:1px solid #dfe6ee;
  border-radius:11px;
  background:#fff;
}
.odds-simple-row{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(64px,.8fr) minmax(86px,1fr);
  gap:6px;
  align-items:center;
  min-height:39px;
  padding:5px 10px;
  border-top:1px solid #edf1f5;
  color:#334155;
  font-size:11px;
}
.odds-simple-row:first-child{ border-top:0; }
.odds-simple-head{
  min-height:32px;
  background:#eef3f8;
  color:#64748b;
  font-size:10px;
  font-weight:850;
}
.odds-simple-row > span{ min-width:0; }
.odds-simple-head span:nth-child(2),
.odds-simple-head span:nth-child(3),
.odds-simple-value,
.odds-simple-limit{ text-align:right; }
.odds-simple-play{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-weight:800;
}
.odds-simple-value{ color:#125ca5; font-size:12px; font-weight:900; font-variant-numeric:tabular-nums; }
.odds-simple-limit{ color:#475569; font-weight:750; font-variant-numeric:tabular-nums; white-space:nowrap; }

@media (max-width:360px){
  .bill-filter-card{ grid-template-columns:1fr; gap:7px; }
  .bill-filter-input{ height:36px; font-size:11px; }
  .odds-simple-row{ grid-template-columns:minmax(0,1.15fr) minmax(58px,.75fr) minmax(80px,1fr); padding-left:8px; padding-right:8px; gap:4px; font-size:10.5px; }
}

@media (max-width:350px){
  .bill-table-row{ grid-template-columns:58px minmax(62px,1.1fr) minmax(58px,1fr) 44px 52px; padding-left:5px; padding-right:5px; gap:3px; }
  .bill-cell-main,.bill-cell-result > strong{ font-size:9.5px; }
  .bill-cell-sub{ font-size:8px; }
}

.line-tag.slow{ color:#b45309; }
.line-tag.bad{ color:#dc2626; }
.line-card:disabled{ cursor:not-allowed; opacity:.7; }


/* 启动线路选择：先只显示线路框，选定后才显示登录。 */
body.startup-line-selecting {
  background: #fff !important;
}
body.startup-line-selecting #fsRoot,
body.startup-line-selecting #fsRoot .app {
  background: #fff !important;
}
body.startup-line-selecting #loginMask,
body.startup-line-selecting #fsBtn,
body.startup-line-selecting .topbar,
body.startup-line-selecting .chat,
body.startup-line-selecting #keyboardDrawer {
  display: none !important;
}
body.startup-line-selecting .modal-mask {
  align-items: center;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  background: #fff;
}
body.startup-line-selecting .modal-shell.startup-line-modal {
  position: relative;
  inset: auto;
  width: min(560px, calc(100vw - 20px));
  max-width: 560px;
  height: auto;
  max-height: calc(100dvh - 20px);
  border: 1px solid #303030;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.startup-line-selecting .startup-line-modal .modal-top {
  min-height: 0;
  padding: 10px 12px 8px;
  background: #fff;
  border-bottom: 1px solid #7f7f7f;
  box-shadow: none;
}
body.startup-line-selecting .startup-line-modal .modal-title {
  color: #111;
  font-size: 16px;
  font-weight: 700;
}
body.startup-line-selecting .startup-line-modal .modal-desc {
  margin-top: 3px;
  color: #444;
  font-size: 12px;
}
body.startup-line-selecting .startup-line-modal .modal-close {
  display: none;
}
body.startup-line-selecting .startup-line-modal .modal-body {
  flex: 0 1 auto;
  max-height: calc(100dvh - 92px);
  padding: 7px;
  overflow: auto;
  background: #fff;
}
body.startup-line-selecting .startup-line-modal .app-panel,
body.startup-line-selecting .startup-line-modal .line-list {
  gap: 0;
}
body.startup-line-selecting .startup-line-modal .line-card {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #8a8a8a;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  margin-top: -1px;
}
body.startup-line-selecting .startup-line-modal .line-card:first-child {
  margin-top: 0;
}
body.startup-line-selecting .startup-line-modal .line-card strong {
  color: #0665c9;
  font-size: 14px;
}
body.startup-line-selecting .startup-line-modal .line-card span {
  margin-top: 2px;
  color: #333;
  font-size: 11px;
}
body.startup-line-selecting .startup-line-modal .line-tag {
  color: #111;
  font-size: 13px;
  white-space: nowrap;
}
body.startup-line-selecting .startup-line-modal .form-tip {
  min-height: 0;
  padding: 8px 4px 1px;
  color: #222;
  font-size: 12px;
}
@media (max-width: 480px) {
  body.startup-line-selecting .modal-shell.startup-line-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  body.startup-line-selecting .startup-line-modal .modal-top {
    padding: 9px 10px 7px;
  }
  body.startup-line-selecting .startup-line-modal .line-card {
    min-height: 48px;
    gap: 8px;
    padding: 8px;
  }
  body.startup-line-selecting .startup-line-modal .line-card strong {
    font-size: 14px;
  }
  body.startup-line-selecting .startup-line-modal .line-card span {
    max-width: 72vw;
    font-size: 10px;
  }
}

/* 玩家手动切换线路：使用居中的紧凑弹窗，不占满整个屏幕。 */
.modal-shell.line-switch-modal{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(420px, calc(100vw - 32px));
  max-height:min(72vh, 560px);
  border-radius:18px;
  background:#fff;
  box-shadow:0 22px 50px rgba(0,0,0,.22);
  overflow:hidden;
}
.line-switch-modal .modal-body{
  max-height:calc(min(72vh, 560px) - 60px);
  overflow:auto;
  padding:14px;
  -webkit-overflow-scrolling:touch;
}
.line-switch-modal .line-list{ gap:8px; }
.line-switch-modal .line-card{ padding:11px; border-radius:12px; }


/* 玩法规则：复用全屏菜单弹窗，内容与会员端下注格式规则保持一致 */
.play-rules-modal .modal-body {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.play-rules-panel {
  gap: 12px !important;
}

.play-rules-notice,
.play-rules-footnote {
  padding: 12px 13px;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  background: #fff;
  color: #465467;
  line-height: 1.7;
}

.play-rules-notice strong,
.play-rules-footnote strong {
  color: #1f2c3d;
}

.play-rules-panel code {
  display: inline-block;
  margin: 1px 0;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f1f4f8;
  color: #bc2c36;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
}

.play-rules-section {
  border: 1px solid #dfe5ec;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.play-rules-section h3 {
  margin: 0;
  padding: 11px 13px;
  border-bottom: 1px solid #e7ebf0;
  background: #fafbfd;
  color: #243246;
  font-size: 13px;
}

.play-rules-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.play-rules-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.play-rules-table th,
.play-rules-table td {
  padding: 9px 10px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
  color: #475468;
  font-size: 11.5px;
}

.play-rules-table th {
  background: #f7f9fb;
  color: #26354a;
  font-weight: 800;
}

.play-rules-table th:first-child,
.play-rules-table td:first-child {
  width: 92px;
  color: #233247;
  font-weight: 800;
}

.play-rules-table th:nth-child(2),
.play-rules-table td:nth-child(2) {
  width: 285px;
}

.play-rules-table th:last-child,
.play-rules-table td:last-child {
  border-right: 0;
}

.play-rules-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 2026-08 玩家端账单：手机优先的今日明细 / 周月汇总 */
.bills-simple-workspace {
  width: 100%;
  min-width: 0;
}

.bill-simple-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.bill-simple-tab {
  min-width: 0;
  height: 36px;
  border: 1px solid #d9dee6;
  border-radius: 8px;
  background: #f6f7f9;
  color: #495568;
  font-size: 13px;
  font-weight: 700;
}

.bill-simple-tab.is-active {
  border-color: #98a9bd;
  background: #fff;
  color: #182638;
  box-shadow: 0 1px 5px rgba(24, 38, 56, .08);
}

.bill-simple-host {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bill-simple-table {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 10px;
  background: #fff;
}

.bill-simple-row {
  display: grid;
  align-items: center;
  min-height: 43px;
  border-bottom: 1px solid #edf0f4;
  color: #344154;
  font-size: 12px;
}

.bill-simple-row:last-child { border-bottom: 0; }
.bill-simple-row.is-head {
  min-height: 34px;
  background: #f7f8fa;
  color: #6a7484;
  font-size: 11px;
  font-weight: 700;
}

.bill-simple-table.is-today .bill-simple-row {
  /* 手机端按比例分配：笔数、总投给更充足空间，盈亏也保留正负大数显示宽度。 */
  grid-template-columns: 1.08fr .72fr .92fr 1.05fr 1.15fr .76fr;
}

.bill-simple-table.is-summary .bill-simple-row {
  grid-template-columns: 1.1fr .75fr .9fr .9fr;
}

.bill-simple-row > span,
.bill-simple-row > button {
  min-width: 0;
  padding: 7px 6px;
  text-align: center;
  box-sizing: border-box;
}

.bill-simple-data-row {
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bill-simple-data-row:last-child { border-bottom: 0; }
.bill-simple-data-row:active { background: #f7f9fb; }
.bill-simple-data-row > span {
  min-width: 0;
  padding: 7px 4px;
  text-align: center;
  box-sizing: border-box;
}

.bill-simple-time { line-height: 1.35; }
.bill-simple-issue { font-variant-numeric: tabular-nums; font-weight: 700; }
.bill-simple-status { white-space: nowrap; font-weight: 700; }
.bill-status-pending { color: #7a8493; }
.bill-status-neutral { color: #596477; }
.bill-simple-content {
  width: 100%;
  border: 0;
  background: transparent;
  color: #24354a;
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.bill-simple-content:active { background: #f4f6f9; }

.bill-mode-tag {
  justify-self: center;
  padding: 3px 5px !important;
  border-radius: 999px;
  background: #eef1f5;
  color: #596477;
  line-height: 1.2;
}
.bill-mode-tag.is-beitou {
  background: #edf3fb;
  color: #315d82;
}
.bill-mode-tag.is-quick {
  background: #eef8f4;
  color: #15724f;
}
.bill-mode-tag.is-text {
  background: #f3f4f6;
  color: #596477;
}

.bill-simple-empty { padding: 28px 12px !important; }

.bill-order-detail {
  display: grid;
  gap: 12px;
}
.bill-order-source,
.bill-number-table {
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 0;
  background: #fff;
}
.bill-order-source-text {
  padding: 10px 11px;
  color: #26364b;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.bill-order-source-prefix { color: #667184; }
.bill-order-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  color: #667184;
  font-size: 11px;
}
.bill-number-table.is-paged { position: relative; min-height: 90px; }
.bill-number-loading { padding: 28px 10px !important; }
.bill-number-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
}
.bill-number-cell {
  min-width: 0;
  min-height: 31px;
  padding: 6px 2px;
  display: grid;
  place-items: center;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  box-sizing: border-box;
  color: #26364b;
  font-size: 11px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.bill-number-cell:nth-child(6n) { border-right: 0; }
.bill-number-empty { grid-column: 1 / -1; }
.bill-number-pager {
  display: grid;
  grid-template-columns: auto auto minmax(52px, 1fr) auto auto;
  align-items: center;
  gap: 5px;
}
.bill-page-btn {
  min-width: 0;
  height: 31px;
  padding: 0 7px;
  border: 1px solid #d9dee6;
  border-radius: 0;
  background: #fff;
  color: #344154;
  font-size: 11px;
  font-weight: 700;
}
.bill-page-btn:disabled { opacity: .42; }
.bill-page-info {
  min-width: 0;
  text-align: center;
  color: #667184;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 430px) {
  .bill-simple-tabs { gap: 4px; margin-bottom: 9px; }
  .bill-simple-tab { height: 34px; padding: 0 3px; font-size: 12px; }
  .bill-simple-table.is-today .bill-simple-row {
    grid-template-columns: 64px 38px 32px 47px minmax(55px, .9fr) 38px;
  }
  .bill-simple-row { min-height: 41px; font-size: 11px; }
  .bill-simple-row > span,
  .bill-simple-row > button { padding-left: 3px; padding-right: 3px; }
  .bill-simple-data-row > span { padding-left: 2px; padding-right: 2px; }
  .bill-number-cell { min-height: 29px; font-size: 10.5px; }
  .bill-page-btn { padding: 0 5px; font-size: 10.5px; }
}

/* 玩家反水：沿用全屏详情弹窗，只保留金额与时间的轻量账单。 */
.rebate-simple-workspace {
  display: grid;
  gap: 12px;
}
.rebate-simple-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.rebate-simple-card {
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid #e2e6ec;
  background: #f8fafc;
  color: #536173;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}
.rebate-simple-list {
  overflow: hidden;
  border: 1px solid #e1e5eb;
  background: #fff;
}
.rebate-simple-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 12px;
  border-bottom: 1px solid #edf0f4;
}
.rebate-simple-row:last-child { border-bottom: 0; }
.rebate-simple-time {
  min-width: 0;
  color: #667184;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rebate-simple-amount {
  color: #16724f;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 430px) {
  .rebate-simple-summary { grid-template-columns: 1fr; gap: 5px; }
  .rebate-simple-card { padding: 8px 6px; }
  .rebate-simple-row { min-height: 42px; padding: 0 9px; }
}
