/* =========================================================
   EXECASSET WTS 로그인 화면
   생성: WTS 로그인 화면 생성 도구 (2026-11-04)
   색상값은 :root 안에서만 정의한다 (작업지시서 PART 4.2)
   링크는 모두 상대경로 (작업지시서 PART 2.3)
   ========================================================= */

/* 1. 업체 전용 폰트: 없음 (공통 폰트는 ../fonts/fonts.css) */

/* 2. 디자인 변수 */
:root {
  color-scheme: dark;
  --color-bg: #0a1213; /* 페이지 배경 */
  --color-bg-alt: #101819; /* 시세 바·푸터 배경 */
  --color-surface: #101c1e; /* 카드 배경 */
  --color-surface-alt: #0d1718; /* 입력창 배경 */
  --color-border: #343e40; /* 테두리 */
  --color-border-soft: #f0f3f012; /* 옅은 구분선 */
  --color-text: #f0f3f0; /* 기본 글자 */
  --color-text-muted: #999e9c; /* 보조 글자 */
  --color-text-subtle: #787e7d; /* 흐린 글자 */
  --color-primary: #90e3c4; /* 주요 색 */
  --color-primary-hover: #a4e8cf; /* 주요 버튼 hover */
  --color-primary-soft: #90e3c41a; /* 주요 색 옅은 배경 */
  --color-primary-line: #90e3c473; /* 주요 색 선 */
  --color-accent-text: #a8e7cf; /* 강조 글자 */
  --color-on-primary: #1d2d27; /* 주요 버튼 위 글자 */
  --color-focus: #90e3c4; /* 키보드 포커스 */
  --color-danger: #ec9c8d; /* 입력 오류 */
  --color-up: #ff5b5b; /* 시세 상승 */
  --color-down: #4d8dff; /* 시세 하락 */
  --color-flat: #999e9c; /* 시세 보합 */
  --color-unknown: #717776; /* 시세 판단 불가 */
  --color-glow: #90e3c417; /* 배경 빛 효과 */
  --color-shadow: #00000040; /* 그림자 */
  --color-backdrop: #0a1213b8; /* 회원가입 팝업 뒤 배경 */
  --color-telegram: #2aabee; /* 텔레그램 버튼 */
  --color-on-telegram: #ffffff; /* 텔레그램 버튼 글자 */
  --color-mask: #000000; /* 페이드 마스크 (투명도용) */
  --font-body: "DM Sans", "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif;
  --font-heading: "DM Sans", "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif;
  --font-brand: "DM Sans", "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif;
  --font-number: "DM Sans", "Noto Sans KR", sans-serif;
  --page-gutter: 64px;
  --login-width: 430px;
  --radius-card: 20px;
  --radius-input: 7px;
  --image-position: 63%;
}

/* 3. 기본 스타일 */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* 공통 모듈의 hidden 처리 보호. 지우지 않는다 */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 99; transform: translateY(-150%); background: var(--color-primary); color: var(--color-on-primary); padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

/* 4. 레이아웃 */
.site-shell { min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; }
.page-width { width: calc(100% - var(--page-gutter) * 2); max-width: 1392px; margin-inline: auto; }

.header { height: 90px; border-bottom: 1px solid var(--color-border-soft); background: var(--color-bg); position: relative; z-index: 4; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header-descriptor { display: flex; align-items: center; gap: 27px; color: var(--color-text-muted); font-size: 10px; font-weight: 500; letter-spacing: 2.3px; white-space: nowrap; }
.header-divider { height: 21px; width: 1px; background: var(--color-border); }
.header-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; flex: none; }

.main { display: grid; grid-template-columns: minmax(0, 1fr) var(--login-width); gap: 80px; align-items: center; flex: 1; position: relative; isolation: isolate; min-height: 660px; padding: 35px 45px 37px 0; }
.main::after { content: ''; position: absolute; inset: 0 -250px 0 55%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 70% 55%, var(--color-glow), transparent 65%); }
.story { height: 590px; position: relative; min-width: 0; isolation: isolate; }
.story-copy { position: relative; z-index: 2; padding-top: 36px; }
.login-area { position: relative; z-index: 3; padding-top: 7px; min-width: 0; }

