:root {
  --bg: #f6f1e7;
  --bg-2: #fcf7ef;
  --ink: #201b16;
  --muted: #6a6157;
  --accent: #c4552d;
  --accent-2: #234e52;
  --success: #22644d;
  --danger: #a33e2c;
  --card: rgba(255, 255, 255, 0.84);
  --border: rgba(118, 93, 67, 0.18);
  --shadow: 0 20px 50px rgba(43, 32, 20, 0.12);
  --radius: 22px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 165, 120, 0.32), transparent 35%),
    radial-gradient(circle at bottom right, rgba(73, 121, 125, 0.22), transparent 42%),
    linear-gradient(135deg, #f8f4ee 0%, #f3ebdf 40%, #efe4d4 100%);
  z-index: -1;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 8vw;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d17d3f);
  box-shadow: var(--shadow);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav a.active {
  color: var(--accent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8vw 160px;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
}

.hero-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.site-banner {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(196, 85, 45, 0.2);
  background: linear-gradient(135deg, rgba(255, 244, 232, 0.96), rgba(255, 249, 243, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.site-banner-title {
  color: #b76136;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-banner-copy {
  color: rgba(53, 40, 28, 0.84);
  font-size: 14px;
  line-height: 1.7;
}

.site-announcement {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(196, 85, 45, 0.2);
  background: linear-gradient(135deg, rgba(255, 244, 232, 0.96), rgba(255, 249, 243, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.site-announcement-title {
  color: #b76136;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-announcement-copy {
  color: rgba(53, 40, 28, 0.84);
  font-size: 14px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 85, 45, 0.18);
  background: rgba(255, 248, 240, 0.92);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

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

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1,
.card-title {
  font-family: var(--font-display);
  margin: 0;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.95;
  margin-top: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-text,
.card-sub,
.muted {
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-text {
  max-width: 30rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-sub {
  margin-top: 6px;
}

.status-panel,
.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-width: 0;
}

.status-label,
.panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.status-value {
  font-size: 22px;
  font-weight: 700;
}

.toolbar,
.actions,
.filters,
.panel-grid,
.account-grid,
.bulk-toolbar,
.admin-card-head,
.checkbox-line,
.category-tabs,
.section-tabs,
.admin-page-tabs,
.pagination-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-scene {
  border-radius: 22px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 241, 214, 0.96), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.78);
  padding: 14px;
  overflow: hidden;
  min-height: 360px;
  position: relative;
}

.hero-scene-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-stage {
  position: relative;
  min-height: 330px;
  isolation: isolate;
}

.hero-stage-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-stage-glow-warm {
  inset: 10% 38% 44% 8%;
  background: radial-gradient(circle, rgba(231, 165, 95, 0.38), transparent 72%);
}

.hero-stage-glow-cool {
  inset: 42% 8% 6% 44%;
  background: radial-gradient(circle, rgba(79, 119, 126, 0.28), transparent 74%);
}

.hero-stage-floor {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(78%, 260px);
  height: 34px;
  translate: -50% 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(55, 34, 22, 0.22), transparent 72%);
  filter: blur(14px);
  animation: heroShadowPulse 3.2s ease-in-out infinite;
}

.hero-stage-art {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  top: 28px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: clamp(178px, 34vw, 236px);
  transform-origin: 50% 58%;
  animation:
    heroFloatY 3.2s ease-in-out infinite,
    heroSway 4.8s ease-in-out infinite,
    heroBreathe 3.2s ease-in-out infinite;
  cursor: pointer;
}

.hero-stage-art img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: translateY(var(--hero-art-shift-y, 0)) scale(var(--hero-art-scale, 1));
  filter: drop-shadow(0 10px 18px rgba(74, 32, 32, 0.12));
  transition: transform 320ms ease, opacity 240ms ease;
}

.section-tabs {
  margin-bottom: 18px;
}

.section-tabs.compact {
  margin-bottom: 16px;
}

.section-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 700;
}

.section-tab.active {
  border-color: rgba(196, 85, 45, 0.28);
  background: rgba(196, 85, 45, 0.12);
  color: var(--accent);
}

.admin-page-tabs {
  gap: 10px;
}

.admin-page-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 700;
}

.admin-page-tab.active {
  border-color: rgba(196, 85, 45, 0.28);
  background: rgba(196, 85, 45, 0.12);
  color: var(--accent);
}

.admin-page-panel {
  display: grid;
  gap: 24px;
}

.pagination-bar {
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.pagination-meta {
  color: var(--muted);
  font-size: 13px;
}

.pagination-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 16px;
  min-width: 0;
}

.section-panel {
  display: grid;
  gap: 16px;
}

.auth-entry-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.auth-entry-panel {
  display: grid;
  gap: 12px;
}

.auth-scan-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(179, 97, 49, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 241, 223, 0.9), transparent 48%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(250, 242, 233, 0.92));
}

.section-divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-divider-text::before,
.section-divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(118, 93, 67, 0.16);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.muted-panel {
  background: rgba(255, 250, 244, 0.78);
}

.more-methods {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.58);
}

.more-methods summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-2);
}

.more-methods[open] {
  background: rgba(255, 255, 255, 0.72);
}

.helper-lab-grid,
.helper-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.helper-lab-grid .panel,
.helper-hub-grid .panel {
  min-height: 100%;
}

.helper-binding-panel {
  grid-column: 1 / -1;
}

.helper-bind-selection {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.helper-binding-list-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.helper-binding-list {
  display: grid;
  gap: 10px;
}

.helper-status-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(247, 238, 229, 0.86));
}

.helper-status-card.ready {
  border-color: rgba(54, 122, 96, 0.22);
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(236, 248, 242, 0.9));
}

.helper-status-card-active {
  box-shadow: 0 14px 30px rgba(54, 122, 96, 0.08);
}

.helper-status-card.pending {
  border-color: rgba(196, 132, 66, 0.26);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(252, 240, 225, 0.92));
}

.helper-status-card-compact {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
}

.helper-status-main {
  display: grid;
  gap: 6px;
}

.helper-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(179, 97, 49, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.helper-status-meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.helper-binding-panel .actions {
  margin-top: 14px;
}

.helper-slot-summary-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.helper-slot-summary-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.helper-slot-summary-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--fg);
}

.helper-slot-summary-caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.helper-slot-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-slot-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(179, 97, 49, 0.09);
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
}

.helper-hub-grid .actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.helper-hub-grid .actions > * {
  min-width: 0;
}

.helper-hub-grid .actions button,
.helper-hub-grid .actions .ghost-link {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.helper-snapshot-item,
.helper-snapshot-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.helper-snapshot-card {
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 238, 0.98), transparent 42%),
    radial-gradient(circle at bottom right, rgba(241, 224, 201, 0.38), transparent 34%),
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(249, 241, 232, 0.9));
  overflow: hidden;
}

.helper-snapshot-card.latest {
  border-color: rgba(179, 97, 49, 0.28);
  box-shadow: 0 14px 28px rgba(179, 97, 49, 0.08);
}

.helper-snapshot-card.archived {
  opacity: 0.78;
  background:
    radial-gradient(circle at top left, rgba(245, 241, 236, 0.9), transparent 42%),
    linear-gradient(180deg, rgba(252, 250, 247, 0.96), rgba(241, 236, 230, 0.9));
}

.helper-snapshot-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.helper-snapshot-title-group {
  display: grid;
  gap: 4px;
}

