@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Geist:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy: #403a52;
  --navy-2: #6f5b66;
  --blue: #b7c9ad;
  --blue-deep: #527e91;
  --ice: #6d636d;
  --paper: #fff4dc;
  --white: #fffaf0;
  --line: #403a52;
  --muted: #746b74;
  --red: #d7786c;
  --peach: #d99073;
  --yellow: #f3c969;
  --lavender: #aaa0bc;
  --mint: #83a985;
  --shadow: 8px 9px 0 rgba(64, 58, 82, .92);

  /* 4.2：一猫一档 1.0 语义化 tokens（收敛重复视觉值） */
  --radius-card: 16px 13px 18px 14px;
  --radius-button: 12px;
  --radius-small: 8px;
  --border-main: 2px solid var(--navy);
  --border-light: 1px solid var(--line);
  --shadow-main: 4px 5px 0 var(--navy);
  --shadow-soft: 3px 4px 0 var(--navy);
  --tabbar-height: 76px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 26px;
  --space-xl: 40px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--ice); }
body { margin: 0; color: var(--navy); background: var(--ice); font-family: Geist, "Noto Sans SC", sans-serif; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image: radial-gradient(circle, #d8bba8 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 80%, transparent);
}
button, input, select, textarea { font: inherit; }
button, a, summary, .drop { touch-action: manipulation; }
main { position: relative; width: 100%; max-width: 1720px; min-height: 100vh; margin: 0 auto; padding: 24px 34px 0; overflow-x: hidden; }

nav:not(.tabbar) {
  position: relative;
  z-index: 30;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(122, 174, 205, .5);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(23, 60, 87, .08);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font: 800 18px "Noto Sans SC"; text-decoration: none; letter-spacing: -.04em; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--navy-2); font: 500 10px "DM Mono"; letter-spacing: .14em; }
