.help-tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-tooltip-panel {
    background: #fff;
    border-radius: 8px;
    width: 460px;
    max-width: 95vw;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.help-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    border-bottom: 1px solid #eee;
}

.help-tooltip-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

.help-tooltip-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.help-tooltip-progress {
    font-size: 12px;
    color: #999;
    padding: 8px 20px 0;
}

.help-tooltip-body {
    padding: 16px 20px;
}

.help-tooltip-body h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
}

.help-tooltip-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.help-tooltip-tip {
    margin-top: 10px;
    background: #f0faf5;
    border-left: 3px solid #1D9E75;
    padding: 8px 12px;
    font-size: 13px;
    color: #0F6E56;
    border-radius: 0 4px 4px 0;
}

.help-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.help-tooltip-dismiss-label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.help-tooltip-dismiss-label input {
    margin-right: 6px;
    vertical-align: middle;
}

.help-tooltip-nav {
    display: flex;
    gap: 8px;
}

.help-tooltip-nav button {
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}

.help-tooltip-nav button:last-child {
    background: #1D9E75;
    color: #fff;
    border-color: #1D9E75;
}

.help-tooltip-nav button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Global floating help FAB */
.help-fab-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
}

.help-fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #1D9E75;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    line-height: 1;
}

.help-fab:hover {
    background: #178563;
}

.help-fab-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px 0;
}

.help-fab-menu-header {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
}

.help-fab-menu-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.help-fab-menu-item:hover {
    background: #f5f5f5;
}

.help-inline-trigger {
    color: #1D9E75;
    margin-left: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.help-inline-trigger:hover,
.help-inline-trigger:focus {
    color: #178563;
    text-decoration: none;
}

/* ---------- Dark mode ---------- */
body.dark-mode .help-tooltip-overlay {
    background: rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .help-tooltip-panel {
    background: #252830 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55) !important;
}

body.dark-mode .help-tooltip-header {
    border-bottom-color: #2d3139 !important;
}

body.dark-mode .help-tooltip-title {
    color: #d4d4d8 !important;
}

body.dark-mode .help-tooltip-close {
    color: #a0a4ad !important;
}

body.dark-mode .help-tooltip-close:hover {
    color: #d4d4d8 !important;
}

body.dark-mode .help-tooltip-progress {
    color: #8b8f98 !important;
}

body.dark-mode .help-tooltip-body h4 {
    color: #d4d4d8 !important;
}

body.dark-mode .help-tooltip-body p {
    color: #a0a4ad !important;
}

body.dark-mode .help-tooltip-tip {
    background: #1f3a30 !important;
    border-left-color: #1D9E75 !important;
    color: #b8e6d2 !important;
}

body.dark-mode .help-tooltip-footer {
    border-top-color: #2d3139 !important;
    color: #a0a4ad !important;
}

body.dark-mode .help-tooltip-nav button {
    background: #2d3139 !important;
    color: #d4d4d8 !important;
    border-color: #363a44 !important;
}

body.dark-mode .help-tooltip-nav button:hover {
    background: #363a44 !important;
}

body.dark-mode .help-tooltip-nav button:last-child {
    background: #1D9E75 !important;
    color: #fff !important;
    border-color: #1D9E75 !important;
}

body.dark-mode .help-tooltip-nav button:last-child:hover {
    background: #178563 !important;
}

body.dark-mode .help-fab {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .help-fab-menu {
    background: #252830 !important;
    border-color: #2d3139 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .help-fab-menu-header {
    color: #8b8f98 !important;
    border-bottom-color: #2d3139 !important;
}

body.dark-mode .help-fab-menu-item {
    color: #d4d4d8 !important;
}

body.dark-mode .help-fab-menu-item:hover {
    background: #2d3139 !important;
}

body.dark-mode .help-inline-trigger {
    color: #60a5fa !important;
}

body.dark-mode .help-inline-trigger:hover,
body.dark-mode .help-inline-trigger:focus {
    color: #93c5fd !important;
}
