:root {
  --ink: #123268;
  --muted: #7185a3;
  --blue: #2568f4;
  --blue-deep: #174fae;
  --violet: #7458e8;
  --cyan: #23bddf;
  --coral: #ef755f;
  --yellow: #ffd267;
  --line: #d3e2f2;
  --soft: #f3f8fc;
  --surface: #ffffff;
  --shadow: 0 22px 58px rgba(28, 70, 123, .12);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 22%, rgba(35,189,223,.13), transparent 27rem),
    radial-gradient(circle at 92% 12%, rgba(116,88,232,.11), transparent 29rem),
    var(--soft);
}
button, input { font: inherit; }
[hidden] { display: none !important; }

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 max(28px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid rgba(197,216,238,.9);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}
.account-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.account-brand strong { font-size: 18px; letter-spacing: -.025em; }
.account-brand__mark { position: relative; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, var(--blue-deep), #3c8cff); box-shadow: 0 8px 19px rgba(35,104,244,.22); }
.account-brand__mark::before, .account-brand__mark::after, .account-brand__mark i { position: absolute; border: 1px solid white; border-radius: 50%; content: ""; }
.account-brand__mark::before { inset: 8px; }
.account-brand__mark::after { inset: 14px; }
.account-brand__mark i { inset: 19px; border-width: 2px; background: white; }
.account-header nav { display: flex; align-items: center; gap: 22px; }
.account-header nav a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.account-header nav a:hover { color: var(--blue); }

.account-main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 62px; }
.account-intro { margin-bottom: 25px; }
.account-intro p, .guest-pitch > p, .profile-card > p, .workspace-heading p { margin: 0 0 7px; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.account-intro h1 { margin: 0; font-size: clamp(31px, 4vw, 44px); letter-spacing: -.05em; }
.account-intro > span { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }

.guest-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.guest-pitch { position: relative; overflow: hidden; padding: 62px; color: white; background: linear-gradient(145deg, #12366f 0%, #265fd0 58%, #6955d9 100%); }
.guest-pitch::after { position: absolute; right: -115px; bottom: -145px; width: 350px; height: 350px; border: 50px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }
.guest-pitch > p { color: #b9dcff; }
.guest-pitch h2 { max-width: 430px; margin: 25px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.05em; }
.guest-pitch ul { display: grid; gap: 13px; margin: 38px 0 38px; padding: 0; list-style: none; }
.guest-pitch li { position: relative; padding-left: 24px; color: #e3efff; font-size: 13px; }
.guest-pitch li::before { position: absolute; left: 0; color: var(--yellow); content: "✓"; font-weight: 900; }
.guest-pitch > a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: white; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; text-decoration: none; }
.guest-pitch > a span { font-size: 18px; }
.guest-signal { position: relative; width: 94px; height: 94px; margin-bottom: 42px; border-radius: 50%; background: rgba(255,255,255,.12); }
.guest-signal i { position: absolute; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; }
.guest-signal i:nth-child(1) { inset: 12px; }
.guest-signal i:nth-child(2) { inset: 27px; }
.guest-signal i:nth-child(3) { inset: 41px; background: white; }

.auth-panel { align-self: center; width: min(100% - 72px, 450px); margin: 50px auto; }
.auth-panel__heading p { margin: 0 0 5px; color: var(--coral); font-size: 10px; font-weight: 800; }
.auth-panel__heading h2 { margin: 0 0 23px; font-size: 27px; letter-spacing: -.035em; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 21px; padding: 4px; border-radius: 12px; background: #eef4f9; }
.auth-tabs button { min-height: 41px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.auth-tabs button.is-active { color: var(--blue-deep); background: white; box-shadow: 0 5px 13px rgba(30,70,120,.09); }
.account-form { display: grid; gap: 15px; }
.account-form label, .password-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.account-form input, .password-form input, .activation-form input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid #bfd3e8; border-radius: 10px; color: var(--ink); background: white; outline: none; }
.account-form input:focus, .password-form input:focus, .activation-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,104,244,.1); }
.code-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code-field button { padding: 0 12px; border: 1px solid #bfd3e8; border-radius: 10px; color: var(--blue-deep); background: #eff6ff; cursor: pointer; font-size: 11px; font-weight: 800; }
.form-primary { min-height: 46px; border: 0; border-radius: 10px; color: white; background: linear-gradient(120deg, var(--blue), var(--violet)); cursor: pointer; font-weight: 850; }
.account-consent { display: flex !important; align-items: center; gap: 7px !important; margin-top: -4px; font-size: 10px !important; }
.account-consent input { width: 15px; min-height: 15px; margin: 0; }
.account-message { min-height: 19px; margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.account-message[data-kind="success"] { color: #177b60; }
.account-message[data-kind="error"] { color: #c24651; }

.member-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-card, .workspace-card { border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow); }
.profile-card { position: sticky; top: 20px; padding: 25px; }
.profile-card > p { color: var(--violet); }
.member-status { display: inline-flex; margin-top: 18px; padding: 5px 9px; border-radius: 999px; color: var(--blue-deep); background: #eaf3ff; font-size: 10px; font-weight: 900; }
.member-status[data-level="member"] { color: #815409; background: linear-gradient(135deg, #fff1b9, #ffdb8b); }
.member-status[data-level="owner"] { color: #5b40b7; background: #eee9ff; }
.profile-card h2 { margin: 13px 0 22px; font-size: 18px; overflow-wrap: anywhere; }
.profile-entitlement { padding: 14px; border-radius: 12px; background: #f3f7fc; }
.profile-entitlement small, .profile-entitlement strong { display: block; }
.profile-entitlement small { color: var(--muted); font-size: 9px; font-weight: 800; }
.profile-entitlement strong { margin-top: 6px; font-size: 11px; line-height: 1.6; }
.profile-card > a { display: flex; justify-content: space-between; margin-top: 22px; padding: 12px 0; border-top: 1px solid #e3edf7; border-bottom: 1px solid #e3edf7; color: var(--blue-deep); font-size: 11px; font-weight: 800; text-decoration: none; }
.profile-card > button { margin-top: 16px; padding: 8px 0; border: 0; color: #bb4c4c; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.account-workspace { display: grid; gap: 18px; }
.workspace-card { padding: 25px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.workspace-heading p { color: var(--coral); }
.workspace-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.workspace-heading > a, .workspace-heading > span { color: var(--blue-deep); font-size: 10px; font-weight: 800; text-decoration: none; }
.activation-form { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(330px, 1.25fr); align-items: end; gap: 22px; padding: 17px; border: 1px solid #d7e5f5; border-radius: 14px; background: linear-gradient(120deg, #f7faff, #f6f3ff); }
.activation-form label, .activation-form small { display: block; }
.activation-form label { font-size: 12px; font-weight: 850; }
.activation-form small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.activation-form > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.activation-form button { padding: 0 16px; border: 0; border-radius: 10px; color: white; background: linear-gradient(120deg, var(--blue), var(--violet)); cursor: pointer; font-weight: 850; }
.mini-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.mini-plans a { position: relative; display: grid; gap: 5px; min-height: 112px; padding: 14px; border: 1px solid #d8e5f2; border-radius: 13px; color: var(--ink); background: white; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.mini-plans a:hover { border-color: #8baef0; transform: translateY(-2px); }
.mini-plans small { color: var(--muted); font-size: 9px; }
.mini-plans strong { color: #4c5cd7; font-size: 20px; }
.mini-plans span { color: var(--muted); font-size: 9px; }
.mini-plans em { position: absolute; top: 8px; right: 8px; padding: 3px 5px; border-radius: 5px; color: white; background: var(--violet); font-size: 7px; font-style: normal; font-weight: 900; }
.mini-plans .is-recommended { border-color: #8c92ed; background: #fbfaff; }
.password-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.password-form .form-primary { padding: 0 18px; }

:focus-visible { outline: 3px solid rgba(37,104,244,.22); outline-offset: 3px; }

@media (max-width: 900px) {
  .guest-layout { grid-template-columns: 1fr; }
  .guest-pitch { min-height: 410px; padding: 45px; }
  .member-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .mini-plans { grid-template-columns: 1fr 1fr; }
  .activation-form { grid-template-columns: 1fr; }
  .password-form { grid-template-columns: 1fr 1fr; }
  .password-form button { grid-column: span 2; }
}

@media (max-width: 620px) {
  .account-header { min-height: 68px; padding: 0 14px; }
  .account-brand strong { max-width: 180px; font-size: 14px; line-height: 1.25; }
  .account-header nav a:not(:last-child) { display: none; }
  .account-main { width: min(100% - 24px, 1220px); padding-top: 31px; }
  .account-intro { margin-bottom: 18px; }
  .guest-layout { border-radius: 18px; }
  .guest-pitch { min-height: 350px; padding: 30px 24px; }
  .guest-pitch h2 { font-size: 34px; }
  .guest-signal { width: 74px; height: 74px; margin-bottom: 30px; }
  .guest-signal i:nth-child(3) { inset: 31px; }
  .auth-panel { width: auto; margin: 32px 20px; }
  .profile-card, .workspace-card { padding: 19px; border-radius: 16px; }
  .workspace-heading { display: block; }
  .workspace-heading > a, .workspace-heading > span { display: inline-block; margin-top: 9px; }
  .activation-form > span { grid-template-columns: 1fr; }
  .activation-form button { min-height: 44px; }
  .mini-plans { grid-template-columns: 1fr 1fr; }
  .password-form { grid-template-columns: 1fr; }
  .password-form button { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
