:root {
    --dcb-primary: #0073aa;
    --dcb-primary-light: #e8f4fd;
    --dcb-header-text: #ffffff;
    --dcb-bg: #ffffff;
    --dcb-user-msg: #0073aa;
    --dcb-user-msg-text: #ffffff;
    --dcb-bot-msg: #f4f6f8;
    --dcb-bot-msg-text: #1a1a1a;
    --dcb-text-light: #65676b;
    --dcb-border: #e4e6eb;
    --dcb-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
    --dcb-radius: 20px;
    --dcb-toggle-size: 60px;
    --dcb-link: #0073aa;
    --dcb-body-size: 14px;
    --dcb-h3-size: 16px;
    --dcb-h4-size: 15px;
    --dcb-sources-size: 14px;
}

/* Box-Sizing */
#data-chatbot-root,
#data-chatbot-root *,
#data-chatbot-root *::before,
#data-chatbot-root *::after {
    box-sizing: border-box;
}

#data-chatbot-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Toggle Button */
.dcb-toggle {
    position: relative;
    width: var(--dcb-toggle-size);
    height: var(--dcb-toggle-size);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dcb-primary), color-mix(in srgb, var(--dcb-primary), #000 15%));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 115, 170, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
    animation: dcb-attention 3s ease-in-out 2s 3;
}

@keyframes dcb-attention {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 115, 170, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 12px rgba(0, 115, 170, 0); }
}

.dcb-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.dcb-toggle:focus-visible {
    outline: 3px solid var(--dcb-primary);
    outline-offset: 3px;
}

.dcb-toggle:active {
    transform: scale(0.92);
}

.dcb-toggle svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.dcb-toggle img {
    border-radius: 50%;
}

.dcb-toggle.dcb-open {
    animation: none;
}

.dcb-toggle.dcb-open svg {
    transform: rotate(90deg);
}

