.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.page-header {
    margin-bottom: 28px;
}

.hero {
    margin-bottom: 26px;
}

.hero h1 {
    margin: 0 0 8px;
    font-family: Oswald, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 500;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 780px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.card {
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 700;
}

.meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 4px 0 18px;
}

.metric {
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.05rem;
    font-weight: 700;
}

.progress-row {
    margin-top: auto;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.progress-top .left {
    color: var(--muted);
}

.progress-top .right {
    font-weight: 700;
}

.bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
}

.open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 16px;
}

.loading,
.empty,
.error {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.error {
    color: #991b1b;
}

.manual-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #374151;
    font-size: 1.1rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    z-index: 1000;
}

.manual-floating:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

@media (max-width: 640px) {
    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .meta {
        grid-template-columns: 1fr;
    }
}
