:root {
  color-scheme: light;
  --ink: #111a3a;
  --ink-soft: #5d6f95;
  --pink: #d72c68;
  --pink-deep: #b91f55;
  --pink-soft: #ffe8ef;
  --pink-wash: #fff6f7;
  --blue: #2767d7;
  --blue-soft: #eaf1ff;
  --green: #187a46;
  --green-soft: #e9f8ef;
  --amber: #f59d36;
  --line: #e8eaf2;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --shadow-sm: 0 8px 24px rgba(43, 31, 57, 0.06);
  --shadow-md: 0 18px 50px rgba(145, 56, 88, 0.13);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --tap: 48px;
  --ease: 180ms ease;
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f7ecee; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.9), transparent 28%),
    radial-gradient(circle at 88% 26%, rgba(255,219,231,.8), transparent 32%),
    linear-gradient(145deg, #f7ecee, #f8e4e9 55%, #f3eff5);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a, label[for] { -webkit-tap-highlight-color: transparent; }
button, a, label[for] { touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 120; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--ink); transform: translateY(-160%); transition: transform var(--ease); }
.skip-link:focus { transform: translateY(0); }
.icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.fill { fill: currentColor; stroke: currentColor; }

.app-shell {
  width: min(100%, 460px);
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 6%, rgba(255, 220, 230, .5), transparent 22%),
    linear-gradient(180deg, #fffdfc 0%, #fff9f8 70%, #fffdfd 100%);
}
.page { min-height: 100svh; padding: max(18px, env(safe-area-inset-top)) 18px calc(100px + env(safe-area-inset-bottom)); animation: page-in 260ms ease both; }
.page.no-nav { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.page.admin-page { background: linear-gradient(180deg, #fffefd, #fff8f6 70%); }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

.topbar { min-height: 48px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-bottom: 12px; }
.topbar h1 { margin: 0; text-align: center; font-size: 1.28rem; letter-spacing: .01em; }
.icon-btn { width: var(--tap); height: var(--tap); border: 0; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: transparent; transition: background var(--ease), color var(--ease), box-shadow var(--ease); }
.icon-btn:hover, .icon-btn:active { background: var(--pink-soft); color: var(--pink-deep); }
.text-btn { min-height: var(--tap); padding: 0 8px; border: 0; background: transparent; color: var(--ink-soft); font-weight: 650; }
.text-btn.accent { color: var(--pink); }
.admin-menu-overlay { position: fixed; z-index: 79; inset: 0; opacity: 0; pointer-events: none; background: rgba(17, 26, 58, .32); backdrop-filter: blur(2px); transition: opacity var(--ease); }
.admin-menu-overlay.open { opacity: 1; pointer-events: auto; }
.admin-menu { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(84vw, 340px); padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: #fffdfc; box-shadow: 18px 0 48px rgba(35, 24, 50, .18); transform: translateX(-104%); transition: transform 240ms ease; }
.admin-menu.open { transform: translateX(0); }
.admin-menu-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-menu-head > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-menu-head strong, .admin-menu-head small { display: block; }
.admin-menu-head small { margin-top: 2px; color: var(--ink-soft); font-size: .74rem; }
.admin-menu-nav { display: grid; gap: 8px; padding-top: 18px; }
.admin-menu-nav button, .admin-menu-logout { min-height: 52px; border: 0; border-radius: 15px; padding: 0 14px; display: flex; align-items: center; gap: 12px; color: var(--ink); background: transparent; text-align: left; font-weight: 760; }
.admin-menu-nav button:hover, .admin-menu-nav button:active { color: var(--pink-deep); background: var(--pink-soft); }
.admin-menu-logout { margin-top: auto; color: #a92850; background: #fff0f4; }

.hero { position: relative; min-height: 430px; padding-top: 8px; }
.hero-copy { position: relative; z-index: 2; width: 84%; }
.eyebrow { margin: 0 0 8px; color: var(--pink); font-weight: 800; font-size: .86rem; letter-spacing: .08em; }
.hero h1 { margin: 0; font-size: clamp(2.25rem, 10vw, 3.15rem); line-height: 1.09; letter-spacing: -.055em; font-weight: 880; }
.hero h1 .underline { position: relative; display: inline-block; }
.hero h1 .underline::after { content: ""; position: absolute; left: 1px; right: -7px; bottom: -4px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 8c28-8 70-7 116-4' fill='none' stroke='%23f58bad' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero-sub { margin: 22px 0 0; max-width: 195px; color: #2b3150; font-size: .96rem; line-height: 1.72; font-weight: 570; }
.hero-art { position: absolute; z-index: 1; width: 100%; height: 338px; right: 0; bottom: -4px; object-fit: contain; object-position: right bottom; image-rendering: pixelated; filter: drop-shadow(0 16px 16px rgba(135, 73, 91, .09)); }
.doodle { position: absolute; color: var(--pink); z-index: 2; font-weight: 900; }
.doodle.one { top: 36px; right: 16px; transform: rotate(10deg); font-size: 1.5rem; }
.doodle.two { display: none; }
.admin-peek { position: absolute; z-index: 4; top: 0; right: 0; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }

.primary-btn, .secondary-btn, .choice-btn {
  min-height: 54px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  transition: filter var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease), border-color var(--ease);
}
.primary-btn { width: 100%; color: #fff; background: linear-gradient(135deg, #d72c68, #bf1f59); box-shadow: 0 12px 28px rgba(185, 31, 85, .25); }
.primary-btn:hover { filter: saturate(1.08) brightness(1.02); box-shadow: 0 15px 32px rgba(238, 55, 113, .3); }
.primary-btn:active, .secondary-btn:active, .choice-btn:active { transform: translateY(1px); }
.primary-btn[disabled] { opacity: .48; cursor: not-allowed; box-shadow: none; }
.secondary-btn { color: var(--ink-soft); background: #fff; border: 1.5px solid #9cabc6; padding: 0 22px; }
.secondary-btn:hover { background: #f7f9fd; border-color: #7183a7; }
.hero-cta { position: relative; z-index: 5; margin-top: -8px; font-size: 1.12rem; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2, .section-title { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; }
.link-btn { border: 0; background: none; color: var(--ink-soft); min-height: 44px; display: inline-flex; align-items: center; gap: 2px; padding: 0; font-weight: 630; }

.decision-list { display: grid; gap: 10px; }
.decision-card { width: 100%; border: 1px solid rgba(231,225,230,.7); background: var(--surface); border-radius: 18px; padding: 10px; display: grid; grid-template-columns: 68px 1fr auto; gap: 11px; align-items: center; text-align: left; box-shadow: 0 5px 16px rgba(54, 35, 59, .035); transition: box-shadow var(--ease), border-color var(--ease), background var(--ease); }
.decision-card:hover { border-color: #f3bdd0; box-shadow: var(--shadow-sm); background: #fff; }
.decision-card .thumb { width: 68px; height: 68px; }
.decision-main { min-width: 0; }
.decision-main strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .96rem; }
.meta { color: var(--ink-soft); font-size: .76rem; margin-top: 2px; }
.score-line { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: .84rem; font-weight: 800; }
.score-line.buy { color: var(--pink-deep); }
.score-line.no { color: var(--blue); }
.score-line.maybe { color: #9a641d; }
.status-pill { align-self: start; white-space: nowrap; padding: 6px 10px; border-radius: 999px; background: #f1f3f8; color: #667594; font-size: .73rem; font-weight: 780; }
.status-pill.buy { color: var(--pink-deep); background: var(--pink-soft); }
.status-pill.pending { color: #9c661c; background: #fff3da; }
.status-pill.done { color: var(--green); background: var(--green-soft); }

.thumb { border-radius: 14px; overflow: hidden; background-color: #fbf2e9; position: relative; flex: 0 0 auto; }
.thumb.sprite { background-image: url('./assets/product-sheet.webp'); background-size: 200% 200%; background-repeat: no-repeat; }
.thumb.p0 { background-position: 0 0; }
.thumb.p1 { background-position: 100% 0; }
.thumb.p2 { background-position: 0 100%; }
.thumb.p3 { background-position: 100% 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; width: min(100%, 460px); transform: translateX(-50%); padding: 8px 28px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.92); border-top: 1px solid rgba(231,225,230,.8); backdrop-filter: blur(18px); }
.nav-item { min-height: 58px; border: 0; border-radius: 16px; background: transparent; color: #73809c; display: grid; place-items: center; gap: 3px; font-size: .76rem; font-weight: 720; }
.nav-item .icon { width: 1.55rem; height: 1.55rem; }
.nav-item.active { color: var(--pink-deep); background: #fff5f8; }

.form-stack { display: grid; gap: 22px; }
.upload-zone { min-height: 178px; border: 1.5px dashed #c7cede; border-radius: 20px; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-soft); background: rgba(255,255,255,.62); transition: border-color var(--ease), background var(--ease); }
.upload-zone:hover { border-color: var(--pink); background: #fff; }
.upload-zone .icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 10px; }
.upload-zone strong { display: block; color: var(--ink); font-size: 1.02rem; }
.upload-zone small { display: block; margin-top: 6px; line-height: 1.5; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.preview-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 10px; }
.preview-item { aspect-ratio: 1; position: relative; border-radius: 12px; overflow: hidden; background: #eee; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item button { position: absolute; top: 3px; right: 3px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(18,25,52,.8); color: #fff; display: grid; place-items: center; }
.preview-item button .icon { width: 14px; height: 14px; }
.field { display: grid; gap: 8px; }
.field-label { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 820; }
.field-label .label-icon { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; background: linear-gradient(145deg, #ff8aa8, #ef4c75); }
.field-label .label-icon.amber { background: linear-gradient(145deg, #ffbd61, #f08e22); }
.field-label .label-icon.blue { background: linear-gradient(145deg, #83b1ff, #3478f6); }
.field-label .icon { width: 17px; height: 17px; }
.field-help { color: var(--ink-soft); font-size: .78rem; font-weight: 520; margin-left: 39px; margin-top: -6px; }
.input, .textarea { width: 100%; border: 1.3px solid #d8deea; border-radius: 14px; background: rgba(255,255,255,.84); color: var(--ink); padding: 14px 15px; font-size: 1rem; outline: none; transition: border-color var(--ease), box-shadow var(--ease), background var(--ease); }
.textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
.input:focus, .textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(246,79,130,.12); background: #fff; }
.counter { margin-top: -30px; padding: 0 12px 10px; text-align: right; pointer-events: none; color: var(--ink-soft); font-size: .75rem; }
.form-error { display: none; padding: 12px 14px; color: #a92850; background: #fff0f4; border-radius: 12px; font-size: .85rem; }
.form-error.show { display: block; }

.product-summary { padding: 13px; background: rgba(255,255,255,.95); border-radius: 20px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; box-shadow: var(--shadow-sm); }
.product-summary .thumb { width: 112px; height: 112px; }
.product-summary h2 { margin: 3px 0 8px; font-size: 1.08rem; }
.product-summary p { margin: 5px 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }
.price { color: var(--pink-deep); font-weight: 820; }
.info-grid { display: grid; gap: 10px; margin-top: 14px; }
.info-box { background: #fff; border: 1px solid #ececf2; border-radius: 16px; padding: 14px; }
.info-box strong { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: .88rem; }
.info-box p { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.65; }

.waiting-hero { text-align: center; padding: 28px 8px 16px; }
.waiting-orbit { width: 118px; height: 118px; margin: 0 auto 20px; position: relative; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #fff, #fff0f4); box-shadow: var(--shadow-md); color: var(--pink); }
.waiting-orbit::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(246,79,130,.4); animation: orbit 7s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.waiting-orbit .icon { width: 3rem; height: 3rem; }
.waiting-hero h2 { margin: 0 0 9px; font-size: 1.35rem; }
.waiting-hero p { margin: 0 auto; max-width: 310px; color: var(--ink-soft); line-height: 1.65; }
.progress-list { display: grid; gap: 9px; margin-top: 22px; }
.progress-row { min-height: 64px; border: 1px solid #ececf2; background: #fff; border-radius: 16px; padding: 10px 12px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: linear-gradient(145deg, #ffe4eb, #fff); border: 1px solid #f1dce4; font-weight: 850; font-size: .82rem; }
.avatar.ai { color: #316b83; background: linear-gradient(145deg, #daf7f5, #e9f2ff); border-color: #d5e9ef; }
.avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; image-rendering: pixelated; }
.avatar.menu-avatar { width: 46px; height: 46px; }
.progress-row strong { font-size: .88rem; }
.progress-row small { display: block; color: var(--ink-soft); margin-top: 3px; }
.progress-state { color: #947039; font-size: .76rem; font-weight: 800; }
.progress-state.done { color: var(--green); }
.progress-state.running { color: var(--pink-deep); }
.pulse { display: inline-flex; gap: 3px; }
.pulse i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite ease-in-out; }
.pulse i:nth-child(2) { animation-delay: .15s; }.pulse i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.result-banner { position: relative; overflow: hidden; min-height: 150px; margin-top: 14px; padding: 20px 18px; border-radius: 22px; background: radial-gradient(circle at 13% 78%, rgba(255,255,255,.75), transparent 22%), linear-gradient(135deg, #fff2f5, #ffe1e9); }
.result-banner::before { content: ""; position: absolute; left: 8px; top: 62px; width: 36px; height: 36px; opacity: .65; background: repeating-conic-gradient(from 8deg, var(--pink) 0 5deg, transparent 5deg 25deg); mask: radial-gradient(circle, transparent 0 46%, #000 48% 55%, transparent 57%); }
.result-banner.no { background: radial-gradient(circle at 13% 78%, rgba(255,255,255,.8), transparent 22%), linear-gradient(135deg, #f3f7ff, #e5edff); }
.result-banner.no::before { background: repeating-conic-gradient(from 8deg, var(--blue) 0 5deg, transparent 5deg 25deg); }
.result-banner.maybe { background: radial-gradient(circle at 13% 78%, rgba(255,255,255,.82), transparent 22%), linear-gradient(135deg, #fff8eb, #ffebca); }
.result-banner.maybe::before { background: repeating-conic-gradient(from 8deg, var(--amber) 0 5deg, transparent 5deg 25deg); }
.result-copy { position: relative; z-index: 2; display: flex; width: 58%; min-height: 110px; flex-direction: column; align-items: center; justify-content: center; }
.score-big { display: flex; align-items: center; gap: 11px; font-size: 3.8rem; font-weight: 900; letter-spacing: .02em; line-height: .95; color: var(--pink); font-variant-numeric: tabular-nums; }
.score-big b { color: var(--ink); font-size: 2.35rem; }
.result-banner.no .score-big { color: var(--blue); }
.result-banner.maybe .score-big { color: #b8741d; }
.result-banner.score-mode .score-big b { align-self: flex-end; margin-bottom: 5px; color: var(--ink-soft); font-size: 1.05rem; }
.result-label { margin-top: 10px; color: var(--ink); font-size: 1.75rem; font-weight: 900; line-height: 1; transform: rotate(-2deg); }
.result-label span { margin-left: 4px; color: var(--pink); font-size: 2rem; }
.result-banner.no .result-label span { color: var(--blue); }
.result-banner.maybe .result-label span { color: #a86a17; }
.result-character { position: absolute; z-index: 1; right: 18px; bottom: -10px; width: 158px; height: 158px; object-fit: contain; object-position: center bottom; image-rendering: pixelated; filter: drop-shadow(0 10px 12px rgba(58, 42, 66, .1)); }
.vote-list { display: grid; gap: 9px; margin-top: 14px; }
.vote-row { border: 1px solid #ececf2; border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: start; background: #fff; }
.vote-row strong { font-size: .87rem; }
.vote-row p { margin: 4px 0 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
.agent-confidence { display: block; margin-top: 2px; color: #73809c; font-size: .69rem; font-weight: 650; }
.vote-badge { min-width: 48px; padding: 6px 9px; text-align: center; border-radius: 999px; color: var(--pink-deep); background: var(--pink-soft); font-size: .75rem; font-weight: 850; }
.vote-badge.no { color: var(--blue); background: var(--blue-soft); }
.vote-badge.maybe { color: #9a641d; background: #fff1d6; }
.decision-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 18px; }
.decision-actions .secondary-btn, .decision-actions .primary-btn { min-width: 0; padding: 0 12px; }
.aftercare { margin-top: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #ececf2; }
.aftercare h3 { margin: 0 0 12px; font-size: .98rem; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.segment { min-height: 46px; border-radius: 12px; border: 1px solid #dde1eb; background: #fff; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.segment.selected { border-color: var(--pink); color: var(--pink-deep); background: var(--pink-soft); }

.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border: 1px solid #e0e3ec; border-radius: 999px; background: #fff; color: var(--ink-soft); font-weight: 720; }
.chip.active { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); }

.login-page { display: grid; min-height: 100svh; align-content: center; padding: max(28px, env(safe-area-inset-top)) 26px max(28px, env(safe-area-inset-bottom)); }
.login-mark { width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 30px; color: #8d6b70; background: linear-gradient(145deg, #ffe4e6, #fff3ef); box-shadow: var(--shadow-md); }
.login-mark .icon { width: 48px; height: 48px; }
.login-title { text-align: center; }
.login-title h1 { margin: 0; font-size: 2rem; }
.login-title p { margin: 9px 0 30px; color: var(--ink-soft); }
.login-card { display: grid; gap: 14px; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 54px; min-height: 56px; }
.password-wrap .icon-btn { position: absolute; right: 4px; top: 4px; }
.remember-row { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .82rem; }
.demo-hint { margin-top: 18px; text-align: center; color: #8c7690; font-size: .76rem; }

.admin-welcome { margin-bottom: 16px; }
.admin-welcome h2 { margin: 0 0 4px; font-size: 1.12rem; }
.admin-welcome p { margin: 0; color: var(--ink-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-card { background: #fff; border: 1px solid #efebed; border-radius: 16px; padding: 13px 8px; text-align: center; }
.stat-icon { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; margin: 0 auto 6px; color: var(--pink); background: var(--pink-soft); }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.green { color: var(--green); background: var(--green-soft); }
.stat-icon .icon { width: 19px; height: 19px; }
.stat-card b { display: block; font-size: 1.35rem; }
.stat-card span { color: var(--ink-soft); font-size: .72rem; }
.admin-setting-card { width: 100%; min-height: 76px; margin-top: 12px; padding: 12px 14px; border: 1px solid #eadfe5; border-radius: 18px; display: grid; grid-template-columns: 44px 1fr 24px; gap: 12px; align-items: center; text-align: left; color: var(--ink); background: linear-gradient(135deg, #fff, #fff5f8); box-shadow: var(--shadow-sm); }
.admin-setting-card > span:nth-child(2) { min-width: 0; }
.admin-setting-card strong, .admin-setting-card small { display: block; }
.admin-setting-card strong { font-size: .93rem; }
.admin-setting-card small { margin-top: 4px; color: var(--ink-soft); font-size: .76rem; }
.admin-setting-card > .icon { width: 18px; color: var(--ink-soft); }
.admin-setting-icon { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #316b83; background: linear-gradient(145deg, #daf7f5, #e9f2ff); border: 1px solid #d5e9ef; }
.admin-setting-icon .icon { width: 23px; height: 23px; }
.config-intro { margin-bottom: 18px; padding: 15px; border-radius: 20px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: linear-gradient(135deg, #f1fbfb, #fff5f8); border: 1px solid #e0ecee; }
.config-intro strong { font-size: .98rem; }
.config-intro p { margin: 4px 0 0; color: var(--ink-soft); font-size: .79rem; line-height: 1.55; }
.config-card, .ai-config-card { padding: 16px; border-radius: 20px; background: #fff; border: 1px solid #ece7ea; box-shadow: 0 5px 18px rgba(54, 35, 59, .035); }
.config-card { display: grid; gap: 17px; }
.config-card-head, .config-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.config-card-head h2, .config-section-title h2 { margin: 2px 0 0; font-size: 1.06rem; }
.config-kicker, .ai-number { color: var(--pink-deep); font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.mode-pill { padding: 6px 10px; border-radius: 999px; color: #316b83; background: #e6f5f5; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.api-contract { border-radius: 14px; color: var(--ink-soft); background: #f7f8fb; font-size: .78rem; }
.api-contract summary { min-height: 46px; padding: 0 13px; display: flex; align-items: center; cursor: pointer; color: var(--ink); font-weight: 760; }
.api-contract pre { margin: 0; padding: 0 13px 14px; overflow-x: auto; white-space: pre-wrap; color: #4f6082; font: 500 .72rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.config-section-title { margin-top: 3px; }
.ai-config-list { display: grid; gap: 12px; }
.ai-config-card { display: grid; gap: 17px; }
.ai-config-head { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; }
.ai-config-head h3 { margin: 2px 0; font-size: .98rem; }
.ai-config-head p { margin: 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.45; }
.prompt-textarea { min-height: 210px; font-size: .88rem; }
.prompt-count { margin-top: -4px; color: var(--ink-soft); text-align: right; font-size: .72rem; }
.config-note { display: flex; gap: 9px; padding: 13px; border-radius: 14px; color: #635a72; background: #f7f4fa; font-size: .77rem; line-height: 1.55; }
.config-note .icon { width: 18px; height: 18px; margin-top: 1px; }
.disabled-field { opacity: .52; }
.disabled-field .input { cursor: not-allowed; background: #f3f4f7; }
.pending-panel { margin-top: 16px; padding: 15px; border-radius: 20px; background: linear-gradient(135deg, #fff5e3, #fff); border: 1px solid #f4e4bf; }
.pending-panel .section-head { margin-bottom: 9px; }
.pending-panel .section-head h2 { font-size: 1rem; }
.pending-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; color: #fff; background: #d58b25; font-weight: 850; }
.empty { padding: 28px 18px; text-align: center; color: var(--ink-soft); background: #fff; border-radius: 18px; border: 1px dashed #d9deea; }
.empty .icon { width: 34px; height: 34px; margin-bottom: 8px; }
.chart-card { margin-top: 16px; background: #fff; border: 1px solid #efebed; border-radius: 18px; padding: 16px; }
.chart-card h3 { margin: 0 0 14px; font-size: 1rem; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { width: 118px; height: 118px; border-radius: 50%; position: relative; display: grid; place-items: center; background: conic-gradient(var(--pink) 0 var(--buy-angle), #78aafc var(--buy-angle) 360deg); }
.donut::after { content: ""; position: absolute; width: 70px; height: 70px; background: #fff; border-radius: 50%; }
.donut-center { position: relative; z-index: 1; text-align: center; }
.donut-center b { display: block; font-size: 1.4rem; }
.donut-center span { color: var(--ink-soft); font-size: .7rem; }
.legend { display: grid; gap: 10px; color: var(--ink-soft); font-size: .82rem; }
.legend div { display: flex; gap: 7px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }.dot.blue { background: #78aafc; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-btn { min-height: 88px; flex-direction: column; color: var(--ink-soft); background: #fff; border: 1.5px solid #dfe3ec; }
.choice-btn .icon { width: 26px; height: 26px; }
.choice-btn.selected.buy { color: var(--pink-deep); border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 0 3px rgba(246,79,130,.1); }
.choice-btn.selected.no { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(52,120,246,.1); }
.lock-note { display: flex; gap: 9px; margin: 14px 0; padding: 12px; border-radius: 14px; color: #6b5971; background: #faf2f7; font-size: .78rem; line-height: 1.55; }
.lock-note .icon { width: 18px; height: 18px; margin-top: 1px; }

.detail-section { margin-top: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #efebed; }
.detail-section h2 { margin: 0 0 12px; font-size: 1rem; }
.note-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.save-note { width: 52px; min-height: 52px; border: 0; border-radius: 14px; background: var(--pink-soft); color: var(--pink-deep); display: grid; place-items: center; }

.toast { position: fixed; z-index: 99; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 18px); max-width: calc(100% - 40px); padding: 11px 16px; color: #fff; background: rgba(18,26,58,.92); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity var(--ease), transform var(--ease); font-size: .83rem; box-shadow: var(--shadow-md); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid rgba(52,120,246,.55); outline-offset: 3px; }
@media (min-width: 700px) {
  body { padding: 24px; }
  .app-shell { min-height: calc(100svh - 48px); border-radius: 34px; box-shadow: 0 35px 90px rgba(71,45,64,.2); }
  .page { min-height: calc(100svh - 48px); }
  .bottom-nav { bottom: 24px; border-radius: 0 0 34px 34px; box-shadow: 0 -10px 28px rgba(60,37,55,.05); }
  .toast { bottom: 112px; }
}
@media (max-width: 374px) {
  .page { padding-left: 14px; padding-right: 14px; }
  .hero { min-height: 405px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-art { width: 100%; height: 330px; right: 0; }
  .product-summary { grid-template-columns: 92px 1fr; }
  .product-summary .thumb { width: 92px; height: 92px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .app-shell { width: min(100%, 760px); }
  .hero { min-height: 330px; }
  .hero-copy { width: 48%; }
  .hero-art { width: 58%; height: 310px; }
  .bottom-nav { width: min(100%, 760px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
