.vip-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff4dd;
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid #5d382b;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 93% 110%, #8d5941 0, transparent 51%),
    linear-gradient(110deg, #332321, #55332a 70%, #744330);
  box-shadow: 0 10px 27px #4c302112;
}
.vip-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 45%;
  opacity: 0.35;
  background: repeating-radial-gradient(
    ellipse at 105% 135%,
    transparent 0 23px,
    #d5ad74 24px,
    transparent 25px 41px
  );
  mask-image: linear-gradient(90deg, transparent, #000);
}
.vip-hero h1 {
  font-weight: 750;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  letter-spacing: -0.055em;
  line-height: 1.14;
  margin: 12px 0 8px;
  color: #fff4dd;
}
.vip-kicker,
.vip-caption {
  margin: 0;
}
.vip-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f4d6a7;
  font-size: 0.84rem;
}
.vip-caption {
  color: #ead9c7;
  line-height: 1.6;
}
.vip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.vip-cta {
  background: #f1d4a1;
  color: #412919;
  border: 1px solid #f0dcbd;
}
.vip-ghost {
  background: #ffffff0d;
  color: #fff0d6;
  border: 1px solid #ac8467;
}
.vip-cta:active,
.vip-ghost:active {
  filter: brightness(0.9);
}
.vip-actions a:focus-visible {
  outline-color: #ffedbb;
}
.vip-seal {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(95px, 13vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #c59d68;
  box-shadow:
    0 0 0 6px #d1a66f19,
    0 0 0 8px #d8a66955,
    0 8px 22px #311d1d4d;
  color: #f3d097;
  background: linear-gradient(146deg, #74513d, #4c312a 66%);
  margin-right: 3%;
}
.vip-seal div {
  width: 87%;
  height: 87%;
  border: 1px dashed #c29c6a88;
  border-radius: 50%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
}
.vip-seal svg {
  width: 35%;
  height: auto;
}
.vip-seal b {
  font:
    600 clamp(17px, 2.5vw, 28px) Georgia,
    serif;
  letter-spacing: 0.14em;
  margin-left: 0.14em;
}
.data-switch {
  display: inline-flex;
  background: #ede2d3;
  border: 1px solid #e2d2be;
  border-radius: 12px;
  padding: 3px;
  margin: 16px 0 0;
  gap: 2px;
}
.data-switch a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 9px;
  padding: 0 15px;
  color: #604f43;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
}
.data-switch a[aria-current='page'] {
  background: #fffaf2;
  color: #583326;
  box-shadow: 0 1px 3px #70503a2d;
}
.vip-stats {
  margin: 18px 0;
}
.points-rules-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 8px;
}
.rank-panel .points-rules-toolbar {
  margin: -4px 0 5px;
}
.point-rules-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  color: #873d2c;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.point-rules-link .icon {
  width: 16px;
  height: 16px;
}
.record-grid .point-rules-link {
  margin-left: 5px;
}
.feedback-rules-access {
  margin: -10px 0 5px;
}
.feedback-priority {
  margin: 0;
}
.feedback-priority .hint {
  margin: 0 0 10px;
}
.priority-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.priority-option span {
  display: flex;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  text-align: left;
}
.priority-option strong {
  flex: none;
  color: #7d3528;
  font-size: 15px;
}
.priority-option small {
  color: inherit;
  font-size: 12px;
  line-height: 1.45;
}
.points-dialog {
  width: min(580px, calc(100vw - 30px));
  max-height: min(720px, calc(100dvh - 30px));
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 12px 12px;
  border: 1px solid #d6bfa6;
  border-radius: 20px;
  color: #3f2b23;
  background: #fffaf3;
  box-shadow: 0 24px 65px #2b1a1a47;
}
.points-dialog[open] {
  display: flex;
  flex-direction: column;
}
.points-dialog::backdrop {
  background: #2b1e1c9c;
}
.points-dialog-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 12px 10px;
  border-bottom: 1px solid #ead9c7;
  background: #fffaf3;
}
.points-dialog-body,
.dialog-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px 12px 12px;
  scrollbar-color: #d8bda2 transparent;
  scrollbar-width: thin;
}
.points-dialog-head p {
  margin: 0;
}
.points-dialog h2 {
  margin: 4px 0 0;
  font-size: 24px;
}
.points-dialog h3 {
  margin: 22px 0 10px;
  font-size: 16px;
}
.points-dialog-body > p {
  line-height: 1.65;
  color: #665146;
}
.points-dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dcc5b0;
  border-radius: 12px;
  color: #633e31;
  background: #fff8ee;
  cursor: pointer;
}
.points-dialog-close .icon {
  width: 19px;
  height: 19px;
}
.points-formula {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.points-formula span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e4cfb2;
  border-radius: 12px;
  color: #6d5748;
  background: #f8efdf;
  font-size: 12px;
}
.points-formula b {
  color: #8a4b21;
  font-size: 18px;
}
.points-levels {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e8d6c2;
  border-radius: 12px;
  background: #e8d6c2;
}
.points-levels div {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fffaf3;
  font-size: 13px;
}
.points-levels strong,
.points-levels b,
.points-example strong {
  color: #8a4b21;
}
@media (hover: hover) and (pointer: fine) {
  .point-rules-link:hover,
  .points-dialog-close:hover {
    color: #713526;
    background: #f4e4d2;
  }
}
@media (max-width: 600px) {
  .priority-options,
  .points-formula {
    grid-template-columns: 1fr;
  }
  .points-dialog {
    padding: 0 8px 8px;
  }
  .points-dialog-head {
    padding: 18px 10px 10px;
  }
  .points-dialog-body,
  .dialog-content {
    padding: 15px 10px 10px;
  }
}
.vip-stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fffaf2;
  border-color: #dfcdb8;
}
.vip-stat:last-child {
  background: linear-gradient(125deg, #fff8e7, #f0dfba);
  border-color: #dec89f;
}
.vip-stat strong {
  font-variant-numeric: tabular-nums;
  color: #5d3528;
  letter-spacing: -0.03em;
}
.vip-stat:last-child strong {
  color: #744b16;
}
.data-note {
  color: #6e5b4b;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 12px 0 17px;
}
.data-note svg {
  flex: none;
  margin-top: 2px;
}
.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 0.71rem;
  line-height: 1.45;
  font-weight: 650;
}
.source-tag .icon {
  width: 13px;
  height: 13px;
}
.from-web {
  color: #735039;
  background: #f5e8d8;
}
.from-miya {
  color: #485b54;
  background: #e5eee6;
}
.item-head .source-tag {
  margin-right: auto;
}
.rank-panel {
  margin-top: 18px;
}
.rank-scroll {
  overflow-x: auto;
}
.rank-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.rank-panel th,
.rank-panel td {
  padding: 12px 7px;
  text-align: right;
  border-top: 1px solid #e8dacb;
}
.rank-panel th:first-child,
.rank-panel td:first-child,
.rank-panel th:nth-child(2) {
  text-align: left;
}
.rank-panel thead th {
  color: #735c4b;
  font-size: 0.77rem;
  font-weight: 550;
}
.mine-row {
  background: #f6ead4;
}
.mine-row small {
  margin-left: 5px;
  font-size: 0.69rem;
  color: #795129;
}
.rank-panel td b {
  color: #794f1c;
}
.rank-number.medal {
  font-weight: 700;
  color: #81551d;
}
.my-rank {
  color: #6e5039;
  font-size: 0.88rem;
  margin: 13px 0;
}
.rank-panel .empty {
  padding: 20px 0;
}
.vip-hero + .rank-panel {
  margin-top: 18px;
}
@media (hover: hover) and (pointer: fine) {
  .vip-cta:hover {
    background: #ffe6b9;
  }
  .vip-ghost:hover {
    background: #ffffff20;
  }
  .data-switch a:hover {
    background: #fff7e9;
  }
}
@media (max-width: 560px) {
  .vip-seal {
    position: absolute;
    right: 20px;
    top: 23px;
    width: 53px;
    margin: 0;
    box-shadow: 0 0 0 3px #d8a66944;
  }
  .vip-seal b {
    font-size: 12px;
  }
  .vip-seal svg {
    width: 25%;
  }
  .vip-kicker {
    padding-right: 54px;
  }
  .vip-hero {
    padding: 23px 17px;
  }
  .vip-hero h1 {
    max-width: 85%;
    font-size: 1.7rem;
  }
  .vip-caption {
    font-size: 0.87rem;
  }
  .vip-actions {
    margin-top: 17px;
  }
  .rank-panel th,
  .rank-panel td {
    padding: 10px 3px;
    font-size: 0.8rem;
  }
  .item-head {
    flex-wrap: wrap;
  }
  .vip-stats .stat {
    padding: 14px 10px;
  }
  .vip-stats .stat span {
    font-size: 0.78rem;
  }
}

