:root {
    --lazy-catalog-unlocked: #278a52;
    --lazy-catalog-open-action: var(--qk-reader-accent, #3d9a93);
    --lazy-catalog-open-action-hover: var(--qk-accent-hover, #2f7d77);
}

.post-show-page,
.chapter-reading-page {
    --shell-border: var(--qk-reader-line, rgba(15, 23, 42, .12));
    --shell-ink: var(--qk-reader-text, #1e293b);
    --shell-muted: var(--qk-reader-muted, #64748b);
    --shell-card: var(--qk-reader-paper, #ffffff);
    --shell-accent: var(--qk-reader-accent, #3d9a93);
    --shell-accent-hover: var(--qk-accent-hover, #2f7d77);
    --shell-accent-soft: color-mix(in srgb, var(--qk-reader-accent, #3d9a93) 12%, transparent);
    --shell-sage: #278a52;
    --shell-rose-100: color-mix(in srgb, var(--qk-reader-accent, #3d9a93) 8%, transparent);
    --shell-rose-800: #a84652;
}

.lazy-catalog-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lazy-catalog-list-item {
    border-top: 1px dashed var(--shell-border, #eadfdc);
}

.lazy-catalog-list-item:first-child {
    border-top: 0;
}

.lazy-catalog-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 7px 0;
    text-align: left;
}

a.lazy-catalog-row {
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.lazy-catalog-title-button {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.lazy-catalog-title-button:disabled {
    cursor: wait;
    opacity: .72;
}

.lazy-catalog-number {
    flex: 0 0 auto;
    min-width: 32px;
    color: var(--shell-muted, #8a7a7e);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lazy-catalog-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.lazy-catalog-title {
    display: block;
    overflow: hidden;
    color: var(--shell-ink, #2a2224);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lazy-catalog-row:hover .lazy-catalog-title,
.lazy-catalog-row:focus-within .lazy-catalog-title {
    color: var(--shell-accent, #c97882);
}

.lazy-catalog-time {
    flex: 0 0 auto;
    color: var(--shell-muted, #8a7a7e);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.lazy-catalog-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: var(--shell-muted, #8a7a7e);
    font-size: 11px;
    white-space: nowrap;
}

.lazy-catalog-state svg {
    width: 13px;
    height: 13px;
}

.lazy-catalog-state.is-ready {
    color: #3f8d5d;
}

.lazy-catalog-state.is-failed {
    color: #c86b45;
}

.lazy-catalog-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 0;
}

.lazy-catalog-lock-button,
.lazy-catalog-confirm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .15s ease;
}

.lazy-catalog-lock-button {
    width: 24px;
    height: 24px;
    color: var(--shell-muted, #8a7a7e);
}

.lazy-catalog-lock-button svg,
.lazy-catalog-open-icon svg {
    width: 15px;
    height: 15px;
}

.lazy-catalog-lock-button:hover:not(:disabled),
.lazy-catalog-lock-button:focus-visible:not(:disabled) {
    color: var(--lazy-catalog-open-action);
}

.lazy-catalog-lock-button:disabled,
.lazy-catalog-confirm-button:disabled {
    cursor: wait;
    opacity: .62;
}

.lazy-catalog-open-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--lazy-catalog-unlocked);
}

.lazy-catalog-quote {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.lazy-catalog-quote[hidden] {
    display: none !important;
}

.lazy-catalog-price {
    color: var(--shell-accent, #c97882);
    font-size: 12px;
    font-weight: 700;
}

.lazy-catalog-confirm-button {
    min-height: 26px;
    padding: 0 2px;
    border-bottom: 1px solid currentColor;
    color: var(--lazy-catalog-open-action);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.lazy-catalog-confirm-button:hover:not(:disabled),
.lazy-catalog-confirm-button:focus-visible:not(:disabled) {
    background: transparent;
    color: var(--lazy-catalog-open-action-hover);
}

.lazy-catalog-confirm-button:hover:not(:disabled) {
    transform: none;
}

.lazy-catalog-confirm-button:focus-visible:not(:disabled) {
    outline: 2px solid rgba(70, 98, 210, .34);
    outline-offset: 2px;
}

.lazy-catalog-message {
    color: var(--shell-muted, #8a7a7e);
    font-size: 11px;
    white-space: nowrap;
}

.lazy-catalog-message:empty {
    display: none;
}

.lazy-catalog-message.is-error {
    color: #c86b45;
}

.lazy-catalog-batch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 8px;
    color: var(--shell-muted, #8a7a7e);
    font-size: 12px;
}

.lazy-catalog-batch-toggle,
.lazy-catalog-batch-chip,
.lazy-catalog-batch-quote-button,
.lazy-catalog-batch-confirm {
    min-height: 28px;
    margin: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.lazy-catalog-batch-toggle {
    color: var(--lazy-catalog-open-action);
}

.lazy-catalog-batch-toggle.is-active {
    color: var(--lazy-catalog-open-action-hover);
}

.lazy-catalog-batch-panel {
    display: inline-flex;
    align-items: center;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 6px;
}

.lazy-catalog-batch-panel[hidden] {
    display: none !important;
}

.lazy-catalog-batch-chip,
.lazy-catalog-batch-quote-button {
    padding: 0 6px;
    color: var(--shell-muted, #8a7a7e);
}

.lazy-catalog-batch-chip:hover,
.lazy-catalog-batch-chip:focus-visible,
.lazy-catalog-batch-quote-button:hover:not(:disabled),
.lazy-catalog-batch-quote-button:focus-visible:not(:disabled) {
    color: var(--lazy-catalog-open-action);
}

.lazy-catalog-batch-input {
    width: 48px;
    min-height: 28px;
    padding: 0 3px;
    border: 0;
    border-bottom: 1px solid var(--shell-border, #eadfdc);
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 12px;
    text-align: center;
    outline: 0;
}

.lazy-catalog-batch-input:focus {
    border-bottom-color: var(--lazy-catalog-open-action);
}

.lazy-catalog-batch-quote-button:disabled {
    cursor: default;
    opacity: .52;
}

.lazy-catalog-batch-price {
    color: var(--shell-accent, #c97882);
    font-weight: 700;
    white-space: nowrap;
}

.lazy-catalog-batch-confirm {
    padding: 0 2px;
    border-bottom: 1px solid currentColor;
    color: var(--lazy-catalog-open-action);
    white-space: nowrap;
}

.lazy-catalog-batch-confirm:hover:not(:disabled),
.lazy-catalog-batch-confirm:focus-visible:not(:disabled) {
    background: transparent;
    color: var(--lazy-catalog-open-action-hover);
}

.lazy-catalog-batch-confirm:disabled {
    cursor: wait;
    opacity: .65;
}

.lazy-catalog-batch-message {
    color: var(--shell-muted, #8a7a7e);
    font-size: 11px;
}

.lazy-catalog-batch-message.is-error {
    color: #c86b45;
}

.lazy-catalog-select {
    display: none;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--lazy-catalog-open-action);
    cursor: pointer;
}

.lazy-catalog-list.is-selecting .lazy-catalog-select {
    display: block;
}

@media (min-width: 768px) {
    .lazy-catalog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(var(--lazy-catalog-column-rows, 25), auto);
        grid-auto-flow: column;
        column-gap: 24px;
    }

    .lazy-catalog-list-item:nth-child(26) {
        border-top: 0;
    }
}

@media (max-width: 575px) {
    .lazy-catalog-row {
        gap: 7px;
        padding: 6px 0;
    }

    .lazy-catalog-number {
        min-width: 28px;
    }

    .lazy-catalog-title {
        font-size: 13px;
    }

    .lazy-catalog-actions {
        gap: 3px;
    }

    .lazy-catalog-quote {
        gap: 5px;
    }

    .lazy-catalog-list-item.is-quoted .lazy-catalog-message:not(.is-error) {
        display: none;
    }

    .lazy-catalog-lock-button,
    .lazy-catalog-open-icon {
        width: 28px;
        height: 28px;
    }

    .lazy-catalog-confirm-button {
        min-height: 28px;
        padding: 0 2px;
    }

    .lazy-catalog-batch {
        gap: 4px 6px;
        margin-bottom: 7px;
    }

    .lazy-catalog-batch-panel {
        gap: 4px;
    }

    .lazy-catalog-batch-input {
        width: 42px;
    }
}

body.dark .lazy-catalog-list-item {
    border-color: var(--shell-border, rgba(255,255,255,.08));
}

body.dark .lazy-catalog-title {
    color: var(--shell-ink, #f4eaef);
}

body.dark .lazy-catalog-lock-button {
    color: #b9a8b2;
}

body.dark .lazy-catalog-open-icon {
    color: #75c98e;
}

body.dark .lazy-catalog-confirm-button {
    background: transparent;
    color: #a5b5ff;
}

body.dark .lazy-catalog-confirm-button:hover:not(:disabled),
body.dark .lazy-catalog-confirm-button:focus-visible:not(:disabled) {
    background: transparent;
    color: #d0d7ff;
}

body.dark .lazy-catalog-batch-confirm {
    background: transparent;
    color: #a5b5ff;
}

body.dark .lazy-catalog-batch-confirm:hover:not(:disabled),
body.dark .lazy-catalog-batch-confirm:focus-visible:not(:disabled) {
    background: transparent;
    color: #d0d7ff;
}

/* Reader navigation: keep locked next-chapter actions compact and usable. */
.chapter-reading-page .chapter-route-card--lazy {
    gap: 5px !important;
    cursor: pointer;
}

.chapter-reading-page .chapter-route-card--lazy.is-processing {
    cursor: wait;
}

.chapter-reading-page .chapter-route-lazy-trigger {
    min-width: 0;
    cursor: pointer;
}

.chapter-reading-page .chapter-route-lazy-trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--lazy-catalog-open-action) 42%, transparent);
    outline-offset: 2px;
    border-radius: 5px;
}

.chapter-reading-page .chapter-route-lazy-actions,
.chapter-reading-page .chapter-route-lazy-quote {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    white-space: nowrap;
}

.chapter-reading-page .chapter-route-lazy-actions {
    flex: 0 0 auto;
    gap: 4px;
}

.chapter-reading-page .chapter-route-lazy-quote {
    gap: 5px;
}

.chapter-reading-page .chapter-route-lazy-quote[hidden] {
    display: none !important;
}

.chapter-reading-page .chapter-route-lazy-message,
.chapter-reading-page .chapter-route-lazy-state {
    color: var(--shell-muted, #64748b);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.chapter-reading-page .chapter-route-lazy-message:empty {
    display: none;
}

.chapter-reading-page .chapter-route-lazy-message.is-error {
    color: #c86b45;
}

.chapter-reading-page .chapter-route-lazy-message.lazy-catalog-state,
.chapter-reading-page .chapter-route-lazy-state {
    color: var(--lazy-catalog-open-action);
}

.chapter-reading-page .chapter-route-lazy-price {
    color: var(--shell-accent, var(--lazy-catalog-open-action));
    font-size: 12px;
    font-weight: 700;
}

.chapter-reading-page .chapter-route-lazy-lock,
.chapter-reading-page .chapter-route-lazy-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, opacity .15s ease;
}

.chapter-reading-page .chapter-route-lazy-lock {
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--shell-muted, #64748b);
}

.chapter-reading-page .chapter-route-lazy-lock svg {
    width: 15px;
    height: 15px;
}

.chapter-reading-page .chapter-route-lazy-lock:hover:not(:disabled),
.chapter-reading-page .chapter-route-lazy-lock:focus-visible:not(:disabled),
.chapter-reading-page .chapter-route-lazy-confirm:hover:not(:disabled),
.chapter-reading-page .chapter-route-lazy-confirm:focus-visible:not(:disabled) {
    color: var(--lazy-catalog-open-action-hover);
}

.chapter-reading-page .chapter-route-lazy-confirm {
    min-height: 26px;
    padding: 0 2px;
    border-bottom: 1px solid currentColor;
    color: var(--lazy-catalog-open-action);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.chapter-reading-page .chapter-route-lazy-lock:disabled,
.chapter-reading-page .chapter-route-lazy-confirm:disabled {
    cursor: wait;
    opacity: .62;
}

@media (max-width: 575px) {
    .chapter-reading-page .chapter-route-card--lazy {
        gap: 3px !important;
    }

    .chapter-reading-page .chapter-route-lazy-message:not(.is-error) {
        display: none;
    }

    .chapter-reading-page .chapter-route-lazy-lock {
        width: 24px;
        height: 24px;
    }
}

/* Reader TOC: give dense catalog rows clear rhythm without adding cards. */
.chapter-toc-panel .lazy-catalog-batch {
    gap: 6px;
    min-height: 42px;
    margin: 0;
    padding: 8px 12px 7px;
    border-bottom: 1px solid var(--shell-border, #eadfdc);
}

.chapter-toc-panel .lazy-catalog-batch-toggle {
    min-height: 27px;
    padding: 0 1px;
    border-bottom: 1px solid currentColor;
    color: var(--lazy-catalog-open-action);
    font-weight: 700;
}

.chapter-toc-panel .lazy-catalog-batch-panel {
    padding-top: 2px;
}

.chapter-toc-panel .lazy-catalog-list {
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 0 11px;
    padding: 3px 0 9px;
}

.chapter-toc-panel .lazy-catalog-list-item {
    border-color: rgba(42, 34, 36, .07);
}

.chapter-toc-panel .lazy-catalog-list-item:first-child {
    border-top: 0;
}

.chapter-toc-panel .lazy-catalog-list-item:nth-child(n + 2) {
    border-top: 1px solid rgba(42, 34, 36, .07);
}

.chapter-toc-panel .lazy-catalog-row {
    box-sizing: border-box;
    width: 100%;
    min-height: 51px;
    padding: 10px 2px;
    column-gap: 9px;
}

.chapter-toc-panel .lazy-catalog-row--ready,
.chapter-toc-panel .lazy-catalog-row--locked {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr) max-content 28px;
    grid-template-areas: "number title time actions";
    align-items: center;
}

.chapter-toc-panel .lazy-catalog-row--busy {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr) max-content;
    grid-template-areas:
        "number title state"
        "number title time";
    align-items: center;
    row-gap: 1px;
}

.chapter-toc-panel .lazy-catalog-number {
    grid-area: number;
    min-width: 0;
    color: var(--shell-muted, #8a7a7e);
    font-size: 11px;
    font-weight: 700;
}

.chapter-toc-panel .lazy-catalog-title-wrap,
.chapter-toc-panel .lazy-catalog-title-button {
    grid-area: title;
}

.chapter-toc-panel .lazy-catalog-title-button {
    width: 100%;
}

.chapter-toc-panel .lazy-catalog-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.42;
}

.chapter-toc-panel .lazy-catalog-time {
    grid-area: time;
    max-width: 72px;
    overflow: hidden;
    color: var(--shell-muted, #8a7a7e);
    font-size: 10.5px;
    text-overflow: ellipsis;
}

.chapter-toc-panel .lazy-catalog-state {
    grid-area: state;
    justify-self: end;
    font-size: 10.5px;
}

.chapter-toc-panel .lazy-catalog-actions,
.chapter-toc-panel .lazy-catalog-open-icon {
    grid-area: actions;
    justify-self: end;
}

.chapter-toc-panel .lazy-catalog-lock-button,
.chapter-toc-panel .lazy-catalog-open-icon {
    width: 28px;
    height: 28px;
}

.chapter-toc-panel .lazy-catalog-list.is-selecting .lazy-catalog-row--locked {
    grid-template-columns: 37px 16px minmax(0, 1fr) max-content 28px;
    grid-template-areas: "number select title time actions";
}

.chapter-toc-panel .lazy-catalog-select {
    grid-area: select;
}

.chapter-toc-panel .chapter-list-pagination {
    margin: 0;
    padding: 9px 12px 11px !important;
}

.chapter-toc-panel .chapter-list-pagination nav {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 5px !important;
    overflow-x: auto;
    padding: 0 1px;
    scrollbar-width: none;
}

.chapter-toc-panel .chapter-list-pagination nav::-webkit-scrollbar {
    display: none;
}

.chapter-toc-panel .chapter-page-btn,
.chapter-toc-panel .chapter-page-ellipsis {
    flex: 0 0 auto;
}

body.dark .chapter-toc-panel .lazy-catalog-batch,
body.dark .chapter-toc-panel .lazy-catalog-list-item:nth-child(n + 2) {
    border-color: rgba(255, 255, 255, .08);
}

@media (max-width: 375px) {
    .chapter-toc-panel .lazy-catalog-list {
        margin-right: 8px;
        margin-left: 8px;
    }

    .chapter-toc-panel .lazy-catalog-row--ready,
    .chapter-toc-panel .lazy-catalog-row--locked {
        grid-template-columns: 33px minmax(0, 1fr) max-content 26px;
        column-gap: 7px;
    }

    .chapter-toc-panel .lazy-catalog-list.is-selecting .lazy-catalog-row--locked {
        grid-template-columns: 33px 16px minmax(0, 1fr) max-content 26px;
    }

    .chapter-toc-panel .lazy-catalog-time {
        max-width: 61px;
        font-size: 10px;
    }
}

/* Latest updates uses lazy catalog too. Keep it visually equal to Quy Khư's
 * regular chapter rows, including quote and unlock states. */
.post-show-page .site-post-latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.post-show-page .site-post-latest-row {
    display: flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    color: var(--shell-ink, #1e293b);
    text-decoration: none;
}

.post-show-page a.site-post-latest-row:hover .site-post-latest-title,
.post-show-page .site-post-latest-row:focus-within .site-post-latest-title {
    color: var(--lazy-catalog-open-action);
}

.post-show-page .site-post-latest-index {
    display: inline-flex;
    width: auto;
    min-width: 20px;
    height: 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--shell-ink, #1e293b) 7%, transparent);
    color: var(--shell-muted, #64748b);
    font-size: 9px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.post-show-page .site-post-latest-title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: var(--qk-link, #44619d);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-show-page button.site-post-latest-title-button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.post-show-page button.site-post-latest-title-button:disabled {
    cursor: wait;
    opacity: .68;
}

.post-show-page .site-post-latest-time {
    flex: 0 0 auto;
    color: var(--shell-muted, #64748b);
    font-size: 10.5px;
    font-style: italic;
    line-height: 1.2;
    white-space: nowrap;
}

.post-show-page .site-post-latest-state,
.post-show-page .site-post-latest-message {
    flex: 0 0 auto;
    color: var(--shell-muted, #64748b);
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.post-show-page .site-post-latest-state::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 4px 1px 0;
    border-radius: 999px;
    background: currentColor;
    content: "";
    opacity: .8;
}

.post-show-page .site-post-latest-message:empty {
    display: none;
}

.post-show-page .site-post-latest-message.is-error {
    color: #c86b45;
}

.post-show-page .site-post-latest-actions,
.post-show-page .site-post-latest-quote {
    display: inline-flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.post-show-page .site-post-latest-quote[hidden] {
    display: none !important;
}

.post-show-page .site-post-latest-lock,
.post-show-page .site-post-latest-confirm,
.post-show-page .site-post-latest-lock svg {
    display: inline-flex;
}

.post-show-page .site-post-latest-lock,
.post-show-page .site-post-latest-confirm {
    min-height: 26px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--shell-muted, #64748b);
    cursor: pointer;
}

.post-show-page .site-post-latest-lock {
    width: 26px;
    height: 26px;
}

.post-show-page .site-post-latest-lock svg {
    width: 15px;
    height: 15px;
}

.post-show-page .site-post-latest-lock.is-unlocked {
    color: var(--lazy-catalog-unlocked);
}

.post-show-page .site-post-latest-lock.is-busy {
    opacity: .65;
}

.post-show-page button.site-post-latest-lock:hover:not(:disabled),
.post-show-page button.site-post-latest-lock:focus-visible:not(:disabled) {
    color: var(--lazy-catalog-open-action);
}

.post-show-page .site-post-latest-price {
    color: var(--shell-accent, #3d9a93);
    font-size: 11.5px;
    font-weight: 750;
    white-space: nowrap;
}

.post-show-page .site-post-latest-confirm {
    padding: 0 2px;
    border-bottom: 1px solid currentColor;
    color: var(--lazy-catalog-open-action);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.post-show-page .site-post-latest-confirm:hover:not(:disabled),
.post-show-page .site-post-latest-confirm:focus-visible:not(:disabled) {
    color: var(--lazy-catalog-open-action-hover);
}

.post-show-page .site-post-latest-lock:focus-visible,
.post-show-page .site-post-latest-confirm:focus-visible,
.post-show-page .site-post-latest-title-button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--lazy-catalog-open-action) 55%, transparent);
    outline-offset: 2px;
}

.post-show-page .site-post-latest-lock:disabled,
.post-show-page .site-post-latest-confirm:disabled {
    cursor: wait;
    opacity: .62;
}

.post-show-page .lazy-catalog-pending {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--shell-muted, #64748b);
    font-size: 13px;
    font-weight: 550;
}

.post-show-page .lazy-catalog-pending svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--lazy-catalog-open-action);
    animation: lazy-catalog-pending-spin 1s linear infinite;
}

.post-show-page .lazy-catalog-list-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: var(--lazy-catalog-open-action);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.post-show-page .lazy-catalog-list-hint svg {
    width: 13px;
    height: 13px;
}

@keyframes lazy-catalog-pending-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .post-show-page .site-post-latest-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .post-show-page .site-post-latest-row {
        min-height: 42px;
        gap: 7px;
        padding: 7px 0;
    }

    .post-show-page .site-post-latest-title {
        font-size: 13px;
    }
}

@media (max-width: 440px) {
    .post-show-page .site-post-latest-row {
        flex-wrap: wrap;
        column-gap: 7px;
        row-gap: 2px;
    }

    .post-show-page .site-post-latest-index {
        align-self: flex-start;
        margin-top: 3px;
    }

    .post-show-page .site-post-latest-title {
        min-width: calc(100% - 58px);
    }

    .post-show-page .site-post-latest-time {
        order: 4;
        margin-left: 27px;
    }

    .post-show-page .site-post-latest-actions {
        margin-left: auto;
    }
}
