/* ==========================================================================
   SEA Ledger — shared design system (app.css)
   Used by: 账单明细.html, 提款记录.html, 店铺单页.html
   ========================================================================== */

:root {
  --bg: #f6f3f1;
  --panel: rgba(255, 253, 248, 0.9);
  --panel-strong: rgba(255, 253, 248, 0.96);
  --line: #e5ddd7;
  --line-soft: #ebe5e0;
  --text: #0b0d0e;
  --muted: #565c61;
  --muted-2: #837267;
  --teal: #0f7d6e;
  --teal-dark: #0b5f63;
  --green: #2f8f5f;
  --orange: #d1892f;
  --brown: #a87f4e;
  --yellow: #e0b23c;
  --blue: #2f6fe0;
  --red: #e0533d;
  --neg: #d63a2b;
  --pos: #1c8a4f;
  --track: #e9e2dd;
  --shadow: 0 10px 24px rgba(88, 67, 39, 0.08), 0 2px 8px rgba(42, 32, 20, 0.07);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background:
    radial-gradient(circle at 9% 14%, rgba(252, 247, 243, 0.95) 0 240px, transparent 460px),
    radial-gradient(circle at 88% 8%, rgba(246, 237, 231, 0.8) 0 260px, transparent 540px),
    linear-gradient(180deg, #faf7f5 0%, var(--bg) 52%, #f4f1ee 100%);
  background-attachment: fixed;
}

.app-shell { padding-bottom: 28px; }

/* ---------- Topbar / breadcrumb ---------- */
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 52px;
  border-bottom: 1px solid #ded5ce;
  background: rgba(255, 253, 248, 0.28);
}
.topbar-title { font-size: 22px; font-weight: 700; line-height: 1; }
.topbar-divider { width: 1px; height: 28px; background: #d1c6bd; }
.crumbs { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; line-height: 1; }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.crumbs a:hover { color: var(--teal); }
.crumb-sep { color: #bfb3aa; font-weight: 400; }
.crumb-cur { color: var(--text); }

/* ---------- Page frame ---------- */
.page { padding: 26px 45px 0; max-width: 1600px; margin: 0 auto; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.page-title { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: .2px; }
.page-sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.page-sub .dot { color: #c5b9b0; }
.page-sub .sep { width: 1px; height: 13px; background: #d1c6bd; display: inline-block; }
.page-actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* ---------- Panels ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  min-width: 0; /* 作为 grid/flex 子项时默认 min-width:auto 会被内部宽表格/长文本撑爆容器，清零即可 */
}
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; }
.panel-sub { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 18px; }

/* ---------- Summary cards: bordered-left variant ---------- */
.cards { display: grid; gap: 18px; margin-bottom: 18px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }

.sum-card {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 16px 20px 17px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0; /* grid 子项默认 min-width:auto，长金额/"对比基准"等 nowrap 文案会把卡片撑宽出容器 */
}
.sum-card .sc-label, .sum-card .sc-aside { white-space: normal; } /* 极窄屏下允许换行，配合 min-width:0 彻底避免溢出 */
.sum-card.orange { border-left-color: var(--orange); }
.sum-card .sc-main { min-width: 0; }
.sum-card .sc-label { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.sum-card .sc-value { font-size: 26px; font-weight: 800; line-height: 1; white-space: nowrap; }
.sum-card .sc-value.teal { color: var(--teal); }
.sum-card .sc-aside { color: var(--muted-2); font-size: 13px; white-space: nowrap; align-self: flex-end; }

/* ---------- Summary cards: icon variant ---------- */
.icon-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(248, 242, 237, 0.7));
  box-shadow: var(--shadow);
  padding: 16px 20px;
  min-width: 0; /* 同 .sum-card：作为 .cards 网格子项时防止内部宽文本把卡片撑出容器 */
}
.icon-card > div { min-width: 0; }
.ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.ic svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.solid { color: #fff; box-shadow: 0 8px 16px rgba(91, 60, 22, 0.16); }
.ic.solid.teal   { background: linear-gradient(135deg, #0e6f68, #0f8378); }
.ic.solid.orange { background: linear-gradient(135deg, #d98a34, #e6a24a); }
.ic.solid.red    { background: linear-gradient(135deg, #d9503b, #e56b52); }
.ic.solid.green  { background: linear-gradient(135deg, #2f8f5f, #3fa06e); }
.ic.soft.green   { background: rgba(47, 143, 95, 0.15); color: #2f8f5f; }
.ic.soft.orange  { background: rgba(209, 137, 47, 0.17); color: #c9791f; }
.ic.soft.blue    { background: rgba(47, 111, 224, 0.14); color: #2f6fe0; }
.icon-card .card-label { color: var(--muted); font-size: 14px; margin: 0 0 7px; }
.icon-card .card-value { font-size: 24px; font-weight: 800; line-height: 1; white-space: nowrap; }

/* ---------- Horizontal bar chart ---------- */
.hbars { display: grid; gap: 15px; }
.hbar-row {
  display: grid;
  grid-template-columns: var(--hbar-label, 82px) 1fr var(--hbar-val, 168px);
  align-items: center;
  column-gap: 16px;
}
.hbar-label { font-size: 14px; color: var(--text); white-space: nowrap; }
.bar-track { height: 11px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; min-width: 3px; transition: width .5s ease; }
.bar-fill.teal   { background: linear-gradient(90deg, #0f8378, #0d7264); }
.bar-fill.orange { background: linear-gradient(90deg, #e2a24c, #d1892f); }
.bar-fill.brown  { background: linear-gradient(90deg, #b98f5c, #a87f4e); }
.bar-fill.green  { background: linear-gradient(90deg, #37a06d, #2f8f5f); }
.bar-fill.yellow { background: linear-gradient(90deg, #e6c05a, #e0b23c); }
.bar-fill.blue   { background: linear-gradient(90deg, #4f86e8, #2f6fe0); }
.bar-fill.red    { background: linear-gradient(90deg, #e86a54, #e0533d); }
.hbar-value { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.hbar-value b { color: var(--text); font-weight: 600; }

/* legend-style rows (dot + label + bar + value + count) */
.legend-rows { display: grid; gap: 13px; }
.legend-row {
  display: grid;
  grid-template-columns: 150px 1fr 132px 44px;
  align-items: center;
  column-gap: 14px;
}
.legend-name { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; white-space: nowrap; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend-amt { text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }
.legend-cnt { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Vertical bars (支出环比) ---------- */
.vbars { display: flex; align-items: flex-end; justify-content: center; gap: 42px; height: 150px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.vbar-val { font-size: 14px; font-weight: 700; margin-bottom: 8px; white-space: nowrap; }
.vbar-fill { width: 74px; border-radius: 8px 8px 0 0; border: 1px solid; }
.vbar-fill.teal { background: rgba(15, 131, 120, 0.16); border-color: rgba(15, 131, 120, 0.42); }
.vbar-fill.orange { background: rgba(209, 137, 47, 0.16); border-color: rgba(209, 137, 47, 0.5); }
.vbar-x { display: flex; justify-content: center; gap: 42px; margin-top: 9px; }
.vbar-x span { width: 74px; text-align: center; font-size: 13px; color: var(--muted); }

.compare-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 242, 232, 0.6);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.compare-box .cb-label { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.compare-box .cb-value { font-size: 28px; font-weight: 800; color: var(--teal); line-height: 1; margin: 0 0 10px; }
.compare-box .cb-note { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Donut ---------- */
.donut-wrap { display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center; }
.donut { position: relative; width: 168px; height: 168px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center .dc-label { color: var(--muted); font-size: 11.5px; }
.donut-center .dc-value { font-size: 13.5px; font-weight: 800; margin-top: 2px; }

/* ---------- Data tables ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.data-table thead { background: rgba(242, 234, 221, 0.7); }
.data-table th {
  padding: 11px 14px;
  color: #5b5247;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #ece3d6;
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: rgba(15, 125, 110, 0.05); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .center { text-align: center; }
.data-table .neg { color: var(--neg); font-weight: 600; }
.data-table .pos { color: var(--pos); font-weight: 600; }
.data-table .mut { color: #b6ab9b; }
.data-table .strong { font-weight: 700; }
.data-table tr.total-row td { background: rgba(242, 234, 221, 0.55); border-top: 1.5px solid #ddd1c0; border-bottom: none; font-weight: 700; }
.data-table .wrap { white-space: normal; }

.ok-tag { color: #1c8a4f; font-weight: 600; }

/* ---------- Buttons / links / dropdowns ---------- */
.btn {
  height: 36px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9cec0;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: #25292b;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { border-color: var(--teal); box-shadow: 0 6px 14px rgba(88, 67, 39, 0.1); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dropdown { position: relative; }
.date-picker {
  height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d9cec0;
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.92);
  color: #24282a;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.date-picker:hover { border-color: var(--teal); }
.date-picker .cal { width: 16px; height: 16px; stroke: #2f3031; fill: none; stroke-width: 2; flex: none; }
.chev { width: 11px; height: 11px; border-right: 1.8px solid #6c6a66; border-bottom: 1.8px solid #6c6a66; transform: rotate(45deg) translateY(-2px); }

.menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-strong);
  box-shadow: 0 16px 30px rgba(60, 44, 22, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
}
.menu.open { display: block; }
.menu-item {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: 0; border-radius: 6px;
  background: transparent; color: #26302f; font-size: 14px; white-space: nowrap; cursor: pointer;
}
.menu-item:hover { background: rgba(15, 125, 110, 0.09); }
.menu-item.selected { background: rgba(15, 125, 110, 0.14); font-weight: 700; }

.link { color: var(--green); cursor: pointer; text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.view-all { color: #2c3033; text-decoration: none; font-size: 14px; cursor: pointer; }
.view-all:hover { color: var(--teal); }

/* ---------- Footer + toast ---------- */
.footer { margin-top: 22px; color: #5f6264; font-size: 13px; text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  z-index: 90; max-width: 84vw; padding: 11px 20px; border-radius: 999px;
  background: rgba(11, 42, 46, 0.94); color: #fdfaf3; font-size: 14px;
  box-shadow: 0 14px 30px rgba(0, 40, 44, 0.28);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Grid helpers ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.05fr 1fr; }
/* 网格子项默认 min-width:auto，会被内部宽表格/长文本撑爆整行（经典 CSS Grid blowout）。
   子项自身已有 overflow-x:auto 的横向滚动容器兜底，所以清零 min-width 是安全的。 */
.two-col > * { min-width: 0; }

/* ---------- Icon card extras ---------- */
.icon-card .card-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.icon-card.tint-green { background: linear-gradient(135deg, rgba(31, 138, 82, 0.10), rgba(31, 138, 82, 0.04)); border-color: rgba(31, 138, 82, 0.24); }
.ic.soft.amber { background: rgba(217, 165, 46, 0.16); color: #b3841a; }
.ic.round { border-radius: 50%; }

/* ---------- In-page sub tabs ---------- */
.subtabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.subtab { appearance: none; border: 0; background: none; padding: 0 2px 12px; margin-bottom: -1px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: color .15s ease; }
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- Account: avatar + info columns ---------- */
.acct-head { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 0; }
.acct-id { display: flex; align-items: center; gap: 18px; min-width: 280px; padding-right: 26px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(15, 125, 110, 0.12); color: var(--teal); display: grid; place-items: center; flex: none; }
.avatar svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acct-name { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.acct-mail { color: var(--muted); font-size: 14px; margin-top: 5px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(15, 125, 110, 0.13); color: var(--teal); }
.info-col { padding: 2px 28px; border-left: 1px solid var(--line); }
.info-col .k { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.info-col .v { font-size: 15px; font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

/* ---------- Form fields ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: end; }
.field { position: relative; }
.field .lab { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.input { width: 100%; height: 44px; padding: 0 42px 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font-size: 14px; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 125, 110, 0.13); }
.eye { position: absolute; right: 12px; bottom: 12px; width: 20px; height: 20px; color: #9a9184; cursor: pointer; }
.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.form-hint { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- Tags / status / row actions ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; white-space: nowrap; }
.tag.green { background: rgba(31, 138, 82, 0.12); color: #1f7a49; }
.tag.amber { background: rgba(207, 138, 51, 0.15); color: #b3781f; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status.off .dot { background: #b6ab9b; }
.act-link { color: var(--teal); cursor: pointer; font-weight: 600; }
.act-link:hover { text-decoration: underline; }
.act-danger { color: var(--red); cursor: pointer; font-weight: 600; margin-left: 16px; }
.act-danger:hover { text-decoration: underline; }

/* ---------- Button variants ---------- */
.btn.primary { background: linear-gradient(135deg, #12897a, #0f7d6e); border-color: transparent; color: #fff; font-weight: 600; }
.btn.primary:hover { box-shadow: 0 8px 18px rgba(15, 110, 98, 0.3); }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn.accent { color: var(--teal); border-color: rgba(15, 125, 110, 0.4); font-weight: 600; }

/* ---------- Table footer + pagination ---------- */
.table-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 13px; }
.pager { display: inline-flex; align-items: center; gap: 8px; }
.pg { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 248, 0.9); color: #4a4f52; cursor: pointer; font-size: 13px; }
.pg.active { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.pg.nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Brand icons (inline, injected by app.js) ---------- */
.brand-icon { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); vertical-align: middle; }
.brand-icon svg { width: 17px; height: 17px; display: block; }
.brand-icon.shopee { background: #ee4d2d; }
.brand-icon.tiktok { background: #010101; }
.brand-icon.lazada { background: #fff; box-shadow: inset 0 0 0 1px #e5ddd7; }
.plat-cell { display: inline-flex; align-items: center; gap: 9px; }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .page { padding: 22px 26px 0; }
  .two-col, .two-col.wide-left { grid-template-columns: 1fr; }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .topbar { height: 62px; padding: 0 18px; gap: 12px; }
  .topbar-title, .crumbs { font-size: 17px; }
  .page { padding: 16px 16px 0; }
  .page-head { flex-direction: column; }
  .page-title { font-size: 22px; }
  .cards.c3 { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .legend-row { grid-template-columns: 132px 1fr auto; }
  .legend-cnt { display: none; }
}

@media (max-width: 560px) {
  .cards.c4 { grid-template-columns: 1fr; }
  .hbar-row { grid-template-columns: 72px 1fr; row-gap: 4px; }
  .hbar-value { grid-column: 1 / -1; text-align: left; }

  /* 长金额+百分比在窄屏并排会挤在一起 → 改成上下堆叠 */
  .sum-card { flex-direction: column; align-items: flex-start; gap: 2px; }
  .page-actions { flex-wrap: wrap; }

  /* icon-card 的大图标(54px)在桌面 4 列窄格里比例正常，铺满整行(单列)后
     占到卡片六成高度，反而比数字还显眼——移动端整体缩小、收紧内边距 */
  .icon-card { grid-template-columns: 38px 1fr; gap: 12px; padding: 13px 16px; }
  .ic { width: 38px; height: 38px; border-radius: 10px; }
  .ic svg { width: 19px; height: 19px; }
  .icon-card .card-label { margin-bottom: 5px; font-size: 13px; }
  .icon-card .card-value { font-size: 20px; }

  /* legend-row: 132px名+1fr条+auto金额 在窄屏必超宽 → 去掉装饰性的条，只留 名称+金额 两列 */
  .legend-row { grid-template-columns: 1fr auto; column-gap: 10px; }
  .legend-row .bar-track { display: none; }
  .legend-name { white-space: normal; }

  /* 子菜单（店铺/月份等下拉）：手机上不再用挂在按钮下的小气泡，
     改成底部动作面板——大拇指够得着、行高够点（44px+）、长列表内部滚动（与 index.html 同款） */
  .menu {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    min-width: 0;
    max-height: 62vh;
    overflow-y: auto;
    padding: 8px;
    border-radius: 14px;
    background: #fffdf8;   /* 面板背后是深色遮罩，半透明底会透灰——改不透明 */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    /* 第一层大 spread 阴影充当全屏遮罩：阴影画在元素背景之下，白底不会被染灰
       （负 z 伪元素做遮罩会盖住自己的背景，这是坑） */
    box-shadow: 0 0 0 100vmax rgba(38, 28, 16, 0.32), 0 -8px 40px rgba(42, 32, 20, 0.28);
  }
  .menu.open { animation: sheetUp .18s ease; }
  /* 全屏透明挡板：只负责挡住对底下内容的误触，"暗"由上面的 spread 阴影负责 */
  .menu.open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
  }
  @keyframes sheetUp { from { opacity: .5; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  .menu-item { padding: 13px 14px; border-radius: 9px; font-size: 15px; }
}

/* new components responsive */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 820px) {
  .acct-id { padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; width: 100%; }
  .info-col { border-left: 0; padding: 0; }
  .acct-head { gap: 16px 0; }
  .acct-head .info-col { width: 100%; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .subtabs { gap: 20px; }
}