/* Chat Window */
.dcb-window {
    position: absolute;
    bottom: calc(var(--dcb-toggle-size) + 16px);
    right: 0;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 560px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    background: var(--dcb-bg);
    border-radius: var(--dcb-radius);
    box-shadow: var(--dcb-shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--dcb-bot-msg-text);
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dcb-window.dcb-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.dcb-header {
    background: linear-gradient(135deg, var(--dcb-primary), color-mix(in srgb, var(--dcb-primary), #000 12%));
    color: var(--dcb-header-text);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
}

.dcb-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.dcb-header-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

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

.dcb-header-avatar svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.dcb-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 32px;
    min-height: 32px;
}

.dcb-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.dcb-close:active {
    background: rgba(255, 255, 255, 0.25);
}

.dcb-header-info {
    flex: 1;
    min-width: 0;
}

.dcb-header-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.dcb-header-status {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dcb-header-status::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

/* Messages Container */
.dcb-messages {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(180deg, #f8f9fb 0%, var(--dcb-bg) 60px);
}

.dcb-messages::-webkit-scrollbar {
    width: 5px;
}

.dcb-messages::-webkit-scrollbar-track {
    background: transparent;
}

.dcb-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

.dcb-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Message Bubbles */
.dcb-message {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 18px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    animation: dcb-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 14px;
    line-height: 1.55;
}

@keyframes dcb-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dcb-message-bot {
    background: var(--dcb-bot-msg);
    color: var(--dcb-bot-msg-text);
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dcb-message-user {
    background: linear-gradient(135deg, var(--dcb-user-msg), color-mix(in srgb, var(--dcb-user-msg), #000 10%));
    color: var(--dcb-user-msg-text);
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Bot message content styling */
.dcb-message-bot a {
    color: var(--dcb-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 115, 170, 0.3);
    transition: border-color 0.15s ease;
    word-break: break-all;
}

.dcb-message-bot a:hover {
    border-bottom-color: var(--dcb-primary);
}

.dcb-message-bot ul,
.dcb-message-bot ol {
    margin: 6px 0 6px 12px;
    padding-left: 24px;
    list-style-position: outside;
}

.dcb-message-bot ul {
    list-style-type: disc;
}

.dcb-message-bot ol {
    list-style-type: decimal;
}

.dcb-message-bot li {
    margin-bottom: 2px;
    display: list-item;
}

.dcb-message-bot p {
    margin: 4px 0;
}

.dcb-message-bot p:first-child {
    margin-top: 0;
}

.dcb-message-bot p:last-child {
    margin-bottom: 0;
}

/* Sub-Section-Headlines in Bot-Antworten */
.dcb-message-bot h3,
.dcb-message-bot h4 {
    margin: 14px 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.dcb-message-bot h4 {
    font-size: 14px;
}

.dcb-message-bot h3:first-child,
.dcb-message-bot h4:first-child {
    margin-top: 0;
}

/* Zitate / Beispiel-Boxen */
.dcb-message-bot blockquote {
    margin: 8px 0 8px 4px;
    padding: 8px 12px;
    border-left: 3px solid var(--dcb-primary);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

.dcb-message-bot blockquote p {
    margin: 0;
}

/* Verschachtelte Listen */
.dcb-message-bot ul ul,
.dcb-message-bot ul ol,
.dcb-message-bot ol ul,
.dcb-message-bot ol ol {
    margin: 2px 0 4px 0;
    padding-left: 20px;
}

/* ============================================================
   Theme-Override-Schutz für Bot-Antworten
   ------------------------------------------------------------
   Manche Host-Themes (z.B. mein-steuer-pilot.de) setzen aggressiv
   list-style: none, font-weight: normal etc. auf semantische Tags.
   Hier zwingen wir die korrekte Darstellung mit ID-Spezifität +
   !important durch, damit Bullets sichtbar und Headlines fett
   bleiben - egal was das Theme tut.
   ============================================================ */

/* Bubble setzt Basis-Schriftgröße - alle inneren Tags erben sie.
   Verhindert dass Theme-Regeln wie `p { font-size: 18px }` durchschlagen
   und die Hierarchie invertieren. */
#dcb-window .dcb-message-bot,
#dcb-window .dcb-message-bot p,
#dcb-window .dcb-message-bot li,
#dcb-window .dcb-message-bot ul,
#dcb-window .dcb-message-bot ol,
#dcb-window .dcb-message-bot blockquote,
#dcb-window .dcb-message-bot blockquote p {
    font-size: var(--dcb-body-size, 14px) !important;
    line-height: 1.55 !important;
}

#dcb-window .dcb-message-bot a {
    color: var(--dcb-link, var(--dcb-primary)) !important;
}

#dcb-window .dcb-message-bot ul,
#dcb-window .dcb-message-bot ol {
    list-style-position: outside !important;
    padding-left: 24px !important;
    margin: 6px 0 6px 12px !important;
}

#dcb-window .dcb-message-bot ul {
    list-style-type: disc !important;
}

#dcb-window .dcb-message-bot ol {
    list-style-type: decimal !important;
}

#dcb-window .dcb-message-bot li {
    display: list-item !important;
    list-style: inherit !important;
    margin-bottom: 2px !important;
}

/* Headlines: deutlich größer als Bubble-Text für klare Hierarchie */
#dcb-window .dcb-message-bot h3 {
    font-size: var(--dcb-h3-size, 16px) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 14px 0 4px !important;
    color: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

#dcb-window .dcb-message-bot h4 {
    font-size: var(--dcb-h4-size, 15px) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 12px 0 4px !important;
    color: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

#dcb-window .dcb-message-bot h3:first-child,
#dcb-window .dcb-message-bot h4:first-child {
    margin-top: 0 !important;
}

#dcb-window .dcb-message-bot p {
    margin: 4px 0 !important;
}

#dcb-window .dcb-message-bot strong,
#dcb-window .dcb-message-bot b {
    font-weight: 700 !important;
}

/* Empfehlungs-Footer (Backend liefert <p class="chatbot-sources">):
   visuell als Footer abgesetzt - dezente Trennlinie + zusätzlicher Abstand
   zur vorherigen Section, plus etwas kleineres Schriftbild. */
#dcb-window .dcb-message-bot .chatbot-sources {
    margin-top: 14px !important;
    padding-top: 10px !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
    list-style: none !important;
    border-top: 1px solid color-mix(in srgb, var(--dcb-text), transparent 88%) !important;
    font-size: var(--dcb-sources-size, 14px) !important;
    color: color-mix(in srgb, var(--dcb-text), transparent 25%) !important;
}

#dcb-window .dcb-message-bot .chatbot-sources a {
    color: var(--dcb-link, var(--dcb-primary)) !important;
}

.dcb-message-bot .chatbot-sources a {
    color: var(--dcb-primary);
}

