/**
 * THEO account and membership surfaces.
 * Desktop, tablet and mobile use distinct information order and navigation.
 */

.theo-account-main,
.theo-membership-main { padding-top: var(--header-height); }

.theo-account-main .field { display: grid; gap: 8px; }
.theo-account-main .field > span { font-size: 14px; font-weight: 600; }
.theo-account-main .field :is(input, select) {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #a3a3a3;
  border-radius: 0;
  color: var(--color-ink);
  background: var(--color-white);
  outline: 0;
  transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}
.theo-account-main .field input:focus { border-color: var(--color-focus); box-shadow: 0 0 0 3px rgba(17, 17, 17, .16); }
.theo-account-main .field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23444' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.theo-account-main .field select:focus { border-color: var(--color-focus); box-shadow: 0 0 0 3px rgba(17, 17, 17,.16); }
.theo-member-room .theo-artplacer-order__feedback { display: grid; justify-items: start; gap: 16px; }
.theo-member-room .theo-artplacer-order__feedback :is(h3,p) { margin: 0; }
.theo-account-main .field input:disabled { color: #707070; background: #f6f6f6; }
.theo-account-main .field input[readonly] { color: var(--color-ink); background: #fbfbfb; }
.theo-account-main .field small { color: var(--color-neutral); font-size: 14px; line-height: 1.55; }
.theo-account-main .field small.is-verified { color: var(--color-success); font-weight: 600; }
.theo-account-main .field small.is-waiting { color: var(--color-warning-text, #775600); font-weight: 600; }

/* Guest account entry */
.theo-account-entry { min-height: calc(100svh - var(--header-height)); padding: 32px 0 56px; background: var(--color-warm); }
.theo-account-entry__layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(520px, 1.15fr); gap: clamp(56px, 7vw, 112px); align-items: start; }
.theo-account-entry__intro { position: sticky; top: calc(var(--header-collapsed-height) + 40px); padding: 24px 0; }
.theo-account-entry__intro h1 { margin-bottom: 24px; font-size: clamp(38px, 4vw, 56px); font-weight: 600; line-height: 1.18; letter-spacing: -.045em; }
.theo-account-entry__intro > p:not(.eyebrow) { max-width: 520px; margin-bottom: 40px; color: var(--color-neutral); font-size: 17px; line-height: 1.75; }
.theo-account-entry__intro ul { display: grid; gap: 0; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--color-line); list-style: none; }
.theo-account-entry__intro li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-line); }
.theo-account-entry__intro li > span { color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.theo-account-entry__intro li strong,
.theo-account-entry__intro li small { display: block; }
.theo-account-entry__intro li strong { margin-bottom: 4px; font-size: 16px; }
.theo-account-entry__intro li small { color: var(--color-neutral); font-size: 14px; line-height: 1.6; }

.theo-auth-panel { min-width: 0; padding: 40px; border: 1px solid var(--color-line); background: var(--color-white); box-shadow: 0 18px 58px rgba(17, 17, 17, .06); }
.theo-auth-context { margin: -16px 0 28px; padding: 16px 18px; border-left: 3px solid var(--color-deep); background: #f6f6f6; }
.theo-auth-context span,
.theo-auth-context strong { display: block; }
.theo-auth-context span { margin-bottom: 4px; color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.theo-auth-context strong { font-size: 16px; }
.theo-auth-context p { margin: 4px 0 0; color: var(--color-neutral); font-size: 14px; line-height: 1.55; }
.theo-auth-context__return { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--color-deep); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.theo-auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); margin: -40px -40px 36px; border-bottom: 1px solid var(--color-line); }
.theo-auth-tabs a { position: relative; display: grid; min-height: 64px; place-items: center; color: var(--color-neutral); font-size: 16px; font-weight: 600; }
.theo-auth-tabs a + a { border-left: 1px solid var(--color-line); }
.theo-auth-tabs a[aria-current="page"] { color: var(--color-white); background: var(--color-deep); }
.theo-auth-panel__heading { margin-bottom: 28px; }
.theo-auth-panel__heading p { margin-bottom: 6px; color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .16em; }
.theo-auth-panel__heading h2 { margin-bottom: 8px; font-size: 30px; line-height: 1.25; }
.theo-auth-panel__heading span { color: var(--color-neutral); font-size: 14px; }
.theo-auth-form { display: grid; gap: 20px; }
.theo-auth-form > .button { width: 100%; min-height: 56px; margin-top: 4px; }
.theo-auth-form__meta { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; }
.theo-auth-form__meta .theo-check { align-items: center; }
.theo-auth-form__meta a { border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 600; }

.theo-account-alert { margin-bottom: 24px; padding: 16px 18px; border-left: 3px solid var(--color-deep); background: #f6f6f6; font-size: 14px; }
.theo-account-alert strong { display: block; margin-bottom: 5px; }
.theo-account-alert ul { margin: 0; padding-left: 20px; }
.theo-account-alert--error { border-color: var(--color-danger); color: #6f1711; background: var(--color-danger-bg); }
.theo-account-alert--success { border-color: var(--color-success); color: #1f5d3c; background: var(--color-success-bg); }

.theo-auth-return { display: grid; min-height: 100svh; padding: calc(var(--header-collapsed-height) + 48px) 24px 48px; place-items: center; background: var(--color-warm); }
.theo-auth-return__panel { width: min(100%, 520px); padding: clamp(32px, 6vw, 56px); border: 1px solid var(--color-line); background: var(--color-white); box-shadow: 0 18px 58px rgba(17, 17, 17, .07); text-align: center; }
.theo-auth-return__panel > span { display: block; margin-bottom: 8px; color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.theo-auth-return__panel h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.25; }
.theo-auth-return__panel p { margin: 14px 0 24px; color: var(--color-neutral); line-height: 1.7; }
.theo-auth-return__panel .button { width: 100%; }

.theo-social-login { margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--color-line); }
.theo-social-login > p { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--color-neutral); font-size: 14px; }
.theo-social-login > p::before,
.theo-social-login > p::after { content: ""; height: 1px; flex: 1; background: var(--color-line); }
.theo-social-login > span { display: block; margin-top: 12px; color: var(--color-neutral); font-size: 14px; text-align: center; }

.theo-register-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.theo-register-form fieldset > legend { width: 100%; margin-bottom: 24px; padding: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.theo-register-form fieldset .field + .field { margin-top: 20px; }
.theo-register-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 32px; padding: 0; border: 1px solid var(--color-line); list-style: none; }
.theo-register-progress--social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theo-register-progress li { min-width: 0; padding: 12px 14px; color: #6b6b6b; background: #f6f6f6; }
.theo-register-progress li + li { border-left: 1px solid var(--color-line); }
.theo-register-progress span,
.theo-register-progress strong { display: block; }
.theo-register-progress span { margin-bottom: 2px; font-size: 14px; font-weight: 600; letter-spacing: .1em; }
.theo-register-progress strong { font-size: 14px; }
.theo-register-progress li.is-active { color: var(--color-white); background: var(--color-deep); }
.theo-register-progress li.is-complete { color: var(--color-deep); background: #ebebeb; }
.theo-register-form.is-enhanced fieldset[hidden] { display: none; }
.theo-register-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.theo-register-actions .button { min-width: 128px; }
.theo-phone-waiting { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 18px; padding: 13px 14px; border: 1px solid #e3cf9b; color: var(--color-warning-text, #775600); background: var(--color-warning-bg); font-size: 14px; }
.theo-phone-waiting > span { font-weight: 600; }
.theo-phone-waiting > strong { padding: 2px 6px; border: 1px solid currentColor; font-size: 14px; }
.theo-phone-waiting > small { min-width: 0; color: var(--color-neutral); text-align: right; }
.theo-identity-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 18px; padding: 16px; border: 1px solid var(--color-line); background: var(--color-warm); }
.theo-identity-action > div { min-width: 0; }
.theo-identity-action span,
.theo-identity-action strong,
.theo-identity-action small { display: block; }
.theo-identity-action span { margin-bottom: 4px; color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.theo-identity-action strong { font-size: 14px; line-height: 1.45; }
.theo-identity-action small { margin-top: 3px; color: var(--color-neutral); font-size: 14px; line-height: 1.55; }
.theo-identity-action .button { min-height: 44px; padding-inline: 16px; white-space: nowrap; }
.theo-identity-action.is-complete { border-color: #85b59b; background: var(--color-success-bg); }
.theo-identity-action.is-error { border-color: #cf9b96; background: var(--color-danger-bg); }
.theo-identity-action.is-busy { border-color: #aab9c7; background: #f6f6f6; }
.theo-identity-action.is-waiting { color: var(--color-neutral); }
.theo-agreement-list { display: grid; gap: 4px; border-top: 1px solid var(--color-line); }
.theo-agreement-list .theo-check { padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.theo-agreement-list .theo-check strong,
.theo-agreement-list .theo-check small { display: block; }

/* Signed-in account */
.theo-mypage-head { padding: 52px 0; color: var(--color-white); background: var(--color-deep); }
.theo-mypage-head__inner { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.theo-mypage-head .eyebrow { color: rgba(255, 255, 255, .72); }
.theo-mypage-head h1 { margin-bottom: 8px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.04em; }
.theo-mypage-head__inner > div:first-child > span { color: rgba(255, 255, 255, .68); }
.theo-member-mark { min-width: 210px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .28); }
.theo-member-mark span,
.theo-member-mark strong,
.theo-member-mark small { display: block; }
.theo-member-mark span { margin-bottom: 10px; font-size: 14px; font-weight: 600; letter-spacing: .18em; }
.theo-member-mark strong { font-size: 19px; }
.theo-member-mark small { margin-top: 4px; color: rgba(255, 255, 255, .64); font-size: 14px; }
.theo-member-mark--gold { border-color: #d6b66b; color: #f6d98f; }

.theo-mypage-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.theo-mypage-nav { align-self: start; border-top: 2px solid var(--color-deep); }
.theo-mypage-nav__identity { padding: 22px 4px; border-bottom: 1px solid var(--color-line); }
.theo-mypage-nav__identity strong,
.theo-mypage-nav__identity span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theo-mypage-nav__identity strong { margin-bottom: 4px; font-size: 17px; }
.theo-mypage-nav__identity span { color: var(--color-neutral); font-size: 14px; }
.theo-mypage-nav__links { display: grid; }
.theo-mypage-nav__links a { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 4px; border-bottom: 1px solid var(--color-line); color: var(--color-neutral); font-size: 16px; font-weight: 600; }
.theo-mypage-nav__links a[aria-current="page"] { padding-inline: 14px; color: var(--color-white); background: var(--color-deep); }
.theo-mypage-nav__links a span { transition: transform var(--motion); }
.theo-mypage-nav__links a:hover span { transform: translateX(3px); }
.theo-mypage-logout { display: inline-flex; min-height: 44px; align-items: center; margin-top: 18px; color: var(--color-neutral); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.theo-mypage-content { min-width: 0; }
.theo-mypage-section-head { display: flex; min-height: 94px; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--color-line); }
.theo-mypage-section-head p { margin-bottom: 6px; color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .16em; }
.theo-mypage-section-head h2 { margin-bottom: 0; font-size: 32px; line-height: 1.25; }
.theo-mypage-section-head h2 + span { display: block; margin-top: 7px; color: var(--color-neutral); font-size: 14px; }
.theo-mypage-section-head > .button { flex: 0 0 auto; }

.theo-tier-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 48px; padding: 32px; color: var(--color-white); background: var(--color-deep); }
.theo-tier-card > div:first-child > span { display: block; margin-bottom: 12px; color: rgba(255, 255, 255, .64); font-size: 14px; font-weight: 600; letter-spacing: .16em; }
.theo-tier-card h3 { margin-bottom: 8px; font-size: 24px; line-height: 1.35; }
.theo-tier-card p { margin-bottom: 0; color: rgba(255, 255, 255, .68); font-size: 14px; }
.theo-tier-progress { align-self: center; }
.theo-tier-progress > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; font-size: 14px; }
.theo-tier-progress progress { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 0; background: rgba(255, 255, 255, .2); appearance: none; }
.theo-tier-progress progress::-webkit-progress-bar { background: rgba(255, 255, 255, .2); }
.theo-tier-progress progress::-webkit-progress-value { background: var(--color-white); }
.theo-tier-progress progress::-moz-progress-bar { background: var(--color-white); }
.theo-tier-progress small { display: block; margin-top: 9px; color: rgba(255, 255, 255, .62); font-size: 14px; }

.theo-account-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border: 1px solid var(--color-line); }
.theo-account-stats a { min-width: 0; padding: 24px; }
.theo-account-stats a + a { border-left: 1px solid var(--color-line); }
.theo-account-stats span,
.theo-account-stats strong,
.theo-account-stats small { display: block; }
.theo-account-stats span { color: var(--color-neutral); font-size: 14px; }
.theo-account-stats strong { margin: 6px 0 2px; font-size: 30px; line-height: 1.2; }
.theo-account-stats small { color: var(--color-neutral); font-size: 14px; }
.theo-account-stats a:hover { background: var(--color-warm); }

.theo-recent-work { margin-top: 48px; }
.theo-recent-work > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.theo-recent-work h3 { margin: 0; font-size: 20px; }
.theo-recent-work > header a { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.theo-account-list { border-top: 1px solid var(--color-ink); }
.theo-account-list article { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.theo-account-list article span,
.theo-account-list article strong { display: block; }
.theo-account-list article span { color: var(--color-neutral); font-size: 14px; }
.theo-account-list article strong { margin-top: 4px; font-size: 16px; }
.theo-status { display: inline-flex; min-height: 30px; align-items: center; padding: 4px 10px; border: 1px solid var(--color-line); color: var(--color-deep); background: var(--color-white); font-size: 14px; font-style: normal; font-weight: 600; white-space: nowrap; }

.theo-empty-state { display: grid; min-height: 260px; place-items: center; align-content: center; padding: 40px 24px; border: 1px solid var(--color-line); background: var(--color-warm); text-align: center; }
.theo-empty-state strong { font-size: 20px; }
.theo-empty-state p { max-width: 520px; margin: 8px auto 20px; color: var(--color-neutral); }

.theo-order-table { border-top: 2px solid var(--color-deep); }
.theo-order-table__head,
.theo-order-table article { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, .7fr) minmax(140px, .75fr) minmax(100px, .55fr); gap: 20px; align-items: center; }
.theo-order-table__head { min-height: 50px; padding: 0 16px; color: var(--color-neutral); background: var(--color-warm); font-size: 14px; font-weight: 600; }
.theo-order-table article { min-height: 88px; padding: 16px; border-bottom: 1px solid var(--color-line); }
.theo-order-table article div > strong,
.theo-order-table article div > small { display: block; }
.theo-order-table article div > small { margin-top: 3px; color: var(--color-neutral); font-size: 14px; }
.theo-order-table .is-attention { color: var(--color-caution); font-weight: 600; }
.theo-reorder-actions { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--color-line); }
.theo-reorder-actions > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.theo-reorder-actions > div > div { display: flex; flex: 0 0 auto; gap: 8px; }
.theo-reorder-actions span,
.theo-reorder-actions strong,
.theo-reorder-actions small { display: block; min-width: 0; }
.theo-reorder-actions strong { overflow: hidden; max-width: 480px; text-overflow: ellipsis; white-space: nowrap; }
.theo-reorder-actions small { overflow: hidden; margin-top: 3px; max-width: 560px; color: var(--color-neutral); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.theo-reorder-actions .button { min-height: 42px; flex: 0 0 auto; padding-inline: 14px; }

.theo-quote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.theo-quote-list article { min-width: 0; padding: 24px; border: 1px solid var(--color-line); }
.theo-quote-list article > header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.theo-quote-list article > header span { color: var(--color-neutral); font-size: 14px; }
.theo-quote-list h3 { margin: 4px 0 0; font-size: 19px; }
.theo-quote-list dl { margin: 0; border-top: 1px solid var(--color-line); }
.theo-quote-list dl div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; }
.theo-quote-list dt { color: var(--color-neutral); }
.theo-quote-list dd { margin: 0; font-weight: 600; text-align: right; }
.theo-quote-list footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.theo-quote-list footer .button { min-height: 44px; padding-inline: 15px; }

.theo-interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.theo-interest-list article { display: flex; min-width: 0; min-height: 390px; flex-direction: column; padding: 24px; border: 1px solid var(--color-line); }
.theo-interest-list article > header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.theo-interest-list article > header div { min-width: 0; }
.theo-interest-list article > header span { color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.theo-interest-list h3 { overflow: hidden; margin: 5px 0 0; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.theo-interest-list dl { margin: 0; border-top: 1px solid var(--color-line); }
.theo-interest-list dl div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; }
.theo-interest-list dt { color: var(--color-neutral); }
.theo-interest-list dd { overflow: hidden; margin: 0; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.theo-interest-list article > p { margin: 18px 0; color: var(--color-neutral); font-size: 14px; line-height: 1.65; }
.theo-interest-list footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.theo-interest-list footer .button { min-height: 44px; padding-inline: 14px; }
.theo-interest-delete { min-height: 44px; margin-left: auto; padding: 8px 4px; border: 0; color: var(--color-neutral); background: transparent; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.theo-file-list { border-top: 2px solid var(--color-deep); }
.theo-file-list article { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 104px; padding: 18px 16px; border-bottom: 1px solid var(--color-line); }
.theo-file-kind { padding-right: 20px; border-right: 1px solid var(--color-line); }
.theo-file-kind span,
.theo-file-kind strong { display: block; }
.theo-file-kind span { color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.theo-file-kind strong { margin-top: 3px; font-size: 14px; }
.theo-file-info { min-width: 0; }
.theo-file-info h3 { margin-bottom: 4px; font-size: 16px; overflow-wrap: anywhere; white-space: normal; line-height:1.55; }
.theo-file-info p,
.theo-file-info small { margin: 0; color: var(--color-neutral); font-size: 14px; }
.theo-file-final-note { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--color-line); background: var(--color-warm); font-size: 14px; }
.theo-file-final-note span { color: var(--color-neutral); }

.theo-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.theo-profile-card { display: grid; gap: 20px; padding: 28px; border: 1px solid var(--color-line); }
.theo-profile-card > header { min-height: 72px; padding-bottom: 18px; border-bottom: 1px solid var(--color-line); }
.theo-profile-card h3 { margin-bottom: 5px; font-size: 20px; }
.theo-profile-card header span { color: var(--color-neutral); font-size: 14px; }
.theo-profile-card > .button { width: 100%; margin-top: 4px; }

/* Membership */
.theo-membership-hero { padding: 72px 0 80px; border-bottom: 1px solid var(--color-line); background: var(--color-warm); }
.theo-membership-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr); gap: 72px; align-items: end; }
.theo-membership-hero h1 { margin-bottom: 0; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.14; letter-spacing: -.05em; }
.theo-membership-hero__inner > div:last-child p { margin-bottom: 24px; color: var(--color-neutral); font-size: 17px; line-height: 1.75; }
.theo-membership-levels { padding-top: 88px; padding-bottom: 96px; }
.theo-membership-levels > header { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.theo-membership-levels h2 { margin: 0; font-size: 36px; line-height: 1.25; }
.theo-membership-levels__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.theo-level-card { min-height: 440px; padding: 40px; border: 1px solid var(--color-line); }
.theo-level-card--silver { background: #f6f6f6; }
.theo-level-card--gold { color: #f3dfaa; background: #111111; }
.theo-level-card__index { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 80px; font-size: 14px; font-weight: 600; letter-spacing: .16em; }
.theo-level-card h3 { margin-bottom: 10px; color: inherit; font-size: 30px; }
.theo-level-card > p { max-width: 520px; margin-bottom: 32px; color: var(--color-neutral); }
.theo-level-card--gold > p { color: rgba(255, 255, 255, .62); }
.theo-level-card dl { margin: 0; border-top: 1px solid currentColor; }
.theo-level-card dl div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid currentColor; }
.theo-level-card dt { opacity: .64; }
.theo-level-card dd { margin: 0; font-weight: 600; }
.theo-membership-rules { padding: 88px 0; color: var(--color-white); background: var(--color-deep); }
.theo-membership-rules__inner { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1fr); gap: 80px; }
.theo-membership-rules h2 { margin-bottom: 14px; font-size: 36px; }
.theo-membership-rules header > p:last-child { color: rgba(255, 255, 255, .62); }
.theo-membership-rules .eyebrow { color: rgba(255, 255, 255, .68); }
.theo-membership-rules ol { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .25); list-style: none; }
.theo-membership-rules li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.theo-membership-rules li > span { color: rgba(255, 255, 255, .5); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.theo-membership-rules li strong { display: block; margin-bottom: 5px; font-size: 18px; }
.theo-membership-rules li p { margin: 0; color: rgba(255, 255, 255, .62); font-size: 14px; }
.theo-membership-features { padding-top: 88px; padding-bottom: 96px; }
.theo-membership-features > header { margin-bottom: 40px; }
.theo-membership-features h2 { font-size: 36px; }
.theo-membership-features > div { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--color-line); }
.theo-membership-features article { min-height: 220px; padding: 28px; }
.theo-membership-features article + article { border-left: 1px solid var(--color-line); }
.theo-membership-features article > span { color: var(--color-deep); font-size: 14px; font-weight: 600; letter-spacing: .16em; }
.theo-membership-features h3 { margin: 50px 0 8px; font-size: 22px; }
.theo-membership-features p { margin: 0; color: var(--color-neutral); font-size: 14px; }
.theo-membership-cta { padding: 72px 0; color: var(--color-white); background: #242424; }
.theo-membership-cta .layout { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.theo-membership-cta .eyebrow { color: rgba(255, 255, 255, .62); }
.theo-membership-cta h2 { margin: 0; font-size: 38px; line-height: 1.25; }

@media (max-width: 1120px) {
  .theo-account-entry__layout { grid-template-columns: minmax(280px, .75fr) minmax(480px, 1.25fr); gap: 48px; }
  .theo-auth-panel { padding: 32px; }
  .theo-auth-tabs { margin: -32px -32px 32px; }
  .theo-mypage-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
  .theo-tier-card { gap: 32px; }
}

@media (max-width: 980px) {
  .theo-account-main,
  .theo-membership-main { padding-top: 72px; }
  .theo-account-entry { min-height: 0; padding: 48px 0 72px; }
  .theo-account-entry__layout { grid-template-columns: 1fr; gap: 36px; }
  .theo-account-entry__intro { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 32px 48px; padding: 0; }
  .theo-account-entry__intro .eyebrow,
  .theo-account-entry__intro h1,
  .theo-account-entry__intro > p { grid-column: 1; }
  .theo-account-entry__intro ul { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .theo-account-entry__intro > .text-link { grid-column: 1; justify-self: start; }
  .theo-mypage-head { padding: 40px 0; }
  .theo-mypage-layout { display: block; padding-top: 0; }
  .theo-mypage-nav { position: static; margin-inline: 0; padding-inline: 0; border: 0; border-bottom: 1px solid var(--color-line); background: #fff; }
  .theo-mypage-nav__identity { display: none; }
  .theo-mypage-logout { display: inline-flex; margin: 0; }
  .theo-mypage-nav__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .theo-mypage-nav__links a,
  .theo-mypage-nav__links a[aria-current="page"] { min-width: 0; min-height: 56px; justify-content: center; padding: 12px; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); font-size: 14px; line-height: 1.4; text-align: center; white-space: normal; overflow-wrap: anywhere; }
  .theo-mypage-nav__links a:nth-child(3n) { border-right: 0; }
  .theo-mypage-nav__links a span { display: none; }
  .theo-mypage-content { padding-top: 40px; }
  .theo-tier-card { grid-template-columns: 1fr; }
  .theo-membership-hero__inner,
  .theo-membership-rules__inner { grid-template-columns: 1fr; gap: 36px; }
  .theo-membership-levels > header { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 720px) {
  .theo-account-main,
  .theo-membership-main { padding-top: var(--header-height); }
  .theo-account-entry { padding: 36px 0 56px; }
  .theo-account-entry__layout { display: flex; flex-direction: column; }
  .theo-auth-panel { order: 1; }
  .theo-account-entry__intro { display: block; order: 2; }
  .theo-account-entry__intro h1 { margin-bottom: 16px; font-size: 38px; }
  .theo-account-entry__intro > p:not(.eyebrow) { margin-bottom: 28px; font-size: 16px; }
  .theo-account-entry__intro ul { margin-bottom: 24px; }
  .theo-auth-panel { padding: 24px; }
	.theo-auth-context { margin-top: -4px; }
  .theo-auth-tabs { margin: -24px -24px 28px; }
  .theo-phone-waiting { grid-template-columns: auto 1fr; }
  .theo-phone-waiting > small { grid-column: 1 / -1; text-align: left; }
  .theo-identity-action { grid-template-columns: 1fr; }
  .theo-identity-action .button { width: 100%; }
  .theo-mypage-head__inner { align-items: start; }
  .theo-member-mark { min-width: 170px; }
  .theo-mypage-layout { width: 100%; padding-bottom: 72px; }
  .theo-mypage-nav { top: var(--header-height); margin: 0; padding-inline: 16px; }
  .theo-mypage-content { width: min(calc(100% - 32px), 640px); margin-inline: auto; }
  .theo-mypage-section-head { align-items: start; }
  .theo-mypage-section-head h2 { font-size: 28px; }
  .theo-tier-card { padding: 24px; }
  .theo-account-stats { grid-template-columns: 1fr; }
  .theo-account-stats a + a { border-top: 1px solid var(--color-line); border-left: 0; }
  .theo-account-stats a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 20px; }
  .theo-account-stats strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .theo-order-table__head { display: none; }
  .theo-order-table article { grid-template-columns: 1fr auto; gap: 14px 20px; padding: 20px 4px; }
  .theo-order-table article > div:nth-child(2) { grid-column: 1; }
  .theo-order-table article > strong { grid-column: 1; }
  .theo-order-table article > .theo-status { grid-column: 2; grid-row: 1; }
  .theo-quote-list,
  .theo-interest-list,
  .theo-profile-grid { grid-template-columns: 1fr; }
  .theo-file-list article { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding-inline: 4px; }
  .theo-file-list article > .theo-status { grid-column: 2; justify-self: start; }
  .theo-file-final-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .theo-membership-hero { padding: 52px 0 60px; }
  .theo-membership-levels,
  .theo-membership-features { padding-top: 64px; padding-bottom: 72px; }
  .theo-membership-levels__grid { grid-template-columns: 1fr; }
  .theo-level-card { min-height: 0; padding: 30px; }
  .theo-level-card__index { margin-bottom: 52px; }
  .theo-membership-features > div { grid-template-columns: 1fr; }
  .theo-membership-features article { min-height: 180px; }
  .theo-membership-features article + article { border-top: 1px solid var(--color-line); border-left: 0; }
  .theo-membership-cta .layout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .theo-account-entry__intro h1 { font-size: 34px; }
  .theo-account-entry__intro li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .theo-auth-panel { margin-inline: -2px; padding: 20px; }
  .theo-auth-tabs { margin: -20px -20px 24px; }
  .theo-auth-tabs a { min-height: 58px; }
  .theo-auth-panel__heading h2 { font-size: 26px; }
  .theo-register-progress li { padding: 10px 8px; }
  .theo-register-actions { align-items: stretch; flex-direction: column-reverse; }
  .theo-register-actions > span { display: none; }
  .theo-register-actions .button { width: 100%; }
  .theo-mypage-head__inner { display: block; }
  .theo-mypage-head { padding: 28px 0; }
  .theo-mypage-head h1 { font-size: 32px; }
  .theo-member-mark { margin-top: 20px; padding: 12px 16px; }
  .theo-member-mark span { margin-bottom: 4px; }
  .theo-mypage-nav { position: static; padding-inline: 0; }
  .theo-mypage-nav__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .theo-mypage-nav__links a,
  .theo-mypage-nav__links a[aria-current="page"] { min-width: 0; min-height: 56px; justify-content: center; padding: 8px; border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); font-size: 14px; line-height: 1.4; text-align: center; white-space: normal; overflow-wrap: anywhere; }
  .theo-mypage-nav__links a:nth-child(3n) { border-right: 0; }
  .theo-mypage-section-head { display: block; min-height: 0; }
  .theo-mypage-section-head > .button { width: 100%; margin-top: 18px; }
  .theo-tier-card h3 { font-size: 21px; }
  .theo-account-list article { align-items: flex-start; }
  .theo-quote-list article,
  .theo-interest-list article,
  .theo-profile-card { padding: 20px; }
  .theo-reorder-actions > div { align-items: stretch; flex-direction: column; }
  .theo-reorder-actions > div > div { flex-direction: column; }
  .theo-reorder-actions .button { width: 100%; }
  .theo-interest-list footer { align-items: stretch; flex-direction: column; }
  .theo-interest-list footer .button { width: 100%; }
  .theo-interest-delete { width: 100%; margin-left: 0; }
  .theo-quote-list footer { align-items: stretch; flex-direction: column; }
  .theo-quote-list footer .button { width: 100%; }
  .theo-file-list article { grid-template-columns: 1fr; }
  .theo-file-kind { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--color-line); }
  .theo-file-list article > .theo-status { grid-column: 1; }
  .theo-membership-hero h1 { font-size: 38px; }
  .theo-level-card h3 { font-size: 26px; }
  .theo-membership-rules { padding: 64px 0; }
  .theo-membership-cta h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .theo-account-main *,
  .theo-membership-main * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* Provider branding is isolated from THEO's generic primary/secondary buttons. */
@font-face { font-family: 'THEO Google Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('social/google-sans-latin.woff2') format('woff2'); }
.theo-social-login > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.theo-social-login .theo-social-button { box-sizing: border-box; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; height: 48px; min-height: 48px; margin: 0; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; box-shadow: none; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: normal; text-decoration: none; white-space: nowrap; cursor: pointer; transition: box-shadow .15s ease; }
.theo-social-login .theo-social-button__icon { position: relative; display: block; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; overflow: hidden; }
.theo-social-login .theo-social-button__icon img { display: block; width: 20px; height: 20px; margin: 0; object-fit: contain; }
/* Display the official N glyph from its unmodified 4x icon asset (72px in 192px). */
.theo-social-login .theo-social-login__naver .theo-social-button__icon img { position: absolute; width: 53.333333px; height: 53.333333px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.theo-social-login .theo-social-login__kakao { color: rgba(0,0,0,.85); background: #fee500; border-color: #fee500; }
.theo-social-login .theo-social-login__naver { color: #fff; background: #03a94d; border-color: #03a94d; }
.theo-social-login .theo-social-login__google { gap: 10px; padding-inline: 12px; color: #1f1f1f; background: #fff; border-color: #747775; border-radius: 4px; font-family: 'THEO Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.theo-social-login .theo-social-button:hover:not(:disabled) { box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.theo-social-login .theo-social-button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.theo-social-login .theo-social-button:disabled { cursor: not-allowed; opacity: 1; }
.theo-social-login .theo-social-availability { color: #6b6b6b; font-size: 13px; line-height: 1.5; }
.theo-auth-panel--login .theo-auth-tabs { margin-bottom:24px; }
.theo-auth-panel--login .theo-auth-panel__heading { margin-bottom:16px; }
.theo-auth-panel--login .theo-social-login { margin:0 0 24px; padding:0 0 24px; border-top:0; border-bottom:1px solid var(--color-line); }
.theo-auth-panel--login .theo-social-login > p { margin-bottom:12px; }
.theo-auth-panel--login .theo-auth-form { gap:14px; }
.theo-auth-panel--social .theo-auth-tabs { margin-bottom:20px; }
.theo-auth-panel--social .theo-auth-panel__heading { margin-bottom:16px; }
.theo-auth-panel--social .theo-auth-panel__heading > p { display:none; }
.theo-auth-panel--social .theo-account-alert { margin-bottom:16px; padding:12px 16px; }
.theo-auth-panel--social .theo-register-progress { margin-bottom:20px; }
.theo-auth-panel--social fieldset > legend { margin-bottom:16px; }
.theo-auth-panel--social fieldset > p { margin:12px 0 0; font-size: 14px; color:var(--color-neutral); }
.theo-auth-panel--social .theo-register-actions { margin-top:20px; }
.theo-welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.theo-quote-resume { margin:20px 0; border-top:1px solid #dedede; border-bottom:1px solid #dedede; padding:12px 0; }
.theo-quote-resume summary { padding:12px 0; min-height:44px; cursor:pointer; font-weight: 600; }
.theo-quote-list article > header { align-items:flex-start; }
.theo-quote-resume summary { display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; }
.theo-quote-resume summary::-webkit-details-marker { display:none; }
.theo-quote-resume[open] summary > span { transform:rotate(45deg); }
.theo-quote-resume__item { display:grid; gap:12px; padding:20px 0; border-top:1px solid #dedede; }
.theo-quote-resume__item > strong { overflow-wrap:anywhere; }
.theo-quote-resume__item > div, .theo-file-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.theo-file-list article { row-gap:12px; }
.theo-file-actions { grid-column:2 / -1; margin-top:0; }
.theo-account-confirm { border:1px solid var(--color-line); padding:28px; width:min(460px,calc(100% - 32px)); color:var(--color-ink); }
.theo-account-confirm::backdrop { background:rgba(17, 17, 17,.55); }
.theo-account-confirm h2 { margin:0 0 16px; font-size:22px; }
.theo-account-confirm p { margin-bottom:24px; }
.theo-account-confirm form { display:flex; gap:12px; justify-content:flex-end; flex-wrap:wrap; }
@media(max-width:600px) { .theo-file-actions { grid-column:1 / -1; align-items:stretch; } .theo-file-actions .button { flex:1 1 100%; } }
.theo-welcome-gold { text-align:left; margin-top:28px; padding-top:20px; border-top:1px solid #dedede; font-size:14px; }
.theo-welcome-gold p { margin:8px 0; color:#6b6b6b; }
.theo-welcome-gold .text-link { min-height:44px; display:inline-flex; align-items:center; }
.theo-consent-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
