:root {
    color-scheme: light;
    --ink: #2d2b2b;
    --muted: #6f6b66;
    --surface: #ffffff;
    --accent: #f39c12;
    --accent-dark: #d98207;
    --accent-soft: rgba(243, 156, 18, 0.16);
    --border: #ece5db;
    --shadow: 0 18px 38px rgba(79, 53, 22, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: #fdf6ea;
}

h1, h2 {
    font-family: "Poppins", "Segoe UI", sans-serif;
    margin: 0;
    letter-spacing: 0.01em;
}

p {
    margin: 0;
    color: var(--muted);
}

.page-shell {
    min-height: 100vh;
    padding: 1.75rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.logo-badge {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: transparent;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 30px rgba(243, 156, 18, 0.2);
}

.logo-badge img {
    width: 72px;
    height: 72px;
    display: block;
    border-radius: 18px;
}

.hero h1 {
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.hero p {
    font-size: 1rem;
    max-width: 32rem;
}

.card-grid {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: grid;
    gap: 1rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d2691e;
}

.card-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    display: inline-block;
}

.field {
    display: grid;
    gap: 0.4rem;
}

label {
    font-size: 0.88rem;
    color: var(--muted);
}

.hint {
    font-size: 0.78rem;
    color: #a29c95;
    margin-left: 0.25rem;
}

.input,
input[type="number"],
input[type="text"] {
    border: 1px solid #e1d8cb;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fffdfa;
    color: #3d3936;
}

input[type="number"]:focus,
input[type="text"]:focus {
    outline: 2px solid var(--accent-soft);
    border-color: var(--accent);
}

input[readonly] {
    color: #a9a39b;
    background: #fff9f0;
}

.input.invalid {
    border-color: #cc2f2f;
    box-shadow: 0 0 0 3px rgba(204, 47, 47, 0.12);
}

.field-error {
    color: #b42318;
    font-size: 0.82rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-button {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 0.7rem 1.8rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 12px 25px rgba(243, 156, 18, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.action-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.ghost-button {
    appearance: none;
    border: 1px solid #e0d6c8;
    border-radius: 12px;
    padding: 0.68rem 1.6rem;
    background: #ffffff;
    color: #5c5146;
    font-weight: 600;
    cursor: pointer;
}

.btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.footer-note {
    font-size: 0.86rem;
    text-align: center;
    max-width: 38rem;
    color: #8b8278;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

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

@media (max-width: 640px) {
    .page-shell {
        padding: 1.25rem 1rem 2.5rem;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .action-button,
    .ghost-button {
        width: 100%;
        justify-content: center;
    }
}
