:root {
  color-scheme: light;
  --paper: #f4f6fa;
  --white: #fff;
  --ink: #13203a;
  --muted: #505d75;
  --line: #dbe2ee;
  --blue: #2449d4;
  --blue-dark: #1735ac;
  --blue-light: #eef2ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid #446bfa; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 48px, 1050px); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--white); }
.brand { min-height: 65px; display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--blue-dark); }
main { padding-block: 46px 60px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.2; letter-spacing: -.04em; }
.page-heading p, .support { margin-top: 8px; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.card h2 { font-size: 1.25rem; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-heading + .support { margin-top: 4px; }
.guide { background: #edf2ff; border-color: #d6e0fb; }
.steps { margin: 18px 0 0; padding-inline-start: 24px; display: grid; gap: 16px; }
.steps li { padding-inline-start: 3px; }
.steps li::marker { color: var(--blue-dark); font-weight: 700; }
.steps h3 { font-size: .94rem; }
.steps p { margin-top: 3px; color: var(--muted); font-size: .89rem; }
.guide-note { margin-top: 18px; padding-top: 12px; border-top: 1px solid #d6e0fb; color: var(--muted); font-size: .85rem; }
form, fieldset { margin: 18px 0 0; display: grid; gap: 13px; }
fieldset { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
label { display: block; font-size: .875rem; font-weight: 650; }
input:not([type=file]), select, textarea { display: block; width: 100%; min-height: 43px; padding: 8px 10px; border-radius: 8px; border: 1px solid #bdc9de; background: var(--white); font-size: 1rem; font-weight: 400; }
label > select, label > textarea { margin-top: 5px; }
#access-code { margin-top: -7px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
textarea { resize: vertical; }
.optional { color: var(--muted); font-weight: 400; }
.primary { min-height: 44px; padding: 8px 14px; color: #fff; background: var(--blue); border: 0; border-radius: 8px; font-weight: 650; }
.primary:hover { background: var(--blue-dark); }
.quiet { min-height: 35px; padding-inline: 8px; background: transparent; border: 0; border-radius: 6px; color: var(--blue-dark); font-size: .875rem; white-space: nowrap; }
.quiet:hover { background: var(--blue-light); }
.pick-file { min-width: 0; padding: 12px; border: 1px dashed #8ba0d4; background: #f5f7ff; border-radius: 8px; }
.pick-file input { margin-top: 5px; width: 100%; font-size: .875rem; }
.pick-file input::file-selector-button { border: 1px solid #bfcef4; border-radius: 6px; background: var(--white); color: var(--blue-dark); padding: 5px 8px; font: inherit; cursor: pointer; }
.pick-file p, .privacy { color: var(--muted); font-size: .82rem; }
.pick-file p { margin-top: 7px; }
.privacy { margin-top: 10px; }
.file-list { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.file-list li { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 6px 2px 8px; border-radius: 6px; background: #f4f6fb; font-size: .85rem; }
.file-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback { margin-top: 13px; border-radius: 8px; padding: 9px 10px; background: #e8f5ec; color: #194e33; font-size: .9rem; overflow-wrap: anywhere; }
.feedback.error { background: #fff0f0; color: #852136; }
@media (max-width: 720px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  main { padding-block: 26px 40px; }
  .page-heading { margin-bottom: 18px; }
  .card { padding: 17px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 28px); }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
