:root {
    --su-blue: #e84253;
    --su-red: #e84253;
    --su-black: #000000;
    --primary: #e84253;
    --ink: #17202a;
    --muted: #6b7788;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --surface-3: #eef3f8;
    --line: #dbe3ed;
    --line-strong: #c6d1de;
    --focus: #e84253;
    --success: #147a5d;
    --warning: #9a6500;
    --danger: #b42318;
    --radius: 8px;
    --shadow: 0 10px 24px rgba(20, 32, 48, .08);
    --shadow-sm: 0 2px 8px rgba(20, 32, 48, .05);
}

* {
    min-width: 0;
}

body {
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    color: var(--ink);
    font-size: 15px;
}

a {
    color: var(--su-blue);
}

.app-navbar {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 32, 48, .03);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--su-blue);
    color: #fff;
    font-size: .82rem;
    letter-spacing: .04em;
}

.navbar-nav {
    gap: .25rem;
}

.navbar-nav .nav-link {
    border-radius: var(--radius);
    color: #3b4654;
    font-weight: 600;
    padding: .5rem .75rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: var(--surface-3);
    color: var(--ink);
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .4rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: .55rem .7rem;
}

.dropdown-item:hover {
    background: var(--surface-3);
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: 999px;
    padding: .25rem .5rem .25rem .25rem;
}

.user-menu-toggle:hover {
    background: var(--surface-3);
}

.user-avatar-mini {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dceaf7;
    color: var(--su-blue);
    font-weight: 800;
}

main.container-fluid {
    padding: 1.35rem;
}

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.btn {
    border-radius: var(--radius);
    font-weight: 650;
}

.btn-primary {
    background: var(--su-blue);
    border-color: var(--su-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #c92f40;
    border-color: #c92f40;
}

.btn-light,
.btn-outline-secondary,
.btn-outline-primary {
    border-color: var(--line-strong);
}

.form-control,
.form-select {
    border-color: var(--line-strong);
    border-radius: var(--radius);
    padding: .68rem .78rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 .2rem rgba(106, 169, 233, .18);
}

.form-text,
.text-muted {
    color: var(--muted) !important;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    padding: .38rem .55rem;
}

.badge.text-bg-light {
    background: #f3f6fa !important;
    color: #344054 !important;
    border: 1px solid #d7dee8;
}

.modal-content {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.modal .row.g-3 {
    align-items: end;
}

.modal .form-label,
.panel .form-label {
    font-size: .82rem;
    font-weight: 750;
    color: #333;
}

.table {
    --bs-table-bg: transparent;
}

.admin-list-table th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .9rem 1rem;
}

.admin-list-table td {
    padding: .95rem 1rem;
    border-color: var(--line);
}

.admin-list-table tbody tr:hover {
    background: #f9fbfd;
}

.add-kb-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}

.kb-search {
    max-width: 720px;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.kb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.kb-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.kb-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.kb-card p {
    color: #52606d;
    flex: 1;
}

.kb-status-banner {
    margin: -1.15rem -1.15rem 1rem;
    padding: .45rem .85rem;
    background: #eef2f7;
    color: #344054;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.kb-status-banner.status-ready {
    background: #e8f8ef;
    color: #137333;
}

.kb-status-banner.status-draft {
    background: #fff5dc;
    color: #8a5a00;
}

.kb-status-banner.status-syncing,
.kb-status-banner.status-processing {
    background: #eaf2ff;
    color: #124d96;
}

.kb-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.kb-meta {
    display: flex;
    flex-direction: column;
    gap: .22rem;
    color: var(--muted);
    font-size: .82rem;
}

.chatbot-card-visual {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    background: #fff3f5;
    color: var(--su-red);
    border: 1px solid #f4b9c1;
    font-weight: 850;
    margin-bottom: .85rem;
    overflow: hidden;
}

.chatbot-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-file-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.kb-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfe;
    padding: .85rem;
}

.kb-file-row > form {
    margin: 0;
}

.kb-file-row:hover {
    background: #f5f8fb;
}

.kb-file-main {
    border: 0;
    background: transparent;
    text-align: left;
    min-width: 0;
}

.kb-file-main strong,
.kb-file-main span {
    display: block;
}

.kb-file-main span {
    color: var(--muted);
    font-size: .84rem;
}

.kb-preview-frame {
    width: 100%;
    min-height: 72vh;
    border: 0;
    background: #f8fafc;
}

