body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f7f9;
    color: #1f2933;
}

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

.topNav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.topNav a,
.linkButton {
    color: #1f2933;
    font: inherit;
    text-decoration: none;
}

.topNav a:hover,
.linkButton:hover {
    text-decoration: underline;
}

.linkButton {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.homePanel,
.loginBox,
.profilePanel {
    max-width: 480px;
}

.homePanel h1,
.loginBox h1,
.profilePanel h1 {
    margin: 0 0 12px;
}

.form-group {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.inputField {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #c9d1d9;
    border-radius: 6px;
    font: inherit;
}

.submitButton,
.secondaryButton,
.homePanel button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #1f2933;
    border-radius: 6px;
    background: #1f2933;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.secondaryButton {
    background: #ffffff;
    color: #1f2933;
}

[role="status"] {
    min-height: 24px;
}

.wardrobeGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.wardrobePanel {
    padding: 20px;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #ffffff;
}

.wardrobePanel h2 {
    margin: 0 0 16px;
}

.wardrobeListPanel {
    margin-top: 24px;
}

.wardrobeToolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.wardrobeFilters {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px;
}

.wardrobeFilters .form-group {
    margin-bottom: 0;
}

.wardrobeActions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wardrobeCount {
    margin: 0;
    color: #52616f;
}

.clothesList,
.outfitItems {
    display: grid;
    gap: 12px;
}

.clothingItem {
    padding: 14px;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #f9fafb;
}

.clothingItem h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.clothingItem p {
    margin: 0;
    color: #52616f;
}

.clothingItemHeader {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.removeClothingButton {
    border-color: #b42318;
    color: #b42318;
    white-space: nowrap;
}

.outfitResult {
    margin-top: 18px;
}

.outfitResult h3 {
    margin: 0 0 12px;
}

.statusSuccess {
    color: #176b3a;
}

.statusError {
    color: #b42318;
}

@media (max-width: 720px) {
    .wardrobeGrid {
        grid-template-columns: 1fr;
    }

    .wardrobeFilters {
        grid-template-columns: 1fr;
    }

    .wardrobeActions {
        align-items: stretch;
        flex-direction: column;
    }
}
