.writing-editorial-reel,.writing-editorial-reel body { overflow: hidden; overflow: clip }

.writing-community-v3.writing-reel-page {
    --editorial-width: 840px;
    --editorial-gutter: clamp(18px,5.65vw,36px);
    --editorial-edge: max(var(--editorial-gutter),calc((100% - var(--editorial-width))/2 + var(--editorial-gutter)));
    --editorial-topbar-height: 55px;
    --editorial-controls-height: 84px;
    --editorial-ink: #27211e;
    --editorial-muted: #6e625d;
    --editorial-line: #e9e1d9;
    --editorial-paper: #fbf9f6;
    --editorial-masthead: #f6f0e9;
    --editorial-negative: #645374;
    --editorial-negative-soft: #f5f0f7;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 0;
    background: var(--editorial-paper);
    color: var(--editorial-ink);
}

.writing-reel-page .community-reel-topbar {
    position: relative;
    z-index: 5;
    grid-template-columns: 36px minmax(0,1fr) auto;
    gap: 8px;
    min-height: calc(var(--editorial-topbar-height) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--editorial-edge) 0;
    border: 0;
    background: transparent;
    text-align: left;
}
.writing-reel-page .community-reel-topbar .profile-flat-icon-button { margin-inline-start: -6px }
.writing-reel-page .community-reel-topbar h1 { margin: 0; font-size: 17px; font-weight: 720; white-space: nowrap }
.writing-reel-page .editorial-top-actions { display: flex; align-items: center; gap: clamp(8px,3.2vw,18px) }
.writing-reel-page .community-reel-topbar .community-top-action {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0;
    background: transparent;
    color: var(--editorial-muted);
    font-size: 13px;
    white-space: nowrap;
}
.writing-reel-page .community-reel-topbar .community-top-action:hover { color: var(--writing-accent-text) }
.writing-reel-page .community-reel-topbar .reel-submit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    height: auto;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--writing-accent-text);
    font: inherit;
    font-size: 13px;
    font-weight: 680;
    white-space: nowrap;
    cursor: pointer;
}
.writing-reel-page .community-reel-topbar .reel-submit:hover { background: var(--writing-accent-soft) }
.writing-reel-page .reel-submit svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }

.writing-reel-page .community-reel { width: 100%; border-radius: 0; background: var(--editorial-paper); touch-action: pan-y }
.writing-reel-page .community-reel.reel-locked { overflow-y: hidden }
.writing-reel-page .community-reel-card { display: block; padding: 0; background: var(--editorial-paper); color: var(--editorial-ink) }
.writing-reel-page .community-reel-card[aria-hidden=true] { pointer-events: none }
.writing-reel-page .community-reel-card:has(.paper-note) { background: #faf3ec }
.writing-reel-page .community-reel-card:has(.paper-art-note) { background: #f7f5f0 }
.writing-reel-page .community-reel-stage {
    display: grid;
    grid-template-columns: minmax(0,1fr) 44px;
    grid-template-rows: minmax(0,1fr);
    column-gap: clamp(8px,2.6vw,24px);
    width: min(100%,var(--editorial-width));
    height: 100%;
    margin-inline: auto;
    padding-inline: var(--editorial-gutter);
}
.writing-reel-page .community-paper {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-content: center;
    align-content: safe center;
    justify-items: start;
    gap: clamp(12px,2.25dvh,25px);
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 14px 0 clamp(14px,11.4dvh,112px);
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
}
.writing-reel-page .community-paper-heading { display: grid; gap: 11px; min-width: 0; width: 100% }
.writing-reel-page .community-paper h2 {
    margin: 0;
    color: var(--editorial-ink);
    font-family: "Songti SC","Noto Serif CJK SC","STSong","SimSun",serif;
    font-size: clamp(30px,7.8vw,52px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.014em;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
.writing-reel-page .community-paper h2.long-title { font-size: clamp(22px,5vw,34px); line-height: 1.32 }
.writing-reel-page .paper-text h2:not(.long-title) { font-size: clamp(35px,9vw,59px) }
.writing-reel-page .paper-note h2:not(.long-title) { font-size: clamp(27px,6.7vw,43px) }
.writing-reel-page .paper-art-note { gap: clamp(8px,1.55dvh,17px) }
.writing-reel-page .paper-art-note h2:not(.long-title) { font-size: clamp(26px,6.8vw,43px) }
.writing-reel-page :is(.paper-art,.paper-art-note) h2.long-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4 }
.writing-reel-page .community-paper-author { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--editorial-muted); font-size: 13px; font-weight: 500 }
.writing-reel-page .community-paper-author-name { overflow: hidden; text-overflow: ellipsis }
.writing-reel-page .community-paper-author time { flex: none; border-inline-start: 1px solid #e9e3df; padding-inline-start: 8px; font-size: 11px; font-variant-numeric: tabular-nums }
.writing-reel-page .community-paper-avatar {
    position: relative;
    flex: none;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--writing-accent-soft);
    color: var(--writing-accent-text);
    text-decoration: none;
}
.writing-reel-page .community-paper-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.writing-reel-page .community-paper-avatar img[hidden] { display: none }

.writing-reel-page .community-paper-note {
    width: min(100%,580px);
    padding: 9px 10px 7px 14px;
    border-inline-start: 2px solid #d49272;
    background: linear-gradient(90deg,#f3eae1,transparent 100%);
    overflow-wrap: anywhere;
}
.writing-reel-page .community-paper-note-label,
.writing-reel-page .community-paper-excerpt > span { display: block; margin-bottom: 6px; color: var(--editorial-muted); font-size: 12px; font-weight: 680 }
.writing-reel-page .community-paper-note-label { color: var(--writing-accent-text) }
.writing-reel-page :is(.community-paper-excerpt,.community-paper-note) p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #5e5551;
    font-size: clamp(15px,3.8vw,18px);
    line-height: 1.8;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.writing-reel-page .community-paper-note-more {
    min-height: 29px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--writing-accent-text);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.writing-reel-page .community-paper-note-more:hover { text-decoration: underline; text-underline-offset: 3px }
.writing-reel-page .paper-art-note .community-paper-note { padding: 1px 0 0 11px; background: none; border-color: #d7bcaa }
.writing-reel-page .paper-art-note .community-paper-note p { font-size: clamp(13px,3.55vw,16px); line-height: 1.6; -webkit-line-clamp: 2 }
.writing-reel-page .community-paper-excerpt { max-width: 570px; padding-inline-start: 13px; border-inline-start: 1px solid #d9c4b3 }

.writing-reel-page .community-paper-art {
    position: relative;
    width: 100%;
    height: clamp(132px,29dvh,250px);
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 9px;
    background: #ede7e0;
}
.writing-reel-page .paper-art-note .community-paper-art { height: clamp(115px,24dvh,205px) }
.writing-reel-page .community-paper-art:not(:has(.community-paper-image-tile:not([hidden]))) { display: none }
.writing-reel-page:not(.editorial-record-detail) .community-paper-art:has(.community-paper-image-tile:not([hidden])) ~ .community-paper-excerpt { display: none }
.writing-reel-page .community-paper .community-paper-media {
    position: static;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0,1fr);
    gap: 3px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
}
.writing-reel-page .community-paper .community-paper-media:is(.media-count-2,.media-count-3) { grid-template-columns: none }
.writing-reel-page .community-paper .media-count-3:not(:has(.community-paper-image-tile[hidden])) { grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2,minmax(0,1fr)); grid-auto-flow: row }
.writing-reel-page .media-count-3:not(:has(.community-paper-image-tile[hidden])) > :first-child { grid-row: 1/span 2 }
.writing-reel-page .community-paper-image-tile { position: relative; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in }
.writing-reel-page .community-paper-image-tile[hidden] { display: none }
.writing-reel-page .community-paper-image-tile:focus-visible { outline-offset: -3px }
.writing-reel-page .community-paper-media img { min-width: 0; min-height: 0; object-fit: cover }
.writing-reel-page .community-paper-image-count {
    inset: auto 9px 9px auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 0;
    border-radius: 5px;
    background: #211d1bc2;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.writing-reel-page .community-paper-image-count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round }
.writing-reel-page .community-original {
    min-height: 42px;
    gap: 8px;
    padding: 0 4px 0 0;
    border-radius: 4px;
    background: transparent;
    color: var(--writing-accent-text);
    font-size: 14px;
    font-weight: 710;
}
.writing-reel-page .community-original:hover { text-decoration: underline; text-underline-offset: 4px }
.writing-reel-page .community-original svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease }
.writing-reel-page .community-original:hover svg { transform: translateX(3px) }

.writing-reel-page .community-reel-toolbar {
    position: static;
    display: grid;
    align-self: end;
    gap: 4px;
    width: 100%;
    margin-block-end: clamp(16px,6dvh,60px);
}
.writing-reel-page .community-reel-toolbar button {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 3px;
    min-width: 44px;
    min-height: 46px;
    padding: 2px;
    border-radius: 5px;
    color: var(--editorial-muted);
    font-size: 10px;
    white-space: nowrap;
}
.writing-reel-page .community-reel-toolbar button:hover,
.writing-reel-page .community-reel-toolbar button[aria-pressed=true] { color: var(--writing-accent-text) }
.writing-reel-page .community-reel-toolbar button[aria-pressed=true] svg { fill: var(--writing-accent-soft) }
.writing-reel-page .community-reel-toolbar svg { width: 19px; height: 19px }
.writing-reel-page .community-reel-toolbar small { margin-inline-start: 1px; font-size: inherit; font-variant-numeric: tabular-nums }

.writing-reel-page .community-reel-controls {
    position: relative;
    z-index: 3;
    flex: none;
    width: 100%;
    min-height: calc(var(--editorial-controls-height) + env(safe-area-inset-bottom));
    padding: 0 var(--editorial-edge) calc(8px + env(safe-area-inset-bottom));
    background: transparent;
}
.writing-reel-page .community-reel-controls::before {
    position: absolute;
    inset: 0 var(--editorial-edge) auto;
    height: 1px;
    background: var(--editorial-line);
    content: "";
}
.writing-reel-page .community-reel-controls .community-reel-nav {
    position: static;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 3px;
    min-height: 34px;
}
.writing-reel-page .community-reel-nav button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: auto;
    height: auto;
    min-height: 32px;
    padding: 0 2px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--editorial-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 620;
    white-space: nowrap;
}
.writing-reel-page .community-reel-nav button:first-child { justify-self: start }
.writing-reel-page .community-reel-nav button:last-child { justify-self: end }
.writing-reel-page .community-reel-nav button:not(:disabled):hover { color: var(--writing-accent-text) }
.writing-reel-page .community-reel-nav button:disabled { opacity: .36 }
.writing-reel-page .community-reel-nav svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round }
.writing-reel-page .community-reel-hint { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--editorial-muted); line-height: 1.2; text-align: center }
.writing-reel-page .community-reel-hint strong { font-size: 11px; font-weight: 540 }
.writing-reel-page .community-reel-hint small { font-size: 10px }

.writing-reel-page .community-reel-votes { padding: 0; }
.writing-reel-page .community-reel-votes > div { display: flex; align-items: stretch; gap: 0; min-width: 0 }
.writing-reel-page .community-reel-votes > div > button + button { margin-left: 5px }
.writing-reel-page .community-reel-votes button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 41px;
    padding: 3px 4px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 680;
    white-space: nowrap;
}
.writing-reel-page .community-reel-votes .reel-vote-option { flex: 1 1 0; border-color: #eaddd3; background: #fffdfb; color: var(--vote-ink); line-height: 1.15 }
.writing-reel-page .community-reel-votes .side-positive { --vote-ink: #a34225; --vote-hover: #fff0e7; --vote-border: #e6ad95 }
.writing-reel-page .community-reel-votes .side-negative { --vote-ink: #645374; --vote-hover: #f5f0f7; --vote-border: #c6b2d1 }
.writing-reel-page .community-reel-votes .reel-vote-option:not(:disabled):hover { border-color: var(--vote-border); background: var(--vote-hover) }
.writing-reel-page .reel-vote-label, .writing-reel-page .reel-vote-score { display: inline-flex; align-items: center }
.writing-reel-page .reel-vote-label svg { flex: none; width: 12px; height: 12px; margin-right: 3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.writing-reel-page .community-reel-votes .reel-vote-score { margin-left: 5px; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums }
.writing-reel-page .reel-vote-score span + span { margin-left: 3px }
.writing-reel-page .community-reel-votes .community-gift-open { flex: none; min-width: 54px; background: transparent; color: var(--editorial-muted); font-size: 12px }
.writing-reel-page .community-reel-votes .community-gift-open svg { width: 17px; height: 17px; margin-right: 4px }
.writing-reel-page .community-reel-votes.is-voted .reel-vote-option { opacity: 1; cursor: default; -webkit-text-fill-color: currentColor }
.writing-reel-page .community-reel-votes.is-voted .reel-vote-option[aria-pressed=true] { border-color: var(--vote-ink); background: var(--vote-ink); color: #fff; box-shadow: none }
.writing-reel-page .community-reel-votes.is-voted .reel-vote-option[aria-pressed=false] { border-color: #e9e2dc; background: #f7f3ef; color: #655d58; box-shadow: none }
.writing-reel-page .community-reel-votes .community-gift-open:hover,
.writing-reel-page .community-reel-votes.is-voted .community-gift-open { color: var(--writing-accent-text) }
@media (max-width: 370px) {
    .writing-reel-page .community-reel-votes .reel-vote-option { flex-direction: column }
    .writing-reel-page .community-reel-votes .reel-vote-score { margin: 2px 0 0 }
}
@media (max-width: 290px) {
    .writing-reel-page .community-reel-votes .reel-vote-option { font-size: 11px }
    .writing-reel-page .reel-vote-label svg { width: 10px; height: 10px }
}

.writing-reel-page :is(.community-reel-topbar,.community-reel-controls,.community-reel-card) :is(a,button):focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px }

.writing-reel-page .editorial-vote-feedback {
    position: absolute;
    z-index: 6;
    top: calc((100% - var(--editorial-controls-height) - env(safe-area-inset-bottom)) / 2);
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 6px;
    width: min(64vw,220px);
    transform: translate(-50%,-50%);
    animation: editorial-vote-appear 190ms ease-out both;
    color: var(--writing-accent-text);
    text-align: center;
    pointer-events: none;
}
.writing-reel-page .editorial-vote-feedback img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(25dvh,155px); object-fit: contain }
.writing-reel-page .editorial-vote-feedback img[hidden] { display: none }
.writing-reel-page .editorial-vote-feedback strong { padding: 6px 11px; border: 1px solid #f3e8e2; border-radius: 8px; background: #fff; color: inherit; font-size: 13px; font-weight: 720 }
.writing-reel-page .editorial-vote-feedback.is-rewrite { color: var(--editorial-negative) }
@keyframes editorial-vote-appear {
    from { opacity: 0; transform: translate(-50%,-46%) scale(.94) }
    to { opacity: 1; transform: translate(-50%,-50%) scale(1) }
}
@media (prefers-reduced-motion: reduce) {
    .writing-reel-page .editorial-vote-feedback { animation: none }
    .writing-reel-page .community-original svg { transition: none }
}

.writing-reel-page .reel-blank { flex: 1; padding: 0 var(--editorial-edge) }
.writing-reel-page .community-notice { margin: 12px var(--editorial-edge) 0 }
.writing-reel-page .community-reel-toast { border: 1px solid var(--editorial-line); background: #fff; color: var(--editorial-ink) }

@media (min-width: 720px) {
    .writing-reel-page .community-paper { padding-inline: 20px; }
    .writing-reel-page .community-paper:has(.community-paper-image-tile:not([hidden])) {
        grid-template-columns: minmax(0,1fr) minmax(0,.93fr);
        column-gap: clamp(28px,4vw,58px);
        row-gap: 13px;
    }
    .writing-reel-page .community-paper:has(.community-paper-image-tile:not([hidden])) .community-paper-heading { grid-column: 1; grid-row: 1; align-self: end }
    .writing-reel-page .paper-art-note:has(.community-paper-image-tile:not([hidden])) .community-paper-note { grid-column: 1; grid-row: 1; align-self: end }
    .writing-reel-page .paper-art-note:has(.community-paper-image-tile:not([hidden])) .community-paper-heading { grid-row: 2 }
    .writing-reel-page .community-paper .community-paper-art { grid-column: 2; grid-row: 1/span 2; height: clamp(132px,34dvh,295px); align-self: center }
    .writing-reel-page .paper-art-note .community-paper-art { grid-row: 1/span 3; height: clamp(132px,34dvh,295px) }
    .writing-reel-page .community-reel-toolbar { gap: 9px }
}

@media (max-width: 719px) {
    .writing-community-v3.writing-reel-page { background: linear-gradient(180deg,var(--editorial-masthead),var(--editorial-paper) 55%) }
    .writing-reel-page .community-reel-topbar { background: var(--editorial-masthead) }
    .writing-reel-page .community-reel-card { background: linear-gradient(180deg,var(--editorial-masthead),var(--editorial-paper) 67%) }
    .writing-reel-page .community-reel-card:has(.paper-note) { background: linear-gradient(180deg,var(--editorial-masthead),#faf3ec 31%,var(--editorial-paper) 78%) }
    .writing-reel-page .community-reel-card:has(.paper-art-note) { background: linear-gradient(180deg,var(--editorial-masthead),#f7f5f0 36%,var(--editorial-paper) 76%) }
    .writing-reel-page .community-paper { display: flex; align-items: flex-start; justify-content: flex-start; padding: clamp(12px,2.1dvh,22px) 0 12px }
    .writing-reel-page :is(.community-paper-heading,.community-paper-note,.community-paper-excerpt,.community-original) { flex: none }
    .writing-reel-page .community-paper-art { flex: 0 1 auto; min-height: 56px }
    .writing-reel-page:where(:not(.editorial-record-detail)) .community-paper h2 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4 }
}
@media (max-width: 719px) and (min-height: 621px) {
    .writing-reel-page .community-paper-art { height: clamp(160px,39dvh,320px) }
    .writing-reel-page .paper-art-note .community-paper-art { height: clamp(132px,31dvh,244px) }
    .writing-reel-page .paper-art:has(.long-title) .community-paper-art { height: clamp(135px,31dvh,254px) }
    .writing-reel-page .paper-art-note:has(.long-title) .community-paper-art { height: clamp(120px,22dvh,220px) }
}

@media (max-height: 620px) {
    .writing-community-v3.writing-reel-page { --editorial-topbar-height: 49px; --editorial-controls-height: 80px }
    .writing-reel-page .community-reel-controls .community-reel-nav { min-height: 33px }
    .writing-reel-page .community-reel-votes button { min-height: 38px }
    .writing-reel-page .community-paper { gap: 10px; padding-block: 10px }
    .writing-reel-page .community-paper-heading { gap: 8px }
    .writing-reel-page .community-paper h2 { font-size: clamp(26px,6.8vw,40px) }
    .writing-reel-page .community-paper h2.long-title { font-size: clamp(17px,4.5vw,26px) }
    .writing-reel-page :is(.community-paper-excerpt,.community-paper-note) p { font-size: 14px; line-height: 1.63; -webkit-line-clamp: 3 }
    .writing-reel-page .community-paper:has(.long-title) .community-paper-note p { -webkit-line-clamp: 2 }
    .writing-reel-page .community-paper:has(.long-title) .community-paper-art { height: clamp(77px,18dvh,115px) }
    .writing-reel-page .paper-art-note .community-paper-art { height: clamp(95px,22dvh,134px) }
    .writing-reel-page .community-original { min-height: 37px }
    .writing-reel-page .community-reel-toolbar { margin-block-end: 12px }
}
@media (max-height: 620px) {
    .writing-reel-page .community-paper h2:not(.long-title) { font-size: clamp(23px,min(6.8vw,6.8dvh),37px) }
    .writing-reel-page:where(:not(.editorial-record-detail)) .community-paper h2 { -webkit-line-clamp: 3 }
}
@media (max-height: 510px) and (max-width: 599px) {
    .writing-reel-page .community-paper { gap: 8px }
    .writing-reel-page .community-paper h2.long-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4 }
    .writing-reel-page .community-paper-excerpt p { -webkit-line-clamp: 2 }
    .writing-reel-page .paper-art-note h2.long-title { -webkit-line-clamp: 2 }
    .writing-reel-page .community-paper.paper-art-note .community-paper-note p { -webkit-line-clamp: 1 }
    .writing-reel-page .paper-art-note .community-paper-note-more { min-height: 24px }
    .writing-reel-page .paper-art-note .community-paper-art { height: 75px }
}
@media (max-height: 510px) and (max-width: 719px) {
    .writing-reel-page .community-paper { gap: 8px }
    .writing-reel-page:where(:not(.editorial-record-detail)) .paper-art-note h2,
    .writing-reel-page:where(:not(.editorial-record-detail)) .paper-art-note h2.long-title { -webkit-line-clamp: 2 }
}
@media (max-height: 445px) {
    .writing-community-v3.writing-reel-page { --editorial-topbar-height: 45px; --editorial-controls-height: 75px }
    .writing-reel-page .community-reel-controls { padding-bottom: calc(4px + env(safe-area-inset-bottom)) }
    .writing-reel-page .community-reel-toolbar { gap: 2px; margin-block-end: 6px }
    .writing-reel-page .community-reel-toolbar button { min-height: 38px }
    .writing-reel-page .community-paper h2.long-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3 }
    .writing-reel-page .community-paper h2:not(.long-title) { font-size: clamp(24px,4vw,31px) }
    .writing-reel-page .community-paper.paper-art-note h2:not(.long-title) { font-size: clamp(23px,3.8vw,29px) }
    .writing-reel-page .community-paper.paper-art-note h2.long-title { -webkit-line-clamp: 2 }
    .writing-reel-page :is(.community-paper-excerpt,.community-paper-note) p { -webkit-line-clamp: 2 }
    .writing-reel-page .community-paper.paper-art-note .community-paper-note p { -webkit-line-clamp: 1 }
    .writing-reel-page .paper-art-note .community-paper-note-more { min-height: 24px }
    .writing-reel-page .community-paper .community-paper-art { height: clamp(78px,26dvh,120px) }
}
@media (min-width: 600px) and (max-height: 445px) {
    .writing-reel-page :is(.paper-note,.paper-text) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 24px }
    .writing-reel-page .paper-note .community-paper-note,
    .writing-reel-page .paper-text .community-paper-excerpt { grid-column: 2; grid-row: 1/span 2; align-self: center }
}
@media (min-width: 1040px) {
    .writing-community-v3.writing-reel-page { --editorial-controls-height: 62px }
    .writing-reel-page .community-reel-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: env(safe-area-inset-bottom) }
    .writing-reel-page .community-reel-controls .community-reel-nav { order: 2; min-width: 225px }
    .writing-reel-page .community-reel-votes { flex: 1; max-width: 440px }
}

.writing-editorial-drawer-open,
.writing-editorial-drawer-open body { overflow: hidden !important }
.community-editorial-backdrop {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background: rgba(28,23,42,.52);
}
.community-editorial-backdrop .community-drawer {
    width: 100%;
    max-width: 570px;
    max-height: 82vh;
    max-height: min(82vh,780px);
    max-height: min(82dvh,780px);
    padding: 0 17px 20px;
    padding-bottom: max(20px,env(safe-area-inset-bottom,0px));
    --ink: #272124;
    --muted: #6c6468;
    --line: #eee8e4;
    color: var(--ink);
}
.community-editorial-backdrop .community-original-drawer {
    height: 92vh;
    height: min(92vh,860px);
    height: min(92dvh,860px);
    max-height: 92%;
    overflow: hidden;
}
.community-editorial-backdrop .community-drawer > header { border-color: var(--line) }
.community-editorial-backdrop .community-drawer-close { flex: none; background: transparent; color: var(--ink) }
.community-editorial-backdrop .community-drawer-close:hover { background: #f6f3f1 }
.community-editorial-backdrop .community-paper-reader { -webkit-overflow-scrolling: touch; overflow-wrap: break-word }
.community-editorial-backdrop .community-paper-reader:not(.night) { padding-left: 4px; padding-right: 12px; background: #fff; color: var(--ink) }
.community-editorial-backdrop .community-paper-reader h3 { font-family: inherit; line-height: 1.4 }

.community-editorial-backdrop[data-editorial-drawer=artwork] { justify-content: center; background: #211c19 }
.community-editorial-backdrop .community-artwork-drawer {
    width: 100%;
    max-width: 960px;
    height: 100vh;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    padding: 0 14px 10px;
    padding: env(safe-area-inset-top) clamp(14px,3vw,30px) max(10px,env(safe-area-inset-bottom));
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
}
.community-editorial-backdrop .community-artwork-drawer > header { min-height: 50px; border: 0; background: transparent; color: inherit }
.community-editorial-backdrop .community-artwork-drawer > header h2 { font-size: 15px; font-weight: 630 }
.community-editorial-backdrop .community-artwork-drawer .community-drawer-close { width: 44px; height: 44px; color: #fff }
.community-editorial-backdrop .community-artwork-drawer .community-drawer-close:hover { background: #ffffff1a }
.editorial-artwork-zoom { min-height: 44px; margin-inline-start: auto; padding: 0 8px; border: 0; background: transparent; color: #fff1e7; font: inherit; font-size: 13px; cursor: pointer }
.editorial-artwork-viewer {
    display: grid;
    flex: 1;
    grid-template: minmax(0,1fr) / minmax(0,1fr);
    min-height: 0;
    margin: 0;
    overflow: hidden;
    place-items: center;
    touch-action: none;
    user-select: none;
}
.editorial-artwork-viewer.is-zoomed { cursor: grab }
.editorial-artwork-viewer.is-panning { cursor: grabbing }
.editorial-artwork-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.editorial-artwork-viewer p { color: #eee4dd; font-size: 14px }
.editorial-artwork-nav { display: flex; flex: none; align-items: center; justify-content: center; gap: 12px; padding-top: 5px }
.editorial-artwork-nav span { min-width: 44px; color: #eedfd6; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center }
.editorial-artwork-nav button { width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 27px; cursor: pointer }
.editorial-artwork-nav button:hover:not(:disabled) { background: #ffffff1a }
.editorial-artwork-nav button:disabled { opacity: .38; cursor: default }
.community-artwork-drawer button:focus-visible { outline: 2px solid #ffe5d3; outline-offset: -2px }
.community-editor-note-full { margin: 0; padding: 16px 4px 8px; color: #393137; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere }

.community-editorial-backdrop[data-editorial-drawer=gifts] { background: rgba(39,33,36,.46) }
.community-editorial-backdrop .community-gift-drawer {
    --gift-gutter: clamp(14px,4vw,24px);
    --gift-ink: #302520;
    --gift-muted: #705f57;
    --gift-surface: #fdf9f6;
    --gift-line: #f1e8e0;
    width: 100%;
    max-width: 570px;
    max-height: calc(100% - 14px);
    max-height: min(calc(100vh - 14px),610px);
    max-height: min(calc(100dvh - 14px),610px);
    padding: 0;
    overflow: hidden;
    border-radius: 21px 21px 0 0;
    background: #fff;
    color: var(--gift-ink);
    box-shadow: 0 -14px 55px #3a2b2226;
}
.community-editorial-backdrop .community-gift-drawer > header {
    position: static;
    min-height: 56px;
    padding: 0 var(--gift-gutter);
    border: 0;
    background: linear-gradient(180deg,#fff7f0,#fff 98%);
}
.community-gift-drawer > header h2 { color: var(--gift-ink); font-size: 20px; font-weight: 760; line-height: 1.3 }
.community-gift-drawer .community-drawer-close { width: 38px; height: 38px; font-size: 23px; line-height: 1; color: var(--gift-ink) }
.community-gift-drawer > .community-drawer-message { margin: 0 var(--gift-gutter) 12px }
.community-gift-tabs {
    display: grid;
    flex: none;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px;
    margin: 0 var(--gift-gutter) 7px;
    padding: 4px;
    border-radius: 12px;
    background: #f8f1eb;
}
.community-gift-tabs button {
    min-height: 35px;
    padding: 3px 5px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--gift-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 690;
    line-height: 1.25;
    cursor: pointer;
}
.community-gift-tabs button[aria-pressed=true] { border-color: #ffe4d4; background: #fff; color: var(--writing-accent-text); box-shadow: 0 1px 3px #6536190a }
.community-gift-tabs button:not(:disabled):not([aria-pressed=true]):hover { background: #fff9f5; color: var(--writing-accent-text) }
.community-gift-tabs button:disabled { cursor: wait }
.community-gift-shelf {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px var(--gift-gutter) 14px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ead9cf transparent;
}
.community-gift-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px }
.community-gift-tile {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    min-height: clamp(92px,25vw,114px);
    padding: 7px 3px;
    border: 1px solid var(--gift-line);
    border-radius: 12px;
    background: var(--gift-surface);
    color: var(--gift-ink);
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.community-gift-tile:not(:disabled):hover { border-color: #f3c8b0; background: #fff4ea }
.community-gift-tile[aria-pressed=true] { border-color: #ed855e; background: #fff0e6; box-shadow: inset 0 0 0 1px #ed855e }
.community-gift-tile:disabled { cursor: wait }
.community-gift-tile img { display: block; width: clamp(48px,15vw,66px); height: clamp(48px,15vw,66px); object-fit: contain }
.community-gift-tile img[hidden] { display: none }
.community-gift-tile strong { max-width: 100%; font-size: 13px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere }
.community-gift-tile-meta { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 3px; color: var(--gift-muted); font-size: 10px; line-height: 1.35; white-space: nowrap }
.community-gift-tile-meta > span:last-child { color: var(--writing-accent-text); font-weight: 720 }
.community-gift-empty { margin: 0; padding: 24px 4px; color: var(--gift-muted); font-size: 13px; text-align: center }
.community-gift-footer {
    flex: none;
    padding: 10px var(--gift-gutter) 12px;
    padding: 10px var(--gift-gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gift-line);
    background: #fff;
    box-shadow: 0 -4px 14px #47291008;
}
.community-gift-checkout { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px }
.community-gift-balance { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--gift-muted,#6c6468); font-size: 12px; line-height: 1.35 }
.community-gift-balance strong { color: var(--writing-accent-text); font-size: 13px; font-variant-numeric: tabular-nums }
.community-gift-summary { display: grid; gap: 3px; min-width: 0; line-height: 1.35; overflow-wrap: anywhere }
.community-gift-summary strong { color: var(--gift-ink); font-size: 14px; font-weight: 750 }
.community-gift-summary small { color: var(--gift-muted); font-size: 11px }
.community-gift-send {
    min-width: 105px;
    min-height: 44px;
    padding: 6px 13px;
    border: 0;
    border-radius: 22px;
    background: var(--primary-color,#ff6b35);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 770;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    text-shadow: 0 1px 2px #7e30146b;
}
.community-gift-send:not(:disabled):hover { background: var(--primary-dark,#e55a2b) }
.community-gift-send:disabled { background: #f2eae4; color: #796b63; text-shadow: none; cursor: default }
.community-gift-error { margin: 0 0 8px; padding: 7px 9px; border-radius: 7px; background: #fff1e7; color: #973918; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere }
.community-gift-drawer button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px }

.writing-reel-page .editorial-gift-feedback {
    position: absolute;
    z-index: 7;
    top: calc((100% - var(--editorial-controls-height) - env(safe-area-inset-bottom)) / 2);
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 7px;
    width: min(74vw,310px);
    transform: translate(-50%,-50%);
    color: var(--writing-accent-text);
    text-align: center;
    pointer-events: none;
    animation: editorial-gift-appear 360ms cubic-bezier(.19,1,.22,1) both;
}
.writing-reel-page .editorial-gift-art {
    position: relative;
    isolation: isolate;
    display: grid;
    width: clamp(93px,26vw,154px);
    max-width: 35dvh;
    aspect-ratio: 1;
    place-items: center;
}
.writing-reel-page .editorial-gift-art::before {
    position: absolute;
    z-index: -1;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle,#ffd6a2ec 7%,#ffbd7e6b 49%,#ffdeae00 70%);
    content: "";
}
.writing-reel-page .editorial-gift-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px #5727113a) }
.writing-reel-page .editorial-gift-art img[hidden] { display: none }
.writing-reel-page .editorial-gift-receipt {
    display: grid;
    gap: 3px;
    max-width: 100%;
    padding: 10px 15px;
    border: 1px solid #ffdac2;
    border-radius: 17px;
    background: #fffaf5;
    box-shadow: 0 6px 24px #59301826;
    overflow-wrap: anywhere;
}
.writing-reel-page .editorial-gift-receipt strong { font-size: 15px; font-weight: 790; line-height: 1.25 }
.writing-reel-page .editorial-gift-receipt small { color: #65534b; font-size: 12px; font-weight: 620; line-height: 1.35 }
.writing-reel-page .editorial-gift-feedback.is-rewrite { color: var(--editorial-negative) }
.writing-reel-page .editorial-gift-feedback.is-rewrite .editorial-gift-art::before { background: radial-gradient(circle,#efdefbec 7%,#daabf775 49%,#ead2f700 70%) }
.writing-reel-page .editorial-gift-feedback.is-rewrite .editorial-gift-receipt { border-color: #e9d8f4; background: #fdf9ff }
@keyframes editorial-gift-appear {
    from { opacity: 0; transform: translate(-50%,-35%) scale(.82) }
    to { opacity: 1; transform: translate(-50%,-50%) scale(1) }
}
@media (prefers-reduced-motion: reduce) {
    .writing-reel-page .editorial-gift-feedback { animation: none }
}

@media (min-width: 720px) {
    .community-editorial-backdrop { justify-content: center }
    .community-editorial-backdrop .community-drawer { border-radius: 16px }
    .community-editorial-backdrop .community-original-drawer { width: calc(100% - 48px); max-width: 720px; height: 84vh; height: min(84dvh,780px); max-height: 780px; padding-inline: clamp(22px, 4vw, 36px) }
    .community-editorial-backdrop .community-gift-drawer { width: calc(100% - 40px); max-width: 560px; border-radius: 19px; box-shadow: 0 18px 70px #30231e36 }
}
@media (max-height: 410px) {
    .community-editorial-backdrop .community-gift-drawer > header { min-height: 46px }
    .community-gift-tabs { margin-bottom: 3px }
    .community-gift-tabs button { min-height: 30px }
    .community-gift-shelf { padding-block: 5px 8px }
    .community-gift-tile { min-height: 84px; padding-block: 5px }
    .community-gift-tile img { width: 47px; height: 47px }
    .community-gift-footer { padding-block: 7px calc(7px + env(safe-area-inset-bottom)) }
    .community-gift-send { min-height: 38px }
}

/* Manuscript records */
.writing-community-v3.editorial-records-page {
    --record-rule: #eee9e3;
    --record-muted: #706660;
    width: 100%;
    max-width: 780px;
    min-height: 100dvh;
    margin-inline: auto;
    padding: 0 clamp(18px,4.8vw,36px) 34px;
    color: #29231f;
}
.editorial-records-page .writing-activity-header { margin-inline: 0 }
.editorial-records-page .profile-flat-header-inner { grid-template-columns: 44px minmax(0,1fr) 44px; padding-inline: 0 }
.writing-community-v3.editorial-records-page .profile-flat-header h1 { font-size: 18px }
.editorial-record-submit,
.editorial-record-empty-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--writing-accent-text);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
.editorial-records-page .writing-activity-tabs {
    position: sticky;
    top: 52px;
    z-index: 31;
    gap: 25px;
    padding-inline: 0;
    border-color: var(--record-rule);
    background: #fff;
}
.editorial-records-page .writing-activity-tabs a { min-height: 45px; padding-inline: 0 }
.editorial-record-list { display: grid; }
.editorial-record-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 14px;
    align-items: center;
    gap: clamp(8px,2.5vw,17px);
    min-height: 98px;
    padding-block: 16px;
    border-bottom: 1px solid var(--record-rule);
    color: inherit;
    text-decoration: none;
    scroll-margin-block-start: 100px;
}
.editorial-record-row:last-child { border-bottom-color: transparent }
.editorial-record-row:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px }
.editorial-record-row:hover h2 { color: var(--writing-accent-text) }
.editorial-record-copy { min-width: 0 }
.editorial-record-meta,
.editorial-record-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--record-muted); font-size: 11px }
.editorial-record-meta { margin-bottom: 5px }
.editorial-record-meta time { font-variant-numeric: tabular-nums }
.editorial-record-vote { color: var(--writing-accent-text); font-weight: 650 }
.editorial-record-vote.is-rewrite { color: #645374 }
.writing-community-v3.editorial-records-page .editorial-record-row h2 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: clamp(16px,4.4vw,19px);
    font-weight: 700;
    line-height: 1.42;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.editorial-record-excerpt {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--record-muted);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.editorial-record-metrics { margin-top: 7px }
.editorial-record-thumbnail {
    display: block;
    width: clamp(55px,18vw,100px);
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    object-fit: cover;
}
.editorial-record-thumbnail[hidden] { display: none }
.editorial-record-arrow {
    grid-column: 3;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--record-muted);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.editorial-records-page .community-blank { gap: 6px; border: 0; background: transparent; box-shadow: none }
.editorial-records-page .writing-button.community-more { border-color: var(--record-rule); background: transparent; color: var(--record-muted); font-size: 13px }

.writing-community-v3.writing-reel-page.editorial-record-detail { --editorial-controls-height: 62px }
.editorial-record-detail .writing-activity-header { position: relative; flex: none; margin-inline: 0; background: var(--editorial-paper) }
.editorial-record-detail .profile-flat-header-inner {
    max-width: none;
    min-height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--editorial-edge) 0;
}
.writing-reel-page.editorial-record-detail .profile-flat-header h1 { font-size: 17px; letter-spacing: .015em }
.writing-reel-page.editorial-record-detail .community-reel { scroll-snap-type: none }
.editorial-record-detail .community-reel-card { min-height: 100%; height: auto; overflow: visible; scroll-snap-align: none }
.editorial-record-detail .community-reel-stage {
    grid-template-rows: auto;
    align-items: start;
    height: auto;
    padding-block: clamp(23px,5dvh,45px) 28px;
}
.writing-reel-page.editorial-record-detail .community-paper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(13px,2.1dvh,22px);
    padding: 0;
}
.editorial-record-detail .community-paper-heading { order: -1; gap: 10px }
.writing-reel-page.editorial-record-detail .community-paper h2:not(.long-title) { font-size: clamp(27px,7.4vw,44px); line-height: 1.26 }
.writing-reel-page.editorial-record-detail .community-paper h2.long-title { display: block; overflow: visible; font-size: clamp(22px,5.5vw,33px); line-height: 1.34 }
.writing-reel-page.editorial-record-detail .community-paper-art { align-self: stretch; height: clamp(132px,33vw,315px) }
.writing-reel-page.editorial-record-detail .community-reel-toolbar {
    position: sticky;
    top: 14px;
    align-self: start;
    gap: 4px;
    margin-block: 0;
}
.editorial-record-detail .community-original { margin-top: 2px }
.writing-reel-page.editorial-record-detail .community-reel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--editorial-controls-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
}
.editorial-record-detail .community-reel-votes { align-self: center; width: min(100%,520px); max-width: none }

@media (max-width: 719px) {
    .editorial-record-detail .writing-activity-header { background: var(--editorial-masthead) }
    .editorial-record-detail .community-reel-stage { padding-block-start: clamp(12px,2.1dvh,22px) }
}
