:root {
    --style-theme: #d97d90;
    --style-theme-hover: #c86d81;
    --style-ink: #49383d;
    --style-surface: #ffffff;
    --style-page: #f8f5f6;
    --style-border: #ded4d7;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Georgia, "Times New Roman", serif;
    background-color: var(--style-page);
    color: var(--style-ink);
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
}

a, .btn-link {
    color: #9e4960;
}

.btn-primary {
    color: #fff;
    background-color: var(--style-theme);
    border-color: var(--style-theme);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 125, 144, 0.24);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Տեղի է ունեցել անսպասելի սխալ։"
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.style-auth-page {
    min-height: calc(100vh - 3.75rem);
    padding: 3rem 1rem;
    display: flex;
    align-items: flex-start;
    background-color: var(--style-theme);
}

.style-auth-page > .container {
    width: 100%;
}

.style-auth-card {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--style-surface);
    box-shadow: 0 10px 30px rgba(68, 25, 38, 0.16);
}

.style-auth-title {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--style-ink);
    font-size: 2.2rem;
    font-weight: 700;
}

.style-auth-input {
    min-height: 58px;
    border-color: var(--style-border);
    background-color: #ffffff;
    font-family: Arial, sans-serif;
}

.style-auth-input:focus {
    background-color: #fff;
    border-color: var(--style-theme);
}

.style-auth-button {
    min-height: 52px;
    color: #fff;
    background-color: #4a4a4a;
    border-color: #4a4a4a;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.style-auth-button:hover,
.style-auth-button:focus {
    color: #fff;
    background-color: #666666;
    border-color: #666666;
}

.style-auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.2rem;
    text-align: center;
}

.style-auth-links a {
    color: var(--style-ink);
    font-family: Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.style-auth-links a:hover {
    color: #9e4960;
    text-decoration: underline;
}

.style-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Arial, sans-serif;
}

