.home-feed-content {
    width: min(100%, 1240px);
}

.sidebar-login-button {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 14px;
    color: white;
    background: var(--primary);
    font-weight: 800;
}

.header-login-link {
    color: var(--primary);
    font-weight: 850;
}

.home-mobile-header-v2 {
    justify-content: space-between;
}

.home-mobile-title {
    color: var(--text);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.7px;
}

.home-mobile-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-icon-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    color: var(--text);
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.member-welcome-v2 {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: 0 8px 28px rgba(23, 26, 43, .04);
}

.member-avatar-v2 {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--primary), #ff7657);
    font-size: 19px;
    font-weight: 900;
}

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

.member-welcome-copy-v2 {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.member-welcome-copy-v2 span {
    color: var(--muted);
    font-size: 12px;
}

.member-welcome-copy-v2 strong {
    overflow: hidden;
    margin-top: 1px;
    color: var(--text);
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-pill-v2 {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 14px;
    color: var(--primary);
    background: #eeeeff;
    font-size: 12px;
    font-weight: 900;
}

.guest-hero-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    color: white;
    background: linear-gradient(135deg, #5155e7, #777bff);
}

.guest-hero-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -85px;
    top: -110px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .11);
}

.guest-hero-card > * {
    position: relative;
    z-index: 1;
}

.guest-hero-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    opacity: .86;
}

.guest-hero-card h1 {
    margin: 8px 0;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.guest-hero-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    line-height: 1.55;
}

.guest-hero-button {
    flex: 0 0 auto;
    padding: 13px 18px;
    border-radius: 14px;
    color: var(--primary);
    background: white;
    font-weight: 900;
}

.story-section,
.feed-section {
    margin-top: 24px;
}

.story-section-v2 {
    margin-top: 17px;
}

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.compact-heading-v2 {
    margin-bottom: 9px;
}

.home-section-heading h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.35px;
}

.home-section-heading a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
}

.story-rail,
.feed-card-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 9px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.story-bubble {
    width: 76px;
    flex: 0 0 76px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.story-ring {
    width: 66px;
    height: 66px;
    display: block;
    margin: 0 auto;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #9b6dff, var(--accent));
}

.story-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 2px;
    border-radius: 999px;
    background: white;
}

.story-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.story-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: inherit;
    color: var(--primary);
    background: #eeeeff;
    font-size: 23px;
}

.story-title {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.story-dialog {
    width: min(92vw, 430px);
    height: min(86vh, 740px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    color: white;
    background: #11131c;
}

.story-dialog::backdrop {
    background: rgba(9, 10, 16, .82);
    backdrop-filter: blur(7px);
}

.story-dialog-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-dialog-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-dialog-fallback {
    display: grid;
    place-items: center;
    font-size: 92px;
    background: linear-gradient(145deg, var(--primary), #9b6dff, var(--accent));
}

.story-dialog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 40%, rgba(0,0,0,.82));
}

.story-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.story-dialog-close button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(0,0,0,.28);
    font-size: 26px;
    cursor: pointer;
}

