/* 마이(게스트) · 로그인 유도 팝업 (시안 "마이 · 로그인 유도 · 모바일 컬러" M06 · M07). 모바일 시안(1080 폭)의 치수를
   홈 PC 시안과 같은 비율로 줄였습니다. 색 · 폭 변수는 app.css의 :root에 있습니다. */

.my {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

.my__header {
    display: flex;
    align-items: center;
    flex: none;
    height: 62px;
    padding: 0 24px;
}

.my__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    /* 아래에 떠 있는 탭바에 마지막 줄이 가리지 않게 */
    padding: 4px 0 104px;
    scrollbar-width: thin;
    scrollbar-color: #544c63 transparent;
}

/* 탭바의 탭이 링크일 때 (홈 · 마이) */
a.tab-bar__tab { text-decoration: none; }

/* ───────── 로그인 유도 카드 ───────── */

.login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 24px;
    padding: 30px 24px 28px;
    border-radius: 18px;
    background: var(--surface);
    text-align: center;
}

.login-card__title {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    white-space: pre-line;
}

.login-card__text {
    margin: 16px 0 20px;
    color: var(--text-mute);
    font-size: 15px;
    line-height: 20px;
}

/* 가입 혜택 그림: 뒤에 기울어진 봉투, 앞에 티켓 */
.benefit {
    position: relative;
    flex: none;
    width: 184px;
    height: 80px;
}

.benefit__envelope {
    position: absolute;
    left: 86px;
    top: 0;
    width: 92px;
    height: 66px;
    border-radius: 6px;
    background: #a590d8;
    transform: rotate(12deg);
}

.benefit__ticket {
    position: absolute;
    left: 0;
    top: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 132px;
    height: 66px;
    padding-top: 10px;
    border-radius: 4px;
    background: #f0edf5;
    color: #6c4fc4;
    font-size: 10px;
    line-height: 12px;
}

.benefit__badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #6c4fc4;
    color: #fff;
    font-weight: 700;
}

.benefit__dash {
    width: 118px;
    height: 1px;
    margin: 7px 0 7px;
    background: var(--text-mute);
}

/* 소셜 로그인 버튼: [공식 로고 ○○로 계속하기] — 색은 각 회사 버튼 규칙 (Google 흰 바탕 · 회색 테두리, Apple 검은 바탕)
   마이 카드에서는 두 개를 가로로, 좁은 화면이면 아래로 내림 · 로그인 팝업은 세로로 */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 12px;
    width: 100%;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 26px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.social-button__logo { width: 20px; height: 20px; flex: none; }

.social-button--google { border-color: #747775; background: #fff; color: #1f1f1f; }
.social-button--kakao { background: #fee500; color: #191600; }
.social-button--apple { border-color: var(--border); background: #000; color: #fff; }

/* ───────── 프로필 카드 (로그인 후 — 시안이 나오기 전의 임시 모양) ───────── */

/* 좌우 여백은 아래 내 코인 카드(.my-coin)와 같게 — 두 카드의 폭이 맞도록 */
.my-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 16px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--surface);
}

.my-profile__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--text-sub);
}

.my-profile__name {
    min-width: 0;
    overflow: hidden;
    font-size: 20px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-profile__name { flex: 1; }

.my-profile__edit {
    display: inline-flex;
    align-items: center;
    flex: none;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* 로그인 완료 화면 (로그인 페이지에서 돌아오는 곳) */
.auth-callback { min-height: 100vh; min-height: 100dvh; padding-top: 30vh; text-align: center; }

.auth-callback__home { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 15px; }

/* ───────── 메뉴 묶음 ───────── */

.my-section { margin-top: 26px; }

.my-section__title {
    margin: 0 0 6px;
    padding: 0 24px;
    color: var(--text-mute);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}

.my-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: calc(100% - 24px);
    height: 54px;
    margin: 0 12px;
    padding: 0 20px 0 22px;
    border-radius: 12px;
    font-size: 18px;
    text-align: left;
}

.my-row:hover { background: var(--surface); }

.my-row > .icon { flex: none; color: var(--text-sub); }

/* 공식 X · 디스코드 로고 (흰색 그대로 — 브랜드 규칙상 색을 바꾸지 않음), 선 아이콘(22)과 같은 칸 */
.my-row__logo { flex: none; width: 22px; height: 22px; object-fit: contain; }

.my-row__name { flex: 1; min-width: 0; }

.my-row__value { color: var(--text-mute); font-size: 16px; }

.my-row > .my-row__arrow { margin-left: -6px; color: var(--text-mute); }

/* ───────── 외부 링크 이동 시트 (M22 — 공식 X · 디스코드) ───────── */
.external-sheet__sub { margin: 10px 8px 0; color: var(--text-sub); font-size: 15px; line-height: 22px; }

.external-sheet__skip { display: flex; align-items: center; gap: 10px; margin: 18px 8px 0; color: var(--text-sub); font-size: 14px; cursor: pointer; }

.external-sheet__actions { margin: 20px 8px 8px; }

/* 링크로 만든 [이동하기]도 버튼과 같은 높이 · 가운데 글자 */
.external-sheet__go { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ───────── 로그인 유도 팝업 (M07) ───────── */

.login-prompt {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: min(420px, calc(100% - 48px));
    transform: translate(-50%, -50%);
    animation: prompt-in 0.16s ease-out;
}

@keyframes prompt-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-prompt__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 32px 24px 26px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-raised);
    text-align: center;
}

