:root {
    --svf-bg: #050816;
    --svf-panel: rgba(5, 8, 22, 0.82);
    --svf-card: #111827;
    --svf-text: #f8fafc;
    --svf-muted: rgba(248, 250, 252, 0.72);
    --svf-accent: #ff4d6d;
    --svf-accent-2: #7dd3fc;
    --svf-border: rgba(255, 255, 255, 0.14);
    --svf-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --svf-radius: 28px;
}

.svf-app *,
.svf-app *::before,
.svf-app *::after,
.svf-dialog,
.svf-dialog *,
.svf-dialog *::before,
.svf-dialog *::after {
    box-sizing: border-box;
}

.svf-app,
.svf-dialog {
    color: var(--svf-text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    letter-spacing: normal !important;
    line-height: normal !important;
}

.svf-app :where(h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select, label, span, strong, article, section, header, main, div),
.svf-dialog :where(h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select, label, span, strong, article, section, header, main, div) {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.svf-app :where(h1, h2, h3, h4, h5, h6, p),
.svf-dialog :where(h1, h2, h3, h4, h5, h6, p) {
    color: inherit !important;
}

.svf-app :where(a),
.svf-dialog :where(a) {
    color: inherit !important;
    text-decoration: none !important;
}

.svf-app :where(button, input, textarea, select),
.svf-dialog :where(button, input, textarea, select) {
    font: inherit !important;
}

.svf-app :where(button),
.svf-dialog :where(button) {
    appearance: none;
}

.svf-app :where(img, video, iframe, svg),
.svf-dialog :where(img, video, iframe, svg) {
    max-width: none !important;
}

.svf-app {
    --svf-site-header-offset: 0px;
    --svf-feed-viewport-height: calc(100dvh - var(--svf-site-header-offset));
    background:
        radial-gradient(circle at top, rgba(125, 211, 252, 0.18), transparent 30%),
        linear-gradient(180deg, #081224 0%, #050816 100%) !important;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
}

.svf-body {
    min-height: 100svh;
    overflow: hidden;
}

.svf-body.svf-reader-mode {
    overflow: hidden;
}

.svf-app {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.svf-shell-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 20px;
}

.svf-brand-block {
    display: flex;
    flex-direction: column;
}

.svf-shell-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 0.95;
}

.svf-eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--svf-accent-2);
}

.svf-back-link {
    color: var(--svf-text);
    text-decoration: none;
    border: 1px solid var(--svf-border);
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
}

.svf-shell-main {
    position: relative;
    height: var(--svf-feed-viewport-height);
    min-height: var(--svf-feed-viewport-height);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.svf-shell-main.is-reader-mode {
    overflow: hidden;
    scroll-snap-type: none;
}

.svf-pull-indicator {
    --svf-pull-offset: 0px;
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 50%;
    z-index: 12;
    transform: translate(-50%, calc(-100% + var(--svf-pull-offset)));
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(5, 8, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    color: rgba(248, 250, 252, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
}

.svf-pull-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--svf-accent-2);
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.42);
}

.svf-pull-indicator.is-armed .svf-pull-indicator-dot,
.svf-pull-indicator.is-refreshing .svf-pull-indicator-dot {
    background: var(--svf-accent);
}

.svf-pull-indicator.is-refreshing .svf-pull-indicator-dot {
    animation: svf-pull-pulse 0.9s ease-in-out infinite;
}

.svf-pull-indicator-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@keyframes svf-pull-pulse {
    0% {
        transform: scale(0.88);
        box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.36);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 77, 109, 0);
    }

    100% {
        transform: scale(0.88);
        box-shadow: 0 0 0 0 rgba(255, 77, 109, 0);
    }
}

