:root {
  color-scheme: dark;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
  --page: #101110;
  --surface: #191b18;
  --ink: #f2f4ef;
  --muted: #a6aca3;
  --line: #343832;
  --strong-line: #535b4e;
  --lime: #65f342;
  --accent-ink: #65f342;
  --hover: #2a2e27;
  --badge: #2b3227;
  --badge-ink: #b1f59e;
  --error: #ffb7a9;
  --icon: #8c9a84;
  --overlay: #000a;
  color: var(--ink);
  background: var(--page);
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f8f9f7;
  --ink: #191c18;
  --muted: #56604f;
  --line: #d9ded5;
  --strong-line: #9aa493;
  --accent-ink: #28791a;
  --hover: #eaf0e6;
  --badge: #e0f5d9;
  --badge-ink: #256b1a;
  --error: #ab3424;
  --icon: #65765b;
  --overlay: #17221166;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:disabled { opacity: .5; cursor: wait; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
.shell { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font: 900 38px/1 Arial, sans-serif; letter-spacing: -.075em; display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.brand span { font: 400 13px/1.6 "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; letter-spacing: 0; color: var(--muted); padding-left: 24px; border-left: 1px solid var(--line); }
.site-link { font-size: 13px; text-decoration: none; color: var(--muted); padding: 12px 0; white-space: nowrap; }
.site-link span { margin-left: 8px; color: var(--accent-ink); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.theme-toggle { border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border-radius: 50%; flex: none; }
.theme-toggle:hover { background: var(--hover); }
.theme-toggle svg { width: 22px; height: 22px; }
.moon-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: var(--hover); }
.account-menu summary svg { width: 18px; height: 18px; }
.chevron { color: var(--muted); }
.account-popover { position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 36px)); padding: 20px; border: 1px solid var(--strong-line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 28px #0002; z-index: 10; }
.account-caption { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
#account { font-size: 14px; overflow-wrap: anywhere; margin-bottom: 16px; }
.account-home, #logout { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; text-decoration: none; font-size: 13px; padding: 10px 12px; border-radius: 4px; color: var(--ink); }
.account-home:hover, #logout:hover { background: var(--hover); }
#logout { text-align: left; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 8px; }
.page-heading { padding: 48px 0 36px; }
.section-label { font-size: 13px; color: var(--accent-ink); margin-bottom: 12px; }
h1 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.2; letter-spacing: -.055em; font-weight: 700; }
.intro { margin-top: 16px; color: var(--muted); font-size: 15px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.inbox { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.inbox-heading { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.inbox-heading h2 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 6px; background: var(--badge); color: var(--badge-ink); font-size: 14px; font-variant-numeric: tabular-nums; padding: 0 8px; }
.live-label { font-size: 12px; color: var(--muted); }
.status { font-size: 13px; color: var(--muted); padding: 16px 28px 0; overflow-wrap: anywhere; }
.status[data-error="true"] { color: var(--error); }
.state-panel { text-align: center; display: flex; align-items: center; flex-direction: column; padding: 60px 32px 76px; min-height: 350px; }
.state-icon { width: 52px; height: 52px; color: var(--icon); margin-bottom: 24px; }
.state-panel h3 { font-size: 21px; font-weight: 600; letter-spacing: -.035em; }
.state-panel p { max-width: 340px; font-size: 14px; color: var(--muted); margin-top: 12px; white-space: pre-line; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 6px; padding: 11px 20px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.primary-button { background: var(--lime); color: #10220c; border: 1px solid var(--lime); }
.primary-button:hover { background: #85fa69; }
.secondary-button { background: transparent; color: var(--ink); border: 1px solid var(--strong-line); }
.secondary-button:hover { background: var(--hover); }
.state-panel button { margin-top: 28px; }
.google-mark { font-family: Arial, sans-serif; font-size: 18px; margin-right: 12px; }
.review-guide { padding: 24px 0; }
.review-guide h2 { font-size: 23px; line-height: 1.5; letter-spacing: -.035em; font-weight: 600; }
.review-guide ol { padding: 0; margin: 28px 0; list-style: none; counter-reset: steps; }
.review-guide li { position: relative; padding-left: 30px; margin-bottom: 24px; counter-increment: steps; }
.review-guide li::before { content: counter(steps); position: absolute; left: 0; top: 1px; font-size: 12px; color: var(--muted); }
.review-guide h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.review-guide li p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.record-note { border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.record-note > span { color: var(--accent-ink); font-size: 20px; }
.application { padding: 28px; border-top: 1px solid var(--line); }
.application:first-child { border-top: 0; }
.application-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.application h3 { font-size: 21px; line-height: 1.5; letter-spacing: -.03em; overflow-wrap: anywhere; }
.pending-label { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 5px; }
.application dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 24px; }
.application dl > div { min-width: 0; }
.application dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.application dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.application-actions { display: flex; justify-content: flex-end; gap: 10px; }
.application-feedback { font-size: 13px; color: var(--error); margin-top: 12px; }
.application-actions button { min-width: 88px; }
.application dl > .wide { grid-column: 1 / -1; }
.external-link { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; }
.external-title { font-size: 14px; font-weight: 600; }
.external-state, .external-help { font-size: 13px; color: var(--muted); }
.external-ship { display: grid; gap: 6px; font-size: 13px; }
.external-ship select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--strong-line); border-radius: 6px; background: var(--page); color: var(--ink); font: inherit; font-size: 15px; max-width: 320px; }
.external-reload { justify-self: start; }
.external-ship input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--strong-line); border-radius: 6px; background: var(--page); color: var(--ink); font: inherit; font-size: 15px; max-width: 220px; }
.status-label { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 5px; }
.status-approved { color: var(--accent-ink); }
.status-rejected { color: var(--error); }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 16px; }
.tabs button { flex: none; min-height: 48px; padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.tabs button:hover:not(:disabled) { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--lime); }
.tabs button:disabled { cursor: default; opacity: .45; }
.text-button { margin-right: auto; min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.history { list-style: none; margin: 16px 0 0; padding: 4px 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.history-head { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.history-head span { color: var(--muted); }
.history-body { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.history-reason { font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.history-empty, .history-error { font-size: 13px; color: var(--muted); }
.history-error { color: var(--error); }
.reject-fields { border: 0; margin: 24px 0 0; padding: 0; min-width: 0; }
.reject-fields legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.reject-fields legend span, .reject-detail-label span { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.reject-codes { display: grid; gap: 4px; }
.reject-code { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.reject-code:hover { background: var(--hover); }
.reject-code input { accent-color: var(--lime); width: 18px; height: 18px; margin: 0; flex: none; }
.reject-detail-label { display: block; font-size: 13px; margin: 16px 0 8px; }
#reject-detail { width: 100%; resize: vertical; min-height: 76px; padding: 10px 12px; border: 1px solid var(--strong-line); border-radius: 6px; background: var(--page); color: var(--ink); font: inherit; font-size: 14px; }
#reject-detail:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.reject-error { color: var(--error); font-size: 13px; margin-top: 10px; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 32px 0 40px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
dialog { width: min(440px, calc(100% - 36px)); padding: 28px; border: 1px solid var(--strong-line); border-radius: 12px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: var(--overlay); }
dialog h2 { font-size: 22px; letter-spacing: -.03em; }
#review-dialog-description { margin-top: 16px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.dialog-actions button { min-width: 100px; }
@media (min-width: 1100px) { .inbox { min-height: 468px; } }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .workspace { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
  .page-heading { padding-top: 36px; }
  .inbox-heading { padding: 20px; }
  .status { padding: 16px 20px 0; }
  .state-panel { padding: 48px 20px 56px; }
  .review-guide h2 { font-size: 20px; }
  .application { padding: 24px 20px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .topbar-inner { min-height: 72px; gap: 12px; }
  .brand { font-size: 32px; }
  .brand span, .desktop-site-link { display: none; }
  .header-actions { gap: 8px; }
  .account-menu summary { padding: 8px 10px; gap: 6px; }
  .page-heading { padding: 32px 0 24px; }
  .intro { font-size: 13px; margin-top: 12px; }
  .section-label { margin-bottom: 10px; }
  .workspace { grid-template-columns: 1fr; gap: 8px; }
  .inbox-heading { padding: 18px; }
  .live-label { font-size: 11px; }
  .inbox-heading h2 { font-size: 16px; }
  .status { padding: 14px 18px 0; font-size: 12px; }
  .state-panel { min-height: 300px; padding: 40px 18px 48px; }
  .state-panel h3 { font-size: 20px; }
  .state-panel p { font-size: 13px; }
  .state-panel .primary-button { width: 100%; max-width: 280px; }
  .review-guide { padding: 28px 4px 0; }
  .review-guide h2 br { display: none; }
  .review-guide h2 { font-size: 20px; }
  .review-guide ol { margin: 24px 0; }
  .review-guide li { margin-bottom: 20px; }
  .record-note br { display: none; }
  .application { padding: 24px 18px; }
  .application h3 { font-size: 19px; }
  .application dl { gap: 16px; }
  .application-actions { flex-wrap: wrap; }
  .application-actions button { flex: 1; min-height: 48px; }
  .application-actions .text-button { flex: 1 0 100%; text-align: left; min-height: 40px; }
  .tabs { padding: 0 6px; }
  dialog { padding: 22px 20px; }
  footer { margin-top: 28px; flex-direction: column; gap: 6px; padding: 24px 0 32px; }
}
/* 가입 신청 알림 켜기(관리자 기기) */
.admin-push { display: grid; gap: 10px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-push[hidden] { display: none; }
.admin-push .secondary-button { justify-self: start; }
.admin-push-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
