/* =====================================================
   管理后台样式 v3（侧边栏布局 · 现代视觉）
   ===================================================== */
:root {
  --ink: #111827; --ink-2: #5b6472; --ink-3: #9aa3b2;
  --bg: #f4f6fa; --card: #fff; --line: #e7eaf0;
  --brand: #f4511e; --brand-dark: #d63c0e; --brand-weak: #fff1ec;
  --danger: #e11d48; --ok: #0f9d58;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(25,30,40,.04), 0 6px 16px rgba(25,30,40,.05);
  --shadow-lg: 0 1px 2px rgba(25,30,40,.04), 0 6px 16px rgba(25,30,40,.05);
  --hl: 0 0 0 rgba(0,0,0,0);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); min-height: 100vh; font-size: 14px;
}
.hide { display: none !important; }
button { font-family: inherit; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(244,81,30,.10), transparent 60%),
    radial-gradient(900px 420px at 100% 110%, rgba(59,111,212,.10), transparent 60%),
    var(--bg);
}
.login-card {
  background: var(--card); border-radius: 22px; box-shadow: 0 20px 60px rgba(16,24,40,.10);
  padding: 40px 34px; width: 100%; max-width: 390px;
}
.login-logo {
  width: 72px; height: 72px; margin: 0 auto 14px; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7a45, var(--brand)); border-radius: 22px;
  box-shadow: 0 8px 18px rgba(244,81,30,.28);
}
.login-card h1 { font-size: 19px; text-align: center; }
.login-sub { text-align: center; color: var(--ink-2); font-size: 13px; margin: 6px 0 20px; }
.login-card label { display: block; font-size: 13px; color: var(--ink-2); margin: 14px 0 6px; font-weight: 600; }
.login-card input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; outline: none; background: #fafbfc; transition: border-color .15s;
}
.login-card input:focus { border-color: var(--brand); background: #fff; }
.login-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 12px; }
/* v24.11：登录页底部版本号 —— 用来一眼确认浏览器里跑的是不是最新文件（配合 Ctrl+F5） */
.login-ver { margin-top: 14px; text-align: center; font-size: 12px; color: #9ca3af; letter-spacing: .3px; }
.login-card .btn-primary { margin-top: 6px; }

/* ---------- 通用按钮 ---------- */
.btn-primary {
  padding: 12px 20px; border: none; border-radius: 12px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .15s, transform .1s;
  box-shadow: 0 6px 14px rgba(244,81,30,.22);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }
.btn-ghost {
  padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger {
  padding: 9px 16px; border: none; border-radius: 11px;
  background: var(--danger); color: #fff; font-size: 13px; cursor: pointer;
}
.btn-mini {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink-2); font-size: 12px; cursor: pointer;
}
.btn-mini:hover { border-color: var(--brand); color: var(--brand); }
.btn-mini.danger:hover { border-color: var(--danger); color: var(--danger); }
.link-btn { border: none; background: none; color: var(--ink-2); font-size: 13px; cursor: pointer; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 232px; z-index: 10;
  background: linear-gradient(180deg, #131a2e, #101526); color: #cdd3e0;
  display: flex; flex-direction: column; padding: 22px 16px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 20px; }
.brand-logo {
  width: 42px; height: 42px; font-size: 20px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7a45, var(--brand)); border-radius: 13px;
  box-shadow: 0 6px 14px rgba(244,81,30,.3);
}
.brand-txt b { display: block; color: #fff; font-size: 15px; letter-spacing: .5px; }
.brand-txt small { color: #7c8598; font-size: 11px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.snav {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border: none; border-radius: 12px;
  background: none; color: #aab2c2; font-size: 14px; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.snav i { font-style: normal; font-size: 16px; }
.snav:hover { background: rgba(255,255,255,.06); color: #fff; }
.snav.on { background: rgba(244,81,30,.16); color: #fff; font-weight: 700; }
.snav.on i { filter: none; }
.side-bottom { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.side-user { font-size: 13px; color: #cdd3e0; padding: 0 6px 10px; word-break: break-all; }
.side-logout {
  width: 100%; padding: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  background: none; color: #aab2c2; font-size: 13px; cursor: pointer;
}
.side-logout:hover { color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- 主区域 ---------- */
.main { margin-left: 232px; padding: 28px 30px 70px; max-width: 1060px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.page-sub { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tab-pane { animation: rise .22s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 器械卡片网格 ---------- */
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.eq-card {
  background: var(--card);
  border-radius: 14px; padding: 18px;
  box-shadow: var(--shadow-lg);
  transition: box-shadow .15s, transform .12s;
  display: flex; flex-direction: column; gap: 12px;
}
.eq-card:hover { box-shadow: 0 8px 22px rgba(25,30,40,.10); }
.eq-main { display: flex; gap: 13px; align-items: flex-start; }
.eq-thumb {
  flex: none; width: 64px; height: 64px; border-radius: 13px; overflow: hidden;
  background: linear-gradient(135deg, #2b3240, #14171d);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.eq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq-body { flex: 1; min-width: 0; }
.eq-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 11px; padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.pill.beginner { background:#e7f7ee; color:#0f9d58; }
.pill.intermediate { background:#fff4e0; color:#d97706; }
.pill.advanced { background:#fdeaea; color:#e11d48; }
.eq-stats { margin-top: 9px; font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.eq-stats > span { background: #f4f6f9; border-radius: 7px; padding: 3px 9px; line-height: 1.6; }
.eq-stats .scan-badge { background: var(--brand-weak); color: var(--brand); font-weight: 700; }
.ex-count-badge { color: #3b6fd4; font-weight: 700; }
.eq-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* ---------- 表格 ---------- */
.table-wrap {
  background: var(--card);
  border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow-lg), var(--hl);
}
.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th {
  text-align: left; padding: 13px 16px; font-size: 12px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid #f1f3f7; font-size: 13px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.sets-cell { color: var(--ink-2); line-height: 1.6; }
.sets-cell b { color: var(--brand); font-weight: 700; }
.empty-row { padding: 46px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- 反馈 ---------- */
.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-item {
  background: var(--card);
  border-radius: var(--radius); padding: 15px 18px;
  box-shadow: var(--shadow), var(--hl);
}
.fb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-type { font-size: 11px; padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.fb-type.video_broken { background: #fdeaea; color: #e11d48; }
.fb-type.content_error { background: #fff4e0; color: #d97706; }
.fb-eq { font-size: 12px; color: var(--ink-2); }
.fb-time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.fb-content { margin-top: 8px; font-size: 13px; color: var(--ink); line-height: 1.7; }
.fb-content.none { color: var(--ink-3); }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(13,17,26,.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .18s ease;
}
.mask-top { z-index: 60; } /* 叠加层：动作编辑在动作管理之上 */
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: #fff; border-radius: 20px; padding: 22px 24px;
  max-height: 92vh; overflow-y: auto; animation: pop .2s ease; width: 100%;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { font-size: 17px; font-weight: 800; }
.modal-tag {
  font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-weak);
  padding: 3px 12px; border-radius: 99px; margin-left: 6px; vertical-align: 2px;
}
.modal-close {
  width: 32px; height: 32px; border: none; border-radius: 10px; background: #f1f3f7;
  font-size: 18px; color: var(--ink-2); cursor: pointer; line-height: 1; flex: none;
}
.modal-close:hover { background: #e6e9ef; color: var(--ink); }
.modal-edit { max-width: 580px; }
.modal-ex { max-width: 640px; }
.modal-qr { max-width: 380px; text-align: center; }
.modal-cat { max-width: 420px; }
.modal-confirm { max-width: 330px; text-align: center; }

/* 表单 */
.f-label { display: block; font-size: 13px; color: var(--ink-2); margin: 14px 0 6px; font-weight: 600; }
.f-label .req { color: var(--danger); font-style: normal; }
.form input[type="text"], .form textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; outline: none; background: #fafbfc; font-family: inherit; resize: vertical;
  transition: border-color .15s;
}
.form input:focus, .form textarea:focus { border-color: var(--brand); background: #fff; }
.diff-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.diff-picker button {
  flex: 1; min-width: 88px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.diff-picker button.on { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); font-weight: 700; }
.form-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn-primary, .modal-actions .btn-ghost { flex: 1; padding: 12px; border-radius: 12px; font-size: 14px; }
.confirm-text { font-size: 14px; line-height: 1.8; margin-bottom: 8px; }

/* 上传区 */
.up-area { border: 1.5px dashed #d5dae2; border-radius: 13px; padding: 12px; background: #fcfcfe; }
.btn-upload {
  padding: 8px 16px; border: 1px solid var(--brand); border-radius: 99px;
  background: var(--brand-weak); color: var(--brand); font-size: 13px; cursor: pointer;
}
.img-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.img-preview .thumb { position: relative; width: 72px; height: 72px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.img-preview .thumb-del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: none; background: var(--danger); color: #fff;
  font-size: 12px; cursor: pointer; line-height: 1;
}
.video-preview { font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.video-preview .vp-name { display: inline-flex; align-items: center; gap: 6px; background: #eef4ff; color: #3b6fd4; padding: 6px 12px; border-radius: 99px; }
.video-preview .vp-del { border: none; background: none; color: var(--danger); cursor: pointer; margin-left: 4px; }
/* v14.3e：视频存哪 + 「上传了没保存」提醒 */
.video-preview .vp-tag { font-weight: 600; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; margin-left: 4px; }
.video-preview .vp-ok { background: #e6f7ec; color: #15803d; }
.video-preview .vp-local { background: #fef3c7; color: #b45309; }
.video-preview .vp-hint { display: block; margin: 8px 0 0; font-size: 11.5px; line-height: 1.75; color: var(--ink-3); }
.video-preview .vp-alert { background: #fff7ed; border: 1px solid #fed7aa; color: #b45309; padding: 7px 10px; border-radius: 8px; }
.progress { height: 6px; background: #eef0f3; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .2s; }

/* ---------- 动作管理弹窗内容 ---------- */
.ex-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ex-list { display: flex; flex-direction: column; gap: 10px; }
.ex-item {
  background: var(--card);
  border-radius: 13px; padding: 13px 15px;
  box-shadow: var(--shadow), var(--hl);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ex-main { flex: 1; min-width: 180px; }
.ex-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-chip { font-size: 11px; padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.cat-chip.cardio { background: #e8f3fd; color: #1976d2; }
.cat-chip.strength { background: var(--brand-weak); color: var(--brand-dark); }
.cat-chip.core { background: #f3e8fd; color: #7b1fa2; }
.cat-chip.flexibility { background: #e7f7ee; color: #0f9d58; }
.ex-meta { margin-top: 5px; font-size: 12px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; }
.ex-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 分类管理 ---------- */
.cat-mgr-list { display: flex; flex-direction: column; gap: 14px; }
.cat-mgr-item {
  background: var(--card);
  border-radius: 18px; padding: 16px 18px;
  box-shadow: var(--shadow-lg), var(--hl);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cat-mgr-main { flex: 1; min-width: 180px; }
.cat-mgr-name { font-size: 16px; font-weight: 800; }

/* 分类小标签 */
.cat-chip.plain { background: #eef1f6; color: #5b6472; }
.cat-chip.none-tip { background: #fff7e0; color: #b45309; }

/* 提示文案 */
.form-hint {
  margin-top: 10px; padding: 9px 13px; border-radius: 10px;
  background: #f6f8fc; color: #5b6472; font-size: 12px; line-height: 1.7;
}

/* 弹窗内分组标题（如"常规操作"） */
.form-group-title {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid #eef0f4;
  font-size: 14px; font-weight: 600; color: #1a1d24;
  display: flex; align-items: center; gap: 7px;
}
.form-group-title::before {
  content: ''; width: 4px; height: 15px; border-radius: 2px;
  background: var(--brand);
}
.form-group-title + .form-hint { margin-top: 10px; }

/* 关联动作弹窗 */
.modal-link { max-width: 560px; }
.modal-cat-edit { max-width: 380px; }
.link-search {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; outline: none; background: #fafbfc; margin-bottom: 12px;
}
.link-search:focus { border-color: var(--brand); background: #fff; }
.link-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; padding: 6px; }
.link-group {
  padding: 9px 12px 5px; font-size: 12px; font-weight: 800; color: var(--ink-3);
  letter-spacing: .5px;
}
.link-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; cursor: pointer; font-size: 14px;
}
.link-row:hover { background: #f6f8fc; }
.link-row.checked { background: var(--brand-weak); }
.link-row input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.link-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-cats { font-size: 11px; color: var(--ink-3); flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 二维码 */
.qr-box {
  display: flex; justify-content: center; padding: 14px;
  background: #f7f8fb; border-radius: 13px; margin-bottom: 10px;
}
.qr-box img, .qr-box canvas, .qr-box table { background: #fff; }
.qr-url { font-size: 12px; color: var(--ink-3); word-break: break-all; margin-bottom: 6px; }
.qr-tip { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.modal-qr .modal-actions { margin-top: 14px; }

/* ---------- 工具条杂项 ---------- */
.stat-line { color: var(--ink-3); font-size: 13px; }
.select {
  padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 13px; background: #fff; outline: none; max-width: 220px;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 99;
  background: rgba(17,22,34,.94); color: #fff; font-size: 14px;
  padding: 11px 22px; border-radius: 99px; animation: fadeIn .2s ease; max-width: 80vw;
}

/* ---------- 移动端 ---------- */
@media (max-width: 880px) {
  .sidebar {
    position: static; width: auto; flex-direction: row; align-items: center;
    padding: 10px 14px; gap: 12px; flex-wrap: wrap;
  }
  .brand { padding: 0; }
  .side-nav { flex-direction: row; margin: 0; flex: 1; overflow-x: auto; }
  .snav { width: auto; padding: 9px 12px; white-space: nowrap; }
  .side-bottom { margin: 0; border: none; padding: 0; display: flex; align-items: center; gap: 8px; }
  .side-user { padding: 0; font-size: 12px; }
  .side-logout { width: auto; padding: 7px 12px; }
  .main { margin-left: 0; padding: 18px 14px 60px; }
}
@media (max-width: 640px) {
  .eq-grid { grid-template-columns: 1fr; }
  .fb-time { margin-left: 0; width: 100%; }
  .modal { padding: 18px 16px; }
}

/* ===================== v5 新增 ===================== */
/* 使用方法模式选择器（与难度选择器同风格） */
.mode-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-picker button {
  padding: 9px 14px; border-radius: 11px; font-size: 13px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.mode-picker button.on { border-color: var(--brand); background: var(--brand-weak); color: var(--brand); font-weight: 700; }

/* 表单下拉（弹窗内） */
.f-select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; background: #fafbfc; outline: none;
}
.f-select:focus { border-color: var(--brand); background: #fff; }

/* 器械卡上的模式 / 主动作标签 */
.mode-tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.mode-tag.single { background: #fff1e6; color: #c2560c; }
.mode-tag.multi { background: #e8f3fd; color: #1976d2; }
.eq-main-line { margin-top: 7px; }
.main-tag { font-size: 12px; color: #b45309; background: #fff7e0; padding: 3px 10px; border-radius: 99px; font-weight: 600; }

/* 动作管理页签 */
.ex-all-list { display: flex; flex-direction: column; gap: 12px; }
.ex-item.is-main { border-left: 3px solid #f5a623; }
.main-star { font-size: 15px; }
.cat-chip.eq-chip { background: #eef4ff; color: #3b6fd4; }

/* =====================================================
   v11：系统设置页
   ===================================================== */
.set-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
}
.set-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 24px; border: 1px solid #f0f2f6;
}
.set-head { margin-bottom: 6px; }
.set-head h3 { font-size: 15px; font-weight: 700; }
.set-head p { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.set-card input[type=text], .set-card input[type=tel], .set-card input[type=password], .set-card textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; background: #fafbfc; outline: none; font-family: inherit;
}
.set-card input:focus, .set-card textarea:focus { border-color: var(--brand); background: #fff; }
.set-card textarea { resize: vertical; line-height: 1.6; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-hint { font-size: 12px; color: var(--ink-3); line-height: 1.75; margin-top: 14px; }
.sc-hint code, .wx-tip code {
  background: #f3f5f9; padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #b4340c;
}
.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: #fafbfc; border: 1.5px solid var(--line);
  border-radius: 12px; margin-top: 14px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 99px;
  background: #dfe3ea; position: relative; cursor: pointer; transition: background .18s; outline: none; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.switch:checked { background: #16a34a; }
.switch:checked::after { transform: translateX(20px); }
.test-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.test-row input { flex: 1; }
.test-row .btn-ghost { flex: none; padding: 11px 16px; }
.logo-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.logo-preview {
  width: 64px; height: 64px; border-radius: 16px; background: #f3f5f9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 26px; color: var(--ink-3); flex: none;
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.wx-tip {
  margin-top: 16px; background: #f0f8f2; border: 1px solid #d5ebdc; border-radius: 12px;
  padding: 14px 16px; font-size: 12.5px; color: #256b45; line-height: 1.85;
}
.wx-tip-title { font-weight: 700; margin-bottom: 4px; }
.wx-tip ol { padding-left: 18px; }
.wx-tip b { color: #12603c; }
.wx-cb { margin-top: 8px; word-break: break-all; }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.set-foot .sc-hint { margin-top: 0; }
.set-msg { font-size: 13px; min-height: 18px; margin-top: 8px; color: var(--ok); }
.set-msg.err { color: var(--danger); }

/* 用户管理：手机号 / 微信 / 来源标签 */
.dim { color: var(--ink-3); }
.tag-ok { font-size: 11.5px; font-weight: 700; color: #0f7a45; background: #e8f7ee; padding: 3px 9px; border-radius: 99px; }
.src-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #f1f3f7; color: var(--ink-2); }
.src-tag.sms { background: #eef4ff; color: #3b6fd4; }
.src-tag.wechat { background: #e8f7ee; color: #0f7a45; }

/* v13：会员 UID 标记（等宽数字，方便和会员端对照） */
.uid-tag {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: #3b4250; background: #f1f3f7;
  padding: 3px 8px; border-radius: 7px;
}
.src-tag.nickname { background: #f1f3f7; color: var(--ink-3); }

/* v14：用户表「人」单元格（头像块 + 昵称 + 内部 ID） */
.u-cell { display: flex; align-items: center; gap: 9px; }
.u-ava {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff9a5a, #ff5a1f);
}
.u-ava.wechat { background: linear-gradient(135deg, #5fd08a, #12a75a); }
.u-ava.nickname { background: linear-gradient(135deg, #9aa4b8, #6b7688); }
.u-txt { display: flex; flex-direction: column; line-height: 1.25; }
.u-txt b { font-size: 13px; color: var(--ink); }
.u-txt small { font-size: 10.5px; color: var(--ink-4, #9aa3b2); letter-spacing: .02em; }

/* v14：微信 UID（后台可见，点一下复制全串） */
.wx-uid {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #e3e8f0; background: #f8fafc;
  border-radius: 8px; padding: 4px 8px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.wx-uid b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; font-weight: 700; color: #3b4250; letter-spacing: .01em;
}
.wx-uid i { font-style: normal; font-size: 10.5px; color: #8a93a4; }
.wx-uid:hover { border-color: #ffb08a; background: #fff7f2; }
.wx-uid:hover i { color: #ff5a1f; }
.wx-uid:active { transform: scale(.98); }

/* v14：待完善提示（器械简介未填写时） */
.warn-tip { color: #b4741a; background: #fff7e8; padding: 2px 7px; border-radius: 6px; }

/* ===== v14.2 密钥锁定条 ===== */
.sec-lock{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--card,#fff);border:1px solid rgba(0,0,0,.08);border-left:3px solid #f59e0b;border-radius:10px;padding:10px 14px;margin-bottom:14px}
.sec-lock-txt{flex:1;min-width:240px;font-size:12.5px;color:var(--ink-2,#64748b);display:flex;flex-direction:column;gap:2px}
.sec-lock-txt b{font-size:13px;color:var(--ink,#0f172a)}
.sec-lock-txt .warn,.f-warn{color:#d97706}
.sec-lock-ops{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sec-lock-msg{font-size:12px;color:#dc2626}
.f-warn{font-weight:400;font-size:11px;margin-left:6px}

/* ===== v14.3 自检结果多行显示 ===== */
#ossTestMsg, #mediaCheckMsg, #migrateMsg, #uploadLogMsg { white-space: pre-line; word-break: break-all; line-height: 1.75; }

/* ---------- 跟练设置（v16） ---------- */
.follow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; }
.follow-grid input[type="number"] {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; outline: none; background: #fafbfc; transition: border-color .15s;
}
.follow-grid input[type="number"]:focus { border-color: var(--brand); background: #fff; }

/* ================= 课程管理（v19） ================= */
.course-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.cc-main { min-width: 0; }
.cc-main > b { font-size: 15px; }
.cc-meta { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.cc-intro { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-ops { display: flex; gap: 8px; flex: none; }
/* v24.5：私教排课筛选条（快捷日期 + 待办统计） */
.pt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px; flex-wrap: wrap;
}
.pt-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.pt-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 7px 15px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.pt-chip:hover { border-color: var(--brand); color: var(--brand); background: #f0f5ff; }
.pt-chip.on {
  background: linear-gradient(135deg, #2e6bff, #5a8cff); border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px rgba(46, 107, 255, .26);
}
.pt-mini { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-item {
  display: inline-flex; align-items: baseline; gap: 4px;
  border-radius: 10px; padding: 6px 12px; font-size: 11.5px; color: var(--ink-3);
  background: #f5f7fb; border: 1px solid var(--line);
}
.pm-item b { font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pm-item.warn { background: #fff7e6; border-color: #f0d8a8; color: #a9711a; }
.pm-item.warn b { color: #d97706; }
.pm-item.live { background: #e6f8f1; border-color: #b7e2c8; color: #12813e; }
.pm-item.live b { color: #0f8f6f; }

/* v24.5：操作按钮统一升级 —— 圆润胶囊 + 品牌色确认键 + 柔和投影 */
.cc-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 8px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .1s, box-shadow .15s;
}
.cc-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft, #f0f5ff); }
.cc-btn:active { transform: scale(.96); }
.cc-btn.cc-on { background: #e8f6ee; border-color: #b7e2c8; color: #12813e; font-weight: 700; }
.cc-btn.cc-on:hover { background: #dcf2e5; border-color: #12813e; color: #12813e; }
.cc-btn.cc-danger { color: var(--danger); }
.cc-btn.cc-danger:hover { background: #fdecec; border-color: var(--danger); color: var(--danger); }
.cc-btn.cc-warn { background: #fff7e6; border-color: #f0d8a8; color: #d97706; font-weight: 700; }

.modal-course { max-width: 640px; max-height: 86vh; overflow: auto; }
.c-days { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; padding: 2px; }
.cd-row { border: 1px solid #e6e9ef; border-radius: 10px; padding: 8px 10px; background: #fafbfc; }
.cd-head { display: flex; align-items: center; gap: 8px; }
.cd-no { font-size: 12.5px; flex: none; width: 58px; }
.cd-type { flex: none; width: 92px; height: 30px; border: 1px solid rgba(0,0,0,.16); border-radius: 8px; padding: 0 6px; font-size: 12.5px; background: #fff; }
.cd-title { flex: 1; height: 30px; border: 1px solid transparent; border-radius: 8px; padding: 0 8px; font-size: 12.5px; background: transparent; }
.cd-title:focus { border-color: var(--brand); background: #fff; }
.cd-body { display: none; margin-top: 6px; }
.cd-row.is-train .cd-body { display: block; }
.cd-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ci-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #e6e9ef; border-radius: 999px; padding: 3px 6px 3px 10px; font-size: 12px; }
.ci-chip small { color: var(--ink-3); }
.ci-op { border: 0; background: transparent; cursor: pointer; font-size: 12px; color: var(--ink-3); padding: 2px 3px; }
.ci-op:hover { color: var(--brand); }
.ci-op.ci-x:hover { color: var(--danger); }
.cd-empty { font-size: 12px; color: var(--ink-3); }
.cd-addbtn { border: 1px dashed rgba(0,0,0,.2); background: transparent; border-radius: 8px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.cd-addbtn:hover { border-color: var(--brand); color: var(--brand); }
.link-item.picked { opacity: .45; }

/* ================= 教练管理（v21） ================= */
.coach-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.coach-avatar-preview {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none;
  background: #f1f3f7; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 12px; border: 1px solid rgba(0,0,0,.06);
}
.coach-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.coach-card {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.coach-card.off { opacity: .55; }
.coach-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.coach-ava-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffb27a, #ff5a1f); color: #fff; font-weight: 700; font-size: 20px;
}
.coach-info { flex: 1; min-width: 0; }
.coach-info b { font-size: 15px; }
.coach-offtag { font-style: normal; font-size: 11px; color: #b45309; background: #fef3c7; border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.coach-info small { display: block; color: var(--brand); font-size: 12px; margin-top: 3px; }
.coach-info p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coach-ops { flex: none; display: flex; gap: 6px; }
.coach-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 6px;
  border-radius: 99px; border: 1.5px solid #e3e7ee; background: #fff; cursor: pointer; font-size: 13px;
  transition: all .15s;
}
.coach-chip img, .coach-chip i {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #c3cad6;
}
.coach-chip.on { border-color: var(--brand); background: #fff3ec; color: var(--brand); font-weight: 600; }
.coach-none { color: var(--ink-3); font-size: 12.5px; }

/* ---------- v23：会员专享标签 + 赠课弹窗 ---------- */
.cc-tag-member {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  padding: 1px 8px; border-radius: 999px; font-style: normal;
  font-size: 11px; font-weight: 800;
  color: #b45309; background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid rgba(180, 83, 9, .22);
}
.gift-course-list { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; margin: 4px 0 8px; }
.gift-crow {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line, #e6e9ef); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.gift-crow:hover { border-color: #2f7bff; background: #f7faff; }
.gift-crow.owned { opacity: .55; cursor: not-allowed; background: #fafafa; }
.gift-crow input { margin-top: 3px; }
.gc-txt b { display: block; font-size: 13.5px; }
.gc-txt small { display: block; font-size: 11px; color: #8b93a3; margin-top: 2px; }

/* ---------- v24：备课打包（课程包） + 私教排课 ---------- */
.cat-card { background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-lg), var(--hl); }
.bundle-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin: 26px 0 12px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(135deg, #fffaf0, #fff3d6); border: 1px solid rgba(217, 119, 6, .18);
}
.bundle-title { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.bundle-sub { font-size: 12.5px; color: #92610a; margin: 0; max-width: 640px; line-height: 1.6; }
.gift-crow.bundle-grant { cursor: pointer; }
.gift-crow.bundle-grant:hover { border-color: #d97706; background: #fffbeb; }
.gift-crow.bundle-grant .btn-mini { border-color: #d97706; color: #d97706; font-weight: 700; }
.src-tag.ok { background: #e8f7ee; color: #0f7a45; }
.src-tag.live { background: #e3f7f0; color: #0f8f6f; }
.src-tag.warn { background: #fff7e0; color: #b45309; }
.src-tag.err { background: #fdecec; color: #c02929; }
.src-tag.dim2 { background: #f1f3f7; color: var(--ink-3); }

/* =====================================================
 * v26 短信通知栏目
 * ===================================================== */
.sms-steps {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.sms-steps span {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px 6px 7px; font-size: 12.5px; color: var(--ink-2);
}
.sms-steps i {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--brand);
}

/* v26.1 发送统计条 */
.sms-stats {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 16px;
}
.sms-stats .ss-item {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 96px; padding-right: 16px; border-right: 1px dashed var(--line);
}
.sms-stats .ss-item:last-of-type { border-right: none; padding-right: 0; }
.sms-stats .ss-item b { font-size: 21px; line-height: 1.2; color: var(--ink-1); }
.sms-stats .ss-item b.ok { color: #1a9e6c; }
.sms-stats .ss-item b.err { color: #e05555; }
.sms-stats .ss-item span { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.sms-stats .ss-note {
  flex: 1; min-width: 220px; align-self: center;
  font-size: 12px; line-height: 1.7; color: var(--ink-3);
  background: #f8fafc; border-radius: 10px; padding: 8px 12px;
}

.sms-cron {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  background: #f8fafc; border: 1px dashed var(--line); border-radius: 11px; padding: 9px 12px;
}
.sms-cron code {
  flex: 1; min-width: 0; font-size: 11.5px; color: #3b6fd4;
  word-break: break-all; line-height: 1.7;
  background: none; padding: 0;
}

.sms-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 22px 0 8px; flex-wrap: wrap;
}
.sms-sec-title { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.sms-test-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; flex-wrap: wrap; }
.sms-test-row input {
  width: 200px; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; outline: none; background: #fff;
}
.sms-test-row input:focus { border-color: var(--brand); }

.sms-tpl-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sms-tpl {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 17px 13px; box-shadow: var(--shadow);
  border-left: 3px solid #e3e7ef;
}
.sms-tpl.ready { border-left-color: var(--ok); }
.st-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-head b { font-size: 14.5px; font-weight: 800; }
.st-when { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.st-body {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 10px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
}
.st-body code {
  flex: 1; min-width: 0; font-size: 13px; line-height: 1.8; color: #1f2937;
  background: none; padding: 0; word-break: break-all;
  font-family: ui-monospace, "SF Mono", Consolas, "PingFang SC", monospace;
}
.st-body .btn-mini { flex: none; background: #fff; }
.st-vars { font-size: 11.5px; color: var(--ink-2); line-height: 1.8; margin-top: 8px; }
.st-sample { font-size: 11.5px; color: var(--ink-3); line-height: 1.8; margin-top: 2px; }
.st-row { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.st-row label { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.st-row input {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 13px; outline: none; background: #fafbfc;
}
.st-row input:focus { border-color: var(--brand); background: #fff; }

/* 排课表里的改签提示 */
.pt-resched-note {
  margin-top: 4px; font-size: 11px; font-weight: 700; color: #b45309;
  background: #fff7e0; border-radius: 6px; padding: 2px 7px; display: inline-block;
}
.coach-phone { display: block; font-size: 11.5px !important; color: #6b7280 !important; margin-top: 3px; }

/* v26 私教排课表：状态 / 操作列不换行，避免「待审/核」「改签」竖排 */
/* v27：私教排课表改用固定列宽，见文件末尾 .tbl-pt（不再强制 980px 横向滚动） */
#ptBody td:nth-child(2),
#ptBody td:nth-child(5),
#ptBody td:nth-child(7) { white-space: nowrap; }
#ptBody td:nth-child(5) .src-tag { display: inline-block; margin: 2px 0; }
#tab-sms .tbl { min-width: 760px; }

/* =====================================================
 * v27：用户管理 / 私教排课两张表重排
 * 问题：列太多被挤压 → 教练名每字一行、来源标签竖排、操作列被截断、横向滚动条
 * 做法：固定列宽 + 合并次要列 + 关键列 nowrap/省略号，表格不再横向滚
 * ===================================================== */
.tbl-user, .tbl-pt { min-width: 0 !important; table-layout: fixed; }
.tbl-user th, .tbl-pt th { padding: 12px 14px; }
.tbl-user td, .tbl-pt td { padding: 12px 14px; vertical-align: middle; }

/* ---------- 用户管理 ---------- */
.tbl-user .c-user { width: 190px; }
.tbl-user .c-contact { width: 236px; }
.tbl-user .c-time { width: 152px; }
.tbl-user .c-data { width: 118px; }
.tbl-user .c-ops { width: 168px; }
.tbl-user .u-txt { min-width: 0; }
.tbl-user .u-txt b {
  max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ct-main {
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbl-user .c-contact .wx-uid { margin-top: 6px; max-width: 100%; }
.tbl-user .c-contact .wx-uid b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-user .c-time small {
  display: block; font-size: 11.5px; color: var(--ink-2); white-space: nowrap;
  line-height: 1.7;
}
.tbl-user .c-data span {
  display: block; font-size: 12px; color: var(--ink-2); line-height: 1.8; white-space: nowrap;
}
.tbl-user .c-ops { white-space: nowrap; }
.tbl-user .c-ops .btn-mini { margin: 0 6px 0 0; }
.tbl-user .c-ops .btn-mini:last-child { margin-right: 0; }
.tbl-user .src-tag { flex: none; }

/* ---------- 私教排课 ---------- */
.tbl-pt .c-date { width: 118px; }
.tbl-pt .c-user { width: 104px; }
.tbl-pt .c-coach { width: 114px; }
.tbl-pt .c-slot { width: 136px; }
.tbl-pt .c-status { width: 112px; }
.tbl-pt .c-ops { width: 150px; }
.tbl-pt td small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.tbl-pt .c-date b { font-size: 13.5px; color: var(--ink); }
.tbl-pt .c-date small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-pt .c-user b {
  display: block; font-size: 13px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbl-pt .c-coach {
  color: var(--ink-2); font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbl-pt .c-slot b { font-size: 13px; white-space: nowrap; letter-spacing: .01em; }
.tbl-pt .c-slot small.resched {
  display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 6px;
  background: #fff7e6; color: #b07b12; font-size: 10.5px; font-weight: 600;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tbl-pt .c-status .src-tag { display: inline-block; margin-bottom: 2px; }
.tbl-pt .pt-sub-note { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.tbl-pt .pt-sub-note.ok { color: #1a9e6c; }
.tbl-pt .c-note { min-width: 0; }
.tbl-pt .c-note .note-line {
  display: block; font-size: 12px; color: var(--ink-2); line-height: 1.65;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tbl-pt .c-note .note-line.dim { color: var(--ink-3); }
.tbl-pt .c-ops { white-space: normal; }
/* 操作按钮竖排：一行一个，宽度占满列，短标签 + 全宽更整齐，也不会被表格边缘裁掉 */
.tbl-pt .c-ops .cc-btn {
  display: block; width: 100%; margin: 0 0 5px; padding: 5px 8px;
  font-size: 11.5px; text-align: center; line-height: 1.5; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.tbl-pt .c-ops .cc-btn:last-child { margin-bottom: 0; }
.tbl-pt tr.st-started { background: #f6fdfa; }
.tbl-pt tr.st-started td:first-child { box-shadow: inset 3px 0 0 #12b886; }

/* 二维码弹窗（v27） */
.qr-modal { width: 380px; max-width: 92vw; }
.qr-modal-sub { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin: 2px 0 14px; }
.qr-modal-box {
  position: relative; width: 244px; height: 244px; margin: 0 auto 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.qr-holder { width: 220px; height: 220px; }
.qr-holder img { width: 220px !important; height: 220px !important; display: block; }
.qr-holder-shade {
  position: absolute; inset: 12px; border-radius: 12px; background: rgba(255, 255, 255, .95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-align: center; gap: 4px;
}
.qr-holder-shade small { font-weight: 400; color: var(--ink-3); max-width: 180px; }
.qr-modal-meta { text-align: center; font-size: 12.5px; color: var(--ink-2); margin: 0 0 6px; }
.qr-link {
  display: flex; align-items: center; gap: 8px;
  border: 1px dashed #c9d6ee; background: #f5f8ff; border-radius: 10px;
  padding: 8px 12px; margin: 0 0 10px;
}
.qr-link .ql-text {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qr-link .ql-copy {
  flex: none; border: none; border-radius: 9px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #2e6bff, #5a8cff);
  transition: transform .12s, filter .15s;
}
.qr-link .ql-copy:hover { filter: brightness(1.06); }
.qr-link .ql-copy:active { transform: scale(.95); }
.qr-modal-wait { text-align: center; font-size: 12px; color: var(--ink-3); margin: 0 0 14px; }
.qr-modal-wait.done { color: #1a9e6c; font-weight: 700; }

/* ================= v24.7：日志抓取 ================= */
.logcap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.logcap-row .btn-mini { display: inline-flex; align-items: center; }
.logcap-row .btn-mini.hide { display: none; }
.logcap-state { font-size: 12.5px; color: #8a93a0; }
.logcap-state.on { color: #b45309; font-weight: 700; }
.logcap-state.ok { color: #0f7a45; font-weight: 700; }
.logcap-code { margin-top: 4px; }
.logcap-code input {
  width: 190px; height: 36px; border-radius: 10px; border: 1px solid #e3e7ee;
  background: #f7f8fa; padding: 0 12px; font-size: 14px; letter-spacing: .18em;
}
.logcap-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.lg-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: #f8f9fb; border: 1px solid #eef1f5; font-size: 12px; color: #5b6472;
}
.lg-row .lg-t { flex: none; width: 116px; color: #8a93a0; font-variant-numeric: tabular-nums; }
.lg-row .lg-s { flex: none; width: 58px; font-weight: 700; color: #3d4553; }
.lg-row .lg-w { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-row .lg-c { flex: none; font-family: ui-monospace, Menlo, Consolas, monospace; color: #b45309; font-weight: 700; }
.lg-row .lg-n { flex: none; color: #8a93a0; }
.lg-row a { flex: none; color: #2f6fd0; font-weight: 700; text-decoration: none; }
.lg-row.dim { opacity: .55; }

/* v24.7 日志抓取：输入框别被全局 width:100% 拉满 */
.set-card .logcap-code { flex-wrap: nowrap; }
.set-card .logcap-code input {
  flex: 0 0 200px; width: 200px; height: 38px; max-width: 200px;
}
.set-card .logcap-code .btn-mini { flex: none; height: 38px; padding: 0 16px; }

/* ================================================================
 * v31：会员 / 商城
 * ================================================================ */
.seg-vip { display:flex; gap:8px; background:#f1f5f9; padding:5px; border-radius:12px; margin:14px 0 16px; flex-wrap:wrap; }
.seg-vip .seg-btn { flex:1; min-width:96px; border:0; background:transparent; height:38px; border-radius:9px; font-size:14px; color:#475569; cursor:pointer; font-weight:600; }
.seg-vip .seg-btn.on { background:#fff; color:#1d4ed8; box-shadow:0 2px 8px rgba(15,23,42,.08); }
.vip-pane { animation: vipFade .22s ease; }
@keyframes vipFade { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform:none; } }

.vip-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
.vstat { background:#fff; border:1px solid #e8ecf3; border-radius:14px; padding:14px 16px; display:flex; flex-direction:column; gap:2px; position:relative; overflow:hidden; }
.vstat b { font-size:26px; line-height:1.1; color:#0f172a; }
.vstat span { font-size:12px; color:#64748b; }
.vstat.vip::after, .vstat.new::after, .vstat.code::after, .vstat.used::after {
  content:''; position:absolute; right:-16px; top:-16px; width:56px; height:56px; border-radius:50%; opacity:.12;
}
.vstat.vip::after { background:#f59e0b; }
.vstat.new::after { background:#2563eb; }
.vstat.code::after { background:#10b981; }
.vstat.used::after { background:#94a3b8; }
.vip-off { grid-column:1/-1; background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; border-radius:12px; padding:12px 14px; font-size:13px; }

.plan-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; margin-bottom:10px; }
.plan-card { background:linear-gradient(160deg,#1e293b,#0f172a); color:#fff; border-radius:16px; padding:16px; position:relative; overflow:hidden; }
.plan-card::after { content:''; position:absolute; width:140px; height:140px; right:-60px; bottom:-70px; border-radius:50%; background:radial-gradient(circle,rgba(245,158,11,.45),transparent 70%); }
.plan-card.off { background:#e2e8f0; color:#475569; }
.plan-card.off::after { display:none; }
.plan-top { display:flex; align-items:center; gap:8px; }
.plan-top b { font-size:16px; }
.plan-badge { background:#f59e0b; color:#3b2100; font-size:11px; padding:2px 8px; border-radius:999px; font-weight:700; }
.plan-badge.gray { background:#94a3b8; color:#fff; }
.plan-price { font-size:26px; font-weight:800; margin:10px 0 4px; letter-spacing:.5px; }
.plan-price s { font-size:13px; font-weight:500; opacity:.55; }
.plan-meta { font-size:12px; opacity:.78; min-height:34px; }
.plan-ops { display:flex; gap:8px; margin-top:10px; position:relative; z-index:1; }
.plan-card .btn-mini { background:rgba(255,255,255,.16); color:#fff; border:0; }
.plan-card .btn-mini.danger { background:rgba(248,113,113,.28); }

.vip-list { display:flex; flex-direction:column; gap:8px; }
.vip-row { display:grid; grid-template-columns:38px 1fr 150px 70px auto; gap:12px; align-items:center; background:#fff; border:1px solid #eaeef5; border-radius:12px; padding:10px 14px; }
.vip-ava { width:38px; height:38px; border-radius:50%; overflow:hidden; background:#e2e8f0; display:flex; align-items:center; justify-content:center; font-weight:700; color:#64748b; }
.vip-ava img { width:100%; height:100%; object-fit:cover; }
.vip-main b { display:block; font-size:14px; color:#0f172a; }
.vip-main span { font-size:12px; color:#94a3b8; }
.vip-meta b { display:block; font-size:13px; color:#1d4ed8; }
.vip-meta span { font-size:12px; color:#94a3b8; }
.vip-left { font-size:13px; font-weight:700; color:#0f172a; text-align:right; }
.vip-left.warn { color:#dc2626; }
.vip-ops { display:flex; gap:6px; }
.vip-ops .btn-mini { background:#f1f5f9; border:0; }
.vip-ops .btn-mini.danger { background:#fee2e2; color:#b91c1c; }

.gen-card { margin-bottom:18px; }
.gen-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.gen-foot { display:flex; gap:10px; margin-top:12px; align-items:center; }
.gen-foot .f-input { flex:1; }
.code-result { margin-top:14px; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px; padding:12px 14px; }
.gen-res-head { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#15803d; font-weight:600; margin-bottom:8px; }
.gen-codes { display:flex; flex-wrap:wrap; gap:8px; }
.gen-codes code { background:#fff; border:1px dashed #86efac; padding:4px 10px; border-radius:8px; font-size:13px; letter-spacing:1px; }

.code-list { display:flex; flex-direction:column; gap:6px; }
.code-row { display:grid; grid-template-columns:150px 1fr 78px 120px; gap:12px; align-items:center; background:#fff; border:1px solid #eef2f7; border-radius:10px; padding:9px 12px; }
.code-row code { font-size:13px; letter-spacing:2px; color:#0f172a; background:#f1f5f9; padding:4px 8px; border-radius:6px; text-align:center; }
.code-main b { display:block; font-size:13px; }
.code-main span { font-size:11.5px; color:#94a3b8; }
.code-ops { display:flex; gap:6px; justify-content:flex-end; }
.chip { display:inline-block; font-size:11.5px; padding:3px 9px; border-radius:999px; background:#eef2f7; color:#475569; font-weight:600; text-align:center; }
.chip.ok { background:#dcfce7; color:#15803d; }
.chip.warn { background:#fef3c7; color:#b45309; }
.chip.gray { background:#e2e8f0; color:#64748b; }

.scan-result { margin-top:14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:12px 14px; font-size:13px; line-height:1.7; }

.prod-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:14px; }
.prod-card { display:grid; grid-template-columns:74px 1fr; gap:12px 14px; background:#fff; border:1px solid #eaeef5; border-radius:14px; padding:12px; position:relative; }
.prod-cover { width:74px; height:74px; border-radius:12px; overflow:hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-size:26px; }
.prod-cover img { width:100%; height:100%; object-fit:cover; }
.prod-main b { display:block; font-size:14px; color:#0f172a; margin-bottom:4px; line-height:1.35; }
.prod-price { font-size:16px; font-weight:800; color:#dc2626; }
.prod-price i { font-style:normal; font-size:12px; color:#f59e0b; font-weight:600; margin-left:6px; }
.prod-stock { display:block; font-size:11.5px; color:#94a3b8; margin-top:2px; }
.prod-tags { display:flex; gap:5px; flex-wrap:wrap; margin-top:6px; }
.prod-ops { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:6px; margin:0 -2px -2px; padding-top:8px; border-top:1px dashed #eef2f7; }
.prod-ops .btn-mini { background:#f8fafc; border:1px solid #e8ecf3; font-size:11.5px; padding:0 10px; height:26px; }
.prod-ops .btn-mini.danger { color:#dc2626; border-color:#fde2e2; background:#fff7f7; }

.order-list { display:flex; flex-direction:column; gap:8px; }
.order-row { display:grid; grid-template-columns:52px 1fr 140px 78px auto; gap:12px; align-items:center; background:#fff; border:1px solid #eaeef5; border-radius:12px; padding:10px 12px; }
.order-cover { width:52px; height:52px; border-radius:10px; overflow:hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-size:20px; }
.order-cover img { width:100%; height:100%; object-fit:cover; }
.order-main b { display:block; font-size:13.5px; }
.order-main span { display:block; font-size:11.5px; color:#94a3b8; }
.order-side { text-align:right; }
.order-side b { display:block; font-size:15px; color:#0f172a; }
.order-side span { font-size:11.5px; color:#64748b; }
.order-side em { font-style:normal; display:inline-block; margin-top:3px; background:#eff6ff; color:#1d4ed8; font-size:11px; padding:1px 7px; border-radius:6px; }
.order-ops { display:flex; gap:6px; justify-content:flex-end; flex-wrap:wrap; }
.order-ops .btn-mini { background:#f1f5f9; border:0; }
.order-ops .btn-mini.danger { background:#fee2e2; color:#b91c1c; }

.pickup-row { display:flex; gap:10px; align-items:center; margin-top:12px; }
.pickup-input { flex:0 0 220px; font-size:20px; letter-spacing:6px; text-align:center; height:52px; }
.pickup-card .btn-primary { height:52px; padding:0 28px; }
.f-inline { width:220px !important; max-width:220px; display:inline-block; }
.select-sm { height:34px; font-size:13px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* v25：联系二维码预览用方形，圆形裁切会切掉定位角 */
#coachQrPreview { border-radius:12px; width:76px; height:76px; background:#fff; }
#coachQrPreview img { object-fit:contain; }
#scanCode { width: 100%; max-width: 640px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* v32：设置分组标题 / 动作赠送行 */
.set-sub {
  margin: 16px 0 6px; padding-top: 12px; border-top: 1px dashed #e6ebf3;
  font-size: 11.5px; font-weight: 700; color: #94a3b8; letter-spacing: .3px;
}
.gift-row { align-items: center; }
.chip.off { background: #f1f5f9; color: #94a3b8; }

#giftDays { width: 100%; }
#giftUser, #giftEx { width: 100%; }

/* =====================================================
   v26.3：表单控件统一（f-input / f-select / f-textarea 之前漏定义）
   —— 会员名单搜索、兑换码、扫码开通、动作赠送、商城订单、自提核销、短信页
   ===================================================== */
.f-input,
.f-select,
.f-textarea,
.set-card input[type=number],
.set-card input[type=date],
.set-card input[type=datetime-local],
.set-card select {
  height: 42px;
  padding: 0 13px;
  border: 1.5px solid #e5e9f2;
  border-radius: 11px;
  background: #fafbfd;
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
  -webkit-appearance: none;
  appearance: none;
}
.f-textarea,
.set-card textarea {
  height: auto;
  min-height: 96px;
  padding: 11px 13px;
  line-height: 1.7;
  resize: vertical;
}
.set-card select,
.f-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.f-input:hover,
.f-select:hover,
.f-textarea:hover { border-color: #d7deea; background: #fff; }
.f-input:focus,
.f-select:focus,
.f-textarea:focus,
.set-card input[type=number]:focus,
.set-card input[type=date]:focus,
.set-card select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .12);
}
.f-input::placeholder,
.f-textarea::placeholder { color: #b6bfcd; }
.f-input:disabled,
.f-select:disabled { background: #f3f5f9; color: #98a1b0; cursor: not-allowed; }
/* 行内小搜索框 */
.f-inline { width: 220px !important; max-width: 220px; display: inline-block; height: 38px; font-size: 13px; }
/* 日期控件图标留位 */
.set-card input[type=date] { padding-right: 8px; }
/* 自提码 / 核销码：大号等宽居中 */
.pickup-card .pickup-input,
.pickup-row .f-input {
  flex: 0 0 220px;
  height: 52px;
  font-size: 20px;
  letter-spacing: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pickup-card .btn-primary { height: 52px; padding: 0 26px; border-radius: 12px; }

/* 密码 / 只读提示行内标签统一 */
.f-label { font-size: 12.5px; font-weight: 700; color: #5b6472; }
.f-label .f-hint, .f-label .f-warn { font-weight: 500; }
.f-hint { color: #98a1b0; font-weight: 500; }
.f-warn { color: #d97706; font-weight: 600; }

/* =====================================================
   v26.3：系统设置 / 短信通知 —— 卡片与提示的视觉分层
   ===================================================== */
.set-grid { gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { .set-grid { grid-template-columns: 1fr; } }
.set-card {
  border-radius: 18px; border: 1px solid #eef1f6;
  box-shadow: 0 1px 2px rgba(16, 19, 24, .04);
  padding: 20px 22px 22px;
}
.set-head h3 { font-size: 15px; letter-spacing: -.01em; }
.set-head p { font-size: 12px; color: #8b94a3; margin-top: 5px; line-height: 1.65; }
/* 分组小标题：让一张卡里的事项不再糊成一片 */
.set-sub {
  margin: 20px 0 4px; padding-top: 14px; border-top: 1px dashed #e8edf4;
  font-size: 11px; font-weight: 800; color: #9aa4b2; letter-spacing: .6px;
  text-transform: uppercase;
}
.set-sub:first-child { margin-top: 4px; padding-top: 0; border-top: 0; }
/* 说明文字：统一成浅色提示块，和控件明确分开 */
.sc-hint {
  margin-top: 12px; padding: 9px 12px;
  background: #f7f9fc; border-radius: 9px; border-left: 3px solid #e2e8f2;
  font-size: 11.5px; color: #7c879a; line-height: 1.7;
}
.sc-hint b { color: #5b6472; }
.sc-hint code { background: #eef2f8; }
/* 开关行更紧凑、去掉厚重边框 */
.switch-row {
  margin-top: 10px; padding: 11px 14px; border-radius: 11px;
  background: #fbfcfe; border: 1px solid #eef2f7; font-size: 13px;
}
.switch-row span b { font-weight: 700; }
.switch-row + .switch-row { margin-top: 8px; }
/* 设置页里的生成卡 / 表单卡 */
.gen-card .set-h, .set-card .set-h { font-size: 14.5px; font-weight: 800; margin-bottom: 2px; }
.gen-grid { gap: 14px; }
.gen-grid .f-label { margin-top: 0; }
.gen-foot { gap: 12px; margin-top: 14px; }
.gen-foot .btn-primary { height: 42px; padding: 0 24px; border-radius: 11px; }
.set-hint, .form-hint { font-size: 11.5px; color: #8b94a3; line-height: 1.7; }

/* 面板头（会员名单 / 兑换码记录 / 赠送记录…）统一 */
.panel-head { margin: 20px 0 12px; gap: 10px; }
.panel-head b { font-size: 13.5px; font-weight: 800; }
.panel-head .head-actions { gap: 8px; }
.panel-head .btn-ghost.btn-sm { height: 38px; padding: 0 16px; border-radius: 10px; }
.head-actions .select-sm { height: 38px; border-radius: 10px; }

/* 短信页 */
.sms-steps { gap: 8px; }
.sms-steps span {
  padding: 8px 13px; border-radius: 999px; font-size: 11.5px;
  background: #fff; border: 1px solid #eef2f7;
}
.sms-steps span i { background: #fff1e8; color: #c2560c; }
.sms-stats { border-radius: 16px; border: 1px solid #eef1f6; }
.sms-test-row { gap: 12px; align-items: center; }
.sms-test-row .f-input, .sms-test-row input { height: 40px; border-radius: 10px; }
.sms-sec-head { margin: 26px 0 12px; }
.sms-sec-title { font-size: 15px; font-weight: 800; }
.sms-cron { background: #f7f9fc; border: 1px dashed #e2e8f2; border-radius: 10px; padding: 10px 12px; }

/* 生成类表单：三列两行，比挤成一排更易填 */
.gen-card .gen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1280px) { .gen-card .gen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gen-grid > div { display: flex; flex-direction: column; }
.gen-grid .f-label { margin: 0 0 6px; }

/* v26.3：设置页分段（隐藏当前分段之外的卡片） */
.seg { margin: 0 0 18px; }
#setGrid { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
#setGrid > .set-card { animation: fadeUp .2s ease both; }

/* v26.3：设置页分段条（沿用会员页 seg 的视觉，但按内容宽度排） */
#setSeg {
  display: flex; gap: 6px; flex-wrap: wrap; width: max-content; max-width: 100%;
  background: #f1f5f9; padding: 5px; border-radius: 13px; margin: 16px 0 20px;
}
#setSeg .seg-btn {
  border: 0; background: transparent; height: 36px; padding: 0 16px;
  border-radius: 9px; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer;
  transition: background .16s, color .16s;
}
#setSeg .seg-btn:hover { color: #1e293b; }
#setSeg .seg-btn.on { background: #fff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }

/* v26.3：设置/短信里的「输入 + 单位 + 按钮」一行组合 */
.inline-set { display: flex; align-items: center; gap: 10px; }
.inline-set .f-input { width: 120px; text-align: center; font-weight: 700; font-size: 15px; }
.inline-set .inline-unit { font-size: 13px; color: #64748b; margin-right: 2px; }
.inline-set .btn-ghost { height: 40px; padding: 0 16px; border-radius: 10px; }

/* v26.3：部署授权页（防转卖） */
.license-mask {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 700px at 50% -10%, #1e3a8a22, transparent), #f1f5f9;
  padding: 20px; overflow: auto;
}
.license-mask.hide { display: none; }
.license-card {
  width: 100%; max-width: 520px; background: #fff; border-radius: 20px; padding: 34px 32px 26px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16); border: 1px solid #e2e8f0;
}
.license-card .lc-badge {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff); border: 1px solid #c7d2fe;
}
.license-card h2 { text-align: center; font-size: 20px; font-weight: 800; color: #1e293b; margin: 0 0 8px; }
.license-card .lc-sub { font-size: 13px; color: #64748b; line-height: 1.7; margin: 0 0 18px; text-align: center; }
.license-card .lc-machine {
  display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px dashed #cbd5e1;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.license-card .lc-machine span { font-size: 12px; color: #64748b; flex: none; }
.license-card .lc-machine b { font-size: 19px; font-weight: 800; color: #1d4ed8; letter-spacing: 3px; flex: 1; }
.license-card .lc-machine .lc-copy {
  flex: none; border: 0; background: #1d4ed8; color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 9px; cursor: pointer;
}
.license-card .lc-machine .lc-copy:active { transform: scale(.96); }
.license-card .lc-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 18px;
  background: #f8fafc; border-radius: 12px; padding: 12px 14px;
}
.license-card .lc-info div { display: flex; gap: 8px; min-width: 0; font-size: 12px; }
.license-card .lc-info span { color: #94a3b8; flex: none; }
.license-card .lc-info b { color: #334155; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-card .lc-steps { display: flex; flex-direction: column; gap: 10px; }
.license-card .lc-steps .btn-primary { width: 100%; height: 44px; border-radius: 12px; font-size: 14px; }
.license-card .lc-code-row { display: flex; gap: 10px; }
.license-card .lc-code-row .f-input { flex: 1; height: 44px; font-size: 16px; letter-spacing: 6px; text-align: center; font-weight: 700; }
.license-card .lc-code-row .btn-primary { width: 110px; flex: none; height: 44px; border-radius: 12px; }
.license-card .lc-hint { margin: 14px 0 0; font-size: 11.5px; color: #94a3b8; text-align: center; line-height: 1.6; }

/* v26.4：反馈附带运行日志 */
.fb-ops { margin-top: 8px; display: flex; gap: 8px; }
.fb-log {
  margin: 8px 0 0; padding: 10px 12px; background: #0f172a; color: #a5f3fc;
  border-radius: 10px; font-size: 11px; line-height: 1.6; white-space: pre-wrap;
  word-break: break-all; max-height: 240px; overflow: auto; font-family: Consolas, monospace;
}
