* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}
.topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #14324f;
    padding: 0 20px;
}
.topnav .brand {
    color: #fff;
    font-weight: 700;
    margin-right: 24px;
    padding: 14px 0;
}
.topnav a {
    color: #cfe0f0;
    text-decoration: none;
    padding: 14px 12px;
}
.topnav a:hover { color: #fff; background: #1d4568; }
.topnav .logout { margin-left: auto; }
.container { max-width: 1100px; margin: 28px auto; padding: 0 16px; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.login-card { max-width: 380px; margin: 60px auto; }
.notice {
    background: #e7f6e7;
    border: 1px solid #9ed79e;
    color: #205c20;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}
.alert {
    background: #fdeaea;
    border: 1px solid #e5a3a3;
    color: #8c1f1f;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}
label { display: block; margin-bottom: 12px; font-weight: 600; font-size: .9rem; }
input[type="text"], input[type="password"], input[type="search"], input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: .95rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 20px;
}
button, .btn {
    display: inline-block;
    background: #14324f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: #1d4568; }
.btn-danger { background: #b3261e; }
.btn-danger:hover { background: #8c1f1f; }
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}
th, td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: .9rem;
}
th { background: #f1f5f9; font-weight: 600; }
.actions { white-space: nowrap; }
.actions form { display: inline; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    min-width: 160px;
}
.stat .num { font-size: 1.8rem; font-weight: 700; color: #14324f; }
.stat span:last-child { color: #64748b; font-size: .85rem; }
.muted { color: #64748b; }
.skipped { font-size: .85rem; color: #8c5a00; max-height: 240px; overflow: auto; }
.search-form { display: flex; gap: 8px; margin-bottom: 14px; }
.search-form input { max-width: 320px; }
.feed-url {
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0 18px;
    word-break: break-all;
}
code { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
