/* DEEPMINE v11.55 — 「退款领取」: the field pill in the right rail (.field-events) and the 'refund' panel.
   Teal/slate identity distinct from the gold 邀请抽奖 pill and the night-blue 幸运矿工 pill. */
@layer pages {
  /* ───────── field rail: third pill, compact so three still fit on 390px ───────── */
  .refund-entry {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    max-width: 62vw;
    padding: 3px 11px 3px 4px;
    border-radius: 999px;
    color: #eafaf3;
    background: linear-gradient(180deg, #1d4a3c, #123026);
    border: 1.5px solid #7fd8b0;
    box-shadow: 0 3px 0 #081a13, 0 0 12px rgb(127 216 176 / .35);
    font-size: var(--fs-12, 12px);
    font-weight: 800;
    white-space: nowrap;
  }
  .refund-entry[hidden] { display: none; }
  .refund-entry-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #a9f0d2, #35a37a 60%, #134336); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .35); flex: none; }
  .refund-entry-icon svg { width: 16px; height: 16px; color: #06241a; }
  .refund-entry-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .refund-entry-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #d9412f; border: 2px solid #fff; }
  .refund-entry-dot[hidden] { display: none; }
  .refund-entry:active { transform: translateY(2px); box-shadow: 0 1px 0 #081a13, 0 0 10px rgb(127 216 176 / .3); }

  /* ───────── panel ───────── */
  .refund-panel { display: grid; gap: 12px; }
  .refund-panel .card { padding: 14px; }
  .refund-lead, .refund-note, .refund-loading { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--fs-12, 12px); line-height: 1.45; }
  .refund-lead svg, .refund-note svg, .refund-loading svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
  .refund-note { color: var(--text-3, #9db3a7); }
  .refund-list { display: grid; gap: 10px; }
  .refund-card { display: grid; gap: 10px; border: 1px solid rgb(127 216 176 / .35); background: radial-gradient(circle at 88% 0, rgb(127 216 176 / .16), transparent 62%), var(--surface-1, #123326); }
  .refund-card.is-claimed { border-color: var(--line, rgb(206 228 196 / .18)); background: var(--surface-1, #123326); }
  .refund-card-head { display: flex; align-items: center; gap: 10px; }
  .refund-emblem { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--gold-200, #fbdc8e); background: rgb(255 255 255 / .06); border: 1px solid rgb(245 200 105 / .35); }
  .refund-emblem svg { width: 24px; height: 24px; }
  .refund-card-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 2px; }
  .refund-card-copy h3 { margin: 0; font-size: var(--fs-15, 15px); font-weight: 800; color: var(--text-1, #f2f8f4); }
  .refund-card-copy small { color: var(--text-3, #9db3a7); font-size: var(--fs-11, 11.5px); line-height: 1.35; }
  .refund-state { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 9px; border-radius: 999px; font-size: var(--fs-11, 11.5px); font-weight: 800; color: var(--text-3, #9db3a7); background: rgb(255 255 255 / .06); }
  .refund-state.is-open { color: #06241a; background: #7fd8b0; }
  .refund-state.is-done { color: #9fe9c9; background: rgb(53 163 122 / .22); }
  .refund-state svg { width: 14px; height: 14px; }
  .refund-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
  .refund-amount { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 10px; border-radius: 10px; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .07); font-variant-numeric: tabular-nums; }
  .refund-amount b { font-size: var(--fs-15, 15px); font-weight: 800; color: var(--gold-100, #ffe9ad); }
  .refund-amount small { font-size: var(--fs-11, 11.5px); font-weight: 700; color: var(--text-3, #9db3a7); }
  .refund-amount .currency-icon { align-self: center; }
  .refund-amount.is-empty { color: var(--text-3, #9db3a7); }
  .refund-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .refund-claim { min-width: 96px; }
  .refund-foot-note { color: var(--text-3, #9db3a7); font-size: var(--fs-11, 11.5px); }
  .refund-history { display: grid; gap: 8px; }
  .refund-history-title { margin: 0; font-size: var(--fs-13, 13px); font-weight: 800; color: var(--text-2, #cfe3d8); }
  .refund-history-row { align-items: flex-start; }
  .refund-history-row .list-copy { min-width: 0; }
  .refund-history-row .list-sub { color: var(--gold-100, #ffe9ad); font-variant-numeric: tabular-nums; }
  .refund-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 12px; text-align: center; }
  .refund-empty h3 { margin: 0; font-size: var(--fs-15, 15px); }
  .refund-empty p { margin: 0; color: var(--text-3, #9db3a7); font-size: var(--fs-12, 12px); }
  .refund-error { display: flex; align-items: center; gap: 8px; }
  .refund-error span { flex: 1 1 auto; }
  @media (max-width: 374px) {
    .refund-entry-label { max-width: 96px; }
    .refund-entry { font-size: var(--fs-11, 11.5px); }
  }
}
