:root {
  --bg: #ece6df;
  --phone-bg: #f6f5f2;
  --surface: #ffffff;
  --surface-soft: #f8f8f5;
  --line: #ece7df;
  --text: #22252b;
  --muted: #8b8f97;
  --green: #20b15a;
  --green-soft: #eaf8ef;
  --orange: #ff6b1f;
  --orange-deep: #ef4e10;
  --red: #ff4d4f;
  --gold: #ffb020;
  --blue: #4d88ff;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(74, 52, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 132, 62, 0.18), transparent 30%),
    linear-gradient(180deg, #e9e2d8 0%, #efece6 24%, #f5f4f0 100%);
}

button,
input,
select {
  font: inherit;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.is-hidden {
  display: none !important;
}

.phone-frame {
  width: min(100%, 390px);
  min-height: 844px;
  background: var(--phone-bg);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(92, 77, 61, 0.08);
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(180deg, #f7f4ef 0%, #f6f5f2 100%);
}

.topbar-title {
  text-align: center;
}

.topbar-title h1,
.topbar-caption,
.section-eyebrow,
.section-heading h3,
.focus-card h4,
.focus-desc,
.mini-card p,
.report-card h4,
.report-card p,
.member-row h4,
.member-row p,
.income-hero p,
.profile-user h4,
.profile-user p,
.profile-points span {
  margin: 0;
}

.topbar-caption {
  font-size: 11px;
  color: #b2a79d;
}

.topbar-title h1 {
  font-size: 20px;
  line-height: 1.2;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #595d63;
  font-size: 22px;
}

.screen-content {
  padding: 10px 14px 112px;
  display: grid;
  gap: 14px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.search-card input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
}

.search-card input::placeholder {
  color: #b0b4ba;
}

.search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #c4c7cd;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #c4c7cd;
  right: -4px;
  bottom: -1px;
  transform: rotate(45deg);
  border-radius: 999px;
}

.avatar-card {
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, #fff9f3 0%, #fff 100%);
  border-radius: 14px;
  border: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
}

.avatar-dot {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.avatar-figure {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f3cfb0 0%, #e6ad7c 100%);
  color: #6b3a12;
  font-weight: 700;
}

.promo-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 208, 118, 0.45), transparent 34%),
    linear-gradient(135deg, #ff752f 0%, #ff5617 62%, #f74a10 100%);
  color: #fff;
}

.promo-badge {
  margin: 0 0 8px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
}

.promo-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.18;
}

.promo-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 248, 240, 0.9);
}

