* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; background: #f4f6f9; color: #1f2937; }
.topnav { background: #111827; color: #f9fafb; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 52px; }
.topnav .brand { font-weight: 700; }
.topnav .links a { color: #d1d5db; text-decoration: none; margin-left: 16px; font-size: 14px; }
.topnav .links a:hover { color: #fff; }
.topnav .domain { color: #60a5fa; font-size: 13px; margin-left: 16px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
h2 { margin-bottom: 16px; font-size: 22px; }
h3 { margin: 12px 0 8px; font-size: 16px; }
.muted { color: #6b7280; font-size: 13px; }
.api-key { display: inline-block; padding: 2px 6px; background: #f3f4f6; border-radius: 4px; font-size: 13px; word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; text-align: center; }
.card b { display: block; font-size: 26px; color: #111827; }
.card span { font-size: 13px; color: #6b7280; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; font-size: 13px; margin-bottom: 16px; }
.table th { background: #f9fafb; text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; }
.table tr:last-child td { border-bottom: none; }
.code { font-family: Consolas, monospace; font-weight: 700; color: #b91c1c; white-space: nowrap; }
.code.big { font-size: 20px; }
.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok { color: #047857; font-weight: 600; }
.bad { color: #b91c1c; font-weight: 600; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.alert.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.searchbar { display: flex; gap: 8px; margin-bottom: 14px; }
.searchbar input, .searchbar select { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; flex: 1; }
.searchbar select { flex: 0 0 140px; }
button { background: #2563eb; color: #fff; border: 0; padding: 9px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; }
button:hover { background: #1d4ed8; }
button.mini { padding: 5px 10px; font-size: 12px; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
.pager { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.pager a { color: #2563eb; text-decoration: none; }
.login-box { max-width: 380px; margin: 80px auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 32px; }
.login-box h1 { font-size: 22px; margin-bottom: 6px; }
.login-box label { display: block; margin: 14px 0 6px; font-size: 13px; color: #374151; }
.login-box input { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
.login-box button { width: 100%; margin-top: 20px; }
.card-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.grid-form input { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.grid-form button { grid-column: 1 / -1; justify-self: start; }
.mail-detail { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; line-height: 1.7; }
.mail-detail p { margin-bottom: 6px; }
.body { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; white-space: pre-wrap; word-break: break-word; font-size: 13px; margin-top: 10px; }
a { color: #2563eb; }