:root {
    color-scheme: light;
    --page: #fff;
    --surface: #fff;
    --ink: #131313;
    --muted: #737373;
    --soft: #f5f5f5;
    --line: #eeeeee;
    --brand: #ff7800;
    --brand-dark: #c75300;
    --brand-soft: #fff1e3;
    --radius: 24px;
    --radius-sm: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    min-height: 100%;
    background: var(--page);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    background: var(--page);
}

body.is-share-open,
body.is-composer-open,
body.is-menu-open,
body.is-confirm-open,
body.is-avatar-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }

svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes spotlightFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.spotlight-page {
    min-height: 100vh;
    background: var(--page);
}

.spotlight-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    min-height: calc(64px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(238, 238, 238, .86);
    backdrop-filter: blur(18px);
}

.spotlight-brand {
    display: grid;
    place-items: center;
    min-height: 52px;
}

.spotlight-brand img {
    width: 140px;
    max-width: 48vw;
    height: auto;
}

.spotlight-layout {
    position: relative;
    z-index: 2;
    width: min(100%, 682px);
    margin: 0 auto;
    padding: 18px 14px 58px;
}

.spotlight-desktop-nav,
.spotlight-desktop-rail {
    display: none;
}

.spotlight-center,
.spotlight-feed {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.spotlight-view {
    display: none;
}

.spotlight-view.is-active {
    display: grid;
    gap: 14px;
}

.post-close {
    position: sticky;
    top: calc(76px + env(safe-area-inset-top));
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(16px);
    transition: transform .18s ease, background .18s ease;
}

.spotlight-profile,
.spotlight-post,
.spotlight-store-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    animation: spotlightFadeUp .26s ease both;
}

.spotlight-profile {
    display: grid;
}

.profile-main {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px 18px 12px;
}

.profile-avatar,
.store-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    font-size: 26px;
}

.profile-avatar-wrap {
    position: relative;
    display: block;
    width: 74px;
    height: 74px;
}

.profile-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    line-height: 0;
}

.profile-avatar-edit svg {
    display: block;
    width: 13px;
    height: 13px;
    margin: 0;
}

.profile-copy h1 {
    margin: 0 0 2px;
    overflow-wrap: anywhere;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 900;
}

.profile-copy span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.profile-actions,
.suggested-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 9px;
    padding: 0 18px 18px;
}

.composer-prompt {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 0 18px 18px;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 8px 14px 8px 9px;
    color: #737373;
    text-align: left;
    font-size: 15px;
    font-weight: 650;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.composer-prompt:hover {
    border-color: rgba(255, 120, 0, .22);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.composer-prompt:active {
    transform: scale(.985);
}

.composer-prompt-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-actions a,
.profile-actions button,
.suggested-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.profile-actions a {
    background: var(--ink);
    color: #fff;
}

.post-store {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 16px 16px 10px;
}

.spotlight-post.has-post-menu .post-store,
.post-store:has(.post-menu:not([hidden])) {
    grid-template-columns: 46px minmax(0, 1fr) 38px;
}

.post-menu {
    position: relative;
    justify-self: end;
    align-self: start;
}

.post-menu-trigger {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
}

.post-menu-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 10;
    display: grid;
    min-width: 128px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.post-menu-popover button {
    min-height: 40px;
    padding: 0 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
}

.post-menu-popover button:hover {
    background: var(--soft);
}

.post-menu-popover [data-delete-post] {
    color: #b42318;
}

.store-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 17px;
}

.store-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 24px;
}

.store-copy { min-width: 0; }

.store-name,
.store-username,
.store-copy p {
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-name {
    display: block;
    white-space: nowrap;
    font-size: 14.5px;
    font-weight: 900;
}

.store-username {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
}

.post-badge {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.post-copy {
    padding: 0 16px 13px;
}

.spotlight-post.is-text-only-post .post-copy {
    padding-bottom: 8px;
}

.spotlight-post.is-text-only-post .post-copy p {
    display: block;
    -webkit-line-clamp: unset;
}

.post-title-link { display: block; }

.post-copy h2 {
    margin: 0 0 6px;
    font-size: 16.5px;
    line-height: 1.28;
    font-weight: 900;
}

.post-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 5px;
    color: var(--brand-dark);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 950;
}

.post-price:empty {
    display: none;
}

.post-price del {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.post-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #292929;
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-copy.is-expanded p { display: block; }

.description-toggle {
    display: none;
    min-height: 30px;
    margin-top: 2px;
    padding: 0;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 850;
}

.description-toggle.is-visible {
    display: inline-flex;
    align-items: center;
}

.media-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 120, 0, .1), rgba(255, 120, 0, .03) 34%, rgba(0, 0, 0, .035)),
        #fafafa;
}

