.content-body h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.content-body h1 #user-name {
    color: var(--accent-cyan-dark);
}

.content-body h1 span {
    color: var(--accent-cyan-dark);
}

.content-body > p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent-cyan);
    border-radius: 4px;
    display: inline-block;
}

.recom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recom p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.recom-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.recom-item i {
    color: var(--accent-cyan-dark);
    font-size: 1rem;
    margin-top: 2px;
}

.recom-item .recom-text {
    font-size: 0.92rem;
    color: var(--text-main);
}

.recom-item .recom-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.recom-empty {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1 1 240px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card p {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.stat {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stat span {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    border: 1px solid var(--border);
}

#hosp .stat {
    gap: 12px;
    align-items: stretch;
}

#hosp .month-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 64px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    transition: var(--transition);
}

#hosp .month-stat:hover {
    border-color: var(--accent-cyan-dark);
}

#hosp .month-stat .month-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

#hosp .month-stat .month-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

#hosp .month-stat.has-events .month-count {
    color: var(--accent-red);
}

#hosp .month-stat.current-month {
    border-color: var(--accent-cyan-dark);
    background: rgba(0, 210, 255, 0.06);
}

#hosp .hosp-total {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

#hosp .hosp-total strong {
    color: var(--text-main);
    font-weight: 700;
}

#psych .stat {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}
 
#psych .stat span {
    background: none !important;
    border: none !important;
    padding: 0;
    margin-top: 5px;
    font-size: 2.1rem;
    font-weight: 600;
}
 
.status-ok {
    color: var(--accent-cyan) !important;
}
 
.status-warning {
    color: #b45309 !important;
}
 
.status-bad {
    color: var(--accent-red) !important;
}
 
.status-unknown {
    color: var(--text-dim) !important;
}

.history {
    display: flex;
    flex-direction: column;
}

.history p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item .history-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-item .history-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.history-item .history-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.history-item .history-date {
    font-size: 0.82rem;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.history-empty {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
    padding: 8px 4px;
}

.skeleton-line {
    height: 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 700px) {
    .stats {
        flex-direction: column;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}