.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.device-badge .icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.vip-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vip-stat.points-stat {
  background: linear-gradient(125deg, #fff8e7, #f0dfba);
  border-color: #dec89f;
}
.vip-stat.points-stat strong {
  color: #744b16;
}
.vip-stat.rank-stat {
  background: #fffaf2;
  border-color: #dfcdb8;
}
.stat-action {
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stat-action small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #81553c;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.stat-value-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.stat-action small .icon {
  width: 13px;
  height: 13px;
}
.rank-stat strong {
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  white-space: nowrap;
}
.rank-stat strong.pending {
  font-size: clamp(1rem, 2vw, 1.5rem);
}
.stat-action:focus-visible,
.feedback-open:focus-visible,
.copy-issue:focus-visible,
.feedback-status-filters button:focus-visible,
.feedback-pagination button:focus-visible {
  outline: 3px solid #7c4938;
  outline-offset: 2px;
}
.stat-action:active,
.feedback-open:active,
.copy-issue:active,
.feedback-status-filters button:active,
.feedback-pagination button:active {
  filter: brightness(0.94);
}
.feedback-item {
  padding: 0;
}
.feedback-open {
  position: relative;
  display: grid;
  width: 100%;
  padding: 14px 8px 7px;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.feedback-open .item-head {
  min-width: 0;
}
.feedback-open .item-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.feedback-open .preview-line {
  display: block;
  margin: 0;
  max-width: 100%;
}
.feedback-open .meta {
  display: block;
  color: #806c5a;
  line-height: 1.55;
}
.feedback-open-hint {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  color: #965842;
  font-size: 12px;
}
.feedback-open-hint .icon {
  width: 14px;
  height: 14px;
}
.feedback-open .meta {
  padding-right: 82px;
}
.issue-line,
.detail-issue {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  margin: 0 8px 9px;
  color: #806b59;
  font-size: 12px;
}
.issue-value {
  min-width: 0;
  overflow-wrap: anywhere;
}
.issue-line code,
.detail-issue code,
.points-ledger-table code {
  color: #6f4536;
  font: 600 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.copy-issue {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin-left: 2px;
  padding: 0 0 0 4px;
  vertical-align: middle;
  border: 0;
  border-radius: 9px;
  color: #7c4736;
  background: transparent;
  cursor: pointer;
}
.copy-issue .icon {
  width: 18px;
  height: 18px;
}
.feedback-filters {
  display: grid;
  gap: 13px;
  margin: 10px 0 16px;
}
.feedback-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.feedback-status-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #dbc6b2;
  border-radius: 10px;
  color: #695144;
  background: #fffaf3;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.feedback-status-filters button[aria-pressed='true'] {
  border-color: #ae5a40;
  color: #853a29;
  background: #fae9dd;
  box-shadow: inset 0 0 0 1px #ae5a40;
}
.feedback-status-filters button span {
  color: inherit;
  opacity: 0.72;
}
.feedback-more-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feedback-more-filters label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #675143;
  font-size: 12px;
  font-weight: 600;
}
.feedback-more-filters label:first-child {
  min-width: 220px;
}
.feedback-more-filters .picker-trigger {
  flex: 1;
  width: auto;
  min-width: 140px;
}
.feedback-more-filters select,
.feedback-more-filters input {
  width: min(210px, 100%);
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d9c4ae;
  border-radius: 9px;
  color: #4e382d;
  background: #fffaf3;
  font-family: inherit;
  font-size: 14px;
}
.feedback-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 16px;
  color: #6c5748;
  font-size: 13px;
}
.feedback-pagination[hidden] {
  display: none;
}
.feedback-pagination button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #d9c4ae;
  border-radius: 9px;
  color: #704635;
  background: #fffaf2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.feedback-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.feedback-detail-dialog {
  width: min(740px, calc(100vw - 24px));
}
.points-page {
  margin-top: 18px;
}
.points-page .points-rules-toolbar {
  margin: -4px 0 8px;
}
.points-page .rank-scroll {
  margin-top: 12px;
}
.points-page .rank-scroll:focus-visible {
  outline: 3px solid #7c4938;
  outline-offset: 2px;
}
.ledger-scroll-hint {
  display: none;
}
.points-ledger-table tr[hidden] {
  display: none;
}
.ledger-pagination {
  margin-top: 16px;
}
.dialog-content {
  margin-top: 0;
}
.feedback-detail-view h3 {
  margin: 18px 0 7px;
  font-size: 15px;
}
.feedback-detail-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
}
.native-deleted-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  padding: 11px 13px;
  border: 1px solid #e1c69d;
  border-radius: 10px;
  color: #73522e;
  background: #fff3db;
  font-size: 13px;
  line-height: 1.55;
}
.native-deleted-note .icon {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.native-deleted-inline {
  display: block;
  margin-top: 5px;
  color: #815e37;
  font-size: 12px;
  line-height: 1.45;
}
.feedback-detail-view .detail-issue {
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid #e4d3c1;
  border-radius: 10px;
  background: #f8f0e5;
}
.feedback-detail-view .record-grid {
  margin-top: 10px;
}
.feedback-detail-view .record-grid dd .device-badge {
  margin: 0 0 5px;
}
.feedback-detail-view .record-grid .record-devices {
  grid-column: 1 / -1;
}
.detail-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 5px 0;
}
.detail-device + .detail-device {
  border-top: 1px solid #e7d7c4;
}
.detail-device small,
.more-devices {
  color: #836b58;
  font-size: 12px;
}
.feedback-detail-view .ledger li {
  padding: 7px 0;
  border-top: 1px solid #ecdfd2;
}
.ledger-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e4cda9;
  border-radius: 12px;
  color: #6d5036;
  background: #f8ebd2;
}
.ledger-total strong {
  color: #724815;
  font-size: 23px;
}
.points-future {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 15px 16px;
  border: 1px solid #e6d9c7;
  border-radius: 12px;
  background: #fff9f0;
}
.points-future-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: #f4e8d2;
  color: #8b5b24;
}
.points-future-icon .icon {
  width: 20px;
  height: 20px;
}
.points-future h3 {
  margin: 0 0 4px;
  color: #54382c;
  font-size: 14px;
  line-height: 1.5;
}
.points-future p {
  margin: 0;
  color: #756352;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.points-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.points-ledger-table th:nth-child(2),
.points-ledger-table td:nth-child(2) {
  min-width: 260px;
}
.points-ledger-table td:nth-child(2) code {
  overflow-wrap: normal;
  white-space: nowrap;
}
.points-ledger-table th:nth-child(3),
.points-ledger-table td:nth-child(3) {
  min-width: 200px;
}
.points-ledger-table th,
.points-ledger-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e8d9c9;
  text-align: left;
  vertical-align: top;
}
.points-ledger-table th {
  color: #725d4d;
  font-weight: 600;
}
.points-ledger-table td:last-child {
  white-space: nowrap;
  color: #744b16;
  text-align: right;
}
@media (hover: hover) and (pointer: fine) {
  .stat-action:hover,
  .feedback-open:hover,
  .copy-issue:hover,
  .feedback-status-filters button:not([aria-pressed='true']):hover,
  .feedback-pagination button:not(:disabled):hover {
    background-color: #f8eee1;
    border-color: #c89875;
  }
  .vip-stat.points-stat:hover {
    background: linear-gradient(125deg, #fff1d3, #ead1a2);
  }
}
@media (max-width: 900px) {
  .vip-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .issue-line,
  .detail-issue {
    display: block;
  }
  .issue-line .issue-label,
  .detail-issue .issue-label {
    display: block;
  }
  .issue-line .issue-value,
  .detail-issue .issue-value {
    display: block;
  }
  .ledger-scroll-hint {
    display: block;
    margin: 0;
  }
  .feedback-more-filters {
    display: grid;
  }
  .feedback-more-filters label {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .feedback-more-filters label:first-child {
    min-width: 0;
  }
  .feedback-more-filters select,
  .feedback-more-filters input {
    width: 100%;
  }
  .feedback-open .meta {
    padding-right: 0;
  }
  .feedback-open-hint {
    position: static;
  }
  .stat-action small {
    font-size: 0.68rem;
  }
  .feedback-detail-dialog .record-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat-action,
  .feedback-open,
  .copy-issue,
  .feedback-status-filters button,
  .feedback-pagination button {
    transition: none;
  }
}

/* 以内容区的实际空间决定卡片列数，兼容折叠态和放大的系统字号。 */
.workspace {
  container-type: inline-size;
}
.rank-panel table {
  min-width: 34rem;
}
.rank-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
@media (max-width: 430px) {
  .vip-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width: 20rem) {
  .vip-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
