@import url(form.css?v=2);
@import url(grid.css?v=2);
@import url(menu.css);
@import url(types.css);
@import url(naui-motion.css?v=17); /* lenguaje de movimiento global: bounce + ping + focus outline */

.bgLoginImage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 841px;
    z-index: -1;
}

.backdropLogin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    background: rgba(223, 223, 223, 0.40);
    backdrop-filter: blur(48.79999923706055px);
    z-index: 0;
}

.loader {
    z-index: 999999;
    background: var(--bg-body);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100dvw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all .5s;
}

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999999;
    pointer-events: none;
    width: 400px;
    height: 0;
}

.notification {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-nodeGroupDark);
    box-shadow: var(--shadow-notification);
    padding: 10px;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-120%) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-nodeGroup);
}

.notification-content-icon {
    display: flex;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 41px;
    background: var(--bg-notification-icon);
}

.notification-content-icon img {
    width: 30px;
}

.notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notification.hide {
    transform: translateY(-120%) scale(0.9);
    opacity: 0;
}

/* Efecto de apilamiento tipo iPhone - las más antiguas detrás */
.notification[data-stack="1"] {
    transform: translateY(-6px) scale(0.98);
    opacity: 0.9;
    z-index: -1;
}

.notification[data-stack="2"] {
    transform: translateY(-12px) scale(0.96);
    opacity: 0.7;
    z-index: -2;
}

.notification[data-stack="3"],
.notification[data-stack="4"],
.notification[data-stack="5"] {
    transform: translateY(-18px) scale(0.94);
    opacity: 0.5;
    z-index: -3;
}

.notification-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
        background: var(--bg-notification-progress);
    width: 0%;
    z-index: -1;
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-inputNormal);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spinInline 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spinInline {
    to { transform: rotate(360deg); }
}

/* ==================== FILE PROCESSOR ==================== */

.fp-bar-wrap {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.fp-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.4s ease;
}

[data-theme="light"] .fp-bar {
    background: var(--color-accent);
}

/* Badge de notificaciones */
.fp-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: #F55454;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 8.5pt;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-panel-empty {
    padding: 30px 10px;
    text-align: center;
    color: var(--color-typeGS);
}

/* Notification cards in panel */
.fp-card {
    border-radius: var(--radius-md);
    transition: opacity 0.2s;
    border: 1px solid var(--border-nodeGroup);
}

.fp-pct {
    color: var(--color-accent);
}

[data-theme="light"] .fp-pct {
    color: var(--color-accent);
}

/* Dismiss button */
.fp-dismiss-btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    cursor: pointer;
    color: #555a65;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.fp-dismiss-btn:hover {
    color: #F55454;
    background: rgba(245, 84, 84, 0.1);
}

[data-theme="light"] .fp-dismiss-btn {
    color: #B0B5C0;
}

[data-theme="light"] .fp-dismiss-btn:hover {
    color: #D32F2F;
    background: rgba(211, 47, 47, 0.06);
}

/* Inline en chat */
.fp-inline {
    margin-top: 8px;
    width: 100%;
}

[data-theme="light"] .fp-bar-wrap { background: #E2E5EA; }

/* ==================== RELEASE LATEST ==================== */

.release-latest {
    position: relative;
    overflow: hidden;
}

/* Video del release (renderizado con Remotion) mostrado al inicio del modal */
.release-video {
    display: block;
    width: 100%;
    border-radius: 14px;
    background: #000;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ============ Video de release: botón pequeño + overlay (sin controles) ============ */
/* Botón pequeño y normal dentro del changelog */
.rv-launch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-family: 'Inter', sans-serif;
    font-size: var(--font-little);
    font-weight: 600;
    cursor: pointer;
    transition: transform .28s var(--transition-spring), background .2s ease, box-shadow .25s ease;
}
.rv-launch svg { flex-shrink: 0; }
.rv-launch:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-button); }
.rv-launch:active { transform: scale(.95); }

/* Overlay a pantalla completa con el video */
.rv-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(8, 11, 16, .82);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.rv-modal.rv-open { opacity: 1; pointer-events: auto; }