.media-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.media-track::-webkit-scrollbar { display: none; }

.media-slide {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 100%;
    width: 100%;
    min-height: 260px;
    padding: 0;
    scroll-snap-align: center;
    background:
        linear-gradient(135deg, rgba(255, 120, 0, .1), rgba(255, 120, 0, .03) 34%, rgba(0, 0, 0, .035)),
        #fafafa;
}

.media-slide img,
.media-slide iframe,
.media-slide video {
    display: block;
    width: 100%;
    max-height: 790px;
    border: 0;
}

.media-slide img {
    height: auto;
    object-fit: contain;
}

.media-slide iframe,
.media-slide video {
    aspect-ratio: 16 / 9;
    height: auto;
}

.media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 360px;
    background:
        radial-gradient(circle at center, rgba(255, 120, 0, .23), transparent 30%),
        linear-gradient(135deg, #fff7ee, #f7f7f7);
    color: var(--brand-dark);
    font-size: 48px;
    font-weight: 900;
}

.media-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.media-dot {
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: rgba(0, 0, 0, .24);
    transition: width .18s ease, background .18s ease;
}

.media-dot.is-active {
    width: 19px;
    background: var(--ink);
}

.media-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    transform: translateY(-50%);
    transition: transform .18s ease, background .18s ease;
}

.media-nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.media-prev { left: 14px; }
.media-next { right: 14px; }
.has-multiple-media .media-nav { display: grid; }

.post-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    padding: 12px 16px 16px;
    background: #fff;
}

.post-actions.has-hidden-view {
    grid-template-columns: repeat(2, 1fr);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 46px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.action-btn:hover,
.profile-actions button:hover,
.suggested-actions a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.action-btn:active { transform: scale(.97); }

.spotlight-store-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(255, 120, 0, .1), transparent 44%),
        #fff;
}

.suggested-label {
    display: block;
    width: max-content;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.suggested-store-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.profile-list {
    display: grid;
    gap: 10px;
}

.profile-list-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px;
}

.profile-list-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.profile-list-main strong,
.profile-list-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-list-main strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}

.profile-list-main small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.profile-list-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.profile-list-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.profile-list-actions a:first-child {
    background: var(--ink);
    color: #fff;
}

.store-copy p {
    display: -webkit-box;
    margin: 7px 0 0;
    color: #393939;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.suggested-actions {
    padding: 0;
}

.spotlight-sentinel { height: 1px; }

.view-head {
    padding: 8px 4px 0;
}

.view-head h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;
}

.view-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.category-list,
.search-results {
    display: grid;
    gap: 10px;
}

.category-card,
.search-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.category-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: center;
    padding: 18px;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.category-card:hover {
    border-color: rgba(255, 120, 0, .24);
    background: var(--brand-soft);
    transform: translateY(-2px);
}

.category-card h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
}

.category-card > svg {
    justify-self: end;
    color: var(--muted);
}

.search-box {
    position: sticky;
    top: calc(76px + env(safe-area-inset-top));
    z-index: 24;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 0 15px;
    min-height: 54px;
    backdrop-filter: blur(18px);
    transform: translateY(0);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
    will-change: transform;
}

.search-box.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 18px));
}

.search-box svg {
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 750;
}

.search-box input::placeholder {
    color: #9a9a9a;
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px 2px;
}

.search-suggestions span {
    flex: 0 0 100%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.search-suggestions button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 13px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    transition: transform .16s ease, background .16s ease;
}

.search-suggestions button:active {
    transform: scale(.96);
}

.composer-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: end center;
    padding: 16px 12px 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
}

.composer-modal:not(.is-open) {
    display: none;
}

.composer-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .2s ease;
}

.composer-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, .38);
    opacity: 0;
    transition: opacity .2s ease;
}

.composer-modal.is-open .composer-backdrop {
    opacity: 1;
}

.composer-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: min(88vh, 720px);
    overflow: auto;
    border-radius: 30px 30px 0 0;
    background: #fff;
    padding: 14px;
    transform: translateY(110%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.composer-modal.is-open .composer-dialog {
    transform: translateY(0);
}

.composer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.composer-head span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.composer-head h2 {
    margin: 2px 0 0;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 900;
}

.composer-head button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft);
}