/* 로그인창 왼쪽 */
.layout-left .main { grid-template-columns: var(--login-width) minmax(0, 1fr); padding: 35px 0 37px 45px; }
.layout-left .login-area { order: -1; }
.layout-left .main::after { inset: 0 55% 0 -250px; background: radial-gradient(ellipse at 30% 55%, var(--color-glow), transparent 65%); }

/* 로그인창 가운데 */
.layout-center .main { grid-template-columns: minmax(0, var(--login-width)); justify-content: center; gap: 28px; padding: 48px 0 56px; min-height: 0; text-align: center; }
.layout-center .main::after { inset: 0; background: radial-gradient(ellipse at 50% 60%, var(--color-glow), transparent 60%); }
.layout-center .story { position: static; height: auto; isolation: auto; }
.layout-center .story-copy { padding-top: 0; }
.layout-center .eyebrow { justify-content: center; }
.layout-center .story h1 { font-size: 44px; letter-spacing: -2.4px; margin-top: 18px; }
.layout-center .artwork { inset: 0 -12%; z-index: -1; opacity: .5; }
.layout-center .artwork::after { background: radial-gradient(ellipse at center, transparent 0, var(--color-bg) 70%); }
.layout-center .story-bottom { display: none; }
.layout-center .login-area { text-align: left; }

