/* Phase 2 UI. Loaded after app.css so a live-sync of app.css can land
   without dropping these rules. Scoped to new class names plus a few
   global offsets (header/footer, OK-only alert, desktop card buttons). */

/* ------------------------------------------------------------------ */
/* 11. Header / footer clearance                                      */
/* ------------------------------------------------------------------ */
main {
    padding-top: calc(var(--smd-header-h, 71px) + 20px) !important;
}
main:has(.smd-hero),
main:has(.page-hero-saagai),
main:has(.login-page-saagai) {
    padding-top: var(--smd-header-h, 71px) !important;
}
main:has(.login-page-saagai) {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    background: transparent;
}
/* Dashboard and matches fill the viewport under the fixed header. */
main.main-dashboard {
    padding-top: var(--smd-header-h, 71px) !important;
    padding-bottom: 0 !important;
}
@media (max-width: 768px) {
    body:has(.mobile-footer) main {
        padding-bottom: calc(var(--smd-footer-h, 91px) + 16px) !important;
    }
    body:has(.mobile-footer) main.main-dashboard {
        padding-bottom: var(--smd-footer-h, 91px) !important;
    }
    body main:has(.smd-hero),
    body main:has(.page-hero-saagai),
    body main:has(.login-page-saagai) {
        padding-bottom: 0 !important;
    }
}
/* 11. Hide "Scroll for more" in phone landscape (844x390). */
@media (orientation: landscape) and (max-height: 500px) {
    .scroll-indicator-overlay {
        display: none !important;
    }
}

/* 10. Logged-in desktop still shows search, bell, and avatar. */
@media (min-width: 768px) {
    .navbar-saagai .nav-mobile-icons {
        display: flex !important;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }
}

