.dashboard-question-hub-slot {
    width: 156px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.dashboard-center-feedback-slot {
    gap: 6px;
}

.dashboard-question-hub-button {
    width: 148px;
    min-height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #203449;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dashboard-question-hub-button:hover,
.dashboard-question-hub-button:focus-visible {
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.dashboard-question-hub-icon {
    position: relative;
    width: 136px;
    height: 136px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(18px);
}

.dashboard-question-hub-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(22, 62, 104, 0.22));
}

.dashboard-question-hub-icon .question-hub-icon-fallback {
    display: none;
    color: #287cc1;
    font-size: 3.3rem;
    filter: drop-shadow(0 4px 7px rgba(22, 62, 104, 0.22));
}

.dashboard-question-hub-icon.is-fallback img { display: none; }
.dashboard-question-hub-icon.is-fallback .question-hub-icon-fallback { display: inline-block; }

.dashboard-question-hub-count {
    position: absolute;
    /* The PNG has a transparent edge: offset the badge into that space so it
       visibly touches the icon's upper-right edge rather than floating above it. */
    top: 14px;
    right: 10px;
    min-width: 27px;
    height: 27px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4b4b, #db1717);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.dashboard-question-hub-count.is-visible { display: inline-flex; }

.question-hub-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 34px);
}

.question-hub-overlay.hidden { display: none; }

.question-hub-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 32, 54, 0.58);
    backdrop-filter: blur(3px);
}

.question-hub-panel {
    position: relative;
    width: min(900px, 100%);
    max-height: min(780px, calc(100vh - 24px));
    overflow: hidden;
    border: 1px solid rgba(43, 123, 190, 0.24);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(10, 30, 58, 0.35);
}

.question-hub-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #dceaf5;
    background: linear-gradient(135deg, #edf8ff, #f9fcff 65%, #fff7e5);
}

.question-hub-panel__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #1976b9;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.question-hub-panel h2 {
    margin: 0;
    color: #203449;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 800;
}

.question-hub-panel__scope {
    margin: 6px 0 0;
    color: #60758a;
    font-size: 0.95rem;
    font-weight: 600;
}

.question-hub-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid #b8ccde;
    border-radius: 50%;
    background: #fff;
    color: #42576d;
    cursor: pointer;
}

.question-hub-panel__content {
    max-height: calc(min(780px, 100vh - 24px) - 131px);
    overflow-y: auto;
    padding: 24px 28px 30px;
}

.question-hub-loading,
.question-hub-empty {
    padding: 30px 16px;
    color: #61758a;
    text-align: center;
    font-weight: 600;
}

.question-hub-scope-select,
.question-hub-picker-grid,
.question-hub-form {
    display: grid;
    gap: 14px;
}

.question-hub-field label {
    display: block;
    margin-bottom: 6px;
    color: #29465d;
    font-size: 0.9rem;
    font-weight: 800;
}

.question-hub-field select,
.question-hub-field textarea {
    width: 100%;
    border: 1px solid #b9cfe2;
    border-radius: 12px;
    padding: 10px 12px;
    color: #21384c;
    background: #fff;
}

.question-hub-field textarea {
    min-height: 130px;
    resize: vertical;
}

.question-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.question-hub-actions .btn { font-weight: 750; }

.question-hub-new-section {
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #b9e5ca;
    border-radius: 16px;
    background: #f2fcf5;
}

.question-hub-new-section h3,
.question-hub-answers-heading {
    margin: 0 0 8px;
    color: #245136;
    font-size: 1.1rem;
    font-weight: 800;
}

.question-hub-answer-card {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #d5e4ef;
    border-radius: 14px;
    background: #fff;
}

.question-hub-answer-card__topic {
    margin-bottom: 6px;
    color: #4380ad;
    font-size: 0.78rem;
    font-weight: 800;
}

.question-hub-answer-card__question {
    margin: 0 0 8px;
    color: #203449;
    font-weight: 800;
}

.question-hub-answer-card__answer {
    margin: 0;
    color: #3d5365;
    line-height: 1.55;
    white-space: pre-line;
}

.question-hub-help-prompt,
.question-hub-privacy-note,
.question-hub-success {
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
}

.question-hub-help-prompt { background: #edf7ff; border: 1px solid #cbe4f6; }
.question-hub-privacy-note { background: #fff8e8; border: 1px solid #f3dea1; color: #6d5720; font-size: 0.9rem; }
.question-hub-success { background: #f1fbf3; border: 1px solid #b8e2c0; color: #245136; }

.question-hub-status { min-height: 1.2em; font-size: 0.9rem; font-weight: 650; }
.question-hub-status.is-error { color: #b42318; }

@media (max-width: 768px) {
    .dashboard-question-hub-slot { width: 118px; height: 76px; }
    .dashboard-question-hub-button { width: 112px; min-height: 76px; }
    .dashboard-question-hub-icon { width: 104px; height: 104px; transform: translateY(14px); }
    .question-hub-panel__header,
    .question-hub-panel__content { padding-left: 18px; padding-right: 18px; }
    .question-hub-panel__content { max-height: calc(100vh - 145px); }
}
