body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f7f9fc;
    color: #111;

    .container {
        max-width: 900px;
        margin: 0 auto;
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    h1,
    h2 {
        color: #1f2937;
    }

    .form-row {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
    }

    .schools-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .school-item {
        padding: 8px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        background: #fff;
    }

    .school-item.closed {
        background: #fee2e2;
        border-color: #fca5a5;
    }

    .btn {
        padding: 8px 14px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

    .btn-primary {
        background: #2563eb;
        color: #fff;
    }

    .btn-danger {
        background: #ef4444;
        color: #fff;
    }

    /* Secondary button style for links */
    .btn-secondary {
        background: #f3f4f6;
        color: #111827;
        border: 1px solid #e5e7eb;
    }

    .small {
        font-size: 0.9rem;
        color: #6b7280;
    }

    .link {
        color: #2563eb;
        text-decoration: none;
    }

    .table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 12px;
    }

    .table th,
    .table td {
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Grid layout for landing page */
    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on desktop */
        gap: 16px;
        margin-top: 16px;
    }

    /* Mobile layout improvements */
    @media (max-width: 760px) {
        .form-row {
            flex-direction: column;
            align-items: stretch;
        }

        .form-row>div {
            margin-left: 0 !important;
            min-width: unset !important;
        }

        .schools-list {
            max-height: 320px;
            overflow: auto;
        }

        .btn {
            width: 100%;
            box-sizing: border-box;
        }

        .btn+.btn {
            margin-top: 8px;
        }
    }

    /* Responsive: 2 columns on medium, 1 column on small */
    @media (max-width: 900px) {
        .grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .grid {
            grid-template-columns: 1fr;
        }
    }

    .school-card {
        padding: 14px;
        border-radius: 10px;
        border: 1px solid #e6edf3;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(2, 6, 23, 0.04);
    }

    .school-card .card-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .school-card h3 {
        margin: 0;
        font-size: 1.05rem;
    }

    .status-pill {
        font-size: 0.85rem;
        padding: 4px 8px;
        border-radius: 999px;
        font-weight: 600
    }

    .status-open {
        background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
        border-color: #bbf7d0
    }

    .status-open .status-pill {
        background: #10b981;
        color: #fff
    }

    .status-virtual {
        background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
        border-color: #fde68a
    }

    .status-partial {
        background: linear-gradient(180deg, #feffd1 0%, #ffffff 100%);
        border-color: #dee671
    }

    .status-partial .status-pill {
        background: #fffb00;
        color: #000000
    }

    .status-virtual .status-pill {
        background: #f59e0b;
        color: #fff
    }

    .status-closed {
        background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
        border-color: #fecaca
    }

    .status-closed .status-pill {
        background: #ef4444;
        color: #fff
    }
}

/* iOS install banner (appended) */
.ios-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 16px;
    background: #fff9eb;
    border: 1px solid #fde3b7;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 1000
}

.ios-banner .btn {
    padding: 6px 10px;
    border-radius: 8px
}

.ios-banner .ios-text {
    flex: 1;
    font-size: 0.95rem
}

.ios-banner .ios-close {
    background: transparent;
    border: none;
    color: #374151;
    font-weight: 600
}