/* 电脑版：加宽 + 右侧文件传输栏；配色与手机版保持一致（微信浅色） */

.ui-switch{color:var(--wx-green-dark);text-decoration:none}
.ui-switch:hover{text-decoration:underline}

#chat{max-width:1120px}

@media (min-width: 860px){
  #chat{
    display:grid;
    grid-template-columns:minmax(0,1fr) 332px;
    grid-template-rows:auto auto minmax(0,1fr) auto;
    grid-template-areas:
      "top   top"
      "fp    fp"
      "msgs  side"
      "input side";
  }
  #chat>.topbar{grid-area:top}
  #chat>.fpbar{grid-area:fp}
  #chat>.msgs{grid-area:msgs;border-right:1px solid var(--wx-line)}
  #chat>#filePanel{grid-area:side}
  #chat>.inputbar{grid-area:input}
}

/* 窄窗口（或把桌面浏览器缩得很小）：侧栏落到输入条上方，可滚动 */
@media (max-width: 859px){
  #filePanel{max-height:38vh}
}

/* ---------------- 文件传输侧栏 ---------------- */
.file-panel{
  display:flex;flex-direction:column;gap:14px;
  padding:16px 16px 20px;overflow-y:auto;
  background:#fafafa;border-left:1px solid var(--wx-line);
  font-size:13px;color:#333;
}
.fp-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.fp-head h2{font-size:15px;font-weight:600;margin:0}
.fp-sub{font-size:11px;color:var(--wx-gray)}

.fp-block{
  background:#fff;border:1px solid #ececec;border-radius:10px;
  padding:12px;display:flex;flex-direction:column;gap:8px;
}
.fp-title{font-size:12px;font-weight:600;color:#666}

.fp-btn{
  height:34px;padding:0 12px;border-radius:7px;border:1px solid #dcdcdc;
  background:#fff;color:#333;font-size:13px;cursor:pointer;
}
.fp-btn:hover:not(:disabled){background:#f4f4f4}
.fp-btn:disabled{opacity:.5;cursor:not-allowed}
.fp-btn.primary{background:var(--wx-green-dark);border-color:var(--wx-green-dark);color:#fff}
.fp-btn.primary:hover:not(:disabled){filter:brightness(.96);background:var(--wx-green-dark)}

.fp-note{font-size:12px;color:#888;line-height:1.55;word-break:break-all}
.fp-note.bad{color:#c15b5b}
.fp-note.ok{color:#2e8b57}
.fp-foot{font-size:11px;color:#aaa;line-height:1.7;border-top:1px dashed #e3e3e3;padding-top:10px}

.fp-prog{height:6px;border-radius:3px;background:#ededed;overflow:hidden}
.fp-prog-bar{height:100%;width:0;background:var(--wx-green-dark);transition:width .15s linear}

/* ---------------- 接收确认弹窗 ---------------- */
.mask{
  position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.32);padding:20px;
}
.dialog{
  width:100%;max-width:380px;background:#fff;border-radius:14px;
  padding:22px 20px 18px;box-shadow:0 12px 40px rgba(0,0,0,.18);
}
.dialog h3{margin:0 0 14px;font-size:16px;font-weight:600;text-align:center}
.dlg-row{display:flex;gap:12px;justify-content:space-between;font-size:13px;padding:5px 0}
.dlg-row span{color:#999;flex:0 0 auto}
.dlg-row b{font-weight:500;text-align:right;word-break:break-all}
.dlg-tip{font-size:11px;color:#9a9a9a;line-height:1.6;margin:12px 0 16px}
.dlg-btns{display:flex;gap:10px}
.dlg-btns .fp-btn{flex:1;height:38px}
