/* =========================================================
   战备商行 · 个人中心
   我的资料 / 租赁 / 出租 / 发布 / 钱包 / 消息
   ========================================================= */

:root {
  --p-bg: #eef5fc;
  --p-surface: #ffffff;
  --p-soft: #f8fbff;
  --p-ink: #0c1a31;
  --p-text: #3d4d63;
  --p-muted: #8795a8;
  --p-dim: #a5b2c1;
  --p-line: #e4edf7;
  --p-line-strong: #d7e4f2;
  --p-blue: #2d6cff;
  --p-blue-soft: #eaf3ff;
  --p-navy: #0a1c3a;
  --p-gold: #d9a53e;
  --p-gold-soft: #fff8e8;
  --p-green: #159b70;
  --p-red: #e25252;
  --p-shadow: 0 3px 14px rgba(30, 57, 92, 0.05);
  --p-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --p-display: "Bahnschrift", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.night {
  --p-bg: #0c1420;
  --p-surface: #121c2b;
  --p-soft: #172235;
  --p-ink: #edf4ff;
  --p-text: #c5d2e3;
  --p-muted: #8b9ab0;
  --p-dim: #63738a;
  --p-line: #263448;
  --p-line-strong: #34455d;
  --p-blue: #6d99ff;
  --p-blue-soft: #18263c;
  --p-navy: #eaf2ff;
  --p-gold-soft: #2b2519;
  --p-shadow: 0 3px 16px rgba(0, 0, 0, 0.23);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--p-text);
  background: var(--p-bg);
  font-family: var(--p-sans);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.p-dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.p-container {
  width: min(1620px, calc(100% - 100px));
  margin: 0 auto;
}

/* =========================================================
   Topbar
   ========================================================= */

.p-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--p-line);
  background: var(--p-surface);
}

.p-topbar__inner {
  display: flex;
  width: min(1620px, calc(100% - 100px));
  height: 100%;
  align-items: center;
  gap: 44px;
  margin: 0 auto;
}

.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #10213d;
}

body.night .p-brand {
  color: var(--p-ink);
}

.p-brand i {
  width: 14px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.8;
}

.p-brand strong {
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.p-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 37px;
}

.p-nav a,
.p-nav button {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: #4e5d72;
  font-size: 13.5px;
  white-space: nowrap;
}

.p-nav a:hover,
.p-nav button:hover {
  color: var(--p-blue);
}

.p-nav a.is-active {
  color: var(--p-blue);
  font-weight: 500;
}

.p-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 32px;
  height: 2px;
  background: var(--p-blue);
  transform: translateX(-50%);
}

.p-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.p-utility {
  display: flex;
  align-items: center;
  gap: 13px;
}

.p-utility button {
  color: #78889c;
  font-size: 10.5px;
  white-space: nowrap;
}

.p-utility button:hover {
  color: var(--p-blue);
}

.p-night {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.p-night .icon {
  width: 13px;
  height: 13px;
}

.p-user {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 13px;
  border-left: 1px solid var(--p-line);
  text-align: left;
}

.p-user__avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0e2544;
  color: #cbe2ff;
}

.p-user__avatar .icon {
  width: 19px;
  height: 19px;
}

.p-user__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.35;
}

.p-user__info strong {
  color: var(--p-ink);
  font-family: var(--p-display);
  font-size: 11px;
  font-weight: 600;
}

.p-user__info small {
  color: var(--p-muted);
  font-size: 8px;
}

.p-logout {
  color: #9ca9b8;
  font-size: 10px;
  white-space: nowrap;
}

.p-logout:hover {
  color: var(--p-red);
}

/* =========================================================
   Layout
   ========================================================= */

.p-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 470px;
  align-items: start;
  gap: 20px;
  padding: 20px 0 48px;
}

.p-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-side-nav {
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--p-line);
  border-radius: 9px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-side-link {
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border-left: 3px solid transparent;
  border-radius: 5px;
  color: #4b5b70;
  font-size: 13.5px;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.p-side-link .icon {
  width: 17px;
  height: 17px;
  color: #7f8da0;
  stroke-width: 1.7;
}

.p-side-link:hover {
  background: var(--p-soft);
  color: var(--p-blue);
}

.p-side-link.is-active {
  border-left-color: var(--p-blue);
  background: var(--p-blue-soft);
  color: var(--p-blue);
  font-weight: 500;
}

.p-side-link.is-active .icon {
  color: var(--p-blue);
}

.p-support-card {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  gap: 3px 9px;
  padding: 13px;
  border: 1px solid var(--p-line);
  border-radius: 9px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-support-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--p-blue-soft);
  color: var(--p-blue);
}

.p-support-icon .icon {
  width: 19px;
  height: 19px;
}

