body {
    margin: 0;
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

a {
    color: #0f4c81;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    background: linear-gradient(135deg, #0f2f53, #114f82);
    color: #fff;
}

.topbar .shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nav a,
.nav button {
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    font: inherit;
}

.nav a.active,
.nav a:hover,
.nav button:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.hero {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 28%), linear-gradient(135deg, #103963, #1772ae);
    color: #fff;
    border-radius: 22px;
    padding: 40px;
    margin-bottom: 24px;
}

.hero h1,
.hero h2 {
    margin-top: 0;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 47, 83, 0.08);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.muted {
    color: #6b7280;
}

.flash {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.flash.success {
    background: #ecfdf3;
    color: #166534;
}

.flash.error {
    background: #fef2f2;
    color: #991b1b;
}

.btn,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 0;
    background: #0f4c81;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.btn.secondary,
button.secondary {
    background: #e8f1f8;
    color: #0f4c81;
}

.btn.warn {
    background: #b91c1c;
}

.btn.ghost {
    background: #f3f4f6;
    color: #111827;
}

form.inline {
    display: inline;
}

.stack {
    display: grid;
    gap: 14px;
}

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

label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #d4dbe5;
    background: #fff;
    box-sizing: border-box;
    font: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.price {
    font-size: 1.35rem;
    font-weight: 700;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: #e8f1f8;
    color: #0f4c81;
}

.pill.success {
    background: #ecfdf3;
    color: #166534;
}

.pill.warn {
    background: #fef3c7;
    color: #92400e;
}

.pill.error {
    background: #fee2e2;
    color: #991b1b;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.empty {
    padding: 28px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    color: #6b7280;
}

.totals {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 720px) {
    .hero {
        padding: 28px;
    }

    .shell {
        padding: 16px;
    }

    th,
    td {
        padding: 10px 8px;
    }
}
