.itfv3-lab {
    max-width: 1680px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    color: #0f172a;
    box-sizing: border-box;
}

.itfv3-lab *,
.itfv3-lab *::before,
.itfv3-lab *::after {
    box-sizing: border-box;
}

.itfv3-lab__header {
    margin-bottom: 20px;
}

.itfv3-lab__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.itfv3-lab__subtitle {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.itfv3-lab__toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: end !important;
    gap: 12px !important;
    margin: 0 0 20px !important;
    padding: 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

.itfv3-lab__field {
    display: grid !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100%;
}

.itfv3-lab__field > span {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.itfv3-lab__input,
.itfv3-lab__textarea,
.itfv3-lab__select,
.itfv3-lab select,
.itfv3-lab input,
.itfv3-lab textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.itfv3-lab__textarea {
    min-height: 110px !important;
    resize: vertical !important;
}

.itfv3-lab__input:focus,
.itfv3-lab__textarea:focus,
.itfv3-lab__select:focus,
.itfv3-lab select:focus,
.itfv3-lab input:focus,
.itfv3-lab textarea:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.itfv3-lab__button,
.itfv3-lab button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: 0.18s ease !important;
    box-shadow: none !important;
}

.itfv3-lab__button--primary,
.itfv3-lab [data-itfv3-lab-reload="1"] {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.itfv3-lab__button--primary:hover,
.itfv3-lab [data-itfv3-lab-reload="1"]:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.itfv3-lab__button--ghost,
.itfv3-lab [data-itfv3-lab-clear-selection="1"] {
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

.itfv3-lab__button--ghost:hover,
.itfv3-lab [data-itfv3-lab-clear-selection="1"]:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

.itfv3-lab__button[disabled],
.itfv3-lab button[disabled] {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

.itfv3-lab__status {
    margin: 0 0 20px !important;
    padding: 12px 14px !important;
    border: 1px solid #dcdcde !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.itfv3-lab__status[data-itfv3-lab-status-type="info"] {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.itfv3-lab__status[data-itfv3-lab-status-type="error"] {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.itfv3-lab__grid {
    display: grid !important;
    gap: 20px !important;
    align-items: start !important;
}

.itfv3-lab__grid--top {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 0 !important;
}

.itfv3-lab__grid--middle {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr) !important;
    margin-top: 20px !important;
}

.itfv3-lab__grid--bottom {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 20px !important;
}

.itfv3-lab__panel {
    min-width: 0;
    padding: 20px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden;
}

.itfv3-lab__panel-head {
    margin-bottom: 16px !important;
}

.itfv3-lab__panel-title {
    margin: 0 0 6px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.itfv3-lab__panel-text {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
}

.itfv3-lab__user-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
}

.itfv3-lab__user-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.itfv3-lab__user-meta {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    word-break: break-word;
}

.itfv3-lab__stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 12px !important;
}

.itfv3-lab__stat {
    min-width: 0;
    padding: 14px !important;
    border: 1px solid #dbeafe !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
}

.itfv3-lab__stat-label {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #64748b !important;
}

.itfv3-lab__stat-value {
    margin-top: 8px !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.itfv3-lab__basket-summary {
    display: grid;
    gap: 14px;
}

.itfv3-lab__basket-counts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.itfv3-lab__basket-list {
    display: grid;
    gap: 12px;
}

.itfv3-lab__basket-actions {
    margin-top: 14px;
}

.itfv3-lab__project {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
}

.itfv3-lab__project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.itfv3-lab__project-grid > * {
    min-width: 0;
}

.itfv3-lab__project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__project-help {
    padding: 10px 12px;
    border: 1px dashed #93c5fd;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 13px;
    line-height: 1.55;
    color: #1e3a8a;
}

.itfv3-lab [data-itfv3-lab-prompts="1"],
.itfv3-lab [data-itfv3-lab-conversations="1"] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.itfv3-lab__list-item {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 6px;
    min-width: 0;
    min-height: 132px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.itfv3-lab__list-title-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.itfv3-lab__list-title-wrap {
    display: grid;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__list-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

.itfv3-lab__list-text {
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.itfv3-lab__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    width: fit-content;
}

.itfv3-lab__check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.itfv3-lab__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.itfv3-lab__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.itfv3-lab__card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__card-action:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.itfv3-lab__card-action--primary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.itfv3-lab__card-action--danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.itfv3-lab p {
    color: #475569;
}

@media (max-width: 1580px) {
    .itfv3-lab [data-itfv3-lab-prompts="1"],
    .itfv3-lab [data-itfv3-lab-conversations="1"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .itfv3-lab__grid--top {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .itfv3-lab__grid--middle {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .itfv3-lab__project-grid,
    .itfv3-lab [data-itfv3-lab-prompts="1"],
    .itfv3-lab [data-itfv3-lab-conversations="1"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .itfv3-lab {
        padding: 18px 12px 28px;
    }

    .itfv3-lab__title {
        font-size: 24px;
    }

    .itfv3-lab__grid--top,
    .itfv3-lab__grid--middle,
    .itfv3-lab__grid--bottom,
    .itfv3-lab__basket-counts,
    .itfv3-lab__project-grid,
    .itfv3-lab [data-itfv3-lab-prompts="1"],
    .itfv3-lab [data-itfv3-lab-conversations="1"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .itfv3-lab__list-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .itfv3-lab__toolbar {
        gap: 10px !important;
    }

    .itfv3-lab__field {
        min-width: 100%;
    }
}

.itfv3-lab__toolbar {
    justify-content: flex-start !important;
}

.itfv3-lab__toolbar .itfv3-lab__field {
    width: auto !important;
    min-width: 240px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
}

.itfv3-lab__toolbar .itfv3-lab__select {
    width: 100% !important;
    max-width: 320px !important;
}

.itfv3-lab__toolbar [data-itfv3-lab-reload="1"] {
    flex: 0 0 auto !important;
    min-width: 110px !important;
}

.itfv3-lab__grid--middle {
    align-items: stretch !important;
}

.itfv3-lab__grid--middle > .itfv3-lab__panel {
    height: 100% !important;
}

@media (max-width: 782px) {
    .itfv3-lab__toolbar .itfv3-lab__field {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .itfv3-lab__toolbar .itfv3-lab__select {
        max-width: 100% !important;
    }
}

.itfv3-lab__toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: end !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.itfv3-lab__toolbar .itfv3-lab__field {
    width: auto !important;
    min-width: 220px !important;
    max-width: 300px !important;
    flex: 0 0 300px !important;
}

.itfv3-lab__toolbar [data-itfv3-lab-reload="1"] {
    flex: 0 0 auto !important;
    min-width: 110px !important;
}

.itfv3-lab__toolbar-user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 420px !important;
    margin-left: 8px !important;
}

.itfv3-lab__toolbar-user-label {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0;
    white-space: nowrap;
}

.itfv3-lab__toolbar-user-box {
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__toolbar-user-box .itfv3-lab__user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    min-height: 44px;
}

.itfv3-lab__toolbar-user-box .itfv3-lab__user-name {
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.itfv3-lab__toolbar-user-box .itfv3-lab__user-meta {
    font-size: 12px;
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itfv3-lab__toolbar-user-box .itfv3-lab__user-card > .itfv3-lab__user-meta:last-child {
    margin-left: auto;
    max-width: 42%;
    text-align: right;
}

.itfv3-lab__grid--top {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr) !important;
}

@media (max-width: 1180px) {
    .itfv3-lab__toolbar-user {
        flex: 1 1 100% !important;
        margin-left: 0 !important;
    }

    .itfv3-lab__toolbar-user-box .itfv3-lab__user-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .itfv3-lab__toolbar-user-box .itfv3-lab__user-card > .itfv3-lab__user-meta:last-child {
        margin-left: 0;
        max-width: 100%;
        text-align: left;
    }

    .itfv3-lab__grid--top {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 782px) {
    .itfv3-lab__toolbar .itfv3-lab__field {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .itfv3-lab__toolbar-user {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .itfv3-lab__toolbar-user-label {
        white-space: normal;
    }

    .itfv3-lab__toolbar-user-box {
        width: 100%;
    }

    .itfv3-lab__toolbar-user-box .itfv3-lab__user-card {
        display: grid;
        gap: 6px;
    }

    .itfv3-lab__toolbar-user-box .itfv3-lab__user-name,
    .itfv3-lab__toolbar-user-box .itfv3-lab__user-meta {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }
}

.itfv3-lab__grid--middle {
    align-items: start !important;
}

.itfv3-lab__grid--middle > .itfv3-lab__panel {
    height: auto !important;
    align-self: start !important;
}

.itfv3-lab__project .itfv3-lab__textarea {
    min-height: 88px !important;
}

.itfv3-lab__card,
.itfv3-lab__list-item {
    min-height: 120px !important;
}

/* ITFV3_LAB_SYNC_HEIGHT_START */
.itfv3-lab__grid--middle > .itfv3-lab__panel:last-child {
    min-height: 0 !important;
}

.itfv3-lab__grid--middle > .itfv3-lab__panel:last-child [data-itfv3-lab-prompts="1"] {
    min-height: 0 !important;
    overflow: auto !important;
    align-content: start !important;
    padding-right: 4px;
    scrollbar-width: thin;
}

@media (max-width: 1280px) {
    .itfv3-lab__grid--middle > .itfv3-lab__panel:last-child {
        height: auto !important;
    }

    .itfv3-lab__grid--middle > .itfv3-lab__panel:last-child [data-itfv3-lab-prompts="1"] {
        max-height: none !important;
        overflow: visible !important;
    }
}
/* ITFV3_LAB_SYNC_HEIGHT_END */

.itfv3-lab__project-list-block {
    display: grid !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
    padding: 16px !important;
    border: 1px solid #1f2937 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 24px rgba(2, 6, 23, 0.22) !important;
}

.itfv3-lab__project-list-head {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.itfv3-lab__project-list-title-wrap {
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
}

.itfv3-lab__project-list-title {
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    color: #e5e7eb !important;
}

.itfv3-lab__project-list-text {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #94a3b8 !important;
}

.itfv3-lab__project-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

.itfv3-lab__project-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.itfv3-lab__project-filters .itfv3-lab__button--ghost {
    background: #0b1220 !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

.itfv3-lab__project-filters .itfv3-lab__button--ghost:hover {
    background: #111827 !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}

.itfv3-lab__project-filters .itfv3-lab__button--ghost.is-active,
.itfv3-lab__project-filters .itfv3-lab__button--ghost[aria-pressed="true"] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

.itfv3-lab__project-list {
    display: grid !important;
    gap: 10px !important;
}

.itfv3-lab__project-list > p {
    margin: 0 !important;
    color: #94a3b8 !important;
}

.itfv3-lab__project-item {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
    text-align: left !important;
    padding: 14px 16px !important;
    border: 1px solid #334155 !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #0b1220 0%, #111827 100%) !important;
    color: #e5e7eb !important;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.18) !important;
}

.itfv3-lab__project-item:hover {
    border-color: #64748b !important;
    background: linear-gradient(180deg, #111827 0%, #172033 100%) !important;
    transform: translateY(-1px) !important;
}

.itfv3-lab__project-item.is-active,
.itfv3-lab__project-item[aria-pressed="true"] {
    border-color: #93c5fd !important;
    background: linear-gradient(180deg, #172554 0%, #0f172a 100%) !important;
    box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.35), 0 10px 24px rgba(2, 6, 23, 0.24) !important;
}

.itfv3-lab__project-item-top {
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
}

.itfv3-lab__project-item-title {
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    word-break: break-word !important;
}

.itfv3-lab__project-item-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #94a3b8 !important;
}

.itfv3-lab__project-list-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.itfv3-lab__project-list-actions .itfv3-lab__button--ghost {
    background: #0b1220 !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

.itfv3-lab__project-list-actions .itfv3-lab__button--ghost:hover {
    background: #111827 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

.itfv3-lab__project {
    border-color: #1f2937 !important;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
}

.itfv3-lab__project .itfv3-lab__field > span {
    color: #e5e7eb !important;
}

.itfv3-lab__project .itfv3-lab__input,
.itfv3-lab__project .itfv3-lab__textarea,
.itfv3-lab__project .itfv3-lab__select {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.itfv3-lab__project .itfv3-lab__input::placeholder,
.itfv3-lab__project .itfv3-lab__textarea::placeholder {
    color: #64748b !important;
}

.itfv3-lab__project .itfv3-lab__button--ghost {
    background: #0b1220 !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

.itfv3-lab__project .itfv3-lab__button--ghost:hover {
    background: #111827 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

.itfv3-lab__project-help {
    border-color: #334155 !important;
    background: #0b1220 !important;
    color: #cbd5e1 !important;
}

@media (max-width: 782px) {
    .itfv3-lab__project-item-top {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .itfv3-lab__project-toolbar,
    .itfv3-lab__project-list-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .itfv3-lab__project-list-title {
        font-size: 20px !important;
    }
}

.itfv3-lab__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.itfv3-lab__card-top-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__card-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.itfv3-lab__card-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.itfv3-lab__list-item:hover .itfv3-lab__card-tools,
.itfv3-lab__list-item:focus-within .itfv3-lab__card-tools {
    opacity: 1;
    transform: translateY(0);
}

.itfv3-lab__card-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__card-tool:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.itfv3-lab__sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.itfv3-lab__sheet {
    width: min(100%, 560px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 20px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
    color: #e5e7eb;
}

.itfv3-lab__sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #1f2937;
}

.itfv3-lab__sheet-head-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.itfv3-lab__sheet-kicker {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
}

.itfv3-lab__sheet-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
}

.itfv3-lab__sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.itfv3-lab__sheet-body {
    padding: 16px;
    overflow: auto;
    max-height: calc(86vh - 74px);
}

.itfv3-lab__sheet-loading,
.itfv3-lab__sheet-empty {
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0b1220;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.itfv3-lab__sheet-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.itfv3-lab__sheet-stat {
    min-width: 0;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0b1220;
}

.itfv3-lab__sheet-stat-label {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.itfv3-lab__sheet-stat-value {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
}

.itfv3-lab__sheet-actions {
    display: grid;
    gap: 10px;
}

.itfv3-lab__sheet-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__sheet-action:hover {
    background: #111827;
    border-color: #475569;
}

.itfv3-lab__sheet-action--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.itfv3-lab__sheet-action--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

@media (hover: none), (max-width: 782px) {
    .itfv3-lab__card-tools {
        opacity: 1;
        transform: none;
    }

    .itfv3-lab__sheet-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .itfv3-lab__sheet {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .itfv3-lab__sheet-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.itfv3-lab__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.itfv3-lab__card-top-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__card-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.itfv3-lab__card-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.itfv3-lab__list-item:hover .itfv3-lab__card-tools,
.itfv3-lab__list-item:focus-within .itfv3-lab__card-tools {
    opacity: 1;
    transform: translateY(0);
}

.itfv3-lab__card-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__card-tool:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.itfv3-lab__sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.itfv3-lab__sheet {
    width: min(100%, 560px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 20px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
    color: #e5e7eb;
}

.itfv3-lab__sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #1f2937;
}

.itfv3-lab__sheet-head-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.itfv3-lab__sheet-kicker {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
}

.itfv3-lab__sheet-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
}

.itfv3-lab__sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.itfv3-lab__sheet-body {
    padding: 16px;
    overflow: auto;
    max-height: calc(86vh - 74px);
}

.itfv3-lab__sheet-loading,
.itfv3-lab__sheet-empty {
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0b1220;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.itfv3-lab__sheet-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.itfv3-lab__sheet-stat {
    min-width: 0;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0b1220;
}

.itfv3-lab__sheet-stat-label {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.itfv3-lab__sheet-stat-value {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
}

.itfv3-lab__sheet-actions {
    display: grid;
    gap: 10px;
}

.itfv3-lab__sheet-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__sheet-action:hover {
    background: #111827;
    border-color: #475569;
}

.itfv3-lab__sheet-action--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.itfv3-lab__sheet-action--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

@media (hover: none), (max-width: 782px) {
    .itfv3-lab__card-tools {
        opacity: 1;
        transform: none;
    }

    .itfv3-lab__sheet-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .itfv3-lab__sheet {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .itfv3-lab__sheet-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.itfv3-lab__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.itfv3-lab__card-top-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__card-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.itfv3-lab__card-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.itfv3-lab__list-item:hover .itfv3-lab__card-tools,
.itfv3-lab__list-item:focus-within .itfv3-lab__card-tools {
    opacity: 1;
    transform: translateY(0);
}

.itfv3-lab__card-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__card-tool:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.itfv3-lab__sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.itfv3-lab__sheet {
    width: min(100%, 560px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 20px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
    color: #e5e7eb;
}

.itfv3-lab__sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #1f2937;
}

.itfv3-lab__sheet-head-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.itfv3-lab__sheet-kicker {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
}

.itfv3-lab__sheet-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
}

.itfv3-lab__sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.itfv3-lab__sheet-body {
    padding: 16px;
    overflow: auto;
    max-height: calc(86vh - 74px);
}

.itfv3-lab__sheet-loading,
.itfv3-lab__sheet-empty {
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0b1220;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.itfv3-lab__sheet-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.itfv3-lab__sheet-stat {
    min-width: 0;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0b1220;
}

.itfv3-lab__sheet-stat-label {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.itfv3-lab__sheet-stat-value {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
}

.itfv3-lab__sheet-actions {
    display: grid;
    gap: 10px;
}

.itfv3-lab__sheet-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__sheet-action:hover {
    background: #111827;
    border-color: #475569;
}

.itfv3-lab__sheet-action--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.itfv3-lab__sheet-action--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

@media (hover: none), (max-width: 782px) {
    .itfv3-lab__card-tools {
        opacity: 1;
        transform: none;
    }

    .itfv3-lab__sheet-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .itfv3-lab__sheet {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .itfv3-lab__sheet-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ITFV3_CARD_SHEET_ALIAS_FIX_START */
.itfv3-lab__card-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.itfv3-lab__card-sheet {
    width: min(100%, 560px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 20px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
    color: #e5e7eb;
}

.itfv3-lab__card-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #1f2937;
}

.itfv3-lab__card-sheet-body {
    padding: 16px;
    overflow: auto;
    max-height: calc(86vh - 74px);
}

body.itfv3-lab--card-sheet-open {
    overflow: hidden;
}

@media (hover: none), (max-width: 782px) {
    .itfv3-lab__card-sheet-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .itfv3-lab__card-sheet {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}
/* ITFV3_CARD_SHEET_ALIAS_FIX_END */

/* ITFV3_CARD_UI_STABLE_FINAL_START */
.itfv3-lab__card.itfv3-lab__list-item {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
    min-width: 0;
    min-height: 148px;
    padding: 12px;
    border-radius: 14px;
    overflow: hidden;
}

.itfv3-lab__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.itfv3-lab__card-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__card-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 58%;
    flex: 0 1 auto;
}

.itfv3-lab__card-kind {
    min-width: 0;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
}

.itfv3-lab__badge {
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
}

.itfv3-lab__card-title {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.itfv3-lab__card-text {
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.itfv3-lab__card-text--empty {
    color: #94a3b8;
}

.itfv3-lab__card-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.itfv3-lab__list-item:hover .itfv3-lab__card-tools,
.itfv3-lab__list-item:focus-within .itfv3-lab__card-tools {
    opacity: 1;
    transform: translateY(0);
}

.itfv3-lab__card-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.itfv3-lab__card-tool:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.itfv3-lab__sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.itfv3-lab__sheet {
    width: min(100%, 560px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 20px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
    color: #e5e7eb;
}

.itfv3-lab__sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #1f2937;
}

.itfv3-lab__sheet-head-text {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__sheet-kicker {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93c5fd;
}

.itfv3-lab__sheet-title {
    min-width: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #f8fafc;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.itfv3-lab__sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1220;
    color: #e5e7eb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.itfv3-lab__sheet-body {
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow: auto;
    max-height: calc(86vh - 74px);
}

body.itfv3-lab--card-sheet-open {
    overflow: hidden;
}

@media (hover: none), (max-width: 782px) {
    .itfv3-lab__card-tools {
        opacity: 1;
        transform: none;
    }

    .itfv3-lab__card-tool {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .itfv3-lab__card-top-right {
        max-width: 62%;
    }

    .itfv3-lab__badge {
        max-width: 160px;
    }

    .itfv3-lab__sheet-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .itfv3-lab__sheet {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}
/* ITFV3_CARD_UI_STABLE_FINAL_END */

/* ITFV3_CARD_CLICK_LAYOUT_FIX_START */
.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-top,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-width: 0;
}

.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-top-left,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
}

.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-top-right,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-top-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    justify-self: end;
}

.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__badge,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__badge {
    min-width: 0;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-self: end;
    flex: 0 1 auto;
    position: relative;
    z-index: 1;
}

.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-tools,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    opacity: 1;
    transform: none;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-tool,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-tool {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    position: relative;
    z-index: 6;
    pointer-events: auto;
}

.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-title,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-text,
.itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 782px) {
    .itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__badge,
    .itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__badge {
        max-width: 120px;
    }

    .itfv3-lab__card.itfv3-lab__card--conversation .itfv3-lab__card-tool,
    .itfv3-lab__card.itfv3-lab__card--prompt .itfv3-lab__card-tool {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}
/* ITFV3_CARD_CLICK_LAYOUT_FIX_END */

/* ITFV3_LAB_STRUCTURE_ONLY_PHASEA_START */

html {
    margin-top: 0 !important;
}

body.page-id-512.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-id-512 #wpadminbar {
    display: none !important;
}

body.page-id-512 #site-header {
    display: none !important;
}

body.page-id-512 .itfv3-lab__header {
    display: none !important;
}

body.page-id-512 .itfv3-lab {
    padding-top: 8px !important;
}

body.page-id-512 .itfv3-lab__toolbar {
    margin-top: 0 !important;
}

@media (max-width: 782px) {
    body.page-id-512 .itfv3-lab {
        padding-top: 6px !important;
    }

    body.page-id-512 .itfv3-lab__toolbar {
        margin-bottom: 8px !important;
    }
}

/* ITFV3_LAB_STRUCTURE_ONLY_PHASEA_END */

/* ITFV3_LAB_PROJECT_EDITOR_DETAILS_PHASEB_START */

body.page-id-512 .itfv3-lab__project-editor {
    margin-top: 10px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
}

body.page-id-512 .itfv3-lab__project-editor-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    list-style: none !important;
    cursor: pointer !important;
    user-select: none !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    background: #eef4fb !important;
    border-bottom: 1px solid transparent !important;
}

body.page-id-512 .itfv3-lab__project-editor-toggle::-webkit-details-marker {
    display: none !important;
}

body.page-id-512 .itfv3-lab__project-editor-toggle::after {
    content: "Ouvrir";
    flex: 0 0 auto;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    padding: 4px 8px !important;
}

body.page-id-512 .itfv3-lab__project-editor[open] .itfv3-lab__project-editor-toggle {
    border-bottom-color: #dbe3ee !important;
    background: #e8f0fb !important;
}

body.page-id-512 .itfv3-lab__project-editor[open] .itfv3-lab__project-editor-toggle::after {
    content: "Fermer";
}

body.page-id-512 .itfv3-lab__project-editor > .itfv3-lab__project {
    margin-top: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    padding: 12px !important;
}

@media (max-width: 782px) {
    body.page-id-512 .itfv3-lab__project-editor {
        margin-top: 8px !important;
        border-radius: 10px !important;
    }

    body.page-id-512 .itfv3-lab__project-editor-toggle {
        padding: 9px 10px !important;
        font-size: 12px !important;
    }

    body.page-id-512 .itfv3-lab__project-editor-toggle::after {
        font-size: 10px !important;
        padding: 3px 7px !important;
    }

    body.page-id-512 .itfv3-lab__project-editor > .itfv3-lab__project {
        padding: 10px !important;
    }
}

/* ITFV3_LAB_PROJECT_EDITOR_DETAILS_PHASEB_END */

/* ITFV3_LAB_DARK_THEME_FOUNDATION_PHASEC_START */

body.page-id-512 .itfv3-lab {
    color: #e5edf7 !important;
}

body.page-id-512 .itfv3-lab__toolbar,
body.page-id-512 .itfv3-lab__panel,
body.page-id-512 .itfv3-lab__project-editor,
body.page-id-512 .itfv3-lab__project-editor > .itfv3-lab__project,
body.page-id-512 .itfv3-lab__project,
body.page-id-512 .itfv3-lab__stat,
body.page-id-512 .itfv3-lab__list-item,
body.page-id-512 .itfv3-lab__card,
body.page-id-512 .itfv3-lab__user-card,
body.page-id-512 .itfv3-lab__basket-summary > *,
body.page-id-512 .itfv3-lab__project-editor-toggle {
    background: #0f172a !important;
    color: #e5edf7 !important;
    border-color: #22314d !important;
    box-shadow: none !important;
}

body.page-id-512 .itfv3-lab__panel,
body.page-id-512 .itfv3-lab__toolbar,
body.page-id-512 .itfv3-lab__project-editor {
    border: 1px solid #22314d !important;
}

body.page-id-512 .itfv3-lab__panel-title,
body.page-id-512 .itfv3-lab__project-list-title,
body.page-id-512 .itfv3-lab__project-item-title,
body.page-id-512 .itfv3-lab__card-title,
body.page-id-512 .itfv3-lab__list-title,
body.page-id-512 .itfv3-lab__user-name,
body.page-id-512 .itfv3-lab__title {
    color: #f8fbff !important;
}

body.page-id-512 .itfv3-lab__panel-text,
body.page-id-512 .itfv3-lab__subtitle,
body.page-id-512 .itfv3-lab__user-meta,
body.page-id-512 .itfv3-lab__list-text,
body.page-id-512 .itfv3-lab__card-text,
body.page-id-512 .itfv3-lab__project-list-text,
body.page-id-512 .itfv3-lab__project-item-meta,
body.page-id-512 .itfv3-lab p {
    color: #9fb0c9 !important;
}

body.page-id-512 .itfv3-lab__field > span,
body.page-id-512 .itfv3-lab__toolbar-user-label,
body.page-id-512 .itfv3-lab__stat-label,
body.page-id-512 .itfv3-lab__card-kind {
    color: #8ea3c0 !important;
}

body.page-id-512 .itfv3-lab__input,
body.page-id-512 .itfv3-lab__textarea,
body.page-id-512 .itfv3-lab__select,
body.page-id-512 .itfv3-lab input,
body.page-id-512 .itfv3-lab select,
body.page-id-512 .itfv3-lab textarea {
    background: #081120 !important;
    color: #f8fbff !important;
    border: 1px solid #2a3a57 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

body.page-id-512 .itfv3-lab__input::placeholder,
body.page-id-512 .itfv3-lab__textarea::placeholder,
body.page-id-512 .itfv3-lab input::placeholder,
body.page-id-512 .itfv3-lab textarea::placeholder {
    color: #6f85a3 !important;
}

body.page-id-512 .itfv3-lab__input:focus,
body.page-id-512 .itfv3-lab__textarea:focus,
body.page-id-512 .itfv3-lab__select:focus,
body.page-id-512 .itfv3-lab select:focus,
body.page-id-512 .itfv3-lab input:focus,
body.page-id-512 .itfv3-lab textarea:focus {
    border-color: #4f8cff !important;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18) !important;
}

body.page-id-512 .itfv3-lab__button,
body.page-id-512 .itfv3-lab button,
body.page-id-512 .itfv3-lab__project-editor-toggle::after,
body.page-id-512 .itfv3-lab__card-tool {
    background: #101c33 !important;
    color: #dbe8ff !important;
    border-color: #294062 !important;
}

body.page-id-512 .itfv3-lab__button--primary,
body.page-id-512 .itfv3-lab [data-itfv3-lab-reload="1"],
body.page-id-512 .itfv3-lab [data-itfv3-lab-project-new="1"],
body.page-id-512 .itfv3-lab [data-itfv3-lab-project-open="1"],
body.page-id-512 .itfv3-lab [data-itfv3-lab-project-save="1"] {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

body.page-id-512 .itfv3-lab__button--primary:hover,
body.page-id-512 .itfv3-lab [data-itfv3-lab-reload="1"]:hover,
body.page-id-512 .itfv3-lab [data-itfv3-lab-project-new="1"]:hover,
body.page-id-512 .itfv3-lab [data-itfv3-lab-project-open="1"]:hover,
body.page-id-512 .itfv3-lab [data-itfv3-lab-project-save="1"]:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

body.page-id-512 .itfv3-lab__button--ghost:hover,
body.page-id-512 .itfv3-lab button:hover,
body.page-id-512 .itfv3-lab__card-tool:hover {
    background: #16253f !important;
    border-color: #35517d !important;
}

body.page-id-512 .itfv3-lab__badge {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #9fc0ff !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
}

body.page-id-512 .itfv3-lab__project-list-block,
body.page-id-512 .itfv3-lab__project-item {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
    border-color: #22314d !important;
}

body.page-id-512 .itfv3-lab__project-item.is-active,
body.page-id-512 .itfv3-lab__project-item[aria-pressed="true"] {
    background: linear-gradient(180deg, #13213d 0%, #0f172a 100%) !important;
    border-color: #4f8cff !important;
    box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.25) !important;
}

body.page-id-512 .itfv3-lab__project-help {
    background: #081120 !important;
    color: #c9d8ee !important;
    border-color: #22314d !important;
}

body.page-id-512 .itfv3-lab__status {
    background: #101827 !important;
    color: #dbe8ff !important;
    border-color: #294062 !important;
}

body.page-id-512 .itfv3-lab__pick-ui {
    background: #081120 !important;
    border-color: #35517d !important;
}

body.page-id-512 .itfv3-lab__pick input[type="checkbox"]:checked + .itfv3-lab__pick-ui {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

body.page-id-512 .itfv3-lab__project-editor[open] .itfv3-lab__project-editor-toggle {
    background: #13213d !important;
    border-bottom-color: #22314d !important;
}

/* ITFV3_LAB_DARK_THEME_FOUNDATION_PHASEC_END */

/* ITFV3_LAB_STATS_CONTRAST_PHASED_START */

body.page-id-512 .itfv3-lab__stat {
    background: #13213d !important;
    border-color: #35517d !important;
}

body.page-id-512 .itfv3-lab__stat-label {
    color: #b9c9df !important;
    opacity: 1 !important;
}

body.page-id-512 .itfv3-lab__stat-value {
    color: #ffffff !important;
    text-shadow: none !important;
}

body.page-id-512 .itfv3-lab__panel:first-child .itfv3-lab__panel-title {
    color: #ffffff !important;
}

body.page-id-512 .itfv3-lab__panel:first-child .itfv3-lab__panel-text {
    color: #b9c9df !important;
}

/* ITFV3_LAB_STATS_CONTRAST_PHASED_END */

/* ITFV3_LAB_PROJECT_FORM_CONTRAST_PHASEE_START */

body.page-id-512 .itfv3-lab__project .itfv3-lab__field > span {
    color: #d7e3f5 !important;
    opacity: 1 !important;
}

body.page-id-512 .itfv3-lab__project .itfv3-lab__input,
body.page-id-512 .itfv3-lab__project .itfv3-lab__select,
body.page-id-512 .itfv3-lab__project .itfv3-lab__textarea,
body.page-id-512 .itfv3-lab__project input,
body.page-id-512 .itfv3-lab__project select,
body.page-id-512 .itfv3-lab__project textarea {
    background: #081120 !important;
    color: #ffffff !important;
    border-color: #35517d !important;
    caret-color: #ffffff !important;
}

body.page-id-512 .itfv3-lab__project .itfv3-lab__input::placeholder,
body.page-id-512 .itfv3-lab__project .itfv3-lab__textarea::placeholder,
body.page-id-512 .itfv3-lab__project input::placeholder,
body.page-id-512 .itfv3-lab__project textarea::placeholder {
    color: #8ea3c0 !important;
    opacity: 1 !important;
}

body.page-id-512 .itfv3-lab__project select option {
    background: #0f172a !important;
    color: #ffffff !important;
}

body.page-id-512 .itfv3-lab__project .itfv3-lab__button--ghost,
body.page-id-512 .itfv3-lab__project [data-itfv3-lab-project-reset="1"] {
    background: #101c33 !important;
    color: #dbe8ff !important;
    border-color: #35517d !important;
}

body.page-id-512 .itfv3-lab__project .itfv3-lab__button--ghost:hover,
body.page-id-512 .itfv3-lab__project [data-itfv3-lab-project-reset="1"]:hover {
    background: #16253f !important;
    color: #ffffff !important;
    border-color: #4f6f9f !important;
}

body.page-id-512 .itfv3-lab__project-help {
    background: #0b1220 !important;
    color: #d7e3f5 !important;
    border: 1px solid #22314d !important;
}

/* ITFV3_LAB_PROJECT_FORM_CONTRAST_PHASEE_END */

/* ITFV3_LAB_CARDS_CONTRAST_PHASEF_START */

body.page-id-512 .itfv3-lab__list-item,
body.page-id-512 .itfv3-lab__card {
    background: #101a2e !important;
    border-color: #294062 !important;
}

body.page-id-512 .itfv3-lab__card-title,
body.page-id-512 .itfv3-lab__list-title {
    color: #ffffff !important;
    opacity: 1 !important;
}

body.page-id-512 .itfv3-lab__card-text,
body.page-id-512 .itfv3-lab__list-text {
    color: #c2d3ea !important;
    opacity: 1 !important;
}

body.page-id-512 .itfv3-lab__card-kind {
    background: #16253f !important;
    color: #cfe0ff !important;
    border: 1px solid #35517d !important;
}

body.page-id-512 .itfv3-lab__badge {
    background: rgba(79, 140, 255, 0.16) !important;
    color: #cfe0ff !important;
    border-color: rgba(79, 140, 255, 0.42) !important;
    opacity: 1 !important;
}

body.page-id-512 .itfv3-lab__card-tool {
    background: #16253f !important;
    color: #e4eeff !important;
    border: 1px solid #35517d !important;
}

body.page-id-512 .itfv3-lab__card-tool:hover {
    background: #1c2f50 !important;
    color: #ffffff !important;
    border-color: #4f6f9f !important;
}

body.page-id-512 .itfv3-lab__pick-ui {
    background: #0b1220 !important;
    border-color: #4f6f9f !important;
}

body.page-id-512 .itfv3-lab__pick input[type="checkbox"]:checked + .itfv3-lab__pick-ui {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

body.page-id-512 .itfv3-lab__card-text--empty {
    color: #8ea3c0 !important;
}

/* ITFV3_LAB_CARDS_CONTRAST_PHASEF_END */

/* ITFV3_LAB_PROJECT_LIST_CONTRAST_PHASEG_START */

body.page-id-512 .itfv3-lab__project-list-block {
    background: linear-gradient(180deg, #0b1220 0%, #101a2e 100%) !important;
    border-color: #294062 !important;
}

body.page-id-512 .itfv3-lab__project-list-title {
    color: #ffffff !important;
}

body.page-id-512 .itfv3-lab__project-list-text {
    color: #b9c9df !important;
}

body.page-id-512 .itfv3-lab__project-item {
    background: linear-gradient(180deg, #101a2e 0%, #0f172a 100%) !important;
    border-color: #294062 !important;
}

body.page-id-512 .itfv3-lab__project-item:hover {
    background: linear-gradient(180deg, #16253f 0%, #101a2e 100%) !important;
    border-color: #4f6f9f !important;
}

body.page-id-512 .itfv3-lab__project-item-title {
    color: #ffffff !important;
}

body.page-id-512 .itfv3-lab__project-item-meta {
    color: #c2d3ea !important;
}

body.page-id-512 .itfv3-lab__project-item.is-active,
body.page-id-512 .itfv3-lab__project-item[aria-pressed="true"] {
    background: linear-gradient(180deg, #1a3158 0%, #13213d 100%) !important;
    border-color: #4f8cff !important;
    box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.28) !important;
}

body.page-id-512 .itfv3-lab__project-filters .itfv3-lab__button--ghost,
body.page-id-512 .itfv3-lab__project-list-actions .itfv3-lab__button--ghost {
    background: #16253f !important;
    color: #dbe8ff !important;
    border-color: #35517d !important;
}

body.page-id-512 .itfv3-lab__project-filters .itfv3-lab__button--ghost:hover,
body.page-id-512 .itfv3-lab__project-list-actions .itfv3-lab__button--ghost:hover {
    background: #1c2f50 !important;
    color: #ffffff !important;
    border-color: #4f6f9f !important;
}

body.page-id-512 .itfv3-lab__project-filters .itfv3-lab__button--ghost.is-active,
body.page-id-512 .itfv3-lab__project-filters .itfv3-lab__button--ghost[aria-pressed="true"] {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* ITFV3_LAB_PROJECT_LIST_CONTRAST_PHASEG_END */

/* ITFV3_LAB_COCKPIT_RIGHT_RAG_PHASE1_START */
.itfv3-lab__panel--cockpit-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.itfv3-lab__cockpit-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.itfv3-lab__mini-stat {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(7, 14, 30, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.itfv3-lab__mini-stat-label {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8fb3ff;
}

.itfv3-lab__mini-stat-value {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    color: #f8fbff;
    word-break: break-word;
}

.itfv3-lab__cockpit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2px 0 0;
}

.itfv3-lab__cockpit-tabs .itfv3-lab__button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
}

.itfv3-lab__cockpit-tabs .itfv3-lab__button.is-active {
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35) inset, 0 10px 24px rgba(37, 99, 235, 0.18);
}

.itfv3-lab__cockpit-stack {
    display: grid;
    gap: 14px;
}

.itfv3-lab__cockpit-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.09), transparent 28%),
        linear-gradient(180deg, rgba(11, 18, 32, 0.9) 0%, rgba(7, 14, 30, 0.98) 100%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.itfv3-lab__cockpit-card--rag {
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: 0 18px 36px rgba(30, 64, 175, 0.16);
}

.itfv3-lab__cockpit-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.itfv3-lab__cockpit-card-head h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    color: #f8fbff;
}

.itfv3-lab__cockpit-card-head span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #b7c8ea;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.itfv3-lab__cockpit-lines {
    display: grid;
    gap: 8px;
    color: #d9e7ff;
    font-size: 15px;
    line-height: 1.55;
}

.itfv3-lab__cockpit-lines strong {
    color: #ffffff;
}

.itfv3-lab__rag-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.itfv3-lab__rag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #d7e7ff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.itfv3-lab__rag-pill--ok {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(6, 78, 59, 0.34);
    color: #a7f3d0;
}

.itfv3-lab__rag-block {
    display: grid;
    gap: 10px;
}

.itfv3-lab__rag-title {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8fb3ff;
}

.itfv3-lab__rag-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.itfv3-lab__rag-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    background: rgba(9, 18, 38, 0.78);
    color: #dbeafe;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.itfv3-lab__rag-question {
    padding: 12px 14px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 14px;
    background: rgba(8, 15, 30, 0.82);
    color: #eef6ff;
    font-size: 14px;
    line-height: 1.6;
}

.itfv3-lab__rag-hit {
    display: grid;
    gap: 8px;
    padding: 13px 14px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 14px;
    background: rgba(8, 15, 30, 0.82);
}

.itfv3-lab__rag-hit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.itfv3-lab__rag-hit-top strong {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
}

.itfv3-lab__rag-hit-top span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #93c5fd;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.itfv3-lab__rag-hit p {
    margin: 0;
    color: #dce9ff;
    font-size: 13px;
    line-height: 1.6;
}

.itfv3-lab__rag-context {
    padding: 14px;
    border: 1px dashed rgba(96, 165, 250, 0.28);
    border-radius: 14px;
    background: rgba(5, 10, 22, 0.86);
    color: #cfe2ff;
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
}

.itfv3-lab__panel--cockpit-right [data-itfv3-lab-prompts="1"] {
    display: grid;
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 1180px) {
    .itfv3-lab__cockpit-mini-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .itfv3-lab__cockpit-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .itfv3-lab__rag-hit-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ITFV3_LAB_COCKPIT_RIGHT_RAG_PHASE1_END */

/* ITFV3_LAB_HUB_COPILOT_LAYOUT_PHASE2_START */
.itfv3-lab__hub-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(520px, 1.5fr) minmax(320px, 1fr);
    gap: 18px;
    align-items: start;
}

.itfv3-lab__hub-left,
.itfv3-lab__hub-center,
.itfv3-lab__hub-right {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.itfv3-lab__panel--search,
.itfv3-lab__panel--copilot,
.itfv3-lab__panel--shortcuts,
.itfv3-lab__panel--activity {
    min-width: 0;
}

.itfv3-lab__hub-search-box {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.itfv3-lab__hub-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__search-filters {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 17, 31, 0.68) 0%, rgba(7, 14, 30, 0.92) 100%);
}

.itfv3-lab__search-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.itfv3-lab__search-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.itfv3-lab__search-result-meta {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #cfe2ff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.itfv3-lab__search-results {
    display: grid;
    gap: 12px;
    max-height: 980px;
    overflow-y: auto;
    padding-right: 4px;
}

.itfv3-lab__result-card {
    display: grid;
    gap: 10px;
    padding: 15px 16px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.07), transparent 24%),
        linear-gradient(180deg, rgba(10, 17, 31, 0.72) 0%, rgba(7, 14, 30, 0.94) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.itfv3-lab__result-card--conversation {
    border-color: rgba(96, 165, 250, 0.22);
}

.itfv3-lab__result-card--prompt {
    border-color: rgba(168, 85, 247, 0.22);
}

.itfv3-lab__result-card--pdf {
    border-color: rgba(244, 114, 182, 0.2);
}

.itfv3-lab__result-card--image {
    border-color: rgba(52, 211, 153, 0.2);
}

.itfv3-lab__result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.itfv3-lab__result-top h4 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: #f8fbff;
}

.itfv3-lab__result-top p {
    margin: 0;
    color: #9fb6da;
    font-size: 12px;
    line-height: 1.5;
}

.itfv3-lab__result-excerpt {
    color: #dbe8ff;
    font-size: 13px;
    line-height: 1.6;
}

.itfv3-lab__panel--copilot {
    display: grid;
    gap: 16px;
}

.itfv3-lab__copilot-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.itfv3-lab__copilot-focus {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 26%),
        linear-gradient(180deg, rgba(11, 18, 32, 0.9) 0%, rgba(7, 14, 30, 0.98) 100%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.itfv3-lab__copilot-focus--rag {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 18px 36px rgba(30, 64, 175, 0.16);
}

.itfv3-lab__copilot-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.itfv3-lab__copilot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__copilot-main-tabs,
.itfv3-lab__copilot-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__copilot-main-tabs .itfv3-lab__button,
.itfv3-lab__copilot-subtabs .itfv3-lab__button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
}

.itfv3-lab__copilot-main-tabs .itfv3-lab__button.is-active,
.itfv3-lab__copilot-subtabs .itfv3-lab__button.is-active {
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35) inset, 0 10px 24px rgba(37, 99, 235, 0.18);
}

.itfv3-lab__copilot-panels {
    display: grid;
    gap: 14px;
}

.itfv3-lab__copilot-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 24%),
        linear-gradient(180deg, rgba(11, 18, 32, 0.9) 0%, rgba(7, 14, 30, 0.98) 100%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    min-width: 0;
}

.itfv3-lab__copilot-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.itfv3-lab__copilot-type-preview {
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 16px;
    background: rgba(8, 15, 30, 0.82);
}

.itfv3-lab__copilot-type-preview p {
    margin: 0;
    color: #dce9ff;
    font-size: 14px;
    line-height: 1.65;
}

.itfv3-lab__copilot-stats-host {
    padding: 2px 0 0;
}

.itfv3-lab__shortcut-grid {
    display: grid;
    gap: 12px;
}

.itfv3-lab__shortcut-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.06), transparent 28%),
        linear-gradient(180deg, rgba(10, 17, 31, 0.72) 0%, rgba(7, 14, 30, 0.94) 100%);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.itfv3-lab__shortcut-card:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.itfv3-lab__shortcut-card strong {
    color: #f8fbff;
    font-size: 15px;
    line-height: 1.25;
}

.itfv3-lab__shortcut-card span {
    color: #a8bfdc;
    font-size: 13px;
    line-height: 1.5;
}

.itfv3-lab__activity-list {
    display: grid;
    gap: 10px;
}

.itfv3-lab__activity-item {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 14px;
    background: rgba(8, 15, 30, 0.82);
}

.itfv3-lab__activity-item strong {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
}

.itfv3-lab__activity-item span {
    color: #b9cbe8;
    font-size: 12px;
    line-height: 1.5;
}

.itfv3-lab__hub-right .itfv3-lab__project-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.itfv3-lab__hub-right .itfv3-lab__project-list-actions {
    margin-top: 12px;
}

.itfv3-lab__hub-right .itfv3-lab__project-editor {
    margin-top: 14px;
}

@media (max-width: 1480px) {
    .itfv3-lab__hub-grid {
        grid-template-columns: minmax(300px, 1fr) minmax(460px, 1.35fr);
    }

    .itfv3-lab__hub-right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 1180px) {
    .itfv3-lab__hub-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .itfv3-lab__hub-right {
        grid-template-columns: minmax(0, 1fr);
    }

    .itfv3-lab__copilot-hero,
    .itfv3-lab__copilot-overview-grid,
    .itfv3-lab__copilot-project-grid,
    .itfv3-lab__search-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .itfv3-lab__search-results {
        max-height: none;
    }
}

@media (max-width: 820px) {
    .itfv3-lab__search-results-head,
    .itfv3-lab__result-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ITFV3_LAB_HUB_COPILOT_LAYOUT_PHASE2_END */

/* ITFV3_LAB_PROJECT_RIGHT_VISUAL_FIX_START */
.itfv3-lab__hub-right .itfv3-lab__panel--project,
.itfv3-lab__hub-right .itfv3-lab__project-list-block,
.itfv3-lab__hub-right .itfv3-lab__project-list,
.itfv3-lab__hub-right .itfv3-lab__project-item,
.itfv3-lab__hub-right .itfv3-lab__project-card,
.itfv3-lab__hub-right [data-itfv3-lab-project-list="1"] > * {
    min-width: 0;
}

.itfv3-lab__hub-right .itfv3-lab__project-list {
    overflow-x: hidden;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] * {
    min-width: 0;
    word-break: break-word;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] h4,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] .itfv3-lab__project-title,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] .itfv3-lab__card-title,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.itfv3-lab__hub-right .itfv3-lab__project-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
    justify-content: center;
}

.itfv3-lab__hub-right .itfv3-lab__project-toolbar {
    align-items: stretch;
}

.itfv3-lab__hub-right .itfv3-lab__project-toolbar,
.itfv3-lab__hub-right .itfv3-lab__project-filters {
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__hub-right .itfv3-lab__project-filters .itfv3-lab__button,
.itfv3-lab__hub-right .itfv3-lab__project-toolbar > .itfv3-lab__button {
    flex: 0 1 auto;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] {
    display: block;
}

@media (max-width: 1480px) {
    .itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 120px;
    }
}

@media (max-width: 820px) {
    .itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
        flex: 1 1 100%;
        min-width: 0;
    }
}
/* ITFV3_LAB_PROJECT_RIGHT_VISUAL_FIX_END */

/* ITFV3_LAB_PROJECT_RIGHT_VISUAL_FIX_START */
.itfv3-lab__hub-right .itfv3-lab__panel--project,
.itfv3-lab__hub-right .itfv3-lab__project-list-block,
.itfv3-lab__hub-right .itfv3-lab__project-list,
.itfv3-lab__hub-right .itfv3-lab__project-item,
.itfv3-lab__hub-right .itfv3-lab__project-card,
.itfv3-lab__hub-right [data-itfv3-lab-project-list="1"] > * {
    min-width: 0;
}

.itfv3-lab__hub-right .itfv3-lab__project-list {
    overflow-x: hidden;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] * {
    min-width: 0;
    word-break: break-word;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] h4,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] .itfv3-lab__project-title,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] .itfv3-lab__card-title,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.itfv3-lab__hub-right .itfv3-lab__project-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
    justify-content: center;
}

.itfv3-lab__hub-right .itfv3-lab__project-toolbar {
    align-items: stretch;
}

.itfv3-lab__hub-right .itfv3-lab__project-toolbar,
.itfv3-lab__hub-right .itfv3-lab__project-filters {
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__hub-right .itfv3-lab__project-filters .itfv3-lab__button,
.itfv3-lab__hub-right .itfv3-lab__project-toolbar > .itfv3-lab__button {
    flex: 0 1 auto;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] {
    display: block;
}

@media (max-width: 1480px) {
    .itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 120px;
    }
}

@media (max-width: 820px) {
    .itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
        flex: 1 1 100%;
        min-width: 0;
    }
}
/* ITFV3_LAB_PROJECT_RIGHT_VISUAL_FIX_END */

/* ITFV3_LAB_HUB_PROJECT_STATS_FIX_PHASE3_START */
.itfv3-lab__copilot-stats-host .itfv3-lab__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.itfv3-lab__copilot-stats-host .itfv3-lab__stat {
    min-width: 0;
    min-height: 118px;
    align-content: start;
}

.itfv3-lab__copilot-stats-host .itfv3-lab__stat-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.itfv3-lab__hub-right .itfv3-lab__project-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] * {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] .itfv3-lab__project-title,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] h4,
.itfv3-lab__hub-right .itfv3-lab__project-list [data-itfv3-lab-project-id] strong {
    display: block !important;
    line-height: 1.2 !important;
}

.itfv3-lab__hub-right .itfv3-lab__project-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    justify-content: center;
}

@media (max-width: 1180px) {
    .itfv3-lab__copilot-stats-host .itfv3-lab__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .itfv3-lab__copilot-stats-host .itfv3-lab__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .itfv3-lab__hub-right .itfv3-lab__project-list-actions .itfv3-lab__button {
        flex: 1 1 100%;
    }
}
/* ITFV3_LAB_HUB_PROJECT_STATS_FIX_PHASE3_END */

/* ITFV3_LAB_COPILOT_REAL_CARDS_FIX_PHASE4_START */
.itfv3-lab__copilot-panel [data-itfv3-lab-conversations="1"],
.itfv3-lab__copilot-panel [data-itfv3-lab-prompts="1"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.itfv3-lab__copilot-panel .itfv3-lab__card {
    min-width: 0;
    height: 100%;
    padding: 16px;
    border-radius: 18px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-left {
    min-width: 0;
    flex: 1 1 auto;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-checkbox {
    margin: 0;
    transform: scale(1.08);
}

.itfv3-lab__copilot-panel .itfv3-lab__card-tool,
.itfv3-lab__copilot-panel .itfv3-lab__card-action,
.itfv3-lab__copilot-panel [data-itfv3-lab-card-action] {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-title,
.itfv3-lab__copilot-panel .itfv3-lab__card h4,
.itfv3-lab__copilot-panel .itfv3-lab__card strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.15;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-meta,
.itfv3-lab__copilot-panel .itfv3-lab__card-excerpt,
.itfv3-lab__copilot-panel .itfv3-lab__card p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-actions,
.itfv3-lab__copilot-panel .itfv3-lab__selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.itfv3-lab__copilot-panel .itfv3-lab__button--add-project,
.itfv3-lab__copilot-panel [data-itfv3-lab-add-project] {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-footer {
    margin-top: auto;
}

.itfv3-lab__copilot-panel .itfv3-lab__empty,
.itfv3-lab__copilot-panel .itfv3-lab__loading {
    grid-column: 1 / -1;
}

@media (max-width: 1480px) {
    .itfv3-lab__copilot-panel [data-itfv3-lab-conversations="1"],
    .itfv3-lab__copilot-panel [data-itfv3-lab-prompts="1"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .itfv3-lab__copilot-panel [data-itfv3-lab-conversations="1"],
    .itfv3-lab__copilot-panel [data-itfv3-lab-prompts="1"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .itfv3-lab__copilot-panel .itfv3-lab__card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
        justify-content: flex-start;
    }
}
/* ITFV3_LAB_COPILOT_REAL_CARDS_FIX_PHASE4_END */

/* ITFV3_LAB_CARD_CHECKBOX_OVERLAP_FIX_START */
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left {
    padding-top: 2px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-right > * {
    flex: 0 0 auto;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-checkbox,
.itfv3-lab__copilot-panel [data-itfv3-lab-select-kind] {
    position: relative;
    z-index: 2;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0 2px 0 0;
    transform: scale(1);
    accent-color: #3b82f6;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-status,
.itfv3-lab__copilot-panel .itfv3-lab__badge,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left .itfv3-lab__badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-left,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left * {
    min-width: 0;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-title,
.itfv3-lab__copilot-panel .itfv3-lab__card h4,
.itfv3-lab__copilot-panel .itfv3-lab__card strong {
    margin-top: 6px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-tools,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
    background: transparent;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-tool,
.itfv3-lab__copilot-panel [data-itfv3-lab-card-action],
.itfv3-lab__copilot-panel [data-itfv3-lab-card-sheet-open] {
    position: relative;
    z-index: 2;
}

@media (max-width: 980px) {
    .itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
        flex-wrap: wrap;
    }
}
/* ITFV3_LAB_CARD_CHECKBOX_OVERLAP_FIX_END */

/* ITFV3_LAB_CARD_CHECKBOX_OVERLAP_FIX_START */
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left {
    padding-top: 2px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-right > * {
    flex: 0 0 auto;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-checkbox,
.itfv3-lab__copilot-panel [data-itfv3-lab-select-kind] {
    position: relative;
    z-index: 2;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0 2px 0 0;
    transform: scale(1);
    accent-color: #3b82f6;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-status,
.itfv3-lab__copilot-panel .itfv3-lab__badge,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left .itfv3-lab__badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-left,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left * {
    min-width: 0;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-title,
.itfv3-lab__copilot-panel .itfv3-lab__card h4,
.itfv3-lab__copilot-panel .itfv3-lab__card strong {
    margin-top: 6px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-tools,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
    background: transparent;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-tool,
.itfv3-lab__copilot-panel [data-itfv3-lab-card-action],
.itfv3-lab__copilot-panel [data-itfv3-lab-card-sheet-open] {
    position: relative;
    z-index: 2;
}

@media (max-width: 980px) {
    .itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
        flex-wrap: wrap;
    }
}
/* ITFV3_LAB_CARD_CHECKBOX_OVERLAP_FIX_END */

/* ITFV3_LAB_CARD_TOP_BADGES_UNIFY_START */
.itfv3-lab__copilot-panel .itfv3-lab__card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-left > input[type="checkbox"],
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left > .itfv3-lab__card-checkbox,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left > [data-itfv3-lab-select-kind] {
    flex: 0 0 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    transform: none;
    accent-color: #3b82f6;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-left .itfv3-lab__badge,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left .itfv3-lab__card-status,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-left .itfv3-lab__chip {
    flex: 0 1 auto;
    max-width: calc(100% - 24px);
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-top-right .itfv3-lab__card-tool,
.itfv3-lab__copilot-panel .itfv3-lab__card-top-right [data-itfv3-lab-card-sheet-open],
.itfv3-lab__copilot-panel .itfv3-lab__card-top-right [data-itfv3-lab-card-action] {
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-title,
.itfv3-lab__copilot-panel .itfv3-lab__card h4,
.itfv3-lab__copilot-panel .itfv3-lab__card strong {
    display: block;
    margin-top: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.12;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-meta,
.itfv3-lab__copilot-panel .itfv3-lab__card-excerpt,
.itfv3-lab__copilot-panel .itfv3-lab__card p {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-footer {
    display: grid;
    gap: 8px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.itfv3-lab__copilot-panel .itfv3-lab__card-actions .itfv3-lab__button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 980px) {
    .itfv3-lab__copilot-panel .itfv3-lab__card-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .itfv3-lab__copilot-panel .itfv3-lab__card-top-right {
        justify-content: flex-start;
    }
}
/* ITFV3_LAB_CARD_TOP_BADGES_UNIFY_END */

/* ITFV3_LAB_INLINE_SAVE_NEAR_FILTERS_START */
.itfv3-lab__copilot-subtabs[data-itfv3-lab-panel-filters="conversation"],
.itfv3-lab__copilot-subtabs[data-itfv3-lab-panel-filters="prompt"] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.itfv3-lab__copilot-subtabs [data-itfv3-lab-project-save-inline="1"] {
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .itfv3-lab__copilot-subtabs [data-itfv3-lab-project-save-inline="1"] {
        margin-left: 0;
    }
}
/* ITFV3_LAB_INLINE_SAVE_NEAR_FILTERS_END */

/* ITFV3_LAB_HIDE_MANUAL_SAVE_START */
[data-itfv3-lab-project-save-inline="1"],
[data-itfv3-lab-project-save-main="1"],
[data-itfv3-lab-project-save="1"] {
    display: none !important;
}
/* ITFV3_LAB_HIDE_MANUAL_SAVE_END */

/* ITFV3_LAB_COPILOT_INLINE_HELP_START */
.itfv3-lab__copilot-inline-help {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    color: #c7d2fe;
    font-size: 13px;
    line-height: 1.5;
}
/* ITFV3_LAB_COPILOT_INLINE_HELP_END */

/* ITFV3_LAB_MODES_LEVELS_PHASE1_START */
.itfv3-lab__copilot-context {
    margin: 10px 0 14px;
    padding: 10px 14px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.36);
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
}

.itfv3-lab__copilot-context strong {
    color: #f8fafc;
}

[data-itfv3-lab-data-subtabs="1"] {
    margin-bottom: 16px;
}
/* ITFV3_LAB_MODES_LEVELS_PHASE1_END */