.p-support-card > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.p-support-card strong {
  color: var(--p-ink);
  font-size: 12px;
  font-weight: 600;
}

.p-support-card span {
  color: var(--p-muted);
  font-size: 9px;
}

.p-support-card button {
  display: flex;
  height: 35px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
  border-radius: 5px;
  background: var(--p-navy);
  color: #fff;
  font-size: 10.5px;
}

body.night .p-support-card button {
  color: #0b1838;
}

.p-support-card button .icon {
  width: 11px;
  height: 11px;
}

.p-main {
  min-width: 0;
}

/* =========================================================
   Common cards / profile
   ========================================================= */

.p-card {
  border: 1px solid var(--p-line);
  border-radius: 9px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-profile-card {
  padding: 24px;
}

.p-profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.p-profile-avatar {
  display: grid;
  place-items: center;
  width: 77px;
  height: 77px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0d2545;
  color: #c9e3ff;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.p-profile-avatar .icon {
  width: 42px;
  height: 42px;
}

.p-profile-info {
  min-width: 0;
  flex: 1;
}

.p-profile-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.p-profile-name h1 {
  color: var(--p-ink);
  font-family: var(--p-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.p-tag {
  display: inline-flex;
  height: 20px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #cfe1f7;
  border-radius: 3px;
  background: #f4f9ff;
  color: #5c87b5;
  font-size: 8.5px;
  line-height: 1;
}

.p-tag--muted {
  border-color: var(--p-line);
  background: var(--p-soft);
  color: var(--p-muted);
}

.p-profile-slogan {
  margin-top: 4px;
  color: var(--p-text);
  font-size: 12px;
}

.p-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  color: var(--p-muted);
  font-size: 9.5px;
}

.p-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.p-profile-meta .icon {
  width: 12px;
  height: 12px;
}

.p-checkin {
  display: flex;
  min-height: 59px;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
  padding: 9px 13px;
  border: 1px solid #eadffc;
  border-radius: 6px;
  background: linear-gradient(90deg, #f5f0ff, #fbf8ff);
}

.p-checkin-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e9ddff;
  color: #845ed8;
}

.p-checkin-icon .icon {
  width: 18px;
  height: 18px;
}

.p-checkin > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.p-checkin strong {
  color: #443361;
  font-size: 12.5px;
  font-weight: 600;
}

.p-checkin strong em {
  margin-left: 3px;
  color: #8a5de1;
  font-style: normal;
}

.p-checkin span {
  color: #927fa6;
  font-size: 9.5px;
}

.p-checkin span b {
  color: #7f56d2;
  font-weight: 600;
}

.p-checkin button {
  height: 31px;
  padding: 0 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, #9a6bea, #8054dc);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(125, 82, 214, 0.18);
}

.p-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.p-stat {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
  text-align: left;
}

.p-stat:hover {
  border-color: #c7dcf0;
}

.p-stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #0c2344;
  color: #d6e7ff;
}

.p-stat-icon--blue {
  background: #eaf2ff;
  color: #2e6cd8;
}

.p-stat-icon--gold {
  background: #fff1c9;
  color: #d39720;
}

.p-stat-icon--violet {
  background: #eee9ff;
  color: #7655ce;
}

.p-stat-icon .icon {
  width: 25px;
  height: 25px;
}

.p-stat-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.p-stat-info span {
  color: var(--p-muted);
  font-size: 9px;
  line-height: 1.3;
}

.p-stat-info strong {
  color: var(--p-ink);
  font-family: var(--p-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.p-stat-info small {
  color: var(--p-muted);
  font-size: 8.5px;
}

.p-orders {
  margin-top: 12px;
  padding: 14px 16px;
}

.p-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.p-card-head h2 {
  color: var(--p-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.p-card-head button {
  color: var(--p-blue);
  font-size: 9.5px;
  white-space: nowrap;
}

.p-table-wrap {
  overflow-x: auto;
}

.p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
  white-space: nowrap;
}

.p-table th {
  height: 34px;
  padding: 0 11px;
  background: var(--p-soft);
  color: var(--p-muted);
  font-size: 8.5px;
  font-weight: 400;
  text-align: left;
}

.p-table td {
  height: 39px;
  padding: 0 11px;
  border-bottom: 1px solid var(--p-line);
  color: var(--p-text);
}

.p-table-empty {
  display: flex;
  height: 92px;
  align-items: center;
  justify-content: center;
  color: var(--p-muted);
  font-size: 10px;
}

/* =========================================================
   List views
   ========================================================= */

.p-filter-card {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-filter-card--standalone {
  display: block;
}

.p-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.p-tabs::-webkit-scrollbar {
  display: none;
}

.p-tab {
  position: relative;
  height: 33px;
  padding: 0 14px;
  color: #69798d;
  font-size: 10.5px;
  white-space: nowrap;
}

.p-tab:hover {
  color: var(--p-blue);
}

.p-tab.is-active {
  border-bottom: 2px solid var(--p-blue);
  color: var(--p-blue);
  font-weight: 500;
}

.p-tab--wide {
  flex: 1;
  text-align: center;
}

.p-search {
  display: flex;
  width: 240px;
  height: 34px;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--p-line-strong);
  border-radius: 5px;
  background: var(--p-surface);
}

.p-search .icon {
  width: 13px;
  height: 13px;
  color: var(--p-dim);
}

.p-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--p-ink);
  font-size: 10px;
}

.p-search input::placeholder {
  color: var(--p-dim);
}

.p-empty-cta {
  display: flex;
  justify-content: center;
  margin-top: -34px;
  padding-bottom: 26px;
}

.p-empty-cta button {
  height: 31px;
  padding: 0 13px;
  border: 1px solid var(--p-line-strong);
  border-radius: 4px;
  background: var(--p-surface);
  color: var(--p-blue);
  font-size: 9.5px;
}

.p-empty-cta button:hover {
  border-color: #b7cee4;
}

.p-publish-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.p-publish-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.p-publish-count {
  flex: 0 0 auto;
  color: var(--p-muted);
  font-size: 9px;
  white-space: nowrap;
}

.p-publish-refresh {
  display: inline-flex;
  height: 27px;
  align-items: center;
  gap: 3px;
  padding: 0 9px;
  border: 1px solid var(--p-line);
  border-radius: 3px;
  background: var(--p-surface);
  color: var(--p-muted);
  font-size: 8.5px;
}

.p-publish-refresh .icon {
  width: 11px;
  height: 11px;
}

.p-publish-refresh:hover {
  border-color: var(--p-line-strong);
  color: var(--p-blue);
}

.p-publish-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.p-publish-item {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: 7px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-publish-thumb {
  position: relative;
  overflow: hidden;
  width: 148px;
  min-height: 126px;
  flex: 0 0 auto;
  background: #0b1521;
}

.p-publish-thumb .scene {
  display: block;
  width: 100%;
  height: 100%;
}

.p-publish-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(145, 187, 228, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(145, 187, 228, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(4, 10, 17, 0.25));
  background-size: 24px 24px, 24px 24px, 100% 100%;
  pointer-events: none;
}

.p-publish-status {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  height: 19px;
  align-items: center;
  padding: 0 7px;
  border-radius: 3px;
  color: #fff;
  font-size: 7.5px;
  line-height: 1;
  white-space: nowrap;
}

.p-publish-status--sale {
  background: #1a9d75;
}

.p-publish-status--review {
  background: #d89c31;
}

.p-publish-status--down {
  background: #7f8da0;
}

.p-publish-status--reject {
  background: #d45b5b;
}

.p-publish-status--inline {
  position: static;
  flex: 0 0 auto;
  height: 18px;
  font-size: 7.5px;
}

.p-publish-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 11px 14px 10px;
}

.p-publish-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.p-publish-head h3 {
  overflow: hidden;
  color: var(--p-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-publish-sub {
  margin-top: 2px;
  overflow: hidden;
  color: var(--p-muted);
  font-size: 8.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-publish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 6px;
  color: var(--p-muted);
  font-size: 8px;
  line-height: 1.6;
}

.p-publish-meta b {
  margin-left: 2px;
  color: var(--p-ink);
  font-family: var(--p-display);
  font-size: 9.5px;
  font-weight: 600;
}

.p-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.p-publish-actions a,
.p-publish-actions button {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--p-line-strong);
  border-radius: 3px;
  background: var(--p-surface);
  color: #6b7e92;
  font-size: 8.5px;
  line-height: 1;
  white-space: nowrap;
}

.p-publish-actions a:hover,
.p-publish-actions button:hover {
  border-color: #b8cee2;
  color: var(--p-blue);
}

.p-publish-actions .p-publish-primary {
  border-color: var(--p-blue);
  background: var(--p-blue);
  color: #fff;
}

.p-publish-detail > .p-publish-status {
  position: static;
}

.p-publish-detail h3 {
  margin-top: 6px;
  color: var(--p-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.p-publish-detail > p {
  margin-top: 2px;
  color: var(--p-muted);
  font-size: 9.5px;
}

.p-publish-detail .p-dialog-list {
  margin-top: 10px;
}

.p-publish-detail .p-dialog-note {
  margin-top: 9px;
}

.p-empty-card {
  display: flex;
  min-height: 578px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-empty-icon {
  display: grid;
  place-items: center;
  width: 112px;
  height: 92px;
  margin-bottom: 2px;
  color: #c7d2e0;
}

.p-empty-icon .icon {
  width: 112px;
  height: 92px;
  stroke-width: 1;
}

.p-empty-card strong {
  color: var(--p-muted);
  font-size: 11px;
  font-weight: 400;
}

.p-empty-card p {
  color: var(--p-dim);
  font-size: 9px;
}

.p-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  color: #8795a8;
  font-size: 10px;
}

.p-pagination button {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #7e8da0;
  font-size: 10px;
}

.p-pagination button:hover {
  border-color: var(--p-line-strong);
}

.p-pagination button.is-active {
  border-color: transparent;
  color: var(--p-blue);
  font-weight: 600;
}

.p-pagination input {
  width: 44px;
  height: 26px;
  margin: 0 3px;
  border: 1px solid var(--p-line);
  border-radius: 4px;
  background: var(--p-surface);
  color: var(--p-ink);
  font-size: 10px;
  text-align: center;
  outline: 0;
}

/* =========================================================
   Wallet
   ========================================================= */

.p-wallet-summary {
  display: flex;
  min-height: 105px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-wallet-user {
  display: flex;
  align-items: center;
  gap: 13px;
}

.p-wallet-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0c2344;
  color: #d4e5ff;
}

.p-wallet-avatar .icon {
  width: 31px;
  height: 31px;
}

.p-wallet-user__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-wallet-user__info strong {
  color: var(--p-ink);
  font-family: var(--p-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.p-wallet-user__info span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--p-muted);
  font-size: 9px;
}

.p-verified {
  display: inline-flex;
  height: 17px;
  align-items: center;
  gap: 2px;
  padding: 0 5px;
  border-radius: 3px;
  background: #eef6ff;
  color: #4f8bc8;
  font-size: 8px;
  font-style: normal;
}

.p-verified .icon {
  width: 9px;
  height: 9px;
}

.p-wallet-earn {
  text-align: right;
}

.p-wallet-earn span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--p-muted);
  font-size: 9.5px;
}

.p-wallet-earn span .icon {
  width: 13px;
  height: 13px;
}

.p-wallet-earn strong {
  display: block;
  color: #2768e9;
  font-family: var(--p-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.p-fund-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  margin-top: 12px;
  padding: 20px 24px;
  border: 1px solid #f3d496;
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 38%, rgba(255, 255, 255, 0.28), transparent 25%),
    linear-gradient(112deg, #ffb549 0%, #ffd288 58%, #ffc063 100%);
  color: #6f3d08;
  box-shadow: 0 4px 14px rgba(204, 139, 44, 0.12);
}

.p-fund-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.12);
}

.p-fund-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a4a10;
  font-size: 9.5px;
}

.p-fund-status::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dea039;
  color: #fff;
  font-size: 8px;
}

