/* Carddoger 卡包 · 仅本地开发，勿进生产构建 */
/* ===== 卡包 wallet ===== */
.wallet-page{padding-bottom:72px}
.wallet-hero p{max-width:720px}
.wallet-panel{
  margin:8px 0 48px;
  padding:18px 18px 22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  box-shadow:0 10px 28px rgba(22,70,47,.05);
}
.wallet-top-chrome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  gap:8px 16px;
  width:100%;
  margin-bottom:16px;
}
.wallet-top-tabs{
  display:flex;
  gap:8px;
  margin:0;
  padding:4px;
  border-radius:12px;
  background:var(--bg);
  border:1px solid var(--line);
  width:fit-content;
  max-width:100%;
  flex-wrap:wrap;
}
.wallet-updated{
  margin:0;
  padding:0 2px;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
  text-align:right;
  margin-left:auto;
}
.wallet-updated time{
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.wallet-updated #off-count:not(:empty) + time::before{
  content:" · ";
  color:var(--muted);
}
.wallet-top-tab{
  padding:10px 18px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.wallet-top-tab:hover{color:var(--ink)}
.wallet-top-tab.active{
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 2px 10px rgba(22,70,47,.08);
}
.wallet-region-tabs,
.wallet-sub-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}
.wallet-chip{
  padding:7px 12px;
  border:1px solid transparent;
  border-radius:999px;
  background:none;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.wallet-chip:hover,
.wallet-chip.active{
  border-color:var(--line);
  background:var(--bg);
  color:var(--ink);
}
.wallet-chip.active{
  border-color:color-mix(in srgb,var(--accent) 35%,var(--line));
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 8%,var(--paper));
}
.wallet-chip-sub{font-weight:500}
.wallet-meta{
  margin:0 0 14px;
  color:var(--muted);
  font-size:12px;
}
.wallet-list{display:flex;flex-direction:column;gap:12px}
.wallet-row{
  display:grid;
  grid-template-columns:224px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--bg);
}
.wallet-row-mine{
  align-items:start;
  grid-template-columns:224px minmax(0,1fr) auto;
}
.wallet-row-media{
  width:224px;
  height:144px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#dfeadf;
  flex:0 0 auto;
}
.wallet-card-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.wallet-card-ph{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:800;
  letter-spacing:.04em;
  font-size:28px;
}
.wallet-row-name{
  margin:0 0 6px;
  font-size:16px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.2px;
}
.wallet-row-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 6px;
  color:var(--muted);
  font-size:12px;
}
.wallet-dot{opacity:.5}
.wallet-fee{color:var(--ink);font-weight:600}
.wallet-fee.free{color:var(--green)}
.wallet-row-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
  max-width:320px;
}
.wallet-row-actions-mine{max-width:180px;flex-direction:column;align-items:stretch}
.wallet-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
  text-decoration:none;
  cursor:pointer;
}
.wallet-btn:hover{border-color:var(--accent);color:var(--accent)}
.wallet-btn-primary{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}
.wallet-btn-primary:hover{filter:brightness(1.05);color:#fff}
.wallet-btn-owned{
  opacity:.7;
  cursor:default;
}
.wallet-btn-danger{color:#a33;border-color:#e2b8b0}
.wallet-btn-danger:hover{background:#fff5f3;color:#8b2e22}
.wallet-btn-ghost{min-height:30px;font-size:11px}
.wallet-btn.is-pending{
  opacity:.42;
  cursor:default;
}
.wallet-btn.is-pending:hover{
  border-color:var(--line);
  color:var(--ink);
  filter:none;
}
.wallet-empty{
  padding:28px 18px;
  border:1px dashed var(--line);
  border-radius:12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
  text-align:center;
  background:var(--bg);
}
.wallet-mine .tools-offer-list{margin-top:10px}
.wallet-mine-tools{margin-top:14px;display:flex;flex-direction:column;gap:14px}
.wallet-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width:280px;
  font-size:12px;
  color:var(--muted);
}
.wallet-field input[type="date"],
.wallet-offer-form input{
  min-height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  color:var(--ink);
  font:inherit;
}
.wallet-offer-block{
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
}
.wallet-offer-head{
  margin:0 0 8px;
  font-size:12px;
  font-weight:750;
  color:var(--ink);
}
.wallet-offer-empty{margin:0 0 10px;color:var(--muted);font-size:12px}
.wallet-offer-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
.wallet-offer-list li{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius:10px;
  background:var(--bg);
  border:1px solid var(--line);
}
.wallet-offer-item strong{display:block;font-size:13px}
.wallet-offer-exp{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.wallet-offer-item p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.wallet-offer-form{
  display:grid;
  grid-template-columns:1fr 140px;
  gap:8px;
}
.wallet-offer-form input[name="note"]{grid-column:1 / -1}
.wallet-offer-form button{grid-column:1 / -1;justify-self:start}
body.dark .wallet-panel,
body.dark .wallet-btn,
body.dark .wallet-field input,
body.dark .wallet-offer-form input,
body.dark .wallet-offer-block{background:#20211d;border-color:#343b32}
body.dark .wallet-row,
body.dark .wallet-empty,
body.dark .wallet-offer-list li,
body.dark .wallet-top-tabs,
body.dark .wallet-chip.active{background:#181a16}
body.dark .wallet-row-media{background:#2a2d27;border-color:#343b32}
@media (max-width:860px){
  .wallet-row,
  .wallet-row-mine{
    grid-template-columns:176px minmax(0,1fr);
  }
  .wallet-row-media{width:176px;height:112px}
  .wallet-row-actions,
  .wallet-row-actions-mine{
    grid-column:1 / -1;
    max-width:none;
    justify-content:flex-start;
    flex-direction:row;
    flex-wrap:wrap;
  }
  .wallet-offer-form{grid-template-columns:1fr}
  .wallet-offer-form input[name="expires"]{grid-column:auto}
}

/* ===== 卡包 v2 增补 ===== */
.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
.wallet-search-bar{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.wallet-search-label{flex:1;min-width:0}
.wallet-search-label input{
  width:100%;
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--bg);
  color:var(--ink);
  font:inherit;
  outline:none;
}
.wallet-search-label input:focus{
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent);
}
.wallet-tabs-dim{opacity:.55}
.wallet-row-name a{color:inherit;text-decoration:none}
.wallet-row-name a:hover{color:var(--accent)}
.wallet-row-media{display:block;text-decoration:none}
.wallet-status{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:750;
  line-height:1.4;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--muted);
  vertical-align:middle;
}
.wallet-row-name .wallet-status{margin-left:8px}
.wallet-status-wishlist{color:#6b5b2e;border-color:#e2d6a8;background:#fff9e8}
.wallet-status-applied{color:#2a4d7a;border-color:#b7cce8;background:#eef5ff}
.wallet-status-approved{color:#1f5f4a;border-color:#9fd4bc;background:#e8f7ef}
.wallet-status-active{color:#fff;border-color:var(--accent);background:var(--accent)}
.wallet-status-closed{color:#666;border-color:#ccc;background:#f2f2f2}
.wallet-status-denied{color:#8b2e22;border-color:#e2b8b0;background:#fff5f3}
.wallet-owned-tag{display:inline-flex;align-items:center}
.wallet-mine-filters{margin-bottom:12px}
.wallet-mine-filters small{
  margin-left:4px;
  font-weight:600;
  opacity:.7;
}
.wallet-fields-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:10px;
}
.wallet-field select{
  min-height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  color:var(--ink);
  font:inherit;
}
.wallet-field-wide{max-width:none}
body.dark .wallet-search-label input{background:#181a16;border-color:#343b32}
body.dark .wallet-status-wishlist{background:#2a2618;border-color:#5a4e28;color:#e6d48a}
body.dark .wallet-status-applied{background:#182230;border-color:#3a5270;color:#a8c8f0}
body.dark .wallet-status-approved{background:#163025;border-color:#2f6b50;color:#9ee0bf}
body.dark .wallet-status-closed{background:#222;border-color:#444;color:#aaa}
body.dark .wallet-status-denied{background:#2a1816;border-color:#6a3a34;color:#f0b0a8}
.wallet-row-zh{
  margin:0 0 4px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
.wallet-row-offer{
  margin:6px 0 0;
  color:var(--ink);
  font-size:12px;
  line-height:1.45;
  font-weight:600;
}
.wallet-limited{
  display:inline-block;
  padding:1px 6px;
  border-radius:4px;
  background:#fff3cd;
  color:#7a5b00;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  vertical-align:middle;
}
body.dark .wallet-limited{background:#3a3010;color:#f0d78a}
.wallet-disclaimer{
  margin:0;
  padding:14px 16px;
  border-radius:12px;
  border:1px dashed var(--line);
  background:var(--bg);
  color:var(--muted);
  font-size:12px;
  line-height:1.75;
}

.wallet-country-tabs{margin-top:2px}
.wallet-chip-country{font-weight:500}

/* ===== 卡包：开卡奖励列表 + 对比 ===== */
.wallet-row-bonus{
  margin:4px 0 6px;
  color:var(--accent);
  font-size:15px;
  line-height:1.35;
  letter-spacing:-.2px;
}
.wallet-row-bonus strong{font-weight:800}
.wallet-row-bonus.is-limited{color:#a35b00}
body.dark .wallet-row-bonus.is-limited{color:#f0c070}
.wallet-row-highlights{
  margin:8px 0 0;
  padding:0 0 0 16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.wallet-row-highlights li{margin:0 0 3px}
.wallet-compare-check{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
  font-size:12px;
  font-weight:650;
  cursor:pointer;
  user-select:none;
}
.wallet-compare-check input{margin:0;accent-color:var(--accent)}
.wallet-compare-check:has(input:checked){
  border-color:var(--accent);
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 8%,var(--paper));
}
.wallet-compare-bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:190;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--paper) 92%,transparent);
  backdrop-filter:blur(10px);
  box-shadow:0 -8px 28px rgba(22,70,47,.1);
}
.wallet-compare-bar-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.wallet-compare-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.wallet-compare-thumb{
  position:relative;
  width:144px;height:92px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#dfeadf;
}
.wallet-compare-thumb .wallet-card-img,
.wallet-compare-thumb .wallet-card-ph{width:100%;height:100%}
.wallet-compare-remove{
  position:absolute;top:2px;right:2px;
  width:20px;height:20px;padding:0;
  border:0;border-radius:50%;
  background:rgba(0,0,0,.55);color:#fff;
  font-size:14px;line-height:1;cursor:pointer;
}
.wallet-compare-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wallet-compare-count{color:var(--muted);font-size:12px;font-weight:700}
body.wallet-compare-open{padding-bottom:88px}
body.wallet-compare-open .site-fab{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
.wallet-compare-dialog{
  width:min(1100px,96vw);
  max-height:90vh;
  margin:auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 24px 60px rgba(0,0,0,.2);
}
.wallet-compare-dialog::backdrop{background:rgba(18,52,38,.35);backdrop-filter:blur(2px)}
.wallet-compare-dialog-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.wallet-compare-dialog-head h2{margin:0;font-size:18px}
.wallet-compare-table-wrap{overflow:auto;max-height:calc(90vh - 120px);padding:8px 12px 16px}
.wallet-compare-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
}
.wallet-compare-table th,
.wallet-compare-table td{
  padding:12px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  text-align:left;
  min-width:140px;
}
.wallet-compare-table thead th{
  position:sticky;top:0;
  background:var(--paper);
  z-index:1;
  font-weight:700;
}
.wallet-compare-table tbody th[scope="row"]{
  position:sticky;left:0;
  background:var(--bg);
  min-width:100px;
  max-width:120px;
  font-weight:700;
  color:var(--muted);
  font-size:12px;
  z-index:2;
}
.wallet-compare-colhead{
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  max-width:180px;
}
.wallet-compare-colhead .wallet-card-img,
.wallet-compare-colhead .wallet-card-ph{
  width:240px;height:152px;border-radius:8px;object-fit:cover;
  border:1px solid var(--line);
}
.wallet-compare-bonus{color:var(--accent);font-size:14px;line-height:1.35}
.wallet-compare-ul{margin:0;padding-left:16px;color:var(--muted);line-height:1.55}
.wallet-compare-cell-actions{display:flex;flex-wrap:wrap;gap:6px}
.wallet-compare-disclaimer{margin:0 16px 16px}
body.dark .wallet-compare-bar,
body.dark .wallet-compare-dialog{background:#1c1e1a;border-color:#343b32}
body.dark .wallet-compare-table thead th{background:#1c1e1a}
body.dark .wallet-compare-table tbody th[scope="row"]{background:#141612}
@media (max-width:720px){
  .wallet-row-bonus{font-size:14px}
  .wallet-compare-thumb{width:112px;height:72px}
}

/* 美卡标签：奖励探索嵌进卡包 */
.wallet-us-offers .tools-offers-filter-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:0 0 4px;
  padding:0 0 10px;
  border-bottom:1px solid var(--line);
}
.wallet-us-offers .tools-offers-filter-stats .tools-stat{
  min-width:0;
  padding:2px 6px;
  text-align:center;
}
.wallet-us-offers .tools-offers-filter-stats .tools-stat:first-child{padding-left:6px}
.wallet-us-offers .tools-offers-filter-stats .tools-stat strong{font-size:18px}
.wallet-slider{margin-top:8px}
.wallet-slider-meta{
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
  font-size:12px;
  font-weight:750;
  color:var(--ink);
}
.wallet-slider-track{
  position:relative;
  height:28px;
}
.wallet-slider-track::before{
  content:"";
  position:absolute;
  left:0;right:0;
  top:12px;
  height:4px;
  border-radius:99px;
  background:var(--line);
}
.wallet-slider-fill{
  position:absolute;
  top:12px;
  height:4px;
  border-radius:99px;
  background:var(--accent);
  pointer-events:none;
}
.wallet-slider-track input[type="range"]{
  position:absolute;
  left:0;right:0;
  width:100%;
  top:4px;
  margin:0;
  height:20px;
  background:none;
  pointer-events:none;
  -webkit-appearance:none;
  appearance:none;
}
.wallet-slider-track input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  pointer-events:auto;
  width:18px;height:18px;
  border-radius:50%;
  border:2px solid var(--accent);
  background:var(--paper);
  box-shadow:0 1px 4px rgba(22,70,47,.18);
  cursor:pointer;
}
.wallet-slider-track input[type="range"]::-moz-range-thumb{
  pointer-events:auto;
  width:18px;height:18px;
  border-radius:50%;
  border:2px solid var(--accent);
  background:var(--paper);
  cursor:pointer;
}
.wallet-us-offers .tools-offers-cloud{
  display:flex;
  align-items:center;
  gap:8px;
  margin:2px 0 4px;
  font-size:13px;
  font-weight:700;
  color:var(--ink);
  cursor:pointer;
}
.wallet-us-offers{margin-top:0;position:relative}
.wallet-us-offers .tools-offers-layout{margin:0}
.wallet-panel{overflow:visible}
.wallet-listbar-sentinel{height:1px;margin:0;pointer-events:none}
.wallet-offers-listbar{
  position:sticky;
  top:var(--header-offset, 66px);
  z-index:12;
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:6px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:0 0 12px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--paper) 96%,var(--bg));
  box-shadow:0 8px 18px rgba(22,70,47,.08);
  backdrop-filter:blur(12px);
}
.wallet-offers-listbar.is-stuck{
  border-top-left-radius:0;
  border-top-right-radius:0;
}
.wallet-offers-listbar:has(.wallet-dd.is-open),
body.wallet-filter-open .wallet-offers-listbar,
body.wallet-filter-open .tools-offers-aside{
  z-index:190;
}
.wallet-dd-filter{flex:0.92 1 0}
.wallet-dd{
  position:relative;
  flex:1 1 0;
  min-width:0;
}
.wallet-dd-wide{flex:1.35 1 0}
.wallet-dd-native{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
.wallet-dd-btn{
  position:relative;
  width:100%;
  min-height:44px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:1px;
  padding:6px 22px 6px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.wallet-dd-btn::after{
  content:"";
  position:absolute;
  right:9px;
  top:50%;
  width:6px;height:6px;
  margin-top:-4px;
  border-right:1.5px solid var(--muted);
  border-bottom:1.5px solid var(--muted);
  transform:rotate(45deg);
}
.wallet-dd{position:relative}
.wallet-dd-btn small{
  font-size:10px;
  font-weight:750;
  color:var(--muted);
  letter-spacing:.02em;
}
.wallet-dd-btn b{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:750;
  line-height:1.25;
}
.wallet-dd.is-open .wallet-dd-btn{
  border-color:var(--accent);
  color:var(--accent);
}
.wallet-dd.is-open .wallet-dd-btn::after{transform:rotate(225deg);margin-top:-1px}
.wallet-dd-panel{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:100%;
  width:max-content;
  max-width:min(320px,70vw);
  max-height:min(320px,52vh);
  overflow:auto;
  padding:6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  box-shadow:0 16px 36px rgba(22,70,47,.14);
  z-index:20;
}
.wallet-dd-wide .wallet-dd-panel{max-width:min(360px,80vw)}
.wallet-filter-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.wallet-filter-act{
  flex:1 1 0;
  min-height:48px;
  border-radius:12px;
  font:inherit;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}
.wallet-filter-act-reset{
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--ink);
}
.wallet-filter-act-done{
  border:0;
  background:var(--accent);
  color:#fff;
}
.wallet-dd[data-dd="fee"] .wallet-dd-panel,
.wallet-dd[data-dd="spend"] .wallet-dd-panel{right:0;left:auto}
.wallet-dd-opt{
  display:block;
  width:100%;
  text-align:left;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.wallet-dd-opt:hover{background:var(--bg)}
.wallet-dd-opt.is-on{
  background:color-mix(in srgb,var(--accent) 12%,var(--paper));
  color:var(--accent);
}
.wallet-dd-panel-range{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:220px;
  max-width:70vw;
  padding:10px;
}
.wallet-dd-panel-range label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
}
.wallet-dd-panel-range input{
  width:110px;
  min-height:34px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--ink);
  font:inherit;
}
.wallet-dd-done{
  min-height:34px;
  border:0;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}
body.dark .wallet-offers-listbar{background:color-mix(in srgb,#1c1e1a 92%,#141612)}
body.dark .wallet-filter-actions{background:#1c1e1a;border-color:#343b32}
body.dark .wallet-filter-act-reset{background:#141612;border-color:#343b32}
@media (min-width:901px){
  .wallet-dd-filter{display:none}
  .wallet-offers-listbar.is-stuck{
    width:100%;
    max-width:100%;
    margin-left:0;
    padding:8px;
    border:1px solid var(--line);
    border-top:0;
  }
  .wallet-filter-act-done{display:none}
}
@media (max-width:900px){
  .wallet-offers-listbar{top:var(--header-offset, 56px)}
  .wallet-offers-listbar.is-stuck{
    width:100vw;
    max-width:100vw;
    margin-left:calc(50% - 50vw);
    padding:8px 12px;
    border-radius:0;
    border-left:0;
    border-right:0;
    border-top:0;
  }
  body.wallet-us-offers-on .wallet-us-offers .tools-offers-fab,
  body.wallet-us-offers-on .tools-offers-scrim{display:none!important}
  body.wallet-us-offers-on .tools-offers-aside{display:none}
  .wallet-dd.is-open:not(.wallet-dd-filter){position:static}
  .wallet-dd:not(.wallet-dd-filter) .wallet-dd-panel{
    left:8px;
    right:8px;
    width:auto;
    min-width:0;
    max-width:none;
    max-height:min(48vh, 360px);
    z-index:191;
  }
  html:has(body.wallet-filter-open),
  body.wallet-filter-open{
    overflow:hidden;
  }
  body.wallet-us-offers-on.wallet-filter-open .wallet-offers-listbar{
    position:fixed;
    top:var(--header-offset, 56px);
    left:0;
    right:0;
    width:100%;
    max-width:none;
    margin:0;
    padding:8px 12px;
    border-radius:0;
    border-left:0;
    border-right:0;
    border-top:0;
    z-index:191;
  }
  body.wallet-us-offers-on.wallet-filter-open .tools-offers-aside{
    display:flex !important;
    flex-direction:column;
    position:fixed !important;
    top:calc(var(--header-offset, 56px) + var(--wallet-listbar-h, 60px)) !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    max-width:none !important;
    max-height:none !important;
    height:calc(100dvh - var(--header-offset, 56px) - var(--wallet-listbar-h, 60px)) !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    background:var(--bg);
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    z-index:190 !important;
  }
  body.wallet-filter-open .tools-offers-aside .tools-offers-filters{
    flex:1 1 0;
    height:0;
    min-height:0;
    max-height:none;
    overflow-x:hidden;
    overflow-y:scroll;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:var(--bg);
    padding:12px 16px 20px;
  }
  body.wallet-filter-open .wallet-filter-actions{
    flex:0 0 auto;
    margin:0;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top:1px solid var(--line);
    background:var(--paper);
  }
  body.wallet-filter-open .wallet-filter-act{min-height:52px}
  body.wallet-filter-open .tools-offers-filter-stack{
    display:flex;
    flex-direction:column;
    gap:16px;
    min-width:0;
  }
  body.wallet-filter-open .tools-offers-set{
    min-width:0;
    padding:12px 0 0;
  }
  body.wallet-filter-open .tools-offers-set legend{
    display:flex;
    align-items:center;
    justify-content:space-between;
    float:none;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    font-size:13px;
    margin:0 0 8px;
    padding:0;
    text-align:left;
  }
  body.wallet-filter-open .tools-offers-reset{
    min-height:36px;
    margin-left:auto;
    padding:6px 12px;
    font-size:14px;
    border-radius:8px;
    background:color-mix(in srgb,var(--accent) 10%,var(--paper));
  }
  body.wallet-filter-open .tools-offers-cloud.wallet-check-label{
    display:flex;
    justify-content:flex-start;
    text-align:left;
    min-height:52px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:12px 14px;
    border-radius:12px;
    font-size:16px;
    gap:12px;
    white-space:normal;
  }
  body.wallet-filter-open .tools-offers-cloud input{
    width:22px;
    height:22px;
    flex:0 0 22px;
  }
  body.wallet-filter-open .tools-bank-checks,
  body.wallet-filter-open .tools-bank-checks-col{
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    gap:8px;
    margin-top:10px;
    min-width:0;
  }
  body.wallet-filter-open #off-kinds.tools-bank-checks-col{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  body.wallet-filter-open .wallet-filter-chip{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:48px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:12px 14px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--paper);
    color:var(--ink);
    font-size:15px;
    font-weight:700;
    line-height:1.3;
    white-space:normal;
    overflow-wrap:anywhere;
    -webkit-tap-highlight-color:transparent;
  }
  body.wallet-filter-open .wallet-filter-chip span{min-width:0;flex:1}
  body.wallet-filter-open .wallet-filter-chip input{
    width:20px;
    height:20px;
    flex:0 0 20px;
    accent-color:var(--accent);
    margin:0;
  }
  body.wallet-filter-open .wallet-filter-chip:has(input:checked){
    border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
    background:color-mix(in srgb,var(--accent) 12%,var(--paper));
    color:var(--accent);
  }
  body.wallet-filter-open .wallet-slider{margin-top:10px;min-width:0}
  body.wallet-filter-open .wallet-slider-meta{font-size:14px;margin-bottom:10px}
  body.wallet-filter-open .wallet-slider-track{height:44px}
  body.wallet-filter-open .wallet-slider-track::before{
    top:20px;
    height:6px;
  }
  body.wallet-filter-open .wallet-slider-fill{top:20px;height:6px}
  body.wallet-filter-open .wallet-slider-track input[type="range"]{
    top:0;
    height:44px;
  }
  body.wallet-filter-open .wallet-slider-track input[type="range"]::-webkit-slider-thumb{
    width:28px;
    height:28px;
  }
  body.wallet-filter-open .wallet-slider-track input[type="range"]::-moz-range-thumb{
    width:28px;
    height:28px;
  }
  .wallet-dd-opt{
    min-height:46px;
    padding:12px 14px;
    font-size:15px;
  }
}
.wallet-us-offers .tools-panel.tools-offers-results{
  margin:0;
  padding:0;
  border:0;
  box-shadow:none;
  background:transparent;
}
@media (max-width:900px){
  body.wallet-us-offers-on .wallet-catalog{padding-top:0}
}

/* ===== 卡包：排序 + 扩展对比字段 ===== */
.wallet-sort-label select{
  min-height:42px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--bg);
  color:var(--ink);
  font:inherit;
  font-size:13px;
  font-weight:600;
  max-width:180px;
}
.wallet-ftf.free{color:var(--green);font-weight:700}
.wallet-ftf.bad{color:#a33;font-weight:700}
@media (max-width:800px){
  .wallet-search-bar{flex-wrap:wrap}
  .wallet-sort-label{flex:1 1 100%}
  .wallet-sort-label select{max-width:none;width:100%}
}

/* ===== 卡包工具条：左摘要 + 右品牌/排序下拉 ===== */
.wallet-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:4px 0 16px;
  padding:4px 0 2px;
}
.wallet-toolbar[hidden],
[data-wallet-classic][hidden]{display:none!important}
.wallet-meta-title{
  margin:0;
  flex:1 1 auto;
  min-width:0;
  color:var(--ink);
  font-size:18px;
  font-weight:750;
  letter-spacing:-.3px;
  line-height:1.35;
}
.wallet-meta-title .wallet-meta-count{
  margin-left:6px;
  color:var(--muted);
  font-size:14px;
  font-weight:650;
}
.wallet-toolbar-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
  margin-left:auto;
}
.wallet-select-label select,
.wallet-sort-label select{
  min-height:38px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg);
  color:var(--ink);
  font:inherit;
  font-size:13px;
  font-weight:600;
  max-width:200px;
  cursor:pointer;
}
.wallet-select-label select:disabled{
  opacity:.55;
  cursor:not-allowed;
}
body.dark .wallet-select-label select{
  background:#181a16;
  border-color:#343b32;
}
@media (max-width:720px){
  .wallet-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .wallet-toolbar-right{
    width:100%;
    margin-left:0;
  }
  .wallet-select-label{flex:1}
  .wallet-select-label select{
    width:100%;
    max-width:none;
  }
  .wallet-meta-title{font-size:16px}
}

/* 云居民可申勾选 */
.wallet-check-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg);
  color:var(--ink);
  font-size:13px;
  font-weight:650;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.wallet-check-label input{
  margin:0;
  width:15px;
  height:15px;
  accent-color:var(--accent);
  cursor:pointer;
}
.wallet-check-label:has(input:checked){
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line));
  background:color-mix(in srgb,var(--accent) 10%,var(--paper));
  color:var(--accent);
}
body.dark .wallet-check-label{background:#181a16;border-color:#343b32}
@media (max-width:720px){
  .wallet-check-label{flex:1 1 auto;justify-content:center}
}

/* 云居民可申：列表/详情/对比突出展示 */
.wallet-row-tags{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin:4px 0 6px;
}
.wallet-cloud-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.3;
  border:1px solid transparent;
}
.wallet-cloud-badge b{font-weight:900}
.wallet-cloud-badge.is-yes{
  color:#0f5f3d;
  background:linear-gradient(135deg,#e8f7ef,#d4f0e0);
  border-color:#9fd4bc;
}
.wallet-cloud-badge.is-no{
  color:#6b7280;
  background:#f1f2f4;
  border-color:#d5d8de;
}
.wallet-cloud-badge.is-local{
  color:#8a5a12;
  background:linear-gradient(135deg,#fff6e4,#fdecc8);
  border-color:#e8c888;
}
body.dark .wallet-cloud-badge.is-yes{
  color:#9ee0bf;
  background:#163025;
  border-color:#2f6b50;
}
body.dark .wallet-cloud-badge.is-no{
  color:#9aa0a6;
  background:#222;
  border-color:#444;
}
body.dark .wallet-cloud-badge.is-local{
  color:#f0c987;
  background:#33260f;
  border-color:#6b5324;
}
body.dark .wallet-stat-cloud.is-local{
  border-color:#6b5324;
  background:#33260f;
}
body.dark .wallet-stat-cloud.is-yes{
  border-color:#2f6b50;
  background:#163025;
}
.wallet-compare-table tr:has([class*="wallet-cloud-badge"]) th[scope="row"]{
  color:var(--accent);
  font-weight:800;
}