/* 5. 컴포넌트 */
/* 로고 */
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--color-primary); flex: none; }
.brand-logo { height: 38px; width: auto; max-width: 220px; object-fit: contain; flex: none; }
.brand-name { font-family: var(--font-brand); font-size: 30px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-dot { color: var(--color-primary); }

/* 헤더 버튼 */
.text-button { border: 0; background: none; padding: 10px 0; font-size: 13px; font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }
.text-button:hover { color: var(--color-primary); }
.signup-button { border: 1px solid var(--color-primary-line); background: transparent; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, border-color .2s; }
.signup-button:hover { background: var(--color-primary-soft); border-color: var(--color-primary); }

/* Market Watch */
.market-bar { border-bottom: 1px solid var(--color-border-soft); background: var(--color-bg-alt); position: relative; z-index: 3; }
.market-inner { display: flex; height: 64px; gap: 30px; align-items: center; }
.market-title { display: flex; align-items: flex-start; gap: 9px; flex: none; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; color: var(--color-text-muted); text-transform: uppercase; }
.market-indicator { width: 5px; height: 5px; margin-top: 4px; border-radius: 50%; background: var(--color-primary); }
.market-title-text { display: flex; flex-direction: column; gap: 4px; }
.market-sub { color: var(--color-text-subtle); font-weight: 400; letter-spacing: .1px; text-transform: none; }
.market-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--color-mask) 3%, var(--color-mask) 97%, transparent); mask-image: linear-gradient(90deg, transparent, var(--color-mask) 3%, var(--color-mask) 97%, transparent); }
.market-list { display: flex; width: max-content; }
.market-item { display: grid; grid-template-columns: auto auto auto; align-items: baseline; column-gap: 10px; row-gap: 5px; padding: 4px 24px; border-left: 1px solid var(--color-border-soft); white-space: nowrap; }
.market-item [data-wts-field="name"] { grid-column: 1 / -1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; line-height: 12px; font-weight: 600; letter-spacing: .3px; color: var(--color-text-muted); }
.market-item [data-wts-field="price"],
.market-item [data-wts-field="change"],
.market-item [data-wts-field="change-percent"] { font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.market-item [data-wts-field="price"] { font-size: 13px; font-weight: 600; color: var(--color-text); }
.market-item [data-wts-field="change"],
.market-item [data-wts-field="change-percent"] { font-size: 10px; }
.market-feedback { flex: none; margin: 0; font-size: 11px; color: var(--color-text-subtle); }
.market-feedback:empty { display: none; }

/* 로그인 카드 */
.login-card { position: relative; padding: 31px 34px 29px; background: linear-gradient(135deg, var(--color-surface), var(--color-surface-alt) 120%); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: 0 24px 80px var(--color-shadow); }
.login-card::before { content: ''; position: absolute; top: -1px; left: 34px; right: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--color-primary-line), transparent); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-welcome { font-size: 12px; font-weight: 500; letter-spacing: 1.8px; line-height: 1.4; color: var(--color-text-muted); text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }
.card-brand-mark { width: 36px; height: 36px; flex: none; color: var(--color-accent-text); }
.card-brand-logo { height: 32px; width: auto; max-width: 120px; object-fit: contain; flex: none; }
.login-card h2 { font-family: var(--font-heading); font-size: 29px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.3; margin: 18px 0 10px; }
.login-description { font-size: 13px; color: var(--color-text-muted); margin: 0 0 31px; }
.field-group { margin-bottom: 22px; }
.field-group > label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; color: var(--color-text); }
.field-group input { width: 100%; height: 52px; padding: 0 15px; border-radius: var(--radius-input); border: 1px solid var(--color-border); background: var(--color-surface-alt); color: var(--color-text); font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field-group input::placeholder { color: var(--color-text-subtle); font-size: 12px; }
.field-group input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.field-group input[aria-invalid="true"] { border-color: var(--color-danger); }
.password-group { margin-bottom: 17px; }
.password-input { position: relative; }
.password-input input { padding-right: 52px; }
.icon-button { display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle { position: absolute; top: 5px; right: 7px; width: 42px; height: 42px; border-radius: 5px; color: var(--color-text-subtle); }
.password-toggle:hover { color: var(--color-primary); }
.eye-slash { position: absolute; width: 21px; height: 1.5px; background: currentColor; transform: rotate(45deg); display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 25px; }
.remember-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--color-text-muted); cursor: pointer; user-select: none; }
.remember-label input { width: 15px; height: 15px; margin: 0; accent-color: var(--color-primary); cursor: pointer; }
.login-button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 53px; border: 1px solid var(--color-primary); border-radius: var(--radius-input); background: var(--color-primary); color: var(--color-on-primary); font-size: 14px; font-weight: 700; transition: background .2s, transform .2s; }
.login-button svg { position: absolute; right: 17px; width: 20px; height: 20px; }
.login-button:hover { background: var(--color-primary-hover); }
.login-button:active { transform: translateY(1px); }
.form-feedback { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-input); background: var(--color-primary-soft); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; word-break: keep-all; }
.form-feedback:empty { display: none; }
.signup-prompt { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: 12px; color: var(--color-text-muted); }
.signup-prompt button { border: 0; background: none; padding: 4px 0; font-weight: 600; color: var(--color-primary); }
.signup-prompt button:hover { color: var(--color-primary-hover); }
.login-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 19px; font-size: 10px; color: var(--color-text-subtle); text-align: center; }
.login-note svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 메인 문구와 이미지 */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 500; letter-spacing: 2.7px; color: var(--color-text-muted); }
.eyebrow-line { width: 26px; height: 1px; background: var(--color-primary); }
.story h1 { font-family: var(--font-heading); font-size: 58px; line-height: 1.3; font-weight: 600; letter-spacing: -3.4px; margin: 24px 0 19px; word-break: keep-all; overflow-wrap: anywhere; }
.story h1 .accent { color: var(--color-accent-text); }
.hero-description { margin: 0; font-size: 14px; line-height: 1.95; color: var(--color-text-muted); word-break: keep-all; }
.artwork { position: absolute; left: 35px; right: -75px; top: 128px; bottom: -12px; z-index: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, var(--color-mask) 12%, var(--color-mask) 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, var(--color-mask) 12%, var(--color-mask) 88%, transparent 100%); }
.artwork img { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position) center; }
.effect-screen .artwork img { mix-blend-mode: screen; filter: brightness(.83) saturate(.7); }
.artwork::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--color-bg) 0, transparent 32%, transparent 92%, var(--color-bg) 100%); }
.story-bottom { position: absolute; z-index: 2; bottom: 15px; left: 0; display: flex; align-items: center; gap: 27px; font-size: 9px; line-height: 1.8; letter-spacing: 1.8px; color: var(--color-text-subtle); }
.story-bottom strong { font-weight: 500; color: var(--color-text-muted); }
.story-bottom-line { width: 70px; height: 1px; background: var(--color-border); }
.story-bottom svg { width: 22px; height: 22px; fill: none; stroke: var(--color-accent-text); stroke-width: 1.3; }

