.stake {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}

.pitch {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink);
    white-space: pre-wrap;
}

.pitch[hidden] {
    display: none;
}

.rule {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.45;
}

.meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.stamp {
    display: inline-flex;
    margin: 14px 0 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
}

.stamp[hidden] { display: none; }

.feed-browse[hidden],
.feed-viewer[hidden] {
    display: none !important;
}

body.is-feed-browse .feed-tabs {
    display: none !important;
}

body.is-feed-viewer .feed-browse {
    display: none !important;
}

body.is-feed-browse {
    overflow: hidden;
}

body.is-feed-browse .wrap {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: 12px;
    overflow: hidden;
}

body.is-feed-browse .feed-browse {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.feed-deck {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    gap: 10px;
}

.feed-deck[hidden] {
    display: none !important;
}

.feed-deck-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    touch-action: none;
    user-select: none;
}

.feed-deck-back {
    position: absolute;
    inset: 14px 12px 0;
    border-radius: 22px;
    background: #ececea;
}

.feed-deck-back[hidden] {
    display: none;
}

.feed-deck-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #141413;
    color: #fff;
}

.feed-deck-cover {
    position: absolute;
    inset: 0;
}

.feed-deck-cover.is-empty {
    background:
        linear-gradient(160deg, #2a2a28, #141413 70%);
}

.feed-deck-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.feed-deck-picked {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: #c4273a;
    font-size: 12px;
    font-weight: 700;
}

.feed-deck-play {
    position: absolute;
    left: 50%;
    top: 42%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0;
    padding: 0 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 20, 19, 0.72);
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.feed-deck-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: grid;
    gap: 4px;
    padding: 56px 16px 16px;
    background: linear-gradient(transparent, rgba(10, 10, 9, 0.88) 42%);
}

.feed-deck-count,
.feed-deck-who,
.feed-deck-meta {
    margin: 0;
}

.feed-deck-count,
.feed-deck-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.feed-deck-who {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

.feed-deck-who img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-deck-who span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.feed-deck-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.feed-deck-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.feed-deck-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.feed-deck-next,
.feed-deck-open,
.feed-deck-like {
    margin: 0;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.feed-deck-next,
.feed-deck-like {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.feed-deck-open {
    height: 52px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.feed-deck-like.is-on {
    border-color: #c4273a;
    background: #c4273a;
    color: #fff;
}

@media (max-width: 720px) {
    body.is-feed-browse .feed-deck-stage {
        margin-right: calc(-1 * var(--pad-x));
        margin-left: calc(-1 * var(--pad-x));
    }

    body.is-feed-browse .feed-deck-card,
    body.is-feed-browse .feed-deck-back {
        border-radius: 0;
    }

    body.is-feed-browse .feed-deck-back {
        inset: 8px 0 0;
    }
}

/* Catalog grid — YouTube / Airbnb style: equal thumbs, text under */
.feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.feed-item {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.feed-item:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.feed-item__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f3f3f2;
}

.feed-item__thumb.is-empty {
    background: #ececec;
}

.feed-item__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-item__info {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0 1px;
}

.feed-item__who {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.feed-item__avatar {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.feed-item__author {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.feed-item__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.feed-item__meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.feed-item__phase {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 16px);
    padding: 5px 10px 5px 7px;
    border-radius: 999px;
    background: rgba(20, 20, 19, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.feed-item__phase-icon {
    flex: none;
    width: 14px;
    height: 14px;
    color: #fff;
}

.feed-item__phase-icon.feed-tab-glyph {
    display: grid;
    width: 14px;
    height: 13px;
    place-items: center;
}

.feed-item__phase-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.feed-item__phase--active {
    background: rgba(20, 20, 19, 0.78);
}

.feed-item__phase--active .feed-item__phase-icon {
    color: #8fd44a;
}

.feed-item__phase--judging {
    background: rgba(92, 62, 8, 0.88);
}

.feed-item__phase--completed {
    background: rgba(28, 68, 36, 0.88);
}

.feed-item__phase--scheduled {
    background: rgba(32, 48, 72, 0.88);
}

.feed-item__phase--draft {
    background: rgba(60, 60, 58, 0.88);
}

.feed-phase-glyph--live {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
}

.feed-phase-glyph--live::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.feed-phase-glyph--done {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
}

.feed-phase-glyph--done::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}

.feed-phase-glyph--done::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 8px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(-45deg);
}

.feed-phase-glyph--soon {
    display: block;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) 2px 3px / 10px 9px no-repeat,
        linear-gradient(currentColor, currentColor) 2px 1px / 10px 2px no-repeat,
        linear-gradient(#fff, #fff) 4px 5px / 2px 2px no-repeat,
        linear-gradient(#fff, #fff) 7px 5px / 2px 2px no-repeat;
    opacity: 0.95;
}

.feed-phase-glyph--draft {
    display: block;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) 3px 2px / 8px 10px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)) 5px 4px / 4px 1px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)) 5px 6px / 4px 1px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)) 5px 8px / 3px 1px no-repeat;
}

