/* ===== 古茗分销登记系统 · 样式 ===== */
:root {
  --g900: #07382E;
  --g800: #0A4A3A;
  --g700: #0C6047;
  --g600: #11795A;
  --g500: #16A075;
  --g300: #7FD3B4;
  --g100: #E6F5EE;
  --gold: #C99A3F;
  --gold-l: #F6EBD3;
  --cream: #F7F4EC;
  --ink: #14231D;
  --ink2: #3D544B;
  --muted: #83978E;
  --line: #E9E4D8;
  --white: #fff;
  --red: #C9453B;
  --amber: #B8791E;
  --blue: #2F6BB5;
  --r: 16px;
  --sh: 0 6px 20px rgba(7, 56, 46, .07);
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #E7E1D4;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--g600); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== 外壳 ===== */
.app {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, .18);
}

@media (min-width: 480px) {
  body { display: flex; align-items: center; justify-content: center; padding: 18px; }
  .app { height: min(900px, calc(100dvh - 36px)); border-radius: 26px; }
}

.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.screen::-webkit-scrollbar { width: 0; }

.page { display: none; padding: 16px 16px 28px; animation: fade .22s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== 顶部栏 ===== */
.appbar {
  flex: none;
  background: linear-gradient(135deg, var(--g800), var(--g600) 60%, var(--g500));
  color: #fff;
  padding: 14px 18px 16px;
  position: relative;
  overflow: hidden;
}
.appbar::after {
  content: '';
  position: absolute;
  right: -40px; top: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.appbar h1 { font-size: 17px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.appbar p { font-size: 11.5px; opacity: .82; margin-top: 3px; }
.appbar .who {
  position: absolute; right: 16px; top: 16px;
  font-size: 11px; background: rgba(255, 255, 255, .18);
  padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px);
}

/* ===== 底部导航 ===== */
.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 0; color: var(--muted); font-size: 10.5px; transition: .18s;
}
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--g600); font-weight: 600; }
.tab.active svg { stroke: var(--g600); }

/* ===== 通用组件 ===== */
.card {
  background: #fff;
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--sh);
  margin-bottom: 12px;
  border: 1px solid rgba(233, 228, 216, .8);
}
.card-title {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.card-title .sub { font-weight: 400; font-size: 11px; color: var(--muted); }

.page-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 12px; }
.page-head h2 { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.page-head .chip {
  font-size: 10.5px; color: var(--g700); background: var(--g100);
  padding: 4px 9px; border-radius: 20px; font-weight: 600;
}

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-bottom: 7px;
}
.req { color: var(--red); font-weight: 700; }
.hint-inline { font-weight: 400; font-size: 10.5px; color: var(--muted); }

