.kb-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.kb-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: min(520px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
}

.kb-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eef1f5;
}

.kb-modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
    flex: 1 1 auto;
}

.kb-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #6b7280;
}

.kb-modal-body {
    padding: 16px 20px;
}

.kb-modal-body p {
    margin: 0 0 16px 0;
    color: #374151;
    line-height: 1.5;
}

.kb-modal-preview {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 12px 14px;
}

.kb-modal-preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 4px;
}

.kb-modal-preview-value {
    font-weight: 500;
    color: #1f2937;
}

.kb-modal-error {
    margin: 0 20px 8px 20px;
    padding: 8px 12px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 6px;
    font-size: 0.85rem;
}

.kb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 20px 16px 20px;
    border-top: 1px solid #eef1f5;
}

.kb-modal-footer .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.kb-modal-footer .btn-primary {
    background: #2563eb;
    color: white;
}

.kb-modal-footer .btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.kb-modal-footer .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kb-modal-revision {
    width: min(720px, 94vw);
}

.kb-modal-section-heading {
    margin: 16px 0 8px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
}

.kb-modal-candidates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kb-modal-candidate {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 12px 14px;
}

.kb-modal-candidate-title a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.kb-modal-candidate-title a:hover {
    text-decoration: underline;
}

.kb-modal-candidate-summary {
    margin-top: 6px;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.45;
}

.kb-modal-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .kb-modal-compare {
        grid-template-columns: 1fr;
    }
}

.kb-modal-compare-cell {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 12px 14px;
}

.kb-modal-compare-text {
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    max-height: 220px;
    overflow-y: auto;
}
/* ==========================================================================
   Goedkeuringsinbox — e-mailclient paradigma (lijst links, detail rechts)
   Aliases ontbrekende design-tokens lokaal op de wrapper, zodat we niet
   het globale app-shell tokenbestand hoeven uit te breiden.
   ========================================================================== */
.adm-inbox {
    --inbx-neutral-25: #FBFBFD;
    --inbx-neutral-50: #F6F7FA;
    --inbx-neutral-100: #EEEFF4;
    --inbx-neutral-200: #E2E4EC;
    --inbx-neutral-300: #CBCED9;
    --inbx-brand-orange-50: #FFF7EF;
    --inbx-brand-orange-200: #FBDDBD;
    --inbx-brand-orange-700: #B25904;
    --inbx-success: #1F9D6A;
    --inbx-success-bg: #E4F5ED;
    --inbx-success-fg: #0F6B47;
    --inbx-danger: #D64545;
    --inbx-danger-bg: #FBE5E5;
    --inbx-danger-fg: #902626;
    --inbx-border-subtle: var(--inbx-neutral-200);
    --inbx-border-default: var(--inbx-neutral-300);
    --inbx-shadow-xs: 0 1px 2px rgba(37, 43, 72, 0.06);
    --inbx-r-sm: 6px;
    --inbx-r-md: 8px;
    --inbx-r-lg: 12px;
    --inbx-r-xl: 16px;
    --inbx-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

    display: grid;
    grid-template-columns: 420px 1fr;
    /* Topbar (52px) + topbar margin (20px) + content padding-bottom (28px) */
    height: calc(100vh - var(--topbar-h, 52px) - 20px - 28px);
    background: white;
    border: 1px solid var(--inbx-border-subtle);
    border-radius: var(--inbx-r-xl);
    box-shadow: var(--inbx-shadow-xs);
    overflow: hidden;
    font-family: var(--font-sans);
    color: var(--fg-1);
}

@media (max-width: 1100px) {
    .adm-inbox { grid-template-columns: 360px 1fr; }
}

/* ==========================================================================
   Lijst — links
   ========================================================================== */
.inbx-list {
    background: white;
    border-right: 1px solid var(--inbx-border-subtle);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.inbx-list__head {
    padding: 18px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--inbx-border-subtle);
}

.inbx-list__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inbx-list__title h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--fg-1);
    letter-spacing: -0.01em;
}

.inbx-list__title .meta {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--fg-3);
    white-space: nowrap;
}

.inbx-list__title .meta b {
    color: var(--inbx-brand-orange-700);
    font-weight: 600;
}

.inbx-tabs {
    display: flex;
    gap: 2px;
    background: var(--inbx-neutral-50);
    padding: 3px;
    border-radius: var(--inbx-r-md);
    width: fit-content;
}

.inbx-tabs button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--fg-3);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inbx-tabs button:hover { color: var(--fg-1); }

