:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --line: #dce3ec;
  --primary: #175cd3;
  --primary-pressed: #154da8;
  --success: #067647;
  --danger: #b42318;
  --focus: #84adff;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: white;
  background: var(--primary);
  text-decoration: none;
  cursor: pointer;
}
button:active, .button:active { background: var(--primary-pressed); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.secondary { color: var(--primary); background: #eff4ff; }
.danger { color: var(--danger); background: #fef3f2; }
.app { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: 20px 16px 92px; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px 16px; }
.login-card { width: min(100%, 420px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
h1 { margin: 0; font-size: 26px; line-height: 1.3; }
h2 { margin: 0 0 12px; font-size: 19px; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.card { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.hero { padding: 22px; }
.quota { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.quota strong { font-size: 32px; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #344054; font-weight: 600; }
fieldset { display: grid; gap: 10px; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
legend { padding: 0 6px; font-weight: 700; }
.choice { display: flex; align-items: center; gap: 9px; }
.choice input { width: 20px; min-height: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.font-preview { display: grid; gap: 8px; overflow: hidden; border: 1px dashed #98a2b3; border-radius: 10px; padding: 14px; }
.font-preview strong { overflow-wrap: anywhere; line-height: 1.35; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #98a2b3;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  background: white;
}
textarea { min-height: 96px; resize: vertical; }
.full { width: 100%; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 13px; border: 1px solid #b2ccff; color: #1849a9; background: #eff4ff; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 10px; color: var(--primary); background: #eff4ff; font-weight: 700; }
.status.success { color: var(--success); background: #ecfdf3; }
.status.failed { color: var(--danger); background: #fef3f2; }
.plan-list { display: grid; gap: 12px; margin: 0; }
.plan-list div { padding-top: 12px; border-top: 1px solid var(--line); }
.plan-list div:first-child { padding-top: 0; border-top: 0; }
.plan-list dt { color: var(--muted); font-size: 13px; }
.plan-list dd { margin: 4px 0 0; line-height: 1.5; }
.message { padding: 12px; border-radius: 10px; color: #1849a9; background: #eff4ff; }
.message.error { color: var(--danger); background: #fef3f2; }
.bottom-nav {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 520px);
  margin: auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}
.bottom-nav a { padding: 13px 6px; color: var(--muted); text-align: center; text-decoration: none; font-size: 13px; }
.bottom-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.work { display: grid; gap: 8px; }
.work time { color: var(--muted); font-size: 13px; }
video { width: 100%; border-radius: 10px; background: #101828; }
[hidden] { display: none !important; }
@media (min-width: 680px) {
  body { padding: 20px 0; }
  .app, .login-card { box-shadow: 0 16px 45px rgba(16, 24, 40, .08); }
  .app { border-radius: 18px; background: #f8fafc; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
