:root {
  color-scheme:light;--paper:#fafaf7;--ink:#20231f;--muted:#565d55;--line:#dfe1da;--leaf:#c6ecc6;
  color:var(--ink);background:var(--paper);font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  text-rendering:optimizeLegibility;
}
* {box-sizing:border-box}
body,h1,h2,p {margin:0}
body {min-width:0;line-height:1.6}
button,input {font:inherit}
button {cursor:pointer}
a {color:inherit;text-decoration:none}
button:disabled {cursor:wait;opacity:.65}
a:focus-visible,button:focus-visible,input:focus-visible {outline:3px solid #589f71;outline-offset:3px}
[hidden] {display:none!important}
.skip {position:absolute;left:12px;top:0;z-index:10;background:white;padding:8px 14px;transform:translateY(-130%)}
.skip:focus {transform:none}
.frame {width:min(1280px,calc(100% - 88px));margin-inline:auto}
.icon {width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mast,.brand,.nav,.account-slot,.account-button,.button,.back-link,.overline,.hero-actions,.footer-inner {display:flex;align-items:center}
.site-header {background:var(--paper)}
.mast {min-height:66px;gap:clamp(24px,4vw,65px)}
.brand {gap:9px;flex:none}
.brand img {display:block}
.brand strong {color:#12372b;font-weight:750;font-size:1.4rem;letter-spacing:.005em}
.brand-product {padding-left:10px;border-left:1px solid #8da889;font-size:.87rem;color:#374c40}
.nav {gap:clamp(16px,2.2vw,33px)}
.product-link {display:inline-flex;align-items:baseline;gap:7px;line-height:1.45}
.nav strong {font-weight:650;color:var(--ink);font-size:.96rem}
.product-link span {font-size:.84rem;color:#515950}
.preview-badge {align-self:center;white-space:nowrap;border:1px solid #ccd6c8;border-radius:999px;padding:1px 7px;color:#4d644f;background:#f0f3eb;font-size:.68rem;font-weight:550}
.product-link + .product-link {padding-left:clamp(16px,2.2vw,33px);border-left:1px solid var(--line)}
.nav a {font-size:.92rem;font-weight:530}
.nav a:hover,.account-slot>a:hover:not(.account-button),.back-link:hover,.mode-switch a:hover,.footer-inner a:hover {text-decoration:underline;text-underline-offset:4px}
.account-slot {margin-left:auto;gap:18px;font-size:.9rem}
.account-slot button {background:none;color:inherit;border:0;padding:4px}
.account-button,.submit {border:0;border-radius:999px;color:#fff;background:var(--ink)}
.account-button {gap:7px;padding:7px 16px;font-weight:620}
.account-button:hover,.submit:hover {background:#3b463b}
.account-button .icon,.back-link .icon {width:15px;height:15px;transform:rotate(-42deg)}
.hero {position:relative;isolation:isolate;display:flex;align-items:center;min-height:clamp(450px,calc(100svh - 154px),720px);background:#15211d;color:#fbfcf8;border-radius:20px;overflow:hidden}
.hero-image,.auth-cover>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero-image {object-position:68% 37%}
.hero::after {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#101a17a6,transparent 67%)}
.hero-copy {max-width:54%;padding:clamp(32px,5.3vw,80px)}
.overline,.auth-cover p {font-size:.86rem;letter-spacing:.09em;font-weight:550;color:#d5ecd7;gap:9px}
.overline span {width:7px;height:7px;border-radius:50%;background:var(--leaf)}
.hero h1 {margin:16px 0 22px;font-size:clamp(2.7rem,5.1vw,4.85rem);font-weight:630;line-height:1.13;letter-spacing:-.055em}
.hero-intro {font-size:1rem;line-height:1.8;color:#e1ebe2;max-width:24em;text-wrap:pretty}
.hero-actions {margin-top:25px;gap:20px;flex-wrap:wrap}
.button {justify-content:center;border:0;border-radius:999px;gap:10px;padding:11px 21px;font-weight:650;font-size:.93rem}
.hero-primary {background:var(--leaf);color:#16271c}
.hero-primary:hover {background:#dcf8dc}
.hero-primary .icon,.submit .icon {width:17px;height:17px}
.hero-secondary {color:#fbfcf9;font-size:.87rem;padding:8px 0;text-decoration:underline;text-underline-offset:5px}
.hero-secondary:hover {color:var(--leaf)}
.site-footer {border-top:1px solid var(--line)}
.footer-inner {min-height:45px;gap:21px;color:#646961;font-size:.8rem}
.footer-inner span {margin-right:auto}
.page-message,.form-status {margin-block:0 12px;background:#f3e5da;color:#753f2b;font-size:.87rem;border-radius:6px;padding:8px 13px}
.back-link {margin-left:auto;gap:6px;font-size:.91rem}
.auth-layout {display:grid;grid-template-columns:minmax(0,1.14fr) minmax(300px,.86fr);gap:clamp(35px,7vw,105px);align-items:start;padding:7px 0 25px}
.auth-cover {isolation:isolate;position:sticky;top:16px;min-height:clamp(405px,63vh,655px);border-radius:18px;background:#15221c;color:#fff;overflow:hidden;display:flex;align-items:end}
.auth-cover>img {object-position:74% 42%}
.auth-cover::after {position:absolute;z-index:-1;content:"";inset:0;background:linear-gradient(0deg,#101b17eb 0%,#101b1733 56%,transparent)}
.auth-cover>div {padding:32px clamp(24px,3vw,48px)}
.auth-cover h2 {font-size:clamp(2.6rem,3.8vw,4rem);line-height:1.16;letter-spacing:-.05em;font-weight:620;margin-top:9px}
.auth-form-panel {align-self:center;width:min(100%,405px);padding:8px 0;margin-right:auto}
.auth-form-panel h1 {font-size:clamp(1.85rem,2.65vw,2.6rem);line-height:1.35;font-weight:650;letter-spacing:-.04em;margin-bottom:22px}
.form-field {display:block;min-width:0;margin:0 0 10px}
#register-fields {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.85fr);gap:10px}
.form-field>span {display:flex;gap:7px;align-items:baseline;margin:0 0 4px;font-size:.88rem;font-weight:570}
.form-field small {color:#666d64;font-size:.76rem;font-weight:400}
.form-field input {display:block;width:100%;height:43px;border-radius:7px;background:#fff;color:var(--ink);border:1px solid #cbd0c6;padding:8px 12px}
.form-field input::placeholder {font-size:.84rem;color:#73796f}
.form-field>small {display:block;margin-top:3px}
.mode-switch a {color:#2a5840;text-decoration:underline;text-underline-offset:3px}
.submit {width:100%;margin-top:7px}
.mode-switch {text-align:center;margin:12px 0 0;color:var(--muted);font-size:.86rem}
.mode-switch a {margin-left:5px;font-weight:580}
@media (max-width:880px) {
  .frame {width:calc(100% - 44px)}
  .mast {gap:24px;min-height:60px}
  .nav {gap:18px}
  .hero-copy {max-width:56%;padding:28px}
  .auth-layout {gap:28px;grid-template-columns:minmax(0,.88fr) minmax(0,1fr)}
}
@media (max-width:640px) {
  .frame {width:calc(100% - 30px)}
  .mast {min-height:59px;gap:9px;flex-wrap:wrap;position:relative}
  .brand {gap:7px}
  .brand img {width:31px;height:31px}
  .brand strong {font-size:1.27rem}
  .nav {order:3;width:100%;gap:14px;padding:0 0 7px}
  .product-link + .product-link {padding-left:14px}
  .product-link {gap:5px}
  .nav strong {font-size:.86rem}
  .product-link span {font-size:.76rem}
  .nav a {font-size:.8rem}
  .account-slot {gap:13px;font-size:.84rem;margin-block:9px 2px}
  .account-button {padding:5px 11px}
  .hero {display:grid;align-content:end;min-height:clamp(470px,calc(100svh - 156px),680px);background:#15211d;border-radius:15px}
  .hero-image {height:67%;object-position:76% 34%;mask-image:linear-gradient(#000 68%,transparent 100%)}
  .hero::after {background:linear-gradient(0deg,#15211d 0%,#15211d 23%,transparent 56%)}
  .hero-copy {max-width:100%;padding:24px 20px 25px}
  .hero h1 {font-size:clamp(2.1rem,8.3vw,3.1rem);margin:8px 0 12px}
  .hero-intro {font-size:.91rem;line-height:1.78}
  .hero-actions {gap:15px;margin-top:19px}
  .button {padding:9px 14px;font-size:.86rem}
  .hero-secondary,.overline {font-size:.79rem}
  .footer-inner {min-height:44px;gap:12px;font-size:.76rem}
  .auth-page .mast {min-height:59px}
  .auth-layout {display:block;padding:16px 0 22px}
  .auth-cover {display:none}
  .auth-form-panel {width:min(100%,390px);margin:auto;padding:0 6px}
  .back-link {font-size:.82rem}
}
[data-page="home"] {min-height:100svh;display:flex;flex-direction:column}
[data-page="home"] main {flex:1;display:grid;align-content:center;padding-block:8px 24px}
@media(max-width:640px) {
  [data-page="home"] main {padding-block:6px 18px}
}

.auth-page #account-actions {display:flex;justify-content:center;align-items:center;gap:12px 22px;flex-wrap:wrap}
#account-actions>a {margin-left:0}
