/* Shared navigation and member-page presentation; existing state and handlers remain authoritative. */
body .ysd-bottom-nav {
  position: fixed; z-index: 30; inset: auto auto 0 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 470px); height: calc(76px + env(safe-area-inset-bottom)); min-height: 76px;
  margin: 0; padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  border: 0; border-top: 1px solid #ddd1c1; background: #fffdf8;
  box-shadow: 0 -4px 16px #302a2706; backdrop-filter: none;
}
body .ysd-bottom-nav > :is(a, button) {
  position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column;
  min-width: 0; min-height: 44px; gap: 3px; padding: 0; margin: 0;
  border: 0; background: transparent; color: #75695f; text-decoration: none; cursor: pointer;
}
body .ysd-bottom-nav svg {
  display: block; width: 36px; height: 36px; padding: 6px; border-radius: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
body .ysd-bottom-nav small { font: 500 11px/1.4 'Noto Sans KR', sans-serif; }
body .ysd-bottom-nav > .active { color: #9d3c34; }
body .ysd-bottom-nav > .active svg { background: #f4e5df; }
body .ysd-bottom-nav > .active small { font-weight: 700; }
body .ysd-bottom-nav > .active::before { content: none; }
body .ysd-bottom-nav > :is(a, button):focus-visible { outline: 2px solid #9d3c34; outline-offset: -2px; border-radius: 12px; }

body.ysd-member, body.ysd-community {
  --paper: #f7f1e7; --light: #fffdf8; --card: #fffdf8; --ink: #302a27;
  --muted: #75695f; --red: #9d3c34; --line: #ddd1c1;
  background: #e9e3d9; color: var(--ink); padding-bottom: calc(96px + env(safe-area-inset-bottom));
  font-family: 'Noto Sans KR', sans-serif; word-break: keep-all;
}
.ysd-member > main, .ysd-community > main {
  width: min(100%, 470px); min-height: calc(100dvh - 148px); margin: 0 auto;
  padding: 32px 24px 40px; background: var(--paper); box-sizing: border-box;
}
.ysd-member :is(.account-header, .note-header), .ysd-community .reviews-header {
  width: min(100%, 470px); height: 72px; min-height: 72px; margin: 0 auto; padding: 0 20px;
  background: var(--light); border-bottom: 1px solid var(--line); backdrop-filter: none;
  grid-template-columns: 64px 1fr 44px;
}
.ysd-member :is(.account-header, .note-header) > a { display: grid; place-items: center; width: 64px; height: 44px; background: transparent; border: 0; border-radius: 0; }
.ysd-member .ysd-account-logo { display: block; width: 64px; height: 40px; object-fit: contain; }
.ysd-member :is(.account-header, .note-header) strong { font: 700 18px/1.4 'Gowun Batang', serif; }
.ysd-member :is(.account-header, .note-header) small { font: 400 10px/1.5 'Noto Sans KR', sans-serif; color: var(--muted); }
.ysd-member .note-header > button { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--red); }
.ysd-member .panel-title { align-items: flex-start; gap: 14px; margin: 0 0 28px; }
.ysd-member .panel-title > span { width: 42px; height: 48px; flex: 0 0 42px; border-radius: 0; background: transparent; color: var(--red); box-shadow: none; }
.ysd-member .panel-title svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ysd-member .panel-title h1 { margin: 0 0 8px; font: 700 28px/1.35 'Gowun Batang', serif; letter-spacing: -.04em; }
.ysd-member .panel-title p { font-size: 13px; line-height: 1.8; }
.ysd-member :is(.my-card, .my-links, .order-list, .recover-box, .coupon-list > .empty, .coupon-ticket, .note-form form, .identity-card) {
  border: 1px solid var(--line); border-radius: 12px; background: var(--light); box-shadow: none;
}
.ysd-member .my-card { padding: 24px; border-top: 2px solid var(--red); margin-bottom: 24px; }
.ysd-member .my-card small { font-size: 12px; }
.ysd-member .my-card strong { font-size: 18px; line-height: 1.7; }
.ysd-member .my-links a { padding: 20px 16px; grid-template-columns: 24px 1fr 16px; gap: 12px; }
.ysd-member .my-links b { font-size: 14px; font-weight: 500; }
.ysd-member .my-links span { display: grid; place-items: center; }
.ysd-member .my-links svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ysd-member .logout-button { border-radius: 8px; background: transparent; color: var(--muted); font-weight: 500; }
.ysd-member .recover-box { padding: 22px 18px; }
.ysd-member .recover-lead { font-size: 13px; line-height: 1.8; }
.ysd-member .recover-lead strong { font-weight: 600; }
.ysd-member .recover-lead > br { display: none; }
.ysd-member .recover-field input { min-width: 0; border-radius: 8px; font-size: 16px; }
.ysd-member .recover-actions button { min-height: 48px; border-radius: 8px; background: var(--paper); font-weight: 600; }
.ysd-member .recover-actions .recover-primary { background: var(--red); color: var(--light); }
.ysd-member :is(.order-review, .review-submit, .empty-primary, .form-submit) { background: var(--red); color: var(--light); border-radius: 8px; font-weight: 600; }
.ysd-member .order-review.done { background: #f4e5df; color: var(--red); }
.ysd-member .review-sheet { background: var(--light); border-radius: 20px 20px 0 0; }
.ysd-member .channel-reward { border-radius: 12px; background: #283852; box-shadow: none; padding: 28px 22px; }
.ysd-member .channel-reward::before { content: none; }
.ysd-member .reward-seal { display: none; }
.ysd-member .reward-copy { padding-right: 0; }
.ysd-member .reward-copy h2 { font-size: 28px; }
.ysd-member .reward-copy h2 em { font-size: 32px; }
.ysd-member :is(.channel-claim, .channel-actions button) { background: #f4e5df; color: #302a27; border-radius: 8px; }
.ysd-member .channel-actions a { border-radius: 8px; }
.ysd-member .ticket-value { background: var(--red); }
.ysd-member .coupon-ticket::before, .ysd-member .coupon-ticket::after { background: var(--paper); }
.ysd-member .copy-code { background: var(--paper); }
.ysd-member #noteMain { padding: 0 0 32px; }
.ysd-member .note-empty { width: 100%; margin: 0; padding: 48px 24px 40px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ysd-member .empty-seal { width: 80px; height: 80px; margin-bottom: 24px; background: none; border-radius: 0; box-shadow: none; }
.ysd-member .empty-seal img { width: 100%; height: 100%; object-fit: contain; }
.ysd-member .note-empty h1 { margin: 12px 0 18px; font-size: 28px; line-height: 1.5; }
.ysd-member .note-empty p { font-size: 13px; font-weight: 400; line-height: 1.9; }
.ysd-member .empty-primary { min-height: 52px; margin-top: 28px; font-size: 14px; }
.ysd-member .note-form form { padding: 24px 18px; }
.ysd-member .note-form :is(input:not([type=radio]):not([type=checkbox]), select) { background: var(--light); border-color: var(--line); border-radius: 8px; }
.ysd-member .note-form .entry-field { display: grid; gap: 8px; margin-block: 20px; }
.ysd-member .note-form .birth-date-selects { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4px; min-width: 0; }
.ysd-member .note-form select { width: 100%; min-width: 0; min-height: 48px; padding: 8px 4px; border: 1px solid var(--line); color: var(--ink); font: 400 16px/1.5 var(--sans); }
.ysd-member .note-form input[name=name] { font-size: 16px; }
.ysd-member .note-form .choice-row span { min-height: 44px; }
.ysd-member .choice-row span { background: var(--light); border-color: var(--line); border-radius: 8px; }
.ysd-member .choice-row input:checked + span { background: var(--red); border-color: var(--red); color: var(--light); }
.ysd-member .reading-banner { background: #283852; border-radius: 12px; box-shadow: none; }
.ysd-member :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.ysd-home .login-sheet { border-color: var(--line); border-radius: 20px 20px 0 0; background: #fffdf8; }
.ysd-home .login-sheet .sheet-logo { width: 112px; height: 56px; object-fit: contain; border-radius: 0; }
.ysd-home .login-sheet > small { color: var(--red); font-size: 10px; letter-spacing: .12em; }
.ysd-home .login-sheet > p { word-break: keep-all; text-wrap: pretty; }
.ysd-home .login-sheet h2 { word-break: keep-all; text-wrap: balance; line-height: 1.45; }
@media (max-width: 360px) {
  .ysd-member > main { padding-inline: 20px; }
  .ysd-member :is(.account-header, .note-header) { padding-inline: 16px; grid-template-columns: 56px 1fr 36px; }
  .ysd-member .panel-title h1, .ysd-member .note-empty h1 { font-size: 25px; }
  .ysd-member .my-links a { padding-inline: 14px; gap: 8px; }
}
