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

:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --text: #1f2328;
    --muted: #6b7280;
    --border: #d9dce1;
    --accent: #2f6fdb;
    --accent-hover: #2459b3;
    --highlight: #fff6d6;
    --radius: 8px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    width: 100%;
    height: 50px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    background-color: #b3261e;
}

header .brand {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

main {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

main.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

#left-side,
#right-side {
    flex: 1 1 300px;
}

h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.button {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 20px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-header h2,
.card-header .button {
    margin-bottom: 0;
}

.button:hover {
    background: var(--accent-hover);
    text-decoration: none;
}

.swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    vertical-align: middle;
}

.section-heading {
    margin-top: 28px;
}

td.empty {
    color: var(--muted);
    font-style: italic;
}

td.actions {
    width: 1%;
    text-align: right;
}

.small-danger-button {
    padding: 3px 10px;
    font: inherit;
    font-size: 13px;
    color: #b3261e;
    background: transparent;
    border: 1px solid #b3261e;
    border-radius: 5px;
    cursor: pointer;
}

.small-danger-button:hover {
    color: #fff;
    background: #b3261e;
}

.add-item-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.add-item-form input {
    flex: 1 1 120px;
    min-width: 0;
    padding: 7px 10px;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.add-item-form .button {
    margin-bottom: 0;
}

.error {
    margin-bottom: 12px;
    padding: 8px 12px;
    color: #8a1c15;
    background: #fdecea;
    border: 1px solid #f5c2bd;
    border-radius: 6px;
}