@media (max-width: 639px) {
    body.is-feed-browse .feed-grid {
        gap: 28px;
    }

    body.is-feed-browse .feed-item__thumb {
        width: calc(100% + (2 * var(--pad-x)));
        max-width: none;
        margin-left: calc(-1 * var(--pad-x));
        margin-right: calc(-1 * var(--pad-x));
    }
}

.feed-back-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    margin: -8px calc(-1 * var(--pad-x)) 12px;
    padding: 8px var(--pad-x);
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feed-back-bar .feed-goal-watch-wrap {
    margin-left: auto;
}

.feed-back-bar .feed-goal-watch {
    margin-top: 0;
}

.feed-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    margin: 0;
    padding: 0 12px 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.feed-back::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    translate: 2px 0;
}

.feed-back:hover {
    border-color: var(--ink);
}

@media (min-width: 640px) {
    .feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }
}

.media-shell {
    position: relative;
    margin-top: 14px;
    border-radius: 0;
    background: #141413;
    overflow: hidden;
}

.media-shell[hidden] {
    display: none;
}

/* Qwixer-style chrome on media */
.clip-avatar {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f3f3f3;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.clip-avatar[hidden] {
    display: none;
}

.clip-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clip-avatar img[hidden] {
    display: none;
}

.clip-avatar-fallback[hidden] {
    display: none;
}

.clip-title {
    position: absolute;
    top: 16px;
    left: 58px;
    right: 14px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    pointer-events: none;
}

.feed-under {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    min-height: 36px;
}

.feed-under-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

.frame-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
    flex: none;
}

.frame-views-icon {
    display: block;
    flex: none;
}

.frame-views-count {
    min-width: 1ch;
}

.feed-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
    touch-action: pan-y;
}

body.is-feed-viewer .feed-goal-head {
    margin: 0 0 16px;
}

body.is-feed-viewer .feed-goal-head[hidden] {
    display: none;
}

.feed-goal-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#feed-viewer > .feed-goal-head-row {
    position: sticky;
    top: var(--feed-back-h, 52px);
    z-index: 55;
    margin: 0 calc(-1 * var(--pad-x)) 12px;
    padding: 8px var(--pad-x) 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feed-goal-head-row .goal-journal-title {
    flex: 1;
    min-width: 0;
}

.feed-goal-head-actions {
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    gap: 8px;
}

.feed-goal-watch-wrap {
    position: relative;
}

.feed-goal-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: #9a9a96;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.feed-goal-watch-icon {
    display: block;
    width: 16px;
    height: 16px;
}

.feed-goal-watch-icon path {
    stroke-width: 2;
}

.feed-goal-watch-slash {
    display: none;
}

.feed-goal-watch.is-on {
    border-color: #141413;
    color: #141413;
}

.feed-goal-watch.is-quiet .feed-goal-watch-slash {
    display: block;
}

.feed-goal-watch-menu {
    position: absolute;
    z-index: 8;
    top: calc(100% + 6px);
    right: 0;
    min-width: 196px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 20, 19, 0.12);
}

.feed-goal-watch-menu[hidden] {
    display: none;
}

