:root {
  --brand: #4f6ef7; --brand-dark: #3b56d9; --ok: #16a34a; --bad: #dc2626;
  --warn: #d97706; --bg: #f4f6fb; --card: #ffffff; --text: #1f2937; --muted: #6b7280;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
       background: var(--bg); color: var(--text); min-height: 100vh; }
.container { max-width: 720px; margin: 0 auto; padding: 16px; }
header.appbar { background: linear-gradient(135deg, var(--brand), #7c8cf8);
  color: #fff; padding: 18px 16px 22px; }
header.appbar h1 { font-size: 20px; font-weight: 700; }
header.appbar p { font-size: 13px; opacity: .85; margin-top: 4px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px;
  margin-top: 14px; box-shadow: 0 2px 10px rgba(31,41,55,.06); }
.card h2 { font-size: 16px; margin-bottom: 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
select, input[type=text], textarea { width: 100%; padding: 10px 12px; font-size: 15px;
  border: 1px solid #d7dce8; border-radius: 10px; background: #fff; color: var(--text); }
textarea { min-height: 90px; resize: vertical; }
button { border: none; border-radius: 10px; padding: 12px 18px; font-size: 15px;
  cursor: pointer; background: var(--brand); color: #fff; font-weight: 600; }
button:active { transform: scale(.98); }
button.secondary { background: #e8ecfb; color: var(--brand-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; margin-top: 14px; }
.uploader { border: 2px dashed #c3cdf2; border-radius: 12px; padding: 22px;
  text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; cursor: pointer; }
.thumb-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb-grid img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.banner-demo { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.banner-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.score-ring { display: flex; align-items: center; gap: 16px; }
.score-ring .num { font-size: 42px; font-weight: 800; color: var(--brand); }
.score-ring .meta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.ok { background: #dcfce7; color: var(--ok); }
.pill.bad { background: #fee2e2; color: var(--bad); }
.pill.warn { background: #fef3c7; color: var(--warn); }
.pill.info { background: #e8ecfb; color: var(--brand-dark); }
.qcard { border: 1px solid #e5e9f4; border-radius: 12px; padding: 12px; margin-top: 10px; }
.qcard.wrong { border-color: #fecaca; background: #fffafa; }
.qcard .qhead { display: flex; justify-content: space-between; align-items: center; }
.qcard .qtext { font-size: 14px; font-weight: 600; }
.qrow { font-size: 13px; margin-top: 6px; color: var(--text); line-height: 1.6; }
.qrow .k { color: var(--muted); margin-right: 4px; }
.analysis { margin-top: 8px; font-size: 13px; background: #f8f9ff; border-radius: 8px;
  padding: 8px 10px; line-height: 1.6; }
.comment-box { background: linear-gradient(135deg, #eef1ff, #f7f5ff); border-radius: 12px;
  padding: 14px; font-size: 14px; line-height: 1.8; }
table.simple { width: 100%; border-collapse: collapse; font-size: 13px; }
table.simple th, table.simple td { padding: 8px 6px; border-bottom: 1px solid #eef0f6; text-align: left; }
table.simple th { color: var(--muted); font-weight: 600; }
.list-item { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid #eef0f6; cursor: pointer; }
.list-item .name { font-size: 15px; font-weight: 600; }
.list-item .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.status-chip { font-size: 12px; }
.hidden { display: none; }
.muted { color: var(--muted); font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 3px solid #dbe1fb; border-top-color: var(--brand);
  border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 8px; margin-top: 14px; }
.tabs button { flex: 1; background: #e8ecfb; color: var(--brand-dark); }
.tabs button.active { background: var(--brand); color: #fff; }
