.qb-admin-main .card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-quiz-list-select-col {
    width: 2.75rem;
    vertical-align: middle;
}

.qb-quiz-list-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-quiz-list-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-quiz-list-col-filter {
    display: inline-block;
}

.qb-quiz-list-col-filter__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.qb-quiz-list-col-filter__toggle.dropdown-toggle::after {
    margin-left: 0.15rem;
    vertical-align: middle;
}

.qb-quiz-list-col-filter__toggle--active {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

th.text-end .qb-quiz-list-col-filter {
    text-align: right;
}

.qb-quiz-list-col-filter .dropdown-menu {
    min-width: 12rem;
    z-index: 1060;
}

.qb-quiz-list-col-filter-menu--portaled {
    z-index: 1060;
}

.qb-quiz-list-col-filter .dropdown-item.active {
    background: rgba(var(--qb-accent-rgb), 0.1);
    color: var(--qb-accent-hover);
}

/* Dropdown i tabellhuvud: table-responsive/card klipper annars menyn innanför kortet */
.card:has([data-qb-quiz-list-filter]) {
    overflow: visible;
}

.qb-quiz-list-table-wrap.table-responsive {
    overflow: visible;
}

.qb-quiz-list-table-wrap thead {
    position: relative;
    z-index: 2;
}

.qb-quiz-cover-upload__preview-wrap {
    margin-bottom: 0.75rem;
}

.qb-quiz-cover-upload__preview {
    display: block;
    width: min(100%, 18rem);
    max-height: 10rem;
    object-fit: cover;
}

.qb-quiz-cover-ai-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
    margin-top: 0.35rem;
}

.qb-quiz-cover-ai-status:empty {
    display: none;
}

.qb-quiz-cover-ai-status__text {
    font-size: 0.875rem;
    color: var(--tblr-secondary, #64748b);
}

.qb-quiz-cover-ai-countdown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    background: rgba(var(--qb-accent-rgb), 0.12);
    border: 1px solid rgba(var(--qb-accent-rgb), 0.22);
    color: var(--qb-accent-hover);
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.qb-quiz-list-cover {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    flex-shrink: 0;
}

.qb-quiz-list-cover--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: var(--tblr-secondary, #6c757d);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.qb-quiz-page-cover__img {
    display: block;
    width: 100%;
    max-height: 12rem;
    object-fit: cover;
}

.qb-builder-round {
    overflow: hidden;
}

.qb-builder-round__summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.qb-builder-round__summary::-webkit-details-marker {
    display: none;
}

.qb-builder-round__chevron {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    opacity: 0.55;
}

.qb-builder-round[open] .qb-builder-round__chevron {
    transform: rotate(45deg);
}

.qb-builder-round__body {
    border-top: 1px solid var(--tblr-border-color, rgba(0, 0, 0, 0.08));
}

.qb-admin-nav__title {
    letter-spacing: 0.04em;
}

.qb-admin-nav__link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--qb-text);
    text-decoration: none;
}

.qb-admin-nav__link:hover {
    background: rgba(var(--qb-accent-rgb), 0.08);
    color: var(--qb-accent);
}

.qb-admin-nav__link.is-active {
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent);
    font-weight: 600;
}

.qb-category-picker__custom[hidden] {
    display: none !important;
}

.qb-structure-round .list-group-item {
    border-left: 0;
    border-right: 0;
}

.qb-question-fields[hidden] {
    display: none !important;
}

.qb-question-preview {
    max-height: 220px;
    object-fit: contain;
}

.qb-spotify-results__cover {
    width: 48px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
}

.qb-spotify-results__cover--empty {
    background: rgba(0, 0, 0, 0.06);
}

.qb-spotify-results__row {
    transition: background-color 0.15s ease;
}

.qb-spotify-results__row--selectable {
    cursor: pointer;
}

.qb-spotify-results__row--selectable:hover,
.qb-spotify-results__row--selectable:focus-visible {
    background: rgba(var(--qb-accent-rgb), 0.06);
}

.qb-spotify-results__row--selected {
    outline: 2px solid var(--qb-accent);
    outline-offset: -2px;
}

.qb-live-progress .progress {
    height: 0.5rem;
}

.qb-live-progress__grid > [class*='col-'] + [class*='col-'] {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
}

@media (min-width: 992px) {
    .qb-live-progress__grid > [class*='col-'] + [class*='col-'] {
        border-top: 0;
        padding-top: 0;
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        padding-left: 1.25rem;
    }

    .qb-live-progress__grid > .col-lg-3:first-child {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
    }
}

.qb-live-progress__facit-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #166534;
}

.qb-live-progress__facit-answer {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #14532d;
}

.qb-live-progress .qb-live-host__leaderboard {
    max-height: 11rem;
    overflow-y: auto;
}

.qb-live-progress .qb-live-stats__body {
    max-height: 11rem;
    overflow-y: auto;
}

.qb-live-progress .qb-live-stats .qb-live-host__phase {
    padding: 0.75rem 0;
    background: transparent;
}

.qb-live-progress .qb-live-stats [data-qb-live-pa-sparet-stats-wrap],
.qb-live-progress .qb-live-stats [data-qb-live-mcq-wrap],
.qb-live-progress .qb-live-stats [data-qb-live-buzz-times-wrap] {
    padding: 0;
    border: 0;
    background: transparent;
}

