:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --accent: #2563eb;
    --radius: 10px;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial;
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    background: linear-gradient(180deg, var(--bg), #fff);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 760px;
    margin: 36px auto;
    padding: 16px;
}
h1 {
    margin: 0 0 14px;
    font-size: 1.6rem;
}
h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--muted);
}
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    margin-bottom: 14px;
}
label {
    display: block;
    margin-bottom: 10px;
}
.label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e6e7ef;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    resize: vertical;
}
.row {
    display: flex;
    gap: 8px;
    align-items: center;
}
button {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
button.secondary {
    background: #e6e7ef;
    color: var(--text);
    font-weight: 500;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 10px;
}
#messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.message {
    border-radius: 8px;
    padding: 10px;
    background: #fbfdff;
    border: 1px solid #eef2ff;
}
.meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.content {
    white-space: pre-wrap;
    color: var(--text);
}
.meta .actions {
    float: right;
}
small.hint {
    font-size: 0.8rem;
    color: var(--muted);
}
