*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #16213e;
}

header .subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

form {
    display: flex;
    gap: 0.5rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus { border-color: #6366f1; }

button {
    padding: 0.6rem 1.25rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover { background: #4f46e5; }

ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.date { color: #9ca3af; font-size: 0.8rem; }

.empty { color: #9ca3af; font-size: 0.9rem; }

.msg { padding: 0.5rem 0.75rem; border-radius: 6px; margin-bottom: 0.75rem; font-size: 0.9rem; }
.msg.error { background: #fee2e2; color: #b91c1c; }

footer { text-align: center; color: #9ca3af; font-size: 0.8rem; }
footer a { color: #6366f1; text-decoration: none; }
