@import url('/static/dino-cards.css');

/* Shared base style for breeder, terminal, depot and dashboard */
.user-dashboard-container {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 14px;
}

.user-dashboard-container > * {
    position: relative;
    z-index: 1;
}

.dashboard-header {
    border: 1px solid rgba(0, 210, 255, 0.28);
    background: linear-gradient(180deg, rgba(8, 24, 32, 0.8), rgba(8, 18, 28, 0.55));
    box-shadow: inset 0 0 18px rgba(0, 210, 255, 0.12), 0 0 14px rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.highlight-name {
    letter-spacing: 1.8px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.28);
}

.dashboard-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dashboard-header-illustration {
    display: block;
}

.breeder-controls {
    border: 1px solid rgba(0, 210, 255, 0.24);
    background: linear-gradient(180deg, rgba(5, 16, 22, 0.9), rgba(6, 12, 20, 0.7));
    box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.08);
}

.filter-select {
    background: rgba(3, 11, 18, 0.92);
    border: 1px solid rgba(0, 210, 255, 0.5);
    border-radius: 4px;
}

.cryo-info {
    border-left: 1px solid rgba(0, 210, 255, 0.65);
    border-right: 1px solid rgba(0, 210, 255, 0.2);
    border-top: 1px solid rgba(0, 210, 255, 0.25);
    border-bottom: 1px solid rgba(0, 210, 255, 0.25);
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), rgba(0, 210, 255, 0.03));
    border-radius: 4px;
    box-shadow: inset 0 0 14px rgba(0, 210, 255, 0.05);
}

.cryo-info-hero {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cryo-capsule-illustration {
    width: 130px;
    height: 78px;
    flex: 0 0 auto;
    opacity: 0.95;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.28));
}

.cryo-info-text {
    min-width: 0;
}

.transmitter-illustration {
    width: 62px;
    height: 74px;
    flex: 0 0 auto;
    opacity: 0.96;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.24));
}

.depot-illustration {
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    opacity: 0.96;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.24));
}

.breeding-section {
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 6px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(7, 14, 20, 0.8), rgba(7, 10, 18, 0.76));
    box-shadow: inset 0 0 18px rgba(0, 210, 255, 0.04);
}

.section-header {
    border-bottom: 1px solid rgba(0, 210, 255, 0.55);
    padding-bottom: 9px;
}

.section-title {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.35);
}

#breeding-grid,
#childs-grid {
    padding: 4px;
}

.dino-card {
    background: linear-gradient(180deg, rgba(9, 20, 30, 0.96), rgba(6, 12, 20, 0.88));
    border: 1px solid rgba(0, 210, 255, 0.22);
    box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.06), 0 3px 10px rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    z-index: 1;
}

.dino-card:hover {
    border-color: rgba(0, 210, 255, 0.68);
    box-shadow: inset 0 0 16px rgba(0, 210, 255, 0.13), 0 0 16px rgba(0, 210, 255, 0.18);
    transform: translateY(-1px);
    z-index: 2000;
}

.dino-species {
    color: var(--primary);
    text-shadow: 0 0 6px rgba(0, 210, 255, 0.24);
}

.dino-name {
    color: #dbe8f2;
}

.status-ready,
.status-breeding,
.status-gestating,
.cooldown-timer {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
}

.status-breeding {
    border-color: rgba(0, 210, 255, 0.38);
    box-shadow: inset 0 0 8px rgba(0, 210, 255, 0.14);
}

.status-gestating {
    border-color: rgba(255, 157, 0, 0.45);
    box-shadow: inset 0 0 8px rgba(255, 157, 0, 0.12);
}

.btn-nav,
.btn-action,
.btn-discard {
    border: 1px solid rgba(0, 210, 255, 0.35);
    box-shadow: inset 0 0 8px rgba(0, 210, 255, 0.09);
}

.btn-nav:hover,
.btn-action:hover,
.btn-discard:hover {
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.18), 0 0 10px rgba(0, 210, 255, 0.12);
}

.empty-state {
    border: 1px dashed rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.03);
}

.stats-panel {
    background: linear-gradient(180deg, rgba(7, 24, 36, 0.98), rgba(4, 12, 22, 0.96));
    border: 1px solid rgba(0, 210, 255, 0.72);
    border-radius: 3px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.78), inset 0 0 20px rgba(0, 170, 220, 0.12);
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 10px 8px;
    min-width: 210px;
    max-width: 240px;
    pointer-events: auto;
}