.helper-snapshot-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.helper-snapshot-title {
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.helper-snapshot-subtitle,
.helper-snapshot-summary,
.helper-snapshot-time {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.helper-snapshot-time {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
  flex-shrink: 0;
}

.helper-snapshot-stage {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(182, 145, 114, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(246, 236, 224, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.helper-snapshot-card .actions,
.helper-status-card .actions,
.helper-restore-result-card .actions,
.helper-restore-progress-card .actions {
  grid-area: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.helper-snapshot-card .actions > *,
.helper-status-card .actions > *,
.helper-restore-result-card .actions > *,
.helper-restore-progress-card .actions > * {
  min-width: 0;
}

.helper-snapshot-card .actions .primary,
.helper-restore-result-card .actions .primary,
.helper-restore-progress-card .actions .primary {
  grid-column: 1 / -1;
}

.helper-snapshot-card .actions button,
.helper-status-card .actions button,
.helper-restore-result-card .actions button,
.helper-restore-progress-card .actions button,
.helper-snapshot-card .actions .ghost-link,
.helper-status-card .actions .ghost-link,
.helper-restore-result-card .actions .ghost-link,
.helper-restore-progress-card .actions .ghost-link {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.helper-snapshot-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.helper-snapshot-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(182, 145, 114, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.helper-snapshot-stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helper-snapshot-stat-value {
  font-size: 16px;
  line-height: 1.3;
}

.helper-hero-mini-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.helper-hero-mini {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(182, 145, 114, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 239, 229, 0.84));
}

.helper-hero-mini-slot {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(179, 97, 49, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.helper-hero-mini-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(182, 145, 114, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.95), rgba(239, 228, 215, 0.95));
}

.helper-hero-mini-avatar.placeholder {
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
}

.helper-hero-mini-body {
  display: grid;
  gap: 4px;
}

.helper-hero-mini-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.helper-hero-mini-meta {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.helper-hero-strip-empty {
  color: var(--muted);
  font-size: 14px;
}

.helper-team-switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.helper-snapshot-detail {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(255, 252, 247, 0.88);
}

.helper-detail-overview {
  display: grid;
  gap: 12px;
}

.helper-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.helper-overview-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(182, 145, 114, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.helper-overview-card.accent {
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(255, 255, 255, 0.86));
  border-color: rgba(196, 118, 53, 0.24);
}

.helper-overview-card.success {
  background: linear-gradient(180deg, rgba(246, 252, 248, 0.98), rgba(255, 255, 255, 0.86));
  border-color: rgba(54, 122, 96, 0.24);
}

.helper-overview-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helper-overview-value {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
}

.helper-hero-stack {
  display: grid;
  gap: 10px;
}

.helper-capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.helper-capability-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(182, 145, 114, 0.22);
  background: rgba(255, 255, 255, 0.9);
}

.helper-capability-card.ready {
  border-color: rgba(54, 122, 96, 0.24);
  background: rgba(245, 252, 248, 0.96);
}

.helper-capability-card.recorded {
  border-color: rgba(196, 132, 66, 0.28);
  background: rgba(255, 249, 241, 0.96);
}

.helper-capability-card.missing {
  opacity: 0.88;
}

.helper-capability-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.helper-capability-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(70, 95, 99, 0.09);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.helper-capability-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.helper-preview-warning-list,
.helper-preview-step-list {
  display: grid;
  gap: 10px;
}

.helper-preview-step {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(182, 145, 114, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.helper-preview-step.safe {
  border-color: rgba(54, 122, 96, 0.24);
  background: rgba(245, 252, 248, 0.96);
}

.helper-preview-step.ownership {
  border-color: rgba(196, 118, 53, 0.28);
  background: rgba(255, 248, 239, 0.98);
}

.helper-preview-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.helper-preview-step-index {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(218, 168, 122, 0.16);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.helper-hero-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(247, 217, 166, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(182, 145, 114, 0.18);
}

.helper-hero-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.helper-hero-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(182, 145, 114, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.95), rgba(239, 228, 215, 0.95));
}

.helper-hero-avatar.placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent-2);
}

.helper-hero-slot {
  position: absolute;
  left: -6px;
  top: -8px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf4;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(179, 97, 49, 0.18);
}

.helper-hero-body {
  display: grid;
  gap: 6px;
}

.helper-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  justify-content: flex-start;
}

.helper-hero-heading {
  display: grid;
  gap: 4px;
}

.helper-hero-headline-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.helper-hero-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(70, 95, 99, 0.09);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
}

.helper-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-hero-meta-soft {
  opacity: 0.96;
}

.helper-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(218, 168, 122, 0.16);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.helper-chip.helper-chip-accent {
  background: rgba(179, 97, 49, 0.14);
  color: var(--accent);
}

.helper-hero-extra {
  display: grid;
  gap: 10px;
}

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

.helper-hero-quick-meta {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(182, 145, 114, 0.14);
  background: rgba(253, 250, 245, 0.94);
  min-width: 0;
}

.helper-hero-quick-label {
  font-size: 11px;
  color: var(--muted);
}

.helper-hero-quick-meta strong {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.helper-detail-subsection {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(182, 145, 114, 0.14);
  background: rgba(252, 248, 242, 0.82);
}

.helper-detail-subtitle {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.helper-inline-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-restore-result-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(182, 145, 114, 0.22);
  background:
    radial-gradient(circle at top right, rgba(247, 217, 166, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(247, 240, 233, 0.9));
}

.helper-restore-progress-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(182, 145, 114, 0.22);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(247, 240, 233, 0.9));
}

.helper-restore-progress-card.running {
  border-color: rgba(196, 132, 66, 0.28);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(252, 240, 225, 0.92));
}

.helper-restore-progress-card.success,
.helper-restore-progress-card.warning {
  border-color: rgba(54, 122, 96, 0.24);
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(236, 248, 242, 0.92));
}

.helper-restore-progress-card.error {
  border-color: rgba(179, 97, 49, 0.24);
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.98), rgba(251, 238, 230, 0.92));
}

.helper-restore-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.helper-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(82, 66, 50, 0.09);
}

.helper-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d56b35 0%, #efad57 100%);
  box-shadow: 0 10px 18px rgba(213, 107, 53, 0.18);
  transition: width 220ms ease;
}

.helper-restore-result-card.ok,
.helper-restore-result-card.warning {
  border-color: rgba(54, 122, 96, 0.24);
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(236, 248, 242, 0.92));
}

.helper-restore-result-card.error {
  border-color: rgba(179, 97, 49, 0.24);
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.98), rgba(251, 238, 230, 0.92));
}

.helper-restore-result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.helper-restore-warning-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(196, 132, 66, 0.3);
  background: rgba(255, 249, 241, 0.95);
}