.login-prompt__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 30px; }

.login-prompt__text {
    margin: 14px 0 34px;
    color: var(--text-sub);
    font-size: 16px;
    line-height: 25px;
    white-space: pre-line;
}

.login-prompt__card .social-buttons { grid-template-columns: 1fr; margin-top: 40px; }

.login-prompt__terms { margin: 18px 0 0; color: var(--text-mute); font-size: 12px; line-height: 16px; }

.login-prompt__close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-raised);
}

@media (max-width: 520px) {
    .login-card { margin: 0 16px; padding: 26px 16px 24px; }
    .login-card__title { font-size: 22px; line-height: 30px; }
    .my-profile { margin: 0 16px; padding: 18px 16px; }
    .my-section__title { padding: 0 16px; }
    .my-row { width: calc(100% - 8px); margin: 0 4px; padding: 0 12px 0 14px; }
    .login-prompt__text { font-size: 15px; }
}

/* 시험 계정 로그인 칸 (테스트 환경만) */
.test-login {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.test-login__title { margin: 0; color: var(--alert); font-size: 13px; font-weight: 700; }

.test-login__field {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

.test-login__button {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.test-login__button:disabled { opacity: .5; cursor: default; }

.test-login__error { margin: 0; color: var(--danger); font-size: 13px; }

/* 약관 동의 창 (앱 S03) — 로그인 유도 팝업과 같은 자리 · 모양, 다른 창보다 위 */
.consent-dim { z-index: 30; }

.consent {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 31;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: min(440px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    transform: translate(-50%, -50%);
    animation: prompt-in 0.16s ease-out;
}

.consent__card {
    width: 100%;
    overflow-y: auto;
    padding: 28px 22px 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-raised);
}

.consent__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 30px; text-align: center; }

.consent__desc { margin: 8px 0 22px; color: var(--text-sub); font-size: 15px; text-align: center; }

.consent__divider { margin: 10px 0; }

.consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
}

.consent-row__check,
.consent-row--all {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.consent-row .checkbox { flex: none; }

.consent-row__label { font-size: 15px; line-height: 21px; }

.consent-row--all .consent-row__label { font-size: 17px; font-weight: 700; }

.consent-row__view { flex: none; color: var(--text-mute); font-size: 13px; }

.consent__note { margin: 14px 0 18px; color: var(--text-mute); font-size: 12px; text-align: center; }

.consent__cta { height: 54px; font-size: 17px; }

.consent__cta:disabled { opacity: .4; cursor: default; }

/* 약관 및 정책 · 이용약관 */
.legal-list { display: flex; flex-direction: column; padding: 8px 0; }

.legal-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    color: var(--text);
    font-size: 17px;
    text-decoration: none;
}

.legal-doc { overflow-y: auto; padding: 8px 20px 60px; color: var(--text-sub); font-size: 14px; line-height: 23px; }

.legal-doc__chapter { margin: 28px 0 8px; color: var(--text); font-size: 18px; font-weight: 700; }

.legal-doc__article { margin: 18px 0 4px; color: var(--text); font-size: 15px; font-weight: 700; }

.legal-doc__text { margin: 0 0 4px; white-space: pre-line; }

.consent-row.consent-row--all { justify-content: flex-start; }

/* 내 페르소나 (M08 목록 · M09 생성/수정) */
.persona__hint { margin: 4px 20px 16px; color: var(--text-sub); font-size: 13px; line-height: 20px; }

.persona-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 16px 10px;
    padding: 14px 8px 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.persona-card__avatar { width: 56px; height: 56px; }

.persona-card__body { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }

.persona-card__head { display: flex; align-items: center; gap: 8px; }

.persona-card__name { overflow: hidden; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.persona-card__sub { color: var(--text-sub); font-size: 13px; }

.persona-card__date { color: var(--text-mute); font-size: 12px; }

.persona-card__more { flex: none; color: var(--text-sub); }

.persona__add {
    display: block;
    width: calc(100% - 32px);
    height: 52px;
    margin: 6px 16px 0;
    border: 1.5px dashed var(--border);
    border-radius: 16px;
    color: var(--text-sub);
    font-size: 15px;
    text-align: center;
}

.persona-edit { padding: 0 16px 24px; }

.persona-edit .persona__hint { margin: 4px 4px 16px; }

.persona-edit__photo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }

.persona-edit__current { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

.persona-edit__upload { width: 96px; height: 96px; border-radius: 50%; }

.persona-edit__genders { display: flex; flex-direction: column; gap: 4px; }

.persona-edit__save { height: 54px; font-size: 17px; }

.persona-edit__save:disabled { opacity: .4; cursor: default; }

/* 마이 코인 카드 (앱 M06) */
.my-coin {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* 위 프로필 카드와 붙지 않게 간격 */
    margin: 12px 16px 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-raised);
}

.my-coin__head { display: flex; align-items: center; justify-content: space-between; }

.my-coin__label { color: var(--text-sub); font-size: 13px; }

.my-coin__history { color: var(--text-mute); font-size: 13px; text-decoration: none; }

.my-coin__amount { font-size: 22px; font-weight: 700; }

.my-coin__amount.is-debt { color: var(--danger); }

.my-coin__split, .my-coin__note { color: var(--text-mute); font-size: 12px; }

.my-coin__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }

