/* =============================================================================
   GEEKLY COMMENTS
   Dedicated styles for the comment section, nested replies, spoiler state,
   composer tools, focused thread dialog and comment menus.
   ============================================================================= */

/* ── Section band ─────────────────────────────────────────────────────────── */
.geekly-comments {
    overflow: hidden;
    margin-left: -16px;
    margin-right: -16px;
    margin-top: var(--space-12);
    background: var(--clr-bg-elevated);
    border-top: 1px solid var(--clr-border);
    scroll-margin-top: calc(var(--topbar-height) + 16px);
}

@media (min-width: 768px) and (max-width: 1279px) {
    .geekly-comments {
        margin-left: -16px;
        margin-right: -16px;
    }
}

@media (min-width: 1280px) {
    .geekly-comments {
        margin-left: calc(-1 * var(--main-padding-lg, 32px));
        margin-right: calc(-1 * var(--main-padding-lg, 32px));
    }
}

.geekly-comments__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px var(--space-5) 64px;
}

@media (min-width: 768px) {
    .geekly-comments__inner {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

@media (min-width: 1100px) {
    .geekly-comments__inner {
        max-width: 1400px;
        padding-left: calc(40px + 56px + 32px);
        padding-right: 40px;
    }
}

.geekly-cmt,
.geekly-cmt__header,
.geekly-cmt-composer,
.geekly-cmt-thread,
.geekly-cmt-empty,
.geekly-cmt-closed,
.geekly-cmt-guidelines,
.geekly-cmt-pagination {
    max-width: 660px;
}

.geekly-comments__password-notice {
    max-width: 660px;
    margin: 0 auto;
    padding: 24px var(--space-5);
    color: var(--clr-text-muted);
    font-size: var(--text-sm);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.geekly-cmt__header {
    margin-bottom: 24px;
}

.geekly-cmt__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.geekly-cmt-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.geekly-cmt__sub {
    margin: 5px 0 0;
    color: var(--clr-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ── Composer shell ───────────────────────────────────────────────────────── */
.geekly-cmt-composer {
    margin-bottom: 28px;
    padding: 14px 16px;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
}

.geekly-cmt-composer:focus-within:not(:where([data-gk-focus-within="pointer"])) {
    border-color: var(--clr-border-control);
}

.geekly-cmt-composer--guest {
    padding: 12px;
}

.geekly-cmt-guest__prompt {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    color: var(--clr-text-muted);
    background: var(--clr-bg-active);
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
    transition: background 140ms ease, border-color 140ms ease;
}

.geekly-cmt-guest__prompt:hover {
    background: var(--clr-bg-hover);
    border-color: var(--clr-border-control);
}

.geekly-cmt-guest__text {
    flex: 1;
    font-size: 15px;
}

.geekly-cmt-guest__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    color: var(--clr-brand-on-tint);
    background: var(--clr-brand-tint);
    border: 1px solid color-mix(in srgb, var(--clr-brand) 28%, transparent);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.geekly-cmt-guest__note {
    margin: 9px 2px 0 56px;
    color: var(--clr-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.geekly-cmt-guest__note a {
    color: var(--clr-brand-text);
    font-weight: 600;
    text-underline-offset: 3px;
}

.geekly-cmt-guest__note a:hover {
    text-decoration: underline;
}

/* ── Avatars ──────────────────────────────────────────────────────────────── */
.geekly-cmt-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.geekly-cmt-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border);
}

.geekly-cmt-avatar-link {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 50%;
}

a.geekly-cmt-avatar-link:hover {
    opacity: 0.85;
}

/* ── Composer body and toolbar ────────────────────────────────────────────── */
.geekly-cmt-composer__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.geekly-cmt-composer__body {
    flex: 1;
    min-width: 0;
}

.geekly-cmt-editor {
    min-height: 50px;
    padding: 5px 2px 8px;
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.geekly-cmt-editor:empty::before,
.geekly-cmt-reply-box__editor:empty::before,
.geekly-cmt-focus__editor:empty::before {
    content: attr(data-placeholder);
    color: var(--clr-text-muted);
    pointer-events: none;
}

.geekly-cmt-composer__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    row-gap: 8px;
    padding-top: 9px;
    border-top: 1px solid var(--clr-border);
}

.geekly-cmt-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.geekly-comments .geekly-compose__inline-actions,
.geekly-cmt-focus .geekly-compose__inline-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.geekly-comments .geekly-emoji-btn,
.geekly-comments .geekly-gif-btn,
.geekly-cmt-focus .geekly-emoji-btn,
.geekly-cmt-focus .geekly-gif-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 0;
    line-height: 1;
    transition: color 140ms ease, background 140ms ease;
}

.geekly-comments .geekly-emoji-btn:hover,
.geekly-comments .geekly-gif-btn:hover,
.geekly-comments .geekly-emoji-btn[aria-expanded="true"],
.geekly-comments .geekly-gif-btn[aria-expanded="true"],
.geekly-cmt-focus .geekly-emoji-btn:hover,
.geekly-cmt-focus .geekly-gif-btn:hover,
.geekly-cmt-focus .geekly-emoji-btn[aria-expanded="true"],
.geekly-cmt-focus .geekly-gif-btn[aria-expanded="true"] {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-comments .geekly-gif-btn::before,
.geekly-cmt-focus .geekly-gif-btn::before {
    content: "GIF";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 17px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
}

.geekly-comments .geekly-emoji-btn svg,
.geekly-cmt-focus .geekly-emoji-btn svg {
    width: 18px;
    height: 18px;
}

.geekly-cmt-spoiler-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    color: var(--clr-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.geekly-cmt-spoiler-toggle .geekly-icon {
    width: 15px;
    height: 15px;
}

.geekly-cmt-spoiler-toggle:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-spoiler-toggle[aria-pressed="true"] {
    color: var(--clr-brand-on-tint);
    background: color-mix(in srgb, var(--clr-brand) 12%, transparent);
    border-color: color-mix(in srgb, var(--clr-brand) 40%, transparent);
}

.geekly-cmt-spoiler-toggle[aria-pressed="true"]:hover {
    background: color-mix(in srgb, var(--clr-brand) 18%, transparent);
}

.geekly-cmt-composer__submit-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.geekly-cmt-submit {
    min-width: 86px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 17px;
    color: var(--clr-text-muted);
    background: var(--clr-bg-active);
    border: 0;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    transition: color 140ms ease, background 140ms ease;
}

.geekly-cmt-submit:not(:disabled) {
    color: var(--clr-on-brand);
    background: var(--clr-brand-dark);
}

.geekly-cmt-submit:not(:disabled):hover {
    background: var(--clr-brand-fill-hover);
}

.geekly-cmt-submit[aria-busy="true"] {
    color: var(--clr-text-secondary);
    background: var(--clr-bg-active);
    cursor: wait;
}

.geekly-cmt-submit__spinner {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: geekly-cmt-spin 700ms linear infinite;
}

@keyframes geekly-cmt-spin {
    to { transform: rotate(360deg); }
}

.geekly-cmt-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0 52px;
    color: var(--clr-brand-text);
    font-size: 12px;
    line-height: 1.5;
}

.geekly-cmt-error[hidden] {
    display: none;
}

.geekly-cmt-error .geekly-icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
}

/* ── Comment list and rows ────────────────────────────────────────────────── */
.geekly-cmt-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.geekly-cmt-list ol.children,
.geekly-cmt-replies {
    list-style: none;
}

.geekly-cmt-item {
    position: relative;
    padding: 24px 0;
}

.geekly-cmt-item:first-child {
    padding-top: 0;
}

.geekly-cmt-item:last-child {
    padding-bottom: 0;
}

.geekly-cmt-item--posted {
    animation: geekly-cmt-post-in 420ms ease-out;
}

@keyframes geekly-cmt-post-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.geekly-cmt-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.geekly-cmt-avatar-col {
    flex: 0 0 auto;
}

.geekly-cmt-content {
    flex: 1;
    min-width: 0;
}

.geekly-cmt-head {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 24px;
}

.geekly-cmt-author {
    color: var(--clr-text-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-underline-offset: 3px;
}

a.geekly-cmt-author:hover {
    text-decoration: underline;
}

.geekly-cmt-author:is(:focus-visible, :focus:where([data-gk-focus="keyboard"])):not(:where([data-gk-focus="pointer"])) {
    outline: var(--focus-ring-width) solid var(--clr-brand);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.geekly-cmt-time {
    color: var(--clr-text-muted);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.geekly-cmt-spoiler-label,
.geekly-cmt-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    padding: 0 7px;
    border: 1px solid var(--clr-border);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.geekly-cmt-spoiler-label {
    color: var(--clr-text-secondary);
    background: var(--clr-bg-raised);
}

.geekly-cmt-spoiler-label .geekly-icon {
    width: 11px;
    height: 11px;
    color: var(--clr-text-muted);
}

.geekly-cmt-pending {
    color: var(--clr-text-secondary);
    background: var(--clr-bg-active);
}

.geekly-cmt-edited {
    color: var(--clr-text-muted);
    font-size: 10px;
    font-weight: 600;
}

.geekly-cmt-pending-note {
    margin: 6px 0 0;
    color: var(--clr-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ── Options menu ─────────────────────────────────────────────────────────── */
.geekly-cmt-options {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    opacity: 0.62;
    transition: opacity 140ms ease, color 140ms ease, background 140ms ease;
}

.geekly-cmt-options:hover,
.geekly-cmt-options:focus-visible,
.geekly-cmt-options[aria-expanded="true"] {
    opacity: 1;
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-options .geekly-icon {
    width: 16px;
    height: 16px;
}

.geekly-cmt-menu {
    position: absolute;
    z-index: 2147483642;
    top: calc(100% + 2px);
    right: 0;
    min-width: 156px;
    padding: 4px;
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    box-shadow: var(--shadow-card-hover, 0 12px 28px rgb(0 0 0 / 22%));
    transform-origin: top right;
    animation: geekly-cmt-menu-in 120ms ease-out;
}

.geekly-cmt-menu[hidden] {
    display: none;
}

@keyframes geekly-cmt-menu-in {
    from { opacity: 0; transform: translateY(-2px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.geekly-cmt-menu__item {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 9px;
    color: var(--clr-text-secondary);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    transition: color 140ms ease, background 140ms ease;
}

.geekly-cmt-menu__item:hover,
.geekly-cmt-menu__item:focus-visible {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-menu__item .geekly-icon {
    width: 14px;
    height: 14px;
    color: var(--clr-text-muted);
}

.geekly-cmt-menu__item--danger {
    color: var(--clr-brand-text);
}

.geekly-cmt-menu__item--danger .geekly-icon {
    color: currentColor;
}

.geekly-cmt-menu__item--danger:hover,
.geekly-cmt-menu__item--danger:focus-visible {
    color: var(--clr-brand-text);
    background: var(--clr-brand-tint);
}

.geekly-cmt-menu__item:disabled {
    color: var(--clr-text-muted);
    opacity: 0.7;
    cursor: default;
}

.geekly-cmt-menu__item:disabled:hover {
    color: var(--clr-text-muted);
    background: transparent;
}

/* ── Text and spoilers ────────────────────────────────────────────────────── */
.geekly-cmt-text {
    margin-top: 5px;
    color: var(--clr-text-secondary);
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.geekly-cmt-text > :first-child {
    margin-top: 0;
}

.geekly-cmt-text > :last-child {
    margin-bottom: 0;
}

.geekly-cmt-text p {
    margin: 0 0 0.65em;
}

.geekly-cmt-text a {
    color: var(--clr-brand-text);
    text-underline-offset: 3px;
}

.geekly-cmt-text a:hover {
    text-decoration: underline;
}

.geekly-cmt-text--posted {
    white-space: pre-wrap;
}

.geekly-cmt-spoiler {
    margin-top: 6px;
    overflow: hidden;
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
}

.geekly-cmt-spoiler__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    color: var(--clr-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color 140ms ease, background 140ms ease;
}

.geekly-cmt-spoiler__summary::-webkit-details-marker {
    display: none;
}

.geekly-cmt-spoiler__summary::marker {
    content: "";
}

.geekly-cmt-spoiler__summary:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-hover);
}

.geekly-cmt-spoiler__summary .geekly-icon {
    width: 15px;
    height: 15px;
    color: var(--clr-text-muted);
}

.geekly-cmt-spoiler__open {
    display: none;
}

.geekly-cmt-spoiler[open] .geekly-cmt-spoiler__closed {
    display: none;
}

.geekly-cmt-spoiler[open] .geekly-cmt-spoiler__open {
    display: inline;
}

.geekly-cmt-spoiler[open] .geekly-cmt-spoiler__summary {
    border-bottom: 1px solid var(--clr-border);
}

.geekly-cmt-spoiler__text {
    margin: 0;
    padding: 10px 12px 12px;
    font-size: 15px;
    line-height: 1.65;
}

.geekly-cmt-reply--nested .geekly-cmt-spoiler {
    margin-top: 5px;
    border-radius: 8px;
}

.geekly-cmt-reply--nested .geekly-cmt-spoiler__summary {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.geekly-cmt-reply--nested .geekly-cmt-spoiler__summary .geekly-icon {
    width: 14px;
    height: 14px;
}

.geekly-cmt-reply--nested .geekly-cmt-spoiler__text {
    padding: 8px 10px 10px;
    font-size: 13px;
    line-height: 1.6;
}

/* ── Actions and likes ────────────────────────────────────────────────────── */
.geekly-cmt-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    margin-left: -8px;
}

.geekly-cmt-engagement {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.geekly-cmt-action,
.geekly-cmt-likers {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    transition: color 140ms ease, background 140ms ease;
}

.geekly-cmt-action:hover,
.geekly-cmt-likers:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-action .geekly-icon,
.geekly-cmt-likers .geekly-icon {
    width: 15px;
    height: 15px;
}

.geekly-cmt-like--active {
    color: var(--clr-brand-text);
}

.geekly-cmt-like--active .geekly-icon {
    fill: currentColor;
}

.geekly-cmt-like--active:hover {
    color: var(--clr-brand-text);
    background: var(--clr-brand-tint);
}

.geekly-cmt-likers {
    gap: 4px;
    padding: 0 6px;
    color: var(--clr-text-muted);
}

.geekly-cmt-likers[hidden],
.geekly-cmt-like__label[hidden] {
    display: none;
}

.geekly-cmt-likers .geekly-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* ── Comment GIFs ─────────────────────────────────────────────────────────── */
.geekly-comment-gif-wrap {
    position: relative;
    width: min(340px, 100%);
    margin-top: 10px;
    overflow: hidden;
    background: var(--clr-bg-base);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
}

.geekly-comment-gif-wrap img,
.geekly-comment-gif-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
}

.geekly-gif-play-btn {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5F4F1;
    background: rgb(17 18 20 / 76%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    backdrop-filter: blur(6px);
}

.geekly-gif-play-btn .geekly-icon {
    width: 14px;
    height: 14px;
}

.geekly-cmt-text .geekly-comment-gif {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ── Inline edit ──────────────────────────────────────────────────────────── */
.geekly-cmt-edit {
    margin-top: 8px;
}

.geekly-cmt-edit__area {
    width: 100%;
    min-height: 76px;
    padding: 9px 10px;
    color: var(--clr-text-primary);
    background: var(--clr-bg-base);
    border: 1px solid var(--clr-border-control);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
}

.geekly-cmt-edit__actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.geekly-cmt-edit__cancel,
.geekly-cmt-edit__save {
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

.geekly-cmt-edit__cancel {
    color: var(--clr-text-secondary);
    background: var(--clr-bg-active);
}

.geekly-cmt-edit__save {
    color: var(--clr-on-brand);
    background: var(--clr-brand-dark);
}

.geekly-cmt-edit__save:disabled {
    color: var(--clr-text-muted);
    background: var(--clr-bg-active);
    cursor: default;
}

/* ── Inline reply composer ────────────────────────────────────────────────── */
.geekly-cmt-reply-box {
    margin-top: 10px;
    padding: 10px;
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
}

.geekly-cmt-reply-box:focus-within:not(:where([data-gk-focus-within="pointer"])) {
    border-color: var(--clr-border-control);
}

.geekly-cmt-reply-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--clr-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.geekly-cmt-reply-box__head strong {
    color: var(--clr-text-secondary);
    font-weight: 600;
}

.geekly-cmt-reply-box__cancel {
    min-height: 28px;
    padding: 0 8px;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
}

.geekly-cmt-reply-box__cancel:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-reply-box__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.geekly-cmt-reply-box__body {
    flex: 1;
    min-width: 0;
}

.geekly-cmt-reply-box__editor {
    min-height: 42px;
    padding: 4px 2px 7px;
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    outline: none;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.geekly-cmt-reply-box__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 5px;
}

.geekly-cmt-reply-box__tools {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.geekly-cmt-reply-box .geekly-cmt-spoiler-toggle {
    min-height: 28px;
    padding: 0 8px;
}

.geekly-cmt-reply-box__post {
    min-height: 30px;
    padding: 0 13px;
    color: var(--clr-on-brand);
    background: var(--clr-brand-dark);
    border: 0;
    border-radius: 7px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

.geekly-cmt-reply-box__post:hover {
    background: var(--clr-brand-fill-hover);
}

.geekly-cmt-reply-box__post:disabled {
    color: var(--clr-text-muted);
    background: var(--clr-bg-active);
    cursor: default;
}

.geekly-cmt-reply-box__error {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 4px;
    color: var(--clr-brand-text);
    font-size: 11px;
    line-height: 1.5;
}

.geekly-cmt-reply-box__error[hidden] {
    display: none;
}

.geekly-cmt-reply-box__error .geekly-icon {
    width: 13px;
    height: 13px;
    margin-top: 1px;
}

/* ── Composer GIF attachment ──────────────────────────────────────────────── */
.geekly-comments .geekly-compose__gif-attachment,
.geekly-cmt-focus .geekly-compose__gif-attachment {
    position: relative;
    width: 180px;
    margin: 6px 0 0;
    overflow: hidden;
    background: var(--clr-bg-base);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 22%);
    cursor: default;
}

.geekly-comments .geekly-compose__gif-attachment img,
.geekly-comments .geekly-compose__gif-attachment canvas,
.geekly-cmt-focus .geekly-compose__gif-attachment img,
.geekly-cmt-focus .geekly-compose__gif-attachment canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
}

.geekly-comments .geekly-compose__gif-play,
.geekly-cmt-focus .geekly-compose__gif-play {
    display: none;
}

.geekly-comments .geekly-compose__gif-remove,
.geekly-cmt-focus .geekly-compose__gif-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #F5F4F1;
    background: rgb(0 0 0 / 70%);
    border: 0;
    border-radius: 50%;
    z-index: 4;
}

.geekly-comments .geekly-compose__gif-remove:hover,
.geekly-cmt-focus .geekly-compose__gif-remove:hover {
    background: color-mix(in srgb, var(--clr-brand) 85%, transparent);
}

.geekly-comments .geekly-compose__gif-remove .geekly-icon,
.geekly-cmt-focus .geekly-compose__gif-remove .geekly-icon {
    width: 10px;
    height: 10px;
}

/* ── Nested threads and connectors ────────────────────────────────────────── */
.geekly-cmt-item--has-replies > .geekly-cmt-row {
    position: relative;
}

.geekly-cmt-item--has-replies > .geekly-cmt-row::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--clr-border);
    border-radius: 1px;
    pointer-events: none;
}

.geekly-cmt-thread-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    margin-top: 4px;
    margin-left: 52px;
    padding: 0 8px 0 0;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.geekly-cmt-thread-toggle[hidden] {
    display: none;
}

.geekly-cmt-thread-toggle::before {
    content: "";
    position: absolute;
    left: -33px;
    top: -4px;
    width: 33px;
    height: 19px;
    border-left: 2px solid var(--clr-border);
    border-bottom: 2px solid var(--clr-border);
    border-bottom-left-radius: 8px;
    pointer-events: none;
}

.geekly-cmt-thread-toggle:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-thread-toggle .geekly-icon {
    width: 14px;
    height: 14px;
}

.geekly-cmt-item > ol.children,
.geekly-cmt-reply > ol.children,
.geekly-cmt-replies {
    --geekly-cmt-reply-indent: 52px;
    --geekly-cmt-parent-avatar: 40px;
    position: relative;
    margin: 10px 0 0;
    padding: 0 0 0 var(--geekly-cmt-reply-indent);
}

.geekly-cmt-reply > ol.children,
.geekly-cmt-replies--nested {
    --geekly-cmt-reply-indent: 40px;
    --geekly-cmt-parent-avatar: 32px;
    margin-top: 8px;
}

.geekly-cmt-reply--nested > .geekly-cmt-replies--nested,
.geekly-cmt-reply--nested > ol.children {
    --geekly-cmt-parent-avatar: 28px;
}

.geekly-cmt-reply {
    --geekly-cmt-avatar-size: 32px;
    position: relative;
    padding-top: 14px;
}

.geekly-cmt-reply--nested {
    --geekly-cmt-avatar-size: 28px;
}

.geekly-cmt-reply::before {
    content: "";
    position: absolute;
    left: calc(-1 * (var(--geekly-cmt-reply-indent) - var(--geekly-cmt-parent-avatar) / 2));
    top: -10px;
    width: calc(var(--geekly-cmt-reply-indent) - var(--geekly-cmt-parent-avatar) / 2);
    height: calc(24px + var(--geekly-cmt-avatar-size) / 2);
    border-left: 2px solid var(--clr-border);
    border-bottom: 2px solid var(--clr-border);
    border-bottom-left-radius: 8px;
    pointer-events: none;
}

.geekly-cmt-reply .geekly-cmt-row {
    gap: 10px;
}

.geekly-cmt-avatar--reply {
    width: 32px;
    height: 32px;
}

.geekly-cmt-reply .geekly-cmt-head {
    min-height: 22px;
}

.geekly-cmt-reply .geekly-cmt-author {
    font-size: 14px;
}

.geekly-cmt-reply .geekly-cmt-text {
    font-size: 14px;
}

.geekly-cmt-reply--has-children > .geekly-cmt-row {
    position: relative;
}

.geekly-cmt-reply--has-children > .geekly-cmt-row::before {
    content: "";
    position: absolute;
    left: calc(var(--geekly-cmt-avatar-size) / 2 - 1px);
    top: var(--geekly-cmt-avatar-size);
    bottom: -8px;
    width: 2px;
    background: var(--clr-border);
    border-radius: 1px;
    pointer-events: none;
}

.geekly-cmt-reply--nested .geekly-cmt-row {
    gap: 8px;
}

.geekly-cmt-reply--nested .geekly-cmt-avatar--reply {
    width: var(--geekly-cmt-avatar-size);
    height: var(--geekly-cmt-avatar-size);
}

.geekly-cmt-reply--nested .geekly-cmt-head {
    min-height: 20px;
}

.geekly-cmt-reply--nested .geekly-cmt-author {
    font-size: 13px;
}

.geekly-cmt-reply--nested .geekly-cmt-time {
    font-size: 10px;
}

.geekly-cmt-replies-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    margin: 8px 0 0 52px;
    padding: 0 8px 0 0;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.geekly-cmt-replies-more[hidden] {
    display: none;
}

.geekly-cmt-replies-more:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-replies-more .geekly-icon {
    width: 14px;
    height: 14px;
}

.geekly-cmt-replies-more--nested {
    margin-left: 40px;
}

/* ── Depth cap and focused thread ─────────────────────────────────────────── */
.geekly-cmt-cap-ready > ol.children {
    display: none;
}

.geekly-cmt-continue {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    margin: 8px 0 0 calc(var(--geekly-cmt-avatar-size, 28px) + 8px);
    padding: 0 8px 0 0;
    color: var(--clr-text-secondary);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.geekly-cmt-continue[hidden] {
    display: none;
}

.geekly-cmt-continue::before {
    content: "";
    position: absolute;
    left: -22px;
    top: -8px;
    width: 22px;
    height: 19px;
    border-left: 2px solid var(--clr-border);
    border-bottom: 2px solid var(--clr-border);
    border-bottom-left-radius: 8px;
    pointer-events: none;
}

.geekly-cmt-continue:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-continue .geekly-icon {
    width: 14px;
    height: 14px;
    color: var(--clr-text-muted);
}

.geekly-cmt-continue__count {
    color: var(--clr-text-muted);
    font-weight: 500;
}

.geekly-cmt-thread--focused .geekly-cmt-continue,
.geekly-cmt-thread--focused .geekly-cmt-replies-more {
    display: none;
}

.geekly-cmt-thread--focused.geekly-cmt-cap-ready > ol.children,
.geekly-cmt-thread--focused .geekly-cmt-cap-ready > ol.children {
    display: block;
}

.geekly-cmt-thread--focused [data-extra-reply][hidden] {
    display: block;
}

.geekly-cmt-thread--focused .geekly-cmt-thread-toggle {
    display: none;
}

/* ── Load more ────────────────────────────────────────────────────────────── */
.geekly-cmt-load-more-wrap {
    display: flex;
    justify-content: center;
}

.geekly-cmt-load-more {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    padding: 0 16px;
    color: var(--clr-text-secondary);
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border-control);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.geekly-cmt-load-more[hidden] {
    display: none;
}

.geekly-cmt-load-more:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-hover);
    border-color: var(--clr-border-control);
}

.geekly-cmt-load-more .geekly-icon {
    width: 14px;
    height: 14px;
    color: var(--clr-text-muted);
}

/* ── Empty state, closed state and guidelines ─────────────────────────────── */
.geekly-cmt-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
}

.geekly-cmt-empty[hidden] {
    display: none;
}

.geekly-cmt-empty__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    background: var(--clr-bg-active);
    border-radius: 50%;
}

.geekly-cmt-empty__icon .geekly-icon {
    width: 19px;
    height: 19px;
}

.geekly-cmt-empty__title {
    margin: 0;
    color: var(--clr-text-primary);
    font-size: 14px;
    font-weight: 700;
}

.geekly-cmt-empty__sub {
    margin: 3px 0 0;
    color: var(--clr-text-muted);
    font-size: 12px;
}

.geekly-cmt-closed {
    margin: 0;
    padding: 16px 20px;
    color: var(--clr-text-muted);
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    font-size: 13px;
}

.geekly-cmt-guidelines {
    margin: 24px 0 0;
    color: var(--clr-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.geekly-cmt-guidelines a {
    color: var(--clr-brand-text);
    font-weight: 600;
    text-underline-offset: 3px;
}

.geekly-cmt-guidelines a:hover {
    text-decoration: underline;
}

.geekly-cmt-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.geekly-cmt-pagination a,
.geekly-cmt-pagination span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--clr-text-secondary);
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border-control);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.geekly-cmt-pagination a:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-hover);
}

/* ── Item attribution ─────────────────────────────────────────────────────── */
.geekly-cmt-item-attr {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 7px;
    padding: 0;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
}

.geekly-cmt-item-attr em {
    color: var(--clr-text-secondary);
    font-style: normal;
    font-weight: 600;
}

.geekly-cmt-item-attr:hover em {
    color: var(--clr-brand-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Delete confirmation ──────────────────────────────────────────────────── */
.geekly-cmt-confirm {
    position: fixed;
    z-index: 2147483645;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.geekly-cmt-confirm[hidden] {
    display: none;
}

.geekly-cmt-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 60%);
    backdrop-filter: blur(4px);
}

.geekly-cmt-confirm__box {
    position: relative;
    z-index: 1;
    width: min(340px, 100%);
    padding: 24px;
    text-align: center;
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    box-shadow: var(--shadow-card-hover, 0 14px 30px rgb(0 0 0 / 22%));
    animation: geekly-cmt-confirm-in 160ms ease-out;
}

@keyframes geekly-cmt-confirm-in {
    from { opacity: 0; transform: scale(0.97) translateY(4px); }
    to { opacity: 1; transform: none; }
}

.geekly-cmt-confirm__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--clr-brand-text);
    background: var(--clr-brand-tint);
    border-radius: 50%;
}

.geekly-cmt-confirm__icon .geekly-icon {
    width: 20px;
    height: 20px;
}

.geekly-cmt-confirm__title {
    margin: 0;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
}

.geekly-cmt-confirm__body {
    margin: 6px 0 0;
    color: var(--clr-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.geekly-cmt-confirm__actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.geekly-cmt-confirm__cancel,
.geekly-cmt-confirm__delete {
    flex: 1;
    min-height: 34px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.geekly-cmt-confirm__cancel {
    color: var(--clr-text-secondary);
    background: var(--clr-bg-active);
    border: 1px solid var(--clr-border-control);
}

.geekly-cmt-confirm__delete {
    color: var(--clr-on-brand);
    background: var(--clr-brand-dark);
    border: 0;
}

.geekly-cmt-confirm__delete:hover {
    background: var(--clr-brand-fill-hover);
}

/* ── Focused thread dialog ────────────────────────────────────────────────── */
.geekly-cmt-focus {
    position: fixed;
    z-index: 2147483644;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.geekly-cmt-focus[hidden] {
    display: none;
}

.geekly-cmt-focus__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 55%);
    backdrop-filter: blur(2px);
}

.geekly-cmt-focus__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: min(88vh, 920px);
    overflow: hidden;
    background: var(--clr-bg-elevated);
    border: 1px solid var(--clr-border);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgb(0 0 0 / 45%);
    animation: geekly-cmt-focus-in 180ms ease-out;
}

@keyframes geekly-cmt-focus-in {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: none; }
}

.geekly-cmt-focus__head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-bottom: 1px solid var(--clr-border);
}

.geekly-cmt-focus__back,
.geekly-cmt-focus__close {
    min-height: 32px;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.geekly-cmt-focus__back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
}

.geekly-cmt-focus__close {
    justify-self: end;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.geekly-cmt-focus__back:hover,
.geekly-cmt-focus__close:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-cmt-focus__back .geekly-icon,
.geekly-cmt-focus__close .geekly-icon {
    width: 16px;
    height: 16px;
}

.geekly-cmt-focus__title {
    margin: 0;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.geekly-cmt-focus__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 24px 10px;
}

.geekly-cmt-focus__list > .geekly-cmt-item {
    padding-top: 0;
}

.geekly-cmt-focus__reply {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    padding: 12px 16px 14px;
    background: var(--clr-bg-surface);
    border-top: 1px solid var(--clr-border);
}

.geekly-cmt-focus__reply .geekly-cmt-avatar {
    width: 32px;
    height: 32px;
}

.geekly-cmt-focus__reply-main {
    flex: 1;
    min-width: 0;
}

.geekly-cmt-focus__reply-head {
    margin: 0;
    color: var(--clr-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.geekly-cmt-focus__reply-head strong {
    color: var(--clr-text-secondary);
    font-weight: 600;
}

.geekly-cmt-focus__editor {
    min-height: 38px;
    padding: 4px 2px 6px;
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    outline: none;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.geekly-cmt-focus__error {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 2px;
    color: var(--clr-brand-text);
    font-size: 11px;
    line-height: 1.5;
}

.geekly-cmt-focus__error[hidden] {
    display: none;
}

.geekly-cmt-focus__error .geekly-icon {
    width: 13px;
    height: 13px;
    margin-top: 1px;
}

.geekly-cmt-focus__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 2px;
}

.geekly-cmt-focus__reply .geekly-cmt-spoiler-toggle {
    min-height: 28px;
    padding: 0 8px;
}

.geekly-cmt-focus__post {
    min-height: 30px;
    padding: 0 13px;
    color: var(--clr-on-brand);
    background: var(--clr-brand-dark);
    border: 0;
    border-radius: 7px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

.geekly-cmt-focus__post:hover {
    background: var(--clr-brand-fill-hover);
}

.geekly-cmt-focus__post:disabled {
    color: var(--clr-text-muted);
    background: var(--clr-bg-active);
    cursor: default;
}

.geekly-cmt-focus__guest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 12px 16px 14px;
    color: var(--clr-text-muted);
    background: var(--clr-bg-surface);
    border-top: 1px solid var(--clr-border);
    font-size: 12px;
}

.geekly-cmt-focus__signin {
    min-height: 30px;
    padding: 0 12px;
    color: var(--clr-brand-on-tint);
    background: var(--clr-brand-tint);
    border: 1px solid color-mix(in srgb, var(--clr-brand) 28%, transparent);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

/* ── Likers popover ───────────────────────────────────────────────────────── */
.geekly-likers-popover {
    position: fixed;
    z-index: 2147483646;
    width: 220px;
    max-height: 280px;
    overflow: hidden;
    background: var(--clr-bg-raised);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    box-shadow: var(--shadow-card-hover, 0 14px 30px rgb(0 0 0 / 22%));
}

.geekly-likers-popover[hidden] {
    display: none;
}

.geekly-likers-popover__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--clr-border);
}

.geekly-likers-popover__title {
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.geekly-likers-popover__close {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--clr-text-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
}

.geekly-likers-popover__close:hover {
    color: var(--clr-text-primary);
    background: var(--clr-bg-active);
}

.geekly-likers-popover__list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
}

.geekly-likers-popover__loading,
.geekly-likers-popover__empty,
.geekly-likers-popover__more {
    margin: 0;
    padding: 10px;
    color: var(--clr-text-muted);
    font-size: 12px;
}

.geekly-likers-popover__user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 7px;
}

.geekly-likers-popover__user:hover {
    background: var(--clr-bg-active);
}

.geekly-likers-popover__avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.geekly-likers-popover__name {
    min-width: 0;
    overflow: hidden;
    color: var(--clr-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Body scroll locks ────────────────────────────────────────────────────── */
body.geekly-cmt-modal-open,
body.geekly-cmt-focus-open,
body.geekly-cmt-menu-open {
    overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1279px) {
    .geekly-comments__inner {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1099px) {
    .geekly-comments__inner {
        padding-top: 40px;
        padding-bottom: 52px;
    }
}

@media (max-width: 767px) {
    .geekly-comments__inner {
        padding: 32px 16px 44px;
    }

    .geekly-cmt__title {
        font-size: 24px;
    }

    .geekly-cmt__sub {
        font-size: 12px;
    }

    .geekly-cmt-composer {
        padding: 12px;
        border-radius: 14px;
    }

    .geekly-cmt-composer--guest {
        padding: 9px;
    }

    .geekly-cmt-guest__prompt {
        min-height: 48px;
        gap: 10px;
    }

    .geekly-cmt-guest__text {
        font-size: 14px;
    }

    .geekly-cmt-guest__action {
        min-height: 30px;
        padding: 0 12px;
        font-size: 12px;
    }

    .geekly-cmt-guest__note {
        margin-left: 50px;
    }

    .geekly-cmt-avatar {
        width: 36px;
        height: 36px;
    }

    .geekly-cmt-composer__row {
        gap: 10px;
    }

    .geekly-cmt-editor {
        min-height: 48px;
        font-size: 14px;
    }

    .geekly-cmt-composer__toolbar {
        gap: 8px;
    }

    .geekly-cmt-spoiler-toggle {
        padding: 0 9px;
    }

    .geekly-cmt-spoiler__summary {
        min-height: 36px;
        padding: 0 10px;
    }

    .geekly-cmt-spoiler__text {
        padding: 9px 10px 11px;
    }

    .geekly-cmt-submit {
        min-width: 80px;
        min-height: 30px;
        padding: 0 14px;
    }

    .geekly-cmt-error {
        margin-left: 46px;
    }

    .geekly-cmt-item {
        padding: 18px 0;
    }

    .geekly-cmt-row {
        gap: 10px;
    }

    .geekly-cmt-head {
        gap: 6px;
    }

    .geekly-cmt-author {
        font-size: 14px;
    }

    .geekly-cmt-time {
        font-size: 10px;
    }

    .geekly-cmt-options {
        width: 28px;
        height: 28px;
        opacity: 1;
    }

    .geekly-cmt-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .geekly-cmt-actions {
        margin-top: 6px;
    }

    .geekly-cmt-action,
    .geekly-cmt-likers {
        min-height: 32px;
        padding: 0 7px;
        font-size: 12px;
    }

    .geekly-cmt-item--has-replies > .geekly-cmt-row::before,
    .geekly-cmt-thread-toggle::before,
    .geekly-cmt-reply::before,
    .geekly-cmt-reply--has-children > .geekly-cmt-row::before {
        display: none;
    }

    .geekly-cmt-thread-toggle {
        margin-left: 28px;
    }

    .geekly-cmt-replies-more {
        margin-left: 28px;
    }

    .geekly-cmt-replies-more--nested {
        margin-left: 22px;
    }

    .geekly-cmt-item > ol.children,
    .geekly-cmt-reply > ol.children,
    .geekly-cmt-replies {
        --geekly-cmt-reply-indent: 28px;
        --geekly-cmt-parent-avatar: 28px;
    }

    .geekly-cmt-reply > ol.children,
    .geekly-cmt-replies--nested {
        --geekly-cmt-reply-indent: 22px;
        --geekly-cmt-parent-avatar: 28px;
    }

    .geekly-cmt-reply {
        --geekly-cmt-avatar-size: 28px;
    }

    .geekly-cmt-reply--nested {
        --geekly-cmt-avatar-size: 24px;
    }

    .geekly-cmt-reply--nested > .geekly-cmt-replies--nested,
    .geekly-cmt-reply--nested > ol.children {
        --geekly-cmt-parent-avatar: 24px;
    }

    .geekly-cmt-avatar--reply {
        width: 28px;
        height: 28px;
    }

    .geekly-cmt-reply--nested .geekly-cmt-avatar--reply {
        width: 24px;
        height: 24px;
    }

    .geekly-cmt-empty {
        padding: 16px;
    }

    .geekly-cmt-empty__icon {
        width: 38px;
        height: 38px;
    }

    .geekly-cmt-empty__title {
        font-size: 13px;
    }

    .geekly-cmt-guidelines {
        margin-top: 18px;
    }

    .geekly-cmt-confirm__box {
        padding: 20px;
    }

    .geekly-cmt-continue::before {
        display: none;
    }

    .geekly-cmt-focus {
        padding: 0;
    }

    .geekly-cmt-focus__panel {
        width: 100%;
        max-height: none;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .geekly-cmt-focus__scroll {
        padding: 16px 18px 8px;
    }

    .geekly-cmt-focus__reply {
        padding: 10px 12px 12px;
    }

    .geekly-cmt-load-more {
        margin-top: 18px;
    }
}

@media (max-width: 479px) {
    .geekly-cmt__title {
        font-size: 22px;
    }

    .geekly-cmt-count {
        min-width: 24px;
        height: 22px;
        font-size: 12px;
    }

    .geekly-cmt-menu {
        position: fixed;
        z-index: 2147483643;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-width: 0;
        padding: 6px;
        border-radius: 14px;
        transform-origin: bottom center;
        animation: geekly-cmt-sheet-in 160ms ease-out;
    }

    .geekly-cmt-menu__item {
        min-height: 44px;
        padding: 0 12px;
        font-size: 13px;
    }

    .geekly-cmt-menu-backdrop {
        position: fixed;
        z-index: 2147483642;
        inset: 0;
        background: rgb(0 0 0 / 32%);
    }

    .geekly-cmt-guest__text {
        font-size: 13px;
    }

    .geekly-cmt-guest__action {
        padding: 0 10px;
    }

    .geekly-cmt-guest__note {
        margin-left: 0;
    }

    .geekly-cmt-error {
        margin-left: 44px;
    }

    .geekly-cmt-avatar {
        width: 34px;
        height: 34px;
    }

    .geekly-cmt-avatar--reply {
        width: 28px;
        height: 28px;
    }

    .geekly-cmt-thread-toggle {
        margin-left: 22px;
    }

    .geekly-cmt-replies-more {
        margin-left: 22px;
    }

    .geekly-cmt-replies-more--nested {
        margin-left: 16px;
    }

    .geekly-cmt-item > ol.children,
    .geekly-cmt-reply > ol.children,
    .geekly-cmt-replies {
        --geekly-cmt-reply-indent: 22px;
        --geekly-cmt-parent-avatar: 28px;
    }

    .geekly-cmt-reply > ol.children,
    .geekly-cmt-replies--nested {
        --geekly-cmt-reply-indent: 16px;
        --geekly-cmt-parent-avatar: 28px;
    }

    .geekly-cmt-reply {
        --geekly-cmt-avatar-size: 28px;
    }

    .geekly-cmt-reply--nested {
        --geekly-cmt-avatar-size: 22px;
    }

    .geekly-cmt-reply--nested > .geekly-cmt-replies--nested,
    .geekly-cmt-reply--nested > ol.children {
        --geekly-cmt-parent-avatar: 22px;
    }

    .geekly-cmt-reply--nested .geekly-cmt-avatar--reply {
        width: 22px;
        height: 22px;
    }

    .geekly-cmt-focus__head {
        padding: 8px 10px;
    }

    .geekly-cmt-focus__title {
        font-size: 17px;
    }

    .geekly-cmt-focus__scroll {
        padding: 14px 16px 6px;
    }

    .geekly-cmt-focus__reply {
        gap: 8px;
        padding: 10px 12px 12px;
    }

    .geekly-cmt-focus__reply .geekly-cmt-avatar {
        width: 28px;
        height: 28px;
    }

    .geekly-cmt-load-more {
        width: 100%;
    }
}

@keyframes geekly-cmt-sheet-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .geekly-cmt-item--posted,
    .geekly-cmt-menu,
    .geekly-cmt-confirm__box,
    .geekly-cmt-focus__panel {
        animation: none;
    }

    .geekly-cmt-submit__spinner {
        animation: none;
    }
}