.spotlight-composer,
.composer-grid {
    display: grid;
    gap: 10px;
}

.composer-body {
    display: grid;
    gap: 7px;
}

.composer-body span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.spotlight-composer textarea,
.spotlight-composer input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    padding: 12px;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.spotlight-composer textarea {
    min-height: 150px;
    resize: vertical;
}

.composer-upload {
    display: grid;
    cursor: pointer;
}

.composer-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.composer-upload span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border: 1px dashed rgba(17, 17, 17, .18);
    border-radius: 20px;
    background: var(--soft);
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
    transition: background .16s ease, transform .16s ease;
}

.composer-upload:active span {
    transform: scale(.985);
}

.composer-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}

.composer-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
}

.composer-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.composer-preview button {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(17, 17, 17, .76);
    color: #fff;
    backdrop-filter: blur(10px);
}

.composer-limit-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
}

.spotlight-composer button[type="submit"] {
    min-height: 48px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.search-box button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    transition: transform .16s ease, background .16s ease;
}

.search-box button:active {
    transform: scale(.96);
}

.refresh-feed {
    position: fixed;
    right: max(16px, calc((100vw - 682px) / 2 + 16px));
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 35;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(.94);
    transition: opacity .22s ease, transform .22s ease;
}

.refresh-feed.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.spotlight-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: min(94vw, 460px);
    padding: 8px;
    border: 1px solid rgba(238, 238, 238, .94);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.spotlight-bottom-nav a,
.spotlight-bottom-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}

.spotlight-bottom-nav a.is-active {
    background: var(--ink);
    color: #fff;
}

.spotlight-bottom-nav a:active,
.spotlight-bottom-nav button:active {
    transform: scale(.96);
}

.spotlight-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    justify-items: end;
    pointer-events: none;
}

.spotlight-menu.is-open {
    pointer-events: auto;
}

.spotlight-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .34);
    opacity: 0;
    backdrop-filter: blur(0);
    transition: opacity .2s ease, backdrop-filter .2s ease;
}

.spotlight-menu.is-open .spotlight-menu-backdrop {
    opacity: 1;
    backdrop-filter: blur(8px);
}

.spotlight-menu-panel {
    position: relative;
    z-index: 1;
    width: min(80vw, 380px);
    height: 100%;
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    border-left: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    transform: translateX(104%);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.spotlight-menu.is-open .spotlight-menu-panel {
    transform: translateX(0);
}

.spotlight-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.spotlight-menu-head img {
    width: 132px;
    height: auto;
}

.spotlight-menu-head button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft);
}

.spotlight-menu-list {
    display: grid;
    gap: 8px;
}

.spotlight-menu-list a,
.spotlight-menu-list button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    border-radius: 18px;
    background: #fff;
    padding: 0 13px 0 6px;
    color: var(--ink);
    text-align: left;
    font-size: 14px;
    font-weight: 850;
    transition: background .16s ease, transform .16s ease;
}

.spotlight-menu-list a:hover,
.spotlight-menu-list button:hover {
    background: var(--brand-soft);
}

.spotlight-menu-list a:active,
.spotlight-menu-list button:active {
    transform: scale(.985);
}

.spotlight-menu-list svg {
    justify-self: center;
    color: var(--muted);
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 18px;
    pointer-events: none;
}

.confirm-modal.is-open {
    pointer-events: auto;
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .34);
    opacity: 0;
    backdrop-filter: blur(0);
    transition: opacity .18s ease, backdrop-filter .18s ease;
}

.confirm-modal.is-open .confirm-backdrop {
    opacity: 1;
    backdrop-filter: blur(5px);
}

.confirm-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: min(92vw, 360px);
    border-radius: 24px;
    background: #fff;
    padding: 20px;
    opacity: 0;
    transform: translateY(12px) scale(.96);
    transition: opacity .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}

.confirm-modal.is-open .confirm-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.confirm-dialog p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 750;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.confirm-actions button {
    min-height: 44px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.confirm-actions [data-confirm-ok] {
    background: #b42318;
    color: #fff;
}

.avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 18px;
    pointer-events: none;
}

.avatar-modal.is-open {
    pointer-events: auto;
}

.avatar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .36);
    opacity: 0;
    backdrop-filter: blur(0);
    transition: opacity .18s ease, backdrop-filter .18s ease;
}

.avatar-modal.is-open .avatar-backdrop {
    opacity: 1;
    backdrop-filter: blur(5px);
}

