:root {
  --bg: #f7f1e7;
  --paper: #ffffff;
  --paper-soft: #fff9f0;
  --ink: #18221b;
  --muted: #6f766c;
  --line: #eadfce;
  --green: #2f8b48;
  --green-dark: #176631;
  --green-soft: #e6f3df;
  --cream: #fff6e6;
  --rose: #eaa996;
  --gold: #f2c879;
  --orange: #f4a261;
  --shadow: 0 26px 90px rgba(48, 70, 40, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(242, 200, 121, 0.38), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(47, 139, 72, 0.18), transparent 28rem),
    radial-gradient(circle at 70% 92%, rgba(234, 169, 150, 0.24), transparent 24rem),
    linear-gradient(180deg, #fff8eb 0%, #edf7e8 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(56, 75, 44, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-stack {
  display: grid;
  gap: 2px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(135deg, var(--green-dark), var(--green));
}

.brand-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-domain {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.nav-link,
.ghost-btn,
.primary-btn,
.status-pill,
.account-pill,
.tab-btn,
.filter-chip {
  border: 0;
  border-radius: 999px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.nav-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #354236;
  background: transparent;
}

.nav-link.active {
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.ghost-btn,
.primary-btn,
.status-pill,
.account-pill {
  padding: 10px 16px;
  font-weight: 700;
}

.ghost-btn,
.status-pill,
.account-pill {
  color: var(--green-dark);
  background: #edf6e9;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 12px 24px rgba(49, 128, 55, 0.2);
}

.large-btn {
  padding: 13px 20px;
}

.wide-btn {
  width: 100%;
}

.ghost-btn:hover,
.primary-btn:hover,
.status-pill:hover,
.account-pill:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.view {
  display: none;
  padding-top: 38px;
}

.view.active {
  display: block;
  animation: rise 0.42s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
}

.hero-copy,
.companion-panel,
.filter-panel,
.template-main,
.auth-card,
.workspace,
.placeholder-page,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 62px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 240, 0.9)),
    radial-gradient(circle at 94% 88%, rgba(47, 139, 72, 0.13), transparent 18rem);
}

.hero-copy::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(47, 139, 72, 0.12);
  content: "";
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #d7e5cf;
  border-radius: 999px;
  color: #2e5f34;
  background: #f6fbf2;
  font-size: 14px;
  font-weight: 700;
}

.companion-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 240, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(234, 169, 150, 0.28), transparent 18rem);
}

.phone-card {
  display: grid;
  gap: 16px;
  min-height: 420px;
  padding: 22px;
  border: 1px solid rgba(234, 223, 206, 0.96);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 244, 0.94)),
    radial-gradient(circle at 18% 0%, rgba(242, 200, 121, 0.22), transparent 12rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 50px rgba(36, 62, 33, 0.1);
}

.phone-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0e5;
}

.avatar-orb {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(145deg, #176631, #eaa996);
}

.phone-name {
  font-size: 20px;
  font-weight: 900;
}

.phone-status {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  padding: 13px 15px;
  border-radius: 18px;
  line-height: 1.7;
}

.bubble.assistant {
  color: #263027;
  background: #f2f8ed;
}

.bubble.user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.typing-row {
  display: inline-flex;
  gap: 5px;
  align-self: end;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 999px;
  background: #f2f8ed;
}

.typing-row span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.2s infinite ease-in-out;
}

.typing-row span:nth-child(2) {
  animation-delay: 0.16s;
}

.typing-row span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.mini-stat strong {
  font-size: 22px;
}

.mini-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.panel-top,
.section-head,
.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.panel-label,
.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-title {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 900;
}

.live-dot {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #dff1da;
  font-size: 13px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.stat-card,
.route-card {
  border: 1px solid #dbe8d4;
  border-radius: 14px;
  background: #fff;
}

.stat-card {
  padding: 22px;
}

.stat-card span {
  display: block;
  font-size: 34px;
  font-weight: 900;
}

.stat-card small,
.route-card span {
  color: var(--muted);
  font-weight: 700;
}

.route-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 18px;
}

.route-card.muted {
  background: var(--paper-soft);
}

.section-head {
  margin: 42px 0 18px;
}

.section-head.compact {
  margin: 0 0 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px;
}

.feature-card span {
  color: var(--green);
  font-weight: 900;
}