.my-coin__free { color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }

.my-coin__charge { width: auto; height: 38px; padding: 0 18px; font-size: 14px; }

/* 마이 하위 목록 공통 (좋아요 · 차단) */
.my-list__count { margin: 4px 20px 10px; color: var(--text-mute); font-size: 13px; }

.my-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; }

.my-list-row__main { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }

.my-list-row__thumb { flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 12px; background: var(--placeholder); }

.my-list-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.my-list-row__avatar { width: 48px; height: 48px; }

.my-list-row__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.my-list-row__title { overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.my-list-row__sub { overflow: hidden; color: var(--text-sub); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.my-list-row__like { flex: none; color: var(--danger); }

.my-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 120px 32px 0; text-align: center; }

.my-empty__title { margin: 0; font-size: 17px; font-weight: 700; }

.my-empty__desc { margin: 0; color: var(--text-sub); font-size: 14px; }

.my-empty__cta { display: grid; place-items: center; width: 220px; height: 50px; margin-top: 14px; font-size: 15px; text-decoration: none; }

/* 공지사항 */
.notice-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }

.notice-row__title { font-size: 15px; font-weight: 500; }

.notice-row.is-unread .notice-row__title { font-weight: 700; }

.notice-row.is-unread .notice-row__title::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

.notice-row__meta { color: var(--text-mute); font-size: 12px; }

.notice-doc { padding: 8px 20px 20px; }

.notice-doc__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 27px; }

.notice-doc__meta { margin: 0 0 16px; color: var(--text-mute); font-size: 12px; }

.notice-doc__image { width: 100%; margin-bottom: 14px; border-radius: 12px; }

.notice-doc__body { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 24px; white-space: pre-line; }

.notice-doc__nav { display: flex; flex-direction: column; border-top: 1px solid var(--border); }

.notice-doc__link { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--text-sub); font-size: 14px; text-decoration: none; }

.notice-doc__link span:first-child { flex: none; color: var(--text-mute); }

/* 서비스 설정 · 탈퇴 */
.settings__section { margin: 18px 20px 6px; color: var(--text-mute); font-size: 13px; font-weight: 500; }

.settings-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }

.settings-row__body { display: flex; flex: 1; flex-direction: column; gap: 3px; }