.promo-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-btn {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.promo-btn.primary {
  background: #fff3db;
  color: #c84c06;
}

.promo-btn.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.promo-visual {
  position: relative;
  min-height: 132px;
}

.visual-sun,
.visual-card {
  position: absolute;
}

.visual-sun {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  right: 20px;
  top: 6px;
  background:
    radial-gradient(circle at 35% 35%, #fff8cc 0%, #ffd45f 50%, #ffb300 100%);
  box-shadow: 0 0 0 12px rgba(255, 210, 104, 0.12);
}

.visual-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.visual-card.one {
  width: 72px;
  height: 56px;
  right: 0;
  bottom: 4px;
}

.visual-card.two {
  width: 22px;
  height: 84px;
  right: 82px;
  bottom: 0;
}

.visual-card.three {
  width: 14px;
  height: 52px;
  right: 110px;
  bottom: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 8px;
  padding: 2px 0;
}

.quick-entry {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.entry-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  font-weight: 700;
}

.entry-badge.hot {
  background: linear-gradient(180deg, #ff7d54 0%, #ff3e3e 100%);
}

.entry-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: inset 0 -10px 14px rgba(0, 0, 0, 0.08);
  position: relative;
}

.entry-icon::before,
.entry-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.entry-icon::before {
  width: 22px;
  height: 8px;
}

.entry-icon::after {
  width: 8px;
  height: 22px;
}

.entry-icon.orange::after,
.entry-icon.green::after,
.entry-icon.yellow::after,
.entry-icon.indigo::after,
.entry-icon.sky::after,
.entry-icon.mint::after,
.entry-icon.teal::after,
.entry-icon.violet::after {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.entry-icon.blue {
  background: linear-gradient(180deg, #5da6ff 0%, #2f77f7 100%);
}

.entry-icon.orange {
  background: linear-gradient(180deg, #ffbb69 0%, #ff8a1f 100%);
}

.entry-icon.green {
  background: linear-gradient(180deg, #46d895 0%, #1fb96f 100%);
}

.entry-icon.yellow {
  background: linear-gradient(180deg, #ffdc66 0%, #ffb621 100%);
}

.entry-icon.indigo {
  background: linear-gradient(180deg, #738bff 0%, #5067e8 100%);
}

.entry-icon.sky {
  background: linear-gradient(180deg, #57cfff 0%, #1b9ee8 100%);
}

.entry-icon.mint {
  background: linear-gradient(180deg, #63e3b7 0%, #27b889 100%);
}

.entry-icon.teal {
  background: linear-gradient(180deg, #35d0ce 0%, #11939d 100%);
}

.entry-icon.violet {
  background: linear-gradient(180deg, #9f8cff 0%, #7052f0 100%);
}

.entry-label {
  font-size: 12px;
  line-height: 1.3;
  color: #545a64;
}

.section-tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
}

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

.section-tab {
  flex: 0 0 auto;
  position: relative;
  color: #60646e;
  font-size: 16px;
  font-weight: 500;
}

.section-tab.is-active {
  color: var(--text);
  font-weight: 700;
}

.section-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  margin: auto;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.panel-stack {
  display: grid;
}

.content-panel {
  display: none;
  gap: 14px;
}

.content-panel.is-visible {
  display: grid;
  animation: panel-in 220ms ease;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.section-eyebrow {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}

.section-heading h3 {
  font-size: 22px;
  line-height: 1.18;
}

.ghost-link {
  color: #9a7f56;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4e6;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf4ee;
  color: #6a746d;
  font-size: 12px;
  font-weight: 600;
}

.chip.is-active {
  background: var(--green-soft);
  color: var(--green);
}

.focus-card,
.product-link-card,
.mini-card,
.team-board,
.income-hero,
.profile-card,
.stats-strip article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.focus-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(40, 124, 67, 0.08);
}

.product-link-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(241, 105, 33, 0.08);
}

.product-link-main h4,
.detail-product-main h2,
.rights-card h4,
.detail-section h3,
.detail-note h4,
.detail-action span,
.footer-action,
.popup-title,
.popup-body,
.popup-btn,
.floating-mini-btn span {
  margin: 0;
}

.product-link-main h4 {
  font-size: 18px;
}

.product-link-main p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.product-link-side {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 4px;
}

.product-link-side strong {
  font-family: "DM Sans", sans-serif;
  font-size: 34px;
  line-height: 1;
  color: #ca3723;
}

.product-link-side span {
  color: var(--muted);
  font-size: 12px;
}

.focus-tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.focus-tag.green {
  color: var(--green);
  background: var(--green-soft);
}

.focus-tag.blue {
  color: var(--blue);
  background: #edf3ff;
}

.focus-tag.orange {
  color: #ff8b25;
  background: #fff3e2;
}

.focus-card h4,
.report-card h4,
.member-row h4,
.profile-user h4 {
  font-size: 18px;
}

.focus-desc,
.report-card p,
.member-row p,
.profile-user p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.focus-stats {
  display: grid;
  align-content: space-between;
  justify-items: end;
}

.focus-number,
.mini-card strong,
.stats-strip strong,
.profile-points strong {
  font-family: "DM Sans", sans-serif;
}

.focus-number {
  font-size: 44px;
  line-height: 1;
  color: var(--orange-deep);
}

.focus-unit {
  font-size: 18px;
  color: var(--orange-deep);
  font-weight: 700;
}

.focus-stats p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.cta-btn {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38c96f 0%, #1aa453 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.mini-card-grid,
.stats-strip,
.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-card,
.stats-strip article {
  padding: 14px 12px;
}

.mini-card p,
.stats-strip span {
  font-size: 12px;
  color: var(--muted);
}

.mini-card strong,
.stats-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
}

.report-list,
.team-board {
  display: grid;
  gap: 12px;
}

.report-panel-note {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.report-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease;
}

.report-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.report-card-link:hover .report-card,
.report-card-link:focus-visible .report-card {
  color: var(--accent);
}

.report-card-main {
  flex: 1;
  min-width: 0;
}

.report-card-meta {
  color: #9ca3af;
  font-size: 12px;
}

.report-card-action {
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.report-card-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: #b5bdc9;
  font-size: 26px;
  line-height: 1;
}

.report-list .report-card-link:last-child .report-card {
  border-bottom: none;
}

.topbar-spacer {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.report-card strong,
.member-row strong {
  color: var(--orange-deep);
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
}

.team-board {
  padding: 12px;
}

.team-summary-card {
  padding: 18px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e4ebf7;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(67, 95, 148, 0.08);
}

.team-summary-label,
.team-summary-card h4,
.team-summary-note,
.team-summary-stats span,
.team-summary-stats strong {
  margin: 0;
}

.team-summary-label {
  color: #5d89dd;
  font-size: 12px;
  font-weight: 700;
}

.team-summary-card h4 {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.team-summary-note {
  margin-top: 10px;
  color: #647089;
  font-size: 13px;
  line-height: 1.7;
}

.team-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.team-summary-stats article {
  padding: 12px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8eef8;
}

.team-summary-stats span {
  display: block;
  color: #7a8598;
  font-size: 12px;
}

.team-summary-stats strong {
  display: block;
  margin-top: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  line-height: 1;
  color: #2b4f93;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px;
}

.member-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  color: #fff;
}

.member-rank.gold {
  background: linear-gradient(180deg, #ffcf59 0%, #f1a000 100%);
}

.member-rank.silver {
  background: linear-gradient(180deg, #c6d2e4 0%, #98a5b7 100%);
}

.member-rank.bronze {
  background: linear-gradient(180deg, #e7a16a 0%, #be6d28 100%);
}

.income-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px;
}

.income-hero h4 {
  margin: 8px 0 0;
  font-size: 36px;
  line-height: 1;
  color: var(--orange-deep);
}

.income-rise {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.bar-chart {
  height: 168px;
  padding: 14px 10px 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.bar-item {
  height: 100%;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 8px;
}

.bar-item span {
  width: 100%;
  max-width: 28px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #ffa657 0%, #ff6222 100%);
  box-shadow: inset 0 -10px 14px rgba(0, 0, 0, 0.08);
}

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

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffcb9d 0%, #ef9754 100%);
  color: #6b3504;
  font-weight: 800;
  font-size: 20px;
}

.profile-points {
  text-align: right;
}

.profile-points strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  color: var(--orange-deep);
}

.profile-actions button {
  padding: 14px 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #4e555f;
}

.query-topbar {
  background: linear-gradient(180deg, #fefefe 0%, #f8fbff 100%);
}

.report-query-page {
  background:
    linear-gradient(180deg, #cde2ff 0%, #eaf2ff 31%, #f4f7fc 100%);
}

.query-screen {
  position: relative;
  min-height: calc(100vh - 76px);
  padding-bottom: 28px;
}

.query-hero {
  position: relative;
  overflow: hidden;
  padding: 10px 14px 138px;
  background:
    radial-gradient(circle at 20% 35%, rgba(255, 255, 255, 0.55), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(118, 154, 255, 0.25), transparent 22%),
    linear-gradient(180deg, #8eb8ff 0%, #d9e9ff 100%);
}

.query-provider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #284b88;
  font-size: 14px;
  font-weight: 500;
}

.provider-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6bb1ff 0%, #2e6fe6 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.36);
}

.query-title-card {
  margin-top: 18px;
  width: calc(100% - 34px);
  padding: 20px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 18px 36px rgba(76, 115, 189, 0.12);
  backdrop-filter: blur(8px);
}

.query-title-card h2 {
  margin: 0;
  color: #183f98;
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1.2;
  font-weight: 800;
}

.query-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-cube,
.hero-triangle,
.hero-folder,
.hero-lens {
  position: absolute;
}

.hero-cube {
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(135, 177, 255, 0.34));
  box-shadow: 0 12px 24px rgba(89, 125, 201, 0.12);
}

.cube-a {
  width: 18px;
  height: 18px;
  right: 28px;
  top: 28px;
  transform: rotate(20deg);
}

.cube-b {
  width: 12px;
  height: 12px;
  left: 22px;
  bottom: 132px;
  transform: rotate(34deg);
}

.cube-c {
  width: 14px;
  height: 14px;
  right: 78px;
  top: 116px;
  transform: rotate(18deg);
}

.hero-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 22px solid #ffd22f;
  right: 112px;
  bottom: 84px;
  filter: drop-shadow(0 8px 12px rgba(255, 190, 49, 0.28));
  transform: rotate(18deg);
}

.hero-folder {
  width: 92px;
  height: 66px;
  right: 50px;
  bottom: 54px;
  border-radius: 16px 20px 20px 20px;
  background: linear-gradient(180deg, #5b92ff 0%, #3566e0 100%);
  transform: skew(-12deg) rotate(8deg);
  box-shadow: 0 18px 34px rgba(49, 94, 201, 0.26);
}

.hero-folder::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 18px;
  left: 10px;
  top: -8px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #81afff 0%, #5d90f5 100%);
}

.hero-lens {
  width: 60px;
  height: 60px;
  right: 18px;
  bottom: 42px;
  border-radius: 50%;
  border: 4px solid rgba(89, 150, 255, 0.9);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.34);
}

.hero-lens::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 6px;
  right: -16px;
  bottom: -10px;
  border-radius: 999px;
  background: #67a4ff;
  transform: rotate(42deg);
}

.query-form-card {
  position: relative;
  margin: -88px 14px 0;
  padding: 18px 16px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(224, 232, 245, 0.9);
  box-shadow: 0 18px 40px rgba(106, 131, 180, 0.16);
}

.query-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.query-form-head h3,
.query-disclaimer p,
.query-input input,
.sample-link,
.query-agree,
.query-submit,
.floating-rect,
.floating-rect span {
  margin: 0;
}

.query-form-head h3 {
  font-size: 28px;
  line-height: 1;
  color: #2a447e;
}

.query-form-head p {
  margin: 8px 0 0;
  color: #8d96a8;
  font-size: 14px;
}

.sample-link {
  color: #6d92e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.query-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.query-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e7eaf0;
  background: #fff;
  min-height: 48px;
}

.query-input input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #384454;
}

.query-input input::placeholder {
  color: #bcc3cf;
}

.query-input-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  position: relative;
  opacity: 0.55;
}

.query-input-icon.user::before {
  content: "";
  position: absolute;
  inset: 1px 3px 8px;
  border: 1.8px solid #98a7c0;
  border-radius: 50%;
}

.query-input-icon.user::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 7px;
  border: 1.8px solid #98a7c0;
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.query-input-icon.id::before {
  content: "EA";
  position: absolute;
  inset: 0;
  font-size: 10px;
  font-weight: 700;
  color: #98a7c0;
  border: 1.8px solid #98a7c0;
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.query-input-icon.phone::before {
  content: "";
  position: absolute;
  inset: 1px 4px;
  border: 1.8px solid #98a7c0;
  border-radius: 3px;
}

.query-input-icon.phone::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 1.8px;
  background: #98a7c0;
  border-radius: 999px;
}

.query-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #8e95a4;
  line-height: 1.6;
}

.query-agree input {
  margin-top: 2px;
}

.query-agree a {
  color: #6b8fdf;
  text-decoration: none;
}

.query-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dddddd 0%, #cbcbcb 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.query-disclaimer {
  margin-top: 14px;
  padding: 0 4px;
  color: #6c7584;
  font-size: 12px;
  line-height: 1.55;
}

.query-disclaimer strong {
  color: #b46d6d;
}

.query-status-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f6f9ff;
  border: 1px solid #e1e9f8;
}

.query-status-line {
  margin: 0;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: start;
  color: #607086;
  font-size: 12px;
  line-height: 1.7;
}

.query-status-line + .query-status-line {
  margin-top: 6px;
}

.query-status-line strong {
  color: #3d5278;
}

.query-status-link {
  color: #5f8fe5;
  text-decoration: none;
  word-break: break-all;
}

.query-status-link.is-disabled {
  color: #98a5bb;
  pointer-events: none;
}

.query-warning-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.warning-item,
.query-check-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(224, 232, 245, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(106, 131, 180, 0.12);
}

.warning-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.warning-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #74abff 0%, #4d7ef0 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.warning-item p,
.query-steps p,
.query-filing {
  margin: 0;
}

.warning-item p {
  color: #5d6676;
  font-size: 13px;
  line-height: 1.65;
}

.query-steps {
  margin-top: 12px;
  color: #5d6676;
  font-size: 13px;
  line-height: 1.75;
}

.query-check-card {
  margin: 16px 14px 0;
  padding: 18px 16px 20px;
}

.query-check-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.query-check-title h3 {
  margin: 0;
  color: #4a5d88;
  font-size: 16px;
  letter-spacing: 1px;
}

.check-title-mark {
  width: 16px;
  height: 16px;
  position: relative;
}

.check-title-mark::before,
.check-title-mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7ea8ff 0%, #5f89ee 100%);
}

.check-title-mark::before {
  left: 1px;
  height: 9px;
}

.check-title-mark::after {
  left: 7px;
  height: 14px;
}

.query-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-top: 18px;
}

.query-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f8ff 0%, #e8f0ff 100%);
  color: #6b87bd;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(207, 221, 248, 0.86);
}

.query-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #6b92e8;
  flex: 0 0 auto;
}

.query-filing {
  margin-top: 14px;
  text-align: center;
  color: #91a0bc;
  font-size: 12px;
}

.query-records-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 390px);
  max-height: 56vh;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -18px 40px rgba(75, 96, 139, 0.18);
  z-index: 20;
}

