* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f5f5f5;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 24px;
}

h1, h2 { color: #1a1a1a; }
h1 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
h2 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }

p { color: #555; }

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 30px;
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    color: #1a1a1a;
}

th { background: #e5e7eb; font-weight: 600; }
tr:last-child td { border-bottom: none; }

label {
    display: block;
    font-size: 13px;
    color: #555;
    margin: 14px 0 6px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
textarea,
select {
    width: 100%;
    background: white;
    color: #1a1a1a;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 14px;
    padding: 10px 12px;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563eb;
}

button, input[type=submit] {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    font-family: inherit;
}

button:hover { background: #1d4fd1; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }

.message {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
}
.message.success { background: #dcfce7; color: #166534; }
.message.error { background: #fee2e2; color: #991b1b; }

canvas { max-width: 100%; }