.settings-layout,
.admin-modal-split {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.settings-side {
    position: sticky;
    top: 86px;
    padding: .75rem;
}

.settings-side a {
    display: block;
    padding: .72rem .82rem;
    border-radius: var(--radius);
    color: #354252;
    text-decoration: none;
    font-weight: 650;
}

.settings-side .nav-link {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    color: #354252;
    font-weight: 650;
    text-align: left;
    padding: .72rem .82rem;
}

.settings-side .nav-link.active {
    background: var(--su-red);
    color: #fff;
}

.settings-side a:hover {
    background: var(--surface-3);
}

.settings-content {
    display: grid;
    gap: 1rem;
}

.settings-section {
    scroll-margin-top: 94px;
}

.permission-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .6rem .9rem;
}

.form-check {
    margin-bottom: 0;
}

.role-badge {
    color: #fff;
}

.role-badge.role-user {
    background: #475569;
}

.role-badge.role-admin {
    background: #0f766e;
}

.role-badge.role-super_admin {
    background: var(--primary);
}

.stacked-modal-fields {
    display: grid;
    gap: 1rem;
}

.user-check-list {
    display: grid;
    gap: .4rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: .5rem;
}

.user-check-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: .6rem;
    align-items: start;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfe;
    margin: 0;
    min-height: auto;
}

.user-check-row .form-check-input {
    float: none;
    margin: .2rem 0 0 0;
    position: static;
}

.user-check-row small {
    display: block;
    color: var(--muted);
}

.resource-permission-list {
    display: grid;
    gap: .55rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: .35rem;
}

.resource-permission-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 86px;
    gap: .75rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfe;
    padding: .75rem;
}

.resource-permission-row small {
    display: block;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.capability-check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: .55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem;
    padding-left: .75rem;
    background: #fbfcfe;
}

.capability-check.form-check {
    margin: 0;
    min-height: auto;
}

.capability-check .form-check-input {
    float: none;
    margin: .2rem 0 0 0;
    position: static;
}

.capability-check small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    margin-top: .15rem;
}

.suggestion-editor-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(160px, 220px) minmax(0, 1fr) 44px;
    gap: .6rem;
    align-items: start;
    margin-bottom: .65rem;
}

.review-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1rem;
}

.review-alert-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #f3b7bf;
    border-radius: var(--radius);
    background: #fff4f6;
    color: #8f1d2b;
    padding: .85rem 1rem;
    font-weight: 750;
}

.review-alert-wrap {
    margin-bottom: 1rem;
}

.review-alert-wrap + .chat-app-shell {
    margin-top: 0;
}

.review-alert-wrap[hidden] {
    display: none !important;
}

.review-alert-actions {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.review-alert-actions .btn-light {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    background: #ffffff;
    color: #8f1d2b;
}

.review-page {
    max-width: 1500px;
}

.review-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.review-stat-row span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    padding: .5rem .75rem;
    color: var(--muted);
}

.review-stat-row strong {
    color: var(--ink);
}

.review-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto;
    gap: .85rem;
    align-items: end;
}

.review-filter-actions {
    display: flex;
    gap: .5rem;
}

.review-triage-layout {
    display: grid;
    grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.review-queue {
    overflow: hidden;
    position: sticky;
    top: 86px;
}

.review-queue-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid var(--line);
    padding: .9rem 1rem;
}

.review-queue-list {
    max-height: calc(100vh - 255px);
    overflow-y: auto;
    padding: .55rem;
}

.review-queue-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .45rem .5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--ink);
    padding: .78rem;
    text-decoration: none;
}

.review-queue-item:hover,
.review-queue-item.active {
    background: #f6f8fb;
    border-color: var(--line);
}

.review-queue-item.active {
    box-shadow: inset 3px 0 0 var(--su-red);
}

.review-queue-item strong,
.review-snippet,
.review-queue-meta,
.review-assignee {
    grid-column: 1 / -1;
}

.review-snippet {
    color: #475467;
    font-size: .9rem;
    line-height: 1.35;
}

.review-queue-meta,
.review-assignee {
    color: var(--muted);
    font-size: .8rem;
}

.review-priority {
    justify-self: start;
    background: #eef2f7;
    color: #344054;
    border: 1px solid var(--line);
}

.review-priority.priority-high {
    background: #fff1f3;
    color: #b42318;
    border-color: #fecdd3;
}

.review-priority.priority-low {
    background: #eef8f4;
    color: #147a5d;
    border-color: #c7eadb;
}

.review-detail {
    padding: 1rem;
}

.review-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.review-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.review-message-pair {
    display: grid;
    gap: .75rem;
}

.review-message-pair article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfe;
    overflow: hidden;
}

.review-message-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    border-bottom: 1px solid var(--line);
    background: #f3f6fa;
    padding: .65rem .8rem;
    color: #344054;
    font-size: .82rem;
    font-weight: 800;
}

