* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
}

body {
    min-height: 100vh;
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    line-height: 1.5;
    background:
        radial-gradient(circle at 15% 10%, rgba(112, 201, 255, 0.32), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(255, 132, 194, 0.30), transparent 26rem),
        linear-gradient(135deg, #f8fbff 0%, #eef3fb 45%, #fff6fb 100%);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero,
.toolbar,
.card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 24px 70px rgba(49, 63, 92, 0.14), 0 2px 10px rgba(49, 63, 92, 0.06);
    backdrop-filter: blur(18px);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: clamp(1.2rem, 4vw, 2.4rem);
    border-radius: 2rem;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
        linear-gradient(135deg, rgba(92, 144, 255, 0.18), rgba(255, 111, 181, 0.16));
}

.eyebrow,
.kicker {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1 {
    margin-top: 0.2rem;
    font-size: clamp(2.1rem, 7vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    letter-spacing: -0.03em;
}

.home-link,
.text-link {
    color: #2357d6;
    font-weight: 700;
    text-decoration: none;
}

.home-link:hover,
.text-link:hover {
    text-decoration: underline;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1.2rem;
    border-radius: 1.5rem;
}

.toolbar p,
.empty-state p,
.confirm-card p {
    color: #667085;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.05rem;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #1d6cff, #8a5cff 52%, #ef5da8);
    box-shadow: 0 12px 24px rgba(74, 93, 224, 0.28);
}

.button-secondary {
    color: #25324a;
    background: #eef2f9;
}

.button-danger {
    color: #fff;
    background: linear-gradient(135deg, #ff5d73, #c9284d);
    box-shadow: 0 12px 24px rgba(201, 40, 77, 0.24);
}

.flash {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(49, 63, 92, 0.12);
}

.flash-success {
    color: #075e3e;
    background: #ddfbea;
}

.flash-error {
    color: #8f1f39;
    background: #ffe3e9;
}

.table-card,
.form-card,
.confirm-card {
    border-radius: 1.7rem;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    padding: 1rem;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #667085;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(248, 250, 255, 0.72);
}

tbody tr + tr {
    border-top: 1px solid #edf0f6;
}

td a[href^="mailto:"] {
    color: #2357d6;
    text-decoration: none;
}

.actions {
    display: flex;
    gap: 0.8rem;
}

.danger {
    color: #c9284d;
}

.empty-state,
.confirm-card {
    position: relative;
    padding: clamp(2rem, 8vw, 4rem);
    text-align: center;
}

.empty-orb {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #70c9ff, #8a5cff, #ff84c2);
    box-shadow: inset 0 1rem 2rem rgba(255, 255, 255, 0.35), 0 1rem 2rem rgba(91, 115, 255, 0.25);
}

.empty-state .button {
    margin-top: 1.2rem;
}

.form-card {
    padding: clamp(1rem, 4vw, 2rem);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #344054;
    font-weight: 750;
}

label strong {
    color: #ef5da8;
}

input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #d8deea;
    border-radius: 1rem;
    color: #172033;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(49, 63, 92, 0.04);
}

input:focus {
    border-color: #7b8cff;
    box-shadow: 0 0 0 4px rgba(123, 140, 255, 0.16);
}

.error {
    color: #c9284d;
    font-weight: 750;
}

.form-error {
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.confirm-card .form-actions {
    justify-content: center;
}

@media (max-width: 720px) {
    html {
        font-size: 14px;
    }

    .shell {
        width: min(100% - 1rem, 1120px);
        padding-top: 0.5rem;
    }

    .hero,
    .toolbar,
    .form-actions,
    .field-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero,
    .toolbar,
    .card {
        border-radius: 1.2rem;
    }

    .button,
    .home-link {
        width: 100%;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    tr {
        padding: 0.9rem;
    }

    td {
        display: grid;
        grid-template-columns: 6rem 1fr;
        gap: 0.75rem;
        padding: 0.45rem 0;
    }

    td::before {
        content: attr(data-label);
        color: #667085;
        font-weight: 800;
    }

    .actions {
        display: grid;
        grid-template-columns: 6rem 1fr;
    }

    .actions::before {
        content: attr(data-label);
        color: #667085;
        font-weight: 800;
    }

    .actions .text-link {
        grid-column: 2;
    }
}

@media (min-width: 1100px) {
    html {
        font-size: 16px;
    }
}
