*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
    line-height: 1.5;
}

.page {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.page-center {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.page-header .subtitle {
    margin-bottom: 1.5rem;
}

.logout-link {
    flex-shrink: 0;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
}

.logout-link:hover {
    color: #2a5db0;
}

h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.subtitle {
    margin: 0 0 1.5rem;
    color: #666;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-muted {
    background: #fafafa;
    font-size: 0.9rem;
}

.card h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    min-width: 1.5rem;
    padding: 0 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    background: #e8eef8;
    color: #2a5db0;
    border-radius: 999px;
}

.form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.form input:focus {
    outline: none;
    border-color: #2a5db0;
    box-shadow: 0 0 0 3px rgba(42, 93, 176, 0.15);
}

.form button {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: #2a5db0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.form button:hover {
    background: #234a94;
}

.alert {
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-success {
    background: #e6f4ea;
    color: #137333;
}

.alert-error {
    background: #fce8e6;
    color: #c5221f;
}

.empty {
    margin: 0;
    color: #888;
}

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-num {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.article-list time {
    font-size: 0.8rem;
    color: #888;
}

code {
    font-size: 0.85em;
    background: #eee;
    padding: 0.1em 0.35em;
    border-radius: 4px;
}
