/* MI ARMARIO — cute · simple · professional */
:root {
  --bg:       #f8f7f4;
  --surface:  #ffffff;
  --ink:      #1a1a18;
  --muted:    #87837b;
  --border:   #e8e5df;
  --primary:  #1a1a18;
  --danger:   #b05560;
  --like:     #c4647a;
  --sh-sm:    0 2px 10px rgba(26,26,24,.05);
  --sh-md:    0 10px 26px rgba(26,26,24,.10);
  --sh-lg:    0 20px 48px rgba(26,26,24,.14);
  --r-sm:     12px;
  --r-md:     16px;
  --r-lg:     22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }

/* ── Shell ── */
.app-shell {
  width: min(1160px, calc(100% - 28px));
  min-height: 100dvh;
  margin: auto;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ── */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-wrap {
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .18s;
}
.brand:hover .brand-logo-wrap { transform: scale(1.06); }
.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.storage-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6caa7c;
  box-shadow: 0 0 0 3px rgba(108,170,124,.18);
}

main { flex: 1; }

/* ── Install Banner ── */
.install-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-sm);
  animation: cardAppear .25s ease both;
}
.install-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: block;
}
.install-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.install-copy strong { font-size: .8rem; font-weight: 800; letter-spacing: -.015em; }
.install-copy span { font-size: .7rem; color: var(--muted); }
.install-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.install-btn { min-height: 34px; padding: 7px 13px; border-radius: 999px; font-size: .74rem; }
.install-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: #f2f1ee;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
}
.install-close:hover { background: #e8e6e1; color: var(--ink); }
.page {
  padding: 16px 0 48px;
  animation: pageEnter .28s ease both;
}

/* ── Buttons ── */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.1;
  transition: transform .16s, background .16s, box-shadow .16s, border-color .16s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.985); }
.button:focus-visible { outline: 3px solid rgba(26,26,24,.22); outline-offset: 2px; }
.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,26,24,.14);
}
.button-primary:hover { background: #111; box-shadow: 0 6px 18px rgba(26,26,24,.2); }
.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.button-secondary:hover { border-color: #cac6bd; background: #fcfbf9; }

/* ── Action Bar: 3 botones limpios y compactos ── */
.action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.action-bar .action-main {
  grid-column: 1 / -1;
  min-height: 48px;
  font-size: .86rem;
}

/* ── Filters & Count ── */
.section-block { margin-top: 4px; }
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.filter-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}
.filter-list::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #68655e;
  font-size: .73rem;
  font-weight: 700;
  transition: all .16s;
}
.filter-btn:hover { border-color: #c2beb5; color: var(--ink); }
.filter-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.filter-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot, #ccc);
  border: 1px solid rgba(0,0,0,.14);
  flex-shrink: 0;
}
.filter-btn.active .filter-dot { border-color: rgba(255,255,255,.7); }
.total-pill {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Group Cards Grid ── */
.groups-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

/* ── Group Card — marco de color + foto vertical ── */
.group-card {
  --group-color: #e8e0d8;
  position: relative;
  padding: 5px;
  border-radius: var(--r-lg);
  background: var(--group-color);
  border: 1.5px solid color-mix(in srgb, var(--group-color), #000 13%);
  aspect-ratio: 3 / 4.3;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  animation: cardAppear .28s ease both;
  transition: transform .2s, box-shadow .2s;
}
.group-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.group-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r-lg) - 5px);
  overflow: hidden;
  background: color-mix(in srgb, var(--group-color), #fff 30%);
}

/* Photo fills inner frame */
.group-preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.group-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.group-preview img:first-child:last-child { grid-column: 1 / -1; }
.group-preview-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: color-mix(in srgb, var(--group-color), #000 32%);
}

