/* [c1] */

/* [c2] */
/* [c3] */
.st-history-card { position: relative; }
.st-history-link { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.st-history-link img { width: 100%; height: 100%; object-fit: cover; display: block; }

.st-heart {
    position: absolute; top: 4px; right: 4px;
    width: 42px; height: 42px;
    padding: 0; margin: 0;
    border: 0; background: none;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}
.st-heart svg {
    width: 24px; height: 24px;
    overflow: visible;
    /* [c4] */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
    transition: transform 160ms var(--st-ease);
}
.st-heart path {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linejoin: round;
    transition: fill 160ms var(--st-ease), stroke 160ms var(--st-ease);
}
.st-heart.is-on path { fill: var(--st-heart, #e0245e); stroke: var(--st-heart, #e0245e); }
.st-heart:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 50%; }
@media (hover: hover) {
    .st-heart:hover svg { transform: scale(1.12); }
}
.st-heart:active svg { transform: scale(0.88); }
/* [c5] */
.st-heart.is-pop svg { animation: st-heart-pop 460ms cubic-bezier(0.2, 0.9, 0.3, 1.35); }
.st-heart::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: 30px; height: 30px; margin: -15px 0 0 -15px;
    border-radius: 50%;
    border: 2px solid var(--st-heart, #e0245e);
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}
.st-heart.is-pop.is-on::after { animation: st-heart-ring 520ms ease-out; }
@keyframes st-heart-pop {
    0%   { transform: scale(1); }
    25%  { transform: scale(0.72); }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
@keyframes st-heart-ring {
    0%   { opacity: 0.85; transform: scale(0.4); }
    100% { opacity: 0;    transform: scale(1.7); }
}

/* [c6] */
.st-heart-lg { top: 6px; right: 6px; width: 50px; height: 50px; }
.st-heart-lg svg { width: 30px; height: 30px; }
.st-heart-lg::after { width: 38px; height: 38px; margin: -19px 0 0 -19px; }

/* [c7] */
/* [c8] */
#result-frame .st-expand { left: 10px; right: auto; }
#result-frame .st-beforebtn { left: 58px; right: auto; }

/* [c9] */
.st-like-hint {
    position: absolute; inset: 0;
    z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(10, 9, 8, 0.46);
    opacity: 0;
    transition: opacity 360ms var(--st-ease);
    pointer-events: none;
    text-align: center;
}
.st-like-hint.show { opacity: 1; }
.st-like-hint svg {
    width: 58px; height: 58px;
    color: var(--st-heart, #e0245e);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
    transform: scale(0);
}
.st-like-hint svg path { fill: currentColor; }
.st-like-hint.show svg { animation: st-like-beat 1500ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 120ms both; }
.st-like-hint p {
    margin: 0;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 320ms var(--st-ease) 260ms, transform 320ms var(--st-ease) 260ms;
}
.st-like-hint.show p { opacity: 1; transform: none; }
@keyframes st-like-beat {
    0%   { transform: scale(0);    opacity: 0; }
    22%  { transform: scale(1.18); opacity: 1; }
    36%  { transform: scale(0.94); }
    50%  { transform: scale(1.1); }
    64%  { transform: scale(1); }
    100% { transform: scale(1); opacity: 1; }
}

/* [c10] */
.st-like-burst {
    position: absolute; left: 50%; top: 50%;
    width: 96px; height: 96px; margin: -48px 0 0 -48px;
    z-index: 2;
    pointer-events: none;
    color: var(--st-heart, #e0245e);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    animation: st-like-burst 820ms cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
.st-like-burst path { fill: currentColor; }
.st-like-burst.is-off { color: #fff; }
.st-like-burst.is-off path { fill: none; stroke: currentColor; stroke-width: 1.8; }
@keyframes st-like-burst {
    0%   { transform: scale(0.2); opacity: 0; }
    18%  { transform: scale(1.15); opacity: 1; }
    32%  { transform: scale(0.95); opacity: 1; }
    70%  { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.25) translateY(-14px); opacity: 0; }
}

/* [c11] */
/* [c12] */
.st-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.st-products-grid .st-product-row { margin-bottom: 0; min-width: 0; }
.st-products-grid .st-products-empty { grid-column: 1 / -1; }

/* [c13] */
.st-history-left {
    position: absolute; left: 7px; bottom: 7px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(12, 11, 10, 0.62);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
}

/* [c14] */
.st-qe-sizes {
    display: flex; align-items: center; gap: 8px;
    padding: 0 0 16px;
}
.st-size-dot {
    width: 40px; height: 40px;
    padding: 0;
    border: 1.5px solid var(--st-border);
    border-radius: 50%;
    background: var(--st-surface);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color var(--st-dur-fast) var(--st-ease), background var(--st-dur-fast) var(--st-ease);
}
.st-size-dot span {
    display: block;
    border-radius: 50%;
    background: var(--st-text-soft);
    transition: background var(--st-dur-fast) var(--st-ease);
}
.st-size-dot[data-size="34"] span { width: 7px; height: 7px; }
.st-size-dot[data-size="70"] span { width: 13px; height: 13px; }
.st-size-dot[data-size="135"] span { width: 21px; height: 21px; }
.st-size-dot.active { border-color: var(--st-accent); background: var(--st-accent); }
.st-size-dot.active span { background: var(--st-accent-contrast); }

/* [c15] */
/* [c16] */
.st-size-pills { margin: 6px 0; flex-wrap: nowrap; }
.st-size-pills .st-pill { min-width: 0; min-height: 0; height: 48px; padding-top: 0; padding-bottom: 0; }

/* [c17] */
.st-referral-after { margin-top: 18px; }
.st-referral-after .st-btn { width: 100%; }

/* [c18] */
.st-designs {
    flex: 1;
    width: 100%;
    max-width: var(--st-maxw);
    margin: 0 auto;
    padding: clamp(18px, 4vh, 36px) clamp(16px, 4vw, 40px) 48px;
}
.st-designs-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px 20px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}
.st-designs-title {
    font-family: var(--st-font-heading);
    font-size: clamp(1.45rem, 3.4vw, 1.9rem);
    margin: 0;
}
.st-designs-seg { width: 260px; margin: 0; flex-wrap: nowrap; }
.st-designs-seg .st-pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.st-designs-seg .st-pill svg { width: 15px; height: 15px; }
.st-designs-seg .st-pill svg path { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linejoin: round; }
.st-designs-seg .st-pill.active svg path { fill: currentColor; }
.st-designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}
.st-designs-grid .st-history-card { animation: st-fade-up var(--st-dur-slow, 420ms) var(--st-ease) both; }
.st-designs-grid .st-history-card.is-leaving {
    transition: opacity 240ms var(--st-ease), transform 240ms var(--st-ease);
    opacity: 0; transform: scale(0.94);
}
/* [c19] */
.st-designs-month {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 12px;
    margin: 12px 0 -4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-text-soft);
}
.st-designs-month:first-child { margin-top: 0; }
.st-designs-month::after { content: ""; flex: 1; height: 1px; background: var(--st-border); }
.st-designs-sentinel { height: 1px; }
.st-designs-empty {
    max-width: 420px;
    margin: 0 auto;
    padding: clamp(40px, 10vh, 96px) 16px;
    text-align: center;
}
.st-designs-empty-ico {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--st-surface-2);
    color: var(--st-text-soft);
    display: flex; align-items: center; justify-content: center;
}
.st-designs-empty-ico svg { width: 28px; height: 28px; }
.st-designs-empty-ico svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-designs-empty h2 { font-family: var(--st-font-heading); font-size: 1.2rem; margin: 0 0 6px; }
.st-designs-empty p { color: var(--st-text-soft); margin: 0 0 22px; font-size: 0.95rem; }
.st-designs-error { color: var(--st-text-soft); text-align: center; padding: 40px 16px; }
@media (max-width: 600px) {
    .st-designs-head { margin-bottom: 18px; }
    .st-designs-seg { width: 100%; }
    .st-designs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .st-designs-grid .st-heart { top: 2px; right: 2px; }
}

/* [c21] */
.st-dialog-tall:has(#referral-done:not([hidden])) { height: auto; }
