body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
}


input,
select,
button,
textarea {
    font: inherit;
}


header {
    background: #1f2937;
    color: white;
    padding: 1rem 2rem;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}


nav a,
nav button {
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}


main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}


.card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


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


.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: white;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}


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


.button-link:active {
    transform: scale(0.98);
}


.button-link:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}


form.inline {
    display: inline;
}


input {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}


input[type="hidden"] {
    display: none;
}


.errorlist {
    color: #b91c1c;
}


.sticker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}


@media (max-width: 900px) {
    .sticker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 640px) {
    .sticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.sticker-item {
    border-radius: 10px;
    padding: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}


.sticker-code {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
                inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}


.sticker-controls {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 0.5rem;
}


.sticker-controls button {
    border: none;
    border-radius: 6px;
    background: #e5e7eb;
    color: #111827;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.45rem 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}


.sticker-controls button:hover {
    background: #d1d5db;
}


.sticker-controls button:active {
    transform: scale(0.96);
}


.sticker-controls button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


.sticker-controls button:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}


.sticker-controls span {
    font-weight: 700;
    font-size: 1rem;
}


.sticker-missing .sticker-code {
    background: rgba(107, 114, 128, 0.12);
    color: #374151;
}


.sticker-owned .sticker-code {
    background: rgba(34, 197, 94, 0.18);
    color: #166534;
}


.sticker-duplicate .sticker-code {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}


.album-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}


.album-review-title {
    flex: 1 1 18rem;
}


.album-review-title h1 {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    line-height: 1.2;
}


.album-review-title p {
    margin: 0;
    color: #4b5563;
    font-size: 0.98rem;
}


.album-review-back-link {
    margin-left: auto;
}


.album-review-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


.album-review-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #e5e7eb;
    border-radius: 999px;
    padding: 0.25rem;
}


.album-review-filter-button {
    background-color: transparent;
    color: #374151;
    border: none;
    border-radius: 999px;
    padding: 0.52rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}


.album-review-filter-button:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: #111827;
}


.album-review-filter-button.is-active {
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}


.album-review-section-jump {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-wrap: wrap;
}


.album-review-section-jump label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    white-space: nowrap;
}


.album-review-section-jump select {
    min-width: 15rem;
    padding: 0.52rem 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}


.album-review-section-jump select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}


.album-review-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}


.album-review-top-link:hover {
    background-color: #e5e7eb;
    color: #111827;
}


.album-review-top-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}


.album-review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}


.album-review-section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #111827;
}

.album-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}


.album-summary-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}


.album-summary-label {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}


.album-summary-value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}


.album-summary-card-total {
    background: #f8fafc;
    border-color: rgba(71, 85, 105, 0.16);
}


.album-summary-card-total .album-summary-label {
    color: #475569;
}


.album-summary-card-total .album-summary-value {
    color: #0f172a;
}


.album-summary-card-owned {
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.22);
}


.album-summary-card-owned .album-summary-label {
    color: #166534;
}


.album-summary-card-owned .album-summary-value {
    color: #14532d;
}


.album-summary-card-missing {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.28);
}


.album-summary-card-missing .album-summary-label {
    color: #b45309;
}


.album-summary-card-missing .album-summary-value {
    color: #92400e;
}


@media (max-width: 700px) {
    .album-summary-grid {
        grid-template-columns: 1fr;
    }
}

nav,
.actions {
    flex-wrap: wrap;
}


.album-review-section-jump select {
    width: 100%;
    max-width: 100%;
}


.sticker-controls button {
    min-width: 44px;
    min-height: 44px;
}


@media (max-width: 640px) {
    header {
        padding: 1rem;
    }

    main {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }

    .card {
        padding: 0.9rem;
    }

    .album-review-title h1 {
        font-size: 1.35rem;
    }

    .album-review-toolbar {
        align-items: stretch;
    }

    .album-review-filters,
    .album-review-section-jump {
        width: 100%;
    }

    .album-review-section-jump {
        margin-left: 0;
    }

    .album-review-section-jump label {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sticker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .sticker-item {
        padding: 0.55rem;
        min-width: 0;
    }

    .sticker-code {
        min-height: 48px;
        margin-bottom: 0.5rem;
        padding: 0 0.2rem;
        font-size: 0.82rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .sticker-controls {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 0.25rem;
    }

    .sticker-controls button {
        min-width: 28px;
        min-height: 28px;
        padding: 0.2rem 0;
        font-size: 0.9rem;
        line-height: 1;
    }

    .sticker-controls span {
        min-width: 0;
        font-size: 0.82rem;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .album-review-filters {
        flex-wrap: wrap;
        border-radius: 16px;
    }

    .album-review-filter-button,
    .button-link,
    .album-review-top-link {
        width: 100%;
    }

    .album-review-back-link {
        margin-left: 0;
    }
}

.album-review-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}


.album-review-section-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    flex: 0 0 32px;
}


.album-review-section-text {
    min-width: 0;
}


.album-review-section-text h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    color: #111827;
}


.album-review-section-text p {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    line-height: 1.25;
    color: #6b7280;
}


@media (max-width: 480px) {
    .album-review-section-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .album-review-section-text h2 {
        font-size: 1.05rem;
    }

    .album-review-section-text p {
        font-size: 0.85rem;
    }
}

.is-hidden {
    display: none !important;
}

.album-reports-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.album-reports-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.album-reports-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 16rem;
    flex: 1 1 16rem;
}

.album-reports-field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
}

.album-reports-field select {
    min-width: 15rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.album-reports-field select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.album-reports-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.album-reports-actions .button-link[disabled] {
    background: #93c5fd;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.report-sticker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.report-sticker-item {
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.report-sticker-code {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.report-sticker-missing .report-sticker-code {
    background: transparent;
    color: #374151;
    border: 1px dashed rgba(107, 114, 128, 0.45);
}

.report-sticker-owned .report-sticker-code {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.report-sticker-duplicate .report-sticker-code {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

@media (max-width: 900px) {
    .report-sticker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .album-reports-toolbar-row {
        align-items: stretch;
    }

    .album-reports-field,
    .album-reports-actions {
        width: 100%;
    }

    .album-reports-actions {
        flex-direction: column;
    }

    .album-reports-actions .button-link {
        width: 100%;
    }

    .report-sticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .report-sticker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .report-sticker-item {
        padding: 0.55rem;
        min-width: 0;
    }

    .report-sticker-code {
        min-height: 48px;
        padding: 0 0.2rem;
        font-size: 0.82rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}