.svf-header-menu {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.svf-header-chip {
    appearance: none;
    border: 1px solid var(--svf-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--svf-text);
    text-decoration: none;
    padding: 10px 16px;
}

.svf-header-chip.is-active {
    background: rgba(255, 77, 109, 0.22);
    border-color: rgba(255, 77, 109, 0.45);
}

.svf-feed {
    display: grid;
    gap: 0;
    min-height: 100%;
}

.svf-card {
    position: relative;
    height: var(--svf-feed-viewport-height) !important;
    min-height: var(--svf-feed-viewport-height) !important;
    border-radius: var(--svf-radius);
    overflow: hidden;
    background: var(--svf-card) !important;
    box-shadow: var(--svf-shadow);
    border: 1px solid var(--svf-border);
    display: grid;
    align-items: stretch;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.svf-media-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 35%, rgba(5, 8, 22, 0.9) 100%),
        linear-gradient(0deg, rgba(5, 8, 22, 0.65) 0%, transparent 30%);
}

.svf-media-wrap--contain {
    display: grid;
    place-items: start center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.62) 58%, rgba(0, 0, 0, 0.96) 100%),
        #000;
}

.svf-media-wrap--contain::before {
    content: "";
    position: absolute;
    inset: -28px;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.84)),
        var(--svf-media-poster, none);
    background-size: cover;
    background-position: center;
    filter: blur(22px);
    transform: scale(1.08);
    opacity: 0.84;
}

.svf-media-wrap--contain::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.96));
    pointer-events: none;
}

.svf-media-wrap img,
.svf-media-wrap video,
.svf-media-wrap iframe,
.svf-media-placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
}

.svf-media-wrap iframe {
    border: 0;
}

.svf-media-wrap .svf-media-frame--cover {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, calc(var(--svf-feed-viewport-height) * 16 / 9));
    height: max(var(--svf-feed-viewport-height), calc(100vw * 9 / 16));
    transform: translate(-50%, -50%);
}

.svf-media-wrap .svf-media-frame--contain,
.svf-media-wrap .svf-media-video--contain {
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    align-self: center;
    justify-self: center;
    border-radius: inherit;
    overflow: hidden;
    box-shadow: none;
}

.svf-media-wrap .svf-media-video--cover {
    object-fit: cover;
}

.svf-media-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(255, 77, 109, 0.18));
    color: var(--svf-muted);
    font-size: 1.1rem;
}

.svf-card-overlay {
    position: relative;
    z-index: 3;
    display: flex;
    height: var(--svf-feed-viewport-height) !important;
    min-height: var(--svf-feed-viewport-height) !important;
    justify-content: space-between;
    align-items: flex-end;
    padding: 24px 18px 28px;
    gap: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.84) 100%);
    pointer-events: none;
}

.svf-copy {
    width: calc(100% - 104px);
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    pointer-events: auto;
}

.svf-app .svf-title {
    margin: 0;
    color: #fff !important;
    font-size: clamp(1.25rem, 2.1vw, 1.8rem);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 700;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    max-width: 18ch;
    text-wrap: balance;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.48);
}

.svf-app .svf-description {
    margin: 0;
    color: rgba(248, 250, 252, 0.88) !important;
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 400;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    max-width: 30ch;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.svf-app .svf-description a {
    color: var(--svf-text) !important;
    text-decoration: none !important;
}

.svf-app .svf-read-link {
    display: inline-block;
    margin-top: 4px;
    border: 0;
    background: none;
    color: var(--svf-text);
    padding: 0;
    font-size: 0.84rem !important;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    align-self: flex-start;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
}

.svf-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.svf-author-action {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(2, 6, 23, 0.22);
    color: var(--svf-text);
    display: grid;
    place-items: center;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.svf-author-action img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svf-author-action span {
    font-size: 1.1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.svf-action {
    width: 54px;
    min-height: 58px;
    border: 0;
    background: transparent;
    color: var(--svf-text);
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 0;
    cursor: pointer;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.72);
}

.svf-action.is-liked {
    color: #ff2f5f;
}

.svf-action.is-active,
.svf-reader-action.is-active {
    color: #7dd3fc;
}

.svf-icon {
    width: 31px;
    height: 31px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.68));
}

.svf-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.svf-action-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.05;
}

.svf-state,
.svf-empty {
    padding: 28px;
    border-radius: var(--svf-radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--svf-border);
    text-align: center;
}

