* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6f8; color: #1f2937; }
header { background: #0f172a; color: #fff; padding: 20px 24px; }
header h1 { margin: 0; font-size: 22px; }
header h1 .sub { font-size: 13px; color: #94a3b8; font-weight: 400; }
.tagline { margin: 6px 0 0; color: #cbd5e1; }
.rates { margin: 6px 0 0; color: #86efac; font-size: 13px; }
main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
.card { background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.summary { font-size: 13px; color: #64748b; font-weight: 400; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
label { display: flex; flex-direction: column; font-size: 13px; color: #475569; gap: 4px; flex: 1; min-width: 140px; }
label.wide { flex: 3; }
input, select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; background: #fff; }
button { padding: 9px 18px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; font-size: 14px; cursor: pointer; align-self: flex-end; }
button:hover { background: #1d4ed8; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; }
.item .name { font-weight: 600; }
.item .meta { font-size: 13px; color: #64748b; margin-top: 2px; }
.item .count { font-size: 15px; font-weight: 700; white-space: nowrap; }
.item.ok .count { color: #16a34a; }
.item.soon .count { color: #d97706; }
.item.urgent .count { color: #dc2626; }
.item.expired { background: #fef2f2; }
.item.expired .count { color: #991b1b; }
.del { background: #f1f5f9; color: #475569; padding: 6px 12px; }
.del:hover { background: #e2e8f0; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; margin-left: 6px; }
.small p { font-size: 14px; }
.hint { font-size: 13px; color: #64748b; }
pre { background: #0f172a; color: #a5f3fc; padding: 10px; border-radius: 6px; font-size: 12px; overflow: auto; white-space: pre-wrap; }
footer { text-align: center; color: #94a3b8; font-size: 12px; padding-bottom: 24px; }
@media (max-width: 600px) { .item { flex-direction: column; align-items: flex-start; } }