.style-auth-description {
    margin-bottom: 0;
    text-align: center;
    color: var(--style-ink);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.style-home {
    min-height: calc(100vh - 3.75rem);
    padding: 2rem;
    display: grid;
    place-items: center;
    background: var(--style-theme);
    color: #ffffff;
    text-align: center;
}

.style-home-content {
    width: min(100%, 620px);
}

.style-home-kicker {
    display: block;
    margin-bottom: 0.7rem;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.style-home h1 {
    margin: 0;
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
}

.style-home p {
    margin: 1.25rem 0 0;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.style-home-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.style-home-action,
.style-home-secondary {
    min-width: 130px;
    min-height: 46px;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.style-home-actions .style-home-action,
.style-home-actions .style-home-secondary {
    margin-top: 0;
}

.style-home-action {
    background: #ffffff;
    color: var(--style-ink);
}

.style-home-action:hover {
    background: #f6ecef;
    color: var(--style-ink);
}

.style-home-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.style-manage-page {
    min-height: calc(100vh - 3.75rem);
    padding: 2.5rem 1rem;
    background: var(--style-theme);
}

.style-manage-container {
    width: min(100%, 980px);
    margin: 0 auto;
}

.style-manage-heading {
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-align: center;
}

.style-manage-heading span {
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.style-manage-heading h1 {
    margin: 0.35rem 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.style-manage-heading p {
    margin: 0;
    font-family: Arial, sans-serif;
}

.style-manage-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(68, 25, 38, 0.16);
}

.style-manage-nav {
    padding: 1.5rem 1rem;
    background: #f7edef;
    border-right: 1px solid var(--style-border);
}

.style-manage-nav .nav {
    gap: 0.35rem;
}

.style-manage-nav .nav-link {
    padding: 0.75rem 0.85rem;
    border-radius: 5px;
    color: var(--style-ink);
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.style-manage-nav .nav-link.active,
.style-manage-nav .nav-link:hover {
    background: var(--style-theme);
    color: #ffffff;
}

.style-manage-content {
    min-width: 0;
    padding: 2rem;
}

.style-manage-title {
    margin: 0 0 1.25rem;
    color: var(--style-ink);
    font-size: 1.8rem;
}

.style-manage-form {
    width: min(100%, 540px);
    font-family: Arial, sans-serif;
}

.style-manage-form .form-control {
    min-height: 56px;
    border-color: var(--style-border);
}

.style-message-page {
    min-height: calc(100vh - 3.75rem);
    padding: 2rem 1rem;
    display: grid;
    place-items: center;
    background: var(--style-theme);
}

.style-message-card {
    width: min(100%, 560px);
    padding: 2rem;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(68, 25, 38, 0.16);
    text-align: center;
}

.style-message-card h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
}

.style-message-card p {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.style-message-card small {
    display: block;
    margin-top: 1rem;
    overflow-wrap: anywhere;
}

.table-responsive,
table {
    max-width: 100%;
}

table {
    width: 100%;
}

.validation-message,
.validation-summary-errors,
.alert,
.style-auth-description {
    overflow-wrap: anywhere;
}

.closet-page {
    min-height: calc(100vh - 3.75rem);
    padding: clamp(1.5rem, 4vw, 3.5rem) 1rem 4rem;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.65), transparent 28%),
        #f7edef;
}

.closet-container {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.closet-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.closet-heading > span,
.closet-modal-kicker {
    color: #a34e63;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.closet-heading h1 {
    margin: 0.35rem 0;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 400;
}

.closet-heading p {
    margin: 0;
    color: #765e65;
    font-family: Arial, sans-serif;
}

.closet-status {
    width: min(100%, 660px);
    margin: 0 auto 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.closet-status-success {
    background: #e9f5ec;
    color: #27633a;
}

.closet-status-error {
    background: #fae8eb;
    color: #8a2941;
}

.closet-toolbar {
    width: min(100%, 660px);
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.closet-search input {
    width: 100%;
    min-height: 54px;
    padding: 0 1.15rem;
    border: 1px solid #ddcbd0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--style-ink);
    font-family: Arial, sans-serif;
    font-size: 16px;
    outline: 0;
}

.closet-search input:focus {
    border-color: var(--style-theme);
    box-shadow: 0 0 0 4px rgba(217, 125, 144, 0.2);
}

.closet-add-button {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 18px;
    background: var(--style-ink);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(73, 56, 61, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.closet-add-button:hover {
    transform: translateY(-2px);
    background: #9e4960;
}

.closet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.closet-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(73, 56, 61, 0.13);
}

.closet-card-media {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #e8dadd;
}

.closet-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(35, 25, 29, 0.12);
    pointer-events: none;
}

.closet-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.closet-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 48%),
        #dca1ae;
    color: rgba(73, 56, 61, 0.65);
    text-align: center;
}

.closet-placeholder span {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
}

.closet-placeholder small {
    margin-top: 0.4rem;
    font-family: Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.closet-code {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.75),
        0 0 18px rgba(0, 0, 0, 0.55);
}

.closet-settings-button {
    position: absolute;
    z-index: 2;
    top: 0.7rem;
    right: 0.7rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(30, 22, 25, 0.38);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(20, 12, 15, 0.16);
    backdrop-filter: blur(5px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.closet-settings-button:hover,
.closet-settings-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(121, 62, 77, 0.72);
    transform: translateY(-1px);
}

.closet-settings-button span {
    transform: translateY(-1px);
}

.closet-card-footer {
    min-height: 64px;
    padding: 0.8rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: Arial, sans-serif;
}

.closet-card-footer span {
    color: #8b757b;
    font-size: 0.78rem;
}

.closet-card-footer strong {
    color: var(--style-ink);
    font-size: 0.96rem;
    white-space: nowrap;
}

.closet-empty {
    width: min(100%, 620px);
    margin: 3rem auto 0;
    padding: clamp(2rem, 7vw, 4rem) 1.25rem;
    border: 1px dashed #d5b9c0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.closet-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #ffffff;
    color: var(--style-theme);
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(73, 56, 61, 0.1);
}

.closet-empty h2 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.closet-empty p,
.closet-no-results {
    color: #765e65;
    font-family: Arial, sans-serif;
}

.closet-no-results {
    margin: 3rem 0;
    text-align: center;
}

.closet-modal[hidden] {
    display: none;
}

.closet-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 0.75rem;
    display: grid;
    place-items: center;
}

.closet-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(42, 31, 35, 0.62);
    cursor: default;
}

.closet-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    padding: 1.35rem 1.5rem;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(31, 20, 24, 0.32);
}

.closet-modal-dialog h2 {
    margin: 0.2rem 0 1rem;
    font-size: clamp(1.65rem, 5vw, 2.15rem);
}

.closet-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f7edef;
    color: var(--style-ink);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.closet-form {
    display: grid;
    gap: 0.75rem;
    font-family: Arial, sans-serif;
}

.closet-form label,
.closet-field {
    display: grid;
    gap: 0.3rem;
    color: var(--style-ink);
    font-weight: 700;
}

.closet-form input {
    width: 100%;
    min-height: 46px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--style-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--style-ink);
    font-size: 16px;
}

.closet-form input[type="file"] {
    padding: 0.5rem;
}

.closet-file-picker {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
}

.closet-file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.closet-file-picker button {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--style-border);
    border-radius: 8px;
    background: #f7edef;
    color: var(--style-ink);
    font-weight: 800;
    cursor: pointer;
}

.closet-file-picker button:hover {
    border-color: var(--style-theme);
    background: #f3e2e6;
}

.closet-file-picker [data-file-name] {
    min-width: 0;
    overflow: hidden;
    color: #765e65;
    font-size: 0.88rem;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.closet-form input:focus {
    border-color: var(--style-theme);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(217, 125, 144, 0.2);
}

.closet-price-input {
    position: relative;
}

.closet-price-input input {
    padding-right: 2.8rem;
}

.closet-price-input > span {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #8b757b;
}

.closet-form label > span small {
    color: #8b757b;
    font-size: 0.78rem;
    font-weight: 400;
}

.closet-current-image {
    color: #8b757b;
    font-size: 0.78rem;
    font-weight: 400;
}

.closet-submit {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--style-ink);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.closet-edit-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr);
    gap: 0.65rem;
}