.svf-author-body {
    min-height: 100svh;
    overflow: auto !important;
    background: #050816 !important;
}

.svf-author-body.svf-author-reader-open {
    overflow: hidden;
}

.svf-author-page {
    --svf-author-header-offset: 0px;
    position: relative !important;
    z-index: 2;
    inset: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 100svh;
    overflow: visible !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: calc(var(--svf-author-header-offset) + max(15px, env(safe-area-inset-top, 0px))) 0 max(32px, env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.2), transparent 28%),
        linear-gradient(180deg, #081224 0%, #050816 55%, #020617 100%) !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: var(--svf-text) !important;
    line-height: normal !important;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
}

.svf-author-body:not(.svf-author-swipe-active) .svf-author-return-preview {
    display: none;
}

.svf-author-return-preview {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}

.svf-author-return-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}

.svf-author-return-preview-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 8rem;
    font-weight: 900;
    background:
        radial-gradient(circle at 35% 25%, rgba(125, 211, 252, 0.28), transparent 35%),
        linear-gradient(135deg, #081224, #020617);
}

.svf-author-return-preview-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78)),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.72));
}

.svf-author-return-preview strong {
    position: absolute;
    left: 18px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
    max-width: 46vw;
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.12;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.76);
}

.admin-bar .svf-author-page {
    --svf-author-header-offset: 32px;
}

@media (max-width: 782px) {
    .admin-bar .svf-author-page {
        --svf-author-header-offset: 46px;
    }
}

.svf-author-hero {
    width: min(100%, 680px);
    margin: 0 auto 22px;
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--svf-text);
}

.svf-author-page :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, article, section, div) {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.svf-author-floating-back {
    position: relative;
    top: auto;
    left: auto;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 14px 0 18px 16px;
    line-height: 1;
}

.svf-author-body.svf-author-reader-open .svf-author-floating-back {
    display: none;
}

.svf-author-avatar-frame {
    width: 104px;
    height: 104px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.28), rgba(255, 77, 109, 0.24));
}

.svf-author-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.svf-author-avatar-fallback {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.svf-author-eyebrow {
    margin: 16px 0 6px;
    color: var(--svf-accent-2) !important;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
}

.svf-author-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 800 !important;
}

.svf-author-bio {
    width: min(100%, 640px);
    max-width: calc(100vw - 36px);
    margin: 12px 0 0;
    color: rgba(248, 250, 252, 0.74);
    font-size: 0.98rem !important;
    line-height: 1.42 !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.svf-author-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.84rem !important;
}

.svf-author-stats span,
.svf-author-stats a {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 9px 13px;
    color: rgba(248, 250, 252, 0.9);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none !important;
    font-size: 0.84rem !important;
    line-height: 1.1 !important;
}

.svf-author-stats strong {
    color: #fff;
}

.svf-author-grid-section {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.svf-author-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
}

.svf-author-card {
    position: relative;
    aspect-ratio: 9 / 14;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    color: var(--svf-text);
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.svf-author-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.svf-author-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.svf-author-card-title {
    position: absolute;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    z-index: 2;
    color: #fff !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.svf-app .ytmVideoInfoHost,
.svf-app .fullscreen-action-menu,
.svf-reader-layer .ytmVideoInfoHost,
.svf-reader-layer .fullscreen-action-menu {
    display: none !important;
}

.svf-author-card-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.28), rgba(255, 77, 109, 0.26));
}

.svf-author-empty {
    margin: 28px auto;
    max-width: 420px;
    color: rgba(248, 250, 252, 0.72);
    text-align: center;
}

