:root {
  --green: #14945f;
  --green-strong: #0b7950;
  --green-deep: #173228;
  --green-soft: #eaf7f0;
  --ink: #17201c;
  --muted: #7b847e;
  --line: #e7ebe8;
  --bg: #f6f7f5;
  --card: #ffffff;
  --danger: #c8564c;
  --danger-soft: #fff1ef;
  --shadow: 0 12px 32px rgba(23, 32, 28, .08);
  --shadow-soft: 0 3px 14px rgba(23, 32, 28, .045);
  --radius: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -8%, rgba(20, 148, 95, .055), transparent 26%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }

/* 顶部：只保留品牌与本人身份 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  padding: env(safe-area-inset-top) max(15px, env(safe-area-inset-right)) 0 max(15px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(246, 247, 245, .9);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-bottom: 1px solid rgba(221, 226, 222, .72);
}
.brand-simple {
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -.45px;
}
.me-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  color: var(--muted);
  min-height: 34px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 8px rgba(23,32,28,.035);
}
.me-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: #b8c0bb; }
.me-btn.signed { color: var(--ink); }
.me-btn.signed .dot { background: #16ae72; box-shadow: 0 0 0 4px var(--green-soft); }
.me-btn span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }

main {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 14px 14px calc(34px + env(safe-area-inset-bottom));
}

/* 本轮概览：从“大仪表盘”改成轻量状态卡 */
.round-summary {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 17px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #17251f 0%, #18372b 68%, #175239 100%);
  box-shadow: 0 12px 32px rgba(23, 50, 40, .14);
}
.round-summary::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -76px;
  top: -84px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.035);
  pointer-events: none;
}
.round-summary-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.round-summary-copy { min-width: 0; }
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.64);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .25px;
}
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: #68dca6; box-shadow: 0 0 0 4px rgba(104,220,166,.1); }
.round-summary h1 { margin: 7px 0 0; font-size: 22px; line-height: 1.24; letter-spacing: -.65px; }
.round-share-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.075);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.round-share-icon:active { transform: scale(.97); background: rgba(255,255,255,.12); }
.round-meta { position: relative; z-index: 1; margin-top: 9px; color: rgba(255,255,255,.58); font-size: 11px; }
.round-meta b { color: rgba(255,255,255,.92); font-weight: 680; }
.host-badge { margin-left: 7px; padding: 2px 6px; border-radius: 999px; background: rgba(104,220,166,.12); color: #95e8c2; font-size: 9px; font-weight: 750; }
.round-stats-line {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.085);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255,255,255,.52);
  font-size: 10px;
}
.round-stats-line span { white-space: nowrap; }
.round-stats-line b { color: #fff; font-size: 12px; font-weight: 760; }
.round-stats-line > i { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.28); }