.stats-panel .stats-panel-header {
    border-bottom: 1px solid rgba(0, 210, 255, 0.28);
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.stats-panel .stats-panel-header strong {
    color: #8fdfff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-shadow: 0 0 7px rgba(0, 210, 255, 0.28);
}

.stats-panel .stats-panel-header small {
    color: #9cb3bf !important;
    font-size: 0.88rem;
    letter-spacing: 0.35px;
}

.stats-panel .stats-grid {
    gap: 4px;
}

.stats-panel .stat-item {
    background: linear-gradient(180deg, rgba(10, 32, 44, 0.95), rgba(7, 19, 30, 0.95));
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: 2px;
    padding: 4px 3px;
}

.stats-panel .stat-label {
    font-size: 0.55rem;
    color: #7ba0b4;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.stats-panel .stat-value {
    font-size: 0.78rem;
    color: #e6f7ff;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(110, 190, 220, 0.25);
}

.stats-panel .stat-mutation {
    font-size: 0.6rem;
    color: #5fd7ff;
    text-shadow: 0 0 5px rgba(95, 215, 255, 0.35);
}

.stats-panel .colors-row {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 210, 255, 0.18);
}

.stats-panel .color-box {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(170, 220, 255, 0.35);
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.18);
}

.column-section,
.dino-grid {
    overflow: visible;
}

@media (max-width: 900px) {
    .dashboard-header-main {
        gap: 10px;
    }

    .stats-panel {
        top: calc(100% + 6px);
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 0;
        width: min(200px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .cryo-info-hero {
        gap: 10px;
    }

    .cryo-capsule-illustration {
        width: 108px;
        height: 64px;
    }

    .transmitter-illustration {
        width: 50px;
        height: 60px;
    }

    .depot-illustration {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 600px) {
    .stats-panel {
        width: min(182px, calc(100vw - 18px));
        max-width: calc(100vw - 18px);
    }

    .stats-panel .stats-grid {
        gap: 3px;
    }

    .stats-panel .stat-item {
        padding: 3px 2px;
    }

    .stats-panel .stat-value {
        font-size: 0.74rem;
    }

    .stats-panel .color-box {
        width: 14px;
        height: 14px;
    }
}

/* Breeder: error toast */
#error-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #c0392b;
    color: #fff;
    padding: 12px 20px 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    max-width: 90vw;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

#error-toast.hidden {
    display: none !important;
}

#error-toast-msg {
    flex: 1;
}

#error-toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.8;
}

#error-toast-close:hover {
    opacity: 1;
}

/* Terminal: action button block */
.action-buttons {
    display: flex;
    align-items: center;
}

.action-buttons .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 210, 255, 0.52);
    background: linear-gradient(180deg, rgba(5, 30, 42, 0.95), rgba(3, 16, 26, 0.92));
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.12), 0 0 10px rgba(0, 210, 255, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

.action-buttons .btn-primary:hover {
    border-color: rgba(0, 210, 255, 0.86);
    color: #e6fbff;
    box-shadow: inset 0 0 14px rgba(0, 210, 255, 0.2), 0 0 14px rgba(0, 210, 255, 0.18);
    transform: translateY(-1px);
}

.action-buttons .btn-primary:active {
    transform: translateY(0);
}

.action-buttons .btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: inset 0 0 6px rgba(0, 210, 255, 0.06);
}

.action-buttons .btn-primary .loading-spinner {
    margin-right: 2px;
}