.svf-author-reader {
    position: fixed;
    inset: var(--svf-author-reader-top, 0px) 0 0;
    z-index: 9999;
    background: #050816;
    color: var(--svf-text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
    transform: translateX(0);
    will-change: transform;
}

.svf-author-page.is-swipe-back-active,
.svf-author-page.is-swipe-back-committing,
.svf-author-reader.is-swipe-back-active,
.svf-author-reader.is-swipe-back-committing {
    transform: translateX(var(--svf-swipe-x, 0px));
    box-shadow: -24px 0 56px rgba(0, 0, 0, 0.36);
}

.svf-author-page.is-swipe-back-committing,
.svf-author-reader.is-swipe-back-committing {
    transition: transform 180ms ease;
}

.svf-author-reader[hidden] {
    display: none;
}

.svf-author-reader-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: calc(env(safe-area-inset-top, 0px) + 58px);
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    background: rgba(5, 8, 22, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.svf-author-reader-close {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
}

.svf-author-reader-title {
    min-width: 0;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.svf-author-reader-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px max(28px, env(safe-area-inset-bottom, 0px));
}

.svf-author-reader-hero {
    width: min(100%, 720px);
    margin: 16px auto 18px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.svf-author-reader-hero img,
.svf-author-reader-hero iframe {
    width: 100%;
    display: block;
    border: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.svf-author-reader-content {
    width: min(100%, 720px);
    margin: 0 auto;
    color: rgba(248, 250, 252, 0.9);
    font-size: 1rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.svf-author-reader-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.svf-author-reader-content a {
    color: var(--svf-accent-2);
}

.svf-dialog {
    border: 0;
    padding: 0;
    width: min(92vw, 460px);
    max-width: 100vw;
    border-radius: 24px;
    background: transparent;
}

.svf-sheet {
    width: min(100vw, 560px);
    max-width: none;
    margin: auto auto 0;
}

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

.svf-bottom-item {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--svf-muted);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    font: inherit;
}

.svf-bottom-item strong {
    font-size: 0.72rem;
    font-weight: 600;
}

.svf-bottom-item.is-active {
    color: var(--svf-text);
}

.svf-bottom-icon {
    font-size: 1rem;
    line-height: 1;
}

.svf-dialog::backdrop {
    background: rgba(5, 8, 22, 0.72);
}

.svf-reader-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.98) 100%);
    overscroll-behavior-x: contain;
    touch-action: pan-y;
    transform: translateX(0);
    will-change: transform;
}

.svf-app.is-swipe-back-active .svf-card.is-reader-open .svf-reader-layer,
.svf-app.is-swipe-back-committing .svf-card.is-reader-open .svf-reader-layer {
    transform: translateX(var(--svf-swipe-x, 0px));
    box-shadow: -24px 0 56px rgba(0, 0, 0, 0.36);
}

.svf-app.is-swipe-back-committing .svf-card.is-reader-open .svf-reader-layer {
    transition: transform 180ms ease;
}

.svf-reader-layer[hidden] {
    display: none !important;
}

.svf-reader-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding:
        calc(env(safe-area-inset-top, 0px) + 14px)
        16px
        10px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.svf-reader-close {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--svf-text);
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.svf-reader-heading {
    min-width: 0;
}

.svf-reader-eyebrow {
    display: block;
    font-size: 0.72rem;
    color: var(--svf-accent-2);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.svf-reader-title {
    display: block;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svf-reader-progress {
    grid-column: 1 / -1;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.svf-reader-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--svf-accent), var(--svf-accent-2));
    transform-origin: left center;
    transform: scaleX(0);
}

.svf-reader-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    padding:
        18px
        16px
        calc(env(safe-area-inset-bottom, 0px) + 28px);
}

.svf-reader-hero {
    margin-bottom: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    min-height: 0;
}

