:root {
    --hw-primary: #0f9d94;
    --hw-primary-dark: #0b7d76;
    --hw-primary-darker: #095e59;
    --hw-primary-tint: #e6f7f5;
    --hw-ink: #10221f;
    --hw-muted: #64766f;
    --hw-border: #e5eceb;
    --hw-surface: #f6faf9;
    --hw-radius-lg: 20px;
    --hw-radius-md: 14px;
    --hw-radius-sm: 10px;
    --hw-shadow: 0 20px 45px rgba(9, 40, 36, 0.18), 0 4px 12px rgba(9, 40, 36, 0.08);
    --hw-transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

.help-widget-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hw-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 157, 148, 0.35);
    transition: transform var(--hw-transition), box-shadow var(--hw-transition), background var(--hw-transition);
}

.help-widget-launcher:hover {
    background: var(--hw-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 157, 148, 0.42);
}

.help-widget-launcher:active {
    transform: translateY(0) scale(0.97);
}

.help-widget-launcher svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.help-widget-launcher.is-hidden {
    transform: scale(0.6);
    opacity: 0;
    pointer-events: none;
}

.help-widget-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: var(--hw-radius-lg);
    box-shadow: var(--hw-shadow);
    overflow: hidden;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--hw-ink);
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity var(--hw-transition), transform var(--hw-transition);
}

.help-widget-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.help-widget-header {
    position: relative;
    flex-shrink: 0;
    padding: 20px 20px 28px;
    background: linear-gradient(135deg, var(--hw-primary) 0%, var(--hw-primary-darker) 100%);
    color: #fff;
}

.help-widget-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.help-widget-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    opacity: .9;
}

.help-widget-brand svg {
    width: 16px;
    height: 16px;
}

.help-widget-close,
.help-widget-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background var(--hw-transition);
}

.help-widget-close:hover,
.help-widget-back:hover {
    background: rgba(255, 255, 255, 0.28);
}

.help-widget-close svg,
.help-widget-back svg {
    width: 16px;
    height: 16px;
}

.help-widget-greeting-title {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.help-widget-greeting-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.help-widget-detail-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.help-widget-search {
    position: relative;
    margin-top: 16px;
}

.help-widget-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--hw-muted);
}

.help-widget-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 12px 40px;
    border: none;
    border-radius: var(--hw-radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--hw-ink);
    background: #fff;
    box-shadow: 0 6px 16px rgba(9, 40, 36, 0.16);
}

.help-widget-search input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.help-widget-search input::placeholder {
    color: #9db3af;
}

.help-widget-body {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.help-widget-view {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--hw-transition), transform var(--hw-transition);
}

.help-widget-view[hidden] {
    display: none;
}

.help-widget-view.is-leaving-back {
    transform: translateX(24px);
    opacity: 0;
}

.help-widget-view.is-entering {
    transform: translateX(24px);
    opacity: 0;
}

.help-widget-section-title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--hw-muted);
}

.help-widget-section-title:not(:first-child) {
    margin-top: 24px;
}

.help-widget-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.help-widget-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--hw-surface);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-md);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color var(--hw-transition), transform var(--hw-transition), background var(--hw-transition);
}

.help-widget-category:hover {
    border-color: var(--hw-primary);
    background: var(--hw-primary-tint);
    transform: translateY(-1px);
}

.help-widget-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--hw-primary-tint);
    color: var(--hw-primary-dark);
    flex-shrink: 0;
}

.help-widget-category-icon svg {
    width: 18px;
    height: 18px;
}

.help-widget-category-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hw-ink);
    line-height: 1.3;
}

.help-widget-articles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-widget-article {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--hw-transition), background var(--hw-transition);
}

.help-widget-article:hover {
    border-color: var(--hw-primary);
    background: var(--hw-primary-tint);
}

.help-widget-article-text {
    flex: 1;
    min-width: 0;
}

.help-widget-article-title {
    display: block;
    margin: 0 0 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hw-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.6em;
    transition: max-height 180ms ease;
}

.help-widget-article-excerpt {
    display: block;
    margin: 0;
    font-size: 12px;
    color: var(--hw-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-widget-article:hover .help-widget-article-title,
.help-widget-article:focus-within .help-widget-article-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-height: 6em;
}

.help-widget-article:hover,
.help-widget-article:focus-within {
    align-items: flex-start;
}

.help-widget-article-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--hw-muted);
}

.help-widget-list-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.help-widget-list-header .help-widget-back {
    position: static;
    background: var(--hw-surface);
    color: var(--hw-ink);
}

.help-widget-list-header .help-widget-back:hover {
    background: var(--hw-border);
}

.help-widget-list-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.help-widget-lang-select {
    position: relative;
    display: inline-block;
    margin-top: 16px;
}

.help-widget-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: var(--hw-primary-tint);
    color: var(--hw-primary-dark);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .2px;
    cursor: pointer;
    transition: background var(--hw-transition);
}

