@charset "UTF-8";
/* Native member UI. Page composition and artwork live in reference.css. */
:root {
  color-scheme: dark;
  --bg: #050604;
  --panel: #11120e;
  --text: #f5f0e4;
  --muted: #b5b0a2;
  --gold: #d9b563;
  --gold-light: #ffedb4;
  --gold-dark: #755321;
  --line: #695532;
  --gold-fill: linear-gradient(180deg, #fff5cb 0%, #f5d889 16%, #bf8d38 49%, #e6be6b 52%, #f9df9b 88%, #ad7a2c 100%);
  font-family: 'Pretendard Variable', 'Malgun Gothic', sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
svg use, button svg, a svg { pointer-events: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #fff0b2;
  outline-offset: 3px;
}
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; top: -80px; left: 12px; z-index: 1100;
  border: 1px solid #fff0b5; border-radius: 4px; padding: 12px 18px;
  background: var(--gold-fill); color: #171207; font-weight: 750;
}
.skip-link:focus { top: 12px; }

/* Shared controls also used by the signed-in member panel. */
.button-gold, .button-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border: 1px solid #d9b668;
  border-radius: 5px; font-weight: 800; line-height: 1.25;
  text-align: center; white-space: nowrap;
  transition: filter .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.button-gold {
  color: #181205; background: var(--gold-fill); border-color: #ffe5a1;
  box-shadow: inset 0 0 0 1px #fff7d596, inset 0 -3px 2px #8b5c2966, 0 3px 10px #0008;
  text-shadow: 0 1px 0 #ffefbb;
}
.button-outline {
  color: #f3e9ce; background: linear-gradient(165deg, #27241a, #080a07 60%, #17170f);
  box-shadow: inset 0 0 0 1px #302819, 0 3px 10px #0005;
}
.button-gold svg, .button-outline svg { width: 18px; height: 18px; }
.button-gold:hover:not(:disabled), .button-outline:hover:not(:disabled) {
  filter: brightness(1.12); border-color: #fff0b8;
}
.button-gold:active:not(:disabled), .button-outline:active:not(:disabled) { filter: brightness(.96); }
.button-gold:disabled, .button-outline:disabled { filter: grayscale(.45); }

/* The native dialog keeps its frame and close control fixed while content scrolls. */
.dialog-open { overflow: hidden; }
#app-dialog {
  width: min(660px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  margin: auto; padding: 0; overflow: hidden;
  border: 2px solid #d3af62; border-radius: 8px;
  color: var(--text); background: linear-gradient(135deg, #15150f, #070906 65%, #14130c);
  box-shadow: inset 0 0 0 2px #171309, inset 0 0 0 3px #e7c67a55, 0 24px 100px #000e, 0 0 24px #c6963320;
}
#app-dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
#app-dialog.dialog-wide { width: min(850px, calc(100vw - 32px)); }
#dialog-content {
  min-width: 0; max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px);
  overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  scrollbar-width: thin; scrollbar-color: #92713c #0a0c08;
  padding: 31px 30px 30px; font-size: 14px; line-height: 1.7;
  overflow-wrap: anywhere;
}
.dialog-close {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid #76603a; border-radius: 4px; background: #10120eee;
  color: #f4d998; font-family: Arial, sans-serif; font-size: 28px; line-height: 1;
  box-shadow: inset 0 0 0 1px #b28d4240;
}
.dialog-close:hover { background: #302819; border-color: #e9c675; }
.dialog-close:focus-visible { outline-offset: 2px; }
.dialog-title, #dialog-title {
  padding: 0 20px 18px 0; margin: 0 24px 19px 0;
  border-bottom: 1px solid #8f6e37;
  color: #f8dda0; font-family: 'Black Han Sans', 'Pretendard Variable', sans-serif;
  font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.04em;
  text-shadow: 0 2px 0 #664a1a, 0 4px 14px #000;
}
.dialog-intro { margin: 0 0 20px; color: #c8c2b3; font-size: 14px; line-height: 1.75; }
#dialog-content > :last-child { margin-bottom: 0; }
#dialog-content > h3 { margin: 24px 0 10px; color: #edcf8c; font-size: 17px; font-weight: 800; }
#dialog-content > .button-gold + .dialog-intro,
#dialog-content > .button-outline + .dialog-intro { margin-top: 17px; }
.dialog-form { display: grid; gap: 16px; }
.field { display: grid; min-width: 0; gap: 7px; font-size: 13px; font-weight: 650; color: #e4d6b4; }
.field > span, .field > label { display: block; }
.field input, .field select, .field textarea,
.dialog-form > input:not([type='checkbox']):not([type='radio']),
.dialog-form > select, .dialog-form > textarea {
  display: block; width: 100%; min-width: 0; min-height: 44px;
  border: 1px solid #675b40; border-radius: 4px; padding: 11px 12px;
  color: #f5f0e6; background: linear-gradient(125deg, #1a1d17, #10130e);
  box-shadow: inset 0 2px 5px #0005; font-size: 15px; font-weight: 450; line-height: 1.4;
}
.field input::placeholder, .field textarea::placeholder { color: #888e81; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #edca7c; outline: 2px solid #d3b16a55; outline-offset: 1px;
}
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .6; cursor: not-allowed; }
.field input[readonly] { color: #d0c3a5; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { cursor: pointer; }
.field select option { color: #eee5d2; background: #151810; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.form-actions > * { flex: 1 1 120px; min-width: 0; }
.form-actions + .content-list { margin-top: 18px; }
.check-field { display: flex; align-items: flex-start; gap: 9px; color: #c8c1af; font-size: 13px; line-height: 1.7; }
.check-field input {
  flex: 0 0 auto; width: 17px; height: 17px; min-height: 0; padding: 0;
  margin: 3px 0 0; accent-color: #e1bd6b; cursor: pointer;
}
.inline-error {
  margin: 0; border: 1px solid #9d6048; border-radius: 4px; padding: 10px 12px;
  background: #351c14; color: #ffd0bd; font-size: 13px; line-height: 1.6;
}
.inline-error:focus { outline: 2px solid #ffc6ab; outline-offset: 2px; }

/* Lists and detail views remain native text, with crisp fonts at any zoom. */
.content-list { display: grid; gap: 8px; }
.content-row {
  display: block; width: 100%; min-width: 0; padding: 15px 17px;
  border: 1px solid #57492e; border-radius: 4px;
  background: linear-gradient(115deg, #1b1d15, #0d100a); color: #eee5ce;
  box-shadow: inset 0 1px 0 #c7a95c0a; text-align: left; font-size: 14px; line-height: 1.55;
}
.content-row:hover { border-color: #c8a55e; background: linear-gradient(115deg, #292719, #11130c); }
.content-row > span { overflow-wrap: anywhere; }
.content-row time { display: block; margin-top: 7px; color: #aea388; font-size: 12px; line-height: 1.4; }
.unread-dot { color: #f6cf70; font-size: .85em; text-shadow: 0 0 7px #e2b85788; }
.empty-state { padding: 30px 14px; text-align: center; color: #b4ad9b; font-size: 14px; line-height: 1.8; }
.article-content, .dialog-content { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.article-content { white-space: pre-wrap; color: #ded8c8; margin: 0 0 20px; }
.article-content img, .dialog-content img, .detail-image { max-width: 100%; height: auto; }
.detail-image { display: block; margin: 14px auto 20px; border-radius: 3px; }
.member-details {
  display: grid; gap: 0; margin: 10px 0 21px; padding: 3px 17px;
  border: 1px solid #806436; border-radius: 5px;
  background: linear-gradient(130deg, #15170f, #090c07);
  box-shadow: inset 0 0 0 2px #0005; font-size: 14px; line-height: 1.65;
}
.member-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #4a4029; }
.member-details > div:last-child { border-bottom: 0; }
.member-details dt { flex: 0 0 auto; color: #b9ad8e; }
.member-details dd { min-width: 0; margin: 0; color: #f6daa0; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.guide-steps { display: grid; gap: 11px; margin: 0; padding: 0; color: #cfc6b1; font-size: 14px; line-height: 1.8; }
.guide-steps > section { position: relative; padding: 17px 17px 17px 62px; border: 1px solid #655130; border-radius: 4px; background: linear-gradient(120deg, #1e2016, #0d100b); }
.guide-steps > section > span { position: absolute; top: 15px; left: 17px; color: #edcc87; font: 700 24px/1.3 Georgia, serif; }
.guide-steps h3 { margin: 0 0 5px; color: #f0d69a; font-size: 16px; font-weight: 800; line-height: 1.5; }
.guide-steps p { margin: 0; color: #c0bba9; font-size: 13px; }
#dialog-content details { padding: 14px 0; border-bottom: 1px solid #55462b; }
#dialog-content summary { cursor: pointer; color: #efd294; font-weight: 700; }
#dialog-content details p { margin-top: 10px; color: #bcb7a7; }

/* State messages and preview-only labels. */
.preview-note { margin: 0 0 19px; padding: 12px 14px; border: 1px solid #746039; border-radius: 4px; background: #232216; color: #d2c092; font-size: 13px; line-height: 1.7; }
.preview-badge { display: block; font-size: 11px; text-align: center; }
.toast {
  position: fixed; z-index: 1000; left: 50%; bottom: 30px;
  width: max-content; max-width: min(90vw, 520px); margin: 0; padding: 13px 19px;
  border: 1px solid #d2ad63; border-radius: 5px; background: linear-gradient(120deg, #242319, #0b0f09);
  color: #f4e4bc; box-shadow: inset 0 0 0 1px #76613744, 0 8px 30px #000b;
  font-size: 14px; line-height: 1.6; text-align: center; overflow-wrap: anywhere;
  opacity: 0; pointer-events: none; transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show, .toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  #app-dialog, #app-dialog.dialog-wide { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 6px; }
  #dialog-content { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: 25px 18px 23px; }
  .dialog-close { width: 35px; height: 35px; top: 7px; right: 7px; }
  .dialog-title, #dialog-title { font-size: 25px; padding-bottom: 15px; margin-bottom: 17px; }
  .dialog-intro { font-size: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .field input, .field select, .field textarea,
  .dialog-form > input:not([type='checkbox']):not([type='radio']),
  .dialog-form > select, .dialog-form > textarea { font-size: 16px; }
  .form-actions { gap: 8px; }
  .form-actions > * { flex-basis: 130px; padding-left: 12px; padding-right: 12px; }
  .guide-steps > section { padding-left: 54px; }
  .guide-steps > section > span { left: 13px; }
  .member-details { padding-left: 13px; padding-right: 13px; }
  .member-details > div { gap: 10px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button-gold, .button-outline, .toast { transition: none; }
}
