/* ============================================================
 * Chenchen的cs小屋 —— 全站样式（手机 / 平板 / 电脑自适应）
 * 配色走 CS2 的深色 + 橙色风格
 * ============================================================ */

:root {
  --bg: #0b0d10;
  --bg2: #10131a;
  --card: #151a22;
  --card2: #1b2129;
  --line: #262f3b;
  --line2: #333f4e;
  --text: #e9eef4;
  --dim: #96a2b1;
  --dim2: #6d7a89;
  --accent: #ff8a1e;
  --accent2: #ffb545;
  --prime: #f5a623;
  --green: #35d07f;
  --red: #ff5d5d;
  --blue: #4aa8ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --max: 1180px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(255, 138, 30, .10), transparent 60%),
    radial-gradient(900px 460px at 92% 0%, rgba(74, 168, 255, .08), transparent 62%),
    var(--bg);
  color: var(--text);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
        "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.3; font-weight: 700; }
h1 { font-size: 30px; letter-spacing: .4px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.muted { color: var(--dim); }
.dim2 { color: var(--dim2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.break { word-break: break-all; }

/* ---------------- 顶栏 ---------------- */

.hd {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 13, 16, .86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: var(--max); margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 14px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent), #ff5f1f);
  display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 4px 14px rgba(255, 138, 30, .35);
  color: #14161a;
}
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt b { font-size: 15px; }
.logo-txt span { font-size: 11px; color: var(--dim2); font-weight: 500; }

.nav { display: flex; gap: 4px; margin-left: 10px; flex: 1; }
.nav a {
  padding: 7px 12px; border-radius: 9px; color: var(--dim);
  font-size: 14px; font-weight: 600; transition: .18s;
}
.nav a:hover { background: var(--card); color: var(--text); }
.nav a.on { background: rgba(255, 138, 30, .13); color: var(--accent2); }

.hd-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.burger {
  display: none; width: 40px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 17px; cursor: pointer;
}
.drawer {
  display: none; border-top: 1px solid var(--line);
  background: var(--bg2); padding: 8px 18px 14px;
}
.drawer a {
  display: block; padding: 11px 12px; border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: 15px;
}
.drawer a:hover { background: var(--card); }
.drawer.open { display: block; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: .18s; font-family: inherit; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6a13);
  border-color: transparent; color: #17191d;
  box-shadow: 0 6px 18px rgba(255, 138, 30, .28);
}
.btn-primary:hover { color: #17191d; filter: brightness(1.07); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255, 93, 93, .5); color: #ff9b9b; }
.btn-danger:hover { background: rgba(255, 93, 93, .12); border-color: var(--red); color: #ffc0c0; }
.btn-ok { border-color: rgba(53, 208, 127, .5); color: #8bf0bb; }
.btn-ok:hover { background: rgba(53, 208, 127, .12); color: #b6ffd8; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- 卡片 / 网格 ---------------- */

.card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card-pad0 { padding: 0; overflow: hidden; }
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-hd h2, .card-hd h3 { margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

/* ---------------- 徽标 / 价格 ---------------- */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 700; border: 1px solid var(--line2); color: var(--dim);
  background: rgba(255, 255, 255, .03); white-space: nowrap;
}
.badge-prime { color: #ffd489; border-color: rgba(245, 166, 35, .45); background: rgba(245, 166, 35, .13); }
.badge-free { color: #9fd0ff; border-color: rgba(74, 168, 255, .4); background: rgba(74, 168, 255, .12); }
.badge-ok { color: #8bf0bb; border-color: rgba(53, 208, 127, .45); background: rgba(53, 208, 127, .12); }
.badge-warn { color: #ffd489; border-color: rgba(255, 181, 69, .45); background: rgba(255, 181, 69, .12); }
.badge-danger { color: #ffaaaa; border-color: rgba(255, 93, 93, .45); background: rgba(255, 93, 93, .12); }
.badge-mute { color: var(--dim2); }

.price { color: var(--accent2); font-weight: 800; font-size: 24px; letter-spacing: .5px; }
.price i { font-size: 14px; font-style: normal; margin-right: 2px; }
.price-old { color: var(--dim2); text-decoration: line-through; font-size: 13px; margin-left: 6px; font-weight: 500; }

/* ---------------- 首页 Hero ---------------- */

.hero { padding: 34px 0 10px; }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 88% 10%, rgba(255, 138, 30, .18), transparent 60%),
    linear-gradient(160deg, #171d26, #10141a);
  padding: 34px 30px;
}
.hero-card h1 { font-size: 34px; margin-bottom: 10px; }
.hero-card h1 em { font-style: normal; color: var(--accent2); }
.hero-sub { color: var(--dim); font-size: 15px; max-width: 620px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stat {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.stat b { display: block; font-size: 22px; color: var(--text); }
.stat span { font-size: 12px; color: var(--dim2); }

.notice-bar {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid rgba(255, 181, 69, .3); background: rgba(255, 181, 69, .07);
  border-radius: 12px; padding: 11px 14px; font-size: 13.5px; color: #ffdca6;
  margin-bottom: 18px;
}

/* ---------------- 商品卡 ---------------- */

.pcard {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: .2s; position: relative;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 16px 36px rgba(0, 0, 0, .5); }
.pcard-thumb {
  height: 150px; position: relative;
  background: linear-gradient(135deg, #1d242e, #141920);
  display: grid; place-items: center; font-size: 42px; color: #2b3542;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.pcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 90%; }
.pcard-flag {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #ffd489; border: 1px solid rgba(255, 181, 69, .4);
}
.pcard-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.pcard-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-foot {
  margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; padding-top: 6px;
}
.pcard-sold { opacity: .62; }
.pcard-sold .pcard-thumb::after {
  content: '已售罄'; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8, 10, 13, .68); color: #ff9b9b; font-weight: 800; font-size: 15px;
}

/* ---------------- 表单 ---------------- */

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line2); background: #0f1319; color: var(--text);
  font-size: 14.5px; font-family: inherit; transition: .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 30, .13);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input[type=file] { padding: 9px; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: -2px; }
.hint { font-size: 12px; color: var(--dim2); margin-top: 5px; }
.check-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--dim); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--dim); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { background: rgba(255, 138, 30, .14); border-color: rgba(255, 138, 30, .5); color: var(--accent2); }

/* ---------------- 表格（手机上自动变成卡片） ---------------- */

.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tb th, table.tb td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tb th { color: var(--dim2); font-size: 12.5px; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .02); }
table.tb tr:last-child td { border-bottom: none; }
table.tb tr:hover td { background: rgba(255, 255, 255, .02); }

/* ---------------- 流程步骤 ---------------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; position: relative;
}
.step-num {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 138, 30, .15); color: var(--accent2); font-weight: 800; margin-bottom: 10px;
}
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--dim); font-size: 13.5px; }

/* ---------------- 论坛 ---------------- */

.cat-card {
  display: flex; gap: 13px; align-items: center; padding: 15px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line); border-radius: var(--radius); transition: .18s;
}
.cat-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.cat-icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; background: rgba(255, 138, 30, .1); border: 1px solid var(--line);
}
.cat-card h3 { margin: 0 0 3px; font-size: 15px; }
.cat-card p { margin: 0; font-size: 12.5px; color: var(--dim2); }
.cat-count { text-align: center; flex: none; }
.cat-count b { display: block; font-size: 17px; color: var(--text); }
.cat-count span { font-size: 11px; color: var(--dim2); }

.thread-row {
  display: flex; gap: 13px; padding: 15px 16px; border-bottom: 1px solid var(--line);
  transition: .15s;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: rgba(255, 255, 255, .022); }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #14161a;
  background: linear-gradient(135deg, #5a6472, #3d4550);
}
.avatar.admin { background: linear-gradient(135deg, var(--accent), #ff5f1f); }
.avatar.a1 { background: linear-gradient(135deg, #4aa8ff, #2f6fd0); }
.avatar.a2 { background: linear-gradient(135deg, #35d07f, #1f9b5c); }
.avatar.a3 { background: linear-gradient(135deg, #c07bff, #8a45d0); }
.thread-main { min-width: 0; flex: 1; }
.thread-title { font-size: 15px; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; word-break: break-word; }
.thread-title:hover { color: var(--accent2); }
.thread-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--dim2); }
.thread-side { text-align: center; flex: none; min-width: 56px; }
.thread-side b { display: block; font-size: 16px; }
.thread-side span { font-size: 11px; color: var(--dim2); }

.post-body { font-size: 15.5px; line-height: 1.85; word-break: break-word; }
.reply {
  display: flex; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line);
}
.reply:last-child { border-bottom: none; }
.reply.admin-reply { background: rgba(255, 138, 30, .05); }
.reply-hd { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 5px; }
.reply-name { font-weight: 700; font-size: 14px; }
.reply-actions { display: flex; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--dim2); }
.reply-actions button {
  background: none; border: none; color: var(--dim2); cursor: pointer;
  font-size: 12.5px; font-family: inherit; padding: 0;
}
.reply-actions button:hover { color: var(--accent2); }
.reply-actions button.on { color: var(--accent2); font-weight: 700; }

.floor { font-size: 11.5px; color: var(--dim2); margin-left: auto; }

/* ---------------- 图片预览 / 附件 ---------------- */

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.img-grid img { border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.thumb-item { position: relative; }
.thumb-del {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0, 0, 0, .72); color: #fff; border: 1px solid var(--line2);
  cursor: pointer; font-size: 13px; line-height: 1;
}
.drop {
  border: 1.5px dashed var(--line2); border-radius: 12px; padding: 20px;
  text-align: center; color: var(--dim2); font-size: 13.5px; cursor: pointer; transition: .18s;
}
.drop:hover { border-color: var(--accent); color: var(--accent2); background: rgba(255, 138, 30, .05); }

/* ---------------- 订单时间线 ---------------- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 14px; font-size: 13.5px; color: var(--dim); }
.timeline li::before {
  content: ''; position: absolute; left: -23px; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 30, .16);
}

/* ---------------- 提示条 / 吐司 ---------------- */

.toast-box { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #1d232c; border: 1px solid var(--line2); color: var(--text);
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); animation: toastIn .22s ease; max-width: 90vw;
}
.toast.ok { border-color: rgba(53, 208, 127, .55); color: #b6ffd8; }
.toast.err { border-color: rgba(255, 93, 93, .55); color: #ffc0c0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty {
  text-align: center; padding: 52px 20px; color: var(--dim2);
}
.empty-ico { font-size: 44px; margin-bottom: 10px; opacity: .5; }

.loading { text-align: center; padding: 40px; color: var(--dim2); }
.spin {
  width: 22px; height: 22px; margin: 0 auto 10px; border-radius: 50%;
  border: 2.5px solid var(--line2); border-top-color: var(--accent); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 弹窗 ---------------- */

.modal {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(5, 7, 9, .72); backdrop-filter: blur(4px);
  padding: 20px; overflow-y: auto;
}
.modal.open { display: block; }
.modal-card {
  max-width: 460px; margin: 8vh auto; background: var(--card);
  border: 1px solid var(--line2); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow); animation: toastIn .2s ease;
}
.modal-img { max-width: 92vw; max-height: 86vh; margin: 6vh auto; border-radius: 12px; border: 1px solid var(--line2); }

/* ---------------- 后台标签页 ---------------- */

.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tab {
  padding: 11px 16px; border: none; background: none; color: var(--dim);
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent2); border-bottom-color: var(--accent); }
.pane { display: none; padding-top: 18px; }
.pane.on { display: block; }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--dim2); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------------- 页脚 ---------------- */

.foot {
  margin-top: 48px; border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .25); padding: 26px 0 34px;
}
.foot-in { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.foot a { color: var(--dim); font-size: 13.5px; }
.foot a:hover { color: var(--accent2); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- 移动端适配 ---------------- */

@media (max-width: 980px) {
  .grid-side { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { font-size: 14.5px; }
  .nav { display: none; }
  .burger { display: block; }
  .hd-right .btn span.lbl { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { padding: 24px 18px; border-radius: 16px; }
  .hero-card h1 { font-size: 24px; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
  .wrap { padding: 0 14px; }
  .card { padding: 15px; }
  .kv { grid-template-columns: 84px 1fr; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-txt span { display: none; }
  .pcard-thumb { height: 132px; }
  .thread-row { padding: 13px 12px; gap: 10px; }
  .avatar { width: 34px; height: 34px; font-size: 14px; }
  .table-wrap { overflow: visible; }
  /* 表格在手机上一行一张卡片 */
  table.tb, table.tb tbody, table.tb tr, table.tb td { display: block; width: 100%; }
  table.tb thead { display: none; }
  table.tb tr {
    border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 10px; padding: 6px 10px; background: rgba(255, 255, 255, .02);
  }
  table.tb td { border: none; padding: 6px 0; display: flex; gap: 10px; align-items: center; }
  table.tb td::before {
    content: attr(data-label); flex: none; width: 84px;
    color: var(--dim2); font-size: 12px; font-weight: 700;
  }
  .modal-card { margin: 4vh auto; padding: 18px; }
  .btn { padding: 9px 15px; font-size: 13.5px; }
  .btn-lg { padding: 12px 20px; font-size: 15px; }
}

@media print { .hd, .foot, .btn { display: none !important; } }

@media (max-width: 700px) { .hide-mobile { display: none !important; } }
