/* aotiyu console — 简洁、无装饰 */
* { box-sizing: border-box; }
body {
    margin: 0; background: #f5f6f8; color: #1f2328;
    font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: #1558c0; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
    display: flex; align-items: center; gap: 24px;
    height: 56px; padding: 0 24px; background: #fff;
    border-bottom: 1px solid #e3e6ea; position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; letter-spacing: .3px; font-size: 15px; }
.brand span { font-weight: 400; color: #6b7280; margin-left: 6px; font-size: 13px; }
.topbar nav { display: flex; gap: 4px; }
.topbar .nav { padding: 6px 12px; border-radius: 6px; color: #384152; }
.topbar .nav:hover { background: #f0f2f5; text-decoration: none; }
.topbar .nav.active { background: #eaf1fb; color: #1558c0; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: #6b7280; }
.mode { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.mode.live { background: #e7f6ec; color: #137a3a; }
.mode.dry { background: #fff3e0; color: #a05a00; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: #1558c0; cursor: pointer; font: inherit; padding: 0; }
main { max-width: 1180px; margin: 24px auto 60px; padding: 0 24px; }
.foot { text-align: center; color: #9aa3af; font-size: 12px; padding: 24px 0 40px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: #effaf3; border-color: #ccebd8; color: #137a3a; }
.flash.err { background: #fff0f0; border-color: #f5cdcd; color: #b3261e; }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 28px 0 12px; }
.sub { color: #6b7280; font-size: 13px; margin-bottom: 20px; }
.card {
    background: #fff; border: 1px solid #e3e6ea; border-radius: 8px; padding: 18px 20px; margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.site-card h3 { margin: 0 0 2px; font-size: 15px; }
.site-card .domain { color: #6b7280; font-size: 12px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 4px 10px; margin-top: 12px; font-size: 13px; }
.kv dt { color: #6b7280; }
.kv dd { margin: 0; word-break: break-all; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #edf0f3; font-size: 13px; vertical-align: top; }
th { color: #6b7280; font-weight: 600; background: #fafbfc; }
tr:hover td { background: #fafbfd; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.pill.new { background: #eaf2fe; color: #1558c0; }
.pill.update { background: #e9f7ee; color: #137a3a; }
.pill.conflict { background: #ffefef; color: #b3261e; }
.pill.local_only { background: #fff6e5; color: #a05a00; }
.pill.ok { background: #e9f7ee; color: #137a3a; }
.pill.err { background: #ffefef; color: #b3261e; }
.pill.warn { background: #fff6e5; color: #a05a00; }
.pill.run { background: #eaf2fe; color: #1558c0; }
.btn {
    display: inline-block; padding: 7px 14px; border-radius: 6px; border: 1px solid #cfd5dd;
    background: #fff; color: #1f2328; cursor: pointer; font: inherit;
}
.btn:hover { background: #f5f7fa; text-decoration: none; }
.btn.primary { background: #1558c0; border-color: #1558c0; color: #fff; }
.btn.primary:hover { background: #124ba6; }
.btn.danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
form.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6b7280; }
input[type=text], input[type=password], input[type=file], textarea, select {
    padding: 7px 10px; border: 1px solid #cfd5dd; border-radius: 6px; font: inherit; background: #fff;
}
input[type=text], input[type=password] { min-width: 220px; }
textarea { width: 100%; min-height: 70px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { color: #6b7280; font-size: 12px; margin-top: 6px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.log {
    background: #10151d; color: #cfd8e3; padding: 14px; border-radius: 8px;
    font: 12px/1.55 ui-monospace, Consolas, monospace; max-height: 460px; overflow: auto; white-space: pre-wrap;
}
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #edf0f3; font-size: 13px; }
.steps .no { color: #9aa3af; width: 22px; }
.steps .t { flex: 1; }
.diff { font: 12px/1.5 ui-monospace, Consolas, monospace; background: #fff; border: 1px solid #e3e6ea; border-radius: 6px; overflow: auto; max-height: 460px; }
.diff div { padding: 0 10px; white-space: pre; }
.diff .add { background: #e9f7ee; }
.diff .del { background: #ffefef; }
.diff .ln { color: #9aa3af; user-select: none; display: inline-block; width: 42px; }
.login-wrap { max-width: 380px; margin: 90px auto; }
.login-wrap h1 { text-align: center; margin-bottom: 18px; }
.notice { border-left: 3px solid #a05a00; background: #fff9ef; padding: 10px 14px; font-size: 13px; color: #6b5300; border-radius: 4px; }