.admin-settings { position: relative; }
.admin-settings summary { list-style: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.admin-settings summary::-webkit-details-marker { display: none; }
#settings { position: absolute; right: 0; top: 42px; width: min(390px, calc(100vw - 38px)); padding: 26px; background: var(--white); border: 1px solid var(--navy); box-shadow: var(--shadow); z-index: 40; }
.settings-copy strong, .settings-copy small { display: block; }
.settings-copy small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
#settings label { display: block; margin: 14px 0; font-size: 11px; }
.setting-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.notice { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.marquee { margin: 14px -34px 0; overflow: hidden; border-bottom: 1px solid var(--line); white-space: nowrap; }
.marquee div { width: max-content; padding: 11px 0; color: #4f7894; font: 500 10px "DM Mono"; letter-spacing: .15em; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.studio-hero {
  min-height: 720px;
  padding: 110px 16px 130px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0;
  align-items: center;
}
.studio-copy { grid-column: span 7; position: relative; z-index: 2; padding-right: clamp(35px, 6vw, 100px); }
.studio-copy h1 { max-width: 920px; margin: 0; font: 900 clamp(3rem, 5vw, 5.6rem)/1.04 "Noto Sans SC"; letter-spacing: -.075em; }
.studio-copy > p:not(.kicker) { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; gap: 10px; margin-top: 38px; }
.hero-actions .button { min-width: 178px; }
.text-button { color: var(--navy); background: transparent; border: 1px solid var(--navy); }
.cat-stage { grid-column: span 5; position: relative; min-height: 480px; display: grid; place-items: center; overflow: hidden; background: var(--yellow); border: 1px solid var(--navy); border-radius: 48% 48% 24px 24px; box-shadow: 18px 20px 0 var(--peach); }
.cat-stage::before { content: "MEOW"; position: absolute; right: -30px; bottom: -35px; color: rgba(255,255,255,.32); font: 800 8rem Geist; transform: rotate(-8deg); }
.cat-head { position: relative; width: min(310px, 66%); aspect-ratio: 1; background: #fff3dc; border: 3px solid var(--navy); border-radius: 48% 48% 46% 46%; box-shadow: inset 0 -25px 0 rgba(240,164,125,.22); }
.cat-head::before, .cat-head::after { content: ""; position: absolute; top: -76px; width: 142px; height: 168px; background: linear-gradient(135deg, #fff3dc 58%, var(--peach) 59%); clip-path: polygon(50% 0, 100% 100%, 0 100%); z-index: -1; }
.cat-head::before { left: -5px; transform: rotate(-12deg); }
.cat-head::after { right: -5px; transform: rotate(12deg) scaleX(-1); }
.cat-eye { position: absolute; top: 42%; width: 48px; height: 58px; background: var(--navy); border-radius: 50%; }
.cat-eye::after { content: ""; position: absolute; top: 8px; left: 10px; width: 13px; height: 15px; background: white; border-radius: 50%; }
.cat-eye.left { left: 25%; }
.cat-eye.right { right: 25%; }
.cat-nose { position: absolute; left: 50%; top: 64%; width: 28px; height: 20px; background: var(--peach); border: 2px solid var(--navy); border-radius: 45% 45% 65% 65%; transform: translateX(-50%); }
.whiskers { position: absolute; top: 69%; width: 112px; height: 2px; background: var(--navy); }
.whiskers::before, .whiskers::after { content: ""; position: absolute; width: 112px; height: 2px; background: var(--navy); }
.whiskers::before { transform: rotate(12deg); }
.whiskers::after { transform: rotate(-12deg); }
.whiskers.left { left: -74px; }
.whiskers.right { right: -74px; }
.cat-voice { position: absolute; right: 22px; bottom: 22px; width: 230px; padding: 16px 18px; background: white; border: 1px solid var(--navy); border-radius: 12px; box-shadow: 7px 7px 0 var(--navy); }
.cat-voice p { min-height: 24px; margin: 0 0 12px; font-weight: 700; }
.cat-voice > div { display: flex; gap: 6px; justify-content: flex-end; }
.cat-voice button { width: 30px; height: 28px; padding: 0; color: white; background: var(--navy); border: 0; border-radius: 6px; cursor: pointer; }

.product-family { padding: 140px 16px 170px; border-top: 1px solid var(--line); }
.product-family > header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 48px; }
.product-family h2 { max-width: 900px; margin: 0; font: 900 clamp(2.7rem, 5vw, 5.2rem)/1.05 "Noto Sans SC"; letter-spacing: -.075em; }
.product-accordions { min-height: 480px; display: flex; overflow: hidden; border: 1px solid var(--navy); border-radius: 18px; }
.product-card { position: relative; min-width: 0; flex: 1; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-right: 1px solid var(--navy); transition: flex .65s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.product-card:last-child { border-right: 0; }
.product-card:hover { flex: 1.35; }
.product-card.id-product { background: var(--blue); }
.product-card.wanted-product { background: var(--peach); }
.product-card.beauty-product { background: var(--lavender); }
.product-card small { color: rgba(45,33,29,.68); font: 500 10px "DM Mono"; letter-spacing: .12em; }
.product-card h3 { margin: 12px 0 13px; font: 800 clamp(1.65rem, 2.4vw, 2.8rem) "Noto Sans SC"; letter-spacing: -.06em; }
.product-card p { max-width: 360px; min-height: 52px; margin: 0 0 25px; color: rgba(45,33,29,.72); font-size: 12px; line-height: 1.7; }
.product-card a, .soon { display: inline-flex; width: max-content; padding-bottom: 5px; color: var(--navy); border-bottom: 1px solid var(--navy); font-size: 12px; font-weight: 700; text-decoration: none; }
.product-cat { position: relative; width: 150px; height: 135px; margin: 0 0 45px auto; background: #fff3dc; border: 2px solid var(--navy); border-radius: 48%; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-cat { transform: scale(1.08) rotate(3deg); }
.product-cat::before, .product-cat::after { content: ""; position: absolute; top: -38px; width: 70px; height: 82px; background: #fff3dc; clip-path: polygon(50% 0, 100% 100%, 0 100%); z-index: -1; }
.product-cat::before { left: 1px; transform: rotate(-10deg); }
.product-cat::after { right: 1px; transform: rotate(10deg); }
.product-cat i { position: absolute; top: 48px; width: 21px; height: 27px; background: var(--navy); border-radius: 50%; }
.product-cat i:first-child { left: 37px; }
.product-cat i:nth-child(2) { right: 37px; }
.product-cat span { position: absolute; left: 50%; top: 82px; width: 18px; height: 12px; background: var(--peach); border-radius: 50%; transform: translateX(-50%); }
.product-cat.fierce i { height: 9px; border-radius: 0; transform: rotate(10deg); }
.product-cat.fierce i:nth-child(2) { transform: rotate(-10deg); }
.product-cat.lovely i { width: 27px; height: 31px; background: #6f4b98; }

.workspace {
  min-height: calc(100vh - 116px);
  padding: 82px 0 150px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0;
}
.upload-panel { position: relative; grid-column: span 5; padding: 24px clamp(34px, 4vw, 72px) 44px 16px; }
.upload-panel::before { content: ""; }
.result-panel { grid-column: span 7; padding: 24px 16px 44px clamp(34px, 4vw, 72px); border-left: 1px solid var(--line); }
.upload-panel > *, .result-panel > * { position: relative; z-index: 1; }
.kicker { margin: 0 0 20px; color: var(--navy-2); font: 500 10px "DM Mono"; letter-spacing: .18em; }
.workflow-title { max-width: 760px; margin: 0; font: 900 clamp(2.8rem, 4.7vw, 5rem)/1.02 "Noto Sans SC"; letter-spacing: -.075em; overflow-wrap: anywhere; word-break: break-all; }
.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 13px;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 15px 12px 16px 13px;
  box-shadow: 3px 4px 0 var(--navy);
  font: 800 12px "Noto Sans SC";
  letter-spacing: .08em;
}
body:not(.has-result) .brand-eyebrow { margin-inline: auto; }
.inline-cat { display: inline-block; width: clamp(78px, 8vw, 134px); height: clamp(34px, 4vw, 58px); margin: 0 .09em; overflow: hidden; vertical-align: .08em; border: 2px solid var(--navy); border-radius: 999px; background: linear-gradient(120deg, var(--blue), var(--white)); }
.inline-cat img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.inline-cat:hover img { transform: scale(1.12); }
.intro { max-width: 660px; margin: 28px 0 34px; color: var(--muted); font-size: 14px; line-height: 1.9; }

.drop { min-height: 184px; padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; background: rgba(255, 255, 255, .76); border: 1px dashed #75a8c7; border-radius: 14px; transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease; }
.drop:hover, .drop.dragging { transform: translateY(-4px); background: var(--white); border-color: var(--navy); box-shadow: 0 18px 42px rgba(31, 85, 121, .11); }
.drop input { display: none; }
.upload-mark { position: relative; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); transition: transform .6s ease; }
.drop:hover .upload-mark { transform: rotate(90deg); }
.upload-mark i { position: absolute; left: 16px; top: 26px; width: 22px; height: 2px; background: var(--navy); }
.upload-mark i + i { transform: rotate(90deg); }
.drop strong { margin-top: 16px; font-size: 15px; }
.drop small { margin-top: 7px; color: var(--muted); font-size: 10px; }
.previews { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 8px; margin-top: 10px; }
.preview { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--blue); border-radius: 8px; }
.preview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s ease; }
.preview:hover img { transform: scale(1.06); }
.preview span { position: absolute; top: 7px; left: 7px; padding: 4px 7px; color: white; background: var(--navy); border-radius: 999px; font: 9px "DM Mono"; }

.photo-tips { display: flex; min-height: 88px; margin: 28px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .52); }
.photo-tips article { min-width: 0; flex: 1; padding: 18px 14px; border-right: 1px solid var(--line); transition: flex .5s ease, background .5s ease; }
.photo-tips article:last-child { border-right: 0; }
.photo-tips article:hover { flex: 1.8; background: var(--white); }
.photo-tips b, .photo-tips span { display: block; }
.photo-tips b { font-size: 12px; }
.photo-tips span { max-width: 170px; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.55; }

input, select, textarea { width: 100%; margin-top: 8px; padding: 13px 14px; color: var(--navy); background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: 8px; outline: 0; transition: border-color .25s ease, box-shadow .25s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(75, 157, 211, .13); }
.button { min-height: 50px; padding: 14px 18px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); text-decoration: none; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(19, 43, 64, .14); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.dark, .generate { color: white; background: var(--navy); }
.ghost { color: var(--navy); background: var(--white); border: 1px solid var(--line); }
.generate { width: 100%; justify-content: space-between; font-weight: 700; }
.generate i { font-style: normal; font-size: 22px; }
.privacy { margin: 12px 0 0; color: #7990a0; font-size: 9px; line-height: 1.6; }

.result-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.result-head h2 { margin: 0; font: 800 clamp(1.75rem, 2.5vw, 2.8rem) "Noto Sans SC"; letter-spacing: -.055em; }
.service-state { color: var(--muted); font-size: 10px; }
.service-state i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4b9d74; box-shadow: 0 0 0 4px rgba(75, 157, 116, .12); }
.poster-shell { position: relative; min-height: 680px; padding: 28px; display: grid; place-items: center; overflow: hidden; background: rgba(255, 255, 255, .76); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.poster-shell::before { content: "MIAO"; position: absolute; top: -30px; right: -18px; color: rgba(46, 118, 164, .06); font: 700 11rem Geist; }
.empty-result { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px; }
.empty-result strong, .generation-state strong { margin-top: 22px; font-size: 14px; }
.empty-result small, .generation-state small { margin-top: 8px; color: var(--muted); font-size: 10px; }
.generation-state { position: absolute; top: 18px; left: 50%; z-index: 8; width: min(560px, calc(100% - 36px)); padding: 11px 0 13px; text-align: left; background: rgba(255, 253, 248, .96); border-bottom: 1px solid var(--line); transform: translateX(-50%); }
.generation-state strong, .generation-state small { display: block; margin: 0; }
.generation-state small { margin-top: 4px; }
.template-ghost { width: 178px; aspect-ratio: 3/4; padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1.5fr repeat(2, 1fr); gap: 5px; background: white; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(2deg); }
.template-ghost span { background: var(--blue); }
.template-ghost span:first-child { grid-column: 1 / -1; }
.loader { width: 78px; height: 78px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; }
.loader span { display: block; width: 100%; height: 100%; border: 3px solid transparent; border-top-color: var(--navy); border-right-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { width: min(300px, 70vw); height: 3px; margin-top: 22px; overflow: hidden; background: #e8e2dc; border-radius: 999px; }
.progress-track i { display: block; width: 3%; height: 100%; background: var(--navy); transition: width .65s cubic-bezier(.2,.8,.2,1); }
.generation-state .progress-track { width: 100%; margin-top: 10px; }
.poster { width: 100%; height: 100%; display: grid; place-items: center; }
.poster:empty { display: none; }
.live-poster { width: min(100%, 560px); aspect-ratio: 3/4; padding: 9% 4.7% 4.5%; display: grid; grid-template-columns: 27% 35% minmax(0, 1fr); grid-template-rows: minmax(0, 34%) minmax(0, 7%) minmax(0, 1fr); grid-auto-flow: dense; gap: 2.4% 4%; color: #2d211d; background: #fff; border-radius: 5px; box-shadow: 0 26px 54px rgba(19, 43, 64, .18); }
.live-ok-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.live-ok-copy b { width: 58px; height: 58px; display: grid; place-items: center; color: #c9574d; border: 5px solid #c9574d; border-radius: 50%; font-size: 24px; }
.live-ok-copy strong { margin-top: 13px; font-size: 15px; }
.live-ok-copy small { max-width: 92px; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.live-slot { position: relative; overflow: hidden; min-width: 0; min-height: 0; background-color: #f1eee9; background-image: radial-gradient(circle, rgba(45,33,29,.08) 1px, transparent 1px); background-size: 9px 9px; border: 1px solid #e3ddd6; }
.live-slot > i { position: absolute; left: 50%; top: 48%; width: 24px; height: 20px; border: 1px solid #c8beb5; border-radius: 48%; transform: translate(-50%, -50%); }
.live-slot > i::before, .live-slot > i::after { content: ""; position: absolute; top: -7px; width: 10px; height: 10px; border-top: 1px solid #c8beb5; transform: rotate(45deg); }
.live-slot > i::before { left: 1px; border-left: 1px solid #c8beb5; }
.live-slot > i::after { right: 1px; border-right: 1px solid #c8beb5; }
.live-slot span { position: absolute; left: 7px; bottom: 6px; z-index: 2; max-width: calc(100% - 14px); overflow: hidden; color: #9b8f86; font-size: 7px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.live-slot img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; filter: blur(10px); transform: scale(.95); transition: opacity .85s ease, filter 1.05s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.live-slot img.revealed { opacity: 1; filter: blur(0); transform: scale(1); }
.live-slot.filled { border-color: transparent; background: #b7c9ad; }
.live-slot.filled > i { opacity: 0; }
.live-slot.filled span { color: white; text-shadow: 0 1px 4px rgba(0,0,0,.42); }
.live-ok { width: 100%; height: 100%; aspect-ratio: auto; align-self: stretch; }
.live-ng-title { grid-column: 1 / -1; display: flex; align-items: end; gap: 10px; color: #bd5148; border-bottom: 2px solid #bd5148; }
.live-ng-title b { padding-bottom: 5px; font-size: 14px; }
.live-ng-title span { padding-bottom: 6px; color: var(--muted); font-size: 8px; }
.live-ng-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4.8% 3.3%; }
.interactive-poster { position: relative; display: inline-block; width: min(100%, 58vh); aspect-ratio: 3/4; line-height: 0; }
.interactive-poster > img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 5px; box-shadow: 0 26px 54px rgba(19, 43, 64, .18); }
.poster-hotspot { position: absolute; padding: 0; border: 2px solid transparent; background: transparent; cursor: pointer; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.poster-hotspot:hover { z-index: 2; border-color: white; background: rgba(140, 201, 244, .18); transform: scale(1.025); }
.poster-hotspot.selected { z-index: 3; border: 4px solid white; background: rgba(140, 201, 244, .16); box-shadow: 0 0 0 4px var(--blue-deep); }
.poster-hotspot span { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); padding: 5px 7px; color: white; background: var(--navy); border-radius: 999px; font: 8px/1 "Noto Sans SC"; white-space: nowrap; opacity: 0; transition: opacity .2s ease; }
.poster-hotspot:hover span, .poster-hotspot.selected span { opacity: 1; }
.result-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; margin-top: 12px; }
.selection-guide { margin: 14px 0 0; padding: 15px 18px; color: var(--navy); background: #fff2cf; border: 1px solid #e6c66d; border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; animation: guide-pulse 1.8s ease-in-out infinite; }
@keyframes guide-pulse { 50% { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(72,47,36,.1); } }

.identity-builder { padding: 170px 0 180px; border-top: 1px solid var(--line); }
.identity-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.identity-heading h2 { max-width: 1050px; margin: 0; font: 800 clamp(2.7rem, 5vw, 5.4rem)/1.03 "Noto Sans SC"; letter-spacing: -.075em; }
.identity-heading > p { max-width: 450px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.identity-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 0; overflow: hidden; background: rgba(255, 255, 255, .88); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.identity-builder:not(.has-card) .identity-grid { width: min(760px, 100%); margin-inline: auto; }
.identity-builder:not(.has-card) .profile-editor { grid-column: 1 / -1; border-right: 0; }
.identity-builder:not(.has-card) .identity-preview-panel { display: none; }
.profile-editor { grid-column: span 5; padding: 46px; border-right: 1px solid var(--line); }
.identity-preview-panel { grid-column: span 7; min-height: 760px; padding: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, #fff, #ddecf5 88%); }
.selected-photo { display: grid; grid-template-columns: 116px 1fr; gap: 22px; align-items: center; margin-bottom: 36px; }
.selected-photo-frame { aspect-ratio: 1; overflow: hidden; background: var(--blue); border: 2px solid var(--navy); border-radius: 10px; }
.selected-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s ease; }
.selected-photo:hover img { transform: scale(1.06); }
.selected-photo small, .selected-photo strong, .selected-photo span { display: block; }
.selected-photo small { color: var(--muted); font: 9px "DM Mono"; letter-spacing: .12em; }
.selected-photo strong { margin-top: 8px; font: 700 23px "Noto Sans SC"; }
.selected-photo span { margin-top: 6px; color: var(--blue-deep); font-size: 11px; }
.profile-editor form label { display: block; margin: 15px 0; color: var(--muted); font-size: 11px; }
.profile-editor textarea { resize: vertical; line-height: 1.5; }
.field-pair { display: grid; grid-template-columns: 1.5fr .5fr; gap: 10px; }
.field-pair.equal-fields { grid-template-columns: 1fr 1fr; }
.profile-editor .generate { margin-top: 26px; }
.identity-placeholder { text-align: center; }
.mini-card { width: 330px; aspect-ratio: 32/21; margin: 0 auto 30px; padding: 14px; display: grid; grid-template-columns: .7fr 1.3fr; grid-template-rows: 38px 1fr; gap: 8px; background: white; border-radius: 9px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.mini-card span { grid-column: 1 / -1; background: var(--blue); }
.mini-card b { grid-row: 2; padding: 10px; text-align: left; background: var(--blue); font: 16px "DM Mono"; }
.mini-card i { background: #dcecf5; }
.identity-placeholder strong, .identity-placeholder small { display: block; }
.identity-placeholder small { margin-top: 8px; color: var(--muted); font-size: 10px; }
.identity-card-result { width: 100%; display: grid; place-items: center; }
.identity-card-result:empty { display: none; }
.identity-card-result img { max-width: 100%; max-height: 72vh; display: block; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow); }
.identity-actions { width: min(720px, 100%); display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 14px; }
.share-guide { max-width: 720px; margin: 14px 0 0; padding: 16px 18px; color: var(--navy); background: var(--blue); border-radius: 8px; font-size: 11px; line-height: 1.6; }
.beauty-next { width: min(720px, 100%); margin-top: 14px; color: white; background: #6f4b98; font-weight: 700; }
.identity-builder.revealed .profile-editor, .identity-builder.revealed .identity-preview-panel { animation: card-stack .8s both cubic-bezier(.2, .8, .2, 1); }
.identity-builder.revealed .identity-preview-panel { animation-delay: .1s; }
@keyframes card-stack { from { opacity: 0; transform: translateY(55px) scale(.98); } to { opacity: 1; transform: none; } }

.beauty-builder { padding: 150px 0 170px; border-top: 1px solid var(--line); }
.beauty-heading { margin-bottom: 46px; text-align: center; }
.beauty-heading h2 { margin: 0; font: 900 clamp(2.7rem, 5vw, 5rem)/1.03 "Noto Sans SC"; letter-spacing: -.075em; }
.beauty-heading p { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.beauty-loading { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 20px; }
.beauty-loading span { width: 54px; height: 54px; border: 4px solid #e5dcf4; border-top-color: #6f4b98; border-radius: 50%; animation: spin .85s linear infinite; }
.beauty-result { display: grid; grid-template-columns: minmax(0, .8fr) minmax(280px, .55fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.beauty-result:empty { display: none; }
.beauty-result > img { width: min(580px, 100%); justify-self: end; display: block; border-radius: 16px; box-shadow: var(--shadow); }
.beauty-summary { max-width: 520px; }
.beauty-summary b { display: block; color: #6f4b98; font-size: clamp(3.8rem, 8vw, 8.2rem); line-height: .9; letter-spacing: -.08em; }
.beauty-summary p { margin: 28px 0 0; font: 700 clamp(1.35rem, 2.4vw, 2.4rem)/1.45 "Noto Sans SC"; }
.beauty-actions { width: min(720px, 100%); margin: 28px auto 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.template-unlocks { margin-top: 150px; padding-top: 100px; border-top: 1px solid var(--line); }
.template-unlocks > header { margin-bottom: 38px; }
.template-unlocks h2 { margin: 0; font: 800 clamp(2rem, 4vw, 4rem) "Noto Sans SC"; letter-spacing: -.06em; }
.template-unlocks header p { color: var(--muted); font-size: 12px; }
.unlock-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 0; overflow: hidden; border: 1px solid var(--navy); border-radius: 18px; }
.unlock-card { min-height: 340px; padding: 42px; display: flex; flex-direction: column; align-items: flex-start; }
.personality-unlock { background: var(--yellow); }
.wanted-unlock { background: #e8c99d; border-left: 1px solid var(--navy); }
.license-unlock { background: var(--blue); border-left: 1px solid var(--navy); }
.unlock-card small { font: 500 10px "DM Mono"; letter-spacing: .16em; }
.unlock-card h3 { margin: auto 0 10px; font: 800 clamp(1.8rem, 3vw, 3rem) "Noto Sans SC"; letter-spacing: -.05em; }
.unlock-card p { max-width: 360px; margin: 0 0 25px; color: rgba(45,33,29,.7); font-size: 12px; line-height: 1.7; }
.unlock-card button { padding: 10px 0 5px; color: var(--navy); background: transparent; border: 0; border-bottom: 1px solid var(--navy); font-weight: 700; }

body:not(.has-result) .workspace { min-height: calc(100vh - 92px); display: block; padding: clamp(80px, 12vh, 150px) 0 130px; }
body:not(.has-result) .upload-panel { width: min(760px, 100%); margin: 0 auto; padding: 0; text-align: center; }
body:not(.has-result) .workflow-title { max-width: 900px; margin-inline: auto; font-size: clamp(3.2rem, 6vw, 6rem); }
body:not(.has-result) .intro { max-width: 560px; margin: 22px auto 46px; }
body:not(.has-result) .drop { position: relative; min-height: 260px; margin-top: 58px; overflow: visible; background: rgba(255,255,255,.78); border-color: var(--peach); border-radius: 80px 80px 18px 18px; }
body:not(.has-result) .drop::before, body:not(.has-result) .drop::after { content: ""; position: absolute; top: -45px; width: 86px; height: 72px; background: var(--peach); clip-path: polygon(50% 0, 100% 100%, 0 100%); z-index: -1; }
body:not(.has-result) .drop::before { left: 22%; transform: rotate(-8deg); }
body:not(.has-result) .drop::after { right: 22%; transform: rotate(8deg); }
body:not(.has-result) .previews { max-width: 520px; margin-inline: auto; }
body:not(.has-result) .photo-tips { max-width: 620px; margin-inline: auto; }
body:not(.has-result) .upload-panel .generate { max-width: 620px; margin-inline: auto; }
body:not(.has-result) .result-panel { display: none; }
body:not(.has-upload) .photo-tips, body:not(.has-upload) .upload-panel .generate, body:not(.has-upload) .privacy { display: none; }
body.has-upload .outcome-showcase, body.has-result .outcome-showcase { display: none; }
.service-state { display: none; }

.outcome-showcase { max-width: 720px; margin: 54px auto 0; text-align: left; }
.outcome-showcase > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.outcome-showcase > header strong { font-size: 16px; }
.showcase-arrows { display: flex; gap: 7px; }
.showcase-arrows button { width: 34px; height: 34px; padding: 0; color: white; background: var(--navy); border: 0; border-radius: 50%; cursor: pointer; transition: transform .25s ease; }
.showcase-arrows button:hover { transform: scale(1.08); }
.showcase-viewport { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 22px 50px rgba(72,47,36,.10); }
.showcase-track { display: flex; width: 100%; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.showcase-slide { position: relative; min-width: 100%; height: 340px; padding: 30px; display: grid; place-items: center; overflow: hidden; }
.showcase-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(45,33,29,.11) 1px, transparent 1px); background-size: 15px 15px; opacity: .35; }
.identity-slide { background: #dceffc; }
.wanted-slide { background: #e8c99d; }
.beauty-slide { background: #e4daf6; }
.slide-copy { position: absolute; left: 24px; bottom: 20px; z-index: 2; }
.slide-copy small, .slide-copy strong { display: block; }
.slide-copy small { margin-bottom: 4px; color: rgba(45,33,29,.6); font: 500 9px "DM Mono"; letter-spacing: .12em; }
.slide-copy strong { font-size: 17px; }
.sample-identity { position: relative; z-index: 1; width: min(430px,78%); aspect-ratio: 1.55; overflow: hidden; background: #f4fbff; border: 2px solid var(--navy); border-radius: 10px; box-shadow: 10px 12px 0 rgba(45,33,29,.14); transform: rotate(-2deg); }
.sample-head { height: 31%; padding: 17px 20px; display: flex; align-items: flex-start; justify-content: space-between; background: var(--blue); }
.sample-head b { font-size: 27px; }
.sample-head span { font: 8px "DM Mono"; }
.sample-id-body { padding: 17px 20px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 18px; }
.sample-lines b { display: block; margin: 5px 0 17px; font-size: 15px; }
.sample-lines i { display: block; width: 88%; height: 7px; margin: 10px 0; background: #bdd8e7; border-radius: 999px; }
.sample-lines i:nth-child(3) { width: 67%; }
.sample-cat { position: relative; width: 88px; height: 84px; background: #fff3dc; border: 2px solid var(--navy); border-radius: 48%; z-index: 1; }
.sample-cat::before, .sample-cat::after { content: ""; position: absolute; top: -24px; width: 39px; height: 45px; background: #fff3dc; clip-path: polygon(50% 0,100% 100%,0 100%); z-index: -1; }
.sample-cat::before { left: 1px; transform: rotate(-8deg); }
.sample-cat::after { right: 1px; transform: rotate(8deg); }
.sample-cat > i { position: absolute; top: 29px; width: 13px; height: 17px; background: var(--navy); border-radius: 50%; }
.sample-cat > i:first-child { left: 22px; }
.sample-cat > i:nth-child(2) { right: 22px; }
.sample-cat > span { position: absolute; left: 50%; top: 53px; width: 10px; height: 7px; background: var(--peach); border-radius: 50%; transform: translateX(-50%); }
.sample-wanted { position: relative; z-index: 1; width: 205px; height: 266px; padding: 18px; text-align: center; background: #f7e5c3; border: 2px solid #68452d; box-shadow: 10px 12px 0 rgba(104,69,45,.18); transform: rotate(2deg); }
.sample-wanted > b { display: block; font: 800 36px Geist; letter-spacing: .05em; }
.sample-wanted > span { display: block; margin: -3px 0 25px; font-size: 11px; letter-spacing: .25em; }
.sample-wanted .sample-cat { margin: auto; }
.sample-wanted p { margin: 18px 0 0; font-size: 11px; font-weight: 700; }
.sample-cat.fierce > i { height: 5px; border-radius: 0; transform: rotate(10deg); }
.sample-cat.fierce > i:nth-child(2) { transform: rotate(-10deg); }
.sample-beauty { position: relative; z-index: 1; width: min(410px,76%); height: 230px; padding: 28px; display: grid; grid-template-columns: .7fr 1fr .8fr; align-items: center; gap: 20px; background: #fff; border: 2px solid #6f4b98; border-radius: 14px; box-shadow: 10px 12px 0 rgba(111,75,152,.17); transform: rotate(-1deg); }
.beauty-score b, .beauty-score span { display: block; text-align: center; }
.beauty-score b { color: #6f4b98; font-size: 56px; line-height: 1; }
.beauty-score span { margin-top: 5px; font-size: 10px; }
.sample-beauty .sample-cat { margin: auto; transform: scale(1.15); }
.sample-cat.lovely > i { width: 17px; height: 20px; background: #6f4b98; }
.beauty-bars i { display: block; height: 8px; margin: 13px 0; background: #c9b5e9; border-radius: 999px; }
.beauty-bars i:nth-child(2) { width: 76%; }
.beauty-bars i:nth-child(3) { width: 90%; }
.showcase-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.showcase-dots button { width: 7px; height: 7px; padding: 0; background: #cbb7aa; border: 0; border-radius: 50%; cursor: pointer; transition: width .3s ease, background .3s ease; }
.showcase-dots button.active { width: 25px; background: var(--navy); border-radius: 999px; }

/* One-screen creation flow: every new stage replaces the previous one. */
body[data-stage="upload"] .result-panel,
body[data-stage="upload"] .identity-builder,
body[data-stage="upload"] .beauty-builder,
body[data-stage="upload"] .personality-builder { display: none !important; }

body[data-stage="generate"] .upload-panel,
body[data-stage="select"] .upload-panel,
body[data-stage="generate"] .identity-builder,
body[data-stage="select"] .identity-builder,
body[data-stage="generate"] .beauty-builder,
body[data-stage="select"] .beauty-builder,
body[data-stage="generate"] .personality-builder,
body[data-stage="select"] .personality-builder { display: none !important; }
body[data-stage="generate"] .workspace,
body[data-stage="select"] .workspace { min-height: calc(100vh - 68px); display: block; padding: 58px 0 100px; }
body[data-stage="generate"] .result-panel,
body[data-stage="select"] .result-panel { display: block; width: min(920px, 100%); margin: 0 auto; padding: 0; border: 0; }
body[data-stage="generate"] .result-head,
body[data-stage="select"] .result-head { justify-content: center; text-align: center; }
body[data-stage="generate"] .result-head h2,
body[data-stage="select"] .result-head h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
body[data-stage="generate"] .poster-shell { padding-top: 88px; box-shadow: 0 22px 55px rgba(72,47,36,.1); }
body[data-stage="generate"] .poster-shell::before { display: none; }
body[data-stage="select"] .poster-shell { box-shadow: 0 22px 55px rgba(72,47,36,.1); }

body[data-stage="profile"] .workspace,
body[data-stage="identity"] .workspace,
body[data-stage="beauty"] .workspace,
body[data-stage="personality"] .workspace { display: none !important; }
body[data-stage="profile"] .beauty-builder,
body[data-stage="identity"] .beauty-builder,
body[data-stage="profile"] .personality-builder,
body[data-stage="identity"] .personality-builder { display: none !important; }
body[data-stage="profile"] .identity-builder,
body[data-stage="identity"] .identity-builder,
body[data-stage="beauty"] .beauty-builder,
body[data-stage="personality"] .personality-builder { min-height: calc(100vh - 68px); padding: 62px 0 100px; border-top: 0; }
body[data-stage="profile"] .identity-heading,
body[data-stage="identity"] .identity-heading { margin-bottom: 42px; }
body[data-stage="profile"] .identity-heading h2,
body[data-stage="identity"] .identity-heading h2 { font-size: clamp(2.5rem, 4.5vw, 4.6rem); }
body[data-stage="identity"] .profile-editor { display: none; }
body[data-stage="identity"] .identity-grid { width: min(1180px, 100%); margin: 0 auto; }
body[data-stage="identity"] .identity-preview-panel { grid-column: 1 / -1; min-height: 640px; }
body[data-stage="beauty"] .identity-builder { display: none !important; }
body[data-stage="beauty"] .beauty-builder { display: block; }
body[data-stage="personality"] .identity-builder,
body[data-stage="personality"] .beauty-builder { display: none !important; }
body[data-stage="personality"] .personality-builder { display: block; }

body:not([data-stage="upload"]) footer { display: none; }

footer { padding: 34px 4px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font: 9px "DM Mono"; letter-spacing: .11em; }

@media (max-width: 960px) {
  main { padding: 16px 20px 0; }
  .marquee { margin-left: -20px; margin-right: -20px; }
  .studio-hero { grid-template-columns: 1fr; padding: 90px 0 120px; }
  .studio-copy, .cat-stage { grid-column: 1; }
  .studio-copy { padding: 0; }
  .studio-copy h1 { max-width: 900px; }
  .cat-stage { min-height: 470px; margin-top: 70px; }
  .product-family { padding: 110px 0 130px; }
  .workspace { grid-template-columns: 1fr; padding-top: 54px; }
  .upload-panel, .result-panel { grid-column: 1; padding: 36px 0; }
  .result-panel { margin-top: 40px; border-left: 0; border-top: 1px solid var(--line); }
  .workflow-title { max-width: 820px; font-size: clamp(3.2rem, 8vw, 5.4rem); }
  .poster-shell { min-height: 620px; }
  .identity-builder { padding: 110px 0 130px; }
  .identity-heading { grid-template-columns: 1fr; gap: 22px; }
  .identity-grid { grid-template-columns: 1fr; }
  .profile-editor, .identity-preview-panel { grid-column: 1; }
  .profile-editor { border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-preview-panel { min-height: 620px; }
  .beauty-result { grid-template-columns: 1fr; text-align: center; }
  .beauty-result > img { justify-self: center; }
  .beauty-summary { margin-inline: auto; }
}

@media (max-width: 560px) {
  main { padding: 10px 14px 0; }
  nav:not(.tabbar) { height: 60px; padding: 0 16px; border-radius: 12px; }
  .brand { font-size: 16px; }
  .brand span { font-size: 8px; }
  .marquee { margin-left: -14px; margin-right: -14px; }
  .studio-hero { min-height: auto; padding: 70px 0 95px; }
  .studio-copy h1 { max-width: 100%; font-size: clamp(2.75rem, 12vw, 4rem); line-height: 1.06; }
  .studio-copy > p:not(.kicker) { font-size: 13px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .cat-stage { min-height: 360px; margin-top: 55px; border-radius: 46% 46% 18px 18px; box-shadow: 9px 11px 0 var(--peach); }
  .cat-head { width: 54%; }
  .cat-head::before, .cat-head::after { top: -45px; width: 78px; height: 105px; }
  .cat-eye { width: 31px; height: 39px; }
  .whiskers { width: 78px; }
  .whiskers::before, .whiskers::after { width: 78px; }
  .whiskers.left { left: -50px; }
  .whiskers.right { right: -50px; }
  .cat-voice { right: 14px; bottom: 14px; width: 205px; }
  .product-family { padding: 90px 0 110px; }
  .product-family > header { display: block; }
  .product-family h2 { font-size: clamp(2.45rem, 11vw, 3.5rem); }
  .product-accordions { min-height: 0; flex-direction: column; }
  .product-card { min-height: 360px; border-right: 0; border-bottom: 1px solid var(--navy); }
  .product-card:last-child { border-bottom: 0; }
  .product-card:hover { flex: 1; }
  .workspace { padding: 38px 0 80px; }
  .workflow-title { max-width: 100%; font-size: clamp(2.35rem, 10.5vw, 3.2rem); line-height: 1.03; letter-spacing: -.065em; }
  .inline-cat { width: 70px; height: 31px; }
  .intro { font-size: 13px; }
  .drop { min-height: 166px; }
  .outcome-showcase { margin-top: 42px; }
  .outcome-showcase > header strong { font-size: 14px; }
  .showcase-slide { height: 285px; padding: 20px; }
  .sample-identity { width: 92%; }
  .sample-head { padding: 12px 14px; }
  .sample-head b { font-size: 21px; }
  .sample-id-body { padding: 14px; gap: 12px; }
  .sample-cat { transform: scale(.86); transform-origin: center top; }
  .sample-wanted { width: 170px; height: 224px; padding: 14px; }
  .sample-wanted > b { font-size: 29px; }
  .sample-wanted > span { margin-bottom: 18px; }
  .sample-wanted p { margin-top: 8px; }
  .sample-beauty { width: 94%; height: 190px; padding: 18px; gap: 10px; }
  .beauty-score b { font-size: 42px; }
  .sample-beauty .sample-cat { transform: scale(.82); }
  .photo-tips { min-height: 76px; }
  .photo-tips article { padding: 14px 9px; }
  .photo-tips article:hover { flex: 1.3; }
  .photo-tips span { display: none; }
  .result-head { align-items: flex-start; }
  .service-state { margin-top: 8px; }
  .poster-shell { min-height: 460px; padding: 14px; border-radius: 14px; }
  .generation-state { top: 8px; width: calc(100% - 16px); padding: 10px 12px; }
  .live-poster { padding-top: 12%; }
  .live-ok-copy b { width: 43px; height: 43px; border-width: 4px; font-size: 18px; }
  .live-ok-copy strong { margin-top: 8px; font-size: 11px; }
  .live-ok-copy small { display: none; }
  .live-ng-title b { font-size: 11px; }
  .live-ng-title span { font-size: 7px; }
  .poster-hotspot span { display: none; }
  .result-actions, .identity-actions { grid-template-columns: 1fr; }
  .identity-builder { padding: 86px 0 100px; }
  .identity-heading h2 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .profile-editor, .identity-preview-panel { padding: 24px; }
  .selected-photo { grid-template-columns: 90px 1fr; }
  .field-pair, .field-pair.equal-fields { grid-template-columns: 1fr; }
  .identity-preview-panel { min-height: 480px; }
  .mini-card { width: min(310px, 88vw); }
  .beauty-builder { padding: 90px 0 110px; }
  .beauty-result { gap: 28px; }
  .beauty-summary p { margin-top: 18px; font-size: 1.25rem; }
  .beauty-actions,
  .idphoto-actions { grid-template-columns: 1fr; }
  .template-unlocks { margin-top: 90px; padding-top: 70px; }
  .unlock-grid { grid-template-columns: 1fr; }
  .unlock-card { min-height: 290px; padding: 30px; }
  .wanted-unlock, .license-unlock { border-left: 0; border-top: 1px solid var(--navy); }
  body[data-stage="generate"] .workspace,
  body[data-stage="select"] .workspace,
  body[data-stage="profile"] .identity-builder,
  body[data-stage="identity"] .identity-builder,
  body[data-stage="beauty"] .beauty-builder,
  body[data-stage="personality"] .personality-builder { padding: 34px 0 70px; }
  body[data-stage="generate"] .poster-shell { padding-top: 72px; }
  body[data-stage="profile"] .identity-heading,
  body[data-stage="identity"] .identity-heading { margin-bottom: 26px; }
  body[data-stage="identity"] .identity-preview-panel { min-height: 430px; }
  footer { gap: 15px; flex-direction: column; }
}

/* Japanese hand-drawn game skin */
html { background: #6d636d; }
body {
  color: var(--navy);
  background-color: #6d636d;
  background-image:
    linear-gradient(rgba(64,58,82,.58), rgba(64,58,82,.68)),
    url('/static/assets/cat-photo-studio-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body::before {
  opacity: .12;
  background-image:
    linear-gradient(90deg, transparent 48%, rgba(255,244,220,.14) 49% 51%, transparent 52%),
    radial-gradient(circle, rgba(255,244,220,.26) 1px, transparent 2px);
  background-size: 180px 180px, 24px 24px;
  mask-image: none;
}
main { max-width: 1440px; }
nav:not(.tabbar) {
  color: var(--navy);
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 18px 22px 17px 20px;
  box-shadow: 5px 6px 0 var(--navy);
  backdrop-filter: none;
}
.brand { gap: 10px; }
.brand::before {
  content: "";
  width: 24px;
  height: 19px;
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 48% 48% 45% 45%;
  transform: rotate(-4deg);
}
.brand::after { content: "にゃん"; color: var(--muted); font: 700 10px Geist; letter-spacing: .08em; }
.result-head, .identity-heading, .beauty-heading { position: relative; }
.stage-back {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 5;
  min-height: 44px;
  padding: 9px 15px;
  color: var(--navy);
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 16px 13px 18px 14px;
  box-shadow: 3px 4px 0 var(--navy);
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}
.stage-back span { margin-right: 5px; font-size: 18px; }
.stage-back:hover { transform: translate(-1px, calc(-50% - 2px)); box-shadow: 5px 6px 0 var(--navy); }

body[data-stage="upload"] .workspace { padding-top: 64px; }
body:not(.has-result) .upload-panel {
  width: min(760px, 100%);
  padding: 52px 58px 58px;
  color: var(--navy);
  background: var(--paper);
  border: 4px solid var(--navy);
  border-radius: 30px 25px 32px 27px;
  box-shadow: var(--shadow);
}
body:not(.has-result) .workflow-title { font-size: clamp(3rem, 5vw, 5.3rem); color: var(--navy); }
body:not(.has-result) .intro { color: var(--muted); }
body:not(.has-result) .drop {
  min-height: 245px;
  background: var(--mint);
  border: 4px solid var(--navy);
  border-radius: 28px 24px 31px 25px;
  box-shadow: inset 0 0 0 7px rgba(255,244,220,.13);
}
body:not(.has-result) .drop::before,
body:not(.has-result) .drop::after { top: -34px; width: 76px; height: 62px; background: var(--mint); filter: drop-shadow(0 -3px 0 var(--navy)); }
.upload-mark { background: var(--yellow); border: 3px solid var(--navy); }
.upload-mark i { background: var(--navy); }
.drop strong, .drop small { color: var(--navy); }
.previews { gap: 11px; }
.upload-notice { min-height: 18px; margin: 10px 2px 0; color: var(--red); font-size: 11px; font-weight: 800; }
.resume-task { max-width: 620px; margin: 16px auto 0; display: grid; grid-template-columns: 1fr auto; align-items: stretch; color: var(--navy); background: var(--yellow); border: 3px solid var(--navy); border-radius: 18px 14px 20px 15px; box-shadow: 3px 4px 0 var(--navy); overflow: hidden; }
.resume-task[hidden] { display: none; }
.resume-task > div { padding: 16px 18px; }
.resume-task small, .resume-task strong { display: block; }
.resume-task small { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.resume-task strong { margin-top: 5px; font-size: 15px; }
.resume-task button { min-width: 170px; padding: 14px 18px; color: var(--navy); background: var(--paper); border: 0; border-left: 3px solid var(--navy); font-weight: 900; cursor: pointer; }
.resume-task button span { margin-left: 8px; }
.preview { border: 3px solid var(--navy); border-radius: 16px 12px 15px 11px; }
.preview span { color: var(--navy); background: var(--yellow); border: 2px solid var(--navy); }
.photo-tips { background: #f7e7c4; border: 3px solid var(--navy); border-radius: 18px 14px 19px 15px; }
.photo-tips article { border-color: var(--navy); }
.button { border: 3px solid var(--navy); border-radius: 18px 15px 20px 16px; font-weight: 800; box-shadow: 3px 4px 0 var(--navy); }
.button:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--navy); }
.dark, .generate, .beauty-next { color: var(--navy); background: var(--yellow); }
.ghost { color: var(--navy); background: var(--paper); border-color: var(--navy); }

.outcome-showcase > header { padding: 0 4px; }
.showcase-arrows button { color: var(--navy); background: var(--yellow); border: 3px solid var(--navy); box-shadow: 2px 3px 0 var(--navy); }
.showcase-viewport { background: var(--mint); border: 4px solid var(--navy); border-radius: 26px 22px 28px 23px; box-shadow: 6px 7px 0 var(--navy); }
.showcase-slide::after { background-size: 18px 18px; opacity: .18; }
.poster-showcase-slide { background: #89aa88; }
.identity-slide { background: #89aa88; }
.wanted-slide { background: #d7aa76; }
.beauty-slide { background: #a69bb4; }
.personality-slide { background: #d7aa76; }
.showcase-product-frame { position: relative; z-index: 1; display: grid; place-items: center; padding: 10px; overflow: hidden; background: #514b5c; border: 4px solid var(--navy); border-radius: 17px 13px 19px 15px; box-shadow: 7px 8px 0 rgba(31,27,41,.72); transform: translateY(-8px) rotate(-1deg); }
.showcase-product-frame img { width: 100%; height: 100%; display: block; object-fit: contain; }
.showcase-product-frame.portrait-product { width: min(230px, 58%); height: 88%; }
.showcase-product-frame.landscape-product { width: min(540px, 88%); height: 70%; transform: translateY(-8px) rotate(1deg); }
.slide-copy { min-width: 180px; padding: 10px 13px; background: var(--paper); border: 3px solid var(--navy); border-radius: 13px 10px 14px 11px; box-shadow: 2px 3px 0 var(--navy); }
.slide-copy small { color: var(--muted); font-family: Outfit, Geist, sans-serif; font-weight: 800; }
.sample-identity, .sample-wanted, .sample-beauty { border: 4px solid var(--navy); box-shadow: 7px 8px 0 rgba(64,58,82,.35); }
.sample-head { background: var(--yellow); }
.showcase-dots button { width: 11px; height: 11px; background: transparent; border: 2px solid var(--navy); }
.showcase-dots button.active { width: 30px; background: var(--yellow); }

body[data-stage="generate"] .result-head h2,
body[data-stage="select"] .result-head h2,
.identity-heading h2,
.beauty-heading h2 {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 13px 24px 17px;
  color: var(--navy);
  background: var(--paper);
  border: 4px solid var(--navy);
  border-radius: 20px 17px 22px 18px;
  box-shadow: 5px 6px 0 var(--navy);
}
.poster-shell {
  background: rgba(64,58,82,.36);
  border: 4px solid var(--navy);
  border-radius: 28px 23px 31px 25px;
  box-shadow: 8px 9px 0 var(--navy);
}
.generation-state {
  color: var(--navy);
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 15px 12px 17px 13px;
  box-shadow: 3px 4px 0 var(--navy);
  padding: 12px 16px 14px;
}
.generation-state small { color: var(--muted); }
.progress-track { height: 8px; background: #d8cdbb; border: 2px solid var(--navy); }
.progress-track i { background: var(--yellow); }
.live-poster { background: var(--paper); border: 4px solid var(--navy); border-radius: 14px 10px 16px 12px; box-shadow: 6px 7px 0 rgba(64,58,82,.45); }
.live-slot { background-color: #e8dcc8; border: 2px solid var(--navy); }
.live-slot img { bottom: 20px; height: calc(100% - 20px); }
.live-slot span { left: 0; bottom: 0; width: 100%; max-width: none; height: 20px; padding: 5px 5px 0; color: var(--navy); background: var(--paper); text-align: center; }
.live-slot > i { border-color: #998d91; }
.live-slot > i::before, .live-slot > i::after { border-color: #998d91; }
.live-ok-copy b { color: var(--navy); background: var(--yellow); border-color: var(--navy); }
.live-slot.filled span { color: var(--navy); text-shadow: none; }
.live-ng-title { color: var(--red); border-color: var(--navy); }
.live-ng-title b { color: var(--red); }
.selection-guide { color: var(--navy); background: var(--yellow); border: 3px solid var(--navy); border-radius: 16px 13px 18px 14px; box-shadow: 3px 4px 0 var(--navy); }
.interactive-poster > img { border: 4px solid var(--navy); border-radius: 13px 10px 15px 11px; box-shadow: 7px 8px 0 var(--navy); }
.poster-hotspot.selected { border-color: var(--yellow); box-shadow: 0 0 0 5px var(--navy), 0 0 0 8px var(--yellow); }

.identity-heading > p, .beauty-heading p, .personality-heading p { color: #eee3d3; }
.identity-grid { background: var(--paper); border: 4px solid var(--navy); border-radius: 28px 23px 31px 25px; box-shadow: var(--shadow); }
.profile-editor { background: var(--paper); border-color: var(--navy); }
.identity-preview-panel { background: var(--mint); }
.selected-photo-frame { background: var(--blue); border: 4px solid var(--navy); border-radius: 16px 12px 17px 13px; box-shadow: 3px 4px 0 var(--navy); }
input, select, textarea { color: var(--navy); background: #fffaf0; border: 3px solid var(--navy); border-radius: 13px 10px 14px 11px; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 3px 4px 0 var(--yellow); }
.identity-card-result img, .beauty-result > img { border: 4px solid var(--navy); border-radius: 18px 14px 20px 15px; box-shadow: 7px 8px 0 var(--navy); }
body[data-stage="profile"] .identity-preview-panel { display: none; }
body[data-stage="profile"] .profile-editor { grid-column: 1 / -1; border: 0; }
body[data-stage="identity"] .identity-preview-panel {
  background-color: #514b5c;
  background-image: radial-gradient(circle, rgba(255,244,220,.12) 2px, transparent 2px);
  background-size: 24px 24px;
}
body[data-stage="identity"] .identity-card-result {
  width: min(1080px, 100%);
  padding: clamp(22px, 4vw, 48px);
  background: #d8cdbb;
  border: 4px solid var(--navy);
  border-radius: 28px 23px 31px 25px;
  box-shadow: 10px 12px 0 rgba(31,27,41,.8);
}
body[data-stage="identity"] .identity-card-result img { transform: rotate(-1deg); }
.share-guide { color: var(--navy); background: var(--yellow); border: 3px solid var(--navy); }
.beauty-loading { color: var(--navy); background: var(--mint); border: 4px solid var(--navy); box-shadow: var(--shadow); }
.beauty-loading span { border-color: rgba(255,244,220,.45); border-top-color: var(--yellow); }
.beauty-summary { padding: 36px; background: var(--paper); border: 4px solid var(--navy); border-radius: 25px 21px 28px 22px; box-shadow: var(--shadow); }
.beauty-summary b { color: var(--red); }
.template-unlocks { border-color: rgba(255,244,220,.35); }
.template-unlocks h2, .template-unlocks header p { color: #fff4dc; }
.unlock-grid { border: 4px solid var(--navy); border-radius: 28px 23px 31px 25px; box-shadow: var(--shadow); }
.wanted-unlock { background: #d7aa76; }
.license-unlock { background: var(--mint); border-color: var(--navy); }
.personality-unlock { background: var(--yellow); }
.unlock-card button { color: var(--navy); border-color: var(--navy); }
body[data-stage="beauty"] .beauty-result {
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(34px, 5vw, 74px);
}
body[data-stage="beauty"] .beauty-result > img {
  width: 100%;
  max-width: 640px;
  padding: 20px;
  background: #514b5c;
  border: 4px solid var(--navy);
  border-radius: 28px 23px 31px 25px;
  box-shadow: 10px 12px 0 rgba(31,27,41,.8);
  transform: rotate(-1deg);
}
body[data-stage="beauty"] .beauty-summary { padding: 40px; }
.beauty-summary > small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.beauty-summary b { margin-top: 14px; }
.beauty-summary b em { margin-left: 12px; font: 800 18px Geist; letter-spacing: 0; }
.beauty-summary h3 { margin: 28px 0 0; font: 900 clamp(2rem, 3.8vw, 3.8rem)/1 "Noto Sans SC"; letter-spacing: -.06em; }
.beauty-summary p { margin-top: 20px; font-size: clamp(1.05rem, 1.7vw, 1.45rem); }
.beauty-summary ul { margin: 28px 0 0; padding: 20px 0 0; list-style: none; border-top: 3px solid var(--navy); }
.beauty-summary li { position: relative; margin: 10px 0; padding-left: 22px; font-size: 12px; font-weight: 800; }
.beauty-summary li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; background: var(--yellow); border: 2px solid var(--navy); border-radius: 50%; }

.beauty-report-details { width: min(1180px, 100%); margin: 150px auto 0; }
.report-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.report-intro small { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.report-intro h2 { max-width: 760px; margin: 14px 0 0; color: var(--paper); font: 900 clamp(2.6rem, 5vw, 5.2rem)/1.02 "Noto Sans SC"; letter-spacing: -.075em; }
.report-intro p { max-width: 430px; margin: 0; color: #eee3d3; font-size: 14px; line-height: 1.85; }
.beauty-report-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; overflow: hidden; border: 4px solid var(--navy); border-radius: 30px 25px 34px 27px; box-shadow: var(--shadow); }
.report-card { min-height: 470px; padding: clamp(30px, 4vw, 52px); color: var(--navy); }
.report-card:nth-child(odd) { border-right: 3px solid var(--navy); }
.report-card:nth-child(-n+2) { border-bottom: 3px solid var(--navy); }
.report-card h3 { margin: 0; font: 900 clamp(1.8rem, 3vw, 3rem)/1.05 "Noto Sans SC"; letter-spacing: -.055em; }
.report-card > p { margin: 18px 0 0; font-size: 12px; line-height: 1.8; }
.metrics-report { background: var(--paper); }
.beauty-title-report { display: flex; flex-direction: column; background: var(--yellow); }
.beauty-title-report > small { font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.beauty-title-report h3 { max-width: 460px; margin-top: 40px; font-size: clamp(3rem, 5vw, 5.6rem); }
.beauty-title-report > strong { margin-top: auto; color: var(--red); font: 900 clamp(4.8rem, 8vw, 8rem)/.82 Outfit, Geist, sans-serif; letter-spacing: -.08em; }
.beauty-title-report > strong em { margin-left: 12px; font: 800 16px Outfit, Geist, sans-serif; letter-spacing: 0; }
.beauty-title-report blockquote { margin: 34px 0 0; padding-top: 24px; border-top: 3px solid var(--navy); font: 900 17px/1.7 "Noto Sans SC"; }
.share-copy-report { background: var(--mint); }
.share-copy-report > div { margin-top: 28px; display: grid; gap: 0; border: 3px solid var(--navy); border-radius: 18px 14px 20px 15px; overflow: hidden; }
.share-copy-report button { min-height: 88px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; color: var(--navy); background: var(--paper); border: 0; text-align: left; cursor: pointer; }
.share-copy-report button + button { border-top: 3px solid var(--navy); }
.share-copy-report button:hover { background: var(--yellow); }
.share-copy-report button span { font-size: 13px; font-weight: 900; line-height: 1.6; }
.share-copy-report button i { min-width: 44px; font-size: 11px; font-style: normal; font-weight: 900; text-align: right; }
.method-report { background: #d8cdbb; }
.method-report > p { font-size: 14px; font-weight: 800; }
.method-report ol { margin: 30px 0 0; padding: 0; list-style: none; border-top: 3px solid var(--navy); }
.method-report li { padding: 13px 4px; display: flex; justify-content: space-between; border-bottom: 2px solid rgba(64,58,82,.45); font-size: 12px; font-weight: 900; }
.method-report li strong { color: var(--red); }
.method-report > small { display: block; margin-top: 24px; font-size: 10px; font-weight: 900; line-height: 1.7; }
.type-report { background: var(--mint); }
.highlight-report { background: var(--yellow); }
.knowledge-report { background: #d8cdbb; }
.photo-guide-report { background: var(--mint); }
.photo-guide-report ul { margin: 34px 0 0; padding: 0; list-style: none; }
.photo-guide-report li { margin: 12px 0; padding: 13px 16px; background: var(--paper); border: 3px solid var(--navy); border-radius: 15px 12px 17px 13px; font-size: 12px; font-weight: 900; }
.metric-list { margin-top: 36px; }
.report-metric { display: grid; grid-template-columns: 92px 1fr 34px; gap: 12px; align-items: center; margin: 18px 0; }
.report-metric span, .report-metric strong { font-size: 12px; font-weight: 900; }
.report-metric i { height: 13px; overflow: hidden; background: #d8cdbb; border: 2px solid var(--navy); border-radius: 999px; }
.report-metric i b { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
.beauty-radar { width: min(430px, 100%); margin: 22px auto -16px; display: block; overflow: visible; }
.radar-grid polygon { stroke: rgba(64,58,82,.34); stroke-width: 1.4; }
.radar-grid polygon:nth-child(odd) { fill: rgba(131,169,133,.08); }
.radar-grid polygon:nth-child(even) { fill: rgba(64,58,82,.025); }
.radar-grid line { stroke: rgba(64,58,82,.44); stroke-width: 1.7; }
.radar-grid-lines polygon, .radar-grid-lines line { fill: none; stroke: rgba(64,58,82,.38); stroke-width: 1.2; }
.radar-ticks circle { fill: var(--paper); stroke: rgba(64,58,82,.5); stroke-width: 1; }
.radar-scale text { fill: rgba(64,58,82,.62); font: 700 7px Satoshi, Geist, sans-serif; }
.radar-value { fill: rgba(215,120,108,.30); stroke: var(--red); stroke-width: 4.5; stroke-linejoin: round; }
.radar-points circle { fill: var(--yellow); stroke: var(--navy); stroke-width: 3; }
.radar-labels text { fill: var(--navy); stroke: var(--paper); stroke-width: 7px; paint-order: stroke; font: 800 10px "Noto Sans SC"; }
.type-code { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.type-code span { font: 800 11px Geist; letter-spacing: .13em; }
.type-code strong { font: 900 clamp(2.8rem, 5vw, 5.5rem)/.8 Geist; letter-spacing: .04em; }
.type-report h3 { margin-top: 28px; }
.axis-list { margin-top: 30px; }
.type-axis { margin: 17px 0; }
.type-axis > div { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; font-size: 10px; font-weight: 800; }
.type-axis > div span:last-child { text-align: right; }
.type-axis > div strong { text-align: center; }
.type-axis > i { position: relative; height: 7px; margin-top: 8px; display: block; background: rgba(255,244,220,.55); border: 2px solid var(--navy); border-radius: 99px; }
.type-axis > i b { position: absolute; top: 50%; width: 17px; height: 17px; background: var(--yellow); border: 3px solid var(--navy); border-radius: 50%; transform: translate(-50%, -50%); }
.highlight-report ol { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: highlight; }
.highlight-report li { counter-increment: highlight; position: relative; min-height: 58px; margin: 12px 0; padding: 16px 18px 16px 62px; background: var(--paper); border: 3px solid var(--navy); border-radius: 18px 14px 20px 15px; font-size: 13px; font-weight: 900; }
.highlight-report li::before { content: counter(highlight); position: absolute; left: 16px; top: 50%; width: 29px; height: 29px; display: grid; place-items: center; color: var(--paper); background: var(--red); border: 2px solid var(--navy); border-radius: 50%; transform: translateY(-50%); }
.highlight-report blockquote { margin: 28px 0 0; font: 800 16px/1.65 "Noto Sans SC"; }
.knowledge-report p { font-size: 13px; }
.knowledge-report small { display: block; margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--navy); font-size: 10px; font-weight: 800; }

.test-paths { width: min(900px, 100%); margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; overflow: hidden; color: var(--navy); background: var(--paper); border: 4px solid var(--navy); border-radius: 24px 20px 27px 22px; box-shadow: 7px 8px 0 var(--navy); }
.test-path-copy { grid-column: 1 / -1; padding: 24px 28px; text-align: left; border-bottom: 3px solid var(--navy); }
.test-path-copy small, .test-path-copy strong { display: block; }
.test-path-copy small { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.test-path-copy strong { margin-top: 8px; font-size: 22px; }
.test-path { min-height: 170px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--navy); border: 0; cursor: pointer; transition: flex .5s ease, filter .35s ease; }
.test-path + .test-path { border-left: 3px solid var(--navy); }
.beauty-path { background: #d8cdbb; }
.personality-path { background: var(--yellow); }
.test-path:hover { filter: brightness(1.04); }
.test-path span { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.test-path strong { margin: auto 0 8px; font-size: 25px; }
.test-path small { font-size: 11px; }

.personality-builder { padding: 150px 0 170px; border-top: 1px solid var(--line); }
.personality-heading { position: relative; margin-bottom: 58px; text-align: center; }
.personality-heading h2 { width: max-content; max-width: 64rem; margin: 0 auto; padding: 13px 24px 17px; color: var(--navy); background: var(--paper); border: 4px solid var(--navy); border-radius: 20px 17px 22px 18px; box-shadow: 5px 6px 0 var(--navy); font: 900 clamp(2.7rem, 5vw, 5rem)/1.03 "Noto Sans SC"; letter-spacing: -.075em; }
.personality-heading p { margin: 18px auto 0; font-size: 12px; }
.personality-quiz { width: min(920px, 100%); margin: 0 auto; }
.quiz-progress { margin-bottom: 24px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; color: var(--paper); }
.quiz-progress span { font-size: 12px; font-weight: 900; }
.quiz-progress > i { height: 12px; overflow: hidden; background: rgba(255,244,220,.25); border: 3px solid var(--navy); border-radius: 99px; }
.quiz-progress > i b { height: 100%; display: block; background: var(--yellow); transition: width .4s ease; }
.quiz-card { min-height: 470px; padding: clamp(34px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); border: 4px solid var(--navy); border-radius: 32px 26px 35px 29px; box-shadow: 10px 12px 0 var(--navy); }
.quiz-card h3 { max-width: 760px; margin: 0; font: 900 clamp(2.2rem, 4.8vw, 4.4rem)/1.12 "Noto Sans SC"; letter-spacing: -.065em; }
.quiz-options { margin-top: 70px; display: flex; align-items: stretch; gap: 0; overflow: hidden; border: 3px solid var(--navy); border-radius: 20px 16px 22px 18px; }
.quiz-options button { min-height: 140px; padding: 20px; flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; color: var(--navy); background: #f7e7c4; border: 0; cursor: pointer; transition: flex .55s cubic-bezier(.2,.8,.2,1), background .35s ease; }
.quiz-options button + button { border-left: 3px solid var(--navy); }
.quiz-options button:nth-child(2) { background: #d8cdbb; }
.quiz-options button:nth-child(3) { background: var(--mint); }
.quiz-options button:hover { flex: 1.35 1 0; background: var(--yellow); }
.quiz-options button span { max-width: 180px; text-align: left; font-size: 15px; font-weight: 900; line-height: 1.45; }
.quiz-options button i { font-size: 10px; font-style: normal; font-weight: 900; border-bottom: 2px solid var(--navy); }
.personality-loading { width: min(920px, 100%); min-height: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--navy); background: var(--yellow); border: 4px solid var(--navy); border-radius: 30px 25px 33px 27px; box-shadow: var(--shadow); }
.personality-loading span { width: 54px; height: 54px; border: 4px solid rgba(64,58,82,.25); border-top-color: var(--navy); border-radius: 50%; animation: spin .85s linear infinite; }
.personality-result { width: min(1180px, 100%); margin: 0 auto; }
.personality-main-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: clamp(34px, 5vw, 74px); align-items: center; }
.personality-main-card > img { width: 100%; max-width: 640px; padding: 20px; background: #514b5c; border: 4px solid var(--navy); border-radius: 28px 23px 31px 25px; box-shadow: 10px 12px 0 rgba(31,27,41,.8); transform: rotate(-1deg); }
.personality-summary { padding: 40px; color: var(--navy); background: var(--paper); border: 4px solid var(--navy); border-radius: 25px 21px 28px 22px; box-shadow: var(--shadow); }
.personality-summary > small { font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.personality-summary > b { margin-top: 12px; display: block; color: var(--red); font: 900 clamp(4rem, 8vw, 7.4rem)/.9 Outfit, Geist, sans-serif; letter-spacing: -.05em; }
.personality-summary h3 { margin: 26px 0 0; font: 900 clamp(2rem, 3.8vw, 3.8rem)/1 "Noto Sans SC"; letter-spacing: -.06em; }
.personality-summary p { margin: 20px 0 0; font-size: 14px; font-weight: 800; line-height: 1.8; }
.personality-summary ul { margin: 28px 0 0; padding: 20px 0 0; list-style: none; border-top: 3px solid var(--navy); }
.personality-summary li { margin: 10px 0; font-size: 12px; font-weight: 900; }
.personality-report-intro { margin: 150px 0 48px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.personality-report-intro small { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.personality-report-intro h2 { max-width: 800px; margin: 14px 0 0; color: var(--paper); font: 900 clamp(2.6rem, 5vw, 5.2rem)/1.02 "Noto Sans SC"; letter-spacing: -.075em; }
.inline-cat-photo { width: clamp(74px, 9vw, 132px); height: .72em; margin: 0 .08em; display: inline-block; overflow: hidden; vertical-align: .02em; border: 3px solid var(--paper); border-radius: 999px; transform: rotate(-3deg); }
.inline-cat-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 35%; }
.personality-report-intro p { max-width: 430px; margin: 0; color: #eee3d3; font-size: 14px; line-height: 1.85; }
.personality-report-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; overflow: hidden; border: 4px solid var(--navy); border-radius: 30px 25px 34px 27px; box-shadow: var(--shadow); }
.personality-report-card { min-height: 470px; padding: clamp(30px, 4vw, 52px); color: var(--navy); }
.personality-report-card:nth-child(odd) { border-right: 3px solid var(--navy); }
.personality-report-card:nth-child(-n+2) { border-bottom: 3px solid var(--navy); }
.personality-report-card h3 { margin: 0; font: 900 clamp(1.8rem, 3vw, 3rem)/1.05 "Noto Sans SC"; letter-spacing: -.055em; }
.personality-report-card > p { margin: 18px 0 0; font-size: 13px; line-height: 1.8; }
.axis-report { background: var(--paper); }
.profile-report { background: var(--mint); }
.care-report { background: var(--yellow); }
.research-report { background: #d8cdbb; }
.personality-axis-list { margin-top: 38px; }
.personality-axis { margin: 22px 0; }
.personality-axis > div { display: grid; grid-template-columns: 1fr 30px 1fr; font-size: 11px; font-weight: 900; }
.personality-axis > div strong { text-align: center; }
.personality-axis > div span:last-child { text-align: right; }
.personality-axis > i { position: relative; height: 9px; margin-top: 9px; display: block; background: #d8cdbb; border: 2px solid var(--navy); border-radius: 99px; }
.personality-axis > i b { position: absolute; top: 50%; width: 18px; height: 18px; background: var(--yellow); border: 3px solid var(--navy); border-radius: 50%; transform: translate(-50%, -50%); }
.profile-report > small { font: 900 clamp(3rem, 6vw, 6rem)/1 Outfit, Geist, sans-serif; }
.profile-report blockquote { margin: 40px 0 0; padding-top: 24px; border-top: 3px solid var(--navy); font: 800 15px/1.7 "Noto Sans SC"; }
.care-report ol { margin: 38px 0 0; padding: 0; list-style: none; counter-reset: care; }
.care-report li { counter-increment: care; margin: 13px 0; padding: 17px 18px; background: var(--paper); border: 3px solid var(--navy); border-radius: 17px 13px 19px 15px; font-size: 13px; font-weight: 900; }
.care-report li::before { content: counter(care) ". "; color: var(--red); }
.research-report small { display: block; margin-top: 32px; padding-top: 20px; border-top: 2px solid var(--navy); font-size: 10px; font-weight: 900; }
.personality-actions { width: min(920px, 100%); margin: 34px auto 0; display: grid; grid-template-columns: 1fr 1.2fr .8fr; gap: 10px; }
.retake { color: var(--navy); background: var(--mint); border: 3px solid var(--navy); }
footer { color: #fff4dc; border-color: rgba(255,244,220,.3); }

@media (max-width: 560px) {
  body:not(.has-result) .upload-panel { padding: 38px 22px 34px; border-width: 3px; box-shadow: 5px 6px 0 var(--navy); }
  body:not(.has-result) .drop { min-height: 205px; border-width: 3px; }
  .resume-task { grid-template-columns: 1fr; }
  .resume-task button { min-width: 0; border-left: 0; border-top: 3px solid var(--navy); }
  .showcase-product-frame.portrait-product { width: min(176px, 64%); height: 86%; }
  .showcase-product-frame.landscape-product { width: 92%; height: 65%; }
  .slide-copy { left: 12px; bottom: 11px; min-width: 164px; padding: 8px 10px; }
  body[data-stage="upload"] .workspace { padding-top: 42px; }
  body[data-stage="generate"] .result-head h2,
  body[data-stage="select"] .result-head h2,
  .identity-heading h2,
  .beauty-heading h2,
  .personality-heading h2 { padding: 10px 16px 13px; border-width: 3px; }
  .poster-shell { border-width: 3px; box-shadow: 5px 6px 0 var(--navy); }
  .generation-state { border-width: 2px; box-shadow: 2px 3px 0 var(--navy); }
  .live-poster { border-width: 3px; box-shadow: 4px 5px 0 rgba(64,58,82,.5); }
  .button { border-width: 3px; }
  .result-head, .identity-heading, .beauty-heading, .personality-heading { padding-top: 56px; }
  .stage-back { top: 0; transform: none; }
  .stage-back:hover { transform: translate(-1px, -2px); }
  body[data-stage="identity"] .identity-card-result { padding: 15px; border-width: 3px; }
  body[data-stage="beauty"] .beauty-result { grid-template-columns: 1fr; gap: 24px; }
  body[data-stage="beauty"] .beauty-result > img { padding: 12px; border-width: 3px; }
  body[data-stage="beauty"] .beauty-summary { padding: 25px; }
  .beauty-summary { padding: 24px; }
  .beauty-actions,
  .idphoto-actions { grid-template-columns: 1fr; }
  .beauty-report-details { margin-top: 100px; }
  .report-intro { grid-template-columns: 1fr; gap: 24px; }
  .report-intro h2 { font-size: clamp(2.3rem, 11vw, 3.6rem); }
  .beauty-report-grid { grid-template-columns: 1fr; border-width: 3px; }
  .report-card { min-height: 0; border-right: 0 !important; border-bottom: 3px solid var(--navy) !important; }
  .report-card:last-child { border-bottom: 0 !important; }
  .type-code strong { font-size: 3.2rem; }
  .test-paths { grid-template-columns: 1fr; border-width: 3px; }
  .test-path + .test-path { border-left: 0; border-top: 3px solid var(--navy); }
  .test-path { min-height: 145px; }
  .personality-main-card { grid-template-columns: 1fr; gap: 24px; }
  .personality-main-card > img { padding: 12px; border-width: 3px; }
  .personality-summary { padding: 25px; }
  .personality-report-intro { margin-top: 100px; grid-template-columns: 1fr; gap: 24px; }
  .personality-report-intro h2 { font-size: clamp(2.3rem, 11vw, 3.6rem); }
  .personality-report-grid { grid-template-columns: 1fr; border-width: 3px; }
  .personality-report-card { min-height: 0; border-right: 0 !important; border-bottom: 3px solid var(--navy) !important; }
  .personality-report-card:last-child { border-bottom: 0 !important; }
  .personality-actions { grid-template-columns: 1fr; }
  .quiz-card { min-height: 520px; padding: 30px 24px; }
  .quiz-options { margin-top: 44px; flex-direction: column; }
  .quiz-options button { min-height: 105px; }
  .quiz-options button + button { border-left: 0; border-top: 3px solid var(--navy); }
  .quiz-options button:hover { flex: 1 1 0; }
}

/* Lighter real-result showcase: the work is the focus, not a heavy sleeve. */
.outcome-showcase { max-width: 680px; margin-top: 48px; }
.outcome-showcase > header { align-items: flex-end; padding: 0 2px; margin-bottom: 12px; }
.outcome-showcase > header > div > strong,
.outcome-showcase > header > div > small { display: block; }
.outcome-showcase > header > div > strong { font-size: 18px; letter-spacing: -.02em; }
.outcome-showcase > header > div > small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.showcase-arrows { gap: 4px; }
.showcase-arrows button { width: 32px; height: 32px; color: var(--navy); background: transparent; border: 1px solid rgba(64,58,82,.28); box-shadow: none; }
.showcase-arrows button:hover { color: var(--paper); background: var(--navy); transform: none; }
.showcase-viewport { overflow: hidden; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.showcase-slide { height: 356px; padding: 8px 10px 48px; background: transparent !important; }
.showcase-slide::after { display: none; }
.showcase-product-frame,
.showcase-product-frame.portrait-product,
.showcase-product-frame.landscape-product {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.showcase-product-frame.portrait-product { width: min(250px, 62%); height: 94%; }
.showcase-product-frame.landscape-product { width: min(590px, 94%); height: 78%; }
.showcase-product-frame img { object-fit: contain; border-radius: 7px; filter: drop-shadow(0 14px 20px rgba(49,38,49,.15)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.showcase-slide:hover .showcase-product-frame img { transform: scale(1.025); }
.slide-copy { left: 50%; bottom: 4px; min-width: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; text-align: center; transform: translateX(-50%); }
.slide-copy small { margin-bottom: 3px; color: rgba(64,58,82,.54); font-size: 8px; letter-spacing: .14em; }
.slide-copy strong { font-size: 15px; white-space: nowrap; }
.showcase-dots { margin-top: 12px; gap: 8px; }
.showcase-dots button { width: 6px; height: 6px; background: rgba(64,58,82,.22); border: 0; }
.showcase-dots button.active { width: 22px; background: var(--navy); }

/* Cat-facing beauty report copy. */
.cat-reading-report { background: var(--mint); }
.cat-reading-report dl { margin: 30px 0 0; }
.cat-reading-report dl > div { padding: 18px 0; border-top: 2px solid rgba(64,58,82,.42); }
.cat-reading-report dt { margin-bottom: 7px; color: var(--red); font-size: 11px; font-weight: 900; }
.cat-reading-report dd { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.75; }
.final-verdict-report { display: flex; flex-direction: column; background: #d8cdbb; }
.final-verdict-report > small { font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.final-verdict-report > blockquote { margin: 42px 0; font: 900 clamp(2rem, 3.5vw, 3.8rem)/1.35 "Noto Sans SC"; letter-spacing: -.05em; }
.final-verdict-report > div { margin-top: auto; padding-top: 22px; border-top: 3px solid var(--navy); }
.final-verdict-report > div h3 { font-size: 18px; }
.final-verdict-report > div p { margin: 12px 0 0; font-size: 11px; font-weight: 700; line-height: 1.75; }

@media (max-width: 560px) {
  .outcome-showcase { margin-top: 38px; }
  .outcome-showcase > header > div > strong { font-size: 16px; }
  .outcome-showcase > header > div > small { max-width: 220px; }
  .showcase-slide { height: 302px; padding: 4px 0 44px; }
  .showcase-product-frame.portrait-product { width: min(188px, 66%); height: 94%; }
  .showcase-product-frame.landscape-product { width: 96%; height: 74%; }
  .slide-copy { left: 50%; bottom: 2px; padding: 0; transform: translateX(-50%); }
  .final-verdict-report > blockquote { margin: 30px 0 42px; font-size: 2.25rem; }
}

/* Four connected archive paths: 2 x 2 with no empty cell. */
.unlock-grid { grid-template-columns: repeat(2, 1fr); }
.unlock-card { min-height: 300px; }
.unlock-card:nth-child(even) { border-left: 3px solid var(--navy); }
.unlock-card:nth-child(n+3) { border-top: 3px solid var(--navy); }
.investigator-unlock { background: var(--mint); }
.wanted-unlock { background: #d7aa76; border-left: 3px solid var(--navy); }
.dossier-unlock { background: #d8cdbb; }

body:not([data-stage="archive"]) .archive-builder { display: none !important; }
body[data-stage="archive"] .workspace,
body[data-stage="archive"] .identity-builder,
body[data-stage="archive"] .beauty-builder,
body[data-stage="archive"] .personality-builder { display: none !important; }
body[data-stage="archive"] .archive-builder { min-height: calc(100vh - 68px); display: block; padding: 62px 0 120px; }
.archive-builder { color: var(--paper); }
.archive-heading { position: relative; margin-bottom: 34px; text-align: center; }
.archive-heading h2 { width: max-content; max-width: 100%; margin: 0 auto; padding: 13px 24px 17px; color: var(--navy); background: var(--paper); border: 4px solid var(--navy); border-radius: 20px 17px 22px 18px; box-shadow: 5px 6px 0 var(--navy); font: 900 clamp(2.7rem, 5vw, 5rem)/1.03 "Noto Sans SC"; letter-spacing: -.075em; }
.archive-heading p { margin: 18px auto 0; color: #eee3d3; font-size: 12px; }
.archive-switcher { width: min(1120px, 100%); height: auto; margin: 0 auto 36px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; background: var(--paper); border: 4px solid var(--navy); border-radius: 20px 17px 23px 18px; box-shadow: 6px 7px 0 var(--navy); }
.archive-switcher button { min-height: 62px; padding: 12px; color: var(--navy); background: transparent; border: 0; font-weight: 900; cursor: pointer; }
.archive-switcher button + button { border-left: 3px solid var(--navy); }
.archive-switcher button.active { background: var(--yellow); }
.archive-switcher button:disabled { color: rgba(64,58,82,.45); background: #d8cdbb; cursor: not-allowed; }
.archive-loading { width: min(880px, 100%); min-height: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--navy); background: var(--mint); border: 4px solid var(--navy); border-radius: 28px 23px 31px 25px; box-shadow: var(--shadow); }
.archive-loading span { width: 54px; height: 54px; border: 4px solid rgba(64,58,82,.25); border-top-color: var(--navy); border-radius: 50%; animation: spin .85s linear infinite; }
.archive-result { width: min(1120px, 100%); margin: 0 auto; display: grid; place-items: center; }
.archive-result img { width: 100%; display: block; padding: 18px; background: #514b5c; border: 4px solid var(--navy); border-radius: 28px 23px 31px 25px; box-shadow: 10px 12px 0 rgba(31,27,41,.8); }
.archive-result.kind-investigator img { max-width: 980px; }
.archive-result.kind-wanted img { max-width: 610px; }
.archive-result.kind-driver img { max-width: 980px; }
.archive-result.kind-perler img { max-width: 650px; }
.archive-result.kind-dossier img { max-width: 650px; }
.archive-actions { width: min(780px, 100%); margin: 34px auto 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }

@media (max-width: 560px) {
  .unlock-grid { grid-template-columns: 1fr; }
  .unlock-card:nth-child(even) { border-left: 0; }
  .unlock-card:nth-child(n+2) { border-top: 3px solid var(--navy); }
  body[data-stage="archive"] .archive-builder,
  body[data-stage="idphoto"] .idphoto-builder { padding: 34px 0 80px; }
  .archive-heading { padding-top: 56px; }
  .archive-heading h2 { padding: 10px 16px 13px; border-width: 3px; font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .archive-switcher { margin-bottom: 26px; grid-template-columns: 1fr; border-width: 3px; }
  .archive-switcher button { min-height: 50px; }
  .archive-switcher button + button { border-left: 0; border-top: 2px solid var(--navy); }
  .archive-result img { padding: 10px; border-width: 3px; }
  .archive-actions { grid-template-columns: 1fr; }
}

/* Product hierarchy after identity: tests, entertainment templates, final collection. */
.play-hub { width: min(1120px, 100%); margin: 110px auto 0; text-align: left; }
.play-hub > header { margin-bottom: 48px; }
.play-hub > header small { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.play-hub > header h3 { margin: 12px 0 0; color: var(--paper); font: 900 clamp(2.4rem, 4vw, 4rem)/1.05 "Noto Sans SC"; letter-spacing: -.065em; }
.play-hub > header p { margin: 16px 0 0; color: #d8cdbb; font-size: 13px; }
.play-group { margin-top: 42px; }
.play-group-title { margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; }
.play-group-title span { color: var(--paper); font-size: 20px; font-weight: 900; }
.play-group-title small { color: #d8cdbb; font-size: 10px; font-weight: 800; }
.play-grid { display: grid; grid-auto-flow: dense; overflow: hidden; border: 4px solid var(--navy); border-radius: 25px 21px 28px 22px; box-shadow: 7px 8px 0 var(--navy); }
.play-grid-tests { grid-template-columns: repeat(2, 1fr); }
.play-grid-templates { grid-template-columns: repeat(4, 1fr); }
.play-card { min-height: 210px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; color: var(--navy); border: 0; text-align: left; cursor: pointer; transition: flex .5s ease, filter .3s ease; }
.play-card + .play-card { border-left: 3px solid var(--navy); }
.play-card span { font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.play-card strong { margin: auto 0 12px; font-size: clamp(1.55rem, 2.5vw, 2.5rem); }
.play-card small { padding-bottom: 3px; border-bottom: 2px solid var(--navy); font-size: 11px; font-weight: 900; }
.play-card.completed small { color: #4E7856; }
.play-card:hover { filter: brightness(1.04); }
.driver-unlock { background: #d8cdbb; }
.perler-unlock { background: #efd5ae; }
.dossier-gate { margin-top: 58px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr .8fr auto; gap: 36px; align-items: center; color: var(--paper); background: var(--navy); border: 4px solid var(--navy); border-radius: 28px 23px 31px 25px; box-shadow: 9px 10px 0 #2a2635; }
.dossier-gate small { color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.dossier-gate h3 { margin: 9px 0 0; font: 900 clamp(2rem, 3.5vw, 3.6rem)/1 "Noto Sans SC"; }
.dossier-gate p { margin: 13px 0 0; color: #d8cdbb; font-size: 11px; }
.dossier-progress { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.dossier-progress i { width: 100%; min-width: 150px; height: 13px; overflow: hidden; background: rgba(255,244,220,.2); border: 2px solid var(--paper); border-radius: 99px; }
.dossier-progress i b { height: 100%; display: block; background: var(--yellow); transition: width .5s ease; }
.dossier-progress strong { font: 800 13px Geist; }
.dossier-gate > button { min-width: 150px; min-height: 54px; padding: 12px 18px; color: var(--navy); background: var(--yellow); border: 3px solid var(--paper); border-radius: 15px; font-weight: 900; cursor: pointer; }
.dossier-gate > button:disabled { color: rgba(64,58,82,.58); background: #d8cdbb; cursor: not-allowed; }

@media (max-width: 560px) {
  .play-hub { margin-top: 80px; }
  .play-hub > header { margin-bottom: 36px; }
  .play-hub > header h3 { max-width: 9em; font-size: 2rem; line-height: 1.12; letter-spacing: -.04em; }
  .play-grid-tests,
  .play-grid-templates { grid-template-columns: 1fr; border-width: 3px; }
  .play-card { min-height: 155px; padding: 24px; }
  .play-card + .play-card { border-left: 0; border-top: 3px solid var(--navy); }
  .dossier-gate { grid-template-columns: 1fr; gap: 24px; margin-top: 42px; padding: 28px 24px; }
  .dossier-gate > button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ============================================================
   一猫一档：激活码 / 档案主页 / 13 格证件照 / 模板制作
   延续现有日式手绘游戏视觉，不引入新的按钮体系
   ============================================================ */
.code-entry {
  display: inline-flex;
  margin: 16px auto 0;
  padding: 9px 18px;
  color: var(--blue-deep);
  background: transparent;
  border: 1px dashed rgba(82, 126, 145, .55);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.code-entry:hover { border-color: var(--navy); color: var(--navy); }

body:not([data-stage="activate"]) .activate-builder,
body:not([data-stage="idphoto"]) .idphoto-builder,
body:not([data-stage="idphotos"]) .idphotos-builder,
body:not([data-stage="template"]) .template-builder,
body:not([data-stage="idcard"]) .idcard-builder { display: none !important; }
body[data-stage="activate"] .workspace,
body[data-stage="idphoto"] .workspace,
body[data-stage="idphotos"] .workspace,
body[data-stage="template"] .workspace,
body[data-stage="idcard"] .workspace,
body[data-stage="activate"] .identity-builder,
body[data-stage="idphoto"] .identity-builder,
body[data-stage="idphotos"] .identity-builder,
body[data-stage="template"] .identity-builder,
body[data-stage="idcard"] .identity-builder,
body[data-stage="activate"] .beauty-builder,
body[data-stage="idphoto"] .beauty-builder,
body[data-stage="idphotos"] .beauty-builder,
body[data-stage="template"] .beauty-builder,
body[data-stage="idcard"] .beauty-builder,
body[data-stage="activate"] .personality-builder,
body[data-stage="idphoto"] .personality-builder,
body[data-stage="idphotos"] .personality-builder,
body[data-stage="template"] .personality-builder,
body[data-stage="idcard"] .personality-builder,
body[data-stage="activate"] .archive-builder,
body[data-stage="idphoto"] .archive-builder,
body[data-stage="idphotos"] .archive-builder,
body[data-stage="template"] .archive-builder,
body[data-stage="idcard"] .archive-builder { display: none !important; }
body[data-stage="activate"] .activate-builder,
body[data-stage="idphoto"] .idphoto-builder,
body[data-stage="idphotos"] .idphotos-builder,
body[data-stage="template"] .template-builder,
body[data-stage="idcard"] .idcard-builder { min-height: calc(100vh - 68px); display: block; padding: 62px 0 120px; }

.activate-panel {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 44px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.activate-panel label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.activate-panel input {
  width: 100%;
  padding: 16px 18px;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  font: 700 20px "DM Mono", monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.activate-panel input:focus { outline: none; box-shadow: 4px 5px 0 var(--navy); }
.activate-panel .button { width: 100%; margin-top: 18px; }
.activate-panel .notice { text-align: center; }

.archive-lock-box {
  margin-top: 34px;
  padding: 30px;
  background: rgba(243, 201, 105, .32);
  border: 2px dashed var(--navy);
  border-radius: 18px;
}
.archive-lock-copy { margin-top: 16px; }
.archive-lock-copy > strong { font: 900 26px "Noto Sans SC"; letter-spacing: -.04em; }
.archive-lock-copy p { max-width: 620px; margin: 10px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.archive-lock-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.archive-home-avatar {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 34px;
  padding: 22px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.archive-home-avatar .selected-photo-frame { width: 116px; }
.archive-home-avatar-copy small, .archive-home-avatar-copy strong, .archive-home-avatar-copy span { display: block; }
.archive-home-avatar-copy small { color: var(--muted); font: 9px "DM Mono"; letter-spacing: .12em; }
.archive-home-avatar-copy strong { margin-top: 6px; font: 800 22px "Noto Sans SC"; }
.archive-home-avatar-copy span { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.archive-home-avatar-actions { display: grid; gap: 8px; min-width: 168px; }
.archive-home-avatar-actions .button { min-height: 40px; padding: 10px 14px; font-size: 12px; }

.ai-usage-line { margin: 22px 0 0; color: var(--blue-deep); font-size: 11px; letter-spacing: .02em; }
.idphotos-ai { text-align: center; margin-bottom: 26px; font-weight: 700; }

.idphoto-loading { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 20px; }
.idphoto-loading span { width: 54px; height: 54px; border: 4px solid #e5dcf4; border-top-color: #6f4b98; border-radius: 50%; animation: spin .85s linear infinite; }
.idphoto-result { width: min(720px, 100%); margin: 0 auto; }
.idphoto-result:empty { display: none; }
.idphoto-result img { width: min(640px, 100%); display: block; border-radius: 16px; box-shadow: var(--shadow); }
.idphoto-actions { width: min(720px, 100%); margin: 28px auto 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.idphotos-ai { text-align: center; margin-bottom: 26px; font-weight: 700; }

.idphotos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.idphoto-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
}
.idphoto-slot.ok-slot { grid-column: span 2; grid-row: span 2; }
.idphoto-slot .slot-media {
  position: relative;
  flex: 1;
  min-height: 120px;
  display: grid;
  place-items: center;
  background: #f1eee9;
  background-image: radial-gradient(circle, rgba(45, 33, 29, .08) 1px, transparent 1px);
  background-size: 9px 9px;
}
.idphoto-slot .slot-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idphoto-slot.empty .slot-media::before { content: "等待照片"; color: #b7a896; font-size: 11px; }
.idphoto-slot .slot-label { padding: 9px 10px 4px; font-size: 11px; font-weight: 800; }
.idphoto-slot .slot-source { padding: 0 10px 8px; color: var(--blue-deep); font: 9px "DM Mono"; letter-spacing: .1em; }
.idphoto-slot .slot-actions { display: flex; gap: 6px; padding: 8px 10px 10px; flex-wrap: wrap; }
.idphoto-slot .slot-actions button {
  padding: 6px 10px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.idphoto-slot .slot-actions button.primary-ai { background: var(--yellow); }
.idphoto-slot .slot-actions button:disabled { opacity: .45; cursor: not-allowed; }
.idphoto-slot .slot-upload-input { display: none; }

.idphotos-poster { margin: 26px auto 0; max-width: 640px; }
.idphotos-poster img { width: 100%; display: block; border-radius: 16px; box-shadow: var(--shadow); }
.idphotos-actions { max-width: 640px; margin: 22px auto 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.template-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 34px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.template-source, .template-mode { margin-bottom: 26px; }
.template-options { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.template-option {
  min-height: 46px;
  padding: 12px 18px;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.template-option.active { background: var(--yellow); box-shadow: 4px 5px 0 var(--navy); }
.template-option.template-upload { display: inline-flex; align-items: center; }
.template-upload-name { min-height: 16px; margin: 10px 0 0; color: var(--blue-deep); font-size: 11px; }
.template-preview { min-height: 120px; display: grid; place-items: center; }
.template-preview img { width: min(640px, 100%); display: block; border-radius: 16px; box-shadow: var(--shadow); }
.template-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

.beauty-actions.confirmed, .personality-actions.confirmed { grid-template-columns: 1fr 1fr; }

/* ============ 创作详情页统一交互（4.3 第四批） ============ */
.work-input { max-width: 720px; margin: 0 auto 26px; }
.journal-copy-field { display: block; width: min(720px, 100%); margin: 0 auto 24px; color: var(--navy); font-size: 12px; font-weight: 800; }
.journal-copy-field span { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.journal-copy-field small { color: var(--muted); font-weight: 600; }
.journal-copy-field textarea { width: 100%; resize: vertical; padding: 13px 14px; color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 12px; line-height: 1.6; }
.work-input .play-group-title { margin-bottom: 12px; }
.work-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 128px;
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
  border: 2px dashed var(--line-strong, #b7a896);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.work-upload span { font-size: 20px; font-weight: 700; }
.work-upload:active { background: var(--yellow); box-shadow: inset 0 0 0 3px rgba(64, 58, 82, .15); }
.work-quicklink {
  display: block;
  margin: 12px auto 0;
  padding: 8px 12px;
  color: var(--blue-deep);
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.work-quicklink span { margin-left: 2px; }
.work-preview {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.work-preview img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #f1eee9;
}
.work-preview-copy { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 4px; }
.work-preview-copy strong { font-size: 13px; }
.work-repick {
  padding: 6px 10px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.work-result { width: min(720px, 100%); margin: 0 auto; }
.work-result:empty { display: none; }
.work-result img { width: min(640px, 100%); display: block; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow); }
.work-loading { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 20px; }
.work-loading span { width: 54px; height: 54px; border: 4px solid #e5dcf4; border-top-color: #6f4b98; border-radius: 50%; animation: spin .85s linear infinite; }
.work-loading strong { color: var(--navy); }
.work-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.work-actions .button.dark { min-width: 132px; }
.perler-advanced { max-width: 720px; margin: 18px auto 0; text-align: center; }
.perler-materials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

.confirm-lock { background: var(--mint); color: var(--navy); }

@media (max-width: 960px) {
  .archive-home-avatar { grid-template-columns: 84px 1fr; }
  .archive-home-avatar-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; }
  .idphotos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
  .idphoto-slot.ok-slot { grid-column: span 2; grid-row: span 2; }
  .idphotos-actions { grid-template-columns: 1fr; }
  .activate-panel, .template-panel { padding: 24px; }
}

.im-candidates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.im-candidate {
  margin: 0;
  border: 2px solid var(--line, rgba(0, 0, 0, .08));
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}
.im-candidate:hover {
  border-color: #d9a05b;
  transform: translateY(-2px);
}
.im-candidate img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}
.im-candidate figcaption {
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  color: #6b4a2b;
  font-size: 14px;
}

/* ---------------- 成长档案 ---------------- */

.growth-init-card { max-width: 720px; margin: 0 auto; padding: 40px 34px; background: var(--white); border: 3px solid var(--navy); border-radius: 18px 15px 20px 16px; box-shadow: var(--shadow); }
.growth-init-card h3 { margin: 0 0 8px; font: 900 clamp(1.6rem, 3vw, 2.4rem) "Noto Sans SC"; }
.growth-init-sub { margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.growth-init-options { display: grid; gap: 14px; }
.growth-init-option { padding: 24px; display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--paper); border: 3px solid var(--navy); border-radius: 16px 12px 17px 13px; box-shadow: 3px 4px 0 var(--navy); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.growth-init-option:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--navy); }
.growth-init-option strong { font: 800 20px "Noto Sans SC"; }
.growth-init-option small { color: var(--muted); font-size: 12px; line-height: 1.6; }

.growth-main { max-width: 760px; margin: 0 auto; }
.growth-dates, .growth-archives, .growth-timeline { margin-top: 34px; }
.growth-dates-body { padding: 24px; background: var(--white); border: 3px solid var(--navy); border-radius: 18px 15px 20px 16px; box-shadow: 3px 4px 0 var(--navy); }
.growth-dates-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.growth-dates-lines span { padding: 6px 12px; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; font-weight: 800; font-size: 13px; }
.growth-dates-lines .growth-upcoming { background: #f1e6d2; color: var(--muted); font-weight: 600; }
.growth-milestones { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.growth-milestones em { padding: 4px 10px; background: var(--lavender); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; font-size: 11px; font-weight: 800; font-style: normal; }
.growth-dates-body .field-pair { margin-top: 8px; }
.growth-dates-body label { display: block; font-size: 11px; color: var(--muted); }
.growth-dates-body input, .growth-dates-body select { width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; border: 2px solid var(--navy); border-radius: 10px; background: var(--white); font-size: 14px; }
.growth-dates-body .button { margin-top: 14px; min-height: 44px; font-size: 13px; }

.growth-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.growth-actions-row .button { min-height: 54px; }
.growth-backfill-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: end; margin-top: 14px; padding: 18px; background: var(--paper); border: 3px solid var(--navy); border-radius: 16px 12px 17px 13px; box-shadow: 3px 4px 0 var(--navy); }
.growth-backfill-bar label { display: block; font-size: 11px; color: var(--muted); }
.growth-backfill-bar select { width: 100%; min-height: 46px; margin-top: 6px; padding: 10px; border: 2px solid var(--navy); border-radius: 10px; background: var(--white); font-size: 14px; }
.growth-backfill-bar .button { min-height: 46px; font-size: 13px; }
.growth-reward { display: block; margin: 16px 0 0; padding: 14px 18px; background: #fff3d6; border: 2px solid var(--yellow); border-radius: 12px; color: var(--navy); font-size: 12px; line-height: 1.7; }
.growth-reward strong { display: inline-block; margin-left: 8px; font-size: 14px; }

.growth-empty { padding: 46px 20px; text-align: center; background: var(--white); border: 3px dashed var(--navy); border-radius: 16px; }
.growth-empty p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.growth-entry { padding: 20px; margin-bottom: 16px; background: var(--white); border: 3px solid var(--navy); border-radius: 16px 12px 17px 13px; box-shadow: 3px 4px 0 var(--navy); }
.growth-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.growth-entry-head strong { font: 800 14px "DM Mono"; }
.growth-historical { padding: 3px 8px; background: var(--lavender); border: 2px solid var(--navy); border-radius: 999px; font-size: 10px; font-weight: 800; font-style: normal; }
.growth-entry-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.growth-entry-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--navy); border-radius: 10px; }
.growth-entry-text { margin: 0 0 10px; color: var(--navy); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.growth-entry-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.growth-entry-meta span { color: var(--muted); font-size: 11px; font-weight: 700; }
.growth-entry-meta i { padding: 3px 8px; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; font-size: 10px; font-weight: 800; font-style: normal; }
.growth-entry-actions { display: flex; gap: 8px; }
.growth-entry-actions .button { min-height: 38px; padding: 8px 14px; font-size: 12px; }

.growth-form-heading { margin-bottom: 34px; }
.growth-form-panel { max-width: 640px; margin: 0 auto; padding: 26px; background: var(--white); border: 3px solid var(--navy); border-radius: 18px 15px 20px 16px; box-shadow: var(--shadow); }
.growth-form-panel label { display: block; margin: 14px 0; font-size: 11px; color: var(--muted); }
.growth-form-panel input, .growth-form-panel select, .growth-form-panel textarea { width: 100%; margin-top: 6px; padding: 10px 12px; border: 2px solid var(--navy); border-radius: 10px; background: var(--white); font-size: 14px; color: var(--navy); }
.growth-form-panel .field-pair { margin: 14px 0; }
.growth-photo-field { margin: 14px 0; }
.growth-photo-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.growth-photo-label .button { min-height: 40px; padding: 8px 14px; font-size: 12px; }
.growth-photo-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.growth-photo-item { position: relative; }
.growth-photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--navy); border-radius: 10px; }
.growth-photo-item button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 2px solid var(--navy); border-radius: 50%; background: var(--white); color: var(--red); font-weight: 900; cursor: pointer; }
.growth-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.growth-tag { padding: 8px 14px; border: 2px solid var(--navy); border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 800; cursor: pointer; }
.growth-tag.active { background: var(--navy); color: var(--white); }
.growth-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.growth-form-actions .button { flex: 1; }

.growth-archives-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.growth-archives-actions .button { min-height: 44px; font-size: 13px; }
.growth-week-card, .growth-month-card { width: 100%; padding: 18px; margin-bottom: 12px; background: var(--white); border: 3px solid var(--navy); border-radius: 16px 12px 17px 13px; box-shadow: 3px 4px 0 var(--navy); }
.growth-week-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.growth-week-head strong { font: 800 12px "DM Mono"; }
.growth-week-head em { font-size: 11px; font-weight: 800; font-style: normal; }
.growth-week-card p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.growth-week-card .growth-week-first { color: var(--navy); }
.growth-week-card .growth-entry-photos { margin-top: 12px; grid-template-columns: repeat(4, 1fr); }
.growth-month-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; text-align: left; cursor: pointer; }
.growth-month-card strong { font: 800 16px "DM Mono"; }
.growth-month-card em { font-size: 11px; font-weight: 800; font-style: normal; }
.growth-month-card em.confirmed { color: #4E7856; }
.growth-month-card em.pending { color: #a06a3b; }
.growth-month-card span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

.growth-month-view { max-width: 720px; margin: 0 auto; }
.growth-month-summary { padding: 24px; background: var(--white); border: 3px solid var(--navy); border-radius: 18px 15px 20px 16px; box-shadow: var(--shadow); }
.growth-month-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.growth-month-stats span { padding: 12px; background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; font-size: 12px; color: var(--muted); }
.growth-month-stats b { display: block; color: var(--navy); font-size: 18px; }
.growth-month-tags { margin: 0 0 12px; font-size: 12px; font-weight: 800; }
.growth-month-firsts p { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.growth-month-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.growth-month-photo { position: relative; cursor: pointer; }
.growth-month-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--navy); border-radius: 10px; }
.growth-month-photo i { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; display: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--mint); color: #fff; font-size: 12px; font-style: normal; }
.growth-month-photo.selected { outline: 3px solid var(--mint); }
.growth-month-photo.selected i { display: flex; }

@media (max-width: 640px) {
  .growth-init-card, .growth-form-panel, .growth-month-summary { padding: 20px 16px; }
  .growth-actions-row { grid-template-columns: 1fr; }
  .growth-backfill-bar { grid-template-columns: 1fr; }
  .growth-form-actions { flex-direction: column; }
  .growth-month-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------------- 猫罐罐 ---------------- */
.can-home-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; }
.ico-can { position: relative; display: inline-block; width: 15px; height: 16px; border: 2px solid var(--navy); border-radius: 3px; background: var(--white); box-shadow: 1px 2px 0 rgba(64, 58, 82, .4); vertical-align: -3px; }
.ico-can::before { content: ""; position: absolute; top: -3px; left: -3px; width: 17px; height: 4px; border: 2px solid var(--navy); border-radius: 3px; background: var(--yellow); }
.ico-can::after { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 6px; border-radius: 2px; background: var(--blue); }
.can-balance-chip .ico-can, .mine-can-balance .ico-can { margin-right: 3px; }
.can-balance-chip { padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; background: #fff3d6; border: 3px solid var(--navy); border-radius: 999px; box-shadow: 3px 4px 0 var(--navy); font-size: 15px; font-weight: 900; cursor: pointer; }
.can-balance-chip b { font: 800 20px "DM Mono"; }
.can-balance-chip span { color: var(--muted); font-size: 10px; font-weight: 800; }
.can-notice { margin: 0; color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.6; }
.can-ledger { margin: 14px 0 6px; padding: 20px; background: var(--white); border: 3px solid var(--navy); border-radius: 16px 12px 17px 13px; box-shadow: 3px 4px 0 var(--navy); }
.can-ledger-list { margin-bottom: 14px; }
.can-ledger-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 2px dashed #d8cdbb; }
.can-ledger-item:last-child { border-bottom: 0; }
.can-ledger-item div { display: flex; flex-direction: column; gap: 3px; }
.can-ledger-item strong { font-size: 13px; }
.can-ledger-item span { color: var(--muted); font-size: 10px; }
.can-ledger-item b { font: 800 17px "DM Mono"; }
.can-ledger-item b.plus { color: #4E7856; }
.can-ledger-item b.minus { color: var(--red); }

/* ---------------- 总档成长篇 ---------------- */
.dossier-growth-chapter { margin-top: 36px; max-width: 760px; margin-left: auto; margin-right: auto; }
.dossier-growth-chapter .growth-dates-body { margin-top: 0; }
.growth-month-card-static { padding: 18px; margin-bottom: 14px; background: var(--white); border: 3px solid var(--navy); border-radius: 16px 12px 17px 13px; box-shadow: 3px 4px 0 var(--navy); }
.growth-month-card-static p { margin: 6px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.growth-month-card-static .growth-entry-photos { margin-top: 10px; grid-template-columns: repeat(3, 1fr); }
.growth-month-stats .chapter-span b { font: 700 12px "DM Mono"; word-break: break-all; }
.chapter-photos { grid-template-columns: repeat(3, 1fr); }
.chapter-works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 4px; }
.chapter-work { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #fff; border: 2px solid var(--navy); border-radius: 14px; text-align: left; cursor: pointer; }
.chapter-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--lavender); }
.chapter-work span { font-size: 12px; font-weight: 800; color: var(--navy); }

/* ============================================================
   阶段4：信息架构与 UI 层级重构
   底部四栏导航 / 首页 / 成长 / 创作 / 我的 / 图片 fallback
   ============================================================ */

/* ---- 底部四栏导航 ---- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(620px, 100%);
  transform: translateX(-50%);
  display: grid;
  height: auto;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px 8px;
  background: rgba(255, 250, 240, .97);
  border: 0;
  border-top: 3px solid var(--navy);
  border-radius: 0 0 16px 14px;
  box-shadow: 0 -6px 24px rgba(64, 58, 82, .18), 3px 4px 0 rgba(64, 58, 82, .22);
  backdrop-filter: blur(12px);
}
.tabbar button {
  min-height: 52px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 14px;
  font: 800 12px "Noto Sans SC";
  cursor: pointer;
}
.tabbar .tab-ico { position: relative; width: 20px; height: 18px; display: inline-block; }
.tab-ico.t-home::before { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 11px; height: 9px; border: 2px solid currentColor; border-top: 0; border-radius: 1px; }
.tab-ico.t-home::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 8px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tab-ico.t-growth::before { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 13px; height: 12px; border: 2px solid currentColor; border-radius: 2px; background: linear-gradient(to bottom, currentColor 0 3px, transparent 3px); }
.tab-ico.t-growth::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tab-ico.t-creation::before { content: ""; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; background: currentColor; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tab-ico.t-mine::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tab-ico.t-mine::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 13px; height: 8px; border-radius: 50% 50% 45% 45%; background: currentColor; }
.tabbar button.active { color: var(--navy); background: var(--yellow); box-shadow: 3px 4px 0 var(--navy); }
body:not([data-stage="identity"]):not([data-stage="growth"]):not([data-stage="creation"]):not([data-stage="mine"]) .tabbar { display: none; }

/* ---- 一级页面显示规则 ---- */
body[data-stage="creation"] .workspace,
body[data-stage="creation"] .identity-builder,
body[data-stage="creation"] .beauty-builder,
body[data-stage="creation"] .personality-builder,
body[data-stage="creation"] .archive-builder,
body[data-stage="creation"] .growth-builder,
body[data-stage="mine"] .workspace,
body[data-stage="mine"] .identity-builder,
body[data-stage="mine"] .beauty-builder,
body[data-stage="mine"] .personality-builder,
body[data-stage="mine"] .archive-builder,
body[data-stage="mine"] .growth-builder { display: none !important; }
body[data-stage="creation"] .creation-builder,
body[data-stage="mine"] .mine-builder { min-height: calc(100vh - 68px); display: block; padding: 30px 0 0; }
body[data-stage="growth"] .workspace,
body[data-stage="growth"] .identity-builder,
body[data-stage="growth"] .beauty-builder,
body[data-stage="growth"] .personality-builder,
body[data-stage="growth"] .archive-builder { display: none !important; }
body:not([data-stage="growth"]) .growth-builder { display: none !important; }
body[data-stage="growth"] .growth-builder { min-height: calc(100vh - 68px); display: block; padding: 30px 0 0; }
body[data-stage="growth"] #backFromGrowth { display: none !important; }

.creation-heading, .mine-heading, .growth-heading { margin-bottom: 26px; text-align: left; }
.creation-heading h2, .mine-heading h2, .growth-heading h2 { margin: 0; font: 900 clamp(1.9rem, 4vw, 3rem) "Noto Sans SC"; letter-spacing: -.05em; }
.creation-heading p, .mine-heading p, .growth-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* ---- 首页（档案主页重构） ----
   4.1: identity 阶段 = 档案主页，第一屏必须直接是“认识它”核心区：
   隐藏旧流程遗留的两个大 header，压缩居民证预览，收紧间距。 */
body[data-stage="identity"] #identityBuilder > .identity-heading { display: none !important; }
body[data-stage="identity"] .identity-builder { padding-top: 14px; }
body[data-stage="identity"] .identity-preview-panel { min-height: 0; justify-content: flex-start; display: flex; flex-direction: column; }
body[data-stage="identity"] #testPaths { order: 1; margin-top: 4px; }
body[data-stage="identity"] .play-hub { margin-top: 4px; }
body[data-stage="identity"] .play-hub > header { display: none !important; }
body[data-stage="identity"] #identityPlaceholder { display: none; }

.home-cat-header {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  padding: 18px 20px;
  background: rgba(255, 250, 240, .92);
  border: 2px solid var(--navy);
  border-radius: 20px 16px 22px 17px;
  box-shadow: 5px 6px 0 var(--navy);
}
.home-cat-header .selected-photo-frame { width: 84px; margin: 0; }
.home-cat-copy small, .home-cat-copy strong, .home-cat-copy span { display: block; }
.home-cat-copy small { color: var(--red); font: 900 10px "DM Mono"; letter-spacing: .12em; }
.home-cat-copy strong { margin-top: 4px; font: 900 22px "Noto Sans SC"; letter-spacing: -.04em; }
.home-cat-copy span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.home-main-cta {
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 18px 14px 20px 15px;
  box-shadow: 5px 6px 0 var(--navy);
  text-align: left;
  cursor: pointer;
}
.home-main-cta strong { font: 900 19px "Noto Sans SC"; }
.home-main-cta span { color: rgba(64, 58, 82, .72); font-size: 12px; font-weight: 800; }
.home-main-cta i { font-style: normal; }

.home-sheet { position: relative; margin-top: 6px; padding: 20px 16px 6px; background: var(--white); border: 3px solid var(--navy); border-radius: 20px 16px 22px 17px; box-shadow: 5px 6px 0 var(--navy); }
.home-sheet .home-cat-header { margin: 0; padding: 0 4px 16px; grid-template-columns: 96px 1fr; gap: 14px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.home-sheet .home-cat-header .selected-photo-frame { width: 96px; }
.home-sheet .home-cat-copy strong { font-size: 24px; }
.home-sheet .home-section { margin-top: 0; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.home-sheet .home-section:last-of-type { border-bottom: 0; }
.home-sheet .home-feature-section { padding-top: 12px; }
.home-sheet .home-feature-grid { margin-top: 12px; }
.home-sheet .can-home-line { margin: 0; padding: 0 4px 14px; border-bottom: 1px solid var(--line); }
.home-sheet .dossier-gate { margin: 18px 0 8px; }
.home-cat-link { margin-top: 8px; padding: 5px 2px; display: inline-flex; align-items: center; gap: 4px; color: var(--blue-deep); background: transparent; border: 0; border-bottom: 2px solid var(--blue-deep); font-size: 12px; font-weight: 800; cursor: pointer; }
.home-cat-link span { transition: transform .2s ease; }
.home-cat-link:hover span { transform: translateX(3px); }
.home-section { margin-top: 34px; }
.home-feature-section { margin-top: 26px; }
.home-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.home-feature-card {
  position: relative;
  min-height: 150px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--navy);
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 18px 14px 20px 15px;
  box-shadow: 4px 5px 0 var(--navy);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-feature-card:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--navy); }
.home-feature-card { background: var(--white); }
.home-feature-ico { position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 12px 9px 13px 10px; box-shadow: 2px 3px 0 var(--navy); background: var(--yellow); }
.home-feature-ico.ico-personality { background: var(--blue); }
.home-feature-ico.ico-beauty::before { content: ""; width: 20px; height: 20px; background: var(--navy); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.home-feature-ico.ico-personality::before { content: ""; width: 22px; height: 16px; border: 2px solid var(--navy); border-radius: 9px 9px 9px 4px; background: var(--white); background-image: radial-gradient(circle at 28% 50%, var(--navy) 1.6px, transparent 2px), radial-gradient(circle at 50% 50%, var(--navy) 1.6px, transparent 2px), radial-gradient(circle at 72% 50%, var(--navy) 1.6px, transparent 2px); }
.home-feature-copy strong { display: block; margin-top: 2px; font: 900 20px "Noto Sans SC"; letter-spacing: -.04em; }
.home-feature-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.5; }
.home-feature-result {
  width: max-content;
  padding: 4px 12px;
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}
.home-feature-result.has-value { color: #4E7856; background: #e7f3e9; }
.home-feature-sub {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--navy);
  background: rgba(255, 250, 240, .92);
  border: 2px solid var(--navy);
  border-radius: 14px 11px 16px 12px;
  box-shadow: 3px 4px 0 var(--navy);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.home-feature-sub i { font-style: normal; transition: transform .2s ease; }
.home-feature-sub:hover i { transform: translateX(3px); }

.home-recent, .home-works { margin-top: 12px; }
.home-empty { margin: 0; padding: 16px; color: var(--muted); background: rgba(255, 250, 240, .6); border: 1px dashed var(--navy); border-radius: 14px; font-size: 12px; }
.home-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.home-work {
  position: relative;
  padding: 8px;
  background: rgba(255, 250, 240, .92);
  border: 2px solid var(--navy);
  border-radius: 14px 11px 15px 12px;
  box-shadow: 3px 4px 0 var(--navy);
  text-align: left;
  cursor: pointer;
}
.home-work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
.home-work span { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; }
.home-work .work-new { color: var(--red); }

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 2px;
  color: var(--blue-deep);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.home-text-link span { transition: transform .2s ease; }
.home-text-link:hover span { transform: translateX(3px); }

/* ---- 创作页 ---- */
.creation-builder { text-align: left; }
.creation-group { margin-top: 30px; }
.creation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.creation-card {
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--navy);
  background: rgba(255, 250, 240, .94);
  border: 2px solid var(--navy);
  border-radius: 16px 13px 18px 14px;
  box-shadow: 3px 4px 0 var(--navy);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.creation-card:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--navy); }
.creation-thumb { display: block; border-radius: 10px; overflow: hidden; }
.creation-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.creation-card strong { font-size: 15px; }
.creation-card.featured { grid-column: 1 / -1; }
.creation-card.featured .creation-thumb img { aspect-ratio: 16 / 9; }
.creation-card small { color: var(--muted); font-size: 11px; font-weight: 700; }
.creation-card.completed small { color: #4E7856; }

/* ---- 我的页 ---- */
.mine-builder { text-align: left; }
.mine-profile-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 250, 240, .92);
  border: 2px solid var(--navy);
  border-radius: 20px 16px 22px 17px;
  box-shadow: 5px 6px 0 var(--navy);
}
.mine-profile-card .selected-photo-frame { width: 84px; margin: 0; }
.mine-profile-copy small, .mine-profile-copy strong, .mine-profile-copy span { display: block; }
.mine-profile-copy small { color: var(--red); font: 900 10px "DM Mono"; letter-spacing: .12em; }
.mine-profile-copy strong { margin-top: 4px; font: 900 22px "Noto Sans SC"; letter-spacing: -.04em; }
.mine-profile-copy span { width: max-content; max-width: 100%; margin-top: 6px; padding: 3px 10px; color: var(--navy); background: var(--yellow); border-radius: 999px; font-size: 11px; font-weight: 800; }
.mine-profile-copy .mine-meta { width: max-content; max-width: 100%; margin-top: 7px; padding: 0; color: var(--navy); background: transparent; border-radius: 0; font-size: 12px; font-weight: 800; }
.mine-profile-copy .mine-meta-number { color: var(--muted); font: 700 11px "DM Mono"; letter-spacing: .04em; }

.mine-group { margin-top: 32px; }
.mine-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mine-actions .button { min-height: 44px; }
.mine-can-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.mine-can-balance { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.mine-can-balance b { color: var(--navy); font: 800 22px "DM Mono"; }
.mine-can-link { margin-top: 0; }
.mine-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mine-works-more { margin-top: 12px; }
.mine-account-line { margin-top: 12px; padding: 12px 14px; color: var(--muted); background: rgba(255, 250, 240, .6); border: 1px dashed var(--navy); border-radius: 12px; font-size: 12px; }

/* ---- 成长页：日期结果轻量展示 ---- */
.growth-dates-body .growth-dates-lines span { display: inline-block; margin: 0 12px 8px 0; font-weight: 800; }
.growth-dates-edit-toggle {
  margin-top: 4px;
  padding: 6px 2px;
  color: var(--blue-deep);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.growth-dates-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--navy); }

/* ---- 图片 fallback ---- */
img.media-fallback { object-fit: contain; padding: 8px; background: var(--paper); }

@media (max-width: 560px) {
  .creation-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-feature-card { min-height: 138px; padding: 14px 12px 12px; }
  .home-feature-copy strong { font-size: 17px; }
  .home-feature-ico { width: 38px; height: 38px; }
  .home-works { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mine-actions { grid-template-columns: 1fr; }
}

/* 二级页（日记编辑 / 月档等）隐藏底部导航 */
body.subpage .tabbar { display: none !important; }

/* 首页最近成长卡片 */
.home-recent-entry { padding: 14px; background: rgba(255, 250, 240, .92); border: 2px solid var(--navy); border-radius: 14px 11px 16px 12px; box-shadow: 3px 4px 0 var(--navy); }
.home-recent-head { display: flex; align-items: center; gap: 8px; }
.home-recent-head strong { font: 900 13px "Noto Sans SC"; }
.home-recent-head em { padding: 2px 8px; color: var(--red); border: 1px solid var(--red); border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; }
.home-recent-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.home-recent-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.home-recent-text { margin: 10px 0 0; color: var(--navy); font-size: 12px; line-height: 1.7; }

/* 创作/我的视图互斥显示（hidden 属性可能被 JS 清除） */
body:not([data-stage="creation"]) .creation-builder { display: none !important; }
body:not([data-stage="mine"]) .mine-builder { display: none !important; }

/* ============================================================
   阶段4.1：成长时间轴体验 + 首页猫颜/猫格强化
   ============================================================ */

/* ---- 成长页头部：时间感 ---- */
.growth-hero { margin-top: 8px; padding: 22px 20px 18px; background: var(--white); border: 3px solid var(--navy); border-radius: 20px 16px 22px 17px; box-shadow: 5px 6px 0 var(--navy); }
.growth-hero-name { font: 900 clamp(1.7rem, 4vw, 2.4rem) "Noto Sans SC"; letter-spacing: -.05em; }
.growth-hero-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.growth-hero-lines span { padding: 5px 12px; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; font-size: 12px; font-weight: 800; }
.growth-hero-month { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.growth-hero-hint {
  margin-top: 12px;
  padding: 6px 2px;
  color: var(--blue-deep);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* ---- 轻量月历 ---- */
.growth-month-strip { margin-top: 16px; padding: 14px 16px; background: rgba(255, 250, 240, .92); border: 2px solid var(--navy); border-radius: 16px 13px 18px 14px; box-shadow: 3px 4px 0 var(--navy); }
.gt-strip-title { font: 900 13px "Noto Sans SC"; letter-spacing: -.02em; }
.gt-strip-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.gt-strip-grid em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; text-align: center; }
.gt-strip-grid > button { position: relative; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--navy); background: rgba(255, 255, 255, .72); border: 2px solid transparent; border-radius: 10px; font: 700 11px "Noto Sans SC"; cursor: pointer; }
.gt-strip-grid > button:hover:not(:disabled):not(.today) { border-color: var(--navy); }
.gt-strip-grid > i { height: 34px; }
.gt-strip-grid > button.today { color: var(--navy); background: var(--yellow); border-color: var(--navy); }
.gt-strip-grid > button.future { color: rgba(72, 47, 36, .32); background: transparent; border-color: transparent; cursor: default; }
.chip-ico { position: relative; display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.chip-bday::before { content: ""; position: absolute; bottom: 0; left: 4px; width: 5px; height: 8px; border: 1.5px solid var(--navy); border-radius: 1px; background: var(--white); }
.chip-bday::after { content: ""; position: absolute; top: 0; left: 5px; width: 3px; height: 4px; border-radius: 50% 50% 60% 60%; background: var(--red); }
.chip-home::before { content: ""; position: absolute; bottom: 0; left: 1px; width: 9px; height: 7px; border: 1.5px solid var(--navy); border-top: 0; }
.chip-home::after { content: ""; position: absolute; top: 1px; left: 0; width: 11px; height: 6px; background: var(--navy); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chip-cal::before { content: ""; position: absolute; bottom: 0; left: 0; width: 12px; height: 11px; border: 1.5px solid var(--navy); border-radius: 2px; background: linear-gradient(to bottom, var(--navy) 0 3px, transparent 3px); }
.chip-cal::after { content: ""; position: absolute; top: 6px; left: 5px; width: 3px; height: 3px; border-radius: 50%; background: var(--red); }
.gt-strip-grid > button.recorded b { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* ---- 唯一主 CTA ---- */
.growth-main-cta {
  width: 100%;
  margin: 20px 0 0;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 18px 14px 20px 15px;
  box-shadow: 5px 6px 0 var(--navy);
  font-size: 17px;
  cursor: pointer;
}
.growth-main-cta span { font-size: 22px; line-height: 1; }
.growth-main-cta strong { font: 900 18px "Noto Sans SC"; letter-spacing: -.03em; }

/* ---- 时间轴 ---- */
.growth-timeline { margin-top: 26px; }
.gt-month { margin-bottom: 34px; }
.gt-month-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px dashed var(--navy); }
.gt-month-title strong { font: 900 18px "Noto Sans SC"; letter-spacing: -.04em; }
.gt-month-title span { color: var(--muted); font-size: 11px; font-weight: 800; }
.gt-list { margin: 0; padding: 0; list-style: none; }
.gt-item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 0 0 22px; position: relative; }
.gt-item-rail { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 2px; }
.gt-item-rail time { color: var(--muted); font: 800 11px "DM Mono"; text-align: right; line-height: 1.4; white-space: nowrap; }
.gt-dot { position: relative; width: 12px; height: 12px; margin-right: 6px; flex: 0 0 auto; background: var(--lavender); border: 2px solid var(--navy); border-radius: 50%; }
.gt-dot::after { content: ""; position: absolute; top: 8px; left: 3px; width: 2px; height: 100vh; background: rgba(64, 58, 82, .18); }
.gt-dot-star { background: var(--yellow); }
.gt-item-body { min-width: 0; }
.gt-item-media { display: grid; gap: 8px; }
.gt-item-media.single { grid-template-columns: 1fr; }
.gt-item-media.grid-2 { grid-template-columns: 1fr 1fr; }
.gt-item-media.grid-3 { grid-template-columns: repeat(3, 1fr); }
.gt-item-media.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gt-item-media.grid-5 { grid-template-columns: repeat(3, 1fr); }
.gt-item-media img { width: 100%; object-fit: cover; border: 2px solid var(--navy); border-radius: 12px; display: block; background: var(--lavender); }
.gt-item-media.single img { aspect-ratio: 4 / 3; }
.gt-item-media.grid-2 img, .gt-item-media.grid-3 img, .gt-item-media.grid-4 img, .gt-item-media.grid-5 img { aspect-ratio: 1; }
.gt-item-text { margin: 10px 0 0; color: var(--navy); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.gt-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gt-item-weight { padding: 3px 10px; color: #6b4a2b; background: #f1e6d2; border: 2px solid var(--navy); border-radius: 999px; font-size: 11px; font-weight: 800; }
.gt-item-meta i { padding: 3px 10px; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; font-size: 10px; font-weight: 800; font-style: normal; }
.gt-item-historical { padding: 3px 10px; color: var(--red); background: var(--lavender); border: 2px solid var(--navy); border-radius: 999px; font-size: 10px; font-weight: 800; font-style: normal; }
.gt-item-actions { display: flex; gap: 14px; margin-top: 10px; }
.gt-item-actions button { padding: 2px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.gt-milestone { padding-bottom: 14px; }
.gt-milestone .gt-item-body { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff8e8; border: 2px solid var(--navy); border-radius: 14px 11px 16px 12px; }
.gt-milestone .gt-item-body strong { font-size: 13px; }

/* ---- 月档卡片 ---- */
.gt-month-archive {
  width: 100%;
  margin: 4px 0 6px 96px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  background: #efe9fb;
  border: 2px solid var(--navy);
  border-radius: 14px 11px 16px 12px;
  box-shadow: 3px 4px 0 var(--navy);
  text-align: left;
  cursor: pointer;
}
.gt-month-archive strong { display: block; font-size: 13px; }
.gt-month-archive span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.gt-month-archive em { flex: 0 0 auto; color: var(--blue-deep); font-size: 12px; font-style: normal; font-weight: 900; }

/* ---- 轻入口 ---- */
.growth-light-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.growth-text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.growth-text-link span { transition: transform .2s ease; }
.growth-text-link:hover span { transform: translateX(3px); }
.growth-archives { margin-top: 10px; }

/* ---- 空状态 ---- */
.growth-empty h3 { margin: 0 0 8px; font: 900 20px "Noto Sans SC"; letter-spacing: -.04em; }
.growth-empty p { margin: 0 auto 20px; max-width: 260px; }

@media (max-width: 420px) {
  .gt-item { grid-template-columns: 68px 1fr; gap: 10px; }
  .gt-month-archive { margin-left: 78px; }
  .gt-item-media.grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 4.3 第一批：猫咪身份证二级页 / 建档首屏名字 / 首页身份摘要 ---- */
.idcard-builder { color: var(--navy); text-align: left; }
.idcard-builder .identity-heading { margin-bottom: 30px; }
.idcard-detail { width: min(680px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.idcard-image { width: 100%; display: grid; place-items: center; }
.idcard-image img { max-width: 100%; max-height: 60vh; display: block; object-fit: contain; background: var(--white); border: 4px solid var(--navy); border-radius: 18px 14px 20px 15px; box-shadow: 7px 8px 0 var(--navy); }
.idcard-facts { width: 100%; margin: 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; background: var(--white); border: 3px solid var(--navy); border-radius: 20px 16px 22px 17px; box-shadow: 5px 6px 0 var(--navy); }
.idcard-facts div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.idcard-facts dt { color: var(--muted); font: 800 10px "DM Mono"; letter-spacing: .1em; }
.idcard-facts dd { margin: 0; font: 800 15px "Noto Sans SC"; overflow-wrap: anywhere; }
.idcard-facts div:last-child { grid-column: 1 / -1; }
.idcard-builder .identity-actions { width: min(520px, 100%); margin-top: 6px; }

.onboard-name { width: min(480px, 100%); margin: 14px auto 0; padding: 10px 14px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--navy); border-radius: 14px 11px 16px 12px; box-shadow: 3px 4px 0 var(--navy); }
.onboard-name span { flex: none; font: 900 13px "Noto Sans SC"; }
.onboard-name input { flex: 1; min-width: 0; padding: 6px 2px; background: transparent; border: 0; border-bottom: 2px solid var(--navy); color: var(--navy); font: 800 15px "Noto Sans SC"; outline: none; }
.onboard-name input::placeholder { color: var(--muted); }

.home-cat-breed { font-size: 12px; font-weight: 700; }
.home-sheet .cat-number { margin-top: 3px; color: var(--blue-deep); font: 800 11px "DM Mono"; letter-spacing: .06em; }

@media (max-width: 560px) {
  .idcard-facts { grid-template-columns: 1fr; }
  .idcard-detail { gap: 14px; }
  .idcard-builder .identity-heading { margin-bottom: 22px; }
}

/* ============================================================
   阶段4.3.1：首页宽版收口
   - 去掉「整页超长白纸」套娃：grid / preview-panel / home-sheet 逐层透明化
   - 首页主内容贴近屏幕宽度，手机页边距 16px
   - 猫咪总览压缩为单层紧凑卡；猫颜/猫格放宽；分区标题恢复深紫
   - 猫猫总档改轻量入口
   ============================================================ */

/* 手机断点：首页页边距 16px（只作用于 identity 档案主页） */
body[data-stage="identity"] main { padding: 8px 16px 0; }

/* 品牌条与首页内容的间距 */
body[data-stage="identity"] .identity-builder { padding: 8px 0 104px; }

/* 拆掉外层两张大卡：identity-grid 与 identity-preview-panel 转透明容器 */
body[data-stage="identity"] .identity-grid {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
body[data-stage="identity"] .identity-preview-panel {
  min-height: 0;
  padding: 0;
  background: transparent;
  align-items: stretch;
  justify-content: flex-start;
}
body[data-stage="identity"] #testPaths { margin-top: 2px; }

/* home-sheet：从「一张长白纸」变成透明容器，由 section 自己组织视觉 */
.home-sheet {
  margin-top: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ---- 猫咪总览：单层紧凑卡 ---- */
.home-sheet .home-cat-header {
  margin: 0;
  padding: 14px 16px;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 20px 16px 22px 17px;
  box-shadow: 5px 6px 0 var(--navy);
}
.home-sheet .home-cat-header .selected-photo-frame { width: 84px; }
.home-sheet .home-cat-copy strong { font-size: 21px; }
.home-sheet .home-cat-copy small { font-size: 9px; }
.home-sheet .home-cat-copy span { margin-top: 2px; }
.home-sheet .home-cat-breed,
.home-sheet .cat-number { display: inline !important; margin-top: 0; }
.home-sheet .home-cat-breed::after { content: " · "; }
.home-sheet .home-cat-link { margin-top: 6px; font-size: 11px; }

/* 猫罐罐行：压缩成页内轻量条 */
.home-sheet .can-home-line { margin: 0; padding: 10px 2px 0; border-bottom: 0; }

/* ---- 分区：节奏代替厚卡，标题恢复深紫 ---- */
.home-section { margin-top: 26px; }
.home-feature-section { margin-top: 24px; }
.home-sheet .home-section { margin-top: 0; padding: 22px 2px 0; border-bottom: 0; }
.home-sheet .home-feature-section { padding-top: 20px; }
.home-sheet .play-group-title { margin-bottom: 12px; }
.home-sheet .play-group-title span { color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.home-sheet .play-group-title small { color: var(--muted); font-size: 10px; }

/* ---- 猫颜 / 猫格：加宽两列，适度压高 ---- */
.home-feature-grid { gap: 12px; margin-top: 12px; }
.home-feature-card { min-height: 120px; padding: 13px 12px 11px; gap: 8px; }
.home-feature-copy strong { font-size: 18px; }
.home-feature-ico { width: 40px; height: 40px; }
.home-feature-result { padding: 4px 11px; font-size: 11px; }

/* ---- 最近成长 / 最近作品：整宽 ---- */
.home-sheet .home-recent, .home-sheet .home-works { margin-top: 12px; }
.home-works { gap: 10px; }

/* ---- 猫猫总档：轻量底部入口 ---- */
.home-sheet .dossier-gate {
  margin: 24px 2px 4px;
  padding: 13px 15px;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  color: var(--navy);
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 18px 14px 20px 15px;
  box-shadow: 4px 5px 0 var(--navy);
  text-align: left;
}
.home-sheet .dossier-gate > div:first-child { grid-column: 1; }
.home-sheet .dossier-gate small { color: var(--red); font-size: 9px; letter-spacing: .1em; }
.home-sheet .dossier-gate h3 { margin: 3px 0 0; font: 900 17px "Noto Sans SC"; letter-spacing: -.03em; }
.home-sheet .dossier-gate p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.home-sheet .dossier-progress { grid-column: 1; grid-template-columns: 1fr auto; gap: 8px; }
.home-sheet .dossier-progress i { min-width: 90px; height: 9px; border-width: 2px; }
.home-sheet .dossier-progress strong { font-size: 11px; }
.home-sheet .dossier-gate > button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 12px 10px 13px 11px;
  font-size: 12px;
}
.home-sheet .dossier-gate > button:disabled { color: rgba(64,58,82,.5); background: #e6ddc9; }

@media (max-width: 560px) {
  .home-feature-card { min-height: 114px; padding: 12px 11px 10px; }
  .home-feature-copy strong { font-size: 16px; }
  .home-feature-copy small { font-size: 10px; line-height: 1.4; }
  .home-feature-ico { width: 36px; height: 36px; }
}

/* ============================================================
   阶段4.3.2：首页最终精修（结构冻结版）
   - 猫罐罐并入猫咪总览卡右上角，删除独立胶囊
   - 猫颜/猫格改为纵向独立大卡，成为首页视觉核心
   - 最近成长改为完整大分区：日期/照片/文字/tags/weight
   - 分区标题深紫 + 灰紫小字；编号独立一行
   ============================================================ */

/* ---- 猫咪总览：猫罐罐徽章并入右上角 ---- */
.home-sheet .home-cat-header {
  position: relative;
  grid-template-columns: 84px 1fr auto;
  align-items: start;
  padding: 12px 14px;
  gap: 12px;
}
.home-sheet .home-cat-header .selected-photo-frame { width: 84px; }
.home-can-badge {
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: 2px 3px 0 var(--navy);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}
.home-can-badge .ico-can { width: 12px; height: 13px; }
.home-can-badge b { font: 800 13px "DM Mono"; }

/* 编号独立一行，不再与品种同行 */
.home-sheet .home-cat-breed,
.home-sheet .cat-number { display: block !important; margin-top: 2px; }
.home-sheet .home-cat-breed::after { content: none; }
.home-sheet .cat-number { margin-top: 1px; color: var(--blue-deep); font: 800 10px "DM Mono"; letter-spacing: .06em; }
.home-sheet .home-cat-copy strong { margin-top: 2px; font-size: 19px; line-height: 1.2; }
.home-sheet .home-cat-copy small { font-size: 8px; }
.home-sheet .home-cat-copy #homeCatMeta { margin-top: 3px; font-size: 10px; }
.home-sheet .home-cat-link { margin-top: 5px; font-size: 10px; }

/* ---- 认识它：弱化为章节提示 ---- */
.home-sheet .home-trait-section-title { margin-bottom: 10px; }
.home-sheet .home-trait-section-title span { font-size: 15px; }
.home-sheet .home-trait-section-title small { font-size: 10px; }

/* ---- 猫颜 / 猫格：纵向完整大卡 ---- */
.home-trait-card {
  margin-top: 12px;
  padding: 15px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 20px 16px 22px 17px;
  box-shadow: 5px 6px 0 var(--navy);
}
.home-trait-head { display: flex; align-items: center; gap: 10px; }
.home-trait-ico { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 12px 9px 13px 10px; box-shadow: 2px 3px 0 var(--navy); background: var(--yellow); }
.home-trait-ico.ico-personality { background: var(--blue); }
.home-trait-ico.ico-beauty::before { content: ""; width: 18px; height: 18px; background: var(--navy); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.home-trait-ico.ico-personality::before { content: ""; width: 20px; height: 14px; border: 2px solid var(--navy); border-radius: 8px 8px 8px 4px; background: var(--white); background-image: radial-gradient(circle at 28% 50%, var(--navy) 1.5px, transparent 2px), radial-gradient(circle at 50% 50%, var(--navy) 1.5px, transparent 2px), radial-gradient(circle at 72% 50%, var(--navy) 1.5px, transparent 2px); }
.home-trait-head strong { display: block; font: 900 17px "Noto Sans SC"; color: var(--navy); letter-spacing: -.02em; }
.home-trait-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 700; }

.home-trait-body { min-height: 96px; display: flex; flex-direction: column; gap: 10px; }
.home-trait-score { display: flex; align-items: baseline; gap: 4px; }
.home-trait-score b { color: var(--red); font: 900 42px "DM Mono"; line-height: 1; letter-spacing: -.05em; }
.home-trait-score small { color: var(--muted); font-size: 12px; font-weight: 800; }
.home-trait-body h4 { margin: 0; font: 900 18px "Noto Sans SC"; color: var(--navy); letter-spacing: -.03em; }
.home-trait-metrics { display: grid; gap: 7px; margin-top: 2px; }
.home-trait-metric { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-trait-metric span { color: var(--muted); font-size: 11px; font-weight: 800; }
.home-trait-metric b { color: var(--navy); font-size: 12px; letter-spacing: .06em; }
.home-trait-code { display: flex; align-items: baseline; gap: 8px; }
.home-trait-code b { color: var(--navy); font: 900 34px "DM Mono"; line-height: 1; letter-spacing: -.04em; }
.home-trait-code span { color: var(--red); font-size: 12px; font-weight: 900; }
.home-trait-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.home-trait-tags span { padding: 4px 10px; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; font-size: 10px; font-weight: 800; }
.home-trait-quote { margin: 2px 0 0; padding: 8px 10px; color: var(--navy); background: rgba(255, 244, 220, .65); border-left: 3px solid var(--yellow); border-radius: 0 8px 8px 0; font-size: 11px; line-height: 1.6; }
.home-trait-empty { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.home-trait-cta {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--paper);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 14px 11px 15px 12px;
  box-shadow: 3px 4px 0 rgba(64, 58, 82, .35);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.home-trait-cta:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 rgba(64, 58, 82, .35); }

/* ---- 最近成长：完整大分区 ---- */
.home-recent-entry.home-recent-full { padding: 14px 14px 13px; }
.home-recent-head { flex-wrap: wrap; }
.home-recent-weight {
  margin-left: auto;
  padding: 3px 9px;
  color: var(--navy);
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font: 800 11px "DM Mono";
  font-style: normal;
}
.home-recent-photos.count-1 { grid-template-columns: 1fr; }
.home-recent-photos.count-1 img { aspect-ratio: 16 / 10; }
.home-recent-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.home-recent-tags span { padding: 3px 9px; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; font-size: 10px; font-weight: 800; }
.home-recent-text { font-size: 13px; }

/* ============================================================
   阶段4.4：首页 + 我的最终 UI 收尾（冻结版）
   - 头像统一裁切与 fallback
   - 底栏安全区加固
   - 首页猫颜/猫格卡减高
   - 品牌条减重
   - 猫罐罐语义
   - 我的页标题减重 + 操作分层
   ============================================================ */

/* ---- 头像：方形框内裁切，fallback 保持 contain ---- */
.selected-photo-frame img:not(.media-fallback) {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ---- 底栏安全区：四个一级页底部统一让位 ---- */
body[data-stage="identity"] .identity-builder,
body[data-stage="growth"] .growth-builder,
body[data-stage="creation"] .creation-builder,
body[data-stage="mine"] .mine-builder {
  padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 20px);
}

/* ---- 品牌条减重（手机断点） ---- */
@media (max-width: 560px) {
  nav:not(.tabbar) { height: 52px; padding: 0 14px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand::before { width: 20px; height: 16px; border-width: 2px; }
  .brand::after { font-size: 9px; }
}

/* ---- 猫罐罐语义：余额后加“罐罐” ---- */
.home-can-badge span { font-size: 10px; font-weight: 900; color: var(--navy); line-height: 1; }

/* ---- 首页猫颜 / 猫格卡减高 ---- */
.home-trait-card { margin-top: 10px; padding: 12px 14px 12px; gap: 10px; }
.home-trait-head { gap: 8px; }
.home-trait-ico { width: 32px; height: 32px; }
.home-trait-head strong { font-size: 15px; }
.home-trait-head small { margin-top: 1px; font-size: 8px; }
.home-trait-body { min-height: 86px; gap: 8px; }
.home-trait-score b { font-size: 36px; }
.home-trait-score small { font-size: 11px; }
.home-trait-body h4 { font-size: 16px; }
.home-trait-metrics { gap: 5px; margin-top: 0; }
.home-trait-metric span { font-size: 10px; }
.home-trait-metric b { font-size: 11px; }
.home-trait-code b { font-size: 30px; }
.home-trait-code span { font-size: 11px; }
.home-trait-tags { gap: 5px; }
.home-trait-tags span { padding: 3px 9px; font-size: 9px; }
.home-trait-quote { margin-top: 0; padding: 6px 9px; font-size: 10px; }
.home-trait-cta { min-height: 40px; padding: 8px 12px; font-size: 12px; }

/* ---- 我的页：标题减重 ---- */
.mine-heading { display: block; margin-bottom: 22px; padding-top: 0; }
.mine-heading h2 {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 900 clamp(2rem, 6vw, 2.6rem) "Noto Sans SC";
  letter-spacing: -.05em;
}
.mine-heading h2::before {
  content: "";
  flex: none;
  width: 24px;
  height: 19px;
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 48% 48% 45% 45%;
  transform: rotate(-4deg);
}
.mine-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---- 我的页：操作分层 ---- */
.mine-actions { grid-template-columns: 1fr; gap: 0; }
.mine-link-list { display: grid; gap: 0; margin-top: 12px; }
.mine-link-row {
  width: 100%;
  margin-top: 0;
  padding: 13px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  border-bottom: 2px dashed rgba(64, 58, 82, .28);
  font-size: 14px;
}
.mine-link-row:last-child { border-bottom: 0; }
.mine-link-row:hover { color: var(--blue-deep); border-bottom-color: var(--blue-deep); }
.mine-link-row:hover span { transform: translateX(3px); }

/* ---- 身份证详情：重新制作入口（低频操作降级） ---- */
.idcard-remake { margin-top: 16px; }
