@font-face {
  font-family: "Spoqa Han Sans Neo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Spoqa Han Sans Neo Regular"), url("/assets/fonts/SpoqaHanSansNeo-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Spoqa Han Sans Neo";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: local("Spoqa Han Sans Neo Medium"), url("/assets/fonts/SpoqaHanSansNeo-Medium.woff2") format("woff2");
}

:root {
  --ink: #1b1e24;
  --body: #3f444c;
  --paper: #ffffff;
  --panel: #fffdf7;
  --canvas: #f4f1e9;
  --surface: #f7f6f2;
  --line: #e4e0d7;
  --field-border: #96938b;
  --muted: #66635d;
  --yellow: #f0d650;
  --yellow-soft: #fff8d9;
  --wood: #77b66d;
  --fire: #a45440;
  --earth: #e0af45;
  --metal: #b9bdc4;
  --water: #4f84c4;
  --indigo: #454a64;
  --element-wood: #dce9df;
  --element-fire: #f3ddd6;
  --element-earth: #eee3bc;
  --element-metal: #e8e5df;
  --element-water: #dce5ed;
  --radius: 8px;
  --font-title: 28px;
  --font-section: 22px;
  --font-card: 18px;
  --font-body: 16px;
  --font-caption: 13px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --shadow-soft: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
* { outline: 0 none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7f3e7;
  color: var(--ink);
  font-family: "Spoqa Han Sans Neo", system-ui, sans-serif;
  font-size: var(--font-body);
  line-height: 1.68;
  letter-spacing: 0;
  word-break: keep-all;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2, h3, strong { font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(61, 69, 122, .1); }
button:focus-visible, a:focus-visible, summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.site-frame {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  border-inline: 1px solid var(--line);
}
.skip-link { position: fixed; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.desktop-app-icon { overflow: hidden; flex: 0 0 auto; background: #17191d; border-radius: var(--radius); }
.desktop-app-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.desktop-intro { display: none; }
.service-panel { --line: #ccc7bd; position: relative; min-width: 0; height: 100vh; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--panel); }
.service-scroll { min-height: 0; overflow-x: hidden; overflow-y: auto; scroll-padding-bottom: 96px; overscroll-behavior-y: contain; background: var(--panel); scrollbar-color: #b8bac0 transparent; scrollbar-width: thin; }
.bottom-nav { z-index: 30; min-height: 72px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 6px var(--space-3) calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 253, 247, .96); backdrop-filter: blur(14px); }
.bottom-nav > a { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1; }
.bottom-nav > a[aria-current="page"] { color: var(--indigo); }
.bottom-nav > a:hover { color: var(--ink); }
.nav-icon { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.nav-label { display: block; white-space: nowrap; }
.nav-character-icon { width: 48px; height: 48px; overflow: hidden; display: block; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--yellow-soft); }
.nav-character-icon img { width: 100%; height: 100%; display: block; object-fit: contain; transform: scale(1.08); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-5);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { background: #343431; }
.button.secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface); border-color: var(--ink); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-small { min-height: 40px; padding: 0 15px; font-size: 13px; }
.text-link { min-height: 40px; display: inline-flex; align-items: center; color: var(--indigo); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.text-link:not(.account-page .text-link):hover, .footer-links a:hover, .auth-form > a:hover { color: var(--fire); }

.home-page { padding: var(--space-5) var(--space-5) 56px; background: transparent; }
.panel-title { margin: 0 2px var(--space-5); color: var(--ink); font-size: var(--font-title); font-weight: 500; line-height: 1.35; }
.fortune-hero { overflow: hidden; background: #17191d; color: white; border-radius: var(--radius); }
.fortune-hero img { width: 100%; height: 260px; display: block; object-fit: cover; object-position: center 35%; }
.fortune-hero-copy { padding: var(--space-6) var(--space-6) 28px; }
.fortune-hero-copy p { margin: 0 0 8px; color: var(--yellow); font-size: 14px; font-weight: 500; }
.fortune-hero-copy h1 { margin: 0; font-size: var(--font-title); line-height: 1.24; }
.fortune-hero-copy span { display: block; margin-top: 12px; color: #cfcfca; font-size: 14px; }
.fortune-hero-copy .button { width: 100%; margin-top: 22px; background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.home-section { margin-top: var(--space-6); padding: 36px var(--space-6); border-top: 1px solid var(--line); }
.home-heading { margin-bottom: 28px; }
.home-heading p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.home-heading h2 { margin: 0; font-size: var(--font-section); line-height: 1.35; }
.quick-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-menu a { min-width: 0; padding: 14px 4px; text-align: center; border-radius: var(--radius); }
.quick-menu a:hover { background: var(--surface); }
.quick-icon { width: 64px; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; color: white; font-size: 20px; font-weight: 600; }
.quick-icon.basic { background: #e8efe9; color: #365843; }
.quick-icon.daily { background: #fff1cb; color: #80620f; }
.quick-icon.record { background: #e9edf4; color: #445873; }
.quick-icon .nav-icon { width: 25px; height: 25px; }
.quick-menu strong, .quick-menu small { display: block; }
.quick-menu strong { font-size: 14px; }
.quick-menu small { margin-top: 3px; color: var(--muted); font-size: var(--font-caption); line-height: 1.4; }
.wood { background: var(--element-wood); color: #274d36; }
.fire { background: var(--element-fire); color: #793e31; }
.earth { background: var(--element-earth); color: #625020; }
.metal { background: var(--element-metal); color: #514e48; }
.water { background: var(--element-water); color: #334f68; }

.today-card { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.today-symbol { width: 76px; aspect-ratio: 1; display: grid; place-items: center; background: var(--yellow-soft); border-radius: 50%; font-weight: 500; }
.today-card p { margin: 0; color: var(--fire); font-size: 13px; font-weight: 500; }
.today-card h3 { margin: 4px 0 8px; font-size: var(--font-card); line-height: 1.35; }
.today-card span { display: block; color: var(--muted); font-size: 14px; }
.today-card .text-link { margin-top: 10px; }

.energy-formula { display: grid; gap: 12px; }
.formula-section { background: transparent; }
.energy-formula article { padding: 18px; border: 1px solid var(--line); background: var(--element-wood); border-radius: var(--radius); }
.energy-formula article:nth-of-type(2) { background: var(--element-water); }
.energy-formula article:nth-of-type(3) { background: var(--element-earth); }
.energy-formula article > span { color: var(--ink); font-size: var(--font-caption); font-weight: 500; }
.energy-formula strong { display: block; margin-top: 2px; font-size: 18px; }
.energy-formula p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.energy-formula > b { width: 28px; height: 28px; display: grid; place-items: center; justify-self: center; border: 1px solid var(--line); border-radius: 50%; color: var(--indigo); font-weight: 500; line-height: 1; }
.formula-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--body); font-size: 13px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-grid article { min-width: 0; min-height: 164px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.choice-icon { width: 42px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; }
.choice-icon .nav-icon { width: 20px; height: 20px; }
.choice-icon.overview { background: #e8efe9; color: #365843; }
.choice-icon.today { background: #fff1cb; color: #80620f; }
.choice-icon.delivery { background: #f7e4de; color: #7b4437; }
.choice-icon.history { background: #e9edf4; color: #445873; }
.choice-grid strong { display: block; font-size: 16px; }
.choice-grid p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.principle-section { background: transparent; }
.principle-list { display: grid; gap: 0; }
.principle-list article { padding: 18px 0; border-top: 1px solid var(--line); }
.principle-list article:first-child { padding-top: 0; border-top: 0; }
.principle-list article:last-child { padding-bottom: 0; }
.principle-list strong { display: block; font-size: var(--font-card); }
.principle-list p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.element-section { background: #232426; color: white; border: 0; border-radius: var(--radius); }
.element-card > div:first-child p, .trial-card > p { margin: 0 0 5px; color: var(--indigo); font-size: 13px; font-weight: 500; }
.element-section .element-card > div:first-child p { color: var(--yellow); }
.element-section .element-card > div:first-child > span { color: #d3d5dc; }
.element-card h2, .trial-card h2 { margin: 0; font-size: var(--font-section); line-height: 1.35; }
.element-card > div:first-child > span, .trial-card > span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.element-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 24px; }
.element-row i { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 500; }
.trial-section { background: var(--yellow-soft); border: 0; border-radius: var(--radius); }
.trial-card { padding: 4px; }
.trial-card .button { width: 100%; margin-top: 22px; }
.faq-preview details { border-top: 1px solid var(--line); }
.faq-preview summary { padding: 18px 0; cursor: pointer; font-weight: 500; }
.faq-preview details p { margin: -6px 0 18px; color: var(--muted); font-size: 14px; }

.page-hero { padding: 56px var(--space-6) 40px; background: transparent; border-bottom: 1px solid var(--line); }
.page-hero > p:first-of-type { margin: 0 0 8px; color: var(--fire); font-size: 14px; font-weight: 500; }
.page-hero h1 { margin: 0; font-size: var(--font-title); line-height: 1.35; }
.page-hero > p:last-child { max-width: 38rem; margin: 22px 0 0; color: var(--body); }
.section { margin: 0; padding: 40px var(--space-6); }
.prose-section { margin-bottom: var(--space-12); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.prose-section h2 { margin: 34px 0 8px; font-size: var(--font-section); }
.prose-section h2:first-child { margin-top: 0; }
.prose-section p { margin: 0; color: var(--body); }

.price-list { display: grid; gap: 14px; padding: 0 var(--space-6) var(--space-6); }
body[data-path="/pricing"] .price-list { padding-top: var(--space-8); }
.price-list article { padding: 28px var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.price-list .featured { background: var(--ink); color: white; border-color: var(--ink); }
.price-list h2 { margin: 0; font-size: var(--font-section); }
.price-list strong { display: block; margin: 22px 0 10px; font-size: 32px; }
.price-list p { color: var(--muted); }
.price-list .featured p { color: #d8daec; }
.price-list .recommended { color: var(--yellow); font-weight: 500; }
.price-list .button { width: 100%; margin-top: 18px; background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.faq-list { margin: 0; padding: 24px var(--space-6) var(--space-12); background: transparent; border: 0; border-radius: 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:first-child { border-top: 0; }
.faq-list summary { padding: 20px 32px 20px 0; cursor: pointer; font-weight: 500; }
.faq-list p { margin: -5px 0 22px; color: var(--muted); }
.faq-list summary, .faq-preview summary { position: relative; padding-right: 36px; list-style: none; }
.faq-list summary::-webkit-details-marker, .faq-preview summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq-preview summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 24px; text-align: center; color: var(--muted); font-size: 20px; font-weight: 400; }
.faq-list details[open] > summary::after, .faq-preview details[open] > summary::after { content: "−"; }

.auth-page { min-height: 680px; padding: 52px var(--space-6) 64px; }
.login-page { min-height: 0; }
.auth-copy { margin-bottom: var(--space-8); }
.auth-copy p { margin: 0 0 8px; color: var(--fire); font-weight: 500; }
.auth-copy h1 { margin: 0; font-size: var(--font-title); line-height: 1.25; }
.auth-form { display: grid; gap: var(--space-5); padding: 28px var(--space-6); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.auth-form > section { display: grid; gap: 18px; }
.auth-form > section[hidden] { display: none; }
.auth-form h2 { margin: 0 0 4px; font-size: var(--font-section); }
.email-login-form { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.email-login-form h2 { font-size: 20px; line-height: 1.5; }
.email-login-form input:not([type="radio"]):not([type="checkbox"]) { border-color: var(--field-border); }
.auth-form label:not(.radio):not(.check) { display: grid; gap: 7px; font-weight: 500; }
.auth-form input:not([type="radio"]):not([type="checkbox"]), .auth-form select { width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid #8f9298; border-radius: var(--radius); background: white; color: var(--ink); font-size: var(--font-body); }
.auth-form input:not([type="radio"]):not([type="checkbox"]):hover, .auth-form select:hover { border-color: var(--ink); }
.auth-form small { color: var(--muted); font-size: var(--font-caption); font-weight: 400; }
.auth-form fieldset { margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); }
.radio + .radio { margin-left: 20px; }
.check { min-height: 44px; display: flex; gap: 11px; align-items: center; color: var(--body); cursor: pointer; line-height: 1.55; }
.check input[type="checkbox"], .consent-row input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--paper) center / 14px 14px no-repeat;
  cursor: pointer;
}
.check input[type="checkbox"]:checked, .consent-row input[type="checkbox"]:checked {
  border-color: var(--ink);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}
.check input[type="checkbox"]:disabled, .consent-row input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .5; }
.form-error { margin: 0; padding: 11px; border: 1px solid #e8c6bf; border-radius: var(--radius); background: #fff8f6; color: #963426; }
.auth-form .button { width: 100%; }
.auth-benefits { margin: -8px 0 24px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); }
.auth-benefits p { margin: 0 0 8px; font-weight: 500; }
.auth-benefits ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: var(--body); font-size: 13px; }
.auth-benefits li::before { content: "·"; margin-right: 5px; color: var(--indigo); }
.form-assurance { margin: -8px 0 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.form-assurance strong { display: block; }
.form-assurance p { margin: 5px 0 0; color: var(--body); font-size: 14px; }
.profile-form { min-height: 500px; display: flex; flex-direction: column; padding: 8px 2px 0; }
.signup-progress { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.signup-progress { scroll-margin-top: 24px; }
.signup-progress > div { height: 4px; overflow: hidden; background: var(--line); border-radius: var(--radius); }
.signup-progress i { width: 33.333%; height: 100%; display: block; background: var(--indigo); transition: width .2s ease; }
.profile-step { min-height: 410px; display: flex; flex: 1; flex-direction: column; gap: 20px; }
.profile-step[hidden] { display: none; }
.profile-step h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.35; }
.profile-step > label { display: grid; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.profile-step input:not([type="radio"]), .profile-step select, .email-sheet input:not([type="checkbox"]), .profile-editor input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-height: 52px; padding: 10px 2px; border: 0; border-bottom: 1px solid #8f9298; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--font-body); }
.profile-step input:hover, .profile-step select:hover, .email-sheet input:hover { border-color: var(--ink); }
.profile-step small { color: var(--muted); font-size: var(--font-caption); }
.name-gender-row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 16px; align-items: start; margin-top: 12px; }
.name-gender-row > label { display: grid; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; }
.gender-select { min-width: 0; margin: 0; padding: 0; border: 0; }
.gender-select legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 14px; }
.gender-select > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gender-select label { position: relative; }
.gender-select input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gender-select span { display: grid; place-items: center; min-height: 52px; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 14px; }
.gender-select input:checked + span { background: var(--ink); color: var(--paper); }
.gender-select input:focus-visible + span { box-shadow: inset 0 0 0 1px var(--indigo); }
.field-error { margin: 0; color: #963426; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.field-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: 14px; }
.field-heading small { font-size: var(--font-caption); }
.birth-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.birth-input-line { min-width: 0; border-bottom: 1px solid #8f9298; }
.birth-input-line input, .time-input-line > input { min-width: 0; border: 0 !important; color: var(--ink); font-size: 18px !important; font-weight: 500; letter-spacing: 0; }
.birth-input-line input:focus-visible, .time-input-line > input:focus-visible { box-shadow: none; }
.birth-input-line input::placeholder, .time-input-line > input::placeholder { color: #b7b3aa; opacity: 1; }
.calendar-inline { display: flex; gap: 4px; margin: 0; padding: 0 0 7px; border: 0; }
.calendar-inline[hidden] { display: none; }
.calendar-inline[data-lunar-leap] { margin-top: 16px; }
.calendar-inline[data-lunar-leap] legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.calendar-inline label { position: relative; }
.calendar-inline input { position: absolute; opacity: 0; }
.calendar-inline span { min-width: 42px; min-height: 34px; display: grid; place-items: center; border-radius: 17px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 13px; }
.calendar-inline input:checked + span { background: var(--ink); color: white; }
.calendar-inline input:focus-visible + span { text-decoration: underline; text-underline-offset: 4px; }
.field-help { display: block; margin-top: -12px; }
.time-input-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid #8f9298; }
.time-input-line > input:disabled { opacity: .45; }
.unknown-time-option { position: relative; align-self: stretch; display: flex !important; align-items: center; }
.unknown-time-option input { position: absolute; opacity: 0; }
.unknown-time-option span { min-height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 4px; color: var(--muted); cursor: pointer; font-size: 13px; white-space: nowrap; }
.unknown-time-option span::before { content: "✓"; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--line); color: white; font-size: 12px; }
.unknown-time-option input:checked + span { color: var(--ink); }
.unknown-time-option input:checked + span::before { background: var(--yellow); color: var(--ink); }
.unknown-time-option input:focus-visible + span { text-decoration: underline; text-underline-offset: 4px; }
.step-kicker { margin: 0 0 -10px; color: var(--fire); font-size: 13px; font-weight: 500; }
.step-description { margin: -8px 0 4px; color: var(--muted); font-size: 14px; }
.step-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.profile-step .step-actions { margin-top: auto; padding-top: 28px; }
.step-actions .button { flex: 1; }
.step-back { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--body); cursor: pointer; }
.auth-switch { min-height: 42px; display: flex; align-items: end; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
.text-action { min-height: 42px; border: 0; background: transparent; color: var(--indigo); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.request-limit-note { margin: 0; color: var(--muted); font-size: var(--font-caption); text-align: center; }
.email-sheet-layer { position: absolute; inset: 0; z-index: 80; display: grid; align-items: end; }
.email-sheet-layer[hidden] { display: none; }
body.sheet-open .service-scroll { overflow: hidden; }
.email-sheet-backdrop { position: absolute; inset: 0; border: 0; background: rgba(18, 18, 18, .5); cursor: pointer; }
.email-sheet { position: relative; max-height: calc(100vh - 54px); overflow-y: auto; overscroll-behavior: contain; padding: 34px var(--space-6) calc(30px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--paper); box-shadow: 0 -16px 44px rgba(0, 0, 0, .16); }
.email-sheet form > div { display: grid; gap: 18px; }
.email-sheet form > div[hidden] { display: none; }
.email-sheet h2 { margin: 0; padding-right: 30px; font-size: var(--font-section); line-height: 1.4; }
.email-sheet p { margin: 0; color: var(--body); font-size: 14px; }
.email-sheet label:not(.check) { display: grid; gap: 7px; font-weight: 500; }
.email-sheet input[name="code"] { font-size: 24px; letter-spacing: 8px; text-align: center; }
.email-sheet .button { width: 100%; }
.email-sheet .form-error, .email-sheet .request-limit-note { margin-top: 14px; }
.sheet-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 28px; line-height: 1; }

.app-page { min-height: 640px; padding: var(--space-12) var(--space-6); }
.app-page[data-view="history"] { min-height: 480px; }
.app-page:is([data-view="today"], [data-view="history"], [data-view="saju"], [data-view="manse"]) { padding-top: var(--space-8); }
.app-page header { margin-bottom: var(--space-8); }
.app-back-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px 0 16px -10px; color: var(--muted); font-size: 25px; }
.app-back-link:hover { color: var(--ink); }
.today-banner { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.today-banner img { flex: 0 0 60px; width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.today-banner > span { min-width: 0; }
.today-banner small { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--font-caption); line-height: 1.6; }
.today-banner strong { display: block; font-size: var(--font-card); font-weight: 500; line-height: 1.5; }
.today-banner .banner-arrow { margin-left: auto; color: var(--ink); font-size: 22px; }
.today-banner:hover { border-color: var(--muted); }
.manse-banner { display: grid; grid-template-columns: 1fr auto; gap: 20px 16px; margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.manse-banner-elements { grid-column: 1 / -1; justify-self: center; display: block; width: 100%; max-width: 280px; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.manse-banner-copy { min-width: 0; }
.manse-banner small { display: block; margin-bottom: 6px; color: #d2d2d5; font-size: var(--font-caption); line-height: 1.6; }
.manse-banner strong { display: block; font-size: 18px; font-weight: 500; line-height: 1.5; }
.manse-banner-arrow { align-self: end; font-size: 24px; line-height: 1.2; }
.manse-banner:hover strong, .manse-banner:focus-visible strong { text-decoration: underline; text-underline-offset: 5px; }
.app-next-link { width: 100%; margin-top: var(--space-5); }
.app-page header p { margin: 0 0 6px; color: var(--fire); font-weight: 500; }
.app-page header h1 { margin: 0; font-size: var(--font-title); line-height: 1.35; }
.app-page header .text-link { margin-top: 10px; }
.loading-block, .subscription-panel { padding: var(--space-6) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.element-label { color: var(--indigo); font-weight: 500; }
.history-item { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.history-item > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; cursor: pointer; }
.history-item > summary h2 { grid-column: 1 / -1; grid-row: 2; }
.history-item summary::-webkit-details-marker { display: none; }
.history-item .history-toggle { grid-column: 2; grid-row: 1; display: block; margin: 0; color: var(--indigo); font-size: 13px; }
.history-item .when-open, .history-item[open] .when-closed { display: none; }
.history-item[open] .when-open { display: inline; }
.history-expanded { margin-top: 20px; }
.overview-summary { font-size: var(--font-body); line-height: 1.9; }
.overview-section .overview-summary p { margin: 0 0 24px; }
.overview-section .overview-summary p:last-child { margin-bottom: 0; }
.overview-section { min-width: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
.overview-section h2 { margin: 0 0 14px; font-size: 22px; font-weight: 500; }
.overview-section p { margin: 0 0 16px; color: var(--body); }
.reading-status { margin: 0; padding: 0 0 20px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.birth-info { margin: 0; }
.birth-info > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.birth-info dt { color: var(--muted); }
.birth-info dd { margin: 0; }
.overview-section .birth-info + p { margin-top: 20px; }
.overview-section .table-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { box-shadow: inset 0 0 0 1px var(--indigo); }
.saju-table { width: 100%; min-width: 450px; border-collapse: collapse; font-size: 13px; text-align: center; }
.pillar-table { min-width: 100%; table-layout: fixed; }
.saju-table.pillar-table th, .saju-table.pillar-table td { padding-inline: 6px; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.pillar-table th:first-child { width: 88px; }
.overview-section .table-caption { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.day-pillar dd { font-size: 20px; font-weight: 500; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 24px 0; }
.pillar-column { min-width: 0; text-align: center; }
.pillar-column h3 { margin: 0; font-size: 14px; font-weight: 500; }
.overview-section .pillar-hint { min-height: 44px; display: flex; align-items: center; justify-content: center; margin: 6px 0 12px; color: var(--muted); font-size: var(--font-caption); }
.overview-section .pillar-role { min-height: 44px; display: flex; align-items: center; justify-content: center; margin: 8px 0; font-size: var(--font-caption); line-height: 1.5; }
.pillar-letter { width: 100%; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 3px; margin: 8px 0; border-radius: var(--radius); }
.pillar-letter > span { font-size: 32px; line-height: 1.2; }
.pillar-letter small { font-size: var(--font-caption); line-height: 1.5; }
.app-page > header > p:last-of-type:not(:first-of-type) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.day-pillar { margin: 0 0 12px; }
.day-pillar + .table-note { margin-bottom: 28px; }
.manse-breakdown { margin: 24px 0; }
.manse-breakdown > div, .manse-hidden > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.manse-breakdown dt { font-weight: 500; }
.manse-breakdown dt small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.manse-breakdown dd { margin: 12px 0 0; color: var(--body); line-height: 1.9; }
.manse-hidden h3, .manse-timeline h3 { font-size: 18px; font-weight: 500; margin: 8px 0; }
.manse-timeline { list-style: none; padding: 0; margin: 24px 0; }
.manse-timeline li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.manse-timeline li > span, .manse-timeline p { color: var(--muted); font-size: 14px; }
.pillar-letter.unknown { background: var(--surface); color: var(--muted); }
.manse-link { margin-top: 20px; }
.manse-nav { display: flex; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.manse-nav a { font-size: 14px; color: var(--indigo); padding: 8px 0; }
[id^="manse-"] { scroll-margin-top: 20px; }
.element-distribution { margin: 20px 0; }
.element-distribution > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.element-distribution dt { display: flex; align-items: center; gap: 10px; }
.element-distribution dt small { color: var(--muted); font-size: var(--font-caption); }
.element-distribution dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.element-symbol { width: 32px; height: 32px; border-radius: var(--radius); display: grid; place-items: center; }
.element-track { grid-column: 1 / -1; height: 5px; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.element-track > span { display: block; height: 100%; }
.overview-more .when-open, .overview-more[open] .when-closed { display: none; }
.overview-more[open] .when-open { display: inline; }
.overview-detail { padding: 16px 0 20px; border-bottom: 0; }
.overview-more .overview-detail { border-bottom: 1px solid var(--line); }
.overview-section:has(.overview-more[open]) { border-bottom: 0; }
.overview-detail p { font-size: var(--font-body); line-height: 1.85; }
.overview-detail p:last-child { margin-bottom: 0; }
.overview-more .overview-detail > p { font-size: 16px; line-height: 1.95; margin-bottom: 24px; overflow-wrap: anywhere; }
.overview-more .overview-detail > p:first-child { color: var(--muted); font-size: 15px; font-style: italic; line-height: 1.9; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.overview-more .overview-detail > p:last-child { margin-bottom: 0; }
.saju-table th, .saju-table td { padding: 12px 10px; border: 1px solid var(--line); white-space: nowrap; }
.saju-table th { background: var(--surface); font-weight: 500; }
.saju-table th:first-child { position: sticky; left: 0; z-index: 1; }
.element-table { min-width: 0; }
.cycle-table { min-width: 960px; }
.balance { display: grid; gap: 11px; margin-bottom: 44px; }
.balance-row { display: grid; grid-template-columns: 34px 1fr 42px; gap: 10px; align-items: center; }
.balance-track { height: 9px; overflow: hidden; background: var(--line); border-radius: var(--radius); }
.balance-fill { height: 100%; border-radius: var(--radius); }
.overview-sections, .history-list { display: grid; gap: 12px; }
.history-item time { color: var(--indigo); font-weight: 500; font-size: var(--font-caption); }
.history-item > summary h2 { margin: 0; font-size: var(--font-body); line-height: 1.65; }
.subscription-panel h2 { margin: 18px 0 8px; font-size: var(--font-section); }
.subscription-panel .button { width: 100%; margin-top: 16px; }
.consent-list { display: grid; gap: 8px; }
.consent-row { min-height: 48px; display: grid; grid-template-columns: auto auto 1fr; gap: 9px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--body); font-size: 14px; }
.consent-row button { padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent-row label { cursor: pointer; }
.policy-dialog { width: min(calc(100% - 28px), 430px); max-height: calc(100vh - 28px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.policy-dialog::backdrop { background: rgba(18, 18, 18, .58); }
.policy-dialog-bar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.policy-dialog-bar button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 26px; }
.policy-dialog-body { max-height: calc(100vh - 86px); overflow-y: auto; }
[data-subscription-confirm] .policy-dialog-bar h2 { margin: 0; font-size: 20px; font-weight: 500; }
[data-subscription-confirm] .policy-dialog-body { padding: 20px; }
[data-subscription-confirm] .policy-dialog-body > p { margin: 0 0 24px; line-height: 1.8; color: var(--body); }
[data-subscription-confirm] .profile-edit-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
[data-subscription-confirm] .button { min-width: 0; padding-inline: 10px; font-size: 14px; }
.policy-dialog .policy-page { padding: 24px 20px 36px; }
.policy-dialog .policy-page > header h1 { font-size: var(--font-title); }
.ten-god-link { display: inline-block; min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--indigo); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ten-god-dialog .policy-dialog-bar h2 { margin: 0; font-size: 20px; font-weight: 500; }
.ten-god-body { padding: 24px; }
.ten-god-body h3 { margin: 24px 0 12px; font-size: 18px; font-weight: 500; }
.ten-god-body p { margin: 0 0 16px; color: var(--body); line-height: 1.85; }
.ten-god-body .table-note { color: var(--muted); font-size: 13px; }
.ten-god-body > p:last-child { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.manse-reflection { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); line-height: 1.85; }
.overview-section .manse-reflection > p:last-child { margin-bottom: 0; }
.manse-breakdown .manse-role-reading { margin: 16px 0 0; color: var(--body); line-height: 1.85; }
.content-section { border-top: 1px solid var(--line); background: transparent; }
.page-hero + .content-section { border-top: 0; }
.policy-summary, .notice-section { margin: 0; padding: 36px var(--space-6); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.content-section > h2, .policy-summary > h2, .notice-section > h2 { margin: 0 0 20px; font-size: var(--font-section); }
.grouped-heading { scroll-margin-top: 20px; padding: 48px var(--space-6) 18px; }
.grouped-heading p { margin: 0 0 5px; color: var(--fire); font-size: 13px; }
.grouped-heading h2 { margin: 0; font-size: var(--font-section); }
.step-list, .detail-list { display: grid; gap: 18px; }
.step-list article { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.step-list article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow-soft); font-weight: 500; }
.step-list h3, .detail-list h3 { margin: 0 0 4px; font-size: var(--font-card); }
.step-list p, .detail-list p { margin: 0; color: var(--muted); }
.detail-list article { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.usage-list { display: grid; gap: 0; }
.usage-list article { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.usage-list article:first-child { padding-top: 0; border-top: 0; }
.usage-list article:last-child { padding-bottom: 0; }
.usage-list article > span { width: 48px; height: 30px; display: grid; place-items: center; border-radius: 15px; background: var(--yellow-soft); color: var(--body); font-size: var(--font-caption); }
.usage-list h3 { margin: 0 0 4px; font-size: var(--font-card); }
.usage-list p { margin: 0; color: var(--muted); }
.section-title { margin-bottom: var(--space-6); }
.section-title > p { margin: 0 0 5px; color: var(--fire); font-size: 13px; font-weight: 500; }
.section-title h2 { margin: 0; font-size: var(--font-section); }
.section-title > span { display: block; margin-top: 8px; color: var(--body); font-size: 14px; }
.delivery-section { border-top: 1px solid var(--line); }
.delivery-note { padding: 22px; border-radius: var(--radius); background: #232426; color: white; }
.delivery-note header { display: flex; justify-content: space-between; color: var(--yellow); font-size: 13px; }
.delivery-note strong { display: block; margin-top: 18px; font-size: 22px; }
.delivery-note > p { margin: 7px 0 18px; color: #d5d7de; }
.delivery-note dl { margin: 0; }
.delivery-note dl > div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #444956; }
.delivery-note dt { color: #b9bdc9; }
.delivery-note dd { margin: 0; }
.plain-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--body); }
.notice-section { background: var(--yellow-soft); }
.notice-section p { color: var(--body); }
.notice-section .button { width: 100%; margin-top: 10px; }
.section-lead { margin: -8px 0 20px; color: var(--muted); }
.learning-grid { display: grid; gap: 0; }
.learning-grid article { padding: 18px 0; border-top: 1px solid var(--line); }
.learning-grid article:first-child { padding-top: 0; border-top: 0; }
.learning-grid h3 { margin: 0 0 5px; font-size: 18px; }
.learning-grid p { margin: 0; color: var(--muted); }
body:is([data-path="/about"], [data-path="/learn"]) .page-hero { background: var(--surface); }
body:is([data-path="/about"], [data-path="/learn"]) .page-hero > p:last-child { color: var(--body); line-height: 1.85; }
body:is([data-path="/about"], [data-path="/learn"]) .content-section p { color: var(--body); line-height: 1.85; }
body[data-path="/about"] .step-list { gap: 24px; }
body[data-path="/about"] .step-list article > span { background: var(--surface); color: var(--ink); }
body[data-path="/about"] .delivery-section { background: var(--surface); }
body[data-path="/about"] .delivery-note { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
body[data-path="/about"] .delivery-note header { color: var(--muted); }
body[data-path="/about"] .delivery-note > p, body[data-path="/about"] .delivery-note dd { color: var(--body); }
body[data-path="/about"] .delivery-note dt { color: var(--muted); }
body[data-path="/about"] .delivery-note dl > div { border-color: var(--line); }
body[data-path="/about"] .usage-list article > span { background: var(--surface); color: var(--ink); border-radius: var(--radius); }
body[data-path="/learn"] .reading-order { background: var(--paper); }
body[data-path="/learn"] .learning-grid article { padding-block: 24px; }
body[data-path="/learn"] .learning-grid article:first-child { padding-top: 0; }
body[data-path="/learn"] .learning-grid article:last-child { padding-bottom: 0; }
body[data-path="/learn"] .concept-body { background: var(--surface); border: 0; margin-top: 8px; padding: 20px; }
body[data-path="/learn"] .pillar-grid article { background: var(--surface); }
.learn-manse-section { padding-top: 0; }
.learn-manse-banner { padding: 24px; background: #292c32; border-radius: var(--radius); color: #fff; }
.learn-manse-banner img { display: block; width: 150px; height: 50px; object-fit: contain; margin-bottom: 20px; }
.learn-manse-banner h2 { margin: 10px 0 16px; font-size: var(--font-section); line-height: 1.5; }
.learn-manse-banner p { margin: 0; color: #e0e2e5; font-size: 14px; line-height: 1.85; }
.learn-manse-banner > p:first-of-type { font-size: 13px; }
.learn-manse-banner .button { width: 100%; margin-top: 24px; background: #fff; border-color: #fff; color: #292c32; }
.concept-more { margin-top: 13px; }
.concept-more summary { position: relative; min-height: 40px; display: flex; align-items: center; padding: 0 34px 0 0; color: var(--indigo); cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.concept-more summary::-webkit-details-marker { display: none; }
.concept-more summary::after { content: "+"; position: absolute; right: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--body); font-size: 16px; }
.concept-more[open] > summary::after { content: "−"; }
.concept-body { display: grid; gap: 12px; padding: 14px 16px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.concept-body p { color: var(--body); font-size: var(--font-body); }
.concept-body strong { display: block; margin-bottom: 3px; color: var(--ink); }
.concept-more[open] { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.concept-more[open] > summary { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.concept-more[open] > :is(.concept-body, .overview-detail) { padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
body[data-path="/learn"] .concept-more[open] > .concept-body { padding: 0; margin: 0; background: transparent; }
.faq-list details[open] > p, .faq-preview details[open] > p { color: var(--body); line-height: 1.85; }
.history-item[open] { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.history-item[open] > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.history-item[open] > summary h2 { display: none; }
.history-item[open] .history-toggle { flex-shrink: 0; margin: 0; }
.history-item[open] .history-expanded { margin: 0; }
.history-item[open] .reading-stack { gap: 0; margin: 0; }
.history-item[open] .preview-card { padding: 24px 20px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.history-item[open] .preview-card.summary { background: var(--paper); }
.history-item[open] .preview-card:last-child { border-bottom: 0; }
.history-item .preview-card h2 { font-size: var(--font-card); line-height: 1.65; }
.history-item .preview-card.detail h2, .history-item .preview-card.summary h2 { font-size: var(--font-body); }
.history-item .preview-card > p:not(:first-child) { font-size: 15px; line-height: 1.9; }
.reading-order { background: transparent; }
.reading-order ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.reading-order li { display: grid; grid-template-columns: 36px 1fr; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.reading-order li:first-child { border-top: 0; }
.reading-order li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--indigo); color: var(--paper); font-size: 13px; }
.reading-order strong { display: block; }
.reading-order li p { margin: 3px 0 0; color: var(--body); font-size: 14px; }
.daily-flow { display: grid; gap: 0; }
.daily-flow article { padding: 20px 0; border-top: 1px solid var(--line); background: transparent; }
.daily-flow article:first-child { padding-top: 0; border-top: 0; }
.daily-flow article:last-child { padding-bottom: 0; }
.daily-flow article > span { color: var(--indigo); font-size: var(--font-caption); font-weight: 500; }
.daily-flow h3 { margin: 3px 0 6px; font-size: 18px; }
.daily-flow p { margin: 0; color: var(--muted); font-size: 14px; }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pillar-grid article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pillar-grid article > span { color: var(--fire); font-size: 13px; font-weight: 500; }
.pillar-grid h3 { margin: 4px 0 7px; font-size: var(--font-card); }
.pillar-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.format-cards { display: grid; gap: 12px; }
.format-cards article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.format-cards article > span { color: var(--indigo); font-size: 13px; }
.format-cards h3 { margin: 4px 0 10px; font-size: 20px; }
.format-cards p { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; margin: 6px 0; color: var(--body); }
.format-cards p strong { display: inline-block; min-width: 38px; color: var(--ink); font-weight: 500; }
.reading-rule { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.reading-rule h3 { margin: 0 0 7px; font-size: 18px; }
.reading-rule p { margin: 0; color: var(--body); }
.preview-stack { display: grid; gap: 16px; padding: 32px var(--space-5); }
.preview-stack.reading-stack { padding: 0; margin: 20px 0; }
.preview-card { padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.preview-card > p:first-child { margin: 0 0 12px; color: var(--muted); font-size: var(--font-caption); font-weight: 500; }
.preview-card.summary { background: var(--surface); }
.preview-card.summary > p:not(:first-child) { margin-bottom: 0; color: var(--body); font-size: 15px; line-height: 1.9; }
.preview-card.sentence { background: var(--yellow-soft); }
.preview-card.detail { background: var(--paper); }
.preview-card.sentence { padding-block: 28px; }
.preview-card h2 { margin: 0; font-size: var(--font-card); line-height: 1.65; font-weight: 500; }
.preview-card.sentence > span { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.preview-card.detail h2, .preview-card.summary h2 { margin-bottom: 12px; font-size: var(--font-body); line-height: 1.65; }
.preview-card.detail > p:not(:first-child) { color: var(--body); font-size: 15px; line-height: 1.9; }
.preview-card.detail > p + p { margin-top: 1.9em; }
.preview-card.summary > p + p { margin-top: 1.5em; }
.support-form { display: grid; gap: 20px; padding: 0 0 32px; }
.support-form label, [data-withdraw-form] label { display: grid; gap: 10px; }
.support-form .check { display: flex; }
.support-form input:not([type="checkbox"]), .support-form select, .support-form textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font: inherit; background: var(--paper); color: var(--body); font-size: var(--font-body); }
.support-form .full-button { margin-top: 0; }
.support-form > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.support-ticket { padding: 20px 0; border-bottom: 1px solid var(--line); }
.support-ticket p { white-space: pre-wrap; }
.preview-card dl { margin: 18px 0 0; }
.preview-card dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.preview-card dt { color: var(--indigo); font-weight: 500; }
.preview-card dd { margin: 4px 0 0; color: var(--muted); }
.personalization-section { background: var(--paper); border-top: 1px solid var(--line); }
.personalization-section dl { margin: 0; }
.personalization-section dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.personalization-section dl > div:first-child { padding-top: 0; border-top: 0; }
.personalization-section dt { color: var(--indigo); font-weight: 500; }
.personalization-section dd { margin: 4px 0 0; color: var(--body); }
.full-button { width: 100%; margin-top: 22px; }
.price-list article ul { display: grid; gap: 8px; margin: 18px 0 8px; padding-left: 20px; color: var(--body); }
.price-list .featured ul { color: #f4f4f7; }
.policy-summary dl { margin: 0; }
.policy-summary dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.policy-summary dt { font-weight: 500; }
.policy-summary dd { margin: 0; color: var(--muted); }
.draft-note { margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--body); font-size: 13px; }
.policy-page { padding: var(--space-10) var(--space-6) var(--space-12); }
.policy-page > header { margin-bottom: var(--space-8); }
.policy-page > header p { margin: 0 0 8px; color: var(--fire); font-weight: 500; }
.policy-page > header h1 { margin: 0; font-size: var(--font-title); line-height: 1.35; }
.policy-page > header span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.policy-page > section { padding: 22px 0; border-top: 1px solid var(--line); }
.policy-page > section h2 { margin: 0 0 10px; font-size: var(--font-section); }
.policy-page > section p { margin: 7px 0; color: var(--body); }
.my-sections { display: grid; gap: var(--space-8); }
.my-card { padding: 0; border: 0; background: transparent; }
.my-card h2 { margin: 0 0 16px; font-size: var(--font-card); }
.my-card p { margin: 0 0 14px; color: var(--muted); }
.my-card dl { margin: 0; }
.my-card dl > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 8px 0; border: 0; }
.my-card dt { color: var(--muted); }
.my-card dd { margin: 0; overflow-wrap: anywhere; }
.my-card button:not(.button) { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-editor form, .profile-editor [data-profile-fields] { display: grid; gap: 24px; }
.profile-editor .full-button { margin-top: 0; }
.profile-editor [data-profile-verification] > h2, .profile-editor [data-profile-verification] > p { margin: 0; }
.profile-editor [data-profile-verification] > h2 { font-size: 20px; line-height: 1.5; }
.profile-editor [data-profile-verification] > p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.profile-editor [data-profile-verification] > label { display: grid; gap: 8px; font-size: 14px; }
.profile-editor [data-profile-verification] > p:empty { display: none; }
.profile-editor [data-profile-fields] { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-editor form > fieldset > label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.profile-editor .name-gender-row { grid-template-columns: minmax(0, 1fr) 136px; gap: 12px; margin: 0; }
.profile-editor form[hidden] { display: none; }
.membership-actions { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.membership-actions .button { margin-top: 0; }
.my-membership dl > div { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.my-membership dd { flex: 1; min-width: max-content; text-align: right; }
.my-membership .button { display: flex; width: 100%; justify-content: center; }
.membership-actions [hidden] { display: none; }
.membership-actions:has([data-membership-join][hidden]) { display: none; }
.my-membership { margin-inline: calc(-1 * var(--space-6)); padding: var(--space-6); background: var(--ink); color: var(--paper); }
.my-membership h2 { color: #d2d2d5; font-size: 14px; }
.membership-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; min-height: 36px; }
.my-membership .membership-heading h2 { margin: 0; }
.membership-heading img { width: 108px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.my-membership .birth-info dt { color: #b8bbc2; }
.my-membership .birth-info dd { color: var(--paper); }
.my-membership .button { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.account-menu { display: grid; }
.account-menu a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 0; border: 0; font-size: 15px; }
.account-menu .nav-icon { width: 20px; height: 20px; color: var(--muted); stroke-width: 1.5; }
.account-menu a > span:last-child { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }
.my-membership .secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.profile-editor [data-profile-verification][hidden] { display: none; }
.profile-edit-actions { display: grid; grid-template-columns: 1fr 80px; gap: 12px; }
.profile-editor .button { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.profile-editor [data-send-profile-code] { background: var(--paper); color: var(--ink); border-color: var(--line); }
.profile-editor [data-send-profile-code]:hover { background: var(--surface); border-color: var(--ink); }
.profile-editor [data-profile-cancel] { background: transparent; }
.profile-editor [data-profile-status]:empty { display: none; }
.my-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.my-section-heading h2, .my-section-heading .text-link { margin: 0; }
.my-card .loading-block { border: 0; border-radius: 0; background: transparent; padding: 0; }
.membership-status { margin-top: 0; font-weight: 500; }
.element-relations { margin-top: 28px; }
.element-relations h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; line-height: 1.6; }
.element-relations p { line-height: 1.9; }
.element-relation { padding: 24px 0; border-bottom: 1px solid var(--line); }
.element-relation .plain-list { margin-bottom: 0; }
.membership-price { font-size: 30px; font-weight: 500; }
.commerce-page > header { margin-bottom: var(--space-8); }
.commerce-lead { display:block; margin-top:12px; color:var(--muted); font-size:14px; line-height:1.8; }
.commerce-section { padding: 0; margin-top: var(--space-8); border: 0; }
.commerce-section h2 { margin:0 0 20px; font-size: var(--font-card); font-weight:500; line-height:1.5; }
.commerce-section p { margin:0 0 var(--space-4); line-height:1.85; font-size:14px; }
.commerce-section .full-button { margin-top:var(--space-6); min-height:48px; }
.commerce-section .loading-block { min-height:0; padding:0; border:0; background:transparent; }
.commerce-section .membership-status { display:inline-block; padding:6px 12px; border-radius:var(--radius); background:var(--yellow-soft); color:var(--ink); font-size:14px; margin-bottom:20px; }
.commerce-facts, .commerce-section .birth-info { margin:0; }
.commerce-facts > div, .commerce-section .birth-info > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; padding:10px 0; border:0; }
.commerce-facts dt, .commerce-section .birth-info dt { color:var(--muted); font-size:14px; font-weight:400; }
.commerce-facts dd, .commerce-section .birth-info dd { margin:0; color:var(--ink); font-size:14px; font-weight:500; text-align:right; overflow-wrap:anywhere; }
.commerce-section .text-link { display:inline-block; margin-top:20px; font-size:13px; }
.membership-offer > img { display:block; border-radius:var(--radius); margin:0 auto var(--space-4); }
.membership-offer h2 { text-align:center; margin-bottom:var(--space-2); }
.membership-offer .membership-price { margin:0 0 var(--space-6); font-size:32px; color:var(--ink); text-align:center; }
.membership-benefits { list-style:none; padding:0; margin:0 0 24px; display:grid; gap:12px; font-size:14px; }
.membership-benefits li { padding-left:20px; position:relative; }
.membership-benefits li::before { content:'\2713'; position:absolute; left:0; color:var(--indigo); }
.commerce-section .commerce-meta { color:var(--muted); font-size:13px; margin-top:16px; }
.commerce-agreement { margin-top:var(--space-6); padding:var(--space-4); border:0; border-radius:var(--radius); background:var(--surface); align-items:flex-start; font-size:14px; line-height:1.8; }
.commerce-feedback { color:var(--indigo); font-size:14px; margin-top:16px!important; }
.commerce-feedback:empty { display:none; }
.payment-entry { padding:16px 0; border-bottom:1px solid var(--line); }
.payment-entry:first-child { padding-top:0; }
.payment-entry:last-child, .support-ticket:last-child,
.birth-info > div:last-child, .manse-breakdown > div:last-child,
.manse-hidden > div:last-child, .manse-timeline li:last-child,
.element-distribution > div:last-child, .element-relation:last-child { border-bottom: 0; }
.payment-entry header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:var(--space-2); }
.payment-entry h3 { margin:0; font-size:16px; font-weight:500; }
.payment-entry time, .payment-entry p { color:var(--muted); font-size:13px; }
.payment-entry p { margin:8px 0 0; }
.payment-methods { margin: 0 0 24px; padding: 18px 0; border: 0; border-block: 1px solid var(--line); }
.membership-dialog { position: relative; width: min(400px, calc(100% - 32px)); box-sizing: border-box; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.membership-dialog::backdrop { background: rgb(0 0 0 / .35); }
.membership-dialog h2 { margin: 24px 0 16px; font-size: var(--font-section); line-height: 1.5; font-weight: 500; }
.membership-dialog p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.trial-membership-banner { display: grid; gap: 18px; margin-top: 32px; padding: 24px; border: 1px solid #e4c45b; border-radius: var(--radius); background: var(--yellow-soft); }
.trial-membership-banner[hidden] { display: none; }
.trial-membership-banner p { margin: 0 0 6px; color: #8b6b0d; font-size: 13px; font-weight: 500; }
.trial-membership-banner h2 { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 500; }
.trial-membership-banner .button { margin: 0; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.trial-delivery-consent { align-items: flex-start; }
.trial-delivery-consent label { line-height: 1.6; }
.profile-edit-actions .text-action { display: grid; place-items: center; }
.profile-edit-actions [aria-disabled="true"] { pointer-events: none; opacity: .5; }
.link-list a { display: block; padding: 14px 0; border: 0; }
.logout-button { justify-self: start; min-height: 44px; margin-top: -16px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.account-page { padding-top: 24px; padding-inline: var(--space-6); background: var(--paper); }
.account-page[data-view="settings"] .my-sections { gap: 24px; }
.account-page .account-header { display: flex; align-items: center; gap: 8px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-page .account-header .app-back-link { margin: 0 0 0 -10px; }
.account-page .account-header h1 { margin: 0; font-size: 24px; line-height: 1.4; }
.account-edit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--body); font-size: 14px; line-height: 1.4; }
.account-page > header { margin-bottom: var(--space-8); }
.account-page > header h1 { font-size: 24px; line-height: 1.45; }
.account-page > header:not(.account-header) .app-back-link { margin-bottom: 12px; }
.account-page > header > p { color: var(--muted); font-size: 13px; }
.account-page .my-section-heading { margin-bottom: 16px; }
.account-page .my-card dt, .account-page .my-card dd { font-size: 15px; }
.account-page .my-card:has(.account-menu) { border-top: 1px solid var(--line); padding-top: 24px; }
.account-page .my-membership + .my-card { border-top: 0; padding-top: 0; }
.account-page .my-card:has(.account-menu) h2 { margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.account-page .account-exit .account-menu a { font-size: 14px; color: var(--muted); }
.account-page .account-exit .logout-button { width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-page .my-membership .membership-status { display: block; background: transparent; color: var(--paper); font-size: 22px; margin-bottom: 20px; padding: 0; }
.account-page .my-membership .birth-info { border-top: 1px solid #41444b; padding-top: 12px; }
.account-page .my-membership .birth-info > div { padding: 6px 0; }
.account-page .my-membership .membership-actions { margin-top: 20px; }
.account-page .commerce-current, .account-page .membership-offer { margin-inline: calc(-1 * var(--space-6)); padding: var(--space-6); background: var(--ink); color: var(--paper); }
.account-page .commerce-current .birth-info dt { color: #b8bbc2; }
.account-page .commerce-current .birth-info dd { color: var(--paper); }
.account-page .commerce-current .button { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.account-page .commerce-current .birth-info { border-top: 1px solid #41444b; padding-top: 12px; }
.account-page .commerce-current .membership-status { display: block; margin-bottom: 20px; padding: 0; background: transparent; color: var(--paper); font-size: 22px; }
.account-page .commerce-section:not(.commerce-current):not(.membership-offer) { border-top: 1px solid var(--line); padding-top: var(--space-6); }
.account-page .membership-offer { display: grid; grid-template-columns: minmax(0, 1fr) 80px; column-gap: var(--space-4); }
.account-page .membership-offer > img { width: 80px; height: 80px; grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; object-fit: cover; }
.account-page .membership-offer h2 { grid-column: 1; grid-row: 1; text-align: left; margin: 0 0 var(--space-2); }
.account-page .membership-offer .membership-price { grid-column: 1; grid-row: 2; margin: 0; color: var(--paper); font-size: 32px; text-align: left; line-height: 1.35; font-variant-numeric: tabular-nums; }
.account-page .membership-offer > ul, .account-page .membership-offer > .commerce-meta { grid-column: 1 / -1; }
.account-page .membership-offer .commerce-meta { color: #b8bbc2; }
.account-page .membership-benefits { margin: var(--space-6) 0 var(--space-4); }
.account-page .membership-offer > .commerce-meta { margin: 0; }
.account-page .membership-benefits li::before { color: var(--yellow); }
.account-page .overview-section h2 { font-size: var(--font-card); }
.account-page .profile-editor [data-profile-verification] > h2 { font-size: var(--font-card); }
.account-page .birth-info > div { padding: 8px 0; border: 0; }
.account-page .loading-block { padding: 0; border: 0; background: transparent; }
.account-page .overview-section { padding: var(--space-6) 0 0; margin-top: var(--space-8); border: 0; border-top: 1px solid var(--line); }
.account-page .support-form { gap: var(--space-6); padding-bottom: 0; }
.account-page .support-form + .overview-section { margin-top: var(--space-12); }
.account-page .support-form input:not([type="checkbox"]), .account-page .support-form select, .account-page .support-form textarea,
.account-page .profile-editor input:not([type="radio"]):not([type="checkbox"]) { padding: 14px 16px; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--paper); }
.account-page .profile-editor .birth-input-line, .account-page .profile-editor .time-input-line { border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--paper); }
.account-page .profile-editor .calendar-inline { padding-bottom: 9px; }
.account-page .profile-editor .calendar-inline span { border: 1px solid var(--field-border); background: var(--paper); }
.account-page .profile-editor .calendar-inline input:checked + span { border-color: var(--ink); background: var(--ink); }
.account-page .support-form input:focus-visible, .account-page .support-form select:focus-visible, .account-page .support-form textarea:focus-visible,
.account-page .profile-editor input:not([type="radio"]):not([type="checkbox"]):focus-visible { box-shadow: none; background: #eeece7; }
.account-page .support-form h3 { margin: var(--space-8) 0 0; font-size: var(--font-card); font-weight: 500; }
.account-page .delivery-format span { border-color: var(--field-border); background: var(--paper); }
.account-page .delivery-format input:checked + span { border-color: var(--ink); background: var(--ink); }
.account-page .delivery-time select { border: 1px solid var(--field-border); background: var(--paper); }
.account-page .membership-status { display: inline-block; margin-bottom: var(--space-4); padding: 6px 12px; border-radius: var(--radius); background: var(--yellow-soft); color: var(--ink); font-size: 14px; }
.account-page [data-withdraw-form] { margin-top: var(--space-10); }
.account-page .form-error { border: 0; }
.empty-state { min-height: 600px; display: grid; place-content: center; justify-items: center; padding: 32px; text-align: center; }
.empty-state h1 { margin: 0; font-size: var(--font-title); }
.app-page .empty-state { min-height: 320px; padding: 32px 0; }
.empty-state p { color: var(--muted); }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 360px; padding: 13px 16px; background: var(--ink); color: white; border-radius: var(--radius); }
.site-footer { padding: 32px 24px; background: #202228; color: var(--paper); }
.site-footer strong { font-size: 18px; font-weight: 500; }
.site-footer p { margin: 8px 0 0; color: #b8bbc2; font-size: 13px; line-height: 1.8; }
.footer-menu-group { margin-top: 24px; }
.footer-menu-group + .footer-menu-group { padding-top: 20px; border-top: 1px solid #41444b; }
.footer-menu-group h2 { margin: 0 0 8px; color: #b8bbc2; font-size: 13px; font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
.site-footer .footer-links a:hover, .site-footer .footer-links a:focus-visible { color: var(--paper); text-decoration: underline; text-underline-offset: 5px; }
.site-footer .footer-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid #41444b; }

@media (max-width: 520px) {
  .site-frame { border-inline: 0; }
  .home-page { padding: var(--space-4) 12px 44px; }
  .fortune-hero img { height: 218px; }
  .fortune-hero-copy { padding: 22px 20px 24px; }
  .fortune-hero-copy h1 { font-size: var(--font-title); }
  .home-section { margin-top: var(--space-4); padding: var(--space-8) var(--space-5); }
  .today-card { grid-template-columns: 62px 1fr; gap: 14px; }
  .today-symbol { width: 62px; }
  .quick-icon { width: 56px; }
  .page-hero { padding: 44px var(--space-6) 34px; }
  .section { padding: 36px var(--space-6); }
  .page-hero h1, .auth-copy h1, .app-page header h1 { font-size: var(--font-title); }
}

@media (min-width: 900px) {
  body { height: 100vh; overflow: hidden; }
  .site-frame {
    width: min(1120px, 100%);
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 560px) 460px;
    justify-content: center;
    gap: clamp(16px, calc(100vw - 880px), 32px);
    margin: 0 auto;
    border-inline: 0;
  }
  .desktop-intro {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(28px, 6.2vh, 56px) 48px clamp(28px, 5.3vh, 48px);
    background: transparent;
  }
  .desktop-brand { display: inline-flex; align-items: center; gap: 16px; font-size: 28px; font-weight: 500; }
  .desktop-app-icon { width: 64px; height: 64px; }
  .desktop-kicker { margin: clamp(24px, 6.2vh, 56px) 0 14px; color: var(--muted); font-size: 18px; }
  .desktop-headline { margin: 0; color: var(--ink); font-size: 42px; font-weight: 500; line-height: 1.25; text-wrap: balance; }
  .desktop-headline span { color: var(--water); }
  .desktop-intro ul { display: grid; gap: clamp(12px, 1.8vh, 16px); margin: clamp(24px, 4.9vh, 44px) 0 0; padding: 0; list-style: none; color: #555551; font-size: 15px; }
  .desktop-intro li { display: flex; align-items: center; }
  .desktop-intro li::before { content: "★"; width: 14px; display: inline-block; margin-right: 12px; color: #dfbd19; font-size: 13px; line-height: 1; }
  .desktop-intro-bottom { max-width: 500px; margin-top: auto; padding-top: clamp(20px, 3.5vh, 32px); }
  .desktop-intro-bottom h2 { margin: 0 0 18px; font-size: 18px; }
  .desktop-link-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .desktop-link-cards a { min-height: 104px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
  .desktop-link-cards a:last-child { background: var(--paper); }
  .desktop-link-cards a:hover { border-color: #bab5aa; }
  .desktop-link-cards strong, .desktop-link-cards span { display: block; }
  .desktop-link-cards span { margin-top: 6px; color: var(--muted); font-size: 13px; }

  .service-panel {
    grid-column: 2;
    width: 460px;
    height: 100vh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    border-inline: 1px solid var(--line);
    box-shadow: 0 0 30px rgba(0, 0, 0, .04);
  }
  .service-scroll { min-height: 0; overflow-y: auto; background: var(--panel); }
  .home-page { background: transparent; }
}

@media (min-width: 900px) and (max-height: 820px) {
  .desktop-intro-bottom { display: none; }
}

@media (min-width: 900px) and (max-height: 620px) {
  .desktop-intro ul { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.delivery-format{border:0;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.delivery-format legend{padding:0;margin-bottom:12px;font-size:15px;font-weight:500}
.delivery-format label{position:relative;min-width:0;cursor:pointer}
.delivery-format input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.delivery-format span{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 4px;border:1px solid var(--line);border-radius:var(--radius);font-size:14px;background:#fff;color:var(--body)}
.delivery-format input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff}
.delivery-format input:focus-visible+span{text-decoration:underline;text-underline-offset:4px}
.delivery-format input:disabled+span{opacity:.6;cursor:wait}
.delivery-time{border:0;padding:0;margin:24px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.delivery-time legend{padding:0;margin-bottom:12px;font-size:15px;font-weight:500}
.delivery-time.delivery-channel{grid-template-columns:minmax(0,1fr);margin:0 0 16px}
.delivery-time label{min-width:0}
.delivery-time select{width:100%;min-height:46px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--body);font:inherit;font-size:var(--font-body)}
.delivery-time select:focus-visible{background:#eeece7}
.delivery-time select:disabled{opacity:.6;cursor:wait}
.delivery-save{margin-top:24px}
.service-panel select:not([multiple]) {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f444c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}
/* Authentication choices use Kakao's primary button colors. */
.auth-methods{display:grid;gap:12px;margin:24px 0}.auth-methods .button{width:100%;min-height:48px;text-align:center}.kakao-button{display:flex;align-items:center;justify-content:center;gap:9px;background:#fee500!important;color:#000!important;border:0!important}.kakao-button:hover{background:#f3d900!important}.auth-message{margin:16px 0;color:#9c3831;line-height:1.6}
