/* =========================================
   FEEDBACK BOARD (public Kanban)
   ========================================= */
.hybrid-container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 60px 20px; }

.fb-header-banner {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding: 40px 30px; border-radius: 15px; text-align: center; margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.fb-header-banner, .fb-header-banner * { color: #fff !important; }
.fb-header-banner h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.fb-header-banner p { margin: 0; opacity: .9; }

.fb-missing-notice { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }

.fb-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 25px; }
.fb-search-input { flex: 1 1 260px; padding: 12px 18px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 15px; }
.fb-tag-filter { padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; min-width: 160px; }
.fb-btn-primary {
    background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 24px; font-weight: 600; cursor: pointer;
    transition: background-color .3s ease; display: inline-block; text-decoration: none;
}
.fb-btn-primary i { margin-right: 8px; }
.fb-btn-primary:hover { background: var(--brand-dark); color: #fff; }
.fb-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Board */
.fb-board { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
.fb-loading { color: #64748b; padding: 40px; width: 100%; text-align: center; }
.fb-column { flex: 1 1 0; min-width: 250px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.fb-column-head {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; font-weight: 700; color: #0f172a;
}
.fb-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; display: inline-block; }
.fb-column-count { color: #64748b; font-weight: 600; }

.fb-card {
    background: #f8fafc; border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: pointer;
    /* The border takes the colour of its column's status dot (--status-color is set on the column) */
    border: 1px solid var(--status-color, #e2e8f0); transition: box-shadow .15s, transform .15s;
}
.fb-card:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--status-color, #0f172a) 28%, transparent); transform: translateY(-1px); }
/* Every card is the same height: title and description are cut at two lines with "…", and their space is reserved
   even when short or missing, so a card never grows or shrinks with its content. */
.fb-card-title {
    font-weight: 700; color: #0f172a; margin-bottom: 4px; word-break: break-word; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.fb-card-excerpt {
    color: #64748b; font-size: 13px; margin-bottom: 8px; word-break: break-word; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
}
.fb-card .fb-tags { flex-wrap: nowrap; overflow: hidden; height: 20px; margin-top: 0 !important; }
.fb-card .fb-tag { white-space: nowrap; flex: none; }
.fb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.fb-card-meta { font-size: 12px; color: #94a3b8; }
.fb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-tag { font-size: 12px; color: #475569; display: inline-flex; align-items: center; gap: 5px; }
.fb-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tag-color, #667eea); }
.fb-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.fb-badge-pending { background: #fef3c7; color: #92400e; }
.fb-badge-rejected { background: #fee2e2; color: #991b1b; }

.fb-vote {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e2e8f0; background: #fff; color: #475569;
    border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.fb-vote:hover { border-color: #667eea; color: #667eea; }
.fb-vote.voted { background: #667eea; border-color: #667eea; color: #fff; }
.fb-vote:disabled { cursor: default; opacity: .6; }

.fb-more { width: 100%; background: transparent; border: 1px dashed #cbd5e1; color: #64748b; border-radius: 8px; padding: 8px; font-size: 13px; }
.fb-more:hover { color: #667eea; border-color: #667eea; }
.fb-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 18px 8px; }

/* Detail modal */
.fb-detail-title { font-weight: 800; color: #0f172a; margin: 0; word-break: break-word; }
.fb-detail-body { white-space: pre-wrap; word-break: break-word; color: #334155; }
.fb-comments { margin-top: 24px; border-top: 1px solid #e2e8f0; padding-top: 16px; }
.fb-comment { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.fb-comment-head { font-size: 13px; color: #64748b; display: flex; gap: 8px; align-items: center; }
.fb-comment-head strong { color: #0f172a; }
.fb-comment-body { white-space: pre-wrap; word-break: break-word; margin-top: 4px; color: #334155; }
.fb-official { background: #dcfce7; color: #166534; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.fb-comment-del { margin-left: auto; border: 0; background: transparent; color: #94a3b8; font-size: 12px; }
.fb-comment-del:hover { color: #dc2626; }

@media (max-width: 768px) {
    .fb-column { flex: 0 0 85vw; }
}

.fb-header-link { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: underline; }

/* =========================================
   ROADMAP (public timeline)
   ========================================= */
.rm-controls { max-width: 860px; margin: 0 auto 25px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rm-timeline { max-width: 860px; margin: 0 auto; position: relative; padding-left: 34px; }
.rm-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 2px dashed #cbd5e1; }
.rm-group { position: relative; margin-bottom: 36px; }
.rm-group-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #0f172a; font-size: 18px; margin-bottom: 14px; }
.rm-group-head::before {
    content: ''; position: absolute; left: -34px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 3px solid var(--group-color, #667eea);
}
.rm-group-count { color: #64748b; font-weight: 600; font-size: 14px; }
.rm-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 8px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: #0f172a;
}
.rm-item:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .1); color: #0f172a; }
.rm-item-title { font-weight: 600; word-break: break-word; }
.rm-item-meta { color: #64748b; font-size: 13px; white-space: nowrap; display: flex; gap: 12px; align-items: center; }
.rm-more { background: transparent; border: 0; color: #667eea; font-weight: 700; font-size: 14px; padding: 4px 0; }
.rm-more:disabled { opacity: .6; }

.rm-group .fb-empty { text-align: left; padding: 6px 0; }

.fb-detail-id { color: #94a3b8; font-weight: 500; font-size: .8em; }
.fb-detail-meta { margin-bottom: 18px; }
.fb-detail-row { display: flex; align-items: center; gap: 24px; padding: 8px 0; color: #0f172a; }
.fb-detail-label { width: 70px; color: #64748b; }
.fb-status-line { color: #334155; }
.fb-status-line .fa-bolt { color: #94a3b8; margin-right: 6px; }
.fb-status-change .fb-dot { margin: 0 4px 0 2px; }

/* Image attachments */
.fb-attach-btn { background: transparent; border: 0; color: #64748b; font-weight: 600; padding: 6px 8px; cursor: pointer; }
.fb-attach-btn:hover { color: var(--brand); }
.fb-attach-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.fb-attach-list:empty { display: none; }
.fb-attach-item { position: relative; width: 84px; height: 84px; }
.fb-attach-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; }
.fb-attach-remove {
    position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0;
    background: #0f172a; color: #fff; line-height: 1; font-size: 14px; cursor: pointer;
}
.fb-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.fb-images img { max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; display: block; }

/* Avatars */
.fb-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; color: #fff; font-weight: 700; }
.fb-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fb-avatar-star {
    position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #0f172a;
}
.fb-with-avatar { display: flex; gap: 14px; align-items: flex-start; }
.fb-comment-main { flex: 1 1 auto; min-width: 0; }