.feature-card p,
.placeholder-page p {
  color: var(--muted);
  line-height: 1.7;
}

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

.filter-panel,
.template-main,
.workspace,
.placeholder-page {
  padding: 24px;
}

.filter-panel {
  position: sticky;
  top: 94px;
}

.filter-title {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 900;
}

.text-input,
textarea,
.auth-form input {
  width: 100%;
  border: 1px solid #d7e3d2;
  border-radius: 12px;
  outline: 0;
  background: #fff;
}

.text-input,
.auth-form input {
  height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
}

.filter-group {
  margin-top: 22px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.filter-chip {
  padding: 8px 12px;
  color: #3b4a3b;
  background: #edf5e8;
}

.filter-chip.active {
  color: #fff;
  background: var(--green-dark);
}

.count-badge {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 800;
}

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

.template-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f9fcf7);
}

.template-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-dark), var(--orange));
}

.template-card p {
  color: var(--muted);
  line-height: 1.6;
}

.template-meta,
.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #416046;
  background: #eef6ea;
  font-size: 12px;
  font-weight: 800;
}

.auth-view {
  min-height: 660px;
}

.auth-card {
  width: min(440px, 100%);
  margin: 54px auto 0;
  padding: 28px;
}

.auth-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #eef6ea;
}

.tab-btn {
  padding: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.tab-btn.active {
  color: #fff;
  background: var(--green-dark);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.auth-form label,
.persona-form label {
  display: grid;
  gap: 8px;
  color: #314033;
  font-weight: 800;
}

.workspace {
  min-height: 540px;
}

.chat-box {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.message {
  max-width: 76%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
  background: #fff;
}

.message.user {
  justify-self: end;
  color: #fff;
  background: var(--green-dark);
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.persona-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.span-2 {
  grid-column: span 2;
}

.placeholder-page {
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 28, 18, 0.42);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef6ea;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(420px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: 14px;
  color: #fff;
  background: #18221a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.round-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(45, 66, 38, 0.1);
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: #18221b;
  background: #edf6e9;
  font-weight: 800;
}

.account-initial {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #7b89d8;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 34, 27, 0.18);
}

.account-dropdown button {
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.account-dropdown button:hover {
  background: #f2f8ed;
}

.account-dropdown .danger {
  color: #e45252;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 248, 229, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(47, 139, 72, 0.18), transparent 22rem);
  box-shadow: var(--shadow);
}

.dashboard-hero h1 {
  margin-bottom: 10px;
  font-size: 44px;
}

.dashboard-hero p {
  color: var(--muted);
  font-size: 17px;
}

.dashboard-status {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(234, 223, 206, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.dashboard-status strong {
  font-size: 38px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.quick-card,
.section-card,
.chart-card,
.table-card,
.wallet-panel,
.profile-banner,
.profile-balance {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.quick-card {
  padding: 22px;
  cursor: pointer;
}

.quick-card span {
  font-size: 28px;
}

.section-card {
  padding: 24px;
}

.section-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.checkin-stats,
.wallet-stats,
.income-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(211, 244, 222, 0.85), rgba(225, 238, 243, 0.85));
}

.checkin-stats div,
.wallet-stats div,
.income-panel div {
  display: grid;
  gap: 6px;
  text-align: center;
}

.checkin-stats strong,
.wallet-stats strong,
.income-panel strong {
  font-size: 28px;
}

.checkin-stats span,
.wallet-stats span,
.income-panel span {
  color: var(--muted);
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #1e2a20;
  border-radius: 10px;
  background: #fff;
}

.calendar-week,
.calendar-cell {
  min-height: 70px;
  padding: 8px;
  border-right: 1px solid #e8ede4;
  border-bottom: 1px solid #e8ede4;
}

.calendar-week {
  min-height: auto;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  background: #fbfcf8;
}

.calendar-cell.signed {
  background: #f2f8ed;
}

.calendar-cell strong {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
}

.plain-list {
  margin: 18px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

.chat-workspace {
  min-height: 640px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.chat-profile {
  display: flex;
  gap: 14px;
  align-items: center;
}

.chat-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--green-dark), var(--rose));
  background-position: center;
  background-size: cover;
}

.chat-profile span {
  color: var(--muted);
  font-weight: 700;
}

.rich-chat {
  min-height: 430px;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
}

.send-round {
  min-width: 78px;
  border-radius: 999px;
}

.profile-page,
.wallet-page,
.promotion-page {
  display: grid;
  gap: 20px;
}

.profile-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(rgba(0, 77, 82, 0.82), rgba(0, 77, 82, 0.82)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 20rem);
}

.profile-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  background: #7b89d8;
}

.profile-banner h1 {
  margin: 0 0 8px;
  font-size: 36px;
}

.profile-banner span {
  margin-right: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #152018;
  background: #fff;
  font-weight: 800;
}

.profile-balance {
  padding: 22px;
}

.profile-balance strong {
  display: block;
  font-size: 42px;
}

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

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

.bind-grid div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.bind-grid span,
.quick-card p,
.section-card p {
  color: var(--muted);
}

.setting-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.setting-tabs button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
  font-weight: 800;
}

.setting-tabs .active {
  background: #f2f8ed;
}

.setting-line {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 800;
}

.setting-line select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}

.chart-card {
  overflow: hidden;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.chart-head span {
  color: var(--muted);
}

.chart-area {
  display: flex;
  align-items: end;
  gap: 18px;
  min-height: 310px;
  padding: 36px 28px 20px;
}

.bar-item {
  display: grid;
  flex: 1;
  gap: 10px;
  justify-items: center;
}

.bar-stack {
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 58px;
  height: 180px;
  border-bottom: 2px solid #18221b;
}

.bar-text {
  display: block;
  background: #f7c30b;
}

.bar-voice {
  display: block;
  background: #385883;
}

.bar-item small {
  color: var(--muted);
  font-size: 12px;
}

.legend {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 0 0 24px;
  color: var(--muted);
  font-weight: 800;
}

.legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
}

.legend-text {
  background: #f7c30b;
}

.legend-voice {
  background: #385883;
}

.wallet-panel {
  padding: 20px;
}

.recharge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.recharge-row label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

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

.price-grid button {
  display: grid;
  gap: 8px;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
}

.price-grid span {
  color: var(--muted);
  font-size: 13px;
}

.invite-bar,
.search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.invite-bar {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.invite-bar input {
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 800;
}

.table-card {
  padding: 18px;
}

.table-card table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}

.table-card th,
.table-card td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table-card td {
  color: var(--muted);
  text-align: center;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 64px 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.rank-no {
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.notice-card {
  position: relative;
  width: min(1080px, calc(100vw - 44px));
  min-height: 560px;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.notice-head,
.notice-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.notice-head h2 {
  font-size: 28px;
}

.notice-content {
  width: min(560px, 100%);
  margin: 30px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.notice-banner {
  padding: 14px;
  color: #fff;
  background: #f59e0b;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.notice-box {
  margin: 18px;
  padding: 24px;
  border: 1px dashed #ff6372;
  border-radius: 12px;
  background: #fff5f5;
  text-align: center;
}

.contact-box {
  margin: 18px;
  padding: 14px;
  border-left: 5px solid #f59e0b;
  background: #fffaf0;
}

.hidden {
  display: none !important;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .hero,
  .template-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .feature-grid,
  .template-grid,
  .quick-grid,
  .settings-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero,
  .template-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 52px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1220px);
    padding-top: 10px;
  }

  .brand-text {
    font-size: 15px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .status-pill,
  .account-pill,
  .ghost-btn,
  .primary-btn {
    padding: 9px 12px;
  }

  .hero-copy,
  .companion-panel,
  .filter-panel,
  .template-main,
  .auth-card,
  .workspace,
  .placeholder-page {
    padding: 18px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }

  .feature-grid,
  .template-grid,
  .stats-grid,
  .panel-metrics,
  .quick-grid,
  .checkin-stats,
  .wallet-stats,
  .income-panel,
  .settings-grid,
  .bind-grid,
  .price-grid,
  .dashboard-hero,
  .recharge-row,
  .invite-bar,
  .search-row,
  .ranking-item,
  .persona-form,
  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chart-area {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .bar-item {
    min-width: 78px;
  }

  .notice-card {
    min-height: auto;
    padding: 22px;
  }

  .span-2 {
    grid-column: span 1;
  }

  .message {
    max-width: 100%;
  }
}