.settings-row__title { font-size: 16px; }

.settings-row__sub { color: var(--text-mute); font-size: 12px; }

.settings-row__toggle { flex: none; cursor: pointer; }

.settings-row__toggle:disabled { opacity: .5; cursor: default; }

.settings-link { display: block; width: 100%; height: 52px; padding: 0 20px; font-size: 16px; text-align: left; }

.settings-link--muted { color: var(--text-mute); font-size: 14px; }

.withdraw { padding: 8px 20px; }

.withdraw__heading { margin: 0 0 12px; font-size: 18px; font-weight: 700; }

.withdraw__notes { margin: 0 0 16px; padding-left: 18px; color: var(--text-sub); font-size: 14px; line-height: 23px; }

.withdraw__summary { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; }

.withdraw__agree { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }

.withdraw__cta { height: 54px; background: var(--danger); color: #fff; font-size: 17px; }

.withdraw__cta:disabled { opacity: .4; cursor: default; }

/* 차단 목록 · 코인 내역 탭 */
.blocks__counter { margin-left: auto; color: var(--text-mute); font-size: 13px; }

.blocks__tabs { display: flex; flex: none; gap: 8px; padding: 4px 16px 10px; }

.blocks__tab { height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-sub); font-size: 14px; }

.blocks__tab.is-active { border-color: var(--accent); background: var(--surface-selected); color: var(--text); font-weight: 700; }

.blocks__unblock { flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 13px; }

.blocks__unblock:disabled { opacity: .4; }

.coin-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }

.coin-row__body { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }

.coin-row__title { font-size: 15px; }

.coin-row__meta { color: var(--text-mute); font-size: 12px; }

.coin-row__amount { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 3px; }

.coin-row__delta { font-size: 15px; font-weight: 700; }

.coin-row__delta.is-plus { color: var(--accent); }

.coin-row__balance { color: var(--text-mute); font-size: 12px; }

.coin-history__footer { margin: 18px 20px; color: var(--text-mute); font-size: 12px; text-align: center; }

/* 무료 코인 (M16) */
.free { padding: 4px 16px 24px; }

.free-card { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }

.free-card__title { margin: 0; font-size: 17px; font-weight: 700; }

.free-card__desc, .free-card__note { margin: 0; color: var(--text-sub); font-size: 13px; }

.free-card__rules { margin: 0; padding: 0; color: var(--text-mute); font-size: 12px; line-height: 20px; list-style: none; }

.free-card__cta { height: 48px; font-size: 15px; }

.free-card__cta:disabled { opacity: .5; cursor: default; }

.attendance { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }

.attendance__day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border: 1px solid var(--border); border-radius: 10px; color: var(--text-mute); font-size: 11px; }

.attendance__day.is-done { border-color: var(--accent); background: var(--surface-selected); color: var(--text); }

.attendance__day.is-today { border-color: var(--accent); }

.attendance__coin { font-size: 12px; font-weight: 700; }

.referral-code, .referral-redeem { display: flex; align-items: center; gap: 8px; }

.referral-code__value { flex: 1; padding: 12px 14px; border-radius: 10px; background: var(--surface-raised); font-size: 16px; font-weight: 700; letter-spacing: .04em; }

.referral-redeem .text-field { flex: 1; }

.referral-code__copy { flex: none; height: 44px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; }

.referral-code__copy:disabled { opacity: .4; }

.notice-doc__heading { margin: 18px 0 6px; color: var(--text); font-size: 16px; font-weight: 700; }

/* 문단(빈 줄로 나뉜 덩어리) 사이는 빈 줄 하나만큼 — 문단 안의 줄바꿈은 .notice-doc__body의 pre-line */
.notice-doc .notice-doc__body { margin-bottom: 18px; }

/* 내 취향 (Figma 602:2 W03) */
.mk-bar__action { flex: none; padding: 6px 4px; color: var(--accent); font-size: 16px; font-weight: 700; }

.mk-bar__action:disabled { opacity: .5; }

.my-taste { padding: 4px 20px 32px; }

.my-taste__section { padding: 18px 0; border-bottom: 1px solid var(--border); }

.my-taste__head { display: flex; align-items: baseline; gap: 12px; }

.my-taste__title { margin: 0; font-size: 18px; font-weight: 700; }

.my-taste__count { color: var(--text-mute); font-size: 13px; }