.help-widget-lang-trigger:hover {
    background: var(--hw-primary);
    color: #fff;
}

.help-widget-lang-trigger svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.help-widget-lang-trigger-chevron svg {
    transform: rotate(90deg);
    transition: transform var(--hw-transition);
}

.help-widget-lang-select.is-open .help-widget-lang-trigger-chevron svg {
    transform: rotate(270deg);
}

.help-widget-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    box-shadow: 0 12px 28px rgba(9, 40, 36, 0.18);
    padding: 4px;
    z-index: 10;
}

.help-widget-lang-menu[hidden] {
    display: none;
}

.help-widget-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: none;
    border-radius: var(--hw-radius-sm);
    background: transparent;
    color: var(--hw-ink);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--hw-transition);
}

.help-widget-lang-option:hover {
    background: var(--hw-surface);
}

.help-widget-lang-option-check {
    width: 14px;
    height: 14px;
    color: var(--hw-primary);
    flex-shrink: 0;
    visibility: hidden;
}

.help-widget-lang-option.is-active .help-widget-lang-option-check {
    visibility: visible;
}

.help-widget-article-content {
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--hw-ink);
}

.help-widget-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius-sm);
    box-shadow: 0 4px 14px rgba(9, 40, 36, 0.14);
    cursor: zoom-in;
    transition: box-shadow var(--hw-transition), transform var(--hw-transition);
}

.help-widget-article-content img:hover {
    box-shadow: 0 8px 22px rgba(9, 40, 36, 0.2);
    transform: translateY(-1px);
}

.help-widget-article-content p {
    margin: 0 0 12px;
}

.help-widget-article-content ul,
.help-widget-article-content ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.help-widget-article-content ul {
    list-style: disc outside;
}

.help-widget-article-content ol {
    list-style: decimal outside;
}

.help-widget-article-content ul ul {
    list-style: circle outside;
}

.help-widget-article-content li {
    margin: 0 0 4px;
    padding-left: 2px;
}

.help-widget-article-content li > ul,
.help-widget-article-content li > ol {
    margin-top: 4px;
}

.help-widget-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0 16px;
    font-size: 13px;
}

.help-widget-article-content th,
.help-widget-article-content td {
    border: 1px solid var(--hw-border);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.help-widget-article-content th {
    background: var(--hw-surface);
    font-weight: 700;
}

.help-widget-article-content a {
    color: var(--hw-primary-dark);
    text-decoration: underline;
    word-break: break-word;
}

.help-widget-article-content strong,
.help-widget-article-content b {
    font-weight: 700;
}

.help-widget-article-content blockquote {
    margin: 0 0 12px;
    padding: 8px 14px;
    border-left: 3px solid var(--hw-primary);
    background: var(--hw-surface);
    color: var(--hw-muted);
}

.help-widget-article-content h1,
.help-widget-article-content h2,
.help-widget-article-content h3,
.help-widget-article-content h4 {
    margin: 18px 0 8px;
    line-height: 1.4;
    color: var(--hw-ink);
    font-weight: 700;
}

.help-widget-article-content h1 { font-size: 17px; }
.help-widget-article-content h2 { font-size: 16px; }
.help-widget-article-content h3,
.help-widget-article-content h4 { font-size: 14px; }

.help-widget-skeleton {
    border-radius: var(--hw-radius-sm);
    background: linear-gradient(90deg, var(--hw-surface) 25%, var(--hw-border) 37%, var(--hw-surface) 63%);
    background-size: 400% 100%;
    animation: help-widget-shimmer 1.4s ease infinite;
}

.help-widget-skeleton-row {
    height: 52px;
    margin-bottom: 8px;
}

.help-widget-skeleton-tile {
    height: 62px;
}

@keyframes help-widget-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.help-widget-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 12px;
    color: var(--hw-muted);
}

.help-widget-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--hw-border);
}

.help-widget-empty p {
    margin: 0;
    font-size: 13px;
}

.help-widget-empty strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--hw-ink);
}

.help-widget-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    font-size: 11px;
    color: var(--hw-muted);
    border-top: 1px solid var(--hw-border);
    background: #fff;
}

.help-widget-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: none;
    border-radius: 999px;
    background: var(--hw-primary-tint);
    color: var(--hw-primary-dark);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--hw-transition);
}

.help-widget-footer-link:hover {
    background: var(--hw-primary);
    color: #fff;
}

.help-widget-footer-link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.help-widget-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    box-sizing: border-box;
    background: rgba(8, 15, 14, 0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.help-widget-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.help-widget-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    transition: transform 200ms ease;
}

.help-widget-lightbox.is-open img {
    transform: scale(1);
}

.help-widget-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background var(--hw-transition);
}

.help-widget-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.26);
}

.help-widget-lightbox-close svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .help-widget-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 90px;
        max-height: calc(100vh - 120px);
    }

    .help-widget-launcher {
        right: 16px;
        bottom: 16px;
    }
}