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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f4f5f7;
    color: #1f2933;
    line-height: 1.5;
}

a { color: #2563eb; }

.container { max-width: 880px; margin: 0 auto; padding: 1.5rem 1rem; }

.site-header { background: #fff; border-bottom: 1px solid #e4e7eb; }
.site-header .container { padding-top: .75rem; padding-bottom: .75rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: #111827; }
.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.card { background: #fff; border: 1px solid #e4e7eb; border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.card.narrow { max-width: 420px; margin: 2rem auto; }

.page-head { display: flex; align-items: center; justify-content: space-between; }

.notes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.note { margin: 0; display: flex; flex-direction: column; }
.note h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.note-body { flex: 1; white-space: normal; overflow-wrap: anywhere; }
.note footer { display: flex; justify-content: space-between; font-size: .85rem; }

label { display: block; margin: 1rem 0 .25rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], textarea {
    width: 100%; padding: .55rem .7rem; border: 1px solid #cbd2d9; border-radius: 6px; font: inherit;
}

.button {
    display: inline-block; margin-top: 1rem; padding: .55rem 1rem; border: 0; border-radius: 6px;
    background: #2563eb; color: #fff; font: inherit; text-decoration: none; cursor: pointer;
}
.button:hover { background: #1d4ed8; }

.actions { display: flex; align-items: center; gap: 1rem; }

.inline { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: #2563eb; font: inherit; cursor: pointer; text-decoration: underline; }

.muted { color: #6b7280; }

.alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.field-error { color: #b91c1c; margin: .25rem 0 0; font-size: .9rem; }