.dcb-message-bot strong,
.dcb-message-bot b {
    font-weight: 600;
}

.dcb-message-bot img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 4px 0;
}

/* Message wrapper & timestamp */
.dcb-message-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 85%;
}

.dcb-message-wrapper-user {
    align-self: flex-end;
}

.dcb-message-wrapper-bot {
    align-self: flex-start;
}

.dcb-message-time {
    font-size: 11px;
    color: var(--dcb-text-light);
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dcb-message-time-user {
    text-align: right;
}

.dcb-message-wrapper:hover .dcb-message-time {
    opacity: 1;
}

/* Resume notice */
.dcb-resume-notice {
    align-self: center;
    font-size: 12px;
    color: var(--dcb-text-light);
    background: var(--dcb-bot-msg);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dcb-resume-notice svg {
    fill: var(--dcb-text-light);
    flex-shrink: 0;
}

/* Error & retry */
.dcb-message-error {
    border-left: 3px solid #c0392b;
}

.dcb-retry-btn {
    background: none;
    border: 1px solid var(--dcb-border);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--dcb-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 4px;
    -webkit-tap-highlight-color: transparent;
}

.dcb-retry-btn svg {
    fill: currentColor;
}

.dcb-retry-btn:hover {
    background: var(--dcb-primary-light);
    border-color: var(--dcb-primary);
}

/* Unread badge */
.dcb-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    animation: dcb-badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dcb-badge.dcb-badge-visible {
    display: flex;
}

@keyframes dcb-badge-pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ===== UI Blocks ===== */
.dcb-message-wrapper.dcb-has-ui {
    max-width: 100%;
}

.dcb-ui-blocks {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.dcb-ui-block {
    animation: dcb-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dcb-ui-error {
    background: rgba(192, 57, 43, 0.08);
    border: 1px dashed #c0392b;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #c0392b;
}

/* Text block */
.dcb-ui-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--dcb-bot-msg-text);
}

.dcb-ui-text a {
    color: var(--dcb-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 115, 170, 0.3);
}

/* Metrics block */
.dcb-ui-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dcb-ui-metric {
    flex: 1;
    min-width: 100px;
    background: var(--dcb-bot-msg);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--dcb-border);
}

.dcb-ui-metric-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--dcb-bot-msg-text);
    line-height: 1.2;
}

.dcb-ui-metric-label {
    font-size: 12px;
    color: var(--dcb-text-light);
    margin-top: 4px;
}

.dcb-ui-metric-hint {
    font-size: 11px;
    color: var(--dcb-text-light);
    margin-top: 2px;
    opacity: 0.8;
}

/* Card block */
.dcb-ui-card {
    border: 1px solid var(--dcb-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--dcb-bg);
}

.dcb-ui-card-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--dcb-border);
}

.dcb-ui-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dcb-bot-msg-text);
}

.dcb-ui-card-subtitle {
    font-size: 12px;
    color: var(--dcb-text-light);
    margin-top: 2px;
}

.dcb-ui-card-section {
    padding: 10px 16px;
}

.dcb-ui-card-section + .dcb-ui-card-section {
    border-top: 1px solid var(--dcb-border);
}

.dcb-ui-card-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dcb-text-light);
    margin-bottom: 6px;
}

.dcb-ui-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    gap: 12px;
}

.dcb-ui-card-label {
    font-size: 13px;
    color: var(--dcb-bot-msg-text);
}

.dcb-ui-card-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dcb-bot-msg-text);
    text-align: right;
    flex-shrink: 0;
}

.dcb-ui-card-hint {
    font-size: 11px;
    color: var(--dcb-text-light);
    text-align: right;
    margin-top: -2px;
    padding-bottom: 2px;
}

/* Table block */
.dcb-ui-table-wrap {
    border: 1px solid var(--dcb-border);
    border-radius: 12px;
    overflow-x: auto;
}

.dcb-ui-table-caption {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px 6px;
    color: var(--dcb-bot-msg-text);
}

.dcb-ui-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dcb-ui-table th {
    background: var(--dcb-bot-msg);
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
    color: var(--dcb-bot-msg-text);
    white-space: nowrap;
}

.dcb-ui-table td {
    padding: 8px 12px;
    border-top: 1px solid var(--dcb-border);
    color: var(--dcb-bot-msg-text);
}

.dcb-ui-table tr:hover td {
    background: var(--dcb-primary-light);
}

