:root {
  color-scheme: light;
  --ink: #282d29;
  --muted: #5e655d;
  --line: #d5d6cc;
  --paper: #f8f8f3;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #28659a; outline-offset: 4px; }
.entry-header, .entry-footer { padding: 0 clamp(22px, 5.6vw, 94px); }
.entry-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; }
.mark { position: relative; display: block; width: 29px; height: 29px; }
.mark::before, .mark::after { content: ""; position: absolute; width: 15px; height: 18px; border: 1.6px solid var(--ink); border-radius: 1px; }
.mark::before { left: 1px; top: 7px; }
.mark::after { left: 8px; top: 2px; background: var(--paper); box-shadow: inset 0 -4px 0 #d1d5c8; }
.entry-context { color: var(--muted); font-size: .82rem; }
.entry-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.entry-footer a { color: inherit; text-underline-offset: .22em; }
.entry-footer:empty { display: none; }
.account-layout { width: min(1112px, calc(100% - 80px)); margin: auto; padding: clamp(52px, 7vh, 84px) 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .78fr); align-items: center; gap: clamp(56px, 8vw, 120px); }
.account-layout.settings { display: block; width: min(396px, calc(100% - 44px)); }
.window-print { position: relative; padding: clamp(14px, 2.1vw, 28px); background: #fdfcf6; border: 1px solid #cccdc1; box-shadow: 0 3px 5px #222d220a, 0 16px 33px -24px #25302355; }
.window-print canvas { display: block; width: 100%; aspect-ratio: 1.30; background: linear-gradient(155deg,#e5e1d2,#c9d0bc); }
.window-print::after { content: ""; position: absolute; inset-block: 0; left: 61%; width: clamp(7px,.9vw,13px); background: #fdfcf6; }
h1 { margin: 0; font: 650 clamp(2.12rem, 3.2vw, 3.15rem)/1.2 var(--serif); letter-spacing: -.05em; }
.account-form > p, .demo-copy > p { margin: 14px 0 30px; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.account-form label { display: block; margin: 16px 0 6px; font-size: .86rem; font-weight: 600; }
.account-form input { display: block; width: 100%; height: 46px; margin-top: 6px; padding: 8px 12px; border: 1px solid #afb4a9; border-radius: 4px; background: #fff; color: var(--ink); }
.account-form input[readonly] { background: #eeefe8; }
.password-input { position: relative; }
.password-input input { padding-right: 62px; }
[data-password-toggle] { position: absolute; right: 4px; top: 4px; height: calc(100% - 8px); padding-inline: 11px; border: 0; border-radius: 3px; color: var(--muted); background: transparent; font-size: .82rem; }
[data-password-toggle]:hover { background: #eeefe8; }
.account-form button[type=submit] { width: 100%; min-height: 46px; margin-top: 22px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font-weight: 600; }
.account-form button[type=submit]:hover { background: #41483f; }
.account-form p[role=alert] { margin: 10px 0 0; color: #923d2a; }
.account-form form + p { margin: 18px 0; }
.account-form a { color: #245887; text-underline-offset: .19em; }
@media (max-width: 770px) {
  .entry-header { min-height: 58px; }
  .account-layout { display: flex; flex-direction: column; align-items: stretch; width: min(396px, calc(100% - 44px)); gap: 30px; padding-block: 33px 43px; }
  .window-print { padding: 9px; }
  .window-print canvas { aspect-ratio: 2.7; }
}
