﻿/* 复刻项目自有的少量补充样式（不覆盖原始 CSS） */
#layer {
  position: relative;
  z-index: 60;
}
.dlg-mask {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.62);
  backdrop-filter: blur(2px);
  overflow: auto;
}
.dlg-mask > .dlg {
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}
.dlg-mask > .dlg > .dlg-body {
  overflow: auto;
}
.menu-pop {
  position: absolute;
  z-index: 70;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.18));
  border-radius: 12px;
  background: var(--panel, #0e1526);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.menu-pop button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-pop button:hover {
  background: rgba(148, 163, 184, 0.14);
}
.menu-pop .sep {
  height: 1px;
  margin: 5px 4px;
  background: rgba(148, 163, 184, 0.16);
}
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(12, 18, 30, 0.94);
  color: #e8eefc;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.18s ease-out;
}
.toast.err {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.hidden { display: none !important; }

/* 顶栏: 桌面端排成一行(品牌 | 余额 | 同步 | 右侧链接), 与原站一致 */
.homewrap .topbar {
  flex-wrap: nowrap;
  gap: 12px;
}
.homewrap .topbar .brand h1 { white-space: nowrap; }
.homewrap .topbar .more { display: none; }
.homewrap .topbar .spacer { flex: 1 1 0; min-width: 0; }
.homewrap .topbar .meta { flex-wrap: nowrap; min-width: 0; white-space: nowrap; }
.homewrap .topbar .tokops { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.homewrap .topbar .links { flex-wrap: nowrap; }
.homewrap .topbar .links .seg { flex: none; }
@media (max-width: 1500px) {
  .homewrap .topbar { gap: 6px; }
  .homewrap .topbar .meta { gap: 6px; font-size: 12.5px; }
  .homewrap .topbar .meta .tokops { gap: 5px; flex-wrap: nowrap; }
  .homewrap .topbar .tokops .btn { padding-inline: 8px; }
  .homewrap .topbar .sync { gap: 6px; font-size: 12.5px; white-space: nowrap; }
  .homewrap .topbar .links .btn { padding-inline: 8px; }
  /* Linux 字体更宽: 窄屏先收起「预计可用」和洗黑入口, 保证顶栏单行 */
  .homewrap .topbar .tok-eta { display: none; }
  .homewrap .topbar .links a[href*="wash"] { display: none; }
}

/* 表格 / 用量 / 空态 */
.tk-head,
.tk-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 6px 2px;
  font-size: 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.tk-head { color: var(--ink-3, #93a0b4); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.tk-val { font-family: var(--font-mono), monospace; min-width: 64px; text-align: right; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 72px; gap: 10px; align-items: center; padding: 3px 0; font-size: 12px; }
.bar { display: block; height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2aabee, #67e8f9); }
.bar-val { text-align: right; font-family: var(--font-mono), monospace; }
.empty-row { padding: 26px 12px 30px; text-align: center; color: var(--ink-3, #93a0b4); font-size: 13px; display: grid; gap: 6px; }
.empty-row .muted { font-size: 12px; opacity: 0.8; }
.tok-peak { color: #fbbf24; font-size: 12px; }
.stop-note { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 7px; border-radius: 999px; font-size: 11px; color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.28); }
.lg-msg { margin: 6px 2px 0; font-size: 13px; color: #93a0b4; }
.lg-msg.bad { color: #fca5a5; }
.mapgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.guide-p { margin: 8px 0; font-size: 14px; line-height: 1.7; color: var(--ink-2, #c8d3e6); }
.guide-steps { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.08em; color: #93a0b4; }
.guide-bar { display: flex; gap: 4px; margin-bottom: 14px; }
.guide-bar i { flex: 1; height: 4px; border-radius: 999px; background: rgba(148, 163, 184, 0.22); }
.guide-bar i.on { background: #2aabee; }
.tk-group { margin-bottom: 10px; }
.tk-gh { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #93a0b4; margin: 6px 0 4px; }
.tk-row { grid-template-columns: 1fr auto; }
.tk-state { margin-left: 6px; color: #93a0b4; font-size: 11px; }
.tk-total { color: #fbbf24; }
.tk-total-val { color: #fbbf24; font-family: var(--font-mono), monospace; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.notebar { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.16); font-size: 13px; }
.notebar .note-line { margin: 2px 0; }
.notebar .warn { color: #fbbf24; }

/* 回收物表(摸金建房) */
.wtabs { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.wtabs button { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(148, 163, 184, 0.08); color: inherit; font-size: 12px; cursor: pointer; }
.wtabs button.on { border-color: rgba(96, 165, 250, 0.6); background: rgba(96, 165, 250, 0.16); color: #bfdbfe; }
.wlist { max-height: 260px; overflow: auto; margin-top: 8px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 10px; }
.wrow { display: grid; grid-template-columns: 1fr 84px repeat(3, 58px); gap: 6px; align-items: center; padding: 6px 10px; font-size: 13px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.wrow:last-child { border-bottom: 0; }
.wname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wval { color: #93a0b4; font-family: var(--font-mono), monospace; font-size: 12px; text-align: right; }
.wchk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #93a0b4; cursor: pointer; }
.wchk input { width: 14px; height: 14px; }

/* 登录卡右上角「官方群」胶囊 */
.lg-card { position: relative; }
.lg-group {
  position: absolute;
  top: 44px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #bfe6ff;
  text-decoration: none;
  border: 1px solid rgba(120, 190, 255, 0.38);
  background: linear-gradient(180deg, rgba(60, 140, 220, 0.24), rgba(30, 70, 130, 0.28));
  box-shadow: 0 6px 18px -10px rgba(90, 170, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.lg-group:hover {
  border-color: rgba(140, 210, 255, 0.75);
  background: linear-gradient(180deg, rgba(80, 165, 245, 0.34), rgba(36, 84, 150, 0.38));
  transform: translateY(-1px);
}
.lg-group:active { transform: translateY(0); }
.lg-group-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}
@media (max-width: 420px) {
  .lg-group { top: 40px; right: 16px; height: 30px; padding: 0 12px; font-size: 12px; }
}


/* 新字标比原 Neptune 宽: 取消原站的负边距重叠 */
.homewrap .brand .site-logo {
  height: 24px;
  margin: 0 6px 0 0;
}

/* 浮层容器: 全屏透明层, 让菜单/弹窗都按视口定位 */
#layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
#layer .dlg-mask, #layer .menu-pop { pointer-events: auto; }
.menu-pop { position: fixed; }

/* 离线账号行 */
.srow .pill.offline {
  color: #93a0b4;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* 手机端: 顶栏换行, 账号表横向滚动(保持列结构, 不挤压) */
@media (max-width: 760px) {
  .homewrap .topbar {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 10px 0 8px;
  }
  .homewrap .topbar .brand h1 { font-size: 22px; }
  .homewrap .topbar .meta { flex-wrap: wrap; row-gap: 4px; }
  .homewrap .topbar .tok-eta { display: none; }
  .homewrap .topbar .links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .homewrap .topbar .links a[href*="wash"] { display: none; }
  .homewrap .brand .site-logo { height: 22px; }
  .homewrap .tsum { gap: 8px; }
  .homewrap .sess .pinrow .seg { flex-wrap: wrap; justify-content: flex-start; }
  .homewrap .list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .homewrap .thead, .homewrap .srow { min-width: 720px; }
}

/* 状态 / 批次高亮 */
.srow .pill {
  background: rgba(56, 150, 255, 0.14);
  color: #cfe8ff;
  border: 1px solid rgba(90, 170, 255, 0.32);
  font-weight: 600;
}
.srow .pill:before {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}
.srow .pill .pill-num {
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-mono), monospace;
  letter-spacing: 0.02em;
}
.srow .chip.rbatch {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-weight: 700;
}
.srow .chip.rbatch.done {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.42);
}

/* 桌面行 / 手机卡片 二选一 */
.mcard { display: none; }

@media (max-width: 760px) {
  .homewrap .desktop-only { display: none !important; }
  .homewrap .list { overflow-x: visible; }
  .homewrap .thead { display: none; }
  .mcard {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
  }
  .mcard.sel { background: rgba(56, 150, 255, 0.08); }
  .mcard .m-top { display: flex; align-items: center; gap: 8px; }
  .mcard .m-acct { font-weight: 700; font-size: 15px; }
  .mcard .m-gname { color: #93a0b4; font-size: 13px; }
  .mcard .m-top .more { margin-left: auto; }
  .mcard .m-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
  .mcard .m-stats { margin-top: 6px; font-size: 12px; color: #9fb0c6; font-family: var(--font-mono), monospace; }
  .mcard .m-note { margin-top: 4px; font-size: 12px; color: #fbbf24; }
  .mcard .m-room { margin-top: 6px; font-size: 12px; color: #9fb0c6; }
  .mcard .m-room b { color: #e8f4ff; font-family: var(--font-mono), monospace; }
  .mcard .m-room .cp { margin-left: 6px; }
  .mcard .chk input { width: 18px; height: 18px; }
}

/* 手机底部页签栏(账号 / 添加) */
@media (max-width: 768px) {
  .homewrap .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 14, 20, 0.94);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(10px);
  }
  .homewrap .tabbar button {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(30, 41, 59, 0.6);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
  }
  .homewrap .tabbar button.on {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.9));
    border-color: rgba(96, 165, 250, 0.6);
    color: #fff;
  }
  .homewrap .home { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* 弹窗内的双列/三列字段与小票表格 */
.dlg .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.dlg .fld { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.dlg .fld > span { font-size: 12px; color: #93a0b4; }
.dlg .seg button.on { background: rgba(37, 99, 235, 0.85); color: #fff; }
.dlg table.tick { width: 100%; border-collapse: collapse; font-size: 13px; }
.dlg table.tick th, .dlg table.tick td { padding: 6px 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.14); text-align: left; }
.dlg table.tick th { color: #93a0b4; font-weight: 600; font-size: 12px; }
.dlg table.tick td.gold, .dlg table.tick td.tab { font-family: var(--font-mono), monospace; }
@media (max-width: 760px) {
  .dlg .row2, .dlg .row3 { grid-template-columns: 1fr; }
}

/* 菜单遮罩: 点空白处关闭 */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: auto;
  z-index: 58;
}
#layer .menu-pop { z-index: 59; }

/* 手机端才显示的直接退出按钮 */
.only-mobile { display: none !important; }
@media (max-width: 760px) {
  .homewrap .only-mobile { display: inline-flex !important; }
  .homewrap .only-mobile { color: #f87171 !important; }
}


/* 操作面板(分组按钮) */
.dlg .ops-h { margin: 12px 0 8px; font-size: 13px; color: #93a0b4; font-weight: 600; }
.dlg .ops-h:first-child { margin-top: 0; }
.dlg .ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dlg .ops-btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.dlg .ops-btn:not(:disabled):active { background: rgba(56, 150, 255, 0.28); }
.dlg .ops-btn.off, .dlg .ops-btn:disabled {
  color: #6b7280;
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.12);
}
.dlg .ops-del {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  font-weight: 700;
}
.dlg .ops-del:disabled {
  color: #6b7280;
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.12);
}
@media (max-width: 420px) {
  .dlg .ops-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dlg .ops-btn { height: 38px; font-size: 12px; }
}

/* 手机端: 顶栏显示「退出」按钮, 其余链接收起 */
@media (max-width: 768px) {
  .homewrap .topbar .links {
    display: flex !important;
    width: auto !important;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: 6px;
  }
  .homewrap .topbar .links > *:not(.quit) { display: none !important; }
  .homewrap .topbar .links .quit {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    background: rgba(248, 113, 113, 0.12) !important;
  }
}

/* 手机端: 顶栏只保留 刷新 + 退出, 其余链接收起 */
@media (max-width: 768px) {
  .homewrap .topbar .links { display: none !important; }
  .homewrap .topbar .sync .quit {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    background: rgba(248, 113, 113, 0.12) !important;
  }
}

/* 顶栏换行 + 文本不竖排(桌面加宽后按钮变多) */
.homewrap .topbar { flex-wrap: wrap; row-gap: 6px; }
.homewrap .topbar .brand { margin-right: 0 !important; white-space: nowrap; }
.homewrap .topbar .brand h1 { white-space: nowrap; }
.homewrap .topbar .meta,
.homewrap .topbar .sync,
.homewrap .topbar .links,
.homewrap .topbar .live,
.homewrap .topbar .tok,
.homewrap .topbar .tok-peak,
.homewrap .topbar .tok-eta { white-space: nowrap; }
.homewrap .topbar .links { margin-left: auto; }
@media (max-width: 1500px) {
  .homewrap .topbar .tok-eta { display: none; }
}

/* 桌面行里的摸金统计一行式 */
.srow .mojin-line {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #9fb0c6;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
.srow .mojin-line b { font-family: var(--font-mono), monospace; }
.srow .mojin-line .gain { color: #34d399; }
.srow .mojin-line .lose { color: #f87171; }
.srow .state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.srow .state .mojin-line { flex: 1 0 100%; }


/* 摸金统计: 整行显示在账号行下面 */
.rowwrap .rowstats {
  padding: 0 14px 10px 76px;
  font-size: 12px;
  line-height: 1.6;
  color: #9fb0c6;
}
.rowwrap .rowstats b { font-family: var(--font-mono), monospace; }
.rowwrap .rowstats .gain { color: #34d399; }
.rowwrap .rowstats .lose { color: #f87171; }
.rowwrap .rowstats .mojin-line { white-space: normal; display: inline; }
@media (max-width: 760px) {
  .homewrap .rowwrap .rowstats { display: none; }
}

/* 拾取统计 */
.dlg .pick-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.dlg .pick-card { padding: 12px 14px; border-radius: 12px; background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.14); display: grid; gap: 4px; }
.dlg .pick-card small { color: #93a0b4; font-size: 12px; }
.dlg .pick-card b { font-size: 20px; font-family: var(--font-mono), monospace; color: #e8f4ff; }
.dlg .pick-list { display: grid; gap: 8px; margin-top: 8px; max-height: 340px; overflow: auto; }
.dlg .pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(148,163,184,.06); border: 1px solid rgba(148,163,184,.14);
  font-size: 13px;
}
.dlg .pick-row .pick-name b { color: #fbbf24; font-family: var(--font-mono), monospace; }
.dlg .pick-row .pick-val { color: #9fb0c6; font-family: var(--font-mono), monospace; }

/* 工具栏里的摸金战果汇总 */
.sess .sess-stats {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #9fb0c6;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.sess .sess-stats b { font-family: var(--font-mono), monospace; }
.sess .sess-stats .gain { color: #34d399; }
.sess .sess-stats .lose { color: #f87171; }
@media (max-width: 760px) {
  .sess .sess-stats { font-size: 11px; width: 100%; justify-content: flex-start; overflow-x: auto; }
}

/* 预约任务表单: 三列时间行 + 手机端自适应 */
@media (max-width: 760px) {
  .dlg .row3 { grid-template-columns: 1fr; }
}

/* 深色原生下拉(操作/重复) */
.dlg select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #93a0b4 50%), linear-gradient(135deg, #93a0b4 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.dlg select.input option { background: #111827; color: #e5e7eb; }

/* 地图自定义下拉 */
.dlg .mappick { position: relative; }
.dlg .mappick-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.dlg .mappick-list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 200px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #111827;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  padding: 4px;
}
.dlg .mappick-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 13px;
}
.dlg .mappick-item:hover { background: rgba(56, 150, 255, 0.18); }

/* 目标局数被禁用时的样式 */
.dlg .fld.off span { color: #6b7280; }
.dlg .fld.off .input { opacity: .45; }

/* 键盘弹出时: 收起底部页签, 给输入区留出空间 */
body.kb-open .homewrap .tabbar { display: none !important; }
body.kb-open .homewrap .home { padding-bottom: 16px; }
body.kb-open .homewrap .pane.accounts { padding-bottom: 120px; }

/* 预约: 账号多选列表(独立样式, 保证一定可见) */
.dlg [data-acct-list] {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  border: 0;
  padding: 0;
}
.dlg [data-acct-list] .pick-row {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
  color: #e5e7eb !important;
  font-size: 13px;
  min-height: 44px;
}
.dlg [data-acct-list] .pick-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #e5e7eb;
  white-space: normal;
  word-break: break-all;
}
.dlg [data-acct-list] input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.dlg [data-acct-list] .hint { margin: 4px 0; }

/* 修正: 账号列表容器被压成 0 高导致行被裁掉 */
.dlg [data-acct-list] {
  height: auto !important;
  min-height: 44px;
  overflow: visible !important;
  max-height: none !important;
  flex: 0 0 auto;
}

/* 账号列表: 用最朴素的块级布局, 避免被压扁 */
.dlg [data-acct-list] { display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; }
.dlg [data-acct-list] .pick-row { display: flex !important; width: 100% !important; margin: 0 0 8px 0 !important; }
.dlg [data-acct-list] .pick-row:last-child { margin-bottom: 0 !important; }

/* 预约账号多选: 专用类, 彻底避开 .pick-list 的布局 */
.dlg .acctpick {
  display: block;
  margin: 8px 0 4px;
  max-height: 200px;
  overflow-y: auto;
}
.dlg .acctpick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.08);
  color: #e5e7eb;
  font-size: 13px;
}
.dlg .acctpick-row:last-child { margin-bottom: 0; }
.dlg .acctpick-name { flex: 1 1 auto; min-width: 0; word-break: break-all; }
.dlg .acctpick-row input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; }

/* 关键修复: 弹窗 body 是 grid, 账号列表必须显式按内容撑高, 否则被压成一行 */
.dlg .acctpick { height: max-content !important; align-self: start; }

/* 预约表单包一层普通块级容器, 避开弹窗 grid 的行高约束 */
.dlg .sched-form { display: block; }
.dlg .sched-form .acctpick { height: auto !important; }

/* 卡密门禁页 */
.gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.gate-card { max-width: 420px; width: 100%; padding: 28px 24px; }
.gate-card h1 { font-size: 26px; margin: 10px 0 6px; }
.gate-card .lg-sub { color: #93a0b4; font-size: 13px; margin-bottom: 16px; }
.gate-card form { display: grid; gap: 12px; }
.gate-card .input { height: 46px; font-size: 16px; letter-spacing: 0.06em; }
.gate-card .lg-btn { height: 46px; margin-top: 4px; }
.gate-card .lg-msg { margin-top: 10px; font-size: 13px; }

/* 卡密页表单: 输入框与按钮都占满 */
.lg-card.gate-card form,
.lg-card:has(form[data-gate]) form { display: grid; gap: 12px; width: 100%; }
.lg-card:has(form[data-gate]) .input { width: 100%; height: 50px; font-size: 16px; }
.lg-card:has(form[data-gate]) .lg-btn { width: 100%; height: 50px; }
.lg-card:has(form[data-gate]) .lg-sub { margin: 6px 0 14px; }

/* 卡密管理列表 */
.dlg .keylist { display: block; max-height: 320px; overflow: auto; margin-top: 6px; }
.dlg .keyrow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 8px; border-radius: 10px;
  border: 1px solid rgba(148,163,184,.2); background: rgba(148,163,184,.06);
  font-size: 13px;
}
.dlg .keyrow .kcode { font-family: var(--font-mono), monospace; color: #e5e7eb; flex: 1 1 160px; word-break: break-all; }
.dlg .keyrow .kstate { flex: 0 0 auto; font-size: 12px; }
.dlg .keyrow .kacts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