/* Edit / Delete — floating top-right */
.group-management {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  display: flex;
  gap: 5px;
}
.icon-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  font-size: .82rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: background .16s, transform .15s;
}
.icon-btn:hover { background: #fff; transform: scale(1.08); }
.icon-btn.delete { color: var(--danger); }
.icon-btn:focus-visible { outline: 3px solid rgba(26,26,24,.22); outline-offset: 2px; }

/* Info overlay — gradient at bottom */
.group-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 36px 11px 11px;
  background: linear-gradient(to top, rgba(16,16,14,.72) 0%, rgba(16,16,14,0) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.group-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.group-color-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--group-color);
  border: 1.5px solid rgba(255,255,255,.9);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.group-card-info h3 {
  margin: 0;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.28);
}
.group-card-info > p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .66rem;
  font-weight: 600;
}
.group-card-actions { display: flex; gap: 6px; margin-top: 2px; }
.group-card-actions button {
  min-height: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .66rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .16s, border-color .16s;
}
.group-card-actions button:hover { background: rgba(255,255,255,.32); border-color: #fff; }

/* No-photo variant */
.group-card:not(:has(.group-preview img)) .group-card-info {
  background: linear-gradient(to top, rgba(0,0,0,.16) 0%, rgba(0,0,0,0) 75%);
}
.group-card:not(:has(.group-preview img)) .group-card-info h3 { color: rgba(0,0,0,.76); text-shadow: none; }
.group-card:not(:has(.group-preview img)) .group-card-info > p { color: rgba(0,0,0,.48); }
.group-card:not(:has(.group-preview img)) .group-color-dot { border-color: rgba(0,0,0,.2); box-shadow: none; }
.group-card:not(:has(.group-preview img)) .group-card-actions button {
  border-color: rgba(0,0,0,.18); background: rgba(255,255,255,.6); color: rgba(0,0,0,.74);
}
.group-card:not(:has(.group-preview img)) .group-card-actions button:hover { background: rgba(255,255,255,.88); }

/* Empty state */
.empty-state, .gallery-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  border: 1.5px dashed #dad7d0;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.6);
  color: var(--muted);
  text-align: center;
  font-size: .84rem;
  line-height: 1.55;
}
.empty-state span { display: block; margin-bottom: 10px; font-size: 1.9rem; color: #c5c1b8; }
.empty-state h3 { margin-bottom: 4px; color: var(--ink); font-size: .98rem; }
.empty-state p { margin: 0; }

/* ── Gallery Page ── */
.gallery-page { padding-top: 16px; }
.gallery-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 750;
  transition: border-color .16s, background .16s;
}
.back-button:hover { border-color: #c2beb5; background: #faf9f7; }
.back-button:focus-visible { outline: 3px solid rgba(26,26,24,.22); outline-offset: 2px; }

.sort-control select {
  min-height: 34px;
  padding: 6px 11px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .73rem;
  font-weight: 650;
}

.gallery-intro {
  --group-color: #e8e0d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid color-mix(in srgb, var(--group-color), #000 12%);
  border-left: 6px solid color-mix(in srgb, var(--group-color), #000 18%);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-sm);
  margin-bottom: 16px;
}
.gallery-heading-main { min-width: 0; }
.gallery-title-row { display: flex; align-items: center; gap: 8px; }
.color-badge {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--group-color);
  border: 1.5px solid color-mix(in srgb, var(--group-color), #000 22%);
  flex-shrink: 0;
}
.gallery-heading-main h1 {
  margin: 0 0 2px;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.muted { color: var(--muted); }
.gallery-heading-main .muted { margin: 0; font-size: .75rem; font-weight: 600; }
.gallery-add-button { flex: 0 0 auto; min-height: 40px; padding: 9px 15px; font-size: .78rem; }

/* Gallery grid — portrait photos */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-card {
  min-width: 0; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  animation: cardAppear .28s ease both;
}
.gallery-image-button {
  display: block; width: 100%; padding: 0; border: 0;
  background: #efede9; cursor: zoom-in; overflow: hidden;
}
.gallery-image-button img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block; object-fit: cover;
  transition: transform .3s ease;
}
.gallery-image-button:hover img { transform: scale(1.04); }
.gallery-image-button:focus-visible { outline: 3px solid rgba(26,26,24,.3); outline-offset: -3px; }
.gallery-card-footer {
  min-height: 42px; display: flex; align-items: center; justify-content: space-between;
  gap: 5px; padding: 7px 9px;
}
.gallery-likes {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--like); font-size: .7rem; font-weight: 750; white-space: nowrap;
}
.gallery-likes .like-icon { font-size: .84rem; }
.delete-outfit {
  min-height: 26px; padding: 4px 9px;
  border: 1.5px solid #f0e0e2;
  border-radius: 999px;
  background: #fdf5f6; color: #a84f58;
  font-size: .66rem; font-weight: 700;
  transition: background .16s, border-color .16s;
}
.delete-outfit:hover { background: #faeaeb; border-color: #d4909a; }

/* ── Modals ── */
.modal {
  position: fixed; z-index: 100; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
  background: rgba(18,17,15,.72);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(90vh, 850px); overflow-y: auto;
  padding: 26px 20px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  transform: translateY(12px) scale(.985);
  transition: transform .2s;
}
.modal.open .modal-dialog { transform: translateY(0) scale(1); }
.modal-dialog h2 { margin-bottom: 6px; font-size: 1.25rem; letter-spacing: -.035em; }
.eyebrow {
  margin: 0 0 6px;
  color: #9b948a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: none;
  background: #f2f1ee; color: #555; font-size: 1.25rem; line-height: 1;
  transition: background .16s;
}
.modal-close:hover { background: #e8e6e1; }
.field-label { display: block; margin: 18px 0 8px; color: #4a4a47; font-size: .77rem; font-weight: 750; }
#groupName {
  width: 100%; min-height: 44px; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  outline: none; font-size: .86rem; background: var(--bg);
}
#groupName:focus { border-color: #888; box-shadow: 0 0 0 3px rgba(26,26,24,.08); }
.color-label { margin-top: 18px; }
.color-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option {
  width: 34px; height: 34px;
  border: 2px solid rgba(0,0,0,.1); border-radius: 50%;
  background: var(--swatch); cursor: pointer;
  transition: transform .15s;
}
.color-option:hover { transform: scale(1.1); }
.color-option[data-color="#E8E0D8"]{--swatch:#E8E0D8}
.color-option[data-color="#DCE8DF"]{--swatch:#DCE8DF}
.color-option[data-color="#DDE5F0"]{--swatch:#DDE5F0}
.color-option[data-color="#F0E5C9"]{--swatch:#F0E5C9}
.color-option[data-color="#E9DDED"]{--swatch:#E9DDED}
.color-option[data-color="#F1DCDD"]{--swatch:#F1DCDD}
.color-option[data-color="#DDEBEA"]{--swatch:#DDEBEA}
.color-option.active { outline: 2.5px solid var(--primary); outline-offset: 3px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-actions .button { min-width: 100px; }

.select-group-list { display: grid; gap: 8px; margin-top: 16px; }
.select-group-btn {
  --group-color: #e8e0d8;
  min-height: 52px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-left: 5px solid color-mix(in srgb, var(--group-color), #000 14%);
  border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); text-align: left;
  transition: border-color .16s, background .16s;
}
.select-group-btn:not(:disabled):hover {
  border-color: #c0bdb5;
  border-left-color: color-mix(in srgb, var(--group-color), #000 22%);
  background: color-mix(in srgb, var(--group-color), #fff 65%);
}
.select-group-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.select-group-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--group-color);
  border: 1px solid rgba(0,0,0,.15);
  flex-shrink: 0;
}
.select-group-btn strong { font-size: .84rem; }
.select-group-btn span { color: var(--muted); font-size: .73rem; white-space: nowrap; }

.result-dialog { width: min(100%, 440px); text-align: center; }
.result-group { margin-bottom: 12px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.result-image-wrap { width: 100%; max-height: 48vh; overflow: hidden; border-radius: var(--r-md); background: #f1f0ec; }
.result-image-wrap img { width: 100%; max-height: 48vh; display: block; object-fit: contain; }
.rating-prompt { margin: 16px 0 10px; font-size: .83rem; font-weight: 750; }
.rating-actions { display: grid; gap: 8px; }
.rating-button {
  min-height: 42px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); background: var(--bg);
  color: #555; font-size: .78rem; font-weight: 750; transition: all .16s;
}
.like-button:hover, .like-button.active-like { border-color: #dca5b4; background: #fceef3; color: #b04e68; }
.rating-note { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: .7rem; }
.retry-button { width: 100%; margin-top: 12px; }

.lightbox-modal { z-index: 120; padding: 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lightbox-dialog {
  position: relative; width: min(100%, 980px); max-height: 94vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 12px;
  border-radius: var(--r-md); background: #141412;
  box-shadow: var(--sh-lg); animation: cardAppear .2s ease both;
}
.lightbox-dialog img { display: block; max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { z-index: 2; top: 8px; right: 8px; background: rgba(255,255,255,.92); color: #222; }
.lightbox-caption { max-width: 100%; margin: 0; color: #ddd; font-size: .78rem; text-align: center; overflow-wrap: anywhere; }

.popup-dialog { width: min(100%, 370px); text-align: center; }
.popup-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: #f2f1ec; color: #58544e; font-size: 1.15rem; font-weight: 800; }
.popup-dialog p { margin: 0; color: #737373; font-size: .84rem; line-height: 1.55; }
.popup-dialog .modal-actions { justify-content: center; }
.popup-dialog .button { flex: 1; }

/* ── Toast ── */
.toast-container { position: fixed; z-index: 200; right: 14px; bottom: 18px; left: 14px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: min(100%, 400px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.22); font-size: .78rem; font-weight: 600; animation: toastIn .2s ease both; }
.toast.removing { animation: toastOut .2s ease both; }

/* ── Footer ── */
.app-footer {
  padding: 16px 0 22px;
  border-top: 1px solid var(--border);
  color: #9e9a93;
  font-size: .68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.app-footer span { padding: 0 2px; }
.footer-logo-wrap {
  width: 28px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: .55;
  display: block;
  flex-shrink: 0;
}

/* ── Animations ── */
@keyframes pageEnter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cardAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ── Responsive ── */
@media (min-width: 560px) {
  .app-shell { width: min(1160px, calc(100% - 48px)); }
  .page { padding-top: 24px; }
  .action-bar {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .action-bar .action-main { grid-column: auto; min-height: 46px; }
  .groups-container { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .toast-container { left: auto; }
}

@media (min-width: 850px) {
  .app-shell { width: min(1160px, calc(100% - 72px)); }
  .page { padding-top: 30px; }
  .groups-container { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

@media (max-width: 380px) {
  .app-shell { width: calc(100% - 22px); }
  .groups-container { gap: 9px; }
  .group-card-info { padding: 28px 9px 9px; }
  .group-card-info h3 { font-size: .82rem; }
  .gallery-intro { padding: 12px 13px; }
  .gallery-add-button { padding: 8px 12px; font-size: .74rem; }
  .gallery-grid { gap: 8px; }
  .gallery-card-footer { flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; }
  .delete-outfit { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
