/* Messenger threads — Neue Projekte + Projekt-Roadmap (Mehmet + info@). */

.np-th-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.np-threads {
    --th-ink: #122033;
    --th-ink-2: #3d4a5c;
    --th-ink-3: #6b7585;
    --th-line: #d7dee8;
    --th-paper: #f4f6fa;
    --th-surface: #ffffff;
    --th-mine: #e8f1fc;
    --th-accent: #1a73e8;
    --th-radius: 12px;
    margin-top: 1.25rem;
    padding: 1.05rem 1.1rem 1.15rem;
    background: var(--th-surface);
    border: 1px solid var(--th-line);
    border-radius: var(--th-radius);
    color: var(--th-ink);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.np-th-title h4 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--th-ink);
}

.np-th-title p {
    margin: 0.28rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--th-ink-2);
}

.np-th-status {
    margin: 0.7rem 0 0;
    font-size: 0.82rem;
    color: var(--th-ink-2);
}

.np-th-status.is-err {
    color: #b42318;
}

.np-th-list {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.np-th-thread {
    border: 1px solid var(--th-line);
    border-radius: 10px;
    background: var(--th-paper);
    overflow: hidden;
}

.np-th-thread.is-open {
    background: var(--th-surface);
    border-color: #c3ccd8;
}

.np-th-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.np-th-head:hover {
    background: rgba(18, 32, 51, 0.03);
}

.np-th-head-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--th-ink);
}

.np-th-head-meta {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--th-ink-3);
    padding-top: 0.12rem;
}

.np-th-body {
    padding: 0 0.8rem 0.8rem;
}

.np-th-msgs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.15rem 0 0.55rem;
}

.np-th-empty {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--th-ink-3);
}

.np-th-msg {
    align-self: flex-start;
    max-width: 92%;
}

.np-th-msg.is-mine {
    align-self: flex-end;
}

.np-th-msg header {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 0 0.18rem 0.15rem;
}

.np-th-msg.is-mine header {
    justify-content: flex-end;
    margin-right: 0.15rem;
}

.np-th-msg header strong {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--th-ink);
}

.np-th-msg header time {
    font-size: 0.7rem;
    color: var(--th-ink-3);
}

.np-th-msg p {
    margin: 0;
    padding: 0.5rem 0.7rem;
    background: var(--th-surface);
    border: 1px solid var(--th-line);
    border-radius: 4px 12px 12px 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--th-ink);
    white-space: pre-wrap;
}

.np-th-msg.is-mine p {
    background: var(--th-mine);
    border-color: #c5d8f2;
    border-radius: 12px 4px 12px 12px;
}

.np-th-composer,
.np-th-ask {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.np-th-composer textarea,
.np-th-ask textarea {
    width: 100%;
    min-height: 3.1rem;
    resize: vertical;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--th-line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--th-ink);
}

.np-th-composer textarea:focus,
.np-th-ask textarea:focus {
    outline: 2px solid rgba(26, 115, 232, 0.28);
    border-color: var(--th-accent);
}

.np-th-send,
.np-th-ownq,
.np-th-ghost {
    align-self: flex-end;
    border: 0;
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
}

.np-th-send {
    background: var(--th-accent);
    color: #fff;
}

.np-th-send:hover {
    filter: brightness(0.96);
}

.np-th-ownq {
    background: transparent;
    color: var(--th-accent);
    border: 1px solid #c5d8f2;
}

.np-th-ghost {
    background: transparent;
    color: var(--th-ink-2);
    border: 1px solid var(--th-line);
}

.np-th-own {
    margin-top: 0.75rem;
}

.np-th-ask-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

/* Roadmap overlay + cards: Sternenhimmel, same as Neue Projekte */
#rmOverlay .np-threads,
.rm-card-talk .np-threads,
.np-preview-tab .np-threads {
    --th-ink: #f4f7fb;
    --th-ink-2: #d5deea;
    --th-ink-3: #b8c4d6;
    --th-line: rgba(135, 208, 240, 0.22);
    --th-paper: rgba(6, 10, 26, 0.82);
    --th-surface: rgba(8, 12, 30, 0.92);
    --th-mine: rgba(135, 208, 240, 0.16);
    --th-accent: #87d0f0;
    --th-radius: 12px;
    margin-top: 1.15rem;
    padding: 0.95rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(135, 208, 240, 0.22);
    border-radius: 0;
    font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
}

#rmOverlay .np-th-title h4,
.rm-card-talk .np-th-title h4,
.np-preview-tab .np-th-title h4 {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-weight: 700;
}

#rmOverlay .np-th-thread,
.rm-card-talk .np-th-thread,
.np-preview-tab .np-th-thread {
    border-radius: 8px;
    background: rgba(7, 12, 28, 0.45);
}

#rmOverlay .np-th-thread.is-open,
.rm-card-talk .np-th-thread.is-open,
.np-preview-tab .np-th-thread.is-open {
    background: rgba(10, 16, 36, 0.72);
}

#rmOverlay .np-th-msg p,
.rm-card-talk .np-th-msg p,
.np-preview-tab .np-th-msg p {
    border-radius: 8px;
    background: rgba(8, 12, 32, 0.7);
}

#rmOverlay .np-th-msg.is-mine p,
.rm-card-talk .np-th-msg.is-mine p,
.np-preview-tab .np-th-msg.is-mine p {
    border-radius: 8px;
    border-color: rgba(135, 208, 240, 0.35);
    background: rgba(135, 208, 240, 0.16);
}

#rmOverlay .np-th-composer textarea,
#rmOverlay .np-th-ask textarea,
.rm-card-talk .np-th-composer textarea,
.rm-card-talk .np-th-ask textarea,
.np-preview-tab .np-th-composer textarea,
.np-preview-tab .np-th-ask textarea {
    border-radius: 8px;
    background: rgba(8, 12, 32, 0.88);
    color: #f4f7fb;
    border-color: rgba(135, 208, 240, 0.4);
}

#rmOverlay .np-th-send,
#rmOverlay .np-th-ownq,
#rmOverlay .np-th-ghost,
.rm-card-talk .np-th-send,
.rm-card-talk .np-th-ownq,
.rm-card-talk .np-th-ghost {
    border-radius: 8px;
}

#rmOverlay .np-th-ownq,
.rm-card-talk .np-th-ownq {
    border-color: rgba(135, 208, 240, 0.35);
}

.rm-card-talk {
    margin: 0;
    padding: 0 0 0.15rem;
}

.rm-card-talk .np-threads {
    margin-top: 0.15rem;
    padding-top: 0.7rem;
}

.rm-card-wrap {
    display: block;
    margin: 0;
}

.rm-card-wrap .rm-card {
    width: 100%;
    margin-bottom: 0;
}