.svf-reader-hero img,
.svf-reader-hero video,
.svf-reader-hero iframe {
    width: 100% !important;
    display: block;
    border: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.svf-reader-hero video,
.svf-reader-hero iframe {
    object-fit: contain;
}

.svf-reader-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.svf-reader-action {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--svf-text);
    padding: 12px 16px;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.svf-reader-action.is-liked {
    border-color: rgba(255, 77, 109, 0.48);
    background: rgba(255, 77, 109, 0.18);
}

.svf-reader-action span {
    color: var(--svf-muted);
    font-size: 0.85rem;
}

.svf-reader-content {
    color: var(--svf-text);
    font-size: 1rem;
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.svf-reader-content > :first-child {
    margin-top: 0;
}

.svf-reader-content p {
    margin: 0 0 1.15em;
    color: rgba(248, 250, 252, 0.9);
}

.svf-reader-content h1,
.svf-reader-content h2,
.svf-reader-content h3,
.svf-reader-content h4,
.svf-reader-content h5,
.svf-reader-content h6 {
    margin: 1.55em 0 0.55em;
    color: #fff !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
}

.svf-reader-content h2 {
    font-size: clamp(1.45rem, 5.8vw, 2rem) !important;
}

.svf-reader-content h3 {
    font-size: clamp(1.2rem, 4.8vw, 1.55rem) !important;
}

.svf-reader-content a {
    color: var(--svf-accent-2) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 0.08em !important;
    text-underline-offset: 0.18em !important;
}

.svf-reader-content ul,
.svf-reader-content ol {
    margin: 1.1em 0 1.4em;
    padding-left: 1.28em;
}

.svf-reader-content li {
    margin: 0.48em 0;
    padding-left: 0.12em;
    color: rgba(248, 250, 252, 0.9);
}

.svf-reader-content blockquote {
    margin: 1.4em 0;
    padding: 1em 1.1em;
    border-left: 3px solid var(--svf-accent-2);
    border-radius: 18px;
    background: rgba(125, 211, 252, 0.08);
    color: rgba(248, 250, 252, 0.92);
}

.svf-reader-content figure {
    margin: 1.35em 0;
}

.svf-reader-content figcaption {
    margin-top: 0.55em;
    color: rgba(248, 250, 252, 0.62);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

.svf-reader-content img,
.svf-reader-content video,
.svf-reader-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    background: #000;
}

.svf-reader-content img {
    width: 100%;
    display: block;
    object-fit: cover;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.svf-reader-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.svf-reader-content p,
.svf-reader-content li,
.svf-reader-content a,
.svf-reader-content span,
.svf-reader-content strong,
.svf-reader-content em,
.svf-reader-content figcaption,
.svf-reader-content blockquote,
.svf-reader-content h1,
.svf-reader-content h2,
.svf-reader-content h3,
.svf-reader-content h4,
.svf-reader-content h5,
.svf-reader-content h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.svf-reader-content figure,
.svf-reader-content .wp-block-image,
.svf-reader-content .wp-block-embed,
.svf-reader-content .wp-block-group,
.svf-reader-content .wp-block-columns,
.svf-reader-content .wp-block-column,
.svf-reader-content div {
    max-width: 100%;
}

.svf-reader-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.svf-reader-content pre,
.svf-reader-content code {
    white-space: pre-wrap;
    word-break: break-word;
}

.svf-reader-content pre {
    margin: 1.35em 0;
    padding: 1em;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.72);
}

.svf-reader-content code {
    color: rgba(248, 250, 252, 0.94);
}

.svf-reader-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.svf-reader-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.svf-reader-meta {
    display: grid;
    gap: 1rem;
    margin: 2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.svf-reader-term-group > strong,
.svf-reader-related h2 {
    display: block;
    margin: 0 0 0.6rem;
    color: var(--svf-accent-2) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.svf-reader-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.svf-reader-term {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}

.svf-reader-related {
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.svf-reader-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.svf-reader-related-card {
    display: block;
    padding: 0;
    color: #fff !important;
    text-decoration: none !important;
}

.svf-reader-related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: none;
}

.svf-reader-related-card strong {
    display: block;
    margin-top: 0.5rem;
    color: #fff !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.svf-reader-mode .svf-bottom-nav,
.svf-reader-mode .svf-shell-header {
    opacity: 0;
    pointer-events: none;
}

.svf-dialog-card {
    position: relative;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #0f172a, #020617);
    border: 1px solid var(--svf-border);
    color: var(--svf-text);
}

.svf-sheet-card {
    position: relative;
    width: min(100vw, 560px);
    max-width: 100vw;
    min-height: min(52svh, 560px);
    max-height: min(82svh, calc(100dvh - 8px));
    margin: auto auto 0;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(180deg, #0f172a, #020617);
    border: 1px solid var(--svf-border);
    border-bottom: 0;
    color: var(--svf-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
}

.svf-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--svf-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 400;
    line-height: 1 !important;
    text-align: center;
}

.svf-dialog-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.svf-sheet-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.svf-sheet-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.svf-sheet-subtitle {
    margin: 4px 0 0;
    color: var(--svf-muted);
    font-size: 0.82rem;
}

.svf-sheet-feedback {
    margin: 14px 18px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--svf-border);
}

.svf-sheet-feedback[data-type="error"] {
    border-color: rgba(255, 77, 109, 0.35);
    color: #ffd7de;
}

.svf-sheet-feedback[data-type="success"] {
    border-color: rgba(125, 211, 252, 0.35);
    color: #d8f4ff;
}

.svf-comment-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 18px 12px;
}

.svf-comment-loading,
.svf-comment-empty {
    padding: 18px 0;
    color: var(--svf-muted);
    text-align: center;
}

.svf-comment-list {
    display: grid;
    gap: 12px;
}

.svf-comment-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.svf-comment-item.is-current-user {
    border-color: rgba(125, 211, 252, 0.2);
    background: rgba(125, 211, 252, 0.07);
}

.svf-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.svf-comment-author {
    font-size: 0.9rem;
}

.svf-comment-date {
    font-size: 0.74rem;
    color: var(--svf-muted);
}

.svf-comment-content {
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.92rem;
    line-height: 1.5;
}

.svf-comment-content > :first-child {
    margin-top: 0;
}

.svf-comment-content > :last-child {
    margin-bottom: 0;
}

.svf-comment-composer {
    position: sticky;
    bottom: 0;
    padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(18px);
}

.svf-comment-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.svf-share-actions {
    display: grid;
    gap: 10px;
    padding: 14px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
}

.svf-share-action {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--svf-text);
    padding: 14px 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font: inherit;
}

.svf-share-action strong {
    width: 22px;
    text-align: center;
}

.svf-share-action span {
    font-size: 0.92rem;
}

.svf-auth-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--svf-border);
    margin-bottom: 16px;
}

.svf-auth-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--svf-muted);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
}