.helper-restore-warning-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.helper-restore-warning-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.helper-restore-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.helper-restore-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(182, 145, 114, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.helper-restore-stat.success {
  border-color: rgba(54, 122, 96, 0.24);
  background: rgba(244, 251, 247, 0.92);
}

.helper-restore-stat.warning {
  border-color: rgba(196, 132, 66, 0.24);
  background: rgba(255, 248, 240, 0.94);
}

.helper-restore-stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helper-restore-stat-value {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
}

.helper-restore-message {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.helper-slot-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(182, 145, 114, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.helper-slot-chip.empty {
  background: rgba(70, 95, 99, 0.08);
  color: var(--muted);
}

.helper-slot-chip.white {
  background: rgba(245, 245, 245, 0.96);
}

.helper-slot-chip.green {
  background: rgba(230, 247, 238, 0.96);
  color: #2e6a52;
}

.helper-slot-chip.blue {
  background: rgba(233, 242, 255, 0.96);
  color: #275e96;
}

.helper-slot-chip.purple {
  background: rgba(242, 235, 255, 0.96);
  color: #6a4b96;
}

.helper-slot-chip.orange {
  background: rgba(255, 243, 230, 0.96);
  color: #b45f16;
}

.helper-slot-chip.red {
  background: rgba(255, 234, 232, 0.96);
  color: #b2483a;
}

.helper-equip-part {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(182, 145, 114, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.helper-equip-part-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .helper-capability-grid {
    grid-template-columns: 1fr;
  }

  .helper-overview-grid,
  .helper-snapshot-stat-grid,
  .helper-restore-stat-grid,
  .helper-hero-quick-grid {
    grid-template-columns: 1fr;
  }

  .helper-hero-card {
    grid-template-columns: 1fr;
  }

  .helper-hero-avatar-wrap {
    width: 84px;
    height: 84px;
  }

  .helper-hero-avatar {
    width: 84px;
    height: 84px;
  }

  .helper-snapshot-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .helper-restore-result-head {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.beginner-flow {
  background:
    linear-gradient(180deg, rgba(255, 249, 243, 0.94), rgba(255, 255, 255, 0.86)),
    var(--card);
}

.beginner-flow-head {
  align-items: center;
}

.beginner-flow-switch {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.beginner-carousel-tabs {
  margin-bottom: 0;
}

.beginner-carousel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.beginner-carousel {
  overflow: hidden;
}

.beginner-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 240ms ease;
  will-change: transform;
}

.beginner-carousel-page {
  flex: 0 0 100%;
  min-width: 100%;
}

.guide-reward-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(196, 85, 45, 0.14), rgba(35, 78, 82, 0.12));
  border: 1px solid rgba(196, 85, 45, 0.16);
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.guide-reward-chip.claimed {
  color: var(--success);
  border-color: rgba(34, 100, 77, 0.2);
  background: linear-gradient(135deg, rgba(34, 100, 77, 0.14), rgba(247, 217, 166, 0.18));
}

.beginner-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 16px;
  align-items: stretch;
}

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

.tutorial-grid {
  position: relative;
}

.flow-step {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(196, 85, 45, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.tutorial-step {
  position: relative;
  gap: 12px;
  min-height: 240px;
  overflow: hidden;
}

.tutorial-step::after {
  content: "";
  position: absolute;
  inset: auto -24px 28px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(247, 217, 166, 0.42), transparent 70%);
  pointer-events: none;
}

.tutorial-step.done {
  border-color: rgba(34, 100, 77, 0.2);
  background: linear-gradient(180deg, rgba(241, 251, 246, 0.96), rgba(255, 255, 255, 0.84));
}

.tutorial-step.current {
  border-color: rgba(196, 85, 45, 0.24);
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.98), rgba(255, 255, 255, 0.84));
  box-shadow: 0 18px 36px rgba(196, 85, 45, 0.1);
}

.tutorial-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-step-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(196, 85, 45, 0.1);
}

.tutorial-step.done .tutorial-step-icon {
  color: var(--success);
  background: rgba(34, 100, 77, 0.12);
}

.guide-glyph {
  width: 30px;
  height: 30px;
  display: block;
}

.tutorial-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tutorial-status.done {
  color: var(--success);
  background: rgba(34, 100, 77, 0.12);
}

.tutorial-status.current {
  color: var(--accent);
  background: rgba(196, 85, 45, 0.12);
}

.tutorial-status.pending {
  color: var(--muted);
  background: rgba(118, 93, 67, 0.1);
}

.tutorial-link {
  margin-top: auto;
}

.tutorial-side {
  display: grid;
  gap: 14px;
}

.tutorial-side-card,
.tutorial-side-note {
  border-radius: 22px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.tutorial-side-card {
  min-height: 210px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(247, 217, 166, 0.42), transparent 42%),
    linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(255, 255, 255, 0.88));
}

.tutorial-side-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(35, 78, 82, 0.1);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.tutorial-side-value {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 60px);
  line-height: 0.9;
  color: var(--accent);
}

.tutorial-side-copy {
  margin-top: 10px;
  color: var(--muted);
}

.tutorial-side-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.tutorial-complete-card {
  display: grid;
  gap: 14px;
  min-height: 240px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(34, 100, 77, 0.18);
  background: linear-gradient(180deg, rgba(241, 251, 246, 0.98), rgba(255, 255, 255, 0.88));
}

.recent-sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 16px;
  align-items: stretch;
}

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

.recent-sale-item,
.recent-sales-empty {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.recent-sale-top,
.recent-sale-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.recent-sale-time,
.recent-sale-meta {
  color: var(--muted);
  font-size: 13px;
}

.recent-sale-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.flow-step-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.flow-step-title {
  font-size: 20px;
  font-weight: 700;
}

#recharge-panel,
#recharge-panel + .panel {
  grid-column: 1 / -1;
}

#recharge-panel .recharge-layout-split {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

#recharge-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.overview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.overview-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.overview-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.overview-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.overview-hint {
  color: var(--muted);
  font-size: 12px;
}

.admin-alert-card {
  border-color: rgba(196, 85, 45, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.94), rgba(255, 252, 247, 0.9)),
    var(--card);
}

.admin-alert-summary {
  display: grid;
  gap: 14px;
}

.admin-alert-lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.admin-alert-lead.hot {
  color: var(--accent);
}

.admin-alert-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-alert-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.admin-alert-item.hot {
  border-color: rgba(196, 85, 45, 0.22);
  background: rgba(255, 243, 235, 0.92);
}

.admin-alert-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-alert-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.admin-alert-value.hot {
  color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 12px 14px;
  min-width: 0;
}

textarea {
  resize: vertical;
}

button {
  cursor: pointer;
}

.primary,
.ghost,
.danger {
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
}

.primary {
  border: none;
  color: #fff;
  background: var(--accent);
}

.ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.danger {
  border: none;
  color: #fff;
  background: var(--danger);
}

.notice {
  margin-top: 16px;
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

.notice.error {
  color: var(--danger);
}

.notice.success {
  color: var(--success);
}

.debug-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(45, 35, 24, 0.18);
  background: rgba(32, 27, 22, 0.92);
  color: #f5ede3;
  box-shadow: 0 20px 40px rgba(16, 12, 8, 0.22);
}

.debug-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0bb88;
  font-size: 12px;
}

.debug-line {
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
  color: rgba(245, 237, 227, 0.92);
}

.product-grid,
.admin-list,
.stack-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card,
.admin-card,
.stack-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
}

.product-card {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--product-border, var(--border));
  box-shadow:
    0 18px 35px rgba(43, 32, 20, 0.08),
    0 0 0 1px var(--product-glow, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 235, 0.84)),
    linear-gradient(180deg, var(--product-top, #d7b188), var(--product-bottom, #465f63));
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 42px rgba(43, 32, 20, 0.14),
    0 0 0 1px var(--product-glow, transparent);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--product-glow, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 30%);
  pointer-events: none;
}

.product-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--product-border, var(--border)) 55%, white);
  background: linear-gradient(
    135deg,
    var(--product-top, #d7b188),
    var(--product-bottom, #465f63)
  );
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.product-cover::before,
.product-detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.42), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(24, 17, 12, 0.16), transparent 46%);
  pointer-events: none;
}