.p-fund-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #85551d;
  font-size: 10.5px;
}

.p-fund-label .icon {
  width: 12px;
  height: 12px;
}

.p-fund-amount {
  margin-top: 1px;
  font-family: var(--p-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.p-fund-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
  color: #95642a;
  font-size: 9px;
}

.p-fund-sub span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.p-fund-sub .icon {
  width: 11px;
  height: 11px;
}

.p-fund-actions {
  position: absolute;
  top: 30px;
  right: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-fund-actions button {
  display: flex;
  width: 112px;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 5px;
  font-size: 10px;
}

.p-fund-actions button:first-child {
  background: #c27b1e;
  color: #fff;
  box-shadow: 0 5px 12px rgba(150, 92, 19, 0.18);
}

.p-fund-actions button:last-child {
  border: 1px solid rgba(135, 83, 16, 0.24);
  background: rgba(255, 255, 255, 0.44);
  color: #7c4b11;
}

.p-fund-actions .icon {
  width: 13px;
  height: 13px;
}

.p-fund-coin {
  position: absolute;
  right: 78px;
  bottom: -20px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--p-display);
  font-size: 30px;
}

.p-tabs-card {
  margin-top: 12px;
  padding: 13px 16px 16px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-tabs-card .p-tabs {
  border-bottom: 1px solid var(--p-line);
}

.p-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.p-select,
.p-date {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--p-line);
  border-radius: 4px;
  background: var(--p-surface);
  color: var(--p-muted);
  font-size: 9.5px;
  outline: 0;
}

.p-select {
  width: 130px;
}

.p-date {
  width: 265px;
}

.p-refresh {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 4px;
  padding: 0 11px;
  border: 1px solid var(--p-line);
  border-radius: 4px;
  background: var(--p-surface);
  color: var(--p-blue);
  font-size: 9.5px;
}

.p-refresh .icon {
  width: 12px;
  height: 12px;
}

.p-wallet-table-empty {
  display: flex;
  height: 105px;
  align-items: center;
  padding-left: 11px;
  color: var(--p-muted);
  font-size: 9.5px;
}

/* =========================================================
   Cloud / favorites / security
   ========================================================= */

.p-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.p-summary-card {
  padding: 18px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-summary-card span {
  color: var(--p-muted);
  font-size: 10px;
}

.p-summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--p-ink);
  font-family: var(--p-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.p-summary-card p {
  margin-top: 2px;
  color: var(--p-dim);
  font-size: 9px;
}

.p-cloud-card {
  margin-top: 12px;
  padding: 20px;
}

.p-cloud-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.p-cloud-head h2 {
  color: var(--p-ink);
  font-size: 16px;
  font-weight: 700;
}

.p-cloud-head p {
  margin-top: 2px;
  color: var(--p-muted);
  font-size: 10px;
}

.p-cloud-badge {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--p-blue-soft);
  color: var(--p-blue);
  font-size: 8.5px;
}

.p-fav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.p-fav-card {
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-fav-art {
  display: flex;
  height: 118px;
  align-items: flex-end;
  padding: 12px;
  background:
    radial-gradient(circle at 76% 26%, rgba(255, 168, 113, 0.2), transparent 25%),
    linear-gradient(135deg, #1a332f, #081315 70%);
  color: #dce9e6;
  font-family: var(--p-display);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.p-fav-body {
  padding: 11px 12px;
}

.p-fav-body h3 {
  color: var(--p-ink);
  font-size: 12px;
  font-weight: 600;
}

.p-fav-body p {
  margin-top: 2px;
  color: var(--p-muted);
  font-size: 9px;
}

.p-fav-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.p-fav-meta strong {
  color: var(--p-ink);
  font-family: var(--p-display);
  font-size: 15px;
  font-weight: 700;
}

.p-fav-meta a {
  color: var(--p-blue);
  font-size: 9px;
}

.p-security-card {
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-security-row {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--p-line);
}

.p-security-row:first-child {
  border-top: 0;
}

.p-security-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 7px;
  background: var(--p-blue-soft);
  color: var(--p-blue);
}

.p-security-icon .icon {
  width: 17px;
  height: 17px;
}

.p-security-row > div {
  flex: 1;
}

.p-security-row strong {
  display: block;
  color: var(--p-ink);
  font-size: 11px;
  font-weight: 500;
}

.p-security-row p {
  color: var(--p-muted);
  font-size: 9px;
}

.p-security-row button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--p-line-strong);
  border-radius: 4px;
  color: var(--p-blue);
  font-size: 9px;
}

.p-security-row .p-safe-state {
  color: var(--p-green);
  font-size: 9px;
}

/* =========================================================
   Messages
   ========================================================= */

.p-messages {
  min-height: 678px;
  padding: 12px 18px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.p-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--p-line);
}