/* Callout block */
.dcb-ui-callout {
    border-radius: 12px;
    padding: 12px 16px;
    border-left: 4px solid;
    font-size: 13px;
    line-height: 1.5;
}

.dcb-ui-callout--info {
    border-color: var(--dcb-primary);
    background: var(--dcb-primary-light);
    color: var(--dcb-bot-msg-text);
}

.dcb-ui-callout--warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.dcb-ui-callout--note {
    border-color: var(--dcb-text-light);
    background: var(--dcb-bot-msg);
}

.dcb-ui-callout--success {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
}

.dcb-ui-callout-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.dcb-ui-callout-body {
    margin-bottom: 4px;
}

.dcb-ui-callout-list {
    margin: 4px 0 0;
    padding-left: 18px;
}

.dcb-ui-callout-list li {
    margin-bottom: 2px;
}

/* Form block */
.dcb-ui-form {
    border: 1px solid var(--dcb-border);
    border-radius: 14px;
    padding: 16px;
    background: var(--dcb-bg);
}

.dcb-ui-form-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dcb-bot-msg-text);
    margin-bottom: 4px;
}

.dcb-ui-form-subtitle {
    font-size: 13px;
    color: var(--dcb-text-light);
    margin-bottom: 12px;
}

.dcb-ui-form-group {
    border: none;
    padding: 0;
    margin: 0 0 12px;
}

.dcb-ui-form-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dcb-bot-msg-text);
    padding: 0;
    margin-bottom: 8px;
}

.dcb-ui-form-field {
    margin-bottom: 10px;
}

.dcb-ui-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--dcb-bot-msg-text);
    margin-bottom: 4px;
}

.dcb-ui-required {
    color: #c0392b;
}

.dcb-ui-form-input {
    width: 100%;
    border: 1.5px solid var(--dcb-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--dcb-bot-msg-text);
    background: var(--dcb-bg);
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.dcb-ui-form-input:focus {
    outline: none;
    border-color: var(--dcb-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dcb-ui-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dcb-bot-msg-text);
    cursor: pointer;
}

.dcb-ui-form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--dcb-primary);
}

.dcb-ui-form-actions {
    margin-top: 14px;
}

