* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    color: #1a1a1a;
    background: #fafaf8;
    line-height: 1.5;
}

header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

header h1 a {
    color: #1a1a1a;
    text-decoration: none;
}

main {
    background: white;
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

h2 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
}

.button:hover {
    background: #1d4ed8;
}

.button.secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #d4d4d4;
}

.button.secondary:hover {
    background: #f5f5f5;
}

.button.danger {
    background: #dc2626;
}

.button.danger:hover {
    background: #b91c1c;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

th {
    font-weight: 500;
    color: #525252;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

a:hover {
    text-decoration: underline;
}

.empty-state {
    color: #737373;
    font-style: italic;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #525252;
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

textarea {
    min-height: 4rem;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.description {
    color: #525252;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.meta {
    color: #737373;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.traits {
    margin-top: 2rem;
}

.button.small {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1rem;
}

fieldset {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

fieldset legend {
    font-size: 0.875rem;
    font-weight: 500;
    color: #525252;
    padding: 0 0.5rem;
}