.review-message-content {
    max-height: 340px;
    overflow: auto;
    padding: .9rem;
    line-height: 1.55;
}

.review-workflow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(245px, 310px);
    gap: 1rem;
    align-items: start;
}

.review-field-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.review-side-actions {
    display: grid;
    gap: 1rem;
}

.review-side-actions > div,
.review-assignment-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfcfe;
    padding: .9rem;
}

.quick-comment-list {
    display: grid;
    gap: .45rem;
}

.quick-comment-list .btn {
    width: 100%;
    text-align: left;
    white-space: normal;
}

.review-context-modal {
    display: grid;
    gap: .85rem;
    background: var(--surface-2);
}

.review-card p {
    color: var(--ink);
    margin-bottom: .7rem;
}

.review-note {
    border-left: 3px solid var(--su-red);
    background: #fff5f6;
    padding: .65rem .75rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .9rem;
    color: #394556;
}

.audit-action {
    display: inline-flex;
    max-width: 240px;
    overflow-wrap: anywhere;
    border-radius: 999px;
    background: #fff1f3;
    color: #9f1f2d;
    padding: .28rem .55rem;
    font-size: .82rem;
    font-weight: 800;
}

.audit-details summary {
    cursor: pointer;
    color: var(--su-red);
    font-weight: 750;
}

.audit-details pre {
    max-width: 520px;
    max-height: 260px;
    overflow: auto;
    margin: .55rem 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    color: #1f2937;
    padding: .75rem;
    font-size: .8rem;
    white-space: pre-wrap;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.sandbox-action-card {
    display: flex;
    flex-direction: column;
}

.sandbox-action-card p {
    font-size: .92rem;
}

.sandbox-action-card form {
    margin-top: auto;
}

.chat-app-shell {
    max-width: 1560px;
    margin: -1.35rem auto 0;
}

.chat-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: calc(100vh - 58px);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.chat-sidebar {
    border-right: 1px solid var(--line);
    background: #f4f7fa;
    min-height: calc(100vh - 58px);
}

.sidebar-head {
    padding: 1rem;
}

.chat-list {
    padding: 0 .6rem 1rem;
}

.chat-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: .25rem;
    border-radius: var(--radius);
    margin-bottom: .25rem;
    color: var(--ink);
}

.chat-list-item:hover,
.chat-list-item.active {
    background: #e7edf4;
}

.chat-list-item.active {
    box-shadow: inset 3px 0 0 var(--su-blue);
}

.chat-list-link {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding: .62rem .4rem .62rem .7rem;
    color: var(--ink);
    text-decoration: none;
}

.chat-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: .95rem;
}

.chat-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.pin-mark {
    color: var(--muted);
    font-size: .72rem;
}

.chat-menu-btn,
.icon-action,
.source-summary,
.source-chip {
    border: 0;
    background: transparent;
}

.chat-menu-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    color: var(--muted);
}

.chat-menu-btn:hover {
    background: #fff;
}

.chat-main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 58px);
}

.chat-topbar {
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
    background: var(--surface);
}

.chat-heading {
    font-weight: 800;
    font-size: 1.08rem;
}

.bot-switcher {
    width: fit-content;
    max-width: 100%;
}

.bot-switcher-button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    align-items: center;
    gap: .5rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    padding: .32rem .55rem .32rem .38rem;
    text-align: left;
}

.bot-switcher-button:hover,
.bot-switcher-button[aria-expanded="true"] {
    border-color: #f4b9c1;
    box-shadow: 0 0 0 .18rem rgba(232, 66, 83, .11);
}

.bot-switcher-icon,
.bot-choice-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: #fff3f5;
    color: var(--su-red);
    border: 1px solid #f4b9c1;
    overflow: hidden;
}

.bot-switcher-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: .9rem;
}

.bot-switcher-icon img,
.bot-choice-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-switcher-copy {
    display: block;
}

.bot-switcher-kicker {
    display: none;
}

.bot-switcher-copy strong {
    display: block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .93rem;
}

.bot-switcher-menu {
    width: min(520px, calc(100vw - 2rem));
    max-height: 420px;
    overflow-y: auto;
    padding: .45rem;
}

.bot-choice {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    gap: .75rem;
    align-items: start;
    padding: .75rem;
}

.bot-choice.active,
.bot-choice:active {
    background: #fff3f5;
    color: var(--ink);
}

.bot-choice-copy {
    display: grid;
    gap: .18rem;
}

.bot-choice-copy small {
    color: var(--muted);
    white-space: normal;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.7rem clamp(1rem, 4vw, 4.5rem);
    background: #fff;
}

.suggestion-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .85rem;
    max-width: 900px;
    margin: -1rem auto 1.5rem;
}