.closet-delete-button,
.closet-cancel-delete,
.closet-confirm-delete {
    min-height: 46px;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.closet-delete-button {
    border: 1px solid #b94254;
    background: #ffffff;
    color: #a52e43;
}

.closet-delete-button:hover {
    background: #fae8eb;
}

.closet-delete-confirm {
    margin-top: 0.55rem;
    padding: 0.65rem;
    border: 1px solid #edc6ce;
    border-radius: 8px;
    background: #fff4f6;
    font-family: Arial, sans-serif;
}

.closet-delete-confirm p {
    margin: 0 0 0.5rem;
    color: #7d2637;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.closet-delete-confirm > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0.5rem;
}

.closet-delete-confirm form {
    margin: 0;
}

.closet-cancel-delete,
.closet-confirm-delete {
    width: 100%;
    min-height: 38px;
    padding: 0.4rem 0.55rem;
    font-size: 0.84rem;
}

.closet-cancel-delete {
    border: 1px solid var(--style-border);
    background: #ffffff;
    color: var(--style-ink);
}

.closet-confirm-delete {
    border: 1px solid #a52e43;
    background: #a52e43;
    color: #ffffff;
}

.closet-confirm-delete:hover {
    background: #8f2337;
}

.closet-submit:hover {
    background: #9e4960;
}

.closet-modal-open {
    overflow: hidden;
}

@media (min-width: 769px) and (min-height: 640px) {
    .closet-modal-dialog {
        max-height: none;
        overflow-y: visible;
    }

    #closet-edit-modal .closet-modal-dialog {
        max-height: calc(100dvh - 1.5rem);
        overflow-y: auto;
        padding-block: 1.1rem;
    }

    #closet-edit-modal .closet-form {
        gap: 0.6rem;
    }
}

@media (max-width: 960px) {
    .closet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .style-auth-page {
        min-height: calc(100vh - 4rem);
        padding: 1.5rem 0.75rem;
    }

    .style-auth-card {
        padding: 22px 16px;
    }

    .style-auth-title {
        font-size: 1.75rem;
    }

    .style-auth-input,
    .style-manage-form .form-control {
        min-height: 52px;
        font-size: 16px;
    }

    .style-auth-button,
    .style-manage-form .btn,
    .style-message-card .btn {
        width: 100%;
        min-height: 48px;
        white-space: normal;
    }

    .style-home {
        min-height: calc(100vh - 4rem);
        padding: 1.25rem;
    }

    .style-home h1 {
        font-size: 4rem;
    }

    .style-home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .style-home-action,
    .style-home-secondary {
        width: 100%;
    }

    .style-manage-page {
        min-height: calc(100vh - 4rem);
        padding: 1.5rem 0.75rem;
    }

    .style-manage-shell {
        grid-template-columns: 1fr;
    }

    .style-manage-nav {
        padding: 0.75rem;
        border-right: 0;
        border-bottom: 1px solid var(--style-border);
    }

    .style-manage-nav .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .style-manage-nav .nav-item {
        flex: 1 1 auto;
    }

    .style-manage-nav .nav-link {
        text-align: center;
    }

    .style-manage-content {
        padding: 1.2rem 1rem;
    }

    .style-manage-title {
        font-size: 1.55rem;
    }

    .style-message-page {
        min-height: calc(100vh - 4rem);
        padding: 1rem 0.75rem;
    }

    .style-message-card {
        padding: 1.5rem 1rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .closet-page {
        min-height: calc(100vh - 4rem);
        padding: 1.5rem 0.75rem 3rem;
    }

    .closet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .closet-card {
        border-radius: 13px;
    }

    .closet-settings-button {
        top: 0.5rem;
        right: 0.5rem;
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }

    .closet-card-footer {
        min-height: 58px;
        padding: 0.65rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .closet-code {
        font-size: clamp(2.1rem, 12vw, 3.4rem);
    }

    .closet-edit-actions,
    .closet-delete-confirm > div {
        grid-template-columns: 1fr;
    }
}

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