/* 푸터와 고객센터 */
.footer { border-top: 1px solid var(--color-border-soft); background: var(--color-bg-alt); }
.footer-inner { padding-block: 25px 20px; }
.footer-top { display: flex; align-items: center; gap: 29px; }
.footer-brand { gap: 8px; }
.footer-brand .brand-mark { width: 26px; height: 26px; color: var(--color-text-muted); }
.footer-brand .brand-logo { height: 26px; }
.footer-brand .brand-name { font-size: 22px; letter-spacing: -.8px; color: var(--color-text); }
.footer-brand .brand-dot { color: var(--color-text-muted); }
.footer-tagline { margin: 0; font-size: 11px; color: var(--color-text-subtle); }
.footer-contact { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.footer-phone { display: inline-flex; align-items: center; gap: 9px; padding-block: 8px; font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.footer-phone .support-headset { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.footer-phone .support-value { font-size: 17px; font-weight: 500; letter-spacing: .25px; color: var(--color-text); }
.footer-phone:hover .support-value { color: var(--color-primary); }
.telegram-support { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 9px; border-radius: 7px; background: var(--color-telegram); color: var(--color-on-telegram); white-space: nowrap; }
.telegram-icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.telegram-label { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.telegram-label strong { font-size: 11px; font-weight: 800; }
.telegram-label span { font-size: 10px; font-weight: 500; }
.footer-bottom { display: flex; gap: 25px; justify-content: space-between; align-items: flex-end; margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--color-border-soft); }
.risk-notice { margin: 0; font-size: 9px; line-height: 1.8; color: var(--color-text-subtle); word-break: keep-all; }
.risk-notice strong { margin-right: 9px; font-weight: 500; color: var(--color-text-muted); }
.copyright { font-size: 9px; color: var(--color-text-subtle); white-space: nowrap; }

/* 회원가입 (popover, ourtrade 샘플과 같은 구성. #signup-dialog에는 display를 지정하지 않는다) */
.signup-dialog { width: min(720px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); color: var(--color-text); box-shadow: 0 30px 120px var(--color-shadow); }
.signup-dialog::backdrop { background: var(--color-backdrop); backdrop-filter: blur(3px); }
.signup-dialog-inner { padding: 25px 28px 22px; }
.signup-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.signup-brand { gap: 8px; }
.signup-brand .brand-mark { width: 30px; height: 30px; }
.signup-brand .brand-logo { height: 30px; }
.signup-brand .brand-name { font-size: 25px; letter-spacing: -.8px; }
.signup-close { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 0 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--color-text-muted); font-size: 11px; }
.signup-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.signup-close:hover { color: var(--color-primary); }
.signup-dialog h2 { font-family: var(--font-heading); font-size: 26px; font-weight: 600; letter-spacing: -1px; line-height: 1.35; margin: 13px 0 18px; text-align: center; }
.signup-description { margin: 0 0 20px; font-size: 12px; line-height: 1.7; color: var(--color-text-muted); word-break: keep-all; }
.signup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 12px; }
.signup-field { min-width: 0; }
.signup-field > label { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--color-text); }
.required-mark { color: var(--color-primary); font-size: 11px; font-weight: 400; }
.optional-label { margin-left: 2px; font-size: 10px; font-weight: 400; color: var(--color-text-subtle); }
.signup-field input, .signup-field select { display: block; width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 6px; background-color: var(--color-surface-alt); color: var(--color-text); font-size: 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.signup-field input::placeholder { color: var(--color-text-subtle); font-size: 11px; }
.signup-field input:focus, .signup-field select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.signup-field .password-input input { padding-right: 43px; }
.signup-password-toggle { top: 0; right: 3px; width: 40px; height: 42px; }
.signup-password-toggle svg { width: 17px; height: 17px; }
.signup-password-guidance { grid-column: 1 / -1; margin: -3px 0 1px; font-size: 10px; line-height: 1.7; color: var(--color-text-muted); word-break: keep-all; }
.bank-select { position: relative; }
.bank-select select { padding-right: 52px; appearance: none; cursor: pointer; }
.bank-select::before { content: ''; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 39px; border-left: 1px solid var(--color-border); pointer-events: none; }
.bank-select::after { content: ''; position: absolute; top: 50%; right: 17px; width: 6px; height: 6px; margin-top: -5px; border-right: 1.6px solid var(--color-accent-text); border-bottom: 1.6px solid var(--color-accent-text); transform: rotate(45deg); pointer-events: none; }
.signup-privacy-notice { margin-top: 16px; padding: 11px 13px; border: 1px solid var(--color-border); border-radius: 7px; background: var(--color-primary-soft); }
.signup-privacy-notice h3 { margin: 0 0 5px; font-size: 10px; font-weight: 600; line-height: 1.5; color: var(--color-text); }
.signup-privacy-notice p { margin: 3px 0 0; font-size: 10px; line-height: 1.7; color: var(--color-text-muted); word-break: keep-all; }
.signup-privacy-notice p > span { margin-right: 5px; font-weight: 500; color: var(--color-text); }
.signup-consent-label { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 11px; line-height: 1.8; color: var(--color-text); cursor: pointer; word-break: keep-all; }
.signup-consent-label input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--color-primary); cursor: pointer; }
.signup-consent-label strong { margin-right: 3px; font-size: 10px; font-weight: 500; color: var(--color-primary); }
.signup-actions { display: grid; grid-template-columns: 100px 1fr; gap: 10px; margin-top: 18px; }
.signup-actions button { height: 44px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.signup-cancel { border: 1px solid var(--color-border); background: var(--color-surface-alt); color: var(--color-text-muted); }
.signup-cancel:hover { border-color: var(--color-primary-line); color: var(--color-text); }
.signup-submit { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--color-primary); background: var(--color-primary); color: var(--color-on-primary); }
.signup-submit:hover { background: var(--color-primary-hover); }
.signup-submit svg { width: 18px; height: 18px; }
.signup-feedback { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 7px; background: var(--color-primary-soft); font-size: 12px; line-height: 1.8; word-break: keep-all; }
.signup-feedback:empty { display: none; }
.signup-login-prompt { margin: 14px 0 0; font-size: 10px; line-height: 1.6; text-align: center; color: var(--color-text-muted); }
.signup-login-prompt button { margin-left: 3px; padding: 2px 3px; border: 0; background: none; font-size: 11px; font-weight: 600; color: var(--color-primary); }
.signup-login-prompt button:hover { color: var(--color-primary-hover); }

