:root {
    --color-primary: #1a56db;
    --color-error: #b91c1c;
    --color-error-bg: #fef2f2;
    --color-success: #15803d;
    --color-success-bg: #f0fdf4;
    --color-border: #d1d5db;
    --color-text: #111827;
    --color-muted: #6b7280;
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: #f9fafb;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.container-wide {
    max-width: 900px;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.event-date {
    color: var(--color-muted);
    margin-top: 0;
}

label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}
.checkbox-label input { width: auto; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="datetime-local"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.optional { font-weight: normal; color: var(--color-muted); font-size: 0.85em; }
.hint { color: var(--color-muted); font-size: 0.9em; }

button, .button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { opacity: 0.9; }

.alert {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}
.alert ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.alert-error { background: var(--color-error-bg); color: var(--color-error); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); }

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.inline-form input[type="search"] { width: auto; flex: 1; min-width: 180px; }
.inline-form button, .inline-form .button { margin-top: 0; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    background: #fff;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--color-border);
}
.data-table th {
    background: #f3f4f6;
}