.input, select.input, textarea.input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: #FBFAF6;
  font-size: 14.5px;
  transition: .18s;
  appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2383978E' stroke-width='2.2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 17px;
  padding-right: 34px;
}
textarea.input { height: auto; min-height: 74px; padding: 11px 13px; resize: none; line-height: 1.5; }
.input:focus { border-color: var(--g500); background: #fff; box-shadow: 0 0 0 3.5px rgba(22, 160, 117, .1); }
.input::placeholder { color: #AEBDB6; }
.input:disabled { background: #F1EFE8; color: var(--muted); }

/* 分享链接 / 话术 */
.share-row { display: flex; gap: 8px; margin-top: 12px; }
.share-msg {
  height: auto; min-height: 104px; margin-top: 10px;
  padding: 10px 12px; line-height: 1.65; font-size: 12.5px;
  resize: vertical; white-space: pre-wrap;
}

.err { color: var(--red); font-size: 11.5px; margin-top: 6px; display: none; }
.err.show { display: block; }

.btn {
  width: 100%; height: 48px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: .4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: .16s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(135deg, var(--g700), var(--g500)); color: #fff; box-shadow: 0 6px 18px rgba(17, 121, 90, .28); }
.btn-primary:disabled { background: #C8D5CE; box-shadow: none; color: #fff; }
.btn-ghost { background: var(--g100); color: var(--g700); }
.btn-line { background: #fff; border: 1.5px solid var(--line); color: var(--ink2); }
.btn-gold { background: linear-gradient(135deg, #D8AC55, var(--gold)); color: #fff; box-shadow: 0 6px 18px rgba(201, 154, 63, .3); }
.btn-sm { height: 36px; font-size: 12.5px; border-radius: 9px; width: auto; padding: 0 14px; }
.btn-row { display: flex; gap: 10px; }

/* 分段控件 */
.seg {
  display: flex; background: #EDE9DE; border-radius: 11px; padding: 3px;
  margin-bottom: 14px; gap: 3px;
}
.seg-item {
  flex: 1; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: .18s;
}
.seg-item.active { background: #fff; color: var(--g700); box-shadow: 0 2px 8px rgba(0, 0, 0, .07); }

/* 状态徽章 */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  white-space: nowrap;
}
.badge.pending { background: #FBF3E2; color: var(--amber); }
.badge.valid { background: var(--g100); color: var(--g700); }
.badge.invalid { background: #FBEBE9; color: var(--red); }
.badge.dispute { background: #EAF1FB; color: var(--blue); }
.badge.paid { background: var(--g100); color: var(--g700); }
.badge.applying { background: #FBF3E2; color: var(--amber); }

/* 列表卡 */
.rec {
  background: #fff; border-radius: 13px; padding: 13px 14px;
  border: 1px solid rgba(233, 228, 216, .9);
  margin-bottom: 9px; box-shadow: 0 2px 10px rgba(7, 56, 46, .04);
}
.rec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rec-phone { font-size: 15.5px; font-weight: 700; letter-spacing: .6px; font-variant-numeric: tabular-nums; }
.rec-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.rec-meta b { color: var(--ink2); font-weight: 600; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rec-note { font-size: 11px; color: var(--muted); flex: 1; margin-right: 8px; line-height: 1.5; }
.rec-note.warn { color: var(--red); }

/* 空状态 */
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .ico { font-size: 34px; opacity: .5; margin-bottom: 10px; }
.empty p { font-size: 12.5px; }

/* ===== 登录 ===== */
.login {
  position: absolute; inset: 0; z-index: 50;
  background: var(--cream);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.login-page { padding: 0; }
.login-hero {
  flex: none;
  padding: 38px 24px 52px; color: #fff; text-align: center;
  background: linear-gradient(160deg, var(--g800) 0%, var(--g700) 55%, var(--g600) 100%);
  border-radius: 0 0 26px 26px;
  position: relative; overflow: hidden;
}
.login-hero::after {
  content: ''; position: absolute; right: -50px; top: -70px;
  width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.logo-mark {
  width: 62px; height: 62px; margin: 0 auto 13px;
  border-radius: 18px; background: #fff;
  color: var(--g700); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 1px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  position: relative; z-index: 2;
}
.login-hero h1 { font-size: 21px; font-weight: 800; letter-spacing: 1px; position: relative; z-index: 2; }
.login-hero p { font-size: 12px; opacity: .78; margin-top: 6px; letter-spacing: .5px; position: relative; z-index: 2; }

.login-body { padding: 0 16px 30px; margin-top: -30px; flex: 1; position: relative; z-index: 3; }
.lstep {
  display: none;
  background: #fff; border-radius: 18px; padding: 18px 16px;
  box-shadow: 0 8px 28px rgba(7, 56, 46, .1);
  border: 1px solid rgba(233, 228, 216, .9);
}
.lstep.active { display: block; animation: fade .25s ease; }

.step-line { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.step-dot { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.step-dot.on { background: var(--g500); }

.login-tip {
  font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.6;
}
.link-text { font-size: 12px; color: var(--g600); font-weight: 600; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.check-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
.check-line input { width: 15px; height: 15px; accent-color: var(--g600); }

.demo-hint {
  background: var(--gold-l); border: 1px solid #EBDCBB;
  border-radius: 10px; padding: 9px 12px; font-size: 11px; color: #8A6520;
  line-height: 1.65; margin-top: 14px;
}

/* 验证码 */
.code-row { display: flex; gap: 9px; }
.code-row .input { flex: 1; }
.code-btn {
  flex: none; width: 104px; height: 46px; border-radius: 11px;
  background: var(--g100); color: var(--g700); font-size: 12.5px; font-weight: 700;
}
.code-btn:disabled { background: #EFEDE6; color: var(--muted); }

/* 短信备用通道（首次开通 / 忘记密码时才出现） */
.otpbox {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed rgba(12, 96, 71, .18);
  animation: fade .25s ease;
}
.otp-tip {
  font-size: 11.5px; line-height: 1.65; color: var(--g700);
  background: var(--g100); border-radius: 10px;
  padding: 9px 11px; margin-bottom: 10px;
}
.otpbox .code-row { margin-bottom: 10px; }

/* ===== 登记页 ===== */
.result-card {
  background: linear-gradient(135deg, var(--g700), var(--g500));
  border-radius: 14px; padding: 15px 16px; color: #fff; margin-bottom: 12px;
  display: none; box-shadow: 0 8px 22px rgba(17, 121, 90, .25);
}
.result-card.show { display: block; animation: fade .25s ease; }
.result-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.result-card p { font-size: 11.5px; opacity: .86; line-height: 1.6; }
.result-card .acts { margin-top: 11px; display: flex; gap: 8px; }
.result-card .acts button {
  flex: 1; height: 34px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
}
.result-card .acts button.solid { background: #fff; color: var(--g700); border-color: #fff; }

.collapse-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink2); font-weight: 600;
  padding: 10px 0; cursor: pointer; user-select: none;
}
.collapse-head .arrow { font-size: 10px; color: var(--muted); transition: .2s; }
.collapse-head.open .arrow { transform: rotate(180deg); }
.collapse-body { display: none; padding-top: 4px; }
.collapse-body.open { display: block; }

/* 晒单图 */
.poster-wrap {
  background: #EDE9DE; border-radius: 14px; padding: 14px;
  display: flex; justify-content: center; margin-bottom: 12px;
}
#posterCanvas {
  width: 100%; max-width: 300px; height: auto; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(7, 56, 46, .18);
}
.poster-hint { text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ===== 统计 ===== */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px;
}
.stat {
  background: #fff; border-radius: 12px; padding: 13px 8px; text-align: center;
  border: 1px solid rgba(233, 228, 216, .9); box-shadow: 0 2px 8px rgba(7, 56, 46, .04);
}
.stat .n { font-size: 21px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.stat.pending .n { color: var(--amber); }
.stat.valid .n { color: var(--g600); }
.stat.invalid .n { color: var(--red); }
.stat.dispute .n { color: var(--blue); }
.stat.applying .n { color: var(--amber); }
.stat.paid .n { color: var(--g700); }
.stat.total .n { color: var(--ink); }

.money-card {
  background: linear-gradient(135deg, var(--g800), var(--g600));
  border-radius: 15px; padding: 17px; color: #fff; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.money-card::after {
  content: ''; position: absolute; right: -30px; bottom: -50px;
  width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.money-card .lb { font-size: 11px; opacity: .8; }
.money-card .big { font-size: 30px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -.5px; }
.money-card .big small { font-size: 15px; font-weight: 600; margin-right: 2px; }
.money-card .tip { font-size: 10.5px; opacity: .75; }
.money-card .btn { margin-top: 13px; height: 40px; font-size: 13.5px; background: #fff; color: var(--g700); box-shadow: none; position: relative; z-index: 2; }
.money-card .btn:disabled { background: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .75); }

.note { font-size: 11px; color: var(--muted); line-height: 1.6; display: flex; gap: 5px; }

/* ===== 我的 ===== */
.profile-head {
  display: flex; align-items: center; gap: 13px; margin-bottom: 14px;
}
.avatar {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--g700), var(--g500));
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(17, 121, 90, .28);
}
.profile-head .n { font-size: 17px; font-weight: 800; }
.profile-head .m { font-size: 12px; color: var(--muted); margin-top: 3px; }

.acc { border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: none; }

.qr-box {
  display: flex; gap: 14px; align-items: center;
}
.qr-upload {
  width: 96px; height: 96px; border-radius: 12px;
  border: 1.5px dashed #C9D5CF; background: #FBFAF6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 10px; flex: none; overflow: hidden;
}
.qr-upload img { width: 100%; height: 100%; object-fit: cover; }
.qr-info { font-size: 11.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.qr-info b { color: var(--ink2); }

/* 弹窗 */
.modal {
  position: absolute; inset: 0; z-index: 90; display: none;
  background: rgba(10, 30, 24, .48); backdrop-filter: blur(2px);
  align-items: flex-end;
}
.modal.show { display: flex; }
.modal-box {
  width: 100%; background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 88%; overflow-y: auto;
  animation: slideUp .26s cubic-bezier(.22, 1, .36, 1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.modal-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.modal-close { position: absolute; }

/* 时间线 */
.timeline { margin: 4px 0 2px; }
.tl-item { display: flex; gap: 10px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 5px; top: 14px; bottom: 0;
  width: 1.5px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--g500); flex: none; margin-top: 3px; box-shadow: 0 0 0 3px var(--g100); }
.tl-dot.gray { background: #C6D2CC; box-shadow: 0 0 0 3px #F1EFE8; }
.tl-body .t1 { font-size: 12.5px; font-weight: 600; }
.tl-body .t2 { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.55; }

.thumbs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.thumb { width: 62px; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .del {
  position: absolute; top: 2px; right: 2px; width: 17px; height: 17px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.add-img {
  width: 62px; height: 62px; border-radius: 8px; border: 1.5px dashed #C9D5CF;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 20px;
}

/* toast */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(20, 35, 29, .92); color: #fff; padding: 12px 20px;
  border-radius: 12px; font-size: 13px; z-index: 200; opacity: 0;
  pointer-events: none; transition: .22s; max-width: 78%; text-align: center; line-height: 1.5;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 月度选择 */
.month-bar { display: flex; gap: 9px; margin-bottom: 12px; }
.month-bar .input { height: 42px; font-size: 13.5px; }

/* 说明块 */
.desc-box {
  background: #FBFAF6; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font-size: 11.5px; color: var(--ink2); line-height: 1.7;
}
.desc-box b { color: var(--g700); }

.divider { height: 1px; background: var(--line); margin: 13px 0; }

/* ===== 管理端 ===== */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 0 0 40px; }
.admin-top {
  background: linear-gradient(135deg, var(--g800), var(--g600));
  color: #fff; padding: 18px 22px; border-radius: 0 0 18px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.admin-top h1 { font-size: 18px; font-weight: 800; }
.admin-top .s { font-size: 11.5px; opacity: .8; margin-top: 3px; }
.admin-body { padding: 16px 18px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 11px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 13px; padding: 14px 15px; border: 1px solid var(--line); }
.kpi .n { font-size: 22px; font-weight: 800; }
.kpi .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.panel { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--line); margin-bottom: 16px; }
.panel h3 { font-size: 14px; font-weight: 800; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.filters .input { height: 38px; width: auto; min-width: 130px; font-size: 12.5px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tb th {
  text-align: left; font-size: 11px; color: var(--muted); font-weight: 600;
  padding: 8px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFAF6;
}
table.tb td { padding: 9px; border-bottom: 1px solid #F3F0E8; vertical-align: middle; }
table.tb tr:hover td { background: #FCFBF7; }
.tb-wrap { overflow-x: auto; }
.mini-btn {
  font-size: 11px; padding: 5px 9px; border-radius: 7px; font-weight: 600;
  background: var(--g100); color: var(--g700); white-space: nowrap;
}
.mini-btn.danger { background: #FBEBE9; color: var(--red); }
.mini-btn.plain { background: #F1EFE8; color: var(--ink2); }

/* ===== 大图查看 / 晒单图预览 ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(8, 16, 13, .94);
  display: none; align-items: center; justify-content: center;
  padding: 18px; z-index: 300; -webkit-overflow-scrolling: touch;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 100%; max-height: calc(100% - 64px); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); -webkit-touch-callout: default;
  user-select: auto; -webkit-user-select: auto;
}
.lb-tip {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(12, 96, 71, .97); color: #fff;
  font-size: 13px; line-height: 1.65; text-align: center;
}
.lb-tip:empty { display: none; }
.lb-x {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.poster-wrap img {
  width: 100%; display: block; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(12, 96, 71, .16);
  -webkit-touch-callout: default; user-select: auto;
}
.stat[data-stat] { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.stat[data-stat]:active { transform: scale(.97); }
#moneyAvail { cursor: pointer; }
.ev-img:active { opacity: .8; }
.mini-btn + .mini-btn { margin-left: 5px; }