/* 商品区标题 */
.section-head {
  margin: 22px 3px 11px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.45px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.add-compact {
  flex-shrink: 0;
  min-height: 36px;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 760;
  box-shadow: var(--shadow-soft);
}
.add-compact:active { transform: scale(.98); }

/* 商品卡片 */
.product-list { display: grid; gap: 11px; }
.product-card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 227, .92);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.product-card.is-done { border-color: #d7ecdf; background: linear-gradient(180deg, #fff 0%, #fbfffd 100%); }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-main { min-width: 0; flex: 1; }
.product-main h3 { margin: 0; font-size: 16px; line-height: 1.42; letter-spacing: -.25px; }
.product-price-line { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product-price-line strong { font-size: 19px; line-height: 1; letter-spacing: -.45px; }
.product-price-line span { color: #9aa19c; font-size: 9px; }
.product-price-line em { margin-left: 2px; padding: 3px 7px; border-radius: 999px; background: #f1f4f2; color: #667069; font-size: 9px; font-style: normal; font-weight: 650; }
.done-pill { flex-shrink: 0; padding: 5px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-strong); font-size: 10px; font-weight: 760; }

.progress-wrap { margin-top: 14px; }
.progress-copy { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 10px; }
.progress-copy b { font-weight: 720; }
.progress-copy span { color: var(--muted); }
.progress { height: 6px; overflow: hidden; border-radius: 999px; background: #edf1ee; }
.progress > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14945f, #5bc293); transition: width .25s ease; }
.product-detail-trigger { cursor: pointer; }
.product-detail-trigger:focus-visible { outline: 3px solid rgba(20,148,95,.22); outline-offset: 4px; border-radius: 12px; }
.open-inline {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}
.open-inline b { color: var(--ink); font-size: 12px; }

.claim-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.claim-chips span { padding: 5px 8px; border-radius: 9px; background: #f3f5f3; color: #6b736e; font-size: 10px; }
.claim-chips span.mine { background: var(--green-soft); color: var(--green-strong); }
.claim-chips b { font-weight: 760; }

.my-claim-box {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.my-claim-copy { display: flex; flex-direction: column; gap: 4px; min-width: 96px; }
.my-claim-copy > span { font-size: 12px; font-weight: 720; }
.my-claim-copy small { color: #9aa19c; font-size: 9px; transition: color .15s; }
.my-claim-copy small.saving { color: #a27b43; }
.my-claim-copy small.saved { color: var(--green-strong); }
.my-claim-copy small.error { color: var(--danger); }
.claim-control { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.stepper {
  height: 42px;
  display: grid;
  grid-template-columns: 42px 46px 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.stepper button { height: 100%; border: 0; background: #f7f8f7; color: var(--ink); font-size: 20px; line-height: 1; }
.stepper button:active { background: #eef2ef; }
.stepper input { width: 46px; height: 100%; border: 0; outline: 0; text-align: center; color: var(--ink); font-size: 14px; font-weight: 760; appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quick-claim-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.quick-claim-actions button { min-height: 27px; padding: 0 8px; border: 1px solid #dce8e0; border-radius: 9px; background: #f5faf7; color: var(--green-strong); font-size: 10px; font-weight: 760; }
.quick-claim-actions button:active { background: var(--green-soft); }
.quick-claim-actions .quantity-more { color: var(--muted); background: #fff; border-color: var(--line); font-weight: 650; }
.identity-cta { width: 100%; margin-top: 14px; border: 1px dashed #cbd3ce; border-radius: 13px; padding: 11px; background: #fafbfa; color: var(--muted); font-size: 11px; }
.done-footer {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}
.done-footer b { color: var(--ink); font-size: 11px; }
.done-footer button { border: 0; background: transparent; color: var(--green-strong); font-size: 10px; font-weight: 720; padding: 4px 0; }
.source-link { display: inline-block; margin-top: 11px; color: var(--muted); text-decoration: none; font-size: 10px; }
.source-link.as-button { padding: 0; border: 0; background: transparent; }

/* 最近动态与商品详情 */
.activity-strip { margin: 13px 2px 0; padding: 13px 14px 11px; border: 1px solid rgba(226,232,227,.9); border-radius: 16px; background: rgba(255,255,255,.62); box-shadow: var(--shadow-soft); }
.activity-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.activity-head span { font-size: 11px; font-weight: 760; }
.activity-head small { color: #a0a8a2; font-size: 9px; }
.activity-list { margin-top: 8px; display: grid; gap: 6px; }
.activity-row { min-width: 0; display: grid; grid-template-columns: 6px minmax(0,1fr) auto; align-items: center; gap: 7px; color: #667069; font-size: 10px; }
.activity-row i { width: 5px; height: 5px; border-radius: 50%; background: #65c998; box-shadow: 0 0 0 3px rgba(101,201,152,.12); }
.activity-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row time { color: #a5aca7; font-size: 9px; white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0 16px; }
.detail-grid > div { padding: 11px 12px; border-radius: 13px; background: #f5f9f6; }
.detail-grid span, .detail-line > span, .detail-label { display: block; color: #89928b; font-size: 9px; }
.detail-grid b { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; }
.detail-section { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.detail-chip { padding: 6px 8px; border-radius: 9px; background: #f1f4f2; color: #68716b; font-size: 10px; }
.detail-chip.mine { background: var(--green-soft); color: var(--green-strong); }
.detail-chip b { font-weight: 760; }
.detail-muted { color: #a0a8a2; font-size: 10px; }
.detail-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-line b { max-width: 72%; color: var(--ink); font-size: 11px; font-weight: 650; text-align: right; word-break: break-all; }
.detail-source { color: var(--green-strong); font-size: 10px; text-decoration: none; }

/* 快速数量弹层 */
.quantity-editor { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; align-items: center; gap: 9px; margin: 16px 0 10px; }
.quantity-editor > button { height: 48px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9f7; color: var(--ink); font-size: 22px; }
.quantity-editor > button:active { background: var(--green-soft); }
.quantity-editor label { margin: 0; text-align: center; }
.quantity-editor label span { display: block; color: var(--muted); font-size: 9px; font-weight: 650; }
.quantity-editor input { display: block; width: 100%; height: 48px; margin-top: 5px; border: 1px solid #cfe6d8; border-radius: 14px; outline: 0; background: #f8fcf9; color: var(--ink); text-align: center; font-size: 20px; font-weight: 780; appearance: textfield; -moz-appearance: textfield; }
.quantity-editor input:focus { border-color: rgba(20,148,95,.55); box-shadow: 0 0 0 3px rgba(20,148,95,.08); }
.quantity-editor input::-webkit-inner-spin-button, .quantity-editor input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quick-quantity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.quick-quantity button { min-height: 39px; border: 1px solid #cfe6d8; border-radius: 12px; background: var(--green-soft); color: var(--green-strong); font-size: 12px; font-weight: 760; }
.quick-quantity button:active { background: #d8f1e3; }
.quantity-hint { min-height: 16px; margin: 9px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

/* 参与者与团长管理 */
.people-strip { margin: 12px 2px 0; padding: 14px 2px 6px; }
.people-title { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.people-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.people-chips span { padding: 6px 9px; background: #ecefec; color: #69716c; border-radius: 999px; font-size: 10px; }
.host-panel { margin-top: 12px; padding: 0; border: 1px solid #e1e6e2; border-radius: 16px; background: rgba(255,255,255,.7); overflow: hidden; }
.host-panel summary { list-style: none; min-height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.host-panel summary::-webkit-details-marker { display: none; }
.host-panel summary span { font-weight: 720; font-size: 11px; }
.host-panel summary small { color: var(--muted); font-size: 9px; }
.host-panel summary::after { content: "⌄"; margin-left: 8px; color: #929a94; transition: transform .18s; }
.host-panel[open] summary::after { transform: rotate(180deg); }
.host-actions { padding: 0 12px 12px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.host-actions button { min-height: 38px; border-radius: 11px; font-size: 11px; font-weight: 650; }
.soft { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.danger-soft { border: 1px solid #f0d8d4; background: var(--danger-soft); color: var(--danger); }

.card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 227, .9);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}
.no-products { text-align: center; padding: 28px 20px; }
.no-products-icon { margin: 0 auto 12px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green-strong); font-size: 21px; }
.no-products b { display: block; font-size: 15px; }
.no-products p { margin: 6px 0 15px; color: var(--muted); font-size: 11px; }
.empty-hero { min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; }
.empty-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; background: #fff; box-shadow: var(--shadow); font-size: 31px; }
.empty-title { margin-top: 20px; font-size: 20px; font-weight: 780; letter-spacing: -.45px; }
.empty-hero p { max-width: 300px; margin: 9px 0 20px; color: var(--muted); line-height: 1.7; font-size: 12px; }
button.primary { border: 0; border-radius: 12px; padding: 11px 15px; background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(20,148,95,.15); }
button.primary.xl, button.ghost.xl { min-width: 150px; min-height: 44px; }
.empty-actions { display: grid; gap: 9px; width: min(100%, 220px); }
button.ghost { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; color: var(--ink); font-weight: 650; }
button:disabled { opacity: .55; cursor: not-allowed; }

/* 底部弹层 */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 14px; background: rgba(19,25,22,.46); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.hidden { display: none; }
.modal-box { width: min(100%, 440px); max-height: min(89vh, 760px); overflow: auto; padding: 21px; border-radius: 25px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.2); animation: modalIn .18s ease-out; }
@keyframes modalIn { from { transform: translateY(18px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.modal-kicker { margin-bottom: 5px; color: var(--green-strong); font-size: 10px; font-weight: 800; letter-spacing: .75px; }
.modal-box h3 { margin: 0; font-size: 20px; letter-spacing: -.45px; }
.modal-desc { margin: 8px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.62; }
.modal-box label { display: block; margin-bottom: 13px; color: #68716b; font-size: 10px; font-weight: 650; }
.modal-box label em { color: var(--danger); font-style: normal; }
.modal-box label .optional { float: right; color: #a1a8a3; font-size: 9px; font-weight: 500; }
.modal-box label input { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fafbfa; color: var(--ink); font-size: 13px; transition: .15s; }
.modal-box label input:focus { border-color: rgba(20,148,95,.5); background: #fff; box-shadow: 0 0 0 3px rgba(20,148,95,.07); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 18px; }
.modal-actions button { min-height: 43px; }
.switch-identity { width: 100%; margin-top: 12px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.correct-list { max-height: 44vh; overflow: auto; margin: 8px 0 4px; border-top: 1px solid var(--line); }
.correct-row { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.correct-row span { font-size: 12px; }
.correct-row input { width: 74px; height: 34px; border: 1px solid var(--line); border-radius: 10px; text-align: center; outline: 0; }

/* 快速添加 */
.quick-add-box { margin: 15px 0 14px; padding: 13px; border-radius: 16px; background: #f3f8f5; border: 1px solid #e3eee8; }
.quick-add-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.quick-add-title span { color: var(--green-strong); font-size: 11px; font-weight: 760; }
.quick-add-title small { color: #91a098; font-size: 9px; }
.quick-add-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.quick-add-row input { width: 100%; height: 40px; min-width: 0; padding: 0 11px; border: 1px solid #dfe8e2; border-radius: 11px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; }
.quick-add-row button { min-width: 54px; border: 0; border-radius: 11px; background: var(--green-deep); color: #fff; font-size: 11px; font-weight: 720; }
.quick-add-box p { margin: 8px 1px 0; color: #8a948e; font-size: 9px; line-height: 1.5; }
.form-divider { position: relative; margin: 13px 0 16px; text-align: center; color: #a0a7a2; font-size: 9px; }
.form-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.form-divider span { position: relative; padding: 0 9px; background: #fff; }
.choice-label { margin: 1px 0 7px; color: #68716b; font-size: 10px; font-weight: 650; }
.split-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 13px; }
.split-choice button { min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfa; color: var(--ink); text-align: left; }
.split-choice button b { display: block; font-size: 11px; }
.split-choice button small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.split-choice button.active { border-color: #b9dfca; background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(20,148,95,.08); }
.split-choice button.active b { color: var(--green-strong); }
.target-field { transition: .15s; }
.hidden-field { display: none !important; }

/* 分享说明：先诚实展示测试阶段，正式域名后再接微信卡片 */
.share-guide b { color: var(--ink); }
.share-preview-mini { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf8; }
.share-preview-mini > span { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--green-deep); font-size: 18px; }
.share-preview-mini div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.share-preview-mini b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-preview-mini small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.share-tip { margin: 8px 0 2px; padding: 11px 12px; border-radius: 13px; background: #f5f6f5; display: flex; flex-direction: column; gap: 4px; }
.share-tip b { font-size: 10px; }
.share-tip span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.share-tip strong { color: var(--ink); }

.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(34px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); max-width: calc(100vw - 40px); padding: 10px 15px; border-radius: 999px; background: rgba(23,32,28,.94); color: #fff; font-size: 11px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 8px 24px rgba(0,0,0,.18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 账单页 ===== */
.bill-head { margin-bottom: 14px; padding: 20px; border-radius: 22px; background: var(--ink); color: #fff; }
.bill-head .kicker { color: #89dab3; font-size: 10px; font-weight: 750; letter-spacing: .7px; }
.bill-head h1 { margin: 6px 0; font-size: 22px; letter-spacing: -.5px; }
.bill-head p { margin: 0; color: rgba(255,255,255,.55); font-size: 11px; }
.sec-title { margin: 4px 0 10px; font-size: 12px; font-weight: 750; }
.hint { color: var(--muted); font-size: 11px; }
.bitem { padding: 14px 0; border-top: 1px solid var(--line); }
.bitem:first-of-type { border-top: 0; }
.bname { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.badge { padding: 3px 6px; border-radius: 999px; background: var(--green-soft); color: var(--green-strong); font-size: 9px; }
.brow { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bprice { color: var(--muted); font-size: 10px; }
.bprice input { width: 82px; height: 34px; margin-left: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 12px; }
.bsub { color: var(--muted); font-size: 10px; }
.bcheck { margin-top: 9px !important; display: flex !important; align-items: center; gap: 7px; color: var(--ink) !important; font-size: 11px !important; }
.bcheck input { width: 16px !important; height: 16px !important; margin: 0 !important; }
.bclaims { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.bsurplus { margin-top: 5px; color: #b56f24; font-size: 10px; font-weight: 650; }
.bill-card { margin-bottom: 12px; padding: 20px; border-radius: 22px; background: linear-gradient(145deg, #173528, #16744c); color: #fff; box-shadow: 0 14px 34px rgba(22,116,76,.18); }
.bc-title { font-size: 18px; font-weight: 780; }
.bc-sub { margin: 5px 0 16px; color: rgba(255,255,255,.55); font-size: 10px; }
.bill-card .sec-title { color: rgba(255,255,255,.72); }
.bill-card .stab { width: 100%; border-collapse: collapse; }
.bill-card .stab td { padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.bill-card .stab .pay { text-align: right; font-size: 13px; font-weight: 750; }
.bill-card .me-row td { color: #a7f0ca; }
.bill-card .stotal { margin-top: 13px; text-align: right; font-size: 14px; font-weight: 780; }
.bill-card .surplus-row { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 10px; }
.bill-card .hint { color: rgba(255,255,255,.5); }
.share-box { margin-top: 13px; padding: 13px; border-radius: 14px; background: var(--green-soft); }
.share-box.hidden { display: none; }
.share-link { margin: 8px 0; padding: 9px; border-radius: 10px; background: #fff; color: var(--green-strong); word-break: break-all; font-size: 10px; }
.ok { color: var(--green-strong); font-size: 11px; font-weight: 700; }
.bill-actions { display: grid; gap: 9px; }
.readonly-note { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: #eef1ef; color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (min-width: 540px) {
  .modal { align-items: center; }
}
@media (max-width: 390px) {
  .round-summary { padding: 17px; }
  .round-summary h1 { font-size: 21px; }
  .my-claim-box { align-items: center; }
  .stepper { grid-template-columns: 39px 44px 39px; }
  .stepper input { width: 44px; }
  .host-actions { grid-template-columns: 1fr; }
}