.my-taste__desc { margin: 6px 0 12px; color: var(--text-mute); font-size: 13px; }

.my-taste__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.my-taste__ghost { border-style: dashed; background: transparent; color: var(--text-mute); }

.my-taste__keyword { display: inline-flex; align-items: center; height: 35px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }

.my-taste__keyword.is-pinned { border-color: var(--accent); }

.my-taste__keyword-main { display: inline-flex; align-items: center; gap: 5px; height: 100%; padding: 0 6px 0 16px; color: var(--text); font-size: 13px; }

.my-taste__keyword.is-pinned .my-taste__keyword-main { color: var(--accent); }

.my-taste__remove { display: grid; place-items: center; width: 30px; height: 100%; color: var(--text-mute); }

.my-taste__axis { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; margin-top: 8px; padding: 0 14px; border-radius: 12px; background: var(--surface); }

.my-taste__axis-name { font-size: 15px; font-weight: 500; }

.my-taste__axis-count { flex: 1; color: var(--text-mute); font-size: 13px; }

.my-taste__chevron { transition: transform .15s; }

.my-taste__axis.is-open .my-taste__chevron { transform: rotate(90deg); }

.my-taste__add { padding: 12px 2px 4px; }

.my-taste .settings-row { padding: 18px 0 8px; }

.my-taste__save { margin-top: 18px; height: 54px; font-size: 17px; }

/* 닉네임 창 (앱 S04) — 약관 창과 같은 자리 · 카드, 가입 마지막 단계와 마이 › 닉네임 변경이 함께 씀 */
.nickname__desc { white-space: pre-line; }

.nickname__field { position: relative; }

.nickname__input { width: 100%; padding-right: 64px; }

.nickname__count {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-mute);
    font-size: 13px;
    pointer-events: none;
}

.nickname__status { margin: 10px 2px 0; color: var(--danger); font-size: 13px; line-height: 19px; }

.nickname__status.is-ok { color: var(--accent); }

.nickname__rule { margin: 6px 2px 22px; color: var(--text-mute); font-size: 12px; }

/* 본인 인증 창 (앱 AgeVerificationView · 시안 753:558 S02) — 약관 · 닉네임 창과 같은 자리 · 카드 */
.age__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 18px 0 20px;
    padding: 22px 16px 18px;
    border-radius: 18px;
    background: var(--surface);
    text-align: center;
}

.age__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-size: 20px;
    font-weight: 700;
}

.age__headline { margin: 0; font-size: 20px; font-weight: 700; line-height: 28px; white-space: pre-line; }

.age__sub { margin: 0; color: var(--text-mute); font-size: 13px; }

.age__label { margin: 0 0 8px; color: var(--text-sub); font-size: 14px; font-weight: 600; }

.age__info { margin-bottom: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }

.age__info-title { margin: 0; font-size: 15px; font-weight: 700; }

.age__info-desc { margin: 2px 0 0; color: var(--text-mute); font-size: 13px; }

.age__agree { margin-top: 10px; }

.age__message { margin: 0 2px 12px; }

/* 본인 인증 결과 확인 (NICE 화면에서 돌아온 직후) */
.age-return { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; }

.age-return__message { margin: 0; color: var(--text-sub); font-size: 16px; }

/* 토스트의 [되돌리기] */
.toast__action {
    margin-left: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* 작가 프로필 (Figma 788:176 F01 · F05) */
.creator { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

.creator-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--text);
    pointer-events: none;
}

.creator-bar .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 18, 26, 0.55);
    pointer-events: auto;
}

.creator__scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 40px; }

.creator-head { position: relative; padding: 0 24px 20px; }

.creator-head__cover {
    height: 210px;
    margin: 0 -24px;
    overflow: hidden;
    background: var(--surface);
}

.creator-head__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .75; }

.creator-avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    overflow: hidden;
    width: 96px;
    height: 96px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--accent);
    font-size: 34px;
    font-weight: 700;
}

.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }

.creator-head .creator-avatar { margin-top: -48px; position: relative; }

.creator-avatar--small { width: 48px; height: 48px; border: 0; font-size: 18px; }

.creator-head__name { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 24px; font-weight: 700; }

.creator-head__nickname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.creator-official {
    flex: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 12px;
    font-weight: 700;
}

.creator-head__bio { margin: 8px 0 0; color: var(--text-sub); font-size: 14px; line-height: 21px; white-space: pre-line; overflow-wrap: anywhere; }

