:root { color-scheme: light; --bg: #eef1f5; --surface: #fff; --surface-muted: #f6f8fa; --border: #d9e0e7; --border-strong: #b9c4d0; --text: #18212b; --muted: #687787; --blue: #315efb; --blue-dark: #2346c6; --blue-soft: #e9efff; --green: #16724a; --green-soft: #e6f4eb; --danger: #c83f48; --orange: #9a5712; font-family: "IBM Plex Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.admin-topbar { min-height: 64px; padding: 12px clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.95); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--text); border-radius: 8px; background: var(--text); color: #fff; font-size: 13px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; line-height: 20px; }
.brand small { color: var(--muted); font-size: 11px; line-height: 16px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.back-link { color: var(--blue-dark); font-size: 12px; }
.admin-page { width: min(1240px, 100%); margin: 0 auto; padding: 56px 24px 72px; }
.login-panel { width: min(460px, 100%); margin: 7vh auto 0; padding: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 30px rgba(24,33,43,.08); }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 16px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 32px; line-height: 40px; }
h2 { margin-bottom: 0; font-size: 22px; line-height: 30px; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 21px; }
.login-form { display: grid; gap: 16px; margin-top: 28px; }
.login-form label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.login-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; outline: none; background: var(--surface-muted); color: var(--text); }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,94,251,.12); }
.primary-button, .secondary-button { min-height: 40px; padding: 8px 16px; border-radius: 8px; font-size: 12px; }
.primary-button { border: 1px solid var(--blue); background: var(--blue); color: #fff; }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.secondary-button { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.secondary-button:hover { border-color: var(--blue); color: var(--blue-dark); }
.form-message { min-height: 20px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--green); }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat-card { padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font-size: 26px; line-height: 34px; }
.stat-card span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 18px; }
.source-panel { padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.muted { color: var(--muted); font-size: 11px; line-height: 18px; }
.source-table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 12px; }
th, td { padding: 14px 12px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { border-top: 0; color: var(--muted); font-size: 11px; font-weight: 500; }
tbody th strong, tbody th small { display: block; }
tbody th strong { font-size: 12px; line-height: 18px; }
tbody th small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 16px; }
td a { color: var(--blue-dark); }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.status.is-live { color: var(--green); }
.status.is-live i { background: #58a96d; box-shadow: 0 0 0 3px rgba(88,169,109,.14); }
.status.is-error { color: var(--danger); }
.error-cell { max-width: 240px; color: var(--danger); }
.empty { padding: 32px 16px; border: 1px dashed var(--border-strong); color: var(--muted); text-align: center; }
@media (max-width: 720px) { .admin-topbar { padding: 12px 16px; } .back-link { display: none; } .admin-page { padding: 32px 16px 56px; } .login-panel { padding: 24px; margin-top: 4vh; } .dashboard-head { display: block; } .dashboard-head .primary-button { margin-top: 20px; width: 100%; } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .source-panel { padding: 16px; } .panel-head { display: block; } .panel-head .muted { display: block; margin-top: 8px; } }