.svf-auth-tab.is-active {
    background: rgba(255, 77, 109, 0.18);
    color: var(--svf-text);
}

.svf-auth-panel {
    display: none;
}

.svf-auth-panel.is-active {
    display: block;
}

.svf-auth-feedback {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--svf-border);
}

.svf-auth-feedback[data-type="error"] {
    border-color: rgba(255, 77, 109, 0.35);
    color: #ffd7de;
}

.svf-auth-feedback[data-type="success"] {
    border-color: rgba(125, 211, 252, 0.35);
    color: #d8f4ff;
}

.svf-field {
    display: block;
    margin-bottom: 14px;
}

.svf-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--svf-muted);
    font-size: 0.92rem;
}

.svf-field input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--svf-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--svf-text);
    padding: 14px 16px;
    font-size: 16px;
}

.svf-consent-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 14px 0 0;
    color: var(--svf-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.svf-consent-field input {
    margin-top: 3px;
}

.svf-consent-field a {
    color: var(--svf-accent-2);
}

.svf-primary-link,
.svf-secondary-link,
.svf-primary-button,
.svf-secondary-button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
}

.svf-primary-link,
.svf-primary-button {
    background: var(--svf-accent);
    color: white;
}

.svf-secondary-link,
.svf-secondary-button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--svf-text);
    border-color: var(--svf-border);
}

#svf-comment-text {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--svf-text);
    border: 1px solid var(--svf-border);
    border-radius: 18px;
    padding: 16px;
    font-size: 16px;
    line-height: 1.4;
    resize: none;
}

@media (min-width: 960px) {
    .svf-feed {
        width: min(100%, 1000px);
        margin: 0 auto;
    }

    .svf-card {
        height: var(--svf-feed-viewport-height);
        min-height: var(--svf-feed-viewport-height);
        border-radius: 0;
    }

    .svf-card-overlay {
        height: var(--svf-feed-viewport-height);
        min-height: var(--svf-feed-viewport-height);
        padding: 32px;
    }
}