.creator-stats { display: flex; gap: 32px; margin: 16px 0; }

.creator-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }

.creator-stats dt { color: var(--text-sub); font-size: 13px; }

.creator-stats dd { margin: 0; font-size: 18px; font-weight: 700; }

.creator-follow-row { display: flex; gap: 10px; }

.creator-follow {
    flex: 1;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.creator-follow.is-following { background: var(--surface-raised); color: var(--text); }

.creator-bell {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--text-mute);
    cursor: pointer;
}

.creator-bell.is-on { color: var(--accent); }

.creator-tabs { display: flex; border-bottom: 1px solid var(--border); }

.creator-tabs__tab {
    flex: 1;
    height: 48px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--text-mute);
    font-size: 15px;
    text-align: center;
    cursor: pointer;
}

.creator-tabs__tab.is-active { border-bottom-color: var(--accent); color: var(--text); font-weight: 700; }

.creator-sort { display: flex; justify-content: flex-end; padding: 12px 24px 4px; }

.creator-sort__button {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--text-sub);
    font-size: 13px;
    cursor: pointer;
}

.creator-works { padding: 8px 24px 0; }

.creator-work { position: relative; min-width: 0; }

.creator-work__badge { position: absolute; right: 8px; top: 8px; }

.creator-empty { margin: 48px 0; color: var(--text-sub); font-size: 14px; text-align: center; }

.creator-intro { padding: 20px 24px; }

.creator-intro__bio { margin: 0 0 20px; font-size: 15px; line-height: 23px; white-space: pre-line; overflow-wrap: anywhere; }

.creator-intro__bio.is-empty { color: var(--text-mute); }

.creator-intro__label { margin: 18px 0 8px; color: var(--text-sub); font-size: 13px; font-weight: 500; }

.creator-intro__value { margin: 0; font-size: 15px; }

.creator-sheet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    font-size: 16px;
    cursor: pointer;
}

.creator-sheet-unfollow {
    display: block;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.creator-sheet-note { margin: 0 0 14px; color: var(--text-mute); font-size: 13px; }

/* 마이 › 팔로잉 (F07) */
.following-count { color: var(--text-mute); font-size: 14px; }

.following-sort { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; }

.following-sort__option {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: none;
    color: var(--text-sub);
    font-size: 13px;
    cursor: pointer;
}

.following-sort__option.is-selected { border-color: var(--accent); color: var(--accent); }

.following-row { display: flex; align-items: center; gap: 10px; min-height: 72px; border-bottom: 1px solid var(--border); }

.following-row__main { display: flex; align-items: center; flex: 1; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }

.following-row__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.following-row__name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }

.following-row__nickname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.following-row__sub { overflow: hidden; color: var(--text-sub); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.following-row__sub.is-new { color: var(--accent); }

.following-row__unfollow {
    flex: none;
    padding: 6px 10px;
    border: 0;
    background: none;
    color: var(--text-mute);
    font-size: 13px;
    cursor: pointer;
}

.following-row__unfollow:hover { color: var(--danger); }

/* 내 작가 프로필 (F06): 비공개 탭 · 편집 시트 */
.creator-private { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--border); }

.creator-private__cover { flex: none; overflow: hidden; width: 48px; height: 64px; border-radius: 8px; background: var(--surface-raised); }

.creator-private__cover img { width: 100%; height: 100%; object-fit: cover; }

.creator-private__title { flex: 1; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.creator-edit__avatar { display: flex; align-items: center; gap: 14px; margin: 0 8px; }

.creator-edit__upload { flex: none; width: 48px; height: 48px; min-height: 0; aspect-ratio: 1; }

.creator-edit__option .radio { appearance: auto; accent-color: var(--accent); }

.creator-edit__row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin: 0 8px; }

.creator-edit__nickname { font-size: 15px; font-weight: 700; }

.creator-edit__link { padding: 6px 0; border: 0; background: none; color: var(--accent); font-size: 14px; cursor: pointer; }

.creator-edit__counter { margin: 4px 8px 0; color: var(--text-mute); font-size: 12px; text-align: right; }

.creator-edit__desc { margin: 0 8px 6px; color: var(--text-sub); font-size: 13px; }

.creator-edit__option { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 8px; font-size: 15px; cursor: pointer; }

