:root {
    color-scheme: light;
    --bg: #f3efe7;
    --panel: #fffaf2;
    --panel-strong: #fff;
    --border: #d6c8b2;
    --text: #2d2116;
    --muted: #7a6550;
    --accent: #b6431f;
    --accent-dark: #7d2710;
    --success: #e1f3df;
    --danger: #fde8e4;
    --shadow: 0 20px 50px rgba(53, 32, 17, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top, rgba(244, 159, 67, 0.22), transparent 30%),
        linear-gradient(180deg, #f6ecdc 0%, var(--bg) 100%);
    color: var(--text);
}

a {
    color: var(--accent-dark);
}

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

.shell.narrow {
    width: min(520px, calc(100% - 2rem));
}

.card,
.toolbar {
    background: rgba(255, 250, 242, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card {
    padding: 1.5rem;
}

.hero {
    padding: 3rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--muted);
}

h1,
h2 {
    margin-top: 0;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, var(--accent) 0%, #dc6f39 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.stack {
    display: grid;
    gap: 1rem;
}

label span {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    background: var(--panel-strong);
    color: var(--text);
}

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

.checkbox input {
    width: auto;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--danger);
    margin-bottom: 1rem;
}

.alert.success {
    background: var(--success);
}

.toolbar {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav a {
    text-decoration: none;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
}

.grid .full {
    grid-column: 1 / -1;
}

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

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

th,
td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.sponsor-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sponsor-link {
    color: inherit;
    text-decoration: none;
}

.sponsor-name img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.35rem;
}

.detail-layout {
    display: grid;
    gap: 1.5rem;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

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

.checkbox-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
}

.muted,
small {
    color: var(--muted);
}

.fieldset {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
}

.recipient-list {
    display: grid;
    gap: 0.75rem;
    max-height: 360px;
    overflow: auto;
}

.recipient {
    align-items: flex-start;
}

select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    background: var(--panel-strong);
    color: var(--text);
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    width: auto;
}

.button.subtle {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

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

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}
