:root {
    --pink: #e93f8f;
    --ink: #281822;
    --muted: #6f5d67;
    --line: #ead7df;
    --paper: #fff8fb;
    --white: #ffffff;
    --green: #2f855a;
    --amber: #9a5a00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #fff8fb 0%, #f7fbff 52%, #fff3f6 100%);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.page-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.wide-page {
    width: min(1280px, calc(100% - 32px));
}

.hero {
    margin-bottom: 28px;
}

.eyebrow {
    color: var(--pink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
    margin: 0 0 16px;
}

.hero p:last-child {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 680px;
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(40, 24, 34, 0.08);
}

.notice {
    border-radius: 8px;
    margin: 0 0 18px;
    padding: 14px 16px;
}

.success {
    background: #eaf7ef;
    color: var(--green);
}

.warning {
    background: #fff7e8;
    color: var(--amber);
}

.wish-form {
    display: grid;
    gap: 16px;
}

label {
    color: var(--muted);
    display: grid;
    font-weight: 700;
    gap: 6px;
}

input,
textarea,
select {
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
    width: 100%;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--pink);
    outline: 3px solid rgba(233, 63, 143, 0.15);
}

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

button {
    background: var(--ink);
    border: 0;
    border-radius: 6px;
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 16px;
}

button,
.button-link {
    text-decoration: none;
}

button:first-child {
    background: var(--pink);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.results {
    margin-top: 18px;
}

.results-summary {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.results ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.results li,
.selected-tracks li {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
}

.results label {
    align-items: center;
    color: var(--ink);
    display: flex;
    flex-direction: row;
    font-weight: 700;
}

.results input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
}

.results button,
.selected-tracks button,
.button-link {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    display: inline-flex;
    font-weight: 700;
    min-height: 38px;
    padding: 8px 12px;
    text-align: left;
    width: auto;
}

.selected-tracks {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 12px;
}

.selected-tracks ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.required-label {
    background: var(--pink);
    border-radius: 999px;
    color: var(--white);
    display: inline-flex;
    font-size: 0.72rem;
    margin-left: 6px;
    padding: 2px 8px;
    vertical-align: middle;
}

.list-actions {
    justify-content: flex-end;
    margin-bottom: 18px;
}

.filter-bar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 20px;
}

.filter-actions {
    align-items: end;
    grid-column: 1 / -1;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.table-wrap {
    overflow-x: auto;
}

.wishlist-table {
    border-collapse: collapse;
    min-width: 1220px;
    width: 100%;
}

.wishlist-table th,
.wishlist-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.wishlist-table th {
    background: var(--paper);
    color: var(--muted);
    font-size: 0.82rem;
}

.wishlist-table input[type="checkbox"] {
    width: auto;
}

.danger-button {
    background: #8f1d2c;
    color: var(--white);
}

.request-list {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.request-list li {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.request-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 620px) {
    .page-shell {
        padding: 32px 0;
    }

    .panel {
        padding: 18px;
    }

    .actions {
        display: grid;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .results li,
    .selected-tracks li {
        grid-template-columns: 1fr;
    }
}