/* Dashboard specific (scoped to prevent side-effects) */
.dashboard-wrapper .user-welcome { display: flex; align-items: center; gap: 20px; }
.dashboard-wrapper .avatar-circle { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), #0078ff); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: bold; color: #000; box-shadow: 0 0 10px rgba(0,210,255,0.3); flex-shrink: 0; }
.dashboard-wrapper .user-text-group { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dashboard-wrapper .user-text-group h1 { margin: 0; font-size: 1.3rem; line-height: 1.2; font-weight: 600; color: #fff; }
.dashboard-wrapper .user-badges { display: flex; align-items: center; gap: 8px; }
.dashboard-wrapper .badge { font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; border: 1px solid #444; background: #222; color: #aaa; display: inline-flex; align-items: center; gap: 5px; height: auto; line-height: 1.2; }
.dashboard-wrapper .badge.tribe { color: #ffd700; border-color: rgba(255,215,0,0.3); }
.dashboard-wrapper .badge.lvl { color: #fff; }
.dashboard-wrapper .content-split { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.dashboard-wrapper .dash-panel { background: rgba(18, 20, 24, 0.6); padding: 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 0; }
.dashboard-wrapper .dash-panel.tooltip-open { z-index: 10000; }
.dashboard-wrapper .dash-panel h3 { margin-top: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 15px; font-size: 1rem; color: var(--primary); }
.dashboard-wrapper .quest-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dashboard-wrapper .quest-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 10px; position: relative; isolation: isolate; z-index: 0; overflow: visible !important; }
.dashboard-wrapper .quest-card.tooltip-open { z-index: 10000; }
.dashboard-wrapper .quest-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; position: relative; z-index: 1; }
.dashboard-wrapper .quest-title-group h4 { margin: 0; font-size: 0.95rem; color: #fff; }
.dashboard-wrapper .quest-reward { font-size: 0.65rem; color: #ffd700; margin-left: 6px; display: inline; vertical-align: middle; }
.dashboard-wrapper .quest-icon-bg { font-size: 1.4rem; color: rgba(255,255,255,0.05); }
.dashboard-wrapper .quest-desc { color: #aaa; font-size: 0.75rem; margin-bottom: 6px; line-height: 1.2; position: relative; z-index: 1; }
.dashboard-wrapper .quest-progress-container { margin: 0; position: relative; z-index: 2; }
.dashboard-wrapper .pearl-necklace { display: flex; justify-content: flex-start; align-items: center; margin-bottom: 6px; position: relative; min-height: 16px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.dashboard-wrapper .pearl-necklace::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: #333; z-index: 0; }
.dashboard-wrapper .pearl { width: 16px; height: 16px; border-radius: 50%; background: #444; border: 1px solid #666; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: all 0.2s; font-size: 0.6rem; cursor: help; margin-right: 8px; margin-top: 5px; }
.dashboard-wrapper .pearl:last-child { margin-right: 0; }
.dashboard-wrapper .pearl.completed { background: #28a745; border-color: #218838; color: white; }
.dashboard-wrapper .pearl, .dashboard-wrapper .trophy-item { z-index: 1; }
.dashboard-wrapper .pearl:hover { transform: scale(1.1); z-index: 4000; }
.dashboard-wrapper .pearl::after, .dashboard-wrapper .trophy-item::after { content: attr(data-tooltip); position: absolute; background: #1a1a1a; color: #fff; white-space: normal; pointer-events: none; min-width: 150px; max-width: min(300px, calc(100vw - 24px)); z-index: 9999; line-height: 1.3; text-align: center; left: 50%; right: auto; transform: translateX(-50%); top: 100%; margin-top: 8px; opacity: 0; visibility: hidden; transition: none; box-sizing: border-box; overflow-wrap: anywhere; padding: 8px 12px; border-radius: 4px; font-size: 0.75rem; box-shadow: 0 2px 8px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); }
.dashboard-wrapper .pearl.tooltip-align-left::after, .dashboard-wrapper .trophy-item.tooltip-align-left::after { left: 0; right: auto; transform: none; }
.dashboard-wrapper .pearl.tooltip-align-right::after, .dashboard-wrapper .trophy-item.tooltip-align-right::after { left: auto; right: 0; transform: none; }
.dashboard-wrapper .pearl:hover::after, .dashboard-wrapper .pearl.active::after, .dashboard-wrapper .trophy-item:hover::after, .dashboard-wrapper .trophy-item.active::after { opacity: 1; visibility: visible; }
.dashboard-wrapper .pearl.active, .dashboard-wrapper .trophy-item.active, .dashboard-wrapper .trophy-item:hover { z-index: 9998; }
.dashboard-wrapper .progress-text { font-size: 0.75rem; color: #bbb; text-align: center; margin-top: 4px; font-weight: 300; }
.dashboard-wrapper .trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 10px; overflow: visible !important; }
.dashboard-wrapper .trophy-grid > .empty-state {
    grid-column: 1 / -1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    white-space: normal;
}
.dashboard-wrapper .trophy-item { position: relative; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: help; }
.dashboard-wrapper .trophy-hexagon { width: 100%; height: 100%; background: #222; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #555; transition: all 0.3s; }
.dashboard-wrapper .trophy-item.unlocked .trophy-hexagon { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.15); color: #ffd700; }
.dashboard-wrapper .trophy-item:hover .trophy-hexagon { background: #333; transform: scale(1.1); }
.dashboard-wrapper .trophy-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); opacity: 0.4; pointer-events: none; z-index: -1; background: radial-gradient(circle, #ffd700 0%, transparent 70%); }
.dashboard-wrapper .no-data-placeholder { text-align: center; padding: 40px; color: #555; background: rgba(0,0,0,0.2); border-radius: 10px; }
.dashboard-wrapper .no-data-placeholder.small { padding: 20px; font-size: 0.9rem; }
.dashboard-wrapper .no-data-placeholder i { font-size: 2rem; margin-bottom: 10px; display: block; }
.dashboard-wrapper .maps-overview-section { margin-bottom: 25px; }
.dashboard-wrapper .maps-overview-section h3 { margin-top: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 15px; font-size: 1rem; color: var(--primary); }
.dashboard-wrapper .maps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.dashboard-wrapper .map-card { background: #1e2126; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.2s; }
.dashboard-wrapper .map-card:hover { transform: translateY(-2px); }
.dashboard-wrapper .map-card-link { text-decoration: none; color: inherit; display: block; }
.dashboard-wrapper .map-card-image { height: 120px; overflow: hidden; }
.dashboard-wrapper .map-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dashboard-wrapper .map-card:hover .map-card-image img { transform: scale(1.05); }
.dashboard-wrapper .map-card-info { padding: 12px; }
.dashboard-wrapper .map-card-info h4 { margin: 0; font-size: 0.9rem; font-weight: 600; color: #fff; }
.dashboard-wrapper .map-stats { margin-top: 8px; }
.dashboard-wrapper .map-notes-badge { font-size: 0.75rem; padding: 4px 8px; background: rgba(0,0,0,0.3); border-radius: 4px; color: #aaa; }
.dashboard-wrapper .map-notes-badge i { margin-right: 4px; }
.dashboard-wrapper .interactive-stats-container { margin-bottom: 25px; }
.dashboard-wrapper .stats-tab-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; background: #111; padding: 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
.dashboard-wrapper .stat-tab-item { background: #1e2126; padding: 12px 18px; border-radius: 8px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.05); flex: 1; min-width: 120px; }
.dashboard-wrapper .stat-tab-item:hover { background: #252930; transform: translateY(-1px); }
.dashboard-wrapper .stat-tab-item.active { background: rgba(0, 120, 255, 0.3); border-color: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 0 10px rgba(0, 120, 255, 0.3); }
.dashboard-wrapper .stat-tab-item.active i { color: var(--primary) !important; }
.dashboard-wrapper .stat-tab-item i { font-size: 1.1rem; }
.dashboard-wrapper .stat-value { font-weight: bold; font-size: 1rem; }
.dashboard-wrapper .stat-label { font-size: 0.7rem; opacity: 0.8; text-transform: uppercase; }
.dashboard-wrapper .stats-expanded-content { background: rgba(18, 20, 24, 0.4); padding: 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); animation: fadeIn 0.3s; }
.dashboard-wrapper .stats-tab-content { display: none; }
.dashboard-wrapper .stats-tab-content.active { display: block; }
.dashboard-wrapper .stats-detail-placeholder { text-align: center; padding: 40px 20px; color: #888; background: rgba(0,0,0,0.2); border-radius: 8px; }
.dashboard-wrapper .stats-detail-placeholder i { font-size: 3rem; margin-bottom: 15px; opacity: 0.5; }
.dashboard-wrapper .stats-detail-placeholder h4 { margin: 0; font-size: 1.1rem; margin-bottom: 8px; }
.dashboard-wrapper .stats-detail-placeholder p { margin: 0; font-size: 0.9rem; opacity: 0.7; }
.dashboard-wrapper .breeding-stats-placeholder { padding: 22px 16px; }
.dashboard-wrapper .breeding-stats-placeholder i { font-size: 2rem; margin-bottom: 10px; }
.dashboard-wrapper .profile-switcher { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; background: #111; padding: 10px 20px; border-radius: 8px; }
.dashboard-wrapper .profile-tab-btn { background: #222; border: 1px solid #333; color: #aaa; padding: 5px 15px; border-radius: 4px; cursor: pointer; }
.dashboard-wrapper .profile-tab-btn.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: bold; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .dashboard-wrapper .content-split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .dashboard-wrapper .pearl:hover {
        transform: none;
    }

    .dashboard-wrapper .trophy-item:hover .trophy-hexagon {
        transform: none;
    }

    .dashboard-wrapper .pearl:hover::after,
    .dashboard-wrapper .trophy-item:hover::after {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .dashboard-wrapper .pearl.active::after,
    .dashboard-wrapper .trophy-item.active::after {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dashboard-wrapper .pearl::after,
    .dashboard-wrapper .trophy-item::after {
        position: absolute;
        min-width: 0;
        width: min(80vw, 300px);
        max-width: 80vw;
        left: 50% !important;
        right: auto !important;
        top: 100% !important;
        bottom: auto !important;
        margin-top: 8px !important;
        transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px))) !important;
        z-index: 9999;
    }
}