.qb-live-progress .qb-live-stats__empty {
    padding: 0;
}

.qb-live-host__workspace-identity {
    min-width: 0;
    flex: 1 1 16rem;
}

.qb-live-host__workspace-next {
    margin-top: 0.65rem;
}

.qb-live-host__workspace-next-line {
    margin-top: 0.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--tblr-secondary, #64748b);
}

.qb-live-host__workspace--idle [data-qb-live-workspace-body] {
    display: none;
}

.qb-live-progress__details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.qb-live-progress__col--facit:has([data-qb-live-progress-facit-wrap]:not(.d-none)) {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.38);
    border-radius: 0.65rem;
    padding: 0.85rem;
    align-self: stretch;
}

.qb-live-progress__col--facit:has([data-qb-live-progress-facit-wrap]:not(.d-none)) .qb-live-host__section-label {
    color: #166534;
}

.qb-live-progress__facit {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.qb-live-progress__facit .small.text-secondary {
    color: #166534 !important;
}

.qb-live-progress__detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.qb-live-progress__facit .qb-live-progress__detail + .qb-live-progress__detail {
    margin-top: 0.35rem;
}

.qb-live-progress__detail > span:first-child {
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qb-live-host__header {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.qb-live-host__hero-col--display .qb-live-display-launch__btn {
    width: 100%;
}

@media (min-width: 992px) {
    .qb-live-host__hero-col--display {
        text-align: right;
    }

    .qb-live-host__hero-col--display .qb-live-display-launch__btn {
        width: auto;
        min-width: 10rem;
    }
}

.qb-live-host__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qb-accent);
}

.qb-live-host__title {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.85rem;
    line-height: 1.2;
    background: var(--qb-accent);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 0.375rem;
}

.qb-live-host__meta-dot {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
}

.qb-live-host__lobby {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-live-host__lobby-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.qb-live-host__lobby-ring::before {
    content: '';
    position: absolute;
    inset: -120%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 155deg,
        rgba(47, 179, 68, 0.06) 168deg,
        rgba(47, 179, 68, 0.35) 200deg,
        #2fb344 240deg,
        #45cc62 280deg,
        rgba(47, 179, 68, 0.35) 318deg,
        rgba(47, 179, 68, 0.06) 348deg,
        transparent 360deg
    );
    animation: qb-live-lobby-ring-sweep 8s linear infinite;
}

.qb-live-host__lobby .card-body {
    position: relative;
    z-index: 2;
}

@keyframes qb-live-lobby-ring-sweep {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qb-live-host__lobby-ring::before {
        animation: none;
        opacity: 0.35;
        transform: none;
    }
}

.qb-live-host__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.qb-live-host__step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.qb-live-host__step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent);
    font-size: 0.8125rem;
    font-weight: 700;
}

.qb-live-host__workspace {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-live-host__workspace-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100%;
}

.qb-live-host__workspace-head-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
}

.qb-live-host__workspace-header.qb-live-host__workspace-head--timing {
    background: rgba(34, 197, 94, 0.14);
}

.qb-live-host__workspace-head-fill {
    display: none;
    position: absolute;
    z-index: 0;
    inset: 0 auto 0 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.72) 0%, rgba(22, 163, 74, 0.82) 100%);
    pointer-events: none;
    transition: width 0.12s linear;
}

.qb-live-host__workspace-header.qb-live-host__workspace-head--timing .qb-live-host__workspace-head-fill {
    display: block;
}

.qb-live-host__workspace-header.qb-live-host__workspace-head--timing .qb-live-host__workspace-head-inner {
    color: #14532d;
}

.qb-live-host__workspace-header.qb-live-host__workspace-head--timing .qb-live-host__section-label {
    color: #166534;
}

.qb-live-host__workspace-header.qb-live-host__workspace-head--timing .qb-live-host__round-name {
    color: #14532d;
}

.qb-live-host__workspace-header.qb-live-host__workspace-head--timing .qb-live-host__workspace-next-line {
    color: #166534;
}

.qb-live-host__workspace-timer {
    font-size: 1.125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #166534;
    min-width: 2.5rem;
    text-align: right;
}

.qb-live-host__section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #64748b);
}

.qb-live-host__round-name {
    margin-top: 0.15rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tblr-body-color, #1e293b);
}

.qb-live-host__phase {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.015);
}

.qb-live-host__phase-label {
    margin-bottom: 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #64748b);
}

.qb-live-host__content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.qb-live-host__block-label {
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #64748b);
}

.qb-live-host__block-label--facit {
    margin-bottom: 0;
    color: #166534;
}

.qb-live-host__question-block {
    padding: 1.35rem 1.35rem 1.15rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.qb-live-host__question-text {
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--tblr-body-color, #1e293b);
}

.qb-live-host__clue {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid rgba(66, 153, 225, 0.15);
    background: linear-gradient(180deg, rgba(66, 153, 225, 0.08) 0%, rgba(66, 153, 225, 0.03) 100%);
}

.qb-live-host__clue[data-qb-live-clue-timer-wrap] {
    position: relative;
    overflow: hidden;
}

.qb-live-host__clue--timing {
    background: rgba(34, 197, 94, 0.14);
    border-bottom-color: rgba(34, 197, 94, 0.22);
}

.qb-live-host__clue-timer-fill {
    display: none;
    position: absolute;
    z-index: 0;
    inset: 0 auto 0 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.72) 0%, rgba(22, 163, 74, 0.82) 100%);
    pointer-events: none;
    transition: width 0.12s linear;
}