.suggestion-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    min-height: 92px;
    padding: .9rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.suggestion-card:hover {
    border-color: rgba(232, 66, 83, .45);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}

.suggestion-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff1f3;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.suggestion-copy,
.suggestion-copy strong,
.suggestion-copy span {
    display: block;
}

.suggestion-copy strong {
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.25;
}

.suggestion-copy span {
    color: var(--muted);
    font-size: .84rem;
    margin-top: .28rem;
}

.empty-chat-state {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 44vh;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
}

.empty-chat-state h1 {
    color: var(--ink);
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 850;
    letter-spacing: 0;
    margin-bottom: .55rem;
}

.empty-chat-state p {
    margin: 0;
    font-size: 1rem;
}

.conversation-message {
    display: grid;
    grid-template-columns: 42px minmax(0, 900px);
    gap: .85rem;
    max-width: 1020px;
    margin: 0 auto 1.35rem;
}

.message-enter {
    animation: messageIn .22s ease-out both;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #f4f8fc;
    overflow: hidden;
    font-weight: 800;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-body {
    padding-top: .15rem;
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: .35rem;
}

.message-meta strong {
    color: var(--ink);
}

.message-content {
    white-space: normal;
    line-height: 1.58;
}

.message-content p {
    margin: 0 0 .75rem;
}

.message-content p:last-child,
.message-content ul:last-child,
.message-content ol:last-child,
.message-content blockquote:last-child {
    margin-bottom: 0;
}

.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    margin: .85rem 0 .45rem;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.25;
}

.message-content h3 {
    font-size: 1.12rem;
}

.message-content h4,
.message-content h5,
.message-content h6 {
    font-size: 1rem;
}

.message-content ul,
.message-content ol {
    margin: .35rem 0 .8rem;
    padding-left: 1.35rem;
}

.message-content li + li {
    margin-top: .25rem;
}

.message-content blockquote {
    margin: .6rem 0 .8rem;
    border-left: 3px solid var(--su-red);
    padding: .35rem .75rem;
    color: #475467;
    background: #f8fafc;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.message-content strong {
    font-weight: 800;
}

.message-content code {
    border-radius: 6px;
    background: #f1f4f8;
    color: #111827;
    padding: .08rem .28rem;
    font-size: .9em;
}

.message {
    max-width: 860px;
    border-radius: var(--radius);
    padding: .9rem 1rem;
    margin-bottom: .8rem;
    white-space: pre-wrap;
}

.message.user {
    margin-left: auto;
    background: #eaf4ff;
}

.message.assistant {
    margin-right: auto;
    background: #f3f5f8;
}

.message-actions {
    display: flex;
    gap: .35rem;
    margin-top: .65rem;
    min-height: 30px;
}

.icon-action {
    border-radius: var(--radius);
    color: #52606d;
    padding: .28rem .5rem;
}

.icon-action i {
    pointer-events: none;
}

.icon-action:hover {
    background: var(--surface-3);
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    min-height: 1.5rem;
}

.typing-dots span {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--su-red);
    animation: typingDot 1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: .14s;
}

.typing-dots span:nth-child(3) {
    animation-delay: .28s;
}

