/* byClaude-start 2026-08-27 11:07:18; 作者：byClaude */
:root {
  color-scheme: light;
  --bg: #fbf6ef; --surface: #ffffff; --text: #302c28; --muted: #756e67;
  --border: #e9e0d7; --accent: #80531d; --accent-text: #ffffff; --input: #fffcf9;
  --soft: #f6e8d6; --error: #b3261e; --success: #367259; --shadow: 0 8px 30px #795b3c08;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --bg: #191817; --surface: #242220; --text: #f4eee8; --muted: #b8afa6;
    --border: #45403a; --accent: #f2c28b; --accent-text: #32220f; --input: #292623;
    --soft: #3c3024; --error: #ffb4ab; --success: #91d4b0; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #191817; --surface: #242220; --text: #f4eee8; --muted: #b8afa6;
  --border: #45403a; --accent: #f2c28b; --accent-text: #32220f; --input: #292623;
  --soft: #3c3024; --error: #ffb4ab; --success: #91d4b0; --shadow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.header { width: min(1040px, 100%); margin: 0 auto; padding: 28px 32px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 22px; font-weight: 750; }
.brand img { object-fit: contain; }
.preferences { display: flex; align-items: center; gap: 8px; }
select { border: 1px solid var(--border); border-radius: 6px; padding: 9px 6px; background: var(--surface); max-width: 135px; font-size: 14px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; border-radius: 6px; color: var(--muted); flex: 0 0 auto; }
.icon-button:hover { background: var(--soft); color: var(--accent); }
svg { width: 20px; height: 20px; }
main { width: min(464px, calc(100% - 40px)); margin: 46px auto 38px; }
.heading-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--soft); border-radius: 8px; color: var(--accent); margin-bottom: 26px; }
.heading-icon svg { width: 26px; height: 26px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 650; margin: 0 0 10px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; overflow-wrap: anywhere; }
.subtitle { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 28px; }
.panel { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 28px; box-shadow: var(--shadow); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.input-wrap { position: relative; }
input { width: 100%; height: 50px; padding: 12px 52px 12px 13px; border: 1px solid var(--border); background: var(--input); border-radius: 6px; font-size: 16px; }
input[aria-invalid="true"] { border-color: var(--error); }
.reveal { position: absolute; right: 4px; top: 4px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 9px 0 24px; }
#form-error { color: var(--error); font-size: 13px; line-height: 1.6; margin: 12px 0 0; min-height: 21px; }
.primary { width: 100%; min-height: 48px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font-size: 15px; font-weight: 650; padding: 12px 18px; margin-top: 18px; }
.primary:not(:disabled):hover { filter: brightness(1.08); }
.primary:not(:disabled):active { transform: scale(.99); }
.cancel { display: block; margin: 12px auto -4px; min-height: 40px; background: transparent; border: none; font-size: 14px; color: var(--muted); padding: 10px 20px; }
#notice { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
body[data-stage="success"] .heading-icon { color: var(--success); }
.privacy { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 24px 0 0; }
.privacy svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--success); }
footer { margin-top: auto; text-align: center; padding: 20px; font-size: 12px; color: var(--muted); }
@media (max-width: 480px) {
  .header { padding: 20px; }
  .brand { font-size: 19px; gap: 7px; }
  .brand img { width: 26px; }
  .preferences { gap: 2px; }
  select { max-width: 104px; font-size: 12px; }
  main { margin-top: 24px; }
  h1 { font-size: 28px; }
  .panel { padding: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  main { animation: enter .22s ease-out; }
  button { transition: background-color .15s, transform .15s, opacity .15s; }
  @keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
/* byClaude-start 2026-08-27 11:17:25; 作者：byClaude；窄屏保留完整语言及主题控件。 */
@media (max-width: 360px) {
  .header { padding: 18px 16px; gap: 6px; }
  .brand { font-size: 17px; gap: 5px; }
  .brand img { width: 22px; }
  .preferences select { max-width: 88px; }
  .preferences .icon-button { width: 36px; height: 40px; }
}
/* byClaude-end 2026-08-27 11:17:25 */
/* byClaude-end 2026-08-27 11:07:18 */
/* Contains claude-generated edits. */
