*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a2e;
    background: #f4f6f8;
}

.site-header,
.site-footer {
    padding: 1rem 1.5rem;
    background: #1a1a2e;
    color: #fff;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.site-header__logout {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-header__logout:hover {
    opacity: 0.9;
}

.dashboard-page .dashboard-meta {
    color: #555;
    font-size: 0.95rem;
}

.dashboard-greeting {
    font-size: 1.1rem;
}

.site-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.version,
.interface-badge {
    margin-left: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.auth-card label {
    display: block;
    margin-bottom: 1rem;
}

.auth-card input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.auth-card button {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-version {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.alert-error {
    color: #b00020;
    background: #fde8eb;
    padding: 0.75rem;
    border-radius: 4px;
}

.error-card {
    width: 100%;
    max-width: 480px;
}

.dashboard-panel {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.dashboard-panel__hint {
    margin: 0 0 1rem;
    color: #555;
    font-size: 0.95rem;
}

.dashboard-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.dashboard-panel__actions button {
    padding: 0.5rem 1rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.dashboard-panel__actions button:hover {
    background: #2d2d4a;
}

.dashboard-panel__count strong {
    font-variant-numeric: tabular-nums;
}