.dcb-ui-form-submit {
    background: var(--dcb-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.dcb-ui-form-submit:hover {
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.dcb-ui-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.dcb-ui-form-error {
    margin-top: 8px;
    color: #c0392b;
    font-size: 12px;
}

.dcb-ui-form-submitted {
    opacity: 0.7;
}

.dcb-ui-form-submitted .dcb-ui-form-input,
.dcb-ui-form-submitted .dcb-ui-form-checkbox input {
    background: var(--dcb-bot-msg);
}

/* Opener Suggestions */
.dcb-suggestions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
}

.dcb-suggestion {
    background: var(--dcb-bg);
    color: var(--dcb-primary);
    border: 1.5px solid color-mix(in srgb, var(--dcb-primary), transparent 60%);
    border-radius: 14px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    line-height: 1.4;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dcb-suggestion:hover {
    background: var(--dcb-primary);
    color: #fff;
    border-color: var(--dcb-primary);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
    transform: translateY(-1px);
}

.dcb-suggestion:active {
    transform: translateY(0);
    box-shadow: none;
}

.dcb-suggestion:focus-visible {
    outline: 2px solid var(--dcb-primary);
    outline-offset: 2px;
}

/* Typing Indicator */
.dcb-typing {
    align-self: flex-start;
    background: var(--dcb-bot-msg);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    padding: 14px 20px;
    display: flex;
    gap: 5px;
    animation: dcb-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dcb-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--dcb-text-light);
    border-radius: 50%;
    animation: dcb-bounce 1.4s infinite ease-in-out both;
}

.dcb-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.dcb-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.dcb-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes dcb-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Feedback */
.dcb-feedback {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    margin-top: 4px;
    margin-left: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.dcb-feedback-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dcb-text-light);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    opacity: 0.5;
}

.dcb-feedback-btn:hover,
.dcb-feedback-btn:active {
    opacity: 1;
    background: var(--dcb-primary-light);
    border-color: color-mix(in srgb, var(--dcb-primary), transparent 70%);
    color: var(--dcb-primary);
}

.dcb-feedback-btn:focus-visible {
    outline: 2px solid var(--dcb-primary);
    outline-offset: 2px;
}

.dcb-feedback-done {
    font-size: 12px;
    color: var(--dcb-text-light);
    padding: 6px 0;
    line-height: 1;
}

.dcb-feedback-form {
    width: 100%;
    border: 1px solid var(--dcb-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--dcb-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    animation: dcb-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dcb-feedback-form-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--dcb-bot-msg-text);
}

.dcb-feedback-form-text {
    width: 100%;
    min-height: 44px;
    border: 1.5px solid var(--dcb-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    color: var(--dcb-bot-msg-text);
    background: var(--dcb-bg);
    transition: border-color 0.2s ease;
}

.dcb-feedback-form-text:focus {
    outline: none;
    border-color: var(--dcb-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dcb-feedback-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.dcb-feedback-submit,
.dcb-feedback-cancel {
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.dcb-feedback-cancel {
    background: var(--dcb-bot-msg);
    color: var(--dcb-bot-msg-text);
}

.dcb-feedback-cancel:hover {
    background: var(--dcb-border);
}

.dcb-feedback-submit {
    background: var(--dcb-primary);
    color: #fff;
}

.dcb-feedback-submit:hover {
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.dcb-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.dcb-feedback-error {
    margin-top: 6px;
    color: #c0392b;
    font-size: 12px;
}

/* Reasoning Trail */
.dcb-reasoning {
    align-self: flex-start;
    background: var(--dcb-bot-msg);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--dcb-text-light);
    animation: dcb-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: opacity 0.5s ease;
}

.dcb-reasoning-done {
    opacity: 0.4;
}

.dcb-reasoning-step {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.dcb-reasoning-step.done {
    color: color-mix(in srgb, var(--dcb-text-light), transparent 30%);
}

.dcb-reasoning-step.done .dcb-status-dot {
    background: #4ade80;
    animation: none;
}

.dcb-reasoning-step.done .dcb-status-dot svg {
    fill: #fff;
}

.dcb-status-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: var(--dcb-primary);
    border-radius: 50%;
    animation: dcb-pulse 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes dcb-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.1); }
}

.dcb-ellipsis::after {
    content: '';
    animation: dcb-dots 1.5s steps(4, end) infinite;
}

.dcb-reasoning-timer {
    margin-left: auto;
    font-size: 11px;
    color: color-mix(in srgb, var(--dcb-text-light), transparent 40%);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@keyframes dcb-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Streaming Cursor */
.dcb-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--dcb-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    border-radius: 1px;
    animation: dcb-blink 0.8s ease-in-out infinite;
}

@keyframes dcb-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Input Area */
.dcb-input-area {
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--dcb-border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
    background: var(--dcb-bg);
}

.dcb-input {
    flex: 1;
    border: 1.5px solid var(--dcb-border);
    border-radius: 22px;
    padding: 10px 18px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    min-height: 44px;
    line-height: 1.4;
    background: var(--dcb-bot-msg);
    color: var(--dcb-bot-msg-text);
    -webkit-appearance: none;
    appearance: none;
}

.dcb-input::placeholder {
    color: var(--dcb-text-light);
}

.dcb-input:focus {
    border-color: var(--dcb-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: var(--dcb-bg);
}

.dcb-send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dcb-primary), color-mix(in srgb, var(--dcb-primary), #000 15%));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.25);
}

.dcb-send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.dcb-send:not(:disabled):hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 115, 170, 0.35);
}

.dcb-send:not(:disabled):active {
    transform: scale(0.92);
}

.dcb-send:focus-visible {
    outline: 3px solid var(--dcb-primary);
    outline-offset: 3px;
}

.dcb-send svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* ===== Content & Chat layout ===== */
.dcb-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.dcb-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ===== Sidebar ===== */
.dcb-sidebar {
    width: 260px;
    border-right: 1px solid var(--dcb-border);
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--dcb-bg);
}

.dcb-window.dcb-expanded .dcb-sidebar {
    display: flex;
}

.dcb-sidebar-header {
    padding: 12px;
    border-bottom: 1px solid var(--dcb-border);
    flex-shrink: 0;
}