.product-cover::after,
.product-detail-cover::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.product-image-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.product-image-shell.grid {
  padding: 10px 10px 8px;
}

.product-image-shell.detail {
  padding: 12px 12px 10px;
}

.product-image,
.product-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease, filter 300ms ease;
  filter: drop-shadow(0 10px 18px rgba(35, 24, 17, 0.16));
  transform: scale(1.08);
  transform-origin: center center;
}

.product-card:hover .product-image {
  transform: translateY(-2px) scale(1.12);
  filter: drop-shadow(0 18px 26px rgba(35, 24, 17, 0.22));
}

.product-badge-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 24, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 248, 240, 0.96);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.product-badge.subtle {
  background: rgba(255, 252, 245, 0.82);
  color: rgba(42, 34, 26, 0.78);
  border-color: rgba(145, 117, 90, 0.18);
}

.product-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.bundle-collage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(50, 36, 25, 0.18), rgba(255, 255, 255, 0.02));
}

.bundle-collage-slot {
  position: absolute;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 248, 235, 0.55);
  box-shadow: 0 10px 24px rgba(22, 15, 10, 0.22);
  background: rgba(255, 255, 255, 0.18);
}

.bundle-collage-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-collage-four .slot-1 {
  inset: 10% 46% 28% 8%;
  transform: rotate(-10deg);
}

.bundle-collage-four .slot-2 {
  inset: 18% 24% 18% 28%;
  transform: rotate(-2deg);
}

.bundle-collage-four .slot-3 {
  inset: 12% 10% 30% 52%;
  transform: rotate(9deg);
}

.bundle-collage-four .slot-4 {
  inset: 48% 26% 6% 18%;
  transform: rotate(4deg);
}

.bundle-collage-six .slot-1,
.bundle-collage-six .slot-2,
.bundle-collage-six .slot-3,
.bundle-collage-six .slot-4,
.bundle-collage-six .slot-5,
.bundle-collage-six .slot-6 {
  transform: none;
}

.bundle-collage-six .slot-1 {
  inset: 8% 68% 52% 6%;
}

.bundle-collage-six .slot-2 {
  inset: 8% 38% 52% 36%;
}

.bundle-collage-six .slot-3 {
  inset: 8% 8% 52% 66%;
}

.bundle-collage-six .slot-4 {
  inset: 52% 68% 8% 6%;
}

.bundle-collage-six .slot-5 {
  inset: 52% 38% 8% 36%;
}

.bundle-collage-six .slot-6 {
  inset: 52% 8% 8% 66%;
}

.bundle-collage-gloss {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(15, 11, 8, 0.16));
  pointer-events: none;
}

.bundle-collage-empty {
  display: grid;
  place-items: center;
}

.product-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(20, 16, 13, 0.18), transparent 34%);
  pointer-events: none;
}

.product-name {
  font-weight: 700;
  font-size: 18px;
}

.product-headline {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  min-width: 0;
}

.product-type-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(246, 237, 226, 0.78);
  color: color-mix(in srgb, var(--product-border, var(--muted)) 58%, #1b1b1b);
  font-size: 11px;
  font-weight: 700;
}

.product-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.stat-block {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background: rgba(255, 255, 255, 0.66);
}

.stat-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.stat-full-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #d65a2f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-no-wrap {
  white-space: nowrap;
}

.product-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.term-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.term-row.compact {
  gap: 6px;
}

.term-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.term-badge.fire {
  background: #ffe1d5;
  border-color: #f2b39b;
  color: #ab4a21;
}

.term-badge.calm {
  background: #dfeeff;
  border-color: #afcdf8;
  color: #2f5ea8;
}

.term-badge.plain {
  background: #f0ece6;
  border-color: #ddd3c6;
  color: #6a6157;
}

.term-full-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #8b3f1e;
  font-size: 11px;
  font-weight: 700;
}

.term-badge.calm .term-full-mark {
  color: #2f5ea8;
}

.term-badge.plain .term-full-mark {
  color: #6a6157;
}

.term-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 7px 2px;
}

.term-more {
  opacity: 0.8;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f6ede2;
  color: var(--muted);
  font-size: 12px;
}

.chip.strong {
  background: rgba(35, 78, 82, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(35, 78, 82, 0.12);
}

.chip.accent {
  background: rgba(196, 85, 45, 0.12);
  color: var(--accent);
  border: 1px solid rgba(196, 85, 45, 0.12);
}

.chip.accent.soft {
  background: rgba(196, 85, 45, 0.08);
}

.chip.discount {
  background: rgba(35, 78, 82, 0.12);
  color: #234e52;
  border: 1px solid rgba(35, 78, 82, 0.12);
}

.chip.original-price {
  background: rgba(72, 60, 48, 0.08);
  color: rgba(72, 60, 48, 0.7);
  text-decoration: line-through;
}

.chip.subtle {
  background: rgba(72, 60, 48, 0.06);
  color: rgba(72, 60, 48, 0.78);
}

.product-card.discounted {
  --product-border: rgba(196, 85, 45, 0.28);
  --product-glow: rgba(196, 85, 45, 0.12);
}

.discount-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs {
  margin: 16px 0 18px;
}

.subcategory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.subcategory-tabs.hidden {
  display: none;
}

.subcategory-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(35, 78, 82, 0.14);
  border-radius: 999px;
  background: rgba(35, 78, 82, 0.06);
  color: #234e52;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  min-width: 0;
  max-width: 172px;
}

.subcategory-tab.active {
  background: #234e52;
  border-color: #234e52;
  color: #fff;
}

.subcategory-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(35, 78, 82, 0.12);
  font-size: 11px;
}

.subcategory-tab.active .subcategory-count {
  background: rgba(255, 255, 255, 0.18);
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(118, 93, 67, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  max-width: 188px;
}

.category-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(32, 27, 22, 0.08);
  font-size: 12px;
}

.category-tab.active .category-count {
  background: rgba(255, 255, 255, 0.2);
}

.tab-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quota-balance {
  font-size: 34px;
  font-weight: 700;
}

.recharge-layout {
  display: grid;
  gap: 16px;
}

.recharge-layout-split {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
}

.recharge-rate-banner {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 120, 52, 0.18);
  background: linear-gradient(135deg, rgba(212, 120, 52, 0.12), rgba(255, 249, 242, 0.92));
}

.recharge-rate-banner strong {
  font-size: 18px;
}

.recharge-direct-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(35, 78, 82, 0.14);
  background: linear-gradient(135deg, rgba(35, 78, 82, 0.1), rgba(255, 255, 255, 0.9));
}

.recharge-direct-banner strong {
  font-size: 17px;
}

.recharge-qr-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.recharge-qr-image {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: cover;
}

.guide-panel {
  align-content: start;
}

.guide-image {
  width: min(100%, 360px);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: cover;
}

.help-qr-image {
  width: min(100%, 280px);
  aspect-ratio: auto;
  object-fit: contain;
}

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.preset-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.recharge-quote {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(35, 78, 82, 0.12);
  background: rgba(35, 78, 82, 0.06);
}

