body.beauty {
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --latin: "Didot", "Bodoni 72", "Times New Roman", "Noto Serif CJK SC", serif;
  --ivory: #fbf7f2;
  --cream: #f4ece3;
  --soft: #8a766e;
  --rose: #a8665a;
  --rose-deep: #8e5247;
  --rose-soft: #c9927f;
  --bg: #fbf7f2;
  --ink: #2f211d;
  --muted: #86726a;
  --card: #fffdfa;
  --line: #ecdfd5;
  --green: #a8665a;
  --green-dark: #8e5247;
  --seal: #8e5247;
  --warn: #9a6a2c;
  --warn-bg: #fdf3e4;
  --bad: #a54a45;
  --bad-bg: #fbeceb;
  --ok-bg: #edf4ef;
  --shadow: 0 12px 30px rgba(120, 72, 58, 0.07);
  --tab: 78px;
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
body.beauty h1, body.beauty h2, body.beauty h3 { font-family: var(--serif); letter-spacing: 0.04em; }
body.beauty a { color: var(--rose-deep); }
body.beauty .wrap { max-width: 520px; }
body.beauty.admin-view .wrap { max-width: 1100px; }

body.beauty .topbar {
  background: rgba(251, 247, 242, 0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 223, 213, 0.7);
  padding: 10px 18px;
}
body.beauty .brand { font-family: var(--serif); font-size: 1.08rem; letter-spacing: 0.12em; color: var(--ink); }
body.beauty .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fde9ee; border: 1.5px solid #f3c9d4;
  box-shadow: 0 6px 14px rgba(142, 82, 71, 0.2);
}
body.beauty .text-btn { border-radius: 999px; min-height: 36px; padding: 6px 14px; font-family: var(--serif); color: var(--soft); background: rgba(255, 253, 250, 0.7); }