.screen-content-with-income-detail {
  padding-bottom: 132px;
}

.income-detail-trigger {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid #dce8fb;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 247, 255, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(67, 95, 148, 0.16);
  text-align: left;
  margin-top: 2px;
}

.income-detail-trigger-eyebrow,
.income-detail-trigger-hint,
.income-detail-trigger strong {
  margin: 0;
}

.income-detail-trigger-eyebrow {
  color: #6a87bc;
  font-size: 12px;
  font-weight: 700;
}

.income-detail-trigger strong {
  color: #243b66;
  font-size: 18px;
  line-height: 1.2;
}

.income-detail-trigger-hint {
  color: #7f8da8;
  font-size: 13px;
}

.income-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 39, 67, 0.28);
  z-index: 19;
}

.income-detail-backdrop.is-hidden {
  display: none;
}

.income-detail-panel {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(calc(100vw - 28px), 362px);
  bottom: calc(84px + env(safe-area-inset-bottom));
  max-height: min(52vh, 420px);
  padding: 18px 14px;
  border-radius: 24px;
  border: 1px solid #e4ecfa;
  box-shadow: 0 18px 40px rgba(75, 96, 139, 0.2);
}

.income-detail-panel .query-records-head h3 {
  order: 1;
}

.income-detail-panel .query-records-close {
  order: 2;
  margin-left: auto;
}