.recharge-quote strong {
  font-size: 20px;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form > * {
  flex: 1 1 140px;
}

.bulk-toolbar {
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 18px;
}

.bulk-inline-form {
  width: 100%;
}

.poster-toolbar {
  margin-top: 0;
}

.poster-toolbar .bulk-inline-form > * {
  flex: 1 1 220px;
}

.poster-toolbar .primary {
  flex: 0 0 auto;
  min-width: 180px;
}

.poster-toolbar .ghost {
  flex: 0 0 auto;
}

.actions.tight {
  gap: 8px;
}

.actions.tight button {
  padding: 9px 14px;
}

.admin-product-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-product-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-product-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #d7b188, #465f63);
}

.admin-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-cover.fallback img {
  display: none;
}

.admin-product-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 36px;
  font-weight: 700;
}

.admin-product-cover.fallback .admin-product-fallback {
  display: grid;
}

.pricing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(196, 85, 45, 0.08);
  border: 1px solid rgba(196, 85, 45, 0.14);
  color: var(--muted);
  font-size: 12px;
}

.pricing-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.pricing-control-table {
  display: grid;
  gap: 16px;
}

.pricing-scroll-hint {
  color: var(--muted);
  font-size: 12px;
}

.pricing-overview-card,
.pricing-global-panel,
.pricing-tier-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.pricing-overview-card {
  background:
    radial-gradient(circle at top left, rgba(224, 139, 71, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.pricing-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pricing-overview-head strong {
  font-size: 18px;
}

.pricing-overview-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pricing-overview-meta,
.pricing-tier-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-overview-meta span,
.pricing-tier-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 85, 45, 0.14);
  background: rgba(196, 85, 45, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pricing-global-grid,
.pricing-tier-card-grid {
  display: grid;
  gap: 16px;
}

.pricing-global-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.pricing-tier-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.pricing-global-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-global-panel.accent,
.pricing-tier-section.accent {
  background: rgba(255, 248, 242, 0.92);
  border-color: rgba(196, 85, 45, 0.18);
}

.pricing-global-field {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.pricing-global-field span {
  font-weight: 700;
}

.pricing-global-field small {
  color: var(--muted);
  font-size: 12px;
}

.pricing-control-tier {
  display: grid;
  gap: 4px;
}

.pricing-control-tier strong {
  font-size: 15px;
}

.pricing-control-tier small,
.pricing-control-hint {
  color: var(--muted);
  font-size: 12px;
}

.pricing-tier-card-head {
  display: grid;
  gap: 10px;
}

.pricing-tier-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(73, 44, 17, 0.08);
  background: rgba(248, 244, 237, 0.78);
}

.pricing-tier-section-head {
  display: grid;
  gap: 4px;
}

.pricing-tier-section-head strong {
  font-size: 15px;
}

.pricing-tier-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.pricing-tier-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pricing-tier-field {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(73, 44, 17, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.pricing-tier-field > span {
  font-weight: 700;
  line-height: 1.5;
}

.pricing-tier-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-tier-field.is-muted {
  opacity: 0.64;
}

.pricing-block {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.pricing-block strong {
  font-size: 12px;
  color: var(--muted);
}

.pricing-block span {
  font-size: 18px;
  font-weight: 700;
}

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

.admin-detail-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.admin-card-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.checkbox-line {
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.hidden {
  display: none !important;
}

.dock-target-section {
  scroll-margin-top: 120px;
}

.teaser-panel {
  position: relative;
  overflow: hidden;
}

.teaser-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(196, 85, 45, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 240, 0.2), rgba(35, 78, 82, 0.06));
  pointer-events: none;
}

.teaser-body {
  position: relative;
  z-index: 1;
}

.teaser-copy {
  max-width: 760px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(118, 93, 67, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

.teaser-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(35, 78, 82, 0.08);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.draw-service-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
}

.draw-rule-list {
  display: grid;
  gap: 10px;
}

.draw-service-balance-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(196, 85, 45, 0.14);
  background: linear-gradient(135deg, rgba(255, 246, 239, 0.92), rgba(255, 255, 255, 0.72));
}

.guest-transfer-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(118, 93, 67, 0.14);
  background: rgba(255, 252, 247, 0.9);
}

.guest-transfer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.guest-transfer-card {
  align-self: start;
}

.guest-transfer-card-title {
  font-size: 18px;
}

.guest-transfer-methods {
  margin-bottom: 4px;
}

.guest-transfer-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.guest-transfer-summary {
  display: grid;
  gap: 12px;
}

.guest-transfer-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-transfer-field-span {
  grid-column: 1 / -1;
}

.guest-transfer-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.guest-transfer-form-actions button {
  min-height: 46px;
}

.guest-transfer-form-actions .ghost {
  min-width: 112px;
}

.guest-transfer-form-actions .primary {
  min-width: min(100%, 240px);
}

@media (max-width: 900px) {
  .guest-transfer-grid,
  .guest-transfer-fields {
    grid-template-columns: 1fr;
  }
}

.page-dock {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 24;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  width: min(920px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 26px;
  border: 1px solid rgba(118, 93, 67, 0.14);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 22px 60px rgba(43, 32, 20, 0.2);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.page-dock-item {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: rgba(244, 236, 224, 0.88);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}

.page-dock-item:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.page-dock-item.active {
  background: linear-gradient(135deg, var(--accent), #d17d3f);
  color: #fff;
  box-shadow: 0 12px 26px rgba(196, 85, 45, 0.26);
}

.mobile-admin-shortcut {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 18, 14, 0.52);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(252, 248, 242, 0.96);
  box-shadow: 0 24px 80px rgba(25, 18, 10, 0.24);
  padding: 22px;
}

.product-detail-modal {
  width: min(1040px, 100%);
}

.helper-bridge-modal {
  width: min(1120px, 100%);
}

.helper-bridge-modal-body {
  display: grid;
  gap: 14px;
}

.helper-bridge-iframe {
  width: 100%;
  min-height: min(72vh, 860px);
  border: 1px solid rgba(118, 93, 67, 0.14);
  border-radius: 20px;
  background: #fff;
}

.helper-bridge-hidden-frame {
  position: fixed;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  inset: auto;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-body {
  display: grid;
  gap: 18px;
}

.product-detail-shell {
  display: grid;
  gap: 18px;
}

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

.product-detail-cover {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--product-border, var(--border)) 55%, white);
  background: linear-gradient(
    135deg,
    var(--product-top, #d7b188),
    var(--product-bottom, #465f63)
  );
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.product-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-cover .bundle-collage-slot {
  border-radius: 18px;
}

.product-detail-cover .bundle-collage-four .slot-1 {
  inset: 8% 44% 28% 8%;
}

.product-detail-cover .bundle-collage-four .slot-2 {
  inset: 16% 24% 20% 24%;
}

.product-detail-cover .bundle-collage-four .slot-3 {
  inset: 10% 8% 32% 50%;
}

.product-detail-cover .bundle-collage-four .slot-4 {
  inset: 50% 22% 6% 16%;
}

.product-detail-cover .bundle-collage-six .slot-1 {
  inset: 6% 67% 52% 5%;
}

.product-detail-cover .bundle-collage-six .slot-2 {
  inset: 6% 36% 52% 36%;
}

.product-detail-cover .bundle-collage-six .slot-3 {
  inset: 6% 5% 52% 67%;
}

.product-detail-cover .bundle-collage-six .slot-4 {
  inset: 52% 67% 6% 5%;
}

.product-detail-cover .bundle-collage-six .slot-5 {
  inset: 52% 36% 6% 36%;
}

.product-detail-cover .bundle-collage-six .slot-6 {
  inset: 52% 5% 6% 67%;
}

.product-detail-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

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

.detail-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background: rgba(255, 255, 255, 0.72);
  min-width: 0;
}

.detail-row strong {
  color: var(--muted);
  font-size: 13px;
}

.detail-row span {
  font-size: 17px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-detail-actions > * {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 46px;
}

.direct-purchase-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(255, 255, 255, 0.76));
}

.direct-purchase-panel-head {
  display: grid;
  gap: 4px;
}

.direct-purchase-panel-head strong {
  font-size: 15px;
}

.direct-purchase-panel-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.direct-purchase-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.direct-purchase-balance-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(118, 93, 67, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.direct-purchase-balance-card span {
  color: var(--muted);
  font-size: 12px;
}

.direct-purchase-balance-card strong {
  font-size: 18px;
  line-height: 1.3;
  word-break: break-word;
}

.direct-purchase-remark-field {
  display: grid;
  gap: 8px;
}

.direct-purchase-remark-field textarea {
  width: 100%;
  min-height: 92px;
}

.order-toolbar {
  margin-bottom: 16px;
}

.order-item-list {
  display: grid;
  gap: 6px;
}

.order-item-line {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .app-header {
    padding: 18px 20px;
  }

  .brand-title {
    font-size: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-scene {
    min-height: 320px;
  }

  .hero-stage {
    min-height: 292px;
  }

  .card {
    padding: 20px;
  }

  .quick-links {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .draw-service-layout {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .auth-entry-grid {
    grid-template-columns: 1fr;
  }

  .beginner-flow-layout {
    grid-template-columns: 1fr;
  }

  .recent-sales-layout {
    grid-template-columns: 1fr;
  }

  .recent-sales-list {
    grid-template-columns: 1fr;
  }

  .recharge-layout-split {
    grid-template-columns: 1fr;
  }

  .recharge-direct-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .app-header {
    position: sticky;
    top: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(246, 241, 231, 0.86);
    border-bottom: 1px solid rgba(118, 93, 67, 0.1);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-sub {
    display: none;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 6px;
    margin: 0 -2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.76);
    white-space: nowrap;
    font-size: 14px;
  }

  .nav a.active {
    color: #fff;
    border-color: rgba(196, 85, 45, 0.22);
    background: linear-gradient(135deg, var(--accent), #d17d3f);
  }

  .mobile-admin-shortcut:not(.hidden) {
    display: block;
  }

  .container {
    gap: 18px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(138px + env(safe-area-inset-bottom));
  }

  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .hero-text,
  .card-sub,
  .muted,
  label {
    font-size: 14px;
  }

  .status-panel,
  .panel {
    padding: 16px;
  }

  .section-head {
    flex-direction: column;
  }

  .helper-hub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .helper-hub-grid .panel {
    padding: 16px;
  }

  .helper-hub-grid .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .helper-snapshot-card,
  .helper-status-card,
  .helper-restore-result-card,
  .helper-restore-progress-card {
    padding: 13px;
    gap: 10px;
    border-radius: 16px;
  }

  .helper-snapshot-head,
  .helper-restore-result-head,
  .helper-restore-progress-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .helper-snapshot-time {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    justify-items: start;
    text-align: left;
  }

  .helper-snapshot-title {
    font-size: 17px;
  }

  .helper-snapshot-stage {
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .helper-snapshot-card .actions,
  .helper-status-card .actions,
  .helper-restore-result-card .actions,
  .helper-restore-progress-card .actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .helper-snapshot-card .actions::-webkit-scrollbar,
  .helper-status-card .actions::-webkit-scrollbar,
  .helper-restore-result-card .actions::-webkit-scrollbar,
  .helper-restore-progress-card .actions::-webkit-scrollbar {
    display: none;
  }

  .helper-snapshot-card .actions .primary,
  .helper-restore-result-card .actions .primary,
  .helper-restore-progress-card .actions .primary {
    grid-column: auto;
  }

  .helper-snapshot-card .actions button,
  .helper-status-card .actions button,
  .helper-restore-result-card .actions button,
  .helper-restore-progress-card .actions button,
  .helper-snapshot-card .actions .ghost-link,
  .helper-status-card .actions .ghost-link,
  .helper-restore-result-card .actions .ghost-link,
  .helper-restore-progress-card .actions .ghost-link {
    flex: 0 0 auto;
    width: auto;
    min-width: 82px;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .helper-snapshot-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .helper-snapshot-stat,
  .helper-overview-card,
  .helper-restore-stat,
  .helper-hero-quick-meta,
  .helper-detail-subsection {
    padding: 10px 12px;
  }

  .helper-hero-mini-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 46vw);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .helper-hero-mini-strip::-webkit-scrollbar {
    display: none;
  }

  .helper-hero-mini {
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 84px;
    padding: 9px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .helper-hero-mini-slot {
    grid-column: 1 / -1;
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .helper-hero-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .helper-hero-mini-name {
    font-size: 12px;
  }

  .helper-hero-mini-meta {
    font-size: 11px;
    line-height: 1.35;
  }

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

  .helper-hero-card {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .helper-hero-avatar-wrap,
  .helper-hero-avatar {
    width: 64px;
    height: 64px;
  }

  .helper-hero-slot {
    left: -4px;
    top: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    font-size: 11px;
  }

  .helper-chip,
  .helper-hero-type,
  .helper-slot-chip {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .helper-restore-warning-list {
    padding: 10px 12px;
  }

  .helper-restore-warning-item {
    font-size: 13px;
    line-height: 1.55;
  }

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

  .hero-badges {
    gap: 8px;
  }

  .hero-stage-art {
    top: 48px;
    width: clamp(166px, 42vw, 220px);
  }

  .hero-badge,
  .guide-reward-chip {
    width: 100%;
    justify-content: center;
  }

  .quick-link {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
  }

  .toolbar,
  .actions,
  .filters,
  .section-tabs {
    gap: 10px;
  }

  .beginner-flow-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .beginner-carousel-actions {
    width: 100%;
  }

  .recharge-layout-split {
    grid-template-columns: 1fr !important;
  }

  .toolbar > *,
  .actions > *,
  .filters > *,
  .section-tabs > *,
  .beginner-carousel-actions > * {
    width: 100%;
    min-width: 0;
  }

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

  .flow-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-step {
    min-height: 0;
  }

  .product-card,
  .stack-item {
    padding: 12px;
    border-radius: 16px;
  }

  .product-cover {
    aspect-ratio: 1 / 1;
  }

  .product-image-shell.grid {
    padding: 14px 14px 12px;
  }

  .status-value {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .status-panel,
  .panel,
  .stack-item {
    overflow: hidden;
  }

  .product-name {
    font-size: 15px;
    line-height: 1.2;
  }

  .product-type-chip,
  .product-meta,
  .term-empty,
  .term-badge,
  .chip {
    font-size: 12px;
  }

  .product-headline {
    gap: 4px;
    margin-bottom: 8px;
  }

  .product-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
  }

  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
    scrollbar-width: none;
  }

  .subcategory-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

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

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

  .category-tab {
    flex: 0 0 auto;
    max-width: 156px;
  }

  .subcategory-tab {
    flex: 0 0 auto;
    max-width: 132px;
  }

  .panel-grid,
  .account-grid {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
  }

  .recharge-layout,
  .recharge-layout-split,
  .recharge-layout-split > *,
  #recharge-form,
  .recharge-rate-banner,
  .recharge-qr-card,
  .recharge-quote {
    min-width: 0;
  }

  #recharge-form .preset-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-toolbar .bulk-inline-form > * {
    flex-basis: 100%;
  }

  .poster-toolbar .primary {
    width: 100%;
  }

  #recharge-form .preset-chip {
    min-width: 0;
    width: 100%;
    padding: 10px 8px;
    white-space: normal;
    line-height: 1.25;
  }

  .recharge-qr-card {
    justify-items: center;
    text-align: center;
  }

  .recharge-qr-image,
  .guide-image,
  .help-qr-image {
    width: 100%;
    max-width: 320px;
  }

  .modal-card {
    width: 100%;
    max-height: min(92vh, 920px);
    padding: 18px;
  }

  .helper-bridge-modal {
    width: min(100%, 980px);
  }

  .helper-bridge-iframe {
    min-height: min(72vh, 760px);
  }

  .product-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-block {
    padding: 10px 8px;
    border-radius: 12px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 18px;
    line-height: 1.1;
  }

  .chip-row {
    gap: 6px;
  }

  .chip {
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
  }

  .actions,
  .product-detail-actions,
  .guest-transfer-form-actions {
    gap: 8px;
  }

  .actions button,
  .product-detail-actions button,
  .guest-transfer-form-actions button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .product-detail-layout,
  .detail-list,
  .direct-purchase-balance,
  .guest-transfer-fields {
    grid-template-columns: 1fr;
  }

  .guest-transfer-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .guest-transfer-form-actions button,
  .product-detail-actions > * {
    flex-basis: 100%;
  }

  .admin-product-layout {
    grid-template-columns: 1fr;
  }

  .pricing-global-grid,
  .pricing-tier-card-grid,
  .pricing-global-row {
    grid-template-columns: 1fr;
  }

  .pricing-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-tier-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .page-dock {
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    padding: 10px;
    gap: 8px;
    border-radius: 22px;
  }

  .page-dock-item {
    min-height: 48px;
    padding: 0 6px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .helper-bridge-modal {
    width: 100%;
    max-height: min(94vh, 960px);
    border-radius: 22px 22px 0 0;
    padding: 16px;
  }

  .helper-bridge-iframe {
    min-height: min(68vh, 720px);
    border-radius: 16px;
  }

  .helper-snapshot-summary,
  .helper-snapshot-subtitle,
  .helper-snapshot-time {
    font-size: 13px;
  }

  .helper-snapshot-card .actions button,
  .helper-status-card .actions button,
  .helper-restore-result-card .actions button,
  .helper-restore-progress-card .actions button,
  .helper-snapshot-card .actions .ghost-link,
  .helper-status-card .actions .ghost-link,
  .helper-restore-result-card .actions .ghost-link,
  .helper-restore-progress-card .actions .ghost-link {
    min-width: 76px;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .helper-hero-card {
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }

  .helper-hero-avatar-wrap,
  .helper-hero-avatar {
    width: 56px;
    height: 56px;
  }

  .helper-hero-quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 6px;
    padding: 2px 2px 6px;
  }

  .nav a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-scene {
    min-height: 278px;
    padding: 12px;
  }

  .hero-stage {
    min-height: 252px;
  }

  .hero-stage-art {
    top: 44px;
    width: clamp(154px, 50vw, 184px);
  }

  .quota-balance {
    font-size: 30px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .card {
    padding: 14px;
    border-radius: 18px;
  }

  .helper-hub-grid {
    gap: 10px;
  }

  .helper-hub-grid .panel {
    padding: 14px;
  }

  .helper-hub-grid .actions {
    grid-template-columns: 1fr;
  }

  .helper-snapshot-card .actions,
  .helper-status-card .actions,
  .helper-restore-result-card .actions,
  .helper-restore-progress-card .actions {
    gap: 6px;
  }

  .helper-snapshot-card .actions .primary,
  .helper-restore-result-card .actions .primary,
  .helper-restore-progress-card .actions .primary {
    grid-column: auto;
  }

  .helper-snapshot-card,
  .helper-status-card,
  .helper-restore-result-card,
  .helper-restore-progress-card {
    padding: 12px;
    gap: 10px;
  }

  .helper-snapshot-title {
    font-size: 17px;
  }

  .helper-snapshot-summary,
  .helper-snapshot-subtitle,
  .helper-snapshot-time {
    font-size: 13px;
  }

  .helper-snapshot-stat-grid,
  .helper-overview-grid,
  .helper-restore-stat-grid,
  .helper-hero-quick-grid {
    grid-template-columns: 1fr;
  }

  .helper-hero-mini-strip {
    grid-auto-columns: minmax(124px, 66vw);
  }

  .helper-hero-mini {
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 88px;
  }

  .helper-hero-mini-slot {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .helper-hero-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .helper-snapshot-summary,
  .helper-snapshot-subtitle,
  .helper-snapshot-time {
    font-size: 13px;
  }

  .helper-hero-card {
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }

  .helper-hero-avatar-wrap,
  .helper-hero-avatar {
    width: 56px;
    height: 56px;
  }

  .helper-snapshot-card .actions button,
  .helper-status-card .actions button,
  .helper-restore-result-card .actions button,
  .helper-restore-progress-card .actions button,
  .helper-snapshot-card .actions .ghost-link,
  .helper-status-card .actions .ghost-link,
  .helper-restore-result-card .actions .ghost-link,
  .helper-restore-progress-card .actions .ghost-link {
    min-width: 82px;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .helper-restore-message {
    padding: 10px 12px;
  }

  .helper-hero-quick-meta strong {
    font-size: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-card {
    grid-template-columns: minmax(102px, 118px) minmax(0, 1fr);
    grid-template-areas:
      "cover summary"
      "chips chips"
      "actions actions";
    align-items: start;
    padding: 8px;
    gap: 8px;
  }

  .product-cover {
    grid-area: cover;
    aspect-ratio: auto;
    min-height: 120px;
    height: 100%;
  }

  .product-image-shell.grid {
    padding: 10px 10px 8px;
  }

  .product-cover .product-badge-row {
    display: none;
  }

  .product-summary {
    grid-area: summary;
    gap: 6px;
  }

  .quick-link {
    min-height: 40px;
    font-size: 12px;
  }

  #recharge-form .preset-list {
    grid-template-columns: 1fr;
  }

  .recharge-rate-banner,
  .recharge-qr-card,
  .recharge-quote {
    padding: 12px;
  }

  .product-name {
    font-size: 14px;
    line-height: 1.2;
  }

  .product-type-chip,
  .product-meta,
  .chip,
  .term-empty,
  .term-badge {
    font-size: 11px;
  }

  .stat-block {
    padding: 8px 6px;
  }

  .stat-value {
    font-size: 16px;
  }

  .product-headline {
    gap: 4px;
    margin-bottom: 0;
  }

  .product-type-chip {
    max-width: 100%;
    padding: 4px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-stats-grid {
    gap: 6px;
    margin-bottom: 0;
  }

  .term-row {
    gap: 6px;
  }

  .term-badge,
  .term-empty,
  .chip {
    padding: 5px 8px;
  }

  .chip-row {
    grid-area: chips;
    gap: 6px;
  }

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

  .actions button {
    min-height: 34px;
    font-size: 12px;
    padding: 7px 8px;
    white-space: nowrap;
  }

  .product-detail-actions,
  .guest-transfer-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-detail-actions button,
  .guest-transfer-form-actions button {
    min-height: 44px;
    font-size: 14px;
    white-space: normal;
  }

  .guest-transfer-panel {
    padding: 12px;
  }

  .recharge-qr-card.guest-transfer-card {
    text-align: left;
    justify-items: stretch;
  }

  .recharge-qr-card.guest-transfer-card .recharge-qr-image {
    margin: 0 auto;
  }

  .detail-row span {
    font-size: 16px;
  }

  .page-dock {
    width: calc(100vw - 16px);
    padding: 8px;
    gap: 6px;
  }

.page-dock-item {
  min-height: 44px;
  font-size: 12px;
}
}

@media (max-width: 640px) {
  .helper-snapshot-card,
  .helper-status-card,
  .helper-restore-result-card,
  .helper-restore-progress-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .helper-snapshot-summary {
    font-size: 12px;
    line-height: 1.45;
  }

  .helper-snapshot-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .helper-snapshot-stat {
    gap: 2px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .helper-snapshot-stat-label {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .helper-snapshot-stat-value {
    font-size: 13px;
    line-height: 1.25;
  }

  .helper-snapshot-card .actions,
  .helper-status-card .actions,
  .helper-restore-result-card .actions,
  .helper-restore-progress-card .actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .helper-snapshot-card .actions::-webkit-scrollbar,
  .helper-status-card .actions::-webkit-scrollbar,
  .helper-restore-result-card .actions::-webkit-scrollbar,
  .helper-restore-progress-card .actions::-webkit-scrollbar,
  .helper-hero-mini-strip::-webkit-scrollbar,
  .helper-hero-meta::-webkit-scrollbar {
    display: none;
  }

  .helper-snapshot-card .actions .primary,
  .helper-restore-result-card .actions .primary,
  .helper-restore-progress-card .actions .primary {
    grid-column: auto;
  }

  .helper-snapshot-card .actions button,
  .helper-status-card .actions button,
  .helper-restore-result-card .actions button,
  .helper-restore-progress-card .actions button,
  .helper-snapshot-card .actions .ghost-link,
  .helper-status-card .actions .ghost-link,
  .helper-restore-result-card .actions .ghost-link,
  .helper-restore-progress-card .actions .ghost-link {
    flex: 0 0 auto;
    width: auto;
    min-width: 74px;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .helper-snapshot-stage {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .helper-hero-mini-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(108px, 42vw);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .helper-hero-mini {
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 78px;
    padding: 9px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .helper-hero-mini-slot {
    grid-column: 1 / -1;
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .helper-hero-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .helper-hero-mini-name {
    font-size: 12px;
    line-height: 1.25;
  }

  .helper-hero-mini-meta {
    font-size: 11px;
    line-height: 1.35;
  }

  .helper-hero-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .helper-hero-meta .helper-chip {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .helper-snapshot-detail {
    gap: 8px;
    padding: 10px 12px;
  }

  .helper-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .helper-overview-card {
    gap: 3px;
    padding: 10px;
    border-radius: 14px;
  }

  .helper-overview-label {
    font-size: 10px;
  }

  .helper-overview-value {
    font-size: 14px;
    line-height: 1.3;
  }

  .helper-hero-stack {
    gap: 8px;
  }

  .helper-hero-card {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .helper-hero-avatar-wrap,
  .helper-hero-avatar {
    width: 56px;
    height: 56px;
  }

  .helper-hero-body {
    gap: 5px;
  }

  .helper-hero-head {
    gap: 4px 6px;
  }

  .helper-hero-heading strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .helper-hero-headline-meta {
    font-size: 11px;
    line-height: 1.35;
  }

  .helper-hero-type {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }

  .helper-hero-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .helper-hero-quick-meta {
    gap: 2px;
    padding: 8px 9px;
    border-radius: 10px;
  }

  .helper-hero-quick-label {
    font-size: 10px;
  }

  .helper-hero-quick-meta strong {
    font-size: 12px;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  .helper-snapshot-card .actions button,
  .helper-status-card .actions button,
  .helper-restore-result-card .actions button,
  .helper-restore-progress-card .actions button,
  .helper-snapshot-card .actions .ghost-link,
  .helper-status-card .actions .ghost-link,
  .helper-restore-result-card .actions .ghost-link,
  .helper-restore-progress-card .actions .ghost-link {
    min-width: 68px;
    min-height: 28px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .helper-hero-mini-strip {
    grid-auto-columns: minmax(102px, 48vw);
  }

  .helper-overview-grid,
  .helper-hero-quick-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes heroFloatY {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes heroSway {
  0%,
  100% {
    rotate: var(--sway-start, -1.4deg);
  }

  50% {
    rotate: var(--sway-end, 1.4deg);
  }
}

@keyframes heroBreathe {
  0%,
  100% {
    scale: 0.985;
  }

  50% {
    scale: 1;
  }
}

@keyframes heroShadowPulse {
  0%,
  100% {
    transform: scaleX(0.9);
    opacity: 0.38;
  }

  50% {
    transform: scaleX(1.04);
    opacity: 0.58;
  }
}

.helper-inventory-binding-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(201, 148, 95, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 249, 240, 0.92));
  box-shadow: 0 20px 44px rgba(58, 31, 9, 0.08);
}

.helper-inventory-binding-card.active {
  border-color: rgba(201, 112, 58, 0.34);
  box-shadow: 0 24px 48px rgba(176, 99, 44, 0.14);
}

.helper-inventory-binding-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.helper-inventory-binding-summary {
  display: grid;
  gap: 2px;
  min-width: 76px;
  justify-items: end;
  color: var(--accent-color, #bf6228);
}

.helper-inventory-binding-summary strong {
  font-size: 1.3rem;
  line-height: 1;
}

.helper-inventory-binding-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.helper-inventory-merged-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.helper-inventory-merged-head > div:first-child {
  display: grid;
  gap: 6px;
}

.helper-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.helper-inventory-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(201, 148, 95, 0.16);
  background: rgba(255, 251, 244, 0.9);
  box-shadow: 0 14px 32px rgba(58, 31, 9, 0.06);
}

.helper-inventory-item.compact {
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 10px;
  border-radius: 16px;
  gap: 10px;
}

.helper-inventory-item-image {
  width: 70px;
  height: 98px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(236, 226, 211, 0.85);
}

.helper-inventory-item.compact .helper-inventory-item-image {
  width: 54px;
  height: 76px;
  border-radius: 12px;
}

.helper-inventory-item-image.placeholder {
  display: grid;
  place-items: center;
  color: #8d5f34;
  font-weight: 700;
}

.helper-inventory-item-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.helper-inventory-item-name {
  font-size: 1rem;
  font-weight: 700;
  color: #2c241d;
  line-height: 1.25;
}

.helper-inventory-item-meta,
.helper-inventory-item-attrs {
  color: rgba(44, 36, 29, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.helper-inventory-item-chips,
.helper-inventory-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-chip-soft {
  background: rgba(246, 238, 227, 0.95);
  border-color: rgba(201, 148, 95, 0.18);
}

@media (max-width: 720px) {
  .helper-inventory-binding-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .helper-inventory-binding-summary {
    justify-items: start;
  }

  .helper-inventory-binding-preview,
  .helper-inventory-grid {
    grid-template-columns: 1fr;
  }

  .helper-inventory-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
    border-radius: 16px;
  }

  .helper-inventory-item-image {
    width: 58px;
    height: 82px;
    border-radius: 12px;
  }
}