.p-message:last-child {
  border-bottom: 0;
}

.p-message-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0e2544;
  color: #d4e5ff;
  font-family: var(--p-display);
  font-size: 13px;
  font-weight: 600;
}

.p-message-avatar--pink {
  background: linear-gradient(145deg, #ffd5e8, #f5b8d5);
  color: #9a4f79;
}

.p-message-body {
  min-width: 0;
  flex: 1;
}

.p-message-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.p-message-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--p-ink);
  font-size: 12px;
  font-weight: 600;
}

.p-message-title .p-official {
  display: inline-flex;
  height: 17px;
  align-items: center;
  padding: 0 5px;
  border: 1px solid #cfe1f7;
  border-radius: 3px;
  color: #5c87b5;
  font-size: 7.5px;
  font-weight: 400;
}

.p-message-top time {
  color: var(--p-muted);
  font-family: var(--p-display);
  font-size: 9px;
  white-space: nowrap;
}

.p-message-body p {
  margin-top: 5px;
  color: var(--p-muted);
  font-size: 10px;
}

/* =========================================================
   Chat card
   ========================================================= */

.p-chat {
  position: sticky;
  top: 84px;
}

.p-chat-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 163px;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.p-chat-card:hover {
  border-color: #c9dced;
  box-shadow: 0 8px 22px rgba(30, 57, 92, 0.08);
}

