@font-face { font-family: 'Pretendard Variable'; src: url("../fonts/PretendardVariable.302ec55f5b43.woff2") format('woff2'); font-style: normal; font-weight: 45 920; font-display: swap; }
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 400 var(--text-body)/1.6 var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, label, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--navy); text-decoration: none; }
button, input, select, textarea, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.035em; word-break: keep-all; }
h1 { font-size: var(--text-title); }
h2 { font-size: 24px; }
h3 { font-size: var(--text-body); }
svg { width: 24px; height: 24px; display: block; flex: none; }
[hidden] { display: none !important; }
.app-shell { position: relative; width: 100%; min-height: 100dvh; margin: 0 auto; background: var(--paper); }
.button { min-height: 56px; padding: 14px 20px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 650; line-height: 1.4; }
.button.primary { background: var(--navy); color: white; }
.button.primary:hover { background: #2529A0; }
.button.secondary { background: white; border-color: #CAD4E4; color: var(--navy); }
.button.plain { color: var(--muted); background: none; }
.full { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border: 0; background: transparent; color: var(--ink); border-radius: 14px; }
.icon-button:hover { background: var(--blue-soft); }
.muted { color: var(--muted); }
.eyebrow { display: block; color: var(--blue); font-size: var(--text-sm); letter-spacing: .01em; font-weight: 650; margin-bottom: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input:not([type='checkbox']):not([type='radio']):not([type='file']), select, textarea { width: 100%; border: 1px solid #CDD5E1; border-radius: var(--radius-sm); padding: 13px 15px; min-height: 56px; color: var(--ink); background: white; }
input::placeholder, textarea::placeholder { color: #707B8D; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--navy); width: 22px; height: 22px; vertical-align: middle; }
label, legend { font-weight: 600; }
.errorlist, .invalid-feedback, .alert-danger { color: var(--red); font-size: var(--text-sm); margin: 8px 0; padding-left: 20px; }
.helptext, .form-text { color: var(--muted); font-size: var(--text-sm); display: block; margin-top: 6px; }
.toast-stack { position: absolute; z-index: 30; top: 12px; left: 18px; right: 18px; pointer-events: none; }
.toast { background: var(--ink); color: white; border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); text-align: center; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 24px; font-weight: 750; color: var(--navy); letter-spacing: -.04em; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--blue); }
.entry-page { padding: 26px 24px 20px; }
.entry-intro { padding: 38px 0 25px; }
.entry-intro h1 { font-size: 32px; line-height: 1.35; margin-bottom: 16px; }
.entry-intro p { color: var(--muted); font-size: var(--text-body); letter-spacing: -.02em; }
.answer-preview { background: white; border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow); }
.preview-line { display: flex; gap: 12px; align-items: center; }
.step-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--navy); color: white; }
.step-icon.pale { background: var(--blue-soft); color: var(--blue); }
.preview-line strong, .preview-line div > span { display: block; }
.preview-line div > span { color: var(--muted); font-size: var(--text-sm); }
.preview-check { color: var(--blue); margin-left: auto; }
.preview-connector { height: 14px; border-left: 1px dashed #C7D1E3; margin: 4px 0 4px 21px; }
.demo-note { font-size: var(--text-xs); text-align: center; margin-top: 9px; color: var(--muted); }
.divider { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: var(--text-xs); margin: 24px 0 18px; }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.account-form .mb-3 { margin-bottom: 16px; }
.account-form label { display: block; margin-bottom: 6px; font-size: var(--text-sm); }
.account-form .form-check label { display: inline; }
.account-form .form-check input { margin-right: 6px; }
.account-form .asteriskField { display: none; }
.account-form ul { font-size: var(--text-sm); padding-left: 20px; }
.account-links { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; font-size: var(--text-sm); }
.account-links a { min-width: 88px; min-height: 44px; padding-inline: 8px; display: inline-flex; align-items: center; justify-content: center; }
.account-links span { color: #ABB4C3; }
.entry-footer { text-align: center; color: var(--muted); font-size: var(--text-xs); margin-top: 22px; }
.account-page { padding: 24px; }
.account-page h1 { margin: 20px 0 12px; }
.account-page .muted { margin-bottom: 28px; }
.back-link { display: inline-flex; min-width: 88px; min-height: 44px; padding-inline: 8px; align-items: center; margin-bottom: 24px; }
.text-link { display: block; padding: 20px 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }

/* A shared workspace, with a reading scale instead of a fixed phone canvas. */
html { text-rendering: optimizeLegibility; }
body { overflow-wrap: break-word; }
button, a, input, select, textarea { transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
button:disabled { cursor: not-allowed; }
input:not([type='checkbox']):not([type='radio']):not([type='file']), select, textarea { border-color: #D6DDE7; box-shadow: 0 1px 2px rgb(30 41 59 / 2%); }
input:not([type='checkbox']):not([type='radio']):not([type='file']):hover, select:hover, textarea:hover { border-color: #AEBBD0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #D9E8FD; outline-offset: 1px; border-color: var(--navy); }
.button { letter-spacing: -.015em; }
.button.primary { box-shadow: 0 3px 7px rgb(29 32 136 / 10%); }
.button.secondary:hover { border-color: var(--navy); background: #F8F9FD; }
.button.plain:hover { background: var(--surface-soft); }
.brand { letter-spacing: -.055em; }
.eyebrow { color: #267895; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.app-shell--entry { max-width: 1200px; }
.entry-page { min-height: 100dvh; padding: 36px 48px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); column-gap: 92px; align-content: center; }
.entry-page > .brand { grid-column: 1 / -1; padding-bottom: 52px; }
.entry-intro { grid-column: 1; padding: 0 0 30px; }
.entry-intro h1 { font-size: clamp(36px, 4vw, 54px); line-height: 1.2; letter-spacing: -.055em; margin: 0 0 22px; font-weight: 750; color: var(--ink); }
.entry-intro .eyebrow { margin-bottom: 20px; }
.entry-intro p { line-height: 1.75; }
.entry-page > .answer-preview { grid-column: 1; align-self: start; padding: 24px; margin: 0; box-shadow: none; border-color: #DFE5EE; border-radius: 18px; }
.entry-login { grid-column: 2; grid-row: 2 / 4; align-self: start; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 40px rgb(30 41 59 / 3%); }
.entry-footer { grid-column: 1 / -1; padding-top: 28px; font-size: 12px; }
.preview-line strong { font-size: 16px; letter-spacing: -.02em; }
.preview-line div > span { font-size: 14px; margin-top: 3px; }
.preview-check { color: var(--green); font-size: 18px; }
.preview-connector { height: 20px; border-color: #CFD8E5; }
.divider { letter-spacing: -.015em; }
.account-page { width: min(100%, 540px); margin: 0 auto; padding: 48px 40px; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.account-page h1 { margin: 8px 0 14px; font-size: 34px; letter-spacing: -.045em; }
.account-page > .back-link { align-self: flex-start; margin: 0 0 34px; padding: 0; color: var(--muted); font-size: 14px; }
.account-page .eyebrow { margin-bottom: 8px; }
.account-page > .muted { font-size: 16px; line-height: 1.7; margin-bottom: 30px; }
.account-form .mb-3 { margin-bottom: 20px; }
.account-form label { font-size: 14px; color: #344158; }
.account-form input:not([type=checkbox]):not([type=radio]) { min-height: 54px; }
.account-form > .button { margin-top: 8px; }
.account-links { margin-top: 18px; }
.app-shell--tools { max-width: none; background: #F5F7FA; box-shadow: none; }
.app-shell--tools .tools-page > .tools-header { display: block; margin: 0 0 34px; padding: 0; border: 0; }
.tools-header-main { display: flex; align-items: center; gap: 24px; min-height: 84px; padding: 12px 0 16px; }
.tools-page .tools-wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-size: 23px; font-weight: 760; line-height: 1.1; letter-spacing: -.055em; flex: none; }
.tools-wordmark b { color: var(--blue); }
.tools-wordmark small { display: block; color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .075em; margin-top: 6px; }
.tools-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--navy); color: white; }
.tools-brand-mark svg { width: 28px; height: 28px; }
.tools-page .tools-farm-switch { min-width: 0; display: flex; align-items: center; gap: 10px; color: #526079; font-size: 14px; font-weight: 500; padding: 8px 14px; margin-left: 12px; border-left: 1px solid #DCE3ED; line-height: 1.4; }
.tools-farm-switch > span:first-child { overflow-wrap: anywhere; }
.tools-page .tools-top-action { margin-left: auto; display: inline-flex; align-items: center; gap: 22px; padding: 10px 14px; min-height: 44px; border: 1px solid #D9E0EC; border-radius: 10px; font-size: 14px; font-weight: 600; background: white; color: var(--ink); white-space: nowrap; }
.tools-page .tools-top-action:hover { border-color: var(--navy); }
.tools-primary-nav { display: flex; gap: 8px 26px; flex-wrap: wrap; border-bottom: 1px solid #DCE3ED; }
.tools-page .tools-primary-nav a { position: relative; padding: 13px 4px 15px; min-height: 48px; color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.tools-page .tools-primary-nav a:hover { color: var(--navy); }
.tools-page .tools-primary-nav [aria-current=page] { color: var(--navy); font-weight: 750; }
.tools-primary-nav [aria-current=page]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--navy); border-radius: 3px 3px 0 0; }
@media (min-width: 760px) {
  .app-shell:not(.app-shell--entry):not(.app-shell--chat):not(.app-shell--tools):not(.app-shell--profile):not(.app-shell--account) { display: grid; place-items: center; padding: 56px 24px; }
  .app-shell:not(.app-shell--account) > .account-page { min-height: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 16px 48px rgb(26 41 72 / 4%); }
}
@media (max-width: 900px) {
  .entry-page { column-gap: 36px; padding-inline: 32px; }
  .entry-login { padding: 26px; }
}
@media (max-width: 759px) {
  .entry-page { display: block; max-width: 520px; padding: 28px 24px 24px; margin: 0 auto; }
  .entry-page > .brand { padding-bottom: 42px; }
  .entry-intro { padding-bottom: 26px; }
  .entry-intro h1 { font-size: 38px; }
  .entry-page > .answer-preview { padding: 20px; margin-bottom: 28px; }
  .entry-login { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .entry-footer { padding-top: 12px; }
  .account-page { padding: 30px 24px 42px; justify-content: flex-start; }
  .account-page > .back-link { margin-bottom: 42px; }
  .account-page h1 { font-size: 30px; }
  .tools-header-main { gap: 12px; min-height: 72px; flex-wrap: wrap; padding-block: 10px 16px; }
  .tools-page .tools-wordmark { font-size: 20px; gap: 9px; }
  .tools-brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .tools-brand-mark svg { width: 24px; height: 24px; }
  .tools-page .tools-farm-switch { order: 3; width: 100%; margin: 0; padding: 0; border: 0; font-size: 12px; gap: 8px; }
  .tools-page .tools-top-action { padding: 7px 12px; min-height: 40px; font-size: 13px; }
  .tools-primary-nav { column-gap: 18px; row-gap: 0; }
  .tools-page .tools-primary-nav a { padding: 11px 0 13px; font-size: 13px; }
  .app-shell--tools .tools-page > .tools-header { margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { button, a, input, select, textarea { transition: none; } }
