.token-label-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}

.token-label-row label {
    margin: 0;
}

.token-help-button {
    width: 19px;
    height: 19px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid #3c4654;
    border-radius: 50%;
    background: #21262d;
    color: #79c0ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.token-help-button:hover,
.token-help-button:focus-visible {
    border-color: #58a6ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, .12);
}

.token-help-button {
    position: relative;
}

.token-help-button::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 260px;
    padding: 7px 9px;
    border: 1px solid #3c4654;
    border-radius: 6px;
    background: #0d1117;
    color: #e6edf3;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, visibility .12s ease;
    z-index: 1000;
}

.token-help-button:hover::after,
.token-help-button:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.token-help-dialog {
    width: min(calc(100% - 32px), 650px);
    max-height: min(82vh, 760px);
    overflow: auto;
    border: 1px solid #3c4654;
    border-radius: 14px;
    background: #161b22;
    color: #e6edf3;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.token-help-dialog::backdrop {
    background: rgba(0, 0, 0, .76);
}

.token-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 14px;
    border-bottom: 1px solid #30363d;
}

.token-help-header h2 {
    margin: 0;
    font-size: 20px;
}

.token-help-close {
    border: 0;
    background: transparent;
    color: #8b949e;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.token-help-content {
    padding: 20px 24px 8px;
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.55;
}

.token-help-content p {
    margin: 0 0 16px;
}

.token-help-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.token-help-content li {
    margin: 0 0 10px;
}

.token-help-warning {
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #9e6a03;
    border-radius: 8px;
    background: #2b2111;
    color: #e3b341;
}

.token-help-note {
    color: #8b949e;
    font-size: 12px;
}

.token-help-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #30363d;
}

.token-help-actions a.btn {
    text-decoration: none;
}

@media (max-width: 560px) {
    .token-help-header,
    .token-help-content,
    .token-help-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .token-help-actions {
        flex-direction: column-reverse;
    }

    .token-help-actions .btn {
        width: 100%;
        text-align: center;
    }
}
