/* 지혜로운 사주 — 1안 (크림·먹·주홍, 그림 없음). styles.css 다음에 로드해 덮어씁니다. */
:root {
  --paper: #f6f2ea;
  --white: #fffdf8;
  --ink: #1f1d1a;
  --muted: #7a7368;
  --line: #e6dfd2;
  --jade: #b5382c;
  --jade-soft: #f6e4dc;
  --rose: #b5382c;
  --coral: #c2533f;
  --gold: #b08a4a;
  --lavender: #6f665a;
  --shadow: 0 14px 34px rgba(60, 50, 30, 0.12);
  --wis-seal: #b5382c;
  --wis-accent: #c2533f;
  --wis-card: #fffdf8;
  --wis-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --wis-title: "Gowun Batang", "Noto Serif KR", serif;
}

body {
  background: #e9e5dc !important;
  color: var(--ink);
  font-family: var(--wis-serif);
}
body *:not(code) { font-family: inherit; }
.app-shell { background: var(--paper) !important; }

/* 상단 바와 로고 */
.topbar { background: var(--paper) !important; border-bottom: 1px solid var(--line); }
.brand-mark {
  background: var(--wis-seal) !important; color: #fff !important; border-radius: 7px !important;
  font-family: var(--wis-serif) !important; font-weight: 700;
}
.brand-text { font-family: var(--wis-title) !important; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.brand-text em { font-style: normal; color: var(--wis-accent); }
.auth-chip { background: transparent !important; color: var(--muted) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }

/* 첫 화면 */
.wis-hero { padding: 34px 22px 26px; }
.wis-eyebrow { font-size: 13px; color: var(--gold); letter-spacing: 0.08em; margin: 0 0 14px; }
.wis-title { font-family: var(--wis-title); font-weight: 700; font-size: 31px; line-height: 1.38; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.wis-title em { font-style: normal; color: var(--wis-accent); }
.wis-sub { margin: 12px 0 26px; font-size: 14.5px; color: var(--muted); }

.wis-quick {
  background: var(--wis-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 16px 14px; box-shadow: var(--shadow); display: grid; gap: 10px;
}
.wis-quick-head { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--ink); }
.wis-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.wis-quick input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 0 13px; font-size: 14.5px; color: var(--ink); outline: none;
}
.wis-quick input:focus { border-color: var(--wis-accent); }
.wis-seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 46px; }
.wis-seg button { border: 0; background: #fff; color: var(--muted); padding: 0 14px; font-size: 14px; cursor: pointer; }
.wis-seg button.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.wis-cta {
  height: 52px; border: 0; border-radius: 13px; background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 2px;
}
.wis-cta:disabled { opacity: 0.6; }
.wis-quick-note { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.wis-quick-error { margin: 0; min-height: 0; font-size: 13px; color: var(--wis-accent); }
.wis-quick-error:empty { display: none; }

/* 무료 명식 카드 */
.wis-manse { padding: 0 18px 8px; scroll-margin-top: 70px; }
.wis-manse-card { background: var(--wis-card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; }
.wis-manse-head { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.wis-manse-head b { font-family: var(--wis-title); font-size: 18px; color: var(--ink); }
.wis-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wis-p { display: grid; gap: 6px; text-align: center; }
.wis-p small { font-size: 12px; color: var(--muted); }
.wis-p b {
  display: grid; place-items: center; height: 62px; border-radius: 12px; font-size: 26px; font-weight: 700;
  line-height: 1; background: #f3eee4; color: var(--ink);
}
.wis-p b span { font-size: 11.5px; font-weight: 500; margin-top: -10px; opacity: 0.85; }
.wis-p.unknown b { color: #b9b1a3; font-size: 22px; }
.wis-p i { font-style: normal; font-size: 11px; color: var(--muted); }
.el-wood { background: #e3eedf !important; color: #2f6b3c !important; }
.el-fire { background: #f7e1da !important; color: #b5382c !important; }
.el-earth { background: #f3e9d2 !important; color: #8a6420 !important; }
.el-metal { background: #ecebe8 !important; color: #5c5a55 !important; }
.el-water { background: #dfe5ee !important; color: #2b4a73 !important; }
.el-bg-wood { background: #6e9e72; } .el-bg-fire { background: #c9574a; } .el-bg-earth { background: #c39a4c; }
.el-bg-metal { background: #a19d95; } .el-bg-water { background: #4f6f99; }
.wis-bars { display: grid; gap: 7px; margin: 18px 0 14px; }
.wis-bar { display: grid; grid-template-columns: 22px 1fr 18px; align-items: center; gap: 8px; font-size: 13px; }
.wis-bar i { height: 8px; background: #efe9de; border-radius: 99px; overflow: hidden; }
.wis-bar em { display: block; height: 100%; border-radius: 99px; }
.wis-bar b { text-align: right; font-weight: 600; }
.wis-facts { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.wis-facts li { display: flex; justify-content: space-between; font-size: 14px; }
.wis-facts span { color: var(--muted); }
.wis-manse-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.wis-manse-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.wis-manse-cta button { height: 48px; border-radius: 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.wis-manse-cta button.dark { background: var(--ink); color: #fff; }

/* 상품 목록 */
.wis-list { padding: 22px 18px 8px; display: grid; gap: 10px; }
.wis-list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 2px; }
.wis-list-head.second { margin-top: 18px; }
.wis-list-head h2 { margin: 0; font-family: var(--wis-title); font-size: 19px; font-weight: 700; }
.wis-list-head span { font-size: 12.5px; color: var(--muted); }
.wis-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: var(--wis-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px; cursor: pointer;
  color: var(--ink);
}
.wis-item:active { transform: scale(0.99); }
.wis-item div { display: grid; gap: 4px; }
.wis-item b { font-size: 16px; font-weight: 600; }
.wis-item small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.wis-item strong { flex: none; font-size: 16px; font-weight: 700; color: var(--wis-accent); }
.wis-item.premium { background: #fbf6ec; border-color: #e2d4b8; }
.wis-item.premium strong { color: var(--ink); font-size: 14px; border: 1px solid var(--ink); border-radius: 99px; padding: 5px 12px; }
.wis-free { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.wis-free button {
  display: grid; gap: 3px; text-align: left; padding: 14px 14px; border-radius: 14px; border: 1px dashed #d8cdb8;
  background: transparent; color: var(--ink); cursor: pointer;
}
.wis-free b { font-size: 15px; } .wis-free small { font-size: 12px; color: var(--muted); }

.wis-story { margin: 22px 18px 120px; padding: 18px 16px; border-top: 1px solid var(--line); }
.wis-story h2 { margin: 0 0 12px; font-family: var(--wis-title); font-size: 17px; }
.wis-story ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wis-story li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14px; line-height: 1.6; color: #4a453d; }
.wis-story li b { color: var(--wis-accent); font-family: var(--wis-title); }

/* 공통 버튼·강조색을 먹·주홍으로 */
.primary-action, .banner-button, .product-card footer button, .pay-button, .checkout-submit {
  background: var(--ink) !important; color: #fff !important; box-shadow: none !important; border-color: var(--ink) !important;
}
.bottom-nav { background: rgba(246, 242, 234, 0.96) !important; border-top: 1px solid var(--line) !important; }
.bottom-nav button.is-active, .bottom-nav button.is-active * { color: var(--wis-accent) !important; }
.bottom-nav .fortune-fab > span {
  background: var(--wis-seal) !important; box-shadow: 0 8px 20px rgba(181, 56, 44, 0.28) !important;
}
.view-title, .view-title.emerald { background: var(--paper) !important; color: var(--ink) !important; }
.report-headline { font-family: var(--wis-title) !important; }
.analysis-hero { background: #efe8da !important; color: var(--ink) !important; }

.bottom-nav .fortune-fab { background: transparent !important; box-shadow: none !important; }
.bottom-nav .fortune-fab em { color: var(--muted) !important; }
.view-title button, .checkout-view .view-title button { color: var(--ink) !important; background: transparent !important; }
.report-lucky { background: #fbf6ec !important; border-color: #e6dcc8 !important; }
.report-lucky-grid article { background: #fffdf8 !important; border-color: var(--line) !important; }
.lucky-badge { background: var(--wis-seal) !important; color: #fff !important; }
.lucky-note { color: var(--wis-accent) !important; }
.yr-card.is-now { border-color: var(--wis-accent) !important; background: #fbefe9 !important; }
.yr-card.is-now small { color: var(--wis-accent) !important; }

/* 29,800원 분석서 주문 칸 (2026-10-23) */
.wis-premium-fields { display: grid; gap: 12px; }
.wis-premium-fields label { display: grid; gap: 6px; font-weight: 600; }
.wis-premium-fields label small { font-weight: 400; color: #8a7f70; }
.wis-premium-fields input, .wis-premium-fields textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #ddd3c2; border-radius: 10px; background: #fff; }
.wis-premium-fields textarea { min-height: 96px; resize: vertical; }
.wis-premium-note { margin: 0; font-size: 14px; line-height: 1.6; color: #5d5448; }

/* 2026-10-23: 오늘의 운세 제목이 점수(68/100)와 겹치지 않게, 한국어는 낱말 단위로 줄바꿈 */
.daily-headline { max-width: calc(100% - 108px); word-break: keep-all; overflow-wrap: break-word; }
.daily-score { top: 44px; }


/* 2026-10-23: display:grid 가 hidden 을 덮어써서 9,900원 주문에도 29,800원 이메일 칸이 보이던 문제 */
.wis-premium-fields[hidden] { display: none !important; }


/* ───────── 2026-10-23: 유료 풀이 결과 화면을 1안(크림·먹·주홍) 분위기로 ───────── */
.analysis-view { background: var(--paper) !important; }
.analysis-hero { background: var(--paper) !important; border-bottom: 1px solid var(--line); padding: 18px 16px 16px !important; }
.analysis-hero > button { background: var(--white) !important; border: 1px solid var(--line) !important; color: var(--ink); font-size: 26px !important; }
.analysis-hero p { color: var(--wis-accent) !important; font-weight: 600 !important; letter-spacing: 0.02em; }
.analysis-hero h1 { font-family: var(--wis-title) !important; font-weight: 700; font-size: 22px !important; color: var(--ink); }
.analysis-chips span { background: var(--white) !important; border: 1px solid var(--line) !important; color: var(--muted); font-weight: 500 !important; }
.scroll-hint { background: var(--ink) !important; color: var(--paper) !important; font-weight: 500 !important; box-shadow: none !important; }

/* 섹션 제목: 빨간 띠 → 먹색 글씨 + 가는 선 */
.analysis-section { background: var(--white) !important; border-bottom: 1px solid var(--line) !important; }
.analysis-section > h2 {
  background: transparent !important; color: var(--ink) !important; text-align: left !important;
  font-family: var(--wis-title) !important; font-weight: 700; font-size: 18px !important;
  padding: 22px 20px 10px !important; display: flex; align-items: center; gap: 8px;
}
.analysis-section > h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--wis-seal); transform: rotate(45deg); flex: none; }

/* 만세력 표 */
.manse-board { padding: 4px 14px 18px; }
.manse-grid { border: 1px solid var(--line); border-radius: 12px 12px 0 0; overflow: hidden; background: var(--white) !important; gap: 0; }
.manse-column { border-right: 1px solid var(--line) !important; }
.manse-column:last-child { border-right: 0 !important; }
.manse-label { background: #f1ece2 !important; color: var(--muted) !important; font-weight: 600 !important; font-size: 12px !important; }
.manse-cell { min-height: 80px !important; border-top: 1px solid var(--line) !important; }
.manse-cell strong { font-family: var(--wis-serif) !important; font-weight: 700; font-size: 28px !important; }
.manse-cell span, .manse-cell small { font-weight: 500 !important; opacity: 0.9; }
.manse-info-grid { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; background: var(--white) !important; }
.manse-info-grid > div { background: var(--white) !important; color: #5f584d !important; border-color: var(--line) !important; font-weight: 400 !important; }
.manse-info-grid > div:nth-child(8n+5), .manse-info-grid > div:nth-child(8n+6),
.manse-info-grid > div:nth-child(8n+7), .manse-info-grid > div:nth-child(8n+8) { background: #faf7f1 !important; }

/* 불러오는 화면 */
.analysis-loading { background: var(--white) !important; }
.loading-orb { background: var(--wis-seal) !important; box-shadow: none !important; border-radius: 14px !important; }
.loading-orb span { font-family: var(--wis-serif) !important; color: #fff !important; }
.progress-track { background: #efe9de !important; }
.progress-track span { background: var(--wis-seal) !important; }

/* 풀이 본문: 왼쪽 들여쓰기(52px) 때문에 오른쪽으로 쏠리던 것 → 양쪽 같은 여백 */
.accordion-hint { color: var(--muted) !important; font-size: 13px; padding: 4px 20px 14px !important; text-align: left !important; border-bottom: 1px solid var(--line); }
.analysis-item { border-bottom: 1px solid var(--line) !important; }
.analysis-toggle { background: var(--white) !important; padding: 18px 20px !important; grid-template-columns: 18px minmax(0, 1fr) 18px !important; }
.analysis-toggle span { font-size: 0 !important; display: flex; justify-content: center; }
.analysis-toggle span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wis-seal); }
.analysis-toggle b { font-family: var(--wis-title) !important; font-weight: 700; font-size: 17px; color: var(--ink); }
.analysis-toggle i { color: #b9b0a2 !important; }
.analysis-body { padding: 2px 22px 24px 22px !important; color: #3a352e !important; font-size: 16px !important; line-height: 1.9 !important; word-break: keep-all; }
.analysis-body p { margin: 0 0 16px !important; }
.analysis-item.is-open { background: var(--white); }
.report-headline { font-family: var(--wis-title) !important; color: var(--ink) !important; background: transparent !important; }

/* 이어서 보면 좋은 풀이 */
.related-products { background: var(--paper) !important; }
.related-products h2 { font-family: var(--wis-title) !important; color: var(--ink); }
.related-products button { background: var(--white) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.related-products button b { color: var(--ink); font-weight: 700; }
.related-products button small { color: var(--muted) !important; }

/* 풀이 본문(details 방식): 52px 들여쓰기 제거, 1안 글꼴 */
.report-section { background: var(--white) !important; border-bottom: 1px solid var(--line) !important; }
.report-section summary { grid-template-columns: 18px minmax(0, 1fr) !important; padding: 20px 22px 14px !important; font-family: var(--wis-title) !important; font-weight: 700 !important; font-size: 18px !important; }
.report-section summary span { font-size: 0 !important; display: flex; justify-content: center; }
.report-section summary span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wis-seal); }
.report-section p { padding: 0 22px 18px 22px !important; color: #3a352e !important; line-height: 1.9 !important; word-break: keep-all; }
.report-headline { margin: 0 !important; padding: 18px 22px !important; font-size: 18px !important; font-weight: 700 !important; line-height: 1.6 !important; border-bottom: 1px solid var(--line); }
.report-lucky { background: #faf6ee !important; border-color: var(--line) !important; border-radius: 12px !important; }
.lucky-badge { background: var(--wis-seal) !important; font-weight: 600 !important; }
.report-lucky-head b { font-family: var(--wis-title) !important; font-weight: 700 !important; }
.report-lucky-grid article { border-radius: 10px !important; }
.report-lucky-grid b { font-weight: 700 !important; color: var(--ink); }

/* ───────── 2026-10-23 (2): 표 접기, 캐릭터 배경 제거, 오늘의 운세 1안 ───────── */
.related-products button[hidden] { display: none !important; }

/* 만세력 표 3~7줄 "자세히 보기" */
.manse-more { margin: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: var(--white); overflow: hidden; }
.manse-more > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; background: #faf7f1; }
.manse-more > summary::-webkit-details-marker { display: none; }
.manse-more > summary small { color: var(--muted); font-weight: 400; font-size: 12px; }
.manse-more > summary::after { content: "⌄"; color: #b9b0a2; font-size: 16px; line-height: 1; transform: translateY(-3px); }
.manse-more[open] > summary::after { transform: rotate(180deg) translateY(-2px); }
.manse-more .manse-info-grid { border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; }
.manse-grid { border-radius: 12px 12px 0 0 !important; }

/* 안쪽 화면 상단(오늘 운세, 보관함, 인원관리, 결제 등): 캐릭터 그림 배경 → 크림 바탕 글씨만 */
.slim-poster { height: auto !important; min-height: 0 !important; padding: 22px 20px 18px !important; background: var(--paper) !important; border-bottom: 1px solid var(--line); }
.slim-poster::before, .slim-poster::after { display: none !important; background: none !important; }
.slim-poster p { color: var(--wis-accent) !important; font-weight: 600 !important; font-size: 13px !important; margin: 0 0 4px !important; }
.slim-poster h1 { font-family: var(--wis-title) !important; font-weight: 700 !important; color: var(--ink) !important; font-size: 24px !important; margin: 0 !important; }

/* 오늘의 운세 결과 */
.daily-hero { background: var(--white) !important; border-bottom: 1px solid var(--line); }
.daily-hero-top { color: var(--muted) !important; font-weight: 500 !important; }
.daily-headline { font-family: var(--wis-title) !important; font-weight: 700 !important; color: var(--ink) !important; }
.daily-tags span { background: #f4efe6 !important; color: #6f665a !important; font-weight: 500 !important; }
.daily-score b { font-family: var(--wis-serif) !important; font-weight: 700 !important; color: var(--wis-seal) !important; }
.daily-cats, .daily-block { border-color: #efe9de !important; background: var(--white); }
.cat-emoji { display: none !important; }
.cat-bar { background: #efe9de !important; }
.daily-cat .cat-bar i { background: #c39a4c !important; }
.daily-cat.cat-love .cat-bar i { background: #c9574a !important; }
.daily-cat.cat-work .cat-bar i { background: #8a6420 !important; }
.daily-cat.cat-money .cat-bar i { background: #c39a4c !important; }
.daily-cat.cat-health .cat-bar i { background: #6e9e72 !important; }
.daily-cat.cat-study .cat-bar i { background: #4f6f99 !important; }
.daily-cat b { font-weight: 600 !important; color: var(--ink); }
.daily-lucky article, .food-card, .daily-quests li, .daily-meta-row span { background: #faf7f1 !important; border-color: var(--line) !important; }
.daily-lucky b, .food-card b { font-weight: 700 !important; color: var(--ink); }
.daily-block > h3, .daily-acc-item header { font-family: var(--wis-title) !important; font-weight: 700 !important; color: var(--ink); }
.daily-acc-item p, .cat-note p { color: #3a352e !important; line-height: 1.85 !important; word-break: keep-all; }
.mcell-label { background: #f1ece2 !important; color: var(--muted) !important; }

/* 보관함 카드·필터 */
.archive-card { background: var(--white) !important; border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 12px !important; }
.archive-card * { background-image: none !important; }
.archive-status { background: #f4efe6 !important; color: #6f665a !important; font-weight: 500 !important; }
.library-filters button { background: var(--white) !important; border: 1px solid var(--line) !important; color: var(--muted) !important; font-weight: 500 !important; box-shadow: none !important; }
.library-filters button.is-active, .library-filters button[aria-pressed="true"], .library-filters button.active { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }

/* 오행 막대 채움색(위 .el-* 옅은 배경이 덮어쓰던 것) */
.el-track { background: #efe9de !important; }
.el-track i.el-wood { background: #6e9e72 !important; } .el-track i.el-fire { background: #c9574a !important; } .el-track i.el-earth { background: #c39a4c !important; }
.el-track i.el-metal { background: #a19d95 !important; } .el-track i.el-water { background: #4f6f99 !important; }


.archive-card { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; }


.archive-list { box-sizing: border-box !important; padding-left: 16px !important; padding-right: 16px !important; }
.archive-card { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }


.archive-list { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }

