/* Forum thread — GitHub Issues / StackOverflow mobile */

.page-forum-thread .ft-back {
    margin: 0 0 12px;
    font-size: 0.82rem;
}

.page-forum-thread .ft-back a {
    color: #94a3b8;
    text-decoration: none;
}

.page-forum-thread .ft-back a:hover {
    color: #6ee7b7;
}

.page-forum-thread .ft-issue {
    display: grid;
    gap: 12px;
}

.page-forum-thread .ft-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-forum-thread .ft-cat,
.page-forum-thread .ft-st {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-forum-thread .ft-cat {
    background: rgb(16 185 129 / 0.1);
    color: #6ee7b7;
    border: 1px solid rgb(16 185 129 / 0.28);
}

.page-forum-thread .ft-st {
    border: 1px solid transparent;
}

.page-forum-thread .ft-st.is-open {
    background: rgb(245 158 11 / 0.12);
    color: #fcd34d;
    border-color: rgb(245 158 11 / 0.32);
}

.page-forum-thread .ft-st.is-done {
    background: rgb(16 185 129 / 0.12);
    color: #6ee7b7;
    border-color: rgb(16 185 129 / 0.32);
}

.page-forum-thread .ft-st.is-wait {
    background: rgb(148 163 184 / 0.1);
    color: #cbd5e1;
    border-color: rgb(148 163 184 / 0.25);
}

.page-forum-thread .ft-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: ft-pulse 1.6s ease-in-out infinite;
}

@keyframes ft-pulse {
    0%,
    100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.page-forum-thread .ft-issue h1 {
    margin: 0;
    font-size: clamp(1.2rem, 4.2vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.page-forum-thread .ft-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.page-forum-thread .ft-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.75rem;
}

.page-forum-thread .ft-meta svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.page-forum-thread .ft-tech {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.page-forum-thread .ft-tech-card {
    padding: 10px 8px;
    border-radius: 12px;
    background: rgb(15 23 42 / 0.8);
    border: 1px solid #1e293b;
    text-align: center;
    min-width: 0;
}

.page-forum-thread .ft-tech-card svg {
    width: 16px;
    height: 16px;
    color: #64748b;
    margin-bottom: 4px;
}

.page-forum-thread .ft-tech-card span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
}

.page-forum-thread .ft-tech-card strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-forum-thread .ft-tech-card strong.is-mono,
.page-forum-thread .is-mono {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.page-forum-thread .ft-tech-card .is-mono {
    color: #34d399;
}

.page-forum-thread .ft-tech-card.is-dtc {
    background: rgb(136 19 55 / 0.3);
    border-color: rgb(244 63 94 / 0.3);
}

.page-forum-thread .ft-tech-card.is-dtc span {
    color: #fb7185;
}

.page-forum-thread .ft-tech-card.is-dtc strong {
    color: #fda4af;
    font-weight: 800;
}

.page-forum-thread .ft-problem {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.page-forum-thread .ft-vote.action-bar {
    flex-direction: column;
    gap: 6px;
    margin: 0;
    flex-shrink: 0;
}

.page-forum-thread .ft-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: rgb(30 41 59 / 0.7);
    color: #94a3b8;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.page-forum-thread .ft-vote-btn svg {
    width: 14px;
    height: 14px;
}

.page-forum-thread .ft-vote-btn.is-on {
    background: rgb(16 185 129 / 0.15);
    border-color: rgb(16 185 129 / 0.4);
    color: #34d399;
}

.page-forum-thread .ft-vote-btn.is-down.is-on {
    background: rgb(244 63 94 / 0.12);
    border-color: rgb(244 63 94 / 0.35);
    color: #fb7185;
}

.page-forum-thread .ft-body {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    background: rgb(15 23 42 / 0.7);
    border: 1px solid #1e293b;
}

.page-forum-thread .ft-prose {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.65;
}

.page-forum-thread .ft-share {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 650;
    cursor: pointer;
}

.page-forum-thread .ft-share svg {
    width: 14px;
    height: 14px;
}

.page-forum-thread .ft-share:hover {
    color: #6ee7b7;
    border-color: rgb(16 185 129 / 0.35);
}

.page-forum-thread .ft-replies {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.page-forum-thread .ft-replies h2,
.page-forum-thread .ft-composer h2 {
    margin: 0;
    font-size: 1rem;
}

.page-forum-thread .ft-reply {
    padding: 14px;
    border-radius: 16px;
    background: rgb(15 23 42 / 0.6);
    border: 1px solid #1e293b;
    display: grid;
    gap: 10px;
}

.page-forum-thread .ft-reply.is-solution {
    border-color: rgb(16 185 129 / 0.45);
    box-shadow: inset 0 0 0 1px rgb(16 185 129 / 0.12);
    background: rgb(6 78 59 / 0.12);
}

.page-forum-thread .ft-reply.is-staff {
    border-color: rgb(56 189 248 / 0.7);
    background: rgb(8 47 73 / 0.45);
    box-shadow: inset 4px 0 0 #38bdf8;
}

.page-forum-thread .ft-who .ft-staff-badge {
    display: inline-flex;
    width: fit-content;
    margin: 2px 0 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #0284c7;
    color: #f0f9ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-forum-thread .ft-attach {
    margin: 0;
    font-size: 0.85rem;
}

.page-forum-thread .ft-attach a {
    color: #7dd3fc;
}

.page-forum-thread .ft-reply-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.page-forum-thread .ft-who {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.page-forum-thread .ft-av {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgb(16 185 129 / 0.2);
    color: #34d399;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
}

.page-forum-thread img.ft-av.is-logo {
    display: block;
    object-fit: cover;
    background: #082f49;
    border: 1px solid rgb(56 189 248 / 0.65);
    padding: 2px;
    box-sizing: border-box;
}

.page-forum-thread .ft-who strong {
    display: block;
    font-size: 0.8rem;
    color: #e2e8f0;
}

.page-forum-thread .ft-who-meta {
    display: block;
    font-size: 10px;
    color: #94a3b8;
}

.page-forum-thread .ft-vote-mini.vote-cluster {
    display: inline-flex;
    gap: 4px;
    border: 0;
    background: rgb(30 41 59 / 0.8);
    border-radius: 10px;
    padding: 3px;
    overflow: visible;
    box-shadow: none;
}

.page-forum-thread .ft-vote-mini .ft-vote-btn {
    min-width: 0;
    padding: 4px 7px;
    border: 0;
    background: transparent;
}

.page-forum-thread .ft-vote-mini .ft-vote-btn + .ft-vote-btn {
    border-left: 0;
}

.page-forum-thread .ft-accepted {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgb(16 185 129 / 0.12);
    color: #6ee7b7;
    border: 1px solid rgb(16 185 129 / 0.3);
    font-size: 0.7rem;
    font-weight: 700;
}

.page-forum-thread .ft-accepted svg {
    width: 14px;
    height: 14px;
}

.page-forum-thread .ft-diag {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgb(2 6 23 / 0.5);
    border: 1px solid rgb(30 41 59 / 0.8);
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.55;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.page-forum-thread .ft-reply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-forum-thread .ft-accept,
.page-forum-thread .ft-del {
    border-radius: 10px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.page-forum-thread .ft-accept {
    border: 1px solid rgb(16 185 129 / 0.35);
    background: rgb(16 185 129 / 0.1);
    color: #6ee7b7;
}

.page-forum-thread .ft-del {
    border: 1px solid rgb(244 63 94 / 0.35);
    background: transparent;
    color: #fda4af;
}

.page-forum-thread .ft-composer {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: rgb(15 23 42 / 0.75);
    border: 1px solid #1e293b;
    display: grid;
    gap: 10px;
}

.page-forum-thread .ft-hint {
    margin: 0;
    color: #94a3b8;
    font-size: 0.86rem;
}

.page-forum-thread .ft-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.page-forum-thread .ft-tool {
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: rgb(30 41 59 / 0.6);
    color: #cbd5e1;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 650;
    cursor: pointer;
}

.page-forum-thread .ft-tool:hover {
    border-color: rgb(16 185 129 / 0.35);
    color: #6ee7b7;
}

.page-forum-thread .ft-composer textarea {
    width: 100%;
    min-height: 7.5rem;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e2e8f0;
    padding: 12px;
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.45;
}

.page-forum-thread .ft-composer textarea:focus {
    outline: 2px solid rgb(16 185 129 / 0.35);
    border-color: rgb(16 185 129 / 0.4);
}

.page-forum-thread .ft-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: #059669;
    color: #fff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgb(5 150 105 / 0.28);
    cursor: pointer;
}

.page-forum-thread .ft-send svg {
    width: 16px;
    height: 16px;
}

.page-forum-thread .ft-send:hover {
    background: #10b981;
}

@media (max-width: 800px) {
    .page-forum-thread .tech-sheet,
    .page-forum-thread .ft-tech {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .page-forum-thread .ft-tech {
        grid-template-columns: 1fr;
    }
}
