* { box-sizing: border-box; }
body { margin: 0; background: #f6f7f9; color: #1f2329; font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: #185fa5; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; font-weight: 500; margin: 0 0 6px; }
h2 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
p { margin: 8px 0; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 12px 28px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.brand { font-size: 16px; font-weight: 500; white-space: nowrap; }
.tag { font-size: 11px; color: #185fa5; background: #e6f1fb; border-radius: 4px; padding: 2px 7px; margin-left: 6px; font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
nav a { color: #444441; }
nav a:hover { color: #185fa5; }
.who { margin-left: auto; font-size: 13px; color: #5f5e5a; white-space: nowrap; }
.who a { margin-left: 10px; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 28px 48px; }
footer { text-align: center; color: #888780; font-size: 12px; padding: 18px; border-top: 1px solid #e5e7eb; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; margin: 0 0 18px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.card.center { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; margin-bottom: 18px; }
.grid .card { margin: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.muted { color: #6b7280; }
.small { font-size: 12px; }
.count { font-size: 12px; color: #185fa5; background: #e6f1fb; border-radius: 10px; padding: 1px 8px; margin-left: 6px; font-weight: 400; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #edf0f2; vertical-align: top; }
th { color: #6b7280; font-weight: 500; background: #fafbfc; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
table.tight th, table.tight td { padding: 6px 8px; }
.badge { display: inline-block; font-size: 12px; color: #0c447c; background: #e6f1fb; border-radius: 5px; padding: 1px 8px; white-space: nowrap; }
.badge.warn { color: #633806; background: #faeeda; }
.badge.ok { color: #085041; background: #e1f5ee; }
.badge.gray { color: #5f5e5a; background: #f1efe8; }
.btn { display: inline-block; border: 1px solid #d5d9de; background: #fff; color: #1f2329; border-radius: 7px; padding: 7px 14px; font-size: 13px; cursor: pointer; margin: 4px 6px 4px 0; }
.btn:hover { border-color: #185fa5; text-decoration: none; }
.btn.primary { background: #185fa5; border-color: #185fa5; color: #fff; }
.btn.primary:hover { background: #0c447c; }
.btn.danger { color: #a32d2d; border-color: #f0b4b4; }
.btn.small { padding: 4px 9px; font-size: 12px; }
label { display: block; margin: 10px 0; font-size: 13px; color: #444441; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 8px 10px; border: 1px solid #d5d9de; border-radius: 7px; background: #fff; color: #1f2329; font: inherit; font-size: 13px; }
input[type=file] { padding: 6px; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 18px; }
.flash { background: #e6f1fb; border: 1px solid #b5d4f4; color: #0c447c; border-radius: 8px; padding: 9px 14px; margin-bottom: 14px; font-size: 13px; }
.alert { background: #fcebeb; border: 1px solid #f7c1c1; color: #791f1f; border-radius: 8px; padding: 9px 14px; margin: 10px 0; font-size: 13px; }
.login-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; max-width: 900px; margin: 50px auto; }
.login-card, .demo-card { margin: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; font-size: 13px; }
.kv div { padding: 4px 0; border-bottom: 1px dashed #edf0f2; }
.kv span { color: #6b7280; margin-right: 8px; }
.section-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f2; padding-bottom: 8px; margin: 22px 0 12px; }
.section-title h2 { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.inline-form label { margin: 0; min-width: 170px; }
.inline-form input[type=file] { max-width: 260px; }
.issue-row { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fafbfc; }
.issue-row .form-grid { gap: 0 12px; }
.timeline { font-size: 12px; color: #5f5e5a; }
.timeline li { margin-bottom: 4px; }