/* ------------------------------------------------------------------ */
/* 13. Breadcrumbs                                                    */
/* ------------------------------------------------------------------ */
.smd-crumbs {
    max-width: 1200px;
    margin: 0 auto 4px;
    padding: 2px 16px 10px;
    min-width: 0;
    box-sizing: border-box;
}
.dashboard-container,
.smd-search-page {
    max-width: 1200px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
}
.nav-container-saagai {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}
.smd-crumbs ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
    font-size: 13px;
    line-height: 1.3;
}
.smd-crumbs li {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #6b7280;
    flex: 0 0 auto;
}
.smd-crumbs li:last-child {
    flex: 1 1 auto;
    overflow: hidden;
}
.smd-crumbs a {
    color: #B83B3B;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.smd-crumbs a:hover { text-decoration: underline; }
.smd-crumb-sep {
    margin: 0 6px;
    color: #d1d5db;
    flex: 0 0 auto;
}
.smd-crumb-current {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
    font-weight: 600;
}
@media (max-width: 359px) {
    .smd-crumbs { padding-left: 12px; padding-right: 12px; }
    .smd-crumbs ol { font-size: 12px; }
}

/* ------------------------------------------------------------------ */
/* 15c + a/b. Equal boxed action buttons (matches, and the same       */
/* treatment on dashboard / search .profile-action at every width)    */
/* ------------------------------------------------------------------ */
.match-card.card {
    padding: 12px !important;
    border-radius: 16px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    height: auto;
    flex-shrink: 0;
    background: #fff;
}
/* Keep every match list child at content height inside the mobile flex scroller. */
.matches-scroll-container > .match-card,
.matches-scroll-container > .match-section-header,
.matches-scroll-container > .smd-mc-note,
.matches-scroll-container > .empty-state {
    flex-shrink: 0;
}
.match-card.is-blocked { opacity: 0.6; }
.match-card p { margin: 0; }
.match-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}
.match-card-photo {
    position: relative;
    width: 92px;
    height: 116px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #fde8e8, #f8c5c5);
}
.match-card-photo.is-muted { background: #eceff1; }
.match-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}
.match-card-photo img.match-photo-gated {
    filter: blur(16px) saturate(0.7) brightness(0.85);
    transform: scale(1.18);
    pointer-events: none;
}
.match-card-photo .match-photo-lock {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    padding: 6px 6px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.match-card-photo span {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #A84242;
    line-height: 1;
}
.match-card-photo.is-muted span { color: #6b7280; }
.match-card-meta { min-width: 0; flex: 1; }
.match-card-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.match-card-id,
.match-card-date {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}
.match-card-id { font-weight: 600; color: #4b5563; }
.match-card-roses-left {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #B83B3B;
}
.match-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.match-chip-received { background: #fef5f5; color: #9f1239; border-color: #f8c5c5; }
.match-chip-rejected { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.match-card-note {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fef5f5;
    border: 1px solid #f8c5c5;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
}
.match-card-note span {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #B83B3B;
}
.match-actions {
    display: grid;
    grid-template-columns: repeat(var(--match-cols, 2), minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    align-items: stretch;
}
.match-action {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 68px;
    height: 100%;
    margin: 0;
    padding: 8px 6px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    box-shadow: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.match-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.match-action span { display: block; }
.match-action-view { background: #fff; border-color: #d1d5db; color: #1f2937; }
.match-action-view:hover { border-color: var(--pink-400, #e88a8a); color: var(--pink-700, #c94e4e); }
.match-action-cancel { background: #fff; border-color: #fecaca; color: #b91c1c; }
.match-action-cancel:hover { background: #fef2f2; }
.match-action-accept { background: #f0fdf4; border-color: #86efac; color: #166534; }
.match-action-accept:hover { background: #dcfce7; }
.match-action-relike { background: #fff; border-color: #f8c5c5; color: #be185d; }
.match-action-relike:hover { background: #fef5f5; }
.match-action-rose { background: #fff5f6; border-color: var(--pink-500, #B83B3B); color: #9f1239; }
.match-action-rose:hover { background: #fde8e8; }
/* Desktop uses the same boxed buttons as mobile. */
@media (min-width: 768px) {
    .match-action {
        min-height: 68px !important;
        width: 100% !important;
        border-width: 1.5px !important;
        border-style: solid !important;
        padding: 8px 6px !important;
        font-size: 12px !important;
        box-shadow: none !important;
    }
    .match-action svg { width: 18px !important; height: 18px !important; }
}

/* Dashboard actions: horizontal pills spanning the card. */
.profile-card-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px !important;
    width: 100%;
    margin-top: auto !important;
}
.profile-card-actions .profile-action {
    flex: 1 1 0;
    flex-direction: row !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    gap: 6px !important;
    white-space: nowrap;
}
.profile-card-actions .profile-action i,
.profile-card-actions .profile-action svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    display: block !important;
    stroke: currentColor;
    fill: none;
}
.profile-action-like {
    color: #A12A2A !important;
    background: #fde8e8 !important;
    border: 1px solid #f8c5c5 !important;
}
.profile-action-shortlist {
    color: #9f1239 !important;
    background: #ffe4e6 !important;
    border: 1px solid #fecdd3 !important;
}
.profile-action-shortlist.active {
    color: #ffffff !important;
    background: #e11d48 !important;
    border-color: #be123c !important;
}
.profile-action-reject {
    color: #A12A2A !important;
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
}
[data-reject-action].is-reject-wait {
    cursor: not-allowed;
    opacity: 0.9;
}
[data-reject-action].is-reject-wait [data-reject-label] {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.profile-action-rose {
    background: #B83B3B !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #B83B3B !important;
}
.dashboard-container .profile-card-actions,
.profile-card-actions {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
/* Narrow cards (4-up on a 1200px grid is about 280px) use the 2×2 pill layout. */
.profile-card-vertical {
    container-type: inline-size;
    container-name: smdcard;
}
@container smdcard (max-width: 320px) {
    .profile-card-actions {
        flex-wrap: wrap !important;
    }
    .profile-card-actions .profile-action {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: calc(50% - 8px);
        max-width: calc(50% - 4px);
        box-sizing: border-box;
        justify-content: center;
    }
}
.dashboard-container .profile-card-body { padding-bottom: 0 !important; }
@media (max-width: 480px) {
    .nav-container-saagai { padding-left: 16px !important; padding-right: 16px !important; }
    .navbar-saagai .nav-container-saagai > div { gap: 8px !important; }
    .smd-height-range { grid-template-columns: 1fr 1fr !important; }
    .smd-height-range .smd-height-label:nth-of-type(1) { grid-column: 1 / -1; grid-row: 1; }
    .smd-height-range #height_min_feet { grid-column: 1; grid-row: 2; }
    .smd-height-range #height_min_inches { grid-column: 2; grid-row: 2; }
    .smd-height-range .smd-height-label:nth-of-type(2) { grid-column: 1 / -1; grid-row: 3; }
    .smd-height-range #height_max_feet { grid-column: 1; grid-row: 4; }
    .smd-height-range #height_max_inches { grid-column: 2; grid-row: 4; }
    .smd-height-range select { min-width: 0; width: 100%; }
    .profile-card-body { padding-bottom: 0 !important; }
    .profile-card-actions {
        flex-wrap: wrap !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        margin-bottom: 0 !important;
    }
    .profile-card-actions .profile-action { flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 400px) {
    .nav-buttons-mobile .btn-outline-saagai-nav { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* c + d. Profile hero and completion                                 */
/* ------------------------------------------------------------------ */
.smd-profile-hero.card {
    padding: 16px !important;
    border-radius: 18px !important;
    border: 1px solid #f3e4e4;
    background: linear-gradient(180deg, #fff 0%, #fff8f8 100%) !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.smd-profile-hero p,
.smd-complete p { margin: 0; }
.smd-profile-hero-main {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}
.smd-profile-avatar {
    width: 84px !important;
    height: 84px !important;
    min-width: 84px;
    min-height: 84px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEF0F0;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px #f8c5c5;
}
.smd-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.smd-profile-avatar span {
    font-size: 1.75rem;
    font-weight: 700;
    color: #A84242;
    letter-spacing: 0.02em;
    line-height: 1;
}
.smd-profile-ident { min-width: 0; flex: 1; text-align: left; }
.smd-profile-name {
    margin: 0 0 6px;
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smd-presence-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0.45rem 0 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.smd-presence-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.smd-presence-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.smd-presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
.smd-presence-dot--online { background: #16a34a; }
.smd-presence-dot--away { background: #f59e0b; }

.smd-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
}
.smd-status-approved { background: #ecfdf3; color: #166534; border-color: #86efac; }
.smd-status-pending { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.smd-status-on-hold,
.smd-status-onhold { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.smd-status-verified { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.smd-status-rejected,
.smd-status-suspended,
.smd-status-reported { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.smd-profile-pid {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.smd-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
/* Keep .smd-stat for older live markup; .smd-profile-stat avoids home .smd-stat clash */
.smd-profile-hero .smd-stat,
.smd-profile-stat {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 8px !important;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f3e4e4;
    font-size: 12px;
    color: #4b5563;
    text-align: left;
}
.smd-profile-hero .smd-stat strong,
.smd-profile-stat strong { color: #111827; font-weight: 700; }
.smd-profile-hero .smd-stat svg,
.smd-profile-stat svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex: 0 0 14px !important;
    display: block;
    color: #6B7280;
}
.smd-profile-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}
.smd-hero-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 68px;
    padding: 8px 4px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
}
.smd-profile-hero .smd-hero-action svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
    display: block;
}
.smd-hero-action:hover { border-color: var(--pink-400, #e88a8a); color: var(--pink-700, #c94e4e); }
@media (min-width: 768px) {
    .smd-profile-hero.card { padding: 22px 24px !important; }
    .smd-profile-hero-layout {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .smd-profile-hero-main { flex: 1 1 auto; min-width: 0; }
    .smd-profile-hero-actions { flex: 0 0 auto; width: auto; margin-top: 0; }
    .smd-profile-avatar {
        width: 104px !important;
        height: 104px !important;
        min-width: 104px;
        min-height: 104px;
        flex-basis: 104px;
    }
    .smd-profile-name { font-size: 1.75rem; }
}

.smd-complete.card {
    padding: 16px !important;
    border-radius: 18px !important;
    border: 1px solid #f3e4e4 !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.smd-complete-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.smd-complete-kicker {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #B83B3B;
}
.smd-complete h3 {
    margin: 0;
    font-size: 1.15rem;
}
.smd-complete-pct {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff !important;
    color: #B83B3B !important;
    font-size: 1.05rem !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 6px #fde8e8, inset 0 0 0 8px #fff, inset 0 0 0 11px var(--pink-500, #B83B3B);
}
.smd-complete-track {
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    background: #f3e8e8;
    overflow: hidden;
}
#completion-progress-bar {
    display: block;
    height: 100% !important;
    border-radius: inherit;
    background: linear-gradient(90deg, #f0a0a0, var(--pink-500, #B83B3B)) !important;
}
.smd-complete-meta {
    margin: 10px 0 0 !important;
    font-size: 14px;
    color: #4b5563;
}
.smd-complete-meta #completion-percentage {
    font-weight: 700;
    color: #B83B3B;
}
.smd-complete-hint {
    margin: 4px 0 0 !important;
    font-size: 13px;
    color: #6b7280;
}
.smd-premium-offer {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
    border: 1px solid #fdba74;
}
.smd-premium-offer h4 {
    margin: 0 0 4px;
    color: #9a3412;
    font-size: 1.05rem;
}
.smd-premium-offer p { margin: 0; color: #7c2d12; font-size: 14px; }
.smd-premium-offer .btn { margin-top: 10px; }
.smd-wait {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    padding: 2px 8px;
    vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* e. Apple-like mobile menu                                          */
/* ------------------------------------------------------------------ */
#mobileMenu.smd-apple-menu {
    background: #fbfbfd !important;
    transform: none !important;
    opacity: 0;
    transition: opacity 0.38s cubic-bezier(0.32, 0.72, 0, 1) !important;
}
#mobileMenu.smd-apple-menu.mobile-menu-open {
    opacity: 1 !important;
    transform: none !important;
}
#mobileMenu.smd-apple-menu.hidden { display: none !important; }
.smd-apple-head {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) calc(env(safe-area-inset-right, 0px) + 8px) 8px calc(env(safe-area-inset-left, 0px) + 40px);
    background: #fbfbfd;
}
.smd-apple-logo {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #B83B3B;
    text-decoration: none;
}
.smd-apple-scroll {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding-top: calc(env(safe-area-inset-top, 0px) + 76px);
    padding-right: calc(env(safe-area-inset-right, 0px) + 28px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
    padding-left: calc(env(safe-area-inset-left, 0px) + 40px);
}
#mobileMenu .smd-apple-close {
    position: static !important;
    z-index: 2;
    top: auto !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1d1d1f;
    cursor: pointer;
}
#mobileMenu .smd-apple-close svg { width: 18px; height: 18px; display: block; }
.smd-apple-list { display: flex; flex-direction: column; }
.smd-apple-link {
    display: block;
    margin: 0;
    padding: 11px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.14286;
    color: #B83B3B;
    text-decoration: none;
    background: transparent;
    border: 0;
    opacity: 0;
    transform: translateY(12px);
}
.smd-apple-link:hover { color: var(--pink-800, #a84242); }
.smd-apple-link:active { opacity: 0.72; }
#mobileMenu .smd-apple-link.is-active {
    color: #1d1d1f;
    background: #fff;
    border-radius: 12px;
    margin-left: -12px;
    padding-left: 12px;
    box-shadow: inset 4px 0 0 var(--pink-600, #B83B3B);
}
.smd-apple-sep {
    height: 1px;
    margin: 18px 0 6px;
    background: #e5e5ea;
}
.smd-apple-logout {
    margin-top: 0;
}
#mobileMenu .smd-apple-link-form button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit;
    font: inherit;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.14286;
    text-align: left;
    cursor: pointer;
}
#mobileMenu.mobile-menu-open .smd-apple-link {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(1) { transition-delay: 0.04s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(2) { transition-delay: 0.07s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(3) { transition-delay: 0.10s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(4) { transition-delay: 0.13s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(5) { transition-delay: 0.16s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(6) { transition-delay: 0.19s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(7) { transition-delay: 0.22s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(8) { transition-delay: 0.25s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(9) { transition-delay: 0.28s; }
#mobileMenu.mobile-menu-open .smd-apple-link:nth-child(10) { transition-delay: 0.31s; }
.smd-apple-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    max-width: 280px;
    opacity: 0;
    transform: translateY(10px);
}
#mobileMenu.mobile-menu-open .smd-apple-cta {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease 0.18s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}
@media (prefers-reduced-motion: reduce) {
    .smd-apple-link,
    #mobileMenu.mobile-menu-open .smd-apple-link,
    .smd-apple-cta,
    #mobileMenu.mobile-menu-open .smd-apple-cta {
        transition: none !important;
        transform: none !important;
        opacity: 1;
    }
}

/* ------------------------------------------------------------------ */
/* f. Add Roses — bordered buy control                                */
/* ------------------------------------------------------------------ */
.smd-buy-roses {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1.5px solid var(--pink-500, #B83B3B);
    background: #fff;
    color: #9f1239;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    box-shadow: none;
}
.smd-buy-roses:hover { background: #fff5f6; }
.smd-buy-roses-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #B83B3B;
}
.smd-buy-roses-icon svg { width: 20px; height: 20px; }
.smd-buy-plus {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pink-500, #B83B3B);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid #fff;
}
.smd-buy-roses-text { min-width: 0; display: flex; flex-direction: column; }
.smd-buy-roses-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #9f1239;
}
.smd-buy-roses-text small {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wallet-page .flex.flex-row { align-items: stretch; }
.wallet-page .flex.flex-row > .btn,
.wallet-page .smd-buy-roses {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    min-height: 58px;
    border-radius: 12px;
}

/* ------------------------------------------------------------------ */
/* 15. OK-only alert: dialog above the dim backdrop                   */
/* ------------------------------------------------------------------ */
#popupOverlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    background: transparent !important;
    opacity: 1 !important;
}
#popupOverlay.hidden { display: none !important; }
#popupOverlay .popup-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(17, 24, 39, 0.55);
}
#popupOverlay .popup-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100%;
    max-width: 420px;
    margin: auto;
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
#popupOverlay #popupHeader .popup-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border: 0 !important;
    border-radius: 10px;
    background: transparent !important;
    color: #374151;
    cursor: pointer;
}
#popupOverlay #popupFooter > button.btn-primary,
#popupOverlay #popupFooter > button:only-child {
    background: #a84242 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #a84242 !important;
    opacity: 1 !important;
}
#popupFooter > button:only-child {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Desktop: top nav, never the full-screen menu. */
@media (min-width: 1101px) {
    #mobileMenu,
    #mobileMenuOverlay,
    .navbar-saagai .hamburger-saagai {
        display: none !important;
    }
    .navbar-saagai nav.nav-menu-saagai {
        display: flex !important;
    }
}

/* From tablet up, lists size to their content. Do not stretch rows to fill the viewport. */
@media (min-width: 768px) {
    .dashboard-container {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    .dashboard-container > .tab-content {
        flex: 0 1 auto !important;
        overflow: visible !important;
    }
    .dashboard-container .profiles-scroll-container,
    .matches-scroll-container {
        flex: 0 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        align-content: start !important;
        align-items: start !important;
        grid-auto-rows: max-content !important;
    }
    .dashboard-container .profiles-scroll-container {
        align-items: stretch !important;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .dashboard-container .profile-card-vertical {
        height: 100% !important;
        min-height: 0 !important;
        align-self: stretch;
    }
    .dashboard-container .profile-card-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        justify-content: flex-start !important;
    }
    .dashboard-container .profile-card-header,
    .dashboard-container .profile-card-meta,
    .dashboard-container .profile-card-details {
        flex: 0 0 auto !important;
        margin-top: 0 !important;
    }
    .dashboard-container .profile-card-header {
        margin-bottom: 3px !important;
    }
    .dashboard-container .profile-card-details {
        margin-bottom: 0 !important;
    }
    .dashboard-container > .tab-content {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Fixed tracks (not auto-fit) so leftover cards keep the same width as a full row */
    .dashboard-container .profiles-scroll-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        justify-content: start !important;
        justify-items: stretch !important;
    }
}
@media (min-width: 1024px) {
    .dashboard-container .profiles-scroll-container {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1440px) {
    .dashboard-container .profiles-scroll-container {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
/* close the prior min-width:768 block extras that followed auto-fit — re-open for matches rules */
@media (min-width: 768px) {
    .dashboard-container .profiles-scroll-container > .profile-card-vertical {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
        grid-column: auto !important;
    }
    .matches-scroll-container .card,
    .search-results-grid .profile-card-vertical {
        height: auto !important;
        min-height: 0 !important;
        align-self: start;
    }
    #pendingTab .matches-scroll-container {
        row-gap: 20px !important;
        column-gap: 20px !important;
    }
    #pendingTab .match-section-header {
        grid-column: 1 / -1;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }
    #pendingTab .match-card.card {
        height: auto !important;
        min-height: 0 !important;
        align-self: start;
    }
    #pendingTab .match-actions {
        margin-top: 12px !important;
    }
}

/* Pending cards fill the same width as the tab bar. Columns grow; rows stay content-sized. */
@media (min-width: 768px) {
    .dashboard-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }
    .dashboard-container > .tab-navigation {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #pendingTab.tab-content,
    #pendingTab .matches-scroll-container {
        width: 100% !important;
        max-width: none !important;
        align-self: stretch !important;
    }
    #pendingTab .matches-scroll-container {
        display: grid !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        align-content: start !important;
        align-items: start !important;
        grid-auto-rows: max-content !important;
        column-gap: 20px !important;
        row-gap: 20px !important;
    }
}

.smd-height-range {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}
.smd-height-label { font-size: 12px; color: #4B5563; font-weight: 600; }
.smd-height-range .smd-height-label:nth-of-type(1) { grid-column: 1 / 3; }
.smd-height-range .smd-height-label:nth-of-type(2) { grid-column: 3 / 5; }
.smd-search-page .select2-container { width: 100% !important; max-width: 100%; }
.smd-search-page .card,
.smd-search-card { min-width: 0; max-width: 100%; }
.smd-search-alert {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #9b2c2c;
    font-size: 14px;
    line-height: 1.4;
}
.smd-search-submit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
}
.smd-search-submit .btn { min-height: 44px; width: 100%; }

@media (min-width: 1024px) and (max-width: 1279px) {
    .dashboard-container .profile-card-actions { flex-wrap: wrap !important; }
    .dashboard-container .profile-card-actions .profile-action {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: calc(50% - 8px);
    }
}
@media (min-width: 1024px) {
    .nav-container-saagai,
    .dashboard-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .dashboard-container .profiles-scroll-container,
    .dashboard-container .tab-navigation {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .dashboard-container .profiles-scroll-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Do not stretch leftover cards across the row — keep fixed column width. */

/* Toasts sit above every overlay. Top-right on desktop, top-centre on phones. */
.smd-toasts {
    position: fixed;
    z-index: 300000;
    top: 16px;
    right: 16px;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.smd-toast {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 12px 8px 12px 18px;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
}
.smd-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #a84242;
}
.smd-toast-success::before { background: #166534; }
.smd-toast-error::before { background: #9b2c2c; }
.smd-toast-info::before { background: #a84242; }
.smd-toast-text {
    flex: 1 1 auto;
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.4;
    color: #111827;
}
.smd-toast-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.smd-toast.is-leaving { opacity: 0; }
@media (max-width: 767px) {
    .smd-toasts {
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        align-items: center;
    }
    .smd-toast {
        align-items: center;
    }
}

/* ------------------------------------------------------------------ */
/* REV22 (1 Nov 2026, per Satish): dashboard/search card actions back */
/* to ONE row of 4 (Like / Shortlist / Rose / Reject) at every width. */
/* Overrides the 2x2 wrap rules above (container + 480px + 1024-1279). */
/* ------------------------------------------------------------------ */
.profile-card-vertical .profile-card-actions,
.dashboard-container .profile-card-vertical .profile-card-actions {
    flex-wrap: nowrap !important;
    gap: 6px !important;
}
.profile-card-vertical .profile-card-actions .profile-action,
.dashboard-container .profile-card-vertical .profile-card-actions .profile-action {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    justify-content: center;
    padding: 0 6px !important;
    font-size: 12px !important;
    gap: 4px !important;
    overflow: hidden;
}
.profile-card-vertical .profile-card-actions .profile-action span { overflow: hidden; text-overflow: ellipsis; }
/* Narrow cards / phones: icon on top, label below, still 4 across */
@container smdcard (max-width: 400px) {
    .profile-card-vertical .profile-card-actions .profile-action,
    .dashboard-container .profile-card-vertical .profile-card-actions .profile-action {
        flex-direction: column !important;
        min-height: 50px !important;
        padding: 4px 2px !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        gap: 3px !important;
    }
}

/* Member search results: one column on phones, two equal columns on desktop. */
.smd-search-results {
    width: 100%;
    margin: 0 auto 32px;
    box-sizing: border-box;
}
.smd-search-results > .smd-crumbs {
    max-width: none;
    margin: 0 0 8px;
    padding: 0 0 4px;
}
.smd-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.smd-results-head h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #1f2937;
}
.smd-results-head p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}
.smd-results-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #f3c1c1;
    background: #fff;
    color: #A12A2A;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.smd-results-edit:hover { background: #fff5f5; }
.smd-result-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.smd-result-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff5f5;
    border: 1px solid #f6d5d5;
    color: #7f1d1d;
    font-size: 13px;
    font-weight: 600;
}
.smd-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
.smd-result {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #f3d6d6;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(127, 29, 29, 0.04);
}
.smd-result-photo {
    position: relative;
    display: block;
    width: 92px;
    height: 118px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(165deg, #fde8e8, #f8c5c5);
    text-decoration: none;
}
.smd-result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}
.smd-result-photo img.is-gated {
    filter: blur(16px) saturate(0.7) brightness(0.85);
    transform: scale(1.18);
    pointer-events: none;
    user-select: none;
}
.smd-result-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.35rem;
    font-weight: 700;
    color: #A12A2A;
}
.smd-result-fallback { display: none; position: absolute; inset: 0; }
.smd-result-photo.is-fallback .smd-result-fallback { display: flex; }
.smd-result-lock {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    padding: 6px 6px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.smd-result-photo .smd-tier-chip,
.smd-result-photo .smd-result-tier {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    margin: 0;
}
.smd-result-body { min-width: 0; position: relative; }
.smd-result-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.smd-result-title { min-width: 0; flex: 1; }
.smd-result-title a {
    display: block;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.smd-result-title a span { font-weight: 600; color: #4b5563; }
.smd-result-id {
    margin: 2px 0 0;
    color: #B83B3B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.smd-result-more {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}
.smd-result-more:hover { background: #f3f4f6; }
.smd-result-more svg { width: 18px; height: 18px; }
.smd-result-menu {
    position: absolute;
    top: 36px;
    right: 0;
    z-index: 5;
    min-width: 140px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}
.smd-result-menu button {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
}
.smd-result-menu button:hover { background: #f9fafb; }
.smd-result-menu button.is-danger { color: #b91c1c; }
.smd-result-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    margin: 8px 0 0;
}
.smd-result-facts div { min-width: 0; }
.smd-result-facts dt {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}
.smd-result-facts dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.smd-result-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}
.smd-result-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    min-width: 0;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
}
.smd-result-act svg { width: 16px; height: 16px; }
.smd-result-act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.smd-result-act-like { background: #fde8e8; color: #A12A2A; }
.smd-result-act-save { background: #fff7ed; color: #9a3412; }
.smd-result-act-save.is-on,
.smd-result-act-like.is-on,
.smd-result-act-rose.is-on { background: #B83B3B; color: #fff; }
.smd-result-act-rose { background: #B83B3B; color: #fff; }
.smd-result-act-pass { background: #f3f4f6; color: #4b5563; }
.smd-results-empty {
    padding: 32px 16px;
    text-align: center;
    background: #fff;
    border: 1px solid #f3d6d6;
    border-radius: 16px;
}
.smd-results-empty h2 { margin: 0 0 8px; font-size: 1.15rem; color: #1f2937; }
.smd-results-empty p { margin: 0 0 16px; color: #6b7280; }
.smd-search-pager { margin-top: 16px; }
.smd-search-pager nav > div,
.smd-search-pager .flex {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
}
.smd-search-pager a,
.smd-search-pager span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 389px) {
    .smd-result { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .smd-result-photo { width: 76px; height: 100px; }
    .smd-results-head { flex-direction: column; }
    .smd-results-edit { width: 100%; }
}
@media (min-width: 900px) {
    .smd-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .smd-result { grid-template-columns: 112px minmax(0, 1fr); padding: 14px; }
    .smd-result-photo { width: 112px; height: 144px; }
    .smd-result-act { flex-direction: row; gap: 6px; min-height: 44px; font-size: 13px; padding: 0 8px; }
    .smd-results-head h1 { font-size: 1.75rem; }
}
