* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #f3f5f8;
    color: #172030;
}

.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 5px;
}

.subtitle {
    color: #6b7280;
}

.admin-mode {
    display: none;
    padding: 8px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.admin-mode.show {
    display: inline-flex;
}

.grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );
    gap: 14px;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow:
        0 7px 24px rgba(0,0,0,.05);
}

.card-title {
    font-size: 17px;
    font-weight: 750;
    margin-bottom: 12px;
}

.big {
    font-size: 26px;
    font-weight: 800;
}

.task-list {
    display: grid;
    gap: 9px;
}

.task-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
}

.task-title {
    font-weight: 700;
}

.task-description {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.task-status {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 650;
}

.empty {
    color: #6b7280;
    text-align: center;
    padding: 15px;
}

@media (max-width: 650px) {
    .page {
        padding: 16px;
    }

    .top {
        flex-direction: column;
    }

    .task-row {
        flex-direction: column;
    }
}