/* 검색 (Figma 767:2) */
.search { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

.search-bar { display: flex; align-items: center; flex: none; gap: 8px; padding: 12px 16px; color: var(--text); }

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 22px;
    background: var(--surface-raised);
    color: var(--text-mute);
}

.search-box:focus-within { border-color: var(--accent); }

.search-box__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 15px; }

.search-box__input::placeholder { color: var(--text-mute); }

.search-box__input::-webkit-search-cancel-button { display: none; }

.search-box__clear { display: grid; place-items: center; padding: 4px; border: 0; background: none; color: var(--text-mute); cursor: pointer; }

.search__scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 40px; }

.search-section { padding: 14px 24px 10px; }

.search-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.search-section__title { margin: 0 0 10px; font-size: 17px; font-weight: 700; }

.search-section__head .search-section__title { margin-bottom: 10px; }

.search-section__action { padding: 0; border: 0; background: none; color: var(--text-sub); font-size: 13px; cursor: pointer; }

.search-section__note { color: var(--text-mute); font-size: 13px; }

.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: none;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

.search-chip--removable { padding-right: 8px; background: var(--surface); cursor: default; }

.search-chip__text { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

.search-chip__remove { display: grid; place-items: center; padding: 2px; border: 0; background: none; color: var(--text-mute); cursor: pointer; }

.search-popular { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 24px; margin: 0; padding: 0; list-style: none; }

.search-popular__row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0; border: 0; background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }

.search-popular__rank { flex: none; width: 18px; color: var(--accent); font-weight: 700; }

.search-popular__query { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.search-popular__change { flex: none; color: var(--text-mute); font-size: 12px; }

.search-popular__change.is-up { color: var(--accent); }

.search-popular__change.is-down { color: var(--danger); }

.search-viewed { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }

.search-mark { color: var(--accent); font-weight: 700; }

.search-suggest { padding: 4px 24px; }

.search-suggest__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }

.search-suggest__query { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }

.search-suggest__thumb, .search-suggest__mark { display: grid; place-items: center; flex: none; overflow: hidden; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-raised); color: var(--accent); font-size: 18px; font-weight: 700; }

.search-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-suggest__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.search-suggest__title { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }

.search-suggest__sub { overflow: hidden; color: var(--text-mute); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.search-suggest__fill { flex: none; padding: 8px; border: 0; background: none; color: var(--text-mute); font-size: 16px; cursor: pointer; }

.creator-tabs__tab.is-empty { opacity: .5; }

.search-conditions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px 0; }

.search-condition { padding: 4px 12px; border-radius: 999px; background: var(--surface-raised); color: var(--text-sub); font-size: 12px; }

.search-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 24px 0; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text-sub); font-size: 13px; }

.search-notice__close { display: grid; place-items: center; padding: 2px; border: 0; background: none; color: var(--text-mute); cursor: pointer; }

.search-other { margin: 10px 24px 0; color: var(--accent); font-size: 13px; }

.search-empty__title { margin: 16px 0 6px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }

.search-empty__desc { margin: 0; color: var(--text-sub); font-size: 14px; }

.search-works-head { padding: 14px 24px 6px; }

.search-grid { padding: 0 24px; }

.search-work { display: flex; gap: 12px; padding: 8px 0; color: inherit; text-decoration: none; }

.search-work__cover { position: relative; display: block; flex: none; overflow: hidden; width: 72px; height: 96px; border-radius: 10px; background: var(--surface-raised); }

.search-work__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.search-work__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.search-work__title { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.search-work__line, .search-work__meta, .search-work__stats { overflow: hidden; color: var(--text-sub); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.search-work__meta, .search-work__stats { color: var(--text-mute); font-size: 12px; }

.search-work--card { flex-direction: column; gap: 8px; padding: 0; }

.search-work--card .search-work__cover { width: 100%; height: auto; aspect-ratio: 480 / 504; }

.search-author { display: flex; align-items: center; gap: 12px; padding: 8px 0; }

.search-author__main { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }

.search-author__avatar { flex: none; overflow: hidden; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-raised); }

.search-author__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.search-author__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.search-author__name { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.search-author__meta { color: var(--text-mute); font-size: 12px; }

.search-author__works { display: flex; flex: none; gap: 6px; }

.search-author__thumb { display: block; overflow: hidden; width: 44px; height: 58px; border-radius: 6px; background: var(--surface-raised); }

.search-author__thumb img { width: 100%; height: 100%; object-fit: cover; }

.menu-item__desc { color: var(--text-mute); font-size: 13px; }

.menu-item.is-selected .menu-item__title { color: var(--accent); }

/* 알림 센터 (Figma 774:173 N01 · N02 · N08) */
.notif-read-all { padding: 6px 4px; border: 0; background: none; color: var(--text-sub); font-size: 14px; cursor: pointer; }

.notif-chips { display: flex; gap: 8px; padding: 4px 16px 12px; }

.notif-group { margin: 16px 16px 6px; color: var(--text-mute); font-size: 13px; font-weight: 500; }

.notif-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: calc(100% - 16px);
    margin: 0 8px 4px;
    padding: 14px 8px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.notif-row.is-unread { background: var(--surface-raised); }

.notif-row__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--accent); }