@keyframes typingDot {
    0%,
    80%,
    100% {
        opacity: .35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.source-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .75rem;
}

.source-chip,
.source-summary {
    border-radius: 999px;
    background: #e8f3ff;
    color: var(--su-blue);
    padding: .32rem .58rem;
    font-size: .82rem;
    font-weight: 650;
}

.source-chip:hover,
.source-summary:hover {
    background: #ffe3e7;
    color: #9f1f2d;
}

.source-summary {
    display: inline-block;
    margin-top: .5rem;
}

.source-detail + .source-detail {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 1rem;
}

.source-excerpt {
    margin-top: .75rem;
    white-space: pre-wrap;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .95rem;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .75rem;
}

.attachment-pill {
    border-radius: 999px;
    background: #f4f4f5;
    border: 1px solid var(--line);
    padding: .28rem .58rem;
    font-size: .82rem;
    color: #333;
}

.inline-edit-form {
    margin-top: .65rem;
}

.composer {
    padding: 1rem clamp(1rem, 4vw, 4.5rem);
    border-top: 1px solid var(--line);
    background: #fff;
}

.composer .input-group {
    max-width: 1020px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.composer textarea {
    min-height: 54px;
}

.chat-followups {
    min-height: 0;
    padding: 0 clamp(1rem, 4vw, 4.5rem);
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.chat-followups:empty {
    display: none;
}

.chat-followups:not(:empty) {
    padding-top: .85rem;
}

.chat-empty-footer {
    padding: 1rem clamp(1rem, 4vw, 4.5rem);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.suggestion-btn {
    text-align: left;
}

.archived-chat-panel {
    border-top: 1px solid var(--line);
    margin: .5rem .75rem 0;
    padding-top: .65rem;
}

.archived-chat-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 800;
    list-style: none;
    border-radius: var(--radius);
    padding: .55rem .6rem;
    transition: background .15s ease, color .15s ease;
}

.archived-chat-panel summary::-webkit-details-marker {
    display: none;
}

.archived-chat-panel summary:hover {
    background: var(--surface-3);
}

.archived-chat-panel summary span,
.archived-chat-panel summary strong {
    display: inline-flex;
    align-items: center;
}

.archived-chat-panel summary span {
    gap: .45rem;
}

.archived-chat-panel summary strong {
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted);
    padding: .12rem .45rem;
    font-size: .75rem;
}

.archived-chat-list {
    margin-top: .45rem;
    padding-bottom: .25rem;
}

.chat-list-item.archived {
    opacity: .82;
}

.chat-list-item.archived:hover,
.chat-list-item.archived.active {
    opacity: 1;
}

.admin-chat-review {
    overflow: hidden;
}

.admin-chat-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    border-top: 1px solid var(--line);
    max-height: min(760px, calc(100vh - 220px));
    min-height: 460px;
}

.admin-chat-sidebar {
    border-right: 1px solid var(--line);
    background: var(--surface-2);
    padding: .75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-chat-sidebar .chat-list {
    padding: 0;
}

.admin-chat-list-link {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    padding: .65rem .7rem;
}

.admin-chat-list-link > span:last-child {
    min-width: 0;
    overflow: hidden;
}

.admin-chat-list-link .chat-title,
.admin-chat-list-link small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chat-list-link small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-top: .15rem;
}

.admin-chat-main {
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--surface);
}

.admin-empty-chat {
    min-height: 420px;
}

.shared-chat-view .conversation-message,
.admin-chat-main .conversation-message {
    margin-left: 0;
    margin-right: 0;
}

body[data-theme="dark"] {
    --ink: #f4f6f8;
    --muted: #a5b1c2;
    --surface: #14171c;
    --surface-2: #0f1217;
    --surface-3: #202631;
    --line: #2c3440;
    --line-strong: #3a4654;
    --shadow: 0 10px 24px rgba(0, 0, 0, .34);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
    background: #0b0d11;
}

body[data-theme="dark"] .app-navbar,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .chat-main,
body[data-theme="dark"] .chat-messages,
body[data-theme="dark"] .composer,
body[data-theme="dark"] .modal-content,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .suggestion-card,
body[data-theme="dark"] .kb-card,
body[data-theme="dark"] .bg-white {
    background: var(--surface);
    color: var(--ink);
}

body[data-theme="dark"] .navbar-nav .nav-link,
body[data-theme="dark"] .user-menu-toggle,
body[data-theme="dark"] .app-brand,
body[data-theme="dark"] .dropdown-item,
body[data-theme="dark"] .form-label,
body[data-theme="dark"] .modal .form-label,
body[data-theme="dark"] .panel .form-label,
body[data-theme="dark"] .chat-title,
body[data-theme="dark"] .chat-heading,
body[data-theme="dark"] .settings-side a,
body[data-theme="dark"] .settings-side .nav-link,
body[data-theme="dark"] .kb-card h2,
body[data-theme="dark"] .bot-choice-copy strong,
body[data-theme="dark"] .suggestion-copy strong {
    color: var(--ink);
}

