: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:calc(100% - 126px);
  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;
}

.point-balance-pill{
  min-height:30px;
  padding:0 10px;
  cursor:default;
  user-select:none;
  font-variant-numeric:tabular-nums;
  background:rgba(255,214,72,.18);
  border-color:rgba(255,214,72,.45);
  color:#ffe083;
}

.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:12px; width:min(260px, calc(100vw - 24px)); }
.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;
}
.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-item b{
  color:#94a3b8;
  font-size:21px;
  font-weight:500;
}
.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);
}
.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:100;
  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; }

.fc3d-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.5);
  padding:16px;
}
.fc3d-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);
}
.fc3d-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;
  }
  .fc3d-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-pill{ min-width:auto; }
}


/* 玩家菜单：全屏、轻量、适合手机阅读 */
.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; }
}
