

.um {
  --um-ink: #000000;
  --um-paper: #FFFFFF;
  position: relative; z-index: 30;
  display: flex; align-items: center; flex: none;
  width: 29px; height: 29px;
  color: var(--um-ink);
  font-weight: 500; line-height: 1; letter-spacing: 0;
}

.um:not(.is-ready) .um__btn { visibility: hidden; }

.um__btn {
  position: relative; display: grid; place-items: center;
  width: 29px; height: 29px; margin: 0; padding: 0; overflow: visible;
  border: 1.5px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit;
  font: inherit; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s cubic-bezier(0.44, 0, 0.56, 1), opacity 0.25s cubic-bezier(0.44, 0, 0.56, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.um__btn::after { content: ''; position: absolute; inset: -7.5px; border-radius: 50%; } 
.um__btn:hover { background: rgba(127, 127, 127, 0.16); }
.um__btn:active { transform: scale(0.94); }
.um__btn:focus-visible { outline: 2px solid var(--um-ink); outline-offset: 3px; }
.um__btn svg { display: block; width: 15px; height: 15px; }

.um__btn--in { border-color: transparent; background: var(--um-ink); color: var(--um-paper); }
.um__btn--in:hover { background: var(--um-ink); opacity: 0.82; }
.um__btn--in[aria-expanded="true"] { opacity: 1; box-shadow: 0 0 0 3px rgba(127, 127, 127, 0.28); }

.um__initial { display: block; font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: uppercase; text-box: trim-both cap alphabetic; }


.um__photo { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); border-radius: 50%; object-fit: cover; }
.um__btn--photo { border: 0; background: var(--um-ink); color: var(--um-ink); } 
.um__btn--photo:hover { background: var(--um-ink); opacity: 0.86; }
html[lang="ko"] .um__initial { font-weight: 700; }

.um--compact { width: 26px; height: 26px; }
.um--compact .um__btn { width: 26px; height: 26px; }
.um--compact .um__btn::after { inset: -9px; }
.um--compact .um__btn svg { width: 14px; height: 14px; }
.um--compact .um__initial { font-size: 11.5px; }

html.um-fixed .pill.is-open { margin-left: 0 !important; }

.um__btn { filter: var(--hdr-drop); }


.um__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: max-content; min-width: 208px; max-width: min(280px, calc(100vw - 32px));
  padding: 6px; margin: 0;
  background: #FFFFFF; color: #000000;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-size: 15px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; text-align: left; text-shadow: none;
  transform-origin: top right;
  animation: um-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.um__menu[hidden] { display: none; }
@keyframes um-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.um__who { padding: 10px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.um__who b { display: block; overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
html[lang="ko"] .um__who b { font-weight: 700; }
.um__who span { display: block; margin-top: 4px; color: #666666; font-size: 12px; font-weight: 500; }
.um__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 42px; margin: 0; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; color: inherit;
  font: inherit; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.um__item:hover { background: #F2F2F2; }
.um__item:focus { outline: none; }
.um__item:focus-visible { background: #F2F2F2; box-shadow: inset 0 0 0 2px #000000; }
.um__item[aria-current="page"] { font-weight: 600; }
html[lang="ko"] .um__item[aria-current="page"] { font-weight: 700; }
.um__item svg { display: block; width: 18px; height: 18px; flex: none; color: #555555; }
.um__item:disabled { opacity: 0.5; cursor: progress; }
.um__sep { height: 1px; margin: 4px 6px; background: rgba(0, 0, 0, 0.08); }
.um__err { margin: 6px 8px 4px; color: #B42318; font-size: 13px; line-height: 1.45; white-space: normal; }
.um__err:empty { margin: 0; }


html.um-on #nav-session { display: none !important; }


.um--fixed { transition: opacity 0.4s cubic-bezier(0.44, 0, 0.56, 1); }
.js:not(.is-ready) .um--fixed { opacity: 0; pointer-events: none; }


@media (max-width: 767px) {
  .is-menu .um { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .um__menu { animation: none; }
  .um__btn, .um--fixed { transition: none; }
}


.cocoa-login-dialog { position: fixed; inset: 0; margin: 0; border: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 24px 16px; overflow: auto; overscroll-behavior: contain; background: transparent; color: #000; }
.cocoa-login-dialog[open] { display: grid; place-items: center; }
.cocoa-login-dialog::backdrop { background: rgba(6, 18, 40, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cocoa-auth-card { position: relative; width: min(420px, 100%); padding: 36px 28px 26px; border: 0; border-radius: 28px; background: #fff; color: #000; box-shadow: 0 30px 80px rgba(6, 18, 40, .32); text-align: center; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif; font-size: 14px; line-height: 1.55; letter-spacing: -.02em; }
.cocoa-auth-card [hidden] { display: none !important; }
.cocoa-auth-brand { display: block; width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 14px; }
.cocoa-auth-card h2 { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.3; letter-spacing: -.04em; }
.cocoa-auth-hint { margin: 12px 0 24px; color: #666; line-height: 1.65; }
.cocoa-auth-close { position: absolute; display: grid; place-items: center; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #666; cursor: pointer; }
.cocoa-auth-close:hover { background: #f4f4f4; color: #000; }
.cocoa-auth-close svg { width: 20px; height: 20px; }
.cocoa-auth-providers { display: grid; gap: 10px; }
.cocoa-provider { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid rgba(0,0,0,.16); border-radius: 10px; background: #fff; color: #000; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35; cursor: pointer; transition: opacity .2s; }
.cocoa-provider:hover { opacity: .8; }
.cocoa-provider svg { position: absolute; left: 18px; display: block; width: 20px; height: 20px; }
.cocoa-provider--naver { background: #03c75a; border-color: #03c75a; color: #fff; }
.cocoa-provider--kakao { background: #fee500; border-color: #fee500; color: #191919; }
.cocoa-provider[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.cocoa-auth-card :focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.cocoa-auth-note { margin: 20px 0 0; color: #666; font-size: 12px; line-height: 1.7; }
.cocoa-auth-note a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.cocoa-admin-login { display: inline-block; margin-top: 20px; padding: 4px 0; border: 0; background: none; color: #666; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 12px; cursor: pointer; }
.cocoa-auth-error { margin: 0 0 18px; padding: 12px; border-radius: 10px; background: #fdecea; color: #b42318; font-size: 13px; text-align: left; }
@media (max-width: 420px) { .cocoa-auth-card { padding: 32px 22px 22px; border-radius: 24px; } .cocoa-auth-card h2 { font-size: 23px; } }
@media (prefers-reduced-motion: no-preference) { .cocoa-login-dialog[open] .cocoa-auth-card { animation: cocoa-auth-in .25s cubic-bezier(.16,1,.3,1); } @keyframes cocoa-auth-in { from { opacity: 0; transform: translateY(10px) scale(.98); } } }


.cocoa-dl-toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; border-radius: 999px; background: rgba(6, 18, 40, .86); color: #fff; font: 600 14px/1.4 'Pretendard', -apple-system, sans-serif; letter-spacing: -.01em; box-shadow: 0 12px 30px rgba(6, 18, 40, .28); }


.um__item--switch .um__switch { position: relative; flex: none; width: 30px; height: 16px; margin-left: auto; border-radius: 999px; background: #cbd5e1; transition: background .18s; }
.um__item--switch .um__switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s; }
.um__item--switch.is-on .um__switch { background: #16a34a; }
.um__item--switch.is-on .um__switch::after { transform: translateX(14px); }
.um__btn--member-view { position: relative; }
.um__dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: reduce) { .um__item--switch .um__switch, .um__item--switch .um__switch::after { transition: none; } }


:root {
  --hdr-drop: drop-shadow(0 1px 2px rgba(6, 18, 40, 0.40)) drop-shadow(0 3px 10px rgba(6, 18, 40, 0.28));
  --hdr-text: 0 1px 2px rgba(6, 18, 40, 0.55), 0 2px 10px rgba(6, 18, 40, 0.40);
}

.langsw { text-shadow: var(--hdr-text); }
.langsw.is-dark { text-shadow: 0 1px 2px rgba(6, 18, 40, 0.18), 0 2px 8px rgba(6, 18, 40, 0.12); }