body[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .navbar-nav .nav-link:hover,
body[data-theme="dark"] .user-menu-toggle:hover,
body[data-theme="dark"] .bot-choice.active,
body[data-theme="dark"] .bot-choice:active,
body[data-theme="dark"] .chat-list-item:hover,
body[data-theme="dark"] .chat-list-item.active {
    background: var(--surface-3);
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .btn-light {
    background-color: #10141a;
    border-color: var(--line-strong);
    color: var(--ink);
}

body[data-theme="dark"] .admin-list-table th,
body[data-theme="dark"] .admin-list-table tbody tr:hover,
body[data-theme="dark"] .chat-sidebar,
body[data-theme="dark"] .admin-chat-sidebar {
    background: var(--surface-2);
}

body[data-theme="dark"] .message-avatar,
body[data-theme="dark"] .message-content code,
body[data-theme="dark"] .source-excerpt,
body[data-theme="dark"] .attachment-pill,
body[data-theme="dark"] .user-avatar-mini,
body[data-theme="dark"] .chat-icon,
body[data-theme="dark"] .bot-switcher-icon,
body[data-theme="dark"] .bot-choice-icon {
    background: var(--surface-3);
    color: var(--ink);
    border-color: var(--line);
}

body[data-theme="dark"] .message-content blockquote {
    background: #10141a;
    color: #c7d0dc;
}

body[data-theme="dark"] .chat-menu-btn {
    color: #c5ceda;
}

body[data-theme="dark"] .chat-menu-btn:hover {
    background: #2a3340;
    color: #ffffff;
}

body[data-theme="dark"] .chatbot-card-visual {
    background: #2a171b;
    border-color: #6f2933;
    color: #ff9aa6;
}

body[data-theme="dark"] .kb-card p,
body[data-theme="dark"] .bot-choice-copy small,
body[data-theme="dark"] .suggestion-copy span,
body[data-theme="dark"] .kb-meta,
body[data-theme="dark"] .pin-mark {
    color: #b5c0cf;
}

body[data-theme="dark"] .badge.text-bg-light,
body[data-theme="dark"] .text-bg-light {
    background: rgba(232, 66, 83, .12) !important;
    color: #ffb4bd !important;
    border: 1px solid rgba(232, 66, 83, .34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

body[data-theme="dark"] .bot-switcher-button,
body[data-theme="dark"] .chat-topbar,
body[data-theme="dark"] .chat-followups,
body[data-theme="dark"] .chat-empty-footer {
    background: var(--surface);
    color: var(--ink);
}

body[data-theme="dark"] .bot-switcher-button {
    border-color: var(--line);
    background: #10141a;
}

body[data-theme="dark"] .bot-switcher-button:hover,
body[data-theme="dark"] .bot-switcher-button[aria-expanded="true"] {
    border-color: rgba(232, 66, 83, .6);
    box-shadow: 0 0 0 .18rem rgba(232, 66, 83, .16);
}

body[data-theme="dark"] .kb-status-banner {
    background: #222b36;
    color: #d6deea;
}

body[data-theme="dark"] .kb-status-banner.status-ready {
    background: #113522;
    color: #8ee6b2;
}

body[data-theme="dark"] .kb-status-banner.status-draft {
    background: #3a2c10;
    color: #ffd87a;
}

body[data-theme="dark"] .kb-status-banner.status-syncing,
body[data-theme="dark"] .kb-status-banner.status-processing {
    background: #152d4a;
    color: #9dccff;
}

body[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

body[data-theme="dark"] .message.user {
    background: #27171a;
}

body[data-theme="dark"] .message.assistant {
    background: #171c23;
}

body[data-theme="dark"] .source-chip,
body[data-theme="dark"] .source-summary,
body[data-theme="dark"] .suggestion-icon {
    background: #2a171b;
    color: #ff95a2;
}

body[data-theme="dark"] .btn-outline-secondary,
body[data-theme="dark"] .btn-outline-primary {
    color: var(--ink);
    border-color: var(--line-strong);
}

body[data-theme="dark"] .review-card p,
body[data-theme="dark"] .review-card h2 {
    color: var(--ink);
}

body[data-theme="dark"] .review-note {
    background: #2a171b;
    color: #f7d7dc;
    border-left-color: #ff8795;
}

body[data-theme="dark"] .review-alert-banner {
    background: #27171a;
    border-color: #6f2933;
    color: #ffb4bd;
}

body[data-theme="dark"] .review-alert-actions .btn-light {
    background: #10141a;
    color: #ffb4bd;
    border-color: #6f2933;
}

body[data-theme="dark"] .review-stat-row span,
body[data-theme="dark"] .review-message-pair article,
body[data-theme="dark"] .review-side-actions > div,
body[data-theme="dark"] .review-assignment-box {
    background: #10141a;
    border-color: var(--line-strong);
    color: var(--ink);
}

body[data-theme="dark"] .review-queue-item {
    color: var(--ink);
}

body[data-theme="dark"] .review-queue-item:hover,
body[data-theme="dark"] .review-queue-item.active,
body[data-theme="dark"] .review-message-label {
    background: var(--surface-3);
    border-color: var(--line-strong);
    color: var(--ink);
}

body[data-theme="dark"] .review-snippet {
    color: #c7d0dc;
}

body[data-theme="dark"] .review-priority {
    background: #202631;
    color: #cbd5e1;
    border-color: var(--line-strong);
}

body[data-theme="dark"] .review-priority.priority-high {
    background: #2a171b;
    color: #ffb4bd;
    border-color: #6f2933;
}

body[data-theme="dark"] .review-priority.priority-low {
    background: #11271e;
    color: #98e5bd;
    border-color: #265b45;
}

body[data-theme="dark"] .audit-action {
    background: #2a171b;
    color: #ffb4bd;
}

body[data-theme="dark"] .audit-details pre {
    background: #10141a;
    color: var(--ink);
    border-color: var(--line-strong);
}

body[data-theme="dark"] .capability-check {
    background: #10141a;
    border-color: var(--line-strong);
    color: var(--ink);
}

body[data-theme="dark"] .capability-check small {
    color: #b5c0cf;
}

body[data-theme="dark"] .review-board .btn-group .btn.active,
body[data-theme="dark"] .btn-group .btn-outline-secondary.active {
    background: var(--su-red);
    border-color: var(--su-red);
    color: #ffffff;
}

@media (prefers-color-scheme: dark) {
    body[data-theme="system"] {
        --ink: #f4f6f8;
        --muted: #a5b1c2;
        --surface: #14171c;
        --surface-2: #0f1217;
        --surface-3: #202631;
        --line: #2c3440;
        --line-strong: #3a4654;
        --shadow: 0 10px 24px rgba(0, 0, 0, .34);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
        background: #0b0d11;
    }

    body[data-theme="system"] .app-navbar,
    body[data-theme="system"] .panel,
    body[data-theme="system"] .chat-main,
    body[data-theme="system"] .chat-messages,
    body[data-theme="system"] .composer,
    body[data-theme="system"] .modal-content,
    body[data-theme="system"] .dropdown-menu,
    body[data-theme="system"] .suggestion-card,
    body[data-theme="system"] .kb-card,
    body[data-theme="system"] .bg-white {
        background: var(--surface);
        color: var(--ink);
    }

    body[data-theme="system"] .navbar-nav .nav-link,
    body[data-theme="system"] .user-menu-toggle,
    body[data-theme="system"] .app-brand,
    body[data-theme="system"] .dropdown-item,
    body[data-theme="system"] .form-label,
    body[data-theme="system"] .modal .form-label,
    body[data-theme="system"] .panel .form-label,
    body[data-theme="system"] .chat-title,
    body[data-theme="system"] .chat-heading,
    body[data-theme="system"] .settings-side a,
    body[data-theme="system"] .settings-side .nav-link,
    body[data-theme="system"] .kb-card h2,
    body[data-theme="system"] .bot-choice-copy strong,
    body[data-theme="system"] .suggestion-copy strong {
        color: var(--ink);
    }

    body[data-theme="system"] .form-control,
    body[data-theme="system"] .form-select,
    body[data-theme="system"] .btn-light {
        background-color: #10141a;
        border-color: var(--line-strong);
        color: var(--ink);
    }

    body[data-theme="system"] .admin-list-table th,
    body[data-theme="system"] .admin-list-table tbody tr:hover,
    body[data-theme="system"] .chat-sidebar,
    body[data-theme="system"] .admin-chat-sidebar {
        background: var(--surface-2);
    }

    body[data-theme="system"] .message-avatar,
    body[data-theme="system"] .message-content code,
    body[data-theme="system"] .source-excerpt,
    body[data-theme="system"] .attachment-pill,
    body[data-theme="system"] .user-avatar-mini,
    body[data-theme="system"] .chat-icon,
    body[data-theme="system"] .bot-switcher-icon,
    body[data-theme="system"] .bot-choice-icon {
        background: var(--surface-3);
        color: var(--ink);
        border-color: var(--line);
    }

    body[data-theme="system"] .message-content blockquote {
        background: #10141a;
        color: #c7d0dc;
    }

    body[data-theme="system"] .chat-list-item:hover,
    body[data-theme="system"] .chat-list-item.active,
    body[data-theme="system"] .bot-choice.active,
    body[data-theme="system"] .bot-choice:active {
        background: var(--surface-3);
    }

    body[data-theme="system"] .chat-menu-btn {
        color: #c5ceda;
    }

    body[data-theme="system"] .chat-menu-btn:hover {
        background: #2a3340;
        color: #ffffff;
    }

    body[data-theme="system"] .chatbot-card-visual {
        background: #2a171b;
        border-color: #6f2933;
        color: #ff9aa6;
    }

    body[data-theme="system"] .kb-card p,
    body[data-theme="system"] .bot-choice-copy small,
    body[data-theme="system"] .suggestion-copy span,
    body[data-theme="system"] .kb-meta,
    body[data-theme="system"] .pin-mark {
        color: #b5c0cf;
    }

    body[data-theme="system"] .badge.text-bg-light,
    body[data-theme="system"] .text-bg-light {
        background: rgba(232, 66, 83, .12) !important;
        color: #ffb4bd !important;
        border: 1px solid rgba(232, 66, 83, .34);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    }

    body[data-theme="system"] .bot-switcher-button,
    body[data-theme="system"] .chat-topbar,
    body[data-theme="system"] .chat-followups,
    body[data-theme="system"] .chat-empty-footer {
        background: var(--surface);
        color: var(--ink);
    }

    body[data-theme="system"] .bot-switcher-button {
        border-color: var(--line);
        background: #10141a;
    }

    body[data-theme="system"] .bot-switcher-button:hover,
    body[data-theme="system"] .bot-switcher-button[aria-expanded="true"] {
        border-color: rgba(232, 66, 83, .6);
        box-shadow: 0 0 0 .18rem rgba(232, 66, 83, .16);
    }

    body[data-theme="system"] .kb-status-banner {
        background: #222b36;
        color: #d6deea;
    }

    body[data-theme="system"] .kb-status-banner.status-ready {
        background: #113522;
        color: #8ee6b2;
    }

    body[data-theme="system"] .kb-status-banner.status-draft {
        background: #3a2c10;
        color: #ffd87a;
    }

    body[data-theme="system"] .kb-status-banner.status-syncing,
    body[data-theme="system"] .kb-status-banner.status-processing {
        background: #152d4a;
        color: #9dccff;
    }

    body[data-theme="system"] .message.user {
        background: #27171a;
    }

    body[data-theme="system"] .message.assistant {
        background: #171c23;
    }

    body[data-theme="system"] .review-card p,
    body[data-theme="system"] .review-card h2 {
        color: var(--ink);
    }

    body[data-theme="system"] .review-note {
        background: #2a171b;
        color: #f7d7dc;
        border-left-color: #ff8795;
    }

    body[data-theme="system"] .review-alert-banner {
        background: #27171a;
        border-color: #6f2933;
        color: #ffb4bd;
    }

    body[data-theme="system"] .review-alert-actions .btn-light {
        background: #10141a;
        color: #ffb4bd;
        border-color: #6f2933;
    }

    body[data-theme="system"] .review-stat-row span,
    body[data-theme="system"] .review-message-pair article,
    body[data-theme="system"] .review-side-actions > div,
    body[data-theme="system"] .review-assignment-box {
        background: #10141a;
        border-color: var(--line-strong);
        color: var(--ink);
    }

    body[data-theme="system"] .review-queue-item {
        color: var(--ink);
    }

    body[data-theme="system"] .review-queue-item:hover,
    body[data-theme="system"] .review-queue-item.active,
    body[data-theme="system"] .review-message-label {
        background: var(--surface-3);
        border-color: var(--line-strong);
        color: var(--ink);
    }

    body[data-theme="system"] .review-snippet {
        color: #c7d0dc;
    }

    body[data-theme="system"] .review-priority {
        background: #202631;
        color: #cbd5e1;
        border-color: var(--line-strong);
    }

    body[data-theme="system"] .review-priority.priority-high {
        background: #2a171b;
        color: #ffb4bd;
        border-color: #6f2933;
    }

    body[data-theme="system"] .review-priority.priority-low {
        background: #11271e;
        color: #98e5bd;
        border-color: #265b45;
    }

    body[data-theme="system"] .audit-action {
        background: #2a171b;
        color: #ffb4bd;
    }

    body[data-theme="system"] .audit-details pre {
        background: #10141a;
        color: var(--ink);
        border-color: var(--line-strong);
    }

    body[data-theme="system"] .capability-check {
        background: #10141a;
        border-color: var(--line-strong);
        color: var(--ink);
    }

    body[data-theme="system"] .capability-check small {
        color: #b5c0cf;
    }

    body[data-theme="system"] .review-board .btn-group .btn.active,
    body[data-theme="system"] .btn-group .btn-outline-secondary.active {
        background: var(--su-red);
        border-color: var(--su-red);
        color: #ffffff;
    }
}

@media (max-width: 900px) {
    main.container-fluid {
        padding: .9rem;
    }

    .chat-shell {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .chat-list {
        max-height: 220px;
        overflow-y: auto;
    }

    .kb-file-row,
    .settings-layout,
    .admin-modal-split,
    .suggestion-editor-row,
    .resource-permission-row,
    .admin-chat-layout {
        grid-template-columns: 1fr;
    }

    .admin-chat-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        max-height: 260px;
    }

    .review-filters,
    .review-triage-layout,
    .review-workflow-grid,
    .review-field-grid {
        grid-template-columns: 1fr;
    }

    .review-queue {
        position: static;
    }

    .review-queue-list {
        max-height: 340px;
    }

    .review-detail-head,
    .review-alert-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .review-detail-actions {
        justify-content: flex-start;
    }

    .settings-side {
        position: static;
    }
}