@media (max-width: 720px) {
    .svf-body {
        background: #000;
    }

    .svf-app {
        position: fixed;
        inset: var(--svf-site-header-offset) 0 0;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        min-height: 0;
    }

    .svf-author-page.svf-app {
        position: relative !important;
        inset: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 100svh !important;
        overflow: visible !important;
    }

    .svf-author-hero {
        width: 100%;
        padding: 18px 18px 0;
        margin-bottom: 20px;
    }

    .svf-author-avatar-frame {
        width: 96px;
        height: 96px;
    }

    .svf-author-hero h1 {
        font-size: clamp(1.8rem, 8.5vw, 2.35rem);
        line-height: 1.02;
        max-width: 11ch;
    }

    .svf-author-bio {
        width: min(100%, calc(100vw - 36px));
        max-width: none;
        font-size: 0.96rem !important;
        line-height: 1.4 !important;
    }

    .svf-shell-header {
        display: none;
    }

    .svf-shell-main {
        height: 100%;
        min-height: 100%;
    }

    .svf-shell-main.is-reader-mode {
        overflow: hidden;
        scroll-snap-type: none;
    }

    .svf-feed {
        gap: 0;
    }

    .svf-card,
    .svf-card-overlay {
        height: var(--svf-feed-viewport-height);
        min-height: var(--svf-feed-viewport-height);
    }

    .svf-card {
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .svf-app .svf-title {
        font-size: 17px;
        line-height: 1.12;
        letter-spacing: -0.02em;
        max-width: none;
    }

    .svf-copy {
        width: calc(100% - 82px);
        gap: 5px;
        padding: 0;
        max-width: none;
    }

    .svf-app .svf-description {
        font-size: 11px !important;
        line-height: 1.24 !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        max-width: none;
    }

    .svf-app .svf-description a {
        font-size: inherit !important;
        line-height: inherit !important;
    }

    .svf-card-overlay {
        padding:
            calc(env(safe-area-inset-top, 0px) + 24px)
            14px
            calc(env(safe-area-inset-bottom, 0px) + 28px);
    }

    .svf-actions {
        gap: 8px;
        align-self: flex-end;
        padding-bottom: clamp(54px, 9svh, 92px);
    }

    .svf-media-wrap {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 18%, rgba(0, 0, 0, 0.24) 58%, rgba(0, 0, 0, 0.44) 100%);
    }

    .svf-app .svf-read-link {
        font-size: 11px !important;
    }

    .svf-media-wrap .svf-media-frame--contain,
    .svf-media-wrap .svf-media-video--contain {
        width: 100vw !important;
        height: min(68svh, calc(var(--svf-feed-viewport-height) * 0.68)) !important;
        max-height: 68% !important;
        aspect-ratio: 4 / 3;
        align-self: start;
        border-radius: 0;
    }

    .svf-action-label {
        font-size: 0.72rem;
    }

    .svf-media-wrap img,
    .svf-media-wrap video,
    .svf-media-wrap iframe {
        background: #000;
    }

    .svf-sentinel {
        height: 1px;
    }

    .svf-reader-header {
        padding:
            calc(env(safe-area-inset-top, 0px) + 12px)
            14px
            10px;
    }

    .svf-reader-content,
    .svf-author-reader-content {
        font-size: 1.15rem !important;
        line-height: 1.68 !important;
    }

    .svf-author-bio {
        font-size: 1.08rem !important;
        line-height: 1.42 !important;
    }

    .svf-sheet {
        width: 100vw;
    }

    .svf-sheet-card {
        width: 100%;
        max-height: min(86svh, calc(100dvh - env(safe-area-inset-top, 0px) - 6px));
        border-radius: 24px 24px 0 0;
    }

    .svf-reader-scroll {
        padding:
            14px
            14px
            calc(env(safe-area-inset-bottom, 0px) + 20px);
    }

    .svf-reader-hero {
        margin-bottom: 16px;
        border-radius: 18px;
        min-height: 0;
    }

    .svf-reader-content {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .svf-reader-content iframe {
        aspect-ratio: 16 / 9;
    }
}