.rv-modal-inner {
    position: relative;
    width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
    transform: scale(.94);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.rv-modal.rv-open .rv-modal-inner { transform: scale(1); }

.rv-modal-video {
    display: block;
    width: 100%;
    max-height: 86vh;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}

.rv-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 40px; height: 40px;
    border: none; border-radius: 50%;
    background: rgba(10, 14, 20, .55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.rv-modal-close svg { width: 18px; height: 18px; }
.rv-modal-close:hover { background: var(--color-accent); transform: scale(1.08); }

.rv-modal-mute {
    position: absolute;
    top: 12px; right: 60px;
    width: 40px; height: 40px;
    border: none; border-radius: 50%;
    background: rgba(10, 14, 20, .55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.rv-modal-mute svg { width: 18px; height: 18px; }
.rv-modal-mute:hover { background: var(--color-accent); transform: scale(1.08); }

body.rv-modal-lock { overflow: hidden; }

/* ============ Report Bugs: overlay grande con iframe (no sección) ============ */
.bugs-modal {
    width: min(1200px, 94vw) !important;
    max-width: 94vw !important;
    min-width: 0 !important;
    height: 88vh;
    max-height: 88vh;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
    align-items: stretch !important;
}
.bugs-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    display: block;
    background: var(--bg-body);
}
.bugs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: var(--bg-btnIcon);
}

.release-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    animation: release-float 5s ease-in-out infinite;
}

.release-latest > *:not(.release-shape) {
    position: relative;
    z-index: 1;
}

@keyframes release-float {
    0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.8); }
    20% { opacity: 0.35; }
    50% { opacity: 0.25; transform: translate(12px, -18px) rotate(180deg) scale(1.1); }
    80% { opacity: 0.35; }
    100% { opacity: 0; transform: translate(-8px, 10px) rotate(360deg) scale(0.8); }
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    position: relative;
}

/* Spinner moderno: arco cónico que se desvanece (efecto cometa) girando suave.
   Un halo de acento respira detrás para dar profundidad. */
.loading-spinner::before {
    content: '';
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 68%);
    opacity: 0.14;
    animation: naui-loader-halo 1.6s ease-in-out infinite;
}

.loading-spinner::after {
    content: '';
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, transparent 8%, var(--color-accent) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 3.2px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 3.2px));
    animation: naui-loader-spin 0.8s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}

@keyframes naui-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes naui-loader-halo {
    0%, 100% { transform: scale(0.85); opacity: 0.10; }
    50%      { transform: scale(1.15); opacity: 0.20; }
}

.notification img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notification-title {
    font-weight: 700;
    font-size: var(--font-title);
    color: #ffffff;
    margin: 0;
}

.notification-text {
    font-size: var(--font-little);
    color: #b3b3b3;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: #c4c4c4;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: #000000;
    color: #ffffff;
}

.imgUser {
    width: 47px;
    height: 47px;
    border-radius: 50px;
}

.imgUserEditProfile {
    width: 102px;
    height: 102px;
    border-radius: 100px;
}



/* SUGGESTIONS */

.inputSuggestion {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    gap: 10px;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: none;
    color: #A0A0A0;
    text-align: center;
    width: 100%;
    border: none;
    font-family: 'Inter';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    transition: all .5s;
    outline: none;
}

.inputSuggestion:hover,
.inputSuggestion.highlighted {
    transform: translate(5px, 0px);
    color: #FFF;
}

[data-theme="light"] .inputSuggestion {
    color: #767272;
}

[data-theme="light"] .inputSuggestion:hover,
[data-theme="light"] .inputSuggestion.highlighted {
    background-color: #f0f7ff;
    color: #0066cc;
}