.inbx-tabs button.is-active {
    background: white;
    color: var(--fg-1);
    font-weight: 600;
    box-shadow: var(--inbx-shadow-xs);
}

.inbx-tabs__count {
    font-family: var(--font-sans);
    font-size: 10.5px;
    color: var(--fg-4);
    padding: 1px 5px;
    border-radius: 999px;
}

.inbx-tabs button.is-active .inbx-tabs__count {
    background: var(--brand-orange-100);
    color: var(--inbx-brand-orange-700);
}

.inbx-list__body {
    flex: 1;
    overflow: auto;
    padding: 6px 0 12px;
}

.inbx-list__empty {
    padding: 24px 20px;
    color: var(--fg-3);
    font-size: 13px;
}

.inbx-row {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 12px 20px 12px 14px;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--inbx-neutral-100);
    background: white;
    transition: background 100ms var(--inbx-ease-out);
}

.inbx-row:hover { background: var(--inbx-neutral-25); }

.inbx-row.is-active {
    background: var(--brand-navy-50);
    border-left-color: var(--brand-orange);
}

.inbx-row.is-active .inbx-row__title { color: var(--brand-navy-800); }

.inbx-row__marker {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    margin-top: 2px;
    flex: none;
    font-size: 11px;
    line-height: 1;
}

.inbx-row__marker.is-new {
    background: var(--brand-orange-100);
    color: var(--inbx-brand-orange-700);
}

.inbx-row__marker.is-revision {
    background: var(--brand-navy-100);
    color: var(--brand-navy);
}

.inbx-row__main { min-width: 0; }

.inbx-row__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-1);
    letter-spacing: -0.005em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbx-row__sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--fg-3);
}

.inbx-row__type {
    font-family: var(--font-sans);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--inbx-brand-orange-700);
    font-weight: 600;
}

.inbx-row__type.is-revision { color: var(--brand-navy); }

.inbx-row__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--inbx-neutral-300);
    flex: none;
}

.inbx-row__source {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbx-row__source b { color: var(--fg-2); font-weight: 500; }

.inbx-row__meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: none;
}

.inbx-row__time {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--fg-4);
    white-space: nowrap;
}

.inbx-row.is-active .inbx-row__time { color: var(--brand-navy); }

.inbx-row__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    background: var(--brand-navy-300);
    font-family: var(--font-sans);
}

.inbx-list__foot {
    border-top: 1px solid var(--inbx-border-subtle);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
}

.inbx-list__foot .kbd-hint {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--fg-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inbx-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 1px solid var(--inbx-border-subtle);
    border-bottom-width: 2px;
    background: white;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--fg-2);
    line-height: 1;
}

.inbx-kbd.dark {
    background: var(--brand-navy-700);
    border-color: var(--brand-navy-700);
    color: white;
}

.inbx-kbd-sep {
    margin: 0 4px;
    color: var(--inbx-neutral-300);
}

/* ==========================================================================
   Detail — rechts
   ========================================================================== */
.inbx-detail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--inbx-neutral-25);
    overflow: hidden;
    position: relative;
}

.inbx-detail-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-3);
    font-size: 14px;
}

.inbx-detail__head {
    background: white;
    border-bottom: 1px solid var(--inbx-border-subtle);
    padding: 18px 28px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbx-detail__crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--fg-3);
    line-height: 1;
}

.inbx-detail__crumbs-text {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-3);
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbx-detail__crumbs-text b { color: var(--fg-2); font-weight: 600; }

.inbx-detail__crumbs .pos {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--fg-4);
    margin-left: auto;
    flex: none;
}

.inbx-detail__crumbs .pos b { color: var(--fg-2); font-weight: 600; }

.inbx-nav-arrow {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--inbx-r-md);
    color: var(--fg-3);
    border: 1px solid var(--inbx-border-subtle);
    background: white;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    flex: none;
    transition: background 120ms var(--inbx-ease-out), color 120ms var(--inbx-ease-out), border-color 120ms var(--inbx-ease-out);
}

.inbx-nav-arrow i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.inbx-nav-arrow:hover:not(:disabled) {
    background: var(--inbx-neutral-50);
    color: var(--brand-navy);
    border-color: var(--inbx-neutral-300);
}

.inbx-nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.inbx-detail__title { display: flex; align-items: flex-start; gap: 14px; }
.inbx-detail__title-text { flex: 1; min-width: 0; }

