body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 780px;
    margin: 40px auto;
    padding: 0 20px;
    color: #222;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 16px;
    margin-top: 28px;
}

input,
button {
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input {
    width: 100%;
    margin-bottom: 12px;
}

button {
    background: #1976d2;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
}

button:hover:not(:disabled) {
    background: #1565c0;
}

button:disabled {
    background: #bbb;
    cursor: not-allowed;
}

button.small {
    padding: 4px 10px;
    font-size: 12px;
}

.error {
    background: #ffebee;
    color: #b71c1c;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ok {
    background: #e8f5e9;
    color: #1b5e20;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #555;
}

.field textarea {
    width: 100%;
    padding: 8px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.meta {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
}

a {
    color: #1976d2;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 8px;
}

td,
th {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 13px;
    vertical-align: middle;
}

th {
    background: #fafafa;
    font-weight: 600;
}

code {
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 2px;
}

.status-sent {
    color: #1b5e20;
    font-weight: 600;
}

.status-pending {
    color: #7a5b00;
}

.status-error {
    color: #b71c1c;
    font-size: 12px;
}