:root {
  color-scheme: light;
  --paper: #f3efe7; --ink: #292820; --muted: #746e64; --faint: #81796e;
  --line: #d8d0c4; --field-line: #bcb3a5; --field-bg: transparent;
  --accent: #a64e35; --accent-hover: #91402b; --button-ink: #fff8ee;
  --hint: #eae2d5; --error: #a3372b; --success: #4d6951;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  font-synthesis: none; text-rendering: optimizeLegibility;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #4a504b; --ink: #f3eee3; --muted: #d0cfc3; --faint: #c2c3b7;
  --line: #747a6e; --field-line: #979c8e; --field-bg: #51574f;
  --accent: #e3ac8b; --accent-hover: #efbc9d; --button-ink: #302c25;
  --hint: #565c53; --error: #ffcfbc; --success: #d7e7c9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); transition: background-color .25s, color .25s; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
input { min-width: 0; color: var(--ink); }
a { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
input:focus-visible { outline: none; }
::selection { background: var(--accent); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell { max-width: 1480px; margin: 0 auto; padding: 24px 58px 20px; min-height: 100svh; display: flex; flex-direction: column; }
.masthead { min-height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 24px; font-weight: 450; line-height: 1.2; letter-spacing: -.9px; text-decoration: none; }
.theme-switch { display: flex; align-items: center; align-self: stretch; gap: 15px; }
.theme-switch button { display: flex; align-items: center; justify-content: center; gap: 9px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 0 7px; min-width: 76px; font-size: 12px; color: var(--muted); }
.theme-switch button[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); }
.theme-switch svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.theme-divider { width: 1px; height: 18px; background: var(--line); }
.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); align-items: stretch; padding: 39px 0 16px; flex: 1; }
.editorial { position: relative; min-height: 610px; isolation: isolate; }
.headline { position: relative; z-index: 1; margin: 6px 0 0; width: min(74%, 420px); }
h1 { margin: 0; font-size: inherit; line-height: 1; }
.handwritten-title { display: block; width: 100%; aspect-ratio: 2091 / 752; background: var(--ink); mask: url('/assets/thoughts-wordmark.png') center / contain no-repeat; }
.english-title { margin: -3px 0 0 17px; font: 15px/1.8 Georgia, 'Times New Roman', serif; letter-spacing: .16em; }
.space-scene { position: absolute; z-index: -1; inset: -6px 16px -20px -55px; pointer-events: none; }
.space-scene img { position: absolute; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: opacity .3s; }
.scene-dusk { opacity: 0; }
[data-theme='dark'] .scene-warm { opacity: 0; }
[data-theme='dark'] .scene-dusk { opacity: 1; }
.entry { min-width: 0; border-left: 1px solid var(--line); padding: 30px 0 30px 48px; margin-bottom: 24px; align-self: center; }
.entry > div { width: 100%; max-width: 380px; margin-inline: auto; }
h2 { font-size: 29px; font-weight: 550; line-height: 1.45; letter-spacing: .025em; margin: 0; }
#auth-title { margin-bottom: 35px; }
.entry-subtitle { margin: 10px 0 29px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.eyebrow { font: 10px/1.8 Georgia, serif; letter-spacing: .2em; color: var(--muted); margin: 0 0 17px; }
.auth-tabs { display: flex; gap: 39px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.auth-tabs button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 13px; background: none; font-size: 14px; letter-spacing: .025em; color: var(--muted); }
.auth-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.field-group { margin-bottom: 25px; }
.field-group > label, .label-row > label { display: block; font-size: 13px; margin-bottom: 10px; }
.label-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.input-wrap { display: flex; align-items: center; width: 100%; min-height: 54px; border: 1px solid var(--field-line); border-radius: 3px; transition: border-color .2s, box-shadow .2s; background: var(--field-bg); }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input-wrap:has([aria-invalid='true']) { border-color: var(--error); }
.input-wrap input { border: 0; background: transparent; padding: 15px 16px; width: 100%; font-size: 14px; line-height: 22px; outline: none; }
input::placeholder { color: var(--faint); opacity: 1; }
.country-code { font-size: 16px; padding: 0 19px; line-height: 22px; border-right: 1px solid var(--line); }
.field-check { display: none; font-size: 14px; color: var(--success); padding-right: 15px; }
.phone-wrap.valid .field-check { display: inline; }
.send-code { align-self: stretch; position: relative; background: none; border: 0; padding: 0 15px; color: var(--accent); font-size: 12px; min-height: 44px; white-space: nowrap; min-width: 102px; }
.send-code::before { content: ''; position: absolute; width: 1px; height: 22px; background: var(--line); left: 0; top: calc(50% - 11px); }
.send-code:disabled { color: var(--muted); opacity: 1; }
.field-help, .field-error { font-size: 11px; line-height: 1.8; margin: 9px 0 0; color: var(--muted); }
.field-error { color: var(--error); }
.text-button { font-size: 12px; color: var(--muted); border: 0; background: transparent; padding: 0 0 5px; }
.text-button:hover { color: var(--accent); }
.reveal { width: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--muted); align-self: stretch; }
.reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; vertical-align: middle; }
.reveal[aria-pressed='true'] { color: var(--accent); }
.consent { display: flex; align-items: center; gap: 10px; margin: 25px 0 22px; min-height: 28px; font-size: 11px; line-height: 1.9; color: var(--muted); cursor: pointer; }
.consent input { flex: 0 0 auto; appearance: none; width: 17px; height: 17px; margin: 0; border: 1px solid var(--field-line); border-radius: 2px; background: none; cursor: pointer; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: '✓'; display: block; color: var(--button-ink); font: 12px/15px var(--sans); text-align: center; }
.consent a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.primary-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 3px; color: var(--button-ink); background: var(--accent); font-size: 16px; font-weight: 500; letter-spacing: .08em; padding: 13px 24px; transition: background .15s, transform .15s; }
.primary-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .2s; }
.primary-button:not(:disabled):hover { background: var(--accent-hover); }
.primary-button:not(:disabled):hover svg { transform: translateX(3px); }
.primary-button:not(:disabled):active { transform: translateY(1px); }
.primary-button.busy { opacity: .75; }
.feedback { padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--hint); font-size: 12px; line-height: 1.8; margin: 17px 0; overflow-wrap: anywhere; }
.feedback.error { border-color: var(--error); color: var(--error); }
.context-note { font-size: 12px; color: var(--muted); line-height: 1.9; padding: 0 0 20px; }
.footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.preview-badge { font-size: 10px; }
.success-mark { border: 1px solid var(--field-line); color: var(--accent); display: grid; place-items: center; height: 42px; width: 42px; font-size: 21px; border-radius: 50%; margin: 0 0 24px; }
.account-details { margin: 36px 0 24px; }
.account-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
dt { color: var(--muted); } dd { margin: 0; }
.quiet-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 20px 0; }
.secondary-button { width: 100%; min-height: 48px; font-size: 13px; border: 1px solid var(--line); border-radius: 3px; margin-top: 12px; background: transparent; }
.secondary-button:hover { border-color: var(--field-line); }
.back-button { margin-bottom: 25px; border: none; background: none; padding: 0; min-height: 36px; font-size: 12px; color: var(--muted); }
dialog { padding: 43px; width: min(500px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #272a24bb; backdrop-filter: blur(3px); }
dialog h2 { font-size: 25px; margin-bottom: 22px; }
dialog p:not(.eyebrow) { font-size: 13px; line-height: 2; color: var(--muted); }
dialog .primary-button { margin-top: 26px; }
.dialog-close { position: absolute; right: 10px; top: 7px; width: 40px; height: 40px; font-size: 27px; background: none; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; padding: 10px; background: var(--paper); z-index: 5; }
.skip-link:focus { top: 12px; }
.noscript-note { position: fixed; bottom: 0; width: 100%; padding: 18px; background: var(--accent); color: var(--button-ink); text-align: center; }
@media (min-width: 1500px) { .shell { padding-top: 35px; } .layout { padding-top: 50px; } .editorial { min-height: 700px; } .headline { margin-top: 32px; width: 440px; } }
@media (max-width: 1050px) { .shell { padding-inline: 32px; } .layout { grid-template-columns: minmax(0, 1.12fr) minmax(320px, 1fr); } .headline { width: 90%; } .english-title { font-size: 13px; margin-left: 12px; } .entry { padding-left: 28px; } .space-scene { inset: 85px 0 0 -32px; } .editorial { min-height: 570px; } }
@media (max-width: 760px) {
  .shell { padding: 0 24px 16px; max-width: 520px; }
  .masthead { min-height: 62px; }
  .wordmark { font-size: 21px; letter-spacing: -.75px; }
  .theme-switch { gap: 8px; }
  .theme-switch button { min-width: 58px; padding: 0 2px; gap: 6px; font-size: 10px; }
  .theme-switch svg { width: 17px; height: 17px; }
  .theme-divider { height: 16px; }
  .layout { display: flex; flex-direction: column; padding: 0 0 22px; flex: 0 0 auto; }
  .editorial { min-height: 0; height: clamp(280px, 80vw, 340px); }
  .headline { margin: 16px 0 0 -5px; width: min(80%, 285px); }
  .english-title { margin: -4px 0 0 13px; font-size: 11px; letter-spacing: .14em; }
  .space-scene { inset: 0 -24px; overflow: clip; mask: linear-gradient(to bottom, #000 80%, transparent 100%); }
  .space-scene img { width: min(100%, 425px); height: auto; left: 50%; top: -15px; transform: translateX(-50%); object-fit: contain; }
  .entry { width: 100%; padding: 0; border: 0; margin: 0; }
  .entry > div { max-width: none; }
  #auth-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; }
  h2 { font-size: 26px; }
  .entry-subtitle { font-size: 12px; margin: 7px 0 24px; }
  .auth-tabs { margin-bottom: 20px; gap: 38px; }
  .auth-tabs button { min-height: 44px; font-size: 14px; padding-bottom: 11px; }
  .field-group { margin-bottom: 19px; }
  .field-group > label, .label-row > label { font-size: 12px; margin-bottom: 8px; }
  .input-wrap { min-height: 50px; }
  .input-wrap input { font-size: 16px; padding: 13px 14px; }
  input::placeholder { font-size: 13px; }
  .country-code { font-size: 16px; padding-inline: 17px; }
  .field-help { font-size: 10px; margin-top: 7px; }
  .consent { font-size: 10px; margin: 17px 0; min-height: 30px; gap: 9px; }
  .primary-button { min-height: 51px; font-size: 16px; padding-block: 12px; }
  .footer { margin-top: auto; padding-top: 0; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 10px; }
  .preview-badge { font-size: 9px; }
  body:not([data-screen='auth']) .editorial { height: 145px; }
  body:not([data-screen='auth']) .space-scene { display: none; }
  dialog { padding: 34px 25px; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 20px; }
  .space-scene { inset-inline: -20px; }
  .theme-switch button { min-width: 42px; }
  .theme-switch button span, .theme-divider { display: none; }
  .consent { font-size: 10px; gap: 7px; }
  .send-code { min-width: 96px; padding-inline: 12px; }
}
@media (max-width: 760px) and (max-height: 720px) { .editorial { height: 225px; } .headline { width: 230px; margin-top: 11px; } .space-scene img { width: min(100%, 300px); top: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .handwritten-title { display: none; } h1 .sr-only { position: static; width: auto; height: auto; clip-path: none; font-size: 40px; } }

.account-id { font-size: 10px; overflow-wrap: anywhere; user-select: all; }