.inbx-detail__title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--fg-1);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.inbx-detail__subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--fg-3);
    flex-wrap: wrap;
}

.inbx-detail__subtitle b { color: var(--fg-1); font-weight: 600; }

.inbx-detail__type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inbx-detail__type-tag.is-new {
    background: var(--brand-orange-100);
    color: var(--inbx-brand-orange-700);
}

.inbx-detail__type-tag.is-revision {
    background: var(--brand-navy-100);
    color: var(--brand-navy);
}

.inbx-detail__time {
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--fg-3);
}

/* Body — content + aside */
.inbx-detail__body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: 0;
    overflow: hidden;
}

.inbx-content {
    overflow: auto;
    padding: 24px 28px 120px;
}

@media (max-width: 1280px) {
    .inbx-detail__body { grid-template-columns: 1fr 260px; }
}

@media (max-width: 1100px) {
    .inbx-detail__body { grid-template-columns: 1fr; }
    .inbx-aside { display: none; }
}

/* Source card — clickable, opens conversation in new tab */
.inbx-source {
    background: white;
    border: 1px solid var(--inbx-border-subtle);
    border-radius: var(--inbx-r-lg);
    padding: 14px 16px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 140ms var(--inbx-ease-out),
                border-color 140ms var(--inbx-ease-out),
                box-shadow 140ms var(--inbx-ease-out),
                transform 140ms var(--inbx-ease-out);
}

.inbx-source:hover {
    background: var(--brand-navy-50);
    border-color: rgba(63, 73, 127, 0.32);
    box-shadow: 0 6px 16px -8px rgba(63, 73, 127, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

.inbx-source:hover .inbx-source__link {
    background: var(--brand-navy);
    color: white;
}

.inbx-source:hover .inbx-source__icon {
    background: var(--brand-orange);
    color: white;
}

.inbx-source:focus-visible {
    outline: none;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 3px rgba(63, 73, 127, 0.18);
}

.inbx-source__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--inbx-r-md);
    background: var(--inbx-brand-orange-50);
    color: var(--inbx-brand-orange-700);
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: background 140ms var(--inbx-ease-out), color 140ms var(--inbx-ease-out);
}

.inbx-source__main { min-width: 0; }

.inbx-source__main h5 {
    margin: 0 0 4px;
    font-size: 11px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-3);
    font-weight: 600;
}

.inbx-source__main p {
    margin: 0;
    font-size: 13.5px;
    color: var(--fg-2);
    line-height: 1.5;
}

.inbx-source__main p b { color: var(--fg-1); font-weight: 600; }

.inbx-source__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-navy);
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: var(--inbx-r-sm);
    background: var(--brand-navy-50);
    border: 0;
    transition: background 140ms var(--inbx-ease-out), color 140ms var(--inbx-ease-out);
}

/* Reason callout */
.inbx-reason {
    background: var(--inbx-brand-orange-50);
    border-left: 3px solid var(--brand-orange);
    padding: 12px 14px;
    border-radius: 0 var(--inbx-r-md) var(--inbx-r-md) 0;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--brand-navy-800);
    line-height: 1.55;
}

.inbx-reason b {
    display: block;
    font-size: 11px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--inbx-brand-orange-700);
    margin-bottom: 4px;
    font-weight: 700;
}

/* Article preview card */
.inbx-article {
    background: white;
    border: 1px solid var(--inbx-border-subtle);
    border-radius: var(--inbx-r-xl);
    padding: 28px 32px;
    box-shadow: var(--inbx-shadow-xs);
}

.inbx-article__eyebrow {
    font-family: var(--font-sans);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-3);
    font-weight: 600;
    margin-bottom: 8px;
}

.inbx-article h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    color: var(--fg-1);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.inbx-article__intro {
    font-size: 15px;
    line-height: 1.65;
    color: var(--fg-2);
    margin: 0 0 14px;
    font-style: italic;
}

.inbx-article__body {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--fg-2);
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
}

/* Inline edit form */
.inbx-edit {
    margin-top: 20px;
    background: white;
    border: 1px solid var(--inbx-border-subtle);
    border-radius: var(--inbx-r-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inbx-edit label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-2);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inbx-edit input,
.inbx-edit textarea {
    padding: 10px 12px;
    border: 1px solid var(--inbx-border-subtle);
    border-radius: var(--inbx-r-md);
    font: inherit;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--fg-1);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    background: white;
}

.inbx-edit input:focus,
.inbx-edit textarea:focus {
    outline: none;
    border-color: var(--brand-navy-300);
    box-shadow: 0 0 0 3px rgba(63, 73, 127, 0.12);
}

