:root {
  --green: #1f6a50;
  --green-strong: #14543d;
  --deep: #173e31;
  --mint: #eaf2ec;
  --wechat: #07c160;
  --paper: #fff;
  --bg: #f6f8f4;
  --ink: #27372f;
  --muted: #69786f;
  --line: #dce5de;
  --error: #a4463d;
  --error-bg: #fff3f1;
  --shadow: 0 20px 55px rgba(29, 67, 50, .09);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(31, 106, 80, .24); }
.site-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.site-header { min-height: 70px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { width: 42px; height: 42px; display: block; }
.brand strong { color: var(--deep); font: 700 19px/1 var(--serif); white-space: nowrap; }
.site-header p { margin: 0; color: #738078; font-size: 13px; }
.site-header > a:last-child { min-height: 44px; margin-left: auto; display: inline-flex; align-items: center; color: #52645a; font-size: 14px; }
.page-shell { width: min(500px, calc(100% - 40px)); margin: auto; padding: 44px 0 52px; }
.account-layout { width: 100%; }
.account-heading { margin-bottom: 22px; text-align: center; }
.account-heading .eyebrow { margin: 0 0 5px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.account-heading h1 { margin: 0; color: var(--deep); font: 700 34px/1.35 var(--serif); }
.account-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.intro .eyebrow, .card .eyebrow, dialog .eyebrow { margin: 0 0 10px; color: #4c8069; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.intro h1 { max-width: 600px; margin: 0; color: var(--deep); font: 700 clamp(38px, 5vw, 62px)/1.22 var(--serif); }
.intro > p { max-width: 570px; margin: 22px 0; color: var(--muted); font-size: 17px; }
.flow-steps { margin: 30px 0 0; padding: 0; display: grid; gap: 15px; list-style: none; }
.flow-steps li { display: flex; align-items: center; gap: 13px; color: #53645a; }
.flow-steps span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #bfd1c5; border-radius: 50%; background: #fff; color: var(--green); font-size: 13px; font-weight: 700; }
.card { padding: 30px 32px 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.card h1 { margin: 0 0 8px; color: var(--deep); font: 700 30px/1.4 var(--serif); }
.card > .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.mode-tabs { margin-bottom: 20px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; background: #eff3f0; }
.mode-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #68766e; cursor: pointer; }
.mode-tabs button.active { background: #fff; color: var(--deep); font-weight: 700; box-shadow: 0 4px 12px rgba(35, 70, 50, .07); }
.method-tabs { margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method-tabs button { min-height: 48px; padding: 7px 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #637168; font-size: 13px; cursor: pointer; }
.method-tabs button img { width: 27px; height: 27px; display: block; border-radius: 7px; }
.method-tabs button.active { border-color: #83b09a; background: #f2f8f4; color: var(--deep); font-weight: 700; box-shadow: 0 6px 16px rgba(31, 106, 80, .08); }
.account-core-sentence { margin: -7px 0 19px; color: var(--deep); text-align: center; font-size: 14px; font-weight: 700; }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 7px; color: #384b40; font-size: 14px; font-weight: 700; }
.field input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #cfdad2; border-radius: 11px; background: #fff; color: var(--ink); }
.field input::placeholder { color: #9aa39e; }
.verification-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-button { min-width: 106px; min-height: 48px; border: 1px solid #a9c4b5; border-radius: 11px; background: #f3f8f5; color: var(--green); font-size: 13px; font-weight: 700; cursor: pointer; }
.code-button:disabled { color: #738078; background: #eef2ef; cursor: not-allowed; }
.verification-status { min-height: 22px; margin: 6px 0 0; color: #748078; font-size: 13px; }
.verification-status[data-state="error"] { color: var(--error); }
.verification-status[data-state="success"] { color: #35664c; }
.agreements { margin: 17px 0; padding-top: 3px; border-top: 1px solid #edf1ee; }
.checkbox-row { min-height: 44px; margin: 6px 0; display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: center; color: #526158; font-size: 13px; }
.checkbox-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.checkbox-row button { min-height: 44px; padding: 0 3px; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--green); text-decoration: underline; cursor: pointer; }
.primary, .secondary { min-height: 48px; padding: 10px 18px; border-radius: 11px; font-weight: 700; cursor: pointer; }
.primary { width: 100%; border: 0; background: var(--green); color: #fff; }
.primary:hover { background: var(--green-strong); }
.primary:disabled { background: #a9b8af; cursor: not-allowed; }
.secondary { border: 1px solid #cdd9d1; background: #fff; color: var(--deep); }
.full { width: 100%; }
.success-continue { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.text-button { padding: 8px; border: 0; background: transparent; color: var(--green); cursor: pointer; }
.form-footer { margin: 10px 0 0; text-align: center; color: #67766d; font-size: 13px; }
.form-footer button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }
.error-box, .success-box, .notice-box { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.error-box { border: 1px solid #f0d2cd; background: var(--error-bg); color: var(--error); }
.success-box { border: 1px solid #c9ded0; background: #eff7f1; color: #35664c; }
.notice-box { border: 1px solid #ecdcae; background: #fffaf0; color: #6d6349; }
.two-methods { grid-template-columns: repeat(2, 1fr); }
.registration-boundary h2 { margin: 0 0 10px; color: var(--deep); font-size: 21px; }
.registration-boundary > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.availability-list { margin: 18px 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.availability-list li { min-height: 64px; padding: 10px 12px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.availability-list img { width: 28px; height: 28px; }
.availability-list span { display: grid; gap: 3px; }
.availability-list strong { color: var(--deep); font-size: 14px; }
.availability-list small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.availability-list b { padding: 4px 7px; border-radius: 999px; background: #f1f3f1; color: #707a74; font-size: 11px; white-space: nowrap; }
.existing-account-note { margin-bottom: 0; text-align: center; }
.registration-boundary .primary { display: flex; align-items: center; justify-content: center; }
.loading-row { display: flex; justify-content: center; align-items: center; gap: 8px; }
.spinner { width: 17px; height: 17px; margin-right: 8px; display: inline-block; vertical-align: -3px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wechat-panel { padding: 10px 2px 0; text-align: center; }
.wechat-panel h2 { margin: 8px 0 4px; color: var(--deep); font-size: 19px; }
.wechat-panel > p { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.wechat-mark { width: 58px; height: 58px; margin: auto; display: block; border-radius: 16px; box-shadow: 0 8px 18px rgba(7, 193, 96, .18); }
.wechat-panel .agreements { text-align: left; }
.identity-rule { margin: 8px 0 0; padding-top: 9px; border-top: 1px solid #edf1ee; color: #78837d; font-size: 13px; line-height: 1.6; }
.identity-rule summary { min-height: 44px; display: flex; align-items: center; justify-content: center; color: #68766e; text-align: center; cursor: pointer; }
.identity-rule p { margin: 8px 0 0; }
.loading-card { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.page-spinner { width: 28px; height: 28px; border: 3px solid #dbe7df; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.success-view { text-align: center; }
.success-mark { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 28px; }
.account-number { margin: 20px 0 10px; padding: 15px; border-radius: 12px; background: #f5f8f5; color: var(--deep); font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.identity-summary { color: #67776e; font-size: 13px; }
.boundary-list { margin: 20px 0; padding: 0; display: grid; gap: 10px; list-style: none; text-align: left; color: #5b6961; font-size: 13px; }
.boundary-list li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 700; }
.site-footer { padding: 18px 24px; border-top: 1px solid var(--line); background: #fff; color: #7a867f; text-align: center; font-size: 13px; }
.site-footer p { margin: 0; }
dialog { width: min(520px, calc(100% - 30px)); padding: 32px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); box-shadow: 0 30px 90px rgba(22, 50, 35, .22); }
dialog::backdrop { background: rgba(20, 42, 30, .35); }
dialog h2 { margin: 0 0 17px; color: var(--deep); font: 700 27px/1.4 var(--serif); }
.dialog-close { position: absolute; right: 15px; top: 13px; width: 38px; height: 38px; border: 0; background: transparent; color: #748077; font-size: 25px; }
.placeholder-copy { margin: 0 0 22px; padding: 17px; border-radius: 12px; background: #f5f8f5; color: #647168; }
.placeholder-copy p { margin: 0 0 9px; }
.placeholder-copy p:last-child { margin: 0; }

/* ACCOUNT-STAGE1-20260909: BI legibility and touch-target contract. */
.page-shell { width: min(480px, calc(100% - 32px)); padding-top: 48px; }
.account-heading h1 { font: 700 32px/1.35 var(--sans); }
.account-heading > p:last-child,.field label,.field input,.primary,.mode-tabs button,.method-tabs button,.account-core-sentence,.error-box,.success-box,.notice-box,.registration-boundary > p,.availability-list strong { font-size: 16px; }
.card { padding: 32px; }
.field { margin-bottom: 20px; }
.field label { margin-bottom: 8px; }
.field input,.primary { min-height: 52px; height: auto; border-radius: 12px; }
.field input { border-color: #86998d; }
.mode-tabs button,.form-footer button,.site-header a,.identity-rule summary { min-height: 44px; }
.mode-tabs button,.method-tabs button { font-size: 16px; }
.site-footer,.form-footer,.identity-rule,.availability-list small { font-size: 14px; }
button:focus-visible,a:focus-visible,input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

@media (max-width: 860px) {
  .page-shell { padding: 36px 0; }
}

@media (max-width: 520px) {
  .site-header { min-height: 62px; padding: 0 14px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 17px; }
  .site-header p { display: none; }
  .site-header > a:last-child { font-size: 14px; }
  .page-shell { width: calc(100% - 32px); padding: 24px 0 32px; }
  .account-heading { margin-bottom: 17px; }
  .account-heading h1 { font-size: 28px; }
  .card { padding: 24px 20px; border-radius: 20px; }
  .card h1 { font-size: 26px; }
  .method-tabs { gap: 7px; }
  .method-tabs button { min-height: 48px; padding: 6px 4px; gap: 5px; }
  .method-tabs button img { width: 25px; height: 25px; }
  .field input { font-size: 16px; }
  .verification-row { grid-template-columns: 1fr; }
  .code-button { min-height: 44px; }
  .site-footer { padding: 14px 16px; }
  dialog { padding: 26px 20px; }
}

/* ACCOUNT-COMPACT-UI2-20260909: compact owner preview, behavior unchanged. */
body { font-size: 14px; line-height: 1.5; background: linear-gradient(180deg, #f9faf7 0%, #f1f5f0 100%); }
.site-shell { min-height: 100svh; display: grid; place-items: center; padding: 20px 12px; }
.page-shell { width: min(268px, calc(100vw - 24px)); margin: 0; padding: 0; }
.account-chrome { min-height: 44px; margin: 0 2px 6px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; }
.account-chrome .brand { min-width: 44px; min-height: 44px; justify-content: center; gap: 0; }
.account-chrome .brand-symbol {
  width: 34px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  background: #173e31;
  -webkit-mask-image: url("/assets/yc-brand-tc-lockup-owner-standard-v190.png");
  -webkit-mask-size: 140px 56px;
  -webkit-mask-position: -12px -11px;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("/assets/yc-brand-tc-lockup-owner-standard-v190.png");
  mask-size: 140px 56px;
  mask-position: -12px -11px;
  mask-repeat: no-repeat;
}
.account-chrome .account-title { color: var(--deep); font-size: 14px; line-height: 1.2; text-align: center; white-space: nowrap; }
.account-chrome > a:last-child { min-height: 44px; display: inline-flex; align-items: center; justify-self: end; color: #617067; font-size: 12px; white-space: nowrap; }
.account-heading { margin: 0 0 6px; text-align: center; }
.account-heading h1 { margin: 0; font: 700 20px/1.25 var(--sans); }
.account-heading > p:last-child { margin: 2px 0 0; font-size: 12px; line-height: 1.35; }
.card { padding: 13px 14px 12px; border-radius: 16px; box-shadow: 0 14px 36px rgba(29, 67, 50, .09); }
.mode-tabs { margin-bottom: 10px; padding: 2px; border-radius: 10px; }
.mode-tabs button { min-height: 44px; border-radius: 8px; font-size: 13px; }
.method-tabs { margin: 0 0 8px; gap: 7px; }
.method-tabs button { min-height: 44px; padding: 4px 8px; border-radius: 10px; font-size: 13px; }
.method-tabs button img { width: 21px; height: 21px; border-radius: 5px; }
.account-core-sentence { margin: 0 0 9px; font-size: 12px; line-height: 1.35; }
.field { margin: 0 0 9px; }
.field label { margin-bottom: 3px; font-size: 13px; line-height: 1.35; }
.field input { min-height: 44px; height: 44px; padding: 0 11px; border-radius: 9px; font-size: 14px; }
.primary { min-height: 44px; padding: 7px 12px; border-radius: 9px; font-size: 14px; }
.form-footer { margin: 1px 0 -7px; font-size: 12px; }
.form-footer button { min-height: 44px; padding: 0 4px; font-size: 12px; }
.error-box, .success-box, .notice-box { margin: 0 0 9px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; }
.registration-boundary h2 { margin: 0 0 5px; font-size: 15px; line-height: 1.4; text-align: center; }
.registration-boundary > p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; text-align: center; }
.availability-list { margin: 0 0 10px; gap: 4px; }
.availability-list li { min-height: 34px; padding: 5px 9px; display: flex; justify-content: space-between; gap: 8px; border-radius: 8px; }
.availability-list strong { font-size: 13px; }
.availability-list li > span { color: #768078; font-size: 11px; white-space: nowrap; }
.loading-card { min-height: 150px; }
.recovery-link { min-height: 44px; margin: 1px 0 -7px; display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 12px; font-weight: 700; }
.recovery-note { margin: 8px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.recovery-heading { min-height: 44px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recovery-heading h1 { margin: 0; font: 700 18px/1.3 var(--sans); }
.recovery-heading a { min-height: 44px; display: inline-flex; align-items: center; color: var(--green); font-size: 12px; }
.recovery-copy { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.recovery-card .success-view h2 { margin: 0 0 6px; font-size: 18px; }
.recovery-actions { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.recovery-actions button,.recovery-restart { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--green); font: 700 12px/1.2 var(--sans); cursor: pointer; }
.recovery-actions button:disabled { color: var(--muted); cursor: default; }
.recovery-restart { width: 100%; }

@media (max-width: 520px) {
  .site-shell { padding: 12px; }
  .page-shell { width: min(268px, calc(100vw - 24px)); padding: 0; }
  .card { padding: 12px; border-radius: 15px; }
  .account-heading { margin-bottom: 7px; }
  .account-heading h1 { font-size: 20px; }
  .field input { font-size: 16px; }
  .verification-row { grid-template-columns: 1fr auto; }
}
/* Registration and profile: a compact two-step form with reusable avatar choices. */
.profile-card{width:min(100%,360px)}
.profile-card h1{font-size:19px;margin:0}
.step-caption{margin:0 0 18px;color:var(--muted);font-size:12px}
.field-hint{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.5}
.avatar-picker{min-width:0;padding:0;border:0;margin:0 0 20px}
.avatar-picker legend{font-size:14px;font-weight:700;margin-bottom:10px}
.avatar-preview-row{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.avatar-preview-row .avatar-preview{width:64px;height:64px}
.photo-upload{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;color:var(--deep);cursor:pointer}
.photo-upload:focus-within{outline:2px solid var(--green)}
.avatar-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.avatar-options button{padding:8px 2px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;display:grid;justify-items:center;gap:5px;color:var(--ink)}
.avatar-options button[aria-pressed="true"]{border:2px solid var(--green);padding:7px 1px;background:#f2f8f4}
.avatar-options small{font-size:11px}
.photo-status{font-size:12px;line-height:1.5;color:var(--muted);margin:9px 0 0;min-height:18px}
.checkbox-row a{color:var(--green);text-decoration:underline}
.profile-card .primary{min-height:44px}
.profile-card .field input{height:44px}
@media(max-width:420px){.profile-card{padding:20px 18px}.avatar-options{gap:5px}}

/* Learner dossier: readable records and editing, independent of registration layout. */
.page-shell.learner-page{width:min(820px,calc(100vw - 32px));padding:24px 0}
.dossier{padding:28px 32px;font-size:15px;line-height:1.7}
.dossier .recovery-heading h1{font-size:24px}.dossier .recovery-heading a{font-size:14px}
.dossier-intro{padding:18px 0}.dossier-intro h2{font-size:28px;margin:0;color:var(--deep)}
.dossier-intro p{margin:6px 0;color:var(--muted)}
.learner-summary{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:16px;background:var(--mint);border-radius:14px;padding:20px}
.learner-summary span,.learner-summary strong{display:block}.learner-summary span{font-size:13px;color:var(--muted)}.learner-summary strong{overflow-wrap:anywhere}
.dossier-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 0}.dossier-toolbar p{color:var(--muted)}
.dossier-fields{padding:0;border:0;min-width:0;margin:0}.dossier-section{padding:22px 0;border-bottom:1px solid var(--line)}
.dossier-section h2{font-size:17px;margin:0 0 16px;color:var(--deep)}
.dossier-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px}.dossier-grid .wide{grid-column:1/-1}
.dossier-item dt{font-size:13px;color:var(--muted);margin-bottom:5px}.dossier-item dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.topic-tag{display:inline-block;padding:4px 10px;background:#f0f5f1;border-radius:7px;margin:0 6px 6px 0}
.dossier .field{margin:0}.dossier .field label{font-size:14px;margin-bottom:7px}
.dossier input,.dossier select,.dossier textarea{font:inherit}.dossier .field input,.dossier select,.dossier textarea{width:100%;min-height:46px;border:1px solid #86998d;border-radius:9px;padding:10px;color:var(--ink);background:#fff}.dossier textarea{resize:vertical}
.dossier select:focus-visible,.dossier textarea:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.topic-editor{border:0;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.topic-editor legend{margin-bottom:10px;font-weight:700}.topic-editor label{display:flex;align-items:center;gap:8px;min-height:44px}.topic-editor input{accent-color:var(--green);width:18px;height:18px}
.dossier-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.dossier-actions .primary{width:auto;padding:12px 24px}
.dossier .checkbox-row{margin-top:20px;font-size:14px}.dossier-account{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:26px}.dossier-account p{font-size:13px;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.dossier-account button{margin-left:auto;min-height:44px}.dossier-account small{flex-basis:100%;color:var(--muted)}
@media(max-width:560px){.page-shell.learner-page{width:calc(100vw - 24px);padding:8px 0}.dossier{padding:20px 18px}.dossier-grid{grid-template-columns:1fr;gap:16px}.learner-summary{grid-template-columns:1fr 1fr;padding:16px;gap:12px}.learner-summary>div:first-child{grid-column:1/-1}.topic-editor{grid-template-columns:1fr}.dossier-actions button{flex:1}.dossier .field input,.dossier select,.dossier textarea{font-size:16px}}

/* Brief welcome and access guidance shared by login and registration. */
/* A quiet introduction beside the form, stacked on smaller screens. */
.page-shell.welcome-page{width:min(880px,calc(100vw - 64px));padding:56px 0}
.welcome-page .account-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);align-items:center;gap:64px}
.account-welcome{padding:8px 0;color:var(--deep)}
.account-welcome h1{margin:0 0 24px;font:650 34px/1.35 var(--sans);letter-spacing:-.02em}
.welcome-lead{margin:0;font-size:18px;line-height:1.9;color:#365a49}
.welcome-study{margin:30px 0 14px;max-width:320px;font-size:14px;line-height:1.9;color:var(--muted)}
.account-welcome>a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--green)}
.welcome-page .card{border-radius:20px;padding:28px;box-shadow:0 12px 38px rgba(29,67,50,.045)}
.welcome-page .method-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.welcome-page .profile-card{width:100%}
@media(max-width:720px){
 .page-shell.welcome-page{width:min(420px,calc(100vw - 32px));padding:26px 0 36px}
 .welcome-page .account-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .account-welcome{padding:0 8px}
 .account-welcome h1{font-size:28px;margin-bottom:14px}
 .welcome-lead{font-size:16px;line-height:1.8}
 .welcome-study{max-width:none;margin:16px 0 4px;font-size:13px;line-height:1.8}
 .welcome-break{display:none}
 .welcome-page .card{padding:24px 20px}
}

/* Registration completion is a voluntary invitation, not automatic enrollment. */
.learner-invitation{padding:26px 22px;text-align:center}
.registration-complete{margin:0 0 18px;color:var(--green);font-size:14px;font-weight:700}
.registration-complete span{display:block;width:44px;height:44px;margin:0 auto 10px;border-radius:50%;background:var(--mint);font-size:24px;line-height:44px}
.learner-invitation h1{font:700 23px/1.5 var(--sans);margin:0 0 14px}
.invitation-copy{font-size:15px;line-height:1.8;color:var(--muted);margin:0 0 24px;text-align:left}
.learner-invitation .success-continue{min-height:48px;font-size:15px;margin-bottom:12px}
.invitation-note{font-size:12px;line-height:1.6;color:var(--muted);margin:16px 0 0}

/* Account closure: deliberately separate from ordinary logout and editing. */
.closure-entry{margin-top:28px;padding-top:22px;border-top:1px solid #e1e7e4}.closure-entry h2{font-size:17px;margin:0 0 8px}.closure-entry p,.closure-note{font-size:14px;line-height:1.75;color:#596a63}.danger-link{background:none;border:0;padding:8px 0;color:#a13232;font:inherit;text-decoration:underline;cursor:pointer}.closure-card{max-width:680px}.closure-card h1{font-size:24px}.closure-warning{background:#fff6ed;border:1px solid #ebd6bf;border-radius:16px;padding:20px;margin:20px 0}.closure-warning h2{font-size:18px;margin-top:0}.closure-warning p{font-size:15px;line-height:1.8}.closure-card .checkbox-row{margin:22px 0;align-items:flex-start;line-height:1.7}.closure-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.closure-actions button{flex:1;min-width:160px}.danger-button{background:#a13232;color:white;border:0;border-radius:12px;padding:14px 18px;font:inherit;cursor:pointer}.danger-button:disabled{opacity:.5;cursor:not-allowed}.closure-card [data-export-status]{font-size:14px;line-height:1.7}

.page-shell.closure-page{width:min(640px,calc(100vw - 24px));padding:12px 0}.closure-page .closure-card{width:100%;padding:24px}.closure-card .recovery-heading{gap:12px}.closure-card .recovery-heading h1{flex:1}.closure-card .recovery-heading button{white-space:nowrap}@media(max-width:480px){.closure-page .closure-card{padding:20px 16px}.closure-warning{padding:16px}.closure-card h1{font-size:22px}}

.phone-login-methods{display:flex;gap:8px;margin:0 0 20px;padding:4px;background:#f0f4f2;border-radius:12px}.phone-login-methods button{flex:1;border:0;border-radius:9px;padding:10px 6px;background:transparent;color:#52685f;font:inherit;font-size:14px;cursor:pointer}.phone-login-methods button[aria-pressed="true"]{background:#fff;color:#163e30;box-shadow:0 1px 4px #173e3015;font-weight:700}.phone-code-row{display:flex;gap:8px;align-items:stretch}.phone-code-row input{min-width:0;flex:1}.phone-code-row button{white-space:nowrap;flex:0 0 auto;font-size:13px;padding:10px}.phone-login-note,[data-phone-status]{font-size:13px;line-height:1.7;color:#566d61}.phone-code-row button:disabled{opacity:.6;cursor:not-allowed}

.contact-binding{border:1px solid #dbe6e1;border-radius:12px;padding:18px;margin:16px 0;background:#f8fbf9}.contact-binding h3{margin:0 0 8px}.contact-binding label{display:block;margin:12px 0}.contact-binding input{display:block;box-sizing:border-box;width:100%;max-width:420px;padding:12px;border:1px solid #b9ccc2;border-radius:8px;font:inherit;background:white}.contact-binding button{padding:10px 16px;margin:6px 8px 6px 0;border:1px solid #2e6555;border-radius:8px;background:white;color:#215343;cursor:pointer;font:inherit}.contact-binding button:disabled{opacity:.5;cursor:default}.contact-binding [data-status]{overflow-wrap:anywhere;line-height:1.6}
