html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f8f9fa;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.surface {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    min-width: 0;
}

.admin-tile {
    display: block;
    height: 100%;
    min-height: 136px;
    padding: 1.25rem;
    color: #212529;
    text-decoration: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.admin-tile:hover {
    color: #0d6efd;
    border-color: #9ec5fe;
}

.admin-tile-title,
.admin-tile-text {
    display: block;
}

.admin-tile-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.admin-tile-text {
    color: #6c757d;
}

.details-list {
    margin-bottom: 0;
}

.details-list dt {
    color: #6c757d;
    font-weight: 500;
}

.details-list dd {
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.table {
    margin-bottom: 0;
}

.sticky-actions {
    top: 4.5rem;
}

.search-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.search-meta-grid > * {
    min-width: 0;
}

.search-intent {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.search-product-image {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.search-results-wrapper {
    max-width: 100%;
}

.search-results-table {
    min-width: 760px;
    table-layout: fixed;
}

.search-results-table th,
.search-results-table td {
    overflow-wrap: anywhere;
}

.search-results-table th:nth-child(1) {
    width: 42%;
}

.search-results-table th:nth-child(2) {
    width: 18%;
}

.search-results-table th:nth-child(3),
.search-results-table th:nth-child(4) {
    width: 16%;
}

.search-results-table th:nth-child(5) {
    width: 8%;
}

.search-product-cell,
.search-product-details {
    min-width: 0;
}

.search-json {
    max-width: 100%;
    max-height: 24rem;
    overflow: auto;
    padding: 1rem;
    color: #f8f9fa;
    background: #212529;
    border-radius: 6px;
    font-size: 0.875rem;
}

.prompt-template-editor {
    min-height: 22rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
}

.prompt-template-table {
    min-width: 860px;
}

.prompt-template-table th,
.prompt-template-table td,
.prompt-template-preview {
    overflow-wrap: anywhere;
}

.prompt-template-preview {
    display: -webkit-box;
    color: #495057;
    font-size: 0.875rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.diagnostic-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.diagnostic-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    padding: 0;
    color: #6c757d;
    background: #fff;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.diagnostic-help-trigger:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(37, 140, 251, 0.25);
}

.diagnostic-tooltip {
    --bs-tooltip-bg: #fff;
    --bs-tooltip-color: #212529;
    --bs-tooltip-max-width: min(28rem, calc(100vw - 2rem));
    --bs-tooltip-opacity: 1;
    --bs-tooltip-padding-x: 0;
    --bs-tooltip-padding-y: 0;
}

.diagnostic-tooltip .tooltip-inner {
    padding: 0.65rem 0.75rem;
    text-align: left;
    white-space: normal;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0.75rem 1.5rem rgba(33, 37, 41, 0.16);
}

.diagnostic-tooltip-title,
.diagnostic-tooltip-text,
.diagnostic-tooltip-row {
    display: block;
}

.diagnostic-tooltip-title {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.diagnostic-tooltip-text,
.diagnostic-tooltip-row {
    font-size: 0.78rem;
    line-height: 1.35;
}

.diagnostic-tooltip-row + .diagnostic-tooltip-row {
    margin-top: 0.25rem;
}

.product-tooltip {
    --bs-tooltip-bg: #fff;
    --bs-tooltip-color: #212529;
    --bs-tooltip-max-width: min(24rem, calc(100vw - 2rem));
    --bs-tooltip-opacity: 1;
    --bs-tooltip-padding-x: 0;
    --bs-tooltip-padding-y: 0;
}

.product-tooltip .tooltip-inner {
    padding: 0.65rem 0.75rem;
    text-align: left;
    white-space: normal;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 0.75rem 1.5rem rgba(33, 37, 41, 0.16);
}

.product-tooltip-title,
.product-tooltip-row {
    display: block;
}

.product-tooltip-title {
    margin-bottom: 0.45rem;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.product-tooltip-row {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.product-tooltip-row + .product-tooltip-row {
    margin-top: 0.25rem;
}

.product-tooltip-row > span {
    color: #6c757d;
}

.product-tooltip-row > strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.client-chat-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.client-chat-layout {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
}

.client-settings-panel {
    flex: 0 0 auto;
    padding: 0.75rem;
}

.client-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.client-settings-label {
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
}

.client-chat-sidebar,
.client-chat-workspace {
    min-height: 0;
}

.client-chat-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.client-chat-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.client-chat-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.client-chat-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: stretch;
    width: 100%;
    min-height: 4rem;
    min-width: 0;
    margin-bottom: 0.5rem;
}

.client-chat-list-select,
.client-chat-archive {
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
}

.client-chat-list-select {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    text-align: left;
    color: #212529;
}

.client-chat-archive {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    color: #6c757d;
}

.client-chat-list-item:hover .client-chat-list-select,
.client-chat-list-item.active .client-chat-list-select {
    color: #084298;
    background: #e7f1ff;
    border-color: #9ec5fe;
}

.client-chat-archive:hover {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.client-trash-icon {
    width: 1rem;
    height: 1rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z'/%3E%3Cpath d='M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1 0-2H5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1h2.5a1 1 0 0 1 1 1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z'/%3E%3Cpath d='M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1 0-2H5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1h2.5a1 1 0 0 1 1 1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.client-chat-list-title,
.client-chat-list-meta {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-chat-list-title {
    font-weight: 600;
}

.client-chat-list-meta {
    color: #6c757d;
    font-size: 0.75rem;
}

.client-chat-workspace {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.client-chat-workspace-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.client-chat-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.client-chat-bottom {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    overflow: visible;
    padding: 0.75rem;
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.client-chat-bottom-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.client-diagnostics {
    max-height: 9.5rem;
    overflow: auto;
    padding: 0.45rem 0.55rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    line-height: 1.2;
}

.client-diagnostics-top {
    max-height: clamp(6rem, 19vh, 11rem);
    overflow: auto;
}

.client-diagnostics-header,
.client-diagnostics-grid,
.client-diagnostic-tags {
    min-width: 0;
}

.client-diagnostics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.client-diagnostics-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.client-diagnostics-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.85rem;
    row-gap: 0.25rem;
}

.client-diagnostics-grid > div,
.client-diagnostics-query {
    min-width: 0;
}

.client-diagnostics-grid > div {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    max-width: 100%;
}

.diagnostic-label,
.client-diagnostics-grid > div > span,
.client-diagnostics-query > span {
    display: inline-flex;
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 0.68rem;
    line-height: 1.2;
}

.diagnostic-label {
    align-items: center;
    gap: 0.15rem;
}

.client-diagnostics-grid > div > strong,
.client-diagnostics-query > strong {
    display: inline;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
    line-height: 1.2;
}

.client-diagnostics-query {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.client-diagnostics-query > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-diagnostic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.35rem;
}

.client-products-compact-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.client-products-panel {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

.client-meta-query {
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-chat-composer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: stretch;
}

.client-chat-send {
    min-width: 8rem;
}

.client-product-carousel-shell {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    gap: 0.35rem;
    align-items: stretch;
    min-width: 0;
}

.client-product-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-height: 100%;
    padding: 0;
    color: #495057;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1.35rem;
    line-height: 1;
}

.client-product-page-button:hover:not(:disabled) {
    color: #084298;
    background: #e7f1ff;
    border-color: #9ec5fe;
}

.client-product-page-button:disabled {
    color: #adb5bd;
    background: #f8f9fa;
    cursor: not-allowed;
}

.client-product-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    gap: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.25rem;
}

.client-product-carousel[aria-busy="true"] {
    opacity: 0.72;
}

.client-product-carousel-compact {
    grid-auto-columns: minmax(78px, 92px);
    gap: 0.4rem;
}

.client-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.client-product-card:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(37, 140, 251, 0.25);
}

.client-product-info {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #495057;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ced4da;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.client-product-media {
    aspect-ratio: 4 / 3;
    background: #f1f3f5;
}

.client-product-media img,
.client-product-placeholder {
    width: 100%;
    height: 100%;
}

.client-product-media img {
    display: block;
    object-fit: cover;
}

.client-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
}

.client-product-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem;
}

.client-product-title {
    display: -webkit-box;
    min-height: 3rem;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.client-product-price {
    font-weight: 700;
}

.client-product-carousel-compact .client-product-card {
    border-radius: 6px;
}

.client-product-carousel-compact .client-product-media {
    aspect-ratio: 1;
}

.client-product-carousel-compact .client-product-body {
    gap: 0.15rem;
    padding: 0.35rem;
}

.client-product-carousel-compact .client-product-title {
    min-height: 1.9rem;
    font-size: 0.72rem;
    line-height: 1.25;
}

.client-product-carousel-compact .client-product-price {
    font-size: 0.72rem;
    line-height: 1.2;
}

.client-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.client-chat-row {
    display: flex;
    min-width: 0;
    margin-bottom: 0.75rem;
}

.client-chat-row-user {
    justify-content: flex-end;
}

.client-chat-row-assistant {
    justify-content: flex-start;
}

.client-chat-bubble {
    max-width: min(42rem, 86%);
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

.client-chat-row-user .client-chat-bubble {
    color: #fff;
    background: #1b6ec2;
    border-color: #1861ac;
}

.client-chat-author,
.client-chat-time {
    font-size: 0.75rem;
}

.client-chat-author {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.client-chat-time {
    margin-top: 0.4rem;
    opacity: 0.75;
}

.client-chat-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (min-width: 641px) {
    .client-chat-page {
        height: calc(100vh - 7rem);
        overflow: hidden;
    }
}

@media (max-width: 640.98px) {
    .client-chat-layout {
        flex: 0 0 auto;
        grid-template-columns: 1fr;
    }

    .client-chat-sidebar {
        height: auto;
        max-height: 18rem;
    }

    .client-chat-workspace {
        height: 34rem;
    }

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

    .client-chat-send {
        width: 100%;
    }

    .client-chat-bubble {
        max-width: 94%;
    }
}

@media (min-width: 1200px) {
    .sticky-actions {
        position: sticky;
    }
}

.analyze-source-tabs .nav-link {
    color: #495057;
}

.analyze-source-tabs .nav-link.active {
    font-weight: 600;
}

.analyze-field + .analyze-field {
    margin-top: 1rem;
}

.analyze-field-label {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.analyze-hint {
    margin-bottom: 0.85rem;
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.4;
}

.file-chip-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
}

.file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.82rem;
}

.file-chip-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-chip-size {
    flex: 0 0 auto;
    color: #6c757d;
}

.result-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.8rem;
    min-width: 6.5rem;
}

.result-stat-label {
    color: #6c757d;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.result-stat-value {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.result-section + .result-section {
    margin-top: 1.25rem;
}

.result-section-title {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.tag-group + .tag-group {
    margin-top: 0.75rem;
}

.tag-group-label {
    margin-bottom: 0.3rem;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-group-empty .tag-group-label {
    margin-bottom: 0;
}

.image-result-card {
    padding: 0.85rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.image-result-card + .image-result-card {
    margin-top: 0.75rem;
}

.image-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.image-result-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