.dcb-new-chat {
    width: 100%;
    padding: 10px 16px;
    border: 1.5px dashed var(--dcb-border);
    border-radius: 12px;
    background: none;
    color: var(--dcb-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.dcb-new-chat svg {
    fill: currentColor;
}

.dcb-new-chat:hover {
    background: var(--dcb-primary-light);
    border-color: var(--dcb-primary);
}

.dcb-conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.dcb-conversation-list::-webkit-scrollbar {
    width: 4px;
}

.dcb-conversation-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.dcb-conv-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dcb-text-light);
    padding: 10px 10px 4px;
}

.dcb-conv-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
    position: relative;
    font-size: 13px;
    color: var(--dcb-bot-msg-text);
}

.dcb-conv-item:hover {
    background: var(--dcb-primary-light);
}

.dcb-conv-item.dcb-conv-active {
    background: var(--dcb-primary-light);
    font-weight: 500;
}

.dcb-conv-icon {
    flex-shrink: 0;
    fill: var(--dcb-text-light);
}

.dcb-conv-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dcb-conv-delete {
    display: none;
    background: none;
    border: none;
    color: var(--dcb-text-light);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.dcb-conv-item:hover .dcb-conv-delete {
    display: block;
}

.dcb-conv-delete:hover {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

.dcb-conv-empty,
.dcb-conv-loading {
    text-align: center;
    color: var(--dcb-text-light);
    font-size: 13px;
    padding: 24px 16px;
}

/* ===== Expand / Collapse button ===== */
.dcb-expand {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 32px;
    min-height: 32px;
}

.dcb-expand:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Search bar ===== */
.dcb-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--dcb-bg);
    border-bottom: 1px solid var(--dcb-border);
    flex-shrink: 0;
    animation: dcb-fade-in 0.2s ease;
}

.dcb-search-input {
    flex: 1;
    border: 1.5px solid var(--dcb-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--dcb-bot-msg-text);
    background: var(--dcb-bot-msg);
    outline: none;
    -webkit-appearance: none;
}

.dcb-search-input:focus {
    border-color: var(--dcb-primary);
}

.dcb-search-count {
    font-size: 12px;
    color: var(--dcb-text-light);
    white-space: nowrap;
}

.dcb-search-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--dcb-text-light);
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}

.dcb-search-close:hover {
    color: var(--dcb-bot-msg-text);
}

.dcb-search-nav {
    background: none;
    border: 1px solid var(--dcb-border);
    border-radius: 4px;
    color: var(--dcb-bot-msg-text);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1;
    transition: all 0.15s ease;
}

.dcb-search-nav:hover {
    background: var(--dcb-primary-light);
    border-color: var(--dcb-primary);
}

.dcb-highlight {
    background: rgba(255, 213, 0, 0.3);
    border-radius: 2px;
    padding: 0 1px;
}

.dcb-highlight-active {
    background: rgba(255, 165, 0, 0.6);
    outline: 2px solid rgba(255, 165, 0, 0.8);
    border-radius: 2px;
}

/* ===== Sidebar search ===== */
.dcb-sidebar-search {
    width: 100%;
    border: 1.5px solid var(--dcb-border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--dcb-bot-msg-text);
    background: var(--dcb-bot-msg);
    margin-top: 8px;
    outline: none;
    -webkit-appearance: none;
}

.dcb-sidebar-search:focus {
    border-color: var(--dcb-primary);
}

/* ===== Editable user messages ===== */
.dcb-message-user {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.dcb-message-user:hover {
    opacity: 0.85;
}

.dcb-message-user::after {
    content: '\270E';
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.dcb-message-wrapper-user {
    position: relative;
}

.dcb-message-wrapper-user:hover .dcb-message-user::after {
    opacity: 0.6;
}

/* ===== Header action buttons ===== */
.dcb-header-btn,
.dcb-fullscreen-btn {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 28px;
    min-height: 28px;
    flex-shrink: 0;
}

.dcb-header-btn:hover,
.dcb-fullscreen-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Fullscreen Window ===== */
.dcb-window.dcb-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    z-index: 100001;
}

.dcb-window.dcb-fullscreen .dcb-sidebar {
    width: 300px;
}

.dcb-window.dcb-fullscreen .dcb-header {
    padding: 16px 24px;
}

.dcb-window.dcb-fullscreen .dcb-messages {
    padding: 24px 12%;
}

.dcb-window.dcb-fullscreen .dcb-input-area {
    padding: 16px 12%;
}

/* Fullscreen on smaller screens — less padding */
@media (max-width: 1024px) {
    .dcb-window.dcb-fullscreen .dcb-messages {
        padding: 20px 24px;
    }

    .dcb-window.dcb-fullscreen .dcb-input-area {
        padding: 14px 24px;
    }
}

/* ===== Expanded Window ===== */
.dcb-window.dcb-expanded {
    width: 800px;
    height: 620px;
}

/* ===== Mobile sidebar toggle (base: hidden, shown on mobile) ===== */
.dcb-sidebar-toggle-mobile {
    display: none;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    -webkit-tap-highlight-color: transparent;
}

.dcb-sidebar-toggle-mobile:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Sidebar overlay ===== */
.dcb-sidebar-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9;
}

