.sytech-questions-page.sq-so {
    --sq-border: #c8cdd2;
    --sq-border-soft: #e1e4e7;
    --sq-text: #202124;
    --sq-muted: #687078;
    --sq-link: #0878b9;
    --sq-link-hover: #005f93;
    --sq-card: #ffffff;
    --sq-page-soft: #f5f6f7;
    --sq-tag: #eef1f3;
    --sq-green: #2e7d4f;
    --sq-green-bg: #edf8f1;
    --sq-green-border: #8fc5a2;
    --sq-orange: #d66b11;
    color: var(--sq-text);
}

.sytech-questions-page.sq-so a { color: var(--sq-link); }
.sytech-questions-page.sq-so a:hover { color: var(--sq-link-hover); }

.sytech-questions-page .sq-so-header,
.sytech-questions-page .sq-so-question-header,
.sytech-questions-page .sq-so-toolbar,
.sytech-questions-page .sq-so-list,
.sytech-questions-page .sq-so-post,
.sytech-questions-page .sq-so-answer-form,
.sytech-questions-page .sq-so-editor,
.sytech-questions-page .sq-so-empty-inline {
    background: var(--sq-card);
}

/* Index */
.sytech-questions-page .sq-so-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
    padding: 20px 22px;
    border: 1px solid var(--sq-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.sytech-questions-page .sq-so-header h1,
.sytech-questions-page .sq-so-question-header h1,
.sytech-questions-page .sq-so-editor h1 {
    margin: 0;
    color: var(--sq-text);
    font-weight: 500;
}
.sytech-questions-page .sq-so-header h1 { font-size: 26px; }
.sytech-questions-page .sq-so-header p { margin: 6px 0 0; color: var(--sq-muted); font-size: 13px; }

.sytech-questions-page .sq-so-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    border: 1px solid var(--sq-border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    color: #343a40;
}
.sytech-questions-page .sq-so-toolbar-note { color: var(--sq-muted); font-size: 12px; }

.sytech-questions-page .sq-so-list {
    border: 1px solid var(--sq-border);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.sytech-questions-page .sq-so-summary {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--sq-border-soft);
    background: #fff;
}
.sytech-questions-page .sq-so-summary:last-child { border-bottom: 0; }
.sytech-questions-page .sq-so-summary:hover { background: #fafbfc; }

.sytech-questions-page .sq-so-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    color: var(--sq-muted);
    font-size: 12px;
}
.sytech-questions-page .sq-so-stat {
    min-width: 76px;
    padding: 4px 7px;
    text-align: right;
    border: 1px solid var(--sq-border-soft);
    border-radius: 4px;
    background: #fafafa;
    white-space: nowrap;
}
.sytech-questions-page .sq-so-stat strong { margin-right: 3px; color: var(--sq-text); font-weight: 600; }
.sytech-questions-page .sq-so-stat.has-answers { color: var(--sq-green); border-color: var(--sq-green-border); background: #f8fcf9; }
.sytech-questions-page .sq-so-stat.is-answered { color: #fff; border-color: var(--sq-green); background: var(--sq-green); }
.sytech-questions-page .sq-so-stat.is-answered strong { color: #fff; }

.sytech-questions-page .sq-so-summary-title { margin: 0 0 7px; font-size: 17px; line-height: 1.35; font-weight: 500; }
.sytech-questions-page .sq-so-summary-title a { text-decoration: none; }
.sytech-questions-page .sq-so-excerpt { margin-bottom: 11px; color: #3d4348; font-size: 13px; line-height: 1.5; }
.sytech-questions-page .sq-so-summary-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.sytech-questions-page .sq-so-statuses { display: flex; gap: 5px; flex-wrap: wrap; }
.sytech-questions-page .sq-so-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border: 1px solid #d9dee2;
    border-radius: 4px;
    background: var(--sq-tag);
    color: #4a5560;
    font-size: 11px;
    line-height: 1;
}
.sytech-questions-page .sq-so-tag-success { border-color: #b8d9c4; background: var(--sq-green-bg); color: var(--sq-green); }
.sytech-questions-page .sq-so-userline { color: var(--sq-muted); font-size: 12px; white-space: nowrap; }
.sytech-questions-page .sq-so-userline i { margin-right: 4px; }

/* Question page */
.sytech-questions-page .sq-so-question-header {
    margin: 0;
    padding: 20px 22px 17px;
    border: 1px solid var(--sq-border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.sytech-questions-page .sq-so-question-header h1 { font-size: 25px; line-height: 1.32; }
.sytech-questions-page .sq-so-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 9px;
    color: var(--sq-muted);
    font-size: 12px;
}
.sytech-questions-page .sq-so-question-meta strong { color: #495057; }

.sytech-questions-page .sq-so-post {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    margin: 0 0 14px;
    padding: 20px 22px;
    border: 1px solid var(--sq-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.sytech-questions-page .sq-so-question-header + .sq-so-post {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.sytech-questions-page .sq-so-vote-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-right: 10px;
    border-right: 1px solid var(--sq-border-soft);
}
.sytech-questions-page .sq-so-vote-form { margin: 0; }
.sytech-questions-page .sq-so-vote-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    padding: 0;
    border: 1px solid #d6dadd;
    border-radius: 6px;
    background: #f7f8f9;
    color: #66717a;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.sytech-questions-page button.sq-so-vote-arrow:hover {
    border-color: #e0a36f;
    background: #fff6ee;
    color: var(--sq-orange);
}
.sytech-questions-page .sq-so-vote-arrow.is-active {
    border-color: #e0a36f;
    background: #fff3e8;
    color: var(--sq-orange);
}
.sytech-questions-page .sq-so-vote-arrow.is-disabled { cursor: default; opacity: .55; }
.sytech-questions-page .sq-so-score { padding: 5px 0; color: var(--sq-text); font-size: 20px; line-height: 1; font-weight: 600; }
.sytech-questions-page .sq-so-accepted-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 8px;
    border: 1px solid var(--sq-green-border);
    border-radius: 50%;
    background: var(--sq-green-bg);
    color: var(--sq-green);
    font-size: 20px;
}

.sytech-questions-page .sq-so-post-body { min-width: 0; }
.sytech-questions-page .sq-so-prose { color: #252a2e; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.sytech-questions-page .sq-so-prose p:last-child { margin-bottom: 0; }
.sytech-questions-page .sq-so-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-top: 22px;
    padding-top: 13px;
    border-top: 1px solid var(--sq-border-soft);
}
.sytech-questions-page .sq-so-post-actions { display: flex; align-items: center; gap: 8px; min-height: 34px; flex-wrap: wrap; }
.sytech-questions-page .sq-so-action-link {
    padding: 5px 8px;
    border: 1px solid #d8dde1;
    border-radius: 4px;
    background: #f8f9fa;
    color: #5f6870;
    font-size: 12px;
    font-weight: 500;
}
.sytech-questions-page .sq-so-action-link:hover { border-color: #b9c2c9; background: #f0f2f4; color: var(--sq-link); text-decoration: none; }
.sytech-questions-page .sq-so-danger-link:hover { border-color: #e2b7ba; background: #fff5f5; color: #b9272d; }

.sytech-questions-page .sq-so-author-card {
    display: grid;
    grid-template-columns: auto;
    gap: 2px;
    min-width: 164px;
    padding: 9px 11px;
    border: 1px solid #cddbe4;
    border-radius: 6px;
    background: #edf5fa;
    color: var(--sq-muted);
    font-size: 11px;
}
.sytech-questions-page .sq-so-author-card strong { color: var(--sq-link); font-size: 13px; }
.sytech-questions-page .sq-so-author-label { color: #75808a; }
/* Consistent HumHub avatar + linked user identity for questions and answers. */
.sytech-questions-page .sq-so-user-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    width: fit-content;
    color: var(--sq-link);
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
}
.sytech-questions-page .sq-so-user-link:hover .sq-so-user-name,
.sytech-questions-page .sq-so-user-link:focus-visible .sq-so-user-name {
    text-decoration: underline;
}
.sytech-questions-page .sq-so-user-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: cover;
    border-radius: 50%;
}
.sytech-questions-page .sq-so-user-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}
.sytech-questions-page .sq-so-user-deleted { color: var(--sq-muted); }

.sytech-questions-page .sq-so-accepted-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 9px;
    border: 1px solid var(--sq-green-border);
    border-radius: 5px;
    background: var(--sq-green-bg);
    color: var(--sq-green);
    font-size: 12px;
    font-weight: 600;
}
.sytech-questions-page .sq-so-answer.is-accepted {
    border-color: var(--sq-green-border);
    box-shadow: 0 0 0 1px rgba(46,125,79,.05), 0 1px 3px rgba(0,0,0,.05);
}

.sytech-questions-page .sq-so-answers-heading {
    margin: 18px 0 10px;
    padding: 0 2px;
}
.sytech-questions-page .sq-so-answers-heading h2,
.sytech-questions-page .sq-so-answer-form h2 { margin: 0; color: var(--sq-text); font-size: 20px; font-weight: 600; }

.sytech-questions-page .sq-so-answer-form {
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px solid var(--sq-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.sytech-questions-page .sq-so-answer-form h2 { margin-bottom: 14px; }
.sytech-questions-page .sq-so-form-help { margin: 8px 0 14px; color: var(--sq-muted); font-size: 12px; }

.sytech-questions-page .sq-so-empty {
    padding: 42px 20px;
    text-align: center;
    color: var(--sq-muted);
}
.sytech-questions-page .sq-so-empty i { font-size: 34px; opacity: .55; }
.sytech-questions-page .sq-so-empty h3 { margin: 10px 0 5px; color: var(--sq-text); font-size: 18px; font-weight: 600; }
.sytech-questions-page .sq-so-empty p { margin: 0; }
.sytech-questions-page .sq-so-empty-inline {
    margin-bottom: 14px;
    border: 1px solid var(--sq-border);
    border-radius: 8px;
}
.sytech-questions-page .sq-so-pagination { padding-top: 16px; text-align: center; }

/* Editor */
.sytech-questions-page .sq-so-editor {
    max-width: 860px;
    padding: 22px;
    border: 1px solid var(--sq-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.sytech-questions-page .sq-so-editor h1 { font-size: 24px; }
.sytech-questions-page .sq-so-editor-intro { margin: 8px 0 20px; color: var(--sq-muted); }
.sytech-questions-page .sq-so-editor-actions { margin-top: 15px; }

/* Stream entry */
.sytech-question-wall .sq-wall-selected {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid var(--sq-green-border);
    border-radius: 6px;
    background: var(--sq-green-bg);
}
.sytech-question-wall .sq-wall-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

@media (max-width: 700px) {
    .sytech-questions-page .sq-so-header {
        margin-bottom: 10px;
        padding: 15px 16px;
        border-radius: 7px;
    }
    .sytech-questions-page .sq-so-header h1 { font-size: 22px; }

    .sytech-questions-page .sq-so-toolbar { padding: 10px 12px; }
    .sytech-questions-page .sq-so-summary {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 14px 13px;
    }
    .sytech-questions-page .sq-so-stats {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }
    .sytech-questions-page .sq-so-stat { min-width: auto; text-align: left; padding: 3px 6px; }
    .sytech-questions-page .sq-so-summary-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
    .sytech-questions-page .sq-so-userline { white-space: normal; }

    .sytech-questions-page .sq-so-question-header {
        padding: 15px 15px 13px;
        border-radius: 7px 7px 0 0;
    }
    .sytech-questions-page .sq-so-question-header h1 { font-size: 22px; font-weight: 500; }
    .sytech-questions-page .sq-so-question-meta { gap: 7px 12px; }

    .sytech-questions-page .sq-so-post {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 12px;
        padding: 14px 12px;
        border-radius: 7px;
    }
    .sytech-questions-page .sq-so-question-header + .sq-so-post {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .sytech-questions-page .sq-so-vote-rail { padding-right: 7px; }
    .sytech-questions-page .sq-so-vote-arrow { width: 34px; height: 31px; font-size: 22px; border-radius: 5px; }
    .sytech-questions-page .sq-so-score { font-size: 18px; }
    .sytech-questions-page .sq-so-accepted-mark { width: 32px; height: 32px; font-size: 18px; }
    .sytech-questions-page .sq-so-prose { font-size: 15px; line-height: 1.55; }
    .sytech-questions-page .sq-so-post-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 16px;
        padding-top: 11px;
    }
    .sytech-questions-page .sq-so-author-card {
        align-self: stretch;
        min-width: 0;
        padding: 8px 10px;
    }
    .sytech-questions-page .sq-so-post-actions { min-height: 0; }
    .sytech-questions-page .sq-so-action-link { padding: 5px 7px; }
    .sytech-questions-page .sq-so-answers-heading { margin: 16px 0 9px; }
    .sytech-questions-page .sq-so-answer-form,
    .sytech-questions-page .sq-so-editor { padding: 15px; border-radius: 7px; }
}

/* Native HumHub topics */
.sytech-questions-page .sq-so-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
}
.sytech-questions-page .sq-so-topics .badge {
    margin: 0;
}
.sytech-question-wall .sq-wall-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sytech-question-wall .sq-wall-topics .badge {
    margin: 0;
}

/* Discovery layout: isolated from HumHub's Space and stream styles. */
.sq-discover{max-width:960px;margin:0 auto 20px;border-radius:12px;overflow:hidden}
.sq-discover .sq-discover-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid #e5e7eb}
.sq-discover h1{font-size:24px;line-height:1.25;margin:0 0 6px;font-weight:600}
.sq-discover .sq-discover-heading p{font-size:14px;line-height:1.45;margin:0;color:#64748b}
.sq-discover .panel-body{padding:16px 20px}
.sq-discover .sq-ask-button{white-space:nowrap;border-radius:20px;font-size:14px;padding:10px 16px}
.sq-discover .sq-search{display:flex;gap:8px;align-items:center;margin:0 0 16px}
.sq-discover .sq-search .form-control{min-width:0;flex:1;height:42px;border-radius:8px;font-size:15px}
.sq-discover .sq-search .btn{height:42px;margin:0;border-radius:8px;font-size:14px}
.sq-discover-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 0 14px;margin:0;border-bottom:1px solid #e5e7eb}
.sq-discover-tabs a{display:block;flex-shrink:0;padding:9px 14px;border-radius:20px;background:#f1f5f9;color:#475569;font-size:14px;text-decoration:none}
.sq-discover-tabs a.is-active{background:#334e68;color:#fff}
.sq-discover .sq-so-summary{display:block;padding:18px 0;margin:0;border-bottom:1px solid #e5e7eb}
.sq-discover .sq-so-summary-main{min-width:0;width:100%}
.sq-discover .sq-so-summary-title{font-size:19px;line-height:1.4;margin:0 0 8px;font-weight:600;overflow-wrap:anywhere}
.sq-discover .sq-card-excerpt{font-size:14px;line-height:1.6;color:#52606d;margin:0 0 12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sq-card-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#64748b}
.sq-space-list{display:grid;gap:10px;margin:16px 0}.sq-space-choice{display:block;padding:14px;border:1px solid #dbe2ea;border-radius:8px;overflow-wrap:anywhere}
.sq-discover a:focus-visible,.sq-discover button:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:600px){.sq-discover .sq-discover-heading{padding:16px;flex-wrap:wrap;gap:12px}.sq-discover .panel-body{padding:14px 16px}.sq-discover h1{font-size:22px}.sq-discover .sq-so-summary-title{font-size:18px}.sq-discover .sq-ask-button{padding:9px 14px}.sq-discover .sq-so-summary{padding:16px 0}}

/* Override generic question-page link colours for the primary action. */
.sq-discover a.btn.sq-ask-button,
.sq-discover a.btn.sq-ask-button:visited,
.sq-discover a.btn.sq-ask-button:hover,
.sq-discover a.btn.sq-ask-button:focus,
.sq-discover a.btn.sq-ask-button:active{color:#fff;background:#334e68;border-color:#334e68;text-decoration:none}
.sq-discover a.btn.sq-ask-button:hover{background:#243b53;border-color:#243b53}

.sq-discover .sq-card-author{font-size:13px;line-height:1.5;margin-bottom:8px;color:#334155;font-weight:600}.sq-discover .sq-card-author span{color:#64748b;font-weight:400}.sq-discover .sq-card-topics{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.sq-discover .sq-card-status{font-size:12px;color:#52606d;margin:8px 0 12px}.sq-discover .sq-topic-help{font-size:13px;color:#64748b}

.sq-results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;font-size:12px;color:#64748b}.sq-sort-form{display:flex;gap:6px;align-items:center}.sq-discover .sq-sort-form .form-control{width:auto;max-width:170px;font-size:13px;height:36px}.sq-sort-form .btn{font-size:12px;padding:7px 10px}.sq-reset{font-size:13px;margin:0 0 12px}.sq-card-meta a{overflow-wrap:anywhere}

/* Native dashboard page: no sq-so/sq-discover classes on the feed. */
.sq-native-dashboard .sq-native-composer .panel-body{padding:10px}
.sq-native-dashboard a.sq-native-prompt{display:block;height:auto;min-height:40px;padding:10px 12px;text-decoration:none;color:inherit;opacity:.75}
.sq-native-dashboard .sq-native-filter{margin:0 0 10px}
.sq-native-dashboard .sq-native-filter summary{cursor:pointer;padding:8px 5px;list-style:none}
.sq-native-dashboard .sq-native-filter summary::-webkit-details-marker{display:none}
.sq-native-dashboard .sq-native-filter>.panel{margin-top:8px}
.sq-native-dashboard .sq-native-result-count{font-size:12px;margin:0 5px 8px}
.sq-native-dashboard .sq-native-space-link{font-size:12px;padding:0 10px 10px}
.sq-native-dashboard .sq-native-entry{margin-bottom:10px}
.sq-native-dashboard .sq-native-entry>.panel{margin-bottom:5px}
.sq-native-dashboard .sq-native-filter .form-control{max-width:100%}

.sq-bookmark-form{display:inline-block;margin:0 6px 6px 0;vertical-align:middle}

/* The dashboard row sits directly in the page layout, not inside a Bootstrap
   padded container. Compensating negative row gutters overflow small screens. */
.sq-native-dashboard.row{margin-left:0;margin-right:0;width:100%;max-width:100%;box-sizing:border-box}
.sq-native-dashboard>.layout-content-container,
.sq-native-dashboard>.layout-sidebar-container{min-width:0;box-sizing:border-box}
.sq-native-dashboard .sq-native-feed,
.sq-native-dashboard .sq-native-entry,
.sq-native-dashboard .panel{min-width:0;max-width:100%;box-sizing:border-box}
.sq-native-dashboard .sq-native-space-link,
.sq-native-dashboard .sytech-question-wall{overflow-wrap:anywhere;word-break:normal}
.sq-native-dashboard .sytech-question-wall img,
.sq-native-dashboard .sytech-question-wall video,
.sq-native-dashboard .sytech-question-wall iframe{max-width:100%}
.sq-native-dashboard .sytech-question-wall pre{max-width:100%;overflow-x:auto}
.sq-native-dashboard .sytech-question-wall table{display:block;max-width:100%;overflow-x:auto}
.sq-native-dashboard .pagination{display:flex;flex-wrap:wrap;max-width:100%}
@media(max-width:991px){
 .sq-native-dashboard>.layout-content-container{width:100%;padding-left:0;padding-right:0}
 .sq-native-dashboard .media-body{overflow-wrap:anywhere}
 .sq-native-dashboard .sq-bookmark-form{max-width:100%}
 .sq-native-dashboard .sq-wall-footer .btn{max-width:100%;white-space:normal}
}

/* Active query filters expand <details>; its nested grid and form controls
   must shrink independently of the outer dashboard grid. */
.sq-native-dashboard .sq-native-filter,
.sq-native-dashboard .sq-native-filter>.panel,
.sq-native-dashboard .sq-native-filter .panel-body,
.sq-native-dashboard .sq-native-filter form,
.sq-native-dashboard .sq-native-filter fieldset,
.sq-native-dashboard .sq-native-filter .form-group{min-width:0;max-width:100%;box-sizing:border-box}
.sq-native-dashboard .sq-native-filter .row{margin-left:0;margin-right:0;min-width:0;max-width:100%}
.sq-native-dashboard .sq-native-filter .row>[class*="col-"]{min-width:0;max-width:100%;box-sizing:border-box}
.sq-native-dashboard .sq-native-filter input.form-control,
.sq-native-dashboard .sq-native-filter select.form-control{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.sq-native-dashboard .sq-native-filter label,
.sq-native-dashboard .sq-native-filter .help-block{overflow-wrap:anywhere;white-space:normal}
.sq-native-dashboard .sq-native-filter .btn{max-width:100%;white-space:normal;margin-bottom:5px}
@media(max-width:767px){
 .sq-native-dashboard .sq-native-filter .row>[class*="col-"]{float:none;width:100%;padding-left:0;padding-right:0}
}

.sq-native-dashboard .sq-my-answer p{overflow-wrap:anywhere;margin-top:8px}.sq-native-dashboard .sq-my-answer .btn{margin:5px;white-space:normal;max-width:100%}

.sq-profile-contributions{min-width:0;max-width:100%}.sq-profile-contributions .panel-heading,.sq-profile-contributions .panel-body{overflow-wrap:anywhere}.sq-profile-contributions .nav-tabs{display:flex;flex-wrap:wrap}.sq-profile-contributions .pagination{display:flex;flex-wrap:wrap}

/* Explicit scoped tabs support both Bootstrap 3 and current HumHub themes. */
.sq-profile-contributions .sq-profile-tabs{display:flex;flex-wrap:wrap;gap:4px;list-style:none;padding:8px 10px 0;margin:0;border-bottom:1px solid #dbe2e8}
.sq-profile-contributions .sq-profile-tabs>li{display:block;float:none;margin:0 0 -1px;padding:0}
.sq-profile-contributions .sq-profile-tabs>li>a{display:block;padding:10px 14px;margin:0;text-decoration:none;border:1px solid transparent;border-radius:5px 5px 0 0;line-height:1.4;font-size:14px}
.sq-profile-contributions .sq-profile-tabs>li>a.active{font-weight:600;border-color:#dbe2e8;border-bottom-color:#fff;background:#fff;color:#334e68}
.sq-profile-contributions .sq-profile-tabs>li>a:hover{background:#f1f5f9}
.sq-profile-contributions .sq-profile-tabs>li>a:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}

.sq-curation-labels{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}.sq-curation-labels .label{display:inline-block;font-size:12px;padding:4px 8px;border-radius:4px;background:#e8eef3;color:#334e68}

.sq-topic-navigation{padding:0 5px 10px;font-size:14px;overflow-wrap:anywhere}.sq-topic-navigation a{margin-right:10px}
.sq-topic-directory{min-width:0;max-width:100%}.sq-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sq-topic-grid h2{font-size:18px;line-height:1.4;margin:0 0 8px;overflow-wrap:anywhere}.sq-topic-grid .panel{min-width:0;margin:0}.sq-topic-search{display:flex;gap:8px;margin:6px 0 12px}.sq-topic-search .form-control{min-width:0;flex:1}.sq-topic-search .btn{flex-shrink:0}.sq-question-topic-link{display:inline-block;padding:4px 8px;margin:4px;border-radius:4px;background:#edf2f6;font-size:12px;text-decoration:none;overflow-wrap:anywhere}.sq-topic-directory .pagination{display:flex;flex-wrap:wrap}
@media(max-width:767px){.sq-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:400px){.sq-topic-grid{grid-template-columns:minmax(0,1fr)}}

.sq-trending-note{font-size:12px;margin:8px 5px;overflow-wrap:anywhere}.sytech-question-wall .sq-wall-selected p{overflow-wrap:anywhere;margin:8px 0}

.sq-request-row{padding:12px 0;border-bottom:1px solid #dbe2e8;overflow-wrap:anywhere}.sq-request-row h3{font-size:18px;overflow-wrap:anywhere}.sq-insights-table{max-width:100%;overflow-x:auto}.sq-insights-table table{width:100%;font-size:13px}.sq-insight-topic{padding:8px 0;overflow-wrap:anywhere}

.sq-topic-grid .sq-bookmark-form,.sq-topic-navigation .sq-bookmark-form{max-width:100%}.sq-topic-grid .sq-bookmark-form .btn{max-width:100%;white-space:normal}


/* Space question index: count and status filter toolbar */
.sytech-questions-page.sq-so .sq-so-toolbar {
    gap: 18px;
    padding: 13px 18px;
    min-width: 0;
}
.sytech-questions-page.sq-so .sq-so-toolbar-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}
.sytech-questions-page.sq-so .sq-so-toolbar-count-number {
    color: var(--sq-text);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.sytech-questions-page.sq-so .sq-so-toolbar-count-label {
    color: var(--sq-muted);
    font-size: 13px;
    font-weight: 500;
}
.sytech-questions-page.sq-so .sq-so-filter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}
.sytech-questions-page.sq-so .sq-so-filter-nav .sq-so-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #52606d;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sytech-questions-page.sq-so .sq-so-filter-nav .sq-so-filter-link:hover {
    color: var(--sq-link-hover);
    background: #edf3f7;
    text-decoration: none;
}
.sytech-questions-page.sq-so .sq-so-filter-nav .sq-so-filter-link.is-active,
.sytech-questions-page.sq-so .sq-so-filter-nav .sq-so-filter-link.is-active:hover {
    color: #fff;
    background: #334e68;
    border-color: #334e68;
    font-weight: 600;
}
.sytech-questions-page.sq-so .sq-so-filter-nav .sq-so-filter-link:focus-visible {
    outline: 2px solid #0878b9;
    outline-offset: 2px;
}
@media (max-width: 850px) {
    .sytech-questions-page.sq-so .sq-so-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 13px 14px;
    }
    .sytech-questions-page.sq-so .sq-so-filter-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .sytech-questions-page.sq-so .sq-so-filter-nav .sq-so-filter-link { flex: 0 0 auto; }
}

/* Required topics appear directly in the Questions stream composer.
   HumHub's footer includes the native postTopicInput picker, normally hidden
   behind the options dropdown. Limit the override to Questions only. */
.sq-question-composer [id^="postTopicContainer"] {
    display: block !important;
    margin: 8px 0 15px;
}
.sq-question-composer .sq-question-topics-label {
    display: block;
    margin: 12px 0 3px;
    font-weight: 600;
}
.sq-question-composer .sq-question-topics-label span { color: #b53b3b; }
.sq-question-composer .sq-question-topics-help {
    color: #687078;
    font-size: 12px;
    margin: 0 0 7px;
}

/* Compact, mobile-first question cards in the native HumHub stream (v1.15.1). */
.sytech-question-wall { min-width: 0; overflow-wrap: anywhere; }
.sytech-question-wall .sq-wall-excerpt {
    margin: 3px 0 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-color-main, #455563);
}
.sytech-question-wall .sq-wall-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.sytech-question-wall .sq-wall-topics .sq-question-topic-link {
    display: inline-flex; align-items: center; margin: 0; padding: 4px 10px;
    border-radius: 999px; font-size: 12px; line-height: 1.4;
    background: var(--background-color-secondary, #eef3f6); color: var(--text-color-main, #476173);
    text-decoration: none;
}
.sytech-question-wall .sq-wall-topics .sq-question-topic-link:hover { text-decoration: underline; }
.sytech-question-wall .sq-wall-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #6b7884; }
.sytech-question-wall .sq-wall-solved { color: #238058; font-weight: 600; }
.sytech-question-wall .sq-wall-accepted {
    margin: 12px 0 0; padding: 10px 12px;
    background: #f5faf7; border-left: 3px solid #29956c; border-radius: 5px;
}
.sytech-question-wall .sq-wall-accepted-heading { font-size: 12px; font-weight: 700; color: #267752; }
.sytech-question-wall .sq-wall-accepted p { margin: 5px 0; font-size: 13px; line-height: 1.55; }
.sytech-question-wall .sq-wall-text-link { font-size: 12px; font-weight: 600; }
.sytech-question-wall .sq-wall-view-link { display: inline-block; margin-top: 11px; font-size: 13px; font-weight: 600; }
.sytech-question-wall.sq-wall-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    padding-top: 8px;
}
.sytech-question-wall.sq-wall-actions .sq-bookmark-form { display: inline-flex; margin: 0; max-width: 100%; }
.sytech-question-wall.sq-wall-actions .sq-bookmark-form .btn { margin: 0; font-size: 12px; border-radius: 7px; white-space: normal; }
@media (max-width: 600px) {
    .sytech-question-wall .sq-wall-excerpt { font-size: 14px; line-height: 1.55; }
    .sytech-question-wall .sq-wall-accepted { padding: 9px 11px; }
    .sytech-question-wall.sq-wall-actions { gap: 6px; }
}

/* Answer is an ordinary anchor. HumHub styles it like Comment and Like. */
/* Question prefixes: subtle, distinct from topic tags and solved status. */
.sq-question-prefix {
    display: inline-block;
    padding: 3px 8px;
    margin: 0 5px 0 0;
    border: 1px solid #b9cce1;
    border-radius: 5px;
    background: #edf4fb;
    color: #245780;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    vertical-align: baseline;
    white-space: nowrap;
}
.sq-prefix-select { max-width: 260px; }
/* Prefix is part of the title text flow, not a separate block. */
.sytech-question-wall .sq-wall-question-title {
    margin: 0 0 9px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.sytech-question-wall .sq-wall-question-title a { color: inherit; text-decoration: none; }
.sytech-question-wall .sq-wall-question-title a:hover { text-decoration: underline; }
.sq-so-question-header h1 .sq-question-prefix,
.sq-so-summary-title .sq-question-prefix,
.sq-wall-question-title .sq-question-prefix {
    font-size: 0.65em;
    vertical-align: 0.12em;
}


/* Space prefix administration */
.sq-prefix-admin .panel-body {padding:22px;}
.sq-prefix-admin-item {padding:16px 0;border-bottom:1px solid #e8edf1;}
.sq-prefix-admin-sample {margin-bottom:12px;display:flex;align-items:center;gap:12px;}
.sq-prefix-admin-actions {display:flex;gap:8px;}
.sq-prefix-admin-builtins {display:flex;flex-wrap:wrap;gap:7px;}
.sq-prefix-manage-link {margin:10px 0 15px;text-align:right;}
.sq-prefix-admin input[type=color] {min-height:36px;padding:4px 7px;}
@media(max-width:767px){.sq-prefix-admin .panel-body{padding:15px}.sq-prefix-manage-link{text-align:left}}

/* Do not override link color: HumHub/theme anchor rules control it.
   Fixed CSS fallback colors can conflict with custom light/dark themes. */
.sytech-question-wall .sq-wall-excerpt a.sq-wall-excerpt-link {
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.sytech-question-wall .sq-wall-excerpt a.sq-wall-excerpt-link:hover,
.sytech-question-wall .sq-wall-excerpt a.sq-wall-excerpt-link:focus {
    text-decoration: underline;
}

/* Space forum categories (v1.15.9) */
.sq-category-nav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}
.sq-category-filter{display:inline-flex;align-items:center;border:1px solid var(--border-color,#d9e1e5);padding:7px 11px;border-radius:7px;text-decoration:none!important}
.sq-category-filter.active{background:var(--primary,#365a70);border-color:var(--primary,#365a70);color:#fff!important}
.sq-question-category-line{margin:7px 0 10px}
.sq-category-badge{font-size:12px;font-weight:600;display:inline-block;padding:4px 10px;border-radius:5px;background:var(--background-color-secondary,#edf2f5);border:1px solid var(--border-color,#dde5e9);text-decoration:none!important}
.sq-category-admin .sq-category-row{border:1px solid #dfe5e9;padding:14px;border-radius:8px;margin-bottom:12px}
.sq-category-admin .sq-category-controls{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.sq-category-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.sq-category-filter{white-space:nowrap;flex-shrink:0}}

/* v1.16.1: native HumHub content options outside the stream. */
.sq-forum-menu-host {position:relative;}
.sq-forum-native-menu {position:absolute;top:10px;right:10px;z-index:5;}
.sq-so-question-header {padding-right:48px;}
.sq-so-summary-main {padding-right:32px;}
.sq-forum-native-menu .preferences {margin:0;}
.sq-forum-native-menu .dropdown-menu {z-index:1100;}
.sq-forum-native-answer-menu {position:absolute;right:8px;top:8px;z-index:5;}
.sq-forum-native-answer-menu .preferences {margin:0;}
.sq-forum-native-answer-menu .dropdown-menu {z-index:1100;}
.sq-so-answer .sq-so-prose {padding-right:24px;}

/* Questions list now renders the real HumHub content wall-entry widget.
   Do not wrap it in the old bespoke summary-card surface or menu. */
.sytech-questions-page .sq-native-question-list{display:block;background:transparent;border:0;box-shadow:none;padding:0}
.sytech-questions-page .sq-native-question-entry{margin-bottom:12px;min-width:0}
.sytech-questions-page .sq-native-question-entry .panel{margin-bottom:0}
.sytech-questions-page .sq-native-question-state{padding:7px 12px 10px;background:#fff;border:1px solid #eee;border-top:0}

/* Single-question actions belong to the native wall entry, not a second card. */
.sytech-questions-page .sq-native-question-entry{margin-bottom:12px}
.sytech-questions-page .sq-wall-detail-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #e9ecef}
.sytech-questions-page .sq-wall-detail-votes{display:inline-flex;align-items:center;gap:7px;flex-direction:row;border:0;padding:0}
.sytech-questions-page .sq-wall-detail-votes .sq-so-vote-form{display:inline-flex;margin:0}
.sytech-questions-page .sq-wall-detail-votes .sq-so-vote-arrow{height:30px;width:34px;font-size:22px}
.sytech-questions-page .sq-wall-detail-votes .sq-so-score{min-width:22px;text-align:center;font-size:17px;padding:0}
.sytech-questions-page .sq-wall-detail-moderation{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.sytech-questions-page .sq-wall-detail-moderation form{display:inline-flex;margin:0}
.sytech-questions-page .sq-wall-detail-moderation .btn{margin:0}
@media(max-width:575px){.sytech-questions-page .sq-wall-detail-tools{gap:10px;padding:10px 0}.sytech-questions-page .sq-wall-detail-moderation{width:100%}}

/* 1.16.15: Reddit-inspired compact actions on the question detail wall entry.
   Scoped to native detail cards; native Answer, Comment and Like events remain intact. */
.sq-native-question-detail .sq-reddit-action-bar {
    display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;
    padding:9px 0;margin:0;
}
.sq-native-question-detail .sq-reddit-vote-pill {
    display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;
    border-radius:999px;background:var(--background-color-secondary,#eef1f4);
    color:var(--text-color-main,#28323b);padding:3px 6px;
}
.sq-native-question-detail .sq-reddit-vote-form {display:inline-flex;margin:0}
.sq-native-question-detail .sq-reddit-vote-btn {
    display:inline-flex;align-items:center;justify-content:center;
    border:0;border-radius:50%;width:32px;height:32px;padding:0;
    background:transparent;color:inherit;cursor:pointer;font-size:16px;
}
.sq-native-question-detail .sq-reddit-vote-btn.is-active {color:#d95d24}
.sq-native-question-detail .sq-reddit-vote-btn.is-disabled {opacity:.45;cursor:default}
.sq-native-question-detail .sq-reddit-vote-form .sq-reddit-vote-btn:hover,
.sq-native-question-detail .sq-reddit-vote-form .sq-reddit-vote-btn:focus-visible {
    background:rgba(120,130,140,.16);outline-offset:1px;
}
.sq-native-question-detail .sq-reddit-vote-count {min-width:20px;text-align:center;font-size:13px;line-height:1.5}
.sq-native-question-detail .sq-reddit-native-actions {display:flex;align-items:center;min-width:0;flex:1 1 auto}
.sq-native-question-detail .sq-reddit-native-actions > * {max-width:100%}
/* Allow HumHub to determine the native dropdown menu's foreground, hover, and background colors. */
.sq-reddit-dropdown-form {margin:0}
.dropdown-menu > li.sq-reddit-dropdown-action > .sq-reddit-dropdown-form > .sq-native-menu-action {display:block;width:100%;padding:3px 20px;clear:both;font:inherit;font-weight:normal;line-height:1.42857143;color:inherit;text-align:left;white-space:nowrap;background:transparent;border:0;cursor:pointer}
.dropdown-menu > li.sq-reddit-dropdown-action:hover > .sq-reddit-dropdown-form > .sq-native-menu-action,
.dropdown-menu > li.sq-reddit-dropdown-action:focus-within > .sq-reddit-dropdown-form > .sq-native-menu-action {color:inherit;background:transparent}
@media(max-width:575px){.sq-native-question-detail .sq-reddit-action-bar{gap:7px}.sq-native-question-detail .sq-reddit-vote-btn{width:30px;height:30px}}

/* Detail-only top toolbar uses native HumHub button colors. */
.sq-native-question-detail .sq-question-top-actions {display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 12px}
.sq-native-question-detail .sq-question-top-actions .sq-bookmark-form {display:inline-flex;margin:0}
.sq-native-question-detail .sq-question-top-actions .btn {margin:0}

/* Native answer wall entry: use HumHub's entry shell, header and context menu.
 * Only custom Q&A controls inside the answer content receive local styling. */
.sytech-questions-page .sq-native-answer-entry{margin:0 0 14px;scroll-margin-top:75px}
.sytech-questions-page .sq-native-answer-content{min-width:0}
.sytech-questions-page .sq-native-answer-content .sq-so-prose{padding-right:0;overflow-wrap:anywhere}
.sytech-questions-page .sq-native-answer-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:15px}
.sytech-questions-page .sq-native-answer-votes{display:inline-flex;gap:6px;align-items:center;flex:0 0 auto}
.sytech-questions-page .sq-native-answer-votes .sq-so-score{font-size:15px;padding:0 3px}
.sytech-questions-page .sq-native-answer-votes .sq-so-vote-arrow{width:32px;height:29px;font-size:21px}
.sytech-questions-page .sq-native-answer-tool-form{margin:0}
.sytech-questions-page .sq-native-answer-entry.is-accepted{border-left:3px solid var(--sq-green, #2c8b57)}

/* Questions List only: show the question and its native action links first.
 * HumHub comments remain mounted; clicking Comment reveals the native panel.
 * Detail pages and the normal Space wall do not inherit this rule. */
.sq-native-question-list .sq-native-question-entry:not(.sq-comments-expanded) .comment-container {
    display: none;
}
/* Native answer stream entries retain the original question link on the wall. */
.sq-answer-original-question{font-size:13px;line-height:1.5;color:var(--text-muted,#6c757d);margin:0 0 12px}
.sq-answer-original-question a{font-weight:600}