/* Suggestion field wrapper */
.suggestion-field {
    display: flex;
    align-items: center;
    background: var(--bg-input-wrapper, #24262A);
    padding: 5px;
    border-radius: var(--radius-lg);
    gap: 5px;
    flex: 1;
    min-width: 80px;
    overflow: visible;
    width: 90vw !important;
    max-width: fit-content !important;
}

.suggestion-field .contentSuggestionsSelected {
    width: fit-content !important;
    min-width: fit-content !important;
}

[data-theme="light"] .suggestion-field {
    background: #FFFFFF;
    border: none; /* anillo de foco via ::after (naui-motion) */
}

.overlay .suggestion-field {
    width: 100% !important;
    max-width: 100% !important;
}

.suggestion-field-input {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0px;
    max-width: fit-content !important;
    width: fit-content !important;
}

.suggestion-field-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter';
    font-size: 13px;
    font-weight: 500;
    color: #FFF;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

[data-theme="light"] .suggestion-field-label {
    color: #000;
}

/* Label floats up on focus or when typing */
.suggestion-field:has(.inputTransparent:focus) .suggestion-field-label,
.suggestion-field:has(.inputTransparent:not(:placeholder-shown)) .suggestion-field-label {
    top: -6px;
    transform: none;
    font-size: 8px;
    opacity: 0.7;
    background: var(--bg-nodeGroupDark);
    padding: 1px 6px;
    border-radius: 4px;
    z-index: 1;
}

/* When chip selected: hide input text, keep label floating relative to parent */
.suggestion-field:has(.contentSuggestionsSelected:not(:empty)) {
    position: relative;
}

.suggestion-field:has(.contentSuggestionsSelected:not(:empty)) .suggestion-field-input {
    position: static;
}

.suggestion-field:has(.contentSuggestionsSelected:not(:empty)) .suggestion-field-input .inputTransparent {
    display: none;
}

.suggestion-field:has(.contentSuggestionsSelected:not(:empty)) .suggestion-field-label {
    position: absolute;
    top: -6px;
    left: 10px;
    transform: none;
    font-size: 8px;
    opacity: 0.7;
    background: var(--bg-nodeGroupDark);
    padding: 1px 6px;
    border-radius: 4px;
    z-index: 1;
}

.suggestion-field .inputTransparent {
    padding: 10px;
}

/* Selected chip */
.suggestionListed {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    background: #1C1E21;
    border: 1px solid #202124;
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    transition: all .3s;
    outline: none;
    white-space: nowrap;
    color: var(--color-text);
}

[data-theme="light"] .suggestionListed {
    background: #E9EBF1;
    border-color: #D4D6DC;
    color: #000;
}

.suggestionListed .btn-chip-close {
    width: 15px;
    height: 15px;
    min-width: 15px;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: content-box;
}

.suggestionListed .btn-chip-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .suggestionListed .btn-chip-close {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .suggestionListed .btn-chip-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

.suggestionListed .btn-chip-close img {
    width: 7px;
    height: 7px;
    filter: invert(1);
}

[data-theme="light"] .suggestionListed .btn-chip-close img {
    filter: none;
}

/* SUGGESTIONS */

/* ==================== LIGHT THEME OVERRIDES ==================== */
[data-theme="light"] .notification {
    background: rgba(233, 235, 240, 0.9);
    box-shadow: 0 4px 16.1px 0 rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .notification-title {
    color: #1A1A1A;
}

[data-theme="light"] .notification-text {
    color: #737373;
}

[data-theme="light"] .notification-close {
    color: #737373;
}

[data-theme="light"] .notification-close:hover {
    background-color: #E0E2E6;
    color: #1A1A1A;
}

/* loader usa var(--bg-body) que ya responde al tema */

[data-theme="light"] .naui-icon {
    filter: invert(1);
}

.platform {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #3a3f4b;
    background: #2A2E37;
    color: var(--color-text);
    white-space: nowrap;
}

[data-theme="light"] .platform {
    background: #DFE4EC;
    border-color: #DAE4F5;
    color: #1A1A1A;
}

.theme-btn {
    background: var(--bg-btnPrimary) !important;
    border-color: var(--border-btnPrimary) !important;
    color: #FFF !important;
}

[data-theme="light"] button.theme-btn.btnPrimary,
[data-theme="light"] button.startup-btn.btnPrimary {
    background: #F0F2F5 !important;
    border-color: #E2E5EA !important;
    color: #1A1A1A !important;
}

[data-theme="light"] button.theme-btn.btnPrimary svg,
[data-theme="light"] button.startup-btn.btnPrimary svg {
    stroke: #555555 !important;
}

/* ==================== DESIGN SYSTEM UTILITIES ==================== */

.bg-gradient-subtle {
    background-image: var(--gradient-subtle);
}

.glass {
    background: var(--bg-nodeGroup);
}

.glass-heavy {
    background: var(--bg-nodeGroup);
}

.text-gradient-accent {
    color: var(--color-accent);
}

/* ==================== UNIFIED TABS COMPONENT ==================== */

.ui-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--border-nodeGroup);
    padding-bottom: 0;
    margin-bottom: 15px;
    overflow-x: auto;
}

.ui-tab {
    all: unset;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-typeGS);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ui-tab:hover {
    color: var(--color-text);
    background: var(--color-accent-soft);
}

.ui-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

/* Pill variant */
.ui-tabs-pill {
    display: flex;
    gap: 4px;
    background: var(--bg-nodeGroupDark);
    padding: 4px;
    border-radius: var(--radius-md);
    border-bottom: none;
    margin-bottom: 15px;
}

.ui-tabs-pill .ui-tab {
    border-bottom: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 11px;
}

.ui-tabs-pill .ui-tab.active {
    background: var(--bg-nodeGroup);
    color: var(--color-text);
    box-shadow: var(--shadow-button);
}

.ui-tabs-pill .ui-tab:hover:not(.active) {
    background: var(--color-accent-soft);
}

/* ==================== UNIFIED SECTION HEADER ==================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Young Serif', serif;
    font-size: var(--font-colosal);
    font-weight: 300;
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--font-normal);
    color: var(--color-typeGS);
    font-weight: 400;
}

/* ==================== UNIFIED FILTER BAR ==================== */

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg-nodeGroupDark);
    border: 1px solid var(--border-nodeGroup);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-typeGS);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.filter-chip.active {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
}