.dcb-sidebar-overlay.dcb-visible {
    display: block;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 768px) {
    #data-chatbot-root {
        bottom: 16px;
        right: 16px;
    }

    .dcb-window {
        width: 360px;
        max-width: calc(100vw - 32px);
        height: 500px;
    }
}

/* ===== Expanded on Tablet ===== */
@media (max-width: 768px) {
    .dcb-window.dcb-expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        max-height: 100dvh;
        border-radius: 0;
        z-index: 100000;
    }

    .dcb-window.dcb-expanded .dcb-sidebar {
        width: 220px;
    }

    /* UI Blocks tablet */
    .dcb-ui-metrics {
        gap: 6px;
    }

    .dcb-ui-metric-value {
        font-size: 18px;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 480px) {
    #data-chatbot-root {
        bottom: 12px;
        right: 12px;
    }

    .dcb-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        max-height: 100dvh;
        border-radius: 0;
        z-index: 100000;
    }

    .dcb-header {
        padding: 14px 16px;
        padding-top: max(14px, env(safe-area-inset-top));
    }

    .dcb-messages {
        padding: 12px;
    }

    .dcb-message {
        max-width: 90%;
    }

    .dcb-input-area {
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .dcb-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 260px !important;
        z-index: 10;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        background: var(--dcb-bg);
    }

    .dcb-expand,
    .dcb-fullscreen-btn,
    #dcb-fullscreen {
        display: none;
    }

    .dcb-sidebar-toggle-mobile {
        display: flex;
    }

    /* Compact header buttons on mobile */
    .dcb-header-btn {
        min-width: 26px;
        min-height: 26px;
        padding: 3px;
    }

    .dcb-header-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Search bar mobile */
    .dcb-search-bar {
        padding: 6px 12px;
        gap: 6px;
    }

    .dcb-search-input {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* UI Blocks mobile */
    .dcb-ui-metrics {
        flex-direction: column;
    }

    .dcb-ui-metric {
        min-width: unset;
    }

    .dcb-ui-table-wrap {
        margin-left: -4px;
        margin-right: -4px;
    }

    .dcb-ui-table {
        font-size: 12px;
    }

    .dcb-ui-table th,
    .dcb-ui-table td {
        padding: 6px 8px;
    }

    .dcb-ui-card-row {
        flex-direction: column;
        gap: 2px;
    }

    .dcb-ui-card-value {
        text-align: left;
    }

    .dcb-ui-form {
        padding: 12px;
    }

    .dcb-ui-form-input {
        font-size: 16px; /* prevents iOS zoom */
    }

    /* Message edit icon - always visible on mobile (no hover) */
    .dcb-message-wrapper-user .dcb-message-user::after {
        opacity: 0.4;
    }
}

/* ===== Landscape mobile ===== */
@media (max-height: 500px) and (max-width: 900px) {
    .dcb-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        z-index: 100000;
    }

    .dcb-header {
        padding: 8px 16px;
    }

    .dcb-messages {
        padding: 8px 12px;
    }

    .dcb-input-area {
        padding: 8px 12px;
    }

    .dcb-search-bar {
        padding: 4px 12px;
    }

    .dcb-fullscreen-btn,
    #dcb-fullscreen {
        display: none;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .dcb-window {
        transition: opacity 0.1s ease;
        transform: none;
    }

    .dcb-window.dcb-visible {
        transform: none;
    }

    .dcb-message {
        animation: none;
    }

    .dcb-typing-dot {
        animation: none;
        opacity: 0.6;
    }

    .dcb-cursor {
        animation: none;
        opacity: 0.7;
    }

    .dcb-toggle {
        animation: none;
    }

    .dcb-toggle:hover {
        transform: none;
    }

    .dcb-status-dot {
        animation: none;
        opacity: 0.8;
    }
}