body.beauty .btn { border-radius: 999px; font-family: var(--serif); letter-spacing: 0.08em; font-weight: 600; }
body.beauty .btn:not(.ghost):not(.danger) {
  background: linear-gradient(180deg, #b0705f 0%, var(--rose-deep) 100%);
  border-color: transparent; color: #fff8f2;
  box-shadow: 0 8px 18px rgba(142, 82, 71, 0.2);
}
body.beauty a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin: 4px 0 12px; }
body.beauty .btn.ghost { background: #fffdfa; border-color: var(--rose-soft); color: var(--rose-deep); }
body.beauty .btn.danger { border-radius: 999px; }
body.beauty .card, body.beauty .banner { border-radius: 18px; border-color: var(--line); }
body.beauty .card h2 { font-size: 1.12rem; }
body.beauty input, body.beauty textarea, body.beauty select { border-color: #e6d6ca; border-radius: 14px; background: #fff; }
body.beauty input:focus, body.beauty textarea:focus, body.beauty select:focus { outline: 3px solid rgba(168, 102, 90, 0.18); border-color: var(--rose); }
body.beauty input.need { border-color: #e2bf8a; background: var(--warn-bg); }
body.beauty .chips button.on, body.beauty .mode-row button.on, body.beauty .tabs button.active { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff8f2; }
body.beauty .badge { background: var(--cream); border-color: var(--line); }
body.beauty .badge.ok { background: var(--ok-bg); color: #4f7a63; }
body.beauty .addr-panel { background: #fffdfa; border-radius: 22px 22px 0 0; }
body.beauty .addr-sheet { background: rgba(47, 33, 29, 0.42); }
body.beauty .addr-list { border-radius: 14px; }
body.beauty .addr-list button.on { background: #f7ebe5; color: var(--rose-deep); }
body.beauty .notice-line { border-color: var(--line); border-radius: 10px; background: var(--ivory); font-size: 0.88rem; }
body.beauty .notice-card h2::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px; border-radius: 50%;
  background: var(--rose); box-shadow: 0 0 0 4px rgba(168, 102, 90, 0.16); vertical-align: middle;
}
body.beauty .submit-dock { background: rgba(251, 247, 242, 0.94); border-top-color: var(--line); }
body.beauty #toast { background: rgba(47, 33, 29, 0.92); font-family: var(--serif); letter-spacing: 0.04em; }

body.beauty .tabbar {
  left: 50%; right: auto; bottom: calc(12px + var(--safe)); transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px;
  background: rgba(251, 247, 242, 0.9); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 12px 30px rgba(120, 72, 58, 0.14);
}
body.beauty .tabbar a {
  flex: 1; padding: 10px 8px; border-radius: 999px; white-space: nowrap; text-align: center;
  font-family: var(--serif); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; color: var(--soft);
}
a.progress-jump {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 76px; text-decoration: none; color: inherit;
}
a.progress-jump strong {
  font-family: var(--latin); font-size: 30px; font-weight: 400; color: var(--rose); letter-spacing: 0.04em;
}
.progress-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.progress-nav a {
  text-align: center; text-decoration: none; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--serif); color: var(--soft); background: var(--card);
}
.progress-nav a.on { background: var(--rose-deep); color: #fff8f2; border-color: var(--rose-deep); }
.notice-summary { margin: 0 0 8px; font-weight: 700; }
.notice-fold .btn { margin-top: 8px; }
body.beauty .tabbar a.active { background: var(--rose-deep); color: #fff8f2; box-shadow: none; }

.bhero {
  position: relative; overflow: hidden;
  margin: -16px -16px 0; aspect-ratio: 4 / 3.35; min-height: 360px; max-height: 470px;
}
.bhero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
  transform: scale(1.04); animation: bsettle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes bsettle { to { transform: scale(1); } }
.bhero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251, 247, 242, 0.96) 0%, rgba(251, 247, 242, 0.82) 40%, rgba(251, 247, 242, 0) 66%),
              linear-gradient(180deg, rgba(251, 247, 242, 0) 70%, var(--ivory) 100%);
}
.flutter { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; perspective: 900px; }
.bf { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }
.bf-tilt { position: relative; transform-style: preserve-3d; }
.bf canvas { position: absolute; top: 0; display: block; backface-visibility: visible; }
.bf .bd { transform: translateZ(0.5px); }

.bhero-copy { position: relative; z-index: 2; padding: 34px 22px 0; max-width: 74%; }
.eyebrow { margin: 0 0 10px; font-family: var(--serif); font-size: 12px; letter-spacing: 0.2em; color: var(--rose); }
.eyebrow span { font-family: var(--latin); letter-spacing: 0.36em; }
.bhero h1 {
  margin: 0; font-size: clamp(32px, 9.4vw, 44px); line-height: 1.24; font-weight: 700; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(10px); animation: brise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes brise { to { opacity: 1; transform: none; } }
.lede { margin: 10px 0 18px; font-family: var(--serif); font-size: 13px; color: #5d4b45; letter-spacing: 0.04em; }
.bhero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px;
  padding: 12px 30px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #b0705f 0%, var(--rose-deep) 100%);
  color: #fff8f2; font-family: var(--serif); font-size: 16px; letter-spacing: 0.14em;
  box-shadow: 0 10px 22px rgba(142, 82, 71, 0.28);
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 236, 222, 0.5) 50%, transparent 70%);
  transform: translateX(-100%); animation: bsheen 5s 1.2s ease-in-out infinite;
}
@keyframes bsheen { 0%, 60% { transform: translateX(-100%); } 90%, 100% { transform: translateX(100%); } }
.cta-arrow { display: inline-block; width: 7px; height: 7px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: rotate(45deg); }
body.beauty .cta-link {
  margin-left: 14px; padding-bottom: 2px; text-decoration: none;
  font-family: var(--serif); font-size: 13px; color: #5d4b45;
  border-bottom: 1px solid var(--rose-soft);
}

.stats {
  position: relative; z-index: 3;
  margin: -6px 0 14px; padding: 12px 6px 14px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-k { font-family: var(--serif); font-size: 13px; color: #5d4b45; letter-spacing: 0.08em; }
.stat-v { font-family: var(--latin); font-weight: 400; font-size: 30px; color: var(--rose); line-height: 1.1; }

body.beauty .who { margin: 12px 4px; }
.paste-card { scroll-margin-top: 72px; }

body.beauty .fold { padding: 0; }
body.beauty .fold summary {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px;
  list-style: none; font-family: var(--serif); font-size: 1.08rem; letter-spacing: 0.06em;
}
body.beauty .fold summary::-webkit-details-marker { display: none; }
body.beauty .fold[open] summary { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.fold-count { font-family: var(--latin); font-size: 13px; color: var(--soft); letter-spacing: 0.04em; }
.fold-hint { margin-left: auto; width: 9px; height: 9px; border-right: 1.5px solid var(--rose); border-bottom: 1.5px solid var(--rose); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease; }
.fold[open] .fold-hint { transform: translateY(2px) rotate(-135deg); }
body.beauty .fold > :not(summary) { padding: 12px 14px 14px; }

.steps { margin: 16px 0 0; padding: 18px 16px; border-radius: 18px; background: var(--cream); }
.steps h2 { font-size: 1.05rem; letter-spacing: 0.08em; margin-bottom: 12px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.steps b { font-family: var(--latin); font-weight: 400; font-size: 22px; color: var(--rose); }
.steps span { font-family: var(--serif); font-size: 12px; color: #5d4b45; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .bhero-img, .bhero h1, .cta::after { animation: none; opacity: 1; transform: none; }
  .flutter { display: none; }
}