.p-chat-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0b2344;
  color: #d7e9ff;
  font-family: var(--p-display);
  font-size: 17px;
  font-weight: 600;
}

.p-chat-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.p-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.p-chat-top strong {
  color: var(--p-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.p-chat-top time {
  color: var(--p-muted);
  font-family: var(--p-display);
  font-size: 10px;
}

.p-chat-msg {
  overflow: hidden;
  color: var(--p-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-chat-new {
  position: absolute;
  top: 21px;
  right: 21px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f04d55;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

/* =========================================================
   Floating dock
   ========================================================= */

.p-dock {
  position: fixed;
  top: 50%;
  right: 12px;
  z-index: 60;
  width: 64px;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 39, 66, 0.14);
  transform: translateY(-50%);
}

.p-dock-brand {
  position: relative;
  display: flex;
  height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a1b34;
  color: #dbe9ff;
  line-height: 1.25;
}

.p-dock-brand strong {
  font-size: 8px;
  font-weight: 600;
}

.p-dock-brand span {
  font-family: var(--p-display);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.p-dock-brand b {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1px 3px;
  background: #f04d55;
  color: #fff;
  font-family: var(--p-display);
  font-size: 6px;
  font-weight: 500;
}

.p-dock a,
.p-dock > button {
  display: flex;
  width: 100%;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-top: 1px solid #edf2f8;
  background: #fff;
  color: #263a54;
}

.p-dock a:hover,
.p-dock > button:hover {
  background: #f7fbff;
}

.p-dock .icon {
  width: 19px;
  height: 19px;
  color: #17385f;
}

.p-dock a span,
.p-dock > button span {
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.p-dock small {
  color: #a0adbb;
  font-size: 6.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.p-dock .p-dock-support {
  min-height: 55px;
  border-top: 1px solid #263650;
  background: #0a1b34;
  color: #fff;
}

.p-dock .p-dock-support .icon {
  color: #f4c04e;
}

.p-dock .p-dock-support span {
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */

.p-footer {
  padding: 34px 0 20px;
  background: #0a172a;
  color: #9eacbd;
}

.p-footer__inner {
  display: grid;
  width: min(1200px, calc(100% - 80px));
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0 auto;
}

.p-footer-col h2 {
  margin-bottom: 12px;
  color: #e8f0fb;
  font-size: 12px;
  font-weight: 600;
}

.p-footer-col a,
.p-footer-col p {
  display: block;
  margin-top: 7px;
  color: #8494a9;
  font-size: 9px;
}

.p-footer-col a:hover {
  color: #dce9ff;
}

.p-footer-col--contact p {
  margin-top: 7px;
}

.p-footer__copy {
  width: min(1200px, calc(100% - 80px));
  margin: 28px auto 0;
  padding-top: 14px;
  border-top: 1px solid #1d2c43;
  color: #586a82;
  font-size: 8px;
  text-align: center;
}

/* =========================================================
   Dialog / toast
   ========================================================= */

.p-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 21, 39, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.p-dialog-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.p-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 110;
  width: min(460px, calc(100vw - 32px));
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px 22px 22px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-surface);
  box-shadow: 0 30px 80px rgba(13, 31, 56, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 10px)) scale(0.985);
  transition: opacity 0.22s, visibility 0.22s, transform 0.22s;
}

.p-dialog.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.p-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.p-dialog__head h2 {
  color: var(--p-ink);
  font-size: 18px;
  font-weight: 700;
}

.p-dialog__close {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--p-line);
  border-radius: 50%;
  color: var(--p-muted);
}

.p-dialog__close:hover {
  border-color: var(--p-blue);
  color: var(--p-blue);
}

.p-dialog__close .icon {
  width: 13px;
  height: 13px;
}

.p-dialog__body {
  color: var(--p-text);
  font-size: 11.5px;
  line-height: 1.75;
}

.p-dialog-note {
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid var(--p-line);
  border-radius: 5px;
  background: var(--p-soft);
  color: var(--p-muted);
  font-size: 9.5px;
}

.p-dialog-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.p-dialog-actions button,
.p-dialog-actions a {
  display: flex;
  height: 37px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 11px;
}

.p-dialog-actions .p-dialog-primary {
  background: var(--p-navy);
  color: #fff;
}

body.night .p-dialog-actions .p-dialog-primary {
  color: #0b1838;
}

.p-dialog-actions .p-dialog-ghost {
  border: 1px solid var(--p-line-strong);
  color: var(--p-blue);
}

.p-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 130;
  max-width: min(380px, calc(100vw - 32px));
  padding: 9px 15px;
  border-radius: 18px;
  background: rgba(10, 23, 43, 0.93);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  pointer-events: none;
}

.p-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* =========================================================
   Night overrides
   ========================================================= */

body.night .p-topbar,
body.night .p-side-nav,
body.night .p-support-card,
body.night .p-chat-card,
body.night .p-card,
body.night .p-filter-card,
body.night .p-empty-card,
body.night .p-wallet-summary,
body.night .p-tabs-card,
body.night .p-summary-card,
body.night .p-fav-card,
body.night .p-security-card,
body.night .p-messages,
body.night .p-dialog {
  background: var(--p-surface);
}

body.night .p-brand,
body.night .p-profile-name h1,
body.night .p-stat-info strong,
body.night .p-card-head h2,
body.night .p-wallet-user__info strong,
body.night .p-wallet-earn strong,
body.night .p-summary-card strong,
body.night .p-cloud-head h2,
body.night .p-fav-body h3,
body.night .p-fav-meta strong,
body.night .p-security-row strong,
body.night .p-message-title,
body.night .p-chat-top strong,
body.night .p-dialog__head h2 {
  color: var(--p-ink);
}

body.night .p-user__avatar,
body.night .p-profile-avatar,
body.night .p-wallet-avatar {
  background: #1b3456;
}

body.night .p-checkin {
  border-color: #3d315b;
  background: linear-gradient(90deg, #281f3b, #211b30);
}

body.night .p-checkin strong,
body.night .p-checkin strong em {
  color: #cbb4ff;
}

body.night .p-checkin span {
  color: #9a8bb4;
}

body.night .p-stat-icon {
  background: #1b3151;
}

body.night .p-table th {
  background: #172235;
}

body.night .p-table td {
  border-color: var(--p-line);
}

body.night .p-pagination button {
  color: var(--p-muted);
}

body.night .p-search input,
body.night .p-select,
body.night .p-date,
body.night .p-pagination input {
  color: var(--p-ink);
}

body.night .p-empty-icon {
  color: #34465d;
}

body.night .p-message-avatar--pink {
  color: #733a59;
}

body.night .p-dock {
  border-color: #2c3a4e;
  background: #121c2b;
}

body.night .p-dock a,
body.night .p-dock > button {
  border-color: #263348;
  background: #121c2b;
  color: #d3e0f0;
}

body.night .p-dock .icon {
  color: #9abdf2;
}

body.night .p-dock small {
  color: #6f8097;
}

body.night .p-dock .p-dock-support {
  border-color: #263348;
  background: #0a172a;
}

body.night .p-logout {
  color: #7f8da1;
}

body.night .p-user__info strong {
  color: var(--p-ink);
}

body.night .p-utility button {
  color: #8899ae;
}

body.night .p-nav a,
body.night .p-nav button {
  color: #a9b7c9;
}

body.night .p-side-link {
  color: #adbbcd;
}

body.night .p-side-link .icon {
  color: #7f93aa;
}

body.night .p-side-link.is-active {
  background: var(--p-blue-soft);
  color: var(--p-blue);
}

body.night .p-side-link.is-active .icon {
  color: var(--p-blue);
}

body.night .p-tab {
  color: #a2b0c3;
}

body.night .p-tag {
  border-color: #2b4160;
  background: #17263b;
  color: #8fb6e8;
}

body.night .p-tag--muted {
  border-color: var(--p-line);
  background: var(--p-soft);
  color: var(--p-muted);
}

body.night .p-table th {
  background: #172235;
}

body.night .p-empty-icon {
  color: #34465d;
}

body.night .p-empty-card strong {
  color: var(--p-muted);
}

body.night .p-pagination {
  color: #8b9bb0;
}

body.night .p-pagination input,
body.night .p-select,
body.night .p-date {
  background: var(--p-surface);
  color: var(--p-ink);
}

body.night .p-stat-icon--blue,
body.night .p-stat-icon--gold,
body.night .p-stat-icon--violet {
  background: #1c2b41;
  color: #8fbdf6;
}

body.night .p-chat-msg,
body.night .p-profile-slogan,
body.night .p-wallet-user__info span,
body.night .p-security-row p,
body.night .p-message-body p {
  color: var(--p-muted);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1500px) {
  .p-container,
  .p-topbar__inner {
    width: calc(100% - 60px);
  }

  .p-layout {
    grid-template-columns: 210px minmax(0, 1fr) 390px;
  }

  .p-utility {
    gap: 9px;
  }

  .p-utility button {
    font-size: 9.5px;
  }
}

@media (max-width: 1400px) {
  .p-dock {
    display: none;
  }

  .p-layout {
    grid-template-columns: 210px minmax(0, 1fr) 350px;
    gap: 16px;
  }

  .p-chat-top strong {
    font-size: 16px;
  }
}

@media (max-width: 1240px) {
  .p-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .p-chat {
    display: none;
  }

  .p-utility {
    display: none;
  }
}

@media (max-width: 1050px) {
  .p-container,
  .p-topbar__inner {
    width: calc(100% - 40px);
  }

  .p-topbar__inner {
    gap: 24px;
  }

  .p-nav {
    gap: 23px;
  }

  .p-nav a,
  .p-nav button {
    font-size: 12px;
  }

  .p-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-wallet-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .p-wallet-earn {
    text-align: left;
  }

  .p-wallet-earn span {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .p-topbar {
    height: 58px;
  }

  .p-container,
  .p-topbar__inner {
    width: calc(100% - 28px);
  }

  .p-topbar__inner {
    gap: 12px;
  }

  .p-brand strong {
    font-size: 21px;
    letter-spacing: 0.1em;
  }

  .p-brand i {
    width: 10px;
  }

  .p-nav {
    display: none;
  }

  .p-user {
    padding-left: 0;
    border-left: 0;
  }

  .p-logout {
    display: none;
  }

  .p-layout {
    grid-template-columns: 1fr;
    padding-top: 12px;
    gap: 12px;
  }

  .p-sidebar {
    position: static;
    gap: 10px;
  }

  .p-side-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }

  .p-side-link {
    height: 40px;
    gap: 6px;
    padding: 0 7px;
    font-size: 10.5px;
  }

  .p-side-link .icon {
    width: 15px;
    height: 15px;
  }

  .p-side-link.is-active {
    border-left-width: 2px;
  }

  .p-support-card {
    grid-template-columns: 32px 1fr auto;
  }

  .p-support-card button {
    width: 120px;
    grid-column: auto;
    margin-top: 0;
  }

  .p-profile-card {
    padding: 18px;
  }

  .p-profile-avatar {
    width: 58px;
    height: 58px;
  }

  .p-profile-avatar .icon {
    width: 32px;
    height: 32px;
  }

  .p-profile-name h1 {
    font-size: 21px;
  }

  .p-stat {
    min-height: 82px;
    padding: 11px;
  }

  .p-stat-icon {
    width: 38px;
    height: 38px;
  }

  .p-stat-icon .icon {
    width: 20px;
    height: 20px;
  }

  .p-filter-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 9px 11px;
  }

  .p-search {
    width: 100%;
  }

  .p-tabs {
    width: 100%;
  }

  .p-empty-card {
    min-height: 460px;
  }

  .p-tabs-card {
    padding: 10px;
  }

  .p-filter-row {
    flex-wrap: wrap;
  }

  .p-date {
    width: 100%;
  }

  .p-fund-actions {
    position: static;
    flex-direction: row;
    margin-top: 12px;
  }

  .p-fund-card {
    padding: 18px;
  }

  .p-fund-coin {
    right: 20px;
    bottom: -35px;
  }

  .p-fav-grid {
    grid-template-columns: 1fr;
  }

  .p-footer__inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .p-footer__copy {
    width: calc(100% - 32px);
  }

  .p-messages {
    min-height: 460px;
    padding: 8px 12px;
  }
}

@media (max-width: 700px) {
  .p-publish-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .p-publish-item {
    flex-direction: column;
  }

  .p-publish-thumb {
    width: 100%;
    height: 128px;
    min-height: 0;
  }

  .p-publish-body {
    padding: 10px 12px;
  }

  .p-publish-head h3 {
    font-size: 12px;
  }

  .p-publish-meta {
    gap: 3px 10px;
  }
}

body.night .p-publish-item {
  background: var(--p-surface);
  border-color: var(--p-line);
}

body.night .p-publish-head h3,
body.night .p-publish-meta b {
  color: var(--p-ink);
}

body.night .p-publish-actions a,
body.night .p-publish-actions button {
  background: var(--p-surface);
  color: var(--p-text);
}

body.night .p-publish-actions .p-publish-primary {
  background: var(--p-blue);
  color: #fff;
}

@media (max-width: 560px) {
  .p-topbar__inner {
    width: calc(100% - 20px);
  }

  .p-brand strong {
    font-size: 18px;
  }

  .p-user__info strong {
    font-size: 10px;
  }

  .p-user__avatar {
    width: 28px;
    height: 28px;
  }

  .p-container {
    width: calc(100% - 20px);
  }

  .p-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-side-link {
    font-size: 10px;
  }

  .p-support-card {
    grid-template-columns: 32px 1fr;
  }

  .p-support-card button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .p-profile-head {
    align-items: flex-start;
  }

  .p-profile-name h1 {
    font-size: 19px;
  }

  .p-profile-slogan {
    font-size: 10.5px;
  }

  .p-profile-meta {
    flex-direction: column;
    gap: 3px;
  }

  .p-checkin {
    flex-wrap: wrap;
    padding: 9px 10px;
  }

  .p-checkin button {
    margin-left: 45px;
  }

  .p-stats {
    grid-template-columns: 1fr;
  }

  .p-stat {
    min-height: 72px;
  }

  .p-orders {
    padding: 12px 10px;
  }

  .p-table {
    min-width: 560px;
  }

  .p-wallet-summary {
    padding: 15px;
  }

  .p-wallet-user__info strong {
    font-size: 16px;
  }

  .p-fund-amount {
    font-size: 33px;
  }

  .p-summary-grid {
    grid-template-columns: 1fr;
  }

  .p-footer__inner {
    grid-template-columns: 1fr;
  }

  .p-message {
    gap: 8px;
  }

  .p-message-avatar {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .p-message-title {
    font-size: 11px;
  }

  .p-message-body p {
    font-size: 9px;
  }
}