.story-dialog-copy {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.story-dialog-type {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.story-dialog-copy h3 {
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.08;
}

.story-dialog-copy p {
    margin: 0 0 18px;
    color: rgba(255,255,255,.84);
    line-height: 1.5;
}

.story-action-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    color: var(--text);
    background: white;
    font-weight: 900;
    cursor: pointer;
}

.dashboard-widget-v2 {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: 0 8px 28px rgba(23, 26, 43, .035);
}

.dashboard-accent-v2 {
    height: 3px;
}

.accent-orange { background: linear-gradient(90deg, #ff9c23, #ff6d35); }
.accent-purple { background: linear-gradient(90deg, #8649df, #d42deb); }
.accent-rose { background: linear-gradient(90deg, #ff7657, #ff4f76); }
.accent-blue { background: linear-gradient(90deg, #18b7e3, #3b57ca); }
.accent-green { background: linear-gradient(90deg, #4f8d45, #8d8351); }
.accent-violet { background: linear-gradient(90deg, #5369d9, #b647e6); }
.accent-pink { background: linear-gradient(90deg, #f1547a, #df46a4); }
.accent-teal { background: linear-gradient(90deg, #16b8b8, #4bcf9d); }
.accent-red { background: linear-gradient(90deg, #c76c6c, #ff5959); }
.accent-indigo { background: linear-gradient(90deg, #5b5fef, #7e7bff); }

.dashboard-widget-header-v2 {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px 11px 14px;
}

.dashboard-widget-icon-v2 {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--primary);
    background: #eeeeff;
    font-size: 19px;
    font-weight: 900;
}

.dashboard-widget-title-v2 {
    min-width: 0;
    flex: 1;
}

.dashboard-widget-title-v2 h2 {
    overflow: hidden;
    margin: 0;
    font-size: 18px;
    letter-spacing: -.35px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-widget-title-v2 span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.widget-control-v2 {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 12px;
    color: var(--text);
    background: #f6f7fb;
    font-size: 18px;
    cursor: pointer;
}

.dashboard-widget-v2.is-collapsed .dashboard-widget-body-v2 {
    display: none;
}

.dashboard-widget-body-v2 {
    padding: 0 12px 13px;
}

.dashboard-widget-body-v2.mode-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-widget-body-v2.mode-list {
    display: grid;
    gap: 9px;
}

.member-feed-card-v2 {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f9fafd;
}

.mode-grid .member-feed-card-v2 {
    min-width: 0;
}

.member-feed-image-v2 {
    height: 104px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--primary);
    background: linear-gradient(135deg, #e9e9ff, #ffece8);
    font-size: 31px;
}

.member-feed-image-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-feed-copy-v2 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.member-feed-copy-v2 strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.member-feed-copy-v2 span {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mode-list .member-feed-card-v2 {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: stretch;
}

.mode-list .member-feed-image-v2 {
    height: 84px;
}

.quick-access-v2 {
    margin-top: 23px;
}

.quick-access-heading-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.quick-access-heading-v2 h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.5px;
}

.quick-access-heading-v2 button {
    border: 0;
    color: var(--primary);
    background: transparent;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.featured-quick-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.featured-quick-v2 {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px;
    border: 0;
    border-radius: 22px;
    color: white;
    background: linear-gradient(135deg, #5b5fef, #7e7bff);
    box-shadow: 0 12px 24px rgba(91, 95, 239, .13);
    cursor: pointer;
}

.featured-quick-v2.quick-purple { background: linear-gradient(135deg, #8649df, #d42deb); }
.featured-quick-v2.quick-orange { background: linear-gradient(135deg, #ff9c23, #ff6d35); }
.featured-quick-v2.quick-blue { background: linear-gradient(135deg, #18b7e3, #3b57ca); }
.featured-quick-v2.quick-green { background: linear-gradient(135deg, #4f8d45, #918557); }
.featured-quick-v2.quick-violet { background: linear-gradient(135deg, #5369d9, #b647e6); }
.featured-quick-v2.quick-pink { background: linear-gradient(135deg, #f1547a, #df46a4); }
.featured-quick-v2.quick-teal { background: linear-gradient(135deg, #16b8b8, #4bcf9d); }
.featured-quick-v2.quick-red { background: linear-gradient(135deg, #bd6c6c, #ff5959); }
.featured-quick-v2.quick-rose { background: linear-gradient(135deg, #ff7657, #ff4f76); }

.featured-quick-v2 span {
    font-size: 34px;
    line-height: 1;
}

.featured-quick-v2 strong {
    font-size: 14px;
    line-height: 1.15;
}

.compact-quick-grid-v2 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 12px;
    margin-top: 22px;
}

.compact-quick-v2 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.compact-quick-icon-v2 {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--primary);
    background: #eeeeff;
    font-size: 25px;
    font-weight: 900;
}

.accent-soft-green { color: #588c4b; background: rgba(88, 140, 75, .13); }
.accent-soft-violet { color: #7654de; background: rgba(118, 84, 222, .13); }
.accent-soft-blue { color: #169ed0; background: rgba(22, 158, 208, .13); }
.accent-soft-pink { color: #ef5a7a; background: rgba(239, 90, 122, .13); }
.accent-soft-teal { color: #19afaf; background: rgba(25, 175, 175, .13); }
.accent-soft-red { color: #d65b5b; background: rgba(214, 91, 91, .13); }
.accent-soft-orange { color: #ff7a35; background: rgba(255, 122, 53, .13); }
.accent-soft-purple { color: #8e46e8; background: rgba(142, 70, 232, .13); }
.accent-soft-rose { color: #ff5d78; background: rgba(255, 93, 120, .13); }
.accent-soft-indigo { color: #5b5fef; background: rgba(91, 95, 239, .13); }

.compact-quick-v2 strong {
    display: -webkit-box;
    overflow: hidden;
    max-width: 110px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.quick-access-heading-v2 > div {
    min-width: 0;
}

.quick-access-subtitle-v1 {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.home-quick-link-v1 {
    text-decoration: none;
}

.featured-quick-v2.is-roadmap,
.compact-quick-v2.is-roadmap {
    opacity: .76;
}

.quick-action-state-v1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--muted);
    background: #f1f2f7;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.featured-quick-v2 .quick-action-state-v1 {
    color: white;
    background: rgba(255, 255, 255, .18);
}

.featured-quick-v2 .quick-action-state-v1.is-live {
    background: rgba(255, 255, 255, .24);
}.feed-card {
    width: 254px;
    flex: 0 0 254px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
}

.feed-card-image {
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--primary);
    background: linear-gradient(135deg, #e9e9ff, #ffece8);
    font-size: 38px;
}

.feed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-card-body {
    min-height: 164px;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.feed-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.feed-type-pill {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--primary);
    background: #eeeeff;
    font-size: 10px;
    font-weight: 900;
}

.feed-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.feed-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 9px 0 7px;
    font-size: 17px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.feed-meta {
    overflow: hidden;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.guest-lock-strip {
    position: relative;
    height: 42px;
    overflow: hidden;
    margin-top: auto;
    display: block;
    border-radius: 12px;
    background: #f1f2f7;
}

.guest-lock-blur {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 10px;
    filter: blur(3px);
    user-select: none;
}

.guest-lock-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: rgba(255,255,255,.64);
    font-size: 11px;
    font-weight: 900;
}

.home-error-card,
.home-empty-state,
.preference-warning-v2 {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
}

.home-error-card,
.preference-warning-v2 {
    color: var(--danger);
}

.home-empty-state {
    text-align: center;
}

.home-empty-icon {
    color: var(--primary);
    font-size: 38px;
}

.home-empty-state h2 {
    margin: 10px 0 7px;
    font-size: 21px;
}

.home-empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.home-customize-backdrop-v2 {
    position: fixed;
    z-index: 80;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(12, 14, 24, .38);
    backdrop-filter: blur(3px);
    transition: .2s ease;
}

.home-customize-backdrop-v2.is-open {
    visibility: visible;
    opacity: 1;
}

.home-customize-drawer-v2 {
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    width: min(440px, 94vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    transform: translateX(104%);
    border-left: 1px solid var(--border);
    background: #f7f8fc;
    box-shadow: -20px 0 50px rgba(23, 26, 43, .13);
    transition: transform .24s ease;
}

.home-customize-drawer-v2.is-open {
    transform: translateX(0);
}

.home-customize-open {
    overflow: hidden;
}

.home-customize-drawer-v2 > header {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: white;
}

.home-customize-drawer-v2 > header span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-customize-drawer-v2 > header h2 {
    margin: 2px 0 0;
    font-size: 24px;
}

.home-customize-drawer-v2 > header button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    color: var(--text);
    background: #f3f4f8;
    font-size: 25px;
    cursor: pointer;
}

.customize-scroll-v2 {
    overflow-y: auto;
    padding: 20px;
}

.customize-scroll-v2 h3 {
    margin: 7px 0 11px;
    font-size: 18px;
}

.preference-list-v2 {
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
}

.preference-row-v2 {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #eff0f5;
}

.preference-row-v2:last-child {
    border-bottom: 0;
}

.preference-row-v2.is-dragging {
    opacity: .48;
}

.preference-drag-v2 {
    padding: 7px 4px;
    color: var(--muted);
    cursor: grab;
    font-size: 20px;
    letter-spacing: -5px;
}

.preference-icon-v2 {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--primary);
    background: #eeeeff;
    font-size: 18px;
}

.preference-copy-v2 {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.preference-copy-v2 strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preference-copy-v2 span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.preference-mode-v2 {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    color: var(--primary);
    background: #f0f0ff;
    font-size: 17px;
    cursor: pointer;
}

.preference-switch-v2 {
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
}

.preference-switch-v2 input {
    position: absolute;
    opacity: 0;
}

.preference-switch-v2 span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d9dae2;
    cursor: pointer;
    transition: .18s ease;
}

.preference-switch-v2 span::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,.16);
    transition: .18s ease;
}

.preference-switch-v2 input:checked + span {
    background: var(--primary);
}

.preference-switch-v2 input:checked + span::after {
    transform: translateX(20px);
}

.reset-home-v2 {
    width: 100%;
    min-height: 46px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: white;
    font-weight: 800;
    cursor: pointer;
}

.home-toast-v2 {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: 28px;
    visibility: hidden;
    max-width: min(440px, 90vw);
    transform: translate(-50%, 15px);
    padding: 12px 16px;
    border-radius: 13px;
    color: white;
    background: #202335;
    opacity: 0;
    font-size: 13px;
    font-weight: 750;
    transition: .18s ease;
}

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

.home-toast-v2.is-error {
    background: var(--danger);
}

@media (max-width: 980px) {
    .dashboard-widget-body-v2.mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compact-quick-grid-v2 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-feed-content {
        padding-bottom: 94px;
    }

    .member-welcome-v2 {
        margin-top: 4px;
    }

    .featured-quick-grid-v2 {
        gap: 10px;
    }

    .featured-quick-v2 {
        min-height: 118px;
        padding: 12px 8px;
        border-radius: 19px;
    }

    .featured-quick-v2 strong {
        font-size: 12px;
    }

    .compact-quick-grid-v2 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 17px 5px;
    }

    .compact-quick-icon-v2 {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .dashboard-widget-header-v2 {
        gap: 6px;
        padding-left: 12px;
    }

    .dashboard-widget-icon-v2 {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .widget-control-v2 {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 16px;
    }

    .dashboard-widget-body-v2.mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-hero-card {
        display: block;
        padding: 22px;
    }

    .guest-hero-button {
        display: inline-flex;
        margin-top: 18px;
    }

    .story-dialog {
        width: 96vw;
        height: 86vh;
        border-radius: 24px;
    }
}

@media (max-width: 390px) {
    .module-pill-v2 {
        padding-inline: 9px;
        font-size: 11px;
    }

    .compact-quick-grid-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-item-link-v1 {
    color: inherit;
    text-decoration: none;
}

.home-item-link-v1:hover {
    color: inherit;
}

.activity-detail-page-v1 {
    min-height: 100vh;
    background: #f6f7fb;
    padding: 28px;
}

.activity-detail-shell-v1 {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.activity-back-v1 {
    display: inline-flex;
    margin-bottom: 18px;
    color: #5b5fef;
    font-weight: 800;
    text-decoration: none;
}

.activity-alert-v1 {
    margin-bottom: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 750;
}

.activity-alert-v1.success {
    background: #eaf8f2;
    color: #13795b;
}

.activity-alert-v1.error {
    background: #fff0ee;
    color: #b42318;
}

.activity-hero-v1 {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #5b5fef, #8b72ff 58%, #ff7657);
    box-shadow: 0 18px 50px rgba(37, 39, 79, .14);
}

.activity-hero-v1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-hero-fallback-v1 {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 86px;
    font-weight: 900;
}

.activity-hero-overlay-v1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 16, 35, .34));
    pointer-events: none;
}

.activity-detail-grid-v1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.activity-detail-main-v1,
.activity-detail-side-v1 {
    display: grid;
    gap: 18px;
}

.activity-title-card-v1,
.activity-facts-v1,
.activity-location-v1,
.activity-copy-section-v1,
.activity-chat-v1,
.activity-owner-v1,
.activity-action-card-v1 {
    background: #fff;
    border: 1px solid #e5e7f0;
    border-radius: 22px;
}

.activity-title-card-v1,
.activity-copy-section-v1,
.activity-owner-v1,
.activity-action-card-v1 {
    padding: 22px;
}

.activity-title-card-v1 h1 {
    margin: 12px 0 0;
    color: #171a2b;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.03;
    letter-spacing: -1.1px;
}

.activity-badges-v1,
.activity-categories-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-badge-v1,
.activity-categories-v1 span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eeeeff;
    color: #5b5fef;
    font-size: 12px;
    font-weight: 800;
}

.activity-badge-v1.warning {
    background: #fff5dd;
    color: #9a6200;
}

.activity-badge-v1.success {
    background: #eaf8f2;
    color: #13795b;
}

.activity-categories-v1 {
    margin-top: 15px;
}

.activity-categories-v1 span {
    background: #f6f7fb;
    color: #565c70;
}

.activity-facts-v1 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
}

.activity-facts-v1 > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 18px;
}

.activity-fact-icon-v1 {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eeeeff;
    color: #5b5fef;
    font-size: 20px;
}

.activity-facts-v1 small,
.activity-owner-row-v1 small {
    color: #6d7284;
}

.activity-facts-v1 strong {
    color: #171a2b;
}

.activity-location-v1,
.activity-chat-v1 {
    display: flex;
    gap: 13px;
    padding: 20px;
}

.activity-location-v1.open {
    background: #f1faf7;
    border-color: #d2eee4;
}

.activity-location-v1.locked {
    background: #fff7e8;
    border-color: #f5dfb6;
}

.activity-section-icon-v1 {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .75);
    color: #5b5fef;
    font-size: 20px;
}

.activity-location-v1 h2,
.activity-copy-section-v1 h2,
.activity-owner-v1 h2 {
    margin: 0 0 8px;
    color: #171a2b;
    font-size: 19px;
}

.activity-location-v1 p,
.activity-copy-section-v1 p,
.activity-chat-v1 p {
    margin: 5px 0 0;
    color: #6d7284;
    line-height: 1.55;
}

.activity-copy-section-v1 p {
    white-space: pre-line;
}

.activity-info-v1 {
    padding: 14px 15px;
    border-radius: 16px;
    background: #f6f7fb;
    color: #6d7284;
    line-height: 1.5;
}

.activity-participants-v1 {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 0 2px;
}

.activity-participant-v1 {
    width: 70px;
    flex: 0 0 70px;
    text-align: center;
    color: #171a2b;
    font-size: 12px;
    font-weight: 750;
}

.activity-avatar-v1 {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 6px;
    overflow: hidden;
    border-radius: 50%;
    background: #eeeeff;
    color: #5b5fef;
}

.activity-avatar-v1.large {
    width: 54px;
    height: 54px;
    margin: 0;
}

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

.activity-chat-v1.open {
    background: #f1f4ff;
    border-color: #d9deff;
}

.activity-chat-v1 > span {
    color: #5b5fef;
    font-size: 24px;
}

.activity-chat-v1 strong {
    color: #171a2b;
}

.activity-owner-v1,
.activity-action-card-v1 {
    position: sticky;
}

.activity-detail-side-v1 .activity-owner-v1 {
    top: 18px;
}

.activity-detail-side-v1 .activity-action-card-v1 {
    top: 160px;
}

.activity-owner-row-v1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-owner-row-v1 > div {
    display: grid;
    gap: 3px;
}

.activity-primary-action-v1,
.activity-secondary-action-v1 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 15px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
}

.activity-primary-action-v1 {
    background: #5b5fef;
    color: #fff;
}

.activity-primary-action-v1:disabled {
    background: #dfe1ec;
    color: #787d8e;
    cursor: default;
}

.activity-secondary-action-v1 {
    margin-top: 10px;
    background: #f6f7fb;
    color: #5b5fef;
}

.activity-secondary-action-v1.danger {
    color: #d92d20;
}

.activity-action-card-v1 form {
    margin: 0;
}

.activity-join-label-v1 {
    display: block;
    margin-bottom: 7px;
    color: #171a2b;
    font-size: 13px;
    font-weight: 800;
}

.activity-action-card-v1 textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #e5e7f0;
    border-radius: 14px;
    font: inherit;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .activity-detail-page-v1 {
        padding: 0 0 92px;
    }

    .activity-detail-shell-v1 {
        width: 100%;
    }

    .activity-back-v1 {
        margin: 16px 18px;
    }

    .activity-hero-v1 {
        height: 270px;
        border-radius: 0;
    }

    .activity-detail-grid-v1 {
        display: block;
        margin: 0;
    }

    .activity-detail-main-v1,
    .activity-detail-side-v1 {
        padding: 16px;
    }

    .activity-detail-side-v1 {
        padding-top: 0;
    }

    .activity-detail-side-v1 .activity-owner-v1,
    .activity-detail-side-v1 .activity-action-card-v1 {
        position: static;
    }
}

@media (max-width: 520px) {
    .activity-facts-v1 {
        grid-template-columns: 1fr;
    }

    .activity-title-card-v1 h1 {
        font-size: 30px;
    }
}

.v37-profile-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.v37-profile-avatar {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #ff7657);
    color: white;
    font-size: 30px;
    font-weight: 900;
}

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

.v37-profile-identity-copy {
    min-width: 0;
}

.v37-profile-identity-copy h1,
.v37-profile-identity-copy h2 {
    margin-top: 0;
    margin-bottom: 4px;
}

.v37-profile-photo-link {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.v37-profile-photo {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: cover;
    transition: transform .18s ease;
}

.v37-profile-photo-link:hover .v37-profile-photo {
    transform: scale(1.015);
}

@media (max-width: 640px) {
    .v37-profile-identity {
        align-items: flex-start;
    }

    .v37-profile-avatar {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        font-size: 25px;
    }

    .v37-profile-photo {
        height: 240px;
    }
}
.ak-entity-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(81, 85, 231, .12);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(23, 26, 43, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ak-entity-card:hover {
    border-color: rgba(81, 85, 231, .24);
    box-shadow: 0 14px 34px rgba(23, 26, 43, .075);
    transform: translateY(-1px);
}

.ak-entity-card > small:first-child {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .35px;
}

.ak-entity-card h2,
.ak-entity-card h3 {
    margin-top: 0;
    margin-bottom: 7px;
    letter-spacing: -.25px;
}

.ak-entity-card p {
    margin: 6px 0;
    line-height: 1.48;
}

.ak-entity-card .v37-actions {
    margin-top: 11px;
}

.ak-entity-card .v37-actions > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f1ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.ak-entity-card--activity {
    border-left: 3px solid #5155e7;
}

.ak-entity-card--group {
    border-left: 3px solid #2f9e72;
}

.ak-entity-card--crew {
    border-left: 3px solid #d97706;
}

.ak-entity-card--profile {
    border-left: 3px solid #8b5cf6;
}

.ak-entity-card--discovery {
    border-left: 3px solid var(--primary);
}

.ak-entity-card--compact {
    border-radius: 16px;
    box-shadow: none;
}

@media (max-width: 640px) {
    .ak-entity-card {
        border-radius: 17px;
    }
}