.avatar-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(92vw, 390px);
    border-radius: 28px;
    background: #fff;
    padding: 16px;
    opacity: 0;
    transform: translateY(14px) scale(.96);
    transition: opacity .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}

.avatar-modal.is-open .avatar-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.avatar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.avatar-head span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.avatar-head h2 {
    margin: 2px 0 0;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.avatar-head button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft);
}

.avatar-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.avatar-cropper {
    position: relative;
    overflow: hidden;
    width: min(100%, 300px);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 22px;
    background: var(--soft);
    touch-action: none;
}

.avatar-cropper::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: inherit;
    pointer-events: none;
}

.avatar-cropper img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    user-select: none;
    transform-origin: center;
    cursor: grab;
}

.avatar-zoom {
    display: grid;
    gap: 8px;
}

.avatar-zoom span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.avatar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.avatar-actions button {
    min-height: 44px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.avatar-actions [data-save-avatar] {
    background: var(--ink);
    color: #fff;
}

.spotlight-empty,
.spotlight-error {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 24px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.spotlight-toast {
    position: fixed;
    left: 50%;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 120;
    min-width: 150px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 850;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .18s ease, transform .18s ease;
}

.spotlight-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.share-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    align-items: end;
    pointer-events: none;
}

.share-sheet.is-open {
    pointer-events: auto;
}

.share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    opacity: 0;
    transition: opacity .2s ease;
}

.share-sheet.is-open .share-backdrop {
    opacity: 1;
}

