* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

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

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 18px;
}

.auth-card {
    max-width: 460px;
    margin: 50px auto;
}

h1, h2, h3 {
    margin-top: 0;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
}

textarea {
    min-height: 110px;
}

button, .button {
    display: inline-block;
    border: 0;
    background: #111827;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
}

.button.secondary, button.secondary {
    background: #475569;
}

.button.danger, button.danger {
    background: #dc2626;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

.item-title {
    font-weight: bold;
    font-size: 18px;
}

.muted {
    color: #64748b;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.password-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.password-row input {
    flex: 1;
}

.notice {
    padding: 12px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
    margin-bottom: 14px;
}

.error {
    padding: 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    margin-bottom: 14px;
}