.qb-live-host__clue--timing .qb-live-host__clue-timer-fill {
    display: block;
}

.qb-live-host__clue-content {
    position: relative;
    z-index: 1;
}

.qb-live-host__clue-timer-seconds {
    font-size: 0.875rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #166534;
}

.qb-live-host__clue-text {
    font-size: 1rem;
    line-height: 1.55;
}

.qb-live-host__media-block {
    padding: 1.15rem 1.35rem 1.35rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafbfc;
}

/* Musikkortet ligger direkt under Framsteg som ett eget kort */
.qb-live-host__media-block--card {
    border-bottom: 0;
    border-radius: inherit;
}

.qb-live-host__media-sub {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.qb-live-host__preview-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.qb-live-host__preview-row--countdown-only {
    margin-bottom: 0.65rem;
}

.qb-live-host__countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 3.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.625rem;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent-hover);
}

.qb-live-host__countdown-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.qb-live-host__countdown-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    animation: qb-countdown-pop 0.35s ease-out;
}

.qb-live-host__countdown-number.is-animation-reset {
    animation: none;
}

.qb-live-host__media-block > .qb-live-host__countdown {
    margin-bottom: 0.75rem;
}

.qb-live-host__preview-label {
    font-size: 0.875rem;
    color: var(--tblr-secondary, #64748b);
}

.qb-music-player--live-host {
    margin-top: 0;
}

.qb-music-player--live-host.qb-music-player--compact .qb-spotify-embed-host,
.qb-music-player--live-host.qb-music-player--compact .qb-spotify-embed-host--compact {
    min-height: 80px;
    max-height: 80px;
    border-radius: 8px;
    border: 0;
    box-shadow: none;
}

.qb-music-player--live-host:not(.qb-music-player--compact) .qb-spotify-embed-host {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.qb-live-host__facit-panel {
    padding: 1.15rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, rgba(47, 179, 68, 0.1) 0%, rgba(47, 179, 68, 0.04) 100%);
    border-top: 3px solid #2fb344;
}

.qb-live-host__facit-panel--embedded {
    margin-top: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-top: none;
    border: 1px solid rgba(47, 179, 68, 0.28);
    border-radius: 0.5rem;
}

.qb-live-host__facit-panel--embedded .qb-live-host__facit-panel-head {
    margin-bottom: 0.55rem;
    gap: 0.35rem 0.75rem;
}

.qb-live-host__facit-panel--embedded .qb-live-host__facit-badge {
    padding: 0.15rem 0.45rem;
    font-size: 0.625rem;
}

.qb-live-host__facit-panel--embedded .qb-live-host__facit-grid {
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.5rem;
}

.qb-live-host__facit-panel--embedded .qb-live-host__facit-item {
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    gap: 0.15rem;
}

.qb-live-host__facit-panel--embedded.qb-live-host__facit-panel--single .qb-live-host__facit-item {
    padding: 0.65rem 0.8rem;
}

.qb-live-host__facit-panel--embedded .qb-live-host__facit-value {
    font-size: 1.0625rem;
}

.qb-live-host__facit-panel--embedded.qb-live-host__facit-panel--single .qb-live-host__facit-value {
    font-size: 1.1875rem;
}

.qb-live-host__facit-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
}

.qb-live-host__facit-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(47, 179, 68, 0.14);
    color: #1f7a31;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qb-live-host__facit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
}

.qb-live-host__facit-panel--single .qb-live-host__facit-grid {
    grid-template-columns: 1fr;
}

.qb-live-host__facit-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.qb-live-host__facit-panel--single .qb-live-host__facit-item {
    padding: 1.15rem 1.25rem;
}