.inbx-edit textarea { resize: vertical; min-height: 80px; }

/* Reject form */
.inbx-reject {
    margin-top: 16px;
    background: var(--inbx-danger-bg);
    border-radius: var(--inbx-r-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbx-reject label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--inbx-danger-fg);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inbx-reject textarea {
    padding: 10px 12px;
    border: 1px solid rgba(214, 69, 69, 0.32);
    border-radius: var(--inbx-r-md);
    font: inherit;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--fg-1);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    background: white;
    resize: vertical;
    min-height: 80px;
}

.inbx-reject__actions { display: flex; gap: 8px; }

/* Error */
.inbx-error {
    margin-top: 12px;
    color: var(--inbx-danger-fg);
    background: var(--inbx-danger-bg);
    padding: 10px 14px;
    border-radius: var(--inbx-r-md);
    font-size: 13px;
}

/* Aside — meta panel */
.inbx-aside {
    border-left: 1px solid var(--inbx-border-subtle);
    background: white;
    padding: 22px 22px 90px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.inbx-aside h4 {
    font-size: 11px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-3);
    font-weight: 600;
    margin: 0 0 10px;
}

.inbx-aside__row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    align-items: baseline;
    gap: 12px;
}

.inbx-aside__row b { color: var(--fg-2); font-weight: 500; }
.inbx-aside__row span { color: var(--fg-1); font-weight: 600; text-align: right; }
.inbx-aside__row span.mono { font-family: var(--font-sans); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }

.inbx-author { display: flex; align-items: center; gap: 10px; }

.inbx-author__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #5C6699 0%, #3F497F 100%);
}

.inbx-author__main { min-width: 0; }

.inbx-author__main b {
    display: block;
    font-size: 13.5px;
    color: var(--fg-1);
    font-weight: 600;
}

.inbx-author__main small {
    display: block;
    font-size: 11.5px;
    color: var(--fg-3);
    font-family: var(--font-sans);
}

.inbx-confidence {
    background: var(--brand-navy-50);
    border-radius: var(--inbx-r-md);
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--brand-navy-800);
    line-height: 1.5;
}

.inbx-confidence__label {
    display: block;
    font-family: var(--font-sans);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--inbx-brand-orange-700);
    margin-bottom: 4px;
    font-weight: 700;
}

.inbx-confidence__bar {
    height: 4px;
    border-radius: 999px;
    background: var(--brand-navy-100);
    margin: 8px 0;
    overflow: hidden;
}

.inbx-confidence__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-orange-300) 100%);
    border-radius: 999px;
}

.inbx-confidence__row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--fg-3);
}

/* Action bar — sticky bottom */
.inbx-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 280px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.95) 30%, white 100%);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

@media (max-width: 1280px) {
    .inbx-actions { right: 260px; }
}

@media (max-width: 1100px) {
    .inbx-actions { right: 0; }
}

.inbx-actions__left { display: flex; gap: 8px; flex: 1; }

.inbx-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--inbx-r-md);
    border: 1px solid var(--inbx-border-subtle);
    background: white;
    color: var(--fg-1);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
}

.inbx-btn .inbx-kbd { margin-left: 2px; }
.inbx-btn:hover { background: var(--inbx-neutral-50); border-color: var(--inbx-neutral-300); }
.inbx-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.inbx-btn.is-primary {
    background: var(--inbx-success);
    border-color: var(--inbx-success);
    color: white;
    height: 44px;
    padding: 0 22px;
    font-size: 14.5px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 14px rgba(31, 157, 106, 0.28);
}

.inbx-btn.is-primary:hover { background: #1A8358; border-color: #1A8358; }
.inbx-btn.is-primary .inbx-kbd.dark {
    background: rgba(0,0,0,0.2);
    border-color: rgba(0,0,0,0.2);
}

.inbx-btn.is-danger-ghost {
    color: var(--inbx-danger-fg);
    border-color: var(--inbx-border-subtle);
}

.inbx-btn.is-danger-ghost:hover {
    background: var(--inbx-danger-bg);
    border-color: var(--inbx-danger);
    color: var(--inbx-danger-fg);
}

.kb-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

.kb-status-badge--open { background: #dbeafe; color: #1e40af; }
.kb-status-badge--approved { background: #dcfce7; color: #166534; }
.kb-status-badge--rejected { background: #fee2e2; color: #991b1b; }
