:root {
  color-scheme: light;
  --ink: #2c3f32;
  --green: #3e6245;
  --muted: #78816f;
  --paper: #fffdf7;
  --linen: #f7f3e8;
  --leaf: #e9eedf;
  --line: #dedfce;
  --sun: #efbd61;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--linen);
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7e9565; outline-offset: 4px; }
[hidden] { display: none !important; }
a { color: var(--green); }
.account-top { max-width: 1192px; margin: auto; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 750; letter-spacing: .04em; }
.brand-mark { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: darken; }
.brand small { display: block; font-size: 11px; letter-spacing: .11em; font-weight: 400; color: var(--muted); margin-top: 5px; }
.quiet-link { text-decoration: none; font-size: 12px; color: var(--muted); }
.quiet-link span { margin-left: 5px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 620px) 388px; gap: 78px; align-items: center; max-width: 1144px; padding: 37px 28px 46px; margin: auto; min-height: calc(100svh - 178px); }
.account-story { min-width: 0; padding-top: 2px; }
.story-heading { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; max-width: 526px; }
.eyebrow { display: block; color: var(--green); font-size: 12px; font-weight: 550; line-height: 1.6; }
.account-story .eyebrow { margin: 0 0 19px; letter-spacing: .08em; }
h1 { position: relative; z-index: 1; margin: 0; font-size: 59px; line-height: 1.25; letter-spacing: -.03em; font-weight: 800; }
h1 span { display: inline-block; position: relative; }
h1 span::after { content: ""; position: absolute; background: #edc880; height: 9px; left: 1px; right: -2px; bottom: 5px; border-radius: 55% 25% 45% 20%; z-index: -1; transform: rotate(-2deg); }
.story-intro { position: relative; z-index: 1; font-size: 15px; color: #65725f; line-height: 1.85; margin: 23px 0 0; }
.hero-mascot { width: 100%; max-width: 276px; height: auto; object-fit: contain; mix-blend-mode: darken; }
.fish-note { position: relative; display: flex; align-items: center; max-width: 540px; margin: 16px 0 0; background: var(--paper); border: 1px solid #e1e1d3; padding: 12px; border-radius: 14px; box-shadow: 0 4px 0 #e8e5d8; gap: 16px; }
.fish-photo { width: 225px; height: 138px; position: relative; background: #fff; border-radius: 7px; flex-shrink: 0; overflow: hidden; }
.fish-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.scan-corner { position: absolute; width: 14px; height: 14px; border-color: #81956f; border-style: solid; border-width: 0; }
.tl { top: 9px; left: 9px; border-top-width: 2px; border-left-width: 2px; }
.tr { top: 9px; right: 9px; border-top-width: 2px; border-right-width: 2px; }
.bl { bottom: 9px; left: 9px; border-bottom-width: 2px; border-left-width: 2px; }
.br { bottom: 9px; right: 9px; border-bottom-width: 2px; border-right-width: 2px; }
.fish-note figcaption { min-width: 0; padding-bottom: 16px; }
.photo-label { font-size: 10px; color: var(--muted); display: block; margin-bottom: 8px; }
.fish-note strong { display: block; font-size: 24px; letter-spacing: .04em; }
.fish-latin { display: block; color: #8a917e; font-size: 10px; font-style: italic; margin-top: 6px; line-height: 1.5; }
.note-stamp { position: absolute; right: 17px; bottom: 12px; color: #85936c; border: 1px solid #bdc7a9; border-radius: 4px; padding: 4px 6px; font-size: 9px; line-height: 1.4; letter-spacing: .12em; transform: rotate(-7deg); opacity: .85; }
.story-features { display: flex; justify-content: space-between; max-width: 540px; padding: 18px 10px 0; font-size: 12px; color: #65725f; }
.story-features span { display: flex; gap: 8px; align-items: center; }
.story-features svg { width: 18px; height: 18px; fill: none; stroke: #7a8e66; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.account-card { position: relative; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); padding: 35px 31px 28px; box-shadow: 0 6px 0 #eae6d9; min-width: 0; }
.account-card::before { content: ""; position: absolute; left: 32px; right: 32px; height: 3px; background: linear-gradient(90deg, #efbd61 0 30%, #c5d0aa 30% 100%); border-radius: 10px; top: 0; }
.form-heading { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.form-heading .eyebrow { font-size: 11px; color: #7b876b; }
.form-float { width: 7px; height: 17px; border-radius: 5px; background: linear-gradient(#c1814a 0 35%, #f2ca82 35% 65%, #d2dcc2 65%); transform: rotate(15deg); }
.account-card h2 { font-size: 24px; line-height: 1.4; margin: 0 0 9px; letter-spacing: -.04em; font-weight: 750; }
.form-intro { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 29px; }
form label { display: block; font-weight: 600; font-size: 13px; margin: 20px 0 9px; }
.optional { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
input { width: 100%; height: 47px; border: 1px solid #dce0d0; border-radius: 9px; background: #f9f9f1; color: var(--ink); padding: 10px 12px; min-width: 0; }
input::placeholder { font-size: 12px; color: #9b9f90; }
input:focus { background: #fffefb; border-color: #8b9c74; }
.password-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 22px; margin-bottom: 9px; }
.password-label label { margin: 0; }
.password-label span { font-size: 10px; color: #8e9681; }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.password-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #788967; font-size: 11px; }
.password-toggle:hover { background: var(--leaf); }
.primary-button { width: 100%; display: block; min-height: 47px; padding: 13px 18px; border: 0; border-radius: 9px; color: #fffdf5; background: var(--green); font-weight: 650; font-size: 14px; letter-spacing: .04em; text-align: center; text-decoration: none; box-shadow: 0 3px 0 #b7c4a6; transition: transform .15s, background .15s; }
.primary-button:hover { background: #315138; }
.primary-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #b7c4a6; }
.full-button { margin-top: 27px; }
.switch-mode { margin: 25px 0 0; font-size: 12px; text-align: center; color: #8a9280; }
.switch-mode a { font-weight: 650; margin-left: 6px; text-decoration: none; }
.switch-mode a:hover { text-decoration: underline; }
.account-help { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #ebece1; text-align: center; font-size: 10px; color: #969e8d; }
.account-footer { text-align: center; padding: 14px 20px 26px; font-size: 10px; color: #8c9480; letter-spacing: .05em; }
.account-footer span { margin: 0 7px; }
.notice { border: 1px solid #e8bbab; background: #fff0e9; color: #a94033; padding: 10px 12px; border-radius: 9px; font-size: 12px; line-height: 1.7; margin: 16px 0 -7px; overflow-wrap: anywhere; }
.status-message { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.status-message:not(:empty) { margin-top: 16px; }
.loading-line { text-align: center; line-height: 1.8; padding: 28px 0; color: var(--muted); }
.text-button { min-height: 40px; width: 100%; border: 0; background: transparent; color: var(--green); border-radius: 8px; }
.text-button:hover { background: var(--leaf); }
.existing-name { font-size: 18px; overflow-wrap: anywhere; font-weight: 600; margin: 25px 0 8px; }
@media (max-width: 1000px) {
  .account-layout { gap: 40px; grid-template-columns: minmax(0,1fr) 360px; }
  h1 { font-size: 49px; }
  .hero-mascot { max-width: 220px; }
  .fish-photo { width: 54%; height: 128px; }
  .fish-note { gap: 14px; }
  .fish-note strong { font-size: 21px; }
  .fish-latin { font-size: 9px; }
}
@media (max-width: 900px) {
  .account-top { padding: 15px 20px 9px; max-width: 470px; }
  .brand { font-size: 20px; gap: 6px; }
  .brand-mark { width: 55px; height: 55px; }
  .brand small { font-size: 9px; margin-top: 4px; letter-spacing: .06em; }
  .quiet-link { font-size: 10px; }
  .account-layout { display: block; min-height: 0; max-width: 470px; margin: auto; padding: 11px 24px 28px; }
  .account-story { padding: 8px 5px 18px; }
  .story-heading { display: block; min-height: 148px; }
  .account-story .eyebrow { font-size: 10px; margin-bottom: 12px; }
  h1 { font-size: 37px; line-height: 1.24; letter-spacing: -.035em; }
  h1 br { display: none; }
  h1 span { display: block; }
  h1 span::after { left: 0; right: auto; width: 141px; height: 6px; bottom: 3px; }
  .story-intro { font-size: 11px; line-height: 1.8; margin-top: 13px; max-width: 200px; }
  .desktop-break { display: none; }
  .hero-mascot { position: absolute; width: 168px; height: 168px; top: 1px; right: -2px; }
  .fish-note { display: none; }
  .story-features { padding: 14px 0 0; font-size: 10px; color: #7a876d; }
  .story-features span { gap: 5px; }
  .story-features svg { width: 15px; height: 15px; }
  .account-card { border-radius: 17px; padding: 27px 24px 23px; box-shadow: 0 4px 0 #eae6d9; }
  .account-card h2 { font-size: 22px; }
  .form-heading { margin-bottom: 10px; }
  .form-heading .eyebrow { font-size: 10px; }
  .form-intro { margin-bottom: 23px; font-size: 11px; }
  form label { font-size: 12px; }
  input { font-size: 16px; height: 46px; }
  input::placeholder { font-size: 12px; }
  .password-label { margin-top: 20px; }
  .full-button { margin-top: 24px; }
  .switch-mode { margin-top: 23px; font-size: 11px; }
  .account-help { margin-top: 22px; padding-top: 16px; font-size: 9px; }
  .account-footer { padding-top: 0; font-size: 9px; }
}
@media (max-width: 360px) {
  .account-layout { padding-left: 18px; padding-right: 18px; }
  .account-card { padding-left: 20px; padding-right: 20px; }
  .hero-mascot { width: 145px; height: 145px; right: -13px; top: 17px; }
  h1 { font-size: 34px; }
  .story-intro { max-width: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