.feed-goal-watch-ask {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.feed-goal-watch-menu button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.feed-goal-watch-menu button + button {
    margin-top: 2px;
}

.feed-goal-watch-menu button:hover {
    background: #f6f6f4;
}

button.feed-goal-judge {
    flex-shrink: 0;
    margin-top: 2px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
    cursor: pointer;
}

button.feed-goal-judge.is-voted {
    color: var(--muted);
    border-color: #e8e8e8;
    background: #fafafa;
}

a.feed-goal-judge {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.feed-judge {
    padding: 0 0 48px;
}

.feed-judge-eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feed-subpage-head,
.feed-judge-head {
    margin-bottom: 24px;
}

.feed-subpage {
    padding: 0 0 48px;
}

.feed-subpage-panel {
    margin-top: 4px;
}

.feed-judge-turnout {
    height: 4px;
    margin: 10px 0 14px;
    border-radius: 999px;
    background: #efefef;
    overflow: hidden;
}

.feed-judge-turnout[hidden] {
    display: none;
}

.feed-judge-turnout-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ink);
    transition: width 0.35s ease;
}

.feed-judge-status {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.feed-judge-status[hidden] {
    display: none !important;
}

.feed-judge-status-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feed-judge-status-caption {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.feed-judge-status-tally {
    margin-top: 12px;
}

.feed-judge-status-tally[hidden] {
    display: none;
}

.feed-judge-status .feed-judge-meter {
    margin-top: 10px;
}

.feed-judge-status--timeline {
    margin: 0;
    touch-action: pan-y;
}

.feed-judge-pred {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.feed-judge-pred[hidden] {
    display: none !important;
}

.feed-judge-pred-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feed-judge-pred-lead,
.feed-judge-pred-total,
.feed-judge-pred-mine,
.feed-judge-pred-notify,
.feed-judge-pred-result,
.feed-judge-pred-login {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
}

.feed-judge-pred-lead,
.feed-judge-pred-total {
    color: var(--muted);
}

.feed-judge-pred-notify {
    color: var(--muted);
    font-size: 13px;
}

.feed-judge-pred-mine {
    font-weight: 600;
}

.feed-judge-pred-result {
    font-weight: 600;
}

.feed-judge-pred-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 10px;
}

.feed-judge-pred-actions[hidden] {
    display: none !important;
}

.feed-judge-pred-btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
}

.feed-judge-stats {
    margin-bottom: 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

.feed-judge-stats-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.feed-judge-stats-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.feed-judge-stats-head .feed-judge-stats-title {
    margin: 0;
    min-width: 0;
}

.feed-judge-deadline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    max-width: min(100%, 168px);
}

.feed-judge-deadline[hidden] {
    display: none;
}

.feed-judge-deadline-caption {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
    text-align: right;
}

.feed-judge-deadline-timer {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.feed-judge-deadline-timer.is-ended {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}

.feed-judge-voters {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.feed-judge-meter {
    display: flex;
    gap: 2px;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.feed-judge-meter.is-empty {
    background: #efefef;
}

.feed-judge-meter-pass {
    display: block;
    height: 100%;
    background: #5e9c1c;
    transition: width 0.45s ease;
}

.feed-judge-meter-fail {
    display: block;
    height: 100%;
    background: #d96666;
    transition: width 0.45s ease;
}

.feed-judge-shares {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.feed-judge-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.feed-judge-share .thumb {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    display: block;
    overflow: visible;
}

.feed-judge-share .thumb-down {
    transform: rotate(180deg);
}

.feed-judge-share .thumb-stem,
.feed-judge-share .thumb-hand {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.feed-judge-share--pass {
    color: #5e9c1c;
}

.feed-judge-share--fail {
    color: #c44e4e;
}

.feed-judge-counts {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.feed-judge-progress {
    margin: 20px 0 0;
    padding: 16px;
    border-radius: 12px;
    background: var(--surface-2, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}

.feed-judge-progress[hidden] {
    display: none !important;
}

.feed-judge-progress-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.feed-judge-progress-day {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.feed-judge-progress-meter {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.feed-judge-progress-meter-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #5a9e6f, #7bc492);
    transition: width 0.35s ease;
}

.feed-judge-progress-coverage {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.feed-judge-progress-stats {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.45;
}

.feed-judge-progress-stats li + li {
    margin-top: 4px;
}

.feed-judge-progress-overdue {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #5a9e6f;
}

.feed-judge-progress-overdue.is-warning {
    color: #d4a017;
}

.feed-judge-progress-missed-dates {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.feed-judge-vote {
    margin-top: 20px;
}

.feed-judge-vote-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.feed-judge-mine {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.feed-judge-panel .feed-judge-rule {
    margin: 0 0 16px;
}

.feed-timeline[hidden] {
    display: none;
}

.timeline-post .media-shell {
    margin-top: 0;
}

.timeline-post .clip-title {
    font-size: 15px;
}

.timeline-post .frame-kind {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.card .frame-media video,
.card .frame-media > img,
.timeline-post .frame-media video,
.timeline-post .frame-media > img {
    display: block;
    width: 100%;
    max-height: min(72vh, 560px);
    margin-top: 0;
    border-radius: 0;
    background: #141413;
    object-fit: contain;
}

.card .frame-media > img,
.timeline-post .frame-media > img {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    object-fit: cover;
    background: #141413;
}

/* Photo report collage */
.photo-matrix {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 220px;
    max-height: 420px;
    border-radius: 0;
    background: #141413;
    overflow: hidden;
}

.photo-matrix,
.photo-matrix__cell,
.photo-matrix__cell img {
    border-radius: 0;
}

.photo-matrix__cell {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #1c1c1b;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.photo-matrix__cell:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.frame-media > img.is-photo-open {
    cursor: pointer;
}

.photo-matrix__cell img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.photo-matrix__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(20, 20, 19, 0.52);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.photo-matrix--1 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 360px);
}

.photo-matrix--2 {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: minmax(220px, 320px);
}

.photo-matrix--3 {
    grid-template-columns: 1.35fr 0.85fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 4 / 3;
    max-height: 380px;
}

.photo-matrix--3 .photo-matrix__cell:first-child {
    grid-row: 1 / span 2;
}

.photo-matrix--3 .photo-matrix__cell:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.photo-matrix--3 .photo-matrix__cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.photo-matrix--3 .photo-matrix__cell:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.photo-matrix--4 {
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: 1.15fr 0.85fr 0.85fr;
    aspect-ratio: 1 / 1;
    max-height: 420px;
}

.photo-matrix--4 .photo-matrix__cell:first-child {
    grid-row: 1 / span 3;
}

.photo-matrix--4 .photo-matrix__cell:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.photo-matrix--4 .photo-matrix__cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.photo-matrix--4 .photo-matrix__cell:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.photo-matrix--4 .photo-matrix__cell:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
}

.card .frame-media:empty,
.timeline-post .frame-media:empty {
    display: none;
}

.card .clip-wrap,
.timeline-post .clip-wrap {
    position: relative;
    cursor: pointer;
    width: 100%;
    margin-top: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: min(72vh, 560px);
    border-radius: 0;
    background: #141413;
    overflow: hidden;
}

.card .clip-wrap img,
.timeline-post .clip-wrap img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    background: #141413;
}

.timeline-post .clip-launch {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(20, 20, 19, 0.88);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Qwixer-style votes under media, right-aligned for thumb reach */
.feed-engage.votes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    min-height: 36px;
    flex-shrink: 0;
}

button.vote {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

button.vote:disabled {
    opacity: 0.45;
    cursor: default;
}

.vote svg {
    display: block;
    overflow: visible;
}

.vote .thumb-down {
    transform: rotate(180deg);
}

.vote .thumb-stem,
.vote .thumb-hand {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* Same path geometry as outline — fill hand, keep a light sleeve stripe on top. */
.vote.is-on .thumb-hand {
    fill: currentColor;
}

.vote.is-on .thumb-stem {
    stroke: #fff;
    stroke-width: 1;
}

.vote.is-pop .thumb-up,
.vote.is-pop .thumb-down {
    transform-box: fill-box;
    transform-origin: center;
}

.vote.vote-comments .comment-bubble {
    display: block;
}

.vote.vote-share .share-icon {
    display: block;
}

.vote-count:empty {
    display: none;
}

.feed-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    max-width: min(90vw, 360px);
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(26, 25, 23, 0.92);
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

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

body.goal-video-modal-open .feed-toast,
body.goal-photo-modal-open .feed-toast {
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.vote.is-pop .thumb-up {
    animation: vote-pop-up 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.vote.is-pop .thumb-down {
    animation: vote-pop-down 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.vote.is-pop::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        8px -9px 0 -1px currentColor,
        -9px -6px 0 -1px currentColor,
        10px 6px 0 -1px currentColor,
        -7px 9px 0 -1px currentColor;
    animation: vote-burst 0.5s ease forwards;
}

@keyframes vote-pop-up {
    0% { transform: scale(1) rotate(0deg); }
    40% { transform: scale(1.45) rotate(-16deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes vote-pop-down {
    0% { transform: scale(1) rotate(180deg); }
    40% { transform: scale(1.45) rotate(164deg); }
    100% { transform: scale(1) rotate(180deg); }
}

@keyframes vote-burst {
    0% { opacity: 0; transform: scale(0.35); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.7); }
}

.card .clip-wrap img {
    margin-top: 0;
}

.card .clip-launch {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(20, 20, 19, 0.88);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.card .clip-wrap .clip-launch {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.card,
.feed-timeline {
    touch-action: none;
    user-select: none;
    position: relative;
}

.feed-timeline {
    touch-action: pan-y;
}

.card.dragging,
.feed-timeline.dragging {
    transition: none !important;
}
/* Duration is set inline in JS so exit speed stays even after short/long flicks. */
.card.leaving,
.card.returning,
.feed-timeline.leaving,
.feed-timeline.returning {
    will-change: transform, opacity;
}

.empty { touch-action: none; }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

button.ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 8px 12px;
}

.frame-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.frame-depth {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.frame-depth[hidden] {
    display: none;
}

.feed-comments-about {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.tab-count {
    font-weight: 700;
}

.tab-count[hidden] {
    display: none;
}

.frame-dots {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    top: 18px;
    right: 8px;
    z-index: 2;
}

.frame-dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cfcfcf;
}

.frame-dots span.is-on {
    background: var(--ink);
}

.feed-stage {
    min-height: 40vh;
}

.feed-panel[hidden] {
    display: none !important;
}

.feed-panel-title {
    margin: 8px 0 14px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feed-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.feed-list li:first-child {
    border-top: none;
}

.feed-list li:last-child {
    border-bottom: none;
}

.feed-list .avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f3f3;
}

.feed-list .avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-list .who {
    min-width: 0;
}

.feed-list .who strong {
    display: block;
    font-size: 14px;
}

.feed-list .who-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.feed-list .who-line strong {
    display: inline;
    min-width: 0;
}

.feed-list .who-line .when {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.feed-list .who span {
    color: var(--muted);
    font-size: 12px;
}

.feed-panel-empty {
    margin: 18px 0;
    color: var(--muted);
    font-size: 14px;
}

.feed-comments-head {
    margin-bottom: 8px;
}

.feed-comments-head .feed-panel-title {
    margin: 0;
}

.feed-comments li {
    align-items: flex-start;
}

.feed-comments li.is-reply {
    padding-left: 28px;
}

.feed-comments .body {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.4;
}

.feed-comments .mention {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.feed-comments .reply {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.feed-comment-form {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.feed-comment-replying,
.feed-mention-list,
.feed-comment-error {
    flex: 1 0 100%;
}

.feed-comment-replying {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.feed-comment-replying[hidden],
.feed-mention-list[hidden],
.feed-comment-error[hidden] {
    display: none;
}

.feed-comment-replying-cancel {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.feed-mention-list {
    list-style: none;
    margin: 0;
    padding: 4px;
    max-height: 180px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.feed-mention-list button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: auto;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.feed-mention-list button.is-on,
.feed-mention-list button:hover {
    background: #f3f3f3;
}

.feed-mention-list img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-comment-error {
    margin: 0;
    color: #9a3412;
    font-size: 13px;
}

.feed-comment-form textarea {
    flex: 1 1 auto;
    box-sizing: border-box;
    min-width: 0;
    min-height: 40px;
    max-height: 96px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.35;
    resize: none;
    overflow-x: hidden;
    overflow-y: hidden;
    scrollbar-width: none;
}

.feed-comment-form textarea.is-scrollable {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 20, 19, 0.22) transparent;
}

.feed-comment-form textarea::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.feed-comment-form textarea.is-scrollable::-webkit-scrollbar {
    width: 4px;
    height: 0;
}

.feed-comment-form textarea.is-scrollable::-webkit-scrollbar-thumb {
    background: rgba(20, 20, 19, 0.22);
    border-radius: 999px;
}

.feed-comment-form button {
    flex: none;
    height: 40px;
}

.feed-comment-form .feed-mention-list button,
.feed-comment-form .feed-comment-replying-cancel {
    flex: none;
    height: auto;
}

.feed-judge-rule {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.45;
}

.feed-judge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.feed-judge-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feed-judge-actions button .thumb {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
    overflow: visible;
}

.feed-judge-actions button .thumb-down {
    transform: rotate(180deg);
}

.feed-judge-actions button .thumb-stem,
.feed-judge-actions button .thumb-hand {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.feed-judge-actions #feed-judge-fail {
    color: #c44e4e;
}

.feed-judge-confirm {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: rgba(20, 20, 19, 0.45);
}

.feed-judge-confirm[hidden] {
    display: none;
}

.feed-judge-confirm-panel {
    box-sizing: border-box;
    width: min(360px, 100%);
    padding: 22px 20px 18px;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.feed-judge-confirm-ring {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
}

.feed-judge-confirm-svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.feed-judge-confirm-ring-bg {
    fill: none;
    stroke: #ececec;
    stroke-width: 3;
}

.feed-judge-confirm-ring-fill {
    fill: none;
    stroke: var(--ink);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke 0.2s ease;
}

.feed-judge-confirm.is-pass .feed-judge-confirm-ring-fill {
    stroke: #5e9c1c;
}

.feed-judge-confirm.is-fail .feed-judge-confirm-ring-fill {
    stroke: #c44e4e;
}

.feed-judge-confirm-sec {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.feed-judge-confirm-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.45;
}

.feed-judge-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.feed-judge-confirm-actions button {
    min-width: 7.5rem;
}

body.is-feed-judge-confirm-open {
    overflow: hidden;
}

.comments-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: end center;
    padding: 0;
    background: rgba(20, 20, 19, 0.45);
}

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

.comments-modal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(520px, 100%);
    height: auto;
    max-height: min(82vh, 720px);
    margin: 0;
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background: #fff;
    overflow: hidden;
    will-change: transform;
}

@media (max-width: 720px) {
    .comments-modal-panel.is-expanded {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
    }

    .feed-comments-head {
        touch-action: none;
        cursor: grab;
    }

    .feed-comments-head::before {
        content: "";
        display: block;
        width: 36px;
        height: 4px;
        margin: 0 auto 12px;
        border-radius: 999px;
        background: #d8d8d8;
    }
}

.comments-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.comments-modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.comments-modal-body .feed-comments,
.comments-modal-body .feed-panel-empty {
    margin-bottom: 0;
}

.comments-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body.is-comments-modal-open {
    overflow: hidden;
}

/* Single-card deck is unused — timeline is the feed on all widths. */
body.is-feed #card {
    display: none !important;
}

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

    .comments-modal-panel {
        height: auto;
        max-height: min(78vh, 640px);
        border-radius: 16px;
        padding: 24px 22px 20px;
    }
}

/* Desktop: top of feed. Mobile: fixed bottom bar. */
.feed-tabs.company-tabs {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 0 0 18px;
    border-bottom: 2px solid var(--line);
    background: transparent;
}

.feed-tabs.company-tabs .company-tab {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 -2px;
    padding: 10px 6px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.feed-tabs.company-tabs .company-tab.is-on {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.feed-tabs.company-tabs .company-tab .company-tab__icon,
.feed-tabs.company-tabs .company-tab .feed-tab-glyph {
    flex: none;
    width: 18px;
    height: 18px;
    opacity: 0.55;
}

.feed-tabs.company-tabs .company-tab.is-on .company-tab__icon,
.feed-tabs.company-tabs .company-tab.is-on .feed-tab-glyph {
    opacity: 1;
}

.feed-tab-glyph {
    display: grid;
    place-items: center;
    color: inherit;
}

.feed-tab-glyph--journal {
    position: relative;
    width: 16px;
    height: 14px;
    place-self: center;
}

.feed-tab-glyph--journal::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 14px;
    background: currentColor;
}

.feed-tab-glyph--journal::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 11px;
    height: 2px;
    background: currentColor;
    box-shadow:
        0 5px 0 currentColor,
        0 10px 0 currentColor;
}

.feed-tab-glyph--fans {
    width: 17px;
    height: 14px;
    place-self: center;
    background:
        linear-gradient(currentColor, currentColor) 1px 1px / 4px 4px no-repeat,
        linear-gradient(currentColor, currentColor) 0 6px / 6px 8px no-repeat,
        linear-gradient(currentColor, currentColor) 10px 2px / 4px 4px no-repeat,
        linear-gradient(currentColor, currentColor) 9px 7px / 7px 7px no-repeat;
}

.feed-tab-glyph--scales {
    position: relative;
    width: 16px;
    height: 15px;
    place-self: center;
    background:
        linear-gradient(currentColor, currentColor) 7px 1px / 2px 13px no-repeat,
        linear-gradient(currentColor, currentColor) 1px 4px / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 2px 7px / 5px 1px no-repeat,
        linear-gradient(currentColor, currentColor) 9px 7px / 5px 1px no-repeat,
        linear-gradient(currentColor, currentColor) 3px 8px / 3px 4px no-repeat,
        linear-gradient(currentColor, currentColor) 10px 8px / 3px 4px no-repeat,
        linear-gradient(currentColor, currentColor) 5px 13px / 6px 2px no-repeat;
}

.feed-tabs.company-tabs .company-tab[hidden] {
    display: none;
}

.feed-tabs.company-tabs a.company-tab {
    text-decoration: none;
    box-sizing: border-box;
}

.feed-tabs.company-tabs a.company-tab:visited {
    color: var(--muted);
}

.feed-tabs.company-tabs a.company-tab.is-on:visited {
    color: var(--ink);
}

.feed-tabs.company-tabs a.company-tab.is-disabled {
    opacity: 0.42;
    cursor: default;
    pointer-events: none;
}

.feed-tabs.company-tabs a.company-tab.is-disabled.is-on {
    opacity: 0.55;
}

@media (max-width: 720px) {
    body.is-feed-viewer .wrap {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .feed-under-meta {
        gap: 6px 10px;
    }

    .frame-views {
        font-size: 12px;
        gap: 4px;
    }

    .frame-views-icon {
        width: 15px;
        height: 15px;
    }

    /* Full-bleed media — cancel wrap padding, edge to edge */
    body.is-feed-viewer .timeline-post .media-shell {
        width: calc(100% + (2 * var(--pad-x)));
        max-width: none;
        margin-top: 14px;
        margin-left: calc(-1 * var(--pad-x));
        margin-right: calc(-1 * var(--pad-x));
        border-radius: 0;
    }

    body.is-feed-viewer .timeline-post .frame-media video,
    body.is-feed-viewer .timeline-post .frame-media > img,
    body.is-feed-viewer .timeline-post .clip-wrap,
    body.is-feed-viewer .timeline-post .clip-wrap img,
    body.is-feed-viewer .timeline-post .photo-matrix {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

    body.is-feed-viewer .timeline-post .clip-wrap {
        aspect-ratio: 9 / 16;
        max-height: none;
    }

    body.is-feed-viewer .timeline-post .frame-media > img {
        max-height: none;
    }

    body.is-feed-viewer .timeline-post .photo-matrix {
        max-height: min(68dvh, 560px);
    }

    body.is-feed-viewer .timeline-post .photo-matrix--1 {
        grid-template-rows: minmax(240px, min(68dvh, 560px));
    }

    body.is-feed-viewer .timeline-post .photo-matrix--2 {
        grid-template-rows: minmax(220px, min(64dvh, 520px));
        max-height: min(64dvh, 520px);
    }

    body.is-feed-viewer .timeline-post .photo-matrix--3,
    body.is-feed-viewer .timeline-post .photo-matrix--4 {
        max-height: min(68dvh, 560px);
        min-height: 0;
    }

    body.is-feed-viewer .feed-back-bar {
        margin-left: calc(-1 * var(--pad-x));
        margin-right: calc(-1 * var(--pad-x));
    }

    body.is-feed-viewer .feed-tabs.company-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        margin: 0;
        border-bottom: none;
        border-top: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 -6px 28px rgba(26, 25, 23, 0.07);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    body.is-feed-viewer {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .feed-tabs.company-tabs .company-tab {
        gap: 5px;
        margin: 0;
        padding: 8px 2px 10px;
        border-bottom: none;
        border-top: 2px solid transparent;
        font-size: 11px;
        line-height: 1.1;
    }

    .feed-tabs.company-tabs .company-tab.is-on {
        border-bottom-color: transparent;
        border-top-color: var(--ink);
    }

}