.share-panel {
    position: relative;
    width: min(100%, 620px);
    margin: 0 auto;
    border-radius: 30px 30px 0 0;
    background: #fff;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}

.share-sheet.is-open .share-panel {
    transform: translateY(0);
}

.share-grabber {
    width: 42px;
    height: 5px;
    margin: 2px auto 11px;
    border-radius: 999px;
    background: #dedede;
}

.share-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.share-head span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.share-head h2 {
    display: -webkit-box;
    margin: 3px 0 0;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.22;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.share-head button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.share-options a,
.share-options button {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-height: 66px;
    padding: 7px 6px 6px;
    border: 0;
    border-radius: 17px;
    background: var(--soft);
    color: var(--ink);
    text-align: center;
    transition: transform .16s ease, background .16s ease;
}

.share-options a:hover,
.share-options button:hover {
    background: var(--brand-soft);
    transform: translateY(-2px);
}

.share-options .share-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.share-options .share-icon svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
}

.share-options a strong,
.share-options button strong {
    font-size: 11px;
    font-weight: 820;
    line-height: 1.1;
}

.share-icon-whatsapp {
    color: #25d366;
}

.share-icon-facebook {
    color: #1877f2;
}

.share-icon-x {
    color: #111;
}

.share-icon-telegram {
    color: #229ed9;
}

.share-icon-linkedin {
    color: #0a66c2;
}

.share-icon-email,
.share-icon-copy {
    color: #202020;
}

@media (min-width: 1100px) {
    .composer-modal {
        place-items: center;
        padding: 24px;
    }

    .composer-dialog {
        border-radius: 30px;
        transform: translateY(24px) scale(.98);
    }

    .composer-modal.is-open .composer-dialog {
        transform: translateY(0) scale(1);
    }

    .spotlight-layout {
        display: grid;
        grid-template-columns: 252px minmax(0, 620px) minmax(300px, 380px);
        align-items: start;
        gap: 24px;
        width: min(100%, 1320px);
        max-width: 1320px;
        margin: 0 auto;
        padding-left: 18px;
        padding-right: 18px;
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .spotlight-center {
        width: 100%;
    }

    .spotlight-desktop-nav,
    .spotlight-desktop-rail {
        position: sticky;
        top: 88px;
        display: grid;
        gap: 14px;
        align-self: start;
        max-height: calc(100vh - 104px);
        overflow-y: auto;
        scrollbar-width: none;
    }

    .spotlight-desktop-nav::-webkit-scrollbar,
    .spotlight-desktop-rail::-webkit-scrollbar {
        display: none;
    }

    .spotlight-desktop-nav nav,
    .rail-card {
        border: 1px solid var(--line);
        border-radius: 24px;
        background: #fff;
        padding: 12px;
    }

    .spotlight-desktop-nav nav {
        display: grid;
        gap: 5px;
    }

    .spotlight-desktop-nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 46px;
        padding: 0 12px;
        border-radius: 16px;
        color: #292929;
        font-size: 14px;
        font-weight: 820;
        transition: background .16s ease, color .16s ease, transform .16s ease;
    }

    .spotlight-desktop-nav a:hover,
    .spotlight-desktop-nav a.is-active {
        background: var(--brand-soft);
        color: var(--brand-dark);
    }

    .spotlight-desktop-nav a:hover {
        transform: translateX(2px);
    }

    .rail-card {
        padding: 14px;
    }

    .rail-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .rail-head h2 {
        margin: 0;
        font-size: 15px;
        line-height: 1.2;
        font-weight: 900;
    }

    .rail-store-grid {
        display: grid;
        gap: 10px;
    }

    .rail-store-card {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
        min-width: 0;
        padding: 10px;
        border-radius: 18px;
        background: #fafafa;
        transition: background .16s ease, transform .16s ease;
    }

    .rail-store-card:hover {
        background: var(--brand-soft);
        transform: translateY(-1px);
    }

    .rail-store-avatar,
    .rail-activity-avatar {
        display: grid;
        place-items: center;
        overflow: hidden;
        background: linear-gradient(135deg, var(--brand), var(--brand-dark));
        background-size: cover;
        background-position: center;
        color: #fff;
        font-weight: 900;
        text-transform: uppercase;
    }

    .rail-store-avatar {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        font-size: 20px;
    }

    .rail-store-copy {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .rail-store-copy strong,
    .rail-store-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rail-store-copy strong {
        display: block;
        white-space: nowrap;
        color: var(--ink);
        font-size: 13.5px;
        line-height: 1.14;
        font-weight: 900;
    }

    .rail-store-copy small {
        display: block;
        white-space: nowrap;
        color: var(--muted);
        font-size: 11.5px;
        line-height: 1.15;
        font-weight: 720;
    }

    .rail-activity-list {
        display: grid;
        gap: 10px;
    }

    .rail-activity-item {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
        align-items: center;
        min-width: 0;
        border-radius: 16px;
        padding: 6px;
        transition: background .16s ease, transform .16s ease;
    }

    .rail-activity-item:hover {
        background: var(--brand-soft);
        transform: translateY(-1px);
    }

    .rail-activity-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 14px;
    }

    .rail-activity-item strong,
    .rail-activity-item small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rail-activity-item strong {
        color: var(--ink);
        font-size: 12.5px;
        line-height: 1.18;
        font-weight: 820;
    }

    .rail-activity-item small {
        margin-top: 2px;
        color: var(--muted);
        font-size: 11.5px;
        font-weight: 650;
    }

    .rail-load-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 38px;
        margin-top: 12px;
        border-radius: 999px;
        background: var(--soft);
        color: var(--ink);
        font-size: 12.5px;
        font-weight: 850;
        transition: background .16s ease, color .16s ease;
    }

    .rail-load-more:hover {
        background: var(--brand-soft);
        color: var(--brand-dark);
    }

    .rail-load-more[disabled] {
        cursor: default;
        opacity: .58;
    }

    .rail-empty {
        margin: 0;
        color: var(--muted);
        font-size: 12.5px;
        line-height: 1.4;
        font-weight: 650;
    }

    .spotlight-post,
    .spotlight-profile,
    .spotlight-store-card {
        border-radius: 30px;
    }

    .spotlight-bottom-nav {
        display: none;
    }
}

@media (max-width: 700px) {
    .spotlight-topbar {
        min-height: calc(58px + env(safe-area-inset-top));
    }

    .spotlight-brand img {
        width: 118px;
    }

    .spotlight-layout {
        width: 100%;
        padding: 10px 0 112px;
    }

    .spotlight-center,
    .spotlight-feed {
        gap: 8px;
    }

    .post-close {
        top: calc(68px + env(safe-area-inset-top));
        margin-left: 10px;
    }

    .spotlight-profile,
    .spotlight-post,
    .spotlight-store-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .media-nav {
        display: none !important;
    }

    .post-actions {
        gap: 8px;
    }

    .action-btn {
        min-height: 48px;
        gap: 0;
    }

    .action-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .spotlight-bottom-nav {
        width: min(94vw, 360px);
    }

    .spotlight-bottom-nav a span,
    .spotlight-bottom-nav button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .search-box,
    .category-card,
    .view-head {
        margin-left: 10px;
        margin-right: 10px;
    }

    .search-suggestions,
    .spotlight-composer {
        margin-left: 10px;
        margin-right: 10px;
    }
}
