* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    margin: 0;
    min-height: 100vh;
}

a { color: #2563eb; }

.shell {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 16px;
}

.brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand h1 {
    margin: 0;
    font-size: 26px;
    color: #1e40af;
}

.brand p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

.alert-error { background: #fee2e2; color: #b91c1c; }
.alert-success { background: #dcfce7; color: #15803d; }

.links {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.nav {
    background: #1e3a8a;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.main {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px 40px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.stat strong {
    display: block;
    font-size: 24px;
    margin-top: 4px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s, transform 0.15s;
}

.action-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 28px;
    line-height: 1;
}

.action-card strong {
    font-size: 18px;
}

.action-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .card { padding: 18px; }
}