.notif-row__text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }

.notif-row__title { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }

.notif-row__body { color: var(--text-sub); font-size: 13px; line-height: 19px; overflow-wrap: anywhere; }

.notif-row__side { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 8px; }

.notif-row__time { color: var(--text-mute); font-size: 12px; }

.notif-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.notif-footer { margin: 18px 0; color: var(--text-mute); font-size: 13px; text-align: center; }

.notif-empty-desc { white-space: pre-line; }

.notif-settings-note { margin: 0 20px 18px; color: var(--text-sub); font-size: 13px; }

/* 크리에이터 정산 (앱 M21 · Figma 733:2 R01 · R02 · G01) */
.settle__guide-open { margin-left: auto; color: var(--text-sub); }

.settle-card { margin: 12px 20px 0; padding: 16px 18px; border-radius: 16px; background: var(--surface); }

.settle-card--main { background: var(--surface-selected); }

.settle-card__label { color: var(--text-sub); font-size: 14px; font-weight: 500; }

.settle-card__amount { margin-top: 6px; font-size: 28px; font-weight: 700; }

.settle-card__month { margin-top: 6px; color: var(--accent); font-size: 20px; font-weight: 700; }

.settle-card__note { margin-top: 6px; color: var(--text-mute); font-size: 12px; line-height: 18px; }

.settle-card__convert { height: 50px; margin-top: 14px; font-size: 16px; }

.settle-card__notice { margin-top: 10px; color: var(--alert); font-size: 13px; line-height: 19px; }

.settle-section { margin-top: 24px; }

.settle-section__head { display: flex; align-items: center; justify-content: space-between; padding-right: 20px; }

.settle-section__title { padding: 0 20px 8px; font-size: 16px; font-weight: 700; }

.settle-section__head .settle-section__title { padding-bottom: 0; }

.settle-toggle { display: flex; padding: 3px; border-radius: 999px; background: var(--surface); }

.settle-toggle__item { padding: 5px 12px; border-radius: 999px; color: var(--text-sub); font-size: 13px; }

.settle-toggle__item.is-active { background: var(--surface-raised); color: var(--accent); font-weight: 700; }

.settle-row .coin-row__title { overflow-wrap: anywhere; }

.settle-sheet__available { margin: 8px 8px 0; color: var(--text-sub); font-size: 14px; }

.settle-sheet__input {
    display: block;
    width: calc(100% - 16px);
    height: 48px;
    margin: 0 8px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: var(--surface-raised);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.settle-sheet__input:focus { border-color: var(--accent); }

.settle-sheet__quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 8px 0; }

.settle-sheet__chip { padding: 7px 14px; border-radius: 999px; background: var(--surface-raised); font-size: 13px; }

.settle-sheet__chip:disabled { opacity: 0.35; }

.settle-sheet__guide { margin: 10px 8px 0; color: var(--text-mute); font-size: 13px; line-height: 19px; }

.settle-sheet__guide.is-error { color: var(--alert); }

.settle-sheet__notice { margin: 8px; color: var(--text-mute); font-size: 12px; line-height: 18px; }

.settle-guide__summary { font-size: 17px; font-weight: 700; line-height: 25px; white-space: pre-line; }

.settle-guide__item { margin: 10px 20px 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); }

.settle-guide__item summary { font-size: 15px; font-weight: 700; cursor: pointer; }

.settle-guide__item p { margin-top: 10px; color: var(--text-sub); font-size: 14px; line-height: 22px; white-space: pre-line; }