.qb-live-host__facit-type {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.qb-live-host__facit-value {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.qb-live-host__facit-panel--single .qb-live-host__facit-value {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.qb-live-host__facit-item--track {
    border-color: rgba(32, 107, 196, 0.22);
}

.qb-live-host__facit-item--track .qb-live-host__facit-type {
    color: #1a569d;
}

.qb-live-host__facit-item--film,
.qb-live-host__facit-item--tv {
    border-color: rgba(174, 62, 201, 0.22);
}

.qb-live-host__facit-item--film .qb-live-host__facit-type,
.qb-live-host__facit-item--tv .qb-live-host__facit-type {
    color: #8a2f9e;
}

.qb-live-host__facit-item--artist {
    border-color: rgba(244, 126, 74, 0.28);
}

.qb-live-host__facit-item--artist .qb-live-host__facit-type {
    color: #c45a28;
}

.qb-live-host__facit-item--year {
    border-color: rgba(23, 162, 184, 0.22);
}

.qb-live-host__facit-item--year .qb-live-host__facit-type {
    color: #117a8b;
}

.qb-live-host__facit-item--default .qb-live-host__facit-type {
    color: var(--qb-accent);
}

.qb-live-host__mcq-options {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-live-host__mcq-options-list {
    display: grid;
    gap: 0.5rem;
}

.qb-live-host__mcq-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.015);
}

.qb-live-host__mcq-option--correct {
    border-color: rgba(47, 133, 90, 0.35);
    background: rgba(47, 133, 90, 0.08);
}

.qb-live-host__mcq-option-letter {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(32, 107, 196, 0.12);
    color: #206bc4;
    font-weight: 700;
    font-size: 0.85rem;
}

.qb-live-host__mcq-option--correct .qb-live-host__mcq-option-letter {
    background: rgba(47, 133, 90, 0.18);
    color: #2f855a;
}

.qb-live-host__mcq-option-text {
    flex: 1 1 auto;
    line-height: 1.45;
}

.qb-live-host__actions {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.015);
}

.qb-live-host__actions-start {
    padding-block: 0.35rem;
}

.qb-live-host__actions--music {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    margin-top: 0;
}

.qb-live-host__actions--nearest {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin-top: 0.25rem;
}

.qb-live-host__nearest-results {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.85rem;
}

.qb-live-host__actions--music .qb-live-host__actions-inner {
    padding: 0.75rem 1rem 1rem;
}

.qb-live-host__music > .qb-live-host__actions--music {
    margin-bottom: 0;
}

.qb-live-host__music-volume {
    padding: 0 0.25rem;
}

.qb-live-host__music-volume .form-range {
    height: 1.25rem;
}

.qb-wizard-progress {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.qb-wizard-todo .list-group-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.qb-wizard-todo__icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.qb-wizard-todo__item--done {
    color: var(--tblr-success, #2fb344);
}

.qb-wizard-todo__item--active {
    font-weight: 600;
    background: rgba(var(--qb-accent-rgb), 0.06);
}

.qb-wizard-todo__item--failed {
    color: var(--tblr-danger, #d63939);
}

.qb-live-progress__bar {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 0.5rem;
    border: none;
    border-radius: var(--tblr-border-radius, 4px);
    overflow: hidden;
    background: rgba(var(--qb-accent-rgb), 0.15);
}

.qb-live-progress__bar::-webkit-progress-bar {
    background: rgba(var(--qb-accent-rgb), 0.15);
    border-radius: inherit;
}

.qb-live-progress__bar::-webkit-progress-value {
    background: var(--qb-accent);
    border-radius: inherit;
}

.qb-live-progress__bar::-moz-progress-bar {
    background: var(--qb-accent);
    border-radius: inherit;
}

.qb-live-host__sidebar .qb-live-spelplan {
    max-height: 18rem;
}

.qb-live-join-pin {
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
}

.qb-live-join-pin__code {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: var(--qb-accent);
    line-height: 1.2;
}

.qb-live-join-qr {
    display: flex;
    justify-content: center;
    margin-inline: auto;
    width: fit-content;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-live-join-qr canvas {
    display: block;
    width: var(--qb-qr-size, 140px) !important;
    height: var(--qb-qr-size, 140px) !important;
    max-width: 100%;
}

/* --- Lobbyvy: kompakt steg-för-steg innan spelet startar --- */

.qb-live-lobby__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.35rem 1.25rem;
}

@media (min-width: 992px) {
    .qb-live-lobby__body {
        padding: 1.5rem 1.75rem;
    }
}

.qb-live-lobby__head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

@media (min-width: 768px) {
    .qb-live-lobby__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
    }
}

.qb-live-lobby__head-copy {
    min-width: 0;
}

.qb-live-lobby__head-action {
    flex-shrink: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .qb-live-lobby__head-action {
        text-align: right;
    }
}

.qb-live-lobby__title {
    margin-bottom: 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.qb-live-lobby__grid {
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .qb-live-lobby__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.qb-live-lobby__panel {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.qb-live-lobby__panel--steps {
    background: linear-gradient(180deg, rgba(var(--qb-accent-rgb), 0.05) 0%, rgba(var(--qb-accent-rgb), 0.015) 100%);
}

.qb-live-lobby__panel--teams {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.qb-live-lobby__steps-title {
    margin-bottom: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--tblr-secondary, #64748b);
}

.qb-live-lobby__steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.qb-live-lobby__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.qb-live-lobby__step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.14);
    color: var(--qb-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.qb-live-lobby__step-heading {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.qb-live-lobby__step-body {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--tblr-secondary, #64748b);
}

.qb-live-lobby__url code {
    font-size: 0.8125rem;
}

.qb-live-lobby__teams-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--qb-accent, #f47e4a);
    padding: 0.375rem 0.85rem;
}

.qb-live-lobby__teams-title .card-title {
    color: #fff;
    line-height: 1.25;
}

.qb-live-lobby__teams {
    flex: 1;
    min-height: 0;
}

.qb-live-host-briefing {
    padding: 1rem 1.25rem 1.15rem;
}

.qb-live-host-briefing--compact {
    padding: 0.85rem 1rem 1rem;
}

.qb-live-host-briefing-card .qb-live-host-briefing {
    max-height: 14rem;
    overflow-y: auto;
}

.qb-live-host-briefing__head {
    margin-bottom: 0.65rem;
}

.qb-live-host-briefing__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #64748b);
    margin-bottom: 0.25rem;
}

.qb-live-host-briefing__title {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.qb-live-host-briefing__intro {
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 0.85rem !important;
}

.qb-live-host-briefing__sections {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.qb-live-host-briefing__section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.qb-live-host-briefing__section-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.qb-live-host-briefing__section-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.qb-live-host-briefing__section-body {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--tblr-secondary, #64748b);
}

.qb-live-lobby__start {
    padding-inline: 2.5rem;
}

.qb-live-lobby__start-wrap {
    width: 100%;
}

/* --- Spelvy: kompakt anslutningskort i högerkolumnen --- */

.qb-live-join-mini__row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qb-live-join-mini .qb-live-join-qr {
    margin: 0;
    flex-shrink: 0;
    padding: 0.35rem;
}

.qb-live-join-mini__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #64748b);
    margin-bottom: 0.15rem;
}

.qb-live-join-mini__code {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    color: var(--qb-accent);
    white-space: nowrap;
}

/* --- Spelvy: statistik-badge när spelet är klart --- */

.qb-live-stats-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--tblr-border-radius, 0.5rem);
    box-shadow: 0 2px 8px rgba(47, 179, 68, 0.25);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.qb-live-stats-badge:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* --- Spelvy: svarsstatistik i högerkolumnen --- */

.qb-live-stats .qb-live-host__phase {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    padding: 1rem 1.25rem;
}

.qb-live-stats .qb-live-host__phase:last-of-type {
    border-bottom: 0;
}

.qb-live-stats__empty {
    padding: 1rem 1.25rem;
}

.qb-live-stats__body:has(.qb-live-host__phase:not(.d-none)) .qb-live-stats__empty {
    display: none;
}

.qb-live-host__leaderboard {
    max-height: 24rem;
    overflow-y: auto;
}

.qb-live-spelplan {
    max-height: 22rem;
    overflow-y: auto;
}

.qb-live-spelplan__round + .qb-live-spelplan__round {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-live-spelplan__round-title {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tblr-secondary, #6c757d);
    background: rgba(0, 0, 0, 0.02);
}

.qb-live-spelplan__item {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.qb-live-spelplan__item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.qb-live-spelplan__item--done {
    color: var(--tblr-secondary, #6c757d);
}

.qb-live-spelplan__item--done::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 193, 7, 0.14);
    pointer-events: none;
}

.qb-live-spelplan__item--done .qb-live-spelplan__icon {
    color: var(--tblr-secondary, #6c757d);
}

.qb-live-spelplan__item--active {
    background: rgba(47, 179, 68, 0.12);
    color: var(--tblr-body-color, inherit);
    font-weight: 600;
}

.qb-live-spelplan__item--active:hover {
    background: rgba(47, 179, 68, 0.18);
}

.qb-live-spelplan__item--active::before {
    display: none;
}

.qb-live-spelplan__item--pending {
    color: var(--tblr-secondary, #6c757d);
}

.qb-live-spelplan__item--selected {
    box-shadow: inset 0 0 0 2px rgba(var(--qb-accent-rgb), 0.45);
}

.qb-live-spelplan__icon {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.qb-live-spelplan__item--active .qb-live-spelplan__icon {
    color: #2fb344;
}

.qb-live-spelplan__num {
    flex-shrink: 0;
    min-width: 1.5rem;
}

.qb-live-spelplan__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qb-live-red-thread-tracks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qb-live-red-thread-track {
    padding: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
}

.qb-live-red-thread-track--active {
    border-color: rgba(47, 179, 68, 0.45);
    background: rgba(47, 179, 68, 0.08);
    box-shadow: inset 0 0 0 1px rgba(47, 179, 68, 0.2);
}

.qb-live-red-thread-track__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.qb-live-red-thread-track__meta {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 0;
}

.qb-game-stats-card .h2 {
    font-size: 1.75rem;
}

.qb-game-stats-attempts + .qb-game-stats-attempts {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
}

.qb-live-judge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.qb-live-judge-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 0;
    min-width: 6.5rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.625rem;
    border: 1px solid transparent;
}

.qb-live-judge-group__label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.qb-live-judge-group__choices {
    display: flex;
    gap: 0.35rem;
}

.qb-live-judge-choice {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.45rem;
    background: #fff;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.qb-live-judge-choice:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

.qb-live-judge-choice--right.is-selected {
    background: #2fb344;
    border-color: #2fb344;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(47, 179, 68, 0.25);
}

.qb-live-judge-choice--wrong.is-selected {
    background: #d63939;
    border-color: #d63939;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(214, 57, 57, 0.25);
}

.qb-live-judge-group--track {
    background: rgba(32, 107, 196, 0.1);
    border-color: rgba(32, 107, 196, 0.22);
}

.qb-live-judge-group--track .qb-live-judge-group__label {
    color: #1a569d;
}

.qb-live-judge-group--film {
    background: rgba(174, 62, 201, 0.1);
    border-color: rgba(174, 62, 201, 0.22);
}

.qb-live-judge-group--film .qb-live-judge-group__label {
    color: #8a2f9e;
}

.qb-live-judge-group--artist {
    background: rgba(244, 126, 74, 0.12);
    border-color: rgba(244, 126, 74, 0.28);
}

.qb-live-judge-group--artist .qb-live-judge-group__label {
    color: #c45a28;
}

.qb-live-judge-group--year {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.22);
}

.qb-live-judge-group--year .qb-live-judge-group__label {
    color: #117a8b;
}

.qb-live-judge-group--default {
    background: rgba(98, 105, 118, 0.08);
    border-color: rgba(98, 105, 118, 0.18);
}

.qb-live-judge-group--default .qb-live-judge-group__label {
    color: #626976;
}

.qb-live-judge-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.qb-live-judge-points {
    font-size: 1rem;
}

.qb-live-judge-points strong {
    margin-left: 0.35rem;
    font-size: 1.125rem;
}

.qb-live-buzz-times__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qb-live-buzz-times__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.5rem;
    background: var(--tblr-bg-surface-secondary, #f8f9fa);
}

.qb-live-buzz-times__item--first {
    border-color: rgba(244, 126, 74, 0.45);
    background: rgba(244, 126, 74, 0.08);
}

.qb-live-buzz-times__rank {
    font-weight: 600;
    min-width: 1.5rem;
}

.qb-live-buzz-times__team {
    flex: 1 1 auto;
    font-weight: 600;
    min-width: 0;
}

.qb-live-buzz-times__time {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.qb-live-buzz-times__delta {
    margin-left: 0.35rem;
    color: var(--tblr-secondary, #667382);
    font-size: 0.875rem;
}

.qb-ai-import-round .list-group {
    border-radius: var(--tblr-border-radius, 0.375rem);
    overflow: hidden;
}

.qb-ai-import-round .list-group-item {
    border-left: 3px solid transparent;
    border-right: 0;
    border-radius: 0;
}

.qb-ai-import-item--alt {
    background-color: var(--tblr-gray-50, #f1f5f9);
}

.qb-ai-import-item__player:empty {
    display: none;
}

.qb-ai-import-item .form-label {
    color: var(--tblr-secondary, #667382);
}

.qb-ai-import-item__cover-img,
.qb-ai-import-item__cover-placeholder {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: var(--tblr-border-radius, 0.375rem);
}

.qb-ai-import-item__cover-img {
    object-fit: cover;
}

.qb-ai-import-item__cover-placeholder {
    background: rgba(0, 0, 0, 0.06);
}

.qb-live-team-connected {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.qb-live-team-connected__dot {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #2fb344;
    box-shadow: 0 0 0 3px rgba(47, 179, 68, 0.18);
}

.qb-live-team-connected__name {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qb-live-team-connected--lobby {
    flex-wrap: wrap;
    row-gap: 0.45rem;
}

.qb-live-team-connected--lobby .qb-live-team-connected__name {
    flex: 1 1 auto;
}

.qb-live-team-sound {
    flex: 0 1 7.5rem;
    min-width: 6.5rem;
    max-width: 100%;
}

.qb-live-team-connected--lobby .badge {
    margin-left: auto;
}

@keyframes qb-live-team-attention {
    0% {
        background-color: #f7ce2d !important;
    }

    50% {
        background-color: #2fb344 !important;
    }

    100% {
        background-color: var(--qb-live-team-row-bg, #fff) !important;
    }
}

.qb-live-team-attention {
    animation: qb-live-team-attention 3s ease-in-out 1;
}

.list-group-flush > .list-group-item.qb-live-team-attention,
.list-group-item.qb-live-team-attention {
    --qb-live-team-row-bg: var(--tblr-bg-surface, #fff);
    position: relative;
    z-index: 1;
}

.qb-live-buzz-times__item.qb-live-team-attention {
    --qb-live-team-row-bg: var(--tblr-bg-surface-secondary, #f8f9fa);
    border-color: rgba(47, 179, 68, 0.35);
}

.qb-live-buzz-times__item--first.qb-live-team-attention {
    --qb-live-team-row-bg: rgba(244, 126, 74, 0.08);
    border-color: rgba(47, 179, 68, 0.35);
}

.qb-mail-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.qb-mail-inbox__row {
    cursor: pointer;
}

.qb-mail-inbox__row--unread .qb-mail-inbox__from,
.qb-mail-inbox__row--unread .fw-medium {
    font-weight: 700;
}

.qb-mail-inbox__actions-col {
    width: 9.5rem;
}

.qb-mail-inbox__select-col {
    width: 2.75rem;
    vertical-align: middle;
}

.qb-mail-inbox__from {
    max-width: 16rem;
}

.qb-mail-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-mail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.15);
    color: var(--qb-accent-hover);
    font-weight: 700;
    font-size: 1.1rem;
}

.qb-mail-inbox__actions {
    white-space: nowrap;
}

.qb-mail-meta dt {
    color: var(--tblr-secondary, #667382);
    font-size: 0.8125rem;
    font-weight: 600;
}

.qb-mail-body {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.qb-mail-body--html {
    white-space: normal;
}

.qb-mail-body--html img {
    max-width: 100%;
    height: auto;
}

.qb-mail-compose__body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.5;
}

/* Tom Select — Tabler saknar --bs-body-bg; ge opak yta så sidtext inte syns igenom */
.ts-wrapper .ts-control {
    background-color: var(--qb-surface, #fff) !important;
}

.ts-wrapper.multi .ts-control > div.item {
    background-color: var(--tblr-gray-100, #f1f5f9);
    color: var(--qb-text, #0f172a);
}

.ts-wrapper.multi .ts-control > div.item.active {
    background-color: var(--tblr-primary, #f47e4a);
    color: #fff;
}

.ts-dropdown {
    z-index: 1060;
    background-color: var(--qb-surface, #fff) !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.12);
}

.ts-dropdown .ts-dropdown-content {
    background-color: var(--qb-surface, #fff) !important;
}

.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
    background-color: var(--qb-surface, #fff) !important;
    color: var(--qb-text, #0f172a);
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover,
.ts-dropdown .option.selected {
    background-color: var(--tblr-gray-100, #f1f5f9) !important;
    color: var(--qb-text, #0f172a);
}

.ts-dropdown .option.selected.active {
    background-color: rgba(var(--qb-accent-rgb, 244, 126, 74), 0.15) !important;
    color: var(--qb-text, #0f172a);
}

/* Quiz-listan: expanderbara detaljrader */
.qb-quiz-list-row {
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.qb-quiz-list-row > td {
    cursor: pointer;
}

.qb-quiz-list-row:hover > td {
    background-color: rgba(15, 23, 42, 0.045);
}

.qb-quiz-list-row.is-expanded > td {
    background-color: #fff4ee;
    border-bottom: 1px solid rgba(var(--qb-accent-rgb), 0.14);
}

.qb-quiz-list-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    flex-shrink: 0;
    color: #626976;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease;
}

.qb-quiz-list-row.is-expanded .qb-quiz-list-chevron {
    transform: rotate(90deg);
    color: var(--qb-accent);
}

.qb-quiz-details-panel > td {
    background: #fff4ee;
    border-top: none;
    border-left: 3px solid var(--qb-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    padding: 1.25rem 1.25rem 1.25rem calc(1.25rem + 2px);
}

.qb-quiz-details__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.qb-quiz-details__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    align-self: flex-start;
}

.qb-quiz-details__action-form {
    display: inline-flex;
    margin: 0;
}

.qb-quiz-details__action-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

button.qb-quiz-details__action-badge {
    appearance: none;
}

.qb-quiz-details__action-badge:hover,
.qb-quiz-details__action-badge:focus-visible {
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.qb-quiz-details__cover {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Metakort i rutnät, 4–5 per rad på desktop */
.qb-quiz-details__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.75rem;
}

.qb-quiz-details__meta-card {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: var(--qb-surface, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.qb-quiz-details__meta-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #626976;
    margin-bottom: 0.15rem;
}

.qb-quiz-details__meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--qb-text);
    line-height: 1.3;
}

/* Rundkort */
.qb-quiz-details__round {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: var(--qb-surface, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.qb-quiz-details__round-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(var(--qb-accent-rgb), 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-quiz-details__round-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 0.375rem;
    background: var(--qb-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.qb-quiz-details__round-note {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #626976;
    background: rgba(var(--qb-accent-rgb), 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Frågerader */
.qb-quiz-details__question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.qb-quiz-details__question + .qb-quiz-details__question {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-quiz-details__question:nth-child(even) {
    background: rgba(15, 23, 42, 0.015);
}

.qb-quiz-details__question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent-hover);
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Svars-chips */
.qb-quiz-details__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.15rem 0.35rem 0.15rem 0;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2rem;
    background: var(--qb-bg, #f8fafc);
    font-size: 0.8125rem;
    color: var(--qb-text);
}

.qb-quiz-details__chip--answer {
    background: rgba(47, 179, 68, 0.08);
    border-color: rgba(47, 179, 68, 0.25);
    font-weight: 600;
}

.qb-quiz-details__chip-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2fb344;
}

.qb-quiz-details__chip:not(.qb-quiz-details__chip--answer) .qb-quiz-details__chip-label {
    color: #626976;
}

/* Flervalsalternativ */
.qb-quiz-details__options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.4rem;
    max-width: 34rem;
}

.qb-quiz-details__option {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #626976;
    background: rgba(15, 23, 42, 0.03);
}

.qb-quiz-details__option--correct {
    background: rgba(47, 179, 68, 0.1);
    color: var(--qb-text);
    font-weight: 600;
}

.qb-quiz-details__option-mark {
    display: inline-block;
    width: 1rem;
    flex-shrink: 0;
    text-align: center;
    color: #2fb344;
    font-weight: 700;
}

/* På spåret-ledtrådar */
.qb-quiz-details__clues {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.4rem;
    max-width: 40rem;
}

.qb-quiz-details__clue {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.375rem;
    background: rgba(15, 23, 42, 0.03);
}

.qb-quiz-details__clue-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    flex-shrink: 0;
    padding: 0.05rem 0.4rem;
    border-radius: 2rem;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent-hover);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Quiz-formulär: valkort för manuellt/AI-läge */
.qb-create-mode-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: var(--qb-surface, #fff);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.qb-create-mode-card:hover:not(.disabled):not(.active) {
    border-color: rgba(var(--qb-accent-rgb), 0.5);
}

.qb-create-mode-card.active {
    border-color: var(--qb-accent);
    background: rgba(var(--qb-accent-rgb), 0.06);
}

.qb-create-mode-card.disabled,
.qb-create-mode-card[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.qb-create-mode-card__title {
    font-weight: 600;
    color: var(--qb-text);
}

.qb-create-mode-card.active .qb-create-mode-card__title {
    color: var(--qb-accent);
}

.qb-create-mode-card__desc {
    font-size: 0.875rem;
    color: #626976;
}

a.qb-create-module-card {
    color: inherit;
    min-height: 7rem;
}

a.qb-create-module-card:hover,
a.qb-create-module-card:focus-visible {
    color: inherit;
    border-color: rgba(var(--qb-accent-rgb), 0.5);
    background: rgba(var(--qb-accent-rgb), 0.06);
    text-decoration: none;
}

/* Platshållare som visas tills en omslagsbild finns */
.qb-quiz-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 18rem);
    height: 8rem;
    margin-bottom: 0.75rem;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    background: var(--qb-bg, #f8fafc);
    color: #626976;
    font-size: 0.875rem;
}

[data-qb-quiz-cover-preview-wrap]:not(.d-none) + .qb-quiz-cover-placeholder {
    display: none;
}

/* Förklaring som bara visas när knappen intill är avaktiverad */
.qb-disabled-hint {
    display: none;
    font-size: 0.875rem;
    color: #626976;
}

button[disabled] + .qb-disabled-hint {
    display: inline;
}

.qb-form-actions__hint {
    display: none;
    max-width: 42rem;
}

.qb-form-actions:has([data-qb-quiz-submit]:disabled) .qb-form-actions__hint {
    display: block;
}

.qb-form-meta-radios {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.qb-form-meta-radios .form-check {
    margin-bottom: 0;
    min-height: 1.25rem;
    padding-left: 1.35rem;
}

.qb-form-meta-radios .form-check-input {
    width: 0.85rem;
    height: 0.85rem;
    margin-top: 0.2rem;
    margin-left: -1.35rem;
}

.qb-form-meta-radios .form-check-label {
    font-size: 0.875rem;
}

/* Musikgruppen i AI-panelen döljs när inga musikfält är aktiva */
.qb-wizard-music-group:not(:has([data-qb-wizard-time-scope-wrap]:not(.d-none))):not(:has([data-qb-wizard-attributes-wrap]:not(.d-none))):not(:has([data-qb-wizard-answer-types-wrap]:not(.d-none))) {
    display: none;
}

.qb-wizard-advanced > summary {
    color: #626976;
    cursor: pointer;
    user-select: none;
}

.qb-wizard-advanced > summary:hover {
    color: var(--qb-accent);
}

.qb-live-display-launch {
    width: 100%;
}

.qb-live-display-launch--compact {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-live-display-launch__btn {
    width: 100%;
    font-weight: 700;
    animation: qb-live-display-tv-pulse 2.8s ease-in-out infinite;
}

.qb-live-display-launch__hint {
    margin-top: 0.5rem;
    line-height: 1.45;
}

.qb-live-display-launch--tooltip .qb-live-display-launch__btn-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.qb-live-display-launch__tooltip {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 0.4rem);
    width: max-content;
    max-width: 16rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    background: rgba(15, 23, 42, 0.94);
    border-radius: 0.4rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.qb-live-display-launch__btn-wrap:hover .qb-live-display-launch__tooltip,
.qb-live-display-launch__btn-wrap:focus-within .qb-live-display-launch__tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes qb-live-display-tv-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 0 0 0.35rem rgba(234, 88, 12, 0.22);
        filter: brightness(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qb-live-display-launch__btn {
        animation: none;
    }
}

.qb-pa-sparet-host-explanation {
    background-color: #fff4ee;
    border-radius: 0.375rem;
    padding: 0.5rem 0.625rem;
}

.qb-pa-sparet-host-explanation__input {
    background: transparent;
    border: none;
    box-shadow: none;
    font-style: italic;
    color: var(--tblr-secondary, #626976);
    padding: 0;
    resize: vertical;
    min-height: 2.5rem;
}

.qb-pa-sparet-host-explanation__input:focus {
    background: transparent;
    box-shadow: none;
}

.qb-live-host .qb-pa-sparet-host-explanation {
    margin-top: 0.35rem;
}

.qb-live-host .qb-pa-sparet-host-explanation__text {
    font-style: italic;
    color: var(--tblr-secondary, #626976);
    margin: 0;
    white-space: pre-wrap;
}

.qb-live-host .qb-pa-sparet-facit-clues {
    margin-top: 0.75rem;
}

.qb-live-host .qb-pa-sparet-facit-clues__item {
    margin-bottom: 0.75rem;
}

.qb-live-host .qb-pa-sparet-facit-clues__label {
    font-size: 0.8125rem;
    color: var(--tblr-secondary, #626976);
    margin-bottom: 0.15rem;
}

/* Docs reader (superadmin) */
.qb-docs-reader__content-card {
    min-height: 70vh;
}

.qb-docs-reader__content {
    max-width: 52rem;
    line-height: 1.6;
}

.qb-docs-reader__content h1,
.qb-docs-reader__content h2,
.qb-docs-reader__content h3,
.qb-docs-reader__content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.qb-docs-reader__content p {
    margin-bottom: 0.85rem;
}

.qb-docs-pre {
    background: var(--tblr-gray-100, #f1f3f5);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    font-size: 0.8125rem;
}

.qb-docs-table {
    font-size: 0.875rem;
}

.qb-docs-quote {
    border-left: 3px solid var(--tblr-primary, #206bc4);
    padding-left: 1rem;
    color: var(--tblr-secondary, #626976);
    margin: 1rem 0;
}

.qb-docs-callout {
    background: var(--tblr-yellow-lt, #fff9db);
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}

.qb-docs-reader__toc-item--level-3 {
    padding-left: 1.5rem;
    font-size: 0.875rem;
}

.qb-docs-export-nav ul {
    columns: 2;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.qb-docs-export-nav a {
    text-decoration: none;
}

.qb-docs-export-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
}

