:root {
    color-scheme: light dark;
    font-family: "Segoe UI", sans-serif;
    background-color: #f5f7fb;
    color: #1d1d1f;
}

body {
    margin: 0;
    padding: 0;
}

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

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background: #1d4ed8;
}

button.danger {
    background: #dc2626;
}

button.danger:hover:not(:disabled) {
    background: #b91c1c;
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.message {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9fafb;
}

.message .subject {
    margin: 0 0 0.5rem;
}

.message .meta {
    margin: 0 0 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.message .body {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    overflow: auto;
}

.hidden {
    display: none !important;
}

.hint {
    color: #b45309;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