/* 6. 상태 */
.market-item[data-wts-direction="up"] [data-wts-field="change"],
.market-item[data-wts-direction="up"] [data-wts-field="change-percent"] { color: var(--color-up); }
.market-item[data-wts-direction="down"] [data-wts-field="change"],
.market-item[data-wts-direction="down"] [data-wts-field="change-percent"] { color: var(--color-down); }
.market-item[data-wts-direction="flat"] [data-wts-field="change"],
.market-item[data-wts-direction="flat"] [data-wts-field="change-percent"] { color: var(--color-flat); }
.market-item[data-wts-direction="unknown"] [data-wts-field="change"],
.market-item[data-wts-direction="unknown"] [data-wts-field="change-percent"] { color: var(--color-unknown); }
.market-item[data-wts-direction="up"] [data-wts-field="change"]::before { content: '↗ '; }
.market-item[data-wts-direction="down"] [data-wts-field="change"]::before { content: '↘ '; }
.login-button:disabled { background: var(--color-border); border-color: var(--color-border); color: var(--color-text-muted); }

/* 7. 반응형 */
@media (min-width: 1700px) {
  .main { gap: 115px; padding-right: 65px; min-height: 720px; }
  .layout-left .main { padding-right: 0; padding-left: 65px; }
  .story { height: 650px; }
  .story-copy { padding-top: 53px; }
  .story h1 { font-size: 65px; }
  .artwork { top: 145px; bottom: 3px; right: -65px; }
  .story-bottom { bottom: 35px; }
}
@media (max-width: 1390px) {
  :root { --page-gutter: 48px; --login-width: 405px; }
  .main { gap: 45px; padding-right: 18px; }
  .layout-left .main { padding-right: 0; padding-left: 18px; }
  .story h1 { font-size: 54px; }
  .artwork { left: -5px; right: -65px; top: 160px; }
  .header-descriptor { font-size: 9px; letter-spacing: 1.6px; }
}
@media (max-width: 1150px) {
  :root { --page-gutter: 32px; --login-width: 385px; }
  .main { gap: 32px; padding-right: 0; min-height: 645px; }
  .layout-left .main { padding-left: 0; }
  .story h1 { font-size: 47px; letter-spacing: -2.6px; }
  .hero-description { font-size: 12px; }
  .artwork { left: -40px; right: -45px; top: 186px; }
  .login-card { padding: 28px; }
  .header-descriptor { display: none; }
}
@media (max-width: 880px) {
  :root { --page-gutter: 24px; --login-width: 350px; }
  .header { height: 76px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 26px; }
  .main { gap: 19px; min-height: 615px; }
  .story { height: 560px; }
  .story h1 { font-size: 38px; line-height: 1.4; letter-spacing: -2px; }
  .layout-center .story h1 { font-size: 38px; }
  .artwork { top: 225px; bottom: 5px; left: -40px; right: -35px; }
  .story-bottom { display: none; }
  .footer-tagline { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 20px; }
  .header { height: 68px; }
  .header-inner { gap: 14px; }
  .header-nav { gap: 14px; }
  .brand { gap: 8px; }
  .brand-mark, .brand-logo { width: auto; height: 30px; }
  .brand-mark { width: 30px; }
  .brand-name { font-size: 23px; }
  .text-button { font-size: 12px; }
  .signup-button { padding: 8px 12px; font-size: 12px; }
  .market-inner { height: 58px; gap: 14px; }
  .main, .layout-left .main, .layout-center .main { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0 0 34px; text-align: left; }
  .story, .layout-center .story { position: relative; width: 100%; height: 268px; isolation: isolate; }
  .story-copy { padding-top: 34px; }
  .layout-center .eyebrow { justify-content: flex-start; }
  .story h1, .layout-center .story h1 { font-size: 34px; line-height: 1.27; letter-spacing: -1.8px; margin: 16px 0 13px; }
  .hero-description { font-size: 11px; line-height: 1.85; max-width: 240px; }
  .artwork, .layout-center .artwork { inset: 33px -42px -30px 34%; z-index: 0; opacity: .85; }
  .artwork::after, .layout-center .artwork::after { background: linear-gradient(90deg, var(--color-bg), transparent 38%); }
  .login-area { width: 100%; max-width: 440px; margin-inline: auto; padding-top: 0; }
  .mobile-login-first .login-area { order: -1; margin-top: 24px; }
  .login-card { padding: 28px 24px 26px; border-radius: 17px; }
  .login-card h2 { font-size: 27px; margin-top: 15px; }
  .field-group input { font-size: 16px; }
  .footer-top { flex-wrap: wrap; gap: 16px; }
  .footer-contact { width: 100%; margin: 0; justify-content: flex-start; }
  .footer-phone .support-value { font-size: 14px; }
  .risk-notice { font-size: 8px; line-height: 1.9; }
  .copyright { font-size: 8px; white-space: normal; }
  .signup-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .signup-dialog-inner { padding: 22px 18px 20px; }
  .signup-brand .brand-name { font-size: 21px; }
  .signup-grid { grid-template-columns: 1fr; }
  .signup-field input, .signup-field select { font-size: 16px; }
  .signup-actions { grid-template-columns: 88px 1fr; }
}
@media (max-width: 370px) {
  :root { --page-gutter: 16px; }
  .header-nav { gap: 10px; }
  .brand-name { font-size: 20px; }
  .story h1, .layout-center .story h1 { font-size: 30px; }
  .login-card { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