.query-records-panel.is-hidden {
  display: none;
}

.query-records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.query-records-head h3,
.query-records-empty,
.query-record-item p,
.query-record-item strong {
  margin: 0;
}

.query-records-head h3 {
  font-size: 18px;
  color: #324b7b;
}

.query-records-close {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #6a87bc;
  font-size: 12px;
  font-weight: 700;
}

.query-records-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 42vh;
  overflow-y: auto;
}

.query-records-empty {
  color: #8d98ab;
  font-size: 13px;
}

.query-record-item {
  padding: 12px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #e4ecfa;
}

.query-record-item strong {
  display: block;
  font-size: 14px;
  color: #344d7a;
}

.query-record-item p {
  margin-top: 5px;
  color: #6a7484;
  font-size: 12px;
  line-height: 1.6;
}

.query-record-link {
  display: inline-block;
  margin-top: 6px;
  color: #5c8fe8;
  text-decoration: none;
  font-size: 12px;
  word-break: break-all;
}

.pay-page {
  background:
    radial-gradient(circle at top, rgba(87, 208, 150, 0.12), transparent 26%),
    linear-gradient(180deg, #f2f7ff 0%, #f7fafc 100%);
}

.pay-screen {
  gap: 14px;
}

.pay-hero-card,
.pay-summary-card,
.pay-methods-card,
.pay-confirm-card {
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 22px;
}

.pay-hero-card {
  padding: 18px 16px;
  background:
    radial-gradient(circle at top right, rgba(129, 180, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #4e91ff 0%, #2d66e6 100%);
  color: #fff;
}

.pay-hero-badge,
.pay-summary-card h3,
.pay-methods-card h3,
.pay-tip,
.pay-confirm-status {
  margin: 0;
}

.pay-hero-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.pay-hero-card h2 {
  margin: 12px 0 0;
  font-size: 28px;
}

.pay-amount {
  margin: 14px 0 0;
  font-size: 18px;
}

.pay-amount span {
  font-family: "DM Sans", sans-serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.pay-summary-card,
.pay-methods-card,
.pay-confirm-card {
  padding: 16px;
}

.pay-summary-card h3,
.pay-methods-card h3 {
  font-size: 18px;
  color: #324b7b;
}

.pay-summary-card p {
  margin: 10px 0 0;
  color: #5e6878;
  font-size: 14px;
}

.pay-summary-card strong {
  color: #324b7b;
}

.pay-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pay-head-row span {
  color: #6a8edc;
  font-size: 13px;
  font-weight: 700;
}

.pay-method-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e2eaf8;
  color: #405068;
}

.pay-method.is-active {
  border-color: #87b1ff;
  box-shadow: inset 0 0 0 1px rgba(112, 160, 255, 0.35);
}

.pay-method-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.pay-method-icon.wechat {
  background: linear-gradient(180deg, #47d57b 0%, #20ad54 100%);
}

.pay-method-icon.alipay {
  background: linear-gradient(180deg, #61bbff 0%, #2688f1 100%);
}

.pay-tip {
  margin-top: 12px;
  color: #8895a8;
  font-size: 12px;
  line-height: 1.7;
}

.pay-confirm-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3bca72 0%, #1ca455 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.pay-confirm-status {
  margin-top: 12px;
  color: #6f7d91;
  font-size: 12px;
  line-height: 1.7;
}

.query-floating {
  position: absolute;
  right: 0;
  top: 322px;
  display: grid;
  gap: 8px;
}

.floating-rect {
  width: 108px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 16px 0 0 16px;
  color: #fff;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 28px rgba(68, 101, 170, 0.2);
}

.floating-rect.orange {
  background: linear-gradient(180deg, #ff9b4e 0%, #f56f1e 100%);
}

.floating-rect.blue {
  background: linear-gradient(180deg, #93b4ff 0%, #698de8 100%);
}

.float-rect-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.floating-rect span:last-child {
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.report-page {
  background:
    radial-gradient(circle at top, rgba(79, 138, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #edf3ff 0%, #f5f7fc 100%);
}

.report-screen {
  gap: 16px;
}

.report-hero,
.report-block,
.report-score-card,
.report-table-card,
.report-interpret-card {
  background: var(--surface);
  border: 1px solid #e4eaf5;
  border-radius: 20px;
}

.report-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  padding: 18px 16px;
  background:
    radial-gradient(circle at top right, rgba(118, 182, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #4f92ff 0%, #2f68e8 100%);
  color: #fff;
}

.report-hero-tag {
  margin: 0 0 8px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
}

.report-hero h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.report-hero-meta {
  margin-top: 10px;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.report-hero-score {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.report-hero-score strong,
.report-gauge-center strong,
.report-kpi-grid strong {
  font-family: "DM Sans", sans-serif;
}

.report-hero-score strong {
  font-size: 48px;
  line-height: 1;
}

.report-hero-score span {
  margin-top: 8px;
  font-size: 13px;
}

.report-block {
  padding: 16px;
}

.report-block-head h3,
.report-interpret-card h4 {
  margin: 4px 0 0;
  font-size: 20px;
}

.report-score-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 14px;
  margin-top: 12px;
}

.report-gauge {
  display: grid;
  place-items: center;
}

.report-gauge-ring {
  width: 118px;
  height: 118px;
  padding: 10px;
  border-radius: 50%;
  background: conic-gradient(#45c67a 0 72%, #dbe4f6 72% 100%);
}

.report-gauge-center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
}

.report-gauge-center strong {
  font-size: 34px;
  line-height: 1;
  color: #255ed8;
}

.report-gauge-center span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.report-summary-text {
  margin: 0;
  align-self: center;
  color: #5a6472;
  line-height: 1.8;
}

.report-info-grid,
.report-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.report-info-grid article,
.report-kpi-grid article {
  padding: 14px 12px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #e6edf8;
}

.report-info-grid span,
.report-kpi-grid span,
.report-table-head,
.report-table-row {
  font-size: 12px;
}

.report-info-grid span,
.report-kpi-grid span {
  display: block;
  color: var(--muted);
}

.report-info-grid strong,
.report-kpi-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: #274786;
}

.report-verify-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.report-verify-list article {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #e6edf8;
}

.report-verify-list b {
  color: #274786;
}

.report-verify-list span {
  color: #5d6673;
  text-align: right;
}

.report-table-card {
  margin-top: 12px;
  overflow: hidden;
}

.report-table-head,
.report-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 10px;
  padding: 12px 14px;
  align-items: center;
}

.report-table-head {
  background: #f4f8ff;
  color: #7a8492;
  font-weight: 700;
}

.report-table-row {
  color: #404854;
  border-top: 1px solid #edf2fb;
}

.report-interpret-card {
  margin-top: 12px;
  padding: 14px;
}

.report-interpret-card p {
  margin: 8px 0 0;
  color: #5a6472;
  line-height: 1.8;
}

.detail-screen {
  padding-bottom: 150px;
  background:
    linear-gradient(180deg, rgba(17, 20, 27, 0.36), rgba(17, 20, 27, 0.36)),
    linear-gradient(180deg, #f6f5f2 0%, #f1f0eb 100%);
}

.detail-summary-card,
.rights-card,
.detail-section,
.detail-bottom-actions,
.detail-popup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.detail-summary-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.detail-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eaf0ff 0%, #cfdcff 100%);
  color: #2f5fd4;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.detail-product-main h2 {
  font-size: 18px;
  line-height: 1.25;
}

.detail-price {
  margin-top: 6px;
  color: #6b7078;
  font-size: 14px;
}

.detail-price strong {
  color: var(--orange-deep);
}

.detail-score {
  text-align: right;
}

.detail-score strong {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 36px;
  color: #c92923;
  line-height: 1;
}

.detail-score span {
  color: #6e727a;
  font-size: 12px;
}

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

.detail-action {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
}

.detail-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.detail-action-icon.green {
  background: linear-gradient(180deg, #4fd38f 0%, #21b96c 100%);
}

.detail-action-icon.orange {
  background: linear-gradient(180deg, #f7bf61 0%, #f0931b 100%);
}

.detail-action-icon.red {
  background: linear-gradient(180deg, #ff9d63 0%, #ff6631 100%);
}

.detail-action span {
  font-size: 13px;
  color: #545a64;
}

.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rights-card {
  padding: 12px;
  background: linear-gradient(180deg, #effaf1 0%, #ffffff 100%);
}

.rights-card.orange {
  background: linear-gradient(180deg, #fff5e9 0%, #ffffff 100%);
}

.rights-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(180deg, #38c26d 0%, #1f9b53 100%);
}

.rights-card.orange .rights-tag {
  background: linear-gradient(180deg, #ffbe58 0%, #f0931c 100%);
}

.rights-card p {
  margin: 10px 0 0;
  color: #51565f;
  font-size: 13px;
}

.rights-card strong {
  color: #c83f21;
  font-size: 26px;
  font-family: "DM Sans", sans-serif;
}

.detail-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff4ef;
  color: #7d4737;
  font-size: 13px;
  line-height: 1.7;
}

.detail-note ol {
  margin: 8px 0 0;
  padding-left: 18px;
}

.detail-section {
  padding: 16px;
}

.detail-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
  color: #4f555e;
  line-height: 1.8;
}

.detail-bottom-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 54px 54px 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(24, 29, 37, 0.12);
}

.floating-mini-btn {
  display: grid;
  justify-items: center;
  gap: 6px;
  align-content: center;
  color: #848991;
  font-size: 11px;
}

.floating-mini-btn i {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
}

.footer-action {
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.footer-action.orange {
  background: linear-gradient(180deg, #f1a134 0%, #df7e08 100%);
}

.footer-action.green {
  background: linear-gradient(180deg, #39ca73 0%, #1da354 100%);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 21, 28, 0.32);
}

.detail-overlay.is-hidden {
  display: none;
}

.auth-page {
  background:
    radial-gradient(circle at top, rgba(77, 136, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #eef4ff 0%, #f8fafd 100%);
}

.auth-screen {
  min-height: 100%;
  padding: 36px 18px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.auth-hero,
.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e3eaf7;
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(71, 95, 140, 0.12);
}

.auth-hero {
  padding: 24px 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 185, 89, 0.22), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.auth-badge,
.auth-hero h1,
.auth-hero p,
.auth-message,
.auth-field span {
  margin: 0;
}

.auth-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4de;
  color: #d97a11;
  font-size: 12px;
  font-weight: 700;
}

.auth-hero h1 {
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.2;
  color: #21345d;
}

.auth-hero p {
  margin-top: 10px;
  color: #61708b;
  font-size: 14px;
  line-height: 1.75;
}

.auth-card {
  padding: 18px 16px 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: #f3f6fb;
}

.auth-tab {
  min-height: 42px;
  border-radius: 14px;
  color: #68778f;
  font-size: 15px;
  font-weight: 700;
}

.auth-tab.is-active {
  background: #fff;
  color: #29457a;
  box-shadow: 0 10px 24px rgba(84, 110, 159, 0.14);
}

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

.auth-form.is-hidden {
  display: none;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  color: #4f607c;
  font-size: 13px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #dbe5f3;
  background: #fbfdff;
  outline: none;
}

.auth-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #dbe5f3;
  background: #fbfdff;
  outline: none;
}

.auth-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
  color: #4f607c;
  font-size: 13px;
  font-weight: 600;
}

.auth-toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: #3f78f4;
}

.admin-page .admin-frame {
  width: min(100%, 560px);
  min-height: 844px;
}

.admin-actions {
  margin-top: 16px;
}

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

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4d88ff 0%, #2f67e4 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-message {
  min-height: 22px;
  margin-top: 14px;
  color: #6c7b93;
  font-size: 13px;
  line-height: 1.6;
}

.auth-message[data-type="error"] {
  color: #cc4d36;
}

.auth-message[data-type="success"] {
  color: #179c56;
}

.detail-popup {
  width: min(100%, 290px);
  padding: 22px 18px 18px;
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(29, 31, 38, 0.18);
}

.popup-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.popup-body {
  margin-top: 14px;
  color: #ea6d2a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  text-align: center;
}

.popup-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5bd087 0%, #34ba66 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #8d9097;
  font-size: 11px;
  text-decoration: none;
}

.nav-item.is-active {
  color: var(--green);
}

.nav-icon {
  width: 22px;
  height: 22px;
  position: relative;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon.home::before {
  inset: 6px 3px 1px;
}

.nav-icon.home::after {
  width: 12px;
  height: 12px;
  left: 5px;
  top: 1px;
  border-bottom: 0;
  border-right: 0;
  transform: rotate(45deg);
  border-radius: 2px;
}

.nav-icon.report::before {
  inset: 3px 5px;
}

.nav-icon.report::after {
  width: 8px;
  height: 2px;
  left: 7px;
  top: 8px;
  border: 0;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.nav-icon.team::before {
  width: 8px;
  height: 8px;
  left: 2px;
  top: 4px;
  border-radius: 50%;
}

.nav-icon.team::after {
  width: 8px;
  height: 8px;
  right: 2px;
  top: 4px;
  border-radius: 50%;
  box-shadow: -5px 9px 0 -1px currentColor;
}

.nav-icon.income::before {
  inset: 4px 5px 4px 5px;
  border-top: 0;
  border-right: 0;
  transform: skewY(-18deg);
}

.nav-icon.income::after {
  width: 10px;
  height: 10px;
  right: 3px;
  top: 2px;
  border-left: 0;
  border-bottom: 0;
}

.nav-icon.profile::before {
  width: 10px;
  height: 10px;
  left: 6px;
  top: 1px;
  border-radius: 50%;
}

.nav-icon.profile::after {
  width: 14px;
  height: 9px;
  left: 4px;
  bottom: 2px;
  border-radius: 8px 8px 5px 5px;
}

@media (max-width: 420px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }
}

@media (max-width: 360px) {
  .promo-banner,
  .focus-card,
  .product-link-card {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mini-card-grid,
  .stats-strip,
  .profile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .detail-bottom-actions {
    grid-template-columns: 1fr 1fr;
  }

  .report-hero,
  .report-score-card {
    grid-template-columns: 1fr;
  }

  .report-info-grid,
  .report-kpi-grid {
    grid-template-columns: 1fr;
  }

  .query-title-card h2 {
    font-size: 24px;
  }

  .query-form-head h3 {
    font-size: 24px;
  }

  .query-floating {
    top: 348px;
  }

  .floating-rect {
    width: 96px;
  }
}

.team-promo-card {
  display: grid;
  gap: 14px;
}

.team-promo-qr-wrap {
  display: flex;
  justify-content: center;
}

.team-promo-qr-wrap canvas {
  width: 180px;
  height: 180px;
  max-width: 100%;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.team-promo-link {
  margin: 0;
  word-break: break-all;
  font-size: 13px;
  line-height: 1.6;
}

.team-promo-link a {
  color: #2563eb;
  text-decoration: none;
}

.team-promo-link a:hover {
  text-decoration: underline;
}

.admin-team-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.admin-team-group + .admin-team-group {
  margin-top: 16px;
}

.admin-team-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-team-group-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.admin-team-group-head p,
.admin-team-link {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.admin-team-link a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}

.admin-team-members {
  display: grid;
  gap: 12px;
}

.admin-team-member {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.admin-team-member strong {
  display: block;
  margin-bottom: 4px;
}

.admin-team-member p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.admin-team-metrics {
  display: grid;
  gap: 6px;
  text-align: right;
  color: #0f172a;
  font-size: 13px;
  white-space: nowrap;
}