.filter-chip-count {
    background: var(--color-accent-soft);
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    text-align: center;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 4px;
}

.empty-state-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.empty-state-text {
    font-size: 12px;
    color: var(--color-typeGS);
    max-width: 300px;
}

/* ==================== SKELETON LOADER (Unified) ==================== */

.skeleton {
    background: var(--bg-nodeGroupDark);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-text { height: 12px; width: 80%; }
.skeleton-title { height: 18px; width: 60%; }
.skeleton-avatar { width: 32px; height: 32px; border-radius: 50%; }
.skeleton-card { height: 100px; border-radius: var(--radius-md); }

/* Light theme */
[data-theme="light"] .ui-tabs-pill {
    background: #F0F2F5;
}

[data-theme="light"] .ui-tabs-pill .ui-tab.active {
    background: #FFFFFF;
}

[data-theme="light"] .filter-chip {
    background: #F0F2F5;
    border-color: var(--border-glass);
}

[data-theme="light"] .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
}

/* ==================== IFRAME AGENT DROPDOWN ==================== */

.iad-wrapper {
    position: relative;
    flex-shrink: 0;
}

.iad-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--border-nodeGroup);
    background: var(--bg-nodeGroup);
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    font-size: 12px;
}

.iad-btn:hover {
    border-color: var(--color-accent);
}

.iad-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.iad-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-typeGS);
}

.iad-name {
    line-height: 18px;
}

.iad-chevron {
    opacity: 0.4;
    transition: transform 0.15s ease;
}

.iad-menu {
    position: fixed;
    min-width: 150px;
    background: var(--bg-nodeGroup);
    border: 1px solid var(--border-nodeGroup);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.iad-menu.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.iad-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    border-radius: calc(var(--radius-sm) - 2px);
    transition: transform 0.1s ease;
    width: 100%;
    text-align: left;
    font-size: 12px;
}


.iad-option:hover {
    transform: translateX(3px);
}

.iad-option.selected {
    color: var(--color-accent);
}

[data-theme="light"] .iad-btn {
    background: #fff;
    border-color: #D0D4DE;
}

[data-theme="light"] .iad-btn:hover {
    border-color: var(--color-accent);
}

[data-theme="light"] .iad-menu {
    background: #fff;
    border-color: #D0D4DE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .iad-option.selected {
    color: var(--color-accent);
}

.iad-health-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.iad-health-active {
    background: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}

.iad-health-inactive {
    background: #F55454;
    box-shadow: 0 0 4px rgba(245, 84, 84, 0.3